/* =========================================
   VARIABILI & RESET
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --white: #FFFFFF;
    --black: #212121;
    --beige: #F4EBDF;
    --muted: #6B6256;
    --accent: #212121;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    color: var(--black);
    background: var(--white);
    overflow-x: hidden;
}

.highlight-glow {
    color: var(--beige);
    text-shadow: 0 0 8px rgba(210, 180, 140, 0.3);
    font-weight: bold;
}

/* =========================================
   TIPOGRAFIA & TESTI
========================================= */
h1, h2, h3, .big {
    font-family: 'Poppins', sans-serif;
}
h1 { font-size: clamp(34px, 8vw, 74px); line-height: 1.1; margin-bottom: 24px; font-weight: 700; text-transform: none; }
h1 em { font-style: normal; font-weight: 400; }

h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.1; margin-bottom: 24px; font-weight: 700; text-transform: none; }
h2 em { font-style: normal; font-weight: 300; }

h3 { font-size: 22px; font-weight: 600; margin-bottom: 10px; text-transform: none; line-height: 1.3; }

p { font-size: 16px; line-height: 1.6; }

.label { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 16px; letter-spacing: 1px; text-transform: none; }
.lead { font-size: 18px; color: var(--muted); line-height: 1.6; }

.big { font-size: clamp(42px, 5vw, 62px); font-weight: 700; line-height: 1.05; margin-bottom: 24px; }
.big em { font-style: normal; font-weight: 300; }

strong, b { font-weight: 800; }

/* =========================================
   LAYOUT & UTILITIES
========================================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; margin-top: 60px; }

/* Animazioni */
.r { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.8s ease, transform 0.8s ease; 
}
.r.on { 
    opacity: 1; 
    transform: translateY(0); 
    transition-delay: 0.5s;
}
header.hero-full div.hero-content.r.on {
    transition-delay: 0.8s !important;
}

/* =========================================
   HEADER / NAVIGAZIONE
========================================= */
nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    height: 110px; 
    display: flex; align-items: center;
    background: rgba(252, 252, 252, 0.098);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 15px;
    display: flex; align-items: center; 
}

.nav-left, .nav-center, .nav-right { 
    flex: 1; 
    display: flex; 
    align-items: center; 
}

.nav-left { justify-content: flex-start; gap: 32px; }
.nav-center { justify-content: center; }
.nav-right { justify-content: flex-end; }

.logo img { height: 60px; display: block; }
.nav-left a, .nav-right a { font-size: 13px; font-weight: 700; text-decoration: none; color: var(--black); transition: opacity 0.2s; }
.nav-left a:hover { opacity: 0.6; }
.nav-cta { border: 2px solid var(--black); padding: 8px 24px; border-radius: 100px; }
.nav-cta:hover { background: var(--black); color: var(--white); }

/* =========================================
   BURGER MENU & MOBILE MENU
========================================= */
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
}

.burger span {
    width: 28px;
    height: 3px;
    background: var(--black);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--beige);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;     /* Centra orizzontalmente */
    gap: 25px;               /* Spazio tra gli elementi */
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 150px 40px 40px 40px;    
}

/* 1. Posizionamento del logo nel menu */
.mobile-menu .mobile-logo {
    height: 60px;
    width: auto;
    margin-bottom: 2rem; /* Usa rem o px per distanziare dai link */
    flex-shrink: 0;      /* Impedisce al flexbox di rimpicciolire l'immagine */
}

.mobile-menu a {
    text-decoration: none;   /* Rimuove la sottolineatura blu triste */
    color: var(--black);     /* Usa il nero definito nelle variabili */
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;         /* Testo più grande e leggibile */
    font-weight: 700;        /* Grassetto come nel resto del sito */
    transition: opacity 0.2s;
}

/* Stile specifico per il pulsante CTA nel menu mobile */
.mobile-menu .nav-cta {
    font-family: 'Poppins', sans-serif;
    border: 2px solid var(--black);
    padding: 12px 30px;
    border-radius: 100px;
    font-size: 1rem;
    margin-top: 10px;
}

