/* =========================================================
   useskill.it · foglio di stile condiviso (rilancio 1 ottobre 2026)

   Lo usano la home e, dopo il restyling, le landing in skill/.
   Si collega sempre con la versione, perché vercel.json manda /assets
   con cache immutable per un anno:
     <link rel="stylesheet" href="/assets/css/useskill.css?v=1">
   Ogni modifica a questo file alza il ?v= in TUTTE le pagine che lo usano.

   assets/css/site.css resta com'era: lo usano ancora grazie, recupero,
   privacy, cookie, termini, recesso e le landing non ancora rifatte.

   Indice
     1. Token
     2. Base e accessibilità
     3. Componenti condivisi: .file .price-chip .req .text-link .btn
     4. Header e marchio: .site-header .nav .nav-brand .nav-mark .nav-name
     5. Titoli di sezione: .big-head
     6. Home: hero, fascia del freebie, nastro
     7. Prove: .proofs .proof .rail .slide .reels .frame .ask
     8. Come si usa: .howto .gesture .path .prompt
     9. Scala: .ladder .steps .step
    10. Catalogo social: .bundle .bundle-list
    11. Domande: .faq
    12. Recesso e download: .legal
    13. Footer: .footer
    14. Banner cookie: .cookie-banner
    15. Movimento legato allo scorrimento e movimento ridotto
   ========================================================= */

/* ---------- 1. token ---------- */

:root {
  --bone: #F5F0E8;
  --bone-2: #EBE5D6;          /* il bone-soft del sito di prima */
  --ink: #0F0F0F;
  --ink-2: #45423D;           /* testo secondario su bone: 8,8:1; su acid: 8,6:1 */
  --acid: #D4FF00;
  --on-ink-2: #BDB6A9;        /* testo secondario su ink: 9,5:1 */
  --on-ink-line: rgba(245, 240, 232, 0.28);

  --f-display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'General Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --bw: 3px;                  /* spessore di bordi e righe */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1400px;
  --nav-h: 64px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --z-raised: 2;
  --z-sticky: 10;
  --z-banner: 30;

  --focus: var(--ink);
  interpolate-size: allow-keywords;
}

/* ---------- 2. base e accessibilità ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--bone);
}
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
s { text-decoration-thickness: 0.08em; }
code {
  font-family: var(--f-mono);
  font-size: 0.85em;
  padding: 1px 6px;
  background: var(--ink);
  color: var(--acid);
  overflow-wrap: anywhere;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: calc(var(--z-banner) + 1);
  background: var(--ink);
  color: var(--acid);
  padding: 12px 16px;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  --focus: var(--acid);
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. componenti condivisi ---------- */

/* nome di file o formato d'uscita: PROFILE.md, .png, .pptx */
.file {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  padding: 5px 7px;
  border: 2px solid currentColor;
  white-space: nowrap;
}

/* prezzo accanto a un titolo */
.price-chip {
  display: inline-block;
  vertical-align: middle;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0;
  line-height: 1;
  padding: 8px 10px;
  background: var(--acid);
  color: var(--ink);
  white-space: nowrap;
  transform: translateY(-0.2em);
}

/* "Sul computer": l'etichetta onesta dei requisiti */
.req {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.45;
}
.req-k {
  flex: none;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 6px;
  background: var(--ink);
  color: var(--acid);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
  transition: text-decoration-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { text-decoration-color: var(--acid); }
}

/* bottoni: .btn + una variante (.btn-ink, .btn-secondary, .btn-acid), .btn-xl per il grande.
   Un pulsante d'acquisto è sempre un <a> con href al Payment Link e data-acquisto="slug". */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 24px;
  font-family: var(--f-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  border: var(--bw) solid var(--ink);
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    box-shadow 160ms var(--ease-out),
    background-color 160ms ease,
    color 160ms ease;
}
.btn svg { flex: none; }
.btn-xl { min-height: 68px; padding: 20px 28px; font-size: 0.9375rem; }

