/* ================= CAPTCHA OVERLAY ================= */

.captcha-wrapper {
    font-family: 'Arial';
    color: #111;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.captcha-box {
    width: 360px;
    background: #fff;
    padding: 18px;
    border-radius: 6px;
    box-shadow: 0 3px 12px rgba(0,0,0,.15);
    text-align: center;
    position: relative;
}

.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.checkbox-area {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d3d3d3;
    border-radius: 4px;
    padding: 10px;
}

.checkbox-area input {
    width: 20px;
    height: 20px;
}

.logo-outside img {
    height: 80px;
}

.overlay {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity .3s ease;
}

.overlay img {
    width: 14px;
    animation: spin 2s linear infinite;
}

.overlay.show {
    opacity: 1;
}

@keyframes spin {
    from { transform: translateX(-50%) rotate(0deg); }
    to { transform: translateX(-50%) rotate(360deg); }
}

/* ================= RESET & ROOT ================= */

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

:root {
    --bg: #080808;
    --bg-card: #111;
    --bg-card-h: #1a1a1a;
    --cream: #e8dcc8;
    --cream-dim: #b8a88c;
    --bordeaux: #8b1a1a;
    --bordeaux-l: #b22222;
    --terra: #c4653a;
    --amber: #d4a056;
    --text: #c8bca8;
    --text-dim: #7a7060;
    --display: 'Special Elite', cursive;
    --body: 'Courier Prime', monospace;
    --accent: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection {
    background: var(--bordeaux);
    color: var(--cream);
}

a {
    color: var(--terra);
    text-decoration: none;
    transition: color .3s;
}

a:hover {
    color: var(--amber);
}

img {
    display: block;
    max-width: 100%;
}

/* ================= NAVIGATION ================= */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(8,8,8,.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(139,26,26,.15);
    padding: 0 2rem;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
}

.logo {
    font-family: var(--display);
    font-size: .95rem;
    color: var(--cream);
}

.logo span {
    color: var(--bordeaux-l);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.6rem;
}

nav ul a {
    font-size: .7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .12em;
    transition: color .3s;
}

nav ul a:hover {
    color: var(--cream);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--cream);
    margin: 4px 0;
}

/* ================= PARALLAX HERO ================= */

.parallax-hero {
    height: 100vh;
    min-height: 550px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    filter: brightness(.85) contrast(1.05) saturate(.9);
}

.parallax-hero .parallax-bg {
    background-size: contain;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8,8,8,.1) 0%, rgba(8,8,8,.25) 70%, var(--bg) 100%);
}

.parallax-content {
    position: relative;
    top: 200px;
    z-index: 2;
    text-align: center;
    padding: 0 2rem;
}

.parallax-divider {
    min-height: 260px;
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 3rem auto;
    border-radius: 6px;
    border: 1px solid rgba(139,26,26,.12);
}

.parallax-divider .parallax-bg {
    background-size: cover;
    filter: brightness(.75) contrast(1.05) saturate(.8);
    border-radius: 6px;
}

#gigs .parallax-bg {
    inset: -8%;
}

.parallax-divider .parallax-overlay {
    background: linear-gradient(180deg, var(--bg) 0%, rgba(8,8,8,.45) 30%, rgba(8,8,8,.45) 70%, var(--bg) 100%);
}

.parallax-content-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    padding: 3rem 2rem;
}

.overlay-section {
    max-width: 1000px;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
}

.hero-title {
    font-family: var(--display);
    font-size: 3.2rem;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: .4rem;
}

.hero-title em {
    font-style: normal;
    color: var(--bordeaux-l);
}

.hero-tagline {
    font-family: var(--accent);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-dim);
    margin-bottom: 1.2rem;
}

.hero-sub {
    font-size: .8rem;
    color: var(--text);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-sub strong {
    color: var(--cream);
    font-weight: 400;
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--text-dim);
    font-size: .65rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: .4; }
    50% { opacity: 1; }
}

/* ================= SECTIONS ================= */

section {
    padding: 5rem 2rem;
    max-width: 1000px;
    margin: 3rem auto;
    background: var(--bg-card);
    border: 1px solid rgba(139,26,26,.12);
    border-radius: 6px;
}

.section-title {
    font-family: var(--display);
    font-size: 1.3rem;
    color: var(--cream);
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 35px;
    height: 2px;
    background: var(--bordeaux);
}

/* ================= BIO ================= */

#bio {
    border-top: 1px solid rgba(139,26,26,.12);
}

.bio-text {
    font-size: .82rem;
    line-height: 1.85;
}

