/* Fixis — circuito riparatori · mockup di presentazione
   Token presi dal design system Vortis 2026 (redesign-2026/assets/vortis.css):
   un solo colore acceso, l'ambra, e usato poco. Niente verde. */

:root {
  color-scheme: light;

  --ink: #12161C;
  --ink-soft: #333B45;
  --muted: #55606F;
  --faint: #7C8694;

  --ground: #F3F4F6;
  --surface: #FFFFFF;
  --surface-2: #F2F3F6;
  --line: #E2E4E9;
  --line-soft: #ECEEF2;

  --band: #101419;
  --band-line: #262C36;

  --amber: #E09600;
  --amber-ink: #8A5B00;
  --amber-pale: #FBEBCC;
  --amber-warm: #F3B12B;

  --ok: #101419;

  --on-dark: #F2F4F6;
  --on-dark-soft: #97A1AE;
  --on-dark-faint: #7C8694;

  --r: 12px;
  --r-s: 8px;
  --shadow: 0 1px 2px rgba(18, 22, 28, 0.04);

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #F2F4F6;
    --ink-soft: #D4DAE1;
    --muted: #97A1AE;
    --faint: #7C8694;
    --ground: #0C0F14;
    --surface: #151A21;
    --surface-2: #1A2028;
    --line: #262C36;
    --line-soft: #202631;
    --band: #06090E;
    --amber: #F3B12B;
    --amber-ink: #F3B12B;
    --amber-pale: #3A2A08;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F2F4F6;
  --ink-soft: #D4DAE1;
  --muted: #97A1AE;
  --faint: #7C8694;
  --ground: #0C0F14;
  --surface: #151A21;
  --surface-2: #1A2028;
  --line: #262C36;
  --line-soft: #202631;
  --band: #06090E;
  --amber: #F3B12B;
  --amber-ink: #F3B12B;
  --amber-pale: #3A2A08;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.12; }

a { color: var(--ink); }
a:hover { color: var(--amber-ink); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- fascia anteprima ---------- */
.flag {
  background: var(--band);
  color: var(--amber-warm);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px 16px;
}

/* ---------- testata ---------- */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 20;
}
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { width: 26px; height: 26px; flex-shrink: 0; display: block; }
.brand .mark img { width: 100%; height: 100%; display: block; }
img.seal-mark { display: block; }
.brand b { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.brand span { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 20px; margin-left: auto; flex-wrap: wrap; }
.nav a { font-size: 15px; text-decoration: none; padding: 6px 0; }
.nav a[aria-current="page"] { border-bottom: 2px solid var(--amber); font-weight: 600; }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  background: var(--ink);
  color: var(--surface);
  padding: 13px 24px;
  border-radius: var(--r-s);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 44px;
}
.btn:hover { background: var(--ink-soft); color: var(--surface); }
.btn-amber { background: var(--amber); color: #12161C; }
.btn-amber:hover { background: var(--amber-warm); color: #12161C; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- blocchi ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 26px;
  box-shadow: var(--shadow);
}
.dark-card {
  background: var(--band);
  color: var(--on-dark);
  border-radius: var(--r);
  padding: 32px;
  border: 1px solid var(--band-line);
}
.dark-card h1, .dark-card h2, .dark-card h3 { color: var(--on-dark); }
.dark-card p { color: var(--on-dark-soft); }
.dark-card a:not(.btn) { color: var(--amber-warm); }

.eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-ink); font-weight: 600; }
.dark-card .eyebrow { color: var(--amber-warm); }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-soft); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

section { padding: 52px 0; }
section.tight { padding: 32px 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* ---------- bollino ---------- */
.seal {
  width: 200px; height: 200px; border-radius: 50%;
  border: 2px solid var(--amber);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; text-align: center; flex-shrink: 0;
}
.seal .seal-mark { width: 30px; height: 30px; color: var(--amber); }
.seal .seal-name { font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -0.03em; color: var(--on-dark); }
.seal .seal-kicker { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber-warm); }
.seal .seal-rule { width: 46px; height: 1px; background: var(--amber); margin: 4px 0; }
.seal .seal-num { font-size: 10px; color: var(--on-dark-soft); }
.seal-light { border-color: var(--ink); }
.seal-light .seal-mark { color: var(--amber-ink); }
.seal-light .seal-name { color: var(--ink); }
.seal-light .seal-kicker { color: var(--amber-ink); }
.seal-light .seal-rule { background: var(--ink); }
.seal-light .seal-num { color: var(--muted); }

