/* ==========================================================
   Nina Giambona — Il Rinascimento del carretto siciliano
   Direzione: catalogo d'arte editoriale + cartellone dei pupari.
   Palette dai colori del carretto: bitume, ocra, vermiglio, cobalto.
   ========================================================== */

:root {
  /* colore */
  --ink: #1B140F;          /* bitume: fondo scuro */
  --ink-2: #261C15;        /* superficie su scuro */
  --ink-line: #4A3A2C;     /* linee su scuro */
  --paper: #F6F3EC;        /* calce: il bianco del carretto */
  --paper-2: #ECE5D6;      /* superficie su chiaro */
  --paper-line: #D3C2A3;   /* linee su chiaro */
  --ochre: #D9A21B;        /* giallo carretto */
  --ochre-deep: #8A6200;   /* ocra leggibile su chiaro */
  --vermilion: #C23B22;    /* rosso carretto */
  --cobalt: #1F4E9C;       /* blu carretto */
  --text: #2A1F17;         /* testo su chiaro */
  --text-2: #5E4D3C;       /* testo secondario su chiaro */
  --text-inv: #F4ECDD;     /* testo su scuro */
  --text-inv-2: #C9B89C;   /* secondario su scuro */

  /* tipografia */
  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-body: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --fs-body: clamp(1rem, .96rem + .2vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 1.05rem + .4vw, 1.375rem);
  --fs-h3: clamp(1.5rem, 1.3rem + .8vw, 2rem);
  --fs-h2: clamp(2.25rem, 1.6rem + 3vw, 4.25rem);
  --fs-hero: clamp(3.25rem, 2rem + 6.5vw, 8rem);

  /* spazi */
  --gutter: clamp(1rem, .5rem + 2.5vw, 3rem);
  --section: clamp(4.5rem, 3rem + 7vw, 10rem);
  --maxw: 1240px;
  --radius: 2px;

  --wheel-hub: var(--vermilion);
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
figure { margin: 0; }
ol { margin: 0; padding: 0; list-style: none; }

/* lingua: si mostra solo quella attiva */
html[data-lang="it"] [data-l="en"],
html[data-lang="en"] [data-l="it"] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ochre); color: var(--ink); padding: .75rem 1rem; font-weight: 600; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--vermilion); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.paper { background: var(--paper); color: var(--text); }
.ink { background: var(--ink); color: var(--text-inv); }
.ink { --wheel-hub: var(--vermilion); }

/* grana leggera sui fondi scuri, come carta stampata */
.ink::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ink > * { position: relative; }

/* ---------- tipografia ---------- */
.h2 {
  font-family: var(--f-display); font-size: var(--fs-h2); line-height: 1.02;
  letter-spacing: -.02em; font-variation-settings: "opsz" 96; text-wrap: balance;
  margin-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
}
.h3 { font-family: var(--f-display); font-size: var(--fs-h3); line-height: 1.1; margin-bottom: .6rem; text-wrap: balance; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text-2); max-width: 46rem; text-wrap: pretty; }
.on-dark, .ink .lead { color: var(--text-inv-2); }
.ink .h2 { color: var(--text-inv); }
.prose p { max-width: 38rem; text-wrap: pretty; }
.prose.on-dark p { color: var(--text-inv-2); }
em, i { font-style: italic; }
strong { font-weight: 600; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: var(--radius);
  font: 500 .9375rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--ochre); color: var(--ink); border: 1px solid var(--ochre); }
