/* Sito di Giacomo Radici — terza grafica di Claude (19/10/2026 sera): blu notte e giallo, foto di Giacomo,
   animazioni leggere, tema scuro automatico. Caratteri variabili: Archivo (titoli) e Inter (testo). */

@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url("/caratteri/archivo-latin-variabile.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("/caratteri/inter-latin-variabile.woff2") format("woff2"); }

/* ── Colori: tema chiaro ── */
:root {
  --notte: #0b1f2e;
  --notte-2: #12304a;
  --giallo: #f4c430;
  --giallo-2: #ffd75e;
  --fondo: #ffffff;
  --carta: #f7f4ec;
  --superficie: #ffffff;
  --inchiostro: #0f202c;
  --tenue: #526575;
  --linea: #e3e5e8;
  --linea-forte: #cbd3da;
  --oro: #8a6a00;
  --icona: #0b1f2e;
  --icona-fondo: #fdf1c7;
  --link: #0b1f2e;
  --evidenza-fondo: #fdf3d3;
  --anello: #0b1f2e;
  --cerchio: #0b1f2e;
  --todo: #ffe58a;
  --raggio: 24px;
  --ombra: 0 1px 2px rgba(11, 31, 46, .06), 0 10px 28px rgba(11, 31, 46, .08);
  --ombra-forte: 0 2px 4px rgba(11, 31, 46, .08), 0 22px 48px rgba(11, 31, 46, .16);
  --larghezza: 1200px;
  --titoli: "Archivo", "Arial Narrow", Arial, sans-serif;
  --curva: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--inchiostro);
  background: var(--fondo);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

/* ── Colori: tema scuro (automatico, o scelto con il pulsante) ── */
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="chiaro"]) {
    --fondo: #0d1923; --carta: #111f2b; --superficie: #152634; --inchiostro: #e8eef2; --tenue: #9fb1bf;
    --linea: rgba(255, 255, 255, .1); --linea-forte: rgba(255, 255, 255, .2); --oro: #f4c430; --icona: #f4c430;
    --icona-fondo: rgba(244, 196, 48, .12); --link: #f4c430; --evidenza-fondo: rgba(244, 196, 48, .09); --anello: #f4c430; --cerchio: #24394b;
    --ombra: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .3); --ombra-forte: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 48px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
  :root:not([data-tema="chiaro"]) .tema .ico-luna { display: none; }
  :root:not([data-tema="chiaro"]) .tema .ico-sole { display: block; }
}
:root[data-tema="scuro"] {
  --fondo: #0d1923; --carta: #111f2b; --superficie: #152634; --inchiostro: #e8eef2; --tenue: #9fb1bf;
  --linea: rgba(255, 255, 255, .1); --linea-forte: rgba(255, 255, 255, .2); --oro: #f4c430; --icona: #f4c430;
  --icona-fondo: rgba(244, 196, 48, .12); --link: #f4c430; --evidenza-fondo: rgba(244, 196, 48, .09); --anello: #f4c430; --cerchio: #24394b;
  --ombra: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .3); --ombra-forte: 0 2px 4px rgba(0, 0, 0, .4), 0 22px 48px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
:root[data-tema="scuro"] .tema .ico-luna { display: none; }
:root[data-tema="scuro"] .tema .ico-sole { display: block; }

/* ── Base ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--fondo); color: var(--inchiostro); padding-bottom: 72px; overflow-x: hidden; transition: background .3s ease; }
img { max-width: 100%; }
a { color: var(--link); text-decoration-color: var(--giallo); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--titoli); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; font-stretch: 110%; }
h1 { font-size: clamp(2.2rem, 7vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 700; font-stretch: 100%; letter-spacing: -0.01em; }
h1, h2, h3, figcaption { text-wrap: balance; }
p { margin: 0 0 1em; }
mark.todo { background: var(--todo); color: #10212d; padding: .05em .4em; border-radius: 6px; font-size: .85em; font-weight: 600; }
.ico { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--anello); outline-offset: 3px; border-radius: 6px; }
.salta { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--giallo); color: var(--notte); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.salta:focus { top: 12px; }

.contenitore { max-width: var(--larghezza); margin: 0 auto; padding: 0 16px; position: relative; }
.occhiello { font-family: var(--titoli); font-stretch: 112%; text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; font-weight: 700; color: var(--tenue); margin-bottom: 1em; display: flex; align-items: center; gap: 10px; }
.occhiello::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--giallo); flex: none; }
.occhiello a { color: inherit; text-decoration: none; }

/* Sfondi blu notte: anello del focus e testi sempre chiari */
.testata, .eroe, .sezione-scura, .testata-pagina, .piede, .dove-azioni, .f-nova { --anello: var(--giallo); }
.fascia-scorre, .tessera-gialla, .tessera-4 { --anello: var(--notte); }

