/* CSS Reset e Variabili con i colori brand */
:root {
    --primary-color: #F1B31C; 
    --secondary-color: #222222; 
    
    /* Variabili Modalità Chiara (Predefinita) */
    --bg-body: #4A2E15; 
    --bg-header: #ffffff;
    --bg-element: #ffffff;
    --text-header: #333333;
    --text-element: #333333;
    --text-muted: #666666;
    --border-light: #e0e0e0;
    --bg-input: #fcfcfc;
}

/* Modalità Scura (Si attiva col bottone 🌙) */
body.dark-mode {
    --bg-body: #121212; 
    --bg-header: #1e1e1e;
    --bg-element: #252525;
    --text-header: #f1f1f1;
    --text-element: #f1f1f1;
    --text-muted: #aaaaaa;
    --border-light: #3a3a3a;
    --bg-input: #1e1e1e;
}

/* Attiva lo scorrimento morbido per tutti i link della pagina */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; 
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-element);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease;
}

/* FIX: Previene la colorazione blu automatica dei numeri/orari su dispositivi Apple iOS */
a[href^="tel"] {
    color: inherit;
    text-decoration: none;
}
.locale-hours-list a {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none !important;
}
.locale-phone a[href^="tel"] {
    color: #D3121E !important; /* Mantiene il VERO link del telefono di colore rosso */
    pointer-events: auto !important;
}

/* ANIMAZIONI GENERALI (Scroll Reveal) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

/* Header */
header {
    background-color: var(--bg-header); 
    padding: 0.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    border-bottom: 3px solid var(--primary-color); 
    transition: background-color 0.4s ease;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

nav a {
    color: var(--text-header); 
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color); 
}

/* TASTI HEADER E DELIVEROO */
.btn-nav-prenota {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-color) !important;
    color: #222222 !important;
    padding: 0.4rem 1.2rem;
    border-radius: 25px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(241, 179, 28, 0.3);
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.btn-nav-prenota:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(241, 179, 28, 0.5);
    background-color: #e0a619 !important;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 4px solid var(--primary-color);
    overflow: hidden;
    min-height: 80vh; 
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideFade 36s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }
.hero-slide:nth-child(5) { animation-delay: 24s; }
.hero-slide:nth-child(6) { animation-delay: 30s; }

@keyframes slideFade {
    0%   { opacity: 0; transform: scale(1); }
    3%   { opacity: 1; }
    15%  { opacity: 1; }
    19%  { opacity: 0; transform: scale(1.04); }
    100% { opacity: 0; transform: scale(1.04); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.45) 0%, rgba(20,10,5,0.85) 100%);
    z-index: 1;
}

