/* ============================================================
   ATARASHI — hub design system
   Un solo file. Zero JavaScript.
   Motion: solo transform/opacity/filter/clip-path, CSS nativo
   (animation-timeline), fallback = contenuto sempre visibile.
   ============================================================ */

/* ---------- 1. Font (self-hosted, variabile: 1 famiglia, 3 voci) ---------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- 2. Token ---------- */

:root {
  /* ground / superfici — neri caldi, mai #000 puro */
  --ink: #0a0a0a;
  --ink-2: #141110;
  --ink-3: #1d1917;

  /* carta — crema, mai #fff puro */
  --paper: #f2efea;
  --paper-2: #e4dfd6;

  /* testo */
  --on-ink: #f2efea;
  --on-ink-dim: #a39c93; /* 7.3:1 su --ink */
  --on-paper: #12100e;
  --on-paper-dim: #4a423a; /* 8.6:1 su --paper */

  /* Accento = il rosso del brand di atarashi.fr.
     E' piu' scuro dell'arancione: come TESTO su fondo scuro sta a 3.76:1,
     sotto la soglia AA. Quindi tre ruoli distinti, non un colore solo:
       --accent       pieni (bande, bottoni, hover) e testo su crema  4.59:1
       --accent-on    cio' che sta SOPRA il pieno rosso               4.59:1
       --accent-text  rosso per il testo su fondo scuro               4.72:1
     Stessa tinta, solo schiarita quanto basta per restare leggibile. */
  --accent: #d41c25;
  --accent-on: #f2efea;
  --accent-text: #e63a2e;
  --accent-deep: #d41c25; /* 4.59:1 su --paper */

  /* linee */
  --line: rgb(242 239 234 / 0.14);
  --line-strong: rgb(242 239 234 / 0.3);
  --line-dark: rgb(18 16 14 / 0.16);

  /* tipografia */
  --font: 'Archivo', 'Archivo Expanded', 'Helvetica Neue', sans-serif;
  --wide: 125; /* display */
  --normal: 100; /* corpo */
  --narrow: 62; /* micro-label */

  /* ritmo */
  --gutter: clamp(18px, 4vw, 72px);
  --rail: 34px;
  --header-h: 58px;
  --maxw: 1560px;

  /* motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 620ms;

  color-scheme: dark;
}

/* ---------- 3. Reset ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--font);
  font-variation-settings: 'wdth' var(--normal);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-paper :focus-visible {
  outline-color: var(--accent-deep);
}

::selection {
  background: var(--accent);
  color: var(--accent-on);
}

/* ---------- 4. Tipografia ---------- */

.display {
  font-variation-settings: 'wdth' var(--wide);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}
.d1 {
  font-size: clamp(46px, 9.4vw, 148px);
}
.d2 {
  font-size: clamp(34px, 6.2vw, 96px);
}
.d3 {
  font-size: clamp(26px, 3.8vw, 54px);
}

.title {
  font-variation-settings: 'wdth' var(--normal);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

/* micro-label: la voce "tecnica" del brand */
.micro {
  font-variation-settings: 'wdth' var(--narrow);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.micro--sm {
  font-size: 11px;
  letter-spacing: 0.2em;
}
.dim {
  color: var(--on-ink-dim);
}
.on-paper .dim {
  color: var(--on-paper-dim);
}
.accent {
  color: var(--accent-text);
}
.on-paper .accent {
  color: var(--accent-deep);
}

.lede {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--on-ink-dim);
  max-width: 46ch;
  text-wrap: pretty;
}
.on-paper .lede {
  color: var(--on-paper-dim);
}

.body p + p {
  margin-top: 1.1em;
}
.body {
  max-width: 62ch;
  text-wrap: pretty;
}

.skip {
  position: absolute;
  left: 0;
  top: -100px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-on);
  z-index: 999;
}
.skip:focus {
  top: 0;
}

/* ---------- 5. Grana (sempre fixed, mai su elementi scrollabili) ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   6. LA PORTA (home)
   Quattro chiavi. Una riga di stato che risponde alla chiave
   puntata — nessun sottotitolo sotto le parole.
   ============================================================ */

.door {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.door__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.door__mark span {
  position: relative;
  display: block;
  height: min(70svh, 640px);
  max-width: 88vw;
  aspect-ratio: 525 / 634;
  transition: transform 900ms var(--ease-out);
}
.door__mark svg {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  transition: opacity 900ms var(--ease-out);
}
.door__mark .is-solid {
  color: var(--on-ink);
  opacity: 0.075;
}
.door__mark .is-outline {
  color: var(--accent-text);
  opacity: 0.5;
}

.door__top,
.door__foot {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.6vw, 30px) var(--gutter);
  color: var(--on-ink-dim);
}
.door__logo {
  display: block;
  width: clamp(108px, 12vw, 150px);
  color: var(--on-ink);
}
.door__foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.door__foot nav a,
.door__top a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (hover: hover) and (pointer: fine) {
  .door__foot nav a:hover {
    color: var(--on-ink);
  }
}

.keys {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.8vh, 10px);
  padding: clamp(8px, 3vw, 32px) var(--gutter);
}