/* ── Testata ── */
.testata { position: sticky; top: 0; z-index: 50; background: rgba(11, 31, 46, .84); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: background .3s ease, box-shadow .3s ease; }
.testata.ristretta { background: rgba(11, 31, 46, .95); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.testata-riga { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 16px; transition: min-height .3s ease; }
.testata.ristretta .testata-riga { min-height: 60px; }
.marchio { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.marchio-sigla { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--giallo); color: var(--notte); font-family: var(--titoli); font-weight: 900; font-stretch: 115%; font-size: .95rem; transition: transform .4s var(--curva); }
.marchio:hover .marchio-sigla { transform: rotate(-8deg) scale(1.05); }
.marchio-testo { display: flex; flex-direction: column; line-height: 1.15; }
.marchio-nome { font-family: var(--titoli); font-weight: 800; font-stretch: 110%; color: #fff; font-size: 1.04rem; }
.marchio-ruolo { font-size: .76rem; color: rgba(255, 255, 255, .62); }
.testata-comandi { display: flex; align-items: center; gap: 8px; }
.tema { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24); background: transparent; color: #fff; cursor: pointer; transition: background .2s ease, transform .4s var(--curva); }
.tema:hover { background: rgba(255, 255, 255, .08); transform: rotate(20deg); }
.tema .ico { width: 19px; height: 19px; }
.tema .ico-sole { display: none; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; color: #fff; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px; font-size: .9rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--giallo); color: var(--notte); border-color: var(--giallo); }
.menu[open] nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--notte); padding: 6px 16px 20px; display: flex; flex-direction: column; box-shadow: 0 24px 40px rgba(0, 0, 0, .3); }
.menu nav a { padding: 13px 0; text-decoration: none; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: var(--titoli); font-weight: 700; font-stretch: 108%; font-size: 1.1rem; }
.menu-largo { display: none; }
nav a[aria-current="page"] { color: var(--giallo); }
.avanzamento { display: none; }
@supports (animation-timeline: scroll()) {
  .avanzamento { display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--giallo); transform-origin: left; transform: scaleX(0); animation: avanza linear both; animation-timeline: scroll(root); }
  @keyframes avanza { to { transform: scaleX(1); } }
}

