/* ==========================================================================
   Matteo Ilardo — Composer · stile "E · Locandina" (v3, a colori)
   IDEA    il manifesto di un festival del cinema: grandi campiture di colore
           piene da bordo a bordo, titoli alti e stretti da insegna di sala,
           foto in bicromia (bianco e nero "tinto" nel colore della fascia)
   VOICE   energico, solare, sicuro di sé — ma ordinato e professionale
   COLOUR  carta chiara + inchiostro indaco; blu cobalto, corallo, giallo sole;
           ogni genere musicale ha il suo colore pieno (file data/genres.json)
   TYPE    Anton (titoli, da locandina) · Instrument Sans (testi ed etichette)
   LAYOUT  fasce colorate a tutta larghezza alternate a fasce chiare;
           bordi netti e ombre "a timbro" spostate, senza sfumature
   NOTE    Solo stile: HTML e JavaScript sono quelli della v1
   ========================================================================== */

/* ---------- Caratteri ospitati sul sito (26/11/2026) ----------
   Anton e Instrument Sans (licenza SIL OFL 1.1, file da Fontsource 5.3.0) sono
   in assets/fonts: il visitatore non si collega più a Google Fonts. */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-latin-ext-400-normal.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; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-latin-400-normal.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: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-sans-latin-ext-400-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/instrument-sans-latin-400-normal.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: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/instrument-sans-latin-ext-500-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/instrument-sans-latin-500-normal.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: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/instrument-sans-latin-ext-600-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/instrument-sans-latin-600-normal.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: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/instrument-sans-latin-ext-700-normal.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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/instrument-sans-latin-700-normal.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; }

:root {
  color-scheme: light;
  --paper: #FBF6EE;
  --white: #FFFFFF;
  --ink: #17143A;          /* indaco quasi nero */
  --ink-2: #4C4870;        /* testo secondario: contrasto AA su --paper */
  --line: rgba(23, 20, 58, .16);
  --cobalt: #2F3CE8;
  --coral: #FF5A43;
  --sun: #FFC83A;
  --mint: #34D399;
  --lilac: #B9A2FF;
  --light: #FBF6EE;
  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1280px;
  --pad: max(5vw, 20px);
  --r: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --band: var(--sun);      /* colore della fascia titolo di ogni pagina */
}
body[data-page="music"]    { --band: var(--sun); }
body[data-page="about"]    { --band: var(--mint); }
body[data-page="services"] { --band: var(--lilac); }
body[data-page="contact"]  { --band: var(--coral); }
body[data-page="privacy"]  { --band: var(--cobalt); }

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--sun); color: var(--ink); }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--light); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }
.grain { display: none; }  /* niente grana su tutta la pagina: dal 26/11 la grana sta solo sulle foto (vedi fondo del file) */


/* ---------- Testata e menu */
.top { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 2px solid var(--ink); }
.top-in {
  max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto;
  min-height: 74px; padding: 12px var(--pad);
  display: flex; align-items: center; gap: 36px;
}
/* Marchio: tre "note" colorate + nome da insegna */
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  font: 400 26px/1 var(--display); letter-spacing: .01em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
}
.brand::before {
  content: ""; flex: none; width: 34px; height: 34px;
  background: var(--logo) center / contain no-repeat;
  transition: transform .4s var(--pop);
}
.brand:hover::before { transform: rotate(-8deg) scale(1.08); }
.nav { flex: 1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 6px; }
.nav a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  font: 600 15px/1.2 var(--sans); text-decoration: none; color: var(--ink);
  transition: background-color .2s;
}
.nav a:hover { background: rgba(23, 20, 58, .07); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--light); }
.label { font: 600 13px/1.4 var(--sans); letter-spacing: .02em; color: var(--ink-2); text-decoration: none; }
.cta-top {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px;
  background: var(--coral); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  font: 700 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.cta-top:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.menu-btn {
  display: none; background: var(--sun); border: 2px solid var(--ink); border-radius: 999px;
  min-height: 44px; padding: 0 18px; font: 700 15px var(--sans); cursor: pointer;
}
@media (max-width: 1120px) {
  .top-in { flex-wrap: wrap; gap: 12px 20px; }
  .brand { flex: 1; font-size: 22px; }
  .menu-btn { display: inline-flex; align-items: center; }
  .cta-top { display: none; }
  .nav { flex-basis: 100%; display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 4px; padding: 8px 0 16px; }
  .nav a { display: block; padding: 14px 18px; font: 400 30px/1.1 var(--display); text-transform: uppercase; border-radius: 10px; }
}

/* ---------- Struttura e titoli */
.wrap { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.section { padding-top: clamp(80px, 10vw, 140px); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 44px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .95; letter-spacing: .005em; margin: 0; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(44px, 6.4vw, 92px); }
h3 { font-size: clamp(26px, 2.6vw, 34px); }
.intro { margin: 0; color: var(--ink-2); max-width: 40ch; font-size: 19px; line-height: 1.5; }
.more {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 40px;
  padding: 12px 22px; border: 2px solid currentColor; border-radius: 999px;
  font: 700 15px/1 var(--sans); text-decoration: none;
  transition: gap .3s var(--ease), background-color .2s, color .2s;
}
.more:hover { gap: 18px; background: var(--ink); color: var(--light); border-color: var(--ink); }

/* Fascia titolo delle pagine interne, nel colore della pagina */
.page-title {
  --bandc: var(--band);
  box-shadow: 0 0 0 100vmax var(--bandc); clip-path: inset(0 -100vmax); background: var(--bandc);
  padding-top: clamp(56px, 8vw, 120px); padding-bottom: clamp(48px, 6vw, 88px);
}
.page-title h1 { font-size: clamp(72px, 13vw, 210px); line-height: .86; }
.page-title p { margin: 28px 0 0; max-width: 54ch; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; font-weight: 500; }
body[data-page="privacy"] .page-title { color: var(--light); }
body[data-page="contact"] .page-title h1 { font-size: clamp(56px, 9vw, 150px); }

/* ---------- Apertura Home: fascia cobalto con foto in bicromia */
.hero {
  position: relative; overflow: hidden; background: var(--cobalt);
  width: 100vw; margin-left: calc(50% - 50vw);
  height: calc(100svh - 74px); min-height: 540px; max-height: 960px;
}
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: grayscale(1) contrast(1.15) brightness(1.05); mix-blend-mode: multiply;
  animation: heroIn 1.6s var(--ease) both;
}
@keyframes heroIn { from { transform: scale(1.06); } to { transform: none; } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(23, 20, 58, .55) 100%);
}
.hero-txt {
  position: absolute; z-index: 1; color: var(--light);
  left: var(--pad); right: var(--pad); bottom: clamp(32px, 5vw, 72px);
  max-width: var(--max); margin: 0 auto;
}
.hero h1 {
  font-size: clamp(72px, 14.5vw, 250px); line-height: .88; letter-spacing: .005em;
  animation: rise 1s 1s var(--pop) both;
}
@keyframes rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
/* Claim come un'etichetta gialla attaccata al manifesto */
.hero p {
  display: inline-block; margin: 26px 0 0; padding: 10px 20px;
  background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  font: 700 clamp(15px, 1.3vw, 18px)/1.2 var(--sans);
  transform: rotate(-2deg); box-shadow: 4px 4px 0 var(--ink);
  animation: stick .8s 1.5s var(--pop) both;
}
@keyframes stick { from { transform: rotate(-12deg) scale(.6); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }

/* ---------- Immagini (a colori; al passaggio si sollevano) */
.reveal { position: relative; display: block; overflow: hidden; text-decoration: none; border-radius: var(--r); border: 2px solid var(--ink); background: var(--ink); }
.reveal img, .reveal video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.reveal:hover img, .reveal:hover video, .reveal:focus-visible img, .reveal.on img, .reveal.on video { transform: scale(1.04); }

/* ---------- Showreel */
.reel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.reel .label { display: inline-block; padding: 6px 14px; background: var(--mint); border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); }
.reel h2 { font-size: clamp(44px, 5vw, 76px); }
.reel-box {
  position: relative; aspect-ratio: 16 / 9; background: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden;
  box-shadow: 10px 10px 0 var(--coral);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.reel-box:hover { transform: translate(-3px, -3px); box-shadow: 14px 14px 0 var(--coral); }
.reel-box > .reveal, .reel-box video, .reel-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; }
.reel-box > .reveal { cursor: pointer; padding: 0; }
.corner { position: absolute; width: 30px; height: 30px; border: 0 solid var(--sun); z-index: 2; pointer-events: none; }
.c1 { top: 18px; left: 18px; border-top-width: 3px; border-left-width: 3px; }
.c2 { top: 18px; right: 18px; border-top-width: 3px; border-right-width: 3px; }
.c3 { bottom: 18px; left: 18px; border-bottom-width: 3px; border-left-width: 3px; }
.c4 { bottom: 18px; right: 18px; border-bottom-width: 3px; border-right-width: 3px; }
.play {
  position: absolute; top: 50%; left: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px;
  border-radius: 50%; display: grid; place-items: center; z-index: 2; pointer-events: none;
  background: var(--sun); border: 2px solid var(--ink);
  transition: transform .4s var(--pop);
}
.play svg { margin-left: 5px; }
.play path { stroke: var(--ink); fill: var(--ink); }
.reel-box:hover .play { transform: scale(1.12) rotate(-6deg); }
.reel-box.playing .corner, .reel-box.playing .play { display: none; }
@media (max-width: 800px) { .reel { grid-template-columns: minmax(0, 1fr); gap: 32px; } .reel-box { box-shadow: 6px 6px 0 var(--coral); } .play { width: 76px; height: 76px; margin: -38px 0 0 -38px; } }

