/* Ambiente scuro e morbido: luce calda, riflessi rosa e azzurri, testi di vetro.
   Font: Manrope (testo), Instrument Serif corsivo (accenti). */
:root {
  --ink: #07080b;
  --paper: #f3efe9;
  --dim: rgba(243, 239, 233, .6);
  --faint: rgba(243, 239, 233, .13);
  --acc: #ffd9b8;
  --f: "Manrope", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --g: clamp(18px, 3vw, 44px);
  --rail: clamp(190px, 18vw, 280px);
  --f-display: "Manrope", sans-serif; --f-text: "Manrope", sans-serif; --f-accent: "Instrument Serif", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --io: cubic-bezier(.7, 0, .15, 1);
  --dur: 760ms;
  --hx: 50%;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { background: var(--ink); color: var(--paper); font: 400 1rem/1.55 var(--f-text); overflow: hidden; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--paper); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.no-anim *, .no-anim *::before, .no-anim *::after { animation: none !important; transition: none !important; }

/* testo di vetro: la luce segue il cursore su tutto lo schermo */
.glass .lt, .big .lt {
  color: transparent;
  background: linear-gradient(105deg, rgba(255, 255, 255, .42) 0%, rgba(255, 255, 255, .95) calc(var(--hx) - 14%), #ffe7cf var(--hx), rgba(255, 196, 220, .85) calc(var(--hx) + 8%), rgba(178, 205, 255, .75) calc(var(--hx) + 20%), rgba(255, 255, 255, .4) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.wd { display: inline-block; white-space: nowrap; }
.lt { display: inline-block; padding: .06em 0 .16em; margin: -.06em 0 -.16em; }

/* barra in alto */
.top { position: fixed; inset: 0 0 auto 0; z-index: 8; display: flex; align-items: center; gap: 10px; padding: 18px var(--g); pointer-events: none; }
.top > * { pointer-events: auto; }
.where { margin-right: auto; font-size: .875rem; color: var(--dim); opacity: 0; transition: opacity .5s; }
.m-gallery .where { opacity: 1; }
.pill, #quick, #edit-btn, .autoplay, .restart { font-size: .8125rem; font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--faint); background: rgba(12, 13, 18, .45); transition: border-color .3s, background .3s; }
#quick:hover, #edit-btn:hover, .autoplay:hover, .restart:hover, #edit-btn[aria-expanded="true"] { border-color: rgba(243, 239, 233, .5); }
.autoplay { position: relative; overflow: hidden; }
.autoplay::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--acc); transform-origin: left; transform: scaleX(0); }
.autoplay.run::after { animation: autobar var(--auto) linear both; }
@keyframes autobar { to { transform: scaleX(1); } }

/* ---------- 1. prima pagina ---------- */
#dash { position: fixed; inset: 0; z-index: 2; pointer-events: none; }
#dash > * { pointer-events: auto; transition: opacity .6s ease; }
.hero { position: absolute; left: 50%; top: calc(50% + var(--heroY)); width: min(1200px, 94vw); text-align: center; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: var(--heroGap); }
.hero-pre { font: italic 400 var(--preSize)/1 var(--f-accent); color: rgba(255, 233, 214, .88); }
.hero-name { font-family: var(--f-display); font-size: min(var(--nameSize), 16vh); font-weight: var(--nameWeight); line-height: var(--nameLine); letter-spacing: var(--nameTrack); animation: float 9s ease-in-out infinite alternate; }
@keyframes float { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
.hero-claim { max-width: var(--claimWidth); color: var(--dim); font-size: var(--claimSize); }
.facts { position: absolute; left: var(--g); right: var(--g); bottom: 96px; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 44px; }
.fact { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.fact dt { font-size: var(--factLabel); color: rgba(243, 239, 233, .5); }
.fact dd { font-size: var(--factSize); font-weight: 500; font-variant-numeric: tabular-nums; }
.cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .8125rem; color: var(--dim); }
.cue:hover { color: var(--paper); }
.cue i { width: 1px; height: 30px; background: linear-gradient(var(--paper), transparent); transform-origin: top; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }
.dash-auto { position: absolute; right: var(--g); bottom: 30px; }
.hero-name .wd { display: inline-block; } .hero-name .lt { display: inline-block; white-space: pre; }
/* entrata della frase centrale: si sceglie dal pannello (Disposizione, prima pagina) */
.m-dash .hero-name .lt { animation: var(--hin-k, rise) var(--hin-dur, 1.2s) var(--ease) both; animation-delay: calc(var(--hin-del, .2s) + var(--i) * var(--hin-st, 35ms)); }
.hin-sale { --hin-k: hinUp; } .hin-dissolvenza { --hin-k: rise; } .hin-sfocata { --hin-k: hinBlur; } .hin-scende { --hin-k: hinDown; } .hin-zoom { --hin-k: hinZoom; } .hin-onda { --hin-k: hinWave; }
.hin-macchina.m-dash .hero-name .lt { animation-timing-function: steps(1, end); --hin-k: hinType; }
.hin-tutta.m-dash .hero-name .lt { animation-delay: var(--hin-del, .2s); }
.hin-parole.m-dash .hero-name .lt { animation: none; } .hin-parole.m-dash .hero-name .wd { animation: hinUp var(--hin-dur, 1.2s) var(--ease) both; animation-delay: calc(var(--hin-del, .2s) + var(--w) * var(--hin-st, 35ms) * 5); }
.hin-nessuna.m-dash .hero-name .lt { animation: none; }
@keyframes hinUp { from { opacity: 0; transform: translateY(.45em); } }
@keyframes hinDown { from { opacity: 0; transform: translateY(-.5em); } }
@keyframes hinBlur { from { opacity: 0; filter: blur(14px); } }
@keyframes hinZoom { from { opacity: 0; transform: scale(1.8); filter: blur(8px); } }
@keyframes hinWave { 0% { opacity: 0; transform: translateY(.5em) scale(.6); } 60% { opacity: 1; transform: translateY(-.12em) scale(1.06); } 100% { transform: none; } }
@keyframes hinType { from { opacity: 0; } to { opacity: 1; } }
/* elenco delle aree a sinistra nella galleria: spento di base */
.no-gnav.m-gallery #nav { opacity: 0; pointer-events: none; visibility: hidden; }
@keyframes rise { from { opacity: 0; } to { opacity: 1; } }
.m-dash .hero-pre { animation: var(--a-pre-k, fade) var(--a-pre-dur, 1.1s) var(--ease) var(--a-pre-del, .8s) both; }
.m-dash .hero-claim { animation: var(--a-claim-k, fade) var(--a-claim-dur, 1.1s) var(--ease) var(--a-claim-del, .8s) both; }
.m-dash .cue, .m-dash .dash-auto { animation: var(--a-cue-k, fade) var(--a-cue-dur, 1.1s) var(--ease) var(--a-cue-del, .8s) both; }
.m-dash .fact { animation: var(--a-facts-k, fade) var(--a-facts-dur, 1s) var(--ease) both; animation-delay: calc(var(--a-facts-del, 1s) + var(--k) * var(--a-facts-st, 90ms)); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
body:not(.m-dash) #dash > * { opacity: 0; pointer-events: none; }

/* ---------- 2. aree ---------- */
#areas { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.preview { position: absolute; right: calc(var(--g) * 2); top: 50%; transform: translateY(-50%); width: min(420px, 34vw); display: flex; flex-direction: column; gap: 12px; font-size: var(--previewSize); opacity: 0; transition: opacity .5s; }
.m-areas .preview { opacity: 1; pointer-events: auto; }
.preview .kicker { color: var(--cc); }
.pv-list { list-style: none; padding: 0; margin-top: 6px; display: flex; flex-direction: column; }
.pv-list li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--faint); }
.pv-list small { color: var(--dim); font-size: .75em; white-space: nowrap; }
.preview.in > * { animation: txt .7s var(--ease) both; }
.preview.in > *:nth-child(2) { animation-delay: .06s; } .preview.in > *:nth-child(4) { animation-delay: .3s; }
.preview.in .pv-list li { animation: txt .6s var(--ease) both; }
.preview.in .pv-list li:nth-child(1) { animation-delay: .12s; } .preview.in .pv-list li:nth-child(2) { animation-delay: .18s; } .preview.in .pv-list li:nth-child(3) { animation-delay: .24s; }
.preview.in .pv-list li:nth-child(4) { animation-delay: .3s; } .preview.in .pv-list li:nth-child(5) { animation-delay: .36s; } .preview.in .pv-list li:nth-child(6) { animation-delay: .42s; }
.pillbtn { align-self: flex-start; font-size: .875rem; font-weight: 500; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--faint); background: rgba(12, 13, 18, .45); transition: border-color .3s, background .3s; }
.pillbtn:hover { border-color: var(--acc); }
.enter { margin-top: 10px; }
.areas-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); font-size: .8125rem; color: var(--dim); opacity: 0; transition: opacity .5s; white-space: nowrap; }
.m-areas .areas-hint { opacity: 1; }

/* ---------- aree come elenco (vista aree) e come colonna (galleria) ---------- */
#nav { position: fixed; z-index: 5; display: flex; flex-direction: column; transition: opacity .5s; }
.m-dash #nav { opacity: 0; pointer-events: none; left: var(--g); top: 50%; transform: translateY(-50%); }
.ch-btn { display: inline-flex; align-items: center; gap: .45em; text-align: left; }
.ch-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 12px var(--cc); opacity: .75; transition: transform .4s var(--ease), opacity .3s; }
.ch-name { font-family: var(--f-display); line-height: 1.02; transition: color .4s, opacity .4s; }
.m-areas #nav { left: calc(var(--g) * 2); top: 50%; transform: translateY(-50%); gap: var(--areaGap); }
@media (min-width: 801px) { .m-areas #nav { scale: var(--nk, 1); transform-origin: 0 0; } }
.m-areas .ch-name { font-size: min(var(--areaSize), 11vh); font-weight: var(--areaWeight); letter-spacing: var(--areaTrack); color: rgba(243, 239, 233, .26); }
.m-areas .ch-dot { width: 10px; height: 10px; opacity: .3; box-shadow: none; }
.m-areas .chap.on .ch-name { color: var(--paper); }
.m-areas .chap.on .ch-dot { opacity: 1; box-shadow: 0 0 16px var(--cc); transform: scale(1.3); }
.m-areas .ch-sub { display: none; }
.m-areas .chap { animation: fade .8s var(--ease) both; }
.m-gallery #nav { left: var(--g); top: 0; bottom: 0; width: var(--rail); justify-content: center; gap: 12px; overflow-y: auto; scrollbar-width: none; padding: 80px 0 110px; }
.m-gallery .ch-name { font-size: var(--railSize); font-weight: 500; letter-spacing: -.015em; color: rgba(243, 239, 233, .42); }
.m-gallery .ch-btn:hover .ch-name, .m-gallery .chap.on .ch-name { color: var(--paper); }
.m-gallery .chap:not(.on) .ch-dot { opacity: .35; box-shadow: none; }
.ch-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.m-gallery .chap.on .ch-sub { grid-template-rows: 1fr; }
.ch-sub-in { overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding-left: 19px; }
.pj { margin-top: 9px; font-size: .875rem; color: var(--dim); text-align: left; transition: color .3s; }
.pj:hover, .pj.on { color: var(--paper); }
.ticks { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 6px; }
.tick { width: 10px; height: 10px; display: grid; place-items: center; }
.tick::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); transition: background .3s, transform .4s var(--ease); }
.tick:hover::before { background: var(--dim); }
.tick.on::before { background: var(--cc); transform: scale(1.6); box-shadow: 0 0 8px var(--cc); }

/* ---------- timeline: una linea, un punto sulla data di inizio ---------- */
.bottom { position: fixed; inset: auto 0 0 0; z-index: 6; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px; padding: 0 var(--g) 18px calc(var(--g) * 2 + var(--rail)); opacity: 0; transform: translateY(12px); transition: opacity .7s, transform .7s var(--ease); pointer-events: none; }
.m-gallery .bottom { opacity: 1; transform: none; pointer-events: auto; }
.tl { position: relative; height: 54px; }
.tl-axis { position: absolute; left: 0; right: 0; top: 30px; height: 1px; background: var(--faint); }
.tl-fill { position: absolute; left: 0; top: 0; height: 1px; width: 0; background: linear-gradient(90deg, transparent, var(--acc)); transition: width .8s var(--ease); }
.tl-year { position: absolute; top: 38px; font-size: .6875rem; color: rgba(243, 239, 233, .45); font-variant-numeric: tabular-nums; }
.tl-year::before { content: ""; position: absolute; left: 0; top: -9px; width: 1px; height: 5px; background: var(--faint); }
.tl-dot { position: absolute; top: 30px; width: 18px; height: 18px; margin: -9px 0 0 -9px; display: grid; place-items: center; }
.tl-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--cc); opacity: .35; transition: transform .4s var(--ease), opacity .3s, box-shadow .3s; }
.tl-dot.same i { opacity: .75; }
.tl-dot:hover i { opacity: 1; transform: scale(1.4); }
.tl-dot.on i { opacity: 1; transform: scale(1.9); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cc) 25%, transparent), 0 0 14px var(--cc); }
.tl-label { position: absolute; top: 0; transform: translateX(-50%); font-size: .8125rem; white-space: nowrap; transition: left .8s var(--ease), opacity .4s; }