/* ── Pulsanti ── */
.azioni { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.8em 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: .97rem; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primario { background: var(--giallo); color: var(--notte); box-shadow: 0 8px 22px rgba(244, 196, 48, .28); }
.btn-primario:hover { background: var(--giallo-2); box-shadow: 0 12px 28px rgba(244, 196, 48, .38); }
.btn-secondario { background: var(--notte); color: #fff; }
.btn-secondario:hover { background: var(--notte-2); }
.btn-chiaro { background: rgba(255, 255, 255, .07); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-chiaro:hover { background: rgba(255, 255, 255, .15); }
.btn-testo { background: transparent; color: var(--link); padding-left: 6px; padding-right: 6px; }
.btn-testo.su-scuro { color: #fff; }
.largo { width: 100%; }

/* ── Corsie della pista sugli sfondi scuri ── */
.corsie { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 255, 255, .045); pointer-events: none; }
.arco { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--giallo); box-shadow: 0 34px 70px rgba(0, 0, 0, .38); }
.arco.rettangolo { border-radius: 28px; }
.arco img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.corsie-arco { position: absolute; left: -27.5%; top: -22%; width: 155%; height: 122%; z-index: 0; pointer-events: none; overflow: visible; }
.corsie-arco path { stroke: rgba(255, 255, 255, .16); stroke-dasharray: 1; stroke-dashoffset: 1; animation: traccia 1.9s cubic-bezier(.65, .05, .25, 1) forwards; animation-delay: calc(var(--k) * 130ms + 250ms); }
.corsie-arco path:nth-child(2) { stroke: var(--giallo); stroke-opacity: .9; }
@keyframes traccia { to { stroke-dashoffset: 0; } }

/* ── Titoli che entrano parola per parola ── */
.parola { display: inline-block; }
.cinetico .parola { animation: entra 1s var(--curva) both; animation-delay: calc(var(--i) * 90ms + 120ms); }
@keyframes entra { from { opacity: 0; transform: translateY(.5em); font-stretch: 68%; } to { opacity: 1; transform: none; font-stretch: 110%; } }
.evid { color: var(--giallo); }
@keyframes sale { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ── Apertura della home ── */
.eroe { position: relative; overflow: hidden; background: radial-gradient(720px 540px at 75% 45%, rgba(244, 196, 48, .14), transparent 62%), var(--notte); color: #fff; padding: 20px 0 72px; }
.eroe-griglia { display: grid; gap: 28px; align-items: center; }
.eroe h1 { color: #fff; font-size: clamp(2.7rem, 10vw, 5.6rem); line-height: .98; letter-spacing: -0.03em; margin: .35em 0 .4em; }
.eroe .intro { color: rgba(255, 255, 255, .8); font-size: 1.1rem; max-width: 34em; }
.eroe .chip, .eroe .intro, .eroe .azioni { animation: sale .9s var(--curva) both; }
.eroe .chip { animation-delay: .05s; }
.eroe .intro { animation-delay: .55s; }
.eroe .azioni { animation-delay: .7s; }
.chip { display: inline-flex; align-items: center; gap: 8px; color: var(--giallo); background: rgba(244, 196, 48, .1); border: 1px solid rgba(244, 196, 48, .32); border-radius: 999px; padding: 6px 14px; margin: 0; }
.chip::before { display: none; }
.chip .ico { width: 15px; height: 15px; }
.eroe-foto { order: -1; position: relative; width: min(70vw, 300px); margin: 34px auto 6px; }
.targhetta { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: var(--superficie); color: var(--inchiostro); border-radius: 16px; padding: 10px 14px; box-shadow: var(--ombra-forte); animation: galleggia 6s ease-in-out infinite; }
.targhetta .ico { color: var(--notte); background: var(--giallo); border-radius: 10px; width: 32px; height: 32px; padding: 7px; }
.targhetta strong { display: block; font-family: var(--titoli); font-stretch: 105%; font-size: .9rem; line-height: 1.2; }
.targhetta span { font-size: .74rem; color: var(--tenue); white-space: nowrap; }
.targhetta.t1 { left: -14%; bottom: 5%; }
.targhetta.t2 { right: -12%; top: 50%; animation-delay: -3s; }
@keyframes galleggia { 50% { transform: translateY(-8px); } }
@supports (animation-timeline: scroll()) {
  .eroe .arco img { animation: profondita linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
  @keyframes profondita { to { transform: translateY(36px) scale(1.1); } }
}

/* ── Fascia gialla che scorre ── */
.fascia-scorre { background: var(--giallo); color: var(--notte); overflow: hidden; padding: 15px 0; }
.scorre { display: flex; width: max-content; animation: scorri 55s linear infinite; }
.fascia-scorre:hover .scorre { animation-play-state: paused; }
.scorre-riga { display: flex; list-style: none; margin: 0; padding: 0; }
.scorre-riga li { position: relative; padding: 0 1.5em; white-space: nowrap; font-family: var(--titoli); font-weight: 800; font-stretch: 120%; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1rem, 2.3vw, 1.45rem); }
.scorre-riga li::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--notte); transform: translateY(-50%); }
@keyframes scorri { to { transform: translateX(-50%); } }

/* ── Sezioni ── */
.sezione { position: relative; padding: 72px 0; }
.sezione-carta { background: var(--carta); }
.sezione-scura { overflow: hidden; background: var(--notte); color: #fff; }
.sezione-scura h2 { color: #fff; }
.sezione-scura .occhiello { color: var(--giallo); }
.sezione-testa { max-width: 720px; margin-bottom: 36px; }
.sezione-testa p:last-child:not(.occhiello) { color: var(--tenue); font-size: 1.08rem; margin: 0; }
.sezione-scura .sezione-testa p:last-child:not(.occhiello) { color: rgba(255, 255, 255, .72); }

/* Numeri */
.sezione-numeri { padding: 40px 0 0; }
.numeri { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.numero { position: relative; padding: 24px 18px 20px; border-radius: 20px; background: var(--carta); }
.numero::before { content: ""; position: absolute; left: 18px; top: 0; width: 36px; height: 4px; background: var(--giallo); border-radius: 0 0 4px 4px; }
.numero strong { display: block; font-family: var(--titoli); font-weight: 800; font-stretch: 115%; font-size: clamp(1.35rem, 3.4vw, 2.1rem); line-height: 1.05; color: var(--inchiostro); margin-bottom: 8px; letter-spacing: -0.02em; }
.numero strong[data-conta] { font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: .9; font-variant-numeric: tabular-nums; }
.numero span { display: block; font-size: .87rem; color: var(--tenue); line-height: 1.4; }

/* Di cosa mi occupo: riquadri di misure diverse */
.bento-temi { display: grid; gap: 14px; }
.tessera { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; padding: 96px 26px 26px;border-radius: var(--raggio); overflow: hidden; background: var(--superficie); border: 1px solid var(--linea); }
.tessera.con-foto { color: #fff; border: 0; background: var(--notte); }
.tessera-foto { position: absolute; inset: 0; z-index: -1; }
.tessera-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--curva); }
.tessera-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 31, 46, .05) 15%, rgba(11, 31, 46, .55) 50%, rgba(11, 31, 46, .92) 85%); }
.tessera-icona { position: absolute; top: 22px; left: 22px; width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; background: var(--giallo); color: var(--notte); }
.tessera-icona .ico { width: 24px; height: 24px; }
.freccia-tonda { position: absolute; top: 22px; right: 22px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .45s var(--curva), background .3s ease, color .3s ease; }
.tessera h3 { font-size: 1.4rem; font-weight: 800; font-stretch: 108%; margin-bottom: .4em; }
.tessera h3 a { color: inherit; text-decoration: none; }
.tessera h3 a::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--raggio); }
.tessera p { margin: 0; font-size: .97rem; }
.tessera.con-foto p { color: rgba(255, 255, 255, .84); }
.tessera.con-link:hover .tessera-foto img { transform: scale(1.07); }
.tessera.con-link:hover .freccia-tonda { background: var(--giallo); color: var(--notte); border-color: var(--giallo); transform: rotate(45deg); }
.tessera-4 { background: var(--giallo); color: var(--notte); border: 0; }
.tessera-4 .tessera-icona { background: var(--notte); color: var(--giallo); }
.tessera-4 p { color: rgba(11, 31, 46, .82); }

