/* ==========================================================================
   Novello sotto il Castello 2026 — {{ Sapore di Suono }}
   Colori, lettering e forme dal manifesto e dal programma NSC26
   ========================================================================== */

@font-face { font-family: "NSC Display"; src: url(../fonts/nsc-display.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tungsten"; src: url(../fonts/tungsten-300.woff2) format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Tungsten"; src: url(../fonts/tungsten-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tungsten"; src: url(../fonts/tungsten-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tungsten"; src: url(../fonts/tungsten-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Tungsten"; src: url(../fonts/tungsten-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tungsten"; src: url(../fonts/tungsten-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --night: #0c0a0b;
  --ink: #140e0f;
  --coal: #1d1516;
  --red: #e42025;
  --red-hot: #ff3b2f;
  --red-deep: #a8151b;
  --blood: #4e0b0e;
  --yellow: #f6da2f;
  --yellow-hi: #ffe94f;
  --paper: #f4efe6;
  --muted: rgba(244, 239, 230, .64);
  --line: rgba(244, 239, 230, .16);

  --f-display: "NSC Display", "Tungsten", Impact, "Arial Narrow", sans-serif;
  --f-text: "Tungsten", "Arial Narrow", "Roboto Condensed", sans-serif;

  --gutter: clamp(16px, 4.2vw, 72px);
  --max: 1720px;
  --head-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --cut: 10px;

  /* grana di pellicola condivisa */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='2.4 0 0 0 -.7 2.4 0 0 0 -.7 2.4 0 0 0 -.7 0 0 0 0 1'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (max-width: 900px) { :root { --head-h: 64px; --cut: 8px; } }

/* ---------- base ---------- */

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

html {
  background: var(--night);
  color: var(--paper);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 12px);
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--night);
  font-family: var(--f-text);
  font-weight: 400;
  font-size: clamp(1.32rem, 1.06rem + .72vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: .012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  overflow-x: clip;
}

.is-intro body { overflow: hidden; }

img, svg, picture, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
strong { font-weight: 700; }
em { font-style: normal; }
[hidden] { display: none !important; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 10px 16px; background: var(--yellow); color: var(--ink);
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- elementi ricorrenti ---------- */

.kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1.1em;
  font-weight: 600; font-size: clamp(1rem, .9rem + .3vw, 1.25rem);
  text-transform: uppercase; letter-spacing: .14em; color: var(--yellow);
}

.braced { display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; }
.braced::before, .braced::after { font-family: var(--f-display); letter-spacing: -.06em; }
.braced::before { content: "{{"; }
.braced::after { content: "}}"; }

/* parentesi graffe disegnate (stesse del tasto cookie) */
.brace-svg { width: auto; fill: currentColor; }

/* titoli: lettering del manifesto + filetto come nel programma */
.title {
  position: relative;
  display: flex; align-items: flex-end; gap: .12em;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(3.1rem, 1.2rem + 7.6vw, 10.4rem);
  line-height: .84;
  letter-spacing: -.004em;
  text-transform: uppercase;
  color: var(--yellow);
}
.title-txt { display: block; }
.title-rule {
  flex: 1 1 auto; min-width: .6em; height: .085em; margin-bottom: .02em;
  background: currentColor; transform-origin: right center;
}
.title--rule-r .title-rule { transform-origin: left center; }
.title--rule-l { margin-left: calc(var(--gutter) * -1); }
.title--rule-r { margin-right: calc(var(--gutter) * -1); }

[data-flicker] .ch { display: inline-block; }
/* su telefono il filetto a destra va sotto il titolo, a tutta larghezza */
@media (max-width: 700px) {
  .title--rule-r { flex-direction: column; align-items: flex-start; gap: .14em; }
  .title--rule-r .title-rule { width: calc(100% + var(--gutter)); flex: none; }
}

/* pulsante: etichetta gialla con lo spessore pieno (come il tasto cookie) */
.btn {
  --drop: 6px;
  position: relative; display: inline-flex; isolation: isolate;
  font-family: var(--f-display); font-size: clamp(1.25rem, 1rem + .7vw, 1.75rem);
  line-height: 1; text-transform: uppercase; color: var(--ink);
  -webkit-user-select: none; user-select: none;
}
.btn::before, .btn-in {
  -webkit-clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--night); transform: translate(var(--drop), var(--drop));
}
.btn-in {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .82em 1.15em .78em;
  background: var(--yellow);
  transition: transform .18s var(--ease), background-color .18s ease;
}
.btn-in svg { width: .9em; height: .9em; flex: none; fill: currentColor; transition: transform .35s var(--ease); }
.btn:hover .btn-in { transform: translate(-2px, -2px); background: var(--yellow-hi); }
.btn:hover .btn-in svg { transform: translateX(3px); }
.btn:active .btn-in { transform: translate(var(--drop), var(--drop)); transition-duration: .05s; }
.btn--on-yellow::before { background: var(--ink); }
.btn--on-yellow .btn-in { background: var(--ink); color: var(--yellow); }
.btn--on-yellow:hover .btn-in { background: #2a1d1e; }
.btn--ghost .btn-in { background: transparent; color: var(--yellow); box-shadow: inset 0 0 0 2px var(--yellow); }
.btn--ghost::before { display: none; }
.btn--ghost:hover .btn-in { background: var(--yellow); color: var(--ink); }
.btn--big { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.6rem); --drop: 8px; }

/* grana fissa su tutta la pagina */
.grain-fx {
  position: fixed; inset: -200px; z-index: 90; pointer-events: none;
  background: var(--noise) 0 0 / 240px 240px;
  mix-blend-mode: overlay; opacity: .075;
}
.js .grain-fx { animation: grain .9s steps(1, end) infinite; }

/* ---------- header ---------- */

.head {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--head-h);
  transition: transform .55s var(--ease), background-color .4s ease, -webkit-backdrop-filter .4s ease, backdrop-filter .4s ease;
}
.head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(12, 10, 11, .78), rgba(12, 10, 11, 0));
  opacity: 0; transition: opacity .4s ease;
}
.head.is-solid::before { opacity: 1; background: rgba(12, 10, 11, .86); }
.head.is-solid { -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.head.is-hidden { transform: translateY(-110%); }
.js:not(.is-live) .head { transform: translateY(-110%); }

.head-in {
  height: 100%; display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}

.brand {
  display: grid; font-family: var(--f-display); font-size: clamp(1.02rem, .8rem + .55vw, 1.4rem);
  line-height: .86; color: var(--yellow); text-transform: uppercase; white-space: nowrap;
}
.brand span:last-child { padding-left: .9em; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(14px, 1.7vw, 30px); }
.nav a {
  position: relative; display: block; padding: 6px 0;
  font-weight: 600; font-size: 1.06rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); transition: color .25s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav a:hover, .nav a.is-on { color: var(--paper); }
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); transform-origin: left; }

.head-date {
  font-family: var(--f-display); font-size: 1.2rem; color: var(--ink); background: var(--yellow);
  padding: .5em .7em .45em; line-height: 1; white-space: nowrap; text-transform: uppercase;
  -webkit-clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: 10px;
  font-family: var(--f-display); font-size: 1.25rem; color: var(--yellow); line-height: 1; text-transform: uppercase;
}
.menu-btn i { position: relative; display: block; width: 26px; height: 12px; }
.menu-btn i::before, .menu-btn i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 3px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-btn i::before { top: 0; }
.menu-btn i::after { top: 9px; }
.menu-open .menu-btn i::before { top: 4.5px; transform: rotate(45deg); }
.menu-open .menu-btn i::after { top: 4.5px; transform: rotate(-45deg); }