.bio-text p + p {
    margin-top: 1em;
}

.bio-text strong {
    color: var(--cream);
    font-weight: 700;
}

/* ================= PROJECTS ================= */

#progetti {
    border-top: 1px solid rgba(139,26,26,.12);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.8rem;
    background: var(--bg-card);
    border: 1px solid rgba(139,26,26,.1);
    padding: 1.3rem;
    transition: border-color .3s, background .3s, transform .3s;
}

.project-card:hover {
    border-color: rgba(139,26,26,.3);
    background: var(--bg-card-h);
    transform: translateY(-2px);
}

.project-img {
    width: 220px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: auto;
    display: block;
    filter: saturate(.9);
    transition: transform .5s;
}

.project-card:hover .project-img img {
    transform: scale(1.03);
}

.project-info h3 {
    font-family: var(--display);
    font-size: 1.1rem;
    color: var(--cream);
    margin-bottom: .25rem;
}

.project-info .project-type {
    font-size: .68rem;
    color: var(--terra);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .7rem;
}

.project-info .project-members {
    font-size: .72rem;
    color: var(--text-dim);
    margin-bottom: .5rem;
    font-style: italic;
}

.project-info p {
    font-size: .78rem;
    line-height: 1.7;
}

.project-info .album-info {
    margin-top: .7rem;
    padding-top: .7rem;
    border-top: 1px solid rgba(139,26,26,.08);
    font-size: .72rem;
    color: var(--text-dim);
}

.project-info .album-info strong {
    color: var(--amber);
    font-weight: 400;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.3rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(139,26,26,.12);
    flex-wrap: wrap;
}

.project-links a {
    font-size: .7rem;
    color: var(--terra);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .4rem .8rem;
    border: 1px solid rgba(139,26,26,.2);
    border-radius: 3px;
    transition: all .3s;
}

.project-links a:hover {
    border-color: var(--terra);
    background: rgba(196,101,58,.1);
    color: var(--amber);
}

/* ================= GIGS ================= */

#gigs {
    border-top: 1px solid rgba(139,26,26,.12);
}

.gig-row {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid rgba(139,26,26,.06);
    align-items: baseline;
}

.gig-date {
    font-family: var(--display);
    font-size: .85rem;
    color: var(--cream);
}

.gig-venue {
    font-size: .8rem;
}

.gig-venue strong {
    color: var(--cream);
    font-weight: 400;
}

.gig-loc {
    color: var(--text-dim);
    font-size: .72rem;
}

.gig-link {
    font-size: .7rem;
}

/* ================= GALLERY ================= */

#gallery {
    border-top: none;
    overflow: hidden;
}

.marquee-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 5px;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, var(--bg), transparent);
}