.btn-ink {
  background: var(--ink);
  color: var(--acid);
  box-shadow: 7px 7px 0 0 var(--bone), 7px 7px 0 var(--bw) var(--ink);
}
.btn-secondary {
  background: var(--bone);
  color: var(--ink);
  box-shadow: 7px 7px 0 0 var(--ink);
}
.btn-acid {
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
  box-shadow: 7px 7px 0 0 var(--bone);
  --focus: var(--acid);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ink:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 0 var(--bone), 10px 10px 0 var(--bw) var(--ink); }
  .btn-secondary:hover { background: var(--ink); color: var(--acid); transform: translate(-3px, -3px); box-shadow: 10px 10px 0 0 var(--ink); }
  .btn-acid:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 0 var(--bone); }
}
/* alla pressione il bottone scende nella sua ombra */
.btn:active { transform: translate(5px, 5px); transition-duration: 100ms; }
.btn-ink:active { box-shadow: 2px 2px 0 0 var(--bone), 2px 2px 0 var(--bw) var(--ink); }
.btn-secondary:active { box-shadow: 2px 2px 0 0 var(--ink); }
.btn-acid:active { box-shadow: 2px 2px 0 0 var(--bone); }

/* ---------- 4. header e marchio ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: var(--bone);
  border-bottom: var(--bw) solid var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--nav-h);
}

/* il marchio di useskill.it: .nav-mark (U acid su quadrato ink) + .nav-name (USESKILL.it).
   Lo stesso disegno sta in assets/img/logo-useskill.svg e logo-useskill.png. */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.nav-mark {
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--f-mono);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 18px;
  border: 2px solid var(--ink);
  flex: none;
}
.nav-name {
  font-family: var(--f-display);
  font-variation-settings: 'wdth' 75, 'wght' 700, 'opsz' 14;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: inherit;
}
/* .it: opacità 0,62, contrasto 5,2:1 su bone e 6,9:1 nel footer (prima 0,5, cioè 3,47:1) */
.nav-name sup { font-size: 0.45em; opacity: 0.62; vertical-align: super; }
@media (max-width: 920px) { .nav-name { font-size: 18px; } }

.nav-links { display: none; }
.nav-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--acid);
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.nav-cta:active { transform: scale(0.97); transition-duration: 100ms; }
@media (hover: hover) and (pointer: fine) {
  .nav-cta:hover { background: var(--ink); color: var(--acid); }
}
@media (max-width: 359px) {
  .nav { gap: 10px; }
  .nav-brand { gap: 8px; }
  .nav-name { font-size: 16px; }
  .nav-cta { padding: 10px; letter-spacing: 0.02em; }
}
@media (min-width: 960px) {
  .nav { gap: 32px; }
  .nav-links { display: flex; gap: 28px; margin-left: auto; }
  .nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: var(--f-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 8px;
    height: 3px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms var(--ease-out);
  }
  .nav-cta { margin-left: 0; padding: 10px 18px; }
}
@media (min-width: 960px) and (hover: hover) and (pointer: fine) {
  .nav-links a:hover::after { transform: scaleX(1); }
}

/* ---------- 5. titoli di sezione giganti ---------- */

.big-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.big-head h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 75, 'opsz' 96;
  font-size: clamp(3rem, 1rem + 7.4vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.big-head p {
  max-width: 44ch;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  color: var(--ink-2);
  text-wrap: pretty;
}
.big-head a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 359px) {
  .big-head h2 { font-size: 2.625rem; }
}
@media (min-width: 960px) {
  .big-head { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; gap: 48px; }
  .big-head p { justify-self: end; padding-bottom: 0.6em; }
  .big-head-stack { grid-template-columns: 1fr; }
  .big-head-stack p { justify-self: start; }
}

/* ---------- 6. home: hero, fascia del freebie, nastro ---------- */