.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--yellow); transform: scaleX(var(--p, 0)); transform-origin: left; }

@media (max-width: 1180px) {
  .nav, .head-date { display: none; }
  .menu-btn { display: inline-flex; }
}

/* menu a schermo intero */
.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--head-h) + 24px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  background: var(--red);
  -webkit-clip-path: inset(0 0 100% 0); clip-path: inset(0 0 100% 0);
  transition: -webkit-clip-path .75s var(--ease-io), clip-path .75s var(--ease-io), visibility 0s linear .75s;
  visibility: hidden; overflow: hidden;
}
.menu::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 80% 10%, rgba(255, 90, 50, .45), transparent 70%), radial-gradient(90% 70% at 0% 100%, rgba(30, 0, 0, .6), transparent 70%);
}
.menu-open .menu { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); visibility: visible; transition: -webkit-clip-path .75s var(--ease-io), clip-path .75s var(--ease-io); }
.menu-list { position: relative; display: grid; gap: 2px; }
.menu-list a {
  display: block; overflow: hidden;
  font-family: var(--f-display); font-size: clamp(2.6rem, 11.5vw, 5.4rem); line-height: .9; color: var(--yellow); text-transform: uppercase;
}
.menu-list a span { display: block; transform: translateY(105%); transition: transform .7s var(--ease); }
.menu-open .menu-list a span { transform: none; transition-delay: calc(.18s + var(--i) * .05s); }
.menu-foot {
  position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding-top: 18px;
  border-top: 2px solid rgba(20, 14, 15, .3); color: var(--ink); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1.1rem;
}

/* ---------- hero: il manifesto proiettato (dalla landing) ---------- */

.hero {
  --ar: 1.6; --safe-w: .9; --safe-h: .76;
  --u-w: 1vw; --u-h: 1vh;
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  container-type: size;
  background: var(--night);
}
@supports (width: 1cqw) { .hero { --u-w: 1cqw; --u-h: 1cqh; } }
@media (max-aspect-ratio: 1/1) { .hero { --ar: .5625; --safe-w: .87; --safe-h: .87; } }

.hero-stage {
  position: absolute; inset: 0;
  --w: min(max(100 * var(--u-w), 100 * var(--u-h) * var(--ar)), 100 * var(--u-w) / var(--safe-w), 100 * var(--u-h) * var(--ar) / var(--safe-h));
  --h: calc(var(--w) / var(--ar));
  transform: translate3d(0, calc(var(--hp, 0) * 22%), 0) scale(calc(1 + var(--hp, 0) * .06));
  transform-origin: 50% 40%;
  will-change: transform;
}
.hero-stage > *, .poster > .glow { pointer-events: none; }

.backdrop {
  --bw: max(var(--w), 100 * var(--u-w));
  --bh: max(var(--h), 100 * var(--u-h));
  position: absolute; top: 50%; left: 50%;
  width: var(--bw); height: var(--bh);
  margin: calc(var(--bh) / -2) 0 0 calc(var(--bw) / -2);
  background: url(../img/nsc26-desktop-1280.webp) center / 100% 100% no-repeat;
  filter: blur(2.4vmax) brightness(.84);
  transform: scale(1.08);
  opacity: .6;
}
@media (max-aspect-ratio: 1/1) { .backdrop { background-image: url(../img/nsc26-mobile-720.webp); } }

.poster {
  --fx: min(max(0px, (100 * var(--u-w) - var(--w)) / 2) * 3, 7%);
  --fy: min(max(0px, (100 * var(--u-h) - var(--h)) / 2) * 3, 7%);
  position: absolute; top: 50%; left: 50%;
  width: var(--w); height: var(--h);
  margin: calc(var(--h) / -2) 0 0 calc(var(--w) / -2);
  font-size: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fx), #000 calc(100% - var(--fx)), transparent), linear-gradient(180deg, transparent, #000 var(--fy), #000 calc(100% - var(--fy)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fx), #000 calc(100% - var(--fx)), transparent), linear-gradient(180deg, transparent, #000 var(--fy), #000 calc(100% - var(--fy)), transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.poster picture, .poster img { display: block; width: 100%; height: 100%; }
.poster img { object-fit: cover; }

.glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 48% 54% at 47% 56%, rgba(255, 64, 40, .6), transparent 70%);
  mix-blend-mode: screen; opacity: 0;
}
.torch {
  position: absolute; top: 0; left: 0;
  width: 76vmax; height: 76vmax; margin: -38vmax 0 0 -38vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 170, .6), rgba(255, 120, 60, .18) 46%, transparent 74%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity .7s ease; will-change: transform;
}
.torch.is-on { opacity: 1; }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .grain {
  position: absolute; inset: -160px;
  background: var(--noise) 0 0 / 240px 240px; mix-blend-mode: overlay; opacity: .12;
}
.flash { position: absolute; inset: 0; background: #ffe7a0; mix-blend-mode: overlay; opacity: 0; }

/* buio che sale mentre si scorre */
.hero-fade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, var(--night) 100%);
  opacity: calc(var(--hp, 0) * 1.4);
}

.scroll-cue {
  position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 3;
  display: grid; justify-items: center; gap: 8px;
  transform: translateX(-50%);
  font-weight: 600; font-size: .95rem; letter-spacing: .3em; text-transform: uppercase; color: var(--paper);
  opacity: calc(1 - var(--hp, 0) * 4);
}
.scroll-cue svg { height: 34px; fill: var(--yellow); transform: rotate(90deg); animation: cue 1.8s var(--ease-io) infinite; }
.js:not(.is-live) .scroll-cue { visibility: hidden; }
.js.is-live .scroll-cue { animation: rise .9s var(--ease) .6s both; }
@media (min-aspect-ratio: 1/1) and (max-height: 760px) { .scroll-cue { display: none; } }
@media (max-aspect-ratio: 1/1) { .scroll-cue { display: none; } }

/* intro (solo con .js) */
.js .backdrop { opacity: 0; }
.js.is-lamp .backdrop { animation: lamp 1.15s steps(1, end) forwards; }
.js.is-live .backdrop { animation: none; opacity: .6; transition: opacity 1.6s ease; }
.js:not(.is-live) .poster img { -webkit-mask-image: linear-gradient(transparent, transparent); mask-image: linear-gradient(transparent, transparent); }
.js .poster img { transform: scale(1.05); transition: transform 2.6s var(--ease); }
.js.is-rolling .poster img, .js.is-live .poster img { transform: none; }
.js.is-rolling .poster { animation: weave 1.1s steps(1, end) 1; }
.js .hero .grain { animation: grain .8s steps(1, end) infinite; }
.js.is-live .glow { animation: breathe 6.5s ease-in-out infinite alternate; }
.js.is-flash .flash { animation: flash .55s ease-out 1; }

/* ---------- nastri ---------- */

