@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

/* --- 1. BASE STYLES --- */
body {
    margin: 0;
    padding-top: 0;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #f4f1eb; 
    color: #1a1a1a;
}

body.modal-open {
    overflow: hidden;
}

/* --- 2. HERO HEADER & VIDEO (100% Viewport Width) --- */
.hero-header {
    position: relative;
    width: 100%;
    height: 100dvh;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* --- FIXED HEADER & DESKTOP LANGUAGE TOGGLE --- */
.fixed-logo-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 1002;
    text-align: center;
    background-color: transparent; 
    pointer-events: none;
    transition: background-color 0.3s ease;
}

.fixed-logo-container.scrolled-bg {
    background-color: #f4f1eb; 
}

/* Top-Right Language Toggle (Fixed with header, always clickable) */
.fixed-desktop-lang {
    display: none;
    position: absolute;
    top: 25px;
    right: 40px;
    z-index: 2005;
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #b1b0b0;
    pointer-events: auto;
    user-select: none;
    transition: color 0.3s ease;
}

.fixed-logo-container.scrolled-bg .fixed-desktop-lang {
    color: #1c1c1c;
}

.fixed-desktop-lang .lang-btn {
    cursor: pointer;
    color: inherit;
    transition: color 0.2s ease;
}

.fixed-desktop-lang .lang-btn.active {
    color: #8a1c1c !important;
    font-weight: 600;
}

.logo {
    font-family: 'Cinzel', serif;
    font-weight: 400;
    font-size: 2.5rem; 
    text-transform: uppercase;
    letter-spacing: 4px; 
    margin: 0;
    color: #b1b0b0; 
    transition: color 0.3s ease;
    pointer-events: auto;
}

.fixed-logo-container.scrolled-bg .logo {
    color: #1c1c1c; 
}

/* Desktop Navigation Bar (Hidden on Mobile) */
.desktop-nav {
    display: none;
    pointer-events: auto;
    margin-top: 10px;
    align-items: center;
    justify-content: center;
}

.desktop-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px;
}

.desktop-nav-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    color: #b1b0b0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s ease;
}

.fixed-logo-container.scrolled-bg .desktop-nav-links a {
    color: #1c1c1c;
}

.desktop-nav-links a:hover {
    color: #8a1c1c !important;
}

.michelin-wrapper {
    position: absolute;
    bottom: 30px;
    width: 100%;
    height: 20px;
    z-index: 1; 
}

.michelin-badge {
    display: flex;
    justify-content: center;
    width: 100%;
}

.michelin-img {
    height: 12px;
    width: auto;
    opacity: 0.9;
}

/* --- 3. MOBILE HAMBURGER MENU & OVERLAY --- */
/* --- 3. MOBILE HAMBURGER MENU & OVERLAY --- */
.hamburger-btn {
    position: fixed;
    top: 32px; /* Shifted up from 38px to align centers with the logo */
    right: 25px;
    width: 30px;
    height: 18px; /* Slightly tightened from 20px for balanced bar proportions */
    z-index: 2005;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #b1b0b0; 
    transition: 0.3s;
}

.hamburger-btn.scrolled-bg span {
    background-color: #1c1c1c; 
}

/* X Animation */
.hamburger-btn.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.fullscreen-menu {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100dvh;
    background-color: #f4f1eb;
    z-index: 2004;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fullscreen-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.menu-inner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 80%;
}

.lang-switcher {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    margin-bottom: 30px;
    color: #1a1a1a;
    user-select: none;
}

.lang-btn {
    cursor: pointer;
    transition: color 0.2s ease;
}

.lang-btn.active {
    color: #8a1c1c !important; 
    font-weight: 600;
}

.fullscreen-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    width: 100%;
}

.fullscreen-links li {
    border-bottom: 1px solid #333;
}

.fullscreen-links li:first-child {
    border-top: 1px solid #333;
}

.fullscreen-links a {
    display: block;
    padding: 25px 0;
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
}

/* --- 4. MAIN CONTENT & MENU ACCORDIONS --- */
.scroll-content {
    display: flex;
    flex-direction: column;
    min-height: 100dvh; 
    background-color: #f4f1eb;
    width: 100%;
}

