:root {
    --primary: #0A192F;
    --accent: #C5A059;
    --text: #2c2c2c;
    --text-light: #f4f4f4;
    --bg-body: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important; 
    position: relative;
    margin: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background-color: var(--bg-body);
    line-height: 1.7;
}


h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
img { width: 100%; height: 100%; object-fit: cover; }

/* --- UTILITIES & SPAZIATURA --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
.small-container { max-width: 800px; }
.text-center { text-align: center; }

/* Spaziatura Sezioni */
.section-padding { padding-top: 60px; padding-bottom: 60px; }

h2.section-title { 
    font-size: 3rem; 
    margin-bottom: 25px !important; 
    color: var(--primary); 
}

/* Titolo interno piccolo (Prenotazione & Dettagli) */
.h2-internal {
    font-size: 1.5rem !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    color: var(--primary);
    text-align: left;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    display: inline-block;
}

.lead-text { 
    font-size: 1.1rem; 
    font-weight: 300; 
    color: #555; 
    line-height: 1.6; 
    margin-bottom: 25px !important; 
}
.lead-text strong { font-weight: 500; color: var(--primary); }

.bg-dark { background-color: var(--primary); color: white; }
.text-light { color: white !important; }

/* --- NAVBAR --- */
#navbar { 
    position: fixed; top: 0; left: 0; width: 100%; padding: 20px 50px; 
    z-index: 9999; transition: all 0.4s ease; display: flex; justify-content: center; 
    background: transparent; 
}
#navbar.scrolled { 
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); 
    padding: 15px 50px; box-shadow: 0 4px 30px rgba(0,0,0,0.05); 
}

.nav-container { 
    width: 100%; max-width: 1400px; display: flex; justify-content: space-between; align-items: center; 
}

.logo { 
    font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: white; 
    letter-spacing: 1px; display: flex; flex-direction: column; line-height: 1; z-index: 1002;
}
.sub-logo { font-family: var(--font-body); font-size: 0.6rem; letter-spacing: 3px; margin-top: 5px; opacity: 0.8; text-transform: uppercase; }

/* Gruppo Lingua + Hamburger */
.nav-extras { display: flex; align-items: center; gap: 15px; z-index: 1002; }

/* Stile Selettore Lingua */
#language-selector {
    background: transparent; border: 1px solid rgba(255,255,255,0.6); color: white;
    padding: 5px 8px; border-radius: 4px; font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem; cursor: pointer; outline: none; text-transform: uppercase;
}
#language-selector option { color: #333; }

/* Colori allo scroll */
#navbar.scrolled .logo, 
#navbar.scrolled .nav-links a, 
#navbar.scrolled .hamburger,
#navbar.scrolled #language-selector { 
    color: var(--primary) !important; 
    border-color: var(--primary); 
}
#navbar:not(.scrolled) .nav-links a, 
#navbar:not(.scrolled) .logo, 
#navbar:not(.scrolled) .hamburger { color: white !important; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }

.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 500; position: relative; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- COMPONENTI SLIDER --- */

/* Contenitore Slider */
.slider-container, 
.room-slider { 
    position: relative; 
    width: 100%; 
    height: 500px !important; 
    overflow: hidden; 
    border-radius: 8px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: #f0f0f0; 
    margin-bottom: 20px;
}

.slides-wrapper { width: 100%; height: 100%; position: relative; }

/* Singola Slide (Immagine) */
.slide, 
.room-slide { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    object-fit: cover; 
    opacity: 0; 
    transition: opacity 0.6s ease-in-out; 
    z-index: 1; 
}

/* Slide Attiva */
.slide.active, 
.room-slide.active { 
    opacity: 1 !important; 
    z-index: 2; 
}

/* Frecce Navigazione */
.slider-btn, 
.slider-arrow { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(0,0,0,0.4); color: white; border: none; 
    width: 45px; height: 45px; border-radius: 50%; cursor: pointer; 
    z-index: 10; display: flex; align-items: center; justify-content: center; 
    transition: 0.3s;
}
.slider-btn:hover, .slider-arrow:hover { background: var(--accent); }
.prev, .prev-btn { left: 20px; } 
.next, .next-btn { right: 20px; }

/* Bottone Galleria */
.gallery-overlay-btn {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9); color: var(--primary);
    padding: 10px 25px; border-radius: 30px;
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    z-index: 20; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex; align-items: center; gap: 8px; transition: all 0.3s ease;
    text-decoration: none;
}
.gallery-overlay-btn:hover { background: var(--primary); color: white; transform: translateX(-50%) translateY(-3px); }

