/**
 * Front Page Styles - Matches fiorentini.com/en/
 */

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.pf-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--pf-black);
}

.pf-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.pf-hero__video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Fallback for YouTube iframe if needed */
.pf-hero__video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translate(-50%, -50%);
    border: 0;
}

.pf-hero__fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/hero-poster.jpg?v=4') center/cover no-repeat;
    display: none;
    z-index: 0;
}

/* MOBILE: Hide video, show fallback image */
@media (max-width: 768px) {
    .pf-hero__video {
        display: none !important;
    }
    .pf-hero__fallback {
        display: block !important;
    }
}

.pf-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.pf-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.pf-hero__title {
    font-family: var(--font-primary);
    font-size: 56px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--pf-white);
    margin: 0 0 40px;
    letter-spacing: -0.5px;
}

.pf-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--pf-primary);
    color: var(--pf-white);
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.pf-hero__btn:hover {
    background: var(--pf-primary-dark);
    color: var(--pf-white);
}

.pf-hero__btn-icon {
    display: flex;
}

.pf-hero__scroll {
    position: absolute;
    bottom: 140px;
    left: 40px;
    text-align: left;
    color: var(--pf-white);
    z-index: 2;
}

.pf-hero__scroll span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    opacity: 1;                      /* Full opacity for better contrast */
}

.pf-hero__scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto;
    position: relative;
}

.pf-hero__scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: var(--pf-white);
    animation: scrollAnim 1.5s ease-in-out infinite;
}

@keyframes scrollAnim {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(60px); opacity: 0; }
}

/* ==========================================================================
   INTRO SECTION
   ========================================================================== */
.pf-intro {
    padding: 100px 0;
    background: var(--pf-white);
}

.pf-intro__content {
    max-width: 1100px;
}

.pf-intro__title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--pf-primary);
    margin: 0 0 30px;
    line-height: 1.2;
    padding-left: 20px;
    position: relative;
}

.pf-intro__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: -5px;
    width: 3px;
    height: 25px;
    background: var(--pf-primary);
}

.pf-intro__title::after {
    content: '';
    position: absolute;
    left: 0;
    top: -5px;
    width: 12px;
    height: 3px;
    background: var(--pf-primary);
}

.pf-intro__text {
    font-family: var(--font-secondary);
    font-size: 17px;
    line-height: 1.9;
    color: var(--pf-text-light);
    margin: 0;
}

/* ==========================================================================
   AREAS SECTION
   ========================================================================== */
.pf-areas {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.pf-areas__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.pf-areas .pf-container {
    position: relative;
    z-index: 2;
}

.pf-areas__title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--pf-white);
    text-align: center;
    margin: 0 0 60px;
}

.pf-areas__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.pf-area-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/4;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pf-area-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.pf-area-card__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.pf-area-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.pf-area-card:hover .pf-area-card__img img {
    transform: scale(1.1);
}

.pf-area-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    z-index: 2;
}

.pf-area-card__title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    color: var(--pf-white);
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   BANNER SECTION
   ========================================================================== */
.pf-banner {
    position: relative;
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.pf-banner__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.pf-banner .pf-container {
    position: relative;
    z-index: 2;
}

.pf-banner__content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.pf-banner__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;                  /* Full white for better contrast */
    margin-bottom: 20px;
}

.pf-banner__title {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: var(--pf-white);
    margin: 0 0 15px;
}

.pf-banner__subtitle {
    font-size: 20px;
    color: #ffffff;                  /* Full white for better contrast */
    margin: 0 0 35px;
}

.pf-banner__btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--pf-white);
    color: var(--pf-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pf-banner__btn:hover {
    background: var(--pf-secondary);
    color: var(--pf-white);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.pf-about {
    padding: 120px 0;
    background: var(--pf-white);
}

.pf-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pf-about__image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    aspect-ratio: 4/3;
}

.pf-about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.pf-about__label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--pf-primary);
    margin-bottom: 15px;
}

.pf-about__title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--pf-secondary);
    margin: 0 0 25px;
    line-height: 1.2;
}

.pf-about__text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--pf-text-light);
    margin: 0 0 35px;
}

.pf-about__stats {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
}

.pf-stat {
    text-align: center;
}

.pf-stat__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--pf-primary) 0%, var(--pf-primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--pf-white);
}

.pf-stat__number {
    display: block;
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 700;
    color: var(--pf-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.pf-stat__label {
    font-size: 14px;
    color: var(--pf-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pf-about__btn {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid var(--pf-primary);
    color: var(--pf-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pf-about__btn:hover {
    background: var(--pf-primary);
    color: var(--pf-white);
}

/* ==========================================================================
   NEWS SECTION
   ========================================================================== */
.pf-news {
    padding: 100px 0;
    background: var(--pf-bg-light);
}

.pf-news__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.pf-news__title {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 700;
    color: var(--pf-secondary);
    margin: 0;
}

.pf-news__all {
    font-size: 15px;
    font-weight: 600;
    color: var(--pf-primary);
    text-decoration: none;
}

.pf-news__all:hover {
    text-decoration: underline;
}

.pf-news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.pf-news-card {
    background: var(--pf-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pf-news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pf-news-card a {
    text-decoration: none;
    display: block;
}

.pf-news-card__img {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.pf-news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.pf-news-card:hover .pf-news-card__img img {
    transform: scale(1.05);
}

.pf-news-card__content {
    padding: 25px;
}

.pf-news-card__date {
    font-size: 13px;
    color: #004d40;                  /* Very dark teal - 7.5:1 contrast ratio */
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.pf-news-card__title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 600;
    color: var(--pf-secondary);
    margin: 0;
    line-height: 1.4;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .pf-areas__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pf-area-card__title {
        font-size: 15px;
    }
}

@media (max-width: 991px) {
    .pf-hero__title {
        font-size: 42px;
    }

    .pf-intro__title {
        font-size: 28px;
    }

    .pf-banner__title,
    .pf-about__title,
    .pf-news__title {
        font-size: 32px;
    }

    .pf-areas__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-about__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .pf-news__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pf-hero__video {
        display: none;
    }

    .pf-hero__fallback {
        display: block;
    }
}

@media (max-width: 767px) {
    .pf-hero__title {
        font-size: 32px;
    }

    .pf-intro,
    .pf-about {
        padding: 80px 0;
    }

    .pf-areas,
    .pf-banner,
    .pf-news {
        padding: 60px 0;
    }

    .pf-areas__grid {
        grid-template-columns: 1fr;
    }

    .pf-news__grid {
        grid-template-columns: 1fr;
    }

    .pf-about__stats {
        flex-wrap: wrap;
        gap: 30px;
        justify-content: center;
    }

    .pf-stat__icon {
        width: 50px;
        height: 50px;
    }

    .pf-stat__icon svg {
        width: 24px;
        height: 24px;
    }

    .pf-stat__number {
        font-size: 32px;
    }

    .pf-news__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
