/* Draftneer: un tavolo da disegno di notte. Fondo blu notte, fogli bianchi, linee di quota blu;
   i contenuti stanno su una griglia come i campi di un cartiglio. */
:root {
  color-scheme: dark;
  --ground: #06121E;
  --ground-2: #0A1B2C;
  --ground-3: #0F2539;
  --rule: #1B3550;
  --rule-strong: #2A4D70;
  --ink: #E9EFF6;
  --ink-2: #A6B7C9;
  --ink-3: #7189A2;
  --blue: #057AF9;
  --blue-bright: #4FA3FF;
  --sheet: #FFFFFF;
  --sheet-ink: #0B1622;
  --ok: #3FCF8E;
  --warn: #F2B544;

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --step-3: clamp(2rem, 1.3rem + 3vw, 3.5rem);

  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Griglia del foglio millimetrato, solo in alto. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1100px;
  background-image:
    linear-gradient(to right, rgba(79, 163, 255, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(79, 163, 255, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-bright); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: var(--step-3); line-height: 1.08; }
h2 { font-size: var(--step-2); line-height: 1.15; font-weight: 500; }
h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 600; }
p { margin: 0; }
.lead { font-size: 1.1875rem; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--font-mono); }

.wrap { position: relative; z-index: 1; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* Etichetta di sezione con una piccola linea di quota davanti. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 9px;
  background:
    linear-gradient(var(--blue-bright), var(--blue-bright)) left center / 1px 9px no-repeat,
    linear-gradient(var(--blue-bright), var(--blue-bright)) right center / 1px 9px no-repeat,
    linear-gradient(var(--blue-bright), var(--blue-bright)) center / 100% 1px no-repeat;
  opacity: 0.85;
}

/* ------------------------------------------------------------------ testata */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: rgba(6, 18, 30, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 22px; width: auto; }
@media (max-width: 420px) {
  .site-header .wrap { gap: 12px; }
  .brand img { height: 19px; }
}
/* Le voci stanno su una riga sola: dove non c'è posto per tutte (sotto i 1200 px) il menu diventa a comparsa. */
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 0.9rem; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a.lang { font: 500 0.78rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 3px 8px; align-self: center; }
.nav a.lang:hover { color: var(--ink); border-color: var(--blue-bright); }
@media (max-width: 1199px) { .nav a.lang { border: 0; padding: 12px 0; border-bottom: 1px solid var(--rule); align-self: stretch; } }
.site-header .btn { flex: none; }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 8px 12px;
  font: 500 0.9rem var(--font-body);
}
@media (max-width: 1199px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--ground-2);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 16px;
  }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.95rem; }
  .site-header:not(.open) .nav { display: none; }
}
/* Sul telefono accanto al logo resta solo il menu: il pulsante della testata lo ripete già la pagina. */
@media (max-width: 640px) { .site-header .btn { display: none; } }

/* ------------------------------------------------------------------ pulsanti */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  font: 600 0.98rem var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #2C8DFA; color: #fff; }
.btn-ghost { border-color: var(--rule-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--blue-bright); color: var(--ink); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }

/* ------------------------------------------------------------------ apertura */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--blue-bright); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-2); max-width: 30em; }
.hero-note svg { flex: none; margin-top: 3px; }

/* Il foglio con le sue quote: 420 × 297 come un A3. */
.drafting { position: relative; padding: 44px 0 0 46px; min-width: 0; }
.dim {
  position: absolute;
  color: var(--blue-bright);
  font: 500 0.78rem var(--font-mono);
  letter-spacing: 0.04em;
}
.dim-h { left: 46px; right: 0; top: 10px; height: 18px; display: flex; justify-content: center; }
.dim-h::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 1px solid currentColor;
}
.dim-h::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0; bottom: -26px;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
  opacity: 0.6;
}
.dim-h span { position: relative; background: var(--ground); padding: 0 8px; line-height: 18px; }
.dim-v { top: 44px; bottom: 0; left: 8px; width: 18px; display: flex; align-items: center; justify-content: center; }
.dim-v::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  border-left: 1px solid currentColor;
}
.dim-v::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0; right: -28px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.6;
}
.dim-v span { position: relative; background: var(--ground); padding: 8px 0; writing-mode: vertical-rl; transform: rotate(180deg); }
.arrow { position: absolute; width: 0; height: 0; border: 4px solid transparent; }
.dim-h .a1 { left: 0; top: 5px; border-right: 8px solid currentColor; border-left: 0; }
.dim-h .a2 { right: 0; top: 5px; border-left: 8px solid currentColor; border-right: 0; }
.dim-v .a1 { top: 0; left: 5px; border-bottom: 8px solid currentColor; border-top: 0; }
.dim-v .a2 { bottom: 0; left: 5px; border-top: 8px solid currentColor; border-bottom: 0; }