/* un QR resta sempre scuro su chiaro, anche in tema scuro */
.qr {
  width: 96px; height: 96px; background: #F3F4F6; border-radius: var(--r-s);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: 3px; padding: 7px; flex-shrink: 0;
}
.qr i { background: #101419; display: block; }
.qr i.off { background: transparent; }

/* ---------- badge ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.pill-solid { background: var(--ink); color: var(--amber-warm); }
.pill-line { border: 1px solid var(--amber); color: var(--amber-ink); }
.pill-soft { background: var(--line-soft); color: var(--muted); }
.pill-amber { background: var(--amber-pale); color: var(--amber-ink); }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }

/* ---------- liste riparatori ---------- */
.row {
  display: flex; gap: 22px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 24px; text-decoration: none; color: var(--ink);
}
.row:hover { border-color: var(--amber); color: var(--ink); }
.row.featured { border: 1.5px solid var(--ink); box-shadow: 0 2px 12px rgba(18, 22, 28, 0.07); }
.avatar { width: 70px; height: 70px; border-radius: var(--r); background: var(--band); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--amber-warm); }
.avatar.pale { background: var(--surface-2); border: 1px solid var(--line); color: var(--amber-ink); }
.row-price { text-align: right; min-width: 190px; }
.row-price .amount { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }

/* ---------- listino ---------- */
.price-line { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.price-line:last-child { border-bottom: none; }
.price-line .name { flex-grow: 1; }
.price-line .val { font-weight: 600; }

/* ---------- filtri ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button {
  padding: 10px 17px; border-radius: 999px; border: 1.5px solid var(--line);
  background: transparent; color: var(--ink-soft); font-size: 14px; cursor: pointer;
  font-family: inherit; min-height: 44px;
}
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); font-weight: 600; }

/* ---------- piè di pagina ---------- */
footer { border-top: 1px solid var(--line); padding: 26px 0 44px 0; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* ---------- telefono ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .row { flex-wrap: wrap; }
  .row-price { text-align: left; min-width: 0; width: 100%; border-top: 1px solid var(--line-soft); padding-top: 12px; }
  section { padding: 36px 0; }
  .dark-card { padding: 24px; }

  /* su telefono la navigazione sta sotto il tasto, non sparpagliata */
  .top .menu-btn { display: inline-flex; }
  .top .wrap { flex-wrap: nowrap; }
  .top .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(18, 22, 28, 0.35);
    padding: 6px 0;
  }
  .nav a {
    padding: 15px 24px; font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav a:last-child { border-bottom: none; }
  .nav a[aria-current="page"] {
    border-bottom: 1px solid var(--line-soft);
    border-left: 3px solid var(--amber);
    padding-left: 21px;
  }
  .top .menu-btn[aria-expanded="true"] + .nav { display: flex; }
}
@media (max-width: 560px) {
  h1 { font-size: 34px !important; }
  h2 { font-size: 25px !important; }
  .lead { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .seal { width: 168px; height: 168px; }
}

/* ---------- moduli ---------- */
.solo-lettori { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
form input, form select, form textarea {
  font-family: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 11px 13px; min-height: 44px; width: 100%;
}
form textarea { min-height: 110px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus {
  outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber);
}
.card form input, .card form select, .card form textarea { background: var(--surface-2); }

/* la ricerca in home tiene i campi senza cornice, dentro la card */
.card > form select, form.card select { border: none; background: transparent; }

/* ---------- tasto del menu ---------- */
.top { position: sticky; top: 0; }
.top .wrap { position: relative; }
.menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: auto;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-s);
  color: var(--ink); cursor: pointer;
}
.menu-btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.menu-btn .croce { display: none; }
.menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.menu-btn[aria-expanded="true"] .righe { display: none; }
.menu-btn[aria-expanded="true"] .croce { display: block; }
