:root {
    --bg-color: #F4F6F5; /* Grigio-verde chiarissimo */
    --text-main: #142118; /* Nero con una punta di verde foresta */
    --text-muted: #7A8C81;
    --emerald-green: #0EA672; /* Verde profondo stile Muslim Pro */
    --gold-accent: #C5A059; /* Oro premium */
    --card-bg: #ffffff;
    --card-bg-grid: #ffffff; 
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 70px;
    /* PRIMA ERA 0.85, ORA LO METTIAMO A 0.98 */
    background: rgba(20, 33, 24, 0.98); 
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--gold-accent);
    flex-shrink: 0;
    z-index: 1001; /* Lo tiene sopra al menu a tendina */
}

.logo span {
    color: var(--emerald-green);
}

/* Link Centrati (Senza usare transform che rompe il mega menu) */
.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content; /* Questa è la magia che centra senza imprigionare! */
}

.nav-link {
    color: rgba(255, 255, 255, 0.85); /* Bianco leggermente trasparente */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffffff;
}

/* Bottone invisibile sui PC */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001; /* Deve stare sempre sopra al menu a tendina */
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: white; /* Lineette bianche */
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* =========================================
   🌅 HERO SECTION (Intestazione)
   ========================================= */
.hero {
    position: relative;
    text-align: center;
    padding: 180px 20px 140px;
    background-color: var(--text-main);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 33, 24, 0.75); /* Overlay scuro */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.bismillah {
    font-family: serif;
    font-size: 1.6rem;
    color: var(--gold-accent);
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero h1 {
    font-size: 4.8rem;
    font-weight: 700;
    letter-spacing: -2.5px;
    line-height: 1.05;
    margin: 0 0 25px 0;
    color: white;
}

.hero h1 span {
    color: var(--gold-accent);
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: -0.5px;
}

/* Griglia Prodotti su sfondo grigio-verde coordinato */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto 100px;
    background-color: var(--bg-color); /* Lo sfondo della griglia non è più bianco puro */
}

.product-card {
    background: var(--card-bg-grid);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(14, 166, 114, 0.05); /* Ombra leggermente verde */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border-top: 3px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(14, 166, 114, 0.1);
    border-top: 3px solid var(--gold-accent); /* Tocco dorato all'hover stile Muslim Pro */
}

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

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    color: var(--text-main); /* Testo foresta profondo */
}

.card-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

/* Bottone Compra - Verde Smeraldo e Oro per un effetto premium */
.buy-btn {
    display: inline-block;
    background-color: var(--emerald-green);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.buy-btn:hover {
    background-color: var(--text-main); /* Cambia in nero profondo foresta all'hover */
    color: var(--gold-accent);
    transform: scale(1.02);
}

/* Stili Form (Upload) coordinate */
.form-container {
    max-width: 500px;
    margin: 80px auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    border-top: 4px solid var(--emerald-green);
}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-main); }
.form-group input, .form-group textarea {
    width: 100%; padding: 12px; border: 1px solid #d2d2d7; border-radius: 10px; font-size: 1rem;
    font-family: inherit; transition: border-color 0.2s; box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--emerald-green);
    box-shadow: 0 0 0 3px rgba(14, 166, 114, 0.1);
}
.submit-btn {
    width: 100%; background: var(--emerald-green); color: white; border: none; padding: 15px;
    border-radius: 10px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: 0.2s;
}
.submit-btn:hover { background: #0b8a5d; }
/* =========================================
   ✨ SEZIONE BENEFICI (HOME PAGE)
   ========================================= */
.info-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.info-section h2 {
    font-size: 3rem;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}
.info-section h2 span {
    color: var(--gold-accent);
}
.info-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 60px;
    line-height: 1.6;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}
.feature-box {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(14, 166, 114, 0.05);
    transition: transform 0.3s ease;
    text-align: left;
    border-top: 3px solid transparent;
}
.feature-box:hover {
    transform: translateY(-5px);
    border-top: 3px solid var(--emerald-green);
}
.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: inline-block;
}
.feature-box h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}
.feature-box p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
    margin: 0;
}

/* Bottone invisibile sui PC */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 999; /* Deve stare sempre sopra a tutto */
}
.hamburger span {
    width: 25px;
    height: 2px;
    background-color: white; /* Lineette bianche */
    border-radius: 3px;
    transition: all 0.3s ease;
}


