:root {
    --bg-dark: #0a0a0a;
    /* Deep Black */
    --bg-darker: #050505;
    --text-main: #f0f0f0;
    /* Rough White */
    --text-muted: #888888;
    --accent-red: #ffffff;
    /* Pure White for B&W theme */
    --accent-dark-red: #888888;
    --font-sans: 'Space Grotesk', sans-serif;
    --font-heading: 'Bebas Neue', sans-serif;
    --border-color: #2a2a2a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    cursor: none;
    /* For custom cursor - overridden on touch devices below */
}

/* Reset cursor for touch/mobile devices */
@media (hover: none) and (pointer: coarse) {
    * {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-red);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100001;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 100000;
    transition: width 0.2s, height 0.2s;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
}

::selection {
    background: var(--text-main);
    color: var(--bg-dark);
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.04;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 2px;
}

.text-accent {
    color: var(--accent-red);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.section-padding {
    padding: 120px 0;
}

.dark-section {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Glitch Effect for Titles */
h2:hover {
    text-shadow: 2px 0 var(--accent-red), -2px 0 #00fffb;
    animation: glitch-anim 0.3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        transform: skew(0.5deg);
    }

    20% {
        transform: skew(-0.8deg);
    }

    40% {
        transform: skew(0.3deg);
    }

    60% {
        transform: skew(-0.5deg);
    }

    80% {
        transform: skew(0.7deg);
    }

    100% {
        transform: skew(0deg);
    }
}

.section-title {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title h2 {
    font-size: 3.5rem;
    margin-bottom: 0px;
    text-transform: uppercase;
}

.line {
    width: 100%;
    height: 6px;
    background-color: var(--accent-red);
    transform: skew(-20deg);
    margin-top: -10px;
}

/* Brutalist UI Box */
.brutal-box {
    border: 3px solid var(--text-main);
    box-shadow: 8px 8px 0 var(--accent-red);
    background-color: var(--bg-dark);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brutal-box:hover {
    transform: translate(-4px, -4px);
    box-shadow: 12px 12px 0 var(--accent-red);
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    cursor: none;
}

.primary-btn {
    background-color: var(--accent-red);
    color: var(--bg-dark);
    border: 3px solid var(--accent-red);
}

.primary-btn:hover {
    background-color: transparent;
    color: var(--accent-red);
    border-color: var(--accent-red);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-main);
    border: 3px solid var(--text-main);
}

.secondary-btn:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    /* Force initial state to prevent mobile rendering issues */
    background: rgba(10, 10, 10, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* When not scrolled, make header more transparent */
header:not(.scrolled) {
    background: rgba(10, 10, 10, 0.85);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 5%;
    backdrop-filter: blur(5px);
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo img {
    display: block;
    vertical-align: middle;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links li a {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    display: flex;
    align-items: center;
    line-height: 1;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.nav-links li a:hover::before,
.nav-links li a.active::before {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1100;
    /* Always above nav overlay */
    position: relative;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--text-main);
    transition: 0.3s ease;
    display: block;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    background: var(--bg-dark);
    /* Fallback color */
    overflow: hidden;
}

/* Hero image - uses <img> for reliable cover behavior on ALL device sizes */
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;
    /* Skip the letterbox black bar at the top of the image */
    z-index: 0;
    pointer-events: none;
    user-select: none;
    display: block;
}

/* Contrast Overlay */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(10, 10, 10, 0.5) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Safe area padding for notched devices (iPhone X+) */
@supports (padding: max(0px)) {
    .hero-content {
        padding-left: max(20px, env(safe-area-inset-left));
        padding-right: max(20px, env(safe-area-inset-right));
    }
}

.glitch-wrapper {
    position: relative;
}

.hero-title {
    font-size: clamp(3.5rem, 15vw, 8rem);
    line-height: 0.9;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    animation: text-reveal 2s cubic-bezier(0.2, 1, 0.3, 1) forwards, punk-pulse 4s ease-in-out 2s infinite alternate;
    opacity: 0;
    word-break: break-word;
    hyphens: auto;
}

@keyframes text-reveal {
    0% {
        opacity: 0;
        letter-spacing: -20px;
        filter: blur(15px);
        transform: scale(0.85);
    }

    100% {
        opacity: 1;
        letter-spacing: 5px;
        filter: blur(0px);
        transform: scale(1);
    }
}

@keyframes punk-pulse {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.0);
    }

    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.15), 0 0 40px rgba(255, 255, 255, 0.05);
    }
}


