body{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'glo sans', sans-serif;
    background-color: #000000; /* assicura un fondo scuro per il viewport/UI chrome */
    overflow-x: hidden; /* evita scroll orizzontale indesiderato */
}
/* Applica border-box ovunque per evitare overflow da padding/border */
*, *::before, *::after{ box-sizing: border-box; }
h1, h2, h3, p, a {
    margin: 0;
    padding: 0;
    text-decoration: none;
}



.hero-section{
    width: 100%;
    height: 100vh;
    min-height: 840px;
    background-color: #000000; /* fallback */
    background-image: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0) 60%, 
        rgba(0, 0, 0, 1) 100%), 
        url('/assets/images/hero-circle-desktop.webp');
    background-size: cover;
    background-position: right;
}


/* Design tokens e classi comuni */
:root{
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-primary: #FF5100;
    --shadow-strong: 0 0 0.5rem rgba(0,0,0,0.8);
    /* Suggerisce all'UA un tema scuro per controlli, scrollbar, ecc. */
    color-scheme: dark;
}

/*
     Responsive scaling per la sezione Bento (e tutto ciò che usa rem)
     Nel range 1500px → 900px riduciamo progressivamente la root font-size
     da 16px (a 1500px) fino a 9.6px (a 900px), mantenendo le proporzioni.
     Nota: gran parte delle dimensioni in questo layout sono espresse in rem,
     quindi la scalatura della root font-size mantiene coerenti proporzioni di
     card, tipografia, gap, posizionamenti assoluti, ecc.
*/
@media (max-width: 1500px) and (min-width: 1050px){
    html{
        /* 16px → 9.6px su 1500→900: passo lineare 6.4px su 600px = *0.0106667 */
        font-size: calc(9.6px + (100vw - 900px) * 0.0106667);
    }
}

