/* ============================================ */
/*               BASE & RESET                   */
/* ============================================ */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background-color: #1C5E67;
    font-family: 'Londrina Solid', cursive;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

/* ============================================ */
/*               HEADER & LOGO                  */
/* ============================================ */
.headbar-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0 10px 0;
    overflow: hidden;
}

.background-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
}

/* Logo */
.logo a {
    display: block;
    width: clamp(80px, 12vw, 150px); 
    height: clamp(35px, 4.5vw, 65px);
    background: url(../assets/Logo.png) center / contain no-repeat;
    margin: 0 auto;
    flex-shrink: 0;
}


.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.nav-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

/* ============================================ */
/*           NAVIGAZIONE SUPERIORE              */
/* ============================================ */
.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px clamp(30px, 10vw, 250px) 0;
    position: relative;
    z-index: 100;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    gap: 10px;
    font-size: clamp(10px, 2.2vw, 35px);
}

.nav-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 1px;
    background-color: #238b9e;
    left: clamp(30px, 10vw, 250px);
    right: clamp(30px, 10vw, 250px);
}

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

.nav-top a {
    color: #88c8d3;
    text-decoration: none;
    font-size: clamp(11px, 1.2vw, 14px);
    padding: 5px clamp(5px, 1vw, 10px);
    white-space: nowrap;
    font-size: 30px;
}

.nav-top a:hover,
.nav-top a:focus {
    color: #F9C647;
}

.contatti-link {
    border-color: #238b9e;
    padding: 3px 0px 3px 8px;
}

.menu-dropdown {
    display: flex;
    align-items: center;
    padding-bottom: 20px; 
    margin-bottom: -20px; 
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #88c8d3;
    margin-left: 8px; 
    display: inline-block;
    transition: border-top-color 0.2s;
    transform: translateY(2px); 
}

.menu-dropdown:hover .dropdown-arrow,
.menu-dropdown:focus-within .dropdown-arrow {
    border-top-color: #F9C647;
}

/* ============================================ */
/*             HERO SECTION - TESTO             */
/* ============================================ */
.hero-content {
    max-width: 1300px;
    margin: 7% 5% 10% 4%;
}

.text-block {
    flex: 1;
    max-width: 600px;
}

.text-block p {
    margin: -15px 0;
    color: #DE92A3;
    font-size: clamp(32px, 7vw, 116px);
    font-weight: 500;
    line-height: 1.1;
    font-family: 'Londrina Solid', cursive;
    text-shadow: 1px 1px 0 #0f3037;
    position: relative;
    left: 220px;
}

/* ============================================ */
/*                TAGS / ETICHETTE              */
/* ============================================ */
.tag {
    position: absolute;
    padding: 0.3em 1em;
    border-radius: 1em;
    font-size: 0.25em;
    font-weight: 500;
    z-index: 10;
    white-space: nowrap;
}

.hot-tag {
    background: #fce6c5;
    color: black;
    top: 0.4em;
    left: 20.5em;
}

.fried-tag {
    background: #88c4c9;
    color: black;
    top: 1.2em;
    left: -3.5em;
}

.spicy-tag {
    background: #F9C647;
    color: black;
    top: 3.5em;
    left: 5em;
}

/* ============================================ */
/*            HERO SECTION - FOGLIA             */
/* ============================================ */
.leaf-image-container {
    position: absolute;
    top: 13%;
    right: 0;
    width: clamp(350px, 45vw, 600px);
    height: clamp(400px, 50vw, 650px);
    background: url(../assets/header_leaf.png) no-repeat center / contain;
    z-index: 1;
    pointer-events: none;
}

/* ============================================ */
/*          NAVIGAZIONE INFERIORE               */
/* ============================================ */
.nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px clamp(30px, 10vw, 250px);
    position: relative;
    z-index: 2;
    flex-wrap: nowrap;
    gap: clamp(4px, 1.5vw, 25px);
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-bottom:2%;
}

.nav-bottom::-webkit-scrollbar {
    display: none;
}

