/* Omissum — il linguaggio degli atti oscurati */

:root {
  --paper: #f5f5f2;
  --paper-2: #ebebe6;
  --sheet: #ffffff;
  --ink: #111110;
  --ink-2: #45453f;
  --ink-3: #64645d;
  --rule: rgba(17, 17, 16, 0.12);
  --rule-strong: rgba(17, 17, 16, 0.26);
  --blue: #2337c6;
  --blue-press: #1a2a9e;
  --blue-soft: rgba(35, 55, 198, 0.08);
  --error: #a3172b;

  --dark: #111110;
  --on-dark: #f5f5f2;
  --on-dark-2: #a6a69e;

  --f-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-text: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --section: clamp(88px, 11vw, 160px);

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

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: var(--ink-3) var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--blue);
}

::selection { background: var(--ink); color: var(--paper); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; text-decoration: none;
  transition: top 160ms var(--ease-out);
}
.skip:focus { top: 12px; }

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

.tnum { font-variant-numeric: tabular-nums; }
.url { word-break: break-all; }
.mono { font-family: var(--f-mono); font-size: 0.8125rem; word-break: break-all; }

/* Serif display voice: Source Serif at its display optical size */
h1, .display-l, .registro-row h3, .rail-step h3, .impegni h3, .chiusura h2,
.modulo-head h2, .modulo-done h3, .specimen-kind, .brand-name, .footer-brand {
  font-family: var(--f-display);
  font-optical-sizing: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-row { display: flex; align-items: center; gap: 32px; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-name { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.brand-bar { width: 1.1em; height: 0.62em; font-size: 1.5rem; background: var(--ink); transform: translateY(1px); }

.nav { display: flex; gap: 28px; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--ink-2); padding: 6px 0; position: relative; transition: color 160ms var(--ease-out); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--ink); }
  .nav a:hover::after { transform: scaleX(1); }
}

.header-actions { display: flex; align-items: center; gap: 20px; }
.header-phone { font-size: 0.9375rem; text-decoration: none; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  background: var(--btn-bg); color: #fff;
  font: 600 1rem/1 var(--f-text);
  border: 0; border-radius: 0; text-decoration: none; cursor: pointer;
  transition: background-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; white-space: nowrap; }
.btn-primary { --btn-bg: var(--blue); }
.btn-block { width: 100%; min-height: 56px; font-size: 1.0625rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { --btn-bg: #2b2b28; }
  .btn-primary:hover { --btn-bg: var(--blue-press); }
}
.btn[disabled] { cursor: progress; }
.btn-spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35); border-top-color: #fff;
  display: none; animation: spin 700ms linear infinite;
}
.btn.is-loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.modulo-note { display: none; margin-top: -4px; font-size: 0.8125rem; color: var(--ink-3); text-align: center; }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(72px, 9vw, 128px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.hero-copy { padding-top: clamp(8px, 2vw, 28px); }

h1 {
  font-weight: 560;
  font-size: clamp(2.5rem, 1.4rem + 3.9vw, 4.75rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
}
.h1-line { display: block; }
@media (min-width: 901px) { .h1-line { white-space: nowrap; } }
.h1-second { color: var(--ink-3); }

/* The omissis: a redaction bar closes over the word once, leaving it knocked out in paper */
.omissis { position: relative; display: inline-block; padding: 0 0.1em; margin: 0 -0.02em; }
.omissis::before {
  content: ""; position: absolute; inset: 0.12em 0 0.04em; background: var(--ink);
  transform-origin: left center;
  animation: redact 640ms var(--ease-in-out) 420ms both;
}
.omissis > span { position: relative; animation: knockout 1ms linear 760ms both; }
@keyframes redact { from { transform: scaleX(0); } }
@keyframes knockout { from { color: var(--ink); } to { color: var(--paper); } }

.hero-lede {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 33rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero-assurances {
  list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 0.9375rem;
}
.hero-assurances li { display: flex; align-items: center; gap: 8px; }
.hero-assurances svg { width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 1.8; }

/* ---------- Modulo ---------- */

.modulo-wrap { position: relative; scroll-margin-top: 96px; }

.modulo {
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 1px 2px rgba(17,17,16,0.04), 0 24px 56px -28px rgba(17,17,16,0.22);
}

.modulo-bar {
  display: flex; justify-content: space-between; align-items: center;
  height: 30px; padding: 0 clamp(20px, 3vw, 28px);
  background: var(--ink); color: var(--paper);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}

.modulo-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 24px clamp(20px, 3vw, 28px) 4px;
}
.modulo-head h2 { font-weight: 600; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem); line-height: 1.15; letter-spacing: -0.015em; }
.modulo-ref { font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; }
.serial { font-variant-numeric: tabular-nums; color: var(--ink); }

.modulo-body { padding: 12px clamp(20px, 3vw, 28px) clamp(20px, 3vw, 28px); display: grid; gap: 16px; }

.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; padding: 0; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; }

.field input[type="text"], .field textarea {
  width: 100%;
  font: 400 1rem/1.5 var(--f-text); color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong); border-radius: 0;
  padding: 10px 14px;
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 160ms var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px var(--blue-soft); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--error); }

.hint { margin-top: 6px; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.45; }
.error { font-size: 0.8125rem; color: var(--error); line-height: 1.4; }
.error:not(:empty) { margin-top: 6px; }

.link-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.link-chips:not(:empty) { margin-top: 10px; }
.link-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; font-size: 0.8125rem; line-height: 1.3;
  background: var(--blue-soft); color: var(--blue);
  animation: chip-in 200ms var(--ease-out) both;
}
.link-chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
@keyframes chip-in { from { opacity: 0; transform: scale(0.94); } }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px;
  font-size: 0.875rem; color: var(--ink-2);
  border: 1px solid var(--rule-strong);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.seg label:active span { transform: scale(0.97); }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .seg label:hover input:not(:checked) + span { border-color: var(--ink); color: var(--ink); }
}