/* --- HERO --- */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: white; overflow: hidden; }
.page-hero { height: 60vh; min-height: 400px; }
.video-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; animation: slowZoom 20s infinite alternate; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%); z-index: -1; }
.hero-content h1 { font-size: 4rem; line-height: 1.1; margin: 20px 0 40px; }
.hero-subtitle { text-transform: uppercase; letter-spacing: 4px; font-size: 0.9rem; color: var(--accent); display: block; }
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.1); } }

/* Bottoni */
.btn-outline { border: 1px solid white; color: white; padding: 15px 40px; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; transition: 0.3s; display: inline-block; }
.btn-outline:hover { background: white; color: var(--primary); }

.btn-text-gold { color: var(--accent); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.btn-gold-solid { background: var(--accent); color: white; padding: 12px 25px; text-transform: uppercase; font-weight: 600; font-size: 0.8rem; letter-spacing: 1px; border-radius: 2px; transition: 0.3s; width: 100%; display: block; text-align: center; }
.btn-gold-solid:hover { background: var(--primary); color: white; }



/* Bottone "Vedi Galleria" */
.gallery-overlay-btn {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9); color: var(--primary);
    padding: 10px 25px; border-radius: 30px;
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    z-index: 20; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: flex; align-items: center; gap: 8px; transition: all 0.3s ease;
}
.gallery-overlay-btn:hover { background: var(--primary); color: white; transform: translateX(-50%) translateY(-3px); }

