/* =========================================================================
   Newmatost - sistema visivo
   Tema unico chiaro. Nessuna modalita scura per scelta del progetto.
   Palette: pino profondo + carta fredda + vermiglio (accento unico).
   Raggi: pillola per i bottoni, 16px per i blocchi, 10px per i campi form.
   ========================================================================= */

:root {
  --paper:      #f2f3ee;
  --paper-deep: #e7eae2;
  --surface:    #ffffff;
  --ink:        #17211c;
  --ink-soft:   #4a564e;
  --ink-faint:  #6d786f;
  --pine:       #123729;
  --pine-hi:    #1b5140;
  --pine-deep:  #0c2820;
  --accent:     #e4572e;
  --accent-ink: #b8390f;
  --line:       #d8dcd2;
  --line-soft:  #e4e7de;
  --on-pine:    #eef1e9;

  --r-block: 16px;
  --r-media: 14px;
  --r-field: 10px;
  --r-pill:  999px;

  --shell: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --band: clamp(4.5rem, 8vw, 7.5rem);

  --shadow-soft: 0 1px 2px rgba(18, 55, 41, .05), 0 12px 32px -18px rgba(18, 55, 41, .28);
  --shadow-lift: 0 2px 4px rgba(18, 55, 41, .06), 0 26px 56px -24px rgba(18, 55, 41, .34);

  --ease: cubic-bezier(.16, 1, .3, 1);

  --font-display: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.95rem, 3.9vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.015em; }
h4 { font-size: 1.075rem; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--pine); color: var(--on-pine);
  padding: .75rem 1.25rem; border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ------------------------------------------------------------------ shell */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell-narrow { max-width: 860px; }