.field-check .check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; position: relative; }
.check input { position: absolute; opacity: 0; width: 20px; height: 20px; margin: 0; cursor: pointer; }
.check-box {
  width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--rule-strong); background: var(--paper);
  display: grid; place-items: center; transition: background-color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}
.check-box svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset 200ms var(--ease-out); }
.check input:checked + .check-box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check-box svg { stroke-dashoffset: 0; }
.check input:focus-visible + .check-box { outline: 2px solid var(--blue); outline-offset: 2px; }
.field-check.is-invalid .check-box { border-color: var(--error); }

.modulo-done { padding: 32px clamp(20px, 3vw, 28px) 40px; outline: none; display: grid; gap: 12px; justify-items: start; }
.modulo-done[hidden] { display: none; }
.modulo-done h3 { font-weight: 600; font-size: 1.75rem; letter-spacing: -0.015em; }
.modulo-done p { color: var(--ink-2); max-width: 32rem; }
.modulo-done.is-in { animation: done-in 420ms var(--ease-out) both; }
@keyframes done-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; position: relative; }

.section-head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 96px); align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.display-l {
  font-weight: 560;
  font-size: clamp(2.125rem, 1.3rem + 3vw, 4.25rem);
  line-height: 1.05; letter-spacing: -0.026em;
  text-wrap: balance;
}
.section-lede { color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); max-width: 34rem; text-wrap: pretty; }

/* Ambiti: search results being redacted */

.ambiti { border-top: 1px solid var(--rule); }
.section-head-demo { align-items: start; }
.section-head-demo .section-lede { margin-top: 28px; }

.serp { margin: 0; background: var(--sheet); border: 1px solid var(--rule-strong); padding: 20px 24px 18px; }
.serp-query {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid var(--rule-strong); border-radius: 999px;
  font-size: 0.9375rem;
}
.serp-query svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.serp-list { list-style: none; margin: 16px 0 0; padding: 0; }
.serp-item { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.serp-item:last-child { border-bottom: 0; }
.serp-url { font-size: 0.75rem; color: var(--ink-3); }
.serp-title { margin-top: 2px; font-size: 1.0625rem; font-weight: 500; color: var(--blue); line-height: 1.35; }
.serp-snip { margin-top: 2px; font-size: 0.875rem; color: var(--ink-2); line-height: 1.45; }
.serp figcaption { margin-top: 12px; font-size: 0.75rem; color: var(--ink-3); }

/* ---------- Scena: the search demo, before and after ---------- */

.scena { position: relative; height: 280vh; border-top: 1px solid var(--rule); background: var(--paper); }
.scena-sticky { position: sticky; top: 72px; height: calc(100vh - 72px); display: flex; align-items: center; }
.scena-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.scena-copy .display-l { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.5rem); }

.scena-steps { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; gap: 0; }
.scena-step { position: relative; padding: 18px 0 20px; border-top: 1px solid var(--rule-strong); color: var(--ink-3); transition: color 240ms var(--ease-out); }
.scena-step::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; border-top: 2px solid var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease-out); }
.scena-step h3 { font-family: var(--f-display); font-weight: 560; font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 4px; }
.scena-step p { font-size: 1rem; max-width: 30rem; }
.scena-step.is-active { color: var(--ink); }
.scena-step.is-active p { color: var(--ink-2); }
.scena-step.is-active::before { transform: scaleX(1); }

/* Removal: a blue-pencil double strike crosses the text, which stays legible, then the outcome is stamped */

.serp-item { position: relative; transition: opacity 320ms var(--ease-out); }
.serp-item.is-harmful .serp-url, .serp-item.is-harmful .serp-title { padding-right: 96px; }

.serp-flag, .serp-stamp {
  position: absolute; right: 0; top: 12px;
  padding: 3px 8px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  pointer-events: none;
}
.serp-flag { border: 1.5px solid var(--error); color: var(--error); transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
.serp-item.is-struck .serp-flag { opacity: 0; transform: scale(0.94); }

.redact {
  background-image:
    linear-gradient(var(--blue), var(--blue)),
    linear-gradient(rgba(35, 55, 198, 0.55), rgba(35, 55, 198, 0.55));
  background-repeat: no-repeat;
  background-size: 0% 2px, 0% 1px;
  background-position: 0 54%, 2px 66%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 520ms var(--ease-in-out), color 400ms var(--ease-out);
}
.serp-item.is-struck .serp-title .redact { background-size: 100% 2px, 96% 1px; color: var(--ink-3); transition-delay: 0ms, 520ms; }
.serp-item.is-struck .serp-snip .redact { background-size: 100% 2px, 96% 1px; color: var(--ink-3); transition-delay: 180ms, 700ms; }

.serp-esito {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  font-size: 0.8125rem; font-weight: 600; color: var(--blue);
  opacity: 0; transform: translateY(4px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}
.serp-esito svg, .serp-keep svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.serp-item.is-struck .serp-esito { opacity: 1; transform: none; transition-delay: 820ms; }

.serp-stamp {
  border: 1.5px solid var(--blue); color: var(--blue); mix-blend-mode: multiply;
  opacity: 0; transform: rotate(-7deg) scale(1.35); filter: blur(1.5px);
  transition: opacity 140ms var(--ease-out), transform 240ms var(--ease-out), filter 240ms var(--ease-out);
}
.serp-item.is-struck .serp-stamp { opacity: 0.9; transform: rotate(-7deg) scale(1); filter: blur(0); transition-delay: 640ms; }

.serp-keep {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  font-size: 0.8125rem; font-weight: 600; color: var(--ink);
  opacity: 0; transform: translateY(4px);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
}
.serp.is-clean .serp-keep { opacity: 1; transform: none; transition-delay: 200ms; }
.serp.is-clean .serp-item.is-harmful { opacity: 0.6; }

.serp figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.serp-replay {
  display: none; align-items: center; gap: 6px; padding: 6px 2px; border: 0; background: none; cursor: pointer;
  font: 600 0.75rem/1 var(--f-text); color: var(--ink-2);
  transition: color 160ms var(--ease-out), transform 120ms var(--ease-out);
}
.scena.is-timed .serp-replay { display: inline-flex; }
.serp-replay svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 320ms var(--ease-out); }
.serp-replay:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .serp-replay:hover { color: var(--ink); }
  .serp-replay:hover svg { transform: rotate(-60deg); }
}