.key {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: clamp(4px, 0.9vh, 12px) clamp(12px, 3vw, 28px);
  font-variation-settings: 'wdth' var(--wide);
  font-weight: 800;
  font-size: clamp(38px, 7.6vw, 104px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--on-ink);
  transition:
    transform 700ms var(--ease-out),
    color var(--dur) ease;
  will-change: transform;
}

/* la chiave puntata cresce, le altre arretrano — solo puntatore fine */
@media (hover: hover) and (pointer: fine) {
  .keys:has(.key:hover) .key,
  .keys:has(.key:focus-visible) .key {
    transform: scale(0.76);
    color: var(--on-ink-dim);
  }
  /* specificita' piu' alta della regola di arretramento qui sopra:
     :has() pesa quanto il suo argomento, quindi va ripetuto */
  .keys:has(.key:hover) .key:hover,
  .keys:has(.key:focus-visible) .key:focus-visible {
    transform: scale(1.14);
    color: var(--accent-text);
  }
  .door:has(.key:hover) .door__mark span,
  .door:has(.key:focus-visible) .door__mark span {
    transform: scale(1.1);
  }
  .door:has(.key:hover) .is-solid,
  .door:has(.key:focus-visible) .is-solid {
    opacity: 0.16;
  }
  .door:has(.key:hover) .is-outline,
  .door:has(.key:focus-visible) .is-outline {
    opacity: 0;
  }
}
.key:active {
  transform: scale(0.97);
}

