/* VARIABILI COLORE */
:root {
    --yellow: #f8cf24;
    --black: #000000;
    --white: #ffffff;
    --wa-green: #25d366;
    --notification-red: #ff3b30;
}

/* RESET E BASE */
body {
    background-color: var(--white);
    color: var(--black);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* HEADER & LOGO */
header {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--white);
}

.logo-img {
    width: 100%;
    max-width: 180px; 
    height: auto;
    display: block;
    margin: 0 auto 10px auto;
}

/* SOCIAL LINKS */
.social-link {
    color: var(--black);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    
    /* FIX ALLINEAMENTO ICONA E TESTO */
    display: inline-flex;     /* Mantiene il link in linea ma abilita Flex */
    align-items: center;      /* Centra perfettamente l'icona rispetto al testo */
    justify-content: center;  /* Centra il blocco se necessario */
    gap: 10px;                /* Spazio tra icona e testo */
    
    margin-top: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link i {
    display: flex;            /* Rimuove eventuali spazi vuoti sotto l'icona */
    font-size: 1.2rem;        /* Regola la dimensione dell'icona se serve */
}

.social-link:hover {
    color: var(--yellow);
    transform: scale(1.05);
}

/* HERO SECTION */
.hero {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, var(--yellow) 0%, #ffffff 100%);
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* CONTENITORE */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin: 60px 0 40px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px; height: 5px;
    background: var(--yellow);
    margin: 10px auto;
}

/* MENU GRID & ITEMS */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.menu-item {
    border: 2px solid var(--black);
    padding: 25px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer; /* Fa capire che è cliccabile */
    -webkit-tap-highlight-color: transparent; /* Rimuove l'alone blu brutto di Safari */
}

.menu-item:hover,.menu-item:active {
    background-color: var(--yellow);
    transform: translateY(-5px);
    box-shadow: 8px 8px 0px var(--black);
}

.menu-item h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
}

.veg-badge {
    background: var(--black);
    color: var(--yellow);
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    display: inline-block;
    margin-top: auto; 
    align-self: flex-start;
}

/* --- FORM DI CONTATTO E INPUT --- */
.contact-box {
    border: 3px solid var(--black);
    padding: 40px;
    background: var(--white);
}

input, textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0 20px;
    border: 2px solid var(--black);
    font-family: inherit;
    box-sizing: border-box; /* Evita che l'input esca dai bordi */
}

input:focus, textarea:focus {
    outline: none;
    background: #fffdf2;
    border-color: var(--yellow);
}

.privacy-consent {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    text-align: left;
}

.privacy-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--black);
    cursor: pointer;
    margin: 0; /* Rimuove margini che potrebbero spostare la casella */
    flex-shrink: 0; /* Impedisce che la casella si schiacci */
}

.privacy-consent label {
    font-size: 0.85rem;
    line-height: 1; /* Forza il testo a stare sulla stessa linea della casella */
    cursor: pointer;
    display: inline-block;
}

/* --- BOTTONI --- */
.btn-hero, .btn-submit {
    background: var(--black);
    color: var(--white);
    padding: 18px 30px;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: 0.3s;
    text-align: center;
}

.btn-hero:hover, .btn-submit:hover {
    background: var(--yellow);
    color: var(--black);
}

.btn-submit { 
    width: 100%; /* Il tasto invia occupa tutta la larghezza del form */
}

/* --- WHATSAPP & PALLINO --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background-color: var(--wa-green);
    color: white;
    padding: 12px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.icon-container { position: relative; display: flex; align-items: center; }

.notification-dot {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 10px;
    height: 10px;
    background-color: var(--notification-red);
    border-radius: 50%;
    border: 2px solid var(--wa-green);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(1); }
    70% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* DECORAZIONI PNG */
.ape-aperta-img {
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* FOOTER */
footer {
    background: var(--black);
    color: var(--white);
    text-align: center;
    padding: 60px 20px;
    margin-top: 80px;
}

/* RESPONSIVE AGGIORNATO */
@media (max-width: 600px) {
    /* Riduce il titolo per evitare che vada a capo male */
    .hero h1 { 
        font-size: 1.8rem; 
        padding: 0 10px;
    }

    /* Rimpicciolisce il logo per occupare meno spazio in alto */
    .logo-img { 
        max-width: 140px; 
    }

    /* Sistema il pulsante WhatsApp per non coprire troppo contenuto */
    .whatsapp-float { 
        padding: 10px 15px; 
        font-size: 0.8rem; 
        bottom: 15px; 
        right: 15px; 
    }

    /* Evita che le immagini (Ape aperta) escano dai bordi */
    .ape-aperta-img {
        max-width: 100%;
        height: auto;
    }

    /* Riduce il padding del form per dare più respiro ai campi */
    .contact-box {
        padding: 20px;
    }
}