/* =========================================================================
   BREVETTO FACILE — FOGLIO DI STILE UNICO
   -------------------------------------------------------------------------
   Come è organizzato questo file:
   1. Colori e misure (variabili): per cambiare un colore basta modificarlo qui
   2. Base (reset, testo, link)
   3. Struttura (contenitore, sezioni, griglie)
   4. Intestazione e menu
   5. Pulsanti
   6. Componenti (hero, card, passi, tabelle, FAQ, prezzi, autore...)
   7. Blog e articoli
   8. Modulo contatti
   9. Piè di pagina, barra CTA mobile, banner cookie
   10. Modalità scura, stampa, accessibilità
   Approccio "mobile-first": le regole base valgono per lo smartphone,
   i blocchi @media (min-width: ...) aggiungono le modifiche per schermi più grandi.
   ========================================================================= */

/* 1. COLORI E MISURE ------------------------------------------------------ */
:root {
  color-scheme: light dark;

  /* Colore del marchio (preso dal logo) e sue varianti */
  --brand: #0d7fd2;          /* azzurro del logo: per decorazioni e icone */
  --brand-strong: #0a5fa3;   /* azzurro scuro: pulsanti e link (contrasto AA su bianco) */
  --brand-deep: #08467a;     /* hover dei pulsanti */
  --brand-soft: #e8f3fc;     /* sfondi leggeri */

  /* Testi e superfici */
  --ink: #0f1b2d;            /* testo principale */
  --muted: #475467;          /* testo secondario (contrasto 7:1) */
  --bg: #ffffff;             /* sfondo pagina */
  --surface: #f4f8fc;        /* sfondo sezioni alternate */
  --card: #ffffff;           /* sfondo riquadri */
  --border: #d6e0ea;         /* bordi */

  /* Colori di stato */
  --ok: #0f7a4a;
  --warn: #9a5b00;
  --warn-soft: #fff6e5;

  /* Tipografia: font di sistema, nessun download */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-base: 1.0625rem;      /* 17px: testo base */
  --fs-small: 0.9375rem;     /* 15px */
  --fs-h1: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1.5vw, 2.125rem);
  --fs-h3: 1.1875rem;

  /* Spazi, raggi, ombre */
  --space: 1rem;
  --section: clamp(3rem, 2rem + 4vw, 5.5rem);
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgb(15 27 45 / .06), 0 4px 16px rgb(15 27 45 / .06);
  --max: 72rem;              /* larghezza massima del contenuto (1152px) */
  --max-text: 44rem;         /* larghezza massima dei paragrafi lunghi */
  --header-h: 4rem;
}