.hero {
  position: relative;
  overflow-x: clip;
}
.hero-inner {
  position: relative;
  padding-block: 22px 30px;
}
.hero-title {
  position: relative;
  z-index: var(--z-raised);
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 75, 'opsz' 96;
  font-size: clamp(3.6rem, 1rem + 7.6vw, 8.75rem);
  line-height: 0.86;
  letter-spacing: -0.032em;
  text-wrap: balance;
  max-width: 13ch;
}
@media (max-width: 359px) {
  .hero-title { font-size: 3rem; }
}
/* evidenziatore acido: un solo passaggio al caricamento */
.hl {
  padding: 0 0.05em;
  margin: 0 -0.05em;
  background-image: linear-gradient(var(--acid), var(--acid));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 0.7em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: highlight 820ms var(--ease-out) 200ms both;
}
@keyframes highlight {
  from { background-size: 0% 0.7em; }
  to { background-size: 100% 0.7em; }
}
.hero-lede {
  position: relative;
  z-index: var(--z-raised);
  margin-top: 18px;
  max-width: 44ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* collage di prove vere: solo da desktop, rompe la griglia ed entra nella fascia */
.hero-collage { display: none; }
@media (min-width: 1000px) {
  .hero-inner { padding-block: 30px 34px; }
  .hero-title { max-width: 11.5ch; }
  .hero-lede { max-width: 40ch; }
  .hero-collage {
    display: block;
    position: absolute;
    right: var(--gutter);
    top: 28px;
    width: clamp(300px, 30vw, 440px);
    height: 100%;
    pointer-events: none;
  }
  .collage-slide {
    position: absolute;
    right: 32%;
    top: 0;
    width: 64%;
    height: auto;
    border: var(--bw) solid var(--ink);
    box-shadow: 14px 14px 0 0 var(--ink);
    transform: rotate(-4deg);
  }
  .collage-reel {
    position: absolute;
    right: 0;
    top: 26%;
    width: 46%;
    z-index: 3;
    border: var(--bw) solid var(--ink);
    background: var(--ink);
    box-shadow: 14px 14px 0 0 var(--acid), 14px 14px 0 var(--bw) var(--ink);
    transform: rotate(3deg);
  }
  .collage-reel img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
}

/* fascia del freebie: acido a tutta larghezza */
.freebie-band {
  position: relative;
  background: var(--acid);
  border-block: var(--bw) solid var(--ink);
}
.freebie-inner {
  position: relative;
  display: grid;
  gap: 18px;
  padding-block: 26px 30px;
}
.sticker {
  position: absolute;
  top: -22px;
  right: var(--gutter);
  padding: 8px 12px;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: rotate(4deg);
}
.freebie-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 80, 'opsz' 48;
  font-size: clamp(1.875rem, 1.3rem + 2vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.freebie-desc {
  margin-top: 10px;
  max-width: 52ch;
  font-size: 1.0625rem;
  line-height: 1.45;
  text-wrap: pretty;
}
.freebie-text .req { margin-top: 12px; }
.freebie-action { display: grid; gap: 10px; justify-items: stretch; }
.freebie-note { font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500; }
@media (min-width: 760px) {
  .freebie-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; padding-block: 32px 34px; }
  .freebie-action { justify-items: start; }
  .sticker { right: auto; left: calc(var(--gutter) + 360px); }
}
@media (min-width: 1000px) {
  .freebie-inner { padding-right: calc(var(--gutter) + clamp(300px, 30vw, 440px) + 24px); }
  .freebie-action { position: relative; z-index: 4; }
}

/* nastro di nomi che scorre con la pagina */
.ribbon {
  overflow: hidden;
  background: var(--ink);
  color: var(--acid);
  border-bottom: var(--bw) solid var(--ink);
  padding-block: 10px;
}
.ribbon-track {
  display: flex;
  width: max-content;
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 75, 'opsz' 96;
  font-size: clamp(2rem, 1.2rem + 3vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.ribbon-track span { display: inline-flex; align-items: center; }
.ribbon-track span::after {
  content: '';
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  margin-inline: 0.45em;
  background: var(--bone);
}

/* ---------- 7. prove ---------- */

.proofs {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(64px, 8vw, 128px);
  overflow-x: clip;
  --focus: var(--acid);
}
.proofs .big-head h2 { color: var(--bone); }
.proofs .big-head p { color: var(--on-ink-2); }

.proof + .proof { margin-top: clamp(72px, 9vw, 140px); }
.proof-head {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
  padding-top: 18px;
  border-top: var(--bw) solid var(--bone);
}
.proof-head h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 80, 'opsz' 48;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--bone);
  text-wrap: balance;
}
.proof-desc { max-width: 56ch; color: var(--on-ink-2); text-wrap: pretty; }
.proof-desc a { color: var(--bone); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.rail-buttons { display: flex; gap: 10px; }
.rail-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--acid);
  border: var(--bw) solid var(--bone);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out), opacity 160ms ease;
}
.rail-btn:active { transform: scale(0.94); transition-duration: 100ms; }
.rail-btn[aria-disabled="true"] { opacity: 0.35; cursor: default; }
.rail-btn[aria-disabled="true"]:active { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .rail-btn:not([aria-disabled="true"]):hover { background: var(--acid); color: var(--ink); }
}
@media (min-width: 960px) {
  .proof-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; column-gap: 40px; }
  .proof-reels .proof-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* pulsanti di acquisto dentro la testata di una prova (aggiunto in v=2):
   <div class="proof-buy"> con uno o più .btn.btn-acid e una .proof-buy-note.
   Da desktop sta sotto la descrizione, nella seconda colonna. */