.band { padding-block: var(--band); }
.band-tight { padding-block: clamp(3rem, 5vw, 4.5rem); }
.band-paper-deep { background: var(--paper-deep); }
.band-pine { background: var(--pine); color: var(--on-pine); }
.band-pine h2, .band-pine h3 { color: #fff; }
.band-pine a { color: #fff; }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ------------------------------------------------------------------ tipo */
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 1rem;
}
.band-pine .eyebrow { color: #f0a184; }

.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
}
.band-pine .lede { color: #cfdbd0; }

.muted { color: var(--ink-soft); }
.small { font-size: .925rem; }
.mono-num { font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------- bottoni */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .12s var(--ease),
              box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-solid { background: var(--pine); color: #fff; }
.btn-solid:hover { background: var(--pine-hi); box-shadow: var(--shadow-soft); }

.btn-line { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-line:hover { background: var(--pine); color: #fff; }

.btn-light { background: #fff; color: var(--pine); }
.btn-light:hover { background: var(--paper-deep); }

.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: gap .2s var(--ease);
}
.link-arrow:hover { gap: .7rem; }
.band-pine .link-arrow { color: #f4b39b; }

/* ------------------------------------------------------------- intestata */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 243, 238, .93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

/* tre colonne: marchio a sinistra, navigazione centrata, azioni a destra */
.head-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 72px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 32px; width: auto; display: block; }

.nav-main { min-width: 0; }
.nav-main ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.9rem, 2vw, 1.75rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
/* il tratto sotto la voce attiva non altera l'altezza della riga */
.nav-main a {
  position: relative;
  display: flex;
  align-items: center;
  height: 72px;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 2px;
  background: transparent;
  transition: background-color .2s var(--ease);
}
.nav-main a:hover { color: var(--pine); }
.nav-main a:hover::after { background: var(--accent); }
.nav-main a[aria-current="page"] { color: var(--pine); }
.nav-main a[aria-current="page"]::after { background: var(--pine); }

.head-actions { display: flex; align-items: center; justify-content: flex-end; gap: .9rem; }
.head-phone {
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.head-phone:hover { color: var(--accent-ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  content: "";
  position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.nav-mobile { border-top: 1px solid var(--line); background: var(--paper); }
.nav-mobile ul { list-style: none; margin: 0; padding: .5rem var(--gutter) 1.25rem; }
.nav-mobile li + li { border-top: 1px solid var(--line-soft); }
.nav-mobile a {
  display: block;
  padding: .85rem 0;
  text-decoration: none;
  font-weight: 500;
}

/* ------------------------------------------------------------------ hero */
.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* il titolo dell'eroe resta su due righe al desktop */
.hero-copy h1 { font-size: clamp(2.2rem, 3.7vw, 3.35rem); margin-bottom: .5em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-media);
}
/* ---------------------------------------------------------- barra numeri */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.stat-strip > div { padding: 1.75rem 1.5rem 0 0; }
.stat-strip .num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 600;
  color: var(--pine);
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-strip p { font-size: .9rem; color: var(--ink-soft); margin: .55rem 0 0; }

/* ------------------------------------------------------- fiducia (marchi) */
.trust {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
  justify-content: center;
}
.trust-mark {
  display: grid;
  place-items: center;
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  color: var(--pine);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  opacity: .82;
}
.trust-label { text-align: center; color: var(--ink-soft); font-size: .95rem; }

/* -------------------------------------------------------- griglia bento  */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.bento-cell {
  position: relative;
  border-radius: var(--r-block);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  min-height: 260px;
  text-decoration: none;
  color: inherit;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.bento-cell:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.bento-lead { grid-column: span 2; grid-row: span 2; }
.bento-cell img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  flex: 1;
}
.bento-lead img { min-height: 320px; }
.bento-body { padding: 1.35rem 1.5rem 1.5rem; }
.bento-body h3 { margin-bottom: .35rem; }
.bento-body p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.bento-cell .link-arrow { margin-top: .9rem; font-size: .9rem; }

.bento-quote {
  background: var(--pine);
  color: var(--on-pine);
  justify-content: center;
  padding: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.35;
  letter-spacing: -.015em;
}
.bento-quote span { color: #cfdbd0; font-family: var(--font-body); font-size: .85rem; letter-spacing: 0; display: block; margin-top: 1rem; }

/* ------------------------------------------------------ testata sezione  */
.sec-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.sec-head p { color: var(--ink-soft); font-size: 1.075rem; }

/* --------------------------------------------------- rail dei prodotti   */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(264px, 1fr);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.25rem;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }

.prod {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-block);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.prod:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.prod img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.prod-body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.prod-kind { font-size: .8rem; letter-spacing: .04em; color: var(--ink-faint); text-transform: uppercase; margin: 0 0 .35rem; }
.prod h3 { font-size: 1.2rem; margin-bottom: .45rem; }
.prod-note { font-size: .95rem; color: var(--ink-soft); margin: 0 0 .35rem; }
.prod-origin { font-size: .875rem; color: var(--ink-faint); margin: 0; }
.prod-foot {
  margin-top: auto;
  padding-top: 1.1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.prod-price { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--pine); font-variant-numeric: tabular-nums; white-space: nowrap; }
.prod-weight { font-size: .85rem; color: var(--ink-faint); }

/* --------------------------------------------------------- split editor  */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split-media img { width: 100%; border-radius: var(--r-media); object-fit: cover; aspect-ratio: 4 / 3; }
.split-media.tall img { aspect-ratio: 3 / 4; }
.split-wide { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }

/* ------------------------------------------------------- passaggi lavoro */
.steps {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.steps-sticky { position: sticky; top: 104px; }
.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-media); }
.step h3 { margin-bottom: .3rem; }
.step p { font-size: .975rem; color: var(--ink-soft); margin: 0; }

/* --------------------------------------------------------- recensioni    */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.quote {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-block);
  padding: 1.75rem;
}
.quotes .quote:nth-child(2) { margin-top: 2.25rem; }
.quotes .quote:nth-child(3) { margin-top: 4.5rem; }
.quote blockquote {
  margin: 0 0 1.35rem;
  font-size: 1.075rem;
  line-height: 1.5;
  color: var(--ink);
}
.quote-who { display: flex; align-items: center; gap: .85rem; }
.quote-who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote-who strong { display: block; font-size: .95rem; }
.quote-who span { font-size: .85rem; color: var(--ink-faint); }

/* --------------------------------------------------------------- faq     */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.015em;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: .5rem;
  top: 50%;
  width: 12px; height: 12px;
  border-right: 2px solid var(--pine);
  border-bottom: 2px solid var(--pine);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-answer { padding: 0 3rem 1.6rem 0; color: var(--ink-soft); }

/* ---------------------------------------------------------- modulo lead  */
.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.lead-points { list-style: none; margin: 2rem 0 0; padding: 0; }
.lead-points li {
  padding: .85rem 0 .85rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  position: relative;
  color: #d7e2d8;
}
.lead-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.35rem;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.form-card {
  background: var(--surface);
  border-radius: var(--r-block);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--ink);
  box-shadow: var(--shadow-lift);
}
/* la scheda resta chiara anche dentro una fascia verde */
.form-card h3, .band-pine .form-card h3 { color: var(--ink); margin-bottom: .35rem; }
.form-card > p { color: var(--ink-soft); font-size: .95rem; }

.field { display: flex; flex-direction: column; gap: .45rem; margin-top: 1.1rem; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .82rem; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-field);
  padding: .8rem .95rem;
  width: 100%;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-faint); opacity: 1; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink-faint); }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--pine); background: var(--surface); outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-error input, .field-error select, .field-error textarea { border-color: var(--accent-ink); }
.err { font-size: .85rem; color: var(--accent-ink); font-weight: 500; }

.consent { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1.35rem; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: .2rem; accent-color: var(--pine); }
.consent label { font-size: .875rem; color: var(--ink-soft); font-weight: 400; line-height: 1.5; }
.consent a { color: var(--accent-ink); }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert {
  border-radius: var(--r-field);
  padding: 1rem 1.15rem;
  font-size: .95rem;
  margin-bottom: 1.25rem;
  border: 1.5px solid;
}
.alert-bad { background: #fdeee9; border-color: #f0b7a2; color: #8f2c07; }
.alert-good { background: #e8f2ec; border-color: #a9cbb8; color: #12503a; }

/* -------------------------------------------------------------- tabelle  */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .975rem;
  min-width: 480px;
}
table.data th, table.data td { text-align: left; padding: .9rem 1rem; }
table.data thead th { background: var(--pine); color: #fff; font-weight: 600; }
table.data thead th:first-child { border-top-left-radius: var(--r-field); }
table.data thead th:last-child { border-top-right-radius: var(--r-field); }
table.data tbody tr { background: var(--surface); }
table.data tbody tr:nth-child(even) { background: var(--paper-deep); }
table.data td { border-bottom: 1px solid var(--line-soft); }

/* ------------------------------------------------------ pagine legali    */
.legal { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.legal-nav { position: sticky; top: 104px; }
.legal-nav ul { list-style: none; margin: .75rem 0 0; padding: 0; }
.legal-nav a { display: block; padding: .45rem 0; font-size: .925rem; color: var(--ink-soft); text-decoration: none; }
.legal-nav a:hover { color: var(--accent-ink); }
.legal-body h2 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); margin-top: 2.75rem; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.15rem; margin-top: 1.75rem; }
.legal-body ul, .legal-body ol { padding-left: 1.25rem; color: var(--ink-soft); }
.legal-body li { margin-bottom: .5rem; max-width: 68ch; }
.legal-body p { color: var(--ink-soft); }
.legal-meta {
  background: var(--paper-deep);
  border-radius: var(--r-block);
  padding: 1.25rem 1.4rem;
  font-size: .925rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

/* -------------------------------------------------------------- pagina   */
.page-head { padding-block: clamp(2.75rem, 5vw, 4.5rem) clamp(2rem, 3vw, 3rem); }
.crumbs { font-size: .875rem; color: var(--ink-faint); margin-bottom: 1.25rem; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }

.hero-wide img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--r-media);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-block);
  padding: 1.5rem 1.6rem;
}
.panel h3 { font-size: 1.15rem; }
.panel p { font-size: .975rem; color: var(--ink-soft); margin: 0; }

.pill-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.pill {
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: .45rem 1rem;
  font-size: .875rem;
  color: var(--ink-soft);
  background: var(--surface);
}

/* --------------------------------------------------------------- footer  */
.site-foot { background: var(--pine-deep); color: #c6d3c7; padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; }
.site-foot a { color: #e3ebe2; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3rem);
}
.site-foot h4 { color: #fff; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .6rem; font-size: .95rem; }
.foot-brand img { height: 34px; width: auto; margin-bottom: 1.25rem; }
.foot-brand p { font-size: .95rem; color: #a9baaa; max-width: 34ch; }
.foot-legal {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: .85rem;
  color: #93a695;
}

/* ------------------------------------------------------- cookie banner   */
.cookie-bar {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  z-index: 60;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-block);
  box-shadow: var(--shadow-lift);
  padding: 1.35rem 1.5rem;
  display: none;
  gap: 1.5rem;
  align-items: center;
  max-width: 62rem;
  margin-inline: auto;
}
.cookie-bar.is-open { display: flex; }
.cookie-bar p { font-size: .925rem; color: var(--ink-soft); margin: 0; }
.cookie-actions { display: flex; gap: .6rem; flex: none; }

/* ------------------------------------------------------------- motion    */
/* Il contenuto resta visibile senza JavaScript: nasconde solo se lo script parte. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- mobile  */
@media (max-width: 1024px) {
  .nav-main, .head-phone { display: none; }
  .nav-toggle { display: grid; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-media { order: -1; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-lead { grid-column: span 2; grid-row: auto; }
  .steps, .lead-grid, .legal { grid-template-columns: minmax(0, 1fr); }
  .steps-sticky, .legal-nav { position: static; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .quotes .quote:nth-child(2),
  .quotes .quote:nth-child(3) { margin-top: 0; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  body { font-size: 1rem; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
  .stat-strip > div { padding-block: 1.35rem; }
  .split, .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .split-media { order: -1; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-lead { grid-column: auto; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-actions { flex-direction: column; }
  .cookie-bar { padding: 1rem 1.15rem; }
  .cookie-bar p { font-size: .875rem; }
  .step { grid-template-columns: 64px minmax(0, 1fr); gap: 1rem; }
  .step img { width: 64px; height: 64px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-wide img { aspect-ratio: 4 / 3; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .btn-sm { width: auto; }
  .hero-actions { flex-direction: column; align-items: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-head, .site-foot, .cookie-bar, .hero-media { display: none; }
  body { background: #fff; }
}
