:root {
    /* Palette colori scura ed elegante */
    --bg-dark: #1a1a1a;       /* Grigio scuro quasi nero (Sfondo principale) */
    --bg-card: #252525;       /* Grigio leggermente più chiaro per stacchi */
    --text-primary: #f5f5f5;  /* Bianco sporco per leggibilità */
    --text-secondary: #aaaaaa; /* Grigio per descrizioni */
    --accent: #d4af37;        /* Oro/Legno per dettagli di lusso */
    --font-main: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth; /* Scorrimento fluido al click del menu */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden; /* Previene scroll orizzontale indesiderato */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* UTILITY */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR STICKY */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95); /* Sfondo scuro semi-trasparente */
    backdrop-filter: blur(10px); /* Effetto sfocato dietro la barra */
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid #333;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    position: relative;
}

/* Effetto sottolineatura menu */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

/* HAMBURGER MENU (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* HERO SECTION */
.hero {
    height: 100vh; /* Altezza 100% dello schermo */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Immagine di placeholder */
    background-image: url('immagini/panorami/IMG_7593.heic'); 
    background-size: cover;
    background-position: center;
    z-index: -1;
    filter: brightness(0.5); /* Scurisce l'immagine per leggere il testo */
}

.hero-content {
    z-index: 1;
    padding: 20px;
    animation: fadeIn 1.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Nuova classe per l'immagine del logo */
.hero-logo-img {
    max-width: 400px; /* Larghezza massima del logo */
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); /* Ombra per staccare dallo sfondo */
}

.hero-slogan {
    font-size: 1.3rem;
    font-weight: 300;
    max-width: 700px;
    margin: 10px auto 0;
    letter-spacing: 1px;
}

/* SEZIONI GENERALI */
.section-dark {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

.section-desc {
    max-width: 800px;
    margin-bottom: 40px;
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.separator {
    border: 0;
    height: 1px;
    background: #333;
    margin: 0;
    width: 100%;
}

/* GALLERIA ORIZZONTALE (SCROLL) */
.gallery-container {
    width: 100%;
    position: relative;
}

.horizontal-gallery {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scroll su iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #444 #1a1a1a;
}

/* Stile Scrollbar Chrome/Safari */
.horizontal-gallery::-webkit-scrollbar {
    height: 6px;
}
.horizontal-gallery::-webkit-scrollbar-track {
    background: #1a1a1a;
}
.horizontal-gallery::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.gallery-item {
    flex: 0 0 400px; /* Larghezza base immagine */
    scroll-snap-align: start;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(30%); /* Leggero effetto desaturato per eleganza */
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

/* LIGHTBOX / MODAL PER INGRANDIMENTO FOTO (NUOVO CSS) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none; /* Nascosto di default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    border: 1px solid var(--accent);
    border-radius: 4px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
    line-height: 1;
}

.lightbox-close:hover { color: var(--accent); }

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 50px;
    cursor: pointer;
    padding: 20px;
    z-index: 2001;
    user-select: none;
    transition: all 0.3s;
}

.lightbox-prev:hover, .lightbox-next:hover { 
    color: var(--accent); 
    background: rgba(0,0,0,0.3);
    border-radius: 5px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* BANNER PDF (Nuovo CSS) */
.pdf-banner-section {
    background-color: #111; /* Uniforme con il footer */
    text-align: center;
    padding: 0 0 60px 0; /* Spazio sotto il banner */
}

.pdf-banner-img {
    max-width: 1713px; /* Limite massimo larghezza richiesta */
    width: 100%;      /* Si adatta agli schermi piccoli */
    height: auto;     /* Mantiene le proporzioni 1713x903 */
    display: inline-block;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, opacity 0.3s;
}

.pdf-banner-img:hover {
    transform: scale(1.01); /* Leggero zoom all'hover */
    opacity: 0.95;
    cursor: pointer;
}

.activity-list {
    list-style: none; /* Rimuove i bullet standard */
    padding-left: 0;
    margin-top: 20px;
}

.activity-list li {
    margin-bottom: 15px;
    padding-left: 25px; /* Spazio per il pallino personalizzato */
    position: relative;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Pallino personalizzato color oro */
.activity-list li::before {
    content: '•';
    color: var(--accent);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px; /* Allineamento ottico */
    font-weight: bold;
}

.activity-list strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* BLOCCO CAMERE */
.room-block {
    margin-bottom: 100px;
}

.room-block:last-child {
    margin-bottom: 0;
}

.room-name {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 15px;
}

.room-name::before {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background-color: var(--accent);
}

/* FOOTER / CONTATTI */
#contatti {
    background-color: #111;
    padding: 80px 0 30px;
    border-top: 1px solid var(--accent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--accent);
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.footer-col p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.footer-col a {
    color: var(--text-primary);
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 20px;
}

.contact-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-btn:hover {
    background: var(--accent);
    color: #000;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #444;
    border-top: 1px solid #222;
    padding-top: 30px;
}

/* ANIMAZIONI */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MEDIA QUERIES (Mobile Responsiveness) */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 70%;
        background-color: #111;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        transform: translateX(0);
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Animazione hamburger quando attivo */
    .hamburger.toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.toggle .line2 { opacity: 0; }
    .hamburger.toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); }

    /* .hero-logo style removed, using .hero-logo-img now */
    .hero-logo-img { max-width: 250px; } /* Logo più piccolo su mobile */
    .hero-slogan { font-size: 1rem; }
    
    .section-title { font-size: 1.8rem; }
    
    .gallery-item {
        flex: 0 0 85vw; /* Su mobile l'immagine prende quasi tutto lo schermo */
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}