/* Melison Studio (nome deciso da Matteo il 25/10/2026): blu notte, avorio e oro, gli stessi colori della foto profilo dei social.
   Caratteri ospitati qui (licenza OFL, caratteri/LICENZA-*.txt): Bodoni Moda per i titoli, Figtree per il testo. */

@font-face { font-family: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/caratteri/bodoni-moda-latin-opsz-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: "Bodoni Moda"; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url(/caratteri/bodoni-moda-latin-ext-opsz-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: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/caratteri/figtree-latin-wght-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: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url(/caratteri/figtree-latin-ext-wght-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; }

:root {
  /* marchio: uguali in chiaro e scuro */
  --notte-1: #30316f;
  --notte-2: #1d1f4a;
  --notte-3: #111230;
  --avorio: #f7f4ed;
  --oro: #d2b06b;
  /* pagina, tema chiaro */
  --fondo: #f4f4f7;
  --inchiostro: #1a1c42;
  --tenue: #565975;
  --linea: rgba(26, 28, 66, 0.13);
  --bordo-icona: rgba(26, 28, 66, 0.10);
  --ombra: 0 1px 2px rgba(17, 18, 48, 0.10), 0 22px 44px -24px rgba(17, 18, 48, 0.45);
  --oro-testo: #8a6a2c;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Figtree", -apple-system, "Segoe UI", system-ui, sans-serif;
  --larghezza: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fondo: #0e0f26;
    --inchiostro: #efece4;
    --tenue: #a6a8c4;
    --linea: rgba(239, 236, 228, 0.13);
    --bordo-icona: rgba(239, 236, 228, 0.14);
    --ombra: 0 1px 2px rgba(0, 0, 0, 0.4), 0 22px 44px -22px rgba(0, 0, 0, 0.8);
    --oro-testo: #d8b874;
    --superficie: rgba(239, 236, 228, 0.04);
  }
}
:root[data-theme="dark"] {
  --fondo: #0e0f26; --inchiostro: #efece4; --tenue: #a6a8c4; --linea: rgba(239, 236, 228, 0.13);
  --bordo-icona: rgba(239, 236, 228, 0.14); --ombra: 0 1px 2px rgba(0, 0, 0, 0.4), 0 22px 44px -22px rgba(0, 0, 0, 0.8);
  --oro-testo: #d8b874;
}

/* lingue con altri alfabeti: i caratteri latini restano Bodoni/Figtree, il resto usa i caratteri del sistema */
:lang(ru) { --serif: "Bodoni Moda", "PT Serif", "Noto Serif", Georgia, serif; }
:lang(hi) { --serif: "Bodoni Moda", "Noto Serif Devanagari", "Devanagari Sangam MN", serif;
            --sans: "Figtree", "Kohinoor Devanagari", "Noto Sans Devanagari", system-ui, sans-serif; }
:lang(ja) { --serif: "Bodoni Moda", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
            --sans: "Figtree", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", system-ui, sans-serif; }
:lang(ko) { --serif: "Bodoni Moda", "AppleMyungjo", "Nanum Myeongjo", "Noto Serif KR", serif;
            --sans: "Figtree", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif; }
:lang(zh) { --serif: "Bodoni Moda", "Songti SC", "Noto Serif SC", serif;
            --sans: "Figtree", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif; }
:lang(ko) { word-break: keep-all; }
:lang(ja), :lang(zh) { line-break: strict; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fondo); color: var(--inchiostro);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; border-radius: 4px; }

.salta { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--avorio); color: var(--notte-2);
  padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.salta:focus { top: 12px; }

/* ---------- copertina blu notte (come lo sfondo del marchio) ---------- */
.copertina {
  color: var(--avorio);
  background:
    radial-gradient(120% 90% at 30% 30%, var(--notte-1) 0%, var(--notte-2) 55%, var(--notte-3) 100%);
  padding: 0 var(--gutter);
}
.testata {
  max-width: var(--larghezza); margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: max(18px, env(safe-area-inset-top)) 0 18px;
}
.marchio { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.01em; white-space: nowrap; min-height: 44px; }
.marchio img { width: 40px; height: 40px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(247, 244, 237, 0.18); }
.menu { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.menu a { text-decoration: none; color: rgba(247, 244, 237, 0.82); font-size: 0.95rem; white-space: nowrap;
  min-height: 44px; display: inline-flex; align-items: center; }
.menu a:hover { color: var(--avorio); }
.lingua-btn { gap: 7px; }
.lingua-btn svg { opacity: 0.85; }

.copertina-dentro {
  max-width: var(--larghezza); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: clamp(40px, 6vw, 96px); padding: clamp(40px, 8vw, 112px) 0 clamp(56px, 9vw, 128px);
}
h1 { margin: 0; font-weight: 400; }
.nome {
  display: block; font-family: var(--serif); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(3rem, 1.4rem + 6.8vw, 7rem); line-height: 0.96; letter-spacing: -0.012em;
  color: var(--avorio); max-width: 7.2em;
}
.nome::after { content: ""; display: block; width: 72px; height: 2px; background: var(--oro);
  margin-top: clamp(26px, 3.2vw, 40px); }
.intro { margin: clamp(22px, 3vw, 34px) 0 0; max-width: 34ch; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.55; color: rgba(247, 244, 237, 0.84); }

/* le icone come sulla schermata Home */
.schermo {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 84px);
  gap: 26px 18px; justify-content: end;
}
.schermo a { display: flex; flex-direction: column; align-items: center; gap: 9px; text-decoration: none;
  border-radius: 18px; padding-top: 2px; }
.schermo img { width: 68px; height: 68px; border-radius: 15.2px;
  box-shadow: 0 0 0 1px rgba(247, 244, 237, 0.10), 0 10px 22px -10px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s ease; }
.schermo a:hover img { transform: translateY(-3px); }
/* nomi su una riga; se un nome di due parole non ci sta va a capo tra le parole, mai dentro una parola */
.schermo span { font-size: 0.78rem; line-height: 1.2; color: rgba(247, 244, 237, 0.92); max-width: 84px;
  text-align: center; overflow-wrap: normal; word-break: keep-all; hyphens: manual; }
@media (prefers-reduced-motion: no-preference) {
  .schermo li { animation: entra 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: 120ms; }
  .schermo li:nth-child(2) { animation-delay: 175ms; } .schermo li:nth-child(3) { animation-delay: 230ms; }
  .schermo li:nth-child(4) { animation-delay: 285ms; } .schermo li:nth-child(5) { animation-delay: 340ms; }
  .schermo li:nth-child(6) { animation-delay: 395ms; } .schermo li:nth-child(7) { animation-delay: 450ms; }
  .schermo li:nth-child(8) { animation-delay: 505ms; } .schermo li:nth-child(9) { animation-delay: 560ms; }
  .schermo li:nth-child(10) { animation-delay: 615ms; }
  @keyframes entra { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
}

/* ---------- app e giochi ---------- */
main { display: block; }
.gruppo { max-width: calc(var(--larghezza) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.gruppo h2 {
  margin: 0 0 clamp(8px, 2vw, 24px); font-family: var(--serif); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); line-height: 1; letter-spacing: -0.01em;
}
.gruppo h2::after { content: ""; display: block; width: 56px; height: 2px; background: var(--oro); margin-top: 22px; }

.app {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 80px);
  align-items: center; padding: clamp(48px, 6vw, 80px) 0; border-bottom: 1px solid var(--linea);
  scroll-margin-top: 24px;
}
.gruppo .app:last-child { border-bottom: 0; }
.gruppo h2 + .app { padding-top: clamp(28px, 4vw, 48px); }
.app-capo { display: flex; align-items: center; gap: 18px; }
.icona { width: 72px; height: 72px; border-radius: 16px; flex: none; box-shadow: 0 0 0 1px var(--bordo-icona); }
.app h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.5rem); line-height: 1.05; }
.genere { margin: 6px 0 0; color: var(--tenue); font-size: 0.95rem; }
.attacco { margin: 26px 0 0; font-family: var(--serif); font-weight: 400; font-optical-sizing: auto;
  font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem); line-height: 1.42; max-width: 32ch; }