.proof-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
  margin-top: 6px;
  padding-bottom: 7px;
}
.proof-buy-note {
  flex-basis: 100%;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--on-ink-2);
}
@media (min-width: 960px) {
  .proof-buy { grid-column: 2; grid-row: 2; margin-top: 10px; }
}

/* galleria orizzontale con scroll nativo e snap; site.js aggiunge .is-static
   quando le slide stanno tutte nello schermo, e frecce e barra spariscono */
.rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 6px var(--gutter) 30px;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -4px; }
.slide { flex: 0 0 min(84vw, 470px); scroll-snap-align: start; }
.slide img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: var(--bw) solid var(--bone);
  box-shadow: 12px 12px 0 0 var(--acid);
  background: var(--ink);
}
.slide figcaption {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  color: var(--on-ink-2);
}
.mode {
  font-weight: 700;
  padding: 3px 7px;
  background: var(--bone);
  color: var(--ink);
}
.mode-ed { background: var(--acid); }
.rail-progress {
  position: relative;
  height: 3px;
  background: var(--on-ink-line);
  overflow: hidden;
}
.rail-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: var(--acid);
  will-change: transform;
}
.is-static .rail-buttons,
.is-static .rail-progress { display: none; }
@media (min-width: 960px) {
  .is-static .slide:nth-child(even) { margin-top: 72px; }
}

/* reel: grandi, sfalsati */
.reels {
  display: grid;
  gap: 64px;
}
.reel { width: min(86%, 400px); }
.reel:nth-child(even) { margin-left: auto; }
.frame {
  position: relative;
  aspect-ratio: 9 / 16;
  background: var(--bone);
  border: var(--bw) solid var(--bone);
  box-shadow: 14px 14px 0 0 var(--acid);
  overflow: hidden;
}
.frame video { width: 100%; height: 100%; object-fit: cover; }
.frame-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.reel-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--acid);
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
  --focus: var(--ink);
}
.reel-toggle:active { transform: scale(0.92); transition-duration: 100ms; }
.reel-toggle svg { grid-area: 1 / 1; transition: opacity 120ms ease; }
.reel-toggle .i-pause { opacity: 0; }
.reel-toggle[data-state="playing"] .i-play { opacity: 0; }
.reel-toggle[data-state="playing"] .i-pause { opacity: 1; }

.ask { margin-top: 26px; display: grid; gap: 6px; }
.ask-k {
  justify-self: start;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acid);
}
.ask-q {
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: 'wdth' 90, 'opsz' 24;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--bone);
  text-wrap: pretty;
}
.reel .text-link { margin-top: 6px; color: var(--bone); }

@media (min-width: 960px) {
  .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 64px); align-items: start; }
  .reel { width: 100%; }
  .reel:nth-child(even) { margin-left: 0; }
  .reel:nth-child(2) { margin-top: 140px; }
  .reel:nth-child(3) { margin-top: 48px; }
}

/* ---------- 8. come si usa ---------- */