.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.8rem);
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: float 2s ease-in-out infinite;
}

.scroll-down svg {
    width: 35px;
    height: 35px;
    color: var(--text-main);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    50% {
        transform: translateY(10px) translateX(-50%);
    }
}

/* About / La Band Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
    border: 4px solid var(--text-main);
}

.image-wrapper::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    background-color: var(--accent-red);
    z-index: -1;
    transition: all 0.3s ease;
}

.image-wrapper:hover::after {
    top: 25px;
    left: 25px;
}

.image-wrapper img {
    width: 100%;
    display: block;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.3s;
}

.image-wrapper:hover img {
    filter: grayscale(0%);
}

.about-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item h4 {
    font-size: 3.5rem;
    color: var(--accent-red);
    line-height: 1;
}

.stat-item p {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Music Section */
.music-intro {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 600;
}

.player-container {
    max-width: 900px;
    width: 100%;
    padding: 30px;
}

.track-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.track-card:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.track-info h4 {
    font-size: 1.6rem;
    margin-bottom: 5px;
}

.track-info p {
    color: var(--text-muted);
    font-size: 1rem;
    font-family: var(--font-sans);
}

.track-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 50%;
}

.play-btn {
    background: var(--text-main);
    border: none;
    color: var(--bg-dark);
    cursor: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s;
}

.play-btn:hover {
    background: var(--accent-red);
    color: var(--bg-dark);
    transform: scale(1.1);
}

.play-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 3px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    cursor: none;
    position: relative;
}

.progress {
    height: 100%;
    background-color: var(--accent-red);
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    justify-content: center;
}

.platform-btn {
    display: flex;
    flex: 1 1 auto;
    min-width: 140px;
    height: 55px; /* Fixed height for consistent alignment */
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 1px;
    border: 2px solid var(--text-main);
    color: var(--text-main);
    transition: all 0.2s ease;
    cursor: none;
    text-align: center;
}

@media screen and (max-width: 600px) {
    .platform-btn {
        flex: 1 1 calc(50% - 15px);
    }
}

@media screen and (max-width: 480px) {
    .platform-btn {
        flex: 1 1 100%;
    }
}

.platform-btn:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

.platform-btn:hover img {
    filter: invert(1);
}

/* Tour Section */
.tour.section-padding {
    padding-top: 60px;
    padding-bottom: 60px;
}

.bg-dark-section {
    background-color: var(--bg-dark);
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.tour-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.tour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    padding: 25px 30px;
    transition: all 0.3s ease;
    border: 1px solid #333;
    border-left: 5px solid var(--accent-red);
}

.tour-item:hover {
    background: #1a1a1a;
    transform: scale(1.02);
    border-color: var(--accent-red);
}

.tour-date {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--accent-red);
    min-width: 140px;
}

.tour-info {
    flex-grow: 1;
    padding: 0 30px;
}

.tour-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 3px;
    color: white;
}

.tour-info p {
    color: #888;
    letter-spacing: 2px;
    font-weight: bold;
    font-size: 0.85rem;
}

.sold-out {
    border: 1px solid #444;
    color: #444;
    padding: 5px 12px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .tour-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 40px 20px;
    }

    .tour-info {
        padding: 0;
    }
}

/* Gallery / Media Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 350px;
    grid-auto-flow: dense;
    /* Riempie i buchi automaticamente */
    gap: 25px;
}

/* Tablet breakpoint */
@media screen and (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        grid-auto-rows: 300px;
        gap: 20px;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #000;
    border: 2px solid white;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.7);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
    opacity: 1;
}

.gallery-item:hover {
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0px var(--accent-red);
}