.tape {
  position: relative; z-index: 4;
  height: clamp(110px, 14vw, 190px);
  margin: 0 0 calc(clamp(110px, 14vw, 190px) / -2);
  pointer-events: none;
  overflow: hidden; overflow: clip;
}
.tape-band {
  position: absolute; left: -5%; right: -5%; top: 50%;
  display: flex; overflow: hidden;
  font-family: var(--f-display); text-transform: uppercase; white-space: nowrap;
  font-size: clamp(1.7rem, 1rem + 2.2vw, 3.2rem); line-height: 1;
}
.tape-band--a { z-index: 2; background: var(--yellow); color: var(--ink); transform: translateY(-50%) rotate(-2.6deg); box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.tape-band--b { z-index: 1; background: var(--red); color: var(--ink); transform: translateY(-50%) rotate(2deg); }
.tape-track { display: flex; flex: none; will-change: transform; }
.tape-group { display: flex; flex: none; }
.tape-item { display: inline-flex; align-items: center; gap: .55em; padding: .32em .3em .26em .55em; }
.tape-item svg { height: .78em; width: auto; fill: currentColor; flex: none; }

/* ---------- festival ---------- */

.festival { position: relative; isolation: isolate; padding: clamp(150px, 16vw, 260px) 0 clamp(90px, 10vw, 160px); overflow: hidden; overflow: clip; }

.beam {
  position: absolute; pointer-events: none; z-index: -1;
  border-radius: 46% 46% 40% 40% / 30% 30% 22% 22%;
  background: radial-gradient(60% 60% at 50% 45%, rgba(228, 32, 37, .9), rgba(168, 21, 27, .55) 55%, transparent 76%);
  filter: blur(28px);
  opacity: .55;
}
.festival .beam { width: 62vw; height: 92vw; max-height: 1300px; right: -16vw; top: 6%; transform: rotate(-14deg) translateY(var(--py, 0)); }

.statement {
  font-family: var(--f-text); font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 1rem + 7.2vw, 10rem);
  line-height: .86; letter-spacing: -.004em;
  text-wrap: balance;
}
.statement .w { display: inline-block; color: rgba(244, 239, 230, .16); transition: color .35s ease; }
.statement .w.is-lit { color: var(--paper); }
.statement .w.is-lit.hl { color: var(--yellow); }
.is-static .statement .w, .no-js .statement .w { color: var(--paper); }
.is-static .statement .w.hl, .is-static .statement .hl, .no-js .statement .hl { color: var(--yellow); }

.festival-head { display: grid; gap: clamp(22px, 3vw, 44px); }

.festival-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 120px);
  align-items: center; margin-top: clamp(70px, 9vw, 150px);
}
.copy { display: grid; gap: 1em; max-width: 34ch; }
.copy p { color: var(--muted); }
.copy .lead { color: var(--paper); font-size: 1.22em; line-height: 1.12; }
.copy strong { color: var(--paper); font-weight: 600; }
.copy .btn { justify-self: start; margin-top: .6em; }

.collage { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 22px); align-items: start; }
.collage-col { display: grid; gap: clamp(10px, 1.4vw, 22px); transform: translate3d(0, var(--py, 0), 0); will-change: transform; }
.collage-col--b { margin-top: 22%; }
.ph {
  position: relative; overflow: hidden; background: var(--coal);
  -webkit-clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.ph img { width: 100%; height: 118%; object-fit: cover; transform: translate3d(0, -8%, 0); will-change: transform; }
.ph::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--noise) 0 0 / 200px 200px; mix-blend-mode: overlay; opacity: .3; }
.collage .brace-deco { position: absolute; left: 50%; top: 46%; z-index: 4; height: clamp(70px, 9vw, 150px); margin-left: calc(clamp(70px, 9vw, 150px) * -.3); fill: var(--yellow); }
.festival-grid { align-items: start; }
@media (min-width: 761px) { .festival-grid .copy { position: sticky; top: calc(var(--head-h) + 48px); } }

.stats {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: clamp(80px, 10vw, 170px); border-top: 2px solid var(--line);
}
.stat { position: relative; padding: clamp(18px, 2vw, 30px) clamp(10px, 1.4vw, 24px) 0 0; }
.stat + .stat { padding-left: clamp(12px, 1.6vw, 26px); border-left: 2px solid var(--line); }
.stat b {
  display: block; font-weight: 900; font-size: clamp(3.6rem, 1.6rem + 6.4vw, 9.6rem); line-height: .82;
  color: var(--yellow); font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: .45em; font-weight: 600; font-size: clamp(1rem, .9rem + .35vw, 1.35rem); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* conto alla rovescia / in diretta */
.clock {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(20px, 4vw, 70px);
  margin-top: clamp(60px, 7vw, 110px); padding: clamp(22px, 2.6vw, 40px) clamp(22px, 3vw, 48px);
  background: var(--red); color: var(--ink); isolation: isolate; overflow: hidden;
  -webkit-clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}
.clock::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 85% 0%, rgba(255, 120, 70, .6), transparent 70%), radial-gradient(50% 120% at 0% 100%, rgba(90, 0, 0, .45), transparent 70%); }
.clock::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--noise) 0 0 / 220px 220px; mix-blend-mode: overlay; opacity: .35; }
.clock-label { font-family: var(--f-display); font-size: clamp(1.6rem, 1rem + 2vw, 3.3rem); line-height: .86; text-transform: uppercase; }
.clock-label small { display: block; margin-top: .45em; font-family: var(--f-text); font-weight: 600; font-size: max(.84rem, .42em); letter-spacing: .1em; }
.clock-digits { display: flex; justify-content: flex-end; gap: clamp(10px, 2.2vw, 40px); }
.clock-digits div { display: grid; justify-items: end; }
.clock-digits b { font-weight: 900; font-size: clamp(3rem, 1.4rem + 5vw, 7.6rem); line-height: .82; font-variant-numeric: tabular-nums; }
.clock-digits span { font-weight: 600; font-size: clamp(.85rem, .8rem + .3vw, 1.15rem); letter-spacing: .14em; text-transform: uppercase; }
.clock-live { display: none; }
.clock.is-live .clock-digits { display: none; }
.clock.is-live .clock-live { display: grid; gap: 6px; justify-items: end; text-align: right; font-weight: 700; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.6rem); line-height: 1; text-transform: uppercase; }
.clock-live p { display: flex; align-items: center; gap: .5em; }
.clock-live p span { font-weight: 500; opacity: .75; }

.live-dot { display: inline-block; width: .55em; height: .55em; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }

@media (max-width: 760px) {
  .festival-grid { grid-template-columns: 1fr; }
  .copy { max-width: 46ch; }
}
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 4) { margin-top: 26px; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(n) { border-left: 0; padding-left: 0; margin-top: 0; }
  .stat:nth-child(even) { border-left: 2px solid var(--line); padding-left: 14px; }
  .stat:nth-child(n + 3) { margin-top: 24px; }
  .stat:last-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
  .clock { grid-template-columns: 1fr; }
  .clock-digits { justify-content: space-between; }
  .clock.is-live .clock-live { justify-items: start; text-align: left; }
}

/* ---------- line-up ---------- */

.lineup { position: relative; padding: clamp(60px, 7vw, 120px) 0 clamp(90px, 10vw, 160px); }
.sec-head { display: grid; gap: clamp(18px, 2.4vw, 34px); margin-bottom: clamp(36px, 4.5vw, 70px); }
.sec-head p { max-width: 46ch; color: var(--muted); }
.sec-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 40px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; padding: .55em .9em .5em;
  font-family: var(--f-display); font-size: clamp(1.05rem, .9rem + .45vw, 1.45rem); line-height: 1; text-transform: uppercase;
  color: var(--yellow); box-shadow: inset 0 0 0 2px rgba(246, 218, 47, .38);
  -webkit-clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.chip:hover { box-shadow: inset 0 0 0 2px var(--yellow); }
