/* --- 1. VARIABILI & RESET --- */
:root {
    --mustard: #FFC107;
    --ketchup: #D32F2F;
    --night: #121212;
    --charcoal: #1E1E1E;
    --white: #FFFFFF;
    --smoke: #B0B0B0;
    
    --font-head: 'Titan One', cursive;
    --font-body: 'Poppins', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--night);
    color: var(--white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* CENTRATURA GENERALE */
h1, h2, h3 { 
    font-family: var(--font-head); 
    text-transform: uppercase; 
    font-weight: 400; 
    letter-spacing: 1px; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }

/* UTILITY */
.container { width: 92%; max-width: 1200px; margin: 0 auto; }
.text-mustard { color: var(--mustard); }
.text-ketchup { color: var(--ketchup); }
.text-white { color: var(--white); }
.text-black { color: var(--night); }
.text-center { text-align: center; }
.section-padding { padding: 4rem 0; }
.bg-charcoal { background-color: var(--charcoal); }
.relative { position: relative; z-index: 2; }
.mt-3 {margin-bottom: 2.5rem; }

/* --- SELEZIONE TESTO (ROSSO KETCHUP) --- */
::selection {
    background: var(--ketchup);
    color: var(--white);
}

/* --- ANIMAZIONI SCROLL (ENTRATA/USCITA) --- */
/* Stato iniziale: invisibile e spostato in basso */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Transizione fluida */
}

/* Stato visibile: opacità 1 e posizione originale */
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger (ritardo) per elementi in griglia se necessario */
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* BUTTONS */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 24px; font-weight: 500; border-radius: 6px;
    text-transform: uppercase; font-family: var(--font-head); letter-spacing: 1px;
    border: 2px solid transparent; cursor: pointer; transition: 0.3s;
}
.btn-sm { padding: 8px 16px; font-size: 0.9rem; font-weight: 350 !important; }
.btn-lg { padding: 16px 32px; font-size: 1.2rem; }

.btn-mustard { background: var(--mustard); color: var(--night); }
.btn-mustard:hover { background: #e0a800; transform: translateY(-2px); }

.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--night); }