/* Resets jump back instantly instead of animating in reverse */
.scena.is-resetting * { transition: none !important; }

@media (max-width: 900px) {
  .scena { height: auto; padding: clamp(64px, 10vw, 104px) 0; }
  .scena-sticky { position: static; height: auto; display: block; }
  .scena-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .scena-copy { display: contents; }
  .scena-copy .display-l { order: 1; }
  .scena .serp { order: 2; }
  .scena-steps { order: 3; margin-top: 0; }
}
@media (max-width: 600px) {
  .serp-item.is-harmful .serp-url, .serp-item.is-harmful .serp-title { padding-right: 84px; }
}

.registro { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.registro-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(16px, 4vw, 56px); align-items: baseline;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--rule-strong);
}
.registro-row h3 { font-weight: 560; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.12; letter-spacing: -0.018em; }
.registro-row > p { color: var(--ink-2); max-width: 30rem; }
.registro-azioni { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--ink-2); text-align: right; }
.registro-azioni span:not(.sr-only) { white-space: nowrap; }

/* Metodo */

.metodo { background: var(--dark); color: var(--on-dark); }
.metodo .section-lede { color: var(--on-dark-2); }
.metodo ::selection { background: var(--on-dark); color: var(--dark); }

.rail {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px);
  position: relative;
}
.rail::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; border-top: 1px dashed rgba(245,245,242,0.32); }
.rail-step { position: relative; padding-top: 52px; }
.rail-mark {
  position: absolute; top: 0; left: 0; width: 28px; height: 28px;
  border: 1px solid var(--on-dark-2); background: var(--dark);
  display: grid; place-items: center;
  font: 500 0.8125rem/1 var(--f-text); font-variant-numeric: tabular-nums; color: var(--on-dark);
}
.rail-step.is-solid .rail-mark { background: var(--on-dark); border-color: var(--on-dark); color: var(--dark); }
.rail-step.is-solid::before { content: ""; position: absolute; left: 0; right: calc(-1 * clamp(24px, 3vw, 40px)); top: 13px; border-top: 1px solid var(--on-dark); }
.rail-step h3 { font-weight: 560; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 12px; }
.rail-step p { color: var(--on-dark-2); font-size: 1rem; }

/* La prova */

.prova { background: var(--paper-2); }
.prova-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
.prova-copy .section-lede { margin-top: 28px; }

.confronto { width: 100%; margin-top: 48px; border-collapse: collapse; font-size: 0.9375rem; }
.confronto th, .confronto td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule-strong); vertical-align: top; }
.confronto thead th { font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid var(--ink); padding-top: 0; }
.confronto tbody th { font-weight: 600; width: 26%; }
.confronto td:nth-child(2) { color: var(--ink-3); }
.confronto thead th:last-child { color: var(--ink); }

.principi { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.875rem; color: var(--ink-2); }
.principi li { display: flex; align-items: center; gap: 8px; }
.principi li::before { content: ""; width: 10px; height: 4px; background: var(--ink); }

.specimen { margin: 0; position: sticky; top: 104px; }
.specimen-sheet {
  position: relative; background: var(--sheet);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 1px 2px rgba(17,17,16,0.04), 0 32px 64px -32px rgba(17,17,16,0.28);
  padding: 0 0 148px; overflow: hidden;
}
.specimen-bar { height: 10px; background: var(--ink); }
.specimen-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 24px 0 16px; border-bottom: 2px solid var(--ink); margin: 0 28px; }
.specimen-kind { font-weight: 600; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; }
.specimen-no { font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; }

.specimen-data { margin: 0; padding: 8px 28px 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.specimen-data > div { padding: 12px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.specimen-data > div:nth-child(-n+2), .specimen-data > .span { grid-column: 1 / -1; }
.specimen-data dt { font-size: 0.75rem; color: var(--ink-3); margin-bottom: 4px; }
.specimen-data dd { margin: 0; font-size: 0.9375rem; }
.hash { color: var(--blue); line-height: 1.55; min-height: 3.1em; }
.hash .ch.is-scramble { color: var(--ink-3); }

.custodia { padding: 20px 28px 0; }
.custodia-title { font-size: 0.75rem; color: var(--ink-3); margin-bottom: 8px; }
.custodia ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 0.875rem; }
.custodia li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; color: var(--ink-2); }
.custodia li span { color: var(--ink); }

.seal { position: absolute; width: 132px; height: 132px; right: 28px; bottom: 20px; color: var(--blue); pointer-events: none; opacity: 0.88; mix-blend-mode: multiply; transform: rotate(-8deg); }
.seal text { font: 600 10.5px var(--f-text); letter-spacing: 0.16em; text-transform: uppercase; fill: currentColor; }
.seal .seal-center { font-size: 15px; letter-spacing: 0.1em; }
.seal circle { fill: none; stroke: currentColor; }
.seal-stamp { opacity: 0; transform: rotate(-8deg) scale(1.22); filter: blur(2px); }
.specimen.is-stamped .seal-stamp {
  opacity: 0.88; transform: rotate(-8deg) scale(1); filter: blur(0);
  transition: opacity 180ms var(--ease-out), transform 260ms var(--ease-out), filter 260ms var(--ease-out);
}
.seal-small { position: static; width: 72px; height: 72px; }

.specimen figcaption { margin-top: 16px; font-size: 0.8125rem; color: var(--ink-3); }

/* Lo studio */

