:root {
    --indigo: #4A148C;
    --indigo-light: #7E57C2;
    --indigo-glow: rgba(126, 87, 194, 0.4);
    --black: #0B0B0C;
    --dark-gray: #151518;
    --white: #F8F8F8;
    --accent: #E040FB;

    --font-main: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* UX Pro Max: 150-300ms transitions */
    --transition: 0.25s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Accessibility: Focus Rings */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 800;
}

.text-center {
    text-align: center;
}

.accent {
    color: var(--accent);
    text-shadow: 0 0 15px rgba(224, 64, 251, 0.4);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 3rem;
    /* text-transform: uppercase; */
    letter-spacing: 2px;
}

.container {
    width: 90%;
    /* UX Pro max-w-6xl */
    max-width: 1152px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

/* Buttons and Touch Targets */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    min-height: 44px;
    /* UX Pro touch target */
    background: linear-gradient(135deg, var(--indigo), var(--accent));
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.btn-primary:hover {
    box-shadow: 0 15px 30px var(--indigo-glow);
    /* No scale transform for stable UX layout shift */
    filter: brightness(1.1);
}

/* SVG sizes */
.svg-icon {
    width: 24px;
    height: 24px;
}

.svg-icon-sm {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Floating Navbar */
.navbar {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 1152px;
    margin: 0 auto;
    border-radius: 16px;
    padding: 1rem 1.5rem;
    z-index: 50;
    /* UX Pro max z-index */
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(11, 11, 12, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 36px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding: 10px;
    min-height: 44px;
    /* UX Pro Touch */
    display: flex;
    align-items: center;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    min-height: 44px;
    min-width: 44px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px auto;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    background: #000;
    /* Pure black for smooth fade */
}

.hero-bg,
.hero-overlay {
    display: none;
}

.hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    z-index: 30;
    gap: 0;
}

.hero-video-container {
    width: 100vw;
    position: relative;
    /* Fades video into black at the bottom */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero-video {
    width: 100%;
    height: 100%;
    max-height: 80vh;
    object-fit: cover;
    display: block;
}

.hero-logo-container {
    text-align: center;
    padding: 0 5%;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: -18vh;
    /* Deeper overlap into the faded part so it blends with the video */
    margin-bottom: -5vh;
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.hero-logo-container .btn-primary {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    min-height: 40px;
}

.hero-logo-container a {
    pointer-events: auto;
}

.hero-logo {
    width: 70vw;
    max-width: none;
    margin-top: 180px;
    margin-bottom: -30px;
    /* Takes full page horizontally */
    mix-blend-mode: screen;
    /* Removes the black bounding box entirely */
    animation: zoomPulse 8s infinite alternate;
}

@keyframes zoomPulse {
    0% {
        transform: scale(1);
        opacity: 0.95;
    }

    100% {
        transform: scale(1.02);
        opacity: 1;
    }
}

.hero-tagline {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 300;
    margin-top: 50px;
    margin-bottom: 2rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 1);
}

.hero-image-container {
    width: 100vw;
    position: relative;
    /* Fades image top and bottom for organic blending */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 1) 80%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-band-img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}

.hero-tagline {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 3rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.scroll-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--accent);
    animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(200%);
    }
}

@keyframes fadePulse {
    0% {
        opacity: 0.9;
    }

    100% {
        opacity: 1;
    }
}

/* Bio Section */
.bio {
    background: var(--black);
    position: relative;
}

.lead-text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-style: italic;
    color: #a1a1aa;
    margin-top: -2.5rem;
    margin-bottom: 4rem;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Gives the image grid more space than the text */
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.bio-grid-inverted {
    grid-template-columns: 1.2fr 1fr;
    /* Inverted ratio */
    margin-bottom: 0;
}

@media (max-width: 900px) {

    .bio-grid,
    .bio-grid-inverted {
        grid-template-columns: 1fr;
    }
}

.bio-images-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.bio-images-bottom {
    display: block;
}

.bio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

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

.bio-img-wide {
    aspect-ratio: 16 / 9;
    /* Shows significantly more of the vertical content of the image */
}

.bio-img-square {
    aspect-ratio: 1 / 1;
}

.bio-text {
    font-size: 1.125rem;
    line-height: 1.75;
}

.bio-text p {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.bio-text strong {
    color: var(--white);
    font-weight: 600;
}

/* Live Section */
.live {
    background: var(--dark-gray);
}

.live-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.live-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.live-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(10px);
}

.live-date {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent);
    min-width: 100px;
}

.live-details {
    font-size: 1.2rem;
    color: var(--white);
    flex-grow: 1;
}

.live-separator {
    color: var(--accent);
    margin: 0 0.5rem;
    opacity: 0.5;
}

.live-note {
    font-style: italic;
    color: #94a3b8;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .live-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1.2rem;
    }
}

/* Repertoire Section */
.repertoire-header {
    text-align: center;
    margin-bottom: 4rem;
}

.repertoire-footer {
    text-align: center;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-style: italic;
    color: #a1a1aa;
    margin-top: 2rem;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.artist-card {
    height: 250px;
    background: var(--dark-gray);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    background-size: cover;
    background-position: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.artist-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);
    z-index: 10;
}