.gallery-item .overlay span {
    font-family: var(--font-sans);
    color: var(--accent-red);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-item .overlay p {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin: 5px 0 0;
    color: white;
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-list {
    list-style: none;
    margin-bottom: 2.5rem;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-list svg {
    width: 28px;
    height: 28px;
    color: var(--accent-red);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 2px solid var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: none;
}

.social-icon:hover {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--bg-dark);
    transform: rotate(5deg);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.contact-form {
    padding: 40px;
    width: 100%;
    min-width: 0;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 18px 20px;
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    cursor: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-red);
}

.contact-form .submit-btn {
    width: 100%;
    padding: 20px;
    cursor: none;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    background-color: var(--bg-dark);
}

footer .logo {
    font-size: 2rem;
    margin-bottom: 10px;
}

footer p {
    color: var(--text-muted);
}

/* Scroll Animations CSS */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive / Mobile Optimization */
@media screen and (max-width: 992px) {
    .hero-title {
        font-size: 5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .gallery-item.large {
        grid-column: span 1;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
        margin-top: 30px;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 12px 20px;
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2.8rem;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 768px) {

    /* Prevent FOUC (Flash of Unstyled Content) */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Header - Sticky (NOT fixed) to avoid iOS Safari position:fixed rendering bug.
       sticky works reliably on all mobile browsers and sticks correctly at top. */
    header {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 12px 20px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: rgba(10, 10, 10, 0.5) !important;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        z-index: 1050 !important;
        transition: background 0.3s ease !important;
        flex-wrap: nowrap !important; /* Ensure single line */
        gap: 10px !important;
    }

    /* Darker background when scrolled past hero */
    header.scrolled {
        background: rgba(10, 10, 10, 0.98) !important;
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    /* Ensure logo is properly positioned */
    .logo {
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        margin-right: auto !important; /* Push lang-switcher and hamburger to the right */
        /* Add text shadow for visibility on transparent background */
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    }

    .logo img {
        max-height: 40px !important; /* Slightly smaller to fit better */
        width: auto !important;
        display: block !important;
        vertical-align: middle !important;
    }

    .lang-switcher {
        margin: 0 !important;
        width: auto !important;
        order: 2 !important;
        gap: 5px !important;
        display: flex !important;
        align-items: center !important;
    }

    .lang-btn {
        font-size: 0.8rem !important; /* Smaller for mobile header */
        padding: 4px 8px !important;
        border-radius: 0 !important;
        -webkit-appearance: none !important;
        appearance: none !important;
        cursor: pointer !important;
    }

    /* HIDE desktop nav on mobile: use opacity+visibility (animatable!) instead of display:none */
    .nav-links {
        display: flex !important;         /* always flex so transitions work */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        height: 100dvh !important;
        height: 100vh !important;
        width: 100% !important;
        max-width: 100vw !important;
        background-color: rgba(5, 5, 5, 0.97) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        backdrop-filter: blur(16px) !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.6rem !important;
        z-index: 1100 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 100px 20px 40px !important;
        box-sizing: border-box !important;
        /* Hidden state: invisible + shifted up slightly */
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transform: translateY(-12px) !important;
        transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease !important;
    }

    /* Visible state when hamburger is clicked */
    .nav-links.nav-active {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateY(0) !important;
    }

    /* Staggered entrance for each nav link */
    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.nav-active li:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.10s; }
    .nav-links.nav-active li:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.16s; }
    .nav-links.nav-active li:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.22s; }
    .nav-links.nav-active li:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.28s; }
    .nav-links.nav-active li:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.34s; }
    .nav-links.nav-active li:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.40s; }

    /* Hamburger menu - simple styling with shadow for visibility */
    .hamburger {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-around !important;
        align-items: center !important;
        width: 30px !important;
        height: 22px !important;
        flex-shrink: 0 !important;
        order: 3 !important;
        cursor: pointer !important;
        /* Add shadow for visibility on transparent background */
        filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
    }

    .hamburger span {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background-color: white !important;
    }

    /* Hero section - negative margin pulls it UP behind the sticky header.
       Increased to -115px to hide more of the dark ceiling area of the concert photo. */
    .hero {
        /* height = 100svh + (115px margin - 70px header) = fills viewport top to bottom exactly */
        height: calc(100vh + 45px);
        height: calc(100svh + 45px);
        min-height: 600px;
        padding-top: 0 !important;
        margin-top: -115px !important;
        overflow: visible !important;
    }

    .hero-bg-img {
        /* center top to show concert image from the very top on portrait mobile */
        object-position: center top !important;
    }

    /* Remove gradient overlay that darkened image */
    .hero-overlay {
        background: linear-gradient(0deg, var(--bg-dark) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0.1) 100%);
    }

    /* Hero content - vertically centered, force visible immediately (no fade-up delay) */
    .hero-content {
        /* padding-top: 115px to keep text below the sticky header */
        padding: 115px 24px 50px !important;
        gap: 10px !important;
        justify-content: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Force visible immediately on mobile - override fade-up animation */
        opacity: 1 !important;
        transform: translateY(0) !important;
    }

    .hero-title-wrapper {
        margin-bottom: 10px;
    }

    .hero-title-wrapper p {
        margin-top: -10px !important;
        margin-bottom: 20px !important;
        font-size: 1.2rem !important;
        letter-spacing: 4px !important;
    }

    .hero-title-wrapper {
        width: 100%;
    }

    /* Safe area padding for notched devices */
    @supports (padding: max(0px)) {
        .nav-links {
            padding-left: max(20px, env(safe-area-inset-left)) !important;
            padding-right: max(20px, env(safe-area-inset-right)) !important;
            padding-top: max(100px, calc(env(safe-area-inset-top) + 80px)) !important;
            padding-bottom: max(40px, env(safe-area-inset-bottom)) !important;
        }
    }

    .nav-links li a {
        font-size: clamp(1.5rem, 5vw, 2rem);
        font-family: var(--font-heading);
        padding: 12px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        letter-spacing: 3px;
        text-align: center;
        width: 100%;
        min-height: 44px;
        /* Minimum touch target size */
        line-height: 1.2;
    }

    /* Ensure nav items don't overflow */
    .nav-links li {
        width: 100%;
        text-align: center;
    }

    /* Hamburger Animation */
    .hamburger.toggle span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background-color: var(--accent-red);
    }

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

    .hamburger.toggle span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background-color: var(--accent-red);
    }

    .hero-title {
        font-size: clamp(3rem, 18vw, 5rem);
        margin-bottom: 0px; /* Remove extra margin */
        line-height: 1;
        /* Force animation to play on mobile */
        animation: text-reveal 1.5s cubic-bezier(0.2, 1, 0.3, 1) 0.2s forwards, punk-pulse 4s ease-in-out 1.7s infinite alternate !important;
    }

    .hero-title-wrapper,
    .glitch-wrapper {
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.2rem);
        letter-spacing: 2px;
        margin-top: 5px;
        margin-bottom: 20px;
    }

    .hero-cta {
        gap: 15px !important;
        margin-top: 20px !important;
    }

    .hero-cta .cta-button {
        padding: 12px 20px !important;
        font-size: 1.1rem !important;
    }

    .hero-title-wrapper p {
        margin-top: -5px !important;
        margin-bottom: 10px !important;
    }

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

    .track-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .track-controls {
        width: 100%;
    }

    .player-container {
        padding: 20px 16px;
    }

    .platforms {
        flex-wrap: wrap;
        gap: 10px;
    }

    .platform-btn {
        padding: 10px 16px;
        font-size: 1rem;
    }

    .section-padding {
        padding: 70px 0;
    }

    .about-text h3 {
        font-size: 2rem;
    }

    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .contact-form {
        padding: 24px 16px;
    }

    .contact-info h3 {
        font-size: 1.8rem;
    }

    .contact-list li {
        font-size: 1rem;
        gap: 10px;
    }

    .image-wrapper::after {
        top: 8px;
        left: 8px;
    }

    /* Gallery grid on mobile */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
        gap: 15px;
    }

    .gallery-item.large {
        grid-column: span 1;
    }

    /* Gallery overlay always visible on touch devices */
    .gallery-item .overlay {
        opacity: 1;
        transform: translateY(0);
    }

    /* Hero watermark responsive sizing */
    .hero-title-wrapper img[style*="width: 400px"] {
        width: clamp(150px, 50vw, 400px) !important;
        max-width: 80vw !important;
        height: auto !important;
    }

    /* Merch section - hide the giant bg text to prevent overflow */
    .merch-bg-text {
        display: none !important;
    }

    /* Disable custom cursor on mobile */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    * {
        cursor: auto !important;
    }

    /* Fix buttons cursor */
    a,
    button {
        cursor: pointer !important;
    }

    /* Safe area padding for notched devices */
    header {
        padding-left: calc(5% + env(safe-area-inset-left, 0px)) !important;
        padding-right: calc(5% + env(safe-area-inset-right, 0px)) !important;
    }

    .container {
        padding-left: calc(5% + env(safe-area-inset-left, 0px)) !important;
        padding-right: calc(5% + env(safe-area-inset-right, 0px)) !important;
    }

    /* Marquee - original height */
    .marquee-hero {
        height: 38px;
    }

    .marquee-hero span {
        padding: 0 20px;
        font-size: 1.1rem;
    }

    /* Scroll down arrow - position just above marquee */
    .scroll-down {
        bottom: 55px;
    }

    .scroll-down svg {
        width: 35px;
        height: 35px;
    }

    /* Bandsintown widget mobile optimization */
    .bit-widget-initializer,
    [class*="bit-"] {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Footer */
    footer {
        padding: 40px 20px;
    }
}

