/* RESET & FONTS */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --gold: #d4af37; --gold-dark: #b8952d; --dark-bg: #050505; --white: #ffffff; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--dark-bg); color: var(--white); line-height: 1.6; overflow-x: hidden; }

/* HEADER */
header { background: rgba(0,0,0,0.95); padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 1000; border-bottom: 1px solid rgba(212, 175, 55, 0.2); }
.nav-container { max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 30px; }
.logo a { color: var(--gold); text-decoration: none; font-weight: 900; font-size: 1.5rem; letter-spacing: 2px; }
.logo span { color: #fff; }
nav ul { display: flex; list-style: none; }
nav ul li { margin: 0 15px; }
nav ul li a { color: #fff; text-decoration: none; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; transition: 0.3s; }
nav ul li a:hover { color: var(--gold); }
.btn-nav { border: 1px solid var(--gold); padding: 10px 25px; color: var(--gold); text-decoration: none; border-radius: 2px; font-weight: bold; font-size: 0.75rem; }

/* Stili Base Hamburger (Nascosto su Desktop) */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.hamburger .bar { width: 25px; height: 3px; background-color: var(--gold); transition: all 0.3s ease-in-out; }
.nav-cta-mobile { display: none; }

/* HERO & BANNER */
.hero { height: 100vh; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
#hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); z-index: 1; object-fit: cover; }
.video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); z-index: 2; }
.hero-content, .relative { position: relative; z-index: 3; }
.hero h1 { font-size: clamp(2.5rem, 8vw, 5rem); font-weight: 900; color: var(--gold); letter-spacing: 12px; margin-bottom: 10px; }
.page-banner { height: 40vh; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; position: relative; }

/* MOSAIC GALLERY */
.mosaic-section { padding: 100px 0; }
.photo-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 15px; }
.mosaic-item { position: relative; overflow: hidden; background: #111; cursor: pointer; } 
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: 1.5s cubic-bezier(0.2, 1, 0.3, 1); }
.mosaic-item:hover img { transform: scale(1.15); filter: brightness(1.2); }
.mosaic-item.big { grid-column: span 2; grid-row: span 2; }
.mosaic-item.wide { grid-column: span 2; }
.mosaic-item.tall { grid-row: span 2; }

/* --- LIGHTBOX (Popup Galleria) --- */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 2000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.show { opacity: 1; }
.lightbox-content { 
    max-width: 90%; max-height: 85vh; 
    border: 2px solid var(--gold); border-radius: 5px; 
    box-shadow: 0 0 50px rgba(0,0,0,0.8); 
    object-fit: contain; 
}
.lightbox-close {
    position: absolute; top: 20px; right: 40px;
    color: var(--white); font-size: 50px; font-weight: bold; cursor: pointer; transition: 0.3s; z-index: 2001;
}
.lightbox-close:hover { color: var(--gold); }
.lightbox-prev, .lightbox-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); border: 1px solid var(--gold); color: var(--gold);
    font-size: 30px; padding: 15px 25px; cursor: pointer; transition: 0.3s; border-radius: 5px; z-index: 2001;
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--gold); color: #000; }
.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