.nav-bottom .category-link {
    color: white;
    text-decoration: none;
    font-size: clamp(10px, 2.2vw, 35px);
    padding: 10px 0;
    font-weight: 400;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ============================================ */
/* BAO COOKING INFO STYLE             */
/* ============================================ */
/* Contenitore principale per le decorazioni e il testo informativo */
.menu-info-header {
    display: flex; /* Allinea gli elementi in riga */
    align-items: center; /* Centra verticalmente testo e immagini */
    justify-content: center; /* Centra il blocco all'interno del cards-container */
    margin: 20px auto 30px auto; /* Spazio sopra e abbondante spazio sotto */
    max-width: 90%;
    width: fit-content; /* Larghezza si adatta al contenuto */
    text-align: center; 
}

/* Stile del testo informativo */
.bao-cooking-info {
    text-align: center;
    color: #DE92A3; /* Colore giallo chiaro */
    font-size: 3.5rem; 
    font-weight: 400;
    margin: 15px auto 10px auto; /* Spazio sotto ridotto per avvicinare le immagini */
    max-width: 90%; 
    line-height: 1.2;
        text-shadow: 1px 1px 0 #0f3037;
}

/* Contenitore per le due immagini decorative (allineate affiancate e centrate) */
.menu-deco-row {
    display: flex; /* Allinea le due immagini in riga */
    justify-content: center; /* Centra il blocco di immagini orizzontalmente */
    gap: 20px; /* Spazio tra le due immagini */
    margin: 10px auto 30px auto; /* Spazio sopra (sotto il testo) e abbondante spazio sotto */
    max-width: 90%;
}

/* Stile per le singole immagini decorative */
.menu-deco-asset {
    width: clamp(15px, 18vw, 300px); /* Dimensioni responsive */
    height: auto;
    display: block;
}

/* Media query per schermi più piccoli (adattamento) */
@media (max-width: 600px) {
    .bao-cooking-info {
        font-size: 1.7rem;
    }
    .menu-deco-row {
        gap: 10px; /* Riduci lo spazio tra gli asset su mobile */
        margin: 10px auto 20px auto;
    }
    .menu-deco-asset {
        width: clamp(15px, 6vw, 40px); 
    }
}
.menu-info-header .menu-group-deco {
    /* Riduciamo le dimensioni delle immagini decorative per questo specifico header */
    width: clamp(20px, 8vw, 60px); 
    height: auto;
    padding: 0; 
}

.nav-bottom::after {
    position: absolute;
    bottom: 0;
    left: clamp(20px, 10vw, 200px);
    right: clamp(20px, 10vw, 200px);
    height: 1px;
    background-color: #238b9e;
}

.nav-bottom::before {
    position: absolute;
    top: 0;
    left: clamp(20px, 10vw, 200px);
    right: clamp(20px, 10vw, 200px);
    height: 1px;
    background-color: #238b9e;
}

.nav-bottom .category-link:first-child,
.nav-bottom .category-link:nth-child(3),
.nav-bottom .category-link:nth-child(4),
.nav-bottom .category-link:nth-child(5),
.nav-bottom .category-link:nth-child(6),
.nav-bottom .category-link:last-child {
    box-shadow: none;
}

.nav-bottom .category-link:nth-child(2) {
    box-shadow: none;
}

.nav-bottom .category-link:hover {
    color: #F9C647;
}

.nav-bottom .category-link.is-active {
    color: #F9C647 !important;
}

/* ============================================ */
/*               SEZIONE MENU                   */
/* ============================================ */
.menu-section {
    margin: 0 auto;
    padding: 30px 40px 80px;
    position: relative;
    background-color: rgba(255, 255, 255, 0.96);
}

#menu-decorations {
    position: relative;
}

.cards-container {
    margin-top: 40px;
}

/* Decorazioni Menu */
.menu-decoration {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.menu-decoration img {
    display: block;
    max-width: 260px;
    height: auto;
}

@media (max-width: 1745px) {
    .menu-decoration {
        display: none;
    }
}

/* Gruppi Menu */
.menu-group {
    max-width: 1200px;
    margin: 0 auto 48px;
}

.menu-group-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.menu-group-title {
    font-size: px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1C5E67;
}

.menu-group-deco {
    width: 30%;
    height: auto;
    display: block;
    padding-left: 5%;
    padding-right: 5%;
}

.menu-group-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 29px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}
.bibite-section .menu-group-deco {
    width: 47% !important;
    padding-left: 5% !important;
    padding-right: 5% !important;
}