.hero-card {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    background: rgba(30, 18, 8, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(241, 179, 28, 0.4);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
    animation: floatCard 6s infinite ease-in-out alternate;
}

@keyframes floatCard {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}

.hero-badge {
    display: inline-block;
    background: rgba(241, 179, 28, 0.2);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-size: 2.6rem;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero h1 .highlight-text {
    color: var(--primary-color);
}

.hero p {
    font-size: 1.15rem;
    color: #f0f0f0;
    margin-bottom: 1.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-features-list {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-features-list span {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.fade-in-1, .fade-in-2, .fade-in-3, .fade-in-4, .fade-in-5 {
    opacity: 0; 
    animation: fadeSlideUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-in-1 { animation-delay: 0.1s; }
.fade-in-2 { animation-delay: 0.3s; }
.fade-in-3 { animation-delay: 0.5s; }
.fade-in-4 { animation-delay: 0.7s; }
.fade-in-5 { animation-delay: 0.9s; }

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* PULSANTI BASE */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--primary-color);
    color: #222222; 
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    border: none;
    cursor: pointer;
    white-space: nowrap; 
}

.btn:hover {
    background-color: #e0a619; 
    transform: translateY(-2px); 
}

.btn-primary {
    background-color: var(--primary-color);
    color: #222222;
    box-shadow: 0 4px 15px rgba(241, 179, 28, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: #222222;
}

.btn-menu {
    background-color: transparent;
    color: var(--text-element);
    border: 2px solid var(--primary-color);
}

.btn-menu:hover {
    background-color: var(--primary-color);
    color: #222222;
}

/* STILE SPECIALE BOTTONE DELIVEROO */
.btn-deliveroo {
    background-color: #00CCBC;
    color: #ffffff !important;
    border: 2px solid #00CCBC;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px; 
}

.btn-deliveroo img {
    height: 22px; 
    border-radius: 4px; 
}

.btn-deliveroo:hover {
    background-color: #00A396; 
    border-color: #00A396;
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* SEZIONI GENERICHE */
.container {
    max-width: 1200px;
    margin: 3.5rem auto;
    padding: 0 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #ffffff; 
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    font-weight: 800;
}

/* GRID E CARD HOME */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding-top: 1.5rem; 
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    padding-top: 1.5rem; 
}

.card {
    background: var(--bg-element);
    color: var(--text-element); 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-align: center;
    padding: 2.5rem 1.5rem 2rem 1.5rem; 
    border-top: 4px solid var(--primary-color); 
    position: relative; 
    display: flex;
    flex-direction: column; 
    justify-content: space-between;
    transition: transform 0.3s ease, background-color 0.4s ease;
}

.card:hover {
    transform: translateY(-5px); 
}

.card h3 {
    color: var(--text-element);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.card .price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color); 
    margin: 1rem 0;
}

.card .btn {
    margin-top: auto; 
    align-self: center;
}

/* TABS E BADGE HOME */
#giropizza {
    min-height: 580px; 
    margin-bottom: 2rem; 
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: #ffffff;
    padding: 0.8rem 1.8rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary-color);
    color: #222222;
}

.tab-content {
    display: none; 
}

.tab-content.active {
    display: block; 
    animation: fadeInTab 0.4s ease-in-out; 
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    position: absolute;
    top: -14px; 
    right: 15px;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    z-index: 2; 
}   

.badge-popular { background-color: #D3121E; animation: pulseBadge 2s infinite; } 
@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(211, 18, 30, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(211, 18, 30, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(211, 18, 30, 0); }
}
.badge-kids { background-color: #2A9D8F; } 
.badge-quality { background-color: #E76F51; }
.badge-gf { background-color: #264653; }
.badge-gourmet { background-color: #8E24AA; } 

/* BANNER QUALITÀ */
.banner-qualita {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('img/DSC011051.jpg') center/cover no-repeat;
    background-attachment: fixed; 
    text-align: center;
    padding: 5rem 1rem;
    border-top: 4px solid var(--primary-color);
    border-bottom: 4px solid var(--primary-color);
    margin: 0; 
}

/* SEZIONE SERVIZI INTERATTIVI */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    text-align: center;
    padding: 1.5rem 0 2.5rem 0; 
    margin: 3.5rem auto 4rem auto;
    border-top: 1px solid rgba(241, 179, 28, 0.3);
    border-bottom: 1px solid rgba(241, 179, 28, 0.3);
}

.feature-box {
    padding: 1rem;
}

.feature-icon {
    width: 150px; 
    height: auto;
    margin-bottom: 1.5rem;
}

.feature-box h3 {
    color: var(--primary-color); 
    margin-bottom: 1rem;
    font-size: 2rem; 
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
}

.feature-box p {
    color: #e0e0e0; 
    font-size: 1.15rem; 
    line-height: 1.6;
    text-align: center;
    padding: 0 1rem; 
    font-style: italic; 
}

.feature-box p strong {
    color: var(--primary-color); 
    font-style: normal; 
    font-weight: 800;
}

.btn-feature {
    display: inline-flex; 
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    font-size: 0.95rem;
    padding: 0.7rem 1.6rem;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s, opacity 0.3s;
}

.btn-feature:hover {
    opacity: 0.85;
}

.feature-details {
    background: rgba(255, 255, 255, 0.05); 
    border: 2px dashed var(--primary-color); 
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-column: span 2; 
    padding: 2.5rem;
    opacity: 0;
    animation: slowExpand 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes slowExpand {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SCOPRI RISTORANTI & MENU */
.scopri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1000px; 
    margin: 4rem auto;
}

.scopri-box {
    background-color: var(--bg-element); 
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.5); 
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
    border-top: 5px solid var(--primary-color); 
}

.scopri-box:hover {
    transform: translateY(-8px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.7); 
}

.img-overflow-wrapper {
    overflow: hidden;
    width: 100%;
    height: 250px;
}

.scopri-img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); 
}

.scopri-box:hover .scopri-img {
    transform: scale(1.08); 
}

.scopri-content {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.scopri-content h4 {
    color: #888888;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.scopri-content h2 {
    color: var(--text-element); 
    font-size: 2.4rem;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.scopri-content p {
    color: var(--text-muted); 
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    flex-grow: 1; 
}

.scopri-content p strong {
    color: var(--text-element);
    font-weight: 800;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1px;
}

.scopri-content .btn {
    align-self: center;
    margin-top: auto;
    font-size: 1.05rem;
    padding: 1rem 2rem;
}

/* Slider Sedi (HOME) */
.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 2rem;
    padding: 1.5rem 0; 
    scrollbar-width: none; 
    -ms-overflow-style: none;  
}

.slider-container::-webkit-scrollbar { 
    display: none; 
}

.slider-container .card {
    flex: 0 0 calc(33.333% - 1.35rem); 
    scroll-snap-align: start;
}

.slide-btn {
    background-color: var(--primary-color);
    color: #222;
    border: none;
    font-size: 1.5rem;
    padding: 1rem 0.8rem;
    cursor: pointer;
    border-radius: 8px;
    z-index: 10;
    transition: background-color 0.3s;
    margin: 0 10px;
}

.slide-btn:hover {
    background-color: #e0a619;
}

/* BANNER "GUSTIAMOCI LA VITA" */
.banner-gustiamoci {
    background: linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)), url('img/DSC011051.jpg') center/cover no-repeat;
    background-attachment: fixed; 
    text-align: center;
    padding: 5rem 1rem;
    margin-top: 5rem;
    border-top: 4px solid var(--primary-color);
}

.banner-content {
    max-width: 900px;
    margin: 0 auto;
}

.banner-content h2 {
    color: var(--primary-color); 
    font-size: 3.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5); 
}

.banner-content p {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.6;
    letter-spacing: 1px;
}

/* Footer e Social */
footer {
    background-color: var(--secondary-color);
    color: #ffffff;
    text-align: center;
    padding: 2rem 1rem 1.5rem 1rem; 
    margin-top: 0 !important; 
    border-top: 4px solid var(--primary-color);
}

.social-container {
    margin-bottom: 1.2rem;
}

.social-title {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #222222;
    transform: translateY(-4px) scale(1.1);
}

footer p {
    font-size: 0.85rem;
    color: #aaaaaa;
    margin-top: 0.3rem;
}

/* TASTO PRENOTA E TASTO NIGHT MODE FLUTTUANTI */
.floating-prenota {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: #222222;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    animation: floatPulse 2.5s infinite; 
}

.floating-prenota:hover {
    transform: translateY(-5px);
    background-color: #e0a619;
}

#night-mode-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--primary-color);
    color: #222222;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#night-mode-toggle:hover {
    transform: scale(1.1) translateY(-3px);
    background-color: #e0a619;
}

@keyframes floatPulse {
    0% { box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 0 0 rgba(241, 179, 28, 0.6); }
    70% { box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 0 15px rgba(241, 179, 28, 0); }
    100% { box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 0 0 0 rgba(241, 179, 28, 0); }
}

/* =========================================
   STILI PAGINA LOCALI E PRENOTA
   ========================================= */

.page-content {
    min-height: 60vh; 
}

.page-banner {
    background: linear-gradient(rgba(30, 18, 8, 0.8), rgba(20, 10, 5, 0.9)), url('img/DSC010921.jpg') center/cover no-repeat;
    text-align: center;
    padding: 6rem 1rem 5rem 1rem; 
    border-bottom: 4px solid var(--primary-color);
}

.page-banner h1 {
    font-size: 3.2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 0.8rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
}

.page-banner p {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 1.6;
}

/* =========================================
   LAYOUT LOCALI E FILTRI SIDEBAR
   ========================================= */
.locali-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 4rem auto 5rem auto; 
    position: relative;
    z-index: 10;
    padding: 0 1rem;
}

