/* Miraloop: le pagine del gruppo "storia" (miraloop_storia.html, miraloop_eventi_culturali.html). V430, 01/12/2026.
   Si carica DOPO assets/site/miraloop-motion.css e non tocca il sistema condiviso: tutti i selettori partono da
   body.p-storia o body.p-eventi. Usa i token di miraloop-motion.css (--mx-*) e i colori delle etichette di
   miraloop.css (--lab-*, --ink-*). Il comportamento in più (il disco che gira scorrendo) è in storia.js. */

/* ================================================================ comune */
:is(body.p-storia, body.p-eventi) .u-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:is(body.p-storia, body.p-eventi) :is(.st-yr__title, .st-step__title, .st-person__name, .ev-row__title) { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }

/* il disco con l'etichetta al centro: il segno dei "lati" della storia (e dei capitoli della landing) */
:is(body.p-storia, body.p-eventi) .st-disc { position: relative; flex: none; width: clamp(76px, 7.2vw, 124px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, transparent 0 30%, rgba(255, 255, 255, .06) 30.5% 31%, transparent 31.5%),
              repeating-radial-gradient(circle, #060606 0 1.6px, #181818 1.6px 3.2px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .08); }
:is(body.p-storia, body.p-eventi) .st-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 20deg, transparent 0 8%, rgba(255, 255, 255, .14) 12%, transparent 18% 58%, rgba(255, 255, 255, .1) 62%, transparent 68%); }
:is(body.p-storia, body.p-eventi) .st-disc__label { position: relative; width: 46%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--side, var(--lab-hearts)); color: var(--side-ink, #fff); font: 600 clamp(17px, 1.6vw, 28px)/1 var(--font-display); letter-spacing: -0.02em; }
:is(body.p-storia, body.p-eventi) .st-disc__label::after { content: ""; position: absolute; left: 50%; top: 11%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; opacity: .7; }
:is(body.p-storia, body.p-eventi) [style*="--lab-diamonds"] { --side-ink: #14120c; }

/* il contatore e la barra delle sezioni che scorrono di lato */
:is(body.p-storia, body.p-eventi) .st-meter { display: grid; gap: 10px; justify-items: end; min-width: 160px; }
:is(body.p-storia, body.p-eventi) .st-meter__count { font: 500 14px/1 var(--font-text); font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--mx-muted); }
:is(body.p-storia, body.p-eventi) .st-meter__bar { position: relative; width: 160px; height: 1px; background: var(--mx-line-strong); }
:is(body.p-storia, body.p-eventi) .st-meter__bar > span { position: absolute; inset: 0; background: var(--mx-ink); transform-origin: left; transform: scaleX(.2); }

/* "dal blog": data e titolo, come il retro di una copertina */
:is(body.p-storia, body.p-eventi) .st-blog { display: grid; border-top: 1px solid var(--mx-line); }
:is(body.p-storia, body.p-eventi) .st-blog > li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 4px 16px; padding-block: 10px; border-bottom: 1px solid var(--mx-line); align-items: baseline; }
:is(body.p-storia, body.p-eventi) .st-blog time { font: 500 13px/1.3 var(--font-text); font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--mx-muted); }
:is(body.p-storia, body.p-eventi) .st-blog a { color: var(--mx-ink); font-size: 15px; line-height: 1.4; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color .3s var(--mx-ease); }
:is(body.p-storia, body.p-eventi) .st-blog a:hover { text-decoration-color: currentColor; }