.btn-primary:hover { background: #E8B53A; border-color: #E8B53A; }
.paper .btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.paper .btn-primary:hover { background: var(--vermilion); border-color: var(--vermilion); }
.btn-ghost { color: var(--text-inv); border: 1px solid rgba(244,236,221,.4); background: transparent; }
.btn-ghost:hover { border-color: var(--ochre); color: var(--ochre); }
.btn-lg { font-size: clamp(.95rem, .8rem + .6vw, 1.25rem); padding: 1.1rem 1.75rem; text-transform: none; letter-spacing: .01em; }
.i { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem var(--gutter); color: var(--text-inv);
  transition: background-color .35s var(--ease), padding .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(27,20,15,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding-block: .6rem; border-bottom-color: var(--ink-line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .01em; }
.brand-wheel { width: 1.6rem; height: 1.6rem; color: var(--ochre); }
.nav { display: flex; gap: clamp(1rem, .5rem + 1.2vw, 2rem); }
.nav a { text-decoration: none; font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; padding: .5rem 0; position: relative; color: var(--text-inv); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--ochre); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: .75rem; }
.lang { display: flex; border: 1px solid rgba(244,236,221,.3); border-radius: var(--radius); }
.lang button {
  appearance: none; background: none; border: 0; color: var(--text-inv-2); cursor: pointer;
  font: 500 .75rem/1 var(--f-body); letter-spacing: .12em; padding: .55rem .6rem; min-width: 44px; min-height: 36px;
}
.lang button[aria-pressed="true"] { background: var(--ochre); color: var(--ink); }
.menu-btn { display: none; appearance: none; background: none; border: 1px solid rgba(244,236,221,.3); border-radius: var(--radius); width: 44px; height: 44px; cursor: pointer; color: var(--text-inv); position: relative; }
.menu-btn-bars, .menu-btn-bars::before, .menu-btn-bars::after { position: absolute; left: 50%; width: 18px; height: 1.5px; background: currentColor; transform: translateX(-50%); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn-bars { top: 50%; }
.menu-btn-bars::before, .menu-btn-bars::after { content: ""; left: 0; transform: none; }
.menu-btn-bars::before { top: -6px; }
.menu-btn-bars::after { top: 6px; }
.menu-btn[aria-expanded="true"] .menu-btn-bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; background: var(--ink); color: var(--text-inv); position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  gap: clamp(1rem, 3vw, 4rem); padding: 7rem var(--gutter) 5rem; max-width: none;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 78% 50%, rgba(217,162,27,.16), transparent 70%);
}
.hero-text { position: relative; z-index: 2; max-width: 40rem; justify-self: end; width: 100%; }
.hero-title { display: block; margin-bottom: 1.75rem; }
.hero-name {
  display: block; font-family: var(--f-display); font-size: var(--fs-hero); line-height: .92;
  letter-spacing: -.035em; font-variation-settings: "opsz" 96;
}
.hero-sub {
  display: block; margin-top: 1.1rem; font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.1; color: var(--ochre);
}
.hero-lead { font-size: var(--fs-lead); color: var(--text-inv-2); max-width: 32rem; line-height: 1.55; }
.hero-lead em { color: var(--text-inv); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-visual { position: relative; aspect-ratio: 1; width: min(100%, 44rem); justify-self: start; }
.sun {
  position: absolute; inset: 9%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(217,162,27,.35);
}
.sun img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-wheel { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ochre); opacity: .9; --wheel-hub: transparent; pointer-events: none; }
/* nell'eroe la ruota fa da cornice: i raggi interni si nascondono dietro la foto */
.hero-visual .sun { z-index: 1; }
.hero-wheel { z-index: 0; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; width: 1px; height: 3.5rem; background: rgba(244,236,221,.2); overflow: hidden; }
.scroll-cue span { position: absolute; inset: 0; background: var(--ochre); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* entrata */
.hero-text > *, .hero-visual { animation: rise 1.1s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .1s; }
.hero-text > :nth-child(3) { animation-delay: .22s; }
.hero-text > :nth-child(4) { animation-delay: .34s; }
.hero-visual { animation-name: sunrise; animation-duration: 1.6s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sunrise { from { opacity: 0; transform: scale(.92) rotate(-20deg); } to { opacity: 1; transform: none; } }

/* ---------- I · bio ---------- */
.grid-bio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.bio-photo { position: sticky; top: 6rem; }
.bio-photo img { width: 100%; aspect-ratio: 666/953; object-fit: cover; }
.bio-photo::after { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; border: 1px solid var(--ochre-deep); z-index: -1; }
.pull { margin: 0 0 2rem; padding: 0 0 0 1.5rem; border-left: 1px solid var(--vermilion); }
.pull p { font-family: var(--f-display); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.35; margin: 0; text-wrap: balance; }
.pull.small p { font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem); }
.manifesto { margin-top: 3rem; padding: 2rem 0 0; border-top: 1px solid var(--paper-line); }
.manifesto-src { font-style: italic; color: var(--text-2); font-size: .9375rem; margin-top: -.25rem; }
.manifesto-quote { font-family: var(--f-display); font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); line-height: 1.15; letter-spacing: -.015em; margin-bottom: 1rem; text-wrap: balance; }
.manifesto-body { color: var(--text-2); max-width: 36rem; }

/* ---------- II · cerchio ---------- */
.cerchio { overflow: hidden; }
.cerchio-wheel { position: absolute; width: min(70vw, 52rem); height: auto; aspect-ratio: 1; right: -16vw; top: 50%; translate: 0 -50%; color: var(--ochre); opacity: .1; --wheel-hub: transparent; pointer-events: none; }
.grid-cerchio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.poem p { font-family: var(--f-display); font-size: clamp(1.2rem, 1rem + .9vw, 1.65rem); line-height: 1.4; color: var(--text-inv); max-width: 30rem; margin-bottom: .9em; }
.poem-last { color: var(--ochre) !important; font-style: italic; }
.cerchio-photo img { width: 100%; aspect-ratio: 785/453; object-fit: cover; }
.cerchio-photo figcaption { margin-top: 1.25rem; color: var(--text-inv-2); font-size: .975rem; max-width: 30rem; border-top: 1px solid var(--ink-line); padding-top: 1rem; }

/* ---------- III · icona ---------- */
.section-head { margin-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.section-head .lead { max-width: 52rem; }
.chapters { display: grid; gap: clamp(3.5rem, 2rem + 5vw, 7rem); }
.chapter { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; }
.chapter-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.chapter-flip .chapter-img { order: 2; }
.chapter-img { overflow: hidden; }
.chapter-img img { width: 100%; transition: transform 1.2s var(--ease); }
#icona { padding-bottom: 0; }
[id] { scroll-margin-top: 4.5rem; }
.chapter:hover .chapter-img img { transform: scale(1.03); }
.chapter-text p { color: var(--text-2); }
.chapter-lede { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; line-height: 1.4; color: var(--text) !important; }

.band { position: relative; margin-top: var(--section); min-height: 80vh; display: grid; align-items: end; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,20,15,.15) 0%, rgba(27,20,15,.55) 45%, rgba(27,20,15,.92) 100%); }
.band-text { position: relative; z-index: 1; max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 6rem var(--gutter) clamp(3rem, 6vw, 5rem); color: var(--text-inv); }
.band-text p { max-width: 40rem; color: var(--text-inv-2); }
.band-title { font-family: var(--f-display); font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3.4rem) !important; line-height: 1.05; color: var(--text-inv) !important; max-width: 52rem !important; letter-spacing: -.015em; text-wrap: balance; }

