
  *, *::before, *::after { box-sizing: border-box; }
  :root {
    --bg: #fbfaf7;
    --surface: #ffffff;
    --ink: #161a17;
    --muted: #5f6b64;
    --line: #e4e1d9;
    --accent: #0f6b4f;
    --accent-dark: #0a4d39;
    --accent-soft: #e8f2ed;
    --warn: #8a5a00;
    --warn-soft: #fdf3e2;
    --danger: #9c2b1f;
    --radius: 16px;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  }
  html { scroll-behavior: smooth; scroll-padding-top: 80px; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 .5em; }
  h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
  h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
  h3 { font-size: 1.2rem; }
  p { margin: 0 0 1em; }
  a { color: var(--accent-dark); }
  .wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
  .wrap--narrow { max-width: 740px; }

  /* ---------- header ---------- */
  header.top {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251,250,247,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .top__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 62px; }
  .logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; flex: 0 0 auto; }
  @media (max-width: 559px) {
    .top__inner { gap: 8px; }
    .logo { font-size: 15px; gap: 7px; }
    .logo__mark { width: 24px; height: 24px; font-size: 14px; }
    .top nav { mask-image: linear-gradient(to right, #000 88%, transparent); -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); }
    .top nav a { font-size: 13.5px; padding: 7px 9px; white-space: nowrap; }
  }
  .logo__mark {
    width: 26px; height: 26px; border-radius: 7px; background: var(--accent);
    display: grid; place-items: center; color: #fff; font-family: var(--serif); font-size: 16px; font-weight: 700;
  }
  .top nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a {
    text-decoration: none; color: var(--muted); font-size: 14.5px; font-weight: 500;
    padding: 7px 11px; border-radius: 999px; white-space: nowrap;
  }
  .top nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }

  /* ---------- hero ---------- */
  .hero { padding: 54px 0 12px; }
  .hero__kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em;
    color: var(--accent-dark); background: var(--accent-soft);
    padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
  }
  .hero h1 { max-width: 17ch; }
  .hero__sub { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 56ch; margin-top: 14px; }
  .hero__meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
  .hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
  .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

  /* ---------- picker ---------- */
  .picker { display: grid; gap: 14px; grid-template-columns: 1fr; padding: 34px 0 10px; }
  @media (min-width: 720px) { .picker { grid-template-columns: 1fr 1fr; } }
  .pick {
    display: block; text-decoration: none; color: inherit; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
    transition: border-color .15s, transform .15s, box-shadow .15s;
  }
  .pick:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,60,45,.07); }
  .pick__tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
  .pick h3 { margin: 8px 0 6px; }
  .pick p { margin: 0; color: var(--muted); font-size: 15px; }
  .pick__arrow { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--accent-dark); }

  /* ---------- calculator shell ---------- */
  .calc { padding: 58px 0 8px; border-top: 1px solid var(--line); margin-top: 46px; }
  .calc:first-of-type { border-top: 0; margin-top: 20px; }
  .calc__head { margin-bottom: 26px; }
  .calc__head h2 { margin-bottom: 10px; }
  .calc__head p { color: var(--muted); max-width: 62ch; margin: 0; }
  .calc__grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-items: start; }
  .calc__grid > * { min-width: 0; }
  @media (min-width: 900px) {
  .calc__grid { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 26px; }
}

  .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
  /* sticky solo su schermi grandi: su mobile lascia scorrere tutto */
  @media (min-width: 900px) { .panel--inputs { position: sticky; top: 78px; } }

  .group-title {
    font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: var(--muted); margin: 20px 0 12px; padding-top: 16px; border-top: 1px dashed var(--line);
  }
  .group-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

  .field { margin-bottom: 16px; }
  .field__label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14.5px; font-weight: 500; margin-bottom: 7px; }
  .field__hint { font-size: 12.5px; color: var(--muted); font-weight: 400; }
  .field__row { display: flex; align-items: center; gap: 8px; }
  .field input[type="number"] {
    width: 100%; padding: 10px 12px; font: inherit; font-size: 16px; font-variant-numeric: tabular-nums;
    color: var(--ink); background: #fdfcfa; border: 1px solid var(--line); border-radius: 10px;
  }
  .field input[type="number"]:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
  .field select {
    width: 100%; padding: 10px 12px; font: inherit; font-size: 15.5px;
    background: #fdfcfa; border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
  }
  .suffix { font-size: 14px; color: var(--muted); font-weight: 600; min-width: 24px; }
  input[type="range"] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 6px 0 0;
    background: transparent; cursor: pointer;
  }
  input[type="range"]::-webkit-slider-runnable-track { height: 5px; background: var(--line); border-radius: 999px; }
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; margin-top: -6.5px;
    width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.22);
  }
  input[type="range"]::-moz-range-track { height: 5px; background: var(--line); border-radius: 999px; }
  input[type="range"]::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 2px solid #fff;
  }

  /* ---------- results ---------- */
  .verdict { border-radius: var(--radius); padding: 22px; margin-bottom: 18px; border: 1px solid; }
  .verdict--a { background: var(--accent-soft); border-color: #c4ded2; }
  .verdict--b { background: var(--warn-soft); border-color: #eeddbd; }
  .verdict__kicker { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: 8px; }
  .verdict h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); margin: 0 0 8px; }
  .verdict p { margin: 0; font-size: 15.5px; }
  .verdict strong { font-variant-numeric: tabular-nums; }

  .stats { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 18px; }
  @media (min-width: 560px) { .stats { grid-template-columns: 1fr 1fr; } }
  .stat { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fdfcfa; }
  .stat--win { border-color: var(--accent); background: #f4faf7; }
  .stat__label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
  .stat__value { display: block; font-size: 25px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
  .stat__value small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
  .stat__note { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }

  .bars { margin: 4px 0 20px; }
  .bar { margin-bottom: 12px; }
  .bar__top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; }
  .bar__top b { font-variant-numeric: tabular-nums; }
  .bar__track { height: 12px; background: #eeeae2; border-radius: 999px; overflow: hidden; }
  .bar__fill { height: 100%; border-radius: 999px; transition: width .35s ease; }
  .bar__fill--a { background: var(--accent); }
  .bar__fill--b { background: #c9a227; }

  table.breakdown { width: 100%; border-collapse: collapse; font-size: 14.5px; table-layout: fixed; }
  /* tabella delle fonti: 4 colonne con testi lunghi */
  #fonti table.breakdown { table-layout: auto; }
  #fonti table.breakdown th, #fonti table.breakdown td { text-align: left; vertical-align: top; padding: 10px 8px; }
  #fonti table.breakdown td:nth-child(4) { white-space: nowrap; color: var(--muted); }
  #fonti table.breakdown tbody tr:last-child td { font-weight: 400; }
  #fonti .table-wrap { border: 1px solid var(--line); border-radius: 14px; }
  /* su mobile la tabella delle fonti diventa una lista di schede */
  @media (max-width: 640px) {
    #fonti table.breakdown, #fonti table.breakdown tbody,
    #fonti table.breakdown tr, #fonti table.breakdown td { display: block; width: 100%; }
    #fonti table.breakdown thead { display: none; }
    #fonti table.breakdown tr { padding: 14px 12px; border-bottom: 1px solid var(--line); }
    #fonti table.breakdown tbody tr:last-child { border-bottom: 0; }
    #fonti table.breakdown td { padding: 2px 0 !important; white-space: normal !important; }
    #fonti table.breakdown td:nth-child(1) { font-weight: 700; margin-bottom: 4px; }
    #fonti table.breakdown td:nth-child(2) { margin-bottom: 6px; }
    #fonti table.breakdown td:nth-child(3)::before { content: "Fonte: "; font-weight: 700; }
    #fonti table.breakdown td:nth-child(4)::before { content: "Verificato: "; font-weight: 700; }
    #fonti table.breakdown td:nth-child(3),
    #fonti table.breakdown td:nth-child(4) { font-size: 12.5px; color: var(--muted); }
  }

  .breakdown th, .breakdown td { overflow-wrap: break-word; hyphens: none; }
  .table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.breakdown th, table.breakdown td { text-align: right; padding: 9px 6px; border-bottom: 1px solid var(--line); }
  table.breakdown th:first-child, table.breakdown td:first-child { text-align: left; }
  table.breakdown thead th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
  table.breakdown td { font-variant-numeric: tabular-nums; }
  table.breakdown tr:last-child td { border-bottom: 0; font-weight: 700; }

  table.breakdown thead th .lbl-corto { display: none; }
  @media (max-width: 559px) {
    table.breakdown { font-size: 13.5px; }
    table.breakdown th, table.breakdown td { padding: 8px 3px; }
    .breakdown thead th, table.breakdown thead th { font-size: 10px; letter-spacing: 0; }
    table.breakdown thead th .lbl-lungo { display: none; }
    table.breakdown thead th .lbl-corto { display: inline; }
  }

  .mini-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
  .btn {
    font: inherit; font-size: 14px; font-weight: 600; padding: 9px 15px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
    transition: border-color .15s, background .15s;
  }
  .btn:hover { border-color: var(--accent); background: var(--accent-soft); }

  .note {
    font-size: 13.5px; color: var(--muted); background: #f7f5f0; border-left: 3px solid var(--line);
    padding: 12px 14px; border-radius: 0 8px 8px 0; margin-top: 16px;
  }
  .note b { color: var(--ink); }

  .sources { margin-top: 16px; font-size: 13px; color: var(--muted); }
  .sources a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

  /* ---------- ad slot ---------- */
  .ad-slot {
    margin: 34px auto; max-width: 728px; min-height: 96px; border: 1px dashed #d8d4ca; border-radius: 12px;
    display: grid; place-items: center; text-align: center; color: #a8a297; font-size: 12px;
    letter-spacing: .06em; text-transform: uppercase; background: #f7f5f0;
  }

  /* ---------- guides ---------- */
  .guides { padding: 58px 0 20px; border-top: 1px solid var(--line); margin-top: 46px; }
  .guide { padding: 30px 0; border-bottom: 1px solid var(--line); }
  .guide:last-child { border-bottom: 0; }
  .guide h3 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); }
  .guide p, .guide li { color: #2c332e; font-size: 16px; }
  .guide ul { padding-left: 20px; margin: 0 0 1em; }
  .guide li { margin-bottom: .45em; }
  .guide .kicker { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }

  /* ---------- faq ---------- */
  details.faq {
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
    padding: 16px 18px; margin-bottom: 10px;
  }
  details.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; }
  details.faq summary::-webkit-details-marker { display: none; }
  details.faq summary::before { content: "+"; color: var(--accent); font-weight: 700; margin-right: 10px; }
  details.faq[open] summary::before { content: "–"; }
  details.faq p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

  /* ---------- footer ---------- */
  footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 36px 0 50px; font-size: 13.5px; color: var(--muted); }
  footer .cols { display: grid; gap: 26px; grid-template-columns: 1fr; margin-bottom: 24px; }
  @media (min-width: 720px) { footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
  footer h4 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 10px; color: var(--ink); }
  footer a { color: var(--muted); text-decoration: none; display: block; margin-bottom: 6px; }
  footer a:hover { color: var(--accent-dark); text-decoration: underline; }
  .disclaimer { border-top: 1px solid var(--line); padding-top: 20px; font-size: 12.5px; line-height: 1.55; }

  .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; }

  @media print {
    header.top, .picker, .ad-slot, .mini-actions, footer .cols { display: none; }
    body { background: #fff; }
    .panel { border: 1px solid #ccc; }
    .calc { break-inside: avoid; }
  }


/* ---------- menu a tendina ---------- */
/* Desktop: nessun overflow, altrimenti il menu a tendina viene tagliato.
   Il comportamento scorrevole serve solo su mobile (vedi media query). */
@media (min-width: 901px) {
  .top nav.nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; overflow: visible !important; position: static; }
}
.nav > a, .nav__group > a {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; border-radius: 9px;
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav > a:hover, .nav__group > a:hover { background: #efece4; }
.nav > a.on, .nav__group > a.on { background: var(--accent); color: #fff; }
.nav__caret { font-size: 9px; opacity: .6; }
.nav__group { position: relative; }
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; z-index: 130;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: 0 18px 40px rgba(28,30,25,.14); display: none;
}
.nav__group:hover .nav__menu, .nav__group:focus-within .nav__menu { display: block; }
/* ponticello invisibile: evita che il menu si chiuda passando dalla voce al pannello */
.nav__group::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; display: none;
}
.nav__group:hover::after, .nav__group--aperto::after { display: block; }
.nav__menu a {
  display: block; padding: 10px 12px; border-radius: 9px; font-size: 14px;
  color: var(--ink); text-decoration: none;
}
.nav__menu a:hover { background: #f3f0e9; }
.nav__menu a.on { background: var(--accent); color: #fff; }
.nav__group--aperto .nav__menu { display: block; }

/* ---------- bottone ricerca ---------- */
.searchbtn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.searchbtn:hover { border-color: var(--accent); color: var(--accent); }
.searchbtn span[aria-hidden] { font-size: 16px; line-height: 1; }

/* ---------- burger ---------- */
.burger {
  display: none; margin-left: 8px; width: 42px; height: 38px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 11px 9px;
  flex-direction: column; justify-content: space-between; flex: 0 0 auto;
}
.burger span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; }

/* ---------- overlay ricerca ---------- */
.ricerca {
  position: fixed; inset: 0; z-index: 200; background: rgba(24,26,22,.55);
  display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px;
  backdrop-filter: blur(2px);
}
.ricerca[hidden] { display: none; }
.ricerca__box {
  width: 100%; max-width: 620px; background: #fff; border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,.3);
}
.ricerca__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ricerca__bar span[aria-hidden] { font-size: 20px; color: var(--muted); }
.ricerca__bar input {
  flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; min-width: 0;
}
.ricerca__bar button {
  border: 1px solid var(--line); background: #f7f5f0; border-radius: 7px; padding: 5px 9px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); cursor: pointer;
}
.ricerca__risultati { max-height: 52vh; overflow-y: auto; }
.ris {
  display: block; padding: 12px 16px; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.ris:last-child { border-bottom: 0; }
.ris:hover, .ris:focus { background: #f3f0e9; }
.ris__t { display: block; font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.ris__d { display: block; font-size: 13px; color: var(--muted); line-height: 1.45; }
.ris mark { background: #d9f0c8; color: inherit; border-radius: 3px; padding: 0 1px; }
.ris-vuoto { padding: 20px 16px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.ricerca__hint { padding: 10px 16px; font-size: 12px; color: var(--muted); background: #f7f5f0; border-top: 1px solid var(--line); }
body.bloccato { overflow: hidden; }

/* ---------- home: come funziona ---------- */
.comefunziona { padding: 54px 0 8px; }
.comefunziona h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 12px; }
.comefunziona .lead { color: var(--muted); max-width: 62ch; font-size: 16.5px; line-height: 1.6; margin-bottom: 30px; }
.passi { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.passo { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; }
.passo__n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.passo h3 { font-size: 16.5px; margin-bottom: 6px; }
.passo p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ---------- home: gruppi ---------- */
.gruppo { padding: 46px 0 6px; }
.gruppo__head { margin-bottom: 18px; }
.gruppo__head h2 { font-size: clamp(21px, 2.8vw, 26px); margin-bottom: 6px; }
.gruppo__head p { margin: 0; color: var(--muted); max-width: 60ch; }
.picker--gruppo { grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); }

/* ---------- home: perché fidarsi ---------- */
.perche { padding: 52px 0 6px; }
.perche h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 20px; }
.perche__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 18px; }
.perche__grid > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.perche__grid h3 { font-size: 16px; margin-bottom: 8px; }
.perche__grid p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.privacy { padding: 40px 0 56px; }
.privacy h2 { font-size: 20px; margin-bottom: 8px; }
.privacy p { color: var(--muted); max-width: 68ch; margin: 0; }

/* ---------- breadcrumb e vicine ---------- */
.briciole { display: flex; gap: 8px; align-items: center; padding: 22px 0 0; font-size: 13px; color: var(--muted); }
.briciole a { color: var(--muted); text-decoration: none; }
.briciole a:hover { color: var(--accent); text-decoration: underline; }
.vicine { padding: 10px 0 60px; }
.vicine__h2 { font-size: 19px; margin-bottom: 16px; }
.vicine { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 14px; }
.vicine__h2 { grid-column: 1 / -1; margin-bottom: 2px; }
.vicina {
  display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink);
}
.vicina:hover { border-color: var(--accent); }
.vicina__tag { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.vicina strong { font-size: 15.5px; }
.vicina__go { font-size: 13px; color: var(--accent); font-weight: 600; }

/* ---------- indice (guide, cerca) ---------- */
.indice { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; margin-bottom: 30px; }
.indice a { display: block; padding: 11px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); font-size: 14.5px; }
.indice a:hover { background: #f3f0e9; }
.indice a span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 2px; }
.indice h2 { font-size: 18px; margin: 8px 12px 4px; }
.indice-gruppo { margin-bottom: 8px; }
.indice-gruppo h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 12px 12px 2px; }

/* ---------- pagina cerca ---------- */
.cerca-pagina { margin-bottom: 34px; }
.cerca-pagina input {
  width: 100%; padding: 15px 18px; font: inherit; font-size: 16px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; outline: none;
}
.cerca-pagina input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(45,106,63,.12); }
.cerca-pagina__risultati { margin-top: 14px; }
.cerca-pagina__risultati .ris { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.faq-list { margin-bottom: 50px; }

/* ---------- header ---------- */
/* niente backdrop-filter sull'header: crea un contesto che intrappola il
   menu a tendina sotto il contenuto. Sfondo pieno + z-index alto e basta. */
.top {
  position: sticky; top: 0; z-index: 120; background: #f7f5f0;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.top__inner { display: flex; align-items: center; gap: 14px; padding: 12px 0; overflow: visible; }
.top .wrap { overflow: visible; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 10px; z-index: 300; background: #fff; padding: 10px 14px; border-radius: 8px; border: 1px solid var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .searchbtn__txt { display: none; }
  .searchbtn { padding: 9px 12px; flex: 0 0 auto; }
  .searchbtn span[aria-hidden] { font-size: 18px; }
  .top__inner { gap: 8px; }
  .logo { margin-right: auto; }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    background: #fff; flex-direction: column;
    align-items: stretch; gap: 0; padding: 10px 14px 20px; border-bottom: 1px solid var(--line);
    max-height: calc(100vh - 61px); overflow-y: auto; z-index: 110;
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
  }
  .top nav.nav { display: none; position: fixed; inset: 61px 0 auto 0; }
  .top nav.nav.nav--aperta { display: flex; }
  .nav > a, .nav__group > a { padding: 13px 10px; font-size: 15.5px; border-radius: 10px; }
  .nav__menu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 6px 10px; min-width: 0; }
  .nav__group--aperto .nav__menu { display: block; }
  .nav__group:hover .nav__menu { display: none; }
  .nav__group--aperto:hover .nav__menu { display: block; }
  .passi { grid-template-columns: 1fr; }
  .picker--gruppo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .comefunziona, .gruppo, .perche { padding-top: 36px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
}

/* ---------- CTA della home ---------- */
.hero__cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero__cta .btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 15px; font-weight: 600; padding: 13px 22px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  text-decoration: none; cursor: pointer; transition: border-color .15s, background .15s, transform .1s;
}
.hero__cta .btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.hero__cta .btn:active { transform: translateY(1px); }
.hero__cta .btn--pieno { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero__cta .btn--pieno:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* ---------- pagine legali ---------- */
.legale { padding-bottom: 60px; }
.legale h1 { font-size: clamp(26px, 3.6vw, 36px); margin-bottom: 8px; }
.legale .agg { color: var(--muted); font-size: 13.5px; margin-bottom: 30px; display: block; }
.legale h2 { font-size: 20px; margin: 34px 0 10px; }
.legale h3 { font-size: 16.5px; margin: 22px 0 8px; }
.legale p, .legale li { font-size: 15.5px; line-height: 1.65; color: #2b332d; }
.legale ul { padding-left: 22px; }
.legale li { margin-bottom: 7px; }
.legale a { color: var(--accent); }
.legale table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0 20px; }
.legale th, .legale td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legale th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.legale .riquadro {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 12px; padding: 16px 18px; margin: 20px 0;
}
.legale .riquadro p:last-child { margin-bottom: 0; }

/* ---------- header compatto: una riga sola ---------- */
@media (min-width: 901px) and (max-width: 1180px) {
  .nav > a, .nav__group > a { padding: 8px 8px; font-size: 13.5px; }
  .top__inner { gap: 8px; }
  .logo span:last-child { display: none; }
}
@media (min-width: 1181px) {
  .top__inner { gap: 10px; }
}
