/* =============================================================
   ProntoClick — "Officina svizzera"
   Sistema di design: griglia editoriale, bordi hairline,
   colore in OKLCH, un solo accento segnale.
   ============================================================= */

/* ---- Token ---------------------------------------------------- */
:root {
  /* Colore — fallback sRGB per browser senza OKLCH (override in fondo al file).
     La tesi resta la stessa: dominante grigio-freddo, UN accento arancio, NON viola. */
  --paper:        #f7f8f9;   /* sfondo, quasi-bianco freddo  */
  --paper-2:      #edeff1;   /* superficie alternata          */
  --ink:          #20242c;   /* quasi-nero freddo (testo)     */
  --ink-2:        #20242c;
  --muted:        #5e636e;   /* testo secondario              */
  --faint:        #868b94;   /* testo terziario / didascalie  */
  --line:         #dcdee2;   /* hairline 1px                  */
  --line-strong:  #c3c6cc;   /* hairline più marcata          */

  --accent:       #006b86;   /* TEAL brand (bottone "Contattaci") */
  --accent-ink:   #004f63;   /* teal scuro per testo su chiaro    */
  --accent-bright:#3bafcb;   /* teal chiaro per accenti su scuro  */
  --accent-wash:  rgba(0, 107, 134, 0.10);

  /* Sezioni scure ad alto contrasto */
  --dark:         #20242c;
  --dark-2:       #2b2f38;
  --on-dark:      #f1f2f4;
  --on-dark-muted:#a8acb5;
  --line-dark:    #3b3f49;
  --header-bg:    rgba(247, 248, 249, 0.82);
  --on-accent:    #ffffff;   /* testo bianco su teal */

  /* Tipografia */
  --display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;

  /* Scala tipografica modulare 1.25 (Major Third) su base 1rem */
  --step--1: clamp(0.80rem, 0.78rem + 0.10vw, 0.86rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.125rem);
  --step-1:  clamp(1.25rem, 1.18rem + 0.35vw, 1.45rem);
  --step-2:  clamp(1.56rem, 1.42rem + 0.70vw, 2.05rem);
  --step-3:  clamp(1.95rem, 1.68rem + 1.35vw, 3.05rem);
  --step-4:  clamp(2.44rem, 1.95rem + 2.45vw, 4.40rem);
  --step-5:  clamp(3.05rem, 2.20rem + 4.20vw, 6.20rem);

  /* Ritmo verticale e contenitore */
  --gutter: clamp(1.25rem, 0.9rem + 1.6vw, 2rem);
  --maxw: 78rem;
  --radius: 6px;            /* raggi moderati e coerenti, non rounded-2xl  */
  --radius-sm: 3px;

  /* Ombre: morbide, basse, multilivello — usate con parsimonia */
  --shadow-1: 0 1px 2px oklch(0.205 0.013 255 / 0.05),
              0 2px 6px oklch(0.205 0.013 255 / 0.04);
  --shadow-2: 0 2px 4px oklch(0.205 0.013 255 / 0.06),
              0 8px 24px oklch(0.205 0.013 255 / 0.07);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Reset essenziale ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: oklch(0.99 0 0); }

/* ---- Tipografia ---------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 700; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.02em; }
h4 { font-size: var(--step-1); letter-spacing: -0.01em; }
p  { max-width: 65ch; }
strong { font-weight: 600; }

/* Micro-tipografia: etichette in maiuscoletto monospace */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 1.6em; height: 1px;
  background: var(--accent);
  display: inline-block;
}
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; }
.num  { font-family: var(--display); font-variant-numeric: tabular-nums; }

/* ---- Layout: griglia editoriale a 12 colonne ----------------- */
.wrap {
  width: min(100% - 2*var(--gutter), var(--maxw));
  margin-inline: auto;
}
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}
section { padding-block: clamp(3.5rem, 2.5rem + 4vw, 7rem); }

/* Linee guida verticali (allineamento ottico, definizione dei piani) */
.ruled { border-top: 1px solid var(--line); }