.howto {
  padding-block: clamp(72px, 9vw, 140px);
  overflow-x: clip;
}
.gestures { border-top: var(--bw) solid var(--ink); }
.gesture {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px clamp(18px, 3vw, 48px);
  padding-block: clamp(28px, 4vw, 52px);
  border-bottom: var(--bw) solid var(--ink);
}
.g-n {
  width: clamp(64px, 9vw, 132px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--acid);
  border: var(--bw) solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--ink);
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 75, 'opsz' 96;
  font-size: clamp(2.75rem, 1.6rem + 4vw, 6rem);
  line-height: 1;
}
.g-body { display: grid; gap: 14px; align-content: start; }
.g-body h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 80, 'opsz' 48;
  font-size: clamp(1.875rem, 1.2rem + 2.8vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.g-body > p:not(.prompt) { max-width: 58ch; color: var(--ink-2); text-wrap: pretty; }
.paths { display: grid; gap: 16px; margin-top: 6px; }
.path {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  background: var(--bone-2);
  border: var(--bw) solid var(--ink);
}
.path-k {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 85, 'opsz' 24;
  font-size: 1.25rem;
  line-height: 1.1;
}
.path p:not(.path-k):not(.path-note) { color: var(--ink); }
.path-note {
  font-family: var(--f-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-2);
  padding-top: 10px;
  border-top: 2px solid var(--ink);
}
.prompt {
  justify-self: start;
  max-width: 34ch;
  padding: 18px 20px;
  background: var(--ink);
  color: var(--acid);
  font-family: var(--f-display);
  font-weight: 700;
  font-variation-settings: 'wdth' 90, 'opsz' 24;
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.625rem);
  line-height: 1.25;
  box-shadow: 8px 8px 0 0 var(--acid), 8px 8px 0 var(--bw) var(--ink);
}
@media (max-width: 559px) {
  .gesture { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

/* ---------- 9. la scala in tre gradini ---------- */

.ladder {
  padding-block: clamp(72px, 9vw, 140px);
  border-top: var(--bw) solid var(--ink);
}
.steps { display: grid; }
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px 28px;
  border: var(--bw) solid var(--ink);
}
.step + .step { margin-top: calc(var(--bw) * -1); }
.step-1 { background: var(--bone); }
.step-2 { background: var(--acid); }
.step-3 { background: var(--ink); color: var(--bone); --focus: var(--acid); }
.step-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: var(--bw) solid currentColor;
}
.step-n {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1;
  padding: 7px 9px;
  border: var(--bw) solid currentColor;
}
.step-price {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 75, 'opsz' 96;
  font-size: clamp(3rem, 2rem + 3.4vw, 5.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-align: right;
}
.step-price s { font-size: 0.42em; letter-spacing: -0.02em; opacity: 0.8; margin-left: 4px; }
.step-3 .step-price { color: var(--acid); }
.step-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 80, 'opsz' 48;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.375rem);
  line-height: 1;
  letter-spacing: -0.025em;
}
.step-desc { max-width: 42ch; text-wrap: pretty; }
.step-1 .step-desc { color: var(--ink-2); }
.step-3 .step-desc { color: var(--on-ink-2); }
.step-3 .req-k { background: var(--acid); color: var(--ink); }
.step-action { margin-top: 8px; display: grid; gap: 12px; justify-items: start; }
.step-note { font-family: var(--f-mono); font-size: 0.75rem; color: var(--ink-2); }
.step-3 .step-note { color: var(--on-ink-2); }

@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  .step { padding: 30px 28px 34px; }
  .step + .step { margin-top: 0; margin-left: calc(var(--bw) * -1); }
  .step-1 { min-height: 520px; }
  .step-2 { min-height: 640px; }
  .step-3 { min-height: 760px; }
  .step-action { margin-top: auto; padding-top: 18px; }
}

/* ---------- 10. catalogo social ---------- */