/* ---------- Caselle dei generi: ogni genere nel suo colore pieno */
.genres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; display: flex; align-items: flex-end; justify-content: flex-start;
  min-height: 220px; padding: 26px 28px; cursor: pointer; text-align: left; text-decoration: none;
  background: var(--tone); color: var(--ink);
  border: 2px solid var(--ink); border-radius: var(--r);
  font: 400 clamp(30px, 3vw, 46px)/.95 var(--display); text-transform: uppercase;
  box-shadow: 0 0 0 var(--ink);
  transition: transform .3s var(--pop), box-shadow .3s var(--ease);
}
/* simbolo "play" disegnato nell'angolo */
.tile::after {
  content: ""; position: absolute; top: 22px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  transition: transform .3s var(--pop), background-color .2s;
}
.tile::before {
  content: ""; position: absolute; z-index: 1; top: 37px; right: 36px;
  border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent var(--ink);
  transition: transform .3s var(--pop);
}
.tile:hover, .tile:focus-visible, .tile[aria-expanded="true"] { transform: translate(-4px, -4px) rotate(-.6deg); box-shadow: 8px 8px 0 var(--ink); }
.tile:hover::after, .tile[aria-expanded="true"]::after { transform: scale(1.12); }
.tile:hover::before, .tile[aria-expanded="true"]::before { transform: scale(1.12); }
.tile:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 4px; }
.tile-line { display: block; margin: 16px 0 0; color: var(--ink-2); font-size: 17px; font-weight: 500; }
.feature .tile { min-height: 320px; font-size: clamp(36px, 3.8vw, 58px); }
@media (max-width: 800px) {
  .genres { grid-template-columns: minmax(0, 1fr); }
  .tile, .feature .tile { min-height: 150px; padding: 22px; }
}

/* Pannello dei brani */
.panel {
  grid-column: 1 / -1; background: var(--white);
  border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden;
  box-shadow: 8px 8px 0 var(--tone);
  padding: 0 28px 28px;
}
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  margin: 0 -28px 8px; padding: 18px 28px; background: var(--tone); border-bottom: 2px solid var(--ink);
}
.panel-head h2 { font-size: 40px !important; }
.panel-head .label { color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; }
.tracks { list-style: none; margin: 0; padding: 0; }
.track {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 18px;
  padding: 10px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); border-radius: 10px;
  transition: background-color .2s;
}
.track:hover { background: rgba(23, 20, 58, .05); }
.track .t-title { font-size: 17px; font-weight: 600; }
.track .t-meta { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
/* Bollino "New" (acceso dal pannello): etichetta corallo "a timbro"; al passaggio del
   mouse, alla tastiera o toccandolo compare il fumetto "Added on <data>" */
.t-new {
  position: relative; display: inline-block; vertical-align: 2px; margin-left: 8px;
  padding: 2px 8px 1px; background: var(--coral); color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink);
  font: 700 11px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  transform: rotate(-3deg); cursor: default; white-space: nowrap;
}
.t-new[data-tip] { cursor: help; }
.t-new[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translate(-50%, 4px) rotate(3deg); z-index: 5; pointer-events: none;
  padding: 6px 10px; background: var(--ink); color: var(--light); border-radius: 8px;
  font: 600 13px/1.3 var(--sans); letter-spacing: 0; text-transform: none;
  opacity: 0; transition: opacity .15s, transform .15s;
}
.t-new[data-tip]::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); z-index: 5; pointer-events: none;
  border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ink);
  transform: translate(-50%, 4px); opacity: 0; transition: opacity .15s, transform .15s;
}
.t-new[data-tip]:hover::after, .t-new[data-tip]:focus-visible::after, .t-new[data-tip].open::after { opacity: 1; transform: translate(-50%, 0) rotate(3deg); }
.t-new[data-tip]:hover::before, .t-new[data-tip]:focus-visible::before, .t-new[data-tip].open::before { opacity: 1; transform: translate(-50%, 0); }
.t-new:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .t-new[data-tip]::after, .t-new[data-tip]::before { transition: none; } }
.pbtn {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper);
  display: grid; place-items: center; cursor: pointer; color: var(--ink);
  transition: transform .25s var(--pop), background-color .2s;
}
.pbtn:hover { background: var(--sun); transform: scale(1.08); }
.track.current { background: color-mix(in srgb, var(--tone) 30%, transparent); }
.track.current .pbtn { background: var(--ink); color: var(--light); }
.panel-cta { margin: 24px 0 0; color: var(--ink-2); font-weight: 500; }
.panel-cta a { color: var(--ink); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--coral); }
@media (max-width: 600px) {
  .track { grid-template-columns: 44px minmax(0, 1fr); } .track .t-meta { grid-column: 2; }
  .panel { padding: 0 16px 20px; } .panel-head { margin: 0 -16px 8px; padding: 14px 16px; }
}

