/* ==========================================================================
   HOME.CSS — Stili specifici homepage
   Segue l'ordine delle sezioni nel template page-home.php.
   ========================================================================== */



/* ==========================================================================
   1. HERO
   ========================================================================== */

.hero {
    position: relative;
    min-height: 540px;
    background-size: cover;
    background-position: center;
    background-color: var(--gf-dark);
    color: var(--gf-white);
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.45) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding: 72px 0;
    max-width: 560px;
}

.hero__title {
    font-size: 44px;
    font-weight: 700;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--gf-white);
}

.hero__subtitle {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px;
    font-weight: 400;
    max-width: 420px;
    color: rgba(255, 255, 255, 0.9);
}

.hero__cta {
    margin-bottom: 36px;
}

/* Hero bullets */

.hero__bullets {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero__bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.92);
}

.hero__bullets li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--gf-orange);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}


/* ==========================================================================
   2. I NOSTRI SETTORI
   ========================================================================== */

.settori {
    background: var(--gf-gray-100);
    padding: 72px 0;
}

.settori__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.settore-card {
    background: var(--gf-white);
    border: 1px solid var(--gf-gray-200);
    border-radius: var(--gf-border-radius-lg);
    padding: 40px 28px;
    text-align: center;
    transition: transform var(--gf-transition), box-shadow var(--gf-transition);
}

.settore-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--gf-shadow-hover);
}

.settore-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
}

.settore-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.settore-card__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gf-black);
    margin-bottom: 12px;
}

.settore-card__desc {
    font-size: 14px;
    color: var(--gf-gray-700);
    line-height: 1.6;
    margin-bottom: 20px;
}


/* ==========================================================================
   3. PERCHÉ SCEGLIERE
   ========================================================================== */

.perche {
    padding: 72px 0;
    background: var(--gf-white);
}

.perche__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.perche__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--gf-black);
    margin-bottom: 28px;
}

.perche__image {
    width: 100%;
    height: 340px;
    border-radius: var(--gf-border-radius-lg);
    background-size: cover;
    background-position: center;
    background-color: var(--gf-gray-100);
}


/* ==========================================================================
   4. BANNER ESPERIENZA
   ========================================================================== */

.banner-exp {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    background-color: var(--gf-dark);
    color: var(--gf-white);
    display: flex;
    align-items: center;
}

.banner-exp::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.banner-exp__inner {
    position: relative;
    z-index: 1;
    padding: 56px 0;
    max-width: 520px;
}

.banner-exp__title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--gf-white);
}

.banner-exp__desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}


/* ==========================================================================
   5. QUALITÀ E PROCESSO PRODUTTIVO
   ========================================================================== */

.processo {
    padding: 72px 0;
    background: var(--gf-white);
}

.processo__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.processo-step {
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.processo-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--gf-gray-200);
}

.processo-step__icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gf-gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
}

.processo-step__icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.processo-step__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gf-black);
    margin-bottom: 8px;
}

.processo-step__desc {
    font-size: 13px;
    color: var(--gf-gray-700);
    line-height: 1.5;
}


/* ==========================================================================
   6. CHI SIAMO (ANTEPRIMA)
   ========================================================================== */

.chi-siamo-preview {
    background: var(--gf-gray-100);
}

.chi-siamo-preview__grid {
    display: grid;
    grid-template-columns: 40% 60%;
    align-items: stretch;
}

.chi-siamo-preview__image {
    min-height: 340px;
    background-size: cover;
    background-position: center;
    background-color: var(--gf-gray-300);
}

.chi-siamo-preview__text {
    padding: 56px 64px 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chi-siamo-preview__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--gf-black);
    margin-bottom: 20px;
}

.chi-siamo-preview__content p {
    font-size: 14px;
    color: var(--gf-gray-700);
    line-height: 1.7;
    margin-bottom: 14px;
}

.chi-siamo-preview__text .gf-link-arrow {
    margin-top: 12px;
}


/* ==========================================================================
   7. BRAND
   ========================================================================== */

.brand {
    background: var(--gf-white);
    padding: 56px 0;
}

.brand__showcase {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
}

.brand-item {
    background: var(--gf-white);
    border: 1px solid var(--gf-gray-200);
    border-radius: var(--gf-border-radius);
    height: 88px;
    min-width: 200px;
    max-width: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
}

.brand-item__logo {
    max-height: 56px;
    width: auto;
    object-fit: contain;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .hero__title {
        font-size: 34px;
    }

    .settori__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .perche__grid {
        grid-template-columns: 1fr;
    }

    .perche__image {
        height: 260px;
    }

    .processo__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .processo-step:not(:last-child)::after {
        display: none;
    }

    .chi-siamo-preview__grid {
        grid-template-columns: 1fr;
    }

    .chi-siamo-preview__image {
        min-height: 260px;
    }

    .chi-siamo-preview__text {
        padding: 40px 24px;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 440px;
    }

    .hero__title {
        font-size: 28px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    /* Riordino hero mobile: la CTA passa sotto i bullet
       (evita di coprire l'immagine centrale), mantenendo
       un minimo di respiro nello spazio in cui si trovava */
    .hero__inner {
        display: flex;
        flex-direction: column;
    }

    .hero__title {
        order: 1;
    }

    .hero__subtitle {
        order: 2;
        margin-bottom: 40px;
    }

    .hero__bullets {
        order: 3;
    }

    .hero__cta {
        order: 4;
        margin-top: 24px;
        margin-bottom: 0;
    }

    .hero__cta .gf-btn {
        width: 100%;
        text-align: center;
    }

    .gf-section-title {
        font-size: 22px;
        margin-bottom: 32px;
    }

    .settori {
        padding: 48px 0;
    }

    .settori__grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .perche {
        padding: 48px 0;
    }

    .processo {
        padding: 48px 0;
    }

    .processo__grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .banner-exp__title {
        font-size: 22px;
    }
}