/* Card Menu */
.menu-card {
    position: relative;
    background-color: var(--card-color, #f7cdd7);
    border-radius: 12px;
    /* La padding esistente è 65px sopra, 21px sotto. */
    padding: 65px 18px 21px; 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    color: #111;
    width: 164px;
    flex: 0 0 auto;
    margin-top: 60px;
    
    /* ============================================================= */
    /* MODIFICA 1: Imposta la card come Flex container verticale */
    display: flex; 
    flex-direction: column;
    /* Spinge il primo elemento (titolo) in alto e l'ultimo (footer) in basso */
    justify-content: space-between; 
    /* ESSENZIALE: Fornisce un'altezza fissa per distribuire lo spazio tra gli elementi */

    /* ============================================================= */
}

.menu-card__footer {
    display: flex;
    justify-content: space-between; /* Spinge i due elementi ai lati opposti */
    align-items: center;
    margin-top: 10px; /* Aggiunge un po' di spazio dal testo */
    
}

.menu-card__footer--right {
    justify-content: flex-end; /* Usato dal JS se mancano i pezzi per allineare solo il prezzo a destra */
}

.menu-card__image-wrapper {
    position: absolute;
    top: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 147px;
    height: 91px;
    background-color: transparent;
    overflow: hidden;
}

.menu-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.menu-card__title {
    /* Mantiene le proprietà originali */
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px 0;
    
    /* MODIFICA 2: Fissa l'altezza del titolo e allinea il testo in basso (correzione sfalsamento) */
    min-height: 48px; /* Altezza sufficiente per 2 righe */
    display: flex; 
    align-items: flex-end; /* Allinea il testo sulla linea di base in basso */
}

.menu-card__description {
    font-size: 14px;
    line-height: 1.3;
    margin: 6px 0 8px; /* Mantiene i margini superiore/inferiore della descrizione */
    color: black;
    font-weight: 300;

    /* ============================================================= */
    /* MODIFICA 3: Permette alla descrizione di riempire lo spazio e centrare il testo */
    flex-grow: 1; /* Cresce per occupare tutto lo spazio rimanente al centro */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente il testo al suo interno */
    /* ============================================================= */
}


.menu-card__pieces {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background-color: #ffffff;
    font-size: 13px;
}

.menu-card__price {
    font-size: 19px;
    font-weight: 700;
}

/* ============================================ */
/*               SUBMENU BAO                    */
/* ============================================ */
.bao-menu {
    max-width: 1200px;
    margin: 40px auto 0;
}

.submenu-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

.submenu-nav-button {
    background: transparent;
    border: none;
    padding: 4px 12px;
    font-family: 'Londrina Solid', cursive;
    font-size: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: black;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease, border-bottom-color 0.2s ease;
}

.submenu-nav-button:hover {
    opacity: 0.9;
}

.submenu-nav-button.active {
    color: #F9C647;
    opacity: 1;
    border-bottom-color: #F9C647;
}

.submenu-content {
    width: 100%;
}

/* ============================================ */
/*                  FOOTER                      */
/* ============================================ */
.footer {
    padding: 60px 40px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: transparent;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
    align-items: start;
    width: 100%;
}

/* Desktop footer: top row = 3 columns, bottom row = centered copyright */
@media (min-width: 900px) {
    .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto 8px auto;
        gap: 24px;
        padding-bottom: 8px;
    }

    .footer-container .footer-column {
        width: 33.333%;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        text-align: left;
    }

    .footer-container .footer-brand .footer-logo { margin-bottom: -11px; }

    .footer-container .footer-social h3 { margin: 0 0 8px 0; }

    .footer-container .footer-links a { display: block; margin-bottom: 6px; color: #88c8d3; text-decoration: none; }
    .footer-container .footer-links a:hover { color: #F9C647; }

    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 14px 0;
        margin-top: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        background: transparent;
    }

    .footer-bottom a { color: #ffffff; text-decoration: none; }
}

/* Colonna Brand */
.footer-brand {
    gap: 20px;
}

.footer-logo img {
    width: 140px;
    height: auto;
    display: block;
    margin-bottom: 15px;
    margin: 0 auto 15px auto;
}

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

.footer-info {
    color: #88c8d3;
    font-size: 13px;
    line-height: 1.8;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    margin: 0;
    max-width: 280px;
}

/* Titoli colonne */
.footer-column h3 {
    color: #F9C647;
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 15px 0;
    font-family: 'Londrina Solid', cursive;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Link Footer */
.footer-links a,
.footer-legal a {
    color: #88c8d3;
    text-decoration: none;
    font-size: 13px;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    transition: color 0.2s;
    line-height: 2;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: #F9C647;
}

/* Social Media */
.footer-social h3 {
    color: #F9C647;
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 15px 0;
    font-family: 'Londrina Solid', cursive;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-icons a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(136, 200, 211, 0.15);
    border-radius: 50%;
    transition: all 0.3s;
    border: 1px solid rgba(136, 200, 211, 0.2);
}

.social-icons a:hover {
    background-color: #F9C647;
    transform: translateY(-3px);
    border-color: #F9C647;
}

.social-icons a:hover svg {
    fill: #17424b;
}

.social-icons svg {
    width: 18px;
    height: 18px;
    transition: fill 0.3s;
}

/* ============================================ */
/* FOOTER MOBILE (max-width: 900px) - SPAZI UNIFORMI */
/* ============================================ */
@media (max-width: 900px) {
    .footer {
        padding: 40px 20px 30px !important;
        text-align: center;
    }
    
    .footer-container {
        gap: 25px !important;
        margin-bottom: 20px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Uniforma tutte le colonne */
    .footer-column {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 300px;
    }
    
    /* Logo con spazio uguale a dopo "Contatti" */
    .footer-logo img {
        margin: 0 auto 10px auto !important;
    }
    
    /* Testo Baosrls e Partita Iva */
    .footer-info {
        line-height: 1.2 !important;
        margin: 0 auto !important;
        max-width: 100% !important;
    }
    
    /* RIDUCI LO SPAZIO TRA "CONTATTI" E "CHI SIAMO" */
    .footer-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 3px !important; /* Ridotto da 8px a 3px */
        align-items: center;
    }
    
    .footer-links h3 {
        margin-bottom: 3px !important; /* Spazio sotto il titolo "Contatti" */
    }
    
    .footer-links a {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.2 !important;
    }
    
    /* Colonna social con spazio uniforme */
    .footer-social {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        align-items: center;
    }
    
    /* Titoli uniformi su mobile */
    .footer-column h3 {
        margin: 0 0 8px 0 !important;
        font-size: 15px !important;
    }
    
    /* Social icons centrate */
    .social-icons {
        margin-top: 0 !important;
        justify-content: center;
        gap: 10px;
    }
    
    /* Footer bottom */
    .footer-bottom {
        margin-top: 15px;
        padding-top: 15px;
        line-height: 1.2;
    }
    
    /* Controllo BR nel footer-info */
    .footer-info br {
        display: none !important;
    }
}

/* Mobile piccolo (max-width: 480px) */
@media (max-width: 480px) {
    .footer {
        padding: 30px 15px 20px !important;
    }
    
    .footer-container {
        gap: 20px !important;
    }
    
    .footer-logo img {
        width: 120px;
    }
    
    .footer-info {
        font-size: 12px;
        line-height: 1.3 !important;
    }
    
    .footer-links {
        gap: 2px !important; /* Ancora più ridotto su mobile piccolo */
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-column h3 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
        
    }
    
    .social-icons a {
        width: 32px;
        height: 32px;
    }
    
    .social-icons svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
        margin-top: 10px;
        padding-top: 10px;
    }
}

/* Assicura che tutti gli elementi abbiano lo stesso spazio verticale */
@media (max-width: 900px) {
    .footer-brand > *:not(:last-child),
    .footer-links > *:not(:last-child),
    .footer-social > *:not(:last-child) {
        margin-bottom: 2px !important;
    }
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    color: #ffffff;
}

.footer-bottom a {
    font-size: 0.85rem;
    color: #88c8d3;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #F9C647;
}

/* ============================================ */
/* FOOTER - RIDUCI SPAZIO TRA PARTITA IVA E CHI SIAMO */
/* ============================================ */

@media (max-width: 900px) {
    /* Riduci lo spazio tra le colonne */
    .footer-container {
        gap: 15px !important; /* Ridotto da 25px a 15px */
    }
    
    /* Riduci il margin bottom del footer-info */
    .footer-info {
        margin-bottom: 5px !important;
    }
    
    /* Riduci lo spazio tra la colonna brand e la colonna links */
    .footer-column.footer-brand {
        margin-bottom: -39px  !important;
        text-decoration: none !important; /* Spazio negativo per avvicinare */
    }
    
    /* Se hai problemi specifici, aggiungi questa regola */
    .footer-info + .footer-links {
        margin-top: -10px !important; /* Avvicina le due colonne */
    }
    
    /* Oppure più specifico per il testo Partita Iva */
    .footer-info br.footer-info {
        display: none !important; /* Nascondi il br se c'è */
    }
    
    .footer-info p {
        line-height: 1.1 !important; /* Riduci l'interlinea */
        margin-bottom: 0 !important;
    }
}

/* Riduzione ancora maggiore su mobile piccolo */
@media (max-width: 480px) {
    .footer-container {
        gap: 12px !important; /* Ancora meno spazio */
    }
    
    .footer-column.footer-brand {
        margin-bottom: -38px !important;
        text-decoration: none !important;
    }
    
    .footer-info {
        font-size: 11px !important;
        line-height: 1.0 !important;
        margin-bottom: 2px !important;
    }
}

#text     {text-decoration: none !important;}

/* ============================================ */
/*        MEDIA QUERIES - TABLET STRETTO        */
/*           (900px - 769px)                    */
/* ============================================ */
@media (max-width: 900px) and (min-width: 769px) {
    .text-block p {
        font-size: clamp(30px, 6.5vw, 70px);
        left: 150px;
    }
    
    .leaf-image-container {
        right: -20px;
    }
}

/* ============================================ */
/*           MEDIA QUERIES - MOBILE             */
/*           (max-width: 768px)                 */
/* ============================================ */
@media (max-width: 768px) {
    /* Navigazione superiore */
    .nav-top {
        padding: 20px 30px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 5px;
    }

    .nav-top::after {
        left: 30px;
        right: 30px;
    }

    .nav-top a {
        font-size: 12px;
        padding: 5px;
        white-space: nowrap;
    }

    .logo a {
        width: 75px;
        height: 35px;
        margin: 0;
    }
    
    .dropdown-arrow {
        margin-left: 3px;
        border-width: 3px;
    }

    /* Hero section */
    .hero-content {
        margin: 20% 0 15% 0;
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .text-block p {
        font-size: clamp(24px, 9vw, 42px);
        left: 30px;
        margin: -5px 0;
        white-space: nowrap;
        z-index: 10;
        position: relative;
    }

    /* Tags */
    .tag { font-size: 0.35em; padding: 0.15em 0.6em; }
    .hot-tag { top: 0.3em; left: 9.5em; }
    .fried-tag { top: 1.4em; left: -1.5em; }
    .spicy-tag { top: 3.0em; left: 2.0em; }

    /* Foglia */
    .leaf-image-container {
        right: -40px;
        z-index: 1;
    }

    /* Navigazione categorie */
    .nav-bottom {
        padding: 36px 30px;
        display: ruby;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: clamp(5px, 2vw, 15px);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 0;
    }
    
    .nav-bottom::-webkit-scrollbar { display: none; }

    .nav-bottom::before,
    .nav-bottom::after {
        left: 30px;
        right: 30px;
    }

    .nav-bottom .category-link {
        font-size: 30px;
        white-space: nowrap;
    }

    /* Menu section */
    .menu-section {
        padding: 20px 20px 60px;
    }


    
    .social-icons {
        justify-content: center;
    }
}



.menu-dropdown {
    position: relative;
    display: inline-block;
}

.menu-button {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu-dropdown-list {
    position: absolute;
    top: 45px; /* Era 60px. Lo avviciniamo al testo */
    left: 0;
    list-style: none;
    margin: 8px 0 0;
    padding: 8px 0;
    background-color: #318191;
    border-radius: 6px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    display: none;
    min-width: 160px;
    z-index: 200;
}

.menu-dropdown-list li a {
    display: block;
    padding: 6px 16px;
    text-decoration: none;
    color: #f7f7f7;
    white-space: nowrap;
    font-size: 30px;
}

.menu-dropdown-list li a:hover {
    background-color: #206575;
    color: #F9C647;
}

.menu-dropdown:hover .menu-dropdown-list {
    display: block;
}



/* ============================================ */
/*                 BURGER MENU                  */
/* ============================================ */
.burger-button {
    display: none; /* visibile solo da 900px in giù */
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 28px;
    height: 18px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 10000;
}

.burger-line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background-color: #ffffff;
}



/* ============================================ */
/*      RESPONSIVE HEADER + HERO PER MOBILE (<= 900px)     */
/* ============================================ */
@media (max-width: 900px) {

    /* HEADER: logo a sinistra, burger a destra */
    .nav-top {
        padding: 16px 20px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0;
    }

    .nav-left,
     .nav-right,
    .contatti-link {
        display: none; /* spariscono le voci testuali */
    }

    .logo {
        margin: 0;

        position: static;
        transform: none;
        left: auto;
    }

    .logo a {
        margin: 0;
        width: 140px;
        height: 40px;
        transform: translate(9%);
    }

    .burger-button {
        display: flex; /* si attiva il burger */
        transform:translate(-11px);
    }

    /* HERO: blocco testo subito sotto la navbar */
    .hero-section {
        margin-top: 12px;
    }

    .hero-content {
        margin: 24px 18px 40px;
        position: relative;
        width:88%;
        height:23rem;
    }

    .text-block {
        max-width: none;
        transform: translate(3%);
    }

    .text-block p {
        position: relative;
        left: 0;
        margin: -4px 0;
        font-size: clamp(26px, 9vw, 40px);
        line-height: 1.05;
        text-align: left;
    }

    /* le chip restano animate, solo leggero tuning */
    .tag {
        font-size: 0.32em;
        padding: 0.2em 0.7em;
    }

    .hot-tag {
        top: -1em;
        left: 0.2em;
    }

    .fried-tag {
        top: 1.45em;
        left: 6em;
    }

    .spicy-tag {
        top: 3.0em;
        left: 1.8em;
    }

    /* Foglia più piccola e più bassa,
       allineata a destra sopra le macro categorie */
    .leaf-image-container {
        right: -35px;
        width: 190px;
        height: 220px;
        z-index: 1;
    }
        .nav-top {
        padding: 12px 18px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        flex-wrap: nowrap;
        position: relative;
    }

    /* LINEA PIÙ LUNGA SOTTO LOGO + BURGER */
    .nav-top::after {
        left: 25px;
        right: 25px;
    }

    .nav-left,
    .contatti-link {
        display: none;   /* spariscono le voci testuali */
    }

    .logo {
        margin: 0;
    }

    .logo a {
        margin: 0;
        width: 130px;
        height: 40px;
    }

    /* BURGER VISIBILE A DESTRA */
    .burger-button {
        display: flex;
    }

    /* Hero */
    .hero-content {
        margin: 16px 12px 32px;
        overflow: visible;  /* niente più taglio della foglia */
    }

    .text-block {
        max-width: none;
        margin-top: 15%;
    }

    .text-block p {
        position: relative;
        left: 0;
        margin: -4px 0;
        font-size: 90px;
        white-space: normal;
        overflow-wrap: break-word;
        line-height: 0.9;
    }

    /* FOGLIA SOTTO IL TEXT BLOCK, ALLINEATA A SINISTRA */
    .leaf-image-container {
    position: absolute !important;  /* Forza posizione assoluta per ancorarla al bordo */
    top: auto !important;           
    left: auto !important;          /* Rimuovi il posizionamento a sinistra */
    
    /* Fissa al bordo destro e la fa uscire di 25px */
    right: -25px !important;        
    
    margin-top: 14px;
    background-position: right center; /* Allinea l'immagine di sfondo a destra */
    z-index: 0;
}

    .nav-bottom {
        display: block !important;
        text-align: center;
        overflow-x: visible !important;
        white-space: normal !important;
        padding-top: 12%;
    }

    .nav-bottom .category-link {
        display: inline-block !important;
        margin: 5px 10px;
    }

}


.burger-button.open .burger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-button.open .burger-line:nth-child(2) {
    opacity: 0;
}
.burger-button.open .burger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
.burger-line {
    transition: all 0.25s ease;
}

/* =============================================== */
/*  MENU MOBILE: IDENTICO AL DROPDOWN DESKTOP      */
/* =============================================== */

@media (max-width: 900px) {

        .mobile-dropdown-list .separator {
        height: 1px;
        background-color: rgba(255, 255, 255, 0.2);
        margin: 8px 16px;
        padding: 0;
        list-style: none;
    }
    
    /* Stile specifico per i link di navigazione (Chi Siamo, Contatti) */
    .mobile-dropdown-list li:not(.separator) a {
        font-family: 'Londrina Solid', sans-serif;
        color: white;
        text-decoration: none;
        font-size: 20px;
        display: block;
        width: 100%;
        padding: 8px 18px;
        transition: background-color 0.2s ease, color 0.2s ease;
    }
    
    /* Distingui visivamente i link di navigazione dalle categorie menu */
    .mobile-dropdown-list li:not(.separator) a[href*="chi-siamo"],
    .mobile-dropdown-list li:not(.separator) a[href*="contatti"] {
        color: #88c8d3; /* Stesso colore della navigazione desktop */
        font-weight: 400;
    }
    
    /* Hover effect per tutti i link */
    .mobile-dropdown-list li:not(.separator) a:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #F9C647;
    }
    
    /* Spaziatura dopo il separatore */
    .mobile-dropdown-list .separator + li a {
        padding-top: 12px;
    }

    /* Nasconde il menu dropdown desktop */
    .menu-dropdown {
        display: none !important;
    }

    /* Contenitore del menu mobile */
    .mobile-menu {
        position: absolute;
        top: 0;
        right: 5%;
        width: 66%;
     
        border-radius: 12px;
        padding: 10px 0;
        display: none;  /* appare solo quando il burger è attivo */
        z-index: 9999;
    }

    .mobile-menu.active {
        display: block;
    }

    /* Usiamo la stessa UL del desktop */
    .mobile-dropdown-list {
        display: block;
        list-style: none;
        text-align: left;
        padding: 0;
        margin: 0;
        position: relative;
        width: 100%;
    }

    .mobile-dropdown-list li {
        padding: 8px 18px;
    }

    .mobile-dropdown-list li a {
        font-family: 'Londrina Solid', sans-serif;
        color: white;
        text-decoration: none;
        font-size: 20px;
        display: block;
        width: 100%;
    }

    /* Animazione coerente con desktop */
    .mobile-menu {
        animation: fadeIn 0.25s ease-out;
    }
}

/* ============================================ */
/*           MEDIA QUERIES - SMALL MOBILE       */
/*           (max-width: 442px)                 */
/* ============================================ */
@media (max-width: 442px) {
    .spicy-tag {
        top: 5.5em;
    }

 
}

@media (max-width: 1024px) {
.leaf-image-container {
    
    display: none;
     }
}



/* --- MENU ANCORA STICKY (Per Sushi, Poke, ecc.) --- */
.sticky-submenu-nav {
    position: sticky;
    top: 0; /* Si attacca in alto */
    z-index: 999; /* Sta sopra le card */
    background-color: #fff; /* O il colore di sfondo del tuo sito */
    padding: 10px 0;
    margin-bottom: 20px;
    
    /* Gestione scroll orizzontale su mobile */
    display: flex;
    gap: 10px;
    overflow-x: auto;
    white-space: nowrap;
    
    /* Nascondi barra di scroll brutta */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}

/* Nasconde scrollbar su Chrome/Safari */
.sticky-submenu-nav::-webkit-scrollbar {
    display: none;
}

.sticky-nav-button {
    background: transparent;
    border: 2px solid var(--primary-color, #000); /* Usa il tuo colore principale */
    border-radius: 20px;
    padding: 8px 16px;
    font-family: 'Londrina Solid', cursive;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Impedisce ai bottoni di schiacciarsi */
    color: #333;
}

.sticky-nav-button:hover,
.sticky-nav-button.active {
    background-color: #000; /* Colore attivo */
    color: #fff;
    border-color: #000;
}

/* Regolazione per schermi piccoli (Mobile) */
@media (max-width: 768px) {
    .sticky-submenu-nav {
        top: 60px; /* Se hai una navbar fissa mobile alta 60px, aggiusta questo valore */
        padding-left: 15px; /* Spazio a sinistra */
        padding-right: 15px;
    }
}

/* Nasconde il titolo e l'header SOLO dentro la modalità tab mobile */
.mobile-tab-wrapper .menu-group-header,
.mobile-tab-wrapper .menu-group-title {
    display: none !important;
}

.footer-bottom {
    width: 100%;
    text-align: center;        /* Centra il testo */
    margin-top: 20px;          /* Spazio sopra */
    padding-top: 20px;         /* Spazio interno sopra la scritta */
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* Linea sottile di separazione */
    font-size: 0.85rem;        /* Testo leggermente più piccolo */
    color: #ffffff;            /* Assicura che il testo sia bianco */
}

.footer-bottom a {
    font-size: 0.85rem;
    color: #88c8d3;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #F9C647;
}


/* === MENU BIBITE – LAYOUT COME L’IMMAGINE === */

.bibite-container {
    display: grid;
    grid-template-columns: 1fr 1fr;   /* SEMPRE DUE COLONNE */
    gap: 110px;
    max-width: 900px;                 /* Larghezza simile all’immagine */
    margin: 0 auto;
}

.bibite-section {
    width: 100%;
}

.bibite-list {
    list-style: none;
    margin: 15px 0 0 0;
    padding: 0;
}

.bibite-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 18px;
}

.bibite-name {
    font-weight: 600;
}

.bibite-price {
    font-weight: 600;
}

/* Centra titolo e linee come da immagine */
.menu-group-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.menu-group-title {
    font-size: 22px;
    color: #1C5E67;
    letter-spacing: 1px;
}


.bibite-section {
    margin-bottom: 30px;
}

/* Stile Lista (Nome ... Prezzo) */
.bibite-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: 15px; /* Spazio tra header e lista */
}

.bibite-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 5px 0;
    border-bottom: 1px dotted #ccc;
}