/* --- LE CAMERE  --- */
.room-row { display: flex; align-items: center; gap: 40px; margin-bottom: 40px; }
.room-row.reverse { flex-direction: row-reverse; }
.room-text { flex: 1; }
.room-text h3 { font-size: 2.2rem; margin-bottom: 20px; color: var(--primary); }
.description { color: #666; margin-bottom: 25px; font-weight: 300; }
.features { display: flex; gap: 20px; margin-bottom: 30px; font-size: 0.9rem; color: #888; }
.features i { color: var(--accent); margin-right: 5px; }
.link-styled {
    color: var(--primary); font-weight: 600; text-transform: uppercase;
    font-size: 0.8rem; letter-spacing: 1px; border-bottom: 1px solid var(--accent); padding-bottom: 3px;
}
.link-styled:hover { color: var(--accent); }

/* Elementi Mobile (Default nascosti su PC) */
.mobile-room-title { display: none; }
.room-overlay-btn { display: none; }


/* --- AREE COMUNI --- */
.interior-overlay { position: absolute; bottom: 20px; left: 20px; background: rgba(0,0,0,0.5); color: white; padding: 10px 20px; border-radius: 4px; font-family: var(--font-heading); letter-spacing: 1px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.gallery-item { height: 300px; overflow: hidden; border-radius: 4px; cursor: pointer; transition: transform 0.3s ease; }
.gallery-item:hover { transform: scale(1.02); }

/* --- EXPERIENCE & RISORSE  --- */
.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.resource-card {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px; border-radius: 4px; text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
}
.resource-card:hover { transform: translateY(-10px); background: rgba(255, 255, 255, 0.08); border-color: var(--accent); }
.card-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 20px; }
.resource-card h3 { color: white; font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 15px; }
.resource-card p { color: #ccc; font-size: 0.95rem; margin-bottom: 25px; line-height: 1.6; }

.useful-links { list-style: none; width: 100%; text-align: left; }
.useful-links li { margin-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; }
.useful-links li:last-child { border-bottom: none; }
.useful-links a { color: #ccc; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; transition: 0.3s; }
.useful-links a:hover { color: var(--accent); padding-left: 5px; }

/* --- WIDGET PREVENTIVO --- */
.booking-widget { background: #ffffff; padding: 30px; border-radius: 8px; box-shadow: 0 15px 40px rgba(10, 25, 47, 0.08); border: 1px solid #eee; margin-top: 30px !important; margin-bottom: 30px !important; max-width: 100%; }
.booking-widget h3 { color: var(--primary); font-family: var(--font-heading); margin-bottom: 25px; border-bottom: 2px solid var(--accent); padding-bottom: 10px; display: inline-block; }
.input-group { margin-bottom: 20px; }
.input-group label { display: block; font-size: 0.75rem; color: #888; margin-bottom: 5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.input-group input, .input-group select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 4px; font-family: var(--font-body); font-size: 1rem; background: #fff; color: var(--text); transition: 0.3s; }
.input-group input:focus, .input-group select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1); }
.flatpickr-day.selected { background: var(--accent) !important; border-color: var(--accent) !important; }

/* --- WIDGET SCHEDA PREZZI --- */
.price-summary-card { background: #ffffff; border-radius: 16px; padding: 25px; margin-top: 25px; box-shadow: 0 15px 40px rgba(0,0,0,0.08); border: 1px solid #f0f0f0; font-family: 'Montserrat', sans-serif; position: relative; overflow: hidden; }
.summary-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.summary-header h4 { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; color: #888; font-weight: 600; }
.stay-duration { background: #f8f9fa; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; color: #333; font-weight: 600; }
.scroll-container { max-height: 120px; overflow-y: auto; margin-bottom: 15px; padding-right: 5px; }
.scroll-container::-webkit-scrollbar { width: 3px; }
.scroll-container::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.nightly-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: #555; padding: 8px 0; border-bottom: 1px dashed #eee; }
.night-price { font-weight: 500; color: #333; }
.tax-row { display: flex; justify-content: space-between; padding: 10px 0; color: #666; font-size: 0.95rem; }
.divider-solid { border-top: 1px solid #e0e0e0; margin: 10px 0 15px 0; }
.main-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.1rem; color: #2c3e50; margin-bottom: 25px; }
.main-total span:first-child { font-weight: 600; }
.main-total span:last-child { font-size: 1.4rem; font-weight: 700; color: #1a1a1a; }

/* Card Pagamenti */
.payment-cards-container { display: flex; flex-direction: column; gap: 12px; margin-bottom: 25px; }
.pay-card { display: flex; align-items: center; padding: 15px; border-radius: 10px; border: 1px solid transparent; transition: transform 0.2s; }
.pay-card:hover { transform: translateY(-2px); }
.pay-card.deposit { background: #fffcf0; border-color: #e6dcc0; }
.pay-card.deposit .pay-icon { background: #d4af37; color: white; }
.pay-card.deposit .pay-amount { color: #b08d26; }
.pay-card.balance { background: #f7f9fc; border-color: #e1e6ed; }
.pay-card.balance .pay-icon { background: #2c3e50; color: white; }
.pay-card.balance .pay-amount { color: #2c3e50; }
.pay-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1rem; margin-right: 15px; flex-shrink: 0; }
.pay-info { display: flex; flex-direction: column; }
.pay-title { font-size: 0.7rem; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; opacity: 0.7; margin-bottom: 2px; }
.pay-amount { font-size: 1.1rem; font-weight: 700; font-family: 'Playfair Display', serif; }
.pay-sub { font-size: 0.7rem; color: #888; margin-top: 2px; }

/* Bottone Luxury */
.btn-luxury { width: 100%; background: #111; color: #fff; border: none; padding: 0; height: 55px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; overflow: hidden; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-luxury .btn-text { padding-left: 20px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; }
.btn-luxury .btn-icon-box { background: #d4af37; height: 100%; width: 55px; display: flex; justify-content: center; align-items: center; transition: width 0.3s ease; }
.btn-luxury:hover { background: #000; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
.btn-luxury:hover .btn-icon-box { width: 70px; }

/* --- TOOLTIP & POLICY --- */
.tooltip-container { position: relative; display: inline-block; cursor: pointer; }
.info-icon { color: var(--accent); font-size: 1rem; }
.tooltip-text { visibility: hidden; width: 220px; background-color: #333; color: #fff; text-align: center; border-radius: 6px; padding: 10px; position: absolute; z-index: 100; bottom: 125%; left: 50%; margin-left: -110px; opacity: 0; transition: opacity 0.3s; font-size: 0.75rem; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.tooltip-text::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border-width: 5px; border-style: solid; border-color: #333 transparent transparent transparent; }
.tooltip-container:hover .tooltip-text { visibility: visible; opacity: 1; }

.policy-box { background: #fdfbf7; border: 1px solid #eee; padding: 20px; border-radius: 8px; margin-bottom: 30px; display: flex; flex-direction: column; gap: 15px; }
.policy-item { display: flex; align-items: center; gap: 15px; }
.policy-item i { color: var(--accent); font-size: 1.4rem; width: 30px; text-align: center; }
.policy-item span { font-size: 0.95rem; color: var(--primary); line-height: 1.4; }
.policy-item strong { display: block; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; color: var(--accent); }

/* --- SERVIZI --- */
.services-list { margin-top: 30px; background: #fdfdfd; padding: 25px; border-radius: 6px; border: 1px solid #eee; }
.services-list h3 { font-size: 1.2rem; margin-bottom: 15px; color: var(--primary); }
.services-list ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.services-list li { font-size: 0.9rem; color: #555; display: flex; align-items: center; gap: 10px; }
.services-list i { color: var(--accent); width: 20px; text-align: center; }

/* --- FOOTER --- */
footer { background: #081221; color: #8892b0; padding: 60px 0 40px; text-align: center; }
.footer-brand h2 { color: white; font-size: 2rem; margin-bottom: 10px; }
.footer-info { margin: 40px 0; font-size: 1.1rem; }
.contact-link { display: block; margin: 10px 0; color: var(--accent); }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; font-size: 0.8rem; }