.chip[aria-pressed="true"] { background: var(--yellow); color: var(--ink); box-shadow: none; }

.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 20px); }
.card { position: relative; perspective: 900px; }
.card.is-out { display: none; }

.card-link {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; container-type: inline-size;
  background: var(--red-deep); color: var(--yellow);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
  -webkit-clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
/* il fondo dei post: rosso di scena, buio ai bordi, grana */
.card-link::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(70% 55% at var(--bx, 62%) var(--by, 58%), rgba(255, 52, 36, .95), rgba(214, 26, 30, .7) 42%, transparent 72%),
    radial-gradient(120% 90% at 0% 0%, #2a0607 0%, transparent 60%),
    linear-gradient(160deg, #3a0809 0%, #b3171c 48%, #5a0b0d 100%);
}
.card-link::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 236, 170, .5), rgba(255, 120, 60, .1) 34%, transparent 58%), var(--noise) 0 0 / 180px 180px;
  mix-blend-mode: overlay; opacity: .55; transition: opacity .4s ease;
}
.card-media { position: absolute; inset: 22% 0 0; z-index: 1; display: flex; align-items: flex-end; justify-content: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: grayscale(1) contrast(1.08); }
.sil { width: 100%; height: 100%; transition: transform .9s var(--ease); transform-origin: 50% 100%; }
.card-link:hover .sil, .card-link:hover .card-media img { transform: scale(1.045); }
.card-name {
  position: absolute; z-index: 3; top: 7cqw; left: 6cqw; right: 40cqw;
  font-family: var(--f-display); font-weight: 400; font-size: 13.4cqw; line-height: .86; text-transform: uppercase;
  text-shadow: 0 .06em .3em rgba(60, 0, 0, .35);
}
.card-name--long { font-size: 10.6cqw; right: 34cqw; }
.card-meta {
  position: absolute; z-index: 3; top: 7cqw; right: 6cqw; display: grid; justify-items: end; text-align: right;
  font-weight: 400; font-size: 7cqw; line-height: 1; text-transform: uppercase;
}
.card-meta .at { font-weight: 300; margin: .35em 0 .2em; }
.card-meta .st { font-size: .88em; font-weight: 500; letter-spacing: .02em; }
.card-link:hover { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }

/* nome che sfarfalla al passaggio */
.card-link:hover .card-name { animation: key-flicker .6s steps(1, end) 1; }

.card.is-pulse .card-link { animation: pop .8s var(--ease); }
.card-post { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card-link:hover .card-post { transform: scale(1.04); }

@media (max-width: 1280px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* su telefono le schede scorrono di lato, come i post */
@media (max-width: 700px) {
  .cards {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 20px;
  }
  .cards::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 min(74vw, 310px); scroll-snap-align: start; }
}

.cta-row { display: flex; justify-content: center; margin-top: clamp(50px, 6vw, 100px); }

/* ---------- programma ---------- */

.program { position: relative; padding: clamp(90px, 10vw, 170px) 0 clamp(80px, 9vw, 150px); background: var(--red); color: var(--ink); isolation: isolate; overflow: hidden; overflow: clip; }
.program::before, .partners::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 40% at 85% 8%, rgba(255, 120, 70, .5), transparent 70%),
    radial-gradient(60% 50% at 5% 95%, rgba(60, 0, 0, .55), transparent 70%);
}
.program::after, .partners::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--noise) 0 0 / 240px 240px; mix-blend-mode: overlay; opacity: .3;
}
.program .title { color: var(--yellow); }
.program .sec-head p { color: rgba(20, 14, 15, .78); }

.days { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 3px solid var(--ink); }
.day-tab {
  position: relative; z-index: 1; padding: .5em 0 .38em; text-align: left;
  font-family: var(--f-display); font-size: clamp(1.7rem, .9rem + 3vw, 4.6rem); line-height: .9; text-transform: uppercase;
  color: rgba(20, 14, 15, .45); transition: color .35s ease;
}
.day-tab:hover { color: rgba(20, 14, 15, .8); }
.day-tab[aria-selected="true"] { color: var(--yellow); }
.day-tab small { display: block; margin-top: .3em; font-family: var(--f-text); font-weight: 600; font-size: clamp(.8rem, .7rem + .3vw, 1.05rem); letter-spacing: .14em; color: var(--ink); opacity: .8; }
.days-bar {
  position: absolute; left: 0; bottom: -3px; width: calc(100% / 3); height: 7px; background: var(--yellow);
  transform: translateX(calc(var(--d, 0) * 100%)); transition: transform .6s var(--ease);
}

.day-panel { padding-top: clamp(26px, 3.4vw, 54px); }
.day-panel[hidden] { display: none !important; }
.no-js .day-panel[hidden], .is-static .day-panel[hidden] { display: block !important; }


.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); }
.stage-col {
  position: relative; display: flex; flex-direction: column; padding: clamp(18px, 2vw, 30px);
  background: var(--ink); color: var(--paper);
  -webkit-clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
}
.stage-col h3 {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 1rem + 1.7vw, 3rem); line-height: .86; text-transform: uppercase; color: var(--yellow);
  padding-bottom: .55em; margin-bottom: .4em; border-bottom: 2px solid var(--line);
}
.stage-col h3 small { display: block; font-family: var(--f-text); font-weight: 600; font-size: max(.85rem, .4em); letter-spacing: .14em; color: var(--muted); margin-bottom: .5em; }
.stage-ico { flex: none; width: clamp(48px, 4.4vw, 70px); color: var(--yellow); }

.slots { display: grid; flex: 1 1 auto; align-content: start; }
.slot {
  position: relative; display: grid; grid-template-columns: 4.1em 1fr; align-items: baseline; gap: 12px;
  padding: .55em 0 .5em; border-bottom: 1px solid var(--line);
}
.slot time { font-weight: 300; font-size: 1.25em; font-variant-numeric: tabular-nums; color: var(--muted); }
.slot .act { font-weight: 600; font-size: 1.25em; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.slot.is-head .act { font-weight: 900; font-size: 1.62em; color: var(--paper); }
.slot .act small { display: block; margin-top: .25em; font-weight: 400; font-size: .5em; letter-spacing: .12em; color: var(--muted); }
.slot.is-now::before { content: ""; position: absolute; inset: 0 -12px; background: rgba(246, 218, 47, .1); z-index: -1; }
.slot .now { display: none; margin-left: .6em; vertical-align: .2em; padding: .25em .5em .2em; font-size: .38em; font-weight: 700; letter-spacing: .14em; background: var(--yellow); color: var(--ink); }
.slot.is-now .now { display: inline-flex; align-items: center; gap: .4em; }
.slot.is-flash { animation: slot-flash 1.6s var(--ease) 1; }

.stage-link {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 1.1em; align-self: flex-start;
  font-weight: 600; font-size: .9em; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow);
}
.stage-link svg { width: 1em; height: 1em; fill: currentColor; transition: transform .35s var(--ease); }
.stage-link:hover svg { transform: translate(2px, -2px); }

