/* ------------------------------------------------------------------
   What page — effetto "alternate scroll" (fixed bg / scrolling panel)
   Estratto da fix-scroll-bck.css SENZA il reset Meyer e gli override
   globali di body/a (che romperebbero header/footer/menu condivisi).
   Caricato solo sulla pagina What via @section Styles del _Layout.
   ------------------------------------------------------------------ */

.cd-main-content {
    /* min-height ereditata dai figli */
    height: 100%;
    position: relative;
    z-index: 1;
}

/* -------- pannelli a sfondo FISSO -------- */
.cd-fixed-bg {
    position: relative;
    min-height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    z-index: 1;
}

    .cd-fixed-bg h1, .cd-fixed-bg h2 {
        max-width: 1170px;
        font-size: 30px;
        font-size: 1.875rem;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        color: white;
    }

/* -------- ultima immagine: B/N → colore in fading all'arrivo -------- */
.whatColorFade {
    opacity: 0;
    transition: opacity 2s linear;
}

.whatLastImage.is-colorIn .whatColorFade {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .whatColorFade { transition: none; }
}

/* -------- carousel a stripe (sezioni "sotto", alternate ai pannelli) -------- */
.stripeStage {
    position: relative;
    overflow: hidden;
    background: #f5f4f0;
}

.stripeSlide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity .4s ease;
}

.stripeSlide.is-visible {
    opacity: 1;
}

.stripeLayer {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
}

.stripeBar {
    position: absolute;
    left: 0;
    width: 100%;
    background: #fff;
    will-change: transform;
}

/* -------- invito allo scroll (in fondo alla prima schermata) -------- */
.whatScrollHint {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #000;
    opacity: .85;
    transition: opacity .4s ease;
    animation: whatHintFloat 2.4s ease-in-out infinite;
}

.whatScrollHint:hover { opacity: 1; }

.whatScrollHint.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.whatScrollHintText {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.whatScrollHintChevron {
    width: 16px;
    height: 16px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: whatHintChevron 1.6s ease-in-out infinite;
}

@keyframes whatHintFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(6px); }
}

@keyframes whatHintChevron {
    0%   { opacity: .3; transform: rotate(45deg) translate(-3px, -3px); }
    50%  { opacity: 1;  transform: rotate(45deg) translate(0, 0); }
    100% { opacity: .3; transform: rotate(45deg) translate(3px, 3px); }
}

@media (prefers-reduced-motion: reduce) {
    .whatScrollHint,
    .whatScrollHintChevron {
        animation: none;
    }
}

.h1What_2 {
    position: absolute;
    left: 50%;
    top: 50%;
    bottom: auto;
    right: auto;
    transform: translateX(-50%) translateY(-50%);
    width: 90%;
    max-width: 1170px;
    text-align: center;
    font-size: 30px;
    font-size: 1.875rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: white;
    letter-spacing: 25px;
}

.cd-fixed-bg.cd-bg-1 {
    background-image: url("/lightweb/Images/what/bck_01.jpg");
}

.cd-fixed-bg.cd-bg-2-it {
    background-image: url("/lightweb/Images/what/bck_02_bn_it.jpg");
}

.cd-fixed-bg.cd-bg-2-en {
    background-image: url("/lightweb/Images/what/bck_02_bn_en.jpg");
}

.cd-fixed-bg.cd-bg-3-it {
    background-image: url("/lightweb/Images/what/bck_03_bn_it.jpg");
}

.cd-fixed-bg.cd-bg-3-en {
    background-image: url("/lightweb/Images/what/bck_03_bn_en.jpg");
}

.cd-fixed-bg.cd-bg-3_2-it {
    background-image: url("/lightweb/Images/what/bck_03_col_it.jpg");
}

.cd-fixed-bg.cd-bg-3_2-en {
    background-image: url("/lightweb/Images/what/bck_03_col_en.jpg");
}

.cd-fixed-bg.cd-bg-4 {
    background-image: url("/lightweb/Images/what/bck_01_bn.jpg");
}

.cd-fixed-bg.cd-bg-4_2 {
    background-image: url("/lightweb/Images/what/bck_01_col.jpg");
}

@media only screen and (min-width: 768px) {
    .cd-fixed-bg h1, .cd-fixed-bg h2 {
        font-size: 36px;
    }
}

@media only screen and (min-width: 1170px) {
    /* qui scatta il parallasse: lo sfondo resta agganciato al viewport */
    .cd-fixed-bg {
        background-attachment: fixed;
    }

        .cd-fixed-bg h1, .cd-fixed-bg h2 {
            font-size: 48px;
            font-weight: 300;
        }
}