.mobile-menu img {
    margin-bottom: 20px;     /* Spazio sotto il logo */
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

/* =========================================
   SEZIONI: HERO
========================================= */
.hero-full {
    height: 100vh; position: relative; display: flex; align-items: center; 
    min-height: 100vh; justify-content: center; text-align: center; padding: 0 5%; 
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    object-fit: cover;
}

.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(252,252,252,0.1), rgba(252,252,252,0.4)); }
.hero-content { position: relative; z-index: 10; color: var(--black); max-width: 100%; padding: 0 20px; }
.hero-lead { font-size: 22px; opacity: 0.9; margin-bottom: 48px; }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center;}
.btn-store {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    width: 200px;        /* Larghezza fissa uguale per entrambi */
    background: var(--black); color: white;
    padding: 16px 32px; border-radius: 100px;
    text-decoration: none; font-weight: 700; font-size: 15px;
    border: 2px solid var(--black); transition: background .2s, color .2s;
}
.btn-store:hover { background: transparent; color: var(--black); }
.btn-store.outline { background: transparent; color: var(--black); }
.btn-store.outline:hover { background: var(--black); color: white; }
.btn-store svg { width: 18px; height: 18px; flex-shrink: 0; }

.link-scopri {
    display: inline-block; 
    margin-top: 32px;
    font-size: 18px; 
    font-weight: 700; 
    color: var(--black);
    text-decoration: none; 
    opacity: 0.6; 
    transition: opacity 0.2s;
}
.link-scopri:hover { opacity: 1; }

/* =========================================
   SEZIONI: MANIFESTO
========================================= */
.manifesto { padding: 120px 0; text-align: center; background: var(--black); color: white; }
.manifesto p { max-width: 700px; font-size: 20px; color: rgba(255,255,255,0.7); margin: 24px auto; }
.manifesto .label { color: rgba(255,255,255,0.4); }

/* =========================================
   SEZIONI: TALK 
========================================= */
.talk-section { 
    padding: 120px 0; 
    background: var(--white); 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
}

.talk-inner { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 24px; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    align-items: center; 
}

.talk-text p { color: var(--muted); margin-bottom: 16px; }
.talk-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { background: var(--beige); border-radius: 100px; padding: 8px 18px; font-size: 13px; font-weight: 700; color: var(--black); display: inline-block; }

.talk-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-mask-container {
    position: relative;
    width: 100%;
    max-width: 320px; 
    margin: 0 auto;
}

.talk-video-masked, .talk-video {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 0;
    background: transparent;
}

.svg-mask-definitions { display: none; }

.talk-visual p { 
    color: var(--black); 
    margin-top: 15px; 
    font-weight: 600;
    text-align: center; 
    width: 100%;       
    display: block;    
}

/* =========================================
   SEZIONI: COME FUNZIONA & QR
========================================= */
.how { 
    padding: 120px 0; 
    background: var(--beige); 
}

.card { 
    position: relative; 
    background-color: var(--white); 
    height: 100%; /* Sostituito il 400px fisso per far adattare le card alla griglia */
    min-height: 400px; /* Mantiene la tua altezza visiva di base */
    display: flex; 
    flex-direction: column; 
    border-radius: 24px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
}

.card-img { 
    height: 220px; 
    background: #ddd; 
    overflow: hidden; 
    flex-shrink: 0; /* RISOLVE IL PROBLEMA: impedisce all'immagine di rimpicciolirsi */
}

.card-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.card-body { 
    padding: 32px; 
    position: static; 
    text-align: center; 
    flex-grow: 1; /* Permette al contenitore del testo di espandersi se la card diventa più alta */
    display: flex;
    flex-direction: column;
}

.card-body h3 { 
    position: relative; 
    z-index: 2; 
    margin-bottom: 10px;
} 

.card p { 
    color: var(--muted); 
    margin-bottom: 0; 
}

/* ... il resto del tuo codice per .card-locali e .qr-callout rimane invariato ... */