/* riga di stato: una sola, in basso a sinistra, cambia con la chiave */
.status {
  position: relative;
  display: grid;
  min-height: 1.5em;
}
.status > * {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur) ease,
    visibility var(--dur);
}
.status > .is-default {
  opacity: 1;
  visibility: visible;
}
@media (hover: hover) and (pointer: fine) {
  .door:has(.key:hover) .status > .is-default,
  .door:has(.key:focus-visible) .status > .is-default {
    opacity: 0;
    visibility: hidden;
  }
  .door:has(#k-brand:hover) .status > [data-for='brand'],
  .door:has(#k-brand:focus-visible) .status > [data-for='brand'],
  .door:has(#k-club:hover) .status > [data-for='club'],
  .door:has(#k-club:focus-visible) .status > [data-for='club'],
  .door:has(#k-festival:hover) .status > [data-for='festival'],
  .door:has(#k-festival:focus-visible) .status > [data-for='festival'],
  .door:has(#k-shop:hover) .status > [data-for='shop'],
  .door:has(#k-shop:focus-visible) .status > [data-for='shop'] {
    opacity: 1;
    visibility: visible;
    color: var(--accent-text);
  }
}

/* ============================================================
   7. Pagine di sezione
   ============================================================ */

.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
  padding: 0 var(--gutter);
}
.head__in > a {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.head__logo {
  display: block;
  width: 104px;
  color: var(--on-ink);
  flex: none;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(10px, 2.2vw, 30px);
}
.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-ink-dim);
  transition: color var(--dur) ease;
}
.nav a[aria-current='page'] {
  color: var(--accent-text);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover {
    color: var(--on-ink);
  }
}

/* barra di avanzamento — scroll-driven CSS, nessun listener */
.progress {
  height: 2px;
  background: var(--line);
  transform-origin: 0 50%;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress i {
      animation: bar linear both;
      animation-timeline: scroll(root block);
    }
  }
}
@keyframes bar {
  to {
    transform: scaleX(1);
  }
}

/* binario laterale: l'indice di sezione (elemento-firma, ricorre su ogni pagina) */
/* Sotto 900px il binario diventa una riga normale sopra il titolo:
   niente sovrapposizioni con il contenuto. */
.rail {
  display: block;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.on-paper .rail {
  color: var(--accent-deep);
}
@media (min-width: 900px) {
  .rail {
    position: absolute;
    left: var(--gutter);
    top: clamp(64px, 11vw, 172px);
    margin-bottom: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 0.3em;
    z-index: 1;
  }
}

section {
  position: relative;
  padding: clamp(52px, 8vw, 128px) var(--gutter);
}
.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
}
.indent {
  padding-left: 0;
}
@media (min-width: 900px) {
  .indent {
    padding-left: calc(var(--rail) + 20px);
  }
}

.hero {
  padding-top: clamp(64px, 12vw, 190px);
  padding-bottom: clamp(36px, 5vw, 76px);
}

/* blocchi su crema — stacco tonale, non solo "scuro con bottone arancione" */
.on-paper {
  background: var(--paper);
  color: var(--on-paper);
}
.on-paper .lede,
.on-paper .body {
  color: var(--on-paper-dim);
}
.on-accent {
  background: var(--accent);
  color: var(--accent-on);
}

/* ---------- 8. Griglie ---------- */

.cols {
  display: grid;
  gap: clamp(24px, 4vw, 72px);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .cols--2 {
    grid-template-columns: 1fr 1fr;
  }
  .cols--7-5 {
    grid-template-columns: 7fr 5fr;
  }
  .cols--5-7 {
    grid-template-columns: 5fr 7fr;
  }
}

.stack > * + * {
  margin-top: clamp(16px, 2.2vw, 26px);
}

/* etichetta di blocco: filo pieno sopra, mai border-left a barretta */
.tag {
  border-top: 2px solid var(--accent);
  padding-top: 12px;
  color: var(--on-ink-dim);
}
.on-paper .tag {
  border-top-color: var(--accent-deep);
  color: var(--on-paper-dim);
}
.tag--quiet {
  border-top: 1px solid var(--line-strong);
}
.on-paper .tag--quiet {
  border-top-color: var(--line-dark);
}

/* ---------- 9. Righe evento (il cuore di /club) ---------- */

.rows {
  border-top: 1px solid var(--line);
}
.row {
  display: grid;
  gap: 4px clamp(14px, 2.6vw, 40px);
  grid-template-columns: 1fr;
  align-items: baseline;
  padding: clamp(18px, 2.4vw, 30px) var(--gutter);
  border-bottom: 1px solid var(--line);
  transition:
    background var(--dur-slow) var(--ease-out),
    color var(--dur) ease;
}
@media (min-width: 860px) {
  .row {
    grid-template-columns: clamp(96px, 9vw, 150px) minmax(0, 1fr) clamp(150px, 16vw, 250px) auto;
    align-items: center;
  }
}
.row__date {
  font-variation-settings: 'wdth' var(--wide);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 46px);
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--accent-text);
  transition: color var(--dur) ease;
}
.row__title {
  font-weight: 700;
  font-size: clamp(17px, 1.9vw, 24px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.row__meta {
  color: var(--on-ink-dim);
  transition: color var(--dur) ease;
}
.row__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding-top: 6px;
}
@media (min-width: 860px) {
  .row__acts {
    justify-content: flex-end;
    padding-top: 0;
  }
}
.row__acts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  transition: transform var(--dur-slow) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .row:hover {
    background: var(--accent);
    color: var(--accent-on);
  }
  /* sul pieno rosso TUTTO il testo della riga deve virare a crema, altrimenti
     i due CTA resterebbero rosso su rosso (contrasto 1:1) */
  .row:hover .row__date,
  .row:hover .row__meta,
  .row:hover .dim,
  .row:hover .row__acts a {
    color: var(--accent-on);
  }
  .row:hover .row__acts a {
    transform: translateX(4px);
  }
}
.row--past {
  color: var(--on-ink-dim);
}
.row--past .row__date {
  color: var(--on-ink-dim);
}

/* ---------- 10. Card prodotto (/shop) ---------- */

.grid-products {
  display: grid;
  gap: clamp(12px, 1.6vw, 22px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 760px) {
  .grid-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1180px) {
  .grid-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.product {
  display: flex;
  flex-direction: column;
}
.product__ph {
  position: relative;
  aspect-ratio: 4 / 5; /* un solo aspect ratio per griglia */
  overflow: hidden;
  background: var(--ink-2);
}
.product__ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .product:hover .product__ph img {
    transform: scale(1.04);
  }
}
.product__flag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 11px;
  background: var(--ink);
  color: var(--accent-text);
}
.product__cap {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.product__name {
  font-variation-settings: 'wdth' var(--narrow);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product__price {
  color: var(--on-ink-dim);
  font-size: 13px;
  white-space: nowrap;
}
.is-sold .product__ph img {
  filter: grayscale(1);
  opacity: 0.5;
}

/* ---------- 11. Media ---------- */

.shot {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shot--wide {
  aspect-ratio: 16 / 9;
}
.shot--tall {
  aspect-ratio: 4 / 5;
}
.shot--band {
  height: min(64vh, 620px);
}
/* scrim: testo sopra foto sempre leggibile */
.shot--scrim::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(10 10 10 / 0.82), rgb(10 10 10 / 0) 62%);
}
.shot__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--gutter);
  color: var(--on-ink);
}

.gallery {
  display: grid;
  gap: clamp(10px, 1.4vw, 18px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.gallery .shot {
  aspect-ratio: 4 / 5; /* un solo ratio per griglia */
}

/* ---------- 12. Liste nomi (guests) ---------- */

.names {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  list-style: none;
  font-variation-settings: 'wdth' 105;
  font-weight: 600;
  font-size: clamp(18px, 2.4vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.names li::after {
  content: '·';
  color: var(--accent-text);
  padding-left: 6px;
}
.names li:last-child::after {
  content: '';
}
.on-paper .names li::after {
  color: var(--accent-deep);
}

/* ---------- 13. Bottoni e link ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 26px;
  background: var(--accent);
  color: var(--accent-on);
  font-variation-settings: 'wdth' var(--narrow);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
  line-height: 1.3;
  max-width: 100%;
  transition:
    background var(--dur) ease,
    transform var(--dur-fast) var(--ease-soft);
}
.btn--ghost {
  background: transparent;
  color: var(--on-ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.on-paper .btn--ghost {
  color: var(--on-paper);
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--on-ink);
    color: var(--ink);
  }
  .btn--ghost:hover {
    background: var(--on-ink);
    color: var(--ink);
    box-shadow: none;
  }
  .on-paper .btn:hover {
    background: var(--on-paper);
    color: var(--paper);
  }
}
.btn:active {
  transform: scale(0.97);
}

.lnk {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 6px;
  color: var(--accent-text);
  position: relative;
}
.on-paper .lnk {
  color: var(--accent-deep);
}
.lnk::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur) var(--ease-out);
}
.lnk:focus-visible::after {
  transform: scaleX(1);
}
@media (hover: hover) and (pointer: fine) {
  .lnk:hover::after {
    transform: scaleX(1);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- 14. Footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding: clamp(30px, 4vw, 56px) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
  color: var(--on-ink-dim);
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
@media (hover: hover) and (pointer: fine) {
  .foot a:hover {
    color: var(--on-ink);
  }
}

/* ============================================================
   15. MOTION — solo CSS nativo.
   Regola: se il browser non supporta lo scroll-driven, il
   contenuto resta VISIBILE (mai una sezione invisibile).
   Su fondo scuro il pavimento di opacità è 0.15, mai 0.
   ============================================================ */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }
    [data-reveal-group] > * {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 60%;
    }
    /* Nessuna animazione sul binario: e' un elemento alto ~140px in cima alla
       sezione, esce dallo schermo dopo poche centinaia di px di scroll, e
       qualunque timeline gli desse una trasformazione impercettibile (delta di
       scala 0.11 misurato, sotto la soglia di 0.35 per contare come firma).
       Meglio un elemento fermo e leggibile che un effetto che non si vede.
       La firma di movimento del sito e l'interazione marchio/chiavi in home. */
  }
}

@keyframes reveal {
  from {
    opacity: var(--reveal-floor, 0.15);
    transform: translate3d(0, 16px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* su crema il fondo è chiaro: partire da 0 non crea un "buco nero" */
.on-paper {
  --reveal-floor: 0;
}



/* entrata senza JS per il contenuto sopra la piega */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] {
    opacity: 1;
    transform: none;
    transition:
      opacity var(--dur-slow) var(--ease-out),
      transform var(--dur-slow) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  @starting-style {
    [data-enter] {
      opacity: 0;
      transform: translate3d(0, 14px, 0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal],
  [data-reveal-group] > *,
  [data-enter] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- 16. Utility ---------- */

.hidden-visually {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.mt-s {
  margin-top: clamp(14px, 2vw, 22px);
}
.mt-m {
  margin-top: clamp(24px, 3.4vw, 46px);
}
.mt-l {
  margin-top: clamp(36px, 5vw, 72px);
}
.center {
  text-align: center;
}

/* ---------- 17. Archivio eventi (/club) ---------- */

.arc__y {
  border-top: 1px solid var(--line-strong);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.arc__y:last-of-type {
  border-bottom: 1px solid var(--line-strong);
}

/* Testata dell'anno: apre e chiude. Marcatore custom (il triangolino di
   default del browser e' un tell da pagina non disegnata). */
.arc__s {
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 22px);
  min-height: 44px;
  padding: clamp(14px, 2vw, 24px) 0;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur) ease;
}
.arc__s::-webkit-details-marker {
  display: none;
}
.arc__s::marker {
  content: '';
}
.arc__s > .display {
  transition: color var(--dur) ease;
}
/* chevron in clip-path: si anima solo con transform */
.arc__s::after {
  content: '';
  flex: none;
  align-self: center;
  margin-left: auto;
  width: 14px;
  height: 14px;
  background: var(--accent-text);
  clip-path: polygon(0 22%, 50% 72%, 100% 22%, 100% 46%, 50% 96%, 0 46%);
  transition: transform var(--dur) var(--ease-out);
}
.arc__y[open] > .arc__s::after {
  transform: rotate(180deg);
}
@media (hover: hover) and (pointer: fine) {
  .arc__s:hover > .display {
    color: var(--accent-text);
  }
}
.arc__s:focus-visible {
  outline-offset: -2px;
}

.arc__l {
  list-style: none;
  margin: 0 0 clamp(20px, 3vw, 36px);
}
.arc__i {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 20px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) {
  .arc__i {
    grid-template-columns: 62px minmax(0, 1fr) minmax(0, 340px);
    align-items: baseline;
  }
}
.arc__d {
  color: var(--on-ink-dim);
  font-variant-numeric: tabular-nums;
}
.arc__t {
  font-weight: 600;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

/* Su touch non esiste l'hover: la riga di stato mostra la prossima data,
   che e' l'informazione piu' cercata da chi arriva dai social. */
@media (hover: none), (pointer: coarse) {
  .status > .is-default {
    opacity: 0;
  }
  .status > [data-for='club'] {
    opacity: 1;
    visibility: visible;
    color: var(--accent-text);
  }
}

/* Header stretto: piu' aria fra logo e voci sotto i 420px */
@media (max-width: 420px) {
  .head__logo {
    width: 86px;
  }
  .nav {
    gap: 9px;
  }
}

/* ---------- 18. Blocco numeri (/festival) ---------- */

.stats {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 760px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