.bundle {
  background: var(--acid);
  color: var(--ink);
  border-block: var(--bw) solid var(--ink);
  padding-block: clamp(72px, 9vw, 140px);
  overflow-x: clip;
}
.bundle-top {
  display: grid;
  gap: 8px;
  align-items: end;
  padding-bottom: 20px;
  border-bottom: var(--bw) solid var(--ink);
}
.bundle h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 75, 'opsz' 96;
  font-size: clamp(3.25rem, 1rem + 8vw, 9rem);
  line-height: 0.84;
  letter-spacing: -0.04em;
}
@media (max-width: 359px) {
  .bundle h2 { font-size: 2.75rem; }
}
.bundle-price { display: grid; gap: 6px; justify-items: start; }
.bundle-amount {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 75, 'opsz' 96;
  font-size: clamp(6rem, 3rem + 13vw, 15rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
}
.bundle-was {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 1.125rem;
}
.bundle-off {
  padding: 6px 9px;
  background: var(--ink);
  color: var(--acid);
  font-size: 0.875rem;
}
.bundle-lede {
  margin-top: 24px;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.45;
  text-wrap: pretty;
}
.bundle-grid { display: grid; gap: 40px; margin-top: 40px; }
.bundle-list { border-top: var(--bw) solid var(--ink); }
.bundle-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  align-items: center;
  padding-block: 18px;
  border-bottom: var(--bw) solid var(--ink);
}
.bl-name {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 85, 'opsz' 24;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.875rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.bl-price { font-family: var(--f-mono); font-weight: 700; font-size: 1rem; }
.bl-files { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.bundle-list .req { grid-column: 1 / -1; }
.buy-bundle { display: grid; gap: 16px; justify-items: start; align-content: start; }
.buy-bundle .btn-ink { box-shadow: 8px 8px 0 0 var(--bone), 8px 8px 0 var(--bw) var(--ink); }
.bundle-fine { font-family: var(--f-mono); font-size: 0.8125rem; line-height: 1.5; max-width: 40ch; }

@media (min-width: 960px) {
  .bundle-top { grid-template-columns: minmax(0, 1fr) auto; gap: 40px; }
  .bundle-price { justify-items: end; }
  .bundle-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); }
  .buy-bundle { position: sticky; top: calc(var(--nav-h) + 32px); }
}
@media (min-width: 1200px) {
  .bundle-list li { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.8fr) minmax(0, 1.4fr) auto; }
  .bl-files { grid-column: 2; grid-row: 1; }
  .bundle-list .req { grid-column: 3; grid-row: 1; }
  .bl-price { grid-column: 4; grid-row: 1; }
}

/* ---------- 11. domande ---------- */

.faq { padding-block: clamp(72px, 9vw, 140px); }
.faq-grid { display: grid; }
.faq-list { border-top: var(--bw) solid var(--ink); }
.faq-list details { border-bottom: var(--bw) solid var(--ink); }
.faq-list summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 18px 0;
  cursor: pointer;
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 85, 'opsz' 48;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline-offset: -3px; }
.faq-icon {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border: var(--bw) solid var(--ink);
  transition: background-color 160ms ease;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 3px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 220ms var(--ease-out), opacity 160ms ease;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq-icon { background: var(--acid); }
details[open] .faq-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(135deg); }
@media (hover: hover) and (pointer: fine) {
  .faq-list summary:hover .faq-icon { background: var(--acid); }
}
.faq-list details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 240ms var(--ease-out), content-visibility 240ms allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }
.faq-a { padding: 0 0 26px; max-width: 62ch; }
.faq-a p { color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 1000px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
  .faq-grid .big-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
}

/* ---------- 12. recesso e download ---------- */

.legal {
  background: var(--bone-2);
  border-top: var(--bw) solid var(--ink);
  padding-block: clamp(56px, 7vw, 96px);
}
.legal-grid { display: grid; gap: 20px; }
.legal h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 80, 'opsz' 48;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.legal-text { display: grid; gap: 14px; max-width: 66ch; }
.legal-text p { color: var(--ink-2); text-wrap: pretty; }
.legal-text a:not(.text-link) { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 4px; }
@media (min-width: 1000px) {
  .legal-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); }
}

/* ---------- 13. footer ----------
   Ogni pagina che vende ha nel footer Termini, Recesso, Privacy, Cookie
   e i dati del titolare (gli stessi di privacy.html, sezione 1). */

.footer {
  background: var(--ink);
  color: var(--bone);
  padding-block: 56px 32px;
  --focus: var(--acid);
}
.footer-top { display: grid; gap: 40px; }
.footer-brand { color: var(--bone); align-self: start; }
.footer-brand .nav-mark { border-color: var(--bone); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
.footer-h {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 8px;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bone);
  text-decoration: none;
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
}
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--on-ink-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--on-ink-2);
}
.footer-bottom a { color: inherit; display: inline-block; padding-block: 4px; }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: auto 1fr; gap: 64px; }
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-self: end; width: min(100%, 720px); }
}

