/* Pyrite · sito e documentazione · stile svizzero, colori pastello */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans/ibm-plex-sans-v23-cyrillic_latin_latin-ext-regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/ibm-plex-sans/ibm-plex-sans-v23-cyrillic_latin_latin-ext-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans/ibm-plex-sans-v23-cyrillic_latin_latin-ext-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono/ibm-plex-mono-v20-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono/ibm-plex-mono-v20-latin-600.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --ink: #111; --testo2: #3a3a3a; --carta: #e9e9e6; --foglio: #f4f4f2; --riga: #cfcdc6;
  --azione: #2f78bd; --link: #1f5f9e; --linea: #2b2a4a;
  --cielo: #7ab6e0; --corallo: #f0958a; --menta: #86d1b3; --burro: #f3d27f; --lavanda: #b4a3df; --motore: #c6c8db;
  --cielo-t: #d6e8f5; --corallo-t: #fbdcd7; --menta-t: #d8f0e6; --burro-t: #fbefcf; --lavanda-t: #e7e1f5;
  --sans: "IBM Plex Sans", "Helvetica Neue", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --alto: 64px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--alto) + 16px); }
body { margin: 0; background: var(--carta); color: var(--ink); font: 16.5px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--azione); outline-offset: 2px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- testata */
.top { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--carta) 90%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid rgba(0,0,0,.1); }
body.home .top { position: fixed; inset: 0 0 auto 0; }
.top .wrap { display: flex; align-items: center; gap: 26px; height: var(--alto); }
.marchio { display: flex; align-items: center; gap: 9px; text-decoration: none; flex: none; }
.marchio .simbolo { width: 34px; height: 34px; display: block; }
.marchio .scritta { height: 22px; width: auto; display: block; }
.voci { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.voci a { text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.voci a:hover { border-bottom-color: var(--cielo); }
.voci a[aria-current] { border-bottom-color: var(--ink); font-weight: 600; }
.lingua { font: 600 12px var(--mono); text-decoration: none; padding: 4px 7px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.menu-m { display: none; font: 600 13px var(--mono); text-decoration: none; margin-left: auto; }

/* ---------- pulsanti, etichette, gettoni */
.btn { display: inline-block; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1.2; padding: 11px 18px; }
.btn:hover { background: var(--foglio); }
.btn.primary { background: var(--ink); color: #fff; box-shadow: none; }
.btn.primary:hover { background: #2a2a2a; }
.btn.az { background: var(--azione); color: #fff; box-shadow: none; }
.btn.az:hover { background: #276aa8; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.n { font: 600 13.5px var(--mono); letter-spacing: .2px; }
.lab-m { font: 12px var(--mono); text-transform: uppercase; letter-spacing: .6px; }
.barra { display: block; height: 16px; background: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1.25 var(--mono); text-transform: uppercase; letter-spacing: .4px; padding: 5px 8px; background: var(--foglio); box-shadow: inset 0 0 0 1.5px var(--linea); vertical-align: 2px; }
.tag::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--motore); box-shadow: 0 0 0 1.2px var(--linea); }
.tag.ok { background: var(--menta-t); } .tag.ok::before { background: var(--menta); }
.tag.wip { background: var(--burro-t); } .tag.wip::before { background: var(--burro); }
.tag.todo { background: var(--corallo-t); } .tag.todo::before { background: var(--corallo); }
.tag.hand { background: var(--lavanda-t); } .tag.hand::before { background: var(--lavanda); }

/* ---------- la scena a scorrimento (home) */
.storia { position: relative; height: 700vh; }
.storia.corta { height: 540vh; border-top: 0; }
.palco { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.palco .wrap { position: relative; height: 100%; }
.scena { position: absolute; right: 0; top: var(--alto); width: 64%; height: calc(100% - var(--alto)); }
.scena svg { width: 100%; height: 100%; display: block; overflow: visible; }
.blocco { position: absolute; left: 16%; top: 54%; height: 15vh; width: 0; background: var(--cielo); mix-blend-mode: multiply; transform: translateY(-50%); }
.testi { position: absolute; left: 40px; top: var(--alto); bottom: 0; width: 38%; pointer-events: none; }
.testo { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-40%); opacity: 0; }
.testo .n { display: block; margin-bottom: 12px; }
.testo h2 { font-size: 52px; line-height: .98; letter-spacing: -1.6px; margin: 0 0 16px; font-weight: 600; }
.testo h2 em, .titolo0 h1 em { font-style: normal; font-weight: 400; }
.testo p { font-size: 18px; margin: 0 0 14px; max-width: 420px; }
.testo .barra { width: 220px; margin-bottom: 20px; }
.titolo0 h1 { font-size: 76px; line-height: .95; letter-spacing: -2.5px; margin: 0 0 18px; font-weight: 600; }
.etichetta { position: absolute; left: 0; top: 0; font: 12px var(--mono); opacity: 0; white-space: nowrap; pointer-events: none; }
.etichetta::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--ink); margin-right: 6px; vertical-align: 1px; }
.scritta-scena { position: absolute; opacity: 0; pointer-events: none; }
.scritta-scena img { width: 100%; height: auto; display: block; }
.avanzamento { position: absolute; left: 40px; bottom: 28px; display: flex; gap: 6px; }
.avanzamento i { width: 28px; height: 4px; background: rgba(0,0,0,.15); display: block; }
.avanzamento i.on { background: var(--ink); }
.scorri { position: absolute; right: 40px; bottom: 26px; font: 12px var(--mono); }
.storia.corta .testo h2 { font-size: 44px; }

/* ---------- sezioni della home */
.s { border-top: 2px solid var(--ink); padding: 34px 0 76px; }
.s.attaccata { padding-bottom: 0; }
/* nelle pagine interne la prima sezione sta subito sotto la testata: niente riga nera in cima */
main > .wrap:first-child > .s:first-child { border-top: 0; }
.tit { display: grid; grid-template-columns: 170px 1fr; gap: 20px; margin-bottom: 34px; }
.tit h2 { font-size: 52px; line-height: 1; letter-spacing: -1.5px; margin: 0; font-weight: 600; max-width: 860px; }
.tit h2 em { font-style: normal; font-weight: 400; }
.corpo { margin-left: 190px; }
.intro { font-size: 20px; line-height: 1.45; max-width: 760px; margin: 0 0 30px; }
.tre-col { columns: 3; column-gap: 34px; column-rule: 1px solid var(--ink); }
.tre-col p { margin: 0 0 14px; break-inside: avoid-column; }
.tre-col p:first-child { font-size: 19px; font-weight: 600; line-height: 1.4; }

.poster { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 24px; padding: 40px 44px; margin: 40px 0 26px; min-height: 300px; }
.poster.cielo { background: var(--cielo); }
.poster.burro { background: var(--burro); }
.poster.lavanda { background: var(--lavanda); }
.poster.menta { background: var(--menta); }
.poster .cit { font-size: 40px; line-height: 1.06; letter-spacing: -1px; font-weight: 600; margin: 0 0 18px; }
.poster .cit em { font-style: normal; font-weight: 400; }
.poster svg { width: 100%; height: 260px; display: block; overflow: visible; }

.griglia { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.griglia > * { padding: 20px 22px 26px 0; border-bottom: 1px solid var(--ink); }
.griglia > * + * { padding-left: 22px; border-left: 1px solid var(--ink); }
.griglia > :nth-child(4n+1) { border-left: 0; padding-left: 0; }
.voce svg { width: 150px; height: 104px; display: block; margin: 2px 0 14px; overflow: visible; }
.voce h3 { font-size: 20px; line-height: 1.15; margin: 8px 0 8px; font-weight: 600; }
.voce p { margin: 0; font-size: 15px; color: var(--testo2); }
.voce.chiudi { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; background: var(--foglio); padding-right: 22px; }
.voce.chiudi p { font-size: 18px; color: var(--ink); font-weight: 600; line-height: 1.3; }
.voce.chiudi .btn { align-self: flex-start; }

.tipi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tipo { background: var(--foglio); border-top: 6px solid var(--ink); display: flex; flex-direction: column; }
.tipo svg { width: 100%; height: 230px; display: block; overflow: visible; }
.tipo-corpo { padding: 0 22px 24px; }
.tipo h3 { font-size: 28px; letter-spacing: -.6px; margin: 0 0 12px; font-weight: 600; }
.tipo dl { margin: 0; }
.tipo dt { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .5px; margin-top: 12px; }
.tipo dd { margin: 3px 0 0; font-size: 15px; color: var(--testo2); }
.nota-m { font: 12.5px/1.55 var(--mono); color: var(--testo2); margin: 16px 0 0; max-width: 760px; }
.nota-m a, .corpo a, .due-col a { text-decoration-color: var(--cielo); text-decoration-thickness: 2.5px; text-underline-offset: 3px; }

.vantaggi { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); margin: 0; }
.vantaggi > div { padding: 18px 24px 26px 0; border-bottom: 1px solid var(--ink); }
.vantaggi > div + div { padding-left: 24px; border-left: 1px solid var(--ink); }
.vantaggi > div:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.vantaggi dt { font-size: 19px; font-weight: 600; line-height: 1.2; margin: 10px 0 8px; }
.vantaggi dd { margin: 0; font-size: 15px; color: var(--testo2); }

.due-col { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.due-col p { margin: 0 0 14px; }

.piani { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.piano { background: var(--foglio); border-top: 6px solid var(--ink); padding: 0 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.piano svg { width: calc(100% + 44px); margin: 0 -22px; height: 190px; display: block; overflow: visible; }
.piano .lab-m { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.piano .lab-m i { width: 14px; height: 14px; display: inline-block; box-shadow: inset 0 0 0 1.5px var(--linea); }
.piano h3 { font-size: 26px; margin: 0; font-weight: 600; letter-spacing: -.5px; }
.piano .prezzo { font-size: 36px; font-weight: 600; letter-spacing: -1px; line-height: 1.1; }
.piano .prezzo small { font-size: 14px; font-weight: 400; letter-spacing: 0; }
.piano ul { margin: 0; padding-left: 18px; color: var(--testo2); font-size: 15px; }
.piano .btn { margin-top: auto; align-self: flex-start; }

.stato { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stato .box { background: var(--foglio); padding: 22px 24px 18px; border-top: 6px solid var(--ink); }
.stato h3 { font-size: 22px; margin: 0 0 14px; font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.stato ul { list-style: none; margin: 0; padding: 0; }
.stato li { position: relative; padding: 8px 0 8px 24px; border-top: 1px solid var(--riga); font-size: 15px; }
.stato li::before { content: ""; position: absolute; left: 0; top: 13px; width: 11px; height: 11px; box-shadow: 0 0 0 1.5px var(--linea); background: var(--menta); }
.stato .manca li::before { background: var(--corallo-t); }

.galleria { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.galleria .lato { display: grid; gap: 16px; }
.paper { display: block; background: #fff; padding: 12px; box-shadow: inset 0 0 0 1px var(--riga); }
.paper img { display: block; width: 100%; }
figure { margin: 0; }
figcaption { font: 12.5px/1.5 var(--mono); color: var(--testo2); margin-top: 8px; }

.inizia { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.inizia > div { min-width: 0; }
.inizia h2 { font-size: 72px; line-height: .95; letter-spacing: -2.4px; margin: 0 0 22px; font-weight: 600; }
.inizia pre { background: var(--ink); color: #ecebf3; font-size: 14px; line-height: 1.65; padding: 20px 22px; margin: 0; overflow-x: auto; }
.inizia pre .c { color: var(--cielo); }
.inizia .nota-m { margin-top: 14px; }

/* ---------- piede */
.foot { padding: 0 0 44px; font-size: 13.5px; }
.foot > .wrap { border-top: 2px solid var(--ink); padding-top: 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.foot-marchio img { height: 30px; width: auto; display: block; }
.foot-marchio p { margin: 12px 0 0; max-width: 260px; }
.lab b { display: block; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.lab a { display: block; text-decoration: none; padding: 2px 0; }
.lab a:hover { text-decoration: underline; text-decoration-color: var(--cielo); text-decoration-thickness: 3px; }
.foot-base { display: grid; grid-template-columns: 1.4fr 3fr; gap: 24px; margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--ink); font: 12px/1.6 var(--mono); color: var(--testo2); }

/* ---------- documentazione */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 34px; padding-bottom: 60px; align-items: start; }
.docnav { position: sticky; top: calc(var(--alto) + 20px); max-height: calc(100vh - var(--alto) - 40px); overflow: auto; border-top: 2px solid var(--ink); padding-top: 10px; }
.docnav summary { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .6px; cursor: pointer; list-style: none; padding: 4px 0 8px; }
.docnav summary::-webkit-details-marker { display: none; }
.groups .grp { font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .6px; color: var(--testo2); margin: 16px 0 6px; display: flex; align-items: center; gap: 8px; }
.groups .grp::before { content: ""; width: 10px; height: 4px; background: var(--ink); }
.groups ul { list-style: none; margin: 0; padding: 0; }
.groups a { display: block; text-decoration: none; font-size: 14.5px; line-height: 1.3; padding: 6px 10px; border-left: 3px solid transparent; }
.groups a:hover { background: var(--foglio); }
.groups a[aria-current="page"] { font-weight: 600; background: var(--foglio); border-left-color: var(--ink); }

.doc { max-width: 780px; min-width: 0; }
.doc a { text-decoration: underline; text-decoration-color: var(--cielo); text-decoration-thickness: 2.5px; text-underline-offset: 3px; }
.doc a:hover { background: var(--cielo-t); }
.doc .btn, .doc .pager a { text-decoration: none; }
.doc .kicker { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .6px; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc .kicker::before { content: ""; width: 12px; height: 12px; background: var(--cielo); box-shadow: 0 0 0 1.5px var(--linea); }
.doc .kicker span + span::before { content: "· "; }
.doc h1 { font-size: 56px; line-height: 1; letter-spacing: -1.8px; margin: 0 0 18px; font-weight: 600; }
.doc .lead { font-size: 20px; line-height: 1.45; margin: 0 0 26px; }
.doc h2 { font-size: 30px; line-height: 1.12; letter-spacing: -.6px; font-weight: 600; margin: 52px 0 16px; padding-top: 14px; border-top: 2px solid var(--ink); }
.doc h2 .n { display: block; font-size: 13px; letter-spacing: .2px; margin-bottom: 8px; }
.doc h3 { font-size: 20px; line-height: 1.25; margin: 30px 0 8px; font-weight: 600; }
.doc h4 { font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .5px; margin: 22px 0 6px; }
.doc p, .doc li { max-width: 72ch; }
.doc li { margin: 4px 0; }
.doc code { font-size: .88em; background: rgba(43,42,74,.08); padding: .08em .32em; overflow-wrap: anywhere; }
.doc pre { background: var(--ink); color: #ecebf3; padding: 16px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.6; margin: 16px 0 20px; }
.doc pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
kbd { font: 600 .82em var(--mono); padding: 1px 5px; box-shadow: inset 0 0 0 1.2px var(--ink); background: #fff; }
.doc .small, .doc .muted { font-size: 14px; color: var(--testo2); }
.doc .mono { font-family: var(--mono); font-size: 13px; }

.note, .warn { padding: 16px 20px 6px; margin: 22px 0; background: var(--cielo-t); }
.warn { background: var(--burro-t); }
.note .title, .warn .title { display: flex; align-items: center; gap: 8px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.note .title::before, .warn .title::before { content: ""; width: 12px; height: 12px; background: var(--cielo); box-shadow: 0 0 0 1.5px var(--linea); flex: none; }
.warn .title::before { background: var(--burro); }
.note p, .warn p { margin: 0 0 10px; }

.where { font: 13px/1.5 var(--mono); color: var(--testo2); display: flex; gap: 10px; align-items: baseline; }
.where span { background: var(--ink); color: #fff; font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: .5px; padding: 3px 7px; flex: none; }

.terms { margin: 0; }
.terms dt { font-weight: 600; font-size: 18px; margin: 18px 0 4px; padding-top: 12px; border-top: 1px solid var(--riga); }
.terms dd { margin: 0; }

.flow { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); counter-reset: f; }
.flow li { position: relative; padding: 14px 16px 16px 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; max-width: none; margin: 0; }
.flow li + li { padding-left: 16px; border-left: 1px solid var(--ink); }
.flow li::before { counter-increment: f; content: "0" counter(f); font: 600 12px var(--mono); }
.flow b { font-size: 17px; }
.flow.cinque { grid-template-columns: repeat(5, 1fr); }

.table { overflow-x: auto; margin: 18px 0 22px; }
.table table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.table th { text-align: left; font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .5px; padding: 8px 14px 8px 0; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.table td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--riga); vertical-align: top; }

.toc { background: var(--foglio); padding: 16px 20px 12px; margin: 24px 0; border-top: 6px solid var(--ink); }
.toc > p { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .6px; margin: 0 0 10px; }
.toc ol { columns: 2; column-gap: 28px; margin: 0; padding-left: 26px; font-size: 14.5px; }
.toc li { break-inside: avoid; }

.index-list { list-style: none; padding: 0; margin: 10px 0 24px; display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.index-list li { padding: 14px 18px 16px 0; border-bottom: 1px solid var(--ink); max-width: none; margin: 0; }
.index-list li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--ink); }
.index-list a { font-size: 19px; font-weight: 600; }
.index-list p { margin: 6px 0 0; font-size: 14.5px; color: var(--testo2); }

.dmast { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; margin-bottom: 10px; }
.dmast-art svg { width: 100%; height: 240px; display: block; overflow: visible; }

.version { margin-top: 10px; }
.version h2 { display: flex; flex-direction: column; gap: 8px; }
.version .date { font: 13px/1.4 var(--mono); letter-spacing: 0; color: var(--testo2); }
.check { list-style: none; padding: 0; }
.check li { padding: 6px 0; border-top: 1px solid var(--riga); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.pager a { display: block; padding: 14px 0 0; border-top: 2px solid var(--ink); }
.pager a:hover { background: none; }
.pager a:hover strong { text-decoration: underline; text-decoration-color: var(--cielo); text-decoration-thickness: 3px; }
.pager span { display: block; font: 600 11.5px var(--mono); text-transform: uppercase; letter-spacing: .5px; color: var(--testo2); margin-bottom: 6px; }
.pager strong { font-size: 20px; font-weight: 600; }
.pager .next { grid-column: 2; text-align: right; }

/* ---------- schermi stretti */
@media (max-width: 939px) {
  .docs { grid-template-columns: 1fr; gap: 20px; }
  .docnav { position: static; max-height: none; }
}
@media (max-width: 860px) {
  .wrap { padding: 0 16px; }
  .voci, .top .lingua { display: none; }
  .menu-m { display: block; }
  .top .wrap { gap: 16px; }
  .top .btn { padding: 9px 12px; font-size: 13px; }
  .scena { width: 100%; height: 56%; }
  .testi { left: 16px; right: 16px; width: auto; top: auto; bottom: 60px; height: 40%; }
  .testo { top: 0; transform: none; }
  .testo h2, .storia.corta .testo h2 { font-size: 32px; letter-spacing: -1px; }
  .testo p { font-size: 15px; }
  .titolo0 h1 { font-size: 40px; letter-spacing: -1px; }
  .avanzamento { left: 16px; bottom: 18px; } .scorri { display: none; } .etichetta { font-size: 10.5px; }
  .tit { grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; } .tit h2 { font-size: 34px; letter-spacing: -1px; }
  .corpo { margin-left: 0; }
  .intro { font-size: 18px; }
  .tre-col { columns: 1; }
  .poster { grid-template-columns: 1fr; padding: 26px 20px; } .poster .cit { font-size: 28px; } .poster svg { height: 200px; }
  .griglia, .vantaggi, .tipi, .piani, .stato, .galleria, .inizia, .due-col, .index-list, .dmast { grid-template-columns: 1fr; }
  .griglia > *, .vantaggi > div, .index-list li { border-left: 0 !important; padding-left: 0 !important; }
  .inizia h2 { font-size: 46px; }
  .foot-grid, .foot-base { grid-template-columns: 1fr 1fr; }
  .doc h1 { font-size: 40px; letter-spacing: -1px; }
  .flow { grid-template-columns: 1fr; } .flow li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--ink); }
  .toc ol { columns: 1; }
  .pager { grid-template-columns: 1fr; } .pager .next { grid-column: 1; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack tr { display: block; border-bottom: 2px solid var(--ink); padding: 8px 0; }
  .table.stack td { display: block; border: 0; padding: 4px 0; }
  .table.stack td::before { content: attr(data-label); display: block; font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .5px; color: var(--testo2); }
}
.vantaggi dt .n { display: block; margin-bottom: 10px; }
.testo code { font-size: .9em; }
.nb { white-space: nowrap; }

/* ---------- pagine interne (aziende, tecnologie, scarica): il titolo della pagina ha lo stesso aspetto dei titoli di sezione */
.tit h1 { font-size: 52px; line-height: 1; letter-spacing: -1.5px; margin: 0; font-weight: 600; max-width: 860px; }
.tit h1 em { font-style: normal; font-weight: 400; }
.inizia h1 { font-size: 72px; line-height: .95; letter-spacing: -2.4px; margin: 14px 0 22px; font-weight: 600; }
.s > .actions { margin: 26px 0 0 190px; }
@media (max-width: 860px) {
  .tit h1 { font-size: 34px; letter-spacing: -1px; }
  .inizia h1 { font-size: 46px; }
  .s > .actions { margin-left: 0; }
}

/* ---------- la barra di scorrimento: sul telefono quella del sistema, sottile; sul computer è ridisegnata (sotto) */
html { scrollbar-width: thin; scrollbar-color: rgba(43,42,74,.32) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(43,42,74,.32); }
::-webkit-scrollbar-thumb:hover { background: rgba(43,42,74,.6); }
/* sul computer: una riga sottile, scura dove sei già passato, e una torretta di cubetti come cursore */
.barra-linea { position: fixed; top: 76px; bottom: 14px; right: 12px; width: 14px; z-index: 25; cursor: pointer; }
.barra-linea::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--ink) 0, var(--ink) var(--fatto, 0px), rgba(43,42,74,.2) var(--fatto, 0px)); }
.barra-cubi { position: fixed; right: 7px; width: 24px; z-index: 26; pointer-events: none; overflow: visible; transform-origin: 50% 100%; transition: transform .15s, opacity .3s; }
.barra-cubi.salto { animation: salto .28s ease-out; }
@keyframes salto { 40% { transform: translateY(-5px) scale(1.06); } }
/* i cubetti delle sezioni, fermi sulla riga: più piccoli e spenti finché il cursore non li raccoglie */
.barra-segno { position: fixed; right: 11px; width: 16px; height: 16px; z-index: 25; overflow: visible; opacity: .42; filter: saturate(.55); transition: opacity .3s; }
.barra-segno path { pointer-events: auto; cursor: pointer; }
.barra-segno:hover { opacity: .85; }
.barra-segno.preso { visibility: hidden; }
.barra-linea { transition: opacity .3s; }
.barra-off { opacity: 0 !important; }
.barra-off, .barra-off path { pointer-events: none !important; }
.barra-cubi path { pointer-events: auto; cursor: grab; }
.barra-cubi:hover, .barra-cubi.presa { transform: scale(1.12); }
.barra-cubi.presa path { cursor: grabbing; }
@media (min-width: 861px) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { width: 0; height: 0; }
}

/* ---------- le schede delle tecnologie: nome e scena a sinistra, sul colore; la spiegazione a destra */
.tecno { display: grid; grid-template-columns: 340px minmax(0, 1fr); margin: 0 0 18px; background: var(--foglio); }
.tecno .lato { padding: 28px 30px 22px; display: flex; flex-direction: column; gap: 6px; }
.tecno.cielo .lato { background: var(--cielo); } .tecno.menta .lato { background: var(--menta); } .tecno.burro .lato { background: var(--burro); }
.tecno .ruolo { font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .6px; }
.tecno .nome { font-size: 52px; line-height: 1; letter-spacing: -2px; font-weight: 600; margin: 0; }
.tecno .lato svg { width: 100%; height: 150px; display: block; overflow: visible; margin-top: auto; }
.tecno .spiega { padding: 28px 34px 26px; }
.tecno .spiega p { margin: 0 0 12px; max-width: 700px; }
.tecno .spiega ul { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--riga); display: grid; grid-template-columns: 1fr 1fr; gap: 6px 26px; }
.tecno .spiega li { font-size: 14.5px; padding-left: 16px; position: relative; }
.tecno .spiega li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; background: var(--ink); }

/* ---------- qualche cubetto anche nella documentazione: pochi, fermi, che galleggiano piano */
.deco { position: absolute; pointer-events: none; overflow: visible; }
.docnav .deco.nav { position: static; display: block; width: 100%; height: 110px; margin: 22px 0 6px; }
.toc { position: relative; }
.deco.toc-c { right: -16px; top: -34px; width: 58px; height: 58px; }
.doc h2 { position: relative; }
.doc h2.con-cubo { padding-right: 64px; }
.deco.h2 { right: 4px; top: 18px; width: 46px; height: 46px; }

@media (max-width: 860px) {
  .barra-linea, .barra-cubi, .barra-segno, .deco.h2, .docnav .deco.nav { display: none; }
  .doc h2.con-cubo { padding-right: 0; }
  .deco.toc-c { right: -4px; }
  .tecno { grid-template-columns: 1fr; }
  .tecno .nome { font-size: 46px; }
  .tecno .lato svg { height: 120px; }
  .tecno .spiega { padding: 22px 20px; }
  .tecno .spiega ul { grid-template-columns: 1fr; }
}

/* ---------- cubetti che volano nella pagina (hosting in costruzione) */
.s.con-volo { position: relative; }
.deco.vola { width: 64px; height: 64px; }
@media (max-width: 1199px) { .deco.vola { display: none; } } /* volano solo dove c'è spazio accanto ai titoli */
@media (max-width: 860px) { .flow.cinque { grid-template-columns: 1fr; } }

/* ---------- le storie a metà pagina (aziende, tecnologie): sugli schermi larghi si accostano a quello che c'è prima
   e dopo, così non restano mezze schermate vuote; le tacche in basso lasciano il posto alla barra di destra */
@media (min-width: 861px) {
  .storia.corta { margin-top: -30vh; margin-bottom: -20vh; }
  .storia.corta .palco { pointer-events: none; }
  .storia.corta .avanzamento { display: none; }
}