/* ---------- IV · anatomia ---------- */
.anatomia { padding-bottom: calc(var(--section) * .8); }
.anatomia-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.rail-controls { display: flex; gap: .5rem; flex: none; }
.rail-btn { appearance: none; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(244,236,221,.3); background: none; color: var(--text-inv); cursor: pointer; display: grid; place-items: center; transition: border-color .25s, color .25s; }
.rail-btn:hover { border-color: var(--ochre); color: var(--ochre); }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(16rem, 24vw, 22rem); gap: clamp(1rem, 2vw, 2rem);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 var(--gutter) 1.5rem; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--ochre) transparent;
}
@media (min-width: 1240px) { .rail { padding-inline: calc((100vw - var(--maxw)) / 2 + var(--gutter)); scroll-padding-inline: calc((100vw - var(--maxw)) / 2 + var(--gutter)); } }
.plate { scroll-snap-align: start; counter-increment: plate; }
.plate img { width: 100%; aspect-ratio: 4/5; object-fit: cover; margin-bottom: 1.1rem; }
.plate:nth-child(3) img { object-position: 75% 50%; }
.plate-name { font-family: var(--f-display); font-size: 1.5rem; line-height: 1.1; margin-bottom: .5rem; color: var(--text-inv); display: flex; gap: .6rem; align-items: baseline; }
.plate-name i { color: var(--text-inv-2); font-size: 1.1rem; }
.plate p:not(.plate-name) { font-size: .975rem; color: var(--text-inv-2); }
.rail { counter-reset: plate; }