/* ---- Header / nav -------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; font-size: 1.18rem; }
.brand .mark {
  width: 26px; height: 26px; border: 1px solid var(--ink);
  display: grid; place-items: center; border-radius: var(--radius-sm);
  position: relative; background: var(--ink); color: var(--paper);
}
.brand .mark::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; background: var(--accent); }
.brand .logo-img { display: block; height: 30px; width: auto; }
.brand .logo-img--footer { height: 34px; }
.nav-links { display: flex; gap: 1.35rem; align-items: center; font-size: 0.95rem; }
.nav-links a { color: var(--muted); transition: color 0.15s var(--ease); position: relative; padding-block: 4px; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; align-items: center; gap: 1rem; }
.nav-phone { font-family: var(--mono); font-size: 0.92rem; color: var(--ink); display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.nav-toggle { display: none; border: 1px solid var(--line-strong); background: transparent; width: 42px; height: 38px; border-radius: var(--radius-sm); align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 1.5px; background: var(--ink); transition: 0.2s var(--ease); }
.nav-toggle span::before { transform: translateY(-5px); } .nav-toggle span::after { transform: translateY(3.5px); }

/* ---- Bottoni ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--body); font-weight: 600; font-size: 0.98rem;
  padding: 0.78rem 1.25rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: 0.18s var(--ease);
  line-height: 1;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); color: var(--on-accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--accent-ink); border-color: var(--accent); }
.btn-ghost:hover { border-color: var(--accent-ink); background: var(--accent-wash); color: var(--accent-ink); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn svg { width: 17px; height: 17px; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---- HERO: editoriale, asimmetrico (NON centrato) ------------ */
.hero { padding-top: clamp(2.5rem, 2rem + 3vw, 5rem); position: relative; }
.hero .grid12 { align-items: end; row-gap: clamp(2rem, 4vw, 3rem); }
.hero-head { grid-column: 1 / 9; }
.hero-head h1 { margin-top: 1.4rem; }
.hero-head .lede { font-size: var(--step-1); color: var(--muted); margin-top: 1.6rem; max-width: 48ch; line-height: 1.45; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; align-items: center; }
.hero-trust { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: var(--muted); margin-left: 0.3rem; }
.stars { color: var(--accent); letter-spacing: 0.08em; font-size: 0.95rem; }

/* Pannello dati a destra, definito da bordi non da ombra */
.hero-panel { grid-column: 9 / 13; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; align-self: stretch; }
.hero-panel .row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.hero-panel .row:last-child { border-bottom: 0; }
.hero-panel .k { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.hero-panel .v { font-family: var(--display); font-weight: 600; font-size: 1.45rem; }
.hero-panel .v small { font-size: 0.7em; color: var(--muted); font-weight: 500; }
.hero-panel .top { background: var(--accent); color: var(--on-accent); }
.hero-panel .top .k { color: rgba(255, 255, 255, 0.82); }
.hero-panel .top .v { color: var(--on-accent); }

.hero-figure { grid-column: 1 / 13; margin-top: clamp(2rem, 4vw, 3.5rem); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; background: var(--paper-2); }
.hero-figure img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; filter: saturate(0.95) contrast(1.02); }
.hero-figure figcaption { position: absolute; left: 0; bottom: 0; background: oklch(0.205 0.013 255 / 0.86); color: var(--on-dark); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.05em; padding: 0.5rem 0.8rem; border-top-right-radius: var(--radius-sm); }

