/* Impedisce la selezione e il trascinamento dell'immagine sul desktop */
img {
    -webkit-user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}
/* --- STILI BASE E HEADER --- */
body { 
    margin: 0; 
    /* IL NUOVO NERO "LUCIDO" CON PROFONDITÀ */
    background-color: #000000; 
    background-image: radial-gradient(circle at 50% 0%, #1a1d24 0%, #000000 50%);
    background-attachment: fixed; 
    color: white; 
    font-family: 'Inter', sans-serif; 
    overflow-x: hidden; 
    min-height: 100vh;
}

/* HEADER PULITO E SCHIACCIATO (10px sopra e sotto) */
.site-header { 
    background-color: #000000; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 10px 5%; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

/* --- STILE DEL LOGO (Testo + Immagine) --- */
.site-header .logo { 
    display: flex;
    align-items: center; 
    text-decoration: none; 
    gap: 15px; /* Spazio elegante tra foto, testo e icona */
    color: #ffffff; 
    font-size: 1.2rem; 
    letter-spacing: 4px; 
    text-transform: uppercase; 
    font-weight: 300; 
}

/* La parte "UNDERWATER" in azzurro e in grassetto */
.site-header .logo span { 
    font-weight: 700; 
    color: #0077be; 
}

/* LOGO IMMAGINE PULITO */
.site-header .logo img {
    max-height: 60px; /* Misura corretta */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.site-header .logo img:hover {
    transform: scale(1.05); /* Piccolo effetto pressione */
}

/* --- ICONA FOTOCAMERA NELL'HEADER --- */
.site-header .logo .camera-icon {
    color: #0077be; 
    font-size: 1.4rem; 
    transition: transform 0.3s ease, color 0.3s ease;
}

.site-header .logo:hover .camera-icon {
    transform: scale(1.1) rotate(-5deg);
    color: #ffffff; 
}

/* MENU */
.site-header nav a { 
    color: #888888; 
    text-decoration: none; 
    margin-left: 35px; 
    font-size: 0.8rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    transition: color 0.3s ease; 
}
.site-header nav a:hover { color: #ffffff; }

@media (max-width: 768px) {
    .site-header { padding: 10px 5%; }
    .site-header .logo img { max-height: 45px; } /* Più piccolo su telefono */
}

/* --- HERO SECTION --- */
.hero { 
    height: calc(100vh - 70px); 
    width: 100%; 
    display: flex; 
    justify-content: center; 
    align-items: flex-end; 
    padding-bottom: 20px; 
    box-sizing: border-box; 
    text-align: center; 
}
.hero-text h1 { font-size: 5rem; font-weight: 300; letter-spacing: 8px; margin: 0; text-shadow: 2px 2px 20px rgba(0,0,0,0.8); }
.hero-text p { color: #0077be; letter-spacing: 6px; font-size: 1.2rem; text-transform: uppercase; margin-top: 15px; }

/* --- GALLERIA PORTFOLIO (MOSAICO DENSE) --- */
.portfolio-wrapper { max-width: 1400px; margin: 0 auto; padding: 60px 5% 100px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 30px; }
.item { position: relative; overflow: hidden; cursor: pointer; background: #0a0a0a; aspect-ratio: 1 / 1; }
.item.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
.item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease; }

@media (max-width: 768px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .item.wide { grid-column: span 1; aspect-ratio: 16/9; }
}

/* --- EFFETTO HOVER --- */
.overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.4s ease; }
.overlay h3 { color: #fff; font-size: 1.2rem; letter-spacing: 3px; text-transform: uppercase; font-weight: 300; margin: 0; transform: translateY(15px); transition: 0.4s ease; }
.item:hover img { transform: scale(1.05); }
.item:hover .overlay { opacity: 1; }
.item:hover .overlay h3 { transform: translateY(0); }

/* --- LIGHTBOX --- */
#lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.95); z-index: 2000; justify-content: center; align-items: center; cursor: zoom-out; flex-direction: column; }
#lightbox img { max-width: 90%; max-height: 85%; object-fit: contain; box-shadow: 0 0 30px rgba(0,0,0,0.8); }
.close-btn { position: absolute; top: 30px; right: 40px; color: white; font-size: 2rem; cursor: pointer; font-family: sans-serif; }
#lightbox-caption { margin-top: 15px; color: #ffffff; font-size: 1.1rem; letter-spacing: 2px; text-align: center; }
#lightbox-caption strong { font-weight: 300; text-transform: uppercase; }
.tag-badge { background-color: #0077be; color: #ffffff; font-size: 0.7rem; padding: 3px 8px; border-radius: 12px; margin-left: 12px; vertical-align: middle; text-transform: uppercase; font-weight: 700; }

/* --- PAGINA GALLERY: FISARMONICA --- */
.album-list { max-width: 1000px; margin: 0 auto; padding: 20px 5% 100px; display: flex; flex-direction: column; gap: 15px; }
.album-cover { position: relative; width: 100%; height: 90px; background-color: #050505; overflow: hidden; cursor: pointer; border-radius: 4px; text-decoration: none; display: block; transition: height 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.album-cover img { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; object-fit: cover; transform: translate(-50%, -50%); opacity: 0.3; transition: opacity 0.6s ease, transform 0.6s ease; }
.album-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(0,0,0,0.4); transition: background 0.6s ease; }
.album-overlay h2 { color: #ffffff; font-size: 1.8rem; font-weight: 300; letter-spacing: 5px; text-transform: uppercase; margin: 0; transition: transform 0.4s ease, font-size 0.4s ease; }
.album-overlay p { color: #0077be; font-size: 0.9rem; letter-spacing: 3px; text-transform: uppercase; margin-top: 15px; font-weight: 700; opacity: 0; transform: translateY(20px); transition: opacity 0.4s ease, transform 0.4s ease; }

.album-cover:hover { height: 400px; }
.album-cover:hover img { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
.album-cover:hover .album-overlay { background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.1)); }
.album-cover:hover .album-overlay h2 { font-size: 2.5rem; transform: translateY(-10px); }
.album-cover:hover .album-overlay p { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .album-cover { height: 150px; }
    .album-cover:hover { height: 250px; }
    .album-overlay h2 { font-size: 1.5rem; }
}

/* --- PAGINA VIDEO E PLAYER --- */
.video-cover { position: relative; cursor: pointer; }
.play-icon { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; background: rgba(0, 119, 190, 0.4); border-radius: 50%; display: flex; justify-content: center; align-items: center; z-index: 5; transition: transform 0.3s ease, background 0.3s ease; border: 1px solid rgba(255,255,255,0.3); }
.play-icon::after { content: ''; display: block; border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #ffffff; margin-left: 4px; opacity: 0.7; }
.album-cover:hover .play-icon { transform: scale(1.1); background: rgba(0, 119, 190, 0.9); }
.album-cover:hover .play-icon::after { opacity: 1; }
.video-container { position: relative; width: 100%; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.8); }

/* --- PAGINA CHI SONO (ABOUT) --- */
.about-section { max-width: 1200px; margin: 80px auto; padding: 0 5%; display: flex; align-items: flex-start; gap: 60px; }
.about-image { flex: 1; max-width: 450px; display: flex; flex-direction: column; gap: 30px; }
.about-image img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 15px 40px rgba(0,0,0,0.5); display: block; }
.about-text { flex: 1; position: -webkit-sticky; position: sticky; top: 120px; }
.about-text h1 { font-size: 3rem; font-weight: 300; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 10px; color: #ffffff; }
.about-text h3 { color: #0077be; font-size: 1rem; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 30px; font-weight: 400; }
.about-text p { color: #cccccc; line-height: 1.9; margin-bottom: 25px; font-size: 1.05rem; text-align: justify; }
.gear-list { margin-top: 45px; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 30px; }
.gear-list h4 { font-size: 1.2rem; letter-spacing: 2px; margin-bottom: 15px; color: #ffffff; text-transform: uppercase; }
.gear-list ul { list-style: none; padding: 0; color: #aaaaaa; columns: 2; }
.gear-list ul li { margin-bottom: 12px; position: relative; padding-left: 20px; }
.gear-list ul li::before { content: '▹'; position: absolute; left: 0; color: #0077be; }

@media (max-width: 900px) {
    .about-section { flex-direction: column; gap: 40px; }
    .about-image { max-width: 100%; }
    .about-text { position: static; }
    .about-text h1 { font-size: 2.2rem; }
    .gear-list ul { columns: 1; }
}

/* --- PAGINA CONTATTI (CONTACT) --- */
.contact-hero { width: 100%; min-height: calc(100vh - 80px); display: flex; justify-content: center; align-items: center; position: relative; padding: 60px 5%; background-size: cover; background-position: center; background-attachment: fixed; background-image: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.9)), url('../../assets/img/heroes/hero_contact.jpg'); }
.contact-box { background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); padding: 60px; border-radius: 12px; width: 100%; max-width: 650px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); text-align: center; }
.contact-box h1 { font-size: 2.8rem; font-weight: 300; letter-spacing: 5px; text-transform: uppercase; margin-bottom: 10px; color: #ffffff; }
.contact-box .text-justified { color: #aaaaaa; font-size: 1.05rem; letter-spacing: 1px; margin-bottom: 25px; text-align: justify; line-height: 1.6; }
.contact-form { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.form-group label { display: block; color: #aaaaaa; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 8px; }
.form-group input, .form-group textarea { width: 100%; padding: 16px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: #ffffff; border-radius: 4px; font-family: 'Inter', sans-serif; font-size: 1rem; transition: all 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #0077be; background: rgba(0,0,0,0.5); }
.form-group textarea { height: 160px; resize: vertical; }
.submit-btn { background: #0077be; color: white; border: none; padding: 18px; font-size: 1rem; text-transform: uppercase; letter-spacing: 3px; border-radius: 4px; cursor: pointer; transition: background 0.3s ease, transform 0.2s ease; margin-top: 15px; font-weight: 700; }
.submit-btn:hover { background: #0088dd; }
.submit-btn:active { transform: scale(0.98); }

/* SEZIONE SOCIAL E ICONE NEI CONTATTI */
.social-contact-section { margin-bottom: 40px; text-align: center; }
.social-contact-section .social-text { color: #ffffff; font-size: 1rem; letter-spacing: 2px; margin-bottom: 15px; text-transform: uppercase; }
.social-icons { display: flex; justify-content: center; gap: 20px; margin-bottom: 20px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: rgba(255, 255, 255, 0.05); color: #ffffff; border-radius: 50%; text-decoration: none; font-size: 1.2rem; transition: all 0.3s ease; border: 1px solid rgba(255, 255, 255, 0.2); }
.social-icons a:hover { background: #0077be; border-color: #0077be; transform: translateY(-3px); color: white; }
.social-contact-section .form-text { color: #aaaaaa; font-size: 1.05rem; letter-spacing: 1px; margin: 0; }

@media (max-width: 768px) {
    .contact-box { padding: 40px 20px; }
    .contact-box h1 { font-size: 2rem; }
    .contact-hero { min-height: calc(100vh - 60px); }
}

.portfolio-wrapper, .album-list {
    min-height: 60vh;
}

.portfolio-wrapper, .album-list, .expedition-content-wrapper {
    min-height: 60vh;
}

/* ========================================== */
/* 🍔 CHEESEBURGER MENU (SOLO PER MOBILE)     */
/* ========================================== */

/* 1. Blocca lo scorrimento orizzontale su TUTTO il sito */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* 2. Nasconde SEMPRE l'icona hamburger su PC */
.hamburger-menu {
    display: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 1001; /* Sta sopra a tutto */
}

/* 3. REGOLE BLINDATE SOLO PER IL TELEFONO */
@media (max-width: 900px) {
    
    /* Diciamo all'header di disporre gli elementi in orizzontale, ben separati */
    .site-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap; /* Impedisce che vadano a capo */
    }

    /* Rimpiccioliamo di un soffio il testo del logo solo sul telefono per fare spazio */
    .site-header .logo {
        font-size: 0.80rem; 
        max-width: 85%; /* Evita che il logo si mangi tutto lo spazio */
    }

    /* Il panino ora fa parte della riga e non "galleggia" più sopra le scritte */
    .hamburger-menu {
        display: block;
        position: relative; /* Abbiamo rimosso 'absolute' */
        top: 0;
        right: 0;
        margin-left: 10px;
    }

    /* Trasforma il tuo nav normale in uno schermo nero a comparsa */
    nav#nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
    }

    nav#nav-links.active {
        right: 0; 
    }

    nav#nav-links a {
        font-size: 1.5rem;
        margin: 0;
    }
}

/* --- SOTTOTITOLO HEADER INTELLIGENTE --- */
.header-subtitle {
    margin-left: 280px !important; 
}

@media (max-width: 900px) {
    .header-subtitle {
        margin-left: 20px !important; 
        font-size: 0.55rem !important; 
        letter-spacing: 2px !important; 
    }
}


@media (max-width: 900px) {
    .footer-subtitle {
        margin-left: 20px !important; 
        font-size: 0.55rem !important; 
        letter-spacing: 2px !important; 
    }
}