.locali-filters {
    flex: 0 0 320px;
    background: var(--bg-element);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-top: 5px solid var(--primary-color);
    position: sticky;
    top: 100px;
    transition: background-color 0.4s ease;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group input[type="text"] {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    background-color: var(--bg-input);
    color: var(--text-element);
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-group input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(241, 179, 28, 0.2);
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-element);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.checkbox-group input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* LISTA LOCALI E CARD RISTORANTI */
.locali-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.locale-card {
    background: var(--bg-element);
    border-radius: 12px;
    padding: 1.8rem 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-left: 8px solid var(--primary-color); 
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.4s ease;
}

.locale-card:hover {
    transform: translateX(5px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.locale-info {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.locale-info h3 {
    color: var(--text-element);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

/* Nuova classe per la via cliccabile nera e senza sottolineatura */
.locale-address {
    color: #222222;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.locale-address:hover {
    background-color: rgba(241, 179, 28, 0.2);
}

/* Assicuriamoci che resti visibile in modalità scura */
body.dark-mode .locale-address {
    color: #f1f1f1; 
}

.locale-phone {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.locale-phone a {
    color: #D3121E; 
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
}

.locale-phone a:hover {
    text-decoration: underline;
}

.locale-action {
    flex: 0 0 250px; 
    display: flex;
    flex-direction: column;
    gap: 0.8rem; 
}

.locale-action .btn {
    width: 100%; 
}

/* MAPPE INTERATTIVE - Contenitore a comparsa morbida */
.map-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s ease, 
                margin 0.4s ease;
}

.map-container.open {
    max-height: 300px;
    opacity: 1;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* MENU A TENDINA ORARI (LOCALI) */
.locale-hours-container {
    margin: 1rem 0;
    max-width: 380px; 
    background-color: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.locale-hours-summary {
    padding: 0.6rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-element);
    font-size: 1.05rem;
    user-select: none;
}

.locale-hours-summary:hover {
    background-color: var(--border-light);
}

.locale-hours-summary strong {
    color: var(--primary-color);
    margin-right: 5px;
}

.locale-hours-summary .arrow {
    font-size: 0.8rem;
    transition: transform 0.4s ease;
    color: var(--text-muted);
}

.locale-hours-container.open .arrow {
    transform: rotate(180deg);
}

.locale-hours-list {
    list-style: none;
    padding: 0 1rem;
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease-in-out, padding 0.5s ease-in-out;
}

.locale-hours-container.open .locale-hours-list {
    max-height: 350px; 
    opacity: 1;
    padding: 0.8rem 1rem;
    border-top: 1px dashed var(--border-light);
}

.locale-hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.locale-hours-list li.today {
    font-weight: 800;
    color: #D3121E; 
}

/* BOLLINO APERTO E BOLLINO GLUTEN FREE */
.locale-badge-status {
    display: inline-block;
    background-color: #2A9D8F;
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    box-shadow: 0 2px 8px rgba(42, 157, 143, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; 
}

.locale-badge-status.badge-loaded {
    opacity: 1;
    visibility: visible;
}

.locale-badge-status.badge-closed {
    background-color: #D3121E !important;
    box-shadow: 0 2px 8px rgba(211, 18, 30, 0.4) !important;
}

/* Nuovo bollino Pizza Senza Glutine */
.locale-badge-gf {
    display: none; 
    background-color: #264653;
    color: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(38, 70, 83, 0.4);
}


/* =========================================
   BOX NESSUN RISULTATO PREMIUM
   ========================================= */
.no-results {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    width: 100%;
    animation: fadeSlideUp 0.5s ease-in-out;
}

.no-results-content {
    background: var(--bg-element);
    border: 2px dashed var(--primary-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pizza-icon {
    display: block;
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: floatPizza 3s ease-in-out infinite;
}

.no-results-content h3 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
}

.no-results-content p {
    color: var(--text-element);
    font-size: 1.15rem;
    margin-bottom: 2.5rem; 
    font-weight: 500;
}

.btn-reset-filters {
    background-color: var(--primary-color);
    color: #222222;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(241, 179, 28, 0.3);
    margin-top: 1rem; 
}

.btn-reset-filters:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(241, 179, 28, 0.5);
    background-color: #e0a619;
}

@keyframes floatPizza {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}


/* =========================================
   STILI PAGINA PRENOTA.HTML 
   ========================================= */

.booking-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 1200px;
    margin: 4rem auto 5rem auto; 
    padding: 0 1rem;
}

.booking-card {
    flex: 1;
    width: 100%;
    max-width: 800px;
    margin: 0; 
    background: var(--bg-element);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-top: 8px solid var(--primary-color);
    opacity: 0;
    animation: fadeSlideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease;
}

.booking-form {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-weight: 800;
    color: var(--text-element);
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-element);
    background-color: var(--bg-input);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-element);
    outline: none;
    box-shadow: 0 0 0 4px rgba(241, 179, 28, 0.2);
}

.form-control.input-error {
    border-color: #D3121E !important;
    background-color: rgba(211, 18, 30, 0.05) !important;
    box-shadow: 0 0 0 4px rgba(211, 18, 30, 0.15) !important;
}

textarea.form-control {
    resize: vertical;
}

.form-submit {
    margin-top: 1rem;
    text-align: center;
}

.privacy-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.privacy-checkbox-container {
    display: flex;
    align-items: center; 
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
    text-align: left;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.privacy-checkbox-container input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

.privacy-checkbox-container label {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    margin: 0; 
    font-weight: 500; 
    text-transform: none; 
}

.privacy-checkbox-container label a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 700;
}

.privacy-checkbox-container.input-error {
    background-color: rgba(211, 18, 30, 0.05);
}

.privacy-checkbox-container.input-error label {
    color: #D3121E;
}

.privacy-checkbox-container.input-error input[type="checkbox"] {
    outline: 2px solid #D3121E;
    outline-offset: 2px;
    border-radius: 2px;
}


/* =========================================
   CUSTOM DROPDOWN ORARI (SOVRIMPRESSIONE)
   ========================================= */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-display {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    font-size: 1rem;
    background-color: var(--bg-input);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-weight: 500;
}

.custom-select-display::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.custom-select-display.input-error {
    border-color: #D3121E !important;
    background-color: rgba(211, 18, 30, 0.05) !important;
    box-shadow: 0 0 0 4px rgba(211, 18, 30, 0.15) !important;
}

.custom-select-wrapper.open .custom-select-display {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(241, 179, 28, 0.2);
}

.custom-select-wrapper.open .custom-select-display::after {
    transform: rotate(180deg);
}

.time-slots-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-element);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 100;
    margin-top: 5px;
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 250px;
    overflow-y: auto;
}

.custom-select-wrapper.open .time-slots-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.time-slot-btn {
    background-color: var(--bg-element);
    border: 2px solid var(--border-light);
    color: var(--text-element);
    padding: 0.6rem 0.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    width: 100%;
}

.time-slot-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.time-slot-btn.selected {
    background-color: var(--primary-color);
    color: #222222;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(241, 179, 28, 0.3);
}

.time-slot-msg {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-style: italic;
    grid-column: 1 / -1;
    margin: 0.5rem 0;
}


/* =========================================
   ANIMAZIONE CONFERMA PRENOTAZIONE CON "T"
   ========================================= */
.booking-success {
    text-align: center;
    padding: 3rem 1rem;
    background-color: rgba(42, 157, 143, 0.05);
    border: 2px dashed #2A9D8F;
    border-radius: 12px;
    margin-bottom: 2rem;
    animation: fadeSlideUp 0.5s ease forwards;
}

.success-icon-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.success-icon-circle {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #2A9D8F, #21867a); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.5);
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, successPulse 2s infinite 1s;
}

.success-icon-t {
    color: #ffffff;
    font-size: 4.5rem;
    font-family: 'Brush Script MT', 'Lucida Handwriting', cursive; 
    font-weight: normal;
    font-style: italic;
    line-height: 1;
    padding-right: 5px; 
    opacity: 0;
    animation: showT 0.4s ease forwards 0.4s;
}

@keyframes successPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(42, 157, 143, 0); }
    100% { box-shadow: 0 0 0 0 rgba(42, 157, 143, 0); }
}