/* Local font-face: glo sans (WOFF2+WOFF) */
@font-face{
    font-family: 'glo sans';
    src: url('/assets/fonts/20240319_glo sans/woff2/glo sans book.woff2') format('woff2'),
         url('/assets/fonts/20240319_glo sans/woff/glo sans book.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face{
    font-family: 'glo sans';
    src: url('/assets/fonts/20240319_glo sans/woff2/glo sans book italic.woff2') format('woff2'),
         url('/assets/fonts/20240319_glo sans/woff/glo sans book italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face{
    font-family: 'glo sans';
    src: url('/assets/fonts/20240319_glo sans/woff2/glo sans light.woff2') format('woff2'),
         url('/assets/fonts/20240319_glo sans/woff/glo sans light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face{
    font-family: 'glo sans';
    src: url('/assets/fonts/20240319_glo sans/woff2/glo sans medium.woff2') format('woff2'),
         url('/assets/fonts/20240319_glo sans/woff/glo sans medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face{
    font-family: 'glo sans';
    src: url('/assets/fonts/20240319_glo sans/woff2/glo sans bold.woff2') format('woff2'),
         url('/assets/fonts/20240319_glo sans/woff/glo sans bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face{
    font-family: 'glo sans';
    src: url('/assets/fonts/20240319_glo sans/woff2/glo sans black.woff2') format('woff2'),
         url('/assets/fonts/20240319_glo sans/woff/glo sans black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Bottoni riutilizzabili */
.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 700;
    line-height: 120%;
    text-transform: uppercase;
    text-decoration: none;
}
.btn--primary{
    background: var(--color-primary);
    color: var(--color-black);
    box-shadow: var(--shadow-strong);
}

/* Utilities */
.order-0{ order: 0; }
.order-1{ order: 1; }
.order-2{ order: 2; }
.order-3{ order: 3; }

.z-1{ z-index: 1; }
.z-2{ z-index: 2; }
.z-3{ z-index: 3; }


/* CTA inline per bento cards */
.bento-cta{
    display: inline-flex;
    align-items: center;
    font-style: bold;
    /* gap in px */
    gap: 8px;
    padding: 18px 0 0 0;
    font-weight: 700;
    font-size: 18px; /* richiesto: CTA 14px */
    line-height: 120%;
    text-transform: uppercase;
    color: var(--color-white);
    filter: drop-shadow(0 0 0.5rem rgba(0, 0, 0, 0.8));
}

/* Titoli item bento: tipografia comune, dimensioni specifiche restano sulle classi item-* */
.bento-item-title{
    font-style: medium;
    font-weight: 500;
    font-size: 32px;
    letter-spacing: 0%;
    line-height: 120%;
    color: var(--color-white);
    text-shadow: var(--shadow-strong);
    display: flex;
    align-items: flex-end;
}


.hero-content{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 40px;
    position: absolute;
    height: 182px;
    left: 64px;
    top: calc(50% - 91px);
}

.hero-title-container{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 24px;
    width: 100%;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.hero-title{
    width: 100%;
    font-style: medium;
    font-weight: 500;
    font-size: 64px;
    line-height: 100%;
    color: #FFFFFF;
    text-shadow: var(--shadow-strong);
}

.hero-subtitle{
    width: 100%;
    font-style: book;
    letter-spacing: 0%;
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    color: #FFFFFF;
    text-shadow: var(--shadow-strong);
}

.hero-cta-button{ /* usa .btn .btn--primary */
    font-size: 14px; /* CTA 14px */
    padding: 12.5px 24px;
    font-style: bold;
    font-weight: 733;
    letter-spacing: 1.7px;
    line-height: 120%;
}
/* (gli stili base della sticky CTA sono definiti più sotto vicino al container sticky) */

.quote-section{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* padding: 4rem 8rem; in px */
    padding: 64px 128px;
    gap: 0.625rem;
    max-width: 100vw;
    min-height: 600px; 
    /*height: 37.5rem; in px */
    height: 600px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.8) 10%,
        rgba(0, 0, 0, 0.8) 90%,
        rgba(0, 0, 0, 1) 100%
    ),
    url('/assets/images/love_at_first_glance.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 0;
}

.quote-text{
    width: 44.375rem;
    height: 6.4375rem;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    text-align: center;
    color: #FFFFFF;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.bento-section{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* padding: 5rem 0; in px */
    padding: 80px 0;
    isolation: isolate;
    position: absolute;
    width: 100%;
    height: 96.3125rem;
    max-height: 1461px;
    background: #000000;
}

.bento-title{
    font-style: medium;
    font-weight: 500;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 1px;
    color: #FFFFFF;
    flex: none;
    order: 0;
    flex-grow: 0;
}

.bento-container{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 1.5rem;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    max-width: 1312px; /* larghezza contenuto a 1440 con 64px laterali */
    margin: 0 auto;
}

.bento-row{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    gap: 1.5rem;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

.bento-column{
    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 1.5rem;
    flex: none;
    align-self: stretch;
}

.card{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 2.5rem 1.5rem;
    isolation: isolate;
    border-radius: 1.5rem;
    flex: none;
    align-self: stretch;
    flex-grow: 1;
    max-height: 36.25rem;
}

.half-height-card{
    height: 15.875rem;
}

.bento-item-cta-icon{
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-image: url('/assets/icons/arrow_right_white.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex: none;
    order: 0;
    flex-grow: 0;
}

/* Sticky CTA bottom bar: mostrata/nascosta via classe .is-visible */
.sticky-cta{
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    /* padding base (desktop). Mobile sovrascrive nel media query */
    padding: 16px 24px 112px;
    transform: translateY(50%);
    opacity: 0;
    transition: transform 240ms ease, opacity 240ms ease;
    pointer-events: none; /* solo il bottone deve ricevere click */
    max-width: 100vw;

}

.sticky-cta.is-visible{
    transform: translateY(0);
    opacity: 1;
}

.sticky-cta-button{ /* stili base (desktop). Mobile sovrascrive nel media query */
    pointer-events: all;
    display: inline-flex; align-items: center; justify-content: center;
    pointer-events: all;
    font-size: 14px; /* CTA 14px */
    padding: 12.5px 24px;
    font-style: bold;
    font-weight: 733;
    letter-spacing: 1.7px;
    line-height: 120%;
    width: 250px;

}

.bento-item-1{
    background: linear-gradient(180deg, #C61516 0%, #640B0C 100%);
    order: 0;
}

.bento-item-1-image{
    position: absolute;
    max-width: 487px;
    width: 27rem;
    height: 27rem;
    right: 25px;
    top: 16px;
    background: url(/assets/images/visual_connect.png);
    background-size: cover;
    background-position: center;
    flex: none;
    order: 2;
    flex-grow: 0;
    z-index: 1;
}

.bento-item-1-title{
    width: 37.25rem;
    height: 32.125rem;
    order: 1;
    align-self: stretch;
    flex-grow: 1;
    z-index: 1;
}


.bento-item-2{
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('/assets/images/easy_view_screen_focus.jpg');
    background-size: cover;
    background-position: center;
    order: 1;
}

.bento-item-2-title{
    width: 16.375rem;
    height: 32.125rem;
    order: 0;
    align-self: stretch;
    flex-grow: 1;
}

/* .flex-order-3 deprecated: use .order-3 */

.bento-item-3{
    background: #AD3700;
    order: 2;
}

.bento-item-3-title{
    width: 16rem;
    height: 11.25rem;
    flex-grow: 1;
    z-index: 1;
}


.bento-item-4{
    order: 3;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('/assets/images/popup_store.png');
    background-size: cover;
    background-position: center;
}

.bento-item-4-title{
    width: 200px;
    height: 11.25rem;
    order: 0;
    flex-grow: 1;
    z-index: 1;
}


.bento-item-5{
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('/assets/images/mixer_dj.png');
    background-size: cover;
    background-position: center;
    order: 0;
}

.bento-item-5-title{
    width: 37.25rem;
    height: 11.25rem;
    order: 1;
    align-self: stretch;
    flex-grow: 1;
}


.bento-item-6{
    background: linear-gradient(180deg, #C51516 0%, #650B0C 100%);
    order: 1;
}

.bento-item-6-image{
    position: absolute;
    width: calc(max(100%, 487px));
    height: 15.375rem;
    max-width: 278px;
    right: -30px;
    bottom: 0;
    background: url('/assets/images/hilo_plus.png');
    background-size: cover;
    background-position: center;
    flex: none;
    order: 2;
    flex-grow: 0;
    z-index: 2;
}

.bento-item-6-title{
    width: 36.625rem;
    height: 11.25rem;
    order: 0;
    align-self: stretch;
    flex-grow: 1;
    z-index: 1;
}


.bento-item-7{
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url('/assets/images/eclipse_1.png');
    background-size: cover;
    background-position: right;
    order: 2;
}

.bento-item-7-title{
    max-width: 500px;
    height: 11.25rem;
    order: 1;
    align-self: stretch;
    flex-grow: 1;
}

/* ONLY BENTO STYLING*/
@media (max-width: 1050px){
    .bento-section{
        position: static;
        width: 100%;
        top: auto;
        left: auto;
        height: auto;
        padding: 48px 20px 24px; 
        max-height: unset;
    }

    .bento-container{
        max-width: 425px;
        margin: 0 auto;
        gap: 16px;
    }
    .bento-row{ display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
    .bento-column, .card{ min-width: 0; }
    .bento-row:first-of-type .bento-item-1{ order: 0; flex: 0 0 100%; }
    .bento-row:first-of-type .bento-column.order-3{
        order: 1;
        flex: 1 1 calc((100% - 16px)/2);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .bento-row:first-of-type .bento-item-2{ order: 2; flex: 1 1 calc((100% - 16px)/2); }
    .bento-row:last-of-type .bento-item-7{ order: 0; flex: 0 0 100%; }
    .bento-row:last-of-type .bento-column{
        order: 1;
        flex: 0 0 100%;
        display: flex;
        flex-direction: row;
        gap: 16px;
    }
    .bento-row:last-of-type .bento-column .card{ flex: 1 1 calc((100% - 16px)/2); }
    .card{ max-height: none; aspect-ratio: 1 / 1; position: relative; padding: 16px 8px; overflow: hidden; }
    .half-height-card{ height: auto; max-height: none; }
    .bento-item-1-image{
        position: absolute;
        height: 361px;
        width: 354px;
        aspect-ratio: 264 / 271;    /* mantiene proporzioni */
        left: 15%;                  /* ~67/353 */
        top: 4.5%;                  /* ~16/353 */
        background-repeat: no-repeat;
        background-position: center;
        z-index: 0;
        pointer-events: none;
    }
    .bento-item-6-image{
        position: absolute;
        height: 200px;
        aspect-ratio: 182 / 189;
        top: 5rem;
        left: 1rem;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 0;
        pointer-events: none;
    }

    /* Item verticali (circa 2:1 H:W): 2, 5 e 6 */
    .bento-item-2,
    .bento-item-5,
    .bento-item-6{ aspect-ratio: 1 / 2; }

    /* Titolo sezione mobile */
    .bento-title{
        font-size: 32px;
        line-height: 120%;
        font-weight: 400;
        font-style: normal;
        letter-spacing: 0%;
    }

    .bento-item-title{
        font-style: normal;
        font-weight: 500;
        font-size: 20px;
        line-height: 120%;
        color: var(--color-white);
        text-shadow: var(--shadow-strong);
        display: flex;
        align-items: flex-end;
        letter-spacing: 1px;
    }
    .bento-cta{
        font-style: bold;
        font-size: 14px;
        line-height: 120%;
        font-weight: 500;
        width: 100%;
        padding: 18px 0 18px 0;
    }
    .bento-item-1-title{
        width: 294px;
    }
    .bento-item-2-title{
        width: 163px;
    }
    .bento-item-3-title{
        width: 130px;
    }
    .bento-item-4-title{
        width: 153px;
    }
    .bento-item-5-title{
        width: 144px;
    }
    .bento-item-6-title{
        width: 144px;
    }
    .bento-item-7-title{
        width: 264px;
    }
    .sticky-cta{
        max-width: 100vw;
        padding: 0.75rem 1rem calc(4rem + env(safe-area-inset-bottom));
    }
    .sticky-cta-button{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 12.5px 19px;
        gap: 10px;
        max-width: 425px;
        width: 100%;
        height: 40px;
        background: #FF5100;
        border-radius: 100px;
        font-family: 'glo sans';
        font-style: normal;
        font-weight: 700;
        font-size: 14px;
        line-height: 120%;
        text-align: center;
        letter-spacing: 1.7px;
        text-transform: uppercase;
        color: #000000;
        padding: 14px 22px; /* padding interni più ampi */
    }
}

/* Hero responsive behavior: ensure the background circle stays visible on small screens */
@media (max-width: 800px){
    .hero-section{
        background-image: linear-gradient(
        180deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 0) 50%, 
        rgba(0, 0, 0, 0.2) 70%, 
        rgba(0, 0, 0, 1) 100%), 
        url('/assets/images/hero-circle-mobile.png');
        background-position: center top 5%;
        background-size: cover;
        min-height: 616px;
        height: calc(616px + 15vh);
        max-height: 790px;
        position: relative; /* necessario per pseudo-element */
    /* Variabile usata per posizionare la hero-content quando la hero è più bassa della viewport */
    --hero-bottom: 0px;            /* impostata via JS su mobile */
    }
    .hero-title, .hero-subtitle{ 
        width: 100%; 
    }
    .quote-section{
        min-height: 510px;
        background-image: 
            url('/assets/images/love_at_first_glance_mobile.png');
        background-size: cover;
        background-position: top;
    }
    
    .quote-text{
        width: 313px;
        height: 219px;
        align-content: center;
        font-style: medium;
        font-weight: 500;
        font-size: 24px;
        line-height: 120%;
        letter-spacing: 0.5%;
        text-align: center;
        color: #FFFFFF;
        text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.8);
    }

    .hero-content{ 
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0px;
        gap: 15px;
        position: absolute;
        left: 0;
        top: auto;
        width: 100%;
          /* bottom dinamico: 0 se hero >= viewport; altrimenti (100vh - hero-height) */
          bottom: var(--hero-bottom, 0px);
        z-index: 1; /* assicura che stia sopra allo pseudo-component */
        /* Gradiente verticale: 0% trasparente, 10% scurisce, 20% nero pieno, fino al fondo nero */
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.65) 10%,
            rgba(0, 0, 0, 1) 20%,
            rgba(0, 0, 0, 1) 100%
        );
        background-repeat: no-repeat;
        background-size: 100% 100%;
        padding-top: 20px;
    }

    /* Pseudo componente che copre l'area sotto la hero-content fino all'inizio della quote-section */
    .hero-section::after{
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
    height: var(--hero-bottom, 0px);
        background: #000; /* nero pieno */
        pointer-events: none; /* nessuna interferenza con l'UI */
        z-index: 0; /* sotto alla hero-content */
    }

    .hero-title-container{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0px;
        gap: 8px;
        /* rimuove l'assoluto per mantenere il flusso e consentire alla CTA di posizionarsi subito sotto il sottotitolo */
        position: static;
        width: 100%;

    }
    .hero-title{
        font-style: medium;
        font-weight: 500;
        font-size: 32px;
        text-align: center;
        letter-spacing: 1px;
        line-height: unset;
        height: unset;

    }
    .hero-subtitle{
        font-style: normal;
        font-weight: 400;
        font-size: 16px;
        line-height: 120%;
        text-align: center;
        color: #FFFFFF;
    }

    /* Hero CTA mobile: stesse dimensioni della sticky CTA e posizionata sotto il sottotitolo */
    .hero-cta-button{
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 425px;
        height: 40px;
        background: #FF5100;
        border-radius: 100px;
        font-family: 'glo sans';
        font-style: normal;
        font-weight: 700;
        font-size: 14px;
        line-height: 120%;
        text-align: center;
        letter-spacing: 1.7px;
        text-transform: uppercase;
        color: #000000;
        padding: 12.5px 19px;
    }

    .bento-item-1-title{
        width: 290px;
    }
    .bento-item-2-title{
        width: 120px;
    }
    .bento-item-3-title{
        width: 120px;
    }
    .bento-item-4-title{
        width: 155px;
    }
    .bento-item-5-title{
        width: 100px;
    }
    .bento-item-6-title{
        width: 100px;
    }
    .bento-item-7-title{
        width: 290px;
    }
}

/* (rimosso breakpoint desktop: gli stili base già riflettono le specifiche desktop) */

@media (max-width: 450px){
    .bento-item-1-image
    {
        /* relative sizes for very small screens in rem*/
        width: 15rem;
        height: 16.25rem;
        left: calc(50% - 7.5rem);
    }
    .bento-item-6-image{
        top: 2rem;
        left: -1rem;
    }
    .sticky-cta-button{
        width: 100%;
    }
    .hero-cta-button{
        width: 90%;
    }
    .bento-cta{
        padding: 12px 0 12px 0;
    }
    .bento-item-title{
        font-size: calc(16px + (100vw - 320px) * 0.02);
        width: 100%;
    }
    .bento-item-7-title{
        width: 90%;
    }
    .quote-text{
        font-size: calc(18px + (100vw - 320px) * 0.03);
        margin: 0 10px;
    }
    .bento-cta{
        font-size: calc(12px + (100vw - 320px) * 0.02);
    }

}