.program-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(40px, 5vw, 70px); }
.program-foot p { font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* animazione righe al cambio giorno */
.js .day-panel.is-enter .stage-col { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * .07s); }
.js .day-panel.is-enter .slot { animation: rise .7s var(--ease) both; animation-delay: calc(.12s + var(--i, 0) * .07s + var(--j, 0) * .05s); }

@media (max-width: 900px) {
  .stages { grid-template-columns: 1fr; }
  .day-tab small { display: none; }
}

/* ---------- mappa ---------- */

.map { position: relative; padding: clamp(90px, 10vw, 160px) 0; background: var(--night); overflow: hidden; overflow: clip; }
.map-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.map-copy { position: sticky; top: calc(var(--head-h) + 30px); display: grid; gap: clamp(20px, 2.4vw, 34px); }
.map-copy p { color: var(--muted); max-width: 34ch; }
.map-copy p strong { color: var(--paper); font-weight: 600; }

.legend { display: grid; gap: 6px; }
.legend-btn {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; width: 100%;
  padding: 8px 10px 8px 8px; text-align: left; border-top: 1px solid var(--line);
  transition: background-color .25s ease, color .25s ease;
}
.legend-btn:last-child { border-bottom: 1px solid var(--line); }
.legend-btn .sw { display: grid; place-items: center; width: 40px; height: 40px; }
.legend-btn .sw svg { width: 100%; height: 100%; overflow: visible; }
.legend-btn[data-cat="palchi"] .sw svg { width: 120%; }
.legend-btn b { font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; line-height: 1; text-transform: uppercase; }
.legend-btn small { display: block; margin-top: 4px; font-weight: 400; font-size: .78em; color: var(--muted); letter-spacing: .02em; }
.legend-btn .n { font-weight: 700; color: var(--muted); font-size: 1.1rem; letter-spacing: .06em; }
.legend-btn:hover { background: rgba(246, 218, 47, .07); }
.legend-btn[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.legend-btn[aria-pressed="true"] small, .legend-btn[aria-pressed="true"] .n { color: rgba(20, 14, 15, .7); }
.legend-btn[aria-pressed="true"] .sw { background: var(--ink); box-shadow: 0 0 0 4px var(--ink); }

.map-frame {
  position: relative; background: var(--red); isolation: isolate; overflow: hidden;
  -webkit-clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
}
.map-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--noise) 0 0 / 240px 240px; mix-blend-mode: overlay; opacity: .22; z-index: 2; }
.map-view { position: relative; aspect-ratio: 792 / 815; overflow: hidden; touch-action: pan-y; cursor: zoom-in; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.map-view.is-zoomed { cursor: grab; }
.map-view.is-drag { cursor: grabbing; }
.map-canvas { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.map-svg { width: 100%; height: 100%; overflow: visible; }

.map-svg .m-shadow { fill: #8f141a; }
.map-svg .m-roads { fill: var(--ink); }
.map-svg .m-ends { fill: var(--red); }
.map-svg .m-area { fill: #ff2a22; }
.map-svg .m-labels { fill: #fff; }
.map-svg .m-ico { transform-box: fill-box; transform-origin: center; transition: opacity .4s ease, transform .5s var(--ease), filter .4s ease; }
.map-svg.has-filter .m-ico { opacity: .14; filter: saturate(0); }
.map-svg.has-filter .m-ico.is-on { opacity: 1; filter: none; transform: scale(1.5); }
.map-svg .m-ico { cursor: help; }
.map-svg .m-stage { cursor: pointer; outline: none; }
.map-svg .m-stage-hit { fill: transparent; }
.map-svg .m-stage-ring { fill: rgba(12, 10, 11, .35); stroke: #fff; stroke-width: 3; stroke-dasharray: 9 6.5; transform-box: fill-box; transform-origin: center; animation: spin 18s linear infinite; transition: stroke .3s ease, fill .3s ease; }
.map-svg .m-stage-pulse { fill: none; stroke: var(--yellow); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.4s var(--ease) infinite; }
.map-svg .m-stage-ico { transform-box: fill-box; transform-origin: center; transition: transform .5s var(--ease); }
.map-svg .m-stage:hover .m-stage-ring, .map-svg .m-stage:focus-visible .m-stage-ring, .map-svg .m-stage.is-on .m-stage-ring { stroke: var(--yellow); fill: rgba(12, 10, 11, .7); }
.map-svg .m-stage:hover .m-stage-ico, .map-svg .m-stage.is-on .m-stage-ico { transform: scale(1.12); }
.map-svg.has-filter:not(.f-palchi) .m-stage { opacity: .35; }

.js .map-svg .m-ico { opacity: 0; transform: scale(.2); }
.js .map-svg.is-in .m-ico { opacity: 1; transform: none; transition-delay: calc(var(--d, 0) * 1ms); }
.js .map-svg.is-in.has-filter .m-ico { transition-delay: 0s; opacity: .14; transform: none; }
.js .map-svg.is-in.has-filter .m-ico.is-on { opacity: 1; transform: scale(1.5); }
.js .map-svg.is-ready .m-ico { transition-delay: 0s; }

.map-ui { position: absolute; right: 12px; top: 12px; z-index: 3; display: grid; gap: 6px; }
@media (max-width: 600px) { .map-ui { right: 8px; top: 8px; gap: 5px; } .map-ui button { width: 38px; height: 38px; font-size: 1.6rem; box-shadow: 3px 3px 0 var(--ink); } }
.map-ui button {
  display: grid; place-items: center; width: 46px; height: 46px; background: var(--yellow); color: var(--ink);
  font-weight: 700; font-size: 1.9rem; line-height: 1; box-shadow: 4px 4px 0 var(--ink);
  transition: background-color .2s ease, transform .15s var(--ease), opacity .2s ease;
}
.map-ui button:hover { background: var(--yellow-hi); transform: translate(-1px, -1px); }
.map-ui button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.map-ui button:disabled { opacity: .38; cursor: default; transform: none; }
.map-ui button svg { width: 20px; height: 20px; fill: currentColor; }
.map-tip {
  position: absolute; z-index: 4; left: 0; top: 0; padding: 7px 10px 6px; background: var(--ink); color: var(--yellow);
  font-weight: 700; font-size: 1.05rem; line-height: 1; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transform: translate(-50%, -100%) translateY(4px); opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .3s var(--ease);
}
.map-tip.is-on { opacity: 1; transform: translate(-50%, -100%); }
.map-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: var(--ink); }

.map-pop {
  position: absolute; z-index: 4; width: min(320px, calc(100% - 28px)); padding: 18px 18px 16px;
  background: var(--ink); color: var(--paper); box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
  -webkit-clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  animation: pop-in .45s var(--ease);
}
.map-pop h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.9rem; line-height: .88; text-transform: uppercase; color: var(--yellow); padding-right: 30px; }
.map-pop-day { margin: 10px 0 6px; font-weight: 600; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.map-pop ol { display: grid; gap: 4px; }
.map-pop li { display: grid; grid-template-columns: 3.4em 1fr; gap: 10px; font-size: 1.2rem; line-height: 1.05; }
.map-pop li time { font-weight: 300; color: var(--muted); }
.map-pop li span { font-weight: 600; text-transform: uppercase; }
.map-pop-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; color: var(--paper); font-size: 1.6rem; line-height: 1; }
.map-pop-x:hover { color: var(--yellow); }
.map-pop .stage-link { margin-top: 14px; }

.map .brace-big { position: absolute; z-index: -0; pointer-events: none; height: clamp(160px, 22vw, 380px); fill: var(--yellow); opacity: .95; }
.map .brace-big--a { right: calc(var(--gutter) * .3); bottom: clamp(20px, 3vw, 50px); opacity: .18; }
.map .brace-big--b { left: calc(var(--gutter) * .3); bottom: clamp(20px, 3vw, 50px); opacity: .18; }

@media (max-width: 1000px) {
  .map-grid { grid-template-columns: 1fr; }
  .map-copy { position: relative; top: 0; }
  .legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .legend-btn small { display: none; }
  .legend-btn:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .map .brace-big--a { display: none; }
}
@media (max-width: 520px) {
  .legend-btn { grid-template-columns: 34px 1fr auto; gap: 10px; }
  .legend-btn .sw { width: 34px; height: 34px; }
  .legend-btn b { font-size: 1.2rem; }
}

/* ---------- sapore (blocco giallo) ---------- */

.taste { position: relative; padding: clamp(90px, 10vw, 170px) 0; background: var(--yellow); color: var(--ink); isolation: isolate; overflow: hidden; overflow: clip; }
.taste::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise) 0 0 / 240px 240px; mix-blend-mode: multiply; opacity: .16; pointer-events: none; }
.taste .kicker { color: var(--red-deep); }
.taste-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 90px); align-items: center; }

