:root {
    --primary: #1c352d;     
    --accent: #b08d57;      
    --dark: #2c2c2c;
    --cream: #fcfbfa;
    --white: #ffffff;
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-sans); color: var(--dark);
    background-color: var(--white); overflow-x: hidden;
}

.tab-content { display: none !important; }
.tab-content.active-tab { display: block !important; }
header#hero.active-tab { display: flex !important; }

.navbar {
    position: fixed; top: 0; left: 0; width: 100%; background: var(--white);
    border-bottom: 1px solid #eef0f5; z-index: 3000; height: 80px;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; height: 100%;
    display: flex; justify-content: space-between; align-items: center; padding: 0 20px;
}
.nav-brand { display: none; }
.nav-logo {
    font-family: var(--font-serif); color: var(--primary);
    text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: 0.5px;
}
.nav-menu-wrapper { display: flex; align-items: center; }
.nav-links { display: flex; gap: 30px; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--dark); font-weight: 500;
    font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
    padding: 28px 0; display: inline-block; transition: color 0.2s;
}
.nav-links a.active, .nav-links a:hover { color: var(--accent); border-bottom: 2px solid var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 15px; }
.lang-switcher { font-size: 12px; color: #999; }
.lang-btn { padding: 2px 5px; cursor: pointer; }
.lang-btn.active { color: var(--accent); font-weight: 600; }

.hamburger-toggle {
    display: none; flex-direction: column; justify-content: space-between;
    width: 24px; height: 18px; background: transparent; border: none; cursor: pointer; z-index: 3100;
}
.hamburger-toggle span { width: 100%; height: 2px; background-color: var(--dark); transition: all 0.3s ease; }

.main-content { margin-top: 80px; min-height: calc(100vh - 80px); }
.container { max-width: 1140px; margin: 0 auto; padding: 60px 20px; }

.hero-section {
    position: relative; height: calc(100vh - 80px);
    display: flex; align-items: center; justify-content: center;
    text-align: center; background-color: #000; overflow: hidden;
}
#hero-slides-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%); z-index: 2;
}
.hero-center { position: relative; z-index: 10; width: 90%; max-width: 1100px; }
.hero-title {
    font-family: var(--font-serif); font-size: clamp(2.5rem, 7vw, 5.5rem); 
    font-weight: 400; font-style: italic; color: #ffffff;
    line-height: 1.1; margin-bottom: 20px; text-shadow: 0 4px 15px rgba(0,0,0,0.8); 
}
.hero-subtitle {
    font-family: var(--font-sans); font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: #f1f1f1; text-transform: uppercase; letter-spacing: 6px; 
    font-weight: 300; text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.slide-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0; transition: opacity 1.8s ease-in-out;
}
.slide-img.active { opacity: 1; }

.section-tag {
    font-size: 11px; text-transform: uppercase; letter-spacing: 2px;
    color: var(--accent); font-weight: 600; display: block; margin-bottom: 10px;
}
.section-title {
    font-family: var(--font-serif); font-size: 32px; color: var(--primary);
    font-weight: 300; margin-bottom: 20px;
}

.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.two-column.reverse { direction: rtl; }
.two-column.reverse .text-block { direction: ltr; }
.image-wrapper { 
    width: 100%; 
    height: auto; /* L'altezza ora si adatta alla foto */
    border-radius: 2px; 
    overflow: hidden; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); 
}
.image-wrapper img { 
    width: 100%; 
    height: auto; /* Nessun taglio, mantiene le proporzioni originali */
    display: block; 
}

