*,*::before,*::after{box-sizing:border-box}:root{padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}body{margin:0}img{max-width:100%}[hidden]{display:none!important}

/* Concetto: la pagina prende il linguaggio dell'app, neutri Apple e display a punti, e si legge come una scheda di prodotto seguita dal suo manuale. */
@font-face { font-family: "Doto"; src: url("/assets/doto-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #e8e8ed;
  --ink: #1d1d1f;
  --ink-2: #66666b;
  --line: rgba(0, 0, 0, .12);
  --dot: rgba(0, 0, 0, .13);
  --press: #1d1d1f;
  --press-ink: #ffffff;
  --red: #d71921;
  --red-soft: rgba(215, 25, 33, .09);
  --shot-light: block;
  --shot-dark: none;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --dots: "Doto", var(--sans);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wide: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --ink: #f5f5f7; --ink-2: #a1a1a6;
    --line: rgba(255, 255, 255, .16); --dot: rgba(255, 255, 255, .16); --press: #f5f5f7; --press-ink: #000000;
    --red: #ff453a; --red-soft: rgba(255, 69, 58, .14); --shot-light: none; --shot-dark: block; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --ink: #f5f5f7; --ink-2: #a1a1a6;
  --line: rgba(255, 255, 255, .16); --dot: rgba(255, 255, 255, .16); --press: #f5f5f7; --press-ink: #000000;
  --red: #ff453a; --red-soft: rgba(255, 69, 58, .14); --shot-light: none; --shot-dark: block; color-scheme: dark;
}
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (max-width: 860px) { html { scroll-padding-top: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.wrap { max-width: var(--wide); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
code, kbd { font-family: var(--mono); font-size: .88em; background: var(--surface-2); border-radius: 5px; padding: .08em .35em; }
kbd { font-family: inherit; font-weight: 600; }

/* Barra in alto */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 18px; min-height: 56px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 900 22px/1 var(--dots); }
.logo img { width: 30px; height: 30px; border-radius: 7px; }
.bar nav { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); font-size: 15px; margin-left: auto; }
.bar nav a { text-decoration: none; color: var(--ink-2); padding-block: 10px; white-space: nowrap; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }
.bar nav a[aria-current] { font-weight: 600; }
.btn-small { min-height: 36px; padding: 6px 16px; font-size: 15px; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink); font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { filter: brightness(.95); }
.btn-primary { background: var(--press); color: var(--press-ink); }
.btn-red { background: var(--red); color: #ffffff; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }

/* Apertura */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 7vw, 76px) clamp(30px, 5vw, 52px); }
.hero h1 { font-size: clamp(34px, 4.4vw, 50px); line-height: 1.08; letter-spacing: -.022em; font-weight: 700; }
.hero .lead { margin-top: 18px; font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.meta { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.display { min-width: 0; border-radius: 22px; padding: clamp(20px, 3vw, 32px); background-color: var(--surface); background-image: radial-gradient(var(--dot) 1px, transparent 1.4px); background-size: 9px 9px; border: 1px solid var(--line); }
.display-label { display: inline-block; font-size: 13px; color: var(--ink-2); background: var(--surface); padding: 1px 6px; margin-left: -6px; }
.display-from, .display-to { font-family: var(--dots); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.display-from { font-size: clamp(24px, 3vw, 34px); margin: 4px 0 22px; color: var(--ink-2); }
.display-to { font-size: clamp(54px, 8.2vw, 92px); color: var(--red); margin-top: 4px; white-space: nowrap; }
.display-note { margin-top: 18px; font-size: 13px; color: var(--ink-2); background: var(--surface); display: inline-block; padding: 1px 6px; margin-left: -6px; }

.shot { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.shot img { width: 100%; height: auto; }
.shot .light { display: var(--shot-light); }
.shot .dark { display: var(--shot-dark); }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }

/* Sezioni */
section.block { padding-block: clamp(44px, 7vw, 76px) 0; }
.title { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.14; letter-spacing: -.016em; font-weight: 700; }
.intro { margin-top: 12px; color: var(--ink-2); max-width: 40em; font-size: 18px; }

/* Misure */
.measures { margin-top: 24px; background: var(--surface); border-radius: 16px; border: 1px solid var(--line); overflow-x: auto; }
.measures table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; }
.measures th, .measures td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.measures tr:last-child td { border-bottom: 0; }
.measures th { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.measures .n { text-align: right; font-variant-numeric: tabular-nums; }
.measures .gauge { width: 34%; min-width: 130px; }
.gauge div { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.gauge i { display: block; height: 100%; background: var(--red); border-radius: 4px; }
.fineprint { margin-top: 10px; font-size: 14px; color: var(--ink-2); max-width: 46em; }

.subtitle { margin-top: clamp(36px, 5vw, 56px); }
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px clamp(24px, 4vw, 48px); margin-top: 28px; }
.faq > div { min-width: 0; }
.faq h3 { font-size: 18px; line-height: 1.3; }
.faq p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 40px); margin-top: 28px; }
.points h3 { font-size: 18px; line-height: 1.3; }
.points p { margin-top: 6px; font-size: 16px; color: var(--ink-2); }

/* Scarica */
.get { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; margin-top: 28px; align-items: start; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 30px); }
.panel h3 { font-size: 22px; }
.panel .sub { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.panel .btn { margin-top: 18px; }
.steps { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; font-size: 16px; }
.steps > li::before { content: counter(s); font: 900 22px/1.2 var(--dots); color: var(--red); }
.copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.copy code { padding: 7px 10px; overflow-wrap: anywhere; }
.copy button { min-height: 34px; padding: 4px 12px; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.panel ul { margin: 16px 0 0; padding-left: 1.15em; font-size: 15px; display: grid; gap: 6px; }

/* Manuale */
.manual { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 28px; align-items: start; }
.toc { position: sticky; top: calc(72px + env(safe-area-inset-top, 0px)); max-height: calc(100vh - 92px); overflow-y: auto; font-size: 15px; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; }
.toc a { display: block; padding: 5px 10px; margin-left: -10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.doc { min-width: 0; max-width: 46em; }
.doc article { padding-top: 34px; }
.doc article:first-child { padding-top: 0; }
.doc h2 { font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
.doc h3 { margin: 20px 0 0; font-size: 17px; }
.doc p { margin-top: 10px; }
.doc ul, .doc ol { margin: 10px 0 0; padding-left: 1.25em; display: grid; gap: 6px; }
.note { margin-top: 14px; padding: 12px 16px; border-radius: 12px; background: var(--red-soft); font-size: 16px; }
.table { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.table th, .table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: 13px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.table td:first-child { font-weight: 600; }
.path { display: inline-flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.path span + span::before { content: "›"; color: var(--ink-2); margin-right: 6px; }
.path span { font-weight: 600; }

/* Dona */
.give { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: center; padding: clamp(24px, 4vw, 42px); border-radius: 22px; background-color: var(--surface); border: 1px solid var(--line); margin-top: clamp(44px, 7vw, 76px); }
.give .title { font-family: var(--dots); font-weight: 900; letter-spacing: 0; }
.give p { margin-top: 10px; color: var(--ink-2); max-width: 36em; }
.give-side { display: grid; gap: 8px; justify-items: center; }
.give-note { font-size: 13px; color: var(--ink-2); text-align: center; max-width: 16em; }

footer { margin-top: clamp(44px, 7vw, 76px); padding-block: 26px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
footer .wrap { display: grid; gap: 14px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { padding-block: 3px; }
footer details summary { cursor: pointer; }
footer ul { margin: 8px 0 0; padding-left: 1.15em; display: grid; gap: 3px; }

@media (max-width: 860px) {
  .bar { position: static; }
  .bar nav { order: 3; flex: 1 1 100%; margin: 0 -4px; padding-inline: 4px; overflow-x: auto; }
  .hero, .get, .manual { grid-template-columns: minmax(0, 1fr); }
  .points, .faq { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc a { margin-left: 0; padding: 7px 4px; }
  .give { grid-template-columns: minmax(0, 1fr); }
  .give-side { justify-items: stretch; }
  .give-note { max-width: none; }
}
@media (max-width: 480px) {
  .cta .btn { flex: 1 1 100%; }
}

/* Pagine dei formati */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.tile { display: block; min-width: 0; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.tile:hover { border-color: var(--ink-2); }
.tile strong { display: block; font-size: 18px; }
.tile span { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.tile b { display: block; margin-top: 12px; font: 900 26px/1 var(--dots); color: var(--red); white-space: nowrap; }
.page-head { padding-block: clamp(30px, 6vw, 60px) 0; }
.page-head h1 { font-size: clamp(32px, 4.8vw, 50px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; max-width: 21em; }
.page-head .lead { margin-top: 16px; font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); max-width: 38em; }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.prose > * { max-width: 46rem; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.18; letter-spacing: -.012em; font-weight: 700; margin-top: clamp(32px, 5vw, 48px); }
.prose h3 { font-size: 19px; margin-top: 22px; }
.prose p { margin-top: 10px; }
.prose ul, .prose ol { margin: 10px 0 0; padding-left: 1.25em; display: grid; gap: 6px; }
.wide-table { margin-top: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.wide-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.wide-table th, .wide-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.wide-table tr:last-child td { border-bottom: 0; }
.wide-table th { font-size: 13px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.wide-table td:first-child { font-weight: 600; }
.wide-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.band { margin-top: clamp(36px, 6vw, 56px); padding: clamp(22px, 3.5vw, 34px); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.band p { margin: 0; font-size: 18px; font-weight: 600; max-width: 28em; }
.band .cta { margin-top: 0; }
@media (max-width: 860px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