.btn-ketchup { background-color: var(--ketchup); color: var(--white) !important; border: none; }
.btn-ketchup:hover { background-color: #b71c1c; }

/* Bottoni Hero */
.btn-mustard-red { background: var(--mustard); color: var(--ketchup); border: 2px solid var(--mustard); }
.btn-mustard-red:hover { background: #e0a800; color: #a00000; transform: translateY(-2px); }

.btn-white-red { background: var(--white); color: var(--ketchup); border: 2px solid var(--white); }
.btn-white-red:hover { background: #f0f0f0; color: #a00000; transform: translateY(-2px); }

/* Bottone Essenziale Cookie */
.btn-essential { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-essential:hover { background: rgba(255,255,255,0.1); }

.icon { width: 24px; height: 24px; }

/* --- 2. HEADER (GIALLO) --- */
.site-header {
    background: var(--mustard);
    padding: 0.5rem 0; 
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 2px solid var(--night);
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }

.logo-img { height: 50px; width: auto; transition: transform 0.2s; }
.logo-link:hover .logo-img { transform: scale(1.05); }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-weight: 700; font-size: 1rem; color: var(--night); }
.nav-links a:hover { color: var(--ketchup); }

/* --- HAMBURGER MENU ANIMATO --- */
.hamburger { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    z-index: 2000; /* IMPORTANTE: Più alto del menu (999) per non sparire */
    position: relative;
}

.bar { 
    display: block; 
    width: 30px; 
    height: 3px; 
    background: var(--night); /* Colore base (nero su header giallo) */
    margin: 6px 0; 
    transition: 0.4s; /* Velocità animazione */
    border-radius: 2px;
}

/* ANIMAZIONE QUANDO ATTIVO (CLASSE .active AGGIUNTA DAL JS) */
.hamburger.active .bar:nth-child(1) {
    transform: translate(0, 9px) rotate(45deg); /* Ruota prima barra */
    background-color: var(--mustard); /* Diventa Giallo */
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0; /* Nasconde barra centrale */
}

.hamburger.active .bar:nth-child(3) {
    transform: translate(0, -9px) rotate(-45deg); /* Ruota terza barra */
    background-color: var(--mustard); /* Diventa Giallo */
}

@media(max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        position: fixed; top: 0; left: 100%; width: 100%; height: 100vh;
        background: var(--night); flex-direction: column; justify-content: center;
        transition: 0.4s; z-index: 999;
    }
    .nav-links.active { left: 0; }
    .nav-links a { font-size: 1.5rem; color: var(--white); }
    .nav-links a:hover { color: var(--mustard); }
}

/* --- 3. HERO SECTION (CENTRATURA PERFETTA) --- */
.hero {
    height: 90vh; min-height: 600px; position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-align: center; margin-top: 0; padding-top: 0;
}
.hero-slider, .slide, .hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%;}
.slide {
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1s ease-in-out;
    background-attachment: fixed;
}
.slide.active { opacity: 1; }
.hero-overlay { background: radial-gradient(circle, rgba(0,0,0,0.2), var(--night)); z-index: 1; backdrop-filter: blur(4px); }
.hero-content { position: relative; z-index: 10; width: 100%; max-width: 1000px; padding: 0 10px; }

/* FIX CENTRATURA HERO */
.hero h1 { 
    font-size: clamp(2rem, 7vw, 5rem); 
    line-height: 1; 
    margin-bottom: 2rem;
    text-align: center; /* Forza centratura */
    width: 100%;
}
.no-wrap-mobile {
    white-space: nowrap;
    display: inline-block; /* Si comporta come blocco centrato */
}

.hero-sub { font-size: 1.2rem; color: #ddd; margin-bottom: 3rem; font-weight: 700; text-transform: uppercase; }
.cta-group { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* --- FIX MOBILE HERO (DEFINITIVO) --- */
@media(max-width: 768px) {
    
    /* 1. RIDIMENSIONAMENTO DINAMICO */
    .hero h1 { 
        padding: 0 5px; 
        width: 100%;
        /* TRUCCO: Usiamo 'vw' (viewport width). 
           Il testo sarà largo il 10% dello schermo. 
           Si rimpicciolisce da solo se il telefono è stretto. */
        font-size: 10vw; 
        line-height: 1.1; /* Tiene le righe vicine */
    }

    /* 2. CLASSE PER NON SPEZZARE LE PAROLE */
    .keep-together {
        white-space: nowrap; /* Vieta di andare a capo a metà frase */
        display: inline-block;
    }

    /* 3. GESTIONE MARGINE TRA "HOTDOG" E "NOI SIAMO DOGZ" */
    .hero-brand-title {
        margin-top: 10px; /* Spazio richiesto */
        display: block; /* Occupa una riga tutta sua */
    }
    
    /* 4. ASSICURIAMO CHE IL <BR> FUNZIONI */
    .mobile-break {
        display: block;
    }
}

/* --- 4. PROMO MENU (GIGANTE) --- */
.promo-static {
    background-color: var(--mustard);
    padding: 4rem 0;
    text-align: center;
    border-top: 4px solid var(--night);
    border-bottom: 4px solid var(--night);
    scroll-margin-top: 50px;
}

.promo-title {
    font-family: var(--font-head);
    color: var(--ketchup);
    font-size: clamp(2.6rem, 8vw, 5rem); /* Leggermente ridotto per dare spazio alle icone */
    line-height: 1.2;
    text-transform: uppercase;
    margin: 0 0 2rem 0;
}

/* Aggiunge respiro al testo esplicativo */
.promo-spieg {
    padding: 0 2rem; /* 2rem di spazio a destra e sinistra */
    margin-top: 1.5rem;
    line-height: 1.4;
    font-size: 0.95rem; /* Leggermente più piccolo per eleganza */
}

/* --- AGGIUNTA PER GESTIONE TITOLO MOBILE --- */

/* Di base il <br> è nascosto (Desktop: una riga) */
.mobile-break {
    display: none;
}

/* Quando lo schermo è più piccolo di 900px (Tablet/Mobile) */
@media(max-width: 900px) {
    .promo-title {
        /* Importante: permette al testo di andare a capo */
        white-space: normal; 
        /* Riduce leggermente l'interlinea per tenerlo compatto */
        line-height: 1.1; 
    }

    .mobile-break {
        /* Mostra il <br> forzando l'a capo nel punto deciso */
        display: block; 
    }
}

/* Equazione Visiva ESPLOSIVA */
.promo-equation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap; 
}

/* Immagini Giganti */
.eq-img {
    height: 90px; /* Molto più grandi */
    width: auto;
    object-fit: contain;
}
.menu-img {
    height: 180px; /* Menu ancora più grande */
}

/* Testo Gigante */
.eq-symbol {
    font-family: var(--font-head);
    font-size: 5rem;
    color: var(--white);
    line-height: 1;
}

.eq-text {
    font-family: var(--font-head);
    font-size: 6rem;
    color: #000000; 
    line-height: 1;
}

@media(max-width: 600px) {
    /* Forza tutto su una riga e riduce lo spazio */
    .promo-equation {
        gap: 5px; /* Spazio minimo tra gli elementi */
        flex-wrap: nowrap; /* VIETATO andare a capo */
        padding: 0 10px; /* Margine laterale */
    }

    /* Rimpicciolisci i simboli + e = */
    .eq-symbol, .eq-text { 
        font-size: 2.4rem; /* Molto più piccoli */
    }
    
    /* Rimpicciolisci le immagini */
    .eq-img { height: 45px; } /* Hotdog piccolo */
    .menu-img { height: 70px; } /* Menu un po' più grande ma contenuto */
}


/* --- 5. MUST WANTED (GRIGLIA 2x2) --- */
.section-title {
    font-size: clamp(2rem, 7vw, 4.5rem); 
    margin-bottom: 2rem; 
}

/* Griglia forzata a 2 colonne su desktop */
.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* 2x2 */
    gap: 2rem; 
}

@media(max-width: 768px) {
    .cards-grid { 
        grid-template-columns: 1fr; /* 1 colonna */
        /* AGGIUNTA: Limita la larghezza massima su mobile */
        max-width: 380px; 
        margin: 0 auto; /* Centra le card nella pagina */
        gap: 1.5rem; /* Riduciamo leggermente lo spazio tra le card */
    }

    /* Riduciamo l'altezza dell'immagine per renderla meno invasiva */
    .card-image {
        height: 180px; /* Desktop era 250px -> Mobile 180px */
    }

    /* Compattiamo gli spazi interni */
    .card-info {
        padding: 1rem; /* Desktop era 1.5rem -> Mobile 1rem */
    }

    /* Riduciamo leggermente il titolo */
    .card-info h3 {
        font-size: 1.3rem; 
    }

    /* Adattiamo la descrizione */
    .card-info p {
        font-size: 0.85rem;
        height: auto; /* Togliamo l'altezza fissa per evitare buchi vuoti */
        margin-bottom: 1rem;
    }
    
    /* Aggiustiamo la barra prezzi in basso */
    .card-bottom {
        padding-top: 0.8rem;
    }
    .price { font-size: 1rem; }
    .promo-price { font-size: 1.2rem; }
}

.food-card { 
    background: var(--charcoal); 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid #333; 
    transition: 0.3s;
    display: block; /* Rende il link blocco */
}
.food-card:hover { transform: translateY(-5px); border-color: var(--mustard); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.card-image { 
    height: 250px; 
    overflow: hidden; 
    background: #000; 
    position: relative; /* FONDAMENTALE PER POSIZIONARE L'ETICHETTA */
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.food-card:hover img { transform: scale(1.1); }
.card-info { padding: 1.5rem; }
.card-info h3 { color: var(--mustard); margin-bottom: 0.5rem; font-size: 1.5rem; }
.card-info p { color: var(--smoke); font-size: 0.9rem; height: 3rem; margin-bottom: 1.5rem; }

.card-bottom { 
    display: flex; 
    /* Cambiato da space-between a flex-start per controllarli meglio */
    justify-content: flex-end; 
    align-items: center; 
    border-top: 1px solid #333; 
    padding-top: 1rem; 
    gap: 1.5rem; /* Spazio fisso tra i due prezzi */
}

/* Opzionale: Se vuoi spostare l'intero blocco prezzi leggermente a destra rispetto al bordo */
.card-bottom > * {
    margin-right: 30px; /* Sposta leggermente tutto verso destra (quindi più "al centro") */
}

.price { font-weight: 700; font-size: 1.2rem; color: var(--white); }
/* Nuovo stile Promo Price Rosso */
.promo-price { 
    color: var(--ketchup); 
    font-weight: 400; 
    font-size: 1.4rem; 
    font-family: var(--font-head);
}

/* --- NUOVI STILI ETICHETTE (BADGES) --- */
.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 200 !important;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    transform: rotate(3deg); /* Piccolo tocco "Street" */
}

/* Variante Gialla (Best Seller) */
.badge-yellow {
    background-color: var(--mustard);
    color: var(--white); /* Richiesta scritta bianca */
}

/* Variante Rossa (Hot) */
.badge-red {
    background-color: var(--ketchup);
    color: var(--white); /* Richiesta scritta bianca */
}


/* --- 6. VALUES (MODIFICATO: NUOVA STRUTTURA) --- */
/* Spaziatura paragrafo introduttivo */
.values-intro {
    color: var(--smoke);
    font-size: 1.1rem;
    margin: 1rem 0 4rem 0; /* Spazio sopra e sotto richiesto */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 2rem; 
    text-align: center; 
}

/* Stile per le icone PNG gialle */
.icon-yellow {
    width: 60px;
    height: auto;
    margin: 0 auto 1.5rem auto;
    display: block;
    /* FILTRO PER COLORE MUSTARD #FFC107 */
    filter: invert(83%) sepia(26%) saturate(6084%) hue-rotate(359deg) brightness(102%) contrast(106%);
}

.feature-item p {
    color: var(--white); /* Testo bianco come richiesto */
    padding-bottom: 2rem;
}


/* --- 7. INSTAGRAM, FOOTER & EXTRAS --- */
.insta-section { position: relative; overflow: hidden; }

/* Desktop: 6 colonne */
.insta-grid { 
    display: grid; 
    grid-template-columns: repeat(6, 1fr); 
    transition: all 0.5s ease;
}

.insta-grid img { 
    width: 100%; 
    height: 100%; 
    aspect-ratio: 1/1; 
    object-fit: cover; 
    filter: grayscale(0%); /* Foto sempre a colori o come preferisci */
    display: block;
}
.insta-grid img:hover { filter: grayscale(0); }
.insta-overlay { 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: rgba(0,0,0,0.2); /* Leggero velo scuro su tutto */
    opacity: 1; /* SEMPRE VISIBILE */
    pointer-events: none; /* Permette di vedere sotto, ma il bottone riattiva i click */
}
/* Bottone Trasparente Personalizzato */
.btn-mustard-transparent {
    background-color: rgba(255, 193, 7, 0.2); /* Giallo al 70% di opacità */
    color: var(--night);
    border: 1px solid var(--mustard);
    pointer-events: auto; /* Riattiva il click sul bottone */
    backdrop-filter: blur(4px); /* Effetto vetro carino */
    transition: 0.3s;
}

.btn-mustard-transparent:hover {
    background-color: rgba(255, 193, 7, 1); /* Opaco al passaggio del mouse */
    transform: scale(1.05);
}
.insta-section:hover .insta-overlay { opacity: 1; }
@media(max-width: 600px) { .insta-grid { 
        grid-template-columns: repeat(3, 1fr) !important; /* Solo 3 colonne visibili */
    } }

/* --- 8. FINAL CTA (FOODPORN) - MODIFICATO --- */
.final-cta { 
    position: relative; 
    /* Altezza fissa grande per far vedere bene la foto */
    min-height: 600px; 
    
    /* Centratura perfetta del contenuto */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center; 
    
    background-size: cover; 
    background-position: center; 
    overflow: hidden; 
}

.cta-overlay-blur { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.5); /* Scurisce leggermente per far leggere il neon */
    backdrop-filter: blur(2px);   /* Sfocatura leggera */
}

.neon-text { 
    font-family: var(--font-head);
    font-size: clamp(3rem, 8vw, 5.5rem); 
    color: #fff; 
    margin-bottom: 5rem;
    margin-left: 20px; 
    line-height: 1;
    animation: neon-flicker 1s infinite alternate;

    /* Effetto Neon Potenziato (Glow Rosso) */
    text-shadow: 
        0 0 10px var(--ketchup), 
        0 0 20px var(--ketchup), 
        0 0 40px var(--ketchup),
        0 0 80px var(--ketchup); 
}

/* Bottone più grande e massiccio */
.final-cta .btn-outline {
    border-width: 3px;
    font-weight: 350;
    font-size: 1.4rem;
    padding: 1rem 3rem;
    background: rgba(0,0,0,0.7); /* Leggero fondo scuro per staccare dalla foto */
}
.final-cta .btn-outline:hover {
    background: var(--white);
    color: var(--ketchup); /* Testo rosso all'hover */
    border-color: var(--white);
}

/* ANIMAZIONE FLICKER NEON */
@keyframes neon-flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        text-shadow: 
            0 0 10px var(--ketchup), 
            0 0 20px var(--ketchup), 
            0 0 40px var(--ketchup),
            0 0 80px var(--ketchup);
        opacity: 1;
    }
    20%, 24%, 55% {
        text-shadow: none;
        opacity: 0.5; /* Breve calo di luminosità */
    }
}