/* ---------- V · glocal ---------- */
.grid-glocal { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "text quote" "photo photo" "aside aside"; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.glocal-text { grid-area: text; }
.glocal-quote { grid-area: quote; margin-bottom: 1rem; }
.glocal-photo { grid-area: photo; }
.glocal-photo img { width: 100%; }
.glocal-aside { grid-area: aside; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-top: clamp(2rem, 4vw, 4rem); border-top: 1px solid var(--paper-line); }
.glocal-aside img { width: 100%; aspect-ratio: 2/1; object-fit: cover; }
.glocal-aside p { color: var(--text-2); }

/* ---------- VI · cartelli ---------- */
.cartelli-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; margin-bottom: 2.5rem; }
/* il sole a raggi bianchi e blu dei pannelli dipinti */
.sunburst {
  width: clamp(8rem, 6rem + 10vw, 15rem); aspect-ratio: 1; border-radius: 50%; position: relative;
  background: repeating-conic-gradient(from 0deg, var(--cobalt) 0deg 7.5deg, var(--paper) 7.5deg 15deg);
  box-shadow: 0 0 0 6px var(--vermilion), 0 0 0 12px var(--ochre);
  display: grid; place-items: center;
}
.sunburst svg { width: 52%; height: 52%; color: var(--ochre); background: var(--ink); border-radius: 50%; padding: 8%; box-shadow: 0 0 0 4px var(--vermilion); }
.cartelli-intro { margin-bottom: clamp(3rem, 5vw, 5rem); columns: 2 22rem; column-gap: 3rem; }
.cartelli-intro p { max-width: none; }
.bills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(1rem, 2vw, 1.75rem); counter-reset: none; }
.bill {
  background: var(--paper); color: var(--text); position: relative;
  padding: 2.25rem 2rem 2rem; border: 3px solid var(--ochre);
  transition: transform .4s var(--ease);
}
/* doppia cornice dei cartelli dipinti */
.bill::before { content: ""; position: absolute; inset: 7px; border: 1px solid var(--vermilion); pointer-events: none; }
.bill:hover { transform: translateY(-4px) rotate(-.3deg); }
.bill:nth-child(even):hover { transform: translateY(-4px) rotate(.3deg); }
.bill-ep { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--vermilion); font-weight: 600; text-align: center; margin-bottom: .75rem; }
.bill-title { font-family: var(--f-display); font-size: clamp(1.4rem, 1.2rem + .6vw, 1.75rem); line-height: 1.12; text-align: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--paper-line); text-wrap: balance; }
.bill p:last-child { font-size: .975rem; color: var(--text-2); margin: 0; }

/* ---------- VII · tour ---------- */
.grid-tour { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.timeline { border-left: 1px solid var(--paper-line); }
.stop { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1.5rem; padding: 0 0 2.75rem 2rem; position: relative; }
.stop::before { content: ""; position: absolute; left: -7px; top: .35rem; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2px solid var(--vermilion); }
.stop:last-child { padding-bottom: 0; }
.stop-date { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--vermilion); font-weight: 600; line-height: 1.3; }
.stop-date b { display: block; font-family: var(--f-display); font-size: 2.75rem; line-height: 1; font-weight: 400; letter-spacing: 0; font-variant-numeric: lining-nums; }
.stop-title { font-family: var(--f-display); font-size: 1.45rem; line-height: 1.15; margin-bottom: .35rem; }
.stop-place { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre-deep); font-weight: 600; margin-bottom: .6rem; }
.stop p:not(.stop-place):not(.stop-date) { color: var(--text-2); }
.src { font-size: .875rem; color: var(--text); text-underline-offset: 3px; }
.src::after { content: " ↗"; }
.poster { position: sticky; top: 6rem; }
.poster img { width: 100%; box-shadow: 0 1px 0 var(--paper-line); }
.poster figcaption { font-style: italic; color: var(--text-2); font-size: .9375rem; margin-top: .75rem; }
.press { margin-top: clamp(3rem, 5vw, 5rem); padding-top: 1.5rem; border-top: 1px solid var(--paper-line); color: var(--text-2); font-size: .9375rem; }
.press a { color: var(--text); text-underline-offset: 3px; }