/* il titolo con l'anno grande (lato B e C della storia) */
:is(body.p-storia, body.p-eventi) .st-step__head { display: grid; gap: 14px; }
:is(body.p-storia, body.p-eventi) .st-step__year { display: block; font: 400 clamp(76px, 9vw, 176px)/.8 var(--font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
:is(body.p-storia, body.p-eventi) .st-step__title { display: block; font: 500 clamp(24px, 2.1vw, 40px)/1.08 var(--font-display); letter-spacing: -0.025em; max-width: 20ch; }

/* sezioni nuove alte quanto il contenuto: il sistema azzera il padding delle section che non sono .mx-section */
:root.mx-page body:is(.p-storia, .p-eventi) main > section:is(.st-side, .st-band) { padding-block: clamp(72px, 7vw, 120px); }
:is(body.p-storia, body.p-eventi) :is(.st-side, .st-band) > .pi-pin { top: 16px; right: 16px; }
:is(body.p-storia, body.p-eventi) :is(.st-side, .st-band) > .pi { top: 64px; right: 16px; }

/* ================================================================ STORIA */

/* ---------------------------------------------------------------- in breve */
body.p-storia .st-intro__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); row-gap: 28px; align-items: end; }
body.p-storia .st-intro__h { max-width: 14ch; }
body.p-storia .st-intro__text { display: grid; gap: 20px; }
body.p-storia .st-intro__text .mx-lead { max-width: 40ch; }
body.p-storia .st-figures { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.p-storia .st-figure--year dd { color: var(--mx-ink); }

/* ---------------------------------------------------------------- i due fratelli */
body.p-storia .st-duo__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); row-gap: 24px; align-items: end; }
body.p-storia .st-duo__head .mx-h2 { max-width: 12ch; }
body.p-storia .st-duo__head .mx-lead { color: var(--mx-muted); }
body.p-storia .st-duo__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 80px); row-gap: 56px; margin-top: clamp(48px, 6vw, 96px); }
body.p-storia .st-person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(20px, 2.4vw, 44px); row-gap: 24px; align-items: end;
  padding-top: clamp(24px, 2.4vw, 40px); border-top: 1px solid var(--mx-line-strong); }
body.p-storia .st-person__media { margin: 0; aspect-ratio: 1; }
body.p-storia .st-person__media--mira { display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, rgba(242, 241, 238, .16), rgba(242, 241, 238, .04) 58%, transparent 71%); }
body.p-storia .st-person__media--mira .mira-cut { width: 88%; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .55)); }
body.p-storia .st-person__text { display: grid; gap: 10px; align-content: end; }
body.p-storia .st-person__name { font: 500 clamp(26px, 2.4vw, 44px)/1.02 var(--font-display); letter-spacing: -0.03em; }
body.p-storia .st-person__role { font: 500 13px/1.4 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--mx-muted); }
body.p-storia .st-person__note { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--mx-muted); }

/* ---------------------------------------------------------------- la scaletta dei quattro lati */
body.p-storia .st-index__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); row-gap: 24px; align-items: end; }
body.p-storia .st-index__head .mx-h2 { max-width: 13ch; }
body.p-storia .st-index__head .mx-lead { color: var(--mx-muted); }
body.p-storia .st-sides { margin-top: clamp(48px, 6vw, 96px); border-top: 1px solid var(--mx-line); }
body.p-storia .st-sides__link { position: relative; display: grid; grid-template-columns: clamp(48px, 4.4vw, 68px) minmax(150px, 3fr) minmax(0, 6fr) auto 24px; align-items: center;
  column-gap: clamp(16px, 2.4vw, 48px); padding-block: clamp(18px, 2.2vw, 34px); border-bottom: 1px solid var(--mx-line); color: inherit; }
body.p-storia .st-sides__disc { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: repeating-radial-gradient(circle, #060606 0 1.4px, #1a1a1a 1.4px 2.8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font: 600 clamp(14px, 1.2vw, 20px)/1 var(--font-display); color: var(--side-ink, #fff); transition: transform .9s var(--mx-ease); }
body.p-storia .st-sides__disc > span { display: grid; place-items: center; width: 50%; aspect-ratio: 1; border-radius: 50%; background: var(--side); }
body.p-storia .st-sides__years { font: 400 clamp(28px, 3vw, 58px)/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.p-storia .st-sides__years > span[aria-hidden] { margin-inline: .12em; color: var(--mx-muted); }
body.p-storia .st-sides__name { font: 500 clamp(21px, 2.1vw, 40px)/1.05 var(--font-display); letter-spacing: -0.03em; transition: transform .6s var(--mx-ease); }
body.p-storia .st-sides__count { font: 500 13px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: var(--mx-muted); white-space: nowrap; }
body.p-storia .st-sides__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .7s var(--mx-ease); }
@media (hover: hover) and (pointer: fine) {
  body.p-storia .st-sides__link:hover .st-sides__disc { transform: rotate(200deg); }
  body.p-storia .st-sides__link:hover .st-sides__name { transform: translateX(10px); }
  body.p-storia .st-sides__link:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* ---------------------------------------------------------------- testata di ogni lato */
body.p-storia .st-side__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) auto; align-items: end; column-gap: clamp(24px, 4vw, 72px); row-gap: 20px; }
body.p-storia .st-side__head--static { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
body.p-storia .st-label { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); min-width: 0; }
body.p-storia .st-label__text { display: grid; gap: 8px; min-width: 0; }
body.p-storia .st-label__side { font: 500 13px/1.3 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--mx-muted); }
body.p-storia .st-side__lead { max-width: 44ch; color: var(--mx-muted); }