/* --- SEZIONE DICONO DI NOI (CHAT STYLE) --- */
.reviews-chat-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.chat-bubble {
    position: relative;
    padding: 1.5rem;
    border-radius: 15px;
    max-width: 80%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-family: var(--font-body);
}

/* Stile Messaggio Sinistra (Standard) */
.chat-bubble.left {
    align-self: flex-start;
    background: var(--night);
    border-left: 4px solid var(--mustard);
    border-radius: 0 15px 15px 15px;
}

/* Stile Messaggio Destra (Accent) */
.chat-bubble.right {
    align-self: flex-end;
    background: #2a2a2a; /* Leggermente più chiaro per stacco */
    border-right: 4px solid var(--ketchup);
    border-radius: 15px 0 15px 15px;
    text-align: right;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Fix per header a destra */
.chat-bubble.right .chat-header {
    flex-direction: row-reverse; /* Inverte ordine nome/stelle */
}

.chat-user { color: var(--mustard); }
.stars { color: var(--mustard); letter-spacing: 2px; }

/* Variazioni colori per destra */
.chat-bubble.right .chat-user.text-ketchup { color: var(--ketchup); }
.chat-bubble.right .stars.text-ketchup { color: var(--ketchup); }

.chat-bubble p {
    margin: 0;
    color: #ddd;
    line-height: 1.4;
    font-size: 1rem;
}

/* Mobile Responsiveness */
@media(max-width: 480px) {
    .chat-bubble { max-width: 95%; }
}

/* --- SEZIONE LOCATION (MAPPA & CONTATTI) --- */
.location-section {
    border-top: 1px solid #333;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% Info, 50% Mappa */
    gap: 0; /* Nessuno spazio, attaccati come nella foto */
    background: var(--night);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
}

/* Colonna Info */
.location-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
}

