/* MUTATE — Changing is now */
:root {
  --bg: #0a0a0a;
  --bg-2: #131313;
  --line: #262626;
  --text: #ececec;
  --muted: #8d8d8d;
  --acid: #d4ff3f;
  --acid-ink: #0a0a0a;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after { /* grana leggera */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--acid); color: var(--acid-ink); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }
.acid { color: var(--acid); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.brand svg { height: 20px; width: auto; color: var(--text); transition: color .2s; }
.brand:hover svg { color: var(--acid); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::before { content: "● "; color: var(--acid); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    transform: translateY(-120%); transition: transform .25s ease; z-index: -1;
  }
  .nav a { font: 800 40px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0; color: var(--text); padding: 6px 0; }
  .nav a[aria-current="page"]::before { content: ""; }
  .nav a[aria-current="page"] { color: var(--acid); }
  body.nav-open .nav { transform: none; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  padding: 16px 22px; border: 1px solid var(--text); color: var(--text); background: transparent;
  transition: background .2s, color .2s, border-color .2s; cursor: pointer;
}
.btn:hover { background: var(--text); color: var(--bg); }
.btn-acid { background: var(--acid); color: var(--acid-ink); border-color: var(--acid); }
.btn-acid:hover { background: var(--text); border-color: var(--text); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Titoli ---------- */
.display {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  line-height: .86; letter-spacing: -.01em; margin: 0;
}
.h-xl { font-size: clamp(56px, 11vw, 176px); }
.h-lg { font-size: clamp(44px, 7vw, 104px); }
.h-md { font-size: clamp(32px, 4vw, 56px); }
.section { padding: clamp(56px, 9vw, 120px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.section-head a { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.section-head a:hover { color: var(--acid); }

/* ---------- Hero home ---------- */
.hero { position: relative; min-height: calc(100svh - 64px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25) contrast(1.05); transform: scale(1.04); animation: drift 22s ease-in-out infinite alternate; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.25) 0%, rgba(10,10,10,.35) 40%, rgba(10,10,10,.96) 100%); }
@keyframes drift { to { transform: scale(1.12) translate(-1.5%, -1%); } }
.hero-inner { position: relative; width: 100%; padding-bottom: clamp(32px, 6vw, 72px); padding-top: 120px; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 0 rgba(212,255,63,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(212,255,63,0); } 100% { box-shadow: 0 0 0 0 rgba(212,255,63,0); } }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.hero-title { max-width: 14ch; overflow-wrap: anywhere; }
.hero-sub { font-size: clamp(17px, 1.6vw, 21px); color: #cfcfcf; max-width: 46ch; margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.datebox { border: 1px solid rgba(255,255,255,.35); padding: 18px 22px; text-align: center; min-width: 140px; background: rgba(10,10,10,.4); backdrop-filter: blur(6px); }
.datebox .d { font: 900 88px/.85 var(--display); display: block; }
.datebox .m { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; display: block; margin-top: 8px; }
.hero-empty { min-height: 72svh; align-items: center; }
.hero-empty .wordmark svg { width: 100%; height: auto; color: var(--text); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .datebox { justify-self: start; display: flex; gap: 14px; align-items: baseline; padding: 10px 14px; min-width: 0; }
  .datebox .d { font-size: 44px; }
  .datebox .m { margin: 0; }
}

/* ---------- Ticker ---------- */
.ticker { border-bottom: 1px solid var(--line); overflow: hidden; background: var(--acid); color: var(--acid-ink); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font: 900 clamp(22px, 2.6vw, 34px)/1 var(--display); text-transform: uppercase; padding: 14px 0; white-space: nowrap; }
.ticker-track span::after { content: "/"; margin: 0 .55em; opacity: .45; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track, .hero-media img { animation: none; } }

/* ---------- Lista prossimi ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; transition: padding .25s;
}
.row:hover { padding-left: 14px; }
.row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--acid); transform: scaleY(0); transition: transform .25s; }
.row:hover::before { transform: scaleY(1); }
.row-date .d { font: 900 54px/.9 var(--display); display: block; }
.row-date .m { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.row-title { font: 800 clamp(26px, 3vw, 40px)/1 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.row-meta { color: var(--muted); font-size: 15px; }
@media (max-width: 640px) { .row { grid-template-columns: 72px 1fr; } .row .btn { grid-column: 1 / -1; justify-self: start; } .row-date .d { font-size: 40px; } }

/* ---------- Griglia card ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { display: block; }
.card-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s; filter: grayscale(.85) contrast(1.05); }
.card:hover .card-media img { transform: scale(1.05); filter: none; }
.card-media .tag { position: absolute; top: 12px; left: 12px; background: var(--bg); padding: 6px 9px; }
.card-media .count { position: absolute; bottom: 12px; right: 12px; background: rgba(10,10,10,.75); padding: 5px 8px; }
.card-body { padding-top: 14px; }
.card-title { font: 800 28px/1 var(--display); text-transform: uppercase; margin: 8px 0 6px; transition: color .2s; }
.card:hover .card-title { color: var(--acid); }
.card-line { color: var(--muted); font-size: 15px; margin: 0; }
.placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #333; }
.placeholder svg { width: 60%; }

/* ---------- Manifesto ---------- */
.manifesto { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.manifesto-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.manifesto p { font-size: clamp(18px, 1.7vw, 22px); color: #cfcfcf; max-width: 52ch; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 22px 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 16px; }
.stat:nth-child(even) { padding-left: 20px; }
.stat b { font: 900 clamp(56px, 6vw, 88px)/.9 var(--display); display: block; color: var(--acid); }
@media (max-width: 860px) { .manifesto-grid { grid-template-columns: 1fr; } }

/* ---------- Pagina eventi ---------- */
.page-head { padding: clamp(48px, 8vw, 104px) 0 clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 14px; border: 1px solid var(--line); color: var(--muted); transition: all .2s;
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip sup { color: var(--acid); margin-left: 4px; }
.chip.on sup { color: inherit; }
.years { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.years .chip { padding: 7px 10px; }
.empty { padding: 80px 0; text-align: center; color: var(--muted); }

.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 56px; }
.pagination a, .pagination span { min-width: 42px; text-align: center; }

/* ---------- Pagina evento ---------- */
.ev-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); padding: clamp(32px, 5vw, 64px) 0; }
.ev-cover { border: 1px solid var(--line); background: var(--bg-2); align-self: start; position: sticky; top: 88px; cursor: zoom-in; }
.ev-info .display { overflow-wrap: anywhere; }
.ev-sub { font-size: clamp(18px, 1.8vw, 24px); color: #d6d6d6; margin: 18px 0 0; }
.facts { margin: 32px 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fact dt { margin: 0; color: var(--muted); }
.fact dd { margin: 0; font-weight: 500; }
.lineup { font: 800 clamp(26px, 3vw, 40px)/1.05 var(--display); text-transform: uppercase; margin: 36px 0 0; white-space: pre-line; }
.prose { white-space: pre-line; color: #cfcfcf; font-size: 17px; margin-top: 32px; max-width: 62ch; }
.status-past { display: inline-block; padding: 8px 12px; border: 1px dashed var(--line); }
@media (max-width: 860px) { .ev-head { grid-template-columns: 1fr; } .ev-cover { position: static; } }

.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
@media (max-width: 560px) { .videos { grid-template-columns: 1fr 1fr; gap: 10px; } .video .play i { width: 44px; height: 44px; } }
.video { position: relative; aspect-ratio: 9 / 16; background: #000; border: 1px solid var(--line); overflow: hidden; cursor: pointer; padding: 0; color: var(--text); }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s; }
.video:hover img { opacity: 1; }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; }
.video .play i { width: 58px; height: 58px; border-radius: 50%; background: var(--acid); display: grid; place-items: center; }
.video .play i::after { content: ""; border-left: 16px solid var(--acid-ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.video .label { position: absolute; left: 10px; right: 10px; bottom: 10px; text-align: left; font-size: 12px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.gallery { columns: 3 280px; column-gap: 12px; }
.gallery a { display: block; margin-bottom: 12px; break-inside: avoid; background: var(--bg-2); overflow: hidden; }
.gallery img { width: 100%; height: auto; transition: transform .5s, opacity .3s; }
.gallery a:hover img { transform: scale(1.03); }
@media (max-width: 600px) { .gallery { columns: 2; column-gap: 8px; } .gallery a { margin-bottom: 8px; } }

.ev-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.ev-nav a { padding: 32px 0; display: block; }
.ev-nav a + a, .ev-nav span + a { text-align: right; border-left: 1px solid var(--line); padding-left: 20px; }
.ev-nav .t { font: 800 clamp(22px, 2.4vw, 32px)/1 var(--display); text-transform: uppercase; display: block; margin-top: 8px; transition: color .2s; }
.ev-nav a:hover .t { color: var(--acid); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,5,.96); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: var(--text); font: 400 14px var(--mono); letter-spacing: .1em; padding: 18px; cursor: pointer; }
.lb button:hover { color: var(--acid); }
.lb .close { top: 8px; right: 8px; }
.lb .prev { left: 4px; top: 50%; transform: translateY(-50%); font-size: 34px; }
.lb .next { right: 4px; top: 50%; transform: translateY(-50%); font-size: 34px; }
.lb .count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); }

/* ---------- About ---------- */
.about-lead { font: 800 clamp(32px, 4.4vw, 64px)/1.02 var(--display); text-transform: uppercase; max-width: 20ch; margin: 0; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); }
.about-cols h2 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--acid); font-weight: 500; margin: 0 0 14px; }
.about-cols p { color: #cfcfcf; margin: 0; }
@media (max-width: 860px) { .about-cols { grid-template-columns: 1fr; } }
.venue-list { display: flex; flex-wrap: wrap; gap: 10px 26px; font: 800 clamp(26px, 3vw, 44px)/1.1 var(--display); text-transform: uppercase; color: #5c5c5c; }
.venue-list span:hover { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 96px) 0 32px; margin-top: clamp(40px, 6vw, 80px); }
.footer-logo svg { width: 100%; height: auto; color: #1d1d1d; transition: color .4s; }
.footer-logo:hover svg { color: var(--acid); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 32px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-links a:hover { color: var(--acid); }

/* ---------- Animazione di entrata ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Locandina: cornice fissa 4:5, immagine mai stirata */
.ev-cover { aspect-ratio: 4 / 5; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ev-cover img { width: 100%; height: 100%; object-fit: contain; }