/* =========================================
   📱 MENU TELEFONO (Sipario Stile iOS)
   ========================================= */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex; /* Dobbiamo rimettere flex qui */
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(20, 33, 24, 0.98);
        backdrop-filter: saturate(180%) blur(25px);
        -webkit-backdrop-filter: saturate(180%) blur(25px);
        flex-direction: column; /* FORZIAMO I LINK A METTERSI IN COLONNA */
        padding: 30px 20px 40px;
        gap: 25px; /* Meno spazio tra i link per farli stare tutti */
        border-radius: 0 0 25px 25px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        box-shadow: 0 20px 50px rgba(0,0,0,0.6);
        box-sizing: border-box; /* Essenziale per non far sbordare il menu lateralmente */
        
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
        z-index: -1;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.3rem; /* Link più grandi su mobile, stile Apple */
        font-weight: 600;
        width: 100%;
        text-align: center;
    }

    /* Animazione Hamburger che diventa una X */
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
/* =========================================
   🏛️ FOOTER PREMIUM
   ========================================= */
.footer {
    background-color: #0b120d;
    color: #ffffff;
    padding: 60px 20px 20px;
    margin-top: auto; /* ← QUESTO È QUELLO CHE LO INCOLLA IN BASSO */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.footer-brand h2 span {
    color: #d4af37; /* Il tuo accento Oro */
}

.footer-brand p {
    opacity: 0.7;
    max-width: 300px;
    line-height: 1.6;
    font-size: 0.95rem;
}

.footer-links, .footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h3, .footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #d4af37; /* Accento Oro */
}

.footer-links a, .footer-social a {
    color: #ffffff;
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.3s ease, color 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover, .footer-social a:hover {
    opacity: 1;
    color: #d4af37;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0.8;
    font-size: 0.9rem;
}

/* 📱 ADATTAMENTO PER I TELEFONI */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .footer-brand p {
        margin: 0 auto;
    }
}
/* =========================================
   🍪 BANNER COOKIE GDPR
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: -150px; /* Nascosto fuori dallo schermo di default */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(11, 18, 13, 0.95); /* Il tuo verde scuro */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0; /* Arrotondato solo sopra su PC */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 9999; /* Deve stare sopra a tutto il resto */
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.show {
    bottom: 0; /* L'animazione lo fa salire quando serve */
}

.cookie-banner p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

.cookie-btn {
    background-color: #d4af37; /* Il tuo accento dorato */
    color: #0b120d;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    background-color: #fce883;
    transform: scale(1.05);
}

/* 📱 ADATTAMENTO PER I TELEFONI */
@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        border-radius: 15px; /* Arrotondato su tutti i lati su mobile */
        width: 85%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .cookie-banner.show {
        bottom: 20px; /* Fluttuante staccato dal fondo sul telefono */
    }
    .cookie-btn {
        width: 100%;
    }
}
/* =========================================
   🪄 MEGA MENU A TENDINA (La Magia Apple Definitiva)
   ========================================= */
.nav-dropdown {
    padding: 24px 0; 
    cursor: pointer;
}

.mega-menu {
    position: fixed;
    top: 70px; 
    left: 0;
    width: 100vw; 
    
    /* STESSO IDENTICO COLORE DELLA NAVBAR: 0.98 */
    background: rgba(20, 33, 24, 0.98); 
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    
    margin-top: -1px; 
    border-top: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    
    padding: 50px 0 60px 0; 
    display: flex;
    justify-content: center;
    gap: 150px; 
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1); 
    z-index: 999;
}

/* 2. IL TELO SFUOCATO (APPLE BLUR OVERLAY) */
/* Generiamo un telo magico che parte dalla fine del menu e copre tutto il sito */
.mega-menu::before {
    content: '';
    position: absolute;
    top: 100%; /* Parte esattamente da dove finisce la tendina */
    left: 0;
    width: 100vw;
    height: 100vh; /* Alto quanto tutto lo schermo */
    background: rgba(0, 0, 0, 0.5); /* Scurisce l'immagine sotto */
    backdrop-filter: blur(12px); /* Sfuoca il sito in stile iOS */
    -webkit-backdrop-filter: blur(12px);
    cursor: default; /* Il mouse torna normale sul telo */
}

.nav-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-column {
    display: flex;
    flex-direction: column;
    gap: 16px; 
    min-width: 200px; 
    position: relative;
    z-index: 2; /* Assicura che i testi stiano sopra il telo sfuocato */
}