.info-block h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--mustard);
    display: inline-block;
    padding-bottom: 5px;
}

.address-text {
    font-size: 1.1rem;
    color: var(--smoke);
    line-height: 1.6;
}

/* Lista Orari */
.hours-list {
    list-style: none;
    padding: 0;
}
.hours-list li {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    max-width: 300px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}
.hours-list li span {
    color: var(--mustard);
    font-weight: 700;
}

/* Link Contatti */
.contact-link {
    display: block;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.contact-link:hover {
    color: var(--mustard);
    padding-left: 10px; /* Piccolo movimento hover */
}

/* Colonna Mappa */
.location-map {
    position: relative;
    min-height: 400px;
    width: 100%;
}

.map-frame {
    width: 100%;
    height: 100%;
    /* FILTRO DARK MODE PER LA MAPPA */
    filter: invert(90%) hue-rotate(180deg) brightness(90%) contrast(85%);
}

/* MOBILE */
@media(max-width: 900px) {
    .location-grid {
        grid-template-columns: 1fr; /* Una colonna */
    }
    .location-map {
        height: 350px; /* Altezza fissa su mobile */
    }
    .location-info {
        padding: 2rem;
    }
}

/* --- FOOTER DEFINITIVO --- */
.site-footer {
    background-color: #000000; /* Nero Totale */
    border-top: 4px solid var(--mustard); /* Linea Gialla Superiore */
    padding: 4rem 0 2rem 0;
    margin-top: 0;
    font-family: var(--font-body);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; /* La prima colonna è più larga */
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* BRAND COLUMN */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    width: 140px;
    height: auto;
    /* IMPORTANTE: Inverte i colori se il logo è nero png, facendolo diventare bianco */
    filter: invert(1) brightness(100%); 
}

.brand-desc {
    color: var(--smoke);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* SOCIAL ICONS */
.footer-social {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #222; /* Cerchio scuro sfondo */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    border: 1px solid #333;
}

.social-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    /* Rende le icone nere bianche */
    filter: invert(1); 
}

.social-btn:hover {
    background: var(--mustard);
    border-color: var(--mustard);
    transform: translateY(-3px);
}
/* Al passaggio del mouse, l'icona torna nera per contrasto col giallo */
.social-btn:hover img {
    filter: invert(0); 
}


/* COLONNE LINK */
.footer-col h4 {
    color: var(--mustard);
    font-weight: 350;
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a, .footer-links span {
    color: var(--smoke);
    text-decoration: none;
    font-size: 1rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 5px; /* Effetto scorrimento */
}

/* COPYRIGHT BAR */
.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #555;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* RESPONSIVE FOOTER */
@media(max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* Una colonna centrale */
        text-align: center;
        gap: 2.5rem;
    }

    .footer-brand {
        align-items: center; /* Centra logo e social */
    }

    .footer-social {
        justify-content: center;
    }
}

.whatsapp-float { position: fixed; bottom: 20px; right: 20px; background: #f5f5f5; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 999; transition: 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }


/* COOKIE BANNER (High Visibility) */
.cookie-banner { 
    position: fixed; bottom: 0; left: 0; right: 0; 
    background: #000; 
    padding: 2rem; 
    border-top: 4px solid var(--mustard); 
    z-index: 10000; 
    box-shadow: 0 -10px 40px rgba(255,193,7,0.2); 
    display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center;
    transition: transform 0.3s; 
}

.cookie-banner h4 { color: var(--mustard); font-size: 1.5rem; margin-bottom: 0.5rem; }
.cookie-banner p { color: #fff; max-width: 600px; margin: 0 auto; }

.cookie-banner.hidden { transform: translateY(100%); }
.cookie-buttons { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }



/* --- BLOG SECTION (HYPE MODE - FIX VISIVO) --- */
.blog-hero {
    background-color: var(--mustard);
    /* Ho aumentato il padding inferiore a 6rem per dare aria al titolo */
    padding: 6rem 0 6rem 0; 
    text-align: center;
    border-bottom: 4px solid var(--night);
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1h2v2H1V1zm4 0h2v2H5V1zm4 0h2v2H9V1zm4 0h2v2h-2V1zm4 0h2v2h-2V1zM1 5h2v2H1V5zm4 0h2v2H5V5zm4 0h2v2H9V5zm4 0h2v2h-2V5zm4 0h2v2h-2V5zM1 9h2v2H1V9zm4 0h2v2H5V9zm4 0h2v2H9V9zm4 0h2v2h-2V9zm4 0h2v2h-2V9zM1 13h2v2H1v-2zm4 0h2v2H5v-2zm4 0h2v2H9v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zM1 17h2v2H1v-2zm4 0h2v2H5v-2zm4 0h2v2H9v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2z' fill='%23121212' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.blog-title {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 0.9;
    color: var(--night);
    margin-bottom: 1.5rem; /* Aumentato leggermente lo spazio sotto il titolo */
    text-shadow: 4px 4px 0px var(--white);
}

.blog-intro {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--night);
    font-weight: 600;
    padding: 0 1rem; /* Sicurezza per mobile */
}




/*   SEZIONE CSS BLOG   */
/* Bottone Outline Nero (Perfetto su sfondo Giallo) */
.btn-outline-dark {
    border: 2px solid var(--night);
    color: var(--night);
    background: transparent;
}
.btn-outline-dark:hover {
    background: var(--night);
    color: var(--mustard);
    transform: translateY(-2px);
}

/* GRIGLIA ARTICOLI (GHOST MODE) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    /* FIX: Rimosso margin-top negativo (-3rem). Ora è 3rem positivo per distanziare. */
    margin-top: 3rem; 
    margin-bottom: 4rem;
    position: relative;
    z-index: 10;
}

.article-card {
    background: var(--charcoal);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
}

/* Effetto "Locked" per WIP */
.article-card.locked {
    opacity: 0.7;
    filter: grayscale(0.8);
    cursor: not-allowed;
}

.article-card.locked:hover {
    transform: translateY(-2px);
    border-color: var(--mustard);
    filter: grayscale(0); /* Si colora all'hover per dare speranza */
    opacity: 1;
}

.lock-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--ketchup);
    color: var(--white);
    padding: 5px 10px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    border-radius: 4px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-img {
    height: 200px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.article-content {
    padding: 1.5rem;
}

.article-tag {
    color: var(--mustard);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.article-title {
    font-family: var(--font-head);
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* NEWSLETTER BOX */
.newsletter-section {
    background: #111;
    border-top: 1px solid #333;
    padding: 4rem 0;
    text-align: center;
}

.newsletter-box {
    max-width: 500px;
    margin: 2rem auto 0 auto;
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 15px;
    border-radius: 6px;
    border: 2px solid #333;
    background: #000;
    color: white;
    font-family: var(--font-body);
}

@media(max-width: 600px) {
    .newsletter-box { flex-direction: column; }
    .blog-grid { margin-top: 2rem; }
}




/*   SEZIONE STORIA   */

/* Hero Storia: Immagine Scura ed Emozionale */
.story-hero {
    height: 70vh;
    min-height: 500px;
    background-image: url('images/hero1.webp'); /* Assicurati di avere questa foto o usa hero4.webp */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Effetto Parallasse */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}
.story-hero::before {
    content: ''; position: absolute; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.6); /* Velo scuro per leggerezza testo */
    backdrop-filter: blur(2px);
}

/* Typography Manifesto */
.story-headline {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 0.95;
    color: var(--white);
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
    position: relative; z-index: 2;
    margin-bottom: 2rem;
}

.hero-sub {
    font-size: clamp(0.2rem, 5vw, 1rem);
}

/* Layout Zig-Zag (Testo + Immagine Alternati) */
.story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0; /* Full width */
    overflow: hidden;
}

.story-content {
    padding: 5rem;
    background: var(--charcoal);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.story-content.light { background: #252525; } /* Leggera variazione per stacco */

.story-img-box {
    height: 100%;
    min-height: 500px;
    position: relative;
}
.story-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Typo nel blocco storia */
.story-supertitle {
    color: var(--mustard);
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    display: block;
}
.story-title {
    font-size: 3rem;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 2rem;
}
/* --- NUOVE ICONE LISTA STORIA --- */
.story-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.story-list-item {
    display: flex;
    align-items: flex-start; /* Allinea l'icona in alto con la prima riga di testo */
    margin-bottom: 1.2rem;
    gap: 12px; /* Spazio tra icona e testo */
}

.story-icon {
    width: 24px;
    height: 24px;
    fill: var(--mustard); /* Colore Giallo Brand */
    flex-shrink: 0; /* Impedisce all'icona di schiacciarsi */
    margin-top: 3px; /* Aggiustamento ottico fine per l'allineamento */
}

/* Rimuove il margine inferiore standard dal testo dentro la lista */
.story-list-item .story-text {
    margin-bottom: 0;
}
.story-text {
    font-size: 1.1rem;
    color: var(--smoke);
    margin-bottom: 1.5rem;
}

/* Quality Icons Grid (SVG fatti a mano) */
.quality-section {
    background: var(--mustard);
    padding: 6rem 0;
    text-align: center;
    color: var(--night);
}
.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}
.quality-item svg {
    width: 80px; height: 80px;
    margin-bottom: 1.5rem;
    fill: var(--night);
}
.quality-item h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.quality-item p { font-size: 1rem; line-height: 1.4; font-weight: 500; }

/* RESPONSIVE */
@media(max-width: 900px) {
    .story-block { grid-template-columns: 1fr; } /* Diventa colonna unica */
    .story-img-box { height: 300px; min-height: auto; order: -1; /* Immagine sempre sopra */ }
    .story-content { padding: 3rem 1.5rem; }
    .story-title { font-size: 2.2rem; }
}



/* --- PAGINA 404 (STILE CLASSICO & IMPACT) --- */

.error-container {
    background-color: var(--night); /* Sfondo scuro elegante */
    min-height: 80vh; /* Occupa quasi tutto lo schermo */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px 80px; /* Spazio per l'header fisso */
    position: relative;
}

/* Texture di sfondo opzionale per dare profondità */
.error-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}

.error-content {
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.error-code {
    font-family: var(--font-head); /* Titan One */
    font-size: 10rem; /* Molto grande e impattante */
    line-height: 1;
    color: var(--mustard); /* Giallo brand */
    margin-bottom: 1rem;
    text-shadow: 4px 4px 0px rgba(0,0,0,0.5); /* Ombra solida per staccarlo dallo sfondo */
}

.error-title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.error-desc {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Adattamento Mobile */
@media(max-width: 768px) {
    .error-code {
        font-size: 6rem; /* Più contenuto su smartphone */
    }
    .error-title {
        font-size: 1.8rem;
    }
    .error-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .error-actions .btn {
        width: 100%;
    }
}


/* --- BLOCCA SCROLL --- */
body.no-scroll {
    overflow: hidden !important; /* Blocca scorrimento */
    height: 100vh; /* Blocca altezza */
}

/* --- PRELOADER STRUTTURA --- */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--night);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.1s linear;
}

/* LA SCRITTA INIZIALE */
.loader-text {
    /* [FIX 1] FONDAMENTALE: Rende l'elemento zoomabile */
    display: block; 
    
    font-family: 'Titan One', sans-serif;
    font-size: 8rem;
    color: transparent;
    -webkit-text-stroke: 3px var(--mustard);
    
    /* [FIX 2] MIRINO DELLO ZOOM */
    /* Invece di 'center' (che zooma nel buco tra O e G),
       puntiamo sulla 'O' (circa 30% larghezza, 60% altezza) */
    transform-origin: 30% 58%; 

    will-change: transform, opacity;
    animation: waiting-pulse 1s infinite alternate;
}

/* Animazione di attesa (respiro leggero) */
@keyframes waiting-pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 1; }
}