/* ---------- palco ---------- */
#stage { position: fixed; inset: 0; z-index: 3; pointer-events: none; }
.slide { position: absolute; inset: 0; padding: 80px var(--g) 92px calc(var(--g) * 2 + var(--rail)); display: grid; grid-template-columns: clamp(200px, var(--sideWidth), 520px) minmax(0, 1fr); column-gap: calc(var(--g) * var(--colGap)); align-items: center; visibility: hidden; }
.slide.on { visibility: visible; pointer-events: auto; z-index: 2; }
.slide.out { visibility: visible; z-index: 1; }
.side { display: flex; flex-direction: column; gap: 10px; align-self: end; padding-bottom: 6vh; }
.main { display: grid; justify-items: end; align-items: center; height: 100%; min-height: 0; }
.kicker { font-size: .8125rem; font-weight: 600; color: var(--acc); }
.lead { color: rgba(243, 239, 233, .82); font-size: var(--sideSize); }
.side { font-size: var(--sideSize); }
.small { font-size: .8125rem; color: var(--dim); }
.side h3 { font-family: var(--f-display); font-size: var(--titleSize); font-weight: 500; letter-spacing: -.015em; line-height: 1.15; }
.big { font-family: var(--f-display); font-size: min(var(--bigSize), 18vh); font-weight: var(--bigWeight); line-height: .95; letter-spacing: var(--bigTrack); text-align: right; }
.threads { list-style: none; padding: 0; margin-top: 8px; display: flex; flex-direction: column; }
.threads li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--faint); font-size: .9375rem; }
.threads button { text-align: left; transition: color .3s; } .threads button:hover { color: var(--acc); }
.threads small { color: var(--dim); font-size: .75rem; white-space: nowrap; }
.notes-list { padding-left: 18px; color: var(--dim); font-size: .8125rem; display: flex; flex-direction: column; gap: 3px; }
.proofs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.proof { display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--faint); background: rgba(12, 13, 18, .45); font-size: .875rem; transition: border-color .3s; }
.proof i { width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.proof:hover { border-color: var(--pc); }

/* l'opera: grande, a destra */
.frame { position: relative; perspective: 1200px; max-height: 100%; }
.media { position: relative; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s var(--ease); }
.real { display: block; max-height: calc(100vh - 190px); max-width: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .08); }
.ph { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.ph span { position: absolute; left: 18px; bottom: 16px; font-size: 1.125rem; font-weight: 500; }
.poster { height: calc(100vh - 190px); max-height: 760px; aspect-ratio: 3 / 4;
  background: radial-gradient(120% 80% at 30% 20%, color-mix(in srgb, var(--acc) 70%, #fff), transparent 60%), linear-gradient(calc(var(--a) * 1deg), color-mix(in srgb, var(--acc) 55%, #111), #0d0e13); }
.vid { width: min(54vw, 1000px); max-width: 100%; aspect-ratio: 16 / 9; background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 30%, #0d0e13), #0d0e13 75%); }
.vid.tall { width: auto; height: calc(100vh - 190px); max-height: 760px; aspect-ratio: 9 / 16; }
.phones { display: flex; gap: 22px; align-items: center; }
.phone { position: relative; height: min(64vh, 560px); aspect-ratio: 9 / 19; border-radius: 30px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 11, 15, .6); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.phone:nth-child(2) { transform: translateY(28px); }
.screen { position: absolute; inset: 6px; border-radius: 24px; overflow: hidden; background: linear-gradient(170deg, var(--acc), #14151b, var(--acc)); background-size: 100% 300%; animation: scr 7s linear infinite; animation-delay: var(--d); }
@keyframes scr { to { background-position: 0 -200%; } }
.screen small { position: absolute; left: 14px; bottom: 12px; font-size: .8125rem; font-weight: 600; }
.compare { position: relative; height: calc(100vh - 200px); max-height: 720px; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; cursor: ew-resize; touch-action: none; --pos: 50%; }
.compare .layer { position: absolute; inset: 0; }
.compare .before { background: linear-gradient(160deg, #3a3c44, #15161b); }
.compare .after { background: linear-gradient(160deg, var(--acc), #1a1b22); clip-path: inset(0 0 0 var(--pos)); }
.compare .lab { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(7, 8, 11, .6); font-size: .75rem; z-index: 1; }
.compare .lab.l { left: 12px; } .compare .lab.r { right: 12px; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: #fff; box-shadow: 0 0 12px #fff; }
.stats { display: flex; flex-direction: column; gap: 14px; text-align: right; }
.stat { display: flex; flex-direction: column; }
.stat b { font-size: min(11vw, 20vh); line-height: .9; font-weight: 300; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.stat span { font-size: .9375rem; color: var(--acc); }
.bigq { max-width: 18ch; font-size: clamp(2rem, 4.4vw, 4.2rem); font-weight: 400; line-height: 1.04; letter-spacing: -.03em; text-align: right; text-wrap: balance; }
.k-story, .k-stats { perspective: none; }
.note { position: absolute; z-index: 3; width: 0; height: 0; }
.note i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .2); }
.note b { position: absolute; top: -13px; font-size: .75rem; font-weight: 600; white-space: nowrap; padding: 5px 11px; border-radius: 999px; background: rgba(12, 13, 18, .7); border: 1px solid rgba(255, 255, 255, .15); }
.note.r b { left: 16px; } .note.l b { right: 16px; }

/* ===== cambio opera: ogni volta appare come nuova ===== */
.slide.on .frame { animation: in-d var(--dur) var(--io) both; }
#stage[data-dir="up"] .slide.on .frame { animation-name: in-u; }
@keyframes in-d { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes in-u { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }
.slide.on .big .lt { animation: rise calc(var(--dur) * 1.1) var(--ease) both; animation-delay: calc(var(--dur) * .15 + var(--i) * 24ms); }
.slide.on .side > * { animation: txt calc(var(--dur) * .9) var(--ease) both; }
.slide.on .side > *:nth-child(1) { animation-delay: calc(var(--dur) * .25); }
.slide.on .side > *:nth-child(2) { animation-delay: calc(var(--dur) * .32); }
.slide.on .side > *:nth-child(3) { animation-delay: calc(var(--dur) * .39); }
.slide.on .side > *:nth-child(4) { animation-delay: calc(var(--dur) * .46); }
.slide.on .side > *:nth-child(5) { animation-delay: calc(var(--dur) * .53); }
@keyframes txt { from { opacity: 0; } to { opacity: 1; } }
#stage[data-dir="up"] { --dy: -1; }
.slide.on .note { animation: fade .6s calc(var(--dur) * .75 + var(--k) * 120ms) var(--ease) both; }
.slide.out > * { animation: out-d calc(var(--dur) * .7) var(--io) both; }
#stage[data-dir="up"] .slide.out > * { animation-name: out-u; }
@keyframes out-d { to { opacity: 0; } }
@keyframes out-u { to { opacity: 0; } }

/* ---------- pannello Modifica ---------- */
#editor { backdrop-filter: none; position: fixed; top: 64px; right: 20px; z-index: 30; width: min(380px, calc(100% - 24px)); height: min(78vh, 760px); display: flex; flex-direction: column; background: rgba(10, 11, 15, .92); border: 1px solid rgba(243, 239, 233, .18); border-radius: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .55); font-size: .875rem; resize: both; overflow: hidden; min-width: 300px; min-height: 120px; }
#editor.min { height: auto !important; resize: none; }
#editor.min > :not(.ed-head) { display: none; }
.ed-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px 8px 18px; font-size: 1rem; cursor: move; user-select: none; touch-action: none; }
.ed-drag { margin-right: auto; font-size: .6875rem; color: var(--dim); }
#ed-min { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--faint); }
.ed-head button { font-size: .8125rem; color: var(--dim); }
.ed-help { padding: 0 18px 12px; color: var(--dim); font-size: .8125rem; border-bottom: 1px solid var(--faint); }
#ed-body { flex: 1; overflow-y: auto; padding: 6px 18px 18px; }
#ed-body details { border-bottom: 1px solid var(--faint); }
#ed-body summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; font-weight: 600; list-style: none; }
#ed-body summary::-webkit-details-marker { display: none; }
#ed-body summary i { width: 9px; height: 9px; border-radius: 50%; }
#ed-body summary .mv { margin-left: auto; }
.lv2 { margin-left: 8px; } .lv2 summary { font-weight: 500; }
.grp { display: flex; flex-direction: column; gap: 9px; padding-bottom: 14px; }
.sub { margin-top: 6px; font-size: .75rem; color: var(--acc); font-weight: 600; }
.f { display: flex; flex-direction: column; gap: 3px; } .f > span { font-size: .75rem; color: var(--dim); }
.f-row { flex-direction: row; justify-content: space-between; align-items: center; }
.f input[type="text"], .f input[type="number"], .f textarea, .f select { width: 100%; font: inherit; color: var(--paper); background: rgba(255, 255, 255, .05); border: 1px solid var(--faint); border-radius: 8px; padding: 7px 9px; resize: vertical; }
.f-row select, .f-row input[type="number"] { width: auto; max-width: 60%; }
.f input[type="range"] { width: 100%; accent-color: var(--acc); }
.f output { color: var(--paper); font-variant-numeric: tabular-nums; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot { position: relative; display: grid; place-items: center; min-height: 86px; border: 1px dashed rgba(243, 239, 233, .3); border-radius: 10px; overflow: hidden; cursor: pointer; background: rgba(255, 255, 255, .03); }
.slot:hover, .slot:focus-visible { border-color: var(--paper); }
.slot img, .slot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.slot > span { font-size: 1.5rem; color: var(--dim); }
.slot em { position: absolute; left: 6px; bottom: 5px; font-style: normal; font-size: .6875rem; background: rgba(7, 8, 11, .7); padding: 2px 7px; border-radius: 999px; }
.slot .x { position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: rgba(7, 8, 11, .75); }
.wk { display: grid; grid-template-columns: 86px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--faint); }
.wk-s { grid-template-columns: 1fr; }
.wk-f { display: flex; flex-direction: column; gap: 6px; }
.wk-a { display: flex; justify-content: space-between; align-items: center; }
.mv { display: inline-flex; gap: 3px; }
.mv button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--faint); font-size: .75rem; }
.mv button:disabled { opacity: .3; cursor: default; }
.lnk { font-size: .75rem; text-decoration: underline; color: var(--dim); }
.add { align-self: flex-start; margin: 8px 0 12px; font-size: .8125rem; padding: 6px 12px; border-radius: 999px; border: 1px dashed rgba(243, 239, 233, .35); }
.ed-foot { display: flex; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--faint); }
.ed-foot > * { flex: 1; text-align: center; font-size: .8125rem; padding: 8px 10px; border-radius: 999px; border: 1px solid var(--faint); cursor: pointer; }
#ed-copy { background: var(--paper); color: var(--ink); font-weight: 600; }
#ed-copybox { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: rgba(10, 11, 15, .98); }
#ed-copybox p { font-size: .875rem; }
#ed-copybox textarea { flex: 1; font: 11px/1.4 monospace; color: var(--paper); background: rgba(255,255,255,.05); border: 1px solid var(--faint); border-radius: 8px; padding: 8px; }
#ed-copybox button { align-self: flex-end; font-size: .8125rem; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--faint); }
#toast { position: fixed; left: 50%; top: 18px; z-index: 40; transform: translate(-50%, -20px); opacity: 0; padding: 8px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: .8125rem; font-weight: 600; transition: opacity .3s, transform .4s var(--ease); pointer-events: none; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* versione rapida */
dialog { background: rgba(10, 11, 15, .95); color: var(--paper); border: 1px solid var(--faint); border-radius: 16px; padding: 28px; width: min(680px, calc(100% - 32px)); max-height: 86vh; overflow: auto; margin: auto; }
dialog::backdrop { background: rgba(5, 6, 8, .7); }
dialog h2 { font-size: 1.75rem; font-weight: 500; letter-spacing: -.02em; }
.sheet-lead { color: var(--dim); margin: 6px 0 22px; max-width: 52ch; }
.close { float: right; font-size: .8125rem; border: 1px solid var(--faint); border-radius: 999px; padding: 6px 12px; }
.cv { display: grid; grid-template-columns: 7.5rem 1fr; gap: 14px 18px; }
.cv dt { color: var(--dim); font-size: .875rem; }
.cv b { font-weight: 600; }

/* ---------- telefono ---------- */
/* ================= TELEFONO: impaginazione propria ================= */
@media (max-width: 800px) {
  :root { --g: 20px; --rail: 0px; --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px); }
  .top { padding: calc(10px + var(--st)) var(--g) 14px; gap: 2px; background: linear-gradient(rgba(7, 8, 11, .8), rgba(7, 8, 11, 0)); }
  .where { font-size: .75rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-up { padding: 6px 9px; font-size: .75rem; white-space: nowrap; }
  #edit-btn { display: none; }

  /* prima pagina: frase al centro, frasi in griglia, invito in basso */
  .hero { top: 42%; width: calc(100% - 40px); gap: 10px; }
  .hero::before { content: ""; position: absolute; inset: -22% -14%; z-index: -1; background: radial-gradient(closest-side, rgba(7, 8, 11, .6), transparent); pointer-events: none; }
  .hero-name { font-size: min(12vw, 12vh); }
  .hero-claim { font-size: .95rem; max-width: 30ch; }
  .facts { left: var(--g); right: var(--g); bottom: calc(86px + var(--sb)); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
  .facts::before { content: ""; position: absolute; inset: -40px -20px -90px; z-index: -1; background: linear-gradient(rgba(7, 8, 11, 0), rgba(7, 8, 11, .72) 35%); pointer-events: none; }
  .fact { align-items: flex-start; text-align: left; }
  .fact dt { font-size: .6875rem; line-height: 1.3; }
  .fact dd { font-size: 1rem; }
  .cue { bottom: calc(18px + var(--sb)); }
  .dash-auto { display: none; }

  /* aree: elenco in alto, scheda dell'area in basso con pulsante pieno */
  .m-areas #nav { left: var(--g); right: var(--g); top: calc(70px + var(--st)); transform: none; gap: 0; }
  .m-areas .ch-name { font-size: min(10.5vw, 6.4vh); }
  .m-areas .ch-dot { width: 7px; height: 7px; }
  .preview { left: var(--g); right: var(--g); bottom: calc(20px + var(--sb)); top: auto; transform: none; width: auto; gap: 6px; font-size: .95rem; }
  .preview .lead { display: none; }
  .pv-list li { padding: 7px 0; }
  .pv-list li:nth-child(n+5) { display: none; }
  .enter { align-self: stretch; text-align: center; padding: 14px; margin-top: 8px; background: var(--paper); color: var(--ink); border-color: transparent; font-weight: 600; }
  .areas-hint { display: none; }

  /* galleria: opera sopra, testi sotto, niente colonna laterale */
  .m-gallery #nav { display: none; }
  .slide { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) auto; padding: calc(60px + var(--st)) var(--g) calc(70px + var(--sb)); row-gap: 18px; align-items: stretch; }
  .main { grid-row: 1; justify-items: center; align-items: center; height: auto; min-height: 0; }
  .side { grid-row: 2; padding: 0; align-self: end; gap: 6px; }
  .side .lead { font-size: .95rem; }
  .side h3 { font-size: 1.35rem; }
  .notes-list { display: none; }
  .t-intro .main, .t-contacts .main { justify-items: start; align-items: end; }
  .big { font-size: min(14vw, 9vh); text-align: left; }
  .real { max-height: calc(100dvh - 330px); max-width: 100%; }
  .poster, .vid.tall, .compare { height: auto; max-height: none; width: min(100%, calc((100dvh - 340px) * .75)); }
  .vid.tall { width: min(100%, calc((100dvh - 340px) * .5625)); }
  .vid { width: 100%; }
  .phones { gap: 10px; } .phone { height: calc(100dvh - 380px); max-height: 440px; border-radius: 22px; } .phone:nth-child(3) { display: none; }
  .phone:nth-child(2) { transform: translateY(14px); }
  .stats { text-align: left; } .stat b { font-size: 17vw; }
  .bigq { font-size: 8.2vw; text-align: left; }
  .note b { display: none; }
  .contacts { justify-items: start !important; } .contacts .c-list, .contacts .c-list li { align-items: flex-start !important; }
  .contacts .c-list a, .contacts .c-list span { font-size: 1.15rem; }
  .t-map { grid-template-rows: minmax(0, 1fr) auto !important; }
  .t-map .main { height: auto; min-height: 40vh; }
  .map { min-height: 40vh; }
  .node b { font-size: .625rem; max-width: 84px; white-space: normal; text-align: center; line-height: 1.15; }
  .t-map .side .lead, .t-map .side .kicker { display: none; }
  .skills { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; } .sk { font-size: 1rem; } .sk.on { transform: none; }

  /* timeline in basso, compatta */
  .bottom { padding: 0 var(--g) calc(10px + var(--sb)); grid-template-columns: 1fr; }
  .bottom .autoplay { display: none; }
  .tl { height: 46px; } .tl-year { font-size: .625rem; } .tl-label { font-size: .75rem; }

  /* pannello Modifica dentro l'anteprima telefono: foglio in basso */
  .phone-preview #edit-btn { display: inline-flex; }
  .phone-preview #editor { left: 0 !important; right: 0 !important; top: auto !important; bottom: 0; width: 100%; height: 52vh; border-radius: 16px 16px 0 0; resize: none; min-width: 0; }
}


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* mappa delle competenze */
.skills { list-style: none; padding: 0; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.sk { font-family: var(--f-display); font-size: 1.25em; color: rgba(243, 239, 233, .45); text-align: left; transition: color .3s, transform .4s var(--ease); }
.sk:hover, .sk.on { color: var(--paper); } .sk.on { transform: translateX(8px); }
.sk-cap { min-height: 3em; }
.map { position: relative; width: 100%; height: 100%; min-height: 50vh; --mx: 0; --my: 0; }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.map-lines line { stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s var(--ease) forwards; }
.map-lines circle { fill: var(--paper); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.node { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 7px; transform: translate(-50%, -50%) translate(calc(var(--mx) * -14px), calc(var(--my) * -14px)); transition: transform .6s ease-out, opacity .4s; }
.node i { width: 9px; height: 9px; border-radius: 50%; background: var(--nc); opacity: .7; animation: float 8s ease-in-out infinite alternate; animation-delay: var(--fd); transition: box-shadow .4s, opacity .3s; }
.node b { font-size: .8125rem; font-weight: 500; color: var(--dim); white-space: nowrap; transition: color .3s; }
.map.sel .node:not(.hit) { opacity: .22; }
.node.hit i, .node:hover i { opacity: 1; box-shadow: 0 0 0 6px color-mix(in srgb, var(--nc) 25%, transparent), 0 0 14px var(--nc); }
.node.hit b, .node:hover b { color: var(--paper); }
.k-map { width: 100%; }
.t-map .main { justify-items: stretch; }

/* titoli senza vetro */
.noglass .glass .lt, .noglass .big .lt { background: none; color: var(--paper); }

/* pannello: schede */
.ed-tabs { display: flex; gap: 4px; padding: 10px 18px; border-bottom: 1px solid var(--faint); }
.ed-tabs button { flex: 1; font-size: .8125rem; padding: 7px 0; border-radius: 999px; color: var(--dim); }
.ed-tabs button[aria-selected="true"] { background: rgba(243, 239, 233, .1); color: var(--paper); }
.ed-views { display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 0 4px; }
.ed-views button { font-size: .75rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--faint); }
.ed-views button:hover { border-color: var(--paper); }
.note-ed { font-size: .75rem; color: var(--dim); }
.fact-ed { grid-template-columns: 1fr 1fr auto; align-items: end; }
.slot { min-height: 110px; }

/* ritocca */
.picking [data-e]:hover { outline: 1px dashed rgba(255, 255, 255, .55); outline-offset: 4px; cursor: move; }
.picking .e-sel, .e-sel { outline: 1.5px solid #fff !important; outline-offset: 4px; }
.picking a, .picking button:not(#editor button):not(.top button) { cursor: move; }
.ed-hint { font-size: .8125rem; color: var(--dim); padding: 6px 0; }
.seg2 { display: flex; gap: 4px; }
.seg2 button { flex: 1; font-size: .75rem; padding: 6px; border-radius: 999px; border: 1px solid var(--faint); }
.seg2 button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.c-ed { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-top: 1px solid var(--faint); }

/* tasti per tornare su */
.nav-up { font-size: .8125rem; color: var(--dim); padding: 8px 12px; border-radius: 999px; transition: color .3s; }
.nav-up:hover { color: var(--paper); }
.m-dash .nav-up, .m-areas #to-areas { display: none; }

/* contatti */
.contacts { justify-items: end; align-content: center; gap: 28px; }
.c-list { list-style: none; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.c-list li { display: flex; flex-direction: column; align-items: flex-end; }
.c-list small { font-size: .75rem; color: var(--dim); }
.c-list a, .c-list span { font-size: clamp(1.1rem, 1.9vw, 1.7rem); text-decoration: none; transition: color .3s; }
.c-list a:hover { color: var(--acc); }
.chap-c { margin-top: .4em; }

/* timeline che si stringe */
.tl-dot, .tl-year { transition: left .9s var(--io), opacity .5s; }
.tl-dot.off { opacity: 0; pointer-events: none; }

/* le aree compaiono e scompaiono in dissolvenza al cambio di vista */
.chap { animation: none; }
.m-areas .chap, .m-gallery .chap { animation: fade .7s var(--ease) both; animation-delay: calc(var(--k, 0) * 40ms); }
.preview, .areas-hint, .bottom, .where { transform: none !important; }
@media (hover: none) { .ch-btn:hover .ch-name, .pj:hover, .tl-dot:hover i, .node:hover b { color: inherit; transform: none; } }

/* anteprima del telefono dentro il computer */
#phone-win { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px; background: rgba(5, 6, 9, .97); }
#phone-win .pw-head { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; font-size: .82rem; color: var(--dim); }
#phone-win .pw-head b { color: var(--paper); margin-right: 8px; }
#phone-win .pw-head button { font-size: .78rem; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--faint); }
#phone-win iframe { display: block; width: 390px; max-width: 100%; flex: 1; min-height: 0; max-height: 844px; border: 8px solid #17181d; box-sizing: content-box; border-radius: 34px; background: #000; }
#editor.behind { visibility: hidden; }

/* caricamento: si mostra tutto insieme quando caratteri e sfondo sono pronti */
body.loading #dash, body.loading #nav, body.loading .top { opacity: 0; }
/* le entrate partono solo quando la pagina si vede: niente animazioni consumate di nascosto */
body.loading #dash, body.loading #dash *, body.loading .qb, body.loading #nav * { animation-play-state: paused !important; }
#dash, .top { transition: opacity .8s ease; }

/* telefono: gesti */
#swipe-hint { display: none; }
@media (max-width: 800px) {
  html, body { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
  #editor, #editor * { touch-action: auto; -webkit-user-select: text; user-select: text; }
  #swipe-hint { display: flex; position: fixed; left: 50%; top: 34%; z-index: 9; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 10px; width: 72vw; padding: 16px 18px; border-radius: 18px; background: rgba(7, 8, 11, .82); border: 1px solid rgba(243, 239, 233, .15); text-align: center; font-size: .8125rem; color: var(--paper); opacity: 0; pointer-events: none; }
  #swipe-hint i { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--paper); }
  #swipe-hint.on { animation: hint 3.6s ease both; }
  #swipe-hint.on i { animation: swipe 1.2s 3 var(--ease) both .3s; }
  @keyframes hint { 0%, 100% { opacity: 0; } 10%, 82% { opacity: 1; } }
  @keyframes swipe { from { transform: translateY(26px); opacity: 0; } 40% { opacity: 1; } to { transform: translateY(-26px); opacity: 0; } }
  /* opere: su telefono entrano in dissolvenza con un leggero zoom, più morbido della tendina */
  .slide.on .frame, #stage[data-dir="up"] .slide.on .frame { animation: m-in var(--dur) var(--ease) both; }
  @keyframes m-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
  .chap:active .ch-name, .pillbtn:active, .nav-up:active { opacity: .6; }
  .m-areas .ch-btn { padding: 4px 0; }
}

/* =====================================================================
   GRUPPI DI CONTENUTI (set), SCHEDE (cards), PLAYER
   ===================================================================== */
.slide.noside { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; }
.slide.noside .side { display: none; }
.main-x { justify-items: center; align-items: center; width: 100%; height: 100%; min-height: 0; overflow: visible; }
.set { position: relative; display: grid; gap: var(--gap); align-content: center; justify-content: center; max-width: 100%; max-height: 100%; }
.set-empty { color: var(--dim); border: 1px dashed var(--faint); border-radius: 14px; padding: 40px; text-align: center; }
.si { position: relative; margin: 0; min-width: 0; cursor: zoom-in; }
.si .sf { position: relative; overflow: hidden; border-radius: var(--rad); background: rgba(255, 255, 255, .04); box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .07);
  transition: transform var(--hdur, .55s) var(--ease), box-shadow var(--hdur, .55s) var(--ease), filter var(--hdur, .5s), opacity var(--hdur, .45s); transform-origin: center; }
.si img, .si video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--hdur, .7s) var(--ease); }
.si.fit img, .si.fit video { object-fit: contain; background: rgba(0, 0, 0, .35); }
.si figcaption { display: none; padding-top: 8px; font-size: .8rem; line-height: 1.3; }
.si figcaption b { display: block; font-weight: 500; } .si figcaption small { color: var(--dim); }
.capon .si figcaption { display: block; }
.si .snd { position: absolute; right: 8px; bottom: 8px; font-size: .68rem; padding: 3px 8px; border-radius: 20px; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .3s; pointer-events: none; }
.si:hover .snd { opacity: 1; }
.si.e-it .sf { outline: 2px solid var(--acc); outline-offset: 4px; }
/* griglia, reel, schede */
.L-grid, .L-reel { grid-template-columns: repeat(var(--cols, 3), var(--cw, 200px)); }
.L-grid .sf, .L-reel .sf { aspect-ratio: var(--ratio, .8); }
.L-grid .si.big, .L-reel .si.big { grid-column: span 2; grid-row: span 2; }
.L-grid .si.big .sf, .L-reel .si.big .sf { aspect-ratio: auto; height: calc(100% - 0px); }
/* ambiente (masonry) */
.L-mosaic { display: block; columns: var(--cols, 3); column-gap: var(--gap); align-self: center; overflow: hidden; }
.L-mosaic .si { break-inside: avoid; margin-bottom: var(--gap); }
.L-mosaic .sf { aspect-ratio: var(--r); }
/* serie affiancata: stessa altezza */
.L-series { display: flex; align-items: center; justify-content: center; }
.L-series .si { flex: 0 0 auto; width: calc(var(--ih) * var(--r)); }
.L-series .si.big { width: calc(var(--ih) * var(--r) * 1.6); }
.L-series .sf { aspect-ratio: var(--r); }
/* focus */
.L-focus { grid-template-columns: max-content repeat(var(--cols, 1), var(--cw, 140px)); align-items: center; align-content: center; }
.L-focus > .si:first-child .sf { aspect-ratio: var(--r); }
.L-focus > .si:not(:first-child) .sf { aspect-ratio: .8; }
/* carosello */
.L-carousel { display: block; width: 100%; }
.L-carousel .car { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; align-items: center; padding: 0 2px; }
.L-carousel .car::-webkit-scrollbar { display: none; }
.L-carousel .si { flex: 0 0 auto; scroll-snap-align: center; height: var(--ih, 60vh); width: calc(var(--ih, 60vh) * var(--r)); }
.L-carousel .sf { height: 100%; }
.car-b { position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: rgba(10, 11, 15, .6); border: 1px solid var(--faint); font-size: 1.6rem; line-height: 1; backdrop-filter: blur(8px); }
.car-b.l { left: -8px; } .car-b.r { right: -8px; }
/* libero */
.L-free { display: block; }
.L-free .si { position: absolute; }
.L-free .sf { aspect-ratio: var(--r); }
.L-free .rz { display: none; position: absolute; right: -6px; bottom: -6px; width: 16px; height: 16px; border-radius: 50%; background: var(--acc); cursor: nwse-resize; z-index: 2; }
.editing .L-free .rz { display: block; } .editing .L-free .si { cursor: grab; }
/* schede */
.L-cards .si { cursor: pointer; }
.L-cards .sf { aspect-ratio: var(--ratio, .8); }
.L-cards .ov { position: absolute; inset: auto 0 0 0; padding: 50px 14px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); transition: opacity .35s; }
.L-cards .ov b { display: block; font-size: 1.05rem; font-weight: 500; letter-spacing: -.01em; } .L-cards .ov small, .L-cards figcaption small { color: var(--dim); font-size: .75rem; }
.L-cards figcaption { display: block; }
.lab-sotto .ov, .lab-nessuno .ov, .lab-nessuno figcaption, .lab-sopra figcaption, .lab-hover figcaption { display: none; }
.lab-hover .ov { opacity: 0; } .lab-hover .si:hover .ov { opacity: 1; }
/* entrate: partono quando la schermata è attiva (.go) */
.set .si { transition: opacity var(--adur, .8s) var(--aease, var(--ease)), transform var(--adur, .9s) var(--aease, var(--ease)), filter var(--adur, .8s) var(--aease, var(--ease)); transition-delay: calc(var(--dur) * .3 + var(--k) * var(--stag)); }
.slide:not(.go) .an-fade .si { opacity: 0; }
.slide:not(.go) .an-rise .si { opacity: 0; transform: translateY(var(--adist, 46px)); }
.slide:not(.go) .an-zoom .si { opacity: 0; transform: scale(var(--ascale, .85)); }
.slide:not(.go) .an-blur .si { opacity: 0; filter: blur(var(--ablur, 16px)); }
.slide:not(.go) .an-slide .si { opacity: 0; transform: translateX(calc(var(--adist, 60px) * -1)); }
.slide:not(.go) .an-scatter .si { opacity: 0; transform: translate(calc((var(--k) - 4) * var(--adist, 40px)), calc(((var(--k) * 37) % 9 - 4) * var(--adist, 30px) * .7)) scale(var(--ascale, .6)) rotate(calc(((var(--k) * 53) % 11 - 5) * 3deg)); filter: blur(var(--ablur, 0px)); }
.L-free.an-rise .si, .L-free .si { transition-property: opacity, filter; }
/* passaggio del mouse */
.hv-lift .si:hover .sf { transform: translateY(calc(var(--hamt, 1) * -8px)); box-shadow: 0 28px 70px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .15); }
.hv-zoom .si:hover img, .hv-zoom .si:hover video { transform: scale(calc(1 + .07 * var(--hamt, 1))); }
.hv-grow .si:hover { z-index: 6; } .hv-grow .si:hover .sf { transform: scale(calc(1 + .14 * var(--hamt, 1))); box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.hv-pop .si:hover { z-index: 6; } .hv-pop .si:hover .sf { transform: scale(calc(1 + .85 * var(--hamt, 1))); box-shadow: 0 40px 100px rgba(0, 0, 0, .8); }
.hv-color .sf { filter: grayscale(1) brightness(.75); } .hv-color .si:hover .sf { filter: none; }
.hv-focus:hover .si .sf { opacity: calc(1 - .7 * var(--hamt, 1)); } .hv-focus .si:hover .sf { opacity: 1; }
/* player musica */
.player { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; width: min(100%, 1100px); }
.pl-art { position: relative; aspect-ratio: 1; width: min(100%, 62vh); justify-self: center; }
.pl-cover { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, .65); z-index: 2; transition: transform .8s var(--ease); }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vinyl { position: absolute; inset: 4%; border-radius: 50%; background: repeating-radial-gradient(circle, #111 0 2px, #1b1b1f 2px 4px); box-shadow: 0 20px 60px rgba(0, 0, 0, .6); transition: transform 1s var(--ease); z-index: 1; }
.vinyl i { position: absolute; inset: 36%; border-radius: 50%; background: var(--acc); box-shadow: inset 0 0 0 6px rgba(0, 0, 0, .3); }
.vinyl i::after { content: ""; position: absolute; inset: 44%; border-radius: 50%; background: var(--ink); }
.player.playing .vinyl { transform: translateX(34%); animation: spin 3.2s linear infinite; }
.player.playing .pl-cover { transform: translateX(-8%); }
@keyframes spin { from { rotate: 0deg; } to { rotate: 360deg; } }
.player.swap .pl-cover { animation: plswap .7s var(--ease); }
@keyframes plswap { from { opacity: 0; transform: scale(.94) translateY(10px); } }
.pl-now small { display: block; color: var(--dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; }
.pl-t { display: block; font-family: var(--f-display); font-size: clamp(1.8rem, 3.4vw, 3.2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; margin-top: 6px; }
.pl-a { color: var(--dim); }
.pl-bars { display: flex; gap: 4px; align-items: flex-end; height: 34px; margin: 18px 0 14px; }
.pl-bars i { flex: 1; max-width: 6px; height: 4px; border-radius: 3px; background: var(--acc); opacity: .35; transition: height .3s; }
.player.playing .pl-bars i { opacity: 1; animation: eq 1s ease-in-out infinite alternate; }
.player.playing .pl-bars i:nth-child(3n) { animation-duration: .7s; } .player.playing .pl-bars i:nth-child(4n+1) { animation-duration: 1.3s; } .player.playing .pl-bars i:nth-child(5n+2) { animation-delay: -.4s; }
@keyframes eq { from { height: 4px; } to { height: 32px; } }
.pl-ctrl { display: flex; gap: 14px; align-items: center; }
.pl-ctrl button { width: 40px; height: 40px; border-radius: 50%; font-size: 1rem; color: var(--dim); }
.pl-ctrl .pl-play { width: 58px; height: 58px; background: var(--paper); color: var(--ink); font-size: 1.2rem; }
.player.playing .pl-play { font-size: 0; } .player.playing .pl-play::before { content: "❚❚"; font-size: 1rem; }
.pl-prog { height: 3px; border-radius: 3px; background: var(--faint); margin: 16px 0; overflow: hidden; } .pl-prog i { display: block; height: 100%; width: 0; background: var(--acc); }
.pl-list { list-style: none; padding: 0; display: grid; gap: 4px; }
.pl-list button { width: 100%; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 6px; border-radius: 10px; transition: background .25s; }
.pl-list button:hover, .pl-list button.on { background: rgba(255, 255, 255, .07); }
.pl-list button.on b { color: var(--acc); }
.pl-list img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; }
.pl-list b { display: block; font-weight: 500; } .pl-list small, .pl-list em { color: var(--dim); font-size: .75rem; font-style: normal; }
.pl-embed iframe { margin-top: 12px; border-radius: 12px; display: block; }
.pl-embed a { display: inline-block; margin-top: 8px; font-size: .8rem; color: var(--dim); }
/* a tutto schermo */
#box { padding: 0; border: 0; background: rgba(5, 6, 9, .94); max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; display: none; }
#box[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
#box img, #box video { max-width: 92vw; max-height: 84vh; border-radius: 10px; }
#box p { max-width: 720px; text-align: center; color: var(--dim); } #box p b { color: var(--paper); font-weight: 500; }
/* pannello */
.wk-x .xe { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.xstrip { display: flex; flex-wrap: wrap; gap: 4px; }
.xstrip button { position: relative; width: 48px; height: 48px; border-radius: 6px; background: #222 center/cover; outline: 1px solid var(--faint); }
.xstrip button.on { outline: 2px solid var(--acc); } .xstrip button.hid { opacity: .3; }
.xstrip button i { position: absolute; right: 3px; bottom: 1px; font-size: .6rem; font-style: normal; }
.it-ed { border: 1px solid var(--faint); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.trk { display: grid; grid-template-columns: 86px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--faint); }
#arch { width: min(980px, 94vw); height: min(84vh, 900px); padding: 0; border: 1px solid rgba(243, 239, 233, .18); border-radius: 16px; background: rgba(10, 11, 15, .97); color: var(--paper); }
#arch[open] { display: flex; flex-direction: column; }
#arch::backdrop { background: rgba(0, 0, 0, .55); }
.ar-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--faint); }
.ar-h span { display: flex; gap: 4px; margin-right: auto; }
.ar-h button { padding: 6px 12px; border-radius: 20px; border: 1px solid var(--faint); font-size: .8rem; } .ar-h button.on, .ar-h [data-ac] { background: var(--paper); color: var(--ink); }
.ar-n { padding: 8px 16px 0; color: var(--dim); font-size: .8rem; }
.ar-g { flex: 1; overflow: auto; padding: 12px 16px 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; align-content: start; }
.ar-g button { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; outline: 1px solid var(--faint); }
.ar-g img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ar-g i { position: absolute; left: 6px; top: 6px; font-size: .65rem; font-style: normal; background: rgba(0, 0, 0, .6); padding: 2px 6px; border-radius: 10px; }
.ar-g small { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 6px 4px; font-size: .65rem; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); text-align: left; }
.ar-g button.used::after { content: "nel sito"; position: absolute; right: 6px; top: 6px; font-size: .6rem; background: var(--acc); color: var(--ink); padding: 2px 6px; border-radius: 10px; }
.ar-g button.just { outline: 2px solid var(--acc); }
@media (max-width: 800px) {
  .player { grid-template-columns: 1fr; gap: 14px; } .pl-art { width: min(58vw, 34vh); } .pl-t { font-size: 1.5rem; } .pl-list img { width: 36px; height: 36px; }
  .hv-pop .si:hover .sf { transform: none; }
  .car-b { display: none; }
}
/* con il pannello aperto le opere si spostano a sinistra, così restano cliccabili */
/* il pannello non sposta più la pagina: quello che vedi mentre modifichi è quello che resta */
.pl-sp { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 16px; border-radius: 30px; background: #1db954; color: #000 !important; font-weight: 600; font-size: .85rem !important; text-decoration: none; }
.pl-sp i { width: 10px; height: 10px; border-radius: 50%; background: #000; }
#editor button.armed { color: #ff8a8a; }

/* anteprima aree: numeri e strumenti */
.pv-stats { display: flex; gap: 22px; margin-top: 6px; }
.pv-stats b { display: block; font-family: var(--f-display); font-size: 2em; font-weight: 400; letter-spacing: -.03em; line-height: 1; color: var(--cc, var(--acc)); }
.pv-stats span { font-size: .72em; color: var(--dim); }
.pv-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.pv-tools span { font-size: .72em; padding: 4px 10px; border-radius: 20px; border: 1px solid var(--faint); color: var(--dim); }

/* galleria: una grande + miniature */
.L-viewer { display: flex; flex-direction: column; gap: 14px; width: 100%; }
.L-viewer .vw { position: relative; height: var(--ih, 60vh); }
.L-viewer .vw .si { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; opacity: 0; transform: scale(.97); pointer-events: none;
  transition: opacity .6s var(--ease), transform .8s var(--ease) !important; transition-delay: 0s !important; }
.L-viewer .vw .si.on { opacity: 1; transform: none; pointer-events: auto; }
.L-viewer .vw .sf { height: 100%; max-height: 100%; max-width: 100%; aspect-ratio: var(--r); width: auto; }
.L-viewer.capon .vw .sf { height: calc(100% - 46px); }
.L-viewer .vw .si figcaption { text-align: center; }
.L-viewer .car-b { z-index: 4; }
.vw-strip { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; scrollbar-width: none; padding: 4px; }
.vw-strip::-webkit-scrollbar { display: none; }
.vw-strip button { flex: 0 0 auto; width: 52px; height: 66px; border-radius: 6px; overflow: hidden; opacity: .45; transition: opacity .3s, transform .3s var(--ease); outline: 1px solid var(--faint); }
.vw-strip button:hover { opacity: .8; } .vw-strip button.on { opacity: 1; transform: translateY(-4px); outline: 2px solid var(--acc); }
.vw-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide:not(.go) .L-viewer .vw, .slide:not(.go) .L-viewer .vw-strip { opacity: 0; transform: translateY(26px); }
.L-viewer .vw, .L-viewer .vw-strip { transition: opacity .8s var(--ease) calc(var(--dur) * .3), transform .9s var(--ease) calc(var(--dur) * .3); }
.slide:not(.go) .L-viewer .vw .si { transform: none; }

/* disposizione libera di testi e contenuti */
.slide .boxed { position: absolute; margin: 0; align-self: auto; justify-self: auto; padding-bottom: 0; }
.slide .main.boxed { display: grid; }
.arranging .slide.on .side, .arranging .slide.on .main { outline: 1px dashed rgba(243, 239, 233, .45); outline-offset: 6px; cursor: move; border-radius: 6px; }
.arranging .slide.on .side:hover, .arranging .slide.on .main:hover { outline-color: var(--acc); }
.arranging .slide.on .si:not(.card) { cursor: pointer; }
.arranging .slide.on .L-free .si { cursor: grab; }
.bx-l { position: absolute; left: 0; top: -30px; font-size: .68rem; font-style: normal; background: rgba(10, 11, 15, .85); color: var(--dim); padding: 3px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 9; }
.bx-h { position: absolute; right: -14px; bottom: -14px; width: 18px; height: 18px; border-radius: 50%; background: var(--acc); border: 3px solid var(--ink); cursor: nwse-resize; z-index: 9; }
.arranging .L-free .rz { display: block; }
.editing-txt { outline: 2px solid var(--acc) !important; outline-offset: 4px; cursor: text !important; }
.editing-txt .lt { color: var(--paper) !important; background: none !important; }
.slide .main.boxed { overflow: visible; }
.slide.noside .main { grid-column: 2; }
.pl-art { width: min(42vw, 60vh); }
@media (max-width: 800px) { .slide.noside .main { grid-column: 1; } .pl-art { width: min(58vw, 34vh); } }

/* testata del progetto dentro la schermata */
.side .ptitle { font-family: var(--f-display); font-size: clamp(2.2rem, 3.8vw, 4rem); font-weight: 400; letter-spacing: -.035em; line-height: .98; margin: 2px 0 4px; }
.side .lead.intro { font-size: calc(var(--sideSize) * 1.02); max-width: 46ch; }
.side .lead.intro + h3 { margin-top: 10px; }
.side-stats { display: flex; gap: 26px; margin-top: 8px; }
.side-stats .stat b { display: block; font-family: var(--f-display); font-size: clamp(1.6rem, 2.4vw, 2.4rem); font-weight: 400; letter-spacing: -.03em; color: var(--acc); line-height: 1; }
.side-stats .stat span { font-size: .78rem; color: var(--dim); }
/* player che si adatta allo spazio, mai sovrapposto */
.player { grid-template-columns: minmax(0, 1fr) minmax(220px, .95fr); width: min(100%, 1060px); max-height: 100%; }
.pl-art { width: 100%; max-width: min(60vh, 520px); }
.pl-side { min-width: 0; }
.pl-t { font-size: clamp(1.6rem, 2.8vw, 2.8rem); }
@media (max-width: 800px) { .player { grid-template-columns: 1fr; } .pl-art { width: min(58vw, 30vh); } }
/* linee guida e sagoma della schermata precedente */
#guides { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#guides .gl { position: absolute; pointer-events: auto; }
#guides .gl.h { left: 0; right: 0; height: 9px; margin-top: -4px; cursor: ns-resize; background: linear-gradient(transparent 4px, #4fd1ff 4px, #4fd1ff 5px, transparent 5px); }
#guides .gl.v { top: 0; bottom: 0; width: 9px; margin-left: -4px; cursor: ew-resize; background: linear-gradient(90deg, transparent 4px, #4fd1ff 4px, #4fd1ff 5px, transparent 5px); }
#guides .gl span { position: absolute; font-size: .62rem; color: #4fd1ff; background: rgba(7, 8, 11, .8); padding: 1px 5px; border-radius: 4px; }
#guides .gl.h span { left: 8px; top: -14px; } #guides .gl.v span { top: 70px; left: 8px; }
#guides .ghost { position: absolute; border: 1px dashed rgba(255, 170, 90, .7); border-radius: 6px; background: rgba(255, 170, 90, .04); }
#guides .ghost span { position: absolute; left: 6px; bottom: -18px; font-size: .62rem; color: rgba(255, 190, 120, .9); white-space: nowrap; }
.adv { margin-top: 6px; } .adv summary { cursor: pointer; color: var(--dim); font-size: .8rem; }

.gate { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.gate .pillbtn { padding: 10px 22px; }
.side .lnk { align-self: flex-start; font-size: .8rem; color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.side .lnk:hover { color: var(--paper); }
.gate-back { margin-bottom: 4px; }
.L-free { margin: auto; }

/* ---- player regolabile ---- */
.player { grid-template-columns: auto minmax(220px, 1fr); column-gap: var(--pgap, 48px); }
.player.cov-r { direction: rtl; } .player.cov-r > * { direction: ltr; }
.pl-art { width: min(calc(56vh * var(--pcov, 1)), calc(30vw * var(--pcov, 1))); max-width: none; }
.pl-ctrl { transform: translateY(var(--pctl, 0px)); position: relative; z-index: 2; }
.pl-list { gap: var(--prow, 4px); }
.pl-t { font-size: calc(clamp(1.6rem, 2.8vw, 2.8rem) * var(--pts, 1)); }
.player.ctl-top .pl-side { display: flex; flex-direction: column; } .player.ctl-top .pl-ctrl { order: -1; margin-bottom: 14px; }
.player.playing .vinyl { animation-duration: var(--pspin, 3.2s); }
.player.pa-disco.playing .vinyl { transform: translateX(var(--pvx, 34%)); }
.player:not(.pa-disco).playing .vinyl { transform: none; animation: none; }
.player.pa-disco.playing .pl-cover { transform: translateX(calc(var(--pvx, 34%) * -.25)); }
.player:not(.pa-disco).playing .pl-cover { transform: none; }
.player.pa-respiro.playing .pl-cover { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.035); } }
.player.pa-luce.playing .pl-cover { box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 0 80px color-mix(in srgb, var(--acc) 60%, transparent), 0 40px 90px rgba(0,0,0,.6); }
.player.pa-nessuna .vinyl { display: none; }
.player.swap .pl-cover { animation: plswap .6s var(--ease); }

/* ---- prima pagina e aree: riquadri spostabili ---- */
.dboxed { position: fixed !important; right: auto !important; bottom: auto !important; transform: none !important; translate: none !important; margin: 0 !important; }
.arranging .darr { outline: 1px dashed rgba(243, 239, 233, .45); outline-offset: 8px; cursor: move; border-radius: 8px; pointer-events: auto !important; }
.arranging .darr:hover { outline-color: var(--acc); }
.dl { position: absolute; left: 0; top: -32px; font-size: .68rem; font-style: normal; font-weight: 400; letter-spacing: 0; text-transform: none; background: rgba(10, 11, 15, .85); color: var(--dim); padding: 3px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 9; font-family: var(--f-text); }
.dh { position: absolute; right: -16px; bottom: -16px; width: 18px; height: 18px; border-radius: 50%; background: var(--acc); border: 3px solid var(--ink); cursor: nwse-resize; z-index: 9; }

/* ---- aree: immagine o oggetto di luce ---- */
#area-vis { position: absolute; right: 3%; top: 50%; width: min(28vw, 44vh); aspect-ratio: 1; transform: translateY(-50%); perspective: 900px; opacity: 0; transition: opacity .6s; pointer-events: none; z-index: 0; }
.m-areas #area-vis { opacity: .5; }
.no-vis #area-vis { display: none; }
.av { position: absolute; inset: 0; opacity: 0; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) scale(.9); transition: opacity .8s var(--ease), transform 1.2s var(--ease); transform-style: preserve-3d; }
.av.on { opacity: 1; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) scale(1); }
.av img, .av video { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); animation: float 8s ease-in-out infinite alternate; }
.orb { position: absolute; inset: 14%; transform-style: preserve-3d; animation: float 9s ease-in-out infinite alternate; }
.orb b { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.9), color-mix(in srgb, var(--cc) 70%, white) 12%, color-mix(in srgb, var(--cc) 55%, transparent) 45%, rgba(10,11,15,.1) 72%);
  box-shadow: 0 0 80px color-mix(in srgb, var(--cc) 45%, transparent), inset -20px -30px 60px rgba(0,0,0,.45); }
.orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--cc) 70%, white); opacity: .55; box-shadow: 0 0 18px color-mix(in srgb, var(--cc) 40%, transparent); }
.orb .r1 { animation: ring1 14s linear infinite; } .orb .r2 { inset: 8%; animation: ring2 18s linear infinite; } .orb .r3 { inset: -6%; opacity: .25; animation: ring3 24s linear infinite; }
@keyframes ring1 { from { transform: rotateX(70deg) rotateZ(0); } to { transform: rotateX(70deg) rotateZ(360deg); } }
@keyframes ring2 { from { transform: rotateY(65deg) rotateZ(0); } to { transform: rotateY(65deg) rotateZ(-360deg); } }
@keyframes ring3 { from { transform: rotateX(40deg) rotateY(30deg) rotateZ(0); } to { transform: rotateX(40deg) rotateY(30deg) rotateZ(360deg); } }
/* aree al centro */
.areas-center.m-areas #nav { left: 50%; top: 50%; transform: translate(-50%, -50%); align-items: center; text-align: center; }
.areas-center.m-areas .ch-btn { justify-content: center; }
.areas-center #area-vis { right: auto; left: 50%; transform: translate(-50%, -50%); width: min(60vw, 78vh); opacity: 0; }
.areas-center.m-areas #area-vis { opacity: .75; }
.areas-center .preview { top: auto; bottom: 90px; transform: none; width: min(380px, 30vw); }
@media (max-width: 800px) { #area-vis { right: 50%; transform: translate(50%, -50%); width: 70vw; top: 62%; } .areas-center.m-areas #nav { top: 40%; } }

/* ---- organismo vivo ---- */

/* ---- competenze a ragnatela ---- */
.t-map .main { justify-items: stretch; }
.web { position: relative; width: 100%; height: 100%; min-height: 50vh; --mx: 0; --my: 0; }
.web-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.web-svg * { vector-effect: non-scaling-stroke; fill: none; }
.web-net { transform: translate(calc(var(--mx) * -6px), calc(var(--my) * -6px)); transition: transform .8s var(--ease); }
.wt, .wr, .wh { stroke: rgba(243, 239, 233, .2); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.wt { stroke-width: 1.6; stroke: rgba(243, 239, 233, .28); } .wh { stroke: rgba(243, 239, 233, .1); }
.slide.on .wt { animation: wdraw 1s var(--ease) forwards; } .slide.on .wr, .slide.on .wh { animation: wdraw 1.8s var(--ease) forwards; animation-delay: var(--d); }
.wsap { stroke: rgba(255, 248, 235, .75); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 3px rgba(255, 240, 220, .8)); }
.slide.on .wsap { animation: sap 7s linear infinite; animation-delay: var(--d); }
@keyframes sap { 0% { stroke-dashoffset: 1.05; opacity: 0; } 8% { opacity: .9; } 70% { opacity: .6; } 100% { stroke-dashoffset: -.05; opacity: 0; } }
.web { animation: sway 13s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes sway { from { transform: rotate(-.35deg) skewX(-.4deg); } to { transform: rotate(.35deg) skewX(.4deg); } }
.web.sel .wsap { opacity: 0 !important; animation-play-state: paused; }
@keyframes webin { from { opacity: 0; transform: scale(.6); transform-origin: 50% 50%; } }
.web-under { filter: none; } .wl { filter: blur(1.2px); }
.wl { stroke: var(--c); stroke-width: 1; opacity: .12; stroke-dasharray: 1; stroke-dashoffset: 0; transition: opacity .5s, stroke-width .5s; }
.web.sel .wl { opacity: .05; }
.web.sel .wl.on { opacity: .95; stroke-width: 1.8; filter: drop-shadow(0 0 4px var(--c)); animation: wdraw .9s var(--ease) both; }
@keyframes wdraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.wp { position: absolute; transform: translate(-50%, -50%) translate(calc(var(--mx) * -10px), calc(var(--my) * -10px)); font-size: .72rem; color: var(--paper); opacity: .35; filter: blur(2.2px); white-space: nowrap; transition: opacity .5s, filter .5s, color .5s, transform .8s var(--ease); padding: 4px 8px; border-radius: 20px; }
.wp::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: middle; }
.web.sel .wp { opacity: .12; }
.web .wp.on { opacity: 1; filter: none; background: rgba(10, 11, 15, .55); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.ws { position: absolute; transform: translate(-50%, -4px) translate(calc(var(--mx) * 8px), calc(var(--my) * 8px)); display: flex; flex-direction: column; align-items: center; gap: 8px; transition: transform .8s var(--ease); z-index: 2; }
.ws i { width: 8px; height: 8px; margin-top: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 5px rgba(243, 239, 233, .06), 0 0 16px rgba(243, 239, 233, .45); animation: wpulse 4.5s ease-in-out infinite alternate; animation-delay: var(--f); transition: transform .4s var(--ease), box-shadow .4s; }
.ws b { font-family: var(--f-display); font-weight: 500; font-size: 1rem; white-space: nowrap; text-shadow: 0 2px 12px rgba(0, 0, 0, .8); }
.ws:hover i, .ws.on i { transform: scale(1.5); box-shadow: 0 0 0 10px color-mix(in srgb, var(--acc) 25%, transparent), 0 0 34px var(--acc); background: var(--acc); }
.web.sel .ws:not(.on) { opacity: .45; }
.web-cap { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .5s var(--ease); margin-top: 8px; }
.web-cap.on { opacity: 1; transform: none; }
.web-cap b { font-family: var(--f-display); font-size: 1.3rem; font-weight: 500; display: block; }
.web-cap ul { list-style: none; padding: 0; margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.web-cap ul button { font-size: .85rem; color: var(--dim); } .web-cap ul button:hover { color: var(--paper); }
@media (max-width: 800px) { .ws b { font-size: .72rem; } .wp { font-size: .6rem; } }
/* aree al centro: i vecchi ritocchi di posizione della vista a elenco non valgono qui */
.areas-center .preview, .areas-center #nav, .areas-center [data-e^="pv-"], .areas-center [data-e^="area"] { translate: none !important; }
.areas-center .preview { font-size: var(--previewSize) !important; }

/* =====================================================================
   FIORE DI VETRO (immagine che vive nello sfondo)
   ===================================================================== */
#creature { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease); --x: 50%; --y: 50%; --s: 1; --glow: 1; --shine: 1; --speed: 12s; }
#creature.on { opacity: 1; }
.cr-in { position: absolute; left: var(--x); top: var(--y); height: calc(84vh * var(--s)); aspect-ratio: 1472 / 2208; opacity: var(--op, 1);
  transform: translate(-50%, -50%); will-change: transform; }
.cr-sway { position: absolute; inset: 0; transform-origin: 50% 85%; animation: crb var(--speed) ease-in-out infinite alternate; will-change: transform; }
.cr-img, .cr-glow, .cr-light, .cr-shine { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cr-glow { left: -12%; top: -8%; width: 124%; height: 116%; opacity: calc(.38 * var(--glow)); }
.cr-light { opacity: calc(.75 * var(--shine)); }
.cr-shine { opacity: 0; animation: crs calc(var(--speed) * 1.1) ease-in-out infinite; }
@keyframes crb { 0% { transform: rotate(-.8deg) scale(1); } 100% { transform: rotate(.8deg) scale(1.018); } }
@keyframes crs { 0%, 100% { opacity: 0; } 45% { opacity: 1; } }
#creature > .cr-move { position: absolute; inset: 0; }
.cr-ghost { pointer-events: none; }
.cr-in { transition: opacity 1.2s ease; } .cr-glow { transition: opacity 1.2s ease; }
#creature.swap { opacity: 0; transition: opacity .3s ease; }
.m-dash .hero-name, .m-dash .hero-claim, .m-dash .hero-pre { text-shadow: 0 2px 24px rgba(0, 0, 0, .65), 0 0 2px rgba(0, 0, 0, .4); }
@media (max-width: 800px) { .cr-in { height: calc(62vh * var(--s)); } }
@media (prefers-reduced-motion: reduce) { .cr-sway, .cr-shine { animation: none; } }

/* =====================================================================
   AREE: solo i nomi
   ===================================================================== */
.m-areas .ch-dot { display: none; }
.no-pv .preview, .no-pv .areas-hint { display: none !important; }
body:not(.m-areas) .preview, body:not(.m-areas) .areas-hint { visibility: hidden !important; }

/* =====================================================================
   PLAYER IN STILE SPOTIFY
   ===================================================================== */
.player.sp { --spg: #1ed760; align-items: center; }
.player.sp .vinyl { display: none; }
.sp .pl-cover { position: relative; inset: auto; width: 100%; aspect-ratio: 1; border-radius: 8px; box-shadow: 0 24px 70px rgba(0, 0, 0, .7); }
.sp .pl-art { aspect-ratio: auto; }
.sp .pl-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sp .pl-now small { font-size: .7rem; letter-spacing: .12em; }
.sp .pl-t { margin-top: 4px; }
.sp .pl-a { display: block; color: var(--dim); font-size: .95rem; margin-top: 2px; }
.pl-open { display: inline-block; margin-top: 8px; font-size: .7rem; color: var(--dim); text-decoration: none; letter-spacing: .02em; opacity: .7; transition: opacity .2s, color .2s; }
.pl-open:hover { opacity: 1; color: var(--spg); }
.sp .pl-ctrl { display: flex; align-items: center; gap: 22px; margin: 2px 0; }
.sp .pl-ctrl button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: rgba(243, 239, 233, .7); background: none; transition: color .2s, transform .2s; }
.sp .pl-ctrl button:hover { color: var(--paper); transform: scale(1.06); }
.sp .pl-ctrl svg { width: 18px; height: 18px; fill: currentColor; }
.sp .pl-ctrl .pl-play { width: 52px; height: 52px; background: var(--spg); color: #000; font-size: inherit; }
.sp .pl-ctrl .pl-play svg { width: 22px; height: 22px; }
.sp .pl-ctrl .pl-play:hover { transform: scale(1.06); color: #000; background: #3be477; }
.player.sp.playing .pl-play { font-size: inherit; } .player.sp.playing .pl-play::before { content: none; }
.pl-time { display: flex; align-items: center; gap: 10px; font-size: .7rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.sp .pl-prog { flex: 1; height: 4px; margin: 0; border-radius: 4px; background: rgba(243, 239, 233, .2); cursor: pointer; position: relative; overflow: visible; }
.sp .pl-prog::after { content: ""; position: absolute; inset: -8px 0; }
.sp .pl-prog i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--paper); position: relative; }
.sp .pl-prog:hover i { background: var(--spg); }
.sp .pl-prog:hover i::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--paper); }
.sp .pl-list { list-style: none; padding: 0; margin-top: 6px; display: flex; flex-direction: column; gap: var(--prow, 4px); }
.sp .pl-list li { position: relative; display: flex; align-items: center; border-radius: 6px; transition: background .2s; }
.sp .pl-list li:hover { background: rgba(255, 255, 255, .07); }
.sp .pl-list button { flex: 1; display: grid; grid-template-columns: 22px 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 8px; text-align: left; background: none; border-radius: 6px; }
.sp .pl-list em { font-style: normal; color: var(--dim); font-size: .85rem; text-align: center; position: relative; height: 16px; }
.sp .pl-list em .eq { display: none; position: absolute; inset: 0; align-items: flex-end; justify-content: center; gap: 2px; }
.sp .pl-list em .eq b { width: 3px; background: var(--spg); border-radius: 1px; animation: eq2 .9s ease-in-out infinite alternate; height: 40%; }
.sp .pl-list em .eq b:nth-child(2) { animation-delay: -.3s; } .sp .pl-list em .eq b:nth-child(3) { animation-delay: -.6s; }
@keyframes eq2 { to { height: 100%; } }
.player.sp.playing .pl-list li.on em span { visibility: hidden; } .player.sp.playing .pl-list li.on em .eq { display: flex; }
.sp .pl-list img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.sp .pl-list .nm { min-width: 0; } .sp .pl-list .nm b { display: block; font-weight: 500; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--paper); }
.sp .pl-list .nm small { display: block; font-size: .78rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp .pl-list li.on .nm b { color: var(--spg); }
.sp .pl-list time { font-size: .78rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.pl-lk { flex: 0 0 auto; width: 26px; text-align: center; font-size: .72rem; color: var(--dim); text-decoration: none; opacity: 0; transition: opacity .2s, color .2s; }
.sp .pl-list li:hover .pl-lk, .pl-lk:focus-visible { opacity: .8; } .pl-lk:hover { color: var(--spg); opacity: 1; }
.player.sp.pa-respiro.playing .pl-cover { animation: breathe 2.4s ease-in-out infinite; }
.player.sp.pa-luce.playing .pl-cover { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 90px rgba(30, 215, 96, .28), 0 24px 70px rgba(0,0,0,.7); }
.player.sp .pl-cover { transform: none !important; }
@media (max-width: 800px) { .sp .pl-list button { grid-template-columns: 18px 34px minmax(0, 1fr) auto; gap: 8px; } .sp .pl-list img { width: 34px; height: 34px; } .pl-lk { opacity: .7; } }
/* player: la lista dei brani ha sempre spazio, la copertina si adatta */
.player.sp { grid-template-columns: minmax(0, 1fr) minmax(270px, 1fr); }
.player.sp .pl-art { width: 100%; max-width: calc(56vh * var(--pcov, 1)); justify-self: end; }
.player.sp.cov-r .pl-art { justify-self: start; }
/* gomma soffice */
.er-ov { position: fixed; inset: 0; z-index: 60; cursor: none; touch-action: none; }
.er-box { position: fixed; border: 1px dashed rgba(243, 239, 233, .45); border-radius: 6px; pointer-events: none; }
.er-cur { position: fixed; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), inset 0 0 18px rgba(255, 255, 255, .25); transform: translate(-50%, -50%); pointer-events: none; }
.er-cur.back { border-style: dashed; border-color: #8eeed9; }
.er-bar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; max-width: min(860px, 94vw); padding: 12px 16px; border-radius: 14px; background: rgba(12, 13, 18, .86); backdrop-filter: blur(14px); border: 1px solid rgba(243, 239, 233, .14); font-size: .8rem; cursor: default; color: var(--paper); }
.er-bar label { display: flex; align-items: center; gap: 8px; color: var(--dim); } .er-bar input { width: 110px; }
.er-btns { display: flex; gap: 6px; } .er-btns button { padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(243, 239, 233, .2); font-size: .78rem; }
.er-btns button.on { border-color: #8eeed9; color: #8eeed9; } .er-btns .er-ok { background: var(--paper); color: #0a0b0f; }
.er-bar small { flex-basis: 100%; color: var(--dim); font-size: .7rem; }
body.erasing #editor { opacity: .25; pointer-events: none; }
body.erasing .cr-in { transform: translate(-50%, -50%) !important; }
body.erasing .cr-sway, body.erasing .cr-shine { animation: none; }
@keyframes wpulse { to { box-shadow: 0 0 0 8px rgba(243, 239, 233, .03), 0 0 26px rgba(243, 239, 233, .6); } }
.ws b { font-size: .92rem; font-weight: 400; letter-spacing: .01em; }
.web-svg .wt, .web-svg .wr, .web-svg .wh, .web-svg .wsap, .web-svg .wl { vector-effect: none; }
.web-svg .wt { stroke-width: .26; } .web-svg .wr { stroke-width: .16; } .web-svg .wh { stroke-width: .1; } .web-svg .wsap { stroke-width: .24; } .web-svg .wl { stroke-width: .13; }
.web.sel .wl.on { stroke-width: .26; }
/* elenco delle aree nella galleria: minimale, senza colori */
.m-gallery .ch-dot { background: rgba(243, 239, 233, .5); box-shadow: none; width: 5px; height: 5px; }
.m-gallery .chap.on .ch-dot { background: var(--paper); opacity: 1; }
.m-gallery .tick.on::before { background: var(--paper); box-shadow: none; }
/* Entra soffuso nella vista aree */
#area-go { position: fixed; z-index: 6; font-size: .8rem; letter-spacing: .04em; color: var(--paper); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); padding: 4px 0; }
#area-go.in { opacity: .42; pointer-events: auto; transform: none; } #area-go.in:hover { opacity: .9; }
/* pulsanti fissi */
.qb { position: fixed; z-index: 30; transform: translate(-50%, -50%); padding: 8px 6px; border-radius: 999px; border: 1px solid transparent; background: none; font-size: .8125rem; color: var(--paper); white-space: nowrap; transition: border-color .3s, background .3s, opacity .4s; }
.qb:hover { opacity: .75; }
.qb.bd { padding: 8px 16px; border-color: rgba(243, 239, 233, .22); background: rgba(10, 11, 15, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.qb.bd:hover { opacity: 1; border-color: rgba(243, 239, 233, .5); }
.qb.up { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 500; }
.qb-k:not(.bd) { color: rgba(243, 239, 233, .6); } .qb-k:not(.bd):hover { color: var(--paper); opacity: 1; }
.qb[hidden] { display: none; }
body.loading .qb { opacity: 0; }
body.editing .qb { outline: 1px dashed rgba(142, 238, 217, .7); outline-offset: 3px; cursor: move; }
.stats + .more { margin-top: 26px; }
@media (max-width: 800px) { .qb { font-size: .72rem; padding: 6px 12px; } }
.stats-w { display: flex; flex-direction: column; align-items: flex-end; gap: 28px; }
.stats.two-col { display: grid; grid-template-columns: repeat(2, auto); gap: 26px 56px; }
.stats.two-col .stat b { font-size: min(7vw, 14vh); }
.stats-w .more { align-self: flex-end; }
@media (max-width: 800px) { .stats-w { align-items: flex-start; } .stats.two-col { gap: 16px 28px; } .stats.two-col .stat b { font-size: 12vw; } }
/* "Entra nei progetti": rettangolo senza angoli, sotto i testi */
.gate .pillbtn { border-radius: 0; padding: 12px 24px; border-color: rgba(243, 239, 233, .4); background: rgba(10, 11, 15, .25); letter-spacing: .02em; }
.gate .pillbtn:hover { border-color: var(--paper); background: rgba(243, 239, 233, .06); }
.no-float .hero-name { animation: none; }
/* prima pagina → aree: le scritte salgono via, il fiore scende al centro (si cambia in Sfondi → Fiore) */
.flow-scorre #dash > * { transition: opacity .7s ease; }
.flow-scorre.m-areas #nav .chap { animation: fade .9s ease both; animation-delay: calc(.3s + var(--k, 0) * 60ms); }
body:not(.editing) .fact.off { display: none; }
body.editing .fact.off { opacity: .25 !important; outline: 1px dashed rgba(255, 140, 140, .7); }
/* Ordine */
.or-row { display: flex; align-items: center; gap: 8px; padding: 7px 8px; margin: 3px 0; border-radius: 8px; background: rgba(243, 239, 233, .04); border: 1px solid transparent; cursor: grab; font-size: .82rem; }
.or-row .or-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .or-row small { color: var(--dim); } .or-row em { font-style: normal; color: var(--acc, #8eeed9); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.or-row .grip { color: var(--dim); letter-spacing: -2px; } .or-row.is-off .or-l { opacity: .4; text-decoration: line-through; }
.or-row.dragging, .or-it.dragging { opacity: .35; } .or-row.drop-on, .or-it.drop-on { border-color: #8eeed9; }
.or-ch > summary, .or-p > summary { list-style: none; } .or-ch > summary::-webkit-details-marker, .or-p > summary::-webkit-details-marker { display: none; }
.or-p { margin-left: 14px; } .or-p > .or-row, .or-p > label, .or-p > .add { margin-left: 14px; }
.eye { width: 18px; color: #8eeed9; font-size: .8rem; } .eye.off { color: var(--dim); }
.or-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0 14px; }
.or-it { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid rgba(243, 239, 233, .12); cursor: grab; background: rgba(243, 239, 233, .04); }
.or-it img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; pointer-events: none; } .or-it i { display: grid; place-items: center; aspect-ratio: 1; font-size: .7rem; color: var(--dim); }
.or-it b { position: absolute; left: 5px; top: 4px; font-size: .7rem; background: rgba(0, 0, 0, .6); padding: 1px 5px; border-radius: 4px; }
.or-it small { display: block; padding: 3px 6px; font-size: .64rem; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.or-it .eye { position: absolute; right: 4px; top: 3px; background: rgba(0, 0, 0, .6); border-radius: 4px; } .or-it.is-off img { opacity: .3; }
/* ---- Competenze: qualità intorno al centro, rami verso i progetti ---- */
.web2 { aspect-ratio: 1; width: min(100%, 80vh); height: auto; min-height: 0; margin: auto; animation: none; transform: none; }
.slide .main:has(> .web2) { display: flex; align-items: center; justify-content: center; }
.web2 .web-svg { overflow: visible; }
.web2 .web-svg * { vector-effect: none; fill: none; }
.web2 .wb { stroke: var(--c, #f3efe9); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: opacity .5s var(--ease); }
.web2 .wb.wt2 { stroke: #f3efe9; }
.web2 .wb-soft .wb { stroke-width: 1.1; filter: url(#wglow); }
.web2 .wb-sharp .wb { stroke-width: .22; }
.web2 .wb.on { opacity: 1; animation: wgrow .9s cubic-bezier(.3, .7, .2, 1) forwards; }
.web2 .wb-soft .wb.on { opacity: .45; }
.web2 .wb.on:not(.wt2) { animation-delay: .18s; }
@keyframes wgrow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.web2 .w-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34%; text-align: center; pointer-events: none; }
.web2 .w-title { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 2.6rem); letter-spacing: -.03em; line-height: 1; }
.web2 .w-sub { margin-top: 8px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); transition: opacity .4s; }
.web2 .w-desc { margin-top: 10px; font-size: .82rem; line-height: 1.45; color: var(--paper); opacity: 0; transform: translateY(4px); transition: opacity .45s, transform .45s var(--ease); min-height: 2.9em; }
.web2.has-d .w-desc { opacity: .82; transform: none; }
.web2 .ws { transform: translate(-50%, -50%) translate(calc(var(--mx) * 6px), calc(var(--my) * 6px)); gap: 7px; z-index: 3; }
.web2 .ws i { width: 9px; height: 9px; animation: wpulse 4.5s ease-in-out infinite alternate; animation-delay: var(--f); }
.web2 .ws b { font-size: .9rem; font-weight: 400; }
.web2 .ws:hover i, .web2 .ws.on i { transform: scale(1.5); background: var(--paper); box-shadow: 0 0 0 6px rgba(243, 239, 233, .08), 0 0 26px rgba(243, 239, 233, .8); }
.web2.sel .ws:not(.on) { opacity: .35; }
.web2 .wp { display: flex; align-items: center; gap: 6px; padding: 3px 6px; transform: translate(-50%, -50%) translate(calc(var(--mx) * -9px), calc(var(--my) * -9px)); font-size: .68rem; opacity: .3; filter: blur(2.4px); background: none; box-shadow: none; z-index: 1; }
.web2 .wp::before { display: none; } .web2 .wp i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); flex: none; }
.web2.sel .wp { opacity: .08; }
.web2 .wp.on { background: none; box-shadow: none; opacity: 1; filter: none; color: var(--paper); text-shadow: 0 0 12px rgba(0, 0, 0, .9); z-index: 2; }
.web2 .wp.on i { box-shadow: 0 0 10px var(--c), 0 0 2px var(--c); transform: scale(1.4); }
@media (max-width: 800px) { .web2 { width: 100%; } .web2 .ws b { font-size: .66rem; } .web2 .wp { font-size: .56rem; } .web2 .w-title { font-size: 1.2rem; } .web2 .w-desc { display: none; } }
.arranging.m-gallery #nav { overflow: visible; }
.m-gallery #nav.dboxed { padding: 0; justify-content: flex-start; }
.m-gallery #nav > .dl { position: relative; top: 0; order: -1; align-self: flex-start; margin-bottom: 6px; }
.m-gallery #nav > .dh { position: relative; right: auto; bottom: auto; order: 99; align-self: flex-end; flex: none; }
/* competenze, stile circuito */
.web2 .wbg { stroke: rgba(243, 239, 233, .16); stroke-width: .12; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.slide.on .web2 .wbg { animation: wgrow 1.6s cubic-bezier(.3, .7, .2, 1) forwards; animation-delay: var(--d); }
.web2 .wbd { fill: rgba(243, 239, 233, .28) !important; opacity: 0; transition: opacity .8s 1s; } .web2 .wbd.o { fill: none !important; stroke: rgba(243, 239, 233, .3); stroke-width: .12; }
.slide.on .web2 .wbd { opacity: 1; }
.web2.sel .wbg-g { opacity: .45; transition: opacity .5s; }
.web2 .wb { stroke-linejoin: miter; stroke-linecap: square; }
.web2 .wb-sharp .wb { stroke-width: .2; }
.web2 .wdot { fill: var(--c, #f3efe9) !important; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: opacity .3s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.web2 .wdot.o { fill: #0a0b0f !important; stroke: var(--c, #f3efe9); stroke-width: .15; }
.web2 .wdot.on { opacity: 1; transform: scale(1); transition-delay: .55s; }
.web2 .w-core { background: radial-gradient(closest-side, rgba(10, 11, 15, .85), rgba(10, 11, 15, .5) 60%, transparent); padding: 6% 2%; border-radius: 50%; width: 38%; }
.si .sf { clip-path: inset(0 round var(--rad)); }
.side-stats { flex-wrap: wrap; row-gap: 14px; }

/* 26/11 */
.top .where { display: none; }
#to-start, #to-areas, #edit-btn { font-size: 1rem; line-height: 1; min-width: 34px; height: 34px; padding: 0 8px; }
.qb.dock { top: 16px; transform: none; }
.qb-v.dock { left: auto; right: var(--g); }
.qb-c.dock { left: auto; right: calc(var(--g) + 138px); }
@media (max-width: 800px) { .qb.dock { top: calc(12px + env(safe-area-inset-top)); } .qb-c.dock { right: calc(var(--g) + 108px); } }
.pm { width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.pm-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pm.empty .pm-nums { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
.pm-nums .stat b { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 3.6vw, 4rem); letter-spacing: -.04em; line-height: 1; color: var(--acc); }
.pm-nums .stat span { display: block; margin-top: 6px; font-size: .8rem; color: var(--dim); }
.pm-nums .stat { text-align: center; }
.pm-gal { flex: 1; min-height: 0; display: grid; place-items: center; }
.pm.empty .pm-gal { display: none; }
body.editing .pm.empty .pm-gal { display: grid; flex: 0 0 34%; grid-template-columns: repeat(3, 1fr); place-items: stretch; gap: 14px; }
.pm-add { border: 1px dashed rgba(243, 239, 233, .35); border-radius: 12px; color: var(--dim); font-size: .85rem; }
.pm-duties { list-style: none; padding: 0; margin: 6px 0 2px; }
.pm-duties li { padding: 7px 0; border-top: 1px solid rgba(243, 239, 233, .12); font-size: .9em; }
.web2 .wx { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; white-space: nowrap; font-size: .74rem; color: var(--paper); opacity: 0; pointer-events: none; transition: opacity .45s; z-index: 4; text-shadow: 0 0 10px #000, 0 0 4px #000; }
.web2 .wx i { width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--paper); flex: none; }
.web2 .wx.on { opacity: 1; pointer-events: auto; }
.web-svg .wxl { stroke-dasharray: none; }
body.editing .web2 { animation: none; --mx: 0 !important; --my: 0 !important; }
body.editing .web2 .ws, body.editing .web2 .wp, body.editing .web2 .wx.on { cursor: grab; touch-action: none; }
body.editing .web2 .ws, body.editing .web2 .wp { transition: opacity .4s; }
body.editing .web2 .wp { opacity: .65; filter: none; }
@media (max-width: 800px) { .pm-nums { grid-template-columns: repeat(2, 1fr); } .web2 .wx { font-size: .6rem; } }

#editor .cp { display: flex; gap: 12px; justify-content: flex-end; margin-top: 2px; }
#editor .cp button { font-size: .7rem; opacity: .6; text-decoration: underline; padding: 0; }
#editor .cp button:hover { opacity: 1; }

/* competenze: bianco e nero, ramificazione a circuito */
.slide.t-map .side { display: none; }
.slide.t-map .main { grid-column: 1 / -1; grid-row: 1; height: 100%; align-self: stretch; }
.skm { position: relative; width: 100%; height: 100%; min-height: 62vh; color: #f3efe9; }
.sk-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sk-svg path { fill: none; stroke: #f3efe9; stroke-width: 1px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sk-svg .sk-deco { opacity: .14; } .sk-svg .sk-tr, .sk-svg path.sk-tr { opacity: .28; transition: opacity .35s; }
.sk-svg path.sk-dd { stroke-width: 5px; opacity: .5; }
.skm.sel .sk-svg .sk-tr { opacity: .14; }
.skm.sel .sk-svg .sk-tr.on { opacity: 1; filter: drop-shadow(0 0 4px rgba(243, 239, 233, .7)); }
.sk-br { opacity: 0; } .sk-br.on { opacity: .85; animation: skgl .7s cubic-bezier(.3, .7, .2, 1) both; }
.sk-br.r.on { animation-name: skgr; }
@keyframes skgl { from { clip-path: inset(-5% 0 -5% 100%); } to { clip-path: inset(-5% -5% -5% -5%); } }
@keyframes skgr { from { clip-path: inset(-5% 100% -5% 0); } to { clip-path: inset(-5% -5% -5% -5%); } }
.sk-svg path.sk-j { stroke-width: 5px; }
.sk-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 15%; text-align: center; pointer-events: none; }
.sk-core h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.2rem, 1.7vw, 2rem); letter-spacing: -.03em; line-height: 1.05; pointer-events: auto; }
.sk-sub { margin-top: 10px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; opacity: .75; pointer-events: auto; }
.sk-hint { margin-top: 8px; font-size: .6rem; letter-spacing: .1em; opacity: .45; }
.sk-desc { margin-top: 10px; font-size: .74rem; line-height: 1.45; opacity: .75; }
.sk-desc:empty, .skm.sel .sk-hint { display: none; }
.sk-s { position: absolute; height: 38px; z-index: 2; transition: opacity .35s; }
.sk-s i { position: absolute; bottom: 3.5px; left: 3.5px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #f3efe9; background: #0a0b0f; }
.sk-s b { position: absolute; bottom: 14px; left: 12px; font-weight: 400; font-size: .8rem; line-height: 1.2; white-space: nowrap; }
.sk-s.r i { left: auto; right: 3.5px; } .sk-s.r b { left: auto; right: 12px; }
@media (min-width: 1500px) { .sk-s b { font-size: .9rem; } }
.skm.sel .sk-s:not(.on) { opacity: .35; }
.sk-s.on i { background: #f3efe9; box-shadow: 0 0 0 5px rgba(243, 239, 233, .12), 0 0 18px rgba(243, 239, 233, .7); }
.sk-leaf { position: absolute; transform: translateY(-50%); display: flex; align-items: center; gap: 8px; max-width: 15%; font-size: .74rem; line-height: 1.2; opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 3; }
.sk-leaf.l { text-align: right; margin-right: -3px; }
.sk-leaf.r { flex-direction: row-reverse; text-align: left; margin-left: -3px; }
.sk-leaf i { width: 7px; height: 7px; flex: none; border-radius: 50%; border: 1px solid #f3efe9; background: #0a0b0f; }
.sk-leaf.pj i { background: #f3efe9; } .sk-leaf.ex { color: rgba(243, 239, 233, .66); }
.sk-leaf.pj:hover span { text-decoration: underline; text-underline-offset: 3px; }
.sk-leaf.on { opacity: 1; pointer-events: auto; transition-delay: calc(.2s + var(--q) * 40ms); }
body.editing .sk-s, body.editing .sk-leaf.on { cursor: grab; touch-action: none; }
.skm.one .sk-core { left: 0; top: 0; transform: none; width: 100%; } .skm.one .sk-core h2 { font-size: 1.3rem; } .skm.one .sk-desc { display: none; } .skm.one .sk-sub { margin-top: 4px; } .skm.one .sk-hint, .skm.one.sel .sk-hint { display: block; margin-top: 2px; }
.skm.one .sk-leaf { max-width: 42%; }
@media (max-width: 800px) {
  .skm { min-height: 66vh; }
  .sk-sub { font-size: .62rem; } .sk-s b { font-size: .7rem; } .sk-leaf { font-size: .66rem; }
}
/* pulsanti piccoli: Contattami a sinistra, Scarica CV a destra */
.qb.dock { top: 22px; font-size: .62rem; padding: 6px 4px; }
.qb-c.dock { left: var(--g); right: auto; }
.qb-v.dock { left: auto; right: var(--g); }
.top { justify-content: flex-start; padding-left: calc(var(--g) + 124px); }
@media (max-width: 800px) { .qb.dock { top: calc(18px + env(safe-area-inset-top)); } .qb-c.dock { right: auto; } .top { padding-left: calc(var(--g) + 106px); } }
/* contatti */
.contacts .c-intro { max-width: 34ch; text-align: right; font-size: 1.15rem; line-height: 1.45; color: rgba(243, 239, 233, .8); margin-top: -12px; }
.contacts .c-intro:empty { display: none; }
body.editing .contacts .c-intro:empty { display: block; min-width: 20ch; min-height: 1.5em; outline: 1px dashed rgba(243, 239, 233, .35); }
@media (max-width: 800px) { .contacts .c-intro { text-align: left; font-size: 1rem; margin-top: -16px; } }
.set-cap { grid-column: 1 / -1; font-size: .8rem; line-height: 1.3; text-align: left; } .set-cap b { display: block; font-weight: 500; } .set-cap small { color: var(--dim); }
@media (max-width: 800px) { .L-free.capon .si figcaption { font-size: .56rem; padding-top: 4px; overflow-wrap: anywhere; } .L-free.capon .si figcaption small { font-size: .52rem; } }

/* pulsanti: pagine 1 e 2 in alto a destra; nei progetti il CV sotto l'elenco */
.qb.dock { top: 22px; padding: 6px 4px; transform: none; }
.qb-v.dock { left: auto; right: var(--g); }
.qb-c.dock { left: auto; right: calc(var(--g) + 130px); }
.qb.under { transform: none; padding: 6px 4px; }
.qb.up { letter-spacing: .14em; }
.top { padding-left: var(--g); }
@media (max-width: 800px) { .qb.dock { top: calc(18px + env(safe-area-inset-top)); } .qb-c.dock { right: calc(var(--g) + 108px); } .top { padding-left: var(--g); } }
/* contatti: immagine e allineamento */
.c-art { position: absolute; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; max-width: 90%; }
.c-art img, .c-art canvas { display: block; width: 100%; height: auto; animation: caflo 9s ease-in-out infinite alternate; }
.c-art[data-blend="1"] img { opacity: 0; }
@keyframes caflo { from { transform: translateY(8px) rotate(-3deg); } to { transform: translateY(-10px) rotate(3deg); } }
.slide.t-contacts .side, .slide.t-contacts .main { position: relative; z-index: 1; }
body.editing .c-art { pointer-events: auto; cursor: move; z-index: 2; outline: 1px dashed rgba(142, 238, 217, .6); }
@media (min-width: 801px) {
  .slide.t-contacts .main.al-l { grid-column: 1 / -1; grid-row: 1; justify-items: start; }
  .slide.t-contacts:has(.al-l) .side { grid-column: 2; grid-row: 1; justify-self: end; }
  .contacts.al-l .big, .contacts.al-l .c-intro { text-align: left; }
  .contacts.al-l .c-list, .contacts.al-l .c-list li { align-items: flex-start; }
}
@media (max-width: 800px) { .c-art { opacity: .6; } }
/* competenze: rete radiale */
.skm.rad { min-height: 64vh; }
.rad .sk-svg path.sk-deco { opacity: .17; }
.rad .sk-svg path.sk-o { stroke-width: 6px; opacity: .3; }
.rad .sk-svg path.sk-dd { stroke-width: 4px; opacity: .45; }
.rad .sk-svg path.sk-tr { opacity: .42; }
.rad.sel .sk-svg path.sk-tr { opacity: .14; animation: none; }
.rad.sel .sk-svg path.sk-tr.on { opacity: 1; filter: drop-shadow(0 0 4px rgba(243, 239, 233, .75)); }
.rad .sk-net { transition: opacity .4s; } .rad.sel .sk-net { opacity: .55; }
.rad .sk-svg path.sk-l { stroke-width: 1px; }
.rad .sk-svg path.sk-pulse { stroke-width: 2.4px; stroke-dasharray: 2 150; opacity: .85; animation: skflow 2.8s linear infinite; animation-delay: var(--d); }
.rad .sk-svg path.sk-pulse.soft { stroke-width: 2px; opacity: .45; animation-duration: 4.6s; }
.rad.sel .sk-svg path.sk-pulse { opacity: .08; } .rad.sel .sk-svg path.sk-pulse.on { opacity: 1; stroke-width: 3px; stroke-dasharray: 3 60; animation-duration: 1.1s; }
@keyframes skflow { from { stroke-dashoffset: 152; } to { stroke-dashoffset: 0; } }
@keyframes skin { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rad .sk-flow { display: none; } }
.rad .sk-core { left: 50%; top: calc(50% - 48px); width: 196px; transform: translateX(-50%); }
.rad .sk-core h2 { font-size: 1.7rem; }
.rad .sk-s { width: 0; height: 0; padding: 0; }
.rad .sk-s i { position: absolute; left: -5px; top: -5px; bottom: auto; right: auto; width: 10px; height: 10px; }
.rad .sk-s b { position: absolute; left: 0; right: auto; transform: translateX(-50%); padding: 2px 4px; font-size: .86rem; cursor: pointer; }
.rad .sk-s.up b { bottom: 10px; top: auto; } .rad .sk-s.dn b { top: 10px; bottom: auto; }
.rad .sk-s i::after { content: ""; position: absolute; inset: -12px; }
.rad .sk-leaf { white-space: nowrap; font-size: .76rem; }
.c-art.def { -webkit-mask-image: radial-gradient(ellipse 54% 58% at 50% 44%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 54% 58% at 50% 44%, #000 72%, transparent 100%); }

/* titoli e telefono */
.side h3, .side h2 { overflow-wrap: normal; }
@media (max-width: 800px) {
  .L-free .si figcaption { line-height: 1.2; max-height: 2.5em; overflow: hidden; }
  .m-areas #nav { top: calc(92px + var(--st)); }
  #area-go { left: 50% !important; top: auto !important; bottom: calc(44px + var(--sb, 0px)); transform: translateX(-50%) !important; white-space: nowrap; padding: 10px 18px; }
  #area-go.in { opacity: .75; }
  .c-art { opacity: .45; }
  body:not(.mob-edit) .c-art { left: 80% !important; top: 15% !important; width: 40vw !important; }
}

/* torna all'inizio: spostabile */
.slide .c-home.free { position: absolute; transform: translate(-50%, -50%); z-index: 3; white-space: nowrap; }
body.editing .c-home { cursor: move; outline: 1px dashed rgba(142, 238, 217, .6); pointer-events: auto; }
@media (max-width: 800px) { body.mob-edit .c-home { touch-action: none; } }
#ed-note { margin: 10px 14px; padding: 12px; border: 1px solid rgba(142, 238, 217, .6); border-radius: 10px; font-size: .85rem; line-height: 1.4; display: grid; gap: 8px; }
#ed-note button { justify-self: start; padding: 6px 12px; border: 1px solid rgba(243, 239, 233, .3); border-radius: 999px; }
/* il pulsante resta sopra il fiore: si clicca e si trascina */
.slide.t-contacts .side { z-index: 3; pointer-events: none; } .slide.t-contacts .side > * { pointer-events: auto; }
.slide.t-contacts:not(.on) .side > * { pointer-events: none; }
body.editing .slide .c-home.free { z-index: 4; }

/* pannello Modifica nella versione telefono */
.mob-edit #ed-copy, .mob-edit #ed-export, .mob-edit .ed-import, .mob-edit #ed-phone { display: none !important; }
body.mob-edit.editing .si, body.mob-edit.arranging .slide.on .side, body.mob-edit.arranging .slide.on .main { touch-action: none; }
.mob-edit .ed-head .ed-drag { display: none; } .mob-edit .ed-head b { margin-right: auto; white-space: nowrap; }
body.mob-edit #editor.min { left: 134px !important; right: auto !important; top: 14px !important; bottom: auto !important; width: auto !important; height: auto !important; min-height: 0 !important; min-width: 0; border-radius: 999px; z-index: 40; }
body.mob-edit #editor.min .ed-head { padding: 0; border: 0; margin: 0; } body.mob-edit #editor.min .ed-head b, body.mob-edit #editor.min #ed-close { display: none; }
body.mob-edit #editor.min #ed-min { width: auto; height: auto; padding: 8px 14px; border: 0; font-size: 0; }
body.mob-edit #editor.min #ed-min::after { content: 'Apri pannello'; font-size: .72rem; white-space: nowrap; }
.mob-edit #ed-min { font-size: 1.2rem; }

/* sito pubblicato: nessun comando di modifica */
body.public #edit-btn, body.public #editor { display: none !important; }
.mob-edit #ed-site { display: none !important; }
/* Scarica sito: riga intera, ben visibile */
.ed-foot { flex-wrap: wrap; } .ed-foot #ed-site { flex: 1 0 100%; padding: 11px; border: 1px solid rgba(142, 238, 217, .7); border-radius: 999px; }

/* niente presentazione automatica */
.autoplay { display: none !important; }
/* dati di contatto in bianco */
.contacts .c-list a, .contacts .c-list span, .contacts .c-list small { color: #fff; }
.contacts .c-list a:hover { color: var(--acc); }
/* dalle aree si esce in dissolvenza */
#nav .chap, #area-go, .preview { transition: opacity .22s ease; }
body.leaving #nav .chap { animation: none !important; opacity: 0; }
body.leaving #area-go, body.leaving .preview, body.leaving .areas-hint { opacity: 0 !important; }
body.m-dash #nav { transition: none; }

/* telefono: barra per impaginare */
body.mob-edit #editor.min { display: none !important; }
body.mob-edit.editing #swipe-hint, body.mob-edit #guides .gl { display: none !important; }
body.mob-edit .arranging .dh, body.mob-edit.arranging .dh, body.mob-edit.arranging .bx-h { width: 30px; height: 30px; }
body.mob-edit .msel { outline: 2px solid var(--acc) !important; outline-offset: 6px; border-radius: 8px; }
#marr { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 70; padding: 8px; border-radius: 18px; background: rgba(10, 11, 15, .94); border: 1px solid rgba(243, 239, 233, .18); touch-action: manipulation; }
#marr[hidden] { display: none; }
#marr.mr-top { bottom: auto; top: calc(8px + env(safe-area-inset-top)); }
#marr .mr-row { display: flex; align-items: center; gap: 6px; }
#marr button { flex: 0 0 auto; min-width: 36px; height: 40px; padding: 0 8px; border-radius: 12px; border: 1px solid var(--faint); font-size: .8rem; line-height: 1; }
#marr button:active { background: rgba(243, 239, 233, .16); }
#marr .mr-page { flex: 1 1 0; min-width: 0; text-align: center; font-size: .76rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#marr .mr-hint { margin: 8px 4px 2px; font-size: .72rem; color: var(--dim); text-align: center; }
#marr .mr-sel { display: none; margin-top: 8px; }
#marr .mr-name { display: block; margin: 0 4px 6px; font-size: .72rem; font-weight: 500; color: var(--acc); }
#marr .mr-sel .mr-row { display: grid; grid-template-columns: repeat(4, 1fr); }
#marr.has .mr-sel { display: block; } #marr.has .mr-hint { display: none; }
#marr.noreset [data-m="reset"] { visibility: hidden; }
#marr [data-m="free"] { display: none; width: 100%; margin-top: 6px; } #marr.canfree [data-m="free"] { display: block; }
body.mob-edit .set.pg .rz { display: none !important; }

/* skill: tutto nasce dal centro (rami, poi nomi) */
.rad .sk-svg path { vector-effect: none; }
.slide.on .rad .sk-svg path.sk-tr, .slide.on .rad .sk-svg path.sk-deco { stroke-dasharray: 1 1; animation: skline 1.1s cubic-bezier(.5, 0, .2, 1) backwards; animation-delay: calc(.25s + var(--d, 0ms)); }
@keyframes skline { from { stroke-dashoffset: 1; opacity: 1; } to { stroke-dashoffset: 0; } }
.slide.on .rad .sk-s { animation: skfrom 1.1s cubic-bezier(.3, .7, .2, 1) backwards; animation-delay: calc(.3s + var(--i, 0) * 70ms); }
@keyframes skfrom { from { translate: var(--fx) var(--fy); opacity: 0; scale: .5; } }
.slide.on .rad .sk-flow, .slide.on .rad .sk-svg path.sk-dd, .slide.on .rad .sk-svg path.sk-o, .slide.on .rad .sk-svg path.sk-j { animation-name: fade; animation-duration: .8s; animation-delay: 1.3s; animation-fill-mode: backwards; }
.slide.on .rad .sk-svg path.sk-pulse { animation: skflow 2.8s linear infinite; animation-delay: var(--d); }
.slide.on .rad .sk-svg path.sk-pulse.soft { animation-duration: 4.6s; }
.slide.on .rad.sel .sk-svg path.sk-pulse.on { animation-duration: 1.1s; }
.slide.on .rad.sel .sk-svg path.sk-tr { animation: none; stroke-dasharray: none; }
body.editing .slide.on .rad .sk-s, body.editing .slide.on .rad .sk-svg path.sk-tr, body.editing .slide.on .rad .sk-svg path.sk-deco { animation: none; stroke-dasharray: none; }
/* stella (telefono) */
.skm.rad.star { min-height: 66vh; }
.skm.rad.star .sk-core { top: calc(46% - 40px); width: 168px; }
.skm.rad.star .sk-core h2 { font-size: 1.35rem; } .skm.rad.star .sk-core .sk-desc { display: none; }
.skm.rad.star .sk-core .sk-hint, .skm.rad.star.sel .sk-core .sk-hint { display: block; }
.skm.rad.star .sk-s b { font-size: .74rem; } .skm.rad.star .sk-svg path.sk-deco { opacity: .28; }
.sk-panel { position: absolute; left: 0; right: 0; z-index: 3; padding: 12px 16px; border-radius: 16px; background: rgba(10, 11, 15, .95); border: 1px solid rgba(243, 239, 233, .16); box-sizing: border-box; }
.sk-panel[hidden] { display: none; }
.sk-panel b { display: block; font-weight: 500; font-size: .9rem; } .sk-panel span { display: block; margin: 3px 0 4px; font-size: .74rem; color: var(--dim); line-height: 1.4; }
.skm.rad:not(.star) .sk-panel { display: none; }
.skm.rad.star .sk-leaf { z-index: 4; white-space: normal; margin: 0; flex-direction: row; text-align: left; }
.skm.rad.star .sk-leaf:not(.on) { visibility: hidden; }
.skm.rad.star .sk-leaf.on { animation: fade .4s ease both; transition: none; opacity: 1; }
.skm.rad.star .sk-leaf span { order: 2; } .skm.rad.star .sk-leaf i { order: 1; }

/* pulsante soffuso: sempre su una riga, sotto la parola accesa */
#area-go { white-space: nowrap; }