.menu-del-giorno-box {
    margin-top: 35px; padding: 25px; background-color: var(--cream);
    border: 1px solid #f0edf8; border-left: 3px solid var(--accent); display: flex; flex-direction: column;
}
.menu-box-title {
    font-family: var(--font-serif); color: var(--primary); font-size: 18px; margin-bottom: 15px; 
    padding-bottom: 10px; font-weight: 700; border-bottom: 2px solid var(--accent); background-color: var(--cream); 
}
.menu-scroll-container { max-height: 300px; overflow-y: auto; padding-right: 10px; }
.menu-scroll-container::-webkit-scrollbar { width: 5px; }
.menu-scroll-container::-webkit-scrollbar-track { background: #f1f1f1; }
.menu-scroll-container::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

.menu-item-row {
    display: flex; justify-content: space-between; align-items: flex-start !important; 
    gap: 20px; font-size: 14px; padding: 10px 0; border-bottom: 1px dotted #ddd; color: #444;
}
.menu-item-row span:first-child { flex: 1; line-height: 1.4; }
.menu-item-row span:last-child { white-space: nowrap; font-weight: 600; color: var(--accent); text-align: right; min-width: fit-content; }
.menu-category-header { margin-top: 15px; font-weight: 700; color: var(--primary); background: #fdfdfd; padding: 5px 0; position: sticky; top: 0; z-index: 10; }
.menu-items-list { list-style: none; }
.menu-items-list li { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 12px; color: #444; }
.menu-item-desc { display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.dish-name { font-size: 15px; font-weight: 500; color: #333; margin-bottom: 4px; display: block; }
.allergen-container { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.allergen-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px !important; height: 18px !important; min-width: 18px; min-height: 18px;
    background-color: #f0f0f0; border: 1px solid #ccc; border-radius: 50% !important; 
    color: #666; font-size: 9px; font-weight: 700; line-height: 1; text-align: center;
}
.dish-price { white-space: nowrap; font-weight: 600; color: var(--accent); margin-left: 15px; }

.text-center-block { text-align: center; max-width: 600px; margin: 0 auto 50px; }

.events-main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.scroll-box { height: 420px; overflow-y: auto; border: 1px solid #eee; background: #fdfdfd; padding: 15px; border-radius: 4px; }
.event-card-horizontal { display: flex; gap: 15px; padding: 15px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
.event-card-horizontal:last-child { border-bottom: none; }
.event-thumb { width: 120px; height: 90px; flex-shrink: 0; border-radius: 4px; overflow: hidden; cursor: pointer; }
.event-thumb img, .event-thumb video { width: 100%; height: 100%; object-fit: cover; }
.event-info-short h4 { font-family: var(--font-serif); font-size: 16px; margin-bottom: 5px; color: var(--primary); }
.event-info-short p { font-size: 13px; color: #666; line-height: 1.4; }

.history-section { margin-top: 40px; padding-top: 40px; border-top: 2px solid var(--accent); }
.history-slider-wrapper { display: flex; align-items: center; gap: 15px; width: 100%; margin-top: 20px; }
#history-events-container { display: flex; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scroll-behavior: smooth; gap: 15px; flex-grow: 1; padding: 10px 0; scrollbar-width: none; }
#history-events-container::-webkit-scrollbar { display: none; }
.history-mini-card { flex: 0 0 130px !important; background: white; border: 1px solid #eee; display: flex; flex-direction: column; cursor: pointer; overflow: hidden; transition: transform 0.2s; }
.history-mini-card:hover { transform: translateY(-3px); }
.history-mini-card img, .history-mini-card video { width: 100%; height: 130px; object-fit: cover; }
.history-mini-card .caption {
    padding: 6px 2px !important; font-size: 10px !important; line-height: 1.3 !important; text-align: center !important; font-weight: 400 !important; color: #444 !important; font-family: var(--font-sans) !important;
    display: -webkit-box !important; -webkit-line-clamp: 2 !important; -webkit-box-orient: vertical !important; overflow: hidden !important; height: 3.5em !important; word-wrap: break-word !important; text-transform: none;
}

.nav-arrow {
    display: none; flex-shrink: 0; background: var(--primary); color: white; border: none; width: 38px; height: 38px; border-radius: 50%;
    cursor: pointer; align-items: center; justify-content: center; font-size: 18px; box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.nav-arrow:hover { background: var(--accent); }

.sub-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9500; display: flex; align-items: center; justify-content: center; }
.sub-modal-content { background: white; padding: 30px; max-width: 800px; width: 90%; border-radius: 4px; position: relative; }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; margin-top: 20px; max-height: 60vh; overflow-y: auto; }
.sub-item { cursor: pointer; border: 1px solid #ddd; aspect-ratio: 1; }
.sub-item img, .sub-item video { width: 100%; height: 100%; object-fit: cover; }
.close-sub { position: absolute; top: 10px; right: 15px; font-size: 24px; cursor: pointer; }

.restaurant-gallery-wrapper { margin-top: 60px; padding-top: 40px; border-top: 1px solid #eee; }
.grid-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.gallery-item { aspect-ratio: 1 / 1; overflow: hidden; cursor: pointer; border-radius: 4px; transition: transform 0.3s ease; }
.gallery-item:hover { transform: scale(1.03); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

#modal-img { max-width: 90%; max-height: 85vh; margin: auto; border: 5px solid white; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
.placeholder-thumb {
    width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary), #2a4d41); display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-family: var(--font-serif); font-size: 24px; font-weight: bold; text-transform: uppercase; border: 1px solid rgba(255,255,255,0.1);
}

.digital-poster-container {
    background: var(--cream); padding: 60px 40px; max-width: 500px; width: 90%; margin: auto; border: 2px solid var(--accent);
    text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.3); position: relative; display: flex; flex-direction: column; gap: 20px;
}
.poster-title { font-family: var(--font-serif); font-size: 28px; color: var(--primary); border-bottom: 1px solid var(--accent); padding-bottom: 15px; margin-bottom: 10px; }
.poster-desc { font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--dark); }
.poster-footer { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-top: 20px; }

.map-box { height: 300px; margin-top: 20px; background: #eee; border: 1px solid #ddd; border-radius: 4px; overflow: hidden; }
.map-link-btn {
    display: inline-block; margin-top: 15px; font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 600;
    border: 1px solid var(--accent); padding: 10px 20px; border-radius: 4px; transition: all 0.3s; text-transform: uppercase; letter-spacing: 0.5px; text-align: center;
}
.map-link-btn:hover { background: var(--accent); color: white; }

.grid-camere { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.room-card { background: var(--white); border: 1px solid #f0edf8; }
.room-card img { width: 100%; height: 220px; object-fit: cover; }
.room-info { padding: 25px; }
.room-info h3 { font-family: var(--font-serif); font-size: 18px; margin-bottom: 8px; font-weight: 400;}
.room-info p { font-size: 14px; color: #555; }

.booking-form { display: flex; flex-direction: column; gap: 15px; }
.booking-form input, .booking-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; font-family: var(--font-sans); outline: none; background: #fafafa; border-radius: 4px; font-size: 16px; }
.booking-form input:focus, .booking-form textarea:focus { border-color: var(--accent); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.btn-submit { background: var(--primary); color: white; border: none; padding: 15px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; cursor: pointer; }

.info-scatola { background: #fafafa; padding: 40px; border-radius: 4px; border: 1px solid #eee; }
.info-item { margin-bottom: 15px; font-size: 15px; line-height: 1.6; color: #444; }
.info-item strong { color: var(--primary); text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.contact-link { text-decoration: none; color: var(--dark); transition: color 0.3s; }
.footer { text-align: center; padding: 30px; font-size: 12px; background: #111; color: #666; margin-top: 5px; }

/* --- Form e Loader --- */
.privacy-checkbox-group { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #555; }
.privacy-checkbox-group input { width: 18px; height: 18px; margin-top: 2px; cursor: pointer; }
.privacy-checkbox-group a { color: var(--accent); text-decoration: underline; }

.loader {
    border: 4px solid #f3f3f3; border-top: 4px solid var(--accent);
    border-radius: 50%; width: 40px; height: 40px;
    animation: spin 1s linear infinite; margin: 0 auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- Footer e Cookie Banner --- */
.footer-links { margin-top: 10px; font-size: 11px; }
.footer-links a { color: #999; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }

.cookie-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #111; color: #fff; padding: 20px; z-index: 9999;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
}
.cookie-content {
    max-width: 1140px; margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center; gap: 20px;
}
.cookie-content p { font-size: 13px; line-height: 1.5; color: #ccc; flex: 1; }
.cookie-buttons { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
    padding: 10px 20px; border: none; cursor: pointer;
    font-family: var(--font-sans); font-weight: 600; font-size: 12px; border-radius: 3px;
}
.cookie-btn.accept { background: var(--accent); color: white; }
.cookie-btn.reject { background: transparent; color: #999; border: 1px solid #666; }
.cookie-btn.reject:hover { background: #333; color: white; }

/* --- Altezza specifica per l'immagine del Ristorante --- */
#ristorante-main-img-container {
    height: 600px; /* <-- MODIFICA QUESTO VALORE per ingrandirla o rimpicciolirla */
}

#ristorante-main-img-container img {
    height: 100%;
    object-fit: cover; /* Taglia l'eccesso per riempire il nuovo spazio in altezza senza deformare la foto */
}

/* --- Tasto PRENOTA Booking --- */
.btn-prenota {
    background-color: var(--accent);
    color: var(--white) !important;
    padding: 8px 16px !important;
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(176, 141, 87, 0.4);
    transition: all 0.3s ease;
    margin-right: 5px; /* Spazio tra prenota e la musica */
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-prenota:hover {
    background-color: #927445;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(176, 141, 87, 0.6);
}

/* --- Tasto Musica --- */
.music-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}
.music-btn:hover { transform: scale(1.1); }

/* --- Markdown per FAQ --- */
.markdown-body {
    max-width: 800px;
    margin: 0 auto;
    background: var(--cream);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 5px 25px rgba(0,0,0,0.03);
}
.markdown-body h1, .markdown-body h2 {
    font-family: var(--font-serif);
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}
.markdown-body h3 { color: var(--accent); margin-top: 25px; margin-bottom: 10px; font-size: 18px; }
.markdown-body p { margin-bottom: 15px; line-height: 1.6; color: #444; }
.markdown-body ul, .markdown-body ol { margin-left: 20px; margin-bottom: 20px; line-height: 1.6; color: #444;}
.markdown-body li { margin-bottom: 5px; }

/* --- MENU TENDINA LINGUE --- */
.custom-dropdown {
    position: relative;
    display: inline-block;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    user-select: none;
}
.dropdown-selected {
    padding: 6px 12px;
    font-weight: 600;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fafafa;
    transition: all 0.2s;
}
.dropdown-selected:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    min-width: 60px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow: hidden;
    z-index: 1000;
    margin-top: 5px;
    border: 1px solid #eee;
}
.dropdown-options.show {
    display: flex;
    flex-direction: column;
}
.lang-btn {
    padding: 10px 15px;
    text-align: center;
    display: block;
    transition: background 0.2s;
    border-bottom: 1px solid #f5f5f5;
}
.lang-btn:last-child { border-bottom: none; }
.lang-btn:hover { background-color: #f9f9f9; color: var(--accent); }
.lang-btn.active { background-color: var(--accent); color: white; font-weight: bold; }


@media (max-width: 992px) {
    .btn-prenota { margin-left: 0; text-align: center; }
    .lang-switcher { font-size: 10px; }
}



@media (max-width: 768px) {
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-buttons { width: 100%; justify-content: center; }
}


@media (max-width: 1024px) {
    .grid-camere { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

@media (max-width: 992px) {
    .navbar { height: 70px; position: fixed; }
    .nav-container { padding: 0 15px; }
    .nav-brand { display: block; }
    .hamburger-toggle { display: flex; }
    .hamburger-toggle.menu-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger-toggle.menu-open span:nth-child(2) { opacity: 0; }
    .hamburger-toggle.menu-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-menu-wrapper {
        position: fixed; top: 70px; right: -100%; width: 80%; max-width: 300px; height: calc(100vh - 70px);
        background: var(--white); box-shadow: -5px 5px 15px rgba(0,0,0,0.1); transition: right 0.3s ease;
        padding: 30px; align-items: flex-start; z-index: 2999;
    }
    .nav-menu-wrapper.menu-open { right: 0; }
    .nav-links { flex-direction: column; gap: 20px; width: 100%; }
    .nav-links a { padding: 10px 0; width: 100%; font-size: 15px; }
    .nav-links a.active { border-bottom: none; border-left: 3px solid var(--accent); padding-left: 10px; }

    .main-content { margin-top: 70px; }
    .container { padding: 40px 15px; }
    .two-column, .grid-camere, .events-main-grid { grid-template-columns: 1fr !important; gap: 30px; }
    .two-column.reverse { direction: ltr; }
    .hero-title { font-size: 2.3rem; }
    .image-wrapper { height: 300px; }
    .grid-gallery { grid-template-columns: repeat(3, 1fr); }
    .scroll-box { height: auto; max-height: 500px; }
}

@media (max-width: 768px) {
    .grid-camere { grid-template-columns: 1fr !important; gap: 25px; }
    .room-card img { height: 250px; }
    .history-mini-card { flex: 0 0 110px !important; }
    .history-mini-card img, .history-mini-card video { height: 110px; }
    .nav-arrow { display: none !important; }
    .grid-gallery { grid-template-columns: repeat(2, 1fr); }
    .map-box { height: 250px; }
}