/* ---------------------------------------------------------------- lati A e D: le tracce scorrono di lato
   da 1024 px (data-pin-horizontal) la sezione si ferma; sotto si sfogliano col dito con lo scroll-snap del sistema */
body.p-storia .st-side { position: relative; }
body.p-storia .st-side__inner { display: flex; flex-direction: column; gap: clamp(28px, 4svh, 52px); }
body.p-storia .st-side__track { align-items: stretch; padding-block: 2px; gap: clamp(14px, 1.8vw, 28px); }
body.p-storia .st-yr { flex: none; width: min(84vw, 440px); display: flex; }
body.p-storia .st-yr--wide { width: min(90vw, 900px); }
body.p-storia .st-yr--photo { width: min(84vw, 500px); }
body.p-storia .st-yr__card { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(22px, 2.2vw, 36px); border-radius: 18px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--mx-line); }
body.p-storia .st-side--d .st-yr__card { background: rgba(255, 246, 220, .05); }
body.p-storia .st-yr__no { align-self: flex-start; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--mx-line-strong);
  font: 600 12px/1 var(--font-text); letter-spacing: .1em; font-variant-numeric: tabular-nums; color: var(--mx-ink); }
body.p-storia .st-yr__head { display: grid; gap: 12px; }
body.p-storia .st-yr__year { display: block; font: 400 clamp(72px, min(8.4vw, 15svh), 168px)/.8 var(--font-display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
body.p-storia .st-yr__title { display: block; font: 500 clamp(20px, 1.55vw, 28px)/1.15 var(--font-display); letter-spacing: -0.02em; max-width: 22ch; }
body.p-storia .st-yr__text { font-size: clamp(15px, .98vw, 17px); line-height: 1.55; color: var(--mx-muted); max-width: 46ch; }
body.p-storia .st-yr__card .st-blog { margin-top: auto; }
body.p-storia .st-yr__card .mx-link { align-self: flex-start; }
body.p-storia .st-yr__card--split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(20px, 2.4vw, 40px); row-gap: 20px; align-items: stretch; }
body.p-storia .st-yr__card--split > div:first-child { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

/* A2: i quattro loghi e la citazione */
body.p-storia .st-labels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
body.p-storia .st-labels > li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; line-height: 1.3; color: var(--mx-muted); }
body.p-storia .st-labels img { flex: none; width: 40px; height: 40px; padding: 4px; border-radius: 50%; background: var(--lab); filter: none; }
body.p-storia .st-labels b { display: block; font-weight: 500; color: var(--mx-ink); }
body.p-storia .st-quote { margin: 0; align-self: center; padding-left: clamp(18px, 2vw, 32px); border-left: 2px solid var(--mx-ink); display: grid; gap: 14px; }
body.p-storia .st-quote p { font: 500 clamp(28px, 2.6vw, 48px)/1.08 var(--font-display); letter-spacing: -0.03em; color: var(--mx-ink); }
body.p-storia .st-quote cite { font: 500 13px/1 var(--font-text); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--mx-muted); }
body.p-storia .st-big { white-space: nowrap; font: 400 clamp(54px, min(6vw, 10svh), 112px)/.9 var(--font-display); letter-spacing: -0.04em; color: var(--mx-ink); font-variant-numeric: tabular-nums; }

