/* Foglio di stile condiviso da index.html, privacy.html e cookie.html.
   Unica fonte per palette, tipografia e componenti: modificare qui, non nelle pagine. */
/* Font ospitati in proprio: nessuna richiesta a Google, nessun IP dei visitatori
   inviato a terzi. Coerente con l'informativa privacy del sito. */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/BricolageGrotesque-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/BricolageGrotesque-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/BricolageGrotesque-800-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 800;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/BricolageGrotesque-800-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/IBMPlexMono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/IBMPlexMono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/IBMPlexMono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(./fonts/IBMPlexMono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/IBMPlexSans-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/IBMPlexSans-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/IBMPlexSans-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/IBMPlexSans-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/IBMPlexSans-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(./fonts/IBMPlexSans-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

  :root {
    color-scheme: light dark;

    /* Palette — tema chiaro (default, ground bare :root).
       Carta grigio-calda, non crema: il neutro tiene una lievissima inclinazione verso
       l'ambra dell'accento senza scivolare nel beige da brochure. */
    --bg: #eeede9;
    --bg-deep: #e4e2dc;
    --surface: #fbfaf8;
    --surface-2: #f4f3ef;
    --border: #d5d2ca;
    --text: #16181d;
    --muted: #5c626c;
    --faint: #8a8f99;
    --accent: #a9711a;          /* ambra, scurita per contrasto su chiaro */
    --accent-soft: #c98f2e;
    --accent-ink: #ffffff;      /* testo sopra l'accento */
    --signal: #167d76;          /* cyan/teal desaturato, solo micro-segnali */
    --hero-ground: #12141a;     /* l'hero resta scuro in entrambi i temi (è la "vetrina") */
    --hero-text: #f3f0ea;
    --hero-muted: #a7adba;
    --shadow: 0 1px 2px rgba(20,20,25,.06), 0 12px 30px rgba(20,20,25,.06);
    --radius: 14px;
    --maxw: 1120px;
  }

  :root:not([data-theme="light"]) {
    @media (prefers-color-scheme: dark) {
      --bg: #0d0f13;
      --bg-deep: #090b0e;
      --surface: #161a20;
      --surface-2: #1b2028;
      --border: #272d37;
      --text: #eceef2;
      --muted: #9aa2ad;
      --faint: #6b727d;
      --accent: #e8b341;
      --accent-soft: #f0c869;
      --accent-ink: #17130a;
      --signal: #4fd1c5;
      --hero-ground: #0a0c10;
      --hero-text: #f3f0ea;
      --hero-muted: #a7adba;
      --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.35);
    }
  }
  :root[data-theme="dark"] {
    --bg: #0d0f13;
    --bg-deep: #090b0e;
    --surface: #161a20;
    --surface-2: #1b2028;
    --border: #272d37;
    --text: #eceef2;
    --muted: #9aa2ad;
    --faint: #6b727d;
    --accent: #e8b341;
    --accent-soft: #f0c869;
    --accent-ink: #17130a;
    --signal: #4fd1c5;
    --hero-ground: #0a0c10;
    --hero-text: #f3f0ea;
    --hero-muted: #a7adba;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.35);
  }

  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  h1, h2, h3 {
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin: 0;
  }

  a { color: inherit; }
  .wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

  .eyebrow {
    margin: 0;
    font-family: "IBM Plex Mono", monospace;
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
  }

  /* ---------- Nav ---------- */
  header.nav {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
  .brand { display: flex; align-items: center; gap: 10px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.18rem; letter-spacing: -0.02em; }
  .brand .mark {
    width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
    background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 1rem;
  }
  .brand b { color: var(--accent); }
  .nav-links { display: flex; align-items: center; gap: 28px; }
  .nav-links a { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .15s; }
  .nav-links a:hover { color: var(--text); }
  .nav-cta {
    text-decoration: none; font-weight: 600; font-size: .92rem;
    padding: 9px 16px; border-radius: 10px; border: 1px solid var(--accent);
    color: var(--accent);
  }
  .nav-cta:hover { background: var(--accent); color: var(--accent-ink); }
  @media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

  /* ---------- Hero ---------- */
  /* padding: 0 obbligatorio: l'hero e' un <section> e la regola generale
     `section { padding: 64px 0 }` si sommava al padding di .hero-inner, tenendo il testo
     lontano dal menu anche dopo averlo ridotto. La spaziatura dell'hero la decide
     .hero-inner, da sola. */
  .hero { position: relative; padding: 0; background: var(--hero-ground); color: var(--hero-text); overflow: hidden; border-bottom: 1px solid #1c1f27; }
  /* Fotografia di fondo al posto della vecchia animazione a puntini: copre l'area,
     resta dietro al testo e non viene mai schiacciata (object-fit: cover). */
  .hero-foto {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: 62% 50%;
    display: block; filter: saturate(.92);
  }
  .hero-veil { position: absolute; inset: 0; background:
      linear-gradient(90deg, rgba(8,10,14,.94) 0%, rgba(8,10,14,.80) 42%, rgba(8,10,14,.34) 72%, rgba(8,10,14,.20) 100%),
      linear-gradient(180deg, rgba(8,10,14,.55) 0%, rgba(8,10,14,.10) 32%, rgba(8,10,14,.72) 88%, var(--hero-ground) 100%);
    pointer-events: none; }
  /* Solo padding verticale: la scorciatoia `padding: 108px 0 116px` azzerava il padding
     orizzontale di .wrap (stesso elemento, regola successiva) e il testo dell'hero finiva
     attaccato al bordo dello schermo. */
  .hero-inner { position: relative; padding-top: 14px; padding-bottom: 50px; }
  .hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.7rem); color: var(--hero-text); max-width: 16ch; }
  .hero h1 em { font-style: normal; color: var(--accent); }
  .hero p.lede { margin: 26px 0 0; max-width: 56ch; font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--hero-muted); }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
  .btn {
    text-decoration: none; font-weight: 600; font-size: 1rem; padding: 13px 24px; border-radius: 12px;
    display: inline-flex; align-items: center; gap: 9px; transition: transform .12s ease, background .15s;
  }
  .btn-primary { background: var(--accent); color: var(--accent-ink); }
  .btn-primary:hover { transform: translateY(-2px); background: var(--accent-soft); }
  .btn-ghost { border: 1px solid rgba(255,255,255,.24); color: var(--hero-text); }
  .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
  .hero-tags { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-family: "IBM Plex Mono", monospace; font-size: .8rem; color: var(--hero-muted); }
  .hero-tags span { display: inline-flex; align-items: center; gap: 8px; }
  .hero-tags span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }

  /* ---------- Sezioni ---------- */
  section { padding: 64px 0; }
  .section-head { max-width: 60ch; margin-bottom: 40px; }
  .section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-top: 12px; }
  /* :not(.eyebrow) ovunque qui sotto: un selettore `.classe p` batte per specificità la
     regola `.eyebrow`, e senza l'esclusione le sopralinee perderebbero colore accento
     (e, nella sezione visione, erediterebbero pure il corpo tipografico grande). */
  .section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.12rem; margin: 16px 0 0; }

  /* ---------- Prodotti ---------- */
  .products { background: var(--bg-deep); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-top: 0; }

  /* Intestazione della sezione: grande e centrata, ma NON a tutta altezza di finestra —
     con `min-height: 100vh` il titolo restava isolato in mezzo a due vuoti enormi. Un
     blocco alto ~40vh mantiene l'enfasi senza far scorrere il lettore nel nulla. */
  .products .section-head {
    max-width: none;
    min-height: 32vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 30px;
    padding: 16px 0;
  }
  .products .section-head h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 17ch; margin-top: 0; }
  .products .section-head p:not(.eyebrow) { max-width: 56ch; font-size: clamp(1.04rem, 1.9vw, 1.22rem); margin: 0; }
  .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
  @media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }
  .card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 30px; box-shadow: var(--shadow); position: relative; overflow: hidden;
    transition: transform .16s ease, border-color .16s;
  }
  .card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
  .card .kicker { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
  .card h3 { font-size: 1.6rem; }
  .card .role { font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
  .card p { color: var(--muted); margin: 0 0 18px; font-size: 1.02rem; }
  .card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
  .card li { display: flex; gap: 10px; font-size: .96rem; color: var(--text); }
  .card li svg { flex: 0 0 auto; margin-top: 4px; color: var(--accent); }
  .card .glyph { position: absolute; top: -22px; right: -18px; width: 120px; height: 120px; opacity: .10; color: var(--accent); }
  .status { font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
  .status.live { color: var(--signal); border-color: color-mix(in srgb, var(--signal) 40%, var(--border)); }

  /* ---------- Visione ---------- */
  /* Classe esplicita invece di `.vision p` + catena di :not(): quella regola, avendo
     specificità maggiore di `.principle p`, imponeva il corpo tipografico grande anche ai
     paragrafi dei principi. Mirare direttamente all'elemento voluto è più robusto. */
  .vision .vision-lead { font-size: clamp(1.3rem, 3vw, 1.9rem); font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; line-height: 1.32; letter-spacing: -0.01em; max-width: 22ch; margin: 0; }
  .vision .vision-note { margin: 26px 0 0; color: var(--muted); font-size: 1.02rem; max-width: 46ch; }
  .vision .cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 54px; align-items: start; }
  @media (max-width: 800px) { .vision .cols { grid-template-columns: 1fr; gap: 32px; } }
  .principles { display: flex; flex-direction: column; gap: 26px; }
  .principle h3 { font-size: 1.15rem; font-family: "IBM Plex Sans", sans-serif; font-weight: 600; margin-bottom: 6px; }
  .principle p { font-size: 1rem; color: var(--muted); margin: 0; font-weight: 400; font-family: "IBM Plex Sans", sans-serif; letter-spacing: 0; }
  .principle { border-left: 2px solid var(--accent); padding-left: 18px; }

  /* ---------- Contatti ---------- */
  .contact { background: var(--bg-deep); border-top: 1px solid var(--border); }
  .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  @media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
  form { display: flex; flex-direction: column; gap: 16px; }
  label { display: flex; flex-direction: column; gap: 7px; font-size: .9rem; font-weight: 600; color: var(--text); }
  input, textarea {
    font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--surface); color: var(--text);
  }
  input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
  textarea { resize: vertical; min-height: 120px; }
  .contact-side p:not(.eyebrow) { color: var(--muted); }
  .contact-side a.mail { font-family: "IBM Plex Mono", monospace; color: var(--accent); text-decoration: none; font-size: 1.05rem; word-break: break-all; }
  .contact-side a.mail:hover { text-decoration: underline; }
  .note { font-size: .84rem; color: var(--faint); }

  .card-link {
    display: inline-block; margin-top: 20px; font-weight: 600; font-size: .95rem;
    color: var(--accent); text-decoration: none;
  }
  .card-link:hover { text-decoration: underline; }

  /* ---------- Footer ---------- */
  /* Footer centrato: colonne, contatti e riga legale allineati al centro della pagina. */
  footer { padding: 58px 0 44px; border-top: 1px solid var(--border); background: var(--bg-deep); text-align: center; }
  .foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; justify-items: center; }
  @media (max-width: 800px) { .foot-top { grid-template-columns: 1fr; gap: 30px; } }
  .foot-brand .brand { margin-bottom: 12px; justify-content: center; }
  .foot-brand p { color: var(--muted); font-size: .96rem; margin: 0 auto; max-width: 40ch; }
  .foot-col h4 {
    font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--faint); margin: 0 0 14px; font-weight: 500;
  }
  .foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
  .foot-col a { color: var(--muted); text-decoration: none; font-size: .95rem; }
  .foot-col a:hover { color: var(--accent); }

  .foot-social { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; padding-top: 28px; border-top: 1px solid var(--border); justify-content: center; }
  .social-pill {
    display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
    border: 1px solid var(--border); border-radius: 999px; padding: 8px 15px;
    color: var(--muted); font-size: .9rem; background: var(--surface);
    transition: border-color .15s, color .15s;
  }
  .social-pill:hover { border-color: var(--accent); color: var(--text); }
  .social-pill svg { width: 17px; height: 17px; flex: 0 0 auto; }
  .social-pill.spotify svg { color: #1DB954; }
  .social-pill .pod { font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-right: 2px; }

  .foot-legal { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--faint); font-size: .86rem; display: flex; flex-direction: column; gap: 7px; align-items: center; }
  .foot-legal a { color: var(--muted); }
  .foot-legali { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
  .foot-legali a { text-decoration: none; }
  .foot-legali a:hover { color: var(--accent); text-decoration: underline; }

  .theme-toggle {
    background: transparent; border: 1px solid var(--border); color: var(--muted);
    width: 38px; height: 38px; border-radius: 10px; cursor: pointer; display: grid; place-items: center;
  }
  .theme-toggle:hover { color: var(--text); border-color: var(--accent); }

/* ---------- Pagine legali (privacy, cookie) ---------- */
.legale { padding: 64px 0 90px; }
.legale .intestazione { max-width: 62ch; margin-bottom: 46px; }
.legale h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 12px 0 0; }
.legale .sommario { color: var(--muted); font-size: 1.14rem; margin: 18px 0 0; }
.legale .aggiornato {
  font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); margin-top: 22px;
}