.artist-card h3 {
    position: relative;
    z-index: 20;
    font-size: 1.3rem;
    font-weight: 800;
}

.artist-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(224, 64, 251, 0.2);
}

/* Videos / Assaggi */
.media {
    background: radial-gradient(circle at center, #151515 0%, var(--black) 100%);
}

.media-divider {
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 4rem auto;
}

.media-row {
    display: grid;
    grid-template-columns: 1.5fr auto 1.5fr;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.mute-btn:hover {
    background: rgba(224, 64, 251, 0.5) !important;
}

@media (max-width: 900px) {
    .media-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .media-row .row-title {
        order: -1;
    }
}

.row-title {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    font-weight: 800;
    text-transform: none;
    letter-spacing: 1px;
    text-align: center;
    line-height: 1.1;
    color: var(--white);
    padding: 0 1rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.block {
    display: block;
}

.cursor-pointer {
    cursor: pointer;
}

.video-card {
    text-decoration: none;
    color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.video-thumbnail {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumbnail::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    z-index: 10;
}

.play-btn {
    position: relative;
    z-index: 20;
    width: 60px;
    height: 60px;
    background: rgba(224, 64, 251, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(224, 64, 251, 0.4);
    color: white;
}

.video-card:hover .play-btn {
    background: rgba(224, 64, 251, 1);
    box-shadow: 0 0 30px rgba(224, 64, 251, 0.6);
}

.video-card:hover .video-thumbnail::before {
    background: rgba(0, 0, 0, 0.2);
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.video-info p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Unplugged & Parallax */
.unplugged {
    position: relative;
    color: var(--white);
    padding: 10rem 0;
}

.parallax-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: grayscale(80%) sepia(20%) hue-rotate(240deg);
    z-index: 10;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 12, 0.85);
    z-index: 20;
}

.unplugged-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) sepia(20%) hue-rotate(240deg);
    z-index: 10;
    pointer-events: none;
}

.relative {
    position: relative;
    z-index: 30;
}

.unplugged-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.unplugged-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #cbd5e1;
}

.unplugged-content p {
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .unplugged-layout {
        grid-template-columns: 1fr;
    }
}

/* Formazione */
.members-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.member-card {
    text-align: center;
    transition: var(--transition);
    width: calc(25% - 2.25rem);
    /* Allows exactly 4 items per row accounting for 3rem gap */
    min-width: 220px;
}

.member-photo {
    width: 100%;
    aspect-ratio: 1/1.2;
    background-size: cover;
    background-position: top center;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    filter: grayscale(30%);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.member-card:hover .member-photo {
    filter: grayscale(0%);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.member-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.role {
    color: var(--indigo-light);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Contatti Form */
.contact {
    background: var(--dark-gray);
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-header {
    margin-bottom: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(224, 64, 251, 0.3);
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    padding: 1rem 2rem;
    font-size: 1.0rem;
    font-weight: 800;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 64, 251, 0.4);
}

.btn-success {
    background-color: #22c55e !important;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.4) !important;
    color: white !important;
    cursor: default;
    transform: none !important;
}

/* Footer (existing) */
.footer {
    background: #000;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo img {
    max-width: 250px;
    opacity: 0.6;
}

.footer-contact {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.footer-contact h3,
.footer-testimonials h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.footer-testimonials {
    flex: 1;
    min-width: 280px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
}

.testimonials-scroll {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Custom Scrollbar for testimonials */
.testimonials-scroll::-webkit-scrollbar {
    width: 4px;
}

.testimonials-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.testimonials-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem 1.2rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    transition: var(--transition);
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.testimonial-text {
    font-style: italic;
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.testimonial-author {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--white);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    min-height: 44px;
    padding: 5px 0;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-link.social {
    opacity: 0.8;
    gap: 10px;
}

.email {
    font-weight: 800;
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 1rem;
}

.social-links {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.location-center {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* Animations Scroll Reveal */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.slide-up.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Marquee */
.marquee-wrapper {
    overflow: hidden;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    opacity: 0.5;
}

.marquee {
    display: flex;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

.marquee span {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-right: 2rem;
    color: transparent;
    -webkit-text-stroke: 1px var(--white);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .navbar {
        top: 0;
        left: 0;
        right: 0;
        border-radius: 0;

        background: transparent;
        backdrop-filter: none;

        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    }

    .navbar.scrolled {
        background: rgba(11, 11, 12, 0.95);
        backdrop-filter: blur(12px);
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        background: rgba(11, 11, 12, 0.98);
        transition: 0.3s ease;
        box-sizing: border-box;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);

        /* 1. Pulizia del padding (100px sopra, 0 ai lati, 3.5rem sotto) */
        padding: 100px 0 3.5rem 0;

        /* 2. Gestione dell'incolonnamento */
        flex-direction: column;

        /* 3. MODIFICHE FONDAMENTALI PER CENTRARE: */
        align-items: center;
        /* Centra orizzontalmente gli elementi nel contenitore */
        text-align: center;
        /* Assicura che anche il testo dentro i link sia centrato */
    }

    .nav-logo,
    .hamburger {
        position: relative;
        z-index: 10;
    }

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

    .hamburger {
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hero-tagline {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
    }
}