.verbs { margin-top: clamp(18px, 2vw, 30px); }
.verb {
  position: relative; display: flex; align-items: center; gap: .3em; width: 100%; padding: .02em 0; text-align: left;
  font-family: var(--f-display); font-size: clamp(3rem, 1.2rem + 7vw, 9.4rem); line-height: .9; text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 16%, var(--yellow)); transition: color .45s ease;
}
.verb .arr { width: .5em; height: .5em; fill: currentColor; flex: none; opacity: 0; transform: translateX(-.4em); transition: opacity .35s ease, transform .5s var(--ease); }
.verb:hover, .verb.is-on { color: var(--ink); }
.verb.is-on .arr { opacity: 1; transform: none; }
.verb--last { color: color-mix(in srgb, var(--red) 34%, var(--yellow)); }
.verb--last.is-on, .verb--last:hover { color: var(--red); }
.verb-time { margin-left: auto; font-family: var(--f-text); font-weight: 600; font-size: .17em; letter-spacing: .14em; opacity: 0; transition: opacity .3s ease; }
.verb.is-on .verb-time { opacity: .7; }

.taste-media {
  position: relative; aspect-ratio: 4 / 5; background: var(--ink); overflow: hidden;
  -webkit-clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}
.taste-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity .7s ease, transform 1.6s var(--ease); }
.taste-media img.is-on { opacity: 1; transform: scale(1); }
.taste-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--noise) 0 0 / 200px 200px; mix-blend-mode: overlay; opacity: .3; }
.taste-media.is-flick { animation: flick .5s steps(1, end) 1; }

.hours { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 90px); margin-top: clamp(70px, 8vw, 130px); padding-top: clamp(26px, 3vw, 40px); border-top: 3px solid var(--ink); }
.hours-rows { display: grid; gap: clamp(10px, 1.4vw, 20px); }
.hours-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0 20px; padding-bottom: clamp(10px, 1.4vw, 20px); border-bottom: 2px solid rgba(20, 14, 15, .2); }
.hours-row .d { font-family: var(--f-display); font-size: clamp(1.5rem, .9rem + 2.2vw, 3.6rem); line-height: .9; text-transform: uppercase; }
.hours-row .t { font-weight: 900; font-size: clamp(2.6rem, 1.2rem + 4.4vw, 6.6rem); line-height: .82; text-transform: uppercase; }
.hours-row .t small { font-weight: 600; font-size: max(.9rem, .3em); letter-spacing: .12em; vertical-align: .9em; margin-right: .5em; }
.hours p { color: rgba(20, 14, 15, .8); max-width: 38ch; align-self: end; }

@media (max-width: 1000px) {
  .taste-grid, .hours { grid-template-columns: 1fr; }
  .taste-media { aspect-ratio: 4 / 3.4; order: -1; }
  .verb { font-size: clamp(2.8rem, 12.4vw, 6rem); }
}

/* ---------- domenica ---------- */

.sunday { position: relative; isolation: isolate; padding: clamp(90px, 10vw, 170px) 0; overflow: hidden; overflow: clip; }
.sunday .beam { width: 70vw; height: 70vw; left: -26vw; top: 18%; transform: rotate(18deg) translateY(var(--py, 0)); opacity: .4; }
.sunday-intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 90px); margin: clamp(40px, 5vw, 80px) 0 clamp(50px, 6vw, 90px); }
.sunday-intro .when { font-weight: 900; font-size: clamp(2.6rem, 1.2rem + 4.4vw, 6.6rem); line-height: .84; text-transform: uppercase; color: var(--yellow); }
.sunday-intro .when small { display: block; margin-top: .35em; font-weight: 600; font-size: max(.95rem, .26em); letter-spacing: .14em; color: var(--paper); }
.sunday-intro p { color: var(--muted); max-width: 40ch; }

.sunday-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 28px); }
.tile {
  position: relative; padding: clamp(22px, 2.6vw, 44px); overflow: hidden; isolation: isolate;
  -webkit-clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise) 0 0 / 220px 220px; mix-blend-mode: overlay; opacity: .25; pointer-events: none; }
.tile-label { font-weight: 700; font-size: clamp(.95rem, .85rem + .3vw, 1.2rem); letter-spacing: .14em; text-transform: uppercase; }
.tile h3 { margin: .35em 0 .4em; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 1rem + 3.4vw, 5rem); line-height: .86; text-transform: uppercase; }
.tile p { line-height: 1.15; }

.tile--disco { grid-column: span 7; grid-row: span 2; background: var(--red); color: var(--ink); }
.tile--disco::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 80% 10%, rgba(255, 130, 70, .55), transparent 70%), radial-gradient(70% 60% at 0% 100%, rgba(60, 0, 0, .5), transparent 70%); }
.tile--disco h3 { color: var(--yellow); }
.tile--disco .claim { font-weight: 700; font-size: 1.25em; text-transform: uppercase; }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 34px); margin: 1.2em 0 1.4em; border-top: 2px solid rgba(20, 14, 15, .35); }
.perks li { padding: .65em 0 .6em; border-bottom: 2px solid rgba(20, 14, 15, .35); }
.perks b { display: block; font-weight: 700; text-transform: uppercase; color: var(--paper); }
.perks span { display: block; font-size: .86em; line-height: 1.12; }
.credits { font-size: .92em; }
.credits b { font-weight: 700; text-transform: uppercase; }

.tile--circus { grid-column: span 5; background: var(--yellow); color: var(--ink); }
.tile--circus .tile-label { color: var(--red-deep); }
.tile--circus p b { font-weight: 700; text-transform: uppercase; }