:lang(ja) .attacco, :lang(zh) .attacco, :lang(ko) .attacco, :lang(hi) .attacco { max-width: 30em; line-height: 1.6; }
.testo, .punti { margin: 16px 0 0; color: var(--tenue); max-width: 58ch; }
.punti { list-style: none; padding: 0; }
.punti li { position: relative; padding-left: 22px; margin-top: 6px; }
.punti li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 10px; height: 1.5px; background: var(--oro); }
.nota { margin: 12px 0 0; font-size: 0.85rem; color: var(--tenue); font-style: italic; }
.badge { display: inline-block; margin-top: 28px; border-radius: 9px; }
.badge img { width: 135px; height: auto; }

.app-foto { display: flex; gap: clamp(12px, 1.6vw, 20px); justify-content: flex-end; }
.app-foto img { width: calc(50% - 10px); max-width: 252px; border-radius: 18px; box-shadow: var(--ombra);
  background: var(--linea); }
.larga .app-foto img { width: 100%; max-width: 600px; border-radius: 16px; }

/* ---------- contatti ---------- */
.contatti { margin-top: clamp(24px, 4vw, 48px); color: var(--avorio); padding: clamp(64px, 9vw, 112px) var(--gutter);
  background: radial-gradient(120% 120% at 70% 20%, var(--notte-1) 0%, var(--notte-2) 55%, var(--notte-3) 100%); }