/* Background Noise / Grunge Texture Overlay */
.noise-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('https://www.transparenttextures.com/patterns/asfalt-dark.png');
    opacity: 0.12;
    z-index: 9998;
    pointer-events: none;
    animation: grain 0.5s steps(1) infinite;
}

@keyframes grain {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-1%, -1%);
    }

    20% {
        transform: translate(1%, 1%);
    }

    30% {
        transform: translate(-2%, -3%);
    }

    40% {
        transform: translate(3%, 2%);
    }

    50% {
        transform: translate(-3%, -3%);
    }

    60% {
        transform: translate(3%, 3%);
    }

    70% {
        transform: translate(-4%, -1%);
    }

    80% {
        transform: translate(2%, 4%);
    }

    90% {
        transform: translate(-2%, -2%);
    }
}

/* Marquee Styles */
.marquee-container {
    background: #ff4d4d;
    /* Rosso acceso fisso per evitare errori */
    color: white;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    z-index: 100;
    position: relative;
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    padding: 0 30px;
    font-size: 1.5rem;
    /* Più piccolo e leggibile */
    font-weight: 900;
    font-family: var(--font-heading);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-25%);
    }

    /* Loop perfetto per testo quadruplicato */
}





/* Marquee Hero (Bottom of Screen) */
.marquee-hero {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #000;
    /* Nero profondo per contrasto */
    color: #ff4d4d;
    /* Rosso punk per il testo */
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    z-index: 10;
    border-top: 2px solid #ff4d4d;
    height: 45px;
    /* Altezza fissa */
    display: flex;
    align-items: center;
}

