:root {
    --bg: #050505;
    --anthracite: #222222;
    --text: #ffffff;
    --gray: #777;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; overflow-x: hidden; padding-bottom: 100px; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; padding: 15px 5%; background: rgba(5,5,5,0.95); backdrop-filter: blur(15px); z-index: 1000; border-bottom: 1px solid #111; }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; }
.logo { height: 20px; margin-right: 12px; }
.brand { display: flex; align-items: center; font-weight: 600; letter-spacing: 3px; font-size: 0.75rem; }

nav a { color: var(--text); text-decoration: none; font-size: 0.65rem; margin-left: 25px; letter-spacing: 1.5px; transition: 0.3s; font-weight: 300; }
nav a:hover { color: var(--gray); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.menu-toggle .bar { width: 25px; height: 2px; background-color: #fff; transition: 0.3s; }

/* Hero */
.hero { width: 100%; background: #000; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; height: 100vh; }
video { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.section { padding: 100px 10%; border-bottom: 1px solid #0f0f0f; }
.dark-bg { background: #050505; }
.title { font-size: 1.2rem; letter-spacing: 6px; margin-bottom: 50px; text-align: center; font-weight: 300; text-transform: uppercase; }
.title-small { font-size: 0.8rem; letter-spacing: 4px; text-align: center; margin: 50px 0 30px; color: var(--gray); text-transform: uppercase; }

/* Bio */
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; max-width: 1200px; margin: 0 auto; }
.bio-img-column { display: flex; flex-direction: column; align-items: center; }
.bio-img-box img { width: 100%; border-radius: 2px; display: block; }
.bio-text-box p { margin-bottom: 25px; color: #bbb; line-height: 1.9; font-size: 0.95rem; font-weight: 300; }

.extra-content { display: none; margin-top: 30px; border-top: 1px solid #111; padding-top: 30px; }
.extra-content-img { display: none; margin-top: 50px; width: 100%; text-align: center; } 
.more-text { font-size: 0.88rem !important; color: #999 !important; line-height: 1.8; margin-bottom: 20px; }
.bio-more-img { width: 100%; height: auto; border-radius: 2px; }

#moreBtn { background: none; border: 1px solid #333; color: #fff; padding: 12px 30px; cursor: pointer; transition: 0.3s; font-size: 0.7rem; letter-spacing: 2px; }
#moreBtn:hover { background: #fff; color: #000; }

/* Works Player */
.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; }
.player-card { background: var(--anthracite); padding: 30px; border: 1px solid #333; }
.player-card h3 { font-size: 0.7rem; letter-spacing: 3px; margin-bottom: 30px; color: var(--gray); text-transform: uppercase; border-bottom: 1px solid #333; padding-bottom: 15px; }
.track { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid #333; cursor: pointer; transition: 0.3s; font-size: 0.8rem; gap: 10px; }
.track span:first-child { flex: 1; }
.track:hover { padding-left: 10px; color: #fff; background: rgba(255,255,255,0.02); }

/* Clients Section */
.clients-section-bg { background: var(--anthracite) !important; border-top: 1px solid #111; border-bottom: 1px solid #111; } 
.carousel-wrapper { position: relative; overflow: hidden; width: 100%; max-width: 1200px; margin: 0 auto; }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.review-item { min-width: 33.33%; padding: 30px; border-right: 1px solid #333; box-sizing: border-box; }
.review-item blockquote { font-style: italic; color: #aaa; margin-top: 15px; font-size: 0.85rem; line-height: 1.6; }
.rev-name { font-weight: 600; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.carousel-btns { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }
.carousel-btns button { background: none; border: 1px solid #444; color: #fff; width: 50px; height: 50px; cursor: pointer; transition: 0.3s; font-size: 1.2rem; }

.clients-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 30px; max-width: 1100px; margin: 0 auto; padding: 20px; }
.clients-grid img { height: 30px; width: auto; filter: brightness(0) invert(1) opacity(0.5); }

/* Contact Form */
.contact-form { max-width: 500px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { background: var(--anthracite); border: 1px solid #333; padding: 15px; color: #fff; font-size: 0.85rem; outline: none; width: 100%; }
#sendBtn { background: none; border: 1px solid #333; color: #fff; padding: 18px; cursor: pointer; letter-spacing: 2px; font-size: 0.7rem; transition: 0.3s; text-transform: uppercase; }

/* Footer */
.footer { padding: 40px 5%; border-top: 1px solid #111; text-align: center; }
.footer-row { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer p { font-size: 0.6rem; color: #ffffff; letter-spacing: 1px; margin: 0; }
.footer-logo { height: 15px; }
.social-icon svg { width: 20px; height: 20px; fill: #fff; }

/* Player Bar */
.player-bar { position: fixed; bottom: -150px; left: 0; width: 100%; background: rgba(5,5,5,0.98); backdrop-filter: blur(20px); border-top: 1px solid #222; padding: 15px 5%; z-index: 2000; transition: 0.5s; }
.player-bar.active { bottom: 0; }
.player-inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; gap: 20px; }
.player-info { flex: 1; font-size: 0.7rem; letter-spacing: 1px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.player-controls { flex: 2; display: flex; align-items: center; gap: 20px; }
#playPauseBtn { background: #fff; color: #000; border: none; min-width: 40px; height: 40px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.progress-container { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 0.65rem; }
#progressRange { flex: 1; accent-color: #fff; cursor: pointer; height: 3px; }

@media (aspect-ratio < 16/9), (aspect-ratio > 20/9) {
    .hero { height: auto; aspect-ratio: 16 / 9; margin-top: 60px; }
    video { object-fit: contain; height: auto; }
}

/* RESPONSIVE DESIGN - MOBILE */
@media (max-width: 900px) {
    .section { padding: 50px 7%; }
    
    /* NASCONDI IMMAGINE EXTRA SU MOBILE (Anche dopo il clic) */
    #extraBioImg { display: none !important; }

    .menu-toggle { display: flex; }
    nav { 
        position: absolute; top: 100%; right: 0; width: 100%; 
        background: #050505; flex-direction: column; 
        text-align: center; max-height: 0; overflow: hidden; transition: 0.4s;
    }
    nav.active { max-height: 450px; padding: 20px 0; border-bottom: 1px solid #222; }
    nav a { margin: 15px 0; font-size: 0.8rem; display: block; margin-left: 0; }

    .bio-grid, .works-grid { grid-template-columns: 1fr; gap: 40px; }
    .review-item { min-width: 100%; border-right: none; }
    
    .player-inner { flex-direction: column; gap: 10px; text-align: center; }
    .player-controls { width: 100%; }
    .player-info { width: 100%; font-size: 0.65rem; }
    
    .clients-grid img { height: 22px; }
}