.impegni { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.impegni li {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 6vw, 96px);
  padding: clamp(28px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--rule-strong); align-items: baseline;
}
.impegni h3 { font-weight: 560; font-size: clamp(1.625rem, 1.2rem + 1.5vw, 2.5rem); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.impegni p { color: var(--ink-2); max-width: 30rem; }

/* Domande */

.domande { background: var(--sheet); border-top: 1px solid var(--rule); }
.domande-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.domande-grid > h2 { position: sticky; top: 104px; }

.faq { border-top: 2px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule-strong); }
.faq-item h3 { margin: 0; }
.faq-item button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--ink);
  font: 500 clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem)/1.35 var(--f-text);
}
.faq-icon { flex: none; width: 16px; height: 16px; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor;
  transition: transform 220ms var(--ease-out);
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item button[aria-expanded="true"] .faq-icon::after { transform: rotate(0deg); }
.faq-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms var(--ease-out); }
.faq-panel > div { overflow: hidden; }
.faq-panel p { padding: 0 48px 28px 0; color: var(--ink-2); max-width: 40rem; opacity: 0; transition: opacity 200ms var(--ease-out); }
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }
.faq-item.is-open .faq-panel p { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .faq-item button:hover { color: var(--blue); } }

/* Chiusura */

.chiusura { background: var(--paper); padding: clamp(96px, 12vw, 176px) 0; border-top: 1px solid var(--rule); }
.chiusura-inner { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.chiusura h2 { font-weight: 560; font-size: clamp(2.375rem, 1.3rem + 3.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.028em; text-wrap: balance; }
.chiusura-actions { display: grid; gap: 20px; justify-items: start; }
.chiusura-contacts { font-size: 0.9375rem; color: var(--ink-2); }
.chiusura-contacts a { white-space: nowrap; }

/* Footer */

.site-footer { background: var(--dark); color: var(--on-dark-2); font-size: 0.875rem; }
.footer-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 32px; padding-top: 56px; padding-bottom: 56px; align-items: start; }
.footer-brand { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; color: var(--on-dark); line-height: 1; }
.footer-studio { font-style: normal; line-height: 1.7; }
.footer-studio strong { color: var(--on-dark); font-weight: 600; }
.footer-studio a { color: var(--on-dark); text-decoration: none; white-space: nowrap; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--on-dark); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover, .footer-studio a:hover { text-decoration: underline; } }

/* ---------- Servizi ---------- */

.servizi { border-top: 1px solid var(--rule); }
.servizi-list {
  list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 4vw, 56px);
  counter-reset: servizio;
}
.servizi-list li { padding: 28px 0 32px; border-bottom: 1px solid var(--rule-strong); counter-increment: servizio; }
.servizi-list h3 { font-family: var(--f-display); font-weight: 560; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); line-height: 1.2; letter-spacing: -0.015em; margin-bottom: 10px; }
.servizi-list p { color: var(--ink-2); font-size: 1rem; }

/* ---------- Tariffe ---------- */

.tariffe { background: var(--sheet); border-top: 1px solid var(--rule); }

.flusso {
  list-style: none; margin: 0 0 clamp(40px, 5vw, 64px); padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px);
  font-size: 0.9375rem; color: var(--ink-2);
}
.flusso li { border-top: 1px solid var(--rule-strong); padding-top: 16px; }
.flusso strong { color: var(--ink); font-weight: 600; }
.flusso-n {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px;
  background: var(--ink); color: var(--paper); font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums;
  vertical-align: 1px;
}

.piani { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.piano {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--rule-strong);
  transition: border-color 200ms var(--ease-out), box-shadow 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.piano-featured { background: var(--sheet); border-color: var(--ink); box-shadow: 0 1px 2px rgba(17,17,16,0.04), 0 24px 56px -28px rgba(17,17,16,0.22); }
@media (hover: hover) and (pointer: fine) {
  .piano:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 1px 2px rgba(17,17,16,0.04), 0 28px 56px -28px rgba(17,17,16,0.26); }
}
.piano-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  height: 30px; padding: 0 clamp(20px, 3vw, 32px);
  background: var(--ink); color: var(--paper);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.piano-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 32px); }
.piano h3 { font-family: var(--f-display); font-weight: 560; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); line-height: 1.12; letter-spacing: -0.02em; }
.piano-price { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; }
.piano-amount { font-family: var(--f-display); font-weight: 560; font-size: clamp(3rem, 2.4rem + 2vw, 4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.piano-period { font-size: 0.9375rem; color: var(--ink-3); }
.piano-desc { margin-top: 16px; color: var(--ink-2); max-width: 30rem; }
.piano-list { list-style: none; margin: 24px 0 32px; padding: 0; border-top: 1px solid var(--rule-strong); flex: 1; }
.piano-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.piano-list li::before { content: ""; width: 12px; height: 5px; margin-top: 0.62em; background: var(--ink); }
.piano-featured .piano-list li::before { background: var(--blue); }
.piani-note { margin-top: 24px; font-size: 0.875rem; color: var(--ink-3); max-width: 46rem; }

/* ---------- Approfondimenti ---------- */

.approfondimenti { border-top: 1px solid var(--rule); }
.note { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 6vw, 96px); border-top: 2px solid var(--ink); }
.nota { padding: clamp(28px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--rule-strong); }
.nota h3 { font-family: var(--f-display); font-weight: 560; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 16px; text-wrap: balance; }
.nota p { color: var(--ink-2); max-width: 36rem; text-wrap: pretty; }
.nota p + p { margin-top: 12px; }

/* ---------- Nav: current section ---------- */

.nav a[aria-current="true"] { color: var(--ink); }
.nav a[aria-current="true"]::after { transform: scaleX(1); }

/* ---------- Form feedback ---------- */

.field.is-shake { animation: shake 320ms var(--ease-out); }
@keyframes shake {
  20% { transform: translateX(-4px); }
  45% { transform: translateX(3px); }
  70% { transform: translateX(-2px); }
}
.btn-label { transition: filter 200ms var(--ease-out), opacity 200ms var(--ease-out); }
.btn.is-loading .btn-label { filter: blur(1px); opacity: 0.75; }

/* ---------- Subpages: legal documents and checkout ---------- */

.subpage-header .header-row { justify-content: space-between; }
.back-link { font-size: 0.9375rem; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.back-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .back-link:hover { color: var(--ink); } .back-link:hover svg { transform: translateX(-3px); } }

.doc { padding: clamp(48px, 7vw, 104px) 0 var(--section); }
.doc-inner { max-width: 46rem; }
.doc h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); }
.doc-meta { margin-top: 16px; color: var(--ink-3); font-size: 0.9375rem; }
.doc h2 { font-family: var(--f-display); font-weight: 560; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); letter-spacing: -0.015em; line-height: 1.2; margin: 48px 0 12px; padding-top: 20px; border-top: 2px solid var(--ink); }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 12px 0 0; }
.doc li + li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.9375rem; }
.doc th, .doc td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule-strong); vertical-align: top; }
.doc thead th { border-bottom: 2px solid var(--ink); font-size: 0.8125rem; color: var(--ink-3); }

