/* ============================================================
   nexus — sito commerciale (vetrina pubblica)
   Palette e forme dal design system della suite; titoli serif
   come la guida illustrata, per distinguere il materiale
   divulgativo dalle superfici del prodotto.
   Generato a mano una volta sola: il markup lo compone
   tools/site/build-vetrina.py.
   ============================================================ */

:root {
  color-scheme: light;

  --frame:       #0A1526;
  --frame-soft:  #0F1E36;
  --paper:       #FFFFFF;
  --paper-alt:   #F4F7FA;
  --field:       #EEF3F8;
  --line:        rgb(10 21 38 / .10);
  --line-strong: rgb(10 21 38 / .18);

  --ink:         #0F172A;
  --ink-muted:   #51637C;
  --ink-faint:   #7D8DA3;
  --on-frame:    #FFFFFF;
  --on-frame-mut:#9FB2C8;
  --on-frame-fnt:#5A749A;

  --teal:        #1CCFC9;
  --teal-deep:   #0E8F8A;
  --amber:       #F59E0B;
  --amber-ink:   #8A5800;
  --ok:          #22C55E;

  --r-lg: 20px;
  --r:    14px;
  --r-sm: 9px;

  --shadow:      0 1px 2px rgb(10 21 38 / .06), 0 12px 28px -22px rgb(10 21 38 / .5);
  --shadow-lift: 0 2px 6px rgb(10 21 38 / .08), 0 30px 60px -36px rgb(10 21 38 / .55);

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, Consolas, monospace;

  --measure: 64ch;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 62px); line-height: 1.05; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.14; }
h3 { font-size: 21px; line-height: 1.25; }
h4 { font-size: 16px; line-height: 1.3; font-family: var(--sans); font-weight: 600; }
p  { margin: 0; }
a  { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep);
}
.eyebrow--onframe { color: var(--on-frame-fnt); }
.lead { font-size: clamp(17px, 1.7vw, 20px); line-height: 1.6; color: var(--ink-muted); max-width: var(--measure); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mark { background: linear-gradient(transparent 62%, rgb(28 207 201 / .35) 62%); }

/* ---------- barra in alto ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgb(10 21 38 / .96);
  backdrop-filter: blur(8px);
  color: var(--on-frame);
  border-bottom: 1px solid rgb(255 255 255 / .08);
}
.top__in { display: flex; align-items: center; gap: 24px; min-height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; flex: none; }
.brand svg { height: 26px; width: auto; display: block; }
.brand b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.brand span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .15em; text-transform: uppercase; color: var(--on-frame-fnt); border-left: 1px solid rgb(255 255 255 / .16); padding-left: 11px; }
.nav { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.nav a {
  font-size: 13.5px; font-weight: 500; color: var(--on-frame-mut); text-decoration: none;
  padding: 8px 12px; border-radius: var(--r-sm);
}
.nav a:hover, .nav a:focus-visible { background: rgb(255 255 255 / .08); color: var(--on-frame); }
.nav a.is-here { color: var(--on-frame); }
.nav .btn { margin-left: 8px; }
@media (max-width: 860px) {
  .nav a { padding: 8px 8px; font-size: 12.5px; }
  .brand span { display: none; }
}
@media (max-width: 620px) { .nav a:not(.btn) { display: none; } }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 22px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn--primary { background: var(--teal); color: #06221F; }
.btn--primary:hover { background: #16b8b2; transform: translateY(-1px); }
.btn--ghost { border-color: rgb(255 255 255 / .26); color: var(--on-frame); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn--dark { border-color: var(--line-strong); color: var(--ink); }
.btn--dark:hover { border-color: var(--teal-deep); color: var(--teal-deep); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13px; }

/* ---------- apertura ---------- */
.hero { position: relative; background: var(--frame); color: var(--on-frame); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 8% -20%, rgb(28 207 201 / .18), transparent 55%),
    radial-gradient(80% 60% at 98% 0%, rgb(47 107 255 / .12), transparent 60%);
}
.hero__in { position: relative; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); }
.hero h1 { color: var(--on-frame); max-width: 16ch; margin-top: 20px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero__lead { margin-top: 24px; max-width: 60ch; font-size: clamp(17px, 1.8vw, 20px); color: var(--on-frame-mut); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__shot { position: relative; margin-top: clamp(36px, 5vw, 64px); }

/* cornice da finestra, per dire "questa e' una schermata vera" */
.shot { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-lift); }
.shot__bar { display: flex; align-items: center; gap: 7px; padding: 9px 13px; background: var(--field); border-bottom: 1px solid var(--line); }
.shot__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.shot__bar span { margin-left: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-faint); letter-spacing: .04em; }
.shot img { width: 100%; height: auto; }
.shot--frameless { border: none; box-shadow: none; background: none; }
.hero .shot { border-color: rgb(255 255 255 / .14); }
.hero .shot__bar { background: #16233A; border-bottom-color: rgb(255 255 255 / .10); }
.hero .shot__bar i { background: rgb(255 255 255 / .22); }
.hero .shot__bar span { color: var(--on-frame-fnt); }
figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-faint); }
figure { margin: 0; }

/* ---------- fascia dei numeri ---------- */
.facts { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: rgb(255 255 255 / .10); border-top: 1px solid rgb(255 255 255 / .10); }
.fact { background: var(--frame); padding: 22px 24px; }
.fact b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--on-frame); letter-spacing: -.02em; }
.fact span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--on-frame-mut); }

/* ---------- sezioni ---------- */
.band { padding: clamp(56px, 7vw, 96px) 0; }
.band--alt { background: var(--paper-alt); }
.band--dark { background: var(--frame); color: var(--on-frame); }
.band--dark .lead { color: var(--on-frame-mut); }
.band--dark h2 { color: var(--on-frame); }
.head { display: flex; flex-direction: column; gap: 14px; max-width: var(--measure); margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- blocco punto forte: testo + schermata ---------- */
.strength { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.strength + .strength { margin-top: clamp(48px, 6vw, 88px); }
.strength--flip .strength__txt { order: 2; }
@media (max-width: 900px) {
  .strength { grid-template-columns: 1fr; gap: 26px; }
  .strength--flip .strength__txt { order: 0; }
}
.strength__n { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--teal-deep); text-transform: uppercase; }
.strength h3 { margin: 12px 0 12px; font-size: clamp(22px, 2.4vw, 30px); }
.strength p { color: var(--ink-muted); font-size: 16px; }
.strength p + p { margin-top: 12px; }
.strength ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.strength li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.5; color: var(--ink-muted); }
.strength li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-top: 2px solid var(--teal); border-right: 2px solid var(--teal); }

/* ---------- griglie di schede ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.band--alt .card { background: var(--paper); }
.card__icon { width: 28px; height: 28px; color: var(--teal-deep); }
.card__icon svg { width: 100%; height: 100%; }
.card p { font-size: 14.5px; line-height: 1.55; color: var(--ink-muted); }
.card ul { margin: 2px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.card li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.45; color: var(--ink-muted); }
.card li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-top: 1.5px solid var(--teal); border-right: 1.5px solid var(--teal); }
.card--dark { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .12); box-shadow: none; }
.card--dark p, .card--dark li { color: var(--on-frame-mut); }
.card--dark h4, .card--dark h3 { color: var(--on-frame); }

/* ---------- casi con prima/dopo ---------- */
.case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.case__h { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.case__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); }
.case__h h3 { margin-top: 8px; font-size: 19px; }
.case__b { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba div { border-radius: var(--r-sm); padding: 12px 14px; font-size: 13.5px; line-height: 1.5; }
.ba .before { background: var(--field); color: var(--ink-muted); }
.ba .after { background: rgb(28 207 201 / .12); color: var(--ink); }
.ba b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; color: var(--ink-faint); }
.ba .after b { color: var(--teal-deep); }

/* ---------- riquadri di garanzia ---------- */
.guards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .guards { grid-template-columns: 1fr; } }
.guard { border: 1px solid rgb(255 255 255 / .12); border-left: 3px solid var(--teal); border-radius: var(--r-sm); padding: 18px 20px; background: rgb(255 255 255 / .04); }
.guard h4 { color: var(--on-frame); margin-bottom: 7px; }
.guard p { font-size: 14px; line-height: 1.55; color: var(--on-frame-mut); }
.guard--amber { border-left-color: var(--amber); }

/* ---------- passi ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; box-shadow: var(--shadow); }
.step b { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--frame); color: var(--on-frame); font-family: var(--mono); font-size: 13px; margin-bottom: 14px; }
.step h4 { margin-bottom: 7px; font-size: 17px; font-family: var(--serif); font-weight: 600; }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--ink-muted); }

/* ---------- elenco a righe (approfondimenti) ---------- */
.rows { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.row { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
@media (max-width: 720px) { .row { grid-template-columns: 1fr; gap: 6px; } }
.row__k { font-size: 14.5px; font-weight: 600; }
.row__k span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
.row__v { font-size: 14.5px; line-height: 1.6; color: var(--ink-muted); }

/* ---------- etichette ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); font-size: 13px; font-weight: 600; }
.tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.tag--muted { font-weight: 500; color: var(--ink-muted); }
.tag--muted i { background: var(--ink-faint); }

/* ---------- elenco pacchetti ---------- */
.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 780px) { .packs { grid-template-columns: 1fr; } }
.pack { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 15px 17px; background: var(--paper); }
.pack h4 { font-size: 15px; margin-bottom: 5px; }
.pack p { font-size: 13.5px; line-height: 1.5; color: var(--ink-muted); }

/* ---------- nota ---------- */
.note { margin-top: 24px; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); border-left: 3px solid var(--teal); background: var(--paper); font-size: 15px; line-height: 1.65; color: var(--ink-muted); box-shadow: var(--shadow); }
.note b { color: var(--ink); }
.band--dark .note { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .12); border-left-color: var(--teal); color: var(--on-frame-mut); }
.band--dark .note b { color: var(--on-frame); }

/* ---------- chiamata all'azione ---------- */
.cta { text-align: center; padding: clamp(56px, 7vw, 96px) 0; background: var(--frame); color: var(--on-frame); }
.cta h2 { color: var(--on-frame); max-width: 20ch; margin: 0 auto; }
.cta p { max-width: 56ch; margin: 18px auto 0; color: var(--on-frame-mut); font-size: 17px; }
.cta .hero__cta { justify-content: center; }
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 40px; text-align: left; }
.contact { border: 1px dashed rgb(255 255 255 / .28); border-radius: var(--r); padding: 18px 20px; }
.contact b { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-frame-fnt); margin-bottom: 8px; }
.contact span { font-size: 15px; color: var(--on-frame); }
.contact em { display: block; font-style: normal; font-size: 12.5px; color: var(--amber); margin-top: 6px; }

/* ---------- piede ---------- */
.foot { background: var(--frame-soft); color: var(--on-frame-mut); padding: 30px 0 40px; font-size: 13px; border-top: 1px solid rgb(255 255 255 / .08); }
.foot__in { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: baseline; }
.foot a { color: var(--on-frame-mut); text-decoration: none; }
.foot a:hover { color: var(--teal); }
.foot__links { display: flex; flex-wrap: wrap; gap: 18px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