@keyframes showT {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.booking-success h3 {
    color: #2A9D8F;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.booking-success p {
    color: var(--text-element);
    font-size: 1.1rem;
}

.orari-sidebar {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    margin-left: 0;
    padding: 2.5rem 0; 
    background: var(--bg-element);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    border-top: 8px solid var(--primary-color);
    transition: max-width 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                margin-left 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.4s ease;
}

.orari-sidebar.visible {
    max-width: 350px;
    opacity: 1;
    margin-left: 2rem;
    padding: 2.5rem 2rem;
}

.orari-sidebar-content {
    width: 300px;
}

.orari-sidebar h3 {
    color: var(--text-element);
    font-size: 1.5rem;
    text-transform: uppercase;
}

.orari-list-sidebar {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.orari-list-sidebar li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border-light);
    color: var(--text-element);
    font-size: 0.95rem;
    font-weight: 500;
}

.orari-error-msg {
    color: #D3121E;
    font-weight: bold;
    font-size: 0.95rem;
    background: rgba(211, 18, 30, 0.1);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    line-height: 1.5;
}

/* =========================================
   STILI PER RIEPILOGO PRENOTAZIONE
   ========================================= */
.highlight-sede {
    color: #D3121E;
    font-size: 1.4rem;
    text-transform: uppercase;
    display: inline-block;
    margin-top: 0.3rem;
}

.booking-summary {
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: left;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.booking-summary h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    font-weight: 800;
}

.booking-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.booking-summary li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--border-light);
    color: var(--text-element);
    font-size: 1.05rem;
}

.booking-summary li:last-child {
    border-bottom: none;
}

.booking-summary li span {
    color: var(--text-muted);
}

.booking-summary li strong {
    text-align: right;
    max-width: 60%;
    word-wrap: break-word;
}

/* Evitiamo problemi hover pulsante Torna alla home */
.booking-success .btn-outline:hover {
    color: #ffffff !important;
}

/* =========================================
   STILE LOGO IN NIGHT MODE
   ========================================= */
header .logo img {
    transition: all 0.4s ease;
    border-radius: 8px;
}

body.dark-mode header .logo img {
    background-color: #ffffff; 
    padding: 4px 12px;         
    border-radius: 8px;       
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6); 
    transform: scale(0.95);
}


/* =========================================
   STILI MENU CON SIDEBAR LATERALE (Per tutte le sedi)
   ========================================= */
.menu-container-layout {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    margin-top: 2rem;
}

.menu-sidebar {
    position: sticky;
    top: 100px;
    width: 260px;
    flex-shrink: 0;
    background: rgba(30, 18, 8, 0.95);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 1.2rem;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.menu-sidebar h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(241, 179, 28, 0.3);
    padding-bottom: 0.5rem;
    letter-spacing: 1px;
}

.menu-sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.menu-sidebar nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: 0 !important;
    display: block;
}

.menu-sidebar nav a:hover,
.menu-sidebar nav a.active-link {
    background-color: var(--primary-color);
    color: #222222 !important;
    transform: translateX(4px);
}

.menu-content-area {
    flex-grow: 1;
    min-width: 0;
}

.menu-category-section {
    scroll-margin-top: 100px;
    margin-bottom: 3.5rem;
}