.marquee-track {
    display: flex;
    gap: 5px;
    width: max-content;
    animation: mq var(--dur, 40s) linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-rev .marquee-track {
    animation-name: mqr;
}

@keyframes mq {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes mqr {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.mq-item {
    flex-shrink: 0;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.mq-item img {
    height: 100%;
    width: auto;
    display: block;
    filter: saturate(.75) contrast(1.05);
    transition: filter .4s, transform .4s;
}

.mq-item:hover img {
    filter: saturate(1) contrast(1.1);
    transform: scale(1.04);
}

/* ================= LESSONS ================= */

#lezioni {
    border-top: 1px solid rgba(139,26,26,.12);
}

.lezioni-content {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 2.5rem;
    align-items: start;
}

.lezioni-text {
    font-size: .82rem;
    line-height: 1.85;
}

.lezioni-aside {
    background: var(--bg-card);
    border: 1px solid rgba(139,26,26,.12);
    padding: 1.3rem;
}

.lezioni-aside h4 {
    font-family: var(--display);
    font-size: .85rem;
    color: var(--cream);
    margin-bottom: .7rem;
}

.lezioni-aside .detail {
    font-size: .72rem;
    color: var(--text-dim);
    margin-bottom: .4rem;
}

.lezioni-aside .detail strong {
    color: var(--text);
    font-weight: 400;
}

/* ================= CONTACT ================= */

#contatti {
    border-top: 1px solid rgba(139,26,26,.12);
    padding-bottom: 3rem;
}

.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-block h4 {
    font-family: var(--display);
    font-size: .85rem;
    color: var(--cream);
    margin-bottom: .7rem;
}

.contact-block p {
    font-size: .78rem;
    line-height: 1.8;
}

/* ================= CONTACT FORM ================= */

.cf-wrap {
    margin-top: 2rem;
    border-top: 1px solid rgba(139,26,26,.15);
    padding-top: 2rem;
    max-width: 540px;
}

.cf-wrap h4 {
    font-family: var(--display);
    font-size: .85rem;
    color: var(--cream);
    margin-bottom: 1rem;
}

.cf-honeypot { position: absolute; left: -9999px; overflow: hidden; }

.cf-group { margin-bottom: .8rem; }

.cf-group input,
.cf-group textarea {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(139,26,26,.3);
    border-radius: 3px;
    color: var(--text);
    font-family: var(--body);
    font-size: .78rem;
    padding: .55rem .75rem;
    outline: none;
    transition: border-color .2s;
    box-sizing: border-box;
}

.cf-group input:focus,
.cf-group textarea:focus { border-color: var(--bordeaux-l); }

.cf-group textarea { resize: vertical; min-height: 100px; }

.cf-privacy {
    font-size: .7rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.cf-privacy input[type="checkbox"] { margin-right: .4rem; }

.cf-btn {
    background: var(--bordeaux);
    color: var(--cream);
    border: none;
    padding: .5rem 1.6rem;
    font-family: var(--display);
    font-size: .8rem;
    cursor: pointer;
    border-radius: 3px;
    transition: background .2s;
}

.cf-btn:hover  { background: var(--bordeaux-l); }
.cf-btn:disabled { opacity: .5; cursor: default; }

.cf-feedback {
    font-size: .75rem;
    margin-bottom: .8rem;
    padding: .5rem .75rem;
    border-radius: 3px;
    display: none;
}

.cf-feedback.ok {
    display: block;
    background: rgba(50,120,50,.12);
    color: #7dba7d;
    border: 1px solid rgba(50,120,50,.25);
}

.cf-feedback.err {
    display: block;
    background: rgba(139,26,26,.12);
    color: var(--bordeaux-l);
    border: 1px solid rgba(139,26,26,.25);
}

/* ================= FOOTER ================= */

footer {
    border-top: 1px solid rgba(139,26,26,.12);
    padding: 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 3rem auto;
    background: var(--bg-card);
    border: 1px solid rgba(139,26,26,.12);
    border-radius: 6px;
}

footer p {
    font-size: .6rem;
    color: var(--text-dim);
}

/* ================= LIGHTBOX ================= */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5,5,5,.96);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lb-close {
    position: absolute;
    top: 1.2rem;
    right: 1.8rem;
    font-family: var(--body);
    font-size: 1.2rem;
    color: var(--text-dim);
    background: none;
    border: none;
    cursor: pointer;
}

.lb-close:hover {
    color: var(--cream);
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8,8,8,.5);
    border: 1px solid rgba(139,26,26,.25);
    color: var(--cream-dim);
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .3s;
}

.lb-nav:hover {
    background: rgba(139,26,26,.3);
    color: var(--cream);
}

.lb-prev {
    left: 1.2rem;
}

.lb-next {
    right: 1.2rem;
}

/* ================= REVEAL ANIMATION ================= */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================= VIDEO LIGHTBOX ================= */

.video-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 201;
    background: rgba(5,5,5,.96);
    align-items: center;
    justify-content: center;
}

.video-lightbox.active {
    display: flex;
}

.video-lightbox iframe {
    width: 90vw;
    height: 90vh;
    max-width: 1000px;
    max-height: 600px;
    border: none;
    border-radius: 2px;
}

.video-lb-close {
    position: absolute;
    top: 1.2rem;
    right: 1.8rem;
    font-family: var(--body);
    font-size: 1.2rem;
    color: var(--text-dim);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 202;
}

.video-lb-close:hover {
    color: var(--cream);
}

/* ================= MEDIA QUERIES ================= */

@media (max-width: 768px) {
    nav ul {
        display: none;
    }
    
    nav ul.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        right: 0;
        background: rgba(8,8,8,.97);
        padding: 1.5rem 2rem;
        gap: 1rem;
        border-bottom: 1px solid rgba(139,26,26,.15);
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .project-card {
        grid-template-columns: 1fr;
    }
    
    .project-img {
        width: 100%;
    }
    
    .lezioni-content {
        grid-template-columns: 1fr;
    }
    
    .contatti-grid {
        grid-template-columns: 1fr;
    }
    
    .parallax-hero {
        min-height: 450px;
    }
    
    .parallax-divider {
        height: 30vh;
        min-height: 200px;
    }
    
    .mq-item {
        height: 150px;
    }
    
    .gig-row {
        grid-template-columns: 70px 1fr;
    }
    
    .video-lightbox iframe {
        width: 100vw;
        height: 60vw;
        max-width: none;
        max-height: none;
    }
}