/* Come lavoro */
.passi { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.passi li { position: relative; background: var(--superficie); border-radius: var(--raggio); padding: 28px 24px 26px; box-shadow: var(--ombra); }
.passo-num { position: absolute; top: 16px; right: 20px; font-family: var(--titoli); font-weight: 900; font-stretch: 125%; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--linea-forte); }
.passo-icona { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--cerchio); color: var(--giallo); margin-bottom: 18px; }
.passi h3 { font-size: 1.3rem; font-weight: 800; font-stretch: 108%; }
.passi p { color: var(--tenue); margin: 0; }

/* Foto con didascalia */
.cornice { position: relative; margin: 0; border-radius: var(--raggio); overflow: hidden; background: var(--carta); }
.cornice img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--curva); }
.cornice:hover img { transform: scale(1.04); }
.cornice figcaption { position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px); background: rgba(11, 31, 46, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: .84rem; font-weight: 500; line-height: 1.35; padding: 8px 14px; border-radius: 14px; }

/* In studio */
.studio-griglia { display: grid; gap: 40px; align-items: center; }
.cornice-studio { aspect-ratio: 4 / 5; width: 100%; max-width: 480px; border-radius: 999px 999px var(--raggio) var(--raggio); }
.strumenti-righe { list-style: none; padding: 0; margin: 0; }
.strumenti-righe .strumento { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); background: none; border-radius: 0; }
.strumenti-righe .strumento:last-child { border-bottom: 0; }
.strumenti-righe .strumento .ico { color: var(--giallo); background: rgba(244, 196, 48, .12); }
.strumenti-righe .strumento span { color: rgba(255, 255, 255, .68); }
.strumento { display: flex; align-items: flex-start; gap: 14px; padding: 18px; border-radius: 16px; background: var(--carta); }
.strumento .ico { width: 44px; height: 44px; padding: 11px; border-radius: 12px; color: var(--icona); background: var(--icona-fondo); transition: transform .4s var(--curva); }
.strumento:hover .ico { transform: rotate(-8deg) scale(1.06); }
.strumento strong { display: block; font-family: var(--titoli); font-weight: 700; font-stretch: 105%; font-size: 1.05rem; }
.strumento span { display: block; font-size: .9rem; color: var(--tenue); line-height: 1.45; }
.strumenti-lista { display: grid; gap: 10px; }