.contatti-dentro { max-width: var(--larghezza); margin: 0 auto; }
.contatti h2 { margin: 0 0 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); line-height: 1; }
.contatti h2::after { content: ""; display: block; width: 56px; height: 2px; background: var(--oro); margin-top: 22px; }
.contatti p { margin: 22px 0 0; color: rgba(247, 244, 237, 0.84); font-size: 1.05rem; max-width: 52ch; }
.email { font-family: "Figtree", sans-serif; font-weight: 500; letter-spacing: -0.01em; font-size: clamp(1.25rem, 0.7rem + 2.8vw, 2.25rem);
  color: var(--avorio); text-decoration: underline; text-decoration-color: var(--oro); text-decoration-thickness: 1.5px;
  text-underline-offset: 0.24em; text-decoration-skip-ink: auto; white-space: nowrap; display: inline-block; padding: 4px 0; }
.social { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.social a { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 18px; min-height: 48px;
  border: 1px solid rgba(247, 244, 237, 0.28); border-radius: 999px; text-decoration: none; }
.social a:hover { border-color: var(--oro); }
.sn { font-weight: 600; }
.sh { color: rgba(247, 244, 237, 0.7); font-size: 0.92rem; }

/* ---------- piede ---------- */
.piede { max-width: calc(var(--larghezza) + 2 * var(--gutter)); margin: 0 auto; padding: 40px var(--gutter) max(40px, env(safe-area-inset-bottom));
  color: var(--tenue); font-size: 0.92rem; }
.lingue ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.lingue a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px;
  text-decoration: none; white-space: nowrap; }