.checkout { padding: clamp(40px, 6vw, 88px) 0 var(--section); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.checkout h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); }
.checkout-lede { margin-top: 20px; color: var(--ink-2); font-size: 1.125rem; max-width: 32rem; }
.riepilogo { background: var(--sheet); border: 1px solid var(--rule-strong); box-shadow: 0 1px 2px rgba(17,17,16,0.04), 0 24px 56px -28px rgba(17,17,16,0.22); position: sticky; top: 104px; }
.riepilogo-body { padding: 24px clamp(20px, 3vw, 28px) 28px; }
.riepilogo h2 { font-family: var(--f-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.015em; }
.riepilogo .piano-list { margin: 20px 0 0; }
.totale { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 20px; margin-top: 4px; border-top: 2px solid var(--ink); }
.totale span:first-child { font-weight: 600; }
.totale-amount { font-family: var(--f-display); font-weight: 560; font-size: 2.25rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.totale-amount small { font-family: var(--f-text); font-size: 0.9375rem; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
.riepilogo-note { margin-top: 12px; font-size: 0.8125rem; color: var(--ink-3); }

.checkout-form { margin-top: 40px; display: grid; gap: 20px; }
.checkout-form .field-check .check { color: var(--ink-2); }
.pay-btn { transition: background-color 160ms var(--ease-out), transform 120ms var(--ease-out), opacity 200ms var(--ease-out); }
.pay-btn[aria-disabled="true"] { opacity: 0.38; cursor: not-allowed; }
.pay-btn[aria-disabled="true"]:active { transform: none; }
.pay-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pay-safe { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--ink-3); }
.pay-safe svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; flex: none; }
.altro-piano { margin-top: 32px; font-size: 0.9375rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .servizi-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .flusso { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .piani, .note, .checkout-grid { grid-template-columns: minmax(0, 1fr); }
  .riepilogo { position: relative; top: 0; }
}
@media (max-width: 600px) {
  .servizi-list, .flusso { grid-template-columns: minmax(0, 1fr); }
  .piano-bar span:last-child { display: none; }
}

/* ---------- Cristallo page ---------- */

.subpage-header .header-actions { gap: 24px; }
.cr-lede-2 { margin-top: 16px; }

.fascicolo { margin: 0; background: var(--sheet); border: 1px solid var(--rule-strong); box-shadow: 0 1px 2px rgba(17,17,16,0.04), 0 24px 56px -28px rgba(17,17,16,0.22); }
.fascicolo-state { transition: color 200ms var(--ease-out); }
.fascicolo-body { padding: 20px clamp(20px, 3vw, 28px) 24px; }
.fascicolo-title { font-size: 0.75rem; color: var(--ink-3); margin-bottom: 6px; }
.fascicolo-files { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.fascicolo-files li { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.ff-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ff-hash { font-size: 0.75rem; color: var(--ink-3); word-break: normal; white-space: nowrap; }
.ff-seal { width: 14px; height: 6px; background: var(--ink); transform: scaleX(0); transform-origin: left center; transition: transform 260ms var(--ease-out); }
.fascicolo.is-sealed .ff-seal { transform: scaleX(1); }
.fascicolo-files li:nth-child(2) .ff-seal { transition-delay: 60ms; }
.fascicolo-files li:nth-child(3) .ff-seal { transition-delay: 120ms; }
.fascicolo-files li:nth-child(4) .ff-seal { transition-delay: 180ms; }
.fascicolo-files li:nth-child(5) .ff-seal { transition-delay: 240ms; }
.fascicolo-files li:nth-child(6) .ff-seal { transition-delay: 300ms; }
.fascicolo-files li:nth-child(7) .ff-seal { transition-delay: 360ms; }
.fascicolo-files li:nth-child(8) .ff-seal { transition-delay: 420ms; }
.fascicolo-foot { margin-top: 14px; font-size: 0.8125rem; color: var(--ink-2); }
.fascicolo figcaption { padding: 0 clamp(20px, 3vw, 28px) 18px; font-size: 0.75rem; color: var(--ink-3); }

.cr-perche { border-top: 1px solid var(--rule); }
.cr-narrow { max-width: 16em; margin-bottom: clamp(40px, 5vw, 64px); }
.cr-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.cr-duo-item { border-top: 1px solid var(--rule-strong); padding-top: 24px; }
.cr-duo-item.is-strong { border-top: 2px solid var(--ink); }
.cr-duo-item h3 { font-family: var(--f-display); font-weight: 560; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 12px; }
.cr-duo-item:not(.is-strong) h3 { color: var(--ink-3); }
.cr-duo-item p { color: var(--ink-2); max-width: 34rem; }

.procedura { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 52rem; }
.procedura li { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding: 24px 0; border-top: 1px dashed rgba(245,245,242,0.28); position: relative; }
.procedura li::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; border-top: 1px solid var(--on-dark); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out); }
.procedura li.is-done::before { transform: scaleX(1); }
.proc-n { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--on-dark-2); font-size: 0.8125rem; font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out), border-color 240ms var(--ease-out); }
.procedura li.is-done .proc-n { background: var(--on-dark); color: var(--dark); border-color: var(--on-dark); }
.procedura h3 { font-family: var(--f-display); font-weight: 560; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); letter-spacing: -0.015em; line-height: 1.2; margin-bottom: 6px; }
.procedura p { color: var(--on-dark-2); max-width: 38rem; }

