/* ===== Newsletter Popup ===== */
/* ===== Newsletter Popup ===== */
.lad-modal{position:fixed;inset:0;z-index:2500;display:none;
  align-items:center;justify-content:center;padding:20px;
  overflow-y:auto;-webkit-overflow-scrolling:touch}
.lad-modal.is-open{display:flex;animation:ladFade .3s ease}
.lad-modal__backdrop{position:fixed;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(6px)}
.lad-modal__panel{position:relative;width:min(560px,100%);background:#0b0b0b;
  border:1px solid rgba(255,255,255,.14);border-radius:24px;
  max-height:calc(100dvh - 40px);overflow-y:auto;-webkit-overflow-scrolling:touch;
  animation:ladPop .35s cubic-bezier(.2,.9,.3,1.2)}
.lad-modal__top{height:8px;
  background-image:repeating-linear-gradient(48deg,#F26B1D 0 8px,transparent 8px 18px)}
.lad-modal__close{position:sticky;top:16px;margin-left:auto;margin-right:16px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);color:#fff;width:38px;height:38px;border-radius:50%;
  font-size:1.3rem;line-height:1;cursor:pointer;z-index:2;transition:.2s;display:block}
.lad-modal__close:hover{background:#F26B1D;color:#000;border-color:#F26B1D}
.lad-modal__body{padding:24px 34px 34px;margin-top:-54px}
.lad-modal__kicker{color:#F26B1D;font-weight:800;letter-spacing:.18em;
  text-transform:uppercase;font-size:.72rem}
.lad-modal__body h3{font-weight:900;letter-spacing:-.03em;line-height:.98;
  font-size:clamp(1.8rem,6vw,2.7rem);margin:12px 0 10px;color:#fff}
.lad-modal__serif{font-family:'Bodoni Moda',Georgia,serif;font-style:italic;color:#1FA9E0}
.lad-modal__body>p{color:#c2c2c2;font-size:.95rem;margin-bottom:22px}

/* form fields */
.lad-modal__grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.lad-modal__group{display:flex;flex-direction:column;margin-bottom:14px}
.lad-modal__group label{color:#cfcfcf;font-size:.8rem;font-weight:600;
  margin-bottom:6px;letter-spacing:.01em}
.lad-modal__req{color:#F26B1D}
.lad-modal__group input{background:#000;border:1px solid rgba(255,255,255,.14);
  color:#fff;border-radius:14px;padding:13px 16px;font-family:inherit;font-size:16px;
  outline:none;transition:.2s;width:100%}
.lad-modal__group input::placeholder{color:#5e5e5e}
.lad-modal__group input:focus{border-color:#F26B1D}

.lad-modal__consent{display:flex;gap:10px;align-items:flex-start;margin-top:6px;
  color:#9a9a9a;font-size:.78rem;cursor:pointer}
.lad-modal__consent input{margin-top:3px;accent-color:#F26B1D;flex-shrink:0}
.lad-modal__err{color:#ff6b6b;font-size:.82rem;margin-top:10px;min-height:1.1em}

.lad-modal__btn{border:none;cursor:pointer;font-family:inherit;font-weight:800;font-size:.95rem;
  padding:15px 26px;border-radius:999px;background:#F26B1D;color:#000;transition:.25s}
.lad-modal__btn:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(242,107,29,.35)}
.lad-modal__btn--full{width:100%;margin-top:8px}

.lad-modal__success{display:none;text-align:center;padding:14px 0 4px}
.lad-modal__check{width:64px;height:64px;border-radius:50%;margin:0 auto 16px;
  background:#F26B1D;color:#000;display:grid;place-items:center;font-size:2rem;font-weight:900}
.lad-modal__success h4{color:#fff;font-size:1.4rem;font-weight:800;margin-bottom:6px}
.lad-modal__success p{color:#c2c2c2;font-size:.95rem}
.lad-modal.is-done .lad-modal__form{display:none}
.lad-modal.is-done .lad-modal__success{display:block}

@keyframes ladFade{from{opacity:0}to{opacity:1}}
@keyframes ladPop{from{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:none}}
body.lad-modal-open{overflow:hidden}

/* fallback for browsers without dvh */
@supports not (max-height:100dvh){
  .lad-modal__panel{max-height:calc(100vh - 40px)}
}

@media(max-width:480px){
  .lad-modal{padding:14px}
  .lad-modal__panel{max-height:calc(100dvh - 28px);border-radius:20px}
  .lad-modal__body{padding:20px 20px 26px;margin-top:-50px}
  .lad-modal__grid{grid-template-columns:1fr}
}

@font-face {
    font-family: 'ladsui';
    src: url('fonts_woff2/SuisseIntl-Medium.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ladsui-text';
    src: url('fonts_woff2/SuisseIntl-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


       /* --- NEW ANIMATIONS --- */
        
        /* 1. Scroll Reveal Class (Hidden by default) */
        .reveal-on-scroll {
            opacity: 0;
            transform: translateY(40px);
            transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
            will-change: opacity, transform;
        }

        /* 2. Scroll Reveal Active State (Visible) */
        .reveal-on-scroll.is-visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* 3. Hero Poster Floating Effect */
        .hero-poster {
            animation: floatPoster 6s ease-in-out infinite;
        }

        @keyframes floatPoster {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
            100% { transform: translateY(0px); }
        }

        /* 4. Neon Button Pulse */
        .btn-neon {
            animation: neonPulse 3s infinite;
        }

        @keyframes neonPulse {
            0% { box-shadow: 0 0 5px var(--neon-cyan); }
            50% { box-shadow: 0 0 20px var(--neon-cyan); }
            100% { box-shadow: 0 0 5px var(--neon-cyan); }
        }

        /* 5. Staggered Delay for Grid Items (Cards, Films, etc.) */
        .program-card:nth-child(1) { transition-delay: 0.1s; }
        .program-card:nth-child(2) { transition-delay: 0.2s; }
        .program-card:nth-child(3) { transition-delay: 0.3s; }
        .program-card:nth-child(4) { transition-delay: 0.4s; }
        .program-card:nth-child(5) { transition-delay: 0.5s; }
        .program-card:nth-child(6) { transition-delay: 0.6s; }
        .program-card:nth-child(7) { transition-delay: 0.7s; }
        .program-card:nth-child(8) { transition-delay: 0.8s; }
        
        .film-card:nth-child(odd) { transition-delay: 0.1s; }
        .film-card:nth-child(even) { transition-delay: 0.2s; }


        /* --- CONTINUOUS KINETIC MOVEMENT --- */

        /* Define 3 unique random floating animations */
        @keyframes floatVar1 {
            0% { transform: translate(0, 0) rotate(0deg); }
            33% { transform: translate(5px, -10px) rotate(1deg); }
            66% { transform: translate(-5px, 5px) rotate(-1deg); }
            100% { transform: translate(0, 0) rotate(0deg); }
        }

        @keyframes floatVar2 {
            0% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(-8px, 8px) scale(1.02); }
            66% { transform: translate(8px, -8px) scale(0.98); }
            100% { transform: translate(0, 0) scale(1); }
        }

        @keyframes floatVar3 {
            0% { transform: translate(0, 0) skewX(0deg); }
            50% { transform: translate(10px, 0) skewX(2deg); }
            100% { transform: translate(0, 0) skewX(0deg); }
        }

        /* Apply these animations randomly to grid items */
        .kinetic-float-1 { animation: floatVar1 8s ease-in-out infinite; }
        .kinetic-float-2 { animation: floatVar2 10s ease-in-out infinite; }
        .kinetic-float-3 { animation: floatVar3 12s ease-in-out infinite; }

        /* Make the hover effect override the float smoothly */
        .program-card:hover, .film-card:hover, .gallery-item:hover {
            animation: none !important; /* Stop floating when hovering */
            transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        /* Subtle continuous pulse for Section Headers */
        .section-header h2 {
            animation: textPulse 4s ease-in-out infinite;
            display: inline-block; /* Needed for transform */
        }

        @keyframes textPulse {
            0%, 100% { text-shadow: 0 0 10px rgba(255,255,255,0.1); }
            50% { text-shadow: 0 0 20px rgba(0, 255, 200, 0.3); }
        }

        /* --- COMPETITIONS TABS --- */
        .tabs-container {
            display: flex;
            gap: 10px;
            margin-bottom: 30px;
            flex-wrap: wrap;
            border-bottom: 1px solid #333;
            padding-bottom: 10px;
        }

        .tab-btn {
            background: transparent;
            border: 1px solid #333;
            color: #888;
            padding: 10px 20px;
            font-family: var(--font-display);
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
            transition: 0.3s;
            font-size: 0.9rem;
        }

        .tab-btn:hover {
            border-color: var(--neon-cyan);
            color: #fff;
        }

        .tab-btn.active {
            background: var(--neon-cyan);
            border-color: var(--neon-cyan);
            color: #000;
        }

        .tab-content {
            display: none;
            animation: fadeIn 0.5s ease;
        }

        .tab-content.active {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }

        .film-card {
            background: #0f0f0f;
            border: 1px solid #222;
            padding: 20px;
            transition: 0.3s;
        }

        .film-card:hover {
            border-color: var(--neon-purple);
            transform: translateY(-5px);
        }

        .film-title {
            font-family: var(--font-display);
            font-weight: 700;
            color: #fff;
            margin-bottom: 5px;
            font-size: 1.1rem;
        }

        .film-meta {
            font-size: 0.8rem;
            color: var(--neon-cyan);
            margin-bottom: 10px;
            display: block;
        }

        .film-duration {
            font-size: 0.75rem;
            color: #666;
            float: right;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* --- CORE VARIABLES --- */
        :root {
            --bg-dark: #030303;
            --bg-card: #0f0f0f;
            --text-main: #ffffff;
            --text-muted: #888888;
            --neon-cyan:#9db3ca;
            --neon-purple:#ef9c73;
            --border-color: #333;
            --font-display: 'ladsui', sans-serif;   /* was Montserrat */
            --font-tech:    'ladsui-text', sans-serif;   /* was Space Grotesk */
        
           /* --font-display: 'Montserrat', sans-serif;
            --font-tech: 'Space Grotesk', monospace;*/
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }

        body {
            background-color: var(--bg-dark);
            color: var(--text-main);
            font-family: var(--font-tech);
            overflow-x: hidden;
            line-height: 1.6;
        }

        a { text-decoration: none; color: inherit; transition: 0.3s; }
        ul { list-style: none; }

/* --- HIGH-VOLTAGE NEON LIGHTS --- */

/* 1. Base Setup */
.program-card, .film-card, .gallery-item, .archive-row {
    position: relative;
    background: #050505; /* Slightly darker to make lights pop */
    z-index: 1;
    overflow: hidden;
    border-radius: 4px;
}

/* 2. The Multi-Color Electricity Ring */
.program-card::before, .film-card::before, .gallery-item::before, .archive-row::before {
    content: '';
    position: absolute;
    inset: -3px; /* Controls thickness of the light beam */
    z-index: -1;
    background: conic-gradient(
        from 0deg, 
       /* #00ffc8,   /* Cyan */
      /*  #0055ff,   /* Electric Blue */
      var(--neon-cyan),
      var(--neon-purple),
       /* #bd00ff,   /* Neon Purple */
       /* #ff0055,   /* Hot Pink */
       /* #ccff00,   /* Lime Green */
       /* #00ffc8    /* Back to Cyan */
    );
    animation: electricSpin 2s linear infinite;
    opacity: 0.7;
    filter: blur(8px); /* Strong base glow */
}

/* 3. Randomize Movement for Chaos */
.program-card:nth-child(3n)::before { animation-duration: 3s; animation-direction: reverse; }
.program-card:nth-child(3n+1)::before { animation-duration: 1.5s; }
.film-card:nth-child(odd)::before { animation-duration: 2.5s; animation-direction: reverse; }
.gallery-item:nth-child(even)::before { animation-duration: 4s; }

/* 4. The Inner Mask (Keeps the center dark) */
.program-card::after, .film-card::after, .gallery-item::after, .archive-row::after {
    content: '';
    position: absolute;
    inset: 2px; /* Must be slightly smaller than inset above */
    background: #050505; /* Matches card background */
    z-index: -1;
    border-radius: 2px;
}

/* 5. HOVER: The Power Surge */
.program-card:hover::before, .film-card:hover::before, .gallery-item:hover::before, .archive-row:hover::before {
    opacity: 1;
    filter: blur(15px) brightness(1.5); /* Massive glow and brightness */
    animation-duration: 0.5s; /* Spins wildly fast */
    box-shadow: 0 0 30px var(--neon-cyan), 0 0 60px var(--neon-purple); /* External halo */
}

/* Optional: Make the card content pop slightly on hover */
.program-card:hover, .film-card:hover, .gallery-item:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

@keyframes electricSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}






#mosaic-bg {
    display: grid;
    /* Force grid to use exact dimensions calculated in JS */
    grid-template-columns: repeat(var(--col-count, 10), var(--tile-width, 160px));
    grid-template-rows: repeat(var(--row-count, 10), var(--tile-height, 100px));
    
    /* CHANGE 1: Remove all space between tiles */
    gap: 0; 
    
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: max-content;
    height: max-content;
    z-index: -1;
    pointer-events: none;
    overflow: hidden; /* Prevent scrollbars if calculation is slightly off */
}

.mosaic-tile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
    opacity: 0.05; /* Dimmer when inactive */
    filter: grayscale(80%); /* Optional: makes inactive tiles look more "background-like" */
    border-radius: 0; /* Ensure sharp edges for no-gap look */
}

.mosaic-tile.active {
    opacity: 1;
    filter: grayscale(0%);
    z-index: 10; /* Bring active tile to front */
    /* Scale is controlled by JS now */
}









        
        /* --- UTILITIES --- */
        .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
        .section-padding { padding: 100px 0; }

        /* Language Toggle Classes */
        .lang-it { display: none; }
        body.lang-italian .lang-en { display: none; }
        body.lang-italian .lang-it { display: block; }
        
        /* Inline span fix for mixed content */
        span.lang-it { display: none; }
        body.lang-italian span.lang-en { display: none; }
        body.lang-italian span.lang-it { display: inline; }

        .glitch-text {
            font-family: var(--font-display);
            font-weight: 900;
            text-transform: uppercase;
            position: relative;
            color: white;
            font-size: 4rem;
            line-height: 0.9;
        }

        .glitch-text::before, .glitch-text::after {
            content: attr(data-text);
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: var(--bg-dark);
        }

        .glitch-text::before {
            left: 2px;
            text-shadow: -1px 0 var(--neon-purple);
            clip: rect(24px, 550px, 90px, 0);
            animation: glitch-anim-2 3s infinite linear alternate-reverse;
        }

        .glitch-text::after {
            left: -2px;
            text-shadow: -1px 0 var(--neon-cyan);
            clip: rect(85px, 550px, 140px, 0);
            animation: glitch-anim 2.5s infinite linear alternate-reverse;
        }

        @keyframes glitch-anim {
            0% { clip: rect(10px, 9999px, 30px, 0); }
            20% { clip: rect(80px, 9999px, 100px, 0); }
            40% { clip: rect(10px, 9999px, 50px, 0); }
            60% { clip: rect(90px, 9999px, 100px, 0); }
            80% { clip: rect(20px, 9999px, 60px, 0); }
            100% { clip: rect(50px, 9999px, 80px, 0); }
        }

        @keyframes glitch-anim-2 {
            0% { clip: rect(60px, 9999px, 10px, 0); }
            20% { clip: rect(10px, 9999px, 50px, 0); }
            40% { clip: rect(90px, 9999px, 20px, 0); }
            60% { clip: rect(15px, 9999px, 80px, 0); }
            80% { clip: rect(50px, 9999px, 30px, 0); }
            100% { clip: rect(20px, 9999px, 70px, 0); }
        }

        .btn-neon {
            display: inline-block;
            padding: 15px 40px;
            background: transparent;
            border: 1px solid var(--neon-cyan);
            color: var(--neon-cyan);
            font-family: var(--font-display);
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 2px;
            position: relative;
            overflow: hidden;
            z-index: 1;
            cursor: pointer;
        }

        .btn-neon::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 0%; height: 100%;
            background: var(--neon-cyan);
            z-index: -1;
            transition: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
        }

        .btn-neon:hover::before { width: 100%; }
        .btn-neon:hover { color: #000; box-shadow: 0 0 20px var(--neon-cyan); }

        /* --- MARQUEE --- */
        .marquee-container {
            background: var(--neon-cyan);
            color: #000;
            padding: 10px 0;
            overflow: hidden;
            white-space: nowrap;
            font-family: var(--font-display);
            font-weight: 900;
            text-transform: uppercase;
            font-size: 0.9rem;
            position: relative;
            z-index: 100;
        }

        .marquee-content {
            display: inline-block;
            animation: marquee 20s linear infinite;
        }

        @keyframes marquee {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); }
        }

        /* --- HEADER --- */
        header {
            position: fixed;
            top: 0; left: 0; width: 100%;
            padding: 20px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            z-index: 1000;
            background: rgba(3, 3, 3, 0.8);
            backdrop-filter: blur(15px);
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .logo {
            font-family: var(--font-display);
            font-weight: 900;
            font-size: 1.5rem;
            color: #fff;
        }
        .logo span { color: var(--neon-cyan); }

        .nav-links { display: flex; gap: 30px; }
        .nav-links a {
            font-family: var(--font-display);
            font-size: 0.8rem;
            text-transform: uppercase;
            font-weight: 700;
            color: rgba(255,255,255,0.6);
        }
        .nav-links a:hover, .nav-links a.active { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .lang-switch {
            cursor: pointer;
            font-family: var(--font-display);
            font-weight: 700;
            font-size: 0.8rem;
            color: rgba(255,255,255,0.5);
            transition: 0.3s;
        }
        .lang-switch:hover, .lang-switch.active { color: var(--neon-cyan); }

        .hamburger { display: none; font-size: 1.5rem; cursor: pointer; }

        /* --- HERO --- */
        #home {
            height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            background: radial-gradient(circle at center, #1a1a1a 0%, #000 50%);
            overflow: hidden;
        }

        .grid-bg {
            position: absolute;
            width: 200%;
            height: 200%;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
            animation: gridMove 20s linear infinite;
        }

        @keyframes gridMove {
            0% { transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px); }
            100% { transform: perspective(500px) rotateX(60deg) translateY(50px) translateZ(-200px); }
        }

        .hero-content {
            z-index: 2;
            text-align: center;
            max-width: 800px;
        }

        .hero-date {
            color: var(--neon-cyan);
            font-family: var(--font-display);
            font-weight: 700;
            letter-spacing: 5px;
            margin-bottom: 20px;
            display: block;
        }

        .hero-poster {
            margin: 40px auto;
            max-width: 400px;
            border: 1px solid #333;
            box-shadow: 0 0 50px rgba(59, 103, 148,0.4);
            transition: 0.5s;
        }
        .hero-poster:hover {
            transform: scale(2);
            box-shadow: 0 0 80px rgba(59, 103, 148,0.8);
            border-color: var(--neon-cyan);
        }

        /* --- SECTIONS COMMON --- */
        .section-header {
            margin-bottom: 60px;
            border-left: 5px solid var(--neon-cyan);
            padding-left: 20px;
        }
        .section-header h2 {
            font-family: var(--font-display);
            font-size: 3rem;
            text-transform: uppercase;
            line-height: 1;
        }
        .section-header p {
            color: var(--text-muted);
            font-size: 1.1rem;
            margin-top: 10px;
        }

        /* --- PROGRAM --- */
        .program-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
            gap: 30px;
        }

        .program-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            padding: 30px;
            transition: 0.3s;
            position: relative;
            overflow: hidden;
        }

        .program-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; width: 3px; height: 100%;
            background: var(--neon-cyan);
            transform: scaleY(0);
            transition: 0.3s;
            transform-origin: bottom;
        }

        .program-card:hover {
            transform: translateY(-10px);
            border-color: rgba(255,255,255,0.2);
        }
        .program-card:hover::before { transform: scaleY(1); }

        .card-tag {
            font-size: 0.7rem;
            color: var(--neon-cyan);
            text-transform: uppercase;
            font-weight: 700;
            margin-bottom: 10px;
            display: block;
        }

        .program-card h3 {
            font-family: var(--font-display);
            font-size: 1.5rem;
            margin-bottom: 15px;
        }

        .program-card p {
            color: var(--text-muted);
            font-size: 0.9rem;
            margin-bottom: 20px;
        }

        .film-list {
            margin-top: 15px;
            border-top: 1px solid #333;
            padding-top: 15px;
        }
        .film-item {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            margin-bottom: 8px;
            color: #ccc;
        }
        .film-item span { color: #666; }

        /* --- KINETIC LAD --- */
        .kinetic-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 50px;
            align-items: center;
        }

        .artist-list {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-top: 30px;
        }

        .artist-item {
            background: #111;
            padding: 15px;
            border: 1px solid #222;
        }
        .artist-item strong { display: block; color: #fff; }
        .artist-item span { font-size: 0.8rem; color: #666; }

        /* --- GALLERY --- */
     .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2px;
    align-items: start;   /* applies to every item */
}

       .gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border: 1px solid #333;
    cursor: pointer;
    align-self: start;   /* <-- key fix: stop the row from stretching it */
}

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: 0.5s;
            filter: grayscale(80%);
        }

        .gallery-item:hover img {
            transform: scale(1.1);
            filter: grayscale(0%);
        }

        .gallery-overlay {
            position: absolute;
            bottom: 0; left: 0; width: 100%;
            padding: 20px;
            background: linear-gradient(to top, #000, transparent);
            opacity: 0;
            transition: 0.3s;
        }

        .gallery-item:hover .gallery-overlay { opacity: 1; }

        /* --- ARCHIVE --- */
        .archive-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .archive-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: var(--bg-card);
            padding: 20px 30px;
            border: 1px solid #222;
            transition: 0.3s;
        }

        .archive-row:hover {
            border-color: var(--neon-cyan);
            background: #151515;
        }

        .year-badge {
            font-family: var(--font-display);
            font-size: 2rem;
            font-weight: 900;
            color: #fff;
        }

        /* --- WORKSHOPS --- */
        .workshop-box {
            background: linear-gradient(145deg, #111, #0a0a0a);
            border: 1px solid var(--neon-purple);
            padding: 40px;
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
            position: relative;
        }

        .workshop-box::after {
            content: '';
            position: absolute;
            top: -5px; right: -5px;
            width: 50px; height: 50px;
            border-top: 2px solid var(--neon-cyan);
            border-right: 2px solid var(--neon-cyan);
        }

        /* --- LIGHTBOX --- */
        .lightbox {
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0,0,0,0.95);
            z-index: 2000;
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 0;
            pointer-events: none;
            transition: 0.3s;
        }
        .lightbox.active { opacity: 1; pointer-events: all; }
        .lightbox img { max-width: 90%; max-height: 90vh; border: 2px solid #fff; }
        .lightbox-close {
            position: absolute;
            top: 30px; right: 40px;
            font-size: 3rem;
            color: #fff;
            cursor: pointer;
        }

        /* --- FOOTER --- */
        footer {
            border-top: 1px solid #222;
            padding: 50px 0;
            text-align: center;
            background: #000;
        }
        .socials { margin-bottom: 20px; }
        .socials a {
            color: #fff;
            font-size: 1.2rem;
            margin: 0 15px;
            transition: 0.3s;
        }
        .socials a:hover { color: var(--neon-cyan); }

        /* --- RESPONSIVE --- */
        @media (max-width: 768px) {
            .glitch-text { font-size: 2.5rem; }
            .nav-links {
                position: fixed;
                top: 70px; left: 0; width: 100%;
                background: #000;
                flex-direction: column;
                padding: 40px;
                transform: translateY(-150%);
                transition: 0.3s;
            }
            .nav-links.active { transform: translateY(0); }
            .hamburger { display: block; }
            .kinetic-layout { grid-template-columns: 1fr; }
            .archive-row { flex-direction: column; gap: 15px; text-align: center; }
            .header-actions { gap: 10px; }
        }

        /* =========================================
   KINETIC LAD SPECIFIC STYLES
   Add this to the bottom of your style.css
   ========================================= */

/* 1. The Card Container */
.kinetic-artist-card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure it fills the grid cell */
    background: transparent !important; /* Override default card bg */
    border: none !important;
    padding: 0 !important;
    margin: 0;
}

/* 2. The Image Wrapper (Crucial for Portrait Ratio) */
.artist-image-container {
    position: relative;
    width: 100%;
    /* Forces a 2:3 Portrait Ratio (e.g., 400px wide x 600px tall) */
    aspect-ratio: 2 / 3; 
    overflow: hidden;
    border: 1px solid #333;
    border-radius: 4px;
    background: #000; /* Fallback color */
}

/* 3. The Image Itself */
.artist-img {
    width: 100%;
    height: 100%;
    /* This ensures the image fills the box without stretching */
    object-fit: cover; 
    display: block;
    filter: grayscale(100%);
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Hover Effect: Color + Zoom */
.kinetic-artist-card:hover .artist-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* 4. The Text Overlay (Name & Type) */
.artist-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    /* Gradient fades from black at bottom to transparent at top */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    pointer-events: none; /* Lets clicks pass through to image if needed */
    z-index: 2;
}

.artist-name {
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.artist-type {
    color: var(--neon-cyan);
    font-family: var(--font-tech);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

/* 5. The Description Text (Below Image) */
.artist-desc {
    font-size: 0.9rem;
    color: #aaa;
    line-height: 1.6;
    margin-top: 15px;
    padding: 0 5px;
    flex-grow: 1; /* Pushes content evenly if needed */
}

/* Responsive Adjustment for Mobile */
@media (max-width: 768px) {
    .artist-image-container {
        aspect-ratio: 3 / 4; /* Slightly less tall on mobile */
    }
    .artist-name {
        font-size: 1.2rem;
    }
}




/* =========================================
   EDITION SWITCH & SUMMER THEME
   Add this to the BOTTOM of styleLAD.css
   ========================================= */

/* 1. The Toggle Switch Style */
.edition-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    color: #fff; /* Default Winter text color */
    margin-right: 15px;
}

.switch-track {
    width: 50px;
    height: 24px;
    background: #333;
    border-radius: 20px;
    position: relative;
    transition: 0.3s;
}

.switch-thumb {
    width: 20px;
    height: 20px;
    background: var(--neon-cyan);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: 0.3s;
    box-shadow: 0 0 10px var(--neon-cyan);
}

/* 2. SUMMER MODE OVERRIDES */
/* When body has class 'summer-mode', these variables change */



body.summer-mode {
    --bg-color: #fdfbf7;       /* Warm Paper */
    --text-color: #1a1a1a;     /* Dark Charcoal */
    --card-bg: #ffffff;        /* White */
    --border-color: #e0e0e0;   /* Light Grey */
    --neon-cyan: #004E89;      /* Lake Blue */
    --neon-purple: #FF6B35;    /* Sunset Orange */
    --btn-text: #fff;
    --btn-bg: #1a1a1a;
    --btn-border: #1a1a1a;
    --glow: none;
}

/* Switch colors in Summer Mode */
body.summer-mode .edition-switch { color: #1a1a1a; }
body.summer-mode .switch-track { background: #ccc; }
body.summer-mode .switch-thumb { 
    left: 28px; 
    background: var(--neon-purple); 
    box-shadow: none; 
}

/* 3. LAYOUT CHANGES FOR SUMMER */

/* Hide the Winter Grid Background in Summer */
body.summer-mode .grid-bg { display: none; }

/* Change Hero Section Background */
body.summer-mode #home {
    background: var(--bg-color);
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 60px;
}

/* Style the Summer Hero Text */
body.summer-mode .glitch-text {
    color: #1a1a1a;
    text-shadow: none;
    font-size: 3rem;
    margin-bottom: 10px;
}

body.summer-mode .hero-date {
    border-color: var(--neon-purple);
    color: var(--neon-purple);
    background: rgba(255, 107, 53, 0.1);
}

body.summer-mode .hero-poster {
    max-width: 500px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* 4. SHOW/HIDE SECTIONS */

/* Hide Winter-only sections in Summer */

/* Nasconde TUTTE le sezioni invernali in modalità Summer */
body.summer-mode #program,
body.summer-mode #kinetic,
body.summer-mode #competitions,
body.summer-mode #gallery,
body.summer-mode #archive,
body.summer-mode #workshops,
body.summer-mode .marquee-container {
    display: none !important;
}
body.summer-mode .nav-links a[href="#home"],
body.summer-mode .nav-links a[href="#program"],
body.summer-mode .nav-links a[href="#kinetic"],
body.summer-mode .nav-links a[href="#competitions"],
body.summer-mode .nav-links a[href="#gallery"],
body.summer-mode .nav-links a[href="#archive"],
body.summer-mode .nav-links a[href="#workshops"] {
    display: none;
}

/* Hide Summer section by default, show in Summer Mode */
#summer-program { display: none; }
body.summer-mode #summer-program { display: block; }

/* 5. SUMMER CARD STYLES */
.summer-card {
    background: #fff;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    transition: 0.3s;
    color: #1a1a1a;
}

.summer-card:hover {
    border-color: var(--neon-purple);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.summer-card-img {
    width: 100%;
    height: 200px;
    background: #000;
    overflow: hidden;
}

.summer-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.3s;
}

.summer-card:hover .summer-card-img img { opacity: 1; }

.summer-card-content { padding: 25px; }
.summer-card h3 { color: #1a1a1a; margin-bottom: 10px; }
.summer-card p { color: #666; }

.summer-meta {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    color: #888;
}


/* Competition Film Cards with Images */
.film-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.film-card:hover {
    transform: translateY(-5px);
    border-color: var(--neon-cyan);
}

.film-image-wrapper {
    width: 100%;
    height: 200px;
    background: #000;
    overflow: hidden;
    position: relative;
}

.film-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers area without stretching */
    transition: transform 0.5s ease;
    opacity: 0.9;
}

.film-card:hover .film-card-img {
    transform: scale(1.05);
    opacity: 1;
}

.film-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.film-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.3;
}

.film-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.film-country {
    font-style: italic;
    color: var(--neon-cyan);
    font-size: 0.8rem;
}

.film-duration {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    align-self: flex-start;
}

/* Force KineticLAD to have fewer columns (more rows) */
#kinetic-artists-grid {
    display: grid;
    /* This ensures cards are at least 250px wide, forcing fewer columns */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 30px;
}

/* Optional: If you want exactly 4 columns on large screens to ensure 2 rows */
@media (min-width: 1200px) {
    #kinetic-artists-grid {
        grid-template-columns: repeat(4, 1fr); /* Forces 4 columns */
    }
}

footer a:hover {
    color: var(--neon-cyan) !important;
    border-bottom: 1px solid var(--neon-cyan) !important;
}

@media (max-width:600px){
  #lad-intro-sound, #lad-intro-skip{
    padding:10px 18px; font-size:.7rem; bottom:calc(20px + env(safe-area-inset-bottom));
  }
  #lad-intro-sound{ left:16px; } #lad-intro-skip{ right:16px; }
}

@media (max-width: 768px) {
    #mosaic-bg, .bg-overlay { display: none !important; }
}


.program-card-img {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border: 1px solid #333;
    border-radius: 4px;
}

/* ===== Featured program cards (image left + text right, full-width row) ===== */

/* Desktop: featured card = its own full-width row */
@media (min-width: 900px) {
    .program-card--featured {
        grid-column: 1 / -1;                 /* span every column → its own row */
        display: grid;
        grid-template-columns: minmax(260px, 36%) 1fr;
        gap: clamp(24px, 4vw, 56px);
        align-items: stretch;
    }

    /* image fills the entire left track */
    .program-card--featured .program-card-img {
        margin-top: 0;
        width: 100%;
        height: 100%;
        min-height: 420px;
        object-fit: cover;
        object-position: center;
        align-self: stretch;
    }

    /* text column: flex stack that fills the height */
    .program-card--featured .featured-body {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    /* credits pinned to the bottom → eats the vertical gap */
    .program-card--featured .featured-body .film-list {
        margin-top: auto;
    }

    .program-card--featured h3 { margin-top: 0; }
}

/* Mobile / tablet: featured card stacks, image on top, full width */
@media (max-width: 899px) {
    .program-card--featured {
        grid-column: 1 / -1;
        display: block;
    }
    .program-card--featured .featured-body {
        display: block;
        height: auto;
    }
    .program-card--featured .featured-body .film-list {
        margin-top: 15px;
    }
    .program-card--featured .program-card-img {
        aspect-ratio: 16 / 9;
        object-fit: cover;
        margin-top: 0;
    }
}

/* Guard: featured card with NO image → single column, text fills row */
.program-card--featured:not(:has(.program-card-img)) {
    grid-template-columns: 1fr;
}