.marquee-hero .marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
}

.marquee-hero span {
    padding: 0 40px;
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    text-transform: uppercase;
}


/* Lightbox Visualizer */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(10px);
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 2px solid white;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.2);
}

.lightbox-caption {
    margin-top: 15px;
    text-align: center;
}

.lightbox-caption h4 {
    font-family: 'Bebas Neue', cursive;
    font-size: 2rem;
    color: white;
    margin: 0;
}

.lightbox-caption p {
    color: var(--accent-red);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Navigazione Lightbox */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    line-height: 1;
}

@media (max-width: 768px) {
    .lightbox-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }

    .close-lightbox {
        top: 15px;
        right: 15px;
        font-size: 2.2rem;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 90dvh;
    }

    .lightbox-content img,
    .lightbox-content video {
        max-height: 70dvh;
    }
}

/* Extra small devices */
@media screen and (max-width: 400px) {
    .hero-title {
        font-size: clamp(2.8rem, 20vw, 4rem);
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 12px 16px;
    }

    .contact-form {
        padding: 20px 12px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .player-container {
        padding: 16px 12px;
    }

    .about-text h3 {
        font-size: 1.7rem;
    }

    .merch-teaser h2 {
        font-size: clamp(2rem, 8vw, 4rem) !important;
    }

    .merch-teaser p {
        font-size: 0.9rem !important;
        letter-spacing: 2px !important;
    }

    .merch-teaser .brutal-box {
        font-size: 1.2rem !important;
        padding: 12px 30px !important;
    }
}

/* Landscape mode on mobile devices */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
        height: auto;
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .hero-cta {
        flex-direction: row;
        gap: 15px;
    }

    .scroll-down {
        display: none;
    }

    /* Fix mobile nav in landscape mode */
    .nav-links {
        justify-content: flex-start;
        padding-top: 80px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links li a {
        font-size: 1.5rem;
        padding: 8px 0;
    }
}

/* Very small devices like iPhone SE */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 12px;
    }

    header {
        padding: 10px 12px;
    }

    .hero-content {
        padding: 60px 12px 40px;
    }

    .section-padding {
        padding: 50px 0;
    }
}