.sheet {
  position: relative;
  background: var(--sheet);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 60px -20px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.sheet img { width: 100%; aspect-ratio: 420 / 297; object-fit: contain; }
button.sheet { padding: 0; border: 0; cursor: zoom-in; width: 100%; display: block; }
button.sheet:hover { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 2px var(--blue); }

.hero .sheet { animation: sheet-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes sheet-in {
  from { transform: translateY(14px); filter: saturate(0.6); }
  to { transform: none; filter: none; }
}
/* Una linea che passa sul foglio, come una stampa che esce. */
.hero .sheet::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 30%;
  background: linear-gradient(to bottom, rgba(5, 122, 249, 0), rgba(5, 122, 249, 0.12) 85%, rgba(5, 122, 249, 0.55) 99%, rgba(5, 122, 249, 0));
  animation: scan 3.2s 0.6s ease-in-out 1 both;
  pointer-events: none;
}
@keyframes scan {
  from { transform: translateY(-100%); opacity: 1; }
  80% { opacity: 1; }
  to { transform: translateY(340%); opacity: 0; }
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--ground-2);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  font-size: 0.9rem;
  color: var(--ink);
  white-space: nowrap;
}
.chip-button { right: -14px; top: 30%; }
.chip-button .icon { width: 30px; height: 30px; border-radius: 6px; background: var(--ground); display: grid; place-items: center; border: 1px solid var(--rule-strong); }
.chip-button strong { font-weight: 600; }
.chip-button .cursor { position: absolute; right: 18px; bottom: -18px; width: 22px; height: 22px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); animation: click 2.6s 1.2s ease-in-out infinite; }
@keyframes click {
  0%, 70%, 100% { transform: translate(0, 0) scale(1); }
  78% { transform: translate(-3px, -3px) scale(0.92); }
}
.chip-info { left: 20px; bottom: -18px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink-2); }
.chip-info b { color: var(--ok); font-weight: 500; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .drafting { padding: 36px 0 0 34px; margin-top: 8px; }
  .dim-h { left: 34px; top: 6px; }
  .dim-v { top: 36px; left: 2px; }
  .chip-button { right: 8px; top: auto; bottom: 26%; }
}
@media (max-width: 520px) {
  .chip-info { display: none; }
  .chip-button { font-size: 0.82rem; padding: 8px 10px; }
}

/* Il modello 3D da cui nasce la tavola, appoggiato in basso a sinistra del foglio. */
.model-card {
  position: absolute;
  left: -18px;
  bottom: -34px;
  width: 38%;
  padding: 10px 12px 8px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0D2236, #08182A);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.85);
  display: grid;
  gap: 4px;
}
.model-card img { width: 100%; height: auto; }
.model-card span { font: 500 0.72rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.model-card span b { color: var(--blue-bright); font-weight: 500; }
.hero .chip-info { left: auto; right: 20px; }
@media (max-width: 900px) {
  .model-card { left: 0; bottom: -28px; width: 42%; }
}
@media (max-width: 520px) {
  .model-card { width: 46%; padding: 6px 8px; }
}

/* Il modello accanto alla tavola, nelle schede dei tipi di pezzo. */
.model-thumb { width: min(220px, 70%); margin-bottom: 14px; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.55)); }

/* Video della ripresa in Inventor. */
.video { margin-top: clamp(28px, 4vw, 44px); display: grid; gap: 10px; }
.video video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ground-2); border: 1px solid var(--rule-strong); border-radius: var(--radius); }
.video p { font: 500 0.78rem var(--font-mono); letter-spacing: 0.04em; color: var(--ink-3); text-transform: uppercase; }