/* ---------- film ---------- */
.film-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.film-frame { padding: 10px; background: linear-gradient(var(--ochre), var(--ochre)) padding-box; border: 1px solid var(--ochre); outline: 1px solid var(--ink-line); outline-offset: 8px; }
.film-frame video { width: 100%; height: auto; aspect-ratio: 784/452; background: #000; }

/* ---------- contatti ---------- */
.grid-contatti { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.contact-card { padding: 2rem; background: var(--paper-2); border-top: 1px solid var(--vermilion); }
.contact-card .btn { width: 100%; word-break: break-all; }
.contact-note { margin: 1rem 0 0; color: var(--text-2); font-size: .9375rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--text-inv-2); padding: 3rem 0; font-size: .875rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.footer-grid p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--f-display); font-size: 1.25rem; color: var(--text-inv); }
.site-footer a { color: var(--text-inv); text-underline-offset: 3px; }

/* ---------- comparsa allo scorrimento ---------- */
.js .bill.reveal { opacity: 0; transform: translateY(32px) rotate(-.6deg); transition: opacity .8s var(--ease), transform .9s cubic-bezier(.16,1,.3,1); }
.js .bill.reveal:nth-child(2) { transition-delay: .08s; } .js .bill.reveal:nth-child(3) { transition-delay: .16s; }
.js .bill.reveal:nth-child(4) { transition-delay: .24s; } .js .bill.reveal:nth-child(5) { transition-delay: .32s; }
.js .bill.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .bill.reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .nav {
    position: fixed; inset: 0 0 auto 0; top: 0; padding: 5.5rem var(--gutter) 2rem;
    flex-direction: column; gap: 0; background: var(--ink); border-bottom: 1px solid var(--ink-line);
    transform: translateY(-105%); transition: transform .45s var(--ease); z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a { font-family: var(--f-display); text-transform: none; letter-spacing: 0; font-size: 1.75rem; padding: .7rem 0; border-bottom: 1px solid var(--ink-line); }
  .nav a::after { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 6rem; gap: 0; text-align: left; }
  .hero-visual { order: -1; width: min(82vw, 26rem); justify-self: center; margin-bottom: 1.5rem; }
  .hero-text { justify-self: start; }
  .scroll-cue { display: none; }
  .grid-bio, .grid-cerchio, .chapter, .chapter-flip, .grid-tour, .film-wrap, .grid-contatti, .glocal-aside { grid-template-columns: 1fr; }
  .chapter-flip .chapter-img { order: 0; }
  .bio-photo, .poster { position: relative; top: 0; }
  .bio-photo { max-width: 26rem; }
  .grid-glocal { grid-template-columns: 1fr; grid-template-areas: "text" "quote" "photo" "aside"; }
  .glocal-photo img { aspect-ratio: 4/3; object-fit: cover; object-position: 80% 50%; }
  .cartelli-head { grid-template-columns: 1fr; }
  .anatomia-head { flex-direction: column; align-items: start; }
  .rail-controls { display: none; }
  .rail { grid-auto-columns: 78vw; }
  .band { min-height: 70vh; }
  .footer-grid { grid-template-columns: 1fr; gap: 1rem; }
  .stop { grid-template-columns: 1fr; gap: .25rem; padding-left: 1.5rem; }
}
@media (max-width: 420px) {
  .brand span { font-size: 1.1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* superfici del browser */
::selection { background: var(--ochre); color: var(--ink); }
html { scrollbar-color: var(--ochre-deep) var(--ink); accent-color: var(--vermilion); caret-color: var(--vermilion); }