/* 2. BASE ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  padding-bottom: 4.5rem; /* spazio per la barra CTA fissa su mobile */
}
img, svg, picture, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 750; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.025em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .35em; }
a { color: var(--brand-strong); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-deep); text-decoration-thickness: 2px; }
strong { font-weight: 700; }
small, .small { font-size: var(--fs-small); }
code { font-family: var(--font-mono); font-size: .92em; background: var(--surface); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* Testo nascosto ma letto dai lettori di schermo */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Link "Salta al contenuto" (compare solo con la tastiera) */
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--brand-strong); color: #fff; padding: .75rem 1rem; border-radius: var(--radius-s); }
.skip-link:focus { top: 1rem; color: #fff; }

/* 3. STRUTTURA ------------------------------------------------------------ */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 48em) { .container { padding-inline: 1.5rem; } }
.section { padding-block: var(--section); }
.section--alt { background: var(--surface); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section-head { max-width: var(--max-text); margin-bottom: 2rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: .75rem; }
.lead { font-size: 1.1875rem; color: var(--muted); }
.answer { font-size: 1.125rem; } /* prima frase "risposta" sotto un H2-domanda */
.prose { max-width: var(--max-text); }
.muted { color: var(--muted); }
.center { text-align: center; }

.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40em) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* 4. INTESTAZIONE E MENU -------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; min-height: 48px; }
.logo img { width: 120px; height: 60px; }
/* Menu mobile: funziona SENZA JavaScript grazie a una casella nascosta */
.menu-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.menu-button { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-width: 48px; min-height: 48px; padding: 0 .75rem; border: 1px solid var(--border); border-radius: var(--radius-s); cursor: pointer; font-weight: 600; font-size: .9375rem; color: var(--ink); background: var(--card); }
.menu-toggle:focus-visible + .menu-button { outline: 3px solid var(--brand); outline-offset: 2px; }
.menu-button .icon-close { display: none; }
.menu-toggle:checked + .menu-button .icon-open { display: none; }
.menu-toggle:checked + .menu-button .icon-close { display: block; }
.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: .5rem 1rem 1rem; }
.menu-toggle:checked ~ .main-nav { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li + li { margin: 0; }
.main-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 .5rem; color: var(--ink); text-decoration: none; font-weight: 600; border-radius: var(--radius-s); }
.main-nav a:hover { background: var(--surface); color: var(--brand-strong); }
.main-nav a[aria-current="page"] { color: var(--brand-strong); }
.main-nav .btn { margin-top: .5rem; width: 100%; color: #fff; justify-content: center; }
.main-nav .btn:hover { background: var(--brand-deep); color: #fff; }
@media (min-width: 64em) {
  .menu-button { display: none; }
  .main-nav { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; }
  .main-nav ul { display: flex; align-items: center; gap: .25rem; }
  .main-nav a { padding: 0 .75rem; font-size: .9688rem; }
  .main-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .4em; }
  .main-nav .btn { margin: 0 0 0 .5rem; width: auto; }
}

/* Briciole di pane (breadcrumb) */
.breadcrumb { font-size: var(--fs-small); color: var(--muted); padding-block: 1rem 0; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.breadcrumb li + li { margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: .35rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); display: inline-block; padding-block: .6rem; }
.breadcrumb [aria-current] { color: var(--ink); padding-block: .6rem; display: inline-block; }

/* 5. PULSANTI ------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; text-align: center; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--brand-strong); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); color: #fff; }
.btn--ghost { border-color: var(--brand-strong); color: var(--brand-strong); background: transparent; }
.btn--ghost:hover { background: var(--brand-soft); color: var(--brand-deep); }
.btn--light { background: #fff; color: var(--brand-deep); }
.btn--light:hover { background: var(--brand-soft); color: var(--brand-deep); }
.btn--small { min-height: 44px; padding: .5rem 1rem; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 30em) { .btn-row .btn { width: 100%; } }

/* 6. COMPONENTI ----------------------------------------------------------- */
/* Hero (apertura della pagina) */
.hero { padding-block: 2.5rem 3rem; background: linear-gradient(180deg, var(--brand-soft), var(--bg) 85%); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero h1 { margin-bottom: .5em; }
.hero .lead { color: var(--ink); max-width: 38rem; }
.hero-figure { margin: 0; justify-self: center; }
.hero-figure img { width: 100%; max-width: 300px; aspect-ratio: 1; border-radius: 20px; box-shadow: var(--shadow); object-fit: cover; }
.checks { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .5rem; }
.checks li { display: flex; gap: .6rem; align-items: flex-start; margin: 0; }
.checks svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .2rem; color: var(--ok); }
@media (min-width: 56em) {
  .hero { padding-block: 4rem 4.5rem; }
  .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 3.5rem; }
  .hero-figure img { max-width: 420px; }
}

/* Numeri chiave */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; text-align: center; margin: 0; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem .5rem; }
.stat dt { font-size: var(--fs-small); color: var(--muted); line-height: 1.3; }
.stat dd { margin: 0 0 .25rem; white-space: nowrap; font-size: clamp(1.375rem, 1rem + 2vw, 2.25rem); font-weight: 800; color: var(--brand-strong); line-height: 1.1; order: -1; }
.stat { display: flex; flex-direction: column; }

/* Loghi clienti */
.logos { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.25rem 2.25rem; }
.logos li { margin: 0; }
.logos img { height: 40px; width: auto; max-width: 182px; object-fit: contain; filter: grayscale(1); opacity: .8; }
.logos img:hover { filter: none; opacity: 1; }

/* Riquadri (card) */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; font-weight: 700; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; }
.icon-badge { width: 3rem; height: 3rem; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 1rem; }
.icon-badge svg { width: 1.5rem; height: 1.5rem; }

/* Passi numerati */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 4.25rem; }
.steps > li::before { content: counter(step); position: absolute; left: 1.25rem; top: 1.2rem; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--brand-strong); color: #fff; }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 64em) { .steps--4 { grid-template-columns: repeat(4, 1fr); } .steps--4 > li { padding: 4.25rem 1.25rem 1.25rem; } }

/* Riquadro informativo / avviso */
.note { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 1rem 1.25rem; border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.note--warn { border-color: var(--warn); background: var(--warn-soft); }
.note p:last-child { margin-bottom: 0; }

/* Prezzo */
.price-box { background: var(--card); border: 2px solid var(--brand-strong); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.price-main { font-size: clamp(2.25rem, 1.8rem + 2vw, 3rem); font-weight: 800; line-height: 1; color: var(--brand-strong); margin-bottom: .25rem; }
.price-lines { list-style: none; padding: 0; margin: 1rem 0; border-top: 1px solid var(--border); }
.price-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); margin: 0; }
.price-lines li span:last-child { font-weight: 700; white-space: nowrap; }