.lingue a:hover { color: var(--inchiostro); }
.lingue a[aria-current] { color: var(--inchiostro); font-weight: 600; box-shadow: inset 0 -2px 0 var(--oro); border-radius: 0; }
.piede p { margin: 24px 0 0; padding-top: 22px; border-top: 1px solid var(--linea); display: flex; flex-wrap: wrap; gap: 8px 24px; }
.piede p a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- pagina privacy ---------- */
.copertina.corta { padding-bottom: 4px; }
.testo-pagina { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) 24px; }
.testo-pagina h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3.4rem); line-height: 1.05; margin-bottom: 32px; }
.testo-pagina p { font-size: 1.0625rem; line-height: 1.7; margin: 0 0 18px; }
.testo-pagina a { text-decoration-color: var(--oro); text-underline-offset: 3px; overflow-wrap: anywhere; }
.aggiornato { color: var(--tenue); }
.altra-lingua { margin-top: 40px !important; padding-top: 24px; border-top: 1px solid var(--linea); color: var(--tenue); }
.indietro { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- misure ---------- */
@media (max-width: 1080px) {
  .schermo { grid-template-columns: repeat(5, 76px); gap: 22px 12px; }
  .schermo img { width: 60px; height: 60px; border-radius: 13.4px; }
  .schermo span { max-width: 76px; }
}
@media (max-width: 900px) {
  .copertina-dentro { grid-template-columns: 1fr; }
  .schermo { justify-content: start; grid-template-columns: repeat(5, minmax(0, 84px)); gap: 26px 22px; }
  .schermo img { width: 68px; height: 68px; border-radius: 15.2px; }
  .app { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .larga { grid-template-columns: 1fr; }
  .larga .app-foto { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .app-foto { justify-content: flex-start; }
  .attacco { max-width: 40ch; }
}
@media (max-width: 720px) {
  .menu a:not(.lingua-btn) { display: none; }
}
@media (max-width: 520px) {
  .schermo { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 8px; }
  .schermo span { max-width: 100%; font-size: 0.74rem; }
  .app-foto img { border-radius: 14px; }
  .larga .app-foto img { border-radius: 12px; }
  .badge img { width: 128px; }
}
@media (max-width: 400px) {
  .marchio span { display: none; }
  .schermo img { width: 56px; height: 56px; border-radius: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .schermo img { transition: none; }
}

/* =====================================================================
   Movimento (25/10/2026): luci sul blu notte, titoli che si rivelano, vetrina fissa, video, parallasse.
   Solo transform e opacity (fluido a 60 fps). Con «Riduci movimento» tutto resta fermo e visibile.
   ===================================================================== */
.copertina, .contatti { position: relative; overflow: hidden; isolation: isolate; }
.luci { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.luci::before, .luci::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(10px); will-change: transform; }
.luci::before { left: -18vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(92, 96, 210, 0.38), rgba(92, 96, 210, 0)); }
.luci::after { right: -24vmax; bottom: -40vmax; background: radial-gradient(closest-side, rgba(210, 176, 107, 0.16), rgba(210, 176, 107, 0)); }
@media (prefers-reduced-motion: no-preference) {
  .luci::before { animation: luce-a 22s ease-in-out infinite alternate; }
  .luci::after { animation: luce-b 26s ease-in-out infinite alternate; }
  @keyframes luce-a { to { transform: translate3d(22vw, 14vh, 0) scale(1.15); } }
  @keyframes luce-b { to { transform: translate3d(-26vw, -18vh, 0) scale(1.1); } }
}

/* titoli: ogni parola sale da sotto una linea invisibile */
.riga { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.12em 0.02em 0.22em; margin: -0.12em -0.02em -0.22em; }
.riga > span { display: inline-block; }
.nome .riga { display: inline-block; }
html.js:not(.fermo) .nome .riga > span { transform: translateY(135%); animation: sale 1s cubic-bezier(0.2, 0.75, 0.15, 1) forwards; }
html.js:not(.fermo) .nome .riga:nth-of-type(2) > span { animation-delay: 0.12s; }
html.js:not(.fermo) .nome::after { transform: scaleX(0); transform-origin: left; animation: riga-oro 0.9s 0.55s cubic-bezier(0.2, 0.75, 0.15, 1) forwards; }
html.js:not(.fermo) .intro { opacity: 0; animation: appare 0.9s 0.45s ease forwards; }
@keyframes sale { to { transform: none; } }
@keyframes riga-oro { to { transform: none; } }
@keyframes appare { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

html.js:not(.fermo) .gruppo > h2 .riga > span,
html.js:not(.fermo) .sociale h2 .riga > span,
html.js:not(.fermo) .contatti h2 .riga > span { transform: translateY(135%); transition: transform 0.9s cubic-bezier(0.2, 0.75, 0.15, 1); }
html.js:not(.fermo) h2.visto .riga > span { transform: none; }
html.js:not(.fermo) h2.visto .riga:nth-of-type(2) > span { transition-delay: 0.08s; }
html.js:not(.fermo) .gruppo > h2::after, html.js:not(.fermo) .contatti h2::after, html.js:not(.fermo) .sociale h2::after {
  transform: scaleX(0); transform-origin: left; transition: transform 0.8s 0.25s cubic-bezier(0.2, 0.75, 0.15, 1); }
html.js:not(.fermo) h2.visto::after { transform: none; }

/* blocchi di testo che entrano dal basso */
html.js:not(.fermo) .rivela { opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.75, 0.15, 1); }
html.js:not(.fermo) .rivela.visto { opacity: 1; transform: none; }
html.js:not(.fermo) .app-testo .rivela:nth-child(2) { transition-delay: 0.06s; }
html.js:not(.fermo) .app-testo .rivela:nth-child(3) { transition-delay: 0.12s; }
html.js:not(.fermo) .app-testo .rivela:nth-child(4), html.js:not(.fermo) .app-testo .rivela:nth-child(5) { transition-delay: 0.18s; }

/* schermate e video: salgono ruotando leggermente quando arrivano */
html.js:not(.fermo) .app-foto > * { opacity: 0; transform: translate3d(0, 60px, 0) rotate(3deg);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.2, 0.75, 0.15, 1); }
html.js:not(.fermo) .app-foto > *:nth-child(2) { transform: translate3d(0, 90px, 0) rotate(-4deg); transition-delay: 0.12s; }
html.js:not(.fermo) .app-foto.visto > * { opacity: 1; transform: none; }

/* parallasse con lo scorrimento (dove il browser lo sa fare: Chrome, Edge, Safari 26) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 761px) {
    .app-foto { animation: galleggia linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .app-foto.con-video > .foto { animation: galleggia-2 linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes galleggia { from { translate: 0 30px; } to { translate: 0 -30px; } }
    @keyframes galleggia-2 { from { translate: 0 46px; } to { translate: 0 -16px; } }
  }
  @media (prefers-reduced-motion: no-preference) {
    /* le icone in alto si separano mentre si scorre via */
    .schermo a { animation: deriva linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .schermo li:nth-child(odd) a { --d: -70px; --r: -6deg; }
    .schermo li:nth-child(even) a { --d: -130px; --r: 5deg; }
    .schermo li:nth-child(3n) a { --d: -40px; --r: 8deg; }
    .schermo li:nth-child(4n+1) a { --d: -160px; --r: -9deg; }
    @keyframes deriva { to { translate: 0 var(--d, -80px); rotate: var(--r, 0deg); opacity: 0.35; } }
  }
}

/* ---------- vetrina: il riquadro resta fermo e cambiano le schermate ---------- */
.vetrina { max-width: calc(var(--larghezza) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter) 0; }
.vetrina-capo h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.01em; max-width: 14em; }
.conta { font-variant-numeric: lining-nums tabular-nums; color: var(--oro-testo); }
.vetrina-capo p { margin: 18px 0 0; color: var(--tenue); font-size: 1.08rem; max-width: 46ch; }
.vetrina-corpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); margin-top: clamp(24px, 4vw, 48px); }
.passi { list-style: none; margin: 0; padding: 14vh 0 22vh; }
.passo { min-height: 46vh; display: flex; align-items: center; }
.passo a { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-items: center; text-decoration: none;
  opacity: 0.4; transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.75, 0.15, 1); transform: translateX(0); }