/* ---------- 14. banner cookie ----------
   Stessi id e stessa chiave di localStorage di sempre (cookieBanner,
   cookieAccept, cookieReject, useskill_cookie_consent). */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: var(--z-banner);
  max-width: 520px;
  margin-inline: auto;
  padding: 20px;
  background: var(--ink);
  color: var(--bone);
  border: var(--bw) solid var(--ink);
  box-shadow: 10px 10px 0 0 var(--acid);
  --focus: var(--acid);
  transition: transform 280ms var(--ease-out), opacity 280ms var(--ease-out);
  @starting-style { transform: translateY(24px); opacity: 0; }
}
.cookie-banner[hidden] { display: none; }
.cookie-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-variation-settings: 'wdth' 85, 'opsz' 24;
  font-size: 1.5rem;
  line-height: 1.05;
}
.cookie-text { margin-top: 8px; font-size: 0.875rem; line-height: 1.5; color: var(--on-ink-2); }
.cookie-text a { color: var(--bone); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.cookie-actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-btn {
  min-height: 48px;
  padding: 10px 12px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: var(--bw) solid var(--bone);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.cookie-btn:active { transform: scale(0.97); transition-duration: 100ms; }
.cookie-btn-accept { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.cookie-btn-reject { background: var(--bone); color: var(--ink); }
@media (min-width: 768px) {
  .cookie-banner { left: auto; right: 24px; bottom: 24px; margin: 0; padding: 24px; }
}

/* ---------- 15. movimento legato allo scorrimento ----------
   Solo dove il browser ha le timeline di scorrimento e solo senza
   movimento ridotto. Il contenuto è sempre visibile: le animazioni
   spostano e scalano, non nascondono. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .ribbon-track {
      animation: ribbon-move linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
    .rise {
      animation: rise-in var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
    .big-head h2, .bundle h2 {
      animation: push-in var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% cover 35%;
    }
    .bundle-amount {
      animation: price-in var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% cover 40%;
      transform-origin: left bottom;
    }
    .g-n {
      animation: num-in var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }
    .collage-slide {
      animation: drift-slide linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 900px;
    }
    .collage-reel {
      animation: drift-reel linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 900px;
    }
  }
}
@keyframes ribbon-move { from { transform: translateX(0); } to { transform: translateX(-38%); } }
@keyframes rise-in { from { transform: translateY(110px) scale(0.92); } to { transform: none; } }
@keyframes push-in { from { transform: translateX(-5vw); } to { transform: none; } }
@keyframes price-in { from { transform: scale(0.8); } to { transform: none; } }
@keyframes num-in { from { transform: translate(-24px, 24px) rotate(-8deg); } to { transform: none; } }
@keyframes drift-slide { from { transform: rotate(-4deg); } to { transform: translateY(-120px) rotate(-9deg); } }
@keyframes drift-reel { from { transform: rotate(3deg); } to { transform: translateY(-260px) rotate(7deg); } }

/* la scala si assesta entrando in vista (site.js), contenuto sempre visibile */
.motion-ok .step { transition: transform 700ms var(--ease-out); }
.motion-ok .steps:not([data-in]) .step { transform: translateY(24px); }
.motion-ok .steps:not([data-in]) .step-2 { transform: translateY(48px); }
.motion-ok .steps:not([data-in]) .step-3 { transform: translateY(72px); }
.motion-ok .steps[data-in] .step-2 { transition-delay: 80ms; }
.motion-ok .steps[data-in] .step-3 { transition-delay: 160ms; }

/* movimento ridotto: meno e più morbido, mai zero */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hl { animation: none; }
  .btn, .btn:hover, .btn:active,
  .nav-cta:active, .rail-btn:active, .reel-toggle:active, .cookie-btn:active { transform: none !important; }
  .motion-ok .step,
  .motion-ok .steps:not([data-in]) .step,
  .motion-ok .steps:not([data-in]) .step-2,
  .motion-ok .steps:not([data-in]) .step-3 { transform: none; transition: none; }
  .faq-list details::details-content { transition: none; }
  .faq-icon::before, .faq-icon::after { transition: opacity 160ms ease; }
  details[open] .faq-icon::before { transform: translate(-50%, -50%); }
  details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
  .cookie-banner {
    transition: opacity 200ms ease;
    @starting-style { transform: none; opacity: 0; }
  }
}