/* Blocco in evidenza per il messaggio principale della pagina */
.rilievo {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius);
  padding: 26px 28px; margin: 0 0 44px; max-width: 72ch;
}
.rilievo h2 { font-size: 1.35rem; margin-bottom: 10px; }
.rilievo p { margin: 0; color: var(--muted); font-size: 1.04rem; }

.legale section.blocco { max-width: 72ch; margin-bottom: 38px; padding: 0; }
.legale section.blocco h2 { font-size: 1.45rem; margin-bottom: 12px; }
.legale section.blocco h3 { font-size: 1.08rem; font-family: "IBM Plex Sans", sans-serif; font-weight: 600; margin: 22px 0 6px; }
.legale p, .legale li { color: var(--muted); }
.legale section.blocco p { margin: 0 0 14px; }
.legale ul { padding-left: 22px; margin: 0 0 14px; display: flex; flex-direction: column; gap: 9px; }
.legale a { color: var(--accent); }

/* Tabella dei dati trattati: leggibile e scorrevole su mobile */
.tabellina { overflow-x: auto; margin: 0 0 14px; }
.tabellina table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: .95rem; }
.tabellina th, .tabellina td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tabellina th { color: var(--text); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.tabellina td { color: var(--muted); }

.torna { display: inline-block; margin-top: 12px; color: var(--accent); text-decoration: none; font-weight: 600; }
.torna:hover { text-decoration: underline; }

/* ---------- Spaziature su schermi piccoli ----------
   Su mobile i vuoti pensati per il desktop diventano schermate intere da scorrere a
   vuoto: qui le sezioni si stringono e l'intestazione prodotti perde l'altezza minima
   (il testo occupa gia' quasi tutta la larghezza, non serve altro respiro). */
@media (max-width: 720px) {
  section { padding: 44px 0; }
  .hero-inner { padding-top: 10px; padding-bottom: 44px; }
  .hero-tags { margin-top: 26px; gap: 8px 16px; }
  .hero-actions { margin-top: 28px; }
  .hero p.lede { margin-top: 20px; }

  .products .section-head {
    min-height: 0;
    padding: 8px 0;
    margin-bottom: 30px;
    gap: 10px;
  }
  .section-head { margin-bottom: 30px; }
  .card { padding: 24px 22px; }
  .grid { gap: 16px; }

  .vision .vision-note { margin-top: 18px; }
  footer { padding: 40px 0 34px; }
  .foot-social { margin-top: 26px; padding-top: 22px; }
  .foot-legal { margin-top: 22px; padding-top: 18px; }
  .legale { padding: 40px 0 60px; }
  .legale .intestazione { margin-bottom: 32px; }
  .legale section.blocco { margin-bottom: 28px; }
  .rilievo { padding: 20px 20px; margin-bottom: 32px; }
}

/* Casella di consenso privacy: la regola generale mette le label in colonna, qui
   servono casella e testo affiancati e allineati in alto. */
.consenso {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
}
.consenso input[type="checkbox"] {
  width: 17px; height: 17px; margin: 2px 0 0; flex: 0 0 auto;
  accent-color: var(--accent); cursor: pointer;
}
.consenso a { color: var(--accent); }