.cr-contenuto { background: var(--sheet); }
.cr-table { width: 100%; border-collapse: collapse; }
.cr-table th, .cr-table td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule-strong); vertical-align: top; }
.cr-table thead th { font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid var(--ink); padding-top: 0; }
.cr-table tbody th { font-weight: 600; width: 50%; }
.cr-table td { color: var(--ink-2); }

.cr-integrita { border-top: 1px solid var(--rule); }
.cr-integrita-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.cr-mt { margin-top: 28px; }
.cr-points { list-style: none; margin: 40px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.cr-points li { padding: 20px 0; border-bottom: 1px solid var(--rule-strong); }
.cr-points h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 4px; }
.cr-points p { color: var(--ink-2); font-size: 1rem; }

.catena { margin: 0; position: sticky; top: 104px; background: var(--sheet); border: 1px solid var(--rule-strong); box-shadow: 0 1px 2px rgba(17,17,16,0.04), 0 24px 56px -28px rgba(17,17,16,0.22); }
.catena .modulo-bar { transition: background-color 240ms var(--ease-out); }
.catena.is-broken .modulo-bar { background: var(--error); }
.catena-list { list-style: none; margin: 0; padding: 8px clamp(20px, 3vw, 28px) 0; }
.catena-op { padding: 14px 0 14px 18px; border-bottom: 1px solid var(--rule); position: relative; }
.catena-op::before { content: ""; position: absolute; left: 4px; top: 20px; bottom: -20px; width: 2px; background: var(--ink); transition: background-color 240ms var(--ease-out); }
.catena-op:last-child::before { bottom: 18px; }
.catena-op::after { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 10px; background: var(--ink); transition: background-color 240ms var(--ease-out); }
.op-head { font-size: 0.9375rem; font-weight: 500; }
.op-head .tnum { color: var(--ink-3); margin-right: 6px; font-weight: 400; }
.op-hash { font-size: 0.8125rem; color: var(--ink-3); display: flex; gap: 8px; margin-top: 2px; }
.op-hash span:first-child { width: 72px; flex: none; }
.op-hash .mono { color: var(--ink); font-size: 0.8125rem; transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out); padding: 0 3px; margin: 0 -3px; }
.catena-op.is-altered [data-own], .catena-op.is-altered [data-op-text] { color: var(--error); background: rgba(163,23,43,0.08); }
.catena-op.is-mismatch [data-prev] { color: var(--error); background: rgba(163,23,43,0.08); text-decoration: line-through; }
.catena.is-broken .catena-op[data-op="3"]::before, .catena.is-broken .catena-op[data-op="2"]::before { width: 0; background: none; border-left: 2px dashed var(--error); }
.catena.is-broken .catena-op.is-altered::after, .catena.is-broken .catena-op.is-mismatch::after { background: var(--error); }
.catena-actions { padding: 20px clamp(20px, 3vw, 28px) 8px; display: grid; gap: 12px; justify-items: start; }
.catena-btn[aria-pressed="true"] { --btn-bg: var(--paper-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule-strong); }
@media (hover: hover) and (pointer: fine) { .catena-btn[aria-pressed="true"]:hover { --btn-bg: #e2e2dc; } }
.catena-msg { font-size: 0.875rem; color: var(--ink-2); min-height: 3em; }
.catena.is-broken .catena-msg { color: var(--error); }
.catena figcaption { padding: 0 clamp(20px, 3vw, 28px) 18px; font-size: 0.75rem; color: var(--ink-3); }

.cr-dove { background: var(--paper-2); }
.piattaforme { margin: 0; border-top: 2px solid var(--ink); }
.piattaforme > div { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule-strong); align-items: baseline; }
.piattaforme dt { font-family: var(--f-display); font-weight: 560; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem); letter-spacing: -0.015em; }
.piattaforme dd { margin: 0; color: var(--ink-2); font-size: 1.0625rem; }

.scheda { margin: 0; border-top: 2px solid var(--ink); }
.scheda > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--rule-strong); }
.scheda dt { font-weight: 600; font-size: 0.9375rem; }
.scheda dd { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
.cr-scheda { border-top: 1px solid var(--rule); }

.prova-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.prova-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .prova-link:hover svg { transform: translateX(3px); } }

@media (max-width: 900px) {
  .cr-duo, .cr-integrita-grid { grid-template-columns: minmax(0, 1fr); }
  .catena { position: relative; top: 0; }
  .piattaforme > div, .scheda > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 600px) {
  .subpage-header .back-link { display: none; }
  .ff-hash { display: none; }
  .fascicolo-files li { grid-template-columns: minmax(0, 1fr) 18px; }
  .cr-table tbody th { width: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) { .nav { display: none; } }

@media (max-width: 900px) {
  .hero-grid, .section-head, .prova-grid, .domande-grid, .chiusura-inner { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: start; }
  .rail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 48px; }
  .rail::before { display: none; }
  .rail-step { border-top: 1px dashed rgba(245,245,242,0.32); padding-top: 36px; }
  .rail-step.is-solid { border-top: 1px solid var(--on-dark); }
  .rail-step.is-solid::before { display: none; }
  .rail-mark { top: -14px; }
  .specimen { position: relative; top: 0; }
  .domande-grid > h2 { position: static; }
  .registro-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .registro-azioni { text-align: left; margin-top: 4px; }
  .impegni li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .footer-row { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .header-phone { display: none; }
  .header-row { height: 64px; gap: 16px; }
  html { scroll-padding-top: 76px; }
  .brand-name, .brand-bar { font-size: 1.25rem; }
  .btn-small { padding: 0 12px; min-height: 36px; font-size: 0.875rem; }
  h1 { font-size: clamp(2.25rem, 1rem + 6.4vw, 2.75rem); }
  .hero { padding-top: 28px; }
  .hero-lede { font-size: 1rem; margin-top: 20px; }
  .hero-assurances { display: none; }
  .hero-grid { gap: 28px; }
  .modulo-note { display: block; }
  .modulo-head h2 { font-size: 1.25rem; }
  .serp { padding: 16px; }
  .rail { grid-template-columns: minmax(0, 1fr); }
  .specimen-data { grid-template-columns: minmax(0, 1fr); }
  .specimen-data > div { grid-column: 1 / -1; }
  .seal { width: 104px; height: 104px; right: 12px; bottom: 12px; }
  .custodia li { grid-template-columns: 64px 1fr; }
  .confronto th, .confronto td { padding-right: 8px; font-size: 0.875rem; }
  .faq-panel p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .field.is-shake { animation: none; }
  .piano:hover { transform: none; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
}
.checkout-form .error:empty { display: none; }
@media (max-width: 600px) { .hide-sm { display: none; } }

/* ==========================================================================
   Premium pass: dark opening, paper grain, dossier depth, wordmark closure
   ========================================================================== */

:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.07 0 0 0 0 0.06 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --blue-on-dark: #a3afff;
}

/* Paper grain: a fixed, barely-there tooth over the whole page */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: var(--grain); opacity: 0.07;
}