/* ---------- Player fisso in basso (pagina Music) */
.player {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80;
  background: var(--ink); color: var(--light);
  border: 2px solid var(--ink); border-radius: 18px;
  transform: translateY(150%); visibility: hidden;
  transition: transform .45s var(--pop), visibility 0s linear .45s;
}
.player.show { transform: none; visibility: visible; transition-delay: 0s; box-shadow: 6px 6px 0 var(--sun); }
.player-in { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 12px 20px; display: grid; grid-template-columns: 44px minmax(0, 220px) minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.player .pbtn { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.p-title { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-genre { font-size: 13px; font-weight: 600; color: var(--sun); }
.wave { position: relative; height: 44px; cursor: pointer; }
.wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-time { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .85; }
.p-note { grid-column: 2 / -1; margin: 0; font-size: 13px; opacity: .8; }
body.has-player { padding-bottom: 120px; }
@media (max-width: 700px) { .player-in { grid-template-columns: 44px minmax(0, 1fr) auto; } .wave { grid-column: 1 / -1; order: 5; height: 36px; } }

/* ---------- Locandine */
.posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.posters.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.poster .reveal { aspect-ratio: 5 / 7; transition: transform .35s var(--pop), box-shadow .35s var(--ease); }
.poster:hover .reveal { transform: translate(-4px, -4px) rotate(-1deg); box-shadow: 8px 8px 0 var(--sun); }
.poster:nth-child(3n+2):hover .reveal { box-shadow: 8px 8px 0 var(--coral); transform: translate(-4px, -4px) rotate(1deg); }
.poster:nth-child(3n):hover .reveal { box-shadow: 8px 8px 0 var(--mint); }
.poster p { margin: 18px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.poster strong { display: block; margin-bottom: 4px; font: 400 26px/1.05 var(--display); text-transform: uppercase; color: var(--ink); }
@media (max-width: 960px) { .posters.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .posters, .posters.four { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Righe a tabella (servizi in breve, altri crediti) */
.rows { border-top: 2px solid var(--ink); margin: 0; padding: 0; list-style: none; }
.rows li {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 8px 48px; align-items: baseline;
  padding: 26px 0; border-bottom: 2px solid var(--ink);
}
.rows .label { font: 400 clamp(28px, 2.6vw, 38px)/1 var(--display); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
.rows .r-txt { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; font-weight: 500; }
.rows .r-txt small { display: block; margin-top: 6px; font-size: 15px; font-weight: 400; color: var(--ink-2); }
@media (max-width: 700px) { .rows li { grid-template-columns: minmax(0, 1fr); padding: 22px 0; } }

/* ---------- Blocchi alterni foto/testo */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 96px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .media { border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 10px 10px 0 var(--cobalt); background: var(--cobalt); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.prose p { margin: 0 0 1.1em; max-width: 60ch; }
.prose p:first-child { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; font-weight: 500; }
.prose p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } .split .media { box-shadow: 6px 6px 0 var(--cobalt); } }

/* Servizi: ogni video con l'ombra di un colore diverso */
.service { padding: clamp(48px, 7vw, 96px) 0; border-top: 2px solid var(--ink); }
.service:first-child { border-top: 0; padding-top: 0; }
.service .reveal { aspect-ratio: 4 / 3; box-shadow: 10px 10px 0 var(--sc, var(--coral)); }
.service:nth-child(6n+1) { --sc: var(--coral); }
.service:nth-child(6n+2) { --sc: var(--sun); }
.service:nth-child(6n+3) { --sc: var(--cobalt); }
.service:nth-child(6n+4) { --sc: var(--mint); }
.service:nth-child(6n+5) { --sc: var(--lilac); }
.service:nth-child(6n)   { --sc: var(--ink); }
.service h2 { margin-bottom: 22px; font-size: clamp(48px, 6vw, 88px); }
.service h2::after { content: ""; display: block; width: 64px; height: 8px; margin-top: 20px; border-radius: 4px; background: var(--sc); border: 2px solid var(--ink); }
.service .prose p:first-child { font-size: 17px; font-weight: 400; line-height: 1.6; }

/* Testimonianza: scheda lilla */
.quote {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center;
  padding: clamp(28px, 5vw, 64px); background: var(--lilac);
  border: 2px solid var(--ink); border-radius: calc(var(--r) * 1.4);
  box-shadow: 10px 10px 0 var(--ink);
}
.quote img { width: 100%; height: auto; aspect-ratio: 685 / 890; object-fit: cover; border-radius: var(--r); border: 2px solid var(--ink); transform: rotate(-2deg); }
.quote blockquote { margin: 0; font: 500 clamp(22px, 2.5vw, 34px)/1.35 var(--sans); letter-spacing: -.01em; }
.quote figcaption { margin-top: 24px; font-weight: 700; font-size: 16px; }
.flag { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; background: var(--ink); color: var(--light); padding: 4px 10px; border-radius: 6px; }
@media (max-width: 680px) { .quote { grid-template-columns: minmax(0, 1fr); box-shadow: 6px 6px 0 var(--ink); } .quote img { max-width: 170px; } }

/* ---------- Chiamata al contatto: grande scheda corallo */
.cta {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch; overflow: hidden;
  background: var(--coral); border: 2px solid var(--ink); border-radius: calc(var(--r) * 1.6);
  box-shadow: 12px 12px 0 var(--ink);
}
.cta .media { min-height: 420px; order: 2; background: var(--coral); border-left: 2px solid var(--ink); }
.cta .media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
.cta .txt { display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: clamp(32px, 5vw, 72px); }
.cta h2 { font-size: clamp(52px, 6.6vw, 104px); line-height: .9; }
.btn {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 28px;
  background: var(--sun); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); background: var(--white); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
@media (max-width: 800px) {
  .cta { grid-template-columns: minmax(0, 1fr); box-shadow: 6px 6px 0 var(--ink); }
  .cta .media { min-height: 240px; order: 0; border-left: 0; border-bottom: 2px solid var(--ink); }
}

/* ---------- Modulo di contatto */
.form { display: grid; gap: 22px; max-width: 680px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field textarea {
  font: 16px/1.5 var(--sans); color: var(--ink); background: var(--white);
  border: 2px solid var(--ink); border-radius: 10px; padding: 13px 16px;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--cobalt); transform: translate(-2px, -2px); }
.field textarea { min-height: 180px; resize: vertical; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.form .btn { margin-top: 6px; justify-self: start; }
.status { margin: 0; min-height: 1.6em; font-weight: 600; }
.hp { position: absolute; left: -9999px; }
.status a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.status a:hover { color: var(--cobalt); }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.contact-side {
  display: grid; gap: 28px; align-content: start; padding: clamp(24px, 3vw, 36px);
  background: var(--sun); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 8px 8px 0 var(--ink);
}
.contact-side p { margin: 0; font-size: 18px; font-weight: 600; }
.contact-side .label { color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.contact-side a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.contact-side a:hover { color: var(--cobalt); }
.contact-side .media { border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; background: var(--cobalt); }
.contact-side .media img { filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
@media (max-width: 600px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Fasce colorate della Home (dall'alto: blu, chiaro, chiaro, indaco, giallo, chiaro) */
body[data-page="home"] main > section:nth-of-type(5),
body[data-page="about"] main > section:nth-of-type(2) {
  --bandc: var(--ink);
  box-shadow: 0 0 0 100vmax var(--bandc); clip-path: inset(0 -100vmax); background: var(--bandc);
  color: var(--light); margin-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 130px);
}
body[data-page="home"] main > section:nth-of-type(5) .intro,
body[data-page="about"] main > section:nth-of-type(2) .intro,
body[data-page="home"] main > section:nth-of-type(5) .poster p,
body[data-page="about"] main > section:nth-of-type(2) .poster p { color: rgba(251, 246, 238, .75); }
body[data-page="home"] main > section:nth-of-type(5) .poster strong,
body[data-page="about"] main > section:nth-of-type(2) .poster strong { color: var(--light); }
body[data-page="home"] main > section:nth-of-type(5) .reveal,
body[data-page="about"] main > section:nth-of-type(2) .reveal { border-color: var(--light); }
body[data-page="home"] main > section:nth-of-type(5) .more:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }

body[data-page="home"] main > section:nth-of-type(6) {
  --bandc: var(--sun);
  box-shadow: 0 0 0 100vmax var(--bandc); clip-path: inset(0 -100vmax); background: var(--bandc);
  padding-bottom: clamp(80px, 10vw, 130px);
}
body[data-page="home"] main > section:nth-of-type(5) + section { padding-top: clamp(80px, 10vw, 130px); }

/* ---------- Piè di pagina: fascia indaco */
.foot { position: relative; margin-top: clamp(110px, 13vw, 175px); background: var(--ink); color: var(--light); }
.foot-in { max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 36px var(--pad); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; font-size: 15px; font-weight: 500; }
.foot a { text-decoration: none; padding: 6px 14px; border: 2px solid rgba(251, 246, 238, .3); border-radius: 999px; transition: background-color .2s, color .2s, border-color .2s; }
.foot a:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   IL MORDENTE INFERIORE (logo) COME FIRMA DEL SITO
   il simbolo originale (glifo Bravura, da Dorico): ritorna nel logo, nei bordi
   nei separatori dei titoli, nel cursore e nell'apertura (i bordi delle fasce sono a onda sonora)
   ========================================================================== */
:root {
  /* logo: quadrato blu con il mordente color carta (come il favicon) */
  --logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='14' fill='%232F3CE8'/%3E%3Cpath transform='translate%287.2 40.3%29 scale%281.7%29' fill='%23FBF6EE' d='M15.16,-7.36 L15.16,-12.76 L13.92,-12.76 L13.92,-6 L12.76,-4.64 C12.6,-4.44 12.36,-4.44 12.2,-4.64 C10.76,-6.32 8.6,-8.8 8.4,-9.08 C8.08,-9.4 7.84,-9.76 7.16,-9.8 C6.8,-9.8 6.6,-9.68 6.28,-9.44 L0.56,-2.96 C0.32,-2.72 0.04,-2.32 0.04,-2.04 C0.04,-1.8 0.24,-1.64 0.84,-1.64 C1.48,-1.64 2.04,-2.2 2.44,-2.6 C2.96,-3.04 3.44,-3.52 4,-3.96 C4.4,-4.28 4.68,-4.48 4.88,-4.48 C5.08,-4.48 5.24,-4.32 5.48,-4 L8.96,-0.28 C9.12,-0.08 9.44,0 9.76,0 C10.04,0 10.32,-0.08 10.48,-0.24 C10.88,-0.48 13.2,-2.6 13.84,-3.16 L13.84,2.92 L15.12,2.92 L15.12,-4.24 C15.28,-4.36 15.44,-4.44 15.6,-4.44 C15.8,-4.44 16,-4.32 16.24,-4 C16.4,-3.76 19.36,-0.68 19.72,-0.28 C19.88,-0.08 20.2,0 20.48,0 C20.8,0 21.08,-0.08 21.24,-0.24 C21.56,-0.48 28.08,-7.6 28.6,-8.2 L28.68,-8.32 C28.92,-8.56 29.16,-8.84 29.16,-9.12 C29.16,-9.52 28.44,-9.8 28.12,-9.8 C27.84,-9.8 27.6,-9.68 27.4,-9.52 C26.96,-9.16 24.2,-5.72 23.72,-5.28 C23.4,-5 23.2,-4.88 23,-4.88 C22.72,-4.88 22.48,-5.08 22.28,-5.28 C21.96,-5.6 19.32,-8.88 18.92,-9.24 C18.56,-9.56 18.24,-9.8 17.92,-9.8 C17.6,-9.8 17.4,-9.72 17.04,-9.44 C16.68,-9.16 16.4,-8.76 16.12,-8.44 L15.16,-7.36'/%3E%3C/svg%3E");
  /* il segno da solo, usato come "stampo" che prende il colore che serve */
  --mordent: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-0.4 -13.3 30 16.8'%3E%3Cpath d='M15.16,-7.36 L15.16,-12.76 L13.92,-12.76 L13.92,-6 L12.76,-4.64 C12.6,-4.44 12.36,-4.44 12.2,-4.64 C10.76,-6.32 8.6,-8.8 8.4,-9.08 C8.08,-9.4 7.84,-9.76 7.16,-9.8 C6.8,-9.8 6.6,-9.68 6.28,-9.44 L0.56,-2.96 C0.32,-2.72 0.04,-2.32 0.04,-2.04 C0.04,-1.8 0.24,-1.64 0.84,-1.64 C1.48,-1.64 2.04,-2.2 2.44,-2.6 C2.96,-3.04 3.44,-3.52 4,-3.96 C4.4,-4.28 4.68,-4.48 4.88,-4.48 C5.08,-4.48 5.24,-4.32 5.48,-4 L8.96,-0.28 C9.12,-0.08 9.44,0 9.76,0 C10.04,0 10.32,-0.08 10.48,-0.24 C10.88,-0.48 13.2,-2.6 13.84,-3.16 L13.84,2.92 L15.12,2.92 L15.12,-4.24 C15.28,-4.36 15.44,-4.44 15.6,-4.44 C15.8,-4.44 16,-4.32 16.24,-4 C16.4,-3.76 19.36,-0.68 19.72,-0.28 C19.88,-0.08 20.2,0 20.48,0 C20.8,0 21.08,-0.08 21.24,-0.24 C21.56,-0.48 28.08,-7.6 28.6,-8.2 L28.68,-8.32 C28.92,-8.56 29.16,-8.84 29.16,-9.12 C29.16,-9.52 28.44,-9.8 28.12,-9.8 C27.84,-9.8 27.6,-9.68 27.4,-9.52 C26.96,-9.16 24.2,-5.72 23.72,-5.28 C23.4,-5 23.2,-4.88 23,-4.88 C22.72,-4.88 22.48,-5.08 22.28,-5.28 C21.96,-5.6 19.32,-8.88 18.92,-9.24 C18.56,-9.56 18.24,-9.8 17.92,-9.8 C17.6,-9.8 17.4,-9.72 17.04,-9.44 C16.68,-9.16 16.4,-8.76 16.12,-8.44 L15.16,-7.36'/%3E%3C/svg%3E");
  /* bordo a onda sonora: barre di altezza variabile, come una forma d'onda */
  --wave-cut: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 24' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1V10.9H4V0H6V10.5H9V0H11V15.5H14V0H16V10.3H19V0H21V13.7H24V0H26V11.5H29V0H31V8.4H34V0H36V11.2H39V0H41V8.0H44V0H46V11.1H49V0H51V8.8H54V0H56V9.2H59V0H61V11.8H64V0H66V14.9H69V0H71V9.5H74V0H76V10.5H79V0H81V14.5H84V0H86V18.3H89V0H91V15.9H94V0H96V14.6H99V0H101V19.9H104V0H106V10.3H109V0H111V15.7H114V0H116V9.6H119V0H121V7.4H124V0H126V6.3H129V0H131V6.5H134V0H136V8.1H139V0H141V4.8H144V0H146V5.5H149V0H151V4.7H154V0H156V3.2H159V0H161V3.3H164V0H166V3H169V0H171V3.3H174V0H176V4.8H179V0H181V8.0H184V0H186V7.8H189V0H191V7.6H194V0H196V8.9H199V0H201V7.8H204V0H206V6.6H209V0H211V8.7H214V0H216V8.4H219V0H221V6.5H224V0H226V8.3H229V0H231V7.9H234V0H236V9.3H239V0H241V8.2H244V0H246V6.1H249V0H251V9.7H254V0H256V6.6H259V0H261V9.8H264V0H266V14.2H269V0H271V10.9H274V0H276V15.0H279V0H281V11.2H284V0H286V17.6H289V0H291V18.5H294V0H296V16.5H299V0H301V19.5H304V0H306V13.9H309V0H311V17.4H314V0H316V15.7H319V0H321V14.3H324V0H326V11.7H329V0H331V12.6H334V0H336V11.6H339V0H341V8.3H344V0H346V9.2H349V0H351V6.4H354V0H356V10.6H359V0H361V10.8H364V0H366V13.0H369V0H371V11.6H374V0H376V8.0H379V0H381V8.3H384V0H386V9.7H389V0H391V6.2H394V0H396V8.6H399V0H401V6.7H404V0H406V5.8H409V0H411V4.6H414V0H416V5.6H419V0H421V3H424V0H426V3H429V0H431V3H434V0H436V3.5H439V0H441V3H444V0H446V4.7H449V0H451V5.9H454V0H456V8.1H459V0H461V8.7H464V0H466V9.9H469V0H471V8.0H474V0H476V10.1H479V0H480V24H0Z'/%3E%3C/svg%3E");
  --wave-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 24' preserveAspectRatio='none'%3E%3Crect x='1' y='13.1' width='3' height='10.9' rx='1.5'/%3E%3Crect x='6' y='13.5' width='3' height='10.5' rx='1.5'/%3E%3Crect x='11' y='8.5' width='3' height='15.5' rx='1.5'/%3E%3Crect x='16' y='13.7' width='3' height='10.3' rx='1.5'/%3E%3Crect x='21' y='10.3' width='3' height='13.7' rx='1.5'/%3E%3Crect x='26' y='12.5' width='3' height='11.5' rx='1.5'/%3E%3Crect x='31' y='15.6' width='3' height='8.4' rx='1.5'/%3E%3Crect x='36' y='12.8' width='3' height='11.2' rx='1.5'/%3E%3Crect x='41' y='16.0' width='3' height='8.0' rx='1.5'/%3E%3Crect x='46' y='12.9' width='3' height='11.1' rx='1.5'/%3E%3Crect x='51' y='15.2' width='3' height='8.8' rx='1.5'/%3E%3Crect x='56' y='14.8' width='3' height='9.2' rx='1.5'/%3E%3Crect x='61' y='12.2' width='3' height='11.8' rx='1.5'/%3E%3Crect x='66' y='9.1' width='3' height='14.9' rx='1.5'/%3E%3Crect x='71' y='14.5' width='3' height='9.5' rx='1.5'/%3E%3Crect x='76' y='13.5' width='3' height='10.5' rx='1.5'/%3E%3Crect x='81' y='9.5' width='3' height='14.5' rx='1.5'/%3E%3Crect x='86' y='5.699999999999999' width='3' height='18.3' rx='1.5'/%3E%3Crect x='91' y='8.1' width='3' height='15.9' rx='1.5'/%3E%3Crect x='96' y='9.4' width='3' height='14.6' rx='1.5'/%3E%3Crect x='101' y='4.100000000000001' width='3' height='19.9' rx='1.5'/%3E%3Crect x='106' y='13.7' width='3' height='10.3' rx='1.5'/%3E%3Crect x='111' y='8.3' width='3' height='15.7' rx='1.5'/%3E%3Crect x='116' y='14.4' width='3' height='9.6' rx='1.5'/%3E%3Crect x='121' y='16.6' width='3' height='7.4' rx='1.5'/%3E%3Crect x='126' y='17.7' width='3' height='6.3' rx='1.5'/%3E%3Crect x='131' y='17.5' width='3' height='6.5' rx='1.5'/%3E%3Crect x='136' y='15.9' width='3' height='8.1' rx='1.5'/%3E%3Crect x='141' y='19.2' width='3' height='4.8' rx='1.5'/%3E%3Crect x='146' y='18.5' width='3' height='5.5' rx='1.5'/%3E%3Crect x='151' y='19.3' width='3' height='4.7' rx='1.5'/%3E%3Crect x='156' y='20.8' width='3' height='3.2' rx='1.5'/%3E%3Crect x='161' y='20.7' width='3' height='3.3' rx='1.5'/%3E%3Crect x='166' y='21' width='3' height='3' rx='1.5'/%3E%3Crect x='171' y='20.7' width='3' height='3.3' rx='1.5'/%3E%3Crect x='176' y='19.2' width='3' height='4.8' rx='1.5'/%3E%3Crect x='181' y='16.0' width='3' height='8.0' rx='1.5'/%3E%3Crect x='186' y='16.2' width='3' height='7.8' rx='1.5'/%3E%3Crect x='191' y='16.4' width='3' height='7.6' rx='1.5'/%3E%3Crect x='196' y='15.1' width='3' height='8.9' rx='1.5'/%3E%3Crect x='201' y='16.2' width='3' height='7.8' rx='1.5'/%3E%3Crect x='206' y='17.4' width='3' height='6.6' rx='1.5'/%3E%3Crect x='211' y='15.3' width='3' height='8.7' rx='1.5'/%3E%3Crect x='216' y='15.6' width='3' height='8.4' rx='1.5'/%3E%3Crect x='221' y='17.5' width='3' height='6.5' rx='1.5'/%3E%3Crect x='226' y='15.7' width='3' height='8.3' rx='1.5'/%3E%3Crect x='231' y='16.1' width='3' height='7.9' rx='1.5'/%3E%3Crect x='236' y='14.7' width='3' height='9.3' rx='1.5'/%3E%3Crect x='241' y='15.8' width='3' height='8.2' rx='1.5'/%3E%3Crect x='246' y='17.9' width='3' height='6.1' rx='1.5'/%3E%3Crect x='251' y='14.3' width='3' height='9.7' rx='1.5'/%3E%3Crect x='256' y='17.4' width='3' height='6.6' rx='1.5'/%3E%3Crect x='261' y='14.2' width='3' height='9.8' rx='1.5'/%3E%3Crect x='266' y='9.8' width='3' height='14.2' rx='1.5'/%3E%3Crect x='271' y='13.1' width='3' height='10.9' rx='1.5'/%3E%3Crect x='276' y='9.0' width='3' height='15.0' rx='1.5'/%3E%3Crect x='281' y='12.8' width='3' height='11.2' rx='1.5'/%3E%3Crect x='286' y='6.399999999999999' width='3' height='17.6' rx='1.5'/%3E%3Crect x='291' y='5.5' width='3' height='18.5' rx='1.5'/%3E%3Crect x='296' y='7.5' width='3' height='16.5' rx='1.5'/%3E%3Crect x='301' y='4.5' width='3' height='19.5' rx='1.5'/%3E%3Crect x='306' y='10.1' width='3' height='13.9' rx='1.5'/%3E%3Crect x='311' y='6.600000000000001' width='3' height='17.4' rx='1.5'/%3E%3Crect x='316' y='8.3' width='3' height='15.7' rx='1.5'/%3E%3Crect x='321' y='9.7' width='3' height='14.3' rx='1.5'/%3E%3Crect x='326' y='12.3' width='3' height='11.7' rx='1.5'/%3E%3Crect x='331' y='11.4' width='3' height='12.6' rx='1.5'/%3E%3Crect x='336' y='12.4' width='3' height='11.6' rx='1.5'/%3E%3Crect x='341' y='15.7' width='3' height='8.3' rx='1.5'/%3E%3Crect x='346' y='14.8' width='3' height='9.2' rx='1.5'/%3E%3Crect x='351' y='17.6' width='3' height='6.4' rx='1.5'/%3E%3Crect x='356' y='13.4' width='3' height='10.6' rx='1.5'/%3E%3Crect x='361' y='13.2' width='3' height='10.8' rx='1.5'/%3E%3Crect x='366' y='11.0' width='3' height='13.0' rx='1.5'/%3E%3Crect x='371' y='12.4' width='3' height='11.6' rx='1.5'/%3E%3Crect x='376' y='16.0' width='3' height='8.0' rx='1.5'/%3E%3Crect x='381' y='15.7' width='3' height='8.3' rx='1.5'/%3E%3Crect x='386' y='14.3' width='3' height='9.7' rx='1.5'/%3E%3Crect x='391' y='17.8' width='3' height='6.2' rx='1.5'/%3E%3Crect x='396' y='15.4' width='3' height='8.6' rx='1.5'/%3E%3Crect x='401' y='17.3' width='3' height='6.7' rx='1.5'/%3E%3Crect x='406' y='18.2' width='3' height='5.8' rx='1.5'/%3E%3Crect x='411' y='19.4' width='3' height='4.6' rx='1.5'/%3E%3Crect x='416' y='18.4' width='3' height='5.6' rx='1.5'/%3E%3Crect x='421' y='21' width='3' height='3' rx='1.5'/%3E%3Crect x='426' y='21' width='3' height='3' rx='1.5'/%3E%3Crect x='431' y='21' width='3' height='3' rx='1.5'/%3E%3Crect x='436' y='20.5' width='3' height='3.5' rx='1.5'/%3E%3Crect x='441' y='21' width='3' height='3' rx='1.5'/%3E%3Crect x='446' y='19.3' width='3' height='4.7' rx='1.5'/%3E%3Crect x='451' y='18.1' width='3' height='5.9' rx='1.5'/%3E%3Crect x='456' y='15.9' width='3' height='8.1' rx='1.5'/%3E%3Crect x='461' y='15.3' width='3' height='8.7' rx='1.5'/%3E%3Crect x='466' y='14.1' width='3' height='9.9' rx='1.5'/%3E%3Crect x='471' y='16.0' width='3' height='8.0' rx='1.5'/%3E%3Crect x='476' y='13.9' width='3' height='10.1' rx='1.5'/%3E%3Crect y='22' width='480' height='2'/%3E%3C/svg%3E");
  --wh: 24px;   /* altezza dell'onda */
  --ww: 480px;  /* larghezza di un giro di onda (poi si ripete) */
  /* cursore: bottone giallo con il mordente */
  --cur: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Ccircle cx='22' cy='22' r='20' fill='%23FFC83A' stroke='%2317143A' stroke-width='2'/%3E%3Cpath transform='translate%288.1 26.7%29 scale%28.95%29' fill='%2317143A' d='M15.16,-7.36 L15.16,-12.76 L13.92,-12.76 L13.92,-6 L12.76,-4.64 C12.6,-4.44 12.36,-4.44 12.2,-4.64 C10.76,-6.32 8.6,-8.8 8.4,-9.08 C8.08,-9.4 7.84,-9.76 7.16,-9.8 C6.8,-9.8 6.6,-9.68 6.28,-9.44 L0.56,-2.96 C0.32,-2.72 0.04,-2.32 0.04,-2.04 C0.04,-1.8 0.24,-1.64 0.84,-1.64 C1.48,-1.64 2.04,-2.2 2.44,-2.6 C2.96,-3.04 3.44,-3.52 4,-3.96 C4.4,-4.28 4.68,-4.48 4.88,-4.48 C5.08,-4.48 5.24,-4.32 5.48,-4 L8.96,-0.28 C9.12,-0.08 9.44,0 9.76,0 C10.04,0 10.32,-0.08 10.48,-0.24 C10.88,-0.48 13.2,-2.6 13.84,-3.16 L13.84,2.92 L15.12,2.92 L15.12,-4.24 C15.28,-4.36 15.44,-4.44 15.6,-4.44 C15.8,-4.44 16,-4.32 16.24,-4 C16.4,-3.76 19.36,-0.68 19.72,-0.28 C19.88,-0.08 20.2,0 20.48,0 C20.8,0 21.08,-0.08 21.24,-0.24 C21.56,-0.48 28.08,-7.6 28.6,-8.2 L28.68,-8.32 C28.92,-8.56 29.16,-8.84 29.16,-9.12 C29.16,-9.52 28.44,-9.8 28.12,-9.8 C27.84,-9.8 27.6,-9.68 27.4,-9.52 C26.96,-9.16 24.2,-5.72 23.72,-5.28 C23.4,-5 23.2,-4.88 23,-4.88 C22.72,-4.88 22.48,-5.08 22.28,-5.28 C21.96,-5.6 19.32,-8.88 18.92,-9.24 C18.56,-9.56 18.24,-9.8 17.92,-9.8 C17.6,-9.8 17.4,-9.72 17.04,-9.44 C16.68,-9.16 16.4,-8.76 16.12,-8.44 L15.16,-7.36'/%3E%3C/svg%3E") 22 22, pointer;
}

/* Fasce colorate e fasce titolo: finiscono con il profilo di una forma d'onda
   (le barre "pendono" dalla fascia; tra una barra e l'altra si vede il colore che viene dopo) */
.page-title,
body[data-page="home"] main > section:nth-of-type(5),
body[data-page="home"] main > section:nth-of-type(6),
body[data-page="about"] main > section:nth-of-type(2) {
  position: relative;
  /* il colore della fascia si allarga solo ai lati (non sopra/sotto): così nessun bordo
     "a metà pixel" e nessuna riga sottile sotto l'onda */
  box-shadow: none; clip-path: none; border-image: conic-gradient(var(--bandc) 0 0) fill 0 // 0 100vmax;
}
.page-title::after,
body[data-page="home"] main > section:nth-of-type(5)::after,
body[data-page="home"] main > section:nth-of-type(6)::after,
body[data-page="about"] main > section:nth-of-type(2)::after {
  content: ""; position: absolute; z-index: 1; bottom: -3px; left: 50%; width: 100vw; height: calc(var(--wh) + 4px);
  transform: translateX(-50%); background: var(--next, var(--paper));
  -webkit-mask: var(--wave-cut) left top / var(--ww) var(--wh) repeat-x, linear-gradient(#000, #000) left bottom / 100% 5px no-repeat;
  mask: var(--wave-cut) left top / var(--ww) var(--wh) repeat-x, linear-gradient(#000, #000) left bottom / 100% 5px no-repeat;
}
body[data-page="home"] main > section:nth-of-type(5) { --next: var(--sun); }
/* Apertura: stessa onda in fondo alla foto */
.hero::before {
  content: ""; position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: calc(var(--wh) + 2px);
  background: var(--paper);
  -webkit-mask: var(--wave-cut) left top / var(--ww) var(--wh) repeat-x, linear-gradient(#000, #000) left bottom / 100% 3px no-repeat;
  mask: var(--wave-cut) left top / var(--ww) var(--wh) repeat-x, linear-gradient(#000, #000) left bottom / 100% 3px no-repeat;
}
/* Piè di pagina: l'onda sale verso l'alto */
.foot::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--wh); background: var(--ink);
  -webkit-mask: var(--wave-up) left bottom / var(--ww) var(--wh) repeat-x;
  mask: var(--wave-up) left bottom / var(--ww) var(--wh) repeat-x;
}

/* Separatore sotto i titoli di sezione: il mordente, nel colore della fascia */
.head h2::after {
  content: ""; display: block; width: 60px; height: 34px; margin-top: 18px;
  background: var(--mk, var(--coral));
  -webkit-mask: var(--mordent) left center / contain no-repeat; mask: var(--mordent) left center / contain no-repeat;
}
body[data-page="home"] main > section:nth-of-type(5),
body[data-page="about"] main > section:nth-of-type(2) { --mk: var(--sun); }
body[data-page="home"] main > section:nth-of-type(6) { --mk: var(--ink); }

/* e sotto il titolo di ogni pagina interna */
.page-title h1::after {
  content: ""; display: block; width: clamp(64px, 6vw, 92px); aspect-ratio: 30 / 16.8; margin-top: clamp(18px, 2vw, 28px);
  background: currentColor;
  -webkit-mask: var(--mordent) left center / contain no-repeat; mask: var(--mordent) left center / contain no-repeat;
}

/* Apertura della Home: il mordente si disegna, poi arriva il nome */
.hero-txt::before {
  content: ""; display: block; width: clamp(96px, 10vw, 160px); aspect-ratio: 30 / 16.8; margin: 0 0 clamp(14px, 2vw, 26px) -4px;
  background: var(--sun);
  -webkit-mask: var(--mordent) left center / contain no-repeat; mask: var(--mordent) left center / contain no-repeat;
  animation: draw 1.1s .25s cubic-bezier(.65, 0, .35, 1) both;
}
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Cursore "mordente" sulle caselle dei generi e sullo showreel */
@media (hover: hover) {
  .tile, .reel-box > .reveal { cursor: var(--cur); }
}

/* Simbolo nell'angolo delle caselle: il mordente al posto della freccia play */
.tile::before {
  top: 35px; right: 32px; width: 30px; height: 17px; border: 0;
  background: var(--ink);
  -webkit-mask: var(--mordent) center / contain no-repeat; mask: var(--mordent) center / contain no-repeat;
}

@media (max-width: 700px) { :root { --wh: 16px; --ww: 320px; } }

@media (prefers-reduced-motion: reduce) {
  .hero img, .hero h1, .hero p, .hero-txt::before { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ==========================================================================
   MODIFICHE DEL 23/11
   ========================================================================== */
/* Caselle dei generi: niente bollino nell'angolo */
.tile::before, .tile::after { content: none; }

/* Home: bio breve con piccola foto, tra showreel e Listen */
.bio-short { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.bio-photo { aspect-ratio: 1; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 10px 10px 0 var(--mint); transform: rotate(-1.5deg); transition: transform .4s var(--pop); }
.bio-photo:hover { transform: rotate(0deg) scale(1.02); }
.bio-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.bio-short .label { display: inline-block; padding: 6px 14px; background: var(--lilac); border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); }
.bio-text { margin: 0; max-width: 58ch; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; font-weight: 500; }
.bio-short .more { margin-top: 32px; }
@media (max-width: 760px) { .bio-short { grid-template-columns: minmax(0, 1fr); } .bio-photo { max-width: 240px; box-shadow: 6px 6px 0 var(--mint); } }

/* About: fascia titolo con la foto alla console come sfondo (bicromia verde) */
.page-title--photo { position: relative; isolation: isolate; min-height: min(68vh, 620px); display: flex; flex-direction: column; justify-content: flex-end; }
.pt-bg {
  position: absolute; z-index: -1; top: 0; left: 50%; width: 100vw; height: 100%; transform: translateX(-50%);
  object-fit: cover; object-position: 70% 35%;
  filter: grayscale(1) contrast(1.1) brightness(1.05); mix-blend-mode: multiply;
}

/* About: biografia su una colonna, titolo a sinistra */
.bio-long { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.bio-long h2 { position: sticky; top: 110px; }
@media (max-width: 860px) { .bio-long { grid-template-columns: minmax(0, 1fr); } .bio-long h2 { position: static; } }

/* Riquadro CTA con foto verticale (Music, Services): inquadratura sullo spartito */
.cta .media img[src*="cta-score"] { object-position: 50% 45%; }
.cta .media img[src*="cta-music"] { object-position: 100% 45%; }  /* foto con Scipione e il fonico: Matteo è a destra, nei tagli si tiene la parte destra */
/* About: velatura menta a sinistra, così il titolo scuro si legge sopra la foto */
.page-title--photo::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 50%; width: 100vw; height: 100%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--mint) 0%, rgba(52, 211, 153, .85) 30%, rgba(52, 211, 153, 0) 70%);
}
.page-title--photo .pt-bg { opacity: .85; z-index: -2; }

/* Services: i video 2D sono in 16:9, li mostro interi */
.service .reveal { aspect-ratio: 16 / 9; }

/* ==========================================================================
   MODIFICHE DEL 23/11 (2)
   ========================================================================== */
/* Home, copertina: bicromia chiara già "stampata" nella foto (indaco → blu → carta),
   quindi niente più filtro che scuriva i volti */
.hero img { filter: none; mix-blend-mode: normal; opacity: 1; object-position: 50% 22%; }
.hero::after { background: linear-gradient(180deg, transparent 50%, rgba(23, 20, 58, .5) 100%); }
/* il nome resta sempre su una riga */
.hero h1 { font-size: clamp(64px, 14.5vw, 212px); white-space: nowrap; }
@media (max-width: 640px) { .hero h1 { white-space: normal; } }
/* About: dopo la copertina viene subito la fascia indaco dei crediti */
.page-title--photo { --next: var(--ink); }

/* About: niente striscia bianca, i crediti iniziano subito dopo la copertina */
body[data-page="about"] main > section:nth-of-type(2) { margin-top: 0; }
/* About: la citazione di Scipione dentro la fascia dei crediti */
body[data-page="about"] main > section:nth-of-type(2) .quote { margin-top: clamp(64px, 8vw, 112px); color: var(--ink); box-shadow: 10px 10px 0 var(--sun); }
body[data-page="about"] main > section:nth-of-type(2) .quote img { border-color: var(--ink); }

/* About, biografia: tutti i paragrafi della stessa grandezza */
.bio-long .prose p, .bio-long .prose p:first-child { font-size: clamp(17px, 1.3vw, 19px); line-height: 1.65; font-weight: 400; }

/* Contact: casella dei contatti sopra il form */
.contact-stack { display: grid; gap: clamp(36px, 4vw, 56px); max-width: 760px; }
.contact-stack .contact-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.contact-stack .form { max-width: none; }
@media (max-width: 600px) { .contact-stack .contact-side { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   MODIFICHE DEL 23/11 (3)
   ========================================================================== */
/* Copertine a tutto schermo con sfumatura "a ventaglio": il colore della fascia
   parte pieno dall'angolo in basso a sinistra (dove sta il testo) e si apre
   fino a sparire sui volti */
.hero img { object-position: 50% 30%; }
.hero::after {
  background:
    radial-gradient(130% 115% at 0% 100%, var(--cobalt) 0%, var(--cobalt) 22%, rgba(47, 60, 232, .82) 34%, rgba(47, 60, 232, .45) 46%, rgba(47, 60, 232, 0) 60%),
    linear-gradient(180deg, rgba(23, 20, 58, .35) 0%, rgba(23, 20, 58, 0) 18%);
}
.page-title--photo { min-height: min(78vh, 760px); }
.page-title--photo .pt-bg { opacity: 1; object-position: 62% 40%; }
.page-title--photo::before {
  background:
    radial-gradient(120% 130% at 0% 85%, var(--mint) 0%, var(--mint) 24%, rgba(52, 211, 153, .85) 36%, rgba(52, 211, 153, .4) 50%, rgba(52, 211, 153, 0) 66%);
}
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(0deg, var(--cobalt) 0%, rgba(47, 60, 232, .85) 30%, rgba(47, 60, 232, 0) 62%); }
  .page-title--photo::before { background: linear-gradient(0deg, var(--mint) 0%, rgba(52, 211, 153, .85) 35%, rgba(52, 211, 153, .2) 75%); }
}

/* Music Portfolio: "MUSIC" grande, accanto "PORTFOLIO" piccolo */
.h1-sub { display: inline-block; margin-left: .12em; font-size: .26em; line-height: 1; letter-spacing: .04em; vertical-align: .12em; }

/* Bio breve: nuova foto */
.bio-photo img { object-position: 50% 40%; }
/* il menu non va mai a capo; sotto i 1120 px compare il pulsante "Menu" */
.nav a { white-space: nowrap; }
/* About: la foto di copertina deve poter essere larga quanto lo schermo */
.pt-bg { max-width: none; }

/* ==========================================================================
   PROVA 24/11 — Copertina Home: colori naturali in alto (volti senza tinta),
   che scendendo diventano il blu pieno della prima versione
   (seconda copia della foto in blu, sfumata con una maschera verticale)
   ========================================================================== */
.hero img { filter: none; mix-blend-mode: normal; opacity: 1; object-position: 50% 30%; }
.hero::after {
  background: url("../img/hero-blue.webp") 50% 30% / cover no-repeat;
  -webkit-mask: linear-gradient(180deg, transparent 0%, transparent 34%, rgba(0, 0, 0, .55) 52%, #000 72%);
  mask: linear-gradient(180deg, transparent 0%, transparent 34%, rgba(0, 0, 0, .55) 52%, #000 72%);
}
@media (max-width: 700px) {
  .hero::after {
    background: url("../img/hero-blue.webp") 50% 30% / cover no-repeat;
    -webkit-mask: linear-gradient(180deg, transparent 0%, transparent 42%, rgba(0, 0, 0, .6) 60%, #000 76%);
    mask: linear-gradient(180deg, transparent 0%, transparent 42%, rgba(0, 0, 0, .6) 60%, #000 76%);
  }
}
/* prova 25/11: foto console in Home (Matteo a destra), violinista in About (personaggi a destra) */
.hero img { object-position: 70% 40%; }
.hero::after { background-position: 70% 40%; }
.page-title--photo .pt-bg { object-position: 100% 35%; }

/* ==========================================================================
   25/11 — Copertina Home in bicromia piena (come About), colore CORALLO
   la foto in bianco e nero "stampata" sul corallo; niente sfumatura
   ========================================================================== */
.hero { background: var(--coral); }
.hero img {
  filter: grayscale(1) contrast(1.12) brightness(1.1); mix-blend-mode: multiply; opacity: 1;
  object-position: 70% 40%; -webkit-mask: none; mask: none;
}
.hero::after {
  background: linear-gradient(0deg, rgba(23, 20, 58, .5) 0%, rgba(23, 20, 58, .2) 28%, rgba(23, 20, 58, 0) 50%);
  -webkit-mask: none; mask: none;
}
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(0deg, rgba(23, 20, 58, .55) 0%, rgba(23, 20, 58, .2) 35%, rgba(23, 20, 58, 0) 60%); -webkit-mask: none; mask: none; }
}
/* copertina Home più bassa: si taglia la parte alta della foto (soffitto) */
.hero { height: min(calc(78svh - 74px), 780px); min-height: 520px; }
.hero img { object-position: 70% 58%; }
@media (max-width: 700px) { .hero { height: min(calc(82svh - 74px), 700px); min-height: 520px; } .hero img { object-position: 68% 50%; } }
.hero h1 { font-size: clamp(64px, 11.5vw, 176px); }
@media (max-width: 640px) { .hero h1 { font-size: clamp(60px, 18vw, 110px); } }
/* 25/11 sera: foto della Home più luminosa, figura più leggibile */
.hero img { filter: grayscale(1) contrast(1.02) brightness(1.4); }
.hero::after { background: linear-gradient(0deg, rgba(23, 20, 58, .42) 0%, rgba(23, 20, 58, .14) 26%, rgba(23, 20, 58, 0) 45%); }
/* 25/11 sera (2): foto naturale sotto; sopra la versione in bicromia corallo
   che sfuma dolcemente: velo leggero in alto (non a zero), colore pieno in basso */
.hero img { filter: none; mix-blend-mode: normal; opacity: 1; }
.hero::after {
  background:
    linear-gradient(0deg, rgba(23, 20, 58, .45) 0%, rgba(23, 20, 58, .15) 26%, rgba(23, 20, 58, 0) 45%),
    url("../img/hero-coral.webp") 70% 58% / cover no-repeat;
  -webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .6) 35%, rgba(0, 0, 0, .9) 70%, #000 100%);
  mask: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .6) 35%, rgba(0, 0, 0, .9) 70%, #000 100%);
}
@media (max-width: 700px) {
  .hero::after {
    background:
      linear-gradient(0deg, rgba(23, 20, 58, .5) 0%, rgba(23, 20, 58, .15) 30%, rgba(23, 20, 58, 0) 55%),
      url("../img/hero-coral.webp") 68% 50% / cover no-repeat;
    -webkit-mask: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .6) 35%, rgba(0, 0, 0, .9) 70%, #000 100%);
    mask: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .6) 35%, rgba(0, 0, 0, .9) 70%, #000 100%);
  }
}

/* ==========================================================================
   25/11 — Showreel: autoplay muto + comandi personalizzati
   ========================================================================== */
.reel-box .reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.reel-box .corner, .reel-box .play { z-index: 3; }
.rc {
  position: absolute; z-index: 4; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px; border-radius: 999px;
  background: rgba(23, 20, 58, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--light);
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.reel-box.playing:hover .rc, .reel-box.playing:focus-within .rc { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: none) { .reel-box.playing .rc { opacity: 1; transform: none; pointer-events: auto; } }
.rc-btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 40px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px;
  background: transparent; color: inherit; cursor: pointer; font: 700 13px/1 var(--sans);
  transition: background-color .2s, color .2s;
}
.rc-btn svg { width: 20px; height: 20px; }
.rc-btn:hover { background: rgba(251, 246, 238, .16); }
.rc-btn:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
/* "Sound on" in evidenza finché l'audio è spento */
.rc-sound { background: var(--sun); color: var(--ink); padding: 0 14px 0 12px; }
.rc-sound:hover { background: var(--light); }
.has-sound .rc-sound { background: transparent; color: var(--light); }
.has-sound .rc-sound:hover { background: rgba(251, 246, 238, .16); }
.has-sound .rc-sound span { display: none; }
.rc-bar { flex: 1; height: 6px; margin: 0 6px; border-radius: 3px; background: rgba(251, 246, 238, .25); cursor: pointer; position: relative; }
.rc-bar::before { content: ""; position: absolute; inset: -12px 0; }
.rc-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--sun); }
.rc-bar:focus-visible { outline: 2px solid var(--sun); outline-offset: 4px; }
.rc-time { flex: none; font: 600 13px/1 var(--sans); font-variant-numeric: tabular-nums; opacity: .85; min-width: 34px; }
.rc-hd { border: 1.5px solid rgba(251, 246, 238, .5); height: 30px; min-width: 40px; padding: 0 8px; font-size: 12px; letter-spacing: .04em; }
.rc-hd[aria-pressed="true"] { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.reel-box.loading::after {
  content: ""; position: absolute; z-index: 5; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 3px solid rgba(251, 246, 238, .3); border-top-color: var(--sun); border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
  .rc { left: 8px; right: 8px; bottom: 8px; gap: 2px; padding: 4px; }
  .rc-time, .rc-restart { display: none; }
  .rc-sound span { display: none; }
}
/* Showreel a schermo intero: tutto il riquadro (video + comandi) */
.reel-box.is-fs { width: 100vw; height: 100vh; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; transform: none; background: #000; }
.reel-box.is-fs .reel-video { object-fit: contain; }
.reel-box.is-fs .rc { left: 50%; right: auto; width: min(1100px, calc(100% - 48px)); bottom: 28px; transform: translate(-50%, 8px); }
.reel-box.is-fs:hover .rc { opacity: 0; pointer-events: none; }
.reel-box.is-fs.rc-show .rc, .reel-box.is-fs .rc:focus-within { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.reel-box.is-fs:not(.rc-show) { cursor: none; }
.reel-box.is-fs:not(.rc-show):not(:has(:focus-visible)) .rc { opacity: 0; pointer-events: none; transform: translate(-50%, 8px); }

/* ==========================================================================
   26/11 — GRANA PELLICOLA SOLO SULLE FOTO
   Stessa ricetta della Coming soon: texture grana.png, fusione "overlay",
   animazione a scatti (1s, 6 passi), il mouse ci passa attraverso.
   Con "riduci movimento" la grana resta ferma.
   PER CAMBIARE L'INTENSITÀ: modificare solo --grana qui sotto (0.09 = 9%).
   ========================================================================== */
:root { --grana: .09; }   /* 9% — scelto il 26/11 */
.grana {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  opacity: var(--grana); mix-blend-mode: overlay; border-radius: inherit;
}
.grana::before {
  content: ""; position: absolute; inset: -50%;
  background: url("../img/grana.png");
  animation: grana 1s steps(6) infinite;
}
@keyframes grana {
  0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); }
  60% { transform: translate(-3%, 5%); } 80% { transform: translate(6%, 2%); } 100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) { .grana::before { animation: none; } }

/* contenitori delle foto: devono "tenere" lo strato di grana al loro interno */
.bio-photo, .cta .media, .split .media, .quote-photo { position: relative; }
.cta .media, .quote-photo { overflow: hidden; }
/* Copertina Home: grana sopra la foto e il corallo, sotto nome/claim e onda */
.hero > .grana { z-index: 1; }
.hero-txt { z-index: 1; }
/* Copertina About: grana sopra foto e menta, sotto il titolo e l'onda; larga quanto lo schermo */
.page-title--photo > .grana { z-index: -1; left: 50%; right: auto; width: 100vw; transform: translateX(-50%); border-radius: 0; }
/* Showreel: grana solo sulla copertina; sparisce quando il video parte */
.reel-box > .grana { z-index: 2; border-radius: 0; }
.reel-box.playing > .grana { display: none; }
/* Foto di Scipione: la cornice inclinata passa dalla foto al suo contenitore */
.quote-photo { border-radius: var(--r); border: 2px solid var(--ink); transform: rotate(-2deg); }
.quote .quote-photo img { border: 0; border-radius: 0; transform: none; }
@media (max-width: 680px) { .quote-photo { max-width: 170px; } .quote .quote-photo img { max-width: none; } }

/* 26/11 — Showreel visto con l'audio: alla fine torna la copertina ferma (con grana e tasto play) */
.reel-box.ended .reel-video, .reel-box.ended .rc { visibility: hidden; }

/* 26/11 — intensità diverse: bio breve (Home) e Scipione al 7%; locandine senza grana */
.bio-photo, .quote-photo { --grana: .07; }
.poster .grana { display: none; }

/* 26/11 pomeriggio — nuova foto di copertina (variante 2O8A9117, Matteo un po' più a destra):
   sul telefono l'inquadratura si sposta a destra per non tagliare spalla e viso */
@media (max-width: 700px) {
  .hero img { object-position: 74% 50%; }
  .hero::after { background-position: 0 0, 74% 50%; }
}

/* ---------- Privacy & cookie policy (26/11/2026) */
.legal { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.legal-side { position: sticky; top: 100px; display: grid; gap: 28px; }
.legal-short {
  padding: clamp(22px, 2.6vw, 30px); background: var(--sun); border: 2px solid var(--ink);
  border-radius: var(--r); box-shadow: 8px 8px 0 var(--ink);
}
.legal-short .label { margin: 0 0 12px; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.legal-short ul { margin: 0; padding-left: 1.1em; display: grid; gap: 10px; font-weight: 600; line-height: 1.45; }
.legal-toc { display: grid; gap: 2px; }
.legal-toc a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink-2); transition: background-color .2s, color .2s; }
.legal-toc a:hover { background: var(--ink); color: var(--light); }
.legal-body { max-width: 68ch; }
.legal-body h2 { font-size: clamp(34px, 3.4vw, 48px); margin: 64px 0 18px; scroll-margin-top: 100px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font: 700 19px/1.3 var(--sans); text-transform: none; letter-spacing: 0; margin: 28px 0 8px; }
.legal-body p, .legal-body li { font-size: 17px; line-height: 1.65; }
.legal-body p { margin: 0 0 1em; }
.legal-body ul { margin: 0 0 1em; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-body a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.legal-body a:hover { color: var(--cobalt); }
.legal-body code { font-size: .9em; background: rgba(23, 20, 58, .07); padding: 1px 6px; border-radius: 6px; }
.legal-date { margin-top: 40px !important; font-weight: 600; color: var(--ink-2); }
/* Segnaposto ben visibile (dati del titolare ancora da inserire) */
mark.ph { background: var(--coral); color: var(--white); font-weight: 700; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.legal-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.legal-cta p { margin: 0; font-size: clamp(19px, 1.6vw, 22px); font-weight: 600; }
.legal-cta p a { text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); } .legal-side { position: static; } .legal-toc { display: none; } }
/* Riga sotto il modulo di contatto */
.form-note { margin: 0; font-size: 15px; color: var(--ink-2); }
.form-note a { color: var(--ink); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.form-note a:hover { color: var(--cobalt); }
/* Tabella dei cookie tecnici (privacy) */
.legal-table { overflow-x: auto; margin: 0 0 1.2em; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); }
.legal-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.legal-table th { font-weight: 700; background: var(--sun); border-bottom: 2px solid var(--ink); }
.legal-table tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
  .legal-table thead { display: none; }
  .legal-table tr { display: grid; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .legal-table tr:last-child { border-bottom: 0; }
  .legal-table td { border: 0; padding: 3px 14px; }
  .legal-table td:first-child { font-weight: 700; }
}

/* ---------- Playlist privata (playlist.html, indirizzo /p/<codice>) — 28/11/2026
   Stessa fascia gialla e stesso player della pagina Music Portfolio; i bollini
   dei generi usano i colori di data/genres.json. */
body[data-page="playlist"] { --band: var(--sun); }
.pl-head h1 { font-size: clamp(52px, 8.4vw, 136px); overflow-wrap: anywhere; }
.pl-kicker { margin: 0 0 18px !important; font-size: 15px !important; font-weight: 700 !important; }
.pl-kicker::before {
  content: ""; display: inline-block; width: 13px; height: 15px; margin-right: 9px; vertical-align: -2px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 15'%3E%3Crect x='1' y='6.5' width='11' height='8' rx='2'/%3E%3Cpath d='M3.5 7V4.5a3 3 0 0 1 6 0V7' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 15'%3E%3Crect x='1' y='6.5' width='11' height='8' rx='2'/%3E%3Cpath d='M3.5 7V4.5a3 3 0 0 1 6 0V7' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pl-head .pl-to { margin-top: 18px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; }
.pl-head .pl-note { margin-top: 22px; max-width: 60ch; padding-left: 18px; border-left: 3px solid var(--ink); font-weight: 500; }
.pl-head .pl-meta { margin-top: 22px; font-size: 15px; font-weight: 700; }
.pl-head a:not(.btn) { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pl-head-btn { margin-top: 32px; }

/* Richiesta della password */
.pl-gate { padding-top: 64px; }
.pl-form { max-width: 560px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 8px 8px 0 var(--sun); padding: clamp(22px, 4vw, 36px); }
.pl-form label { display: block; margin-bottom: 10px; font-weight: 700; }
.pl-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pl-row input {
  flex: 1 1 220px; min-height: 56px; padding: 0 18px; font: 500 16px/1 var(--sans); color: var(--ink);
  background: var(--paper); border: 2px solid var(--ink); border-radius: 12px;
}
.pl-row input:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.pl-row input[aria-invalid="true"] { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 10%, var(--paper)); }
.pl-row .btn { align-self: stretch; }
.pl-row .btn:disabled { opacity: .6; cursor: progress; }
.pl-error { margin: 14px 0 0; font-weight: 600; color: #B42318; }
.pl-help { margin: 18px 0 0; color: var(--ink-2); font-weight: 500; }
.pl-help a { color: var(--ink); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--coral); }

/* Elenco dei brani */
#pl-list { padding-top: 64px; }
.pl-panel { --tone: var(--sun); }
.pl-track { grid-template-columns: 44px minmax(0, 1fr) auto; }
.pl-info { display: flex; flex-direction: column; gap: 3px; }
.pl-tnote { font-size: 14px; color: var(--ink-2); }
.pl-side { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px; }
.pl-genre {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px;
  background: var(--tone); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px;
  font: 700 13px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.pl-genre::after { content: "↗"; margin-left: 6px; font-weight: 700; }
.pl-genre:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.pl-genre:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.pl-soon { font-style: italic; }
@media (max-width: 600px) {
  .pl-track { grid-template-columns: 44px minmax(0, 1fr); }
  .pl-side { grid-column: 2; justify-content: flex-start; }
}
.pl-head .pl-head-btn { background: var(--ink); color: var(--light); }
.pl-head .pl-head-btn:hover { background: var(--white); color: var(--ink); }
@media (max-width: 600px) { .pl-genre { white-space: normal; max-width: 100%; } }
/* Playlist non disponibile: nessun contenuto sotto la fascia, quindi la fascia gialla
   finisce con la sua onda direttamente sul piè di pagina (niente banda chiara vuota) */
body.pl-off .page-title { --next: var(--ink); }
body.pl-off .foot { margin-top: 0; }
body.pl-off .foot::before { display: none; }
body.pl-off { background: var(--ink); }   /* se la pagina è più corta dello schermo, sotto il piè di pagina resta lo stesso colore */
/* Playlist: durante il caricamento si vede solo la testata; il contenuto compare (dissolvenza
   breve) quando la pagina sa cosa mostrare. Se qualcosa va storto, compare comunque dopo 4 s */
body.pl-loading main, body.pl-loading .foot { opacity: 0; animation: pl-show .2s 4s forwards; }
body[data-page="playlist"] main, body[data-page="playlist"] .foot { transition: opacity .2s var(--ease); }
@keyframes pl-show { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body[data-page="playlist"] main, body[data-page="playlist"] .foot { transition: none; } }

/* 29/11 — About: 5 locandine; "Bentornati al Sud" (la terza) sta sempre al centro.
   Computer: 5 in fila · Tablet: 2 + 1 al centro + 2 · Telefono: una sotto l'altra */
.posters.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.posters.five .poster strong { font-size: 22px; }
.posters.five .poster p { font-size: 14px; }
@media (max-width: 1100px) {
  .posters.five { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .posters.five > * { grid-column: span 2; }
  .posters.five > :nth-child(3) { grid-column: 2 / span 2; }
  .posters.five .poster strong { font-size: 26px; }
  .posters.five .poster p { font-size: 15px; }
}
@media (max-width: 600px) {
  .posters.five { grid-template-columns: minmax(0, 1fr); }
  .posters.five > *, .posters.five > :nth-child(3) { grid-column: auto; }
}