.tile--street { grid-column: span 5; background: var(--coal); }
.tile--street .tile-label { color: var(--yellow); }
.street { margin-top: .6em; }
.street li { display: grid; gap: 2px; padding: .6em 0 .55em; border-top: 1px solid var(--line); transition: padding .4s var(--ease), background-color .3s ease; }
.street li:hover { padding-left: 10px; background: rgba(246, 218, 47, .06); }
.street .where { font-weight: 500; font-size: .82em; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.street .who { font-weight: 700; font-size: 1.2em; line-height: 1; text-transform: uppercase; color: var(--yellow); }

@media (max-width: 1000px) {
  .sunday-intro { grid-template-columns: 1fr; }
  .tile--disco, .tile--circus, .tile--street { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } }

/* ---------- esperienze ---------- */

.xp { position: relative; padding: clamp(60px, 7vw, 120px) 0 clamp(90px, 10vw, 170px); }
.xp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); }
.xp-card {
  position: relative; display: flex; flex-direction: column; gap: .7em;
  padding: clamp(20px, 2vw, 32px); background: var(--coal); isolation: isolate; overflow: hidden;
  -webkit-clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  transition: transform .6s var(--ease), background-color .4s ease;
}
.xp-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(80% 60% at var(--mx, 80%) var(--my, 0%), rgba(228, 32, 37, .5), transparent 70%);
  opacity: 0; transition: opacity .5s ease;
}
.xp-card:hover { transform: translateY(-6px); }
.xp-card:hover::before { opacity: 1; }
.xp-card h3 { font-weight: 700; font-size: 1.45em; line-height: .98; text-transform: uppercase; color: var(--yellow); }
.xp-by { color: var(--muted); font-size: .92em; line-height: 1.12; }
.xp-by b { color: var(--paper); font-weight: 600; }
.xp-list { display: grid; gap: .55em; margin-top: auto; padding-top: .6em; border-top: 1px solid var(--line); font-size: .92em; line-height: 1.12; }
.xp-list li { display: grid; grid-template-columns: 1.1em 1fr; gap: .55em; align-items: start; }
.xp-list svg { width: 1em; height: 1em; margin-top: .08em; fill: var(--yellow); }
.xp-list .hl { color: var(--yellow); font-weight: 500; }
.xp-list a { text-decoration: underline; text-decoration-color: rgba(246, 218, 47, .5); text-underline-offset: 3px; }
.xp-list a:hover { color: var(--yellow); }

.xp-card--wide { grid-column: span 2; }
.xp-card--wide .xp-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: auto; padding-top: .6em; border-top: 1px solid var(--line); font-size: .92em; line-height: 1.12; }
.xp-split div { display: grid; gap: .35em; align-content: start; }
.xp-split b { color: var(--yellow); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }

@media (max-width: 1100px) { .xp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .xp-grid { grid-template-columns: 1fr; }
  .xp-card--wide { grid-column: auto; }
  .xp-card--wide .xp-split { grid-template-columns: 1fr; }
}

/* ---------- partner ---------- */