/* =========================================
   PRIVACY NOTICE BOX
========================================= */
.privacy-notice {
    background-color: #2D2D2D;
    border-left: 4px solid #f2c94c;
    padding: 15px;
    margin: 20px auto; /* Auto centra il blocco se ha una larghezza massima */
    max-width: 800px; /* Evita che si espanda a tutto schermo se lo schermo è grande */
    border-radius: 8px;
}

.privacy-notice p {
    color: #ffffff;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left; /* Allinea il testo a sinistra */
}

/* =========================================
   SEZIONE EVENTI 
========================================= */
.eventi { padding: 100px 0; background: #fff; }

/* --- NUOVO LAYOUT EVENTI (Top & Bottom) --- */
/* --- LAYOUT EVENTI (Top & Bottom) --- */
.event-banner-final {
    display: flex;
    flex-direction: column; /* Forza l'immagine sopra e il testo sotto */
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Immagine (Sopra) */
.banner-top {
    position: relative;
    width: 100%;
    height: 250px; /* Altezza su Desktop */
}

.banner-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

/* BOX DATA (Stile verticale ripristinato) */
.date-box { 
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10; 
    background: white; 
    color: black; 
    padding: 14px; 
    border-radius: 16px; 
    text-align: center; 
    min-width: 90px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.date-box .day { font-size: 32px; font-weight: 800; display: block; line-height: 1; }
.date-box .mon { font-size: 16px; font-weight: 700; text-transform: uppercase; display: block; }
.date-box .time { font-size: 12px; font-weight: 800; color: #666; border-top: 1px solid #eee; margin-top: 5px; padding-top: 5px; display: block; }

/* AREA TESTO (Sotto) */
.banner-bottom {
    position: relative;
    padding: 40px 60px;
    color: white;
    min-height: 160px;
}

.info-box h3 { color: white; font-size: 28px; margin: 0; font-weight: 700; line-height: 1.2; }
.info-box p { color: rgba(255,255,255,0.8); margin: 8px 0 0; font-size: 15px; }

/* Pulsante in basso a destra */
.btn-maps {
    position: absolute;
    bottom: 30px;
    right: 40px;
    background: white;
    color: black;
    padding: 14px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* =========================================
   SEZIONI: DOWNLOAD CTA
========================================= */
.download-cta { 
    padding: 140px 0 80px 0; 
    background: var(--black); 
    color: white; 
    text-align: center; 
}
.download-cta .label { color: rgba(255,255,255,0.4); }
.download-cta .lead { color: rgba(255,255,255,0.6); margin: 0 auto 48px; max-width: 500px; }
.store-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-store-lg { display: inline-flex; align-items: center; gap: 10px; min-width: 200px; background: white; color: var(--black); padding: 16px 32px; border-radius: 100px; text-decoration: none; transition: transform .2s; }
.btn-store-lg:hover { transform: scale(1.03); }
.btn-store-lg svg { width: 28px; height: 28px; flex-shrink: 0; }
.btn-sub { font-size: 12px; font-weight: 700; opacity: .5; display: block; line-height: 1; margin-bottom: 4px; }
.btn-main { font-size: 16px; font-weight: 800; display: inline-block; line-height: 1; }

/* =========================================
   FOOTER
========================================= */
footer { 
    background: var(--beige); 
    padding: 80px 0 80px 0; 
    text-align: center; 
    border-top: none; 
}
.foot-logo { height: 58px; margin-bottom: 32px; }
.foot-nav { display: flex; justify-content: center; gap: 32px; margin-bottom: 32px; }
.foot-nav a { text-decoration: none; color: var(--black); font-weight: 700; font-size: 14px; transition: color 0.2s; }
.foot-nav a:hover { color: var(--black); }
.b2b-trigger { color: var(--black) !important; }
.copy { font-size: 13px; color: var(--black); font-weight: 600; }

/* =========================================
   SEZIONE FAQ
========================================= */
section#faq.faq-section { 
    padding: 0 0 100px 0; 
    background-color: var(--beige); 
}
#faq .faq-wrapper { max-width: 800px; margin: 40px auto 0 auto; text-align: left; }
#faq details.faq-item { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(0,0,0,0.1); }
#faq details.faq-item:last-child { border-bottom: none; }
#faq details.faq-item summary {
    font-size: 20px;
    font-weight: 800; 
    color: var(--black);
    cursor: pointer;
    list-style: none; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}
#faq details.faq-item summary::-webkit-details-marker { display: none; }
#faq details.faq-item summary::after { content: '+'; font-size: 32px; font-weight: 300; color: var(--black); transition: transform 0.3s ease; }
#faq details.faq-item[open] summary::after { transform: rotate(45deg); }
#faq .faq-content { margin-top: 12px; padding-right: 40px; padding-bottom: 10px; }
#faq .faq-content p { color: var(--muted); line-height: 1.6; font-size: 16px; }

/* =========================================
   COOKIE BANNER STYLE
========================================= */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 20px;
    padding: 20px 30px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    display: none; 
}
.cookie-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cookie-content p { font-size: 14px; color: var(--black); line-height: 1.4; margin: 0; }
.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }
.btn-cookie { padding: 10px 20px; border-radius: 100px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; border: none; }
.btn-cookie.accept { background: var(--black); color: white; }
.btn-cookie.reject { background: transparent; border: 1px solid var(--black); color: var(--black); }
.btn-cookie:hover { opacity: 0.8; transform: translateY(-2px); }

/* =========================================
   RESPONSIVE & MOBILE
========================================= */
@media (max-width: 900px) {
.hero-full {
        height: auto; 
        
        /* 1. Fix per browser moderni (svh) */
        min-height: 100svh; 
        /* 2. Fix specifico per iOS Safari e in-app browser */
        min-height: -webkit-fill-available;
        /* 3. Variabile JS (se decidi di usare anche lo script) */
        min-height: calc(var(--vh, 1vh) * 100); 
    }

    /* Layout a 1 colonna */
    .talk-inner, .grid {
        grid-template-columns: 1fr; 
        gap: 40px;
        text-align: center;
    }
    
    .phone-mask-container { max-width: 280px; }
    
    .qr-callout {
        flex-direction: column; 
        text-align: center;
        padding: 40px 24px;
        gap: 30px;
    }
    
    .qr-stores { justify-content: center; }

    /* Navigazione */
    .nav-container { flex-direction: row; justify-content: space-between; padding: 15px 24px; }
    .nav-left, .nav-right { display: none; }
    .nav-center { flex: unset; justify-content: flex-start; }
    .burger { display: flex; }
    nav { height: 90px; }

    h1 { font-size: 34px;
         font-weight: 600;
         margin-bottom: 15px;
         line-height: 1.1;
         }

    .hero-content {
        padding-top: 60px; /* Spinge i testi verso il basso */
    }

    .hero-lead {
        font-size: 18px;
        margin-bottom: 25px; /* Spazio ridotto prima del tasto scarica */
    }

    .link-scopri {
        margin-top: 20px; /* Link più vicino ai pulsanti store */
        font-size: 16px;
    }

    .card.r { 
        opacity: 1 !important; 
        transform: none !important; 
        transition: none !important; 
    }

    .grid {
        grid-template-columns: 1fr; 
        gap: 30px;
        text-align: center;
        /* Forza tutte le card della griglia ad avere la stessa altezza */
        grid-auto-rows: 1fr; 
    }
    .card { position: relative; background-color: var(--white); height: 400px; } 
    .card-img { height: 200px; }

    .card-body h3 {
        padding-right: 0; 
        font-size: 22px; /* Mantiene una dimensione leggibile */
    }
}

    /* Eventi mobile */
@media (max-width: 900px) {
    /* 1. Contenitore principale: stack verticale */
    .banner-top { height: 200px; }
    .banner-bottom { padding: 30px 20px 80px 20px; }
    .info-box h3 { font-size: 22px; }
    .btn-maps { bottom: 20px; right: 20px; font-size: 11px; }
    .date-box { transform: scale(0.9); top: 15px; left: 15px; }
}

@media (max-width: 768px) {
    /* Cookie Banner */
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-actions { width: 100%; justify-content: center; }
    .cookie-banner { bottom: 10px; }
}