.mega-column h4 {
    color: rgba(255, 255, 255, 0.4); 
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 10px 0;
}

.mega-column a {
    color: rgba(255, 255, 255, 0.95); 
    text-decoration: none;
    font-size: 1.8rem; 
    font-weight: 600;
    letter-spacing: -0.5px;
    transition: color 0.2s ease, transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.mega-column a.small-link {
    font-size: 1.15rem; 
    font-weight: 500;
    color: rgba(255, 255, 255, 0.65);
}

.mega-column a:hover {
    color: var(--gold-accent); 
    transform: translateX(8px); 
}

/* NASCONDE SU TELEFONO */
@media (max-width: 768px) {
    .mega-menu { display: none !important; }
}

/* =========================================
   📱 ADATTAMENTO GENERALE PER TELEFONI (Responsive)
   ========================================= */
@media (max-width: 768px) {
    
    /* 1. Hero Section (Testo più proporzionato) */
    .hero {
        padding: 140px 15px 100px; /* Meno spazio inutile sopra e sotto */
    }
    .hero h1 {
        font-size: 3rem; /* Titolo più piccolo per non sbordare */
        letter-spacing: -1px;
    }
    .hero p {
        font-size: 1.1rem; /* Sottotitolo più leggibile */
        padding: 0 10px;
    }

    /* 2. Sezione Info (Perché scegliere Halal) */
    .info-section {
        padding: 60px 15px; /* Meno padding laterale per dare spazio al testo */
    }
    .info-section h2 {
        font-size: 2.2rem;
    }
    .info-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    /* Griglia Vantaggi in colonna singola pulita */
    .features-grid {
        grid-template-columns: 1fr; /* Una sola colonna invece che affiancati */
        gap: 25px;
    }

    /* 3. Griglia Prodotti dello Shop */
    .product-grid {
        grid-template-columns: 1fr; /* 1 prodotto per riga sul telefono (come Amazon) */
        padding: 10px 15px;
        gap: 20px;
    }
    .product-card img {
        height: 200px; /* Immagini leggermente più basse per non occupare tutto lo schermo */
    }

    /* 4. Form di Upload */
    .form-container {
        margin: 40px 15px;
        padding: 25px 15px;
    }
}
.product-grid {
    /* (Lascia le regole che ci sono già e aggiungi questa:) */
    min-height: 60vh; 
}
/* =========================================
           🎬 TICKER SCORREVOLE (Stile Novità)
           ========================================= */
        .scrolling-ticker {
            width: 100%;
            overflow: hidden; /* Nasconde ciò che esce dai bordi */
            background-color: var(--card-bg);
            border-top: 1px solid rgba(14, 166, 114, 0.1);
            border-bottom: 1px solid rgba(14, 166, 114, 0.1);
            padding: 15px 0;
            margin-bottom: 50px;
            white-space: nowrap; /* Mantiene tutto su una riga */
            display: flex;
            align-items: center;
        }

        .ticker-track {
            display: inline-flex;
            gap: 40px;
            /* L'animazione muove la traccia verso sinistra in infinito */
            animation: scrollTicker 30s linear infinite;
        }

        /* Se l'utente passa col mouse, lo scorrimento si mette in pausa per fargli leggere */
        .scrolling-ticker:hover .ticker-track {
            animation-play-state: paused;
        }

        .ticker-item {
            display: flex;
            align-items: center;
            gap: 15px;
            text-decoration: none;
            color: var(--text-main);
            background: var(--bg-color);
            padding: 8px 20px 8px 8px;
            border-radius: 50px;
            transition: transform 0.2s;
            border: 1px solid rgba(0,0,0,0.05);
        }

        .ticker-item:hover {
            transform: scale(1.05);
            border-color: var(--gold-accent);
        }

        .ticker-item img {
            width: 40px;
            height: 40px;
            border-radius: 50%; /* Immagine a pallino */
            object-fit: cover;
        }

        .ticker-item span {
            font-weight: 600;
            font-size: 0.95rem;
        }

        .ticker-label {
            background: var(--emerald-green);
            color: white;
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            padding: 3px 10px;
            border-radius: 20px;
            letter-spacing: 1px;
            margin-left: 10px;
            display: inline-block;
        }

        /* L'animazione chiave: sposta da 0 a metà della larghezza (poi il contenuto si ripete) */
        @keyframes scrollTicker {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }