/* Dual Use Compliance (dualuse.app). The design's stylesheet as drawn in
   Artifact WSBw1ciR2netQ7LwdT4E8m ("Dual Use, la soglia"), with the fonts
   self-hosted (SIL Open Font License, latin subset of the variable fonts) and a
   few additions at the end. */

@font-face {
  font-family: "Libre Franklin";
  src: url("fonts/libre-franklin-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

/* One motif: the real threshold profile of Annex I entry 3A001.b.4 (peak power against frequency,
   log-log, power growing downward so the blue is the controlled region). It runs the hero shape, the
   picture masks, the button notch, the bullets, the stepped tiles, the index tabs and the footer blocks.
   Grid: 12 columns on one pair of tight margins; text hangs from the left margin. */
:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --ink: #111111;
  --muted: #6b6b6b;
  --accent: #1a4be0;
  --accent-strong: #1338ad;
  --accent-ink: #ffffff;
  --field-1: #111111;
  --field-1-ink: #ffffff;
  --paper-soft: #c9cfe0;            /* soft ink on the black field (8.9:1) */

  --font-display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  --step-head: clamp(2rem, 1.2rem + 3vw, 4rem);
  --step-display: clamp(2.75rem, 0.6rem + 6.4vw, 6.25rem);

  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --section: clamp(6rem, 11vw, 11rem);
  --notch: 8px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-text); font-size: var(--step-body); line-height: 1.55; font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, p, figure, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; hyphens: none; }