/* ------------------------------------------------------------------ fatti */
.facts { border-block: 1px solid var(--rule); background: var(--ground-2); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: 22px 24px 22px 0; display: grid; gap: 4px; min-width: 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--rule); }
.fact strong { font-family: var(--font-mono); font-weight: 500; font-size: 1.05rem; color: var(--ink); letter-spacing: 0.01em; }
.fact span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 760px) {
  .facts .wrap { grid-template-columns: minmax(0, 1fr); }
  .fact { padding: 16px 0; }
  .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
}

/* ------------------------------------------------------------------ sezioni */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-head { display: grid; gap: 16px; max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }

/* Come funziona: tre passi in fila. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); }
.step { padding: 28px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.step + .step { border-left: 1px solid var(--rule); }
.step-num { font: 500 0.8rem var(--font-mono); color: var(--ink-3); letter-spacing: 0.08em; }
.step svg { width: 44px; height: 44px; color: var(--blue-bright); }
.step p { color: var(--ink-2); }
.step kbd {
  font: 500 0.9em var(--font-body);
  color: var(--ink);
  background: var(--ground-3);
  border: 1px solid var(--rule-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
  padding: 1px 6px;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step + .step { border-left: 0; border-top: 1px solid var(--rule); }
}

/* Cosa disegna: schede con la tavola vera. */
.kinds { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.tablist { display: grid; gap: 2px; position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px); }
.tab {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink-2);
  font: 500 1rem var(--font-body);
  cursor: pointer;
}
.tab .tag { font: 500 0.72rem var(--font-mono); color: var(--ink-3); letter-spacing: 0.06em; width: 2.6em; }
.tab:hover { color: var(--ink); background: var(--ground-2); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--ground-2); border-color: var(--rule-strong); }
.tab[aria-selected="true"] .tag { color: var(--blue-bright); }
.panel { display: grid; gap: 24px; min-width: 0; }
.panel[hidden] { display: none; }
.panel-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.panel-body h3 { margin-bottom: 10px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.45em;
  width: 12px; height: 12px;
  border: 1.5px solid var(--blue-bright);
  border-radius: 50%;
  background:
    linear-gradient(var(--blue-bright), var(--blue-bright)) center / 1.5px 100% no-repeat,
    linear-gradient(var(--blue-bright), var(--blue-bright)) center / 100% 1.5px no-repeat;
}
.ticks li strong { color: var(--ink); font-weight: 600; }
.caption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font: 500 0.78rem var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.caption b { color: var(--ink-2); font-weight: 500; }
.caption a { color: var(--blue-bright); text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-size: 0.9rem; }
@media (max-width: 900px) {
  .kinds { grid-template-columns: minmax(0, 1fr); }
  .tablist { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: thin; }
  .tab { flex: none; grid-template-columns: auto; padding: 10px 14px; border-color: var(--rule); }
  .tab .tag { display: none; }
  .panel-body { grid-template-columns: minmax(0, 1fr); }
}