.menu-category-section h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    text-transform: uppercase;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
}

/* ==========================================
   DROPDOWN MENU - LE NOSTRE SEDI
   ========================================== */
nav .dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

nav .dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 15px); 
    background-color: #2a1a0f; 
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--primary-color, #f1b31c);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease; 
}

nav .dropdown-content a {
    color: white !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s, color 0.3s;
    margin: 0; 
}

nav .dropdown-content a:last-child {
    border-bottom: none;
}

nav .dropdown-content a:hover {
    background-color: var(--primary-color, #f1b31c) !important;
    color: #1e1208 !important;
}

nav .dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, 0); 
}

/* ==========================================
   TASTI FLUTTUANTI (DIMENSIONI IDENTICHE SU DESKTOP)
   ========================================== */
a.floating-prenota {
    min-width: 205px !important; 
    justify-content: center !important;
}

a.floating-prenota.floating-call {
    bottom: 105px !important; 
    background-color: #ffffff !important; 
    color: #000000 !important; 
    border: 2px solid var(--primary-color, #f1b31c) !important; 
    padding-top: calc(1rem - 2px) !important;
    padding-bottom: calc(1rem - 2px) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
    transition: all 0.3s ease !important; 
}

a.floating-prenota.floating-call:hover {
    background-color: var(--primary-color, #f1b31c) !important; 
    color: #000000 !important; 
}

/* ==========================================
   STILE PROMOZIONI "GOLDEN TICKET" VIP
   ========================================== */
.promo-ticket-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 3.5rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.promo-ticket {
    position: relative;
    background: linear-gradient(135deg, #2a1a0f, #0a0603);
    border: 2px solid var(--primary-color, #f1b31c);
    border-radius: 16px;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(241, 179, 28, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.promo-ticket:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 30px rgba(241, 179, 28, 0.3);
}

.promo-ticket::before,
.promo-ticket::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 36px;
    height: 36px;
    background-color: var(--bg-body, #4A2E15);
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.promo-ticket::before {
    left: -19px;
    border-right: 2px solid var(--primary-color, #f1b31c);
    box-shadow: inset -5px 0 10px rgba(0,0,0,0.3);
}

.promo-ticket::after {
    right: -19px;
    border-left: 2px solid var(--primary-color, #f1b31c);
    box-shadow: inset 5px 0 10px rgba(0,0,0,0.3);
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(241, 179, 28, 0.6));
    animation: floatPromoIcon 3s ease-in-out infinite;
}

@keyframes floatPromoIcon {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-12px) scale(1.05); }
}

.promo-ticket h3 {
    font-size: 2rem;
    color: var(--primary-color, #f1b31c);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.promo-ticket p {
    font-size: 1.15rem;
    color: #f0f0f0;
    line-height: 1.6;
}

.promo-price-tag {
    display: inline-block;
    background-color: var(--primary-color, #f1b31c);
    color: #000000;
    font-size: 1.3rem;
    font-weight: 900;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    margin-top: 2rem;
    box-shadow: 0 8px 20px rgba(241, 179, 28, 0.4);
    transform: rotate(-3deg);
    border: 2px dashed #000;
}

/* =========================================
   MODAL PRIVACY E COOKIE POLICY
   ========================================= */
.privacy-modal {
    display: none; 
    position: fixed; 
    z-index: 10000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.privacy-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.privacy-modal-content {
    background-color: var(--bg-element);
    margin: auto;
    padding: 2.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.privacy-modal.show .privacy-modal-content {
    transform: translateY(0);
}

.close-privacy {
    color: var(--text-muted);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-privacy:hover {
    color: var(--primary-color);
}

.privacy-modal-content h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    text-transform: uppercase;
    text-align: center;
}

.privacy-text-small {
    font-size: 0.85rem; 
    color: var(--text-element);
    line-height: 1.6;
    text-align: left;
}

.privacy-text-small p {
    margin-bottom: 1rem;
}

/* =========================================
   TASTO E MODAL DADO (Premium)
   ========================================= */
.floating-dado {
    position: fixed;
    bottom: 100px; 
    right: 30px;   
    background-color: var(--bg-element);
    color: var(--text-element);
    border: 2px solid var(--primary-color);
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-dado:hover {
    transform: translateY(-4px);
    background-color: var(--primary-color);
    color: #222222;
}

/* Modal Dado */
.dado-modal {
    display: none; 
    position: fixed; 
    z-index: 10005; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.85); 
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.dado-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.dado-modal-content {
    background-color: var(--bg-element); 
    margin: auto;
    padding: 3.5rem 2.5rem;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    width: 90%;
    max-width: 850px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.dado-modal.show .dado-modal-content {
    transform: scale(1);
}

.close-dado {
    color: var(--text-muted);
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 36px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-dado:hover {
    color: #D3121E;
}

.dado-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.dado-rule-card {
    background-color: var(--bg-input); 
    border: 2px solid var(--border-light);
    border-radius: 16px;
    padding: 2.5rem 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.dado-rule-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.dado-face {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem auto;
    border-radius: 15px;
    box-shadow: inset -5px -5px 15px rgba(0,0,0,0.3), inset 5px 5px 15px rgba(255,255,255,0.4), 0 10px 20px rgba(0,0,0,0.3);
    position: relative;
    transform: rotate(-5deg);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dado-rule-card:hover .dado-face {
    transform: rotate(15deg) scale(1.1);
}

/* Puntino bianco 3D del dado */
.dado-face::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.4);
}

.dado-face.green { background-color: #2A9D8F; }
.dado-face.yellow { background-color: #F1B31C; }
.dado-face.red { background-color: #D3121E; }

.dado-rule-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 900;
}

.dado-rule-card:nth-child(1) h3 { color: #2A9D8F; }
.dado-rule-card:nth-child(2) h3 { color: var(--primary-color); }
.dado-rule-card:nth-child(3) h3 { color: #D3121E; }

.dado-rule-card p {
    color: var(--text-element);
    font-weight: 500;
    font-size: 1.1rem;
}

/* REGOLE SPECIFICHE PER IL MODAL DADO SU MOBILE */
@media (max-width: 768px) {
    .dado-modal-content {
        padding: 2.5rem 1.5rem;
        transform: scale(0.9);
        width: 95%;
    }
    
    .dado-modal.show .dado-modal-content {
        transform: scale(1);
    }
    
    .dado-modal-content h2 {
        font-size: 1.6rem !important; /* Riduciamo il titolo su mobile */
    }
    
    .dado-modal-content > p {
        font-size: 1rem !important; /* Riduciamo il sottotitolo */
        margin-bottom: 1.5rem !important;
    }

    .dado-rules-grid {
        grid-template-columns: 1fr; /* Una regola per riga su mobile */
        gap: 1.2rem;
        margin-top: 1.5rem;
    }
    
    .dado-rule-card {
        padding: 1.5rem 1rem;
        display: flex;
        flex-direction: row; /* Mettiamo l'icona a sinistra e il testo a destra */
        align-items: center;
        gap: 1.5rem;
        text-align: left;
    }
    
    .dado-face {
        width: 55px; /* Dado più piccolo su mobile */
        height: 55px;
        margin: 0 !important;
    }
    
    .dado-face::after {
        width: 10px; /* Puntino più piccolo */
        height: 10px;
    }
    
    .dado-rule-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }
    
    .dado-rule-card p {
        font-size: 0.95rem;
    }
}


/* =========================================
   MEDIA QUERIES PER SMARTPHONE E TABLET 
   ========================================= */

@media (max-width: 992px) {
    .slider-container .card {
        flex: 0 0 calc(50% - 1rem); 
    }
    .booking-container {
        flex-direction: column;
    }
    
    .locali-layout {
        flex-direction: column;
    }
    .locali-filters {
        flex: auto;
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 1rem;
    }

    .orari-sidebar {
        max-width: 100%;
        max-height: 0;
        padding: 0 2rem;
        margin-left: 0;
        margin-top: 0;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                    opacity 0.4s ease, 
                    margin-top 0.5s ease, 
                    padding 0.5s ease;
    }
    .orari-sidebar.visible {
        max-width: 100%;
        max-height: 600px;
        margin-left: 0;
        margin-top: 2rem;
        padding: 2.5rem 2rem;
    }
    .orari-sidebar-content {
        width: auto; 
    }
    
    .menu-container-layout {
        flex-direction: column;
    }

    .menu-sidebar {
        position: sticky;
        top: 70px;
        width: 100%;
        max-height: none;
        z-index: 100;
        background: #222222;
        padding: 0.8rem;
        margin-bottom: 1rem;
    }

    .menu-sidebar nav {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch;
    }

    .menu-sidebar nav a {
        display: inline-block;
        padding: 0.5rem 1rem;
        background: rgba(255,255,255,0.1);
    }
}

@media (max-width: 768px) {
    /* ---- RIDUZIONE PROPORZIONI GENERALI TESTI ---- */
    .section-title {
        font-size: 1.5rem !important; /* Testi più aggraziati su mobile */
        margin-bottom: 1.5rem !important;
    }

    /* HEADER PIU COMPATTO TUTTO SU UNA RIGA - FIX ZOOM */
    header {
        display: flex;
        flex-direction: row; 
        align-items: center;
        justify-content: space-between; 
        padding: 0.8rem 1rem !important;
        position: sticky;
        top: 0;
        z-index: 1000;
        flex-wrap: nowrap; /* Evitiamo a tutti i costi l'andare a capo che spacca l'header */
        width: 100%;
        box-sizing: border-box; /* Assicura che i padding non sballino la larghezza totale */
        overflow: visible; /* Ripristinato per permettere al menu a tendina di uscire dall'header */
    }
    
    header .logo {
        display: inline-flex;
        margin-bottom: 0;
        flex-shrink: 0; /* Il logo non deve mai rimpicciolirsi */
    }
    
    header .logo img {
        height: 30px !important; /* Reso ancora più piccolo per sicurezza */
    }

    /* GESTIONE LINK MENU SULLA STESSA RIGA DEL LOGO */
    nav {
        margin-top: 0;
        display: flex;
        flex-wrap: nowrap; 
        justify-content: flex-end;
        align-items: center;
        gap: 0.6rem; /* Ridotto il gap per schermi piccoli */
        flex: 1; 
        min-width: 0; /* Essenziale affinché flexbox non esca fuori dallo schermo */
    }
    
    nav a:not(.btn-nav-prenota) {
        margin: 0;
        font-size: 0.75rem; /* Font ulteriormente ridotto per starci tutti */
        white-space: nowrap;
    }

    /* NASCONDI IL TASTO PRENOTA E "HOME" NELL'HEADER MOBILE */
    nav .btn-nav-prenota,
    nav a[href="index.html"],
    nav a[href="index.php"],
    nav a[href="/"] {
        display: none !important;
    }

    /* Se lo schermo è piccolissimo (es. vecchi iPhone) */
    @media (max-width: 380px) {
        header {
            padding: 0.6rem 0.5rem !important;
        }
        nav {
            gap: 0.4rem;
        }
        nav a:not(.btn-nav-prenota) {
            font-size: 0.7rem;
        }
    }

    /* TASTI FLUTTUANTI INFERIORI (DUE CERCHI A SINISTRA E TASTO PRENOTA A DESTRA) */
    
    /* 1. TASTO NIGHT MODE (CERCHIO LUNA PIU PICCOLO) */
    #night-mode-toggle {
        bottom: 15px !important; 
        left: 12px !important;
        width: 42px !important;
        height: 42px !important;
        font-size: 1.2rem !important;
        border-radius: 50% !important;
        margin: 0 !important;
    }

    /* 2. TASTO DADO (CERCHIO SOLO EMOJI PIU PICCOLO) */
    button.floating-dado {
        bottom: 15px !important;
        left: 62px !important; /* Avvicinato alla luna */
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        font-size: 0 !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
    }
    button.floating-dado::after {
        content: "🎲";
        font-size: 1.4rem !important;
        display: block;
    }

    /* 3. TASTO CHIAMACI (METÀ SINISTRA DOPO LA LUNA O DADO) */
    a.floating-prenota.floating-call {
        bottom: 15px !important; 
        left: 65px !important; 
        right: calc(50% + 5px) !important; 
        width: auto !important; 
        min-width: 0 !important;
        height: 45px !important; 
        padding: 0 5px !important; 
        font-size: 0.85rem !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important; /* Effetto tondo rimosso, forma squadrata elegante */
        box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
        animation: none !important; 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
        background-color: #ffffff !important;
        color: #222222 !important;
        border: 2px solid var(--primary-color) !important;
    }

    /* 4. TASTO PRENOTA ORA (METÀ DESTRA) */
    a.floating-prenota:not(.floating-call) {
        bottom: 15px !important; 
        left: calc(50% + 5px) !important; 
        right: 15px !important;
        width: auto !important; 
        min-width: 0 !important;
        height: 45px !important; 
        padding: 0 5px !important; 
        font-size: 0.85rem !important; 
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important; /* Effetto tondo rimosso, forma squadrata elegante */
        box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
        animation: none !important; 
        white-space: nowrap; 
        overflow: hidden; 
        text-overflow: ellipsis; 
    }
    
    /* CASO SPECIFICO: Se c'è sia Luna che Dado (es: Home Page) e c'è un Prenota */
    body.has-dado a.floating-prenota {
        left: 110px !important; /* Spazio per Luna (50px) + Spazio (10px) + Dado (50px) */
        border-radius: 25px !important; /* Ritorna normale se da solo a destra */
    }
    

    /* RESTO DELLE OTTIMIZZAZIONI MOBILE */
    
    /* GESTIONE TABS MENU SU UN'UNICA RIGA SCORREVOLE (TIPO APP) */
    .menu-tabs {
        display: flex;
        flex-wrap: nowrap !important; /* Niente più accavallamenti su righe multiple */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* Scorrimento fluido nativo per iOS */
        justify-content: flex-start !important; /* Ripristinato per permettere lo scorrimento laterale delle categorie */
        -webkit-overflow-scrolling: touch; /* Scorrimento fluido */
        padding-bottom: 0.5rem; /* Lascia spazio alla scrollbar invisibile */
        gap: 0.5rem !important; /* Avviciniamo le voci */
        margin-bottom: 1.5rem !important;
    }
    
    .menu-tabs::-webkit-scrollbar {
        display: none; /* Nascondiamo la barra di scorrimento estetica */
    }
    
    .tab-btn {
        padding: 0.5rem 0.8rem !important; /* Molto più strette */
        font-size: 0.8rem !important; /* Testo ridimensionato */
        white-space: nowrap; /* Vietato andare a capo nel singolo tasto */
        flex-shrink: 0; /* Impediamo ai bottoni di schiacciarsi e sparire */
    }

    /* RIDUZIONE BOX, CARDS E GRIGLIE */
    .grid, .grid-4 {
        gap: 1rem !important; /* Tolto l'enorme spazio bianco tra un elemento e l'altro */
        padding-top: 0.5rem !important;
    }
    
    .card {
        padding: 1.5rem 1rem !important; /* Più strette, recuperiamo schermo */
    }
    
    .card h3 {
        font-size: 1.2rem !important; /* Titoli dei piatti normalizzati */
    }
    
    .card .price {
        font-size: 1.4rem !important;
        margin: 0.5rem 0 !important;
    }

    /* RIDUZIONE ICONE E SPAZIO AREE (Baby, Pizza, Party) */
    .features-grid {
        gap: 1.5rem !important; /* Dimezzato l'enorme spazio vuoto tra i blocchi */
        margin: 1.5rem auto 2.5rem auto !important; /* Meno vuoto sopra e sotto l'intera sezione */
        padding: 0.5rem 0 !important;
    }
    
    .feature-box {
        padding: 0.5rem !important; /* Box più compatti */
    }

    .feature-icon {
        width: 100px !important; /* Mantiene l'icona ridotta */
        margin-bottom: 0.5rem !important; /* Avvicina molto l'icona al suo titolo */
    }
    
    .feature-box h3 {
        font-size: 1.5rem !important;
    }

    /* RIDUZIONE TESTI BANNER GRANDI */
    .banner-content h2 {
        font-size: 1.7rem !important; /* Da 2.2 a 1.7 */
    }
    
    .banner-content p {
        font-size: 0.95rem !important;
    }
    
    .page-banner {
        padding: 3rem 1rem 2rem 1rem !important;
    }
    
    .page-banner h1 {
        font-size: 1.8rem !important;
    }

    /* BOX "SCOPRI RISTORANTI" */
    .scopri-content {
        padding: 1.5rem 1rem !important;
    }
    
    .scopri-content h2 {
        font-size: 1.6rem !important;
    }
    
    .scopri-content p {
        font-size: 0.95rem !important;
    }
    
    .img-overflow-wrapper {
        height: 180px !important; /* Immagini meno alte per arrivare prima al contenuto */
    }

    /* FIX RIEPILOGO E MODULI PRENOTAZIONE */
    .booking-card {
        padding: 1.5rem 1rem !important;
    }
    
    .booking-success h3 {
        font-size: 1.6rem !important;
    }
    
    .success-icon-circle {
        width: 70px !important;
        height: 70px !important;
    }
    
    .success-icon-t {
        font-size: 3.5rem !important;
    }
    
    .highlight-sede {
        font-size: 1.2rem !important;
    }

    /* FIX ORARI E NUMERI BLU SUI BOX LOCALI */
    .locale-hours-container.open .locale-hours-list {
        max-height: 400px !important; /* Spazio sufficiente per la riga singola */
        padding-bottom: 1rem;
    }
    
    .locale-hours-list li {
        font-size: 0.8rem; /* Riduciamo il font per farli stare in una riga */
        flex-direction: row; /* Tutto su una riga */
        align-items: center;
        padding: 0.35rem 0;
        gap: 0;
        border-bottom: 1px solid var(--border-light); /* Riga di separazione per eleganza */
    }
    
    .locale-hours-list li:last-child {
        border-bottom: none;
    }
    
    .locale-hours-list li span:last-child {
        align-self: center; 
        text-align: right;
        white-space: nowrap; /* Evita che l'orario si spezzi */
    }

    /* FIX iOS NUMERI BLU: resetta i finti link creati da Apple */
    .locale-hours-list a[href^="tel"],
    .locale-hours-list a {
        color: inherit !important;
        text-decoration: none !important;
        pointer-events: none !important;
    }
    
    /* FIX TESTI LUNGHI SUI BOTTONI (es. PROCEDI CON LA PRENOTAZIONE) */
    .btn {
        white-space: normal !important; /* Permette al testo di andare a capo nei bottoni normali */
        line-height: 1.3;
        font-size: 0.9rem; /* Leggermente più piccolo */
    }

    /* GESTIONE CONTENITORI GENERICI CHE ROMPONO LA PAGINA */
    .container, .booking-container, .locali-layout {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }
    
    body {
        width: 100%;
        overflow-x: hidden; /* Questo risolve l'90% dei problemi di "scivolamento laterale" / zoom finto */
    }
    
    .hero { padding: 3.5rem 1rem; min-height: auto; }
    .hero-card { padding: 1.8rem 1.2rem; animation: none; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 1rem; }
    .hero-features-list { gap: 0.6rem; font-size: 0.85rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    
    /* MODIFICA PER IL CAROSELLO TAGLIATO SU MOBILE - FIX SNAP */
    .slider-container {
        gap: 1rem;
        padding: 0.5rem 0 1rem 0; /* Un po' di padding per l'ombra */
        scroll-padding-left: 0; /* Assicura che si fermi al margine */
    }
    .slider-container .card { 
        flex: 0 0 calc(85%) !important; /* Mostra sempre un pezzetto della prossima card per invitare allo scroll */
        scroll-snap-align: center; /* Invece di start, così si centra perfettamente sullo schermo */
    } 
    
    .slide-btn { padding: 0.8rem 0.5rem; margin: 0 5px; }
    .banner-qualita, .banner-gustiamoci { background-attachment: scroll; padding: 3.5rem 1rem; }
    .banner-content h2 { font-size: 2.2rem; }
    .banner-content p { font-size: 1.1rem; }
    .reveal { opacity: 1; transform: translateY(0); transition: none; }
    .feature-details { grid-column: span 1; padding: 1.5rem; }
    .page-banner { padding: 5rem 1rem 4rem 1rem; }
    .page-banner h1 { font-size: 2.2rem; }
    .locale-card { flex-direction: column; text-align: center; padding: 2rem 1.5rem; border-left: none; border-top: 8px solid var(--primary-color); }
    .locale-info { text-align: center; margin-bottom: 1.5rem; }
    .locale-badge-gf { margin-left: 0; margin-top: 0.5rem; }

    /* POSIZIONAMENTO BADGE APERTO/CHIUSO e GLUTEN FREE SU MOBILE */
    .locale-card {
        position: relative; /* Necessario per posizionare in modo assoluto i badge */
        padding-top: 3.5rem !important; /* Spazio extra per i badge in alto */
    }
    
    .locale-badge-status, .locale-badge-gf {
        position: absolute;
        top: -15px; /* Sbordano leggermente fuori per eleganza */
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
        margin: 0 !important;
    }
    
    .locale-badge-status {
        left: 15px; /* A sinistra */
    }
    
    .locale-badge-gf {
        left: auto;
        right: 15px; /* A destra */
    }

    .locale-action { text-align: center; width: 100%; flex: 1 1 auto; }
    .locale-action .btn { width: 100%; font-size: 0.85rem; padding: 0.8rem 1rem;} /* Tasti sedi un po' più piccoli */
    .locale-hours-container { margin: 1rem auto; width: 100%; }
    
    .booking-card { padding: 2rem 1.5rem; }
    .form-row { flex-direction: column; gap: 1.5rem; }

    /* DROPDOWN MENU SEDI - FIX OVERFLOW */
    nav .dropdown-content {
        left: auto !important;
        right: 0 !important; /* Allineato a destra per non sforare mai lo schermo */
        transform: translate(0, 15px) !important;
        min-width: 140px !important; /* Più piccolo e compatto */
    }
    
    nav .dropdown:hover .dropdown-content,
    nav .dropdown:focus-within .dropdown-content {
        transform: translate(0, 0) !important;
    }
    
    nav .dropdown-content a {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }


    /* FIX HOVER "INCASTRATO" SU TOUCH SCREEN: 
       Evita che il tasto rimanga ingrandito dopo averlo premuto */
    #night-mode-toggle:hover, 
    #night-mode-toggle:active,
    button.floating-dado:hover,
    button.floating-dado:active,
    a.floating-prenota:hover,
    a.floating-prenota:active {
        transform: none !important;
    }

}

/* Stile Unico per il Menù Pranzo / Lavoro */
.menu-pranzo-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(145deg, #23150b, #110a05);
    border: 2px solid var(--primary-color, #f1b31c);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    color: #ffffff;
}

.menu-pranzo-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px dashed rgba(241, 179, 28, 0.3);
    padding: 1.2rem 0;
    gap: 1.5rem;
}

.menu-pranzo-item:last-child {
    border-bottom: none;
}

.menu-pranzo-info h3 {
    font-size: 1.15rem;
    color: var(--primary-color, #f1b31c);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-pranzo-info p {
    font-size: 0.9rem;
    color: #cccccc;
    font-style: italic;
    margin: 0;
}

.menu-pranzo-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    background: rgba(241, 179, 28, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    border: 1px solid rgba(241, 179, 28, 0.4);
}

@media (max-width: 768px) {
    .menu-pranzo-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .menu-pranzo-price {
        align-self: flex-end;
    }
}