/* Tabelle (scorrono in orizzontale dentro il proprio riquadro su mobile) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); margin-bottom: 1.1em; }
.table-wrap:focus-visible { outline: 3px solid var(--brand); }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-small); margin: 0; }
caption { text-align: left; padding: .9rem 1rem; font-weight: 700; color: var(--ink); caption-side: top; }
th, td { padding: .75rem 1rem; text-align: left; vertical-align: top; border-top: 1px solid var(--border); }
thead th { background: var(--surface); font-weight: 700; white-space: nowrap; }
tbody th { font-weight: 700; }
.table-compare { min-width: 44rem; }
.table-compare .is-us { background: var(--brand-soft); }

/* FAQ con <details>: si aprono senza JavaScript */
.faq { display: grid; gap: .75rem; max-width: 52rem; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; min-height: 48px; position: relative; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.25rem; top: 1.35rem; width: .6rem; height: .6rem; border-right: 2px solid var(--brand-strong); border-bottom: 2px solid var(--brand-strong); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq summary h3 { display: inline; font-size: 1.0625rem; margin: 0; letter-spacing: 0; }
.faq .faq-body { padding: 0 1.25rem 1.1rem; color: var(--ink); }
.faq .faq-body p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 2.5rem; }

/* Box autore / chi siamo */
.author { display: grid; gap: 1.25rem; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.author-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); }
.author-photo--placeholder { display: grid; place-items: center; font-weight: 800; font-size: 1.75rem; color: var(--brand-strong); }
.author h3 { margin-bottom: .2em; }
.author p { margin-bottom: .5em; color: var(--muted); }
@media (min-width: 40em) { .author { grid-template-columns: auto 1fr; } }

/* Fascia finale di invito all'azione */
.cta-band { background: linear-gradient(135deg, var(--brand-strong), var(--brand-deep)); color: #fff; border-radius: 20px; padding: clamp(2rem, 1.5rem + 3vw, 3.5rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e3f0fb; max-width: 38rem; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 1.5rem; }

/* Data di aggiornamento visibile */
.updated { font-size: var(--fs-small); color: var(--muted); }

/* 7. BLOG E ARTICOLI ------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button { min-height: 44px; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--ink); font: inherit; font-size: .9375rem; font-weight: 600; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.post-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.post-card .post-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.125rem; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after { content: ""; position: absolute; inset: 0; } /* tutta la card è cliccabile */
.post-card { position: relative; }
.post-card h3 a:hover { color: var(--brand-strong); }
.post-card p { color: var(--muted); font-size: var(--fs-small); }
.post-meta { font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin-top: auto; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-strong); background: var(--brand-soft); border-radius: 999px; padding: .2rem .6rem; margin-bottom: .6rem; align-self: flex-start; }
[hidden] { display: none !important; }