.partners { position: relative; padding: clamp(80px, 9vw, 150px) 0 clamp(90px, 10vw, 160px); background: var(--red); color: var(--ink); isolation: isolate; overflow: hidden; overflow: clip; }
.paper {
  margin-top: clamp(30px, 4vw, 60px); padding: clamp(26px, 4vw, 70px) clamp(18px, 4vw, 70px);
  background: #fff; color: var(--ink); border-radius: clamp(18px, 2.4vw, 36px);
  box-shadow: 0 40px 90px -30px rgba(60, 0, 0, .6);
}
.p-strip { display: grid; justify-items: center; padding-bottom: clamp(26px, 3vw, 44px); border-bottom: 2px solid #eee6da; }
.p-strip img { width: min(100%, 980px); }
.p-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: clamp(20px, 3vw, 50px); padding: clamp(26px, 3vw, 44px) 0; border-bottom: 2px solid #eee6da; }
.p-group h3, .p-block h3 { font-weight: 600; font-size: clamp(.95rem, .85rem + .3vw, 1.2rem); letter-spacing: .14em; text-transform: uppercase; color: #8c7f75; margin-bottom: 14px; }
.p-group { display: grid; align-content: start; }
.p-group .logo { justify-self: start; }
.p-block { padding: clamp(26px, 3vw, 44px) 0 0; }
.p-block + .p-block { margin-top: clamp(10px, 1.4vw, 20px); }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(18px, 2.6vw, 44px) clamp(22px, 3.4vw, 60px); }
.logos--grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.logos--grid li { display: grid; place-items: center; min-height: clamp(96px, 9vw, 150px); padding: 14px; border-right: 1px solid #eee6da; border-bottom: 1px solid #eee6da; }
.logos--grid li:nth-child(5n) { border-right: 0; }
.logos--grid li:nth-last-child(-n + 5) { border-bottom: 0; }
.logo { display: block; width: calc(var(--k, 1) * var(--lu, 92px)); max-width: 100%; transition: transform .5s var(--ease); }
.logos li:hover .logo, .p-group:hover .logo { transform: scale(1.06); }
.logo--naming { --lu: clamp(170px, 18vw, 300px); }
.logo--org { --lu: clamp(150px, 15vw, 240px); }
.logo--radio { --lu: clamp(70px, 6.6vw, 110px); }
.logos--patr .logo { --lu: clamp(76px, 8vw, 126px); }
.logos--grid .logo { --lu: clamp(70px, 7.4vw, 124px); }

@media (max-width: 900px) {
  .p-row { grid-template-columns: 1fr 1fr; }
  .p-row .p-group:first-child { grid-column: 1 / -1; }
  .logos--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .logos--grid li:nth-child(n) { border-right: 1px solid #eee6da; border-bottom: 1px solid #eee6da; }
  .logos--grid li:nth-child(3n) { border-right: 0; }
  .logos--grid li:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .logos--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos--grid li:nth-child(n) { border-right: 1px solid #eee6da; border-bottom: 1px solid #eee6da; }
  .logos--grid li:nth-child(2n) { border-right: 0; }
  .logos--grid li:nth-last-child(-n + 2) { border-bottom: 0; }
}

/* ---------- footer ---------- */

.foot { position: relative; isolation: isolate; padding: clamp(100px, 12vw, 200px) 0 0; background: var(--night); overflow: hidden; overflow: clip; }
.foot .beam { width: 80vw; height: 60vw; left: 10vw; top: -10vw; transform: rotate(-8deg); opacity: .5; }
.foot-big {
  font-family: var(--f-display); font-size: clamp(3rem, 1rem + 8.6vw, 12rem); line-height: .84; text-transform: uppercase; color: var(--yellow);
  max-width: 11ch;
}
.foot-sub { margin-top: .5em; font-weight: 300; font-size: clamp(1.8rem, 1rem + 2.6vw, 4rem); line-height: 1; text-transform: uppercase; }
.foot-stages { display: flex; flex-wrap: wrap; gap: 12px 18px; margin-top: clamp(30px, 4vw, 60px); }

.foot-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 50px);
  margin-top: clamp(80px, 9vw, 150px); padding: clamp(28px, 3vw, 44px) 0; border-top: 2px solid var(--line);
  font-size: clamp(1.15rem, 1rem + .3vw, 1.4rem); line-height: 1.2;
}
.foot-grid h3 { margin-bottom: .7em; font-weight: 600; font-size: .78em; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.foot-grid p, .foot-grid li { color: var(--muted); }
.foot-grid p + p { margin-top: .6em; }
.foot-grid strong { color: var(--paper); font-weight: 600; }
.foot-grid a { transition: color .2s ease; }
.foot-grid a:hover { color: var(--yellow); }
.social { display: flex; gap: 10px; margin-top: .8em; }
.social a { display: grid; place-items: center; width: 46px; height: 46px; background: var(--coal); transition: background-color .25s ease, color .25s ease; }
.social a:hover { background: var(--yellow); color: var(--ink); }
.social svg { width: 22px; height: 22px; fill: currentColor; }

.foot-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 30px; padding: 22px 0;
  border-top: 1px solid var(--line); font-size: 1.02rem; letter-spacing: .04em; color: var(--muted);
}
.foot-legal ul { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-legal a:hover, .foot-legal button:hover { color: var(--yellow); }
.foot-legal button { font-size: inherit; letter-spacing: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.foot-word {
  display: block; margin: clamp(20px, 3vw, 40px) 0 -.12em;
  font-family: var(--f-display); font-size: 9.6vw; line-height: .8; text-align: center; white-space: nowrap; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px rgba(246, 218, 47, .55);
  transform: translateY(calc((1 - var(--fp, 1)) * 40%));
}

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

/* ---------- tasto cookie (dalla landing) ---------- */

.cookie-key {
  --cut: 9px; --drop: 5px;
  position: fixed; z-index: 70;
  right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  padding: 0; border: 0; background: none; color: #1d090d; cursor: pointer;
  visibility: hidden; transition: transform .5s var(--ease), opacity .4s ease;
  -webkit-tap-highlight-color: transparent;
}
.cookie-key::before, .cookie-key span {
  -webkit-clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}
.cookie-key::before { content: ""; position: absolute; inset: 0; background: #0c0a0b; transform: translate(var(--drop), var(--drop)); }
.cookie-key span { position: relative; display: block; padding: 11px 14px; background: #f3d72f; transition: transform .14s cubic-bezier(.2, .8, .3, 1), background-color .14s ease; }
.cookie-key svg { display: block; width: auto; height: 14px; fill: currentColor; }
.cookie-key:hover span { transform: translate(-2px, -2px); background: #ffe84d; }
.cookie-key:active span { transform: translate(var(--drop), var(--drop)); transition-duration: .05s; }
.cookie-key:focus-visible { outline: 2px solid #fff; outline-offset: 8px; }
.cookie-key.is-ready { visibility: visible; }
.cookie-key.is-tucked, .menu-open .cookie-key { transform: translateY(calc(100% + 40px)); opacity: 0; }
.js:not(.is-live) .cookie-key { visibility: hidden; }
.js.is-live .cookie-key.is-ready { animation: key-flicker .75s steps(1, end) .5s both; }
@media (max-width: 600px) {
  .cookie-key { --cut: 7px; --drop: 4px; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); }
  .cookie-key span { padding: 9px 11px; }
  .cookie-key svg { height: 12px; }
}

/* il banner cookie di iubenda aspetta la fine dell'intro */
.js:not(.is-live) #iubenda-cs-banner.iubenda-cs-visible { opacity: 0 !important; }
.js:not(.is-live) #iubenda-cs-banner.iubenda-cs-visible .iubenda-cs-container { transform: translateY(48px) !important; visibility: hidden !important; pointer-events: none !important; }

/* ---------- cursore ---------- */

.cursor {
  position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none;
  width: 0; height: 0; opacity: 0; transition: opacity .3s ease;
}
.cursor.is-on { opacity: 1; }
.cursor-ring {
  position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--yellow); display: grid; place-items: center;
  transition: transform .45s var(--ease), background-color .3s ease, border-color .3s ease;
  mix-blend-mode: difference;
}
.cursor-label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6); opacity: 0;
  font-family: var(--f-display); font-size: 15px; line-height: 1; color: var(--ink); white-space: nowrap; text-transform: uppercase;
  transition: opacity .25s ease, transform .45s var(--ease);
}
.cursor.is-link .cursor-ring { transform: scale(.45); background: var(--yellow); }
.cursor.is-label .cursor-ring { transform: scale(2.3); background: var(--yellow); border-color: var(--yellow); mix-blend-mode: normal; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.cursor.is-label .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-down .cursor-ring { transform: scale(.8); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- comparse allo scorrimento ---------- */

.js:not(.is-static) [data-reveal] { opacity: 0; transform: translate3d(0, 46px, 0); transition: opacity .9s ease, transform 1.2s var(--ease); transition-delay: calc(var(--rd, 0) * 1ms); }
.js:not(.is-static) [data-reveal].is-in { opacity: 1; transform: none; }
.js:not(.is-static) [data-reveal="clip"] { opacity: 1; transform: none; -webkit-clip-path: inset(100% 0 0 0); clip-path: inset(100% 0 0 0); transition: -webkit-clip-path 1.3s var(--ease-io), clip-path 1.3s var(--ease-io); }
.js:not(.is-static) [data-reveal="clip"].is-in { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); }

.js:not(.is-static) [data-flicker] .ch { opacity: 0; }
.js:not(.is-static) [data-flicker] .title-rule { transform: scaleX(0); }
.js:not(.is-static) [data-flicker].is-in .title-rule { transform: scaleX(1); transition: transform 1.1s var(--ease-io); }
.js:not(.is-static) [data-flicker].is-in .ch { animation: key-flicker .7s steps(1, end) both; animation-delay: calc(.25s + var(--c) * 38ms); }

/* ---------- keyframes ---------- */

@keyframes lamp { 0% { opacity: 0; } 9% { opacity: .5; } 15% { opacity: .08; } 24% { opacity: .7; } 31% { opacity: .22; } 42% { opacity: .9; } 53% { opacity: .55; } 66% { opacity: 1; } 79% { opacity: .8; } 100% { opacity: 1; } }
@keyframes weave { 0% { transform: translate(0, 5px); } 12% { transform: translate(1px, -3px); } 24% { transform: translate(-1px, 2px); } 38% { transform: translate(1px, -1px); } 55% { transform: translate(0, 1px); } 72% { transform: translate(-1px, 0); } 100% { transform: none; } }
@keyframes grain { 0% { transform: translate3d(0, 0, 0); } 12.5% { transform: translate3d(-64px, 38px, 0); } 25% { transform: translate3d(52px, -71px, 0); } 37.5% { transform: translate3d(-23px, -112px, 0); } 50% { transform: translate3d(97px, 64px, 0); } 62.5% { transform: translate3d(-118px, -27px, 0); } 75% { transform: translate3d(31px, 109px, 0); } 87.5% { transform: translate3d(-86px, 92px, 0); } }
@keyframes breathe { from { opacity: 0; } to { opacity: .3; } }
@keyframes key-flicker { 0% { opacity: 0; } 14% { opacity: 1; } 24% { opacity: .15; } 38% { opacity: 1; } 50% { opacity: .5; } 62% { opacity: 1; } 100% { opacity: 1; } }
@keyframes flash { 0% { opacity: 0; } 14% { opacity: .6; } 100% { opacity: 0; } }
@keyframes flick { 0% { filter: brightness(1); } 20% { filter: brightness(1.8); } 40% { filter: brightness(.6); } 60% { filter: brightness(1.3); } 100% { filter: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(8px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.04) rotate(-.6deg); } 100% { transform: scale(1); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes slot-flash { 0%, 40% { background: var(--yellow); color: var(--ink); } 100% { background: transparent; } }

/* ---------- movimento ridotto ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-stage { transform: none; }
}