.passo img { grid-row: span 2; width: 56px; height: 56px; border-radius: 12.5px; box-shadow: 0 0 0 1px var(--bordo-icona); }
.pn { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.05; }
.pg { color: var(--tenue); font-size: 0.95rem; }
.passo.attivo a { opacity: 1; transform: translateX(10px); }
.palco { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; overflow: clip; }
.scena { position: relative; width: min(100%, 370px); aspect-ratio: 460 / 999; }
.diapo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; border-radius: 22px;
  box-shadow: var(--ombra); opacity: 0; transform: translate3d(0, 30px, 0) scale(0.94);
  transition: opacity 0.25s ease, transform 0.8s cubic-bezier(0.2, 0.75, 0.15, 1); }
/* quella che esce sparisce in fretta, quella nuova arriva subito dopo: le due schermate non si sovrappongono */
.diapo.attiva { opacity: 1; transform: none; transition: opacity 0.45s 0.2s ease, transform 0.8s 0.12s cubic-bezier(0.2, 0.75, 0.15, 1); }
/* i giochi in orizzontale: la schermata arriva ruotando di 90 gradi */
.diapo.larga { max-width: none; width: 216.5%; height: auto; inset: auto; left: 50%; top: 50%; aspect-ratio: 1000 / 462; border-radius: 18px;
  transform: translate(-50%, -50%) rotate(-90deg) scale(0.9); }
.diapo.larga.attiva { transform: translate(-50%, -50%) rotate(0deg) scale(0.62); }
html.fermo .diapo, html.fermo .passo a { transition: none; }