/* -------- pannelli che SCORRONO sopra gli sfondi fissi -------- */
.cd-scrolling-bg {
    position: relative;
    min-height: 100%;
    line-height: 1.6;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

    .cd-scrolling-bg.cd-color-1 {
        background-color: white;
    }

    .cd-scrolling-bg.cd-color-2 {
        background-color: black;
        color: white;
    }

    .cd-scrolling-bg.cd-color-3 {
        background-color: white;
        color: black;
    }

@media only screen and (min-width: 768px) {
    .cd-scrolling-bg {
        font-size: 20px;
        font-size: 1.25rem;
        line-height: 2;
        font-weight: 300;
    }
}

/* -------- pannello prodotto (titolo + descrizione centrati) -------- */
.whatProductPanel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2em;
    overflow: hidden; /* contiene l'icona quando parte fuori schermo */
}

.whatProductPanelInner {
    width: 90%;
    max-width: 760px;
    text-align: center;
}

/* -------- layout diviso: icona | barra | testo (alternato) -------- */
.whatProductSplit {
    max-width: 980px;
    display: flex;
    flex-direction: column;        /* mobile: impilato */
    align-items: center;
    gap: 1.5em;
    text-align: center;
}

.whatProductMedia {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.whatProductIcon {
    width: clamp(110px, 28vw, 200px);
    height: auto;
    max-width: 100%;
    object-fit: contain;
    opacity: 0;
    will-change: transform, opacity;
    transition: transform .9s cubic-bezier(.22, .61, .36, 1), opacity .7s ease;
}

/* stato iniziale: fuori dallo schermo dal proprio lato */
.whatProductPanel--iconRight .whatProductIcon { transform: translateX(60vw); }
.whatProductPanel--iconLeft  .whatProductIcon { transform: translateX(-60vw); }

/* a riposo (pannello in viewport): rientra in posizione */
.whatProductPanel.is-iconIn .whatProductIcon {
    transform: translateX(0);
    opacity: 1;
}

/* -------- reveal a cascata del testo (titolo → descrizione → link) -------- */
.whatProductTitle,
.whatProductDesc,
.whatProductLink {
    opacity: 0;
    will-change: transform, opacity;
    transition: transform .7s cubic-bezier(.22, .61, .36, 1), opacity .7s ease;
}

/* titolo e descrizione partono dal basso; il link compare in loco (solo fading) */
.whatProductTitle,
.whatProductDesc {
    transform: translateY(28px);
}

.whatProductPanel.is-iconIn .whatProductTitle {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .25s;
}

.whatProductPanel.is-iconIn .whatProductDesc {
    opacity: 1;
    transform: translateY(0);
    transition-delay: .45s;
}

.whatProductPanel.is-iconIn .whatProductLink {
    opacity: 1;
    transition-delay: .75s;
}

@media (prefers-reduced-motion: reduce) {
    .whatProductIcon,
    .whatProductTitle,
    .whatProductDesc,
    .whatProductLink {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* barra divisoria: orizzontale su mobile, verticale da tablet in su */
.whatProductDivider {
    flex: 0 0 auto;
    align-self: stretch;
    width: 60%;
    height: 1px;
    background: currentColor;
    opacity: .25;
}

.whatProductBody {
    flex: 1 1 0;
    min-width: 0;
}

.whatProductTitle {
    margin: 0 0 .4em;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
}

.whatProductDesc {
    margin: 0 0 1em;
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.6;
}

.whatProductLink {
    display: inline-block;
    margin-top: .2em;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
    padding-bottom: 2px;
    color: inherit;
    transition: opacity .2s ease;
}

.whatProductLink::after {
    content: " \2192";   /* freccia → */
}

.whatProductLink:hover {
    opacity: .6;
}

@media only screen and (min-width: 768px) {
    .whatProductSplit {
        flex-direction: row;       /* affiancati */
        gap: 2.5em;
        text-align: left;
    }

    /* primo pannello (e pari): icona a destra */
    .whatProductPanel--iconRight .whatProductSplit {
        flex-direction: row-reverse;
    }

    .whatProductDivider {
        width: 1px;
        height: auto;
        min-height: 160px;
    }

    /* testo allineato verso la barra */
    .whatProductPanel--iconLeft .whatProductBody { text-align: left; }
    .whatProductPanel--iconRight .whatProductBody { text-align: right; }
    .whatProductMedia { flex: 0 0 40%; }
}

@media only screen and (min-width: 1170px) {
    .whatProductTitle { font-size: 3rem; }
    .whatProductDesc  { font-size: 1.4rem; }
}