/* Sul campo */
.bento-campo { display: grid; gap: 14px; }
.cornice-1 { aspect-ratio: 1072 / 780; }
.cornice-2 { aspect-ratio: 4 / 5; }
.cornice-2 img { object-position: center 30%; }

/* Chi sono in home */
.chi-griglia { display: grid; gap: 32px; align-items: center; margin-bottom: 72px; }
.cornice-chi { aspect-ratio: 4 / 5; width: 100%; max-width: 420px; border-radius: 999px 999px var(--raggio) var(--raggio); }
.link-freccia { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link-freccia .ico { width: 18px; height: 18px; transition: transform .3s var(--curva); }
.link-freccia:hover .ico { transform: translateX(5px); }

/* Galleria che scorre di lato */
.galleria-testa { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.galleria-testa h2 { margin: 0; font-size: clamp(1.5rem, 3.6vw, 2.3rem); }
.galleria-frecce { display: none; gap: 8px; }
.galleria-frecce button { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--linea-forte); background: var(--superficie); color: var(--inchiostro); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.galleria-frecce button:hover { background: var(--giallo); color: var(--notte); border-color: var(--giallo); }
.galleria-binario { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; padding: 4px 16px 18px; margin: 0 -16px; scrollbar-width: thin; scrollbar-color: var(--giallo) transparent; }
.g-voce { flex: none; display: flex; flex-direction: column; width: max-content; margin: 0; scroll-snap-align: start; }
.g-foto { height: 300px; border-radius: 20px; overflow: hidden; background: var(--superficie); }
.g-foto img { display: block; height: 100%; width: auto; max-width: none; transition: transform .8s var(--curva); }
.g-voce:hover .g-foto img { transform: scale(1.04); }
.g-voce figcaption { width: 0; min-width: 100%; padding-top: 12px; font-size: .92rem; line-height: 1.4; }
.g-quando { display: block; font-family: var(--titoli); font-weight: 700; font-stretch: 110%; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--oro); margin-bottom: 4px; }

/* Fuori dallo studio */
.bento-fuori { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tessera-gialla { background: var(--giallo); color: var(--notte); border-radius: var(--raggio); padding: 28px; }
.tessera-gialla .occhiello { color: var(--notte); }
.tessera-gialla .occhiello::before { background: var(--notte); }
.tessera-gialla h2 { color: var(--notte); }
.tessera-gialla p:last-child { margin: 0; color: rgba(11, 31, 46, .85); font-size: 1.05rem; }
.f-testo, .f-sci, .f-nova { grid-column: 1 / -1; }
.f-sci { aspect-ratio: 16 / 10; }
.f-trail, .f-viaggio { aspect-ratio: 4 / 5; }
.f-trail img { object-position: 30% center; }
.f-viaggio img { object-position: center 30%; }
.f-nova { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: var(--raggio); background: var(--notte); color: #fff; text-decoration: none; }
.f-nova > .ico:first-child { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: var(--giallo); color: var(--notte); }
.f-nova strong { display: block; font-family: var(--titoli); font-weight: 800; font-stretch: 108%; font-size: 1.15rem; }
.f-nova span { color: rgba(255, 255, 255, .75); font-size: .92rem; line-height: 1.35; }
.f-nova-freccia { margin-left: auto; transition: transform .4s var(--curva); }
.f-nova:hover .f-nova-freccia { transform: rotate(45deg); color: var(--giallo); }

/* Dove ricevo */
.dove-scheda { display: grid; background: var(--superficie); border: 1px solid var(--linea); border-radius: 28px; box-shadow: var(--ombra-forte); overflow: hidden; }
.dove-info { padding: 32px 24px; }
.dove-studio { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.05rem; }
.dove-studio .ico { color: var(--icona); }
.dove-azioni { position: relative; padding: 32px 24px; background: var(--notte); color: #fff; display: flex; flex-direction: column; gap: 10px; }
.dove-azioni p { color: rgba(255, 255, 255, .75); margin: 0 0 6px; }
.dove-azioni .sc-titolo { color: #fff; }
.dove-azioni .btn-testo { font-weight: 500; font-size: .9rem; }
.orari { margin: 18px 0; display: grid; gap: 4px; }
.orari div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--linea-forte); }
.orari dt { color: var(--tenue); }
.orari dd { margin: 0; font-weight: 600; }
.link-riga a { display: inline-block; margin-right: 18px; font-weight: 500; }

/* ── Pagine interne ── */
.testata-pagina { position: relative; overflow: hidden; background: radial-gradient(700px 380px at 90% 0%, rgba(244, 196, 48, .14), transparent 60%), var(--notte); color: #fff; padding: 40px 0 52px; }
.testata-pagina.con-foto { background: linear-gradient(95deg, rgba(11, 31, 46, .96) 32%, rgba(11, 31, 46, .74)), var(--sfondo) center / cover, var(--notte); }
.tp-dentro { display: grid; gap: 28px; align-items: center; }
.testata-pagina .occhiello { color: var(--giallo); }
.tp-titolo { display: flex; align-items: flex-start; gap: 16px; }
.tp-icona { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--giallo); color: var(--notte); margin-top: 6px; animation: sale .8s var(--curva) both; }
.tp-icona .ico { width: 28px; height: 28px; }
.testata-pagina h1 { color: #fff; font-size: clamp(2.1rem, 6.4vw, 3.8rem); line-height: 1.02; letter-spacing: -0.025em; max-width: 15em; }
.testata-pagina .intro { color: rgba(255, 255, 255, .8); font-size: 1.08rem; max-width: 40em; margin: 0; animation: sale .9s .45s var(--curva) both; }
.tp-ritratto { position: relative; width: min(64vw, 280px); margin: 24px auto 4px; order: -1; }

.colonne { display: grid; gap: 32px; padding-top: 44px; padding-bottom: 72px; }
.testo-pagina { min-width: 0; }
.testo-pagina.stretto { max-width: 760px; }
.blocco { margin-bottom: 44px; }
.blocco h2 { font-size: clamp(1.45rem, 3.2vw, 1.9rem); }
.evidenza { background: var(--evidenza-fondo); border-radius: var(--raggio); padding: 24px 26px; border-left: 5px solid var(--giallo); }
.evidenza p { margin: 0; }

.fasi { list-style: none; counter-reset: fase; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; }
.fasi::before { content: ""; position: absolute; left: 23px; top: 30px; bottom: 30px; width: 2px; background: repeating-linear-gradient(180deg, var(--giallo) 0 10px, transparent 10px 18px); }
.fasi li { counter-increment: fase; position: relative; padding: 20px 20px 20px 76px; border-radius: 18px; background: var(--carta); }
.fasi li::before { content: counter(fase, decimal-leading-zero); position: absolute; left: 4px; top: 16px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--cerchio); color: var(--giallo); font-family: var(--titoli); font-weight: 800; font-size: .92rem; box-shadow: 0 0 0 5px var(--fondo); }
.fasi h3 { margin-bottom: .3em; }
.fasi p { color: var(--tenue); margin: 0; }

.spunte { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.spunte li { position: relative; padding-left: 36px; }
.spunte li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--giallo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1f2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }

.faq { border-bottom: 1px solid var(--linea); }
.faq summary { cursor: pointer; font-weight: 600; padding: 17px 40px 17px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 11px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--icona-fondo); color: var(--icona); font-size: 1.3rem; font-weight: 400; transition: transform .3s var(--curva); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--tenue); margin: 0 0 18px; }

.figura { margin: 0 0 44px; border-radius: var(--raggio); overflow: hidden; }
.figura img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }

.scheda-contatti { background: var(--superficie); border: 1px solid var(--linea); border-radius: var(--raggio); padding: 24px; box-shadow: var(--ombra); display: flex; flex-direction: column; gap: 10px; align-self: start; }
.sc-titolo { font-family: var(--titoli); font-weight: 800; font-stretch: 108%; font-size: 1.25rem; margin: 0; }
.sc-testo { color: var(--tenue); margin: 0 0 6px; }
.sc-dove { display: flex; gap: 10px; margin-top: 10px; font-size: .92rem; line-height: 1.5; }
.sc-dove .ico { color: var(--icona); margin-top: 2px; }
.scheda-contatti .orari { margin: 6px 0 0; font-size: .9rem; }
.sc-email { text-align: center; font-size: .88rem; color: var(--tenue); margin: 0; }
.sc-link { text-align: center; margin: 0; font-size: .92rem; }

/* Linea del tempo (Chi sono): la linea si riempie di giallo scorrendo */
.linea-tempo { list-style: none; margin: 0; padding: 0; position: relative; }
.linea-tempo::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--linea-forte); }
.linea-tempo li { position: relative; padding: 0 0 24px 36px; display: grid; gap: 2px; }
.linea-tempo li::before { content: ""; position: absolute; left: 0; top: 5px; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--fondo); border: 3px solid var(--giallo); }
.tl-data { font-family: var(--titoli); font-size: .76rem; font-weight: 700; font-stretch: 110%; text-transform: uppercase; letter-spacing: .1em; color: var(--oro); }
.linea-tempo strong { display: block; font-weight: 600; line-height: 1.45; }
.linea-tempo span:not(.tl-data) { display: block; color: var(--tenue); font-size: .92rem; }
@supports (animation-timeline: view()) {
  .linea-tempo::after { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--giallo); transform-origin: top; animation: cresce linear both; animation-timeline: view(); animation-range: entry 0% cover 55%; }
  @keyframes cresce { from { transform: scaleY(0); } to { transform: scaleY(1); } }
}
.titoli-griglia { display: grid; gap: 12px; }
.titolo-scheda { display: grid; gap: 4px; padding: 20px; border-radius: 18px; background: var(--carta); }
.titolo-scheda .ico { color: var(--icona); width: 26px; height: 26px; margin-bottom: 6px; }
.ts-anno { font-family: var(--titoli); font-weight: 800; font-stretch: 110%; font-size: 1.1rem; }
.titolo-scheda strong { font-weight: 600; line-height: 1.4; }
.titolo-scheda span:last-child { color: var(--tenue); font-size: .9rem; }