/* Tavole in blocco: un ventaglio di fogli e la lista di taglio. */
.batch { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.batch-copy { display: grid; gap: 20px; min-width: 0; }
/* L'assieme grande, sotto le tavole dei suoi pezzi collegate da una linea come in un albero di distinta. */
.set { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; min-width: 0; }
.set > .sheet:first-child { grid-column: 1 / -1; }
.set-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font: 500 0.75rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.set-label::after { content: ""; flex: 1; border-top: 1px dashed var(--rule-strong); }
.set .sheet { transition: transform 0.2s, box-shadow 0.2s; }
.set .sheet:hover { transform: translateY(-2px); }
.cutlist { margin-top: 24px; border: 1px solid var(--rule); border-radius: var(--radius); overflow-x: auto; background: var(--ground-2); }
.cutlist table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; min-width: 460px; }
.cutlist td.note { white-space: normal; color: var(--ink-2); }
.cutlist caption { text-align: left; padding: 12px 16px; font: 500 0.78rem var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.cutlist th, .cutlist td { padding: 9px 16px; text-align: left; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.cutlist th { font: 500 0.75rem var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.cutlist td.num, .cutlist th.num { text-align: right; }
.cutlist tr:last-child td { border-bottom: 0; }
.cutlist td:first-child { color: var(--ink); }
@media (max-width: 900px) {
  .batch { grid-template-columns: minmax(0, 1fr); }
}

/* Il tuo standard: un quadro di impostazioni come i campi di un cartiglio. */
.profile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.field { padding: 22px 22px 24px; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); display: grid; gap: 8px; align-content: start; min-width: 0; }
.field-label { font: 500 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.field-value { font-weight: 600; font-size: 1.08rem; color: var(--ink); }
.field p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 900px) { .profile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .profile { grid-template-columns: minmax(0, 1fr); } }

/* Fasce con fotografia. */
.photo-band { position: relative; overflow: hidden; border-block: 1px solid var(--rule); }
.photo-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-band::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.photo-band.right::before { background: linear-gradient(90deg, rgba(6, 18, 30, 0.15) 0%, rgba(6, 18, 30, 0.55) 45%, rgba(6, 18, 30, 0.94) 62%); }
.photo-band.left::before { background: linear-gradient(270deg, rgba(6, 18, 30, 0.1) 0%, rgba(6, 18, 30, 0.6) 45%, rgba(6, 18, 30, 0.95) 65%); }
.photo-band .wrap { position: relative; z-index: 2; display: grid; padding-block: clamp(80px, 11vw, 150px); }
.photo-band.right .band-copy { justify-self: end; }
.band-copy { max-width: 31rem; display: grid; gap: 18px; }
.band-copy p { color: var(--ink-2); }
.band-copy .ticks li { color: var(--ink); }
@media (max-width: 760px) {
  .photo-band > img { position: relative; height: 240px; }
  .photo-band::before { display: none; }
  .photo-band .wrap { padding-block: 32px 56px; }
  .photo-band.right .band-copy { justify-self: start; }
}

/* Onestà: cosa non fa ancora. */
.limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.limit { padding: 22px 24px; border: 1px dashed var(--rule-strong); border-radius: var(--radius); display: grid; gap: 8px; align-content: start; }
.limit h3 { font-size: 1.05rem; }
.limit p { color: var(--ink-2); font-size: 0.97rem; }
@media (max-width: 760px) { .limits { grid-template-columns: minmax(0, 1fr); } }

/* Domande frequenti. */
.faq { display: grid; border-top: 1px solid var(--rule); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px; top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  background:
    linear-gradient(var(--blue-bright), var(--blue-bright)) center / 100% 2px no-repeat,
    linear-gradient(var(--blue-bright), var(--blue-bright)) center / 2px 100% no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 44rem; }

/* Prova pilota. */
.pilot { background: var(--ground-2); border-top: 1px solid var(--rule); }
.pilot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.pilot-copy { display: grid; gap: 20px; min-width: 0; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--rule-strong); border-radius: var(--radius); background: var(--ground); min-width: 0; }
.form .full { grid-column: 1 / -1; }
.form label, .form legend { display: block; font-size: 0.9rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form label .opt { color: var(--ink-3); font-weight: 400; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form select, .form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--ground-3);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: 400 1rem var(--font-body);
}
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius); font-weight: 400; cursor: pointer; background: var(--ground-3); }
.checks input { accent-color: var(--blue); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); }
.consent input { margin-top: 4px; accent-color: var(--blue); }
.form .actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.form-status { font-size: 0.95rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--warn); }
.trap { position: absolute; left: -9999px; }
@media (max-width: 900px) { .pilot-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ piede */
.site-footer { border-top: 1px solid var(--rule); padding-block: 40px 48px; color: var(--ink-3); font-size: 0.9rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; }
.site-footer img { height: 22px; width: auto; margin-bottom: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: start; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.legal { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 20px; font-size: 0.82rem; color: var(--ink-3); }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ ingrandimento delle tavole */
.viewer { border: 0; padding: 0; background: transparent; max-width: min(1400px, 96vw); width: 96vw; color: var(--ink); }
.viewer::backdrop { background: rgba(3, 9, 15, 0.86); }
.viewer-inner { display: grid; gap: 12px; }
.viewer img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; background: var(--sheet); border-radius: 2px; }
.viewer-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.viewer-bar .caption { color: var(--ink-2); }
.viewer-close { background: var(--ground-2); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: var(--radius); min-height: 40px; padding: 0 16px; font: 500 0.95rem var(--font-body); cursor: pointer; }

/* Pagine di testo (privacy, grazie). */
.doc { max-width: 46rem; display: grid; gap: 18px; padding-block: clamp(48px, 8vw, 96px); }
.doc h1 { font-size: var(--step-2); }
.doc h2 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-top: 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc .todo { color: var(--warn); font-family: var(--font-mono); font-size: 0.9em; }