.menu-container {
    padding: 20px 20px 0 20px;
    flex: 1; 
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.menu-content {
    display: none;
    padding-bottom: 20px;
}

.menu-title.active + .menu-content {
    display: block;
}

.menu-title {
    cursor: pointer;
    padding: 20px 0;
    margin: 0;
    font-weight: 500; 
    font-size: 1.5rem; 
    -webkit-tap-highlight-color: transparent; 
    transition: all 0.2s ease-in-out;
}

.menu-title.active {
    font-style: italic;
    color: #8a1c1c; 
}

@media (hover: hover) {
    .menu-title:hover {
        color: #8a1c1c; 
    }
}

.menu-category-title {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem; 
    font-weight: normal; 
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    color: #1a1a1a;
}

.menu-link {
    cursor: pointer;
    margin-bottom: 15px;
}
.menu-link:hover { color: #8a1c1c; }

.menu-link-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-family: 'Cinzel', serif;
    font-weight: normal; 
    font-size: 1rem; 
    color: #1a1a1a;
}

.menu-link-price {
    font-family: sans-serif; 
    font-weight: 400; 
    font-size: 0.95rem; 
}

.menu-link-desc {
    margin: 2px 0 0 0;
    font-size: 0.9rem;
    color: #555;
}

.menu-section {
    border-bottom: 1px solid #333;
    padding: 5px 0;
}

.plus-icon {
    font-family: sans-serif;
    font-weight: 300;
    font-size: 1.1rem;
    color: #8a1c1c; 
    margin-left: 6px; 
}

/* --- 5. BOOKING CROSSFADE ANIMATION --- */
.booking-link {
    text-decoration: none;
    display: block;
}

.booking-crossfade {
    position: relative;
    width: 95%;
    max-width: 900px;
    margin: 40px auto; 
}

.cf-img {
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: crossfade 78s infinite linear;
}

.cf-1 { animation-delay: 0s; }
.cf-2 { animation-delay: 13s; }
.cf-3 { animation-delay: 26s; }
.cf-4 { animation-delay: 39s; }
.cf-5 { animation-delay: 52s; }
.cf-6 { animation-delay: 65s; } 

@keyframes crossfade {
    0% { opacity: 0; }
    4% { opacity: 1; }       
    16.66% { opacity: 1; }   
    21% { opacity: 0; }      
    100% { opacity: 0; }
}

.booking-overlay {
    position: absolute;
    top: 3%; 
    right: 3%;
    color: rgb(230, 230, 230);
    font-weight: 400;
    font-family: sans-serif; 
    text-align: right;
    line-height: 1.2; 
    font-size: 8vw; 
    letter-spacing: 5px; 
    z-index: 2; 
}

/* --- 6. MENU MODAL --- */
.menu-modal {
    display: none; 
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100dvh; 
    background-color: rgb(240, 232, 232); 
    border-color: #6d6c6c;
    border: 1px solid;
    z-index: 2006;
    overflow-y: auto;
    padding: 60px 20px 40px 20px;
    box-sizing: border-box;
}

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

.modal-close {
    position: absolute;
    top: 25px; 
    right: 35px;
    font-size: 2.5rem; 
    cursor: pointer;
    font-family: sans-serif;
    color: #1a1a1a;
}

.modal-content {
    max-width: 600px; 
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 100px); 
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.modal-subtitle {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 30px;
    font-weight: bold;
}

.dish-item {
    font-family: sans-serif;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 15px;
}

.dish-item-alla-carta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.dish-item-alla-carta:first-of-type {
    margin-top: 30px; 
}

.dish-item-alla-carta strong {
    font-family: sans-serif; 
    font-weight: 400; 
    font-size: 0.95rem; 
}

.oppure {
    text-align: center;
    font-style: italic;
    margin: 30px 0;
    color: #555;
}

.allergen-sup {
    font-size: 0.6rem;
    margin-left: 2px;
}

.allergen-footer {
    margin-top: auto; 
    padding-top: 30px;
    padding-bottom: 20px; 
    border-top: 1px solid #ccc;
    font-size: 0.75rem;
    color: #555;
    line-height: 1.5;
}

/* --- 7. FOOTER --- */
.site-footer {
    background-color: #f4f1eb; 
    color: #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    box-sizing: border-box;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.footer-spacer,
.footer-michelin,
.footer-social {
    flex: 1;
    display: flex;
    align-items: center;
}

.footer-michelin {
    justify-content: center;
}

.footer-social {
    justify-content: flex-end;
}

.michelin-img-small {
    height: 9px;
    width: auto;
    opacity: 0.7;
}

.ig-link {
    color: #333;
    display: flex;
    align-items: center;
}

.ig-link:hover {
    color: #8a1c1c;
}

/* --- 8. DESKTOP MEDIA QUERY (min-width: 769px) --- */
@media screen and (min-width: 769px) {
    .hamburger-btn {
        display: none !important;
    }

    /* Fixed Top-Right Language Switcher becomes visible */
    .fixed-desktop-lang {
        display: block;
    }

    /* Horizontal Navbar appears under Logo */
    .desktop-nav {
        display: flex;
    }

    /* Hero Video spans 100% full viewport width */
    .hero-header,
    .hero-video-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .booking-overlay {
        font-size: 3.8rem;
    }

    .menu-modal {
        top: 5vh;
        left: 50%;
        transform: translateX(-50%);
        width: 650px;
        height: 90vh;
        border-radius: 4px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
}