/* ── Piede ── */
.piede { background: var(--notte); color: rgba(255, 255, 255, .72); padding: 56px 0 0; font-size: .9rem; overflow: hidden; }
.piede-griglia { display: grid; gap: 24px; }
.piede p { margin: 0 0 .5em; }
.piede a { color: #fff; }
.piede-nome { color: #fff; font-family: var(--titoli); font-weight: 800; font-stretch: 108%; font-size: 1.15rem; }
.piede-titolo { color: var(--giallo); font-family: var(--titoli); font-weight: 700; font-stretch: 112%; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; }
.piede-piccolo { font-size: .8rem; color: rgba(255, 255, 255, .55); }
.piede-link a { margin-right: 16px; }
.piede-firma { margin: 44px 0 0; text-align: center; white-space: nowrap; font-family: var(--titoli); font-weight: 900; font-stretch: 112%; font-size: 10.4vw; line-height: .78; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .2); user-select: none; transform: translateY(.1em); }

/* ── Barra in basso sul telefono ── */
.barra-mobile { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--fondo) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--linea); z-index: 40; }
.barra-mobile a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: 14px; font-weight: 700; text-decoration: none; background: var(--notte); color: #fff; }
.barra-mobile a + a { background: var(--giallo); color: var(--notte); }
.barra-mobile .ico { width: 18px; height: 18px; }

/* ── Comparsa allo scorrimento (solo se lo script è attivo) ── */
html.js .rivela { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--curva), transform .9s var(--curva); transition-delay: var(--ritardo, 0ms); }
html.js .rivela.visibile { opacity: 1; transform: none; }