.article-header { padding-block: 1rem 2rem; }
.article-header .post-meta { margin-top: 1rem; }
.article-cover { margin-bottom: 2rem; }
.article-cover img { border-radius: var(--radius); width: 100%; max-width: 54rem; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.article-layout { display: grid; gap: 2.5rem; }
.article-body { max-width: var(--max-text); }
.article-body h2 { margin-top: 2.25rem; }
.article-body h3 { margin-top: 1.75rem; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; font-size: var(--fs-small); }
.toc h2 { font-size: 1rem; margin: 0 0 .5rem; }
.toc ol { margin: 0; padding-left: 1.1rem; }
.toc li { margin: .45rem 0; line-height: 1.4; }
.toc a { display: inline; }
@media (min-width: 64em) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 17rem; }
  .article-aside { order: 2; }
  .article-aside .toc { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

/* 8. MODULO CONTATTI ------------------------------------------------------ */
.form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { display: block; font-size: .875rem; color: var(--muted); font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid #8a9bb0; border-radius: var(--radius-s); background: var(--card); color: var(--ink); font: inherit; font-size: 1rem; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--brand); outline-offset: 1px; border-color: var(--brand-strong); }
.check-field { display: flex; gap: .65rem; align-items: flex-start; font-size: var(--fs-small); }
.check-field input { width: 1.4rem; height: 1.4rem; margin-top: .15rem; flex: none; accent-color: var(--brand-strong); }
.hp { position: absolute; left: -9999px; } /* campo anti-spam invisibile */

/* 9. PIÈ DI PAGINA, BARRA CTA, COOKIE ------------------------------------- */
.site-footer { background: #0b1a2b; color: #c9d6e3; padding-block: 3rem 2rem; font-size: var(--fs-small); margin-top: var(--section); }
.site-footer a { color: #e6eef6; display: inline-block; padding-block: .35rem; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand img { width: 120px; height: 60px; margin-bottom: .75rem; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .5rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin: 0; }
.footer-bottom { border-top: 1px solid #23384f; margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer-bottom p { margin: 0; }
.linklike { background: none; border: 0; padding: .35rem 0; font: inherit; color: #e6eef6; text-decoration: underline; cursor: pointer; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* Barra fissa in basso solo su mobile */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .97); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgb(15 27 45 / .08); display: flex; gap: .5rem; }
.mobile-cta .btn { flex: 1; }
@media (min-width: 64em) { .mobile-cta { display: none; } body { padding-bottom: 0; } }

/* Banner cookie (creato da main.js solo se serve) */
.cookie-banner { position: fixed; z-index: 60; left: .75rem; right: .75rem; bottom: .75rem; max-width: 34rem; margin-inline: auto; background: var(--card); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 8px 32px rgb(15 27 45 / .2); padding: 1.25rem; font-size: var(--fs-small); }
.cookie-banner h2 { font-size: 1.0625rem; margin-bottom: .4rem; }
.cookie-banner .btn-row { margin-top: .9rem; }
.cookie-banner .btn { flex: 1; }
@media (min-width: 64em) { .cookie-banner { left: auto; right: 1.5rem; bottom: 1.5rem; margin: 0; } }

/* 10. MODALITÀ SCURA (automatica, segue le impostazioni del dispositivo) --- */
@media (prefers-color-scheme: dark) {
  :root {
    --brand-strong: #6cb8f0;
    --brand-deep: #9fd0f6;
    --brand-soft: #10263d;
    --ink: #e7edf4;
    --muted: #a9b7c6;
    --bg: #0b1520;
    --surface: #111e2c;
    --card: #142333;
    --border: #26394d;
    --ok: #4cc38a;
    --warn: #f0b04a;
    --warn-soft: #2a2010;
  }
  .btn--primary, .steps > li::before, .main-nav .btn, .main-nav .btn:hover { color: #06223a; }
  .btn--primary:hover { color: #06223a; }
  .filters button[aria-pressed="true"] { color: #06223a; }
  .cta-band { background: linear-gradient(135deg, #0a5fa3, #08467a); }
  .cta-band .btn--light { color: #08467a; }
  .mobile-cta { background: rgb(11 21 32 / .97); }
  .logos img { filter: grayscale(1) invert(1) brightness(1.6); opacity: .75; }
  .site-footer { background: #070f18; }
  .field input, .field textarea, .field select { border-color: #4b6178; }
}

/* Stampa: niente menu, barre e banner */
@media print {
  .site-header, .mobile-cta, .cookie-banner, .site-footer, .cta-band, .btn { display: none !important; }
  body { padding: 0; color: #000; background: #fff; }
  a { color: #000; }
}

/* Chi preferisce meno animazioni */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---- Aggiunte Fase 3 ------------------------------------------------------ */
/* Apertura più compatta per le pagine interne */
.hero--page { padding-block: 1.5rem 2.5rem; }
.hero--page h1 { font-size: clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem); max-width: 48rem; }
.hero--page .lead { max-width: 48rem; }
@media (min-width: 56em) { .hero--page { padding-block: 2rem 3.5rem; } }
.hero--page .hero-figure img { border-radius: 50%; max-width: 280px; }
@media (min-width: 56em) { .hero--page .hero-figure img { max-width: 340px; } }
/* Calcolatore Patent Box */
.calc { margin-top: 1.5rem; max-width: 40rem; }
.calc input[type="range"] { width: 100%; min-height: 48px; accent-color: var(--brand-strong); }
.calc output { color: var(--brand-strong); font-weight: 800; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1rem 0; }
.calc-out div { background: var(--surface); border-radius: var(--radius-s); padding: .75rem 1rem; }
.calc-out dt { font-size: var(--fs-small); color: var(--muted); }
.calc-out dd { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--brand-strong); }
/* Liste dentro le card */
.card ul { padding-left: 1.1rem; margin-bottom: 0; color: var(--ink); }
.faq-group h2 { margin-bottom: 1rem; }
.faq-group { scroll-margin-top: calc(var(--header-h) + 1rem); }
.card h2 { font-size: 1.375rem; }
/* Breadcrumb su una riga: l'ultima voce lunga viene accorciata con "…" */
.breadcrumb ol { flex-wrap: nowrap; }
.breadcrumb li { white-space: nowrap; }
.breadcrumb li:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