.bibite-name, .bibite-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #111; /* O il colore che preferisci */
}

/* =========================================================
   MEDIA QUERY – MENU BIBITE RESPONSIVE
   ========================================================= */

/* --- Schermi medi (max 1024px) → Colonne più morbide --- */
@media (max-width: 1024px) {
    .bibite-container {
        grid-template-columns: 1fr 1fr; /* sempre due colonne, ma più fluide */
        gap: 40px;
        max-width: 100%;
    }

    .footer {
    padding: 60px 40px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
}

    .menu-group-title {
        font-size: 30px;
    }

    .bibite-item {
        font-size: 17px;
        padding: 6px 0;
    }

.menu-group-deco {
    width: 40%;
    height: auto;
    display: block;
    padding-left: 5%;
    padding-right: 5%;
}
}

/* --- Tablet verticale / schermi stretti (max 768px) --- */
@media (max-width: 768px) {
    .bibite-container {
        grid-template-columns: 1fr; /* PASSA A 1 COLONNA */
        gap: 45px;
        max-width: 500px;
        margin: 0 auto;
    }

    .menu-group-header {
        gap: 10px;
        margin-bottom: 10px;
    }



.menu-group-deco {
    width: 30%;
    height: auto;
    display: block;
    padding-left: 5%;
    padding-right: 5%;
}

    .bibite-item {
        font-size: 18px;
    }
}