/* A5: le grafiche storiche delle etichette, sovrapposte come diapositive */
body.p-storia .st-banners { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(6, minmax(0, 1fr)); min-height: 240px; }
body.p-storia .st-banner { margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .9); background: #0c0c0c; transition: transform .7s var(--mx-ease); }
body.p-storia .st-banner img { width: 100%; height: 100%; object-fit: cover; }
body.p-storia .st-banner:nth-child(1) { grid-area: 1 / 1 / 5 / 6; z-index: 1; }
body.p-storia .st-banner:nth-child(2) { grid-area: 3 / 2 / 7 / 7; z-index: 2; }
body.p-storia .st-banner:nth-child(3) { grid-area: 4 / 1 / 7 / 4; z-index: 3; }
@media (hover: hover) and (pointer: fine) { body.p-storia .st-banner:hover { transform: translateY(-8px); z-index: 4; } }

/* A6 e D4: la foto in alto */
body.p-storia .st-yr__media { margin: 0 0 4px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0c0c0c; }
body.p-storia .st-yr__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
/* 02/12: la foto non si schiaccia più (era alta 131 px e tagliava la testa di Devon Miles) */
body.p-storia .st-side.is-pinned .st-yr__media { aspect-ratio: auto; flex: none; height: clamp(140px, 20svh, 230px); }
body.p-storia .st-side.is-pinned .st-yr__media img { object-position: 50% 30%; }

/* D1: la locandina della mostra; D3: la cassa delle uscite; D2: KUM; D4: oggi */
body.p-storia .st-yr__poster { margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; min-height: 0; }
body.p-storia .st-yr__poster img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: 12px; aspect-ratio: 3 / 4; }
body.p-storia .st-yr__poster figcaption, body.p-storia .st-yr__cover figcaption, body.p-storia .st-crate span { font-size: 13px; line-height: 1.35; color: var(--mx-muted); }
body.p-storia .st-crate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-self: center; }
body.p-storia .st-crate > li { display: grid; gap: 8px; align-content: start; }
body.p-storia .st-crate img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 6px; box-shadow: 0 22px 36px -18px rgba(0, 0, 0, .9); transition: transform .6s var(--mx-ease); }
body.p-storia .st-crate > li:nth-child(2) { transform: translateY(-14px); }
@media (hover: hover) and (pointer: fine) { body.p-storia .st-crate > li:hover img { transform: translateY(-8px) rotate(-1.5deg); } }
body.p-storia .st-kum { display: flex; align-items: baseline; gap: 14px; margin-block: 4px; }
body.p-storia .st-kum span:first-child { font: 500 clamp(56px, min(6vw, 11svh), 120px)/.85 var(--font-display); letter-spacing: -0.02em; color: var(--ink-diamonds); }
body.p-storia .st-kum span:last-child { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--mx-line-strong); font: 600 12px/1 var(--font-text); letter-spacing: .1em; }
body.p-storia .st-yr__cover { margin: 0 0 4px; display: flex; align-items: center; gap: 16px; }
body.p-storia .st-yr__cover img { width: clamp(96px, min(10vw, 16svh), 160px); height: auto; aspect-ratio: 1; border-radius: 6px; box-shadow: 0 22px 36px -18px rgba(0, 0, 0, .9); }
body.p-storia .st-yr__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: auto; }
body.p-storia .st-yr__ctas .btn { height: 48px; padding-inline: 20px; }

/* fermo (desktop con il movimento): la sezione è alta uno schermo, le tracce stanno dentro */
/* fermo: niente padding sopra e sotto (la testata entra quando la sezione arriva in cima, niente vuoto all'uscita) */
:root.mx-page body.p-storia main > section.st-side.is-pinned { padding-block: 0; }
body.p-storia .st-side.is-pinned .st-side__inner { height: 100vh; height: 100svh; justify-content: center; padding-top: var(--nav); gap: clamp(20px, 3.4svh, 40px); }
body.p-storia .st-side.is-pinned .st-yr { height: min(70svh, 680px); }  /* 02/12: era 64svh e tagliava il fondo di 2013 e Oggi */
body.p-storia .st-side.is-pinned .st-yr__card { overflow: hidden; }
body.p-storia .st-side.is-pinned .st-yr--wide { width: min(64vw, 960px); }
/* 02/12: schermi bassi (portatili da 720-820 px): le schede si compattano invece di tagliare il fondo */
@media (max-height: 820px) {
  body.p-storia .st-side.is-pinned .st-yr__card { gap: 10px; padding: 22px; }
  body.p-storia .st-side.is-pinned .st-yr__year { font-size: clamp(56px, min(8.4vw, 11svh), 168px); }
  body.p-storia .st-side.is-pinned .st-yr__media { height: clamp(110px, 16svh, 230px); }
  body.p-storia .st-side.is-pinned .st-yr__head { gap: 8px; }
}

/* ---------------------------------------------------------------- lato B: foto ferma, anni che scorrono */
body.p-storia .st-story { margin-top: clamp(48px, 6vw, 96px); }
body.p-storia .st-story .mx-story__step { gap: 16px; }
body.p-storia .st-story .mx-story__step .mx-body + .mx-body { margin-top: -4px; }
body.p-storia .st-story .mx-story__step .mx-link { align-self: flex-start; }
.mx-js body.p-storia .st-story .mx-story__step:not(.is-active) .st-step__year { color: rgba(242, 241, 238, .5); }
body.p-storia .st-story .st-step__year { transition: color .5s var(--mx-ease); }

/* ---------------------------------------------------------------- lato C: il provino a contatto degli studi */
body.p-storia .st-sheet { display: grid; gap: clamp(64px, 8vw, 136px); margin-top: clamp(48px, 6vw, 96px); }
body.p-storia .st-sheet__row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(28px, 5vw, 96px); row-gap: 28px; align-items: center; }
body.p-storia .st-sheet__row--flip:not(.st-sheet__row--pair) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
body.p-storia .st-sheet__row--flip:not(.st-sheet__row--pair) > .st-sheet__media { order: 2; }
body.p-storia .st-sheet__row--pair { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
body.p-storia .st-sheet__row--pair.st-sheet__row--flip { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
body.p-storia .st-sheet__media { aspect-ratio: 3 / 2; }
body.p-storia .st-sheet__row--wide .st-sheet__media { aspect-ratio: 16 / 10; }
body.p-storia .st-sheet__tall { aspect-ratio: 2 / 3; width: 100%; max-width: 380px; justify-self: center; }
body.p-storia .st-sheet__text { display: grid; gap: 18px; justify-items: start; }
body.p-storia .st-sheet__text .st-blog { width: 100%; max-width: 520px; }

/* ---------------------------------------------------------------- manifesto */
body.p-storia .st-manifesto__h { max-width: 18ch; }
body.p-storia .st-manifesto__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 96px); row-gap: 20px; margin-block: clamp(40px, 5vw, 80px) 28px; max-width: 1180px; }

/* ---------------------------------------------------------------- i copioni: Bologna di notte */
body.p-storia .st-band { position: relative; isolation: isolate; overflow: clip; display: grid; align-items: end; min-height: clamp(440px, 74svh, 820px); }
body.p-storia .st-band__media { position: absolute; inset: -10% 0; margin: 0; z-index: -1; }
body.p-storia .st-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
body.p-storia .st-band::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 8, 8, .9) 0%, rgba(8, 8, 8, .74) 42%, rgba(8, 8, 8, .12) 78%),
              linear-gradient(0deg, rgba(8, 8, 8, .92) 0%, rgba(8, 8, 8, .4) 40%, rgba(8, 8, 8, 0) 70%),
              linear-gradient(180deg, rgba(17, 17, 17, 1) 0%, rgba(17, 17, 17, 0) 22%); }
body.p-storia .st-band__text { position: relative; z-index: 1; display: grid; gap: 22px; color: #fff; }
body.p-storia .st-band__text .mx-h2 { max-width: 12ch; }
body.p-storia .st-band__text .mx-lead { color: rgba(255, 255, 255, .9); max-width: 48ch; }

/* ---------------------------------------------------------------- riconoscimenti */
body.p-storia .st-proof__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); row-gap: 20px; align-items: end; margin-bottom: clamp(20px, 2vw, 32px); }
body.p-storia .st-proof__head .mx-h2 { max-width: 12ch; }
body.p-storia .st-proof__head .mx-lead { color: var(--mx-muted); }
body.p-storia .st-proof .mx-partners { grid-template-columns: minmax(110px, 2.2fr) minmax(0, 8fr); }

/* ---------------------------------------------------------------- telefono e tablet */
@media (max-width: 1023px) {
  body.p-storia .st-intro__grid, body.p-storia .st-duo__head, body.p-storia .st-index__head, body.p-storia .st-proof__head { grid-template-columns: minmax(0, 1fr); }
  body.p-storia .st-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.p-storia .st-figures .mx-figure:nth-child(3) { border-left: 0; padding-left: 0; }
  body.p-storia .st-figures .mx-figure:nth-child(n+3) { border-top: 1px solid var(--mx-line); }
  body.p-storia .st-duo__grid { grid-template-columns: minmax(0, 1fr); }
  body.p-storia .st-side__head, body.p-storia .st-side__head--static { grid-template-columns: minmax(0, 1fr); }
  body.p-storia .st-meter { justify-items: start; }
  body.p-storia .st-sheet__row, body.p-storia .st-sheet__row--flip:not(.st-sheet__row--pair), body.p-storia .st-sheet__row--pair, body.p-storia .st-sheet__row--pair.st-sheet__row--flip { grid-template-columns: minmax(0, 1fr); }
  body.p-storia .st-sheet__row--flip:not(.st-sheet__row--pair) > .st-sheet__media { order: 0; }
  body.p-storia .st-sheet__row--pair:not(.st-sheet__row--flip) > .st-sheet__tall { order: -1; }
  body.p-storia .st-sheet__tall { max-width: 300px; justify-self: start; aspect-ratio: 4 / 5; }
  body.p-storia .st-story .mx-story__step .st-step__year { font-size: clamp(64px, 16vw, 120px); }
}
@media (max-width: 767px) {
  body.p-storia .st-sides__link { grid-template-columns: 48px minmax(0, 1fr) 24px; row-gap: 6px; }
  body.p-storia .st-sides__disc { grid-row: 1 / span 3; align-self: center; }
  body.p-storia .st-sides__years { grid-column: 2; font-size: clamp(26px, 8vw, 36px); }
  body.p-storia .st-sides__name { grid-column: 2; }
  body.p-storia .st-sides__count { grid-column: 2; }
  body.p-storia .st-sides__link > .mx-arrow { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
  body.p-storia .st-yr__card--split { grid-template-columns: minmax(0, 1fr); }
  body.p-storia .st-yr__poster img { aspect-ratio: 4 / 3; }
  body.p-storia .st-banners { min-height: 200px; }
  body.p-storia .st-person { grid-template-columns: minmax(0, 1fr); }
  body.p-storia .st-person__media { max-width: 260px; }
  body.p-storia .st-manifesto__cols { grid-template-columns: minmax(0, 1fr); }
  body.p-storia .st-proof .mx-partners { grid-template-columns: minmax(0, 1fr); }
  body.p-storia .st-disc { width: 68px; }
}
@media (max-width: 479px) {
  body.p-storia .st-figures { grid-template-columns: minmax(0, 1fr); }
  body.p-storia .st-figures .mx-figure + .mx-figure { border-left: 0; padding-left: 0; border-top: 1px solid var(--mx-line); }
  body.p-storia .st-labels { grid-template-columns: minmax(0, 1fr); }
  body.p-storia .st-blog > li { grid-template-columns: minmax(0, 1fr); }
}

/* telefono: le tracce non si allungano tutte come la più alta; Bologna di notte sopra, il testo sotto sul fondo scuro */
@media (max-width: 1023px) {
  body.p-storia .st-side:not(.is-pinned) .st-side__track { align-items: flex-start; }
}
@media (max-width: 767px) {
  body.p-storia .st-band { min-height: 0; align-items: start; }
  :root.mx-page body.p-storia main > section.st-band { padding-top: 0; }
  body.p-storia .st-band__media { position: relative; inset: auto; height: 72vw; margin-bottom: -18vw; }
  body.p-storia .st-band::before { background: linear-gradient(180deg, rgba(17, 17, 17, .9) 0%, rgba(17, 17, 17, 0) 24%, rgba(17, 17, 17, 0) 40%, rgba(17, 17, 17, .96) calc(72vw - 18vw), #111 100%); }
}

/* ================================================================ EVENTI CULTURALI (landing fuori menu) */

/* hero: il titolo con la parola chiave è lungo (quattro righe), la scala scende */
body.p-eventi .ev-hero .mx-hero__title { font-size: clamp(42px, min(7.6vw, 13.5svh), 176px); }
body.p-eventi .ev-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); row-gap: 24px; align-items: end; }
body.p-eventi .ev-head .mx-h2 { max-width: 13ch; }
body.p-eventi .ev-head .mx-lead { color: var(--mx-muted); }
body.p-eventi .ev-sub { font: 500 13px/1.3 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--mx-muted); margin-bottom: 18px; }
body.p-eventi .ev-tag { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--mx-line-strong);
  font: 500 12px/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--mx-ink); white-space: nowrap; }