p { max-width: 62ch; text-wrap: pretty; }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { padding-left: max(var(--margin), env(safe-area-inset-left, 0px)); padding-right: max(var(--margin), env(safe-area-inset-right, 0px)); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.only-wide { display: none; }
@media (min-width: 48em) { .only-wide { display: inline; } }

/* the motif at text size: three steps rising to the right */
.step-bullet { display: inline-block; width: 0.72em; height: 0.62em; margin-right: 0.5em; background: currentColor; clip-path: polygon(0 100%, 0 70%, 33% 70%, 33% 38%, 66% 38%, 66% 0, 100% 0, 100% 100%); vertical-align: 0.02em; flex: none; }

/* the one button: a solid block with the stepped notch in its top-left corner */
.button { display: inline-flex; align-items: center; gap: 0.6em; min-height: 3.25rem; padding: 0 1.5rem; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  clip-path: polygon(0 calc(var(--notch) * 3), var(--notch) calc(var(--notch) * 3), var(--notch) calc(var(--notch) * 2), calc(var(--notch) * 2) calc(var(--notch) * 2), calc(var(--notch) * 2) var(--notch), calc(var(--notch) * 3) var(--notch), calc(var(--notch) * 3) 0, 100% 0, 100% 100%, 0 100%);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease; }
.button:active { transform: scale(0.97); }
.button--ink { background: var(--ink); }
.button--paper { background: var(--bg); color: var(--ink); }
.link { text-decoration: underline; text-decoration-thickness: 0.07em; text-underline-offset: 0.2em; text-decoration-color: currentColor; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button--ink:hover { background: #2b2b2b; }
  .button--paper:hover { background: var(--surface); }
  .link:hover { text-decoration-color: transparent; }
}

/* ---------- hero: the staircase, enormous ---------- */
.hero { position: relative; min-height: clamp(640px, 100svh, 980px); display: grid; grid-template-rows: auto 1fr; overflow: clip; }
.hero__stair { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--accent); z-index: 0; }
.hero__stair--phone { display: none; }
.nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1.5rem; }
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; letter-spacing: -0.035em; text-decoration: none; }
.nav ul { display: flex; gap: clamp(1rem, 2.4vw, 2.25rem); margin: 0; padding: 0; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.nav a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .nav ul a:hover { color: var(--accent); } }
.hero__copy { position: relative; z-index: 1; align-self: center; grid-column: 1 / span 6; padding-block: 3rem 5rem; }
.hero h1 { font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.035em; text-transform: uppercase; margin-left: -0.04em; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines .line > span { display: block; }
.hero__lead { margin-top: 2rem; font-size: var(--step-lead); line-height: 1.35; max-width: 31ch; }
.hero__cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero__cta .aside { font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); color: var(--muted); }
.hero__labels { position: absolute; inset: 0; z-index: 1; pointer-events: none; color: var(--accent-ink); font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; }
.hero__labels span { position: absolute; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero__caption { position: absolute; z-index: 1; left: 57.2%; right: max(var(--margin), env(safe-area-inset-right, 0px)); bottom: 2.25rem; color: var(--accent-ink); font-size: 1rem; line-height: 1.5; max-width: 38ch; }
.hero__caption strong { font-family: var(--font-display); font-weight: 700; }

/* ---------- la soglia: one control, blown up ---------- */
.soglia { position: relative; min-height: 92svh; overflow: hidden; background: var(--field-1); color: var(--field-1-ink); transition: background-color 420ms ease; }
.soglia[data-state="above"] { background: var(--accent); }
.soglia__text { position: relative; z-index: 1; padding-top: clamp(3.5rem, 8vh, 6rem); max-width: 46rem; }
.soglia h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; }
.soglia__word { display: inline-block; }
.soglia__text p { margin-top: 1.25rem; font-size: var(--step-body); max-width: 44ch; }
.soglia__text .soglia__note { margin-top: 0.85rem; color: var(--paper-soft); }
.soglia[data-state="above"] .soglia__note { color: #dfe6ff; }
.soglia__stage { position: absolute; left: 40%; top: 34%; font-size: clamp(1.25rem, 4.3vh, 2.8rem); }

/* the product's own slider, built in em so it scales as one object */
[data-ui] { font-family: var(--font-ui); }
[data-ui].meter { width: 27em; background: #ffffff; color: #111111; padding: 1.25em 1.4em 1.4em; }
[data-ui] .meter__label { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; font-size: 0.75em; color: #5f6368; font-weight: 400; }
[data-ui] .meter__label b { font-weight: 600; color: #111111; }
[data-ui] .meter__value { margin-top: 0.15em; display: flex; align-items: baseline; gap: 0.35em; font-variant-numeric: tabular-nums; }
[data-ui] .meter__value output { font-size: 2.75em; line-height: 1; letter-spacing: -0.02em; font-weight: 400; }
[data-ui] .meter__value span { font-size: 0.8em; color: #5f6368; }
[data-ui] .meter__track { position: relative; margin-top: 1em; height: 2.2em; }
[data-ui] .meter__track input { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; cursor: grab; }
[data-ui] .meter__track input:active { cursor: grabbing; }
[data-ui] .meter__track input::-webkit-slider-runnable-track { height: 0.5em; background: transparent; }
[data-ui] .meter__rail { position: absolute; left: 0; right: 0; top: 50%; height: 0.5em; margin-top: -0.25em; background: #e4e4e4; pointer-events: none; }
[data-ui] .meter__fill { display: block; height: 100%; width: calc(0.8em + (100% - 1.6em) * var(--k, 0.35)); background: #111111; }
[data-ui] .meter__track input::-moz-range-track { height: 0.5em; background: transparent; }
[data-ui] .meter__track input::-webkit-slider-thumb { -webkit-appearance: none; width: 1.6em; height: 1.6em; margin-top: -0.55em; background: var(--accent); border: 0; border-radius: 0; clip-path: polygon(0 34%, 22% 34%, 22% 17%, 44% 17%, 44% 0, 100% 0, 100% 100%, 0 100%); transition: transform var(--t-press) var(--ease-out); }
[data-ui] .meter__track input::-moz-range-thumb { width: 1.6em; height: 1.6em; background: var(--accent); border: 0; border-radius: 0; }
[data-ui] .meter__track input:active::-webkit-slider-thumb { transform: scale(1.12); }
[data-ui] .meter__tick { position: absolute; top: 0.2em; bottom: 0.2em; left: calc(0.8em + (100% - 1.6em) * var(--tk, 0.496) - 0.09em); width: 0.18em; background: var(--accent); pointer-events: none; }
[data-ui] .meter__scale { display: flex; justify-content: space-between; font-size: 0.7em; color: #5f6368; font-variant-numeric: tabular-nums; margin-top: 0.2em; }
[data-ui] .meter__scale b { color: var(--accent); font-weight: 600; }
[data-ui] .meter__status { margin-top: 0.9em; margin-right: 30%; padding: 0.7em 0.85em; font-size: 0.78em; line-height: 1.4; background: #f4f4f4; }
[data-ui] .meter__status b { font-weight: 600; }
.soglia[data-state="above"] [data-ui] .meter__status { background: #e8edfd; }

/* ---------- come funziona: drag through the stages ---------- */
.stages { background: var(--surface); }
.stages__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 66svh; }
.stages__left { display: flex; flex-direction: column; padding-top: clamp(3.5rem, 8vh, 6rem); padding-bottom: 2.5rem; padding-left: max(var(--margin), env(safe-area-inset-left, 0px)); padding-right: clamp(1.5rem, 4vw, 4rem); }
.stages__left h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; max-width: 12ch; }
.stage-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; flex: 1; }
.stages__left p { max-width: 40ch; font-size: var(--step-lead); line-height: 1.35; }
.stages__right { position: relative; background: var(--accent); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 3.5rem 1.5rem; padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  clip-path: polygon(0 4.5rem, 1.5rem 4.5rem, 1.5rem 3rem, 3rem 3rem, 3rem 1.5rem, 4.5rem 1.5rem, 4.5rem 0, 100% 0, 100% 100%, 0 100%); }
.stages__control { padding-block: 2rem 2.75rem; }
.stages__control label { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--step-small); color: var(--muted); margin-bottom: 0.6rem; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 2.25rem; margin: 0; background: transparent; cursor: pointer; }
.range-wrap { position: relative; }
.range-rail { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; background: #ffffff; pointer-events: none; }
.range-fill { display: block; height: 100%; width: calc(16px + (100% - 32px) * var(--k, 0)); background: var(--ink); transition: width var(--t-ui) var(--ease-out); }
.range { position: relative; }
.range::-webkit-slider-runnable-track { height: 8px; background: transparent; }
.range::-moz-range-track { height: 8px; background: transparent; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -12px; background: var(--accent); border: 0; border-radius: 0; clip-path: polygon(0 34%, 22% 34%, 22% 17%, 44% 17%, 44% 0, 100% 0, 100% 100%, 0 100%); transition: transform var(--t-press) var(--ease-out); }
.range::-moz-range-thumb { width: 32px; height: 32px; background: var(--accent); border: 0; border-radius: 0; }
.range:active::-webkit-slider-thumb { transform: scale(1.1); }
.stages__names { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0.75rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--muted); }
.stages__names li:nth-child(2) { text-align: center; transform: translateX(-17%); }
.stages__names li:nth-child(3) { text-align: center; transform: translateX(17%); }
.stages__names li:nth-child(4) { text-align: right; }
.stages__names button { color: inherit; font: inherit; transition: color var(--t-hover) ease; }
.stages__names button[aria-current="step"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .stages__names button:hover { color: var(--ink); } }
.stage-copy[hidden] { display: none !important; }

/* product fragment: tonal panel, regular-weight figures, 14px text */
[data-ui].frag { width: min(440px, 100%); background: #ffffff; color: #111111; font-size: 14px; line-height: 20px; }
[data-ui] .frag__state { padding: 18px 20px 20px; }
[data-ui] .frag__state[hidden] { display: none !important; }
[data-ui] .frag__tabs { display: flex; gap: 2px; padding: 4px; background: #f4f4f4; margin-bottom: 16px; font-size: 13px; overflow: hidden; }
[data-ui] .frag__tabs span { padding: 5px 10px; color: #5f6368; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
[data-ui] .frag__tabs span.on { background: #ffffff; color: #111111; font-weight: 600; }
[data-ui] .frag__title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
[data-ui] .frag__title h3 { font-family: var(--font-ui); font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: 0; }
[data-ui] .frag__meta { font-size: 12px; color: #5f6368; }
[data-ui].frag label { display: block; font-size: 12px; font-weight: 600; color: #3d3f42; margin-bottom: 6px; }
[data-ui] .box { border: 1px solid #d1d5db; background: #ffffff; padding: 9px 11px; min-height: 92px; font-size: 14px; line-height: 20px; }
[data-ui] .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
[data-ui] .select { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #d1d5db; padding: 0 10px; height: 34px; font-size: 13px; }
[data-ui] .select b { font-weight: 600; }
[data-ui] .primary { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; background: #111111; color: #ffffff; font-weight: 600; font-size: 13px; border-radius: 6px; white-space: nowrap; }
[data-ui] .hint { margin-top: 10px; font-size: 12px; color: #5f6368; }
[data-ui] .pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; flex: none; }
[data-ui] .pill--strong { background: #e8edfd; color: #102c86; }
[data-ui] .pill--blocked { background: #ffedea; color: #831c1e; }
[data-ui] .pill--draft { background: #f4f4f4; color: #3d3f42; }
[data-ui] .cands { display: grid; gap: 4px; }
[data-ui] .cand { display: grid; grid-template-columns: 54px 1fr 44px; align-items: start; gap: 10px; padding: 8px 10px; background: #f6f6f6; }
[data-ui] .cand b { font-weight: 600; font-variant-numeric: tabular-nums; }
[data-ui] .cand .t { color: #111111; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
[data-ui] .cand .terms { grid-column: 2 / 4; font-size: 12px; color: #5f6368; line-height: 16px; }
[data-ui] .cand .pct { text-align: right; font-variant-numeric: tabular-nums; color: #111111; }
[data-ui] .cand .bar { grid-column: 2 / 4; height: 3px; background: #e6e6e6; }
[data-ui] .cand .bar i { display: block; height: 3px; background: #111111; }
[data-ui] .cand--top { background: #eef1fb; }
[data-ui] .check { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; padding: 8px 10px; background: #f6f6f6; }
[data-ui] .check i { width: 18px; height: 18px; border: 2px solid #8a8d91; border-radius: 3px; margin-top: 1px; display: grid; place-items: center; }
[data-ui] .check.on i { background: #111111; border-color: #111111; }
[data-ui] .check.on i::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
[data-ui] .check small { display: block; font-size: 12px; color: #5f6368; line-height: 16px; margin-top: 2px; }
[data-ui] .check.sub { margin-left: 28px; }
[data-ui] .kv { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 9px 0; }
[data-ui] .kv + .kv { border-top: 1px solid #ededed; }
[data-ui] .kv dt { font-size: 12px; color: #5f6368; }
[data-ui] .kv dd { font-size: 13px; line-height: 19px; }
[data-ui] .y901 { margin-top: 12px; padding: 12px; background: #fff6f4; }
[data-ui] .y901 p { font-size: 13px; line-height: 19px; margin-top: 8px; color: #3d1517; }

/* ---------- cosa fa: sentences with switches ---------- */
.caps { padding-top: 0; }
.cap { --cap-bg: var(--accent); --cap-ink: #ffffff; min-height: 20vh; display: flex; align-items: center; transition: background-color 320ms ease, color 320ms ease; }
.cap__inner { width: 100%; padding-block: 1.75rem; align-items: center; }
.cap__text { grid-column: 1 / span 10; }
.cap__line { font-size: var(--step-head); line-height: 1.04; letter-spacing: -0.03em; color: var(--muted); transition: color 320ms ease; }
.cap__more { margin-top: 0.6rem; font-size: var(--step-body); max-width: 60ch; display: none; }
.cap__switch { grid-column: 11 / span 2; justify-self: end; font-size: var(--step-head); }
.cap[data-on="true"] { background: var(--cap-bg); color: var(--cap-ink); }
.cap[data-on="true"] .cap__line { color: var(--cap-ink); }
.cap[data-on="true"] .cap__more { display: block; }
.switch { position: relative; display: block; width: 2em; height: 1.1em; border: 0.07em solid currentColor; background: transparent; color: inherit; cursor: pointer; transition: background-color var(--t-ui) ease; }
.switch::after { content: ""; position: absolute; top: 0.12em; left: 0.12em; width: 0.72em; height: 0.72em; background: currentColor; transition: transform var(--t-ui) var(--ease-out); clip-path: polygon(0 34%, 22% 34%, 22% 17%, 44% 17%, 44% 0, 100% 0, 100% 100%, 0 100%); }
.switch[aria-checked="true"] { background: var(--cap-ink); }
.switch[aria-checked="true"]::after { transform: translateX(0.88em); background: var(--cap-bg); }
.cap:not([data-on="true"]) .switch { color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .cap:not([data-on="true"]) .switch:hover { color: var(--ink); } }
.switch:active::after { transform: scale(0.92); }
.switch[aria-checked="true"]:active::after { transform: translateX(0.88em) scale(0.92); }

/* ---------- the band: a photograph cut by the staircase ---------- */
.band { position: relative; margin-top: var(--section); height: clamp(420px, 66vh, 740px); }
.band__frame { position: absolute; inset: 0; overflow: clip; background: #9fc2ea; clip-path: polygon(0.00% 100.00%, 0.00% 74.00%, 2.90% 74.00%, 2.90% 61.37%, 6.89% 61.37%, 6.89% 55.21%, 12.78% 55.21%, 12.78% 38.84%, 37.45% 38.84%, 37.45% 33.69%, 46.50% 33.69%, 46.50% 26.79%, 60.48% 26.79%, 60.48% 16.31%, 72.15% 16.31%, 72.15% 8.00%, 100.00% 8.00%, 100.00% 100.00%); }
.band__shutter { position: absolute; inset: 0; }
.band__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.band figcaption { position: absolute; left: max(var(--margin), env(safe-area-inset-left, 0px)); top: 0; max-width: 30ch; font-size: var(--step-body); line-height: 1.45; }
.band figcaption strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 0.4rem; }

/* ---------- fonti: large marks on tiles ---------- */
.sources { padding-top: var(--section); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { position: relative; min-height: 13.5rem; padding: 1.5rem; background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  clip-path: polygon(0 1.5rem, 0.5rem 1.5rem, 0.5rem 1rem, 1rem 1rem, 1rem 0.5rem, 1.5rem 0.5rem, 1.5rem 0, 100% 0, 100% 100%, 0 100%); }
.tile__name { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; max-width: 14ch; }
.tile__sub { font-size: var(--step-body); line-height: 1.4; color: var(--ink); max-width: 30ch; }
.tile--head { grid-column: span 2; background: var(--accent); color: var(--accent-ink); }
.tile--head h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; }
.tile--head p { font-size: var(--step-lead); line-height: 1.3; max-width: 26ch; }
a.tile { text-decoration: none; transition: background-color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { a.tile:hover { background: #e9e9e9; } }

/* ---------- duplice uso: inset panel, shaped clip ---------- */
.dual { padding-top: var(--section); }
.dual__panel { position: relative; background: var(--field-1); color: var(--field-1-ink); overflow: hidden; min-height: 80svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: clamp(2.5rem, 4vw, 3.5rem); padding-bottom: 0; }
.dual__left { grid-column: 1 / span 7; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.dual__left h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; color: #f2f4fa; }
.dual__clip { width: min(50vw, 52rem); margin-bottom: -7rem; clip-path: polygon(0.00% 100.00%, 0.00% 48.00%, 1.33% 48.00%, 1.33% 38.81%, 3.17% 38.81%, 3.17% 34.34%, 5.88% 34.34%, 5.88% 22.43%, 17.23% 22.43%, 17.23% 18.68%, 21.39% 18.68%, 21.39% 13.66%, 27.82% 13.66%, 27.82% 6.05%, 33.19% 6.05%, 33.19% 0.00%, 100.00% 0.00%, 100.00% 100.00%); }
.dual__clip .shutter { overflow: clip; }
.dual__clip video, .dual__clip img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 58% 40%; background: #1d3f8f; }
.dual__right { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 2.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.dual__right h3 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; display: flex; align-items: baseline; }
.dual__right p { margin-top: 0.7rem; color: #e6e8ee; max-width: 36ch; }
.dual__right .button { align-self: flex-start; }
.dual__credit { font-size: var(--step-small); color: var(--paper-soft); margin-top: auto; }

/* ---------- numeri: stepped figure tiles ---------- */
.figures { padding-top: var(--section); }
.figures__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 8px; align-items: start; }
.fig { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 1.75rem; clip-path: polygon(0 2.4rem, 0.8rem 2.4rem, 0.8rem 1.6rem, 1.6rem 1.6rem, 1.6rem 0.8rem, 2.4rem 0.8rem, 2.4rem 0, 100% 0, 100% 100%, 0 100%); }
.fig__n { font-family: var(--font-display); font-weight: 700; font-size: var(--step-display); line-height: 0.9; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fig__cap { font-size: var(--step-body); line-height: 1.4; max-width: 30ch; }
.fig--a { grid-column: 1 / span 6; height: clamp(26rem, 70vh, 44rem); background: var(--accent); color: var(--accent-ink); }
.fig--b { grid-column: 7 / span 3; margin-top: 14vh; height: clamp(17rem, 44vh, 28rem); background: var(--ink); color: #ffffff; }
.fig--c { grid-column: 10 / span 3; margin-top: 26vh; height: clamp(14rem, 34vh, 22rem); background: var(--surface); color: var(--ink); }
.figures__head { grid-column: 7 / span 6; grid-row: 1; align-self: start; padding-top: 0.2rem; }
.figures__head h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; }
.figures__head p { margin-top: 0.5rem; font-size: var(--step-small); color: var(--muted); }
.fig--b, .fig--c { grid-row: 1; }
.fig--a { grid-row: 1 / span 2; }

/* ---------- domande: tabbed index cards ---------- */
.faq { padding-top: var(--section); }
.faq__inner { grid-column: 3 / span 8; }
.faq h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 2.5rem; }
.cards { position: relative; }
.card { --tab-w: 200px; --tab-x: calc(var(--i) * (100% - var(--tab-w)) / 5); position: relative; margin-top: -40px; padding-top: 40px;
  clip-path: polygon(0 40px, var(--tab-x) 40px, var(--tab-x) 0, calc(var(--tab-x) + var(--tab-w)) 0, calc(var(--tab-x) + var(--tab-w)) 40px, 100% 40px, 100% 100%, 0 100%); }
.card:first-child { margin-top: 0; }
.card__tab { position: absolute; top: 0; left: var(--tab-x); width: var(--tab-w); height: 40px; display: flex; align-items: center; padding: 0 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.card__body { background: var(--card-bg); color: var(--card-ink); padding: 0 1.5rem 40px; }
.card { background: transparent; }
.card__tab { background: var(--card-bg); color: var(--card-ink); }
.card__q { display: flex; align-items: center; width: 100%; min-height: 56px; padding: 0.75rem 0; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: var(--step-body); line-height: 1.3; letter-spacing: -0.01em; }
.card__q .step-bullet { opacity: 0.85; }
.card__a { display: none; padding: 0.25rem 0 1.5rem 1.22em; font-size: var(--step-body); max-width: 56ch; }
.card[data-open="true"] .card__a { display: block; }
.card:nth-child(3n+1) { --card-bg: var(--accent); --card-ink: #ffffff; }
.card:nth-child(3n+2) { --card-bg: var(--ink); --card-ink: #ffffff; }
.card:nth-child(3n+3) { --card-bg: #e7e7e7; --card-ink: var(--ink); }
.card + .card { margin-top: -40px; }

/* ---------- demo: first step, already open ---------- */
.demo { margin-top: var(--section); background: var(--accent); color: var(--accent-ink); min-height: 86svh; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; padding-block: clamp(3rem, 6vh, 4.5rem); }
.demo__copy { grid-column: 1 / span 5; align-self: end; }
.demo h2 { font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.035em; }
.demo__copy p { margin-top: 1.5rem; max-width: 36ch; }
.demo__mail { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; font-family: var(--font-display); font-weight: 600; }
.demo__mail .addr { font-size: var(--step-lead); letter-spacing: -0.01em; user-select: all; }
.copy { font-family: var(--font-display); font-weight: 600; font-size: 1rem; padding: 0.55rem 0.9rem; background: rgba(255,255,255,0.14); color: #ffffff; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.copy:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .copy:hover { background: rgba(255,255,255,0.26); } }
.demo__dialog { grid-column: 7 / span 5; justify-self: start; align-self: start; min-width: 0; width: 100%; max-width: 440px; }
[data-ui].dialog { width: min(440px, 100%); background: #ffffff; color: #111111; border-radius: 10px; padding: 22px 24px 24px; box-shadow: 0 24px 60px rgba(4, 14, 54, 0.32), 0 2px 6px rgba(4, 14, 54, 0.18); font-size: 14px; line-height: 20px; }
[data-ui].dialog h3 { font-family: var(--font-ui); font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
[data-ui] .dialog__sub { margin-top: 4px; font-size: 13px; color: #5f6368; }
[data-ui] .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; background: #f1f1f1; border-radius: 8px; margin-top: 18px; }
[data-ui] .seg button { height: 32px; border-radius: 6px; font-size: 13px; font-weight: 600; color: #5f6368; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
[data-ui] .seg button[aria-pressed="true"] { background: #ffffff; color: #111111; }
[data-ui].dialog label { display: block; margin-top: 18px; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: #3d3f42; }
[data-ui].dialog textarea, [data-ui].dialog input { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 10px 12px; font-size: 15px; line-height: 21px; background: #ffffff; color: #111111; resize: vertical; }
[data-ui].dialog textarea { min-height: 112px; }
[data-ui].dialog textarea:focus, [data-ui].dialog input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
[data-ui] .dialog__go { margin-top: 18px; display: flex; width: 100%; justify-content: center; align-items: center; height: 46px; border-radius: 8px; background: #111111; color: #ffffff; font-weight: 600; font-size: 15px; text-decoration: none; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
[data-ui] .dialog__go:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { [data-ui] .dialog__go:hover { background: #2c2c2c; } }
[data-ui] .dialog__foot { margin-top: 12px; font-size: 13px; color: #5f6368; }

/* ---------- footer: the name, built from stepped blocks ---------- */
.foot { background: var(--field-1); color: var(--field-1-ink); padding-top: clamp(2.5rem, 5vh, 3.5rem); padding-bottom: 2.25rem; }
.mark { display: flex; align-items: flex-end; gap: 4px; height: clamp(9rem, 34svh, 20rem); }
.mark span { position: relative; flex: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0.06em; font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 9vw, 9rem); line-height: 1; color: var(--field-1); height: var(--h); }
.mark span.gap { flex: 0.35; background: transparent; }
.mark .b { background: var(--accent); }
.mark .w { background: #ffffff; }
.mark small { position: absolute; top: 0.75rem; left: 0.85rem; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.mark .b small { color: #ffffff; }
.mark .w small { color: var(--ink); }
.foot__cols { margin-top: 3.5rem; row-gap: 2.5rem; }
.foot__col { grid-column: span 2; }
.foot__col h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0; margin-bottom: 0.75rem; }
.foot__col li + li { margin-top: 0.45rem; }
.foot__col a { text-decoration: none; display: inline-flex; align-items: baseline; font-size: 1rem; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) { .foot__col a:hover { text-decoration: underline; text-underline-offset: 0.2em; } }
.foot__col .step-bullet { color: var(--accent); width: 0.6em; height: 0.52em; }
.lst--facts li { display: flex; align-items: baseline; font-size: 1rem; line-height: 1.4; }
.foot__contact { grid-column: 9 / span 4; font-size: 1rem; }
.foot__contact p + p { margin-top: 0.6rem; }
.foot__contact .big { font-family: var(--font-display); font-weight: 700; font-size: var(--step-lead); letter-spacing: -0.01em; }
.foot__credits { grid-column: 1 / -1; font-size: var(--step-small); color: #c9cbd2; max-width: 120ch; }
.foot__credits a { color: #ffffff; }
.foot__last { margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; font-size: var(--step-small); color: #c9cbd2; }
.foot__last p { max-width: 80ch; }
.button--small { min-height: 2.5rem; padding: 0 1rem; font-size: 1rem; --notch: 6px; }

/* ---------- motion (content is complete without it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .lines .line > span { transform: translateY(105%); animation: rise-line 900ms var(--ease-expo) forwards; animation-delay: calc(140ms + var(--i, 0) * 100ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise 560ms var(--ease-out) forwards; animation-delay: var(--d, 420ms); }
  .js .hero__stair { clip-path: inset(100% 0 0 0); animation: open-up 1100ms var(--ease-in-out) 120ms forwards; }
  .js .hero__labels span { opacity: 0; animation: fade 500ms ease forwards; animation-delay: calc(820ms + var(--i, 0) * 60ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .band__shutter { clip-path: inset(0 100% 0 0); transition: clip-path 850ms var(--ease-in-out); }
  .js .band__shutter img { transform: scale(1.1); transition: transform 1200ms var(--ease-soft); }
  .js .band.is-in .band__shutter { clip-path: inset(0 0 0 0); }
  .js .band.is-in .band__shutter img { transform: none; }
  .js .dual__clip .shutter { clip-path: inset(100% 0 0 0); transition: clip-path 1100ms var(--ease-in-out) 200ms; }
  .js .dual__clip .shutter video { transform: scale(1.1); transition: transform 1500ms var(--ease-soft) 200ms; }
  .js .dual.is-in .dual__clip .shutter { clip-path: inset(0); }
  .js .dual.is-in .dual__clip .shutter video { transform: none; }
  .js .fig { transform: translateY(40px); opacity: 0; transition: transform 900ms var(--ease-expo), opacity 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms); }
  .js .figures.is-in .fig { transform: none; opacity: 1; }
  .js .tile[data-reveal] { transform: translateY(18px); }
  .frag__state, .stage-copy { animation: swap 260ms var(--ease-out); }
  .soglia__word { transition: transform 300ms var(--ease-out); }
  .soglia.flip .soglia__word { animation: word 360ms var(--ease-out); }
}
@keyframes rise-line { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes open-up { to { clip-path: inset(0 0 0 0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes word { from { opacity: 0; transform: translateY(0.35em); } to { opacity: 1; transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  .hero__labels { display: none; }
  .hero__caption { left: 60%; font-size: 1rem; }
  .soglia__stage { left: max(var(--margin), env(safe-area-inset-left, 0px)); top: auto; bottom: 2.5rem; font-size: clamp(1.25rem, 3vh, 2rem); }
  .soglia { min-height: 0; padding-bottom: 34rem; }
  .stages__fields { grid-template-columns: minmax(0, 1fr); }
  .stages__right { min-height: 0; padding-block: 4rem 3rem; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dual__left { display: contents; }
  .dual__left h2 { grid-column: 1 / -1; order: 0; }
  .dual__right { grid-column: 1 / -1; order: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding-top: 2.5rem; }
  .dual__right .button { grid-column: 1 / -1; }
  .dual__clip { grid-column: 1 / -1; order: 2; width: min(78vw, 40rem); margin-bottom: -5rem; }
  .dual__panel { min-height: 0; }
  .faq__inner { grid-column: 1 / -1; }
  .figures__grid { grid-template-columns: 1fr 1fr; column-gap: 8px; row-gap: 8px; }
  .figures__head { grid-column: 1 / -1; grid-row: auto; margin-bottom: 1rem; }
  .fig--a { grid-column: 1 / -1; grid-row: auto; height: 46vw; }
  .fig--b { grid-column: 1; grid-row: auto; margin-top: 0; height: 40vw; }
  .fig--c { grid-column: 2; grid-row: auto; margin-top: 40px; height: 40vw; }
  .demo { align-items: start; min-height: 0; }
  .demo__copy { align-self: start; }
  .demo__copy { grid-column: 1 / span 6; }
  .demo__dialog { grid-column: 7 / span 6; }
  .foot__col { grid-column: span 3; }
  .foot__contact { grid-column: 1 / -1; }
  .mark small { font-size: 0.875rem; left: 0.5rem; top: 0.5rem; }
}

/* ---------- phone: its own composition ---------- */
@media (max-width: 699px) {
  .hero { min-height: max(620px, 100svh); grid-template-rows: auto auto 1fr; }
  .hero__stair--wide { display: none; }
  .hero__stair--phone { display: block; inset: auto; left: -15vw; width: 130vw; max-width: none; top: 57%; height: 43%; }
  .nav ul { gap: 1rem; font-size: 1rem; }
  .nav ul li:not(:last-child) { display: none; }
  .wordmark { font-size: 6.4vw; }
  .hero__copy { grid-column: 1 / -1; align-self: start; padding-top: 9svh; padding-bottom: 0; }
  .hero h1 { font-size: 11.5vw; }
  .hero__lead { margin-top: 1.1rem; font-size: var(--step-body); max-width: none; }
  .hero__cta .button { flex: 1; justify-content: center; }
  .hero__cta { margin-top: 1.4rem; }
  .hero__cta .aside { display: none; }
  .hero__caption { left: auto; right: max(var(--margin), env(safe-area-inset-right, 0px)); bottom: 1.25rem; max-width: 58vw; font-size: 1rem; line-height: 1.4; }

  .soglia { min-height: 86svh; }
  .soglia__text { padding-top: 3rem; }
  .soglia h2 { font-size: 9vw; }
  .soglia__text p { max-width: none; }
  .soglia__stage { left: max(var(--margin), env(safe-area-inset-left, 0px)); right: auto; top: auto; bottom: 1.5rem; font-size: 4.4vw; }
  .soglia { padding-bottom: 18.5rem; }
  .meter { width: 28em; }

  .stages__left { padding-top: 2.5rem; }
  .stages__left h2 { font-size: 9vw; }
  .stages__left p { font-size: var(--step-body); max-width: none; }
  .stages__right { order: -1; padding: 2.25rem 1rem 1.75rem; clip-path: polygon(0 2.4rem, 0.8rem 2.4rem, 0.8rem 1.6rem, 1.6rem 1.6rem, 1.6rem 0.8rem, 2.4rem 0.8rem, 2.4rem 0, 100% 0, 100% 100%, 0 100%); }
  .stages__names { grid-template-columns: 1fr 1fr; gap: 0.35rem 1rem; }
  .stages__names li { transform: none !important; text-align: left !important; }

  .cap { min-height: 132px; }
  .cap__text { grid-column: 1 / span 9; }
  .cap__line { font-size: 6.4vw; }
  .cap__more { font-size: 1rem; }
  .cap__switch { grid-column: 10 / span 3; font-size: 7vw; }

  .band { height: 58svh; }
  .band figcaption { max-width: 22ch; font-size: 1rem; }
  .band figcaption strong { font-size: var(--step-lead); }
  .band__frame img { object-position: 64% 30%; }

  .tiles { gap: 6px; }
  .tile { min-height: 9.5rem; padding: 1rem; }
  .tile__name { font-size: var(--step-lead); }
  .tile__sub { font-size: 1rem; }
  .tile--head { min-height: 8rem; }
  .tile--head p { font-size: var(--step-body); }

  .dual__panel { padding: 1.75rem 1.25rem 0; }
  .dual__left h2 { font-size: 9vw; }
  .dual__right p { max-width: none; }
  .dual__right .button { align-self: stretch; justify-content: center; }
  .dual__right { grid-template-columns: 1fr; gap: 1.75rem; padding-top: 1.75rem; padding-bottom: 2.25rem; }
  .dual__left { display: contents; }
  .dual__left h2 { grid-column: 1 / -1; order: 0; }
  .dual__right { order: 1; }
  .dual__clip { grid-column: 1 / -1; order: 2; width: 86vw; justify-self: center; margin-bottom: -4rem; }

  .figures__grid { grid-template-columns: 1fr 1fr; column-gap: 6px; row-gap: 6px; }
  .figures__head { grid-column: 1 / -1; grid-row: auto; margin-bottom: 1rem; }
  .fig--a { grid-column: 1 / -1; grid-row: auto; height: 62vw; }
  .fig--b { grid-column: 1; grid-row: auto; margin-top: 0; height: 52vw; }
  .fig--c { grid-column: 2; grid-row: auto; margin-top: 32px; height: 52vw; }
  .fig { padding: 1rem; }
  .fig--a .fig__n { font-size: 11.5vw; }
  .fig--b .fig__n, .fig--c .fig__n { font-size: 9vw; }
  .fig__cap { font-size: 1rem; }

  .faq h2 { font-size: 9vw; margin-bottom: 1.75rem; }
  .card { --tab-w: 142px; }
  .card__tab { padding: 0 0.75rem; font-size: 1rem; }
  .card__body { padding: 0 1rem 40px; }
  .card__q { font-size: 1rem; }
  .card__a { padding-left: 0; max-width: none; }

  .demo { min-height: 84svh; align-items: start; row-gap: 2rem; }
  .demo__copy { grid-column: 1 / -1; align-self: start; }
  .demo h2 { font-size: 11.5vw; }
  .demo__copy p { max-width: none; }
  .demo__dialog { grid-column: 1 / -1; justify-self: stretch; }
  .dialog { width: 100%; }
  .dialog__go { height: 52px; }

  .mark { height: 22svh; gap: 3px; }
  .mark span { font-size: 11.5vw; }
  .mark small { font-size: 0.8125rem; top: 0.4rem; left: 0.3rem; }
  .foot__cols { margin-top: 2.25rem; row-gap: 2rem; }
  .foot__col { grid-column: span 6; }
}

/* Additions to the design: the company's legal line, privacy and language links. */
.foot__legal { display: grid; gap: 0.6rem; }
.foot__contact .big a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot__contact .big a:hover { text-decoration: underline; text-underline-offset: 0.2em; } }