/* ========================================
   Spotify Embed
   ======================================== */
.spotify-embed {
    width: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.spotify-embed iframe {
    border: none;
    display: block;
}

@media screen and (max-width: 768px) {
    .spotify-embed iframe {
        height: 300px;
    }
}

/* ========================================
   Language Switcher
   ======================================== */
.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    z-index: 1001;
}

.lang-btn {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 1px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    cursor: none;
    transition: all 0.2s ease;
    text-transform: uppercase;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.lang-btn.active {
    color: var(--text-main);
    border-color: var(--accent-red);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 2px 2px 0 var(--accent-red);
}

.lang-btn:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

/* ========================================
   Privacy Banner (GDPR) - Renamed to avoid adblockers
   ======================================== */
.privacy-config-box {
    position: fixed;
    bottom: -400px; /* Hidden initially securely below screen */
    left: 0;
    right: 0;
    z-index: 9500;
    background: #0d0d0d;
    border-top: 3px solid var(--text-main);
    padding: 20px 5%;
    
    transition: bottom 0.6s cubic-bezier(0.2, 1, 0.3, 1), opacity 0.6s ease;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
}

.privacy-config-box.visible {
    bottom: 0;
    opacity: 1;
    pointer-events: auto;
}

.privacy-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.privacy-content p {
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-muted);
    flex: 1;
    min-width: 220px;
    line-height: 1.6;
    margin: 0;
}

.privacy-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.privacy-btn {
    font-family: var(--font-heading);
    font-size: 1rem;
    letter-spacing: 2px;
    padding: 10px 22px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    background: transparent;
}

.pc-accept-btn {
    background: var(--text-main);
    color: var(--bg-dark);
    border-color: var(--text-main);
}

.pc-accept-btn:hover {
    background: transparent;
    color: var(--text-main);
}

.pc-reject-btn {
    color: var(--text-muted);
    border-color: var(--text-muted);
}

.pc-reject-btn:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

@media screen and (max-width: 768px) {
    .privacy-config-box {
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        margin: 0 16px !important;
        border-radius: 12px;
        border: 2px solid var(--text-main) !important;
        padding: 24px 20px 24px 20px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.9);
        overflow-y: auto;
    }
    
    .privacy-config-box.visible {
        bottom: 30px !important; /* Force it up */
    }

    .privacy-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .privacy-actions {
        width: 100%;
        gap: 12px;
        /* Absolute guarantee: the buttons MUST have 30px of blank space below them */
        padding-bottom: 30px !important;
    }

    .privacy-btn {
        flex: 1;
        text-align: center;
        padding: 14px 10px;
        font-size: 1.1rem;
    }
}
}