/* ---------- video nelle schede ---------- */
.cornice { position: relative; margin: 0; flex: none; border-radius: 30px; padding: 7px;
  background: linear-gradient(160deg, #2a2c63, #0c0d24); box-shadow: var(--ombra), inset 0 0 0 1px rgba(247, 244, 237, 0.16); }
.cornice::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(210, 176, 107, 0.35); }
.cornice video { display: block; width: 100%; height: auto; border-radius: 23px; background: #0c0d24; }
.cornice.vert { width: calc(50% - 10px); max-width: 252px; }
.cornice.oriz { width: 100%; max-width: 600px; border-radius: 26px; }
.cornice.oriz video { border-radius: 19px; }
.solo-video { justify-content: flex-end; }
.solo-video .cornice.vert { width: min(100%, 280px); max-width: 280px; }
.suono, .avvia { position: absolute; display: grid; place-items: center; border: 0; cursor: pointer; color: var(--avorio);
  background: rgba(12, 13, 36, 0.62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px rgba(247, 244, 237, 0.25); }
.suono { right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%; }
.suono svg { width: 22px; height: 22px; }
.suono .voce, .suono[aria-pressed="true"] .muto { display: none; }
.suono[aria-pressed="true"] .voce { display: block; }
.avvia { left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; opacity: 0;
  pointer-events: none; transition: opacity 0.3s ease; }
.avvia svg { width: 28px; height: 28px; margin-left: 3px; }
html.fermo .cornice:not(.va) .avvia { opacity: 1; pointer-events: auto; }
.suono:focus-visible, .avvia:focus-visible { outline: 2px solid var(--oro); outline-offset: 2px; }

/* ---------- social ---------- */
.sociale { max-width: calc(var(--larghezza) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(72px, 10vw, 140px) var(--gutter) clamp(48px, 7vw, 96px); }
.sociale h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 1.6rem + 3.6vw, 4.4rem); line-height: 1; }
.sociale h2::after { content: ""; display: block; width: 56px; height: 2px; background: var(--oro); margin-top: 22px; }
.sociale > div > p { margin: 22px 0 0; color: var(--tenue); font-size: 1.08rem; max-width: 52ch; }
.reti { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; }
.rete { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 4px 16px;
  padding: 22px 24px; border-radius: 20px; text-decoration: none; background: var(--superficie, rgba(26, 28, 66, 0.04));
  box-shadow: inset 0 0 0 1px var(--linea); transition: box-shadow 0.3s ease, transform 0.3s ease; }
.rete:hover { box-shadow: inset 0 0 0 1px var(--oro); transform: translateY(-2px); }
.rete .sn { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; line-height: 1.1; }
.rete .sh { grid-column: 1; color: var(--tenue); font-size: 0.95rem; }
.rete .sv { grid-column: 2; grid-row: 1 / span 2; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  background: var(--notte-2); color: var(--avorio); white-space: nowrap; }
.ultimi { margin: 48px 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; }
.posts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 20px; }
.post { display: flex; flex-direction: column; gap: 10px; }
.post .pv { display: block; border-radius: 22px; overflow: hidden; box-shadow: var(--ombra); background: #0c0d24; }
.post img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; transition: transform 0.5s ease; }
.post .pv:hover img { transform: scale(1.03); }
.post .pt { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.2; margin-top: 4px; }
.post .pl { display: grid; gap: 6px; }
.post .pl a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; text-decoration: none;
  font-size: 0.88rem; font-weight: 600; text-align: center; padding: 0 8px; box-shadow: inset 0 0 0 1px var(--linea); }
.post .pl a:hover { box-shadow: inset 0 0 0 1px var(--oro); }
.contatti { margin-top: 0; }

/* ---------- misure per vetrina, video e social ---------- */
@media (max-width: 760px) {
  .vetrina-corpo { display: flex; flex-direction: column; }
  .palco { order: -1; height: 60vh; height: 60svh; top: 0; z-index: 2; background: var(--fondo); }
  .palco::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 48px; background: linear-gradient(var(--fondo), transparent); pointer-events: none; }
  .scena { width: auto; height: 86%; }
  .diapo.larga.attiva { transform: translate(-50%, -50%) rotate(0deg) scale(0.78); }
  .passi { padding: 8vh 0 16vh; position: relative; z-index: 1; }
  .passo { min-height: 30vh; }
  .passo a { padding: 14px 16px; border-radius: 18px; background: var(--fondo); box-shadow: 0 10px 30px -18px rgba(17, 18, 48, 0.5); }
  .passo.attivo a { transform: none; }
  .cornice.vert { width: calc(50% - 6px); }
  .solo-video { justify-content: flex-start; }
  .reti { grid-template-columns: minmax(0, 1fr); }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .cornice { border-radius: 24px; padding: 5px; }
  .cornice video { border-radius: 19px; }
  .suono { right: 10px; bottom: 10px; }
  .rete { padding: 18px; }
  .rete .sn { font-size: 1.45rem; }
  .rete { grid-template-columns: minmax(0, 1fr); }
  .rete .sv { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }
}
html:not(.js) .cornice { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rete .sv { background: var(--avorio); color: var(--notte-2); } }
:root[data-theme="dark"] .rete .sv { background: var(--avorio); color: var(--notte-2); }
