/* Font ospitati localmente (Geist e Sora, SIL Open Font License). Nessuna richiesta a server esterni. */
/* latin-ext */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/sora-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../assets/fonts/sora-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../assets/fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(../assets/fonts/geist-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Nordcasting — versione modern
   Display: Sora (geometrico e pulito).
   Testo/UI: Geist. Ogni linea di prodotto ha un colore (--hue) usato come
   segnale: puntini, tinte leggere, bordi. Tema chiaro e scuro.
   ========================================================================== */

:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #e9edf3;
  --ink: #0e1726;
  --text: #1d2939;
  --muted: #5b6678;
  --line: #dde2ea;
  --accent: #2f5bff;
  --accent-ink: #ffffff;
  --cta-bg: #0e1726;
  --shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 12px 32px -12px rgba(14, 23, 38, .18);
  --hue: #2f5bff;
  --tint: color-mix(in oklab, var(--hue) 9%, var(--surface));

  --display: "Sora", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --space: clamp(64px, 9vw, 128px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #131c2e; --surface-2: #1a2540; --ink: #eef3fb; --text: #d5deea;
    --muted: #9aa7bb; --line: #26324a; --accent: #7f9bff; --accent-ink: #0b1220; --cta-bg: #18245a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #131c2e; --surface-2: #1a2540; --ink: #eef3fb; --text: #d5deea;
  --muted: #9aa7bb; --line: #26324a; --accent: #7f9bff; --accent-ink: #0b1220; --cta-bg: #18245a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* Transizioni tra pagine (Chrome/Edge/Safari recenti) */
@view-transition { navigation: auto; }
.nav { view-transition-name: nav; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
picture > source { display: none; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
h1, h2, .display { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.7rem); }
h3 { font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.h-sm { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); margin-bottom: 1.25rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.muted { color: var(--muted); }
.i { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 16px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--space) 0; }
main > :last-child { margin-bottom: var(--space); }
.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 38em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.stack { display: grid; gap: 10px; margin-top: 20px; }
.link { font-weight: 600; }

/* ---------- Bottoni, chip ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15.5px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: #0e1726; }
.btn-light:hover { background: #dfe6ff; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-light:hover { border-color: #fff; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: 500 15px/1 var(--sans); text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--hue, var(--ink)); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--hue); flex: none; }

/* ---------- Navigazione fluttuante ---------- */
.nav { position: sticky; top: 12px; z-index: 50; padding-inline: 12px; }
.nav-bar {
  display: flex; align-items: center; gap: 12px; max-width: var(--shell); margin: 12px auto 0;
  padding: 8px 8px 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  transition: box-shadow .25s, background-color .25s;
}
.nav.is-scrolled .nav-bar { box-shadow: var(--shadow); background: color-mix(in srgb, var(--surface) 82%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 18px/1 var(--display); letter-spacing: -0.02em; margin-right: auto; }
.brand img { border-radius: 50%; background: #fff; }
.nav-links { display: flex; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font: 500 15.5px/1 var(--sans); background: none; border: 0; cursor: pointer;
}
.nav-link:hover { background: var(--surface-2); }
.nav-link[aria-current] { background: var(--surface-2); }
.nav-link[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.i-chev { width: 16px; height: 16px; transition: transform .2s; }
[aria-expanded="true"] > .i-chev { transform: rotate(180deg); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.search-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 15px/1 var(--sans); cursor: pointer;
}
.search-trigger:hover { border-color: var(--ink); color: var(--ink); }
kbd { font: 500 12px/1 var(--sans); padding: 5px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.nav-menu { display: none; }
.no-js [data-sheet-toggle], .no-js [data-search-open], .no-js [data-theme-toggle] { display: none; }

/* Pannello prodotti */
.sheet {
  display: none; max-width: var(--shell); margin: 8px auto 0; border-radius: var(--r-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  max-height: calc(100svh - 110px); overflow-y: auto;
}
.nav.is-open .sheet { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .nav.is-open .sheet { animation: drop .22s ease-out; }
  @keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
}
.sheet-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; padding: 12px; }
.sheet-pu { background: var(--tint); border-radius: var(--r-lg); padding: 24px; }
.sheet-pu-head { display: inline-flex; align-items: center; gap: 10px; font: 600 1.2rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; margin-bottom: 18px; }
.sheet-pu-head:hover { text-decoration: underline; }
.sheet-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sheet-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.sheet-groups a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.sheet-groups a:hover, .sheet-groups a[aria-current] { color: var(--hue); }
.sheet-others { padding: 8px; }
.sheet-family { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
.sheet-family .dot { margin-top: 6px; }
.sheet-family:hover, .sheet-family[aria-current] { background: var(--tint); }
.sheet-family strong { display: block; font-weight: 600; }
.sheet-family small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.sheet-mobile { display: none; }

/* ---------- Palette di ricerca ---------- */
.palette { width: min(680px, calc(100vw - 24px)); margin: 10vh auto auto; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
.palette::backdrop { background: rgba(10, 16, 30, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.palette-field { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.palette-field input { flex: 1; min-width: 0; height: 48px; border: 0; background: none; color: var(--ink); font: 500 18px var(--sans); outline: none; }
.palette-field input::-webkit-search-cancel-button { display: none; }
.palette .results { max-height: min(60vh, 520px); overflow-y: auto; padding: 8px; }
.palette-hint { margin: 0; padding: 10px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.results li a {
  display: grid; grid-template-columns: 12px 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 14px;
  border-radius: var(--r-md); color: var(--ink); text-decoration: none;
}
.results li a .dot { background: var(--c); grid-row: span 2; }
.results li strong { font-weight: 600; }
.results li small { grid-column: 2; color: var(--muted); font-size: 14px; line-height: 1.4; }
.results li em { grid-row: 1; grid-column: 3; font-style: normal; font-size: 12px; color: var(--muted); }
.results li[aria-selected="true"] a, .results li a:hover { background: var(--surface-2); }
.results .empty { padding: 16px 14px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - 76px); display: grid; align-items: center; margin-top: -76px; padding-top: 76px; overflow: hidden; isolation: isolate; }
.foam { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
  -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 70%); mask-image: linear-gradient(100deg, transparent 15%, #000 70%); }
.hero-inner { padding-block: 56px 72px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.badges li { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); }
.display { font-size: clamp(2.6rem, 0.9rem + 6.4vw, 6.4rem); line-height: .98; letter-spacing: -0.045em; max-width: 12ch; }
.hero-lede { margin-top: 24px; }
.hero-search { position: relative; max-width: 640px; margin-top: 40px; }
.hero-search-label { display: block; font: 600 15px var(--sans); color: var(--ink); margin-bottom: 10px; }
.search-field {
  display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 22px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--muted);
}
.search-field:focus-within { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--ink); font: 500 17px var(--sans); outline: none; }
.search-wrap { position: relative; }
.results-inline { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 10; padding: 8px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
.results-inline.is-open { display: block; }
.hero-search .quick { margin-top: 16px; }

/* ---------- Intestazioni sezione ---------- */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.sec-head p { color: var(--muted); max-width: 42ch; margin: 0; }
.sec-head-row { grid-template-columns: 1fr auto; }
.sec-head-row h2 { margin-bottom: 12px; }

/* ---------- Bento linee ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 12px; }
.bento-item { position: relative; overflow: hidden; border-radius: var(--r-xl); background: #0e1726; color: #fff; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; }
.bento-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.bento-item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,12,24,0) 20%, rgba(8,12,24,.55) 55%, rgba(8,12,24,.92) 100%); }
.bento-item:hover img { transform: scale(1.04); }
/* statico: così il link del titolo copre tutta la card, immagine compresa */
.bento-body { position: static; padding: 24px; }
.bento-body h3 { color: #fff; font: 600 1.25rem/1.15 var(--display); letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.bento-body h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--hue); flex: none; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.bento-body p { margin: 8px 0 0; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.45; max-width: 40ch; }
.stretched { color: inherit; text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretched:focus-visible { outline: none; }
.bento-item:has(.stretched:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.bento-0 { grid-column: span 7; grid-row: span 2; }
.bento-0 .bento-body h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); }
.bento-1, .bento-2 { grid-column: span 5; }
.bento-3, .bento-4, .bento-5, .bento-6 { grid-column: span 3; }
.bento-sub { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.bento-sub a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 13.5px; text-decoration: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.bento-sub a:hover { background: rgba(255,255,255,.28); }

/* ---------- Settori (carosello) ---------- */
.sectors {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(340px, 82vw); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--shell)) / 2 + var(--gutter)));
  padding-bottom: 8px;
}
.sectors::-webkit-scrollbar { display: none; }
.sector { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.sector img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sector-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sector-body p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.sector-links { margin-top: auto; padding-top: 10px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.sector-links a { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.sector-links a:hover { color: var(--hue); }
.carousel-ctrl { display: flex; gap: 8px; }

/* ---------- Azienda ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-lead { font: 500 clamp(1.2rem, 1rem + .7vw, 1.5rem)/1.4 var(--sans); color: var(--ink); margin-top: 20px; letter-spacing: -0.01em; }
.about-copy > p:not(.about-lead) { color: var(--muted); max-width: 44em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 32px 0 0; }
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.facts dt { font: 600 1.8rem/1 var(--display); color: var(--ink); letter-spacing: -0.03em; }
.facts dd { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.about-media { margin: 0; }
.about-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-xl); }
.about-media figcaption { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* ---------- Metodo ---------- */
.method { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.method-head { position: sticky; top: 110px; }
.method-head p { color: var(--muted); margin: 14px 0 24px; max-width: 30ch; }
.steps { position: relative; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg); font: 600 16px/1 var(--display); }
.step h3 { margin: 10px 0 6px; }
.step p { color: var(--muted); margin: 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-steps] .step { animation: lift linear both; animation-timeline: view(); animation-range: entry 0% cover 30%; }
    [data-steps] .step-n { animation: fill linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
    @keyframes lift { from { opacity: .25; transform: translateY(24px); } }
    @keyframes fill { from { background: var(--surface-2); color: var(--muted); } }
  }
}
.steps-row { grid-template-columns: repeat(3, 1fr); margin-block: 8px 32px; }
.steps-row .step { grid-template-columns: 1fr; gap: 6px; }

/* ---------- Punti di forza ---------- */
.strengths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.strength { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 16px 24px 24px 16px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.strength img { width: 180px; height: 180px; object-fit: cover; border-radius: var(--r-lg); }
.strength h3 { font: 600 1.2rem/1.2 var(--display); letter-spacing: -0.02em; margin: 8px 0 10px; }
.strength p { color: var(--muted); font-size: 15.5px; }

/* ---------- Checklist ---------- */
.checks { display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; line-height: 1.45; }
.checks .i { width: 18px; height: 18px; margin-top: 2px; color: var(--hue); }

/* ---------- CTA ---------- */
.cta-wrap { padding-top: var(--space); }
.cta { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); background: var(--cta-bg); color: #c8d2e4; padding: clamp(36px, 6vw, 80px); }
.cta h2 { color: #fff; max-width: 16ch; }
.cta p { margin-top: 16px; max-width: 46ch; }
.cta-foam {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(circle at 82% 30%, transparent 0 88px, rgba(127,155,255,.5) 89px 90px, transparent 91px),
    radial-gradient(circle at 92% 72%, transparent 0 54px, rgba(127,155,255,.45) 55px 56px, transparent 57px),
    radial-gradient(circle at 70% 78%, transparent 0 34px, rgba(127,155,255,.4) 35px 36px, transparent 37px),
    radial-gradient(circle at 96% 8%, transparent 0 40px, rgba(127,155,255,.35) 41px 42px, transparent 43px),
    radial-gradient(circle at 64% 22%, transparent 0 22px, rgba(127,155,255,.35) 23px 24px, transparent 25px),
    radial-gradient(circle at 76% 50%, rgba(47,91,255,.35), transparent 40%);
}

/* ---------- Pagine interne ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; font-size: 14px; }
.crumbs li { display: inline-flex; gap: 6px; color: var(--muted); }
.crumbs li + li::before { content: "›"; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 500; }

.phero { padding-top: 16px; }
.phero-card { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; padding: 12px 12px 12px clamp(24px, 4vw, 56px); border-radius: var(--r-xl); background: var(--tint); align-items: center; }
.phero-text { padding-block: 32px; }
.phero-text .lede { margin-top: 18px; color: var(--text); opacity: .85; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-chips li { padding: 6px 12px; border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--ink); border: 1px solid color-mix(in srgb, var(--hue) 30%, var(--line)); }
.phero-media { margin: 0; }
.phero-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: calc(var(--r-xl) - 10px); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-top: 56px; align-items: start; }
.layout-main { display: grid; gap: 40px; min-width: 0; }
.layout-aside { position: sticky; top: 104px; display: grid; gap: 12px; }
.prose { max-width: 46em; }
.prose p { color: var(--text); }
.prose h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); margin: 32px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 12px; }
.legal h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); margin: 12px 0 14px; }
.legal .lede { max-width: 46em; margin-bottom: 36px; }
.prose code { font-size: .9em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2, rgba(127,127,127,.12)); }

.request-card, .side-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.request-card .checks { margin-top: 12px; font-size: 15px; }
.request-card .btn { width: 100%; }
.side-title { font: 600 1.05rem/1.3 var(--display); letter-spacing: -0.01em; color: var(--ink); margin-bottom: 8px; }
.swatch-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.swatch-chip i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); }
.swatch-chip:hover { border-color: var(--c); }

.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.spec-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.spec-box h3 { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.spec-box h3::before { content: ""; width: 8px; height: 22px; border-radius: 4px; background: var(--hue); }

.shore { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.shore figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-bottom: 20px; color: var(--muted); }
.shore figcaption strong { color: var(--ink); font: 600 1.05rem var(--display); letter-spacing: -0.01em; }
.shore-bar { position: relative; height: 16px; border-radius: 999px; background: linear-gradient(90deg, var(--surface-2), color-mix(in srgb, var(--ink) 55%, var(--surface-2))); }
.shore-range { position: absolute; top: -6px; bottom: -6px; left: var(--a); width: calc(var(--b) - var(--a)); border-radius: 999px; background: var(--hue); box-shadow: 0 0 0 3px var(--surface); }
.shore-range.is-open { border-radius: 999px 0 0 999px; background: linear-gradient(90deg, var(--hue) 70%, transparent); box-shadow: none; }
.shore-ticks { position: relative; height: 24px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.shore-ticks span { position: absolute; left: var(--x); transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.note { font-size: 13px; color: var(--muted); margin-top: 8px; }

.soft-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--tint); }
.soft-card p { margin: 0; color: var(--ink); font-weight: 500; }
.bio-nudge { padding: 14px 20px; margin-top: 20px; background: color-mix(in oklab, var(--hue) 14%, var(--surface)); }
.bio-nudge p { font-weight: 400; font-size: 15px; flex: 1 1 280px; }
.complement .h-sm { margin-bottom: 14px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .2s; }
.tile:hover { border-color: var(--hue); }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile-body { display: grid; gap: 6px; padding: 18px 20px 20px; }
.tile-body strong { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.tile-body span { color: var(--muted); font-size: 15px; line-height: 1.45; }
.catalog { display: grid; gap: 56px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.pillar h3 { margin-bottom: 6px; }
.pillar p { color: var(--muted); font-size: 15px; }

.picks { display: grid; gap: 8px; }
.pick { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.pick:hover { border-color: var(--c); }
.pick span { line-height: 1.4; }
.pick strong { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; letter-spacing: .03em; white-space: nowrap; }
.pick strong i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); }
.series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.series { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; scroll-margin-top: 110px; }
.series-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.series-top i { width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -6px 12px rgba(0,0,0,.18); }
.series h3 { font: 600 1.15rem var(--display); letter-spacing: .01em; }
.series .muted { margin-bottom: 14px; }
.series .checks .i { color: var(--c); }
.series:target { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 35%, transparent); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-media, .wide-media { margin: 0; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); }
.wide-media img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--r-lg); }

/* ---------- Contatti / wizard ---------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; grid-template-areas: "head form" "list form"; gap: 32px 48px; padding-top: 32px; align-items: start; }
.contact-head { grid-area: head; }
.contact-head .lede { margin-top: 16px; }
.wizard { grid-area: form; }
.contact-list { grid-area: list; display: grid; gap: 10px; align-self: start; }
.contact-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; display: grid; gap: 2px; }
.contact-list span { font-size: 13px; color: var(--muted); }
.contact-list a:not(.link) { color: var(--ink); font-weight: 600; font-size: 1.1rem; text-decoration: none; }
.contact-list a:not(.link):hover { color: var(--accent); }
.contact-list p { margin: 0; color: var(--ink); }
.wizard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px, 4vw, 40px); }
.wizard-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 32px; counter-reset: w; font-size: 13px; color: var(--muted); }
.wizard-progress li { padding-top: 10px; border-top: 4px solid var(--surface-2); }
.wizard-progress li.is-done, .wizard-progress li.is-current { border-color: var(--accent); color: var(--ink); }
.no-js .wizard-progress, .no-js [data-prev], .no-js [data-next] { display: none; }
.wstep { border: 0; padding: 0; margin: 0; min-width: 0; }
.js .wstep:not(.is-current) { display: none; }
.no-js .wstep + .wstep { margin-top: 32px; }
.wstep legend { padding: 0; margin-bottom: 20px; font: 600 clamp(1.3rem, 1rem + 1vw, 1.7rem)/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.wstep-n { display: block; font: 500 13px var(--sans); color: var(--muted); letter-spacing: 0; margin-bottom: 6px; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice span { display: block; height: 100%; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg); }
.choice strong { display: block; color: var(--ink); }
.choice small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.choice input:checked + span { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field label { font-weight: 600; color: var(--ink); font-size: 15px; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 16px var(--sans); }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #d63b2f; }
.err { color: #d63b2f; font-size: 14px; font-weight: 600; margin: 0; }
.hint { color: var(--muted); font-size: 14px; margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.wizard-nav [data-next], .wizard-nav [data-submit] { margin-left: auto; }
.js .wizard:not(.is-last) [data-submit], .js .wizard.is-last [data-next], .js .wizard.is-first [data-prev] { display: none; }
.status { margin: 16px 0 0; font-weight: 500; }
.status:empty { display: none; }
.status.ok { padding: 14px 18px; border-radius: var(--r-md); background: color-mix(in srgb, #1fa99a 14%, var(--surface)); color: var(--ink); }

.nf { min-height: 50vh; }

/* ---------- Footer ---------- */
.footer { margin-top: 0; border-top: 1px solid var(--line); background: var(--surface); padding-top: 64px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { color: var(--muted); margin-top: 16px; max-width: 34ch; }
.footer-title { font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.footer li + li { margin-top: 8px; }
.footer a { color: var(--text); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-contacts a { display: inline-flex; gap: 10px; align-items: flex-start; }
.footer-contacts .i { width: 18px; height: 18px; margin-top: 3px; color: var(--muted); }
.iso { display: flex; align-items: center; gap: 14px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.iso img { border-radius: 12px; background: #fff; padding: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1120px) {
  .search-trigger-text, .search-trigger kbd { display: none; }
  .search-trigger { width: 44px; padding: 0; justify-content: center; }
  .bento { grid-auto-rows: 230px; }
  .bento-0 { grid-column: span 12; }
  .bento-1, .bento-2, .bento-3, .bento-4, .bento-5, .bento-6 { grid-column: span 6; }
  .strengths, .series-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-menu { display: inline-grid; }
  .sheet { max-height: calc(100svh - 96px); }
  .sheet-inner { grid-template-columns: 1fr; }
  .sheet-groups { grid-template-columns: 1fr; gap: 14px; }
  .sheet-groups a { padding: 9px 0; }
  .sheet-mobile { display: grid; gap: 4px; padding: 4px 14px 16px; }
  .sheet-mobile a:not(.btn) { display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
  .sheet-mobile .btn { margin-top: 12px; }
  .hero { min-height: auto; }
  .foam { -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%); mask-image: linear-gradient(180deg, #000 0%, transparent 75%); opacity: .55; }
  .sec-head, .about-grid, .method, .phero-card, .layout, .contact, .split { grid-template-columns: 1fr; }
  .method-head, .layout-aside { position: static; }
  .contact { grid-template-areas: "head" "form" "list"; }
  .sheet-mobile { order: -1; border-bottom: 1px solid var(--line); }
  .phero-card { padding: 10px; }
  .phero-text { padding: 20px 14px 24px; order: 2; }
  .phero-media img { aspect-ratio: 16 / 10; }
  .steps-row, .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { top: 8px; padding-inline: 8px; }
  .nav-bar { padding: 6px 6px 6px 14px; gap: 6px; }
  .brand span { font-size: 16px; }
  .bento { grid-auto-rows: 210px; }
  .bento-0 { grid-row: span 2; }
  .bento-1, .bento-2, .bento-3, .bento-4, .bento-5, .bento-6 { grid-column: span 12; }
  .facts { grid-template-columns: 1fr; }
  .strength { grid-template-columns: 1fr; padding: 12px 12px 20px; }
  .strength img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .strength > div { padding-inline: 8px; }
  .choices, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .search-field { height: 58px; }
  .actions .btn { flex: 1 1 100%; }
  .pick { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
