/* ==========================================================================
   MYPRIVATEDECK - FILE ORIGINALE INTEGRALE + SOLO AGGIUNTA MODAL
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* NAVIGAZIONE */
nav {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    padding: 30px 0; transition: 0.4s;
}
.nav-solid { background: rgba(0,0,0,0.98); padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.nav-container {
    width: 90%; max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: center; align-items: center; position: relative;
}

/* Menu Desktop */
nav ul { display: flex; list-style: none; gap: 35px; }
nav ul li a { color: #fff; text-decoration: none; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 2px; }

.lang-selector { position: absolute; right: 0; transition: 0.3s; }
.lang-selector a { color: #fff; text-decoration: none; font-size: 0.8rem; opacity: 0.7; }

/* Hamburger Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: absolute;
    right: 0;
    z-index: 1001;
}
.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

/* HERO */
.hero {
    position: relative;
    height: 100vh; width: 100%;
    display: flex; align-items: center; justify-content: center;
    background: #000;
    overflow: hidden;
}
.video-wrapper { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    z-index: 1; 
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 2; }

/* CONTENUTI HERO - RIPRISTINATI ORIGINALI */
.hero-content { 
    position: relative; 
    z-index: 10; 
    text-align: center; 
    margin-top: -10vh; 
}
.hero-logo { 
    width: 225px; 
    height: auto; 
    margin-bottom: -80px; 
}
.hero-scritta { 
    width: 600px; 
    height: auto; 
    display: block; 
    margin: 0 auto; 
}
.tagline {
    font-size: 1.25rem;
    letter-spacing: 8px;
    text-transform: uppercase;
    font-weight: 300;
    margin-top: 15px;
}

/* SEZIONI E COLORI ORIGINALI */
.page-content { position: relative; z-index: 20; background: #000; }
.section { padding: 120px 20px; min-height: 60vh; display: flex; align-items: center; justify-content: center; }
.container { max-width: 800px; text-align: center; }

.section-title { 
    font-family: 'Montserrat', sans-serif; 
    font-size: 1.2rem; 
    text-transform: uppercase; 
    letter-spacing: 4px; 
    font-weight: 400; 
    margin-bottom: 12px;
    font-style: italic; 
}

.divider { 
    width: 320px; 
    height: 1px; 
    background: #fff; 
    margin: 0 auto 40px; 
    opacity: 0.3; 
}

.section-text { font-size: 1.1rem; font-weight: 300; opacity: 0.8; line-height: 1.6; }

/* Codici colore ripristinati */
.section-solid { background-color: #000000; }
.section-glass { background-color: #121212; }

/* MODULO CONTATTI ORIGINALE */
.elegant-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.form-row { display: flex; flex-direction: column; gap: 20px; }
.elegant-form input, .elegant-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 2px;
}
.submit-btn {
    align-self: center;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    padding: 12px 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 20px;
}
.submit-btn:hover { background: #fff; color: #000; }

/* TASTO SHOWCASE ORIGINALE */
.showcase-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 15px 45px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.5s ease;
    display: inline-block;
}
.showcase-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    letter-spacing: 5px;}
    
    /* TASTO TAILORING ORIGINALE */
.tailoring-btn {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 15px 45px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.5s ease;
    display: inline-block;}
    
footer { padding: 80px 0; text-align: center; opacity: 0.3; font-size: 0.7rem; }

/* RESPONSIVE ORIGINALE */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .lang-selector { right: 50px; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: rgba(0, 0, 0, 0.95); flex-direction: column;
        justify-content: center; align-items: center; gap: 30px; transition: 0.4s;
    }
    .nav-menu.active { right: 0; }
    .hero-scritta { width: 90%; }
    .hero-logo { width: 150px; margin-bottom: -40px; }
    .tagline { font-size: 0.9rem; letter-spacing: 4px; }
    .divider { width: 180px; } /* Questa riga accorcia la divider su mobile */
    /* ... altri stili ... */
}

/* --------------------------------------------------------------------------
   SOLO AGGIUNTE PER IL MODAL (SHOWCASE PAGE)
   -------------------------------------------------------------------------- */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.98); z-index: 9999; 
    overflow-y: auto; /* Fix scorrimento desktop */
}
.modal-container {
    width: 90%; max-width: 1100px; margin: 80px auto;
    background: #000; padding: 40px; position: relative; text-align: center;
}
.close-modal {
    position: fixed; top: 20px; right: 30px; font-size: 45px; color: #fff;
    cursor: pointer; z-index: 10000;
}
#modal-title { font-size: 1.3rem; letter-spacing: 6px; text-transform: uppercase; margin-bottom: 10px; }

/* La righetta di separazione */
.info-divider { width: 80px; height: 1px; background: #fff; margin: 15px auto 35px; opacity: 0.5; }

/* Dati CSV */
#modal-data {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px; text-align: left; max-width: 900px; margin: 0 auto 40px;
}
.specs-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; display: flex; flex-direction: column; }
.specs-label { font-size: 0.6rem; color: #888; text-transform: uppercase; margin-bottom: 4px; }
.specs-value { font-size: 0.9rem; color: #fff; }

/* Galleria Immagini */
#modal-images { display: grid; grid-template-columns: 1fr; gap: 20px; }
#modal-images img { width: 100%; height: auto; display: block; }

/* --- SOLO RIDUZIONE THUMBNAILS E GRIGLIA SHOWCASE --- */

/* Forza le anteprime a non essere enormi su desktop */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    padding: 10px 5% !important;
}

.yacht-card img{
    width: 100% !important;
    height: 220px !important; /* Altezza fissa per renderle uniformi */
    object-fit: cover !important;
    cursor: pointer !important;
    transition: 0.3s ease;
}

/* Forza 2 colonne su mobile per evitare che siano giganti */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px 10px !important;
    }
    .yacht-card img {
        height: 150px !important; /* Più piccole su smartphone */
    }
}

/* Limita la grandezza delle foto dentro il modal quando clicchi */
#modal-images img {
    max-width: 900px !important;
    margin: 0 auto !important;
}

/* Effetto ingrandimento al passaggio del mouse */
.yacht-card img:hover {
    transform: scale(1.2); /* Ingrandisce l'immagine del 5% */
    z-index: 2;             /* Assicura che l'immagine stia sopra le altre mentre si ingrandisce */
}