/* ---- Marquee partner / contesto ------------------------------ */
.strip { border-block: 1px solid var(--line); background: var(--paper-2); }
.strip .wrap { display: flex; align-items: center; gap: 2rem; padding-block: 1.1rem; flex-wrap: wrap; }
.strip .label { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.strip ul { display: flex; gap: 1.8rem; list-style: none; padding: 0; flex-wrap: wrap; font-family: var(--display); font-weight: 600; color: var(--muted); font-size: 1.02rem; }

/* ---- Intestazione di sezione --------------------------------- */
.sec-head { grid-column: 1 / 13; display: grid; grid-template-columns: subgrid; }
.sec-head .lhs { grid-column: 1 / 8; }
.sec-head h2 { margin-top: 0.9rem; }
.sec-head .rhs { grid-column: 9 / 13; align-self: end; color: var(--muted); }
@supports not (grid-template-columns: subgrid) {
  .sec-head { display: block; }
  .sec-head .rhs { margin-top: 1rem; }
}

/* ---- Servizi: griglia con bordi, una card prominente --------- */
.services { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 2.5rem; }
.svc { background: var(--paper); padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); display: flex; flex-direction: column; gap: 0.9rem; min-height: 230px; transition: background 0.2s var(--ease); position: relative; }
.svc:hover { background: var(--paper-2); }
.svc .idx { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); letter-spacing: 0.05em; }
.svc .ico { width: 30px; height: 30px; color: var(--ink); }
.svc h3 { font-size: var(--step-1); }
.svc p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.svc .more { font-family: var(--mono); font-size: 0.8rem; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 0.4rem; letter-spacing: 0.04em; }
.svc .more svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }
.svc:hover .more svg { transform: translateX(3px); }
.svc.col6 { grid-column: span 6; }
.svc.col4 { grid-column: span 4; }
.svc.feature { grid-column: span 6; background: var(--ink); color: var(--on-dark); }
.svc.feature h3, .svc.feature .ico { color: var(--on-dark); }
.svc.feature p { color: var(--on-dark-muted); }
.svc.feature .idx, .svc.feature .more { color: var(--accent-bright); }

/* ---- Sezione "perché noi": testo + lista vantaggi ------------ */
.why { background: var(--dark); color: var(--on-dark); border-block: 1px solid var(--line-dark); }
.why h2, .why h3 { color: var(--on-dark); }
.why .eyebrow { color: var(--accent-bright); }
.why .eyebrow::before { background: var(--accent-bright); }
.why-lead { grid-column: 1 / 7; }
.why-lead p { color: var(--on-dark-muted); margin-top: 1.4rem; font-size: var(--step-1); line-height: 1.5; }
.why-list { grid-column: 8 / 13; display: grid; gap: 0; align-self: center; }
.why-item { padding: 1.3rem 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: auto 1fr; gap: 1rem; }
.why-item:last-child { border-bottom: 1px solid var(--line-dark); }
.why-item .ico { width: 22px; height: 22px; color: var(--accent-bright); margin-top: 3px; }
.why-item h4 { color: var(--on-dark); margin-bottom: 0.25rem; }
.why-item p { color: var(--on-dark-muted); font-size: 0.95rem; }

/* ---- Processo: passi numerati orizzontali -------------------- */
.steps { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); border-right: 1px solid var(--line); position: relative; }
.step:last-child { border-right: 0; }
.step .n { font-family: var(--display); font-weight: 700; font-size: var(--step-3); color: var(--accent); line-height: 1; }
.step h4 { margin: 1rem 0 0.5rem; }
.step p { color: var(--muted); font-size: 0.96rem; }
.step .dur { font-family: var(--mono); font-size: 0.76rem; color: var(--faint); margin-top: 0.8rem; display: block; letter-spacing: 0.05em; }

/* ---- Statistiche: numeri grandi su griglia ------------------- */
.stats { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2.5rem; border-top: 1px solid var(--line); }
.stat { padding: 2rem 0.5rem 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .v { font-family: var(--display); font-weight: 700; font-size: var(--step-4); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat .v .u { color: var(--accent); }
.stat .k { color: var(--muted); font-size: 0.95rem; margin-top: 0.4rem; }

/* ---- Testimonianze ------------------------------------------- */
.quotes { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.quote { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; gap: 1.1rem; background: var(--paper); }
.quote .stars { font-size: 0.9rem; }
.quote blockquote { font-size: 1.05rem; line-height: 1.5; color: var(--ink); }
.quote blockquote::before { content: "“"; font-family: var(--display); color: var(--accent); font-size: 1.5em; line-height: 0; vertical-align: -0.3em; margin-right: 0.05em; }
.quote .who { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.quote .ava { width: 38px; height: 38px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--muted); font-size: 0.95rem; }
.quote .who b { font-size: 0.95rem; } .quote .who span { color: var(--faint); font-size: 0.85rem; display: block; }

/* ---- FAQ: accordion (semantica details/summary) ------------- */
.faq-wrap { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); margin-top: 2.5rem; }
.faq-list { grid-column: 4 / 13; }
.faq-aside { grid-column: 1 / 4; }
.faq-aside .eyebrow { margin-bottom: 1rem; }
.faq-aside p { color: var(--muted); font-size: 0.95rem; }
details.faq { border-top: 1px solid var(--line); }
details.faq:last-child { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; padding: 1.25rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--display); font-weight: 600; font-size: var(--step-1); letter-spacing: -0.01em; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .pm { flex: none; width: 24px; height: 24px; position: relative; }
details.faq summary .pm::before, details.faq summary .pm::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--ink); transition: 0.25s var(--ease); }
details.faq summary .pm::before { width: 14px; height: 1.5px; } details.faq summary .pm::after { width: 1.5px; height: 14px; }
details.faq[open] summary .pm::after { transform: rotate(90deg); opacity: 0; }
details.faq[open] summary .pm::before { background: var(--accent); }
.faq-body { overflow: hidden; }
.faq-body p { color: var(--muted); padding-bottom: 1.4rem; max-width: 70ch; }

/* ---- Contatto / CTA finale ----------------------------------- */
.contact { background: var(--dark); color: var(--on-dark); }
.contact h2, .contact h3 { color: var(--on-dark); }
.contact .eyebrow { color: var(--accent-bright); } .contact .eyebrow::before { background: var(--accent-bright); }
.contact-lead { grid-column: 1 / 7; }
.contact-lead p { color: var(--on-dark-muted); margin-top: 1.4rem; font-size: var(--step-1); line-height: 1.5; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.contact-card { grid-column: 8 / 13; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.contact-card a, .contact-card .ci { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; border-bottom: 1px solid var(--line-dark); transition: background 0.18s var(--ease); }
.contact-card a:last-child, .contact-card .ci:last-child { border-bottom: 0; }
.contact-card a:hover { background: var(--dark-2); }
.contact-card .ico { width: 20px; height: 20px; color: var(--accent-bright); flex: none; }
.contact-card .k { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-dark-muted); }
.contact-card .v { color: var(--on-dark); font-weight: 600; font-size: 1.02rem; }

/* ---- Footer -------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gutter); }
.site-footer h5 { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.site-footer ul a { color: var(--muted); } .site-footer ul a:hover { color: var(--ink); }
.footer-about p { color: var(--muted); margin: 1rem 0; max-width: 34ch; }
.social { display: flex; gap: 0.6rem; }
.social a { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: var(--radius-sm); display: grid; place-items: center; color: var(--muted); transition: 0.18s var(--ease); }
.social a:hover { color: var(--ink); border-color: var(--ink); }
.social svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; }
.footer-bottom .mono { color: var(--faint); }

/* ---- Animazioni allo scroll (misurate, con scopo) ------------ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* =============================================================
   Responsive
   ============================================================= */
/* Larghezze medie: nascondi il telefono autonomo per non far rompere la nav */
@media (max-width: 1040px) {
  .nav-phone { display: none; }
  .nav-links { gap: 1.1rem; }
}

@media (max-width: 960px) {
  .hero-head, .hero-panel, .hero-figure { grid-column: 1 / 13; }
  .svc--full-tablet { grid-column: 1 / -1; }   /* niente cella vuota nella griglia 2 col */
  .hero-panel { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line-strong); }
  .hero-panel .row { border-bottom: 1px solid var(--line); }
  .hero-panel .row:nth-child(odd) { border-right: 1px solid var(--line); }
  .sec-head .lhs, .sec-head .rhs { grid-column: 1 / 13; }
  .why-lead, .why-list, .contact-lead, .contact-card, .faq-list, .faq-aside { grid-column: 1 / 13; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .svc.col6, .svc.col4, .svc.feature { grid-column: span 6; }
}
@media (max-width: 720px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav[data-open="true"] .nav-links { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter); gap: 0.4rem; }
  .nav[data-open="true"] .nav-links a { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
  .steps, .stats { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 1.4rem 0; } .stat:last-child { border-bottom: 0; }
  .quotes { grid-template-columns: 1fr; }
  .svc.col6, .svc.col4, .svc.feature { grid-column: 1 / -1; }
  .services { grid-template-columns: 1fr; }
  .faq-list { grid-column: 1 / 13; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: var(--step-4); }
}

/* =============================================================
   Override OKLCH — solo dove supportato (browser moderni):
   controllo percettivo preciso di luminosità/croma.
   I browser senza OKLCH restano sui fallback sRGB del :root.
   ============================================================= */
@supports (color: oklch(0.5 0.1 250)) {
  :root {
    --paper:        oklch(0.985 0.004 240);
    --paper-2:      oklch(0.955 0.005 240);
    --ink:          oklch(0.205 0.013 255);
    --ink-2:        oklch(0.205 0.013 255);
    --muted:        oklch(0.475 0.013 255);
    --faint:        oklch(0.620 0.010 255);
    --line:         oklch(0.885 0.006 250);
    --line-strong:  oklch(0.800 0.008 250);
    --accent:       oklch(0.490 0.091 223);
    --accent-ink:   oklch(0.397 0.073 222);
    --accent-bright:oklch(0.702 0.108 217);
    --accent-wash:  oklch(0.490 0.091 223 / 0.10);
    --dark:         oklch(0.205 0.013 255);
    --dark-2:       oklch(0.255 0.013 255);
    --on-dark:      oklch(0.965 0.004 250);
    --on-dark-muted:oklch(0.730 0.012 255);
    --line-dark:    oklch(0.330 0.013 255);
    --header-bg:    oklch(0.985 0.004 240 / 0.82);
    --on-accent:    oklch(1 0 0);
  }
}

/* =============================================================
   Pagine interne (servizi) — riusano i token del sistema
   ============================================================= */
.breadcrumb { padding-top: 1.5rem; }
.breadcrumb ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--faint); text-transform: uppercase; }
.breadcrumb li::after { content: "/"; margin-left: 0.5rem; color: var(--line-strong); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb li[aria-current] { color: var(--ink); }

.page-hero { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem) clamp(2.5rem, 2rem + 3vw, 4rem); border-bottom: 1px solid var(--line); }
.page-hero .grid12 { align-items: end; }
.page-hero .lhs { grid-column: 1 / 9; }
.page-hero h1 { font-size: var(--step-4); margin-top: 1.2rem; }
.page-hero .lede { font-size: var(--step-1); color: var(--muted); margin-top: 1.4rem; max-width: 52ch; line-height: 1.45; }
.page-hero .actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; align-items: center; }
.page-hero .rhs { grid-column: 10 / 13; align-self: end; }
.page-hero .badge { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1rem 1.15rem; }
.page-hero .badge .k { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); display: block; }
.page-hero .badge .v { font-family: var(--display); font-weight: 600; font-size: 1.3rem; }

.prose { grid-column: 2 / 10; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.8rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.8rem; }
.prose p, .prose li { color: var(--muted); }
.prose p { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.1rem; display: grid; gap: 0.55rem; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose .lead { font-size: var(--step-1); color: var(--ink); line-height: 1.5; max-width: 60ch; }
.prose-aside { grid-column: 10 / 12; }
.prose-aside .card { position: sticky; top: 84px; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.3rem; }
.prose-aside .card h4 { font-size: 1.05rem; } .prose-aside .card p { color: var(--muted); font-size: 0.92rem; margin: 0.6rem 0 1rem; }

.info-grid { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 1rem; }
.info-grid .cell { background: var(--paper); padding: 1.5rem; }
.info-grid .cell .ico { width: 26px; height: 26px; color: var(--accent); }
.info-grid .cell h3 { font-size: var(--step-1); margin: 0.7rem 0 0.4rem; }
.info-grid .cell p { color: var(--muted); font-size: 0.95rem; }

.related { grid-column: 1 / 13; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.related a { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: block; transition: 0.18s var(--ease); }
.related a:hover { border-color: var(--ink); background: var(--paper-2); }
.related .k { font-family: var(--mono); font-size: 0.74rem; color: var(--accent-ink); letter-spacing: 0.05em; }
.related h3 { font-size: var(--step-1); margin: 0.5rem 0; }
.related p { color: var(--muted); font-size: 0.93rem; }

@media (max-width: 960px) {
  .page-hero .lhs, .page-hero .rhs { grid-column: 1 / 13; }
  .page-hero .rhs { margin-top: 1.5rem; }
  .prose, .prose-aside { grid-column: 1 / 13; }
  .prose-aside .card { position: static; }
  .info-grid, .related { grid-template-columns: 1fr; }
}