/* --- L'ESPLOSIONE (Si attiva via JS) --- */
.loader-text.exploding {
    /* DURATA: 0.8s (Velocissimo)
       CURVA: ease-in (Accelera fino alla fine, non frena mai) */
    animation: mega-zoom 0.8s ease-in forwards;
}

/* Keyframes dell'Esplosione "NO BRAKES" */
@keyframes mega-zoom {
    0% {
        transform: scale(1);
        color: transparent; 
        -webkit-text-stroke: 3px var(--mustard);
        opacity: 1;
    }
    15% {
        /* Si riempie di giallo e resta ferma un attimo */
        color: var(--mustard);
        transform: scale(1); 
        opacity: 1;
    }
    /* Diamo un taglio netto: dal 15% al 100% è solo ZOOM PURO senza pause */
    100% {
        transform: scale(300); /* 300x Zoom */
        color: var(--mustard);
        opacity: 1; /* Resta giallo solido fino all'impatto */
    }
}

/* Mobile responsive */
@media(max-width: 768px) {
    .loader-text {
        font-size: 4rem;
        -webkit-text-stroke: 2px var(--mustard);
    }
}



/* --- GESTIONE TITOLO HERO MOBILE/DESKTOP --- */

/* 1. Il <br> speciale: Di base è invisibile (Desktop) */
.mobile-break {
    display: none; 
}