/* INFO SECTION */
.info-content { padding: 80px 0; }
.info-intro { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.gold-text { color: var(--gold); font-size: 2.5rem; margin-bottom: 15px; }
.subtitle { font-size: 1.3rem; color: #ddd; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 80px; }
.info-text h3 { color: var(--gold); font-size: 1.8rem; margin-bottom: 20px; }
.info-text p { color: #ccc; margin-bottom: 20px; font-size: 1.1rem; }
.property-notice { border-left: 4px solid var(--gold); padding-left: 20px; background: #111; padding: 20px; }
.mt-30 { margin-top: 30px; }
.info-image img { width: 100%; border-radius: 5px; box-shadow: 0 20px 40px rgba(0,0,0,0.8); }

/* EVENTS GRID */
.events-section { margin-top: 60px; }
.section-title { text-align: center; color: var(--gold); font-size: 2.5rem; margin-bottom: 30px; text-transform: uppercase; }
.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event-card { background: #111; padding: 30px 10px; text-align: center; border: 1px solid #222; transition: 0.3s; font-size: 1.1rem; }
.event-card:hover { border-color: var(--gold); transform: translateY(-5px); background: #1a1a1a; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.event-card span { font-weight: bold; letter-spacing: 1px; color: #fff; }

/* CONTACT PAGE */
.contact-page { padding: 150px 0; text-align: center; }
.contact-subtitle { font-size: 1.2rem; color: #aaa; margin-bottom: 60px; }
.contact-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 60px; }
.c-card { background: #111; padding: 50px 20px; border-bottom: 3px solid var(--gold); transition: 0.3s; }
.c-card:hover { transform: translateY(-10px); background: #181818; }
.c-icon { font-size: 3.5rem; margin-bottom: 20px; }
.contact-link { color: #fff; text-decoration: none; font-weight: bold; font-size: 1.3rem; transition: 0.3s; }
.contact-link:hover { color: var(--gold); }

/* SOCIAL BUTTONS */
.social-section { margin: 80px 0; padding: 60px 20px; background: #111; border: 1px solid #222; }
.social-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.social-btn { padding: 15px 40px; text-decoration: none; font-weight: bold; font-size: 1.1rem; color: #fff; border-radius: 50px; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.social-btn.fb { background: #1877F2; }
.social-btn.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-btn.tk { background: #000; border: 1px solid #333; }
.social-btn:hover { transform: scale(1.1); box-shadow: 0 10px 20px rgba(255,255,255,0.1); }

.location-banner { margin-top: 60px; padding: 40px; border: 1px solid var(--gold); display: inline-block; }
.location-banner h3 { color: var(--gold); margin-bottom: 10px; font-size: 1.5rem; }

/* FORMS (Da prenota.php) */
.booking-section { padding: 150px 0; }
.small-container { max-width: 800px; margin: 0 auto; }
.luxury-form { background: #111; padding: 50px; border: 1px solid #222; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group { margin-bottom: 25px; }
.input-group label { display: block; color: var(--gold); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 8px; font-weight: bold; }
.input-group input, .input-group select, .input-group textarea { width: 100%; background: #000; border: 1px solid #333; color: #fff; padding: 15px; font-family: inherit; }

/* BUTTONS */
.btn-gold { display: inline-block; padding: 20px 50px; background: var(--gold); color: #000; text-decoration: none; font-weight: 900; letter-spacing: 2px; transition: 0.3s; }
.btn-gold:hover { background: #fff; transform: translateY(-5px); }
.btn-gold-huge { display: inline-block; padding: 25px 60px; background: var(--gold); color: #000; text-decoration: none; font-weight: 900; letter-spacing: 2px; font-size: 1.2rem; border-radius: 5px; transition: 0.3s; }
.btn-gold-huge:hover { background: #fff; transform: scale(1.05); box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4); }
.btn-gold-full { width: 100%; padding: 20px; background: var(--gold); border: none; font-weight: 900; letter-spacing: 2px; cursor: pointer; transition: 0.3s; }
.btn-gold-full:hover { background: #fff; }

/* ANIMAZIONI DINAMICHE REVEAL */
.reveal { opacity: 0; transition: all 1.2s cubic-bezier(0.2, 1, 0.3, 1); }
.fade-up { transform: translateY(50px); }
.fade-down { transform: translateY(-50px); }
.fade-left { transform: translateX(-50px); }
.fade-right { transform: translateX(50px); }
.zoom-in { transform: scale(0.8); }

.reveal.active { opacity: 1; transform: translate(0) scale(1); }
.text-center { text-align: center; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .photo-mosaic { grid-template-columns: repeat(2, 1fr); }
    .events-grid { grid-template-columns: repeat(2, 1fr); }

    /* MENU HAMBURGER MOBILE */
    .hamburger { display: flex; }
    .nav-cta-desktop { display: none; }
    
    #nav-menu {
        position: fixed;
        left: -100%;
        top: 65px; /* L'altezza dell'header */
        gap: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100%;
        height: calc(100vh - 65px);
        text-align: center;
        transition: 0.4s ease-in-out;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        overflow-y: auto;
    }

    #nav-menu.active { left: 0; }
    
    #nav-menu ul { flex-direction: column; margin-top: 40px; padding: 0; }
    #nav-menu ul li { margin: 25px 0; }
    #nav-menu ul li a { font-size: 1.3rem; }
    .nav-cta-mobile { display: block; margin-top: 40px; }

    /* Animazione Hamburger in Modalità X */
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 768px) {
    .info-grid, .form-row, .contact-cards-grid, .events-grid { grid-template-columns: 1fr; }
    
    /* Responsive per il Lightbox */
    .lightbox-prev, .lightbox-next { padding: 10px; font-size: 20px; }
    .lightbox-close { right: 20px; top: 10px; font-size: 40px; }
}