/* ════════════════════════════════════════════════════════════════
   Shotokan Karate Club Mozzo ASD — foglio di stile
   Grafica: mockup del committente (nero · bianco · rosso, fasce alternate)
   Regola THK: si animano solo transform e opacity.
   ════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  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: "Yuji Boku";
  src: url("../fonts/yuji-boku-karatedo.woff2") format("woff2");
  font-display: block;
}

:root {
  --nero: #0b0b0c;
  --carbone: #141211;
  --bianco: #ffffff;
  --carta: #eeedeb;
  --carta-2: #f5f4f2;
  --rosso: #d2262d;          /* bottoni e testo rosso su fondo chiaro */
  --rosso-scuro: #ab1a20;
  --rosso-chiaro: #ef4a50;   /* testo rosso piccolo su fondo scuro (contrasto ≥ 4,5:1) */
  --inchiostro: #151515;
  --grigio: #5d5a57;
  --grigio-chiaro: #b3ada6;
  --testata: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --larg: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--testata) + 8px); }
body {
  margin: 0; background: var(--nero); color: var(--inchiostro);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.6; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.menu-aperto { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.contenitore { width: min(100% - 2.5rem, var(--larg)); margin-inline: auto; }

.salta {
  position: absolute; left: 1rem; top: -60px; z-index: 100; padding: .6rem 1rem;
  background: var(--rosso); color: #fff; border-radius: 4px; text-decoration: none;
  transition: transform .2s var(--ease);
}
.salta:focus { transform: translateY(76px); }
:focus-visible { outline: 2px solid var(--rosso-chiaro); outline-offset: 3px; }

/* ── tipografia comune ─────────────────────────────────────────── */
.sopratitolo {
  color: var(--rosso); font-weight: 700; font-size: .8rem; letter-spacing: .34em;
  text-transform: uppercase; margin-bottom: .9rem;
}
.hero .sopratitolo, .corsi .sopratitolo, .dove .sopratitolo { color: var(--rosso-chiaro); }
h2 {
  font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 1.9vw, 2.75rem); line-height: 1.08;
  letter-spacing: -.012em; margin-bottom: 1.1rem; font-stretch: 104%; text-wrap: balance;
}
.kanji { font-family: "Yuji Boku", serif; writing-mode: vertical-rl; line-height: 1.02; user-select: none; }
.kanji span { display: inline-block; }

/* ── pulsanti: il colore del passaggio è uno strato che compare in opacità ── */
.bottone {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .7rem; padding: 1rem 1.6rem;
  font: 700 .85rem/1 "Archivo", sans-serif; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid transparent; border-radius: 2px; cursor: pointer;
  transition: transform .25s var(--ease);
}
.bottone::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--strato, transparent); opacity: 0; transition: opacity .25s var(--ease); }
.bottone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.bottone svg.wa { width: 20px; height: 20px; stroke-width: 1.6; }
.bottone:hover { transform: translateY(-2px); }
.bottone:hover::before { opacity: 1; }
.bottone:hover svg.freccia { transform: translateX(4px); }
.bottone:hover svg.giu { transform: translateY(3px); }
.bottone:active { transform: translateY(0); }
.bottone--rosso { background: var(--rosso); color: #fff; box-shadow: 0 10px 26px -12px rgba(210, 38, 45, .7); --strato: var(--rosso-scuro); }
.bottone--bordo { border-color: var(--rosso); color: var(--inchiostro); background: transparent; --strato: var(--rosso); }
.bottone--bordo:hover { color: #fff; }
.bottone--grande { padding: 1.25rem 2rem; font-size: .95rem; }
.bottone--pieno { width: 100%; justify-content: center; }

/* ════════════ TESTATA ════════════ */
.testata { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--nero); }
.testata::after { content: ""; position: absolute; inset: 0; z-index: -1; box-shadow: 0 8px 30px rgba(0, 0, 0, .45); opacity: 0; transition: opacity .3s; pointer-events: none; }
.testata.scesa::after { opacity: 1; }
.testata__barra {
  height: var(--testata); width: min(100% - 2.5rem, 1360px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
/* logo del cliente (01/10): tigre e kanji 心技体, fondo trasparente (niente riquadro bianco, richiesta del 01/10); accanto il nome del club in testo */
.testata__logo { position: relative; z-index: 3; flex: none; display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; }
.testata__logo img { height: 54px; width: auto; transition: transform .3s var(--ease); }
.testata__nome { display: flex; flex-direction: column; line-height: 1.05; }
.testata__nome b { font-weight: 800; font-size: 1rem; letter-spacing: .07em; text-transform: uppercase; font-stretch: 110%; }
.testata__nome span { margin-top: .3rem; font-size: .66rem; font-weight: 600; letter-spacing: .27em; text-transform: uppercase; color: var(--grigio-chiaro); }
.testata__logo:hover img { transform: scale(1.03); }
.menu ul { display: flex; gap: clamp(1rem, 2.4vw, 2.6rem); }
.menu a { position: relative; display: block; padding: .5rem 0; color: #f1f1f1; text-decoration: none; font-size: .95rem; font-weight: 500; letter-spacing: .01em; }
.menu ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -18px; height: 3px; background: var(--rosso);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.menu ul a:hover { color: #fff; }
.menu ul a:hover::after { transform: scaleX(.5); }
.menu ul a.attivo { color: var(--rosso-chiaro); }
.menu ul a.attivo::after { transform: scaleX(1); }
.menu .menu__wa { display: none; }
.hamburger { display: none; }

/* ✦ la firma: la cintura che cambia colore */
.cintura { position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: rgba(255, 255, 255, .05); pointer-events: none; }
.cintura__riempi { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left center; will-change: transform; }
.cintura__riempi i { position: absolute; inset: 0; background: var(--c); opacity: 0; transition: opacity .45s; }
.cintura__riempi i:first-child { opacity: 1; }
.cintura__riempi i.nera { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(255, 255, 255, .12); }
.cintura__riempi::after { /* il nodo, in punta */
  content: ""; position: absolute; right: 4px; top: -3px; width: 11px; height: 11px; border-radius: 2px;
  background: var(--rosso); transform: rotate(45deg) scale(var(--nodo, 0)); transition: transform .3s var(--ease);
}

/* ════════════ HERO ════════════ */
/* computer: la foto del maestro occupa la parte destra, il titolo sta sul fondo scuro a sinistra */
.hero {
  position: relative; min-height: max(100svh, 640px); padding-top: var(--testata);
  display: flex; align-items: center; overflow: hidden; background: #0e0a08; color: #fff; isolation: isolate;
}
.hero__foto { position: absolute; top: var(--testata); bottom: 0; right: 0; left: max(42%, calc(100% - (100svh - var(--testata)) * 1.15)); z-index: -3; overflow: hidden; will-change: transform; animation: entra-foto 1.6s var(--ease) both; }
/* il bordo sinistro della foto sfuma sempre nel fondo, ovunque cominci (sui portatili bassi parte oltre il velo) */
.hero__foto::before { content: ""; position: absolute; inset: 0 auto 0 0; z-index: 1; width: 14%; background: linear-gradient(90deg, #0e0a08, rgba(14, 10, 8, 0)); pointer-events: none; display: none; }
/* serve solo sugli schermi molto larghi e bassi (≥ 2:1), dove la foto comincia oltre il velo: altrove scurirebbe la gamba del maestro */
@media (min-width: 1201px) and (min-aspect-ratio: 2/1) { .hero__foto::before { display: block; } }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 45% 0%; transform-origin: 50% 10%; animation: respiro 24s ease-in-out infinite alternate; }
.hero__velo {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(90deg, #0e0a08 0%, #0e0a08 42%, rgba(14, 10, 8, .6) 46%, rgba(14, 10, 8, .12) 51%, rgba(14, 10, 8, 0) 55%),
    linear-gradient(180deg, rgba(14, 10, 8, .25) 0%, rgba(14, 10, 8, 0) 18%, rgba(14, 10, 8, 0) 82%, rgba(14, 10, 8, .55) 100%);
}
.hero__testo { position: relative; padding-block: 4rem 6rem; }
.hero__testo > * { max-width: min(600px, 40vw); }
.hero__titolo { font-weight: 800; line-height: .9; letter-spacing: -.01em; margin: .2rem 0 1.4rem; font-stretch: 112%; }
.hero__titolo .riga { display: block; font-size: clamp(3.1rem, 1rem + 5vw, 6rem); text-transform: uppercase; }
.hero__titolo .rosso { color: var(--rosso); }
.hero__titolo .piccola { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem); font-weight: 600; text-transform: none; letter-spacing: .01em; margin-top: .55rem; font-stretch: 100%; }
/* terza riga = resto del nome ufficiale «SHOTOKAN KARATE club MOZZO ASD» (01/10) */
.hero__titolo .nome { text-transform: uppercase; font-weight: 700; letter-spacing: .07em; }
.hero__titolo .nome abbr { text-decoration: none; }
.hero__sotto { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: #efe9e2; margin-bottom: 2rem; text-wrap: pretty; }
.hero__nota { margin-top: 1.1rem; font-size: .95rem; color: #d8d0c7; letter-spacing: .01em; text-wrap: pretty; }
.hero__giu { position: absolute; left: calc(max(1.25rem, (100% - var(--larg)) / 2) + 13px); bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 14px; transition: transform .3s var(--ease); }
.hero__giu:hover { transform: translateY(3px); }
.hero__giu span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: rotella 1.8s ease-in-out infinite; }
.con-avviso .hero__giu { transform: translateY(-48px); }

.entra { opacity: 0; transform: translateY(26px); animation: sali .9s var(--ease) var(--d, 0s) forwards; }

@keyframes sali { to { opacity: 1; transform: none; } }
@keyframes entra-foto { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes respiro { from { transform: scale(1); } to { transform: scale(1.04); } }
@keyframes rotella { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } 100% { opacity: 0; } }

/* ════════════ FASCIA DEI FATTI ════════════ */
.fatti { background: var(--carta); padding: 3rem 0 3.2rem; }
.fatti__griglia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.fatto { padding: .4rem 1rem; }
.fatto + .fatto { border-left: 1px solid rgba(0, 0, 0, .08); }
.fatto__icona { width: 48px; height: 48px; margin: 0 auto .9rem; fill: none; stroke: var(--inchiostro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.fatto:hover .fatto__icona { transform: translateY(-4px) rotate(-4deg); }
.fatto.in .fatto__icona { animation: timbro .8s var(--ease) calc(var(--d, 0s) + .25s) both; }
@keyframes timbro { 0% { opacity: 0; transform: scale(.6) rotate(-12deg); } 70% { opacity: 1; transform: scale(1.08) rotate(2deg); } 100% { transform: none; } }
.fatto__dato { font-weight: 800; font-size: 1.45rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; margin-bottom: .35rem; font-stretch: 108%; font-variant-numeric: tabular-nums; }
.fatto__testo { font-size: .92rem; color: var(--grigio); line-height: 1.45; max-width: 22ch; margin-inline: auto; }

/* ════════════ IL MAESTRO ════════════ */
.maestro { display: grid; grid-template-columns: 1fr 1fr; background: var(--carta-2); min-height: 560px; }
.maestro__foto { position: relative; overflow: hidden; background: #120d0a; }
.maestro__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 0%; transform-origin: 50% 0%; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.maestro__foto:hover img { transform: scale(1.06); }
.maestro__testo { position: relative; padding: clamp(3rem, 6vw, 5.5rem) clamp(1.5rem, 6vw, 6rem); padding-right: clamp(5rem, 12vw, 11rem); align-self: center; }
.maestro__testo p:not(.sopratitolo) { color: #2b2927; margin-bottom: 1rem; max-width: 46ch; }
.maestro__citazione { margin: 1.6rem 0 2.2rem; padding-left: 1.1rem; border-left: 3px solid var(--rosso); }
.maestro__citazione p { font-style: italic; font-size: 1.12rem; color: var(--inchiostro); margin: 0; }
.maestro__testo .maestro__kanji { margin: 0; max-width: none; position: absolute; right: clamp(1rem, 4vw, 3.5rem); top: 50%; transform: translateY(-50%); font-size: clamp(3rem, 5.2vw, 5.6rem); color: rgba(20, 20, 20, .2); pointer-events: none; }

/* ════════════ I CORSI ════════════ */
.corsi {
  position: relative; color: #fff; padding: clamp(4rem, 8vw, 6.5rem) 0; overflow: hidden;
  background: radial-gradient(90% 120% at 50% 110%, #231812 0%, #0f0c0a 55%, #0a0908 100%);
}
.corsi__griglia { display: grid; grid-template-columns: 1.05fr .85fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.corsi__testo p:not(.sopratitolo) { color: #ddd6ce; font-size: 1.15rem; margin-bottom: 2rem; max-width: 30ch; }
.corsi__foto { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.corsi__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; transform-origin: 50% 10%; transition: transform 1.2s var(--ease); }
.corsi__foto:hover img { transform: scale(1.05); }
.corsi__voci { display: grid; gap: 1.1rem; }
.corsi__voci li { display: flex; align-items: center; gap: 1rem; font-weight: 600; font-size: 1.08rem; }
.tondo { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--rosso); display: grid; place-items: center; transition: transform .35s var(--ease); }
.tondo::before { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; background: var(--rosso); opacity: 0; transition: opacity .35s var(--ease); }
.tondo svg { position: relative; width: 24px; height: 24px; fill: none; stroke: var(--rosso-chiaro); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.corsi__voci li:hover .tondo { transform: scale(1.08); }
.corsi__voci li:hover .tondo::before { opacity: 1; }
.corsi__voci li:hover .tondo svg { stroke: #fff; }

/* ════════════ LA PROVA ════════════ */
.prova { background: var(--carta-2); padding-bottom: clamp(4rem, 7vw, 6rem); }
.prova--anteprima { padding-bottom: 0; }
.prova__alto { display: grid; grid-template-columns: 1fr 1.15fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-right: max(1.25rem, calc((100vw - var(--larg)) / 2)); }
.prova__foto { align-self: stretch; min-height: 380px; position: relative; overflow: hidden; }
.prova__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent 100%); mask-image: linear-gradient(90deg, #000 55%, transparent 100%); transition: transform 1.2s var(--ease); }
.prova__foto:hover img { transform: scale(1.04); }
.prova__testo { padding-block: 3.5rem; }
.prova__testo p:not(.sopratitolo) { color: #2b2927; font-size: 1.1rem; margin-bottom: 1.8rem; max-width: 36ch; }
.prova__citazione blockquote p { font-style: italic; font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); line-height: 1.5; color: var(--inchiostro); }
.prova__citazione figcaption { margin-top: 1rem; font-weight: 700; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--grigio); }
.prova__citazione figcaption::after { content: ""; display: block; width: 44px; height: 3px; margin-top: .9rem; background: var(--rosso); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease) .4s; }
.prova__citazione.in figcaption::after { transform: scaleX(1); }

.passi { padding-top: clamp(2.5rem, 5vw, 4rem); }
.passi__titolo { font-weight: 800; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin-bottom: 2rem; font-stretch: 104%; }
.passi__lista { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.passi__lista li { position: relative; padding: 1.6rem 1.4rem 1.5rem; background: #fff; transition: transform .35s var(--ease); }
.passi__lista li::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--inchiostro); }
.passi__lista li::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--rosso); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.passi__lista li:hover { transform: translateY(-4px); }
.passi__lista li:hover::after { transform: scaleX(1); }
.passi__n { display: block; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--rosso); margin-bottom: .8rem; font-stretch: 112%; }
.passi__lista h4 { font-size: 1.08rem; font-weight: 700; line-height: 1.3; margin-bottom: .45rem; }
.passi__lista h4 a { text-decoration: underline; text-decoration-color: var(--rosso); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.passi__lista p { font-size: .95rem; color: var(--grigio); line-height: 1.5; }

/* cosa da FARE — il messaggio */
.messaggio { margin-top: 2.5rem; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--nero); color: #fff; border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .6); }
.messaggio__campi { padding: 2rem clamp(1.4rem, 3vw, 2.4rem); }
.messaggio__titolo { font-weight: 800; font-size: 1.25rem; margin-bottom: 1.2rem; }
.messaggio__chi { border: 0; padding: 0; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.messaggio__chi legend { width: 100%; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--grigio-chiaro); margin-bottom: .6rem; padding: 0; }
.messaggio__chi label { cursor: pointer; }
.messaggio__chi input { position: absolute; opacity: 0; pointer-events: none; }
.messaggio__chi span { display: inline-block; padding: .6rem 1.1rem; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform .25s var(--ease); }
.messaggio__chi label:hover span { border-color: #fff; transform: translateY(-1px); }
.messaggio__chi input:checked + span { background: var(--rosso); border-color: var(--rosso); }
.messaggio__chi input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.messaggio__righe { display: grid; grid-template-columns: 1fr 120px; gap: .8rem; }
.campo span { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--grigio-chiaro); margin-bottom: .45rem; }
.campo input { width: 100%; padding: .85rem 1rem; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 3px; background: rgba(255, 255, 255, .06); color: #fff; font: 500 1rem "Archivo", sans-serif; }
.campo input::placeholder { color: rgba(255, 255, 255, .6); }
.campo input:hover { border-color: rgba(255, 255, 255, .7); }
.campo input:focus { outline: none; border-color: var(--rosso-chiaro); background: rgba(255, 255, 255, .1); }
.campo input[aria-invalid="true"] { border-color: var(--rosso-chiaro); }
.messaggio__anteprima { padding: 2rem clamp(1.4rem, 3vw, 2.4rem); background: #17130f; display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; }
.fumetto { align-self: flex-start; max-width: 100%; padding: 1rem 1.15rem; background: #fff; color: var(--inchiostro); border-radius: 14px 14px 14px 4px; font-size: 1rem; line-height: 1.5; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); transition: transform .3s var(--ease); }
.fumetto.aggiornato { animation: pulsa .45s var(--ease); }
@keyframes pulsa { 0% { transform: scale(.98); } 60% { transform: scale(1.015); } 100% { transform: none; } }

/* ════════════ DOMANDE ════════════ */
.domande { background: #fff; padding: clamp(4rem, 7vw, 6rem) 0; }
.domande__griglia { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; margin-top: 1rem; align-items: start; }
.domande details { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.domande summary { position: relative; list-style: none; cursor: pointer; padding: 1.25rem 3rem 1.25rem 0; font-weight: 700; font-size: 1.08rem; line-height: 1.4; }
.domande summary::-webkit-details-marker { display: none; }
.domande summary::before, .domande summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--rosso);
  transition: transform .35s var(--ease), opacity .35s;
}
.domande summary::after { transform: rotate(90deg); }
.domande details[open] summary::after { transform: rotate(0deg); opacity: 0; }
.domande summary:hover { color: var(--rosso); }
.domande summary:hover::before { transform: scaleX(1.25); }
.domande details p { padding: 0 3rem 1.4rem 0; color: #3a3735; animation: apri .4s var(--ease); }
@keyframes apri { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ════════════ DOVE E QUANDO ════════════ */
.dove { position: relative; color: #fff; padding: clamp(4rem, 8vw, 6.5rem) 0; background: radial-gradient(80% 120% at 85% 50%, #1d1611 0%, #0d0b0a 60%); overflow: hidden; }
.dove__griglia { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.dove__indirizzo { font-size: 1.2rem; font-weight: 600; margin-bottom: 1.2rem; }
.dove__corsi { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.dove__corsi li { padding: .45rem .95rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; font-size: .95rem; }
.dove__testo p:last-child { color: #d8d0c7; }
.dove__azioni { padding: 2.2rem; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); border-radius: 4px; }
.dove__domanda { color: #d8d0c7; margin-bottom: 1rem; }
.dove__numero { margin-top: 1.1rem; font-weight: 800; font-size: 1.6rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.dove__mappa { display: inline-flex; align-items: center; gap: .4rem; margin-top: .9rem; color: #efe9e2; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; }
.dove__mappa svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s var(--ease); }
.dove__mappa:hover { color: #fff; border-color: var(--rosso-chiaro); }
.dove__mappa:hover svg { transform: translate(2px, -2px); }
.dove__mappa + .dove__mappa { margin-left: 1.4rem; }
.dove__mail { margin-top: .6rem; color: var(--grigio); }
.dove__mail a { color: var(--inchiostro); font-weight: 700; }

/* ════════════ GALLERIA — 4 dettagli in fila, come nel mockup ════════════ */
.galleria { background: var(--nero); padding: 6px 0; }
.galleria__griglia { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.galleria__griglia li { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #1a1a1a; }
.galleria__griglia img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .6s; }
.galleria__griglia img.colore { opacity: 0; }
.galleria__griglia li:hover img { transform: scale(1.07); }
.galleria__griglia li:hover img.colore { opacity: 1; }

/* ════════════ PIEDE ════════════ */
.piede { background: var(--nero); color: #cfc8c0; padding: 3.5rem 0 1.5rem; font-size: .95rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.con-avviso .piede { padding-bottom: 4.5rem; }
.piede__griglia { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: 2.5rem; align-items: start; }
.piede__marchio img { height: 84px; width: auto; margin-bottom: 1rem; }
.piede__nome { color: #fff; font-weight: 700; }
.piede__menu { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; padding-top: .8rem; }
.piede__menu a { text-decoration: none; color: #e9e3dc; }
.piede__menu a:hover { color: var(--rosso-chiaro); }
.piede__contatti p { margin-bottom: .8rem; line-height: 1.5; }
.piede__contatti p.indirizzo { display: flex; gap: .5rem; }
.piede__contatti svg { width: 18px; height: 18px; flex: none; margin-top: 3px; fill: none; stroke: var(--rosso-chiaro); stroke-width: 1.8; }
.piede__contatti a { color: #fff; font-weight: 700; text-decoration: none; }
.piede__contatti a:hover { color: var(--rosso-chiaro); }
.piede__legale { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 2rem; margin-top: 2.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; color: #a39c94; }
.piede__legale a { color: #ddd6ce; }
.piede__legale a:hover { color: #fff; }

/* WhatsApp fisso (solo telefono) */
.wa-fisso { display: none; }

/* avviso cookie, una riga */
.cookie { position: fixed; inset: auto 0 0 0; z-index: 60; display: flex; gap: 1rem; align-items: center; justify-content: center; padding: .6rem 1rem; font-size: .82rem; line-height: 1.35; background: #151311; color: #d8d0c7; border-top: 1px solid rgba(255, 255, 255, .1); }
.cookie[hidden] { display: none; }
.cookie p { white-space: nowrap; }
.cookie .corto { display: none; }
.cookie a { color: #fff; text-underline-offset: 2px; }
.cookie__x { background: none; border: 0; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: .7; padding: .2rem .4rem; transition: opacity .2s, transform .2s; }
.cookie__x:hover { opacity: 1; transform: rotate(90deg); }

/* ── comparsa allo scorrimento (solo se il JS c'è) ─────────────── */
.js .svela { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .svela.in { opacity: 1; transform: none; }

/* ════════════ PAGINE INTERNE (dal 01/10: il sito passa da una pagina a cinque) ════════════ */
/* apertura: fondo scuro come la hero, titolo a sinistra, foto in cornice a destra */
.apertura { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: calc(var(--testata) + clamp(2.2rem, 5vw, 4.5rem)) 0 clamp(3.2rem, 6vw, 5.5rem); background: radial-gradient(70% 110% at 85% 40%, #231812 0%, #0e0a08 62%); }
.apertura__griglia { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.apertura .sopratitolo { color: var(--rosso-chiaro); }
.apertura h1 { font-weight: 800; font-stretch: 112%; text-transform: uppercase; line-height: .96; letter-spacing: -.01em; font-size: clamp(2.3rem, 1rem + 4vw, 4.5rem); margin-bottom: 1.3rem; text-wrap: balance; }
.apertura h1 .rosso { color: var(--rosso); }
.apertura h1 .riga { display: block; }
.apertura h1 .piccola { font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem); font-weight: 600; font-stretch: 100%; text-transform: none; letter-spacing: .01em; line-height: 1.2; margin-top: .7rem; }
.apertura h1 .piccola.sopra { margin: 0 0 .6rem; }
.apertura__intro { color: #e6dfd7; font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); max-width: 38ch; text-wrap: pretty; }
.apertura__intro + .apertura__intro { margin-top: .8rem; }
.apertura__azioni { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; }
.apertura__foto { justify-self: end; width: min(100%, 460px); aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: #120d0a; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95); }
.apertura__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transform: scale(1.02); transition: transform 1.2s var(--ease); }
.apertura__foto:hover img { transform: scale(1.06); }
.apertura__kanji { position: absolute; z-index: -1; left: -.04em; bottom: -.18em; font-size: clamp(9rem, 22vw, 19rem); color: rgba(255, 255, 255, .035); writing-mode: horizontal-tb; pointer-events: none; }
.briciole { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--grigio-chiaro); margin-bottom: 1.8rem; }
.briciole a { color: #e9e3dc; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.briciole a:hover { color: #fff; border-color: var(--rosso-chiaro); }
.link-freccia { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: inherit; border-bottom: 2px solid var(--rosso); padding-bottom: .25rem; }
.link-freccia svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.link-freccia:hover svg { transform: translateX(4px); }

/* sezioni delle pagine interne */
.sezione { position: relative; padding: clamp(4rem, 7vw, 6rem) 0; background: var(--carta-2); }
.sezione--bianca { background: #fff; }
.sezione--scura { color: #fff; background: radial-gradient(90% 120% at 50% 110%, #231812 0%, #0f0c0a 55%, #0a0908 100%); }
.sezione--scura .sopratitolo { color: var(--rosso-chiaro); }
.sezione__testa { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.sezione__testa p:not(.sopratitolo) { color: #2b2927; font-size: 1.1rem; text-wrap: pretty; }
.sezione--scura .sezione__testa p:not(.sopratitolo) { color: #ddd6ce; }
.due { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.testo p { color: #2b2927; margin-bottom: 1rem; max-width: 54ch; text-wrap: pretty; }
.sezione--scura .testo p { color: #ddd6ce; }
.testo h3 { font-size: 1.2rem; font-weight: 800; margin: 1.6rem 0 .5rem; }
.elenco { display: grid; gap: .7rem; margin: .4rem 0 1.4rem; }
.elenco li { position: relative; padding-left: 1.6rem; color: #2b2927; }
.elenco li::before { content: ""; position: absolute; left: 0; top: .72em; width: .9rem; height: 2px; background: var(--rosso); }
.sezione--scura .elenco li { color: #ddd6ce; }
.foto-cornice { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 2px; background: #120d0a; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .6); }
.foto-cornice img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; transition: transform 1.2s var(--ease); }
.foto-cornice:hover img { transform: scale(1.05); }
.citazione-grande { max-width: 30ch; }
.citazione-grande blockquote p { font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.2rem); line-height: 1.35; text-wrap: balance; }
.citazione-grande figcaption { margin-top: 1.2rem; font-weight: 700; font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--grigio-chiaro); }
.citazione-grande figcaption::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 1rem; background: var(--rosso); }

/* il percorso del maestro, a tappe */
.tappe { position: relative; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 1.5rem; }
.tappe::before { content: ""; position: absolute; left: 0; right: 0; top: 1.1rem; height: 2px; background: rgba(0, 0, 0, .12); }
.tappe::after { content: ""; position: absolute; left: 0; right: 0; top: 1.1rem; height: 2px; background: var(--rosso); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
.tappe.in::after { transform: scaleX(1); }
.tappe li { position: relative; padding-top: 3.1rem; padding-right: 1rem; }
.tappe li::before { content: ""; position: absolute; top: .5rem; left: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--carta-2); border: 3px solid var(--rosso); z-index: 1; }
.tappe__anno { display: block; font-weight: 800; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.9rem); line-height: 1; font-stretch: 112%; margin-bottom: .7rem; font-variant-numeric: tabular-nums; }
.tappe h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin-bottom: .4rem; }
.tappe p { color: var(--grigio); font-size: .98rem; line-height: 1.5; }

/* schede dei corsi */
.schede { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.scheda { position: relative; background: #fff; padding: 2.2rem clamp(1.4rem, 3vw, 2.4rem) 2rem; transition: transform .35s var(--ease); }
.scheda::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--inchiostro); }
.scheda::after { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--rosso); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.scheda:hover { transform: translateY(-4px); }
.scheda:hover::after { transform: scaleX(1); }
.scheda .tondo { margin-bottom: 1.2rem; }
.scheda h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); font-weight: 800; line-height: 1.15; margin-bottom: .7rem; font-stretch: 106%; }
.scheda p { color: #2b2927; margin-bottom: .9rem; }
.scheda .elenco { margin-bottom: 0; }

/* lo Shotokan in tre parole */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255, 255, 255, .14); }
.trio li { padding: 2rem 2rem 1rem 0; }
.trio li + li { padding-left: 2rem; border-left: 1px solid rgba(255, 255, 255, .14); }
.trio__parola { font-weight: 800; font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.8rem); line-height: 1; text-transform: uppercase; font-stretch: 112%; }
.trio__senso { margin: .55rem 0 1rem; color: var(--rosso-chiaro); font-weight: 700; font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; }
.trio p { color: #ddd6ce; }

/* il percorso delle cinture: gli stessi colori della firma in testata */
.cinture { display: grid; grid-template-columns: repeat(7, 1fr); gap: .6rem; margin: 2rem 0 .4rem; }
.cinture li { font-size: .88rem; font-weight: 600; color: #2b2927; }
.cinture li::before { content: ""; display: block; height: 16px; margin-bottom: .6rem; border-radius: 2px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); transform-origin: left center; }
.js .cinture li::before { transform: scaleX(0); }
.js .cinture.in li::before { transform: none; transition: transform .7s var(--ease) calc(var(--i, 0) * .09s); }

/* in fondo a ogni pagina: la pagina successiva */
.prossima { background: var(--nero); border-top: 1px solid rgba(255, 255, 255, .06); }
.prossima a { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(2.6rem, 5vw, 4rem) 0; color: #fff; text-decoration: none; }
.prossima__etichetta { display: block; margin-bottom: .6rem; color: var(--rosso-chiaro); font-weight: 700; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; }
.prossima__titolo { display: block; font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem); line-height: 1; text-transform: uppercase; font-stretch: 112%; }
.prossima svg { flex: none; width: clamp(40px, 5vw, 64px); height: clamp(40px, 5vw, 64px); fill: none; stroke: var(--rosso); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease); }
.prossima a:hover svg { transform: translateX(10px); }

/* contatti: il riquadro del messaggio sta nell'apertura, al posto della foto */
.apertura .messaggio { margin-top: 0; grid-template-columns: 1fr; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95); border: 1px solid rgba(255, 255, 255, .1); }
.apertura .messaggio__campi { background: #15110e; }

/* pagine interne — blocchi in più */
.schede--tre { grid-template-columns: repeat(3, 1fr); }
.scheda--carta { background: var(--carta-2); }
.citazioni { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); }
.foto-cornice--larga { aspect-ratio: 3 / 2; }
.due--testo { grid-template-columns: .85fr 1.15fr; align-items: start; }
.due--testo h2 { margin-bottom: 0; }
.testo--filo { padding-left: 1.4rem; border-left: 3px solid var(--rosso); }
.testo--filo p { font-size: 1.15rem; color: var(--inchiostro); }
.passi--pagina { padding-top: 0; }
.punti { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.punti li .tondo { margin-bottom: 1rem; }
.punti h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; margin-bottom: .45rem; }
.punti p { color: #ddd6ce; }
.punti--righe { grid-template-columns: 1fr; gap: 1rem; }
.punti--righe li { display: flex; align-items: center; gap: 1rem; }
.punti--righe li .tondo { margin-bottom: 0; }
.punti--righe h3 { margin: 0; }
.quando-intro { color: #ddd6ce; font-size: 1.15rem; }
.quando-nota { margin-top: 1.4rem; color: #d8d0c7; }
.dove-riga { font-size: 1.2rem; font-weight: 600; color: var(--inchiostro) !important; margin-bottom: 1.6rem !important; }
.dove__azioni--chiaro { border-color: rgba(0, 0, 0, .1); background: var(--carta-2); }
.dove__azioni--chiaro .dove__numero { color: var(--inchiostro); }
.chiusura { padding: clamp(3rem, 5vw, 4.2rem) 0; }
.chiusura__riga { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.chiusura h2 { margin-bottom: .4rem; }
.chiusura p { color: #2b2927; }
.sezione--scura.chiusura p { color: #ddd6ce; }
.chiusura__azioni { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.6rem; }
.messaggio__guida { color: #d8d0c7; font-size: .95rem; margin: -.6rem 0 1.2rem; }
.scheda-club { display: flex; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: flex-start; background: #fff; padding: clamp(1.8rem, 4vw, 2.8rem); border-top: 3px solid var(--inchiostro); max-width: 760px; }
.scheda-club img { width: 64px; height: auto; flex: none; }
.scheda-club > div { min-width: 0; }
.scheda-club h2 { overflow-wrap: anywhere; }
.scheda-club h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: .6rem; }
.scheda-club p:not(.sopratitolo) { color: #2b2927; }
.scheda-club__cf { margin-top: .6rem; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
/* lo Shotokan su fondo chiaro */
.sezione:not(.sezione--scura) .trio { border-top-color: rgba(0, 0, 0, .12); }
.sezione:not(.sezione--scura) .trio li + li { border-left-color: rgba(0, 0, 0, .12); }
.sezione:not(.sezione--scura) .trio p:not(.trio__parola):not(.trio__senso) { color: #2b2927; }
.sezione:not(.sezione--scura) .trio__senso { color: var(--rosso); }
.trio .trio__parola { color: #fff; }
.sezione:not(.sezione--scura) .trio .trio__parola { color: var(--inchiostro); }
.testo .sopratitolo { color: var(--rosso); }
.sezione--scura .testo .sopratitolo, .sezione--scura .sopratitolo { color: var(--rosso-chiaro); }
.sezione--scura .tondo svg { stroke: var(--rosso-chiaro); }

/* ════════════ PORTATILI PICCOLI E TABLET ════════════ */
@media (min-width: 861px) and (max-width: 1200px) {
  .hero__titolo .riga:not(.piccola) { font-size: clamp(3.1rem, 1rem + 4.6vw, 5rem); }
  .hero__foto { left: 44%; }
  .hero__velo { background:
    linear-gradient(90deg, #0e0a08 0%, #0e0a08 44%, rgba(14, 10, 8, .55) 48%, rgba(14, 10, 8, 0) 54%),
    linear-gradient(180deg, rgba(14, 10, 8, .25) 0%, rgba(14, 10, 8, 0) 18%, rgba(14, 10, 8, 0) 82%, rgba(14, 10, 8, .55) 100%); }
}
@media (max-width: 1080px) {
  .corsi__griglia { grid-template-columns: 1fr 1fr; }
  .corsi__testo { grid-column: 1 / -1; }
  .prova__alto { grid-template-columns: .9fr 1.1fr; padding-right: 1.25rem; }
  .prova__citazione { grid-column: 2; padding-bottom: 2rem; }
  .prova__foto { grid-row: span 2; }
  .passi__lista { grid-template-columns: repeat(2, 1fr); }
  .piede__griglia { grid-template-columns: 1fr 1fr; }
  .piede__marchio { grid-column: 1 / -1; }
}

/* ════════════ TELEFONO ════════════ */
@media (max-width: 860px) {
  :root { --testata: 64px; }
  .testata__logo img { height: 40px; }
  .testata__logo { gap: .6rem; }
  .testata__nome b { font-size: .86rem; }
  .testata__nome span { font-size: .6rem; letter-spacing: .2em; }
  .hamburger {
    display: grid; place-items: center; gap: 6px; width: 46px; height: 46px; margin-right: -8px; padding: 12px 10px;
    background: none; border: 0; cursor: pointer; position: relative; z-index: 3;
  }
  .hamburger span { display: block; width: 26px; height: 2px; background: #fff; transition: transform .35s var(--ease); }
  .hamburger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  /* menu a tutto schermo */
  .menu {
    position: fixed; inset: 0; z-index: 2; background: var(--nero); padding: calc(var(--testata) + 2rem) 1.6rem 2rem;
    display: flex; flex-direction: column; justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
  }
  .menu.aperto { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s; }
  .menu ul { flex-direction: column; gap: .2rem; }
  .menu ul a { font-size: 1.9rem; font-weight: 800; padding: .55rem 0; font-stretch: 108%; }
  .menu ul a::after { bottom: 6px; height: 3px; width: 44px; right: auto; }
  .menu .menu__wa { display: inline-flex; align-items: center; justify-content: center; margin-top: 2rem; padding: 1.05rem 1.4rem; background: var(--rosso); color: #fff; border-radius: 2px; text-decoration: none; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; }

  /* telefono: la foto in alto, a tutta larghezza, con il maestro grande; il testo sotto */
  .hero { display: block; min-height: 0; }
  .hero__foto { position: relative; inset: auto; left: auto; width: 100%; height: clamp(300px, 58svh, 640px); z-index: 0; }
  /* la sfumatura sale fino a coprire la riga rossa sopra il titolo, che così resta sul fondo scuro */
  .hero__foto::after { content: ""; position: absolute; inset: auto 0 0 0; height: 56%; background: linear-gradient(180deg, rgba(14, 10, 8, 0) 0%, rgba(14, 10, 8, .6) 42%, #0e0a08 76%); pointer-events: none; }
  /* in alto: sui tablet la foto è più larga che alta e il ritaglio non deve toccare la testa */
  .hero__video { object-position: 40% 5%; }
  .hero__foto::before { display: none; }
  .hero .sopratitolo { text-shadow: 0 1px 12px rgba(14, 10, 8, .95); }
  .hero__velo { display: none; }
  .hero__testo { position: relative; z-index: 1; margin-top: -4.2rem; padding-block: 0 2.6rem; }
  .hero__testo > * { max-width: none; }
  .hero__titolo { margin-bottom: 1.1rem; }
  .hero__sotto { margin-bottom: 1.5rem; }
  .hero__giu { display: none; }
  .hero__nota { font-size: .88rem; }

  .fatti { padding: 2.2rem 0; }
  .fatti__griglia { grid-template-columns: 1fr 1fr; gap: 1.6rem .5rem; }
  .fatto { padding: .2rem .4rem; }
  .fatto + .fatto { border-left: 0; }
  .fatto__icona { width: 40px; height: 40px; }
  .fatto__dato { font-size: 1.2rem; }

  .maestro { grid-template-columns: 1fr; }
  .maestro__foto { aspect-ratio: 4 / 3; }
  .maestro__testo { padding: 2.6rem 1.25rem 3rem; padding-right: 4.5rem; }
  .maestro__testo .maestro__kanji { top: 2.6rem; transform: none; font-size: 2.6rem; right: 1rem; }

  .corsi__griglia { grid-template-columns: 1fr; }
  .corsi__foto { width: min(100%, 360px); margin-inline: auto; }
  .corsi__voci { grid-template-columns: 1fr; }

  .prova__alto { grid-template-columns: 1fr; padding-right: 0; }
  .prova__foto { min-height: 0; aspect-ratio: 16 / 10; grid-row: auto; }
  .prova__foto img { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
  .prova__testo { padding: 0 1.25rem; }
  .prova__citazione { grid-column: auto; padding: 0 1.25rem 1rem; }
  .passi__lista { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .passi__lista li { padding: 1.2rem 1rem; }
  .passi__n { font-size: 2rem; }
  .messaggio { grid-template-columns: 1fr; }
  .messaggio__righe { grid-template-columns: 1fr 96px; }

  .domande__griglia { grid-template-columns: 1fr; }
  .dove__griglia { grid-template-columns: 1fr; }
  .dove__azioni { padding: 1.6rem; }
  .bottone--grande { width: 100%; justify-content: center; padding: 1.1rem 1rem; letter-spacing: .08em; white-space: nowrap; }

  .galleria__griglia { grid-template-columns: 1fr 1fr; }

  .piede { padding-bottom: 6.5rem; }
  .con-avviso .piede { padding-bottom: 9rem; }
  .piede__griglia { grid-template-columns: 1fr; gap: 1.8rem; }
  .piede__legale { flex-direction: column; }

  .wa-fisso {
    position: fixed; right: 14px; bottom: 14px; z-index: 55; display: inline-flex; align-items: center; gap: .5rem;
    padding: .85rem 1.1rem; border-radius: 999px; background: var(--rosso); color: #fff; text-decoration: none;
    font-weight: 700; font-size: .9rem; letter-spacing: .02em; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .6);
    visibility: hidden; transform: translateY(120%); opacity: 0;
    transition: transform .45s var(--ease), opacity .45s, visibility 0s .45s;
  }
  .wa-fisso svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.6; }
  .wa-fisso.vista { visibility: visible; transform: none; opacity: 1; transition: transform .45s var(--ease), opacity .45s, visibility 0s; }
  .con-avviso .wa-fisso.vista { transform: translateY(-46px); }
  .menu-aperto .wa-fisso { opacity: 0; pointer-events: none; }
  .cookie { font-size: .76rem; padding: .5rem .8rem; gap: .5rem; }
  .cookie .lungo { display: none; }
  .cookie .corto { display: inline; }
}

/* pagine interne, telefono */
@media (max-width: 860px) {
  .apertura { padding-top: calc(var(--testata) + 1.8rem); }
  .apertura__griglia, .due { grid-template-columns: 1fr; }
  .apertura__foto { justify-self: stretch; width: 100%; aspect-ratio: 4 / 3; }
  .apertura__foto img { object-position: 50% 12%; }
  .briciole { margin-bottom: 1.2rem; }
  .tappe { grid-template-columns: 1fr; gap: 1.8rem; padding-left: 2.2rem; }
  .tappe::before, .tappe::after { left: .6rem; right: auto; top: .6rem; bottom: .6rem; width: 2px; height: auto; }
  .tappe::after { transform: scaleY(0); transform-origin: top; }
  .tappe.in::after { transform: scaleY(1); }
  .tappe li { padding-top: 0; padding-right: 0; }
  .tappe li::before { top: .35rem; left: -2.2rem; }
  .schede { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .trio li, .trio li + li { padding: 1.6rem 0 .6rem; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .cinture { grid-template-columns: repeat(4, 1fr); row-gap: 1rem; }
  .foto-cornice { aspect-ratio: 4 / 3; }
  .prossima a { gap: 1rem; }
  .schede--tre, .citazioni, .punti, .due--testo { grid-template-columns: 1fr; }
  .due--testo h2 { margin-bottom: .2rem; }
  .foto-cornice--larga { aspect-ratio: 3 / 2; }
  .sezione:not(.sezione--scura) .trio li { border-bottom-color: rgba(0, 0, 0, .12); }
  .apertura .messaggio { margin-top: .5rem; }
  .scheda-club img { width: 48px; }
}
@media (max-width: 860px) and (max-height: 700px) {
  /* telefono basso: foto più corta e sfumatura più rapida, così la riga rossa sta sul fondo pieno e il pulsante resta in vista */
  .hero__foto { height: clamp(240px, 42svh, 360px); }
  .hero__foto::after { height: 60%; background: linear-gradient(180deg, rgba(14, 10, 8, 0) 0%, rgba(14, 10, 8, .6) 40%, #0e0a08 70%); }
  .hero__testo { margin-top: -2.4rem; }
}
/* telefono in orizzontale: foto a destra e testo a sinistra, come su computer,
   così nome del club e testa del maestro stanno nella prima schermata */
@media (max-width: 860px) and (orientation: landscape) and (max-height: 500px) {
  .hero { display: flex; align-items: center; min-height: 100svh; }
  .hero__foto { position: absolute; top: var(--testata); bottom: 0; left: 50%; right: 0; width: auto; height: auto; }
  .hero__foto::after { inset: 0 auto 0 0; width: 45%; height: auto; background: linear-gradient(90deg, #0e0a08, rgba(14, 10, 8, 0)); }
  .hero__video { object-position: 45% 0%; }
  .hero__testo { margin-top: 0; padding-block: .9rem 1rem; }
  .hero__testo > * { max-width: 46%; }
  .hero .sopratitolo { margin-bottom: .35rem; max-width: none; white-space: nowrap; }
  .hero__titolo { margin-bottom: .7rem; }
  .hero__titolo .riga:not(.piccola) { font-size: clamp(1.9rem, 9.5svh, 2.6rem); }
  .hero__titolo .piccola { font-size: clamp(1rem, 5svh, 1.3rem); margin-top: .35rem; }
  .hero__sotto { font-size: 1rem; margin-bottom: .9rem; }
  .hero__nota { margin-top: .6rem; font-size: .8rem; }
}
/* schermi larghi ma bassi (telefoni grandi in orizzontale, 896-932 × 412-430): stesso titolo compatto,
   così nome e pulsante stanno nella prima schermata */
@media (min-width: 861px) and (max-height: 500px) {
  .hero { min-height: 100svh; }
  .hero__testo { padding-block: .9rem 1rem; }
  .hero .sopratitolo { margin-bottom: .35rem; }
  .hero__titolo { margin-bottom: .7rem; }
  .hero__titolo .riga:not(.piccola) { font-size: clamp(1.9rem, 9.5svh, 2.8rem); }
  .hero__titolo .piccola { font-size: clamp(1rem, 5svh, 1.4rem); margin-top: .35rem; }
  .hero__sotto { font-size: 1rem; margin-bottom: .9rem; }
  .hero__nota { margin-top: .6rem; font-size: .8rem; }
}
/* portatili bassi: la rotellina, allineata al testo, finirebbe sopra la nota */
@media (max-height: 760px) {
  .hero__giu { display: none; }
}
@media (max-width: 480px) {
  /* i passi diventano un elenco numerato: numero a sinistra, testo a tutta larghezza */
  .passi__lista { grid-template-columns: 1fr; gap: .6rem; }
  .passi__lista li { display: grid; grid-template-columns: 2.2rem 1fr; column-gap: .9rem; align-items: start; padding: 1.1rem 1.1rem 1.1rem 1rem; }
  .passi__n { grid-row: span 2; font-size: 1.9rem; margin: 0; }
  .messaggio__campi, .messaggio__anteprima { padding: 1.6rem 1.1rem; }
  .messaggio__chi { gap: .4rem; }
  .messaggio__chi span { padding: .5rem .72rem; font-size: .86rem; }
}
@media (max-width: 400px) {
  .testata__barra { gap: .8rem; }
  .testata__logo { gap: .5rem; }
  .testata__logo img { height: 36px; }
  .testata__nome b { font-size: .78rem; letter-spacing: .04em; }
  .testata__nome span { font-size: .56rem; letter-spacing: .14em; }
  .scheda-club { flex-direction: column; }
  .hero__titolo .riga:not(.piccola) { font-size: min(2.95rem, 13vw); }
  .hero__titolo .piccola { font-size: 1.5rem; }
  .hero .sopratitolo { letter-spacing: .22em; }
}
@media (max-width: 360px) {
  .cookie p { white-space: normal; }
}

/* ── chi ha ridotto le animazioni ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .svela, .entra, .hero__foto { opacity: 1 !important; transform: none !important; }
  .hero__video { animation: none !important; }
}