/* 2. Su Mobile compare e spezza la riga */
@media(max-width: 768px) {
    .mobile-break {
        display: block; 
    }
    
    /* Riduciamo l'interlinea su mobile per tenere le 3 righe compatte */
    .hero h1 {
        line-height: 1.1 !important; 
    }
    
    /* Riduciamo un po' il margine prima di "NOI SIAMO DOGZ" su mobile */
    .hero-brand-title {
        margin-top: 5px; 
    }
}

/* 3. Stile base per il titolo del brand (margine che volevi) */
.hero-brand-title {
    display: block; /* Va sempre a capo */
    margin-top: 15px; /* Spazio "non troppo" tra HOTDOG e NOI SIAMO DOGZ */
}



/* --- FIX SALVAVITA PER IMMAGINI NERE SU MOBILE --- */
@media(max-width: 1024px) {
    /* 1. HOME: Sostituiamo il cerchio stretto con una sfumatura verticale leggera */
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.3), var(--night)) !important;
        /* Era: radial-gradient... che stringeva troppo i bordi neri */
    }

    /* 2. STORIA: Alleggeriamo la patina nera */
    .story-hero::before {
        background: rgba(0,0,0,0.3) !important; 
        /* Era 0.6 (60% nero), ora è 0.3 (30% nero) -> Molto più luminoso */
    }

    /* 3. SICUREZZA POSIZIONE (Ribadisco il fix precedente) */
    .slide, .story-hero {
        background-attachment: scroll !important;
        background-position: center top !important; /* Proviamo 'top' se il soggetto è in alto */
        background-size: cover !important;
    }
}