/* --- Mobile (max 480px) --- */
@media (max-width: 480px) {
    .bibite-container {
        padding: 0 10px;
        gap: 35px;
    }

 .footer {
        padding: 30px 15px 15px;
    }
    
    .footer-container {
        gap: 25px;
    }
    
    .footer-column h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .footer-links a,
    .footer-legal a {
        font-size: 12px;
    }
    
    .social-icons a {
        width: 32px;
        height: 32px;
    }
    
    .social-icons svg {
        width: 16px;
        height: 16px;
    }
    
    .footer-bottom {
        font-size: 0.75rem;
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .footer-bottom a {
        font-size: 0.75rem;
    }

    .menu-group-title {
        font-size: 27px;
        letter-spacing: 0.5px;
    }

.menu-group-deco {
    width: 30%;
    height: auto;
    display: block;
    padding-left: 5%;
    padding-right: 5%;
}

    .bibite-item {
        font-size: 16px;
        padding: 5px 0;
    }
}

/* --- Extra small mobile (max 360px) --- */
@media (max-width: 360px) {
    .menu-group-title {
        font-size: 18px;
    }

    .bibite-item {
        font-size: 15px;
    }
}

/* Animazione per la sezione Bevande */
.bibite-section {
    opacity: 0;
    transform: translateY(20px);
    animation: bibiteFadeIn 0.6s ease forwards;
}

@keyframes bibiteFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ritardo animazione per ogni sezione, per effetto a cascata */
.bibite-section:nth-child(1) {
    animation-delay: 0.1s;
}

.bibite-section:nth-child(2) {
    animation-delay: 0.25s;
}

.bibite-section:nth-child(3) {
    animation-delay: 0.4s;
}

/* ============================================ */
/* FIX PER IOS - PARTITA IVA E NUMERI           */
/* ============================================ */

/* Forza tutti i numeri nel footer a essere uguali al resto del testo */
.footer-info,
.footer-info *,
.footer-info span,
.footer-info p {
    color: #88c8d3 !important; /* Usa il colore del tuo footer-info */
    text-decoration: none !important;
    font-style: normal !important;
    -webkit-text-fill-color: #88c8d3 !important; /* Per Safari */
    -webkit-tap-highlight-color: transparent !important;
}

/* Specifico per iOS Safari */
@supports (-webkit-touch-callout: none) {
    .footer-info,
    .footer-info *,
    .footer-info a,
    .footer-info span,
    .footer-info p {
        color: #88c8d3 !important;
        text-decoration: none !important;
        -webkit-text-fill-color: #88c8d3 !important;
        -webkit-appearance: none !important;
        -webkit-user-select: text !important;
    }
    
    /* Disabilita il colore blu per i link */
    .footer-info a:link,
    .footer-info a:visited,
    .footer-info a:hover,
    .footer-info a:active {
        color: #88c8d3 !important;
        -webkit-text-fill-color: #88c8d3 !important;
    }
}

/* Se vuoi essere ancora più specifico per la partita IVA */
.footer-info strong,
.footer-info b,
.footer-info .piva-text {
    color: #88c8d3 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    -webkit-text-fill-color: #88c8d3 !important;
}

/* Alternative: se usi un <span> specifico per la partita IVA */
.piva-number {
    color: #88c8d3 !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #88c8d3 !important;
    -webkit-tap-highlight-color: transparent !important;
    cursor: default !important;
    pointer-events: none !important; /* Previene qualsiasi interazione */
}