/* cosa facciamo */
body.p-eventi .ev-story { margin-top: clamp(48px, 6vw, 96px); }
body.p-eventi .ev-story .mx-story__name { max-width: 14ch; }
body.p-eventi .ev-who { color: var(--mx-ink); }

/* Bologna Tango Lab */
body.p-eventi .ev-tango__head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); row-gap: 28px; align-items: end; }
body.p-eventi .ev-tango__title { display: grid; gap: 28px; justify-items: start; }
body.p-eventi .ev-tango__title .mx-h2 { max-width: 13ch; }
body.p-eventi .ev-tango__logo { height: clamp(56px, 5vw, 80px); width: auto; filter: brightness(0) invert(1); }
body.p-eventi .ev-tango__text { display: grid; gap: 18px; }
body.p-eventi .ev-tango__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 96px); row-gap: 56px; margin-top: clamp(56px, 7vw, 112px); align-items: start; }
body.p-eventi .ev-places__list { border-top: 1px solid var(--mx-line); }
body.p-eventi .ev-places__list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; padding-block: 18px; border-bottom: 1px solid var(--mx-line); align-items: center; }
body.p-eventi .ev-places__name { font: 500 clamp(18px, 1.4vw, 23px)/1.2 var(--font-display); letter-spacing: -0.015em; }
body.p-eventi .ev-places__what { grid-column: 1; font-size: 15px; line-height: 1.45; color: var(--mx-muted); }
body.p-eventi .ev-places__list .ev-tag { grid-column: 2; grid-row: 1 / span 2; }
body.p-eventi .ev-archive { margin-top: 0; }
body.p-eventi .ev-archive .mx-archive__row { grid-template-columns: minmax(96px, 2fr) minmax(0, 5fr) minmax(0, 3fr); }
body.p-eventi .ev-archive .mx-archive__year { font-size: clamp(36px, 4vw, 76px); }
body.p-eventi .ev-archive a.mx-archive__what { color: var(--mx-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color .3s var(--mx-ease); }
body.p-eventi .ev-archive a.mx-archive__what:hover { text-decoration-color: currentColor; }
body.p-eventi .ev-archive .mx-archive__src { font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { body.p-eventi .ev-archive .mx-archive__row:hover .mx-archive__year { color: #f0a070; } }

/* Bologna città della musica: tre foto della mostra a velocità diverse */
body.p-eventi .ev-city__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 120px); row-gap: 56px; align-items: center; }
body.p-eventi .ev-city__text { display: grid; gap: 22px; justify-items: start; }
body.p-eventi .ev-city__text .mx-h2 { max-width: 11ch; }
body.p-eventi .ev-city__photos { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
body.p-eventi .ev-city__ph { aspect-ratio: 3 / 4; }
body.p-eventi .ev-city__photos { column-gap: clamp(10px, 1.2vw, 20px); }
body.p-eventi .ev-city__ph--a { grid-column: 1 / 5; margin-top: 16%; }
body.p-eventi .ev-city__ph--b { grid-column: 5 / 9; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .9); }
body.p-eventi .ev-city__ph--c { grid-column: 9 / 13; margin-top: 32%; }
@media (max-width: 767px) {
  body.p-eventi .ev-city__ph--a { margin-top: 10%; }
  body.p-eventi .ev-city__ph--c { margin-top: 20%; }
}

/* altri lavori */
body.p-eventi .ev-rows { margin-top: clamp(48px, 6vw, 96px); border-top: 1px solid var(--mx-line); }
body.p-eventi .ev-row { position: relative; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr) auto; column-gap: clamp(16px, 3vw, 56px); row-gap: 8px;
  align-items: baseline; padding-block: clamp(20px, 2.4vw, 36px); border-bottom: 1px solid var(--mx-line); }
body.p-eventi .ev-row__title { font: 500 clamp(26px, 2.8vw, 52px)/1.02 var(--font-display); letter-spacing: -0.035em; }
body.p-eventi .ev-row__what { color: var(--mx-muted); max-width: 46ch; }
body.p-eventi .ev-row__when { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 14px/1.3 var(--font-text); font-variant-numeric: tabular-nums; color: var(--mx-muted); }
body.p-eventi .ev-row .ev-tag { justify-self: end; }

/* come lavoriamo: cinque passi */
body.p-eventi .ev-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 36px); row-gap: 40px; margin-top: clamp(48px, 6vw, 96px); }
body.p-eventi .ev-step { display: grid; align-content: start; gap: 12px; padding-top: 22px; border-top: 1px solid var(--mx-line-strong); }
body.p-eventi .ev-step__no { font: 400 clamp(44px, 4.4vw, 84px)/.9 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: var(--mx-ink); }
body.p-eventi .ev-step__title { font: 500 clamp(19px, 1.4vw, 24px)/1.2 var(--font-display); letter-spacing: -0.015em; }
body.p-eventi .ev-step p { color: var(--mx-muted); font-size: 16px; line-height: 1.55; }
body.p-eventi .ev-step:nth-child(2) { margin-top: clamp(0px, 3vw, 56px); }
body.p-eventi .ev-step:nth-child(3) { margin-top: clamp(0px, 6vw, 112px); }
body.p-eventi .ev-step:nth-child(4) { margin-top: clamp(0px, 3vw, 56px); }