/* ── Schermi medi ── */
@media (min-width: 640px) {
  .strumenti-lista, .titoli-griglia { grid-template-columns: 1fr 1fr; }
  .bento-temi { grid-template-columns: 1fr 1fr; }
  .tessera-1 { grid-column: span 2; min-height: 420px; }
  .bento-campo { grid-template-columns: 2fr 1fr; }
  .cornice-2 { aspect-ratio: auto; }
  .bento-fuori { grid-template-columns: repeat(3, 1fr); }
  .f-testo { grid-column: 1 / -1; }
  .f-sci { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .f-trail, .f-viaggio { grid-column: span 1; }
  .f-nova { grid-column: span 1; flex-direction: column; align-items: flex-start; justify-content: space-between; }
  .f-nova-freccia { margin-left: 0; align-self: flex-end; }
}

/* ── Schermi larghi ── */
@media (min-width: 900px) {
  body { padding-bottom: 0; font-size: 1.0625rem; }
  .contenitore { padding: 0 24px; }
  .galleria-binario { margin: 0 -24px; padding: 4px 24px 18px; scroll-padding: 0 24px; }
  .barra-mobile { display: none; }
  .menu { display: none; }
  .menu-largo { display: flex; gap: 26px; }
  .menu-largo a { position: relative; text-decoration: none; color: rgba(255, 255, 255, .82); font-size: .93rem; font-weight: 500; }
  .menu-largo a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--giallo); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--curva); }
  .menu-largo a:hover { color: #fff; }
  .menu-largo a:hover::after, .menu-largo a[aria-current="page"]::after { transform: scaleX(1); }
  .eroe { padding: 64px 0 112px; }
  .eroe-griglia { grid-template-columns: 1.2fr .8fr; gap: 48px; }
  .eroe-foto { order: 0; width: 360px; justify-self: end; margin: 60px 70px 0 0; }
  .targhetta.t1 { left: -30%; bottom: 14%; }
  .targhetta.t2 { right: -18%; top: 8%; bottom: auto; }
  .sezione { padding: 112px 0; }
  .sezione-numeri { padding: 56px 0 0; }
  .numeri { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .numero { padding: 30px 26px 26px; }
  .numero::before { left: 26px; }
  .numero strong { font-size: clamp(1.35rem, 2.3vw, 1.75rem); }
  .numero strong[data-conta] { font-size: 3.2rem; }
  .bento-temi { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(260px, auto); gap: 16px; }
  .tessera-1 { grid-column: span 2; grid-row: span 2; min-height: 560px; padding: 34px; }
  .tessera-1 h3 { font-size: 2.1rem; max-width: 12em; }
  .tessera-2 { grid-column: span 2; }
  .tessera-3, .tessera-4 { grid-column: span 1; padding: 92px 22px 22px; }
  .tessera-3 h3, .tessera-4 h3 { font-size: 1.18rem; }
  .tessera-3 p, .tessera-4 p { font-size: .9rem; line-height: 1.55; }
  .passi { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .studio-griglia { grid-template-columns: .85fr 1.15fr; gap: 80px; }
  .bento-campo { gap: 16px; }
  .chi-griglia { grid-template-columns: .8fr 1.2fr; gap: 80px; margin-bottom: 96px; }
  .galleria-frecce { display: flex; }
  .g-foto { height: 340px; }
  .bento-fuori { grid-template-columns: 1.15fr 1fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 16px; }
  .f-testo { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; }
  .f-testo h2 { font-size: clamp(1.9rem, 2.7vw, 2.5rem); }
  .f-sci { grid-column: 2 / span 2; grid-row: 1; aspect-ratio: auto; }
  .f-trail { grid-column: 4; grid-row: 1 / span 2; aspect-ratio: auto; }
  .f-viaggio { grid-column: 2; grid-row: 2; aspect-ratio: auto; }
  .f-nova { grid-column: 3; grid-row: 2; padding: 26px; }
  .dove-scheda { grid-template-columns: 1.5fr 1fr; }
  .dove-info, .dove-azioni { padding: 44px; }
  .testata-pagina { padding: 72px 0 80px; }
  .con-ritratto .tp-dentro { grid-template-columns: 1.3fr .7fr; gap: 48px; }
  .tp-ritratto { order: 0; width: 300px; justify-self: end; margin: 40px 60px 0 0; }
  .colonne { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding-top: 64px; padding-bottom: 104px; }
  .scheda-contatti { position: sticky; top: 96px; }
  .piede-griglia { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ── Chi preferisce meno movimento: niente animazioni ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .scorre { animation: none !important; }
  .eroe .arco img, .avanzamento { animation: none !important; }
  .avanzamento { display: none; }
  html.js .rivela { opacity: 1; transform: none; }
}