/* Bigger, more confident display scale */
.display-l { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.03em; }
h1 { letter-spacing: -0.032em; }

/* ---------- Dark opening ---------- */

.hero-dark { background: var(--dark); color: var(--on-dark); margin-top: -72px; padding-top: calc(72px + clamp(48px, 7vw, 104px)); padding-bottom: clamp(88px, 10vw, 152px); }
.hero-dark ::selection { background: var(--on-dark); color: var(--dark); }
.hero-dark .h1-second { color: #8f8f87; }
.hero-dark .hero-lede { color: var(--on-dark-2); }
.hero-dark .hero-assurances { color: var(--on-dark); }
.hero-dark .hero-assurances svg { stroke: var(--blue-on-dark); }
.hero-dark .omissis::before { background: var(--on-dark); }
.hero-dark .omissis > span { animation-name: knockout-dark; }
@keyframes knockout-dark { from { color: var(--on-dark); } to { color: var(--dark); } }

.hero-dark .modulo, .hero-dark .fascicolo {
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 2px 4px rgba(0,0,0,0.3), 0 48px 96px -32px rgba(0,0,0,0.7);
}

/* Header rides on the dark opening, then settles on paper */
.site-header { transition: background-color 280ms var(--ease-out), color 280ms var(--ease-out), border-color 240ms var(--ease-out); }
.site-header.on-dark { background: var(--dark); color: var(--on-dark); border-bottom-color: rgba(245,245,242,0.08); }
.site-header.on-dark .brand-bar { background: var(--on-dark); }
.site-header.on-dark .nav a, .site-header.on-dark .back-link { color: var(--on-dark-2); }
@media (hover: hover) and (pointer: fine) {
  .site-header.on-dark .nav a:hover, .site-header.on-dark .back-link:hover { color: var(--on-dark); }
}
.site-header.on-dark .btn-small { --btn-bg: var(--on-dark); color: var(--dark); }
@media (hover: hover) and (pointer: fine) { .site-header.on-dark .btn-small:hover { --btn-bg: #ffffff; } }
.brand-bar { transition: background-color 280ms var(--ease-out); }

/* ---------- Scena: the search card as a physical dossier ---------- */

.scena { background: var(--paper-2); }
.scena .serp { position: relative; padding: 28px 30px 22px; box-shadow: 0 2px 4px rgba(17,17,16,0.05), 0 40px 80px -36px rgba(17,17,16,0.32); border-color: rgba(17,17,16,0.18); }
.scena .serp::before, .scena .serp::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sheet); border: 1px solid rgba(17,17,16,0.14);
}
.scena .serp::before { transform: rotate(-2.2deg) translate(-10px, 8px); box-shadow: 0 20px 40px -24px rgba(17,17,16,0.25); }
.scena .serp::after { transform: rotate(1.4deg) translate(8px, 4px); }
.scena-grid { isolation: isolate; }
.scena .serp-title { font-size: 1.1875rem; }
.scena .serp-snip { font-size: 0.9375rem; }
.scena .serp-query { padding: 12px 18px; font-size: 1rem; box-shadow: 0 1px 6px rgba(17,17,16,0.08); border-color: rgba(17,17,16,0.12); }
.scena-copy .display-l { font-size: clamp(2.25rem, 1.2rem + 3vw, 4rem); }
.scena-step h3 { font-size: 1.5rem; }

/* ---------- Footer: the wordmark closes the page ---------- */

.footer-mark {
  display: flex; align-items: center; gap: 0.12em;
  margin: 0; padding: 8px 0 clamp(24px, 3vw, 40px);
  font-family: var(--f-display); font-weight: 600; letter-spacing: -0.045em; line-height: 0.8;
  font-size: clamp(4.5rem, 1rem + 17vw, 17rem); color: var(--on-dark);
  border-top: 1px solid rgba(245,245,242,0.12);
  user-select: none;
}
.footer-mark span { display: block; width: 0.9em; height: 0.56em; background: var(--on-dark); transform: translateY(0.02em); }
.footer-row { padding-bottom: clamp(40px, 5vw, 64px); }

@media (max-width: 600px) {
  .hero-dark { margin-top: -64px; padding-top: calc(64px + 32px); }
  .scena .serp { padding: 20px 18px 16px; }
  .scena .serp::before { transform: rotate(-1.6deg) translate(-4px, 6px); }
  .scena .serp::after { transform: rotate(1deg) translate(4px, 3px); }
}
.hero-dark .modulo, .hero-dark .fascicolo { color: var(--ink); }
.hero-dark .modulo ::selection, .hero-dark .fascicolo ::selection { background: var(--ink); color: var(--paper); }
.footer-mark span { width: 1.05em; height: 0.48em; align-self: flex-end; margin-bottom: 0.1em; }
.footer-mark span { flex: none; } .footer-mark { font-size: clamp(4rem, 0.5rem + 15vw, 15rem); }

/* ---------- Hero copy: what we do, at a glance ---------- */

#hero-title { text-wrap: balance; max-width: 13em; font-size: clamp(2.5rem, 1.3rem + 4vw, 5rem); line-height: 1.02; }
.hero-claim {
  margin-top: clamp(24px, 3vw, 36px); max-width: 30em;
  font-family: var(--f-display); font-weight: 400; font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); line-height: 1.4; letter-spacing: -0.012em;
  color: var(--on-dark-2); text-wrap: pretty;
}
.hero-claim .omissis { color: var(--on-dark); margin: 0 0.02em; }
.hero-claim .omissis::before { inset: 0.14em 0 0.06em; animation-delay: 700ms; }
.hero-claim .omissis > span { animation-delay: 1040ms; }
.hero-dark .hero-assurances { flex-direction: column; gap: 12px; margin-top: clamp(28px, 3.5vw, 44px); max-width: 34rem; }
.hero-dark .hero-assurances li { align-items: flex-start; line-height: 1.45; }
.hero-dark .hero-assurances svg { margin-top: 3px; flex: none; }
@media (max-width: 600px) {
  .hero-dark .hero-assurances { display: flex; }
  .modulo-note { display: none; }
}