/* domande frequenti */
body.p-eventi .ev-faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 120px); row-gap: 40px; align-items: start; }
body.p-eventi .ev-faq__intro { display: grid; gap: 22px; justify-items: start; position: sticky; top: calc(var(--nav) + 32px); }
body.p-eventi .ev-faq__intro .mx-lead { color: var(--mx-muted); }
body.p-eventi .ev-faq__list { border-top: 1px solid var(--mx-line); }
body.p-eventi .ev-faq__list details { border-bottom: 1px solid var(--mx-line); }
body.p-eventi .ev-faq__list summary { position: relative; display: block; list-style: none; cursor: pointer; padding: clamp(20px, 2vw, 28px) 48px clamp(20px, 2vw, 28px) 0;
  font: 500 clamp(19px, 1.5vw, 26px)/1.25 var(--font-display); letter-spacing: -0.015em; }
body.p-eventi .ev-faq__list summary::-webkit-details-marker { display: none; }
body.p-eventi .ev-faq__list summary::before, body.p-eventi .ev-faq__list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: currentColor; transition: transform .45s var(--mx-ease); }
body.p-eventi .ev-faq__list summary::after { transform: rotate(90deg); }
body.p-eventi .ev-faq__list details[open] summary::after { transform: rotate(0deg); }
body.p-eventi .ev-faq__list summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
body.p-eventi .ev-faq__list details p { padding-bottom: clamp(20px, 2vw, 28px); color: var(--mx-muted); max-width: 60ch; line-height: 1.6; }

/* form: cinque tipi di realtà, su tre colonne */
body.p-eventi .ev-choice .mx-choice__box { align-content: center; min-height: 64px; }

@media (max-width: 1023px) {
  body.p-eventi .ev-head, body.p-eventi .ev-tango__head, body.p-eventi .ev-tango__body, body.p-eventi .ev-city__grid, body.p-eventi .ev-faq__grid { grid-template-columns: minmax(0, 1fr); }
  body.p-eventi .ev-faq__intro { position: static; }
  body.p-eventi .ev-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.p-eventi .ev-step:nth-child(n) { margin-top: 0; }
  body.p-eventi .ev-row { grid-template-columns: minmax(0, 1fr) auto; }
  body.p-eventi .ev-row__what, body.p-eventi .ev-row__when { grid-column: 1 / -1; }
  body.p-eventi .ev-row .ev-tag { grid-column: 2; grid-row: 1; align-self: center; }
}
@media (max-width: 767px) {
  body.p-eventi .ev-archive .mx-archive__row { grid-template-columns: minmax(0, 1fr); }
  body.p-eventi .ev-places__list > li { grid-template-columns: minmax(0, 1fr); }
  body.p-eventi .ev-places__list .ev-tag { grid-column: 1; grid-row: auto; justify-self: start; }
  body.p-eventi .ev-steps { grid-template-columns: minmax(0, 1fr); }
}