/* ---------- Thank-you and reserved area ---------- */

.grazie-lede { margin-top: 20px; font-family: var(--f-display); font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink-2); }
.grazie-ref { margin-top: 24px; display: inline-flex; gap: 10px; align-items: baseline; padding: 10px 14px; background: var(--ink); color: var(--paper); font-size: 0.9375rem; }
.grazie-ref .serial { color: #fff; font-weight: 600; }
.grazie-steps { list-style: none; margin: 48px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.grazie-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--rule-strong); }
.grazie-steps strong { display: block; font-family: var(--f-display); font-weight: 560; font-size: 1.25rem; letter-spacing: -0.015em; margin-bottom: 2px; color: var(--ink); }
.grazie-steps p { margin: 0; }
.grazie-steps .flusso-n { margin-top: 4px; }
.grazie-note { margin-top: 32px; }
.grazie-back { margin-top: 24px; }
.doc .grazie-steps p, .doc .area-body p { color: var(--ink-2); }

.area-card { margin-top: 40px; background: var(--sheet); border: 1px solid var(--rule-strong); box-shadow: 0 1px 2px rgba(17,17,16,0.04), 0 24px 56px -28px rgba(17,17,16,0.22); }
.area-body { padding: 24px clamp(20px, 3vw, 28px) 28px; display: grid; gap: 14px; }
.doc .area-body h2 { margin: 0; padding: 0; border: 0; font-size: 1.5rem; }
.area-body .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .area-body .btn:hover svg { transform: translateX(3px); } }
.area-body .error:empty { display: none; }
.doc .grazie-ref { color: var(--on-dark-2); }

/* ---------- Scena, scroll-scrubbed (desktop) ---------- */

.scena { height: 250vh; }
.scena-sticky { position: sticky; }
.scena.is-scrub .serp { will-change: transform; }
.scena.is-scrub .redact { transition: color 360ms var(--ease-out); }
.scena.is-scrub .serp-item { transition: none; }
.scena.is-scrub .serp-item.is-striking .serp-flag { opacity: 0.35; }

.scena .serp::before { transform: rotate(calc(-1deg - var(--fan, 0.5) * 2.6deg)) translate(calc(-3px - var(--fan, 0.5) * 16px), calc(3px + var(--fan, 0.5) * 9px)); }
.scena .serp::after { transform: rotate(calc(0.5deg + var(--fan, 0.5) * 2deg)) translate(calc(2px + var(--fan, 0.5) * 12px), calc(2px + var(--fan, 0.5) * 4px)); }

.scena-track { position: relative; }
.scena-rail { display: none; }
.scena.is-scrub .scena-track { padding-left: 28px; }
.scena.is-scrub .scena-rail { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--rule-strong); }
.scena-rail span { display: block; height: 100%; background: var(--ink); transform-origin: top; transform: scaleY(0); }

.scena-hint {
  display: none; position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3);
  pointer-events: none; white-space: nowrap;
}
.scena.is-scrub .scena-hint { display: inline-flex; }
.scena-hint svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; animation: hint-bob 1.6s var(--ease-in-out) infinite; }
@keyframes hint-bob { 50% { transform: translateY(4px); } }

/* ---------- Legal documents hub ---------- */

.doc-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: clamp(32px, 4vw, 48px); }
.doc-nav a {
  padding: 7px 12px; font-size: 0.8125rem; font-weight: 600; text-decoration: none; color: var(--ink-2);
  border: 1px solid var(--rule-strong);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.doc-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .doc-nav a:not([aria-current]):hover { border-color: var(--ink); color: var(--ink); } }
.doc-steps { padding-left: 1.3em; margin: 12px 0 0; }
.doc-steps li + li { margin-top: 8px; }
.doc table tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.placeholder { background: rgba(163, 23, 43, 0.08); color: var(--error); padding: 0 4px; font-weight: 600; }

.valori-list { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; border-top: 2px solid var(--ink); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 96px); }
.valori-list li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; padding: clamp(28px, 3.5vw, 40px) 0; border-bottom: 1px solid var(--rule-strong); }
.valori-n { grid-row: span 2; width: 28px; height: 28px; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; margin-top: 4px; }
.doc .valori-list h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); line-height: 1.12; letter-spacing: -0.02em; }
.valori-list p { color: var(--ink-2); max-width: 34rem; }
.valori-close { margin-top: clamp(40px, 5vw, 64px); }
.valori-close p + p { margin-top: 20px; }
.footer-links { flex-wrap: wrap; gap: 10px 24px; max-width: 30rem; justify-content: flex-end; }
@media (max-width: 900px) {
  .valori-list { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
}
.omissis-static { background: var(--ink); color: var(--paper); padding: 0 0.12em; }
