/* RevisionePrezzi.it — foglio di stile
   Colori ricavati dal logo: blu cantiere, giallo segnaletica, grigio cemento.
   Convenzione dei software: giallo = dato da inserire, grigio = valore calcolato. */

/* ---------- Font (ospitati sul sito: nessuna chiamata a servizi esterni) ---------- */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

/* ---------- Token ---------- */
:root {
  --navy: #063461;
  --navy-900: #04264a;
  --navy-700: #0b4a85;
  --navy-100: #e6edf5;
  --yellow: #fecc07;
  --yellow-600: #e8b800;
  --yellow-100: #fff5c7;
  --steel: #94a2ab;
  --steel-500: #6e7d87;
  --steel-300: #c7d0d6;
  --steel-200: #dde3e8;
  --steel-100: #eef2f5;
  --paper: #ffffff;
  --ink: #15283b;
  --ink-soft: #46586a;
  --red: #b3261e;
  --green: #1d6b3a;

  --font-sans: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-cond: "Barlow Semi Condensed", "Barlow", "Segoe UI", Arial, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --radius: 10px;
  --radius-s: 6px;
  --shadow: 0 1px 2px rgba(6, 52, 97, .06), 0 14px 32px -20px rgba(6, 52, 97, .45);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-sans);
  font-feature-settings: "kern", "liga";
  overflow-x: hidden;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--yellow); color: var(--navy-900); }
p, ul, ol, dl, table, figure, blockquote { margin: 0 0 1em; }
h1, h2, h3, h4 { color: var(--navy); margin: 0 0 .5em; line-height: 1.12; font-weight: 700; }
h1 { font-size: clamp(2.125rem, 1.45rem + 2.8vw, 3.5rem); font-weight: 800; letter-spacing: -.012em; line-height: 1.04; }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem); letter-spacing: -.008em; }
h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
strong { font-weight: 700; }
sub { font-size: .72em; line-height: 0; vertical-align: -.25em; }
abbr[title] { text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--steel-200); margin: 2rem 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.measure { max-width: 70ch; }
.lead { font-size: clamp(1.125rem, 1.02rem + .45vw, 1.3125rem); line-height: 1.55; color: var(--ink-soft); }
.small { font-size: .875rem; }
.muted { color: var(--ink-soft); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--navy-900); padding: .6rem 1rem; border-radius: var(--radius-s); font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.25em;
  border: 2px solid transparent; border-radius: var(--radius-s);
  font: 700 1rem/1.15 var(--font-sans); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn .icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); }
.btn-yellow:hover { background: var(--yellow-600); border-color: var(--yellow-600); color: var(--navy-900); }
.btn-yellow:focus-visible { outline-color: var(--navy); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.btn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy-100); color: var(--navy); }
.btn-ghost-dark { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ---------- Testata ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--steel-200); }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { width: 168px; height: auto; }
.main-nav { margin-left: auto; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.menu a {
  display: block; padding: .55rem .7rem; border-radius: var(--radius-s);
  font: 600 1.0625rem/1.2 var(--font-cond); color: var(--navy); text-decoration: none; letter-spacing: .01em;
}
.menu a:hover { background: var(--steel-100); }
.menu a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.nav-toggle { display: none; }
.header-phone {
  flex: none; display: inline-flex; align-items: center; gap: .6rem;
  padding: .5rem .95rem .5rem .6rem; border-radius: 999px;
  background: var(--navy); color: #fff; text-decoration: none;
  font: 700 1.125rem/1.1 var(--font-cond); letter-spacing: .02em;
}
.header-phone:hover { background: var(--navy-900); color: #fff; }
.header-phone .icon { width: 2rem; height: 2rem; padding: .42rem; border-radius: 50%; background: var(--yellow); fill: var(--navy-900); }
.header-phone-text { display: flex; flex-direction: column; }
.header-phone-label { font: 600 .75rem/1.1 var(--font-sans); letter-spacing: .02em; color: #c9d6e3; }

@media (max-width: 1180px) {
  .menu a { padding: .55rem .5rem; font-size: 1rem; }
  .header-phone-label { display: none; }
}
@media (max-width: 1060px) {
  .header-inner { gap: .75rem; }
  .menu a { padding: .55rem .42rem; }
}
@media (max-width: 959px) {
  .header-inner { gap: .6rem; }
  .main-nav { order: 3; margin-left: 0; }
  .header-phone { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .75rem;
    background: #fff; border: 2px solid var(--steel-200); border-radius: var(--radius-s);
    font: 700 1rem var(--font-cond); color: var(--navy); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: var(--navy); position: relative; content: ""; }
  .nav-toggle-bars::before { position: absolute; top: -6px; }
  .nav-toggle-bars::after { position: absolute; top: 6px; }
  .menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; padding: .5rem var(--gutter) 1rem; background: #fff;
    border-bottom: 1px solid var(--steel-200); box-shadow: 0 18px 30px -24px rgba(6,52,97,.5);
  }
  .menu.is-open { display: flex; }
  .menu a { padding: .85rem .25rem; font-size: 1.125rem; border-bottom: 1px solid var(--steel-100); border-radius: 0; }
  .menu a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--yellow); padding-left: .75rem; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand img { width: 132px; }
  .header-phone { padding: .35rem .7rem .35rem .4rem; font-size: 1rem; gap: .4rem; }
  .header-phone .icon { width: 1.75rem; height: 1.75rem; padding: .36rem; }
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: .5rem .6rem; }
}
@media (max-width: 370px) {
  .brand img { width: 112px; }
  .header-phone-number { font-size: .9375rem; }
}

/* ---------- Sezioni ---------- */
.section { padding-block: clamp(3.25rem, 6vw, 6rem); }
.section-mist { background: var(--steel-100); }
.section-navy { background: var(--navy); color: #e8eef5; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); }
.section-head p { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 5vw, 4.75rem) clamp(3rem, 6vw, 5.5rem); border-bottom: 1px solid var(--steel-200); }
.hero-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 56ch; margin-bottom: 1.6rem; }
.hero-note { margin: 1.25rem 0 0; font-size: .9375rem; color: var(--ink-soft); display: flex; gap: .5rem; align-items: baseline; }
.hero-note::before { content: ""; flex: none; width: .7em; height: .7em; background: var(--yellow); border: 1px solid var(--yellow-600); transform: translateY(.05em); }

/* ---------- Grafico della franchigia ---------- */
.franchigia { margin: 0; background: #fff; border: 1px solid var(--steel-200); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.franchigia-head { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.25rem .5rem; }
.franchigia-title { margin: 0; font-size: 1.25rem; font-weight: 700; }
.seg { display: inline-flex; padding: 3px; background: var(--steel-100); border-radius: 999px; border: 1px solid var(--steel-200); }
.seg button {
  border: 0; background: transparent; padding: .45rem .9rem; border-radius: 999px; cursor: pointer;
  font: 700 .9375rem/1.1 var(--font-cond); color: var(--ink-soft);
}
.seg button[aria-checked="true"] { background: var(--navy); color: #fff; }
.franchigia-chart { display: block; width: 100%; height: auto; padding: 0 .5rem; }
.franchigia-chart text { font-family: var(--font-cond); font-size: 13px; fill: var(--ink-soft); }
.franchigia-chart .ax { stroke: var(--steel-300); stroke-width: 1; }
.franchigia-chart .ax-zero { stroke: var(--steel-500); stroke-width: 1.2; }
.franchigia-chart .band { fill: var(--steel-100); }
.franchigia-chart .band-edge { stroke: var(--steel); stroke-width: 1; stroke-dasharray: 4 4; }
.franchigia-chart .band-label { font-size: 12.5px; fill: var(--steel-500); font-weight: 600; }
.franchigia-chart .full { stroke: var(--steel-300); stroke-width: 1.5; stroke-dasharray: 6 5; fill: none; }
.franchigia-chart .area { fill: var(--yellow); opacity: .55; }
.franchigia-chart .line { stroke: var(--navy); stroke-width: 3; fill: none; stroke-linejoin: round; }
.franchigia-chart .cursor { stroke: var(--navy); stroke-width: 1.2; stroke-dasharray: 3 3; }
.franchigia-chart .dot { fill: var(--yellow); stroke: var(--navy); stroke-width: 3; }
.franchigia-chart .val { font-family: var(--font-cond); font-weight: 700; font-size: 15px; fill: var(--navy); }
.franchigia-chart .tick { font-size: 12px; }
.franchigia-body { padding: .75rem 1.25rem 1.25rem; border-top: 1px solid var(--steel-200); background: #fbfcfd; }
.franchigia-controls { display: grid; gap: .9rem 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .franchigia-controls { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; } }
.field-label { display: flex; justify-content: space-between; gap: .5rem; font: 600 .9375rem/1.2 var(--font-cond); color: var(--navy); margin-bottom: .35rem; }
.field-label output { font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--navy); height: 28px; margin: 0; }
.cell-input {
  width: 100%; min-height: 44px; padding: .5rem .7rem; border-radius: var(--radius-s);
  border: 1px solid #e5c74a; background: var(--yellow-100);
  font: 600 1.0625rem/1.2 var(--font-sans); color: var(--ink); font-variant-numeric: tabular-nums; text-align: right;
}
.cell-input:focus { outline: 3px solid var(--navy); outline-offset: 1px; }
.franchigia-result { margin: 1rem 0 0; padding: .85rem 1rem; border-radius: var(--radius-s); background: var(--steel-100); font-size: 1rem; line-height: 1.5; }
.franchigia-result strong { color: var(--navy); }
.franchigia-result .esito { display: block; font: 700 1.25rem/1.25 var(--font-sans); color: var(--navy); margin-bottom: .2rem; font-variant-numeric: tabular-nums; }
.franchigia-formula { margin: .75rem 0 0; font: 600 .9375rem/1.4 var(--font-cond); color: var(--ink-soft); }

/* ---------- Due software ---------- */
.products { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--steel-200); border-radius: 14px; overflow: hidden; }
.product-head { padding: 1.4rem 1.5rem 1.25rem; }
.product-llpp .product-head { background: var(--navy); color: #dfe8f1; }
.product-ssff .product-head { background: var(--yellow); color: var(--navy-900); }
.product-name { margin: 0; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); font-weight: 800; letter-spacing: -.01em; }
.product-llpp .product-name { color: var(--yellow); }
.product-ssff .product-name { color: var(--navy); }
.product-scope { margin: .25rem 0 0; font: 600 1.0625rem/1.3 var(--font-cond); }
.product-body { padding: 1.4rem 1.5rem .5rem; flex: 1; }
.product-desc { font-size: 1.0625rem; }
.product-body h4 { margin: 1.4rem 0 .5rem; font: 700 1.0625rem/1.2 var(--font-cond); color: var(--navy); letter-spacing: .01em; }
.cells { list-style: none; padding: 0; margin: 0; }
.cells li { position: relative; padding: .38rem 0 .38rem 1.5rem; border-bottom: 1px solid var(--steel-100); font-size: 1rem; line-height: 1.45; }
.cells li:last-child { border-bottom: 0; }
.cells li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7em; height: .7em; background: var(--yellow-100); border: 1px solid #d9b62c; }
.cells li strong { color: var(--navy); }
.product-foot { padding: 1rem 1.5rem 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; border-top: 1px solid var(--steel-100); }
.product-foot .btn { flex: 1 1 auto; }

/* ---------- Galleria demo ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.tab {
  border: 2px solid var(--steel-200); background: #fff; color: var(--navy); cursor: pointer;
  padding: .6rem 1.1rem; border-radius: var(--radius-s); font: 700 1.0625rem/1.1 var(--font-cond);
}
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab:hover:not([aria-selected="true"]) { border-color: var(--steel-300); }
.gallery { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .gallery { grid-template-columns: 260px minmax(0, 1fr); } }
.sheet-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
@media (min-width: 1000px) { .sheet-list { flex-direction: column; overflow: visible; } }
.sheet-btn {
  width: 100%; text-align: left; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--steel-200); background: #fff; border-radius: var(--radius-s);
  padding: .55rem .75rem; font: 600 1rem/1.2 var(--font-cond); color: var(--ink);
  display: flex; align-items: center; gap: .55rem;
}
.sheet-btn::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 2px; background: var(--steel-300); }
.sheet-btn[aria-pressed="true"] { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); color: var(--navy); }
.sheet-btn[aria-pressed="true"]::before { background: var(--yellow); }
@media (min-width: 1000px) { .sheet-btn { white-space: normal; } }
.shot { margin: 0; }
.shot-frame { background: #fff; border: 1px solid var(--steel-300); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.shot-bar { display: flex; align-items: center; gap: .6rem; padding: .5rem .85rem; background: #f1f3f4; border-bottom: 1px solid var(--steel-200); font: 600 .9375rem/1.2 var(--font-cond); color: #3c4043; }
.shot-file { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-sheet { margin-left: auto; flex: none; padding: .15rem .55rem; border-radius: 4px; background: #fff; border: 1px solid var(--steel-200); color: var(--navy); }
.shot-link { display: block; cursor: zoom-in; }
.shot-link img { width: 100%; height: auto; }
.shot figcaption { margin-top: .9rem; font-size: 1rem; color: var(--ink-soft); max-width: 75ch; }
.shot figcaption strong { color: var(--navy); }
.demo-actions { margin-top: 1.25rem; }
.panel[hidden] { display: none; }

.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .9375rem; color: var(--ink-soft); }
.legend li { display: inline-flex; align-items: center; gap: .45rem; }
.legend .sw { width: 1.1rem; height: .8rem; border: 1px solid var(--steel-300); }
.sw-in { background: var(--yellow-100); border-color: #d9b62c !important; }
.sw-calc { background: var(--steel-100); }

/* ---------- Passi numerati ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps > li { counter-increment: step; position: relative; padding: 1.25rem 1.25rem 1.25rem 4.25rem; background: #fff; border: 1px solid var(--steel-200); border-radius: var(--radius); }
.steps > li::before {
  content: counter(step); position: absolute; left: 1.1rem; top: 1.1rem;
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  background: var(--yellow); color: var(--navy-900); border-radius: 50%;
  font: 800 1.125rem/1 var(--font-sans);
}
.steps h3 { font-size: 1.1875rem; margin-bottom: .35rem; }
.steps p { margin: 0; font-size: 1rem; color: var(--ink-soft); }

/* ---------- Punti di forza ---------- */
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 clamp(1.5rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.reasons li { position: relative; padding: 1.1rem 0 1.1rem 2.75rem; border-top: 1px solid rgba(255,255,255,.16); }
.reasons li::before {
  content: ""; position: absolute; left: 0; top: 1.2rem; width: 1.75rem; height: 1.75rem; border-radius: 50%;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23063461' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 1.1rem no-repeat;
}
.reasons h3 { margin: 0 0 .2rem; font-size: 1.1875rem; color: #fff; }
.reasons p { margin: 0; color: #c9d6e3; font-size: 1rem; }

/* ---------- Prezzi ---------- */
.pricing { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .pricing { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.price-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--steel-200); border-radius: 14px; overflow: hidden; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--steel-200); vertical-align: middle; }
.price-table thead th { background: var(--navy); color: #fff; font: 700 1.0625rem/1.2 var(--font-cond); }
.price-table thead th small { display: block; font: 500 .875rem var(--font-sans); color: #c9d6e3; }
.price-table tbody th { font: 800 1.25rem/1.2 var(--font-sans); color: var(--navy); }
.price-table tbody th span { display: block; font: 500 .9375rem/1.3 var(--font-sans); color: var(--ink-soft); }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price { font: 800 1.75rem/1 var(--font-sans); color: var(--navy); white-space: nowrap; }
.price small { font: 600 .9375rem var(--font-sans); color: var(--ink-soft); }
.price-notes { margin: 1rem 0 0; padding: 0; list-style: none; font-size: 1rem; }
.price-notes li { padding: .3rem 0 .3rem 1.4rem; position: relative; }
.price-notes li::before { content: ""; position: absolute; left: 0; top: .85em; width: .55rem; height: .55rem; background: var(--navy); border-radius: 50%; }
.gift { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.5rem; padding: 1.1rem 1.25rem; border-radius: var(--radius); background: var(--yellow-100); border: 1px solid #ecd677; }
.gift svg { flex: none; width: 2.25rem; height: 2.25rem; fill: var(--navy); }
.gift p { margin: 0; }
.buy { background: #fff; border: 1px solid var(--steel-200); border-radius: 14px; padding: clamp(1.25rem, 3vw, 2rem); }
.buy h3 { margin-bottom: 1rem; }
.buy-steps { counter-reset: buy; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.buy-steps li { counter-increment: buy; position: relative; padding: .55rem 0 .55rem 2.6rem; border-bottom: 1px solid var(--steel-100); }
.buy-steps li::before { content: counter(buy); position: absolute; left: 0; top: .5rem; width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--navy); color: var(--navy); font: 800 .9375rem/1 var(--font-sans); }
.fine { font-size: .9375rem; color: var(--ink-soft); }

/* ---------- Metodi (anteprima in home) ---------- */
.methods { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.method-card { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: 14px; border: 1px solid var(--steel-200); background: #fff; text-decoration: none; color: inherit; }
.method-card:hover { border-color: var(--navy); color: inherit; }
.method-card h3 { margin: 0; }
.method-card p { margin: 0; color: var(--ink-soft); }
.method-card .formula { margin: .5rem 0; }
.method-card .more { margin-top: auto; font-weight: 700; color: var(--navy-700); text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Formule ---------- */
.formula {
  display: block; margin: 1rem 0 1.25rem; padding: .85rem 1.1rem;
  background: var(--steel-100); border-left: 4px solid var(--navy); border-radius: 0 var(--radius-s) var(--radius-s) 0;
  font: 600 1.125rem/1.5 var(--font-cond); color: var(--navy-900); letter-spacing: .01em;
  overflow-x: auto; font-variant-numeric: tabular-nums;
}
.formula .cond { display: block; font: 500 .9375rem/1.4 var(--font-sans); color: var(--ink-soft); margin-bottom: .15rem; }
.formula + .formula { margin-top: -.5rem; }
.formula-grid { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); margin: 1rem 0 1.5rem; }
@media (min-width: 720px) { .formula-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.formula-grid .formula { margin: 0; }
.formula-big { font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); }

/* ---------- Domande frequenti ---------- */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--steel-200); }
.faq details:last-of-type { border-bottom: 1px solid var(--steel-200); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative;
  font: 700 1.1875rem/1.35 var(--font-sans); color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .35rem; top: 1.35rem; width: .7rem; height: .7rem;
  border-right: 2.5px solid var(--navy); border-bottom: 2.5px solid var(--navy); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq .answer { padding: 0 0 1.2rem; max-width: 72ch; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Banda contatti ---------- */
.cta-band { background: var(--yellow); color: var(--navy-900); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between; padding-block: clamp(2rem, 4vw, 3rem); }
.cta-band h2 { margin: 0 0 .25rem; color: var(--navy); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
.cta-band p { margin: 0; font-size: 1.0625rem; }
.cta-band .btn-navy { font-size: 1.125rem; }

/* ---------- Pagine dei metodi ---------- */
.page-head { padding-block: clamp(2rem, 4vw, 3.5rem) clamp(1.75rem, 3vw, 2.75rem); border-bottom: 1px solid var(--steel-200); background: linear-gradient(var(--steel-100), var(--steel-100)) bottom / 100% 0 no-repeat; }
.breadcrumb { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font: 600 .9375rem/1.3 var(--font-cond); color: var(--ink-soft); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--steel); }
.breadcrumb a { color: var(--ink-soft); }
.page-head h1 { max-width: 22ch; }
.page-head .lead { max-width: 64ch; margin-bottom: 1rem; }
.updated { font-size: .9375rem; color: var(--ink-soft); margin: 0; }
.method-switch { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.method-switch a { padding: .45rem .9rem; border-radius: 999px; border: 2px solid var(--steel-200); text-decoration: none; font: 700 .9375rem/1.1 var(--font-cond); color: var(--navy); }
.method-switch a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.doc { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem); }
@media (min-width: 960px) { .doc { grid-template-columns: 220px minmax(0, 1fr); gap: 2.25rem; } }
@media (min-width: 1200px) { .doc { grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; } }
.toc { font-size: .9375rem; }
@media (min-width: 960px) { .toc-inner { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow: auto; padding-right: .5rem; } }
.toc details { border: 1px solid var(--steel-200); border-radius: var(--radius); background: #fff; }
.toc summary { cursor: pointer; padding: .75rem 1rem; font: 700 1.0625rem/1.2 var(--font-cond); color: var(--navy); }
.toc ol { margin: 0; padding: 0 1rem 1rem 2.2rem; }
.toc li { padding: .22rem 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover, .toc a.is-active { color: var(--navy); text-decoration: underline; }
.toc a.is-active { font-weight: 700; }
@media (min-width: 960px) { .toc details { border: 0; background: transparent; } .toc summary { padding: 0 0 .6rem; pointer-events: none; list-style: none; } .toc summary::-webkit-details-marker { display: none; } .toc ol { padding: 0 0 0 1.2rem; } }

.prose { min-width: 0; }
.prose > section { margin-bottom: clamp(2.75rem, 5vw, 4rem); }
.prose > section > h2 { padding-top: .25rem; margin-bottom: .75rem; }
.prose h3 { margin-top: 2rem; }
.prose p, .prose li { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--navy); }

.facts { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; border: 1px solid var(--steel-200); border-radius: var(--radius); overflow: hidden; background: #fff; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: .15rem 1.25rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--steel-200); }
.facts > div:last-child { border-bottom: 0; }
@media (min-width: 700px) { .facts > div { grid-template-columns: 200px minmax(0, 1fr); } }
.facts dt { font: 700 1rem/1.35 var(--font-cond); color: var(--navy); }
.facts dd { margin: 0; font-size: 1.0625rem; }

.callout { margin: 1.5rem 0; padding: 1.1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--steel-200); background: #fff; }
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: block; font: 700 1.0625rem/1.3 var(--font-cond); color: var(--navy); margin-bottom: .35rem; }
.callout-warn { border-color: #e9c66a; background: #fffaf0; }
.callout-warn .callout-title { color: #8a5a00; }
.callout-info { border-left: 4px solid var(--navy); }

/* testo della norma: in serif, così si distingue dal commento */
.norma-block { border: 1px solid var(--steel-200); border-radius: var(--radius); background: #fff; margin: 0 0 .75rem; }
.norma-block > summary { cursor: pointer; list-style: none; padding: .85rem 2.75rem .85rem 1.1rem; position: relative; font: 700 1.0625rem/1.35 var(--font-cond); color: var(--navy); }
.norma-block > summary::-webkit-details-marker { display: none; }
.norma-block > summary::after { content: "+"; position: absolute; right: 1rem; top: .55rem; font: 600 1.5rem/1 var(--font-sans); color: var(--navy); }
.norma-block[open] > summary::after { content: "–"; }
.norma-block > summary small { display: block; font: 500 .875rem/1.3 var(--font-sans); color: var(--ink-soft); }
.norma { margin: 0 1.1rem 1.1rem; padding: .25rem 0 .25rem 1.1rem; border-left: 3px solid var(--navy); font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.7; color: #1d2c3b; }
.norma p { margin: 0 0 .7em; max-width: 72ch; }
.norma p.lett { padding-left: 1.4em; }
.norma p.punto { padding-left: 1.4em; }
.norma p.nf { font-family: var(--font-cond); font-weight: 600; font-size: 1.0625rem; color: var(--navy-900); padding-left: 1.4em; }
.norma .cn { font-weight: 600; color: var(--navy); }
.norma .formula { font-family: var(--font-cond); }
.norma-source { margin: 0 1.1rem 1rem; font: 500 .875rem/1.4 var(--font-sans); color: var(--ink-soft); }
.norma-quote { margin: 1rem 0 1.25rem; padding: .25rem 0 .25rem 1.1rem; border-left: 3px solid var(--navy); font-family: var(--font-serif); font-size: 1.0625rem; line-height: 1.7; }
.norma-quote p { margin: 0 0 .5em; }
.norma-quote cite { display: block; font: 600 .875rem/1.4 var(--font-sans); font-style: normal; color: var(--ink-soft); }

/* tabelle di calcolo */
.table-scroll { overflow-x: auto; margin: 1rem 0 1.25rem; border: 1px solid var(--steel-200); border-radius: var(--radius); background: #fff; }
.table-scroll:focus-visible { outline-offset: 0; }
.calc { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 1rem; min-width: 560px; }
.calc caption { caption-side: top; text-align: left; padding: .8rem 1rem; font: 700 1rem/1.3 var(--font-cond); color: var(--navy); border-bottom: 1px solid var(--steel-200); }
.calc th, .calc td { padding: .55rem .8rem; border-bottom: 1px solid var(--steel-200); text-align: right; white-space: nowrap; }
.calc th:first-child, .calc td:first-child { text-align: left; }
.calc td.txt, .calc th.txt { text-align: left; white-space: normal; }
.calc thead th { background: var(--navy); color: #fff; font: 600 .9375rem/1.25 var(--font-cond); vertical-align: bottom; }
.calc tbody th { font-weight: 700; color: var(--navy); }
.calc td.in { background: var(--yellow-100); }
.calc td.calc-v { background: var(--steel-100); font-weight: 600; }
.calc tfoot td, .calc tfoot th { font-weight: 700; color: var(--navy); background: #f7f9fb; border-bottom: 0; }
.calc tr:last-child td, .calc tr:last-child th { border-bottom: 0; }
.calc .neg { color: var(--red); }
.calc .hl { box-shadow: inset 0 0 0 2px var(--navy); }
.calc-wide { min-width: 720px; }
.calc thead th { white-space: normal; min-width: 4.5rem; }
@media (min-width: 960px) and (max-width: 1199px) { .calc { font-size: .9375rem; } .calc th, .calc td { padding: .5rem .6rem; } .calc-wide { min-width: 600px; font-size: .875rem; } .calc-wide th, .calc-wide td { padding-inline: .4rem; } }

.example { margin: 2rem 0; padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid var(--steel-200); border-radius: 14px; background: #fff; }
.example > h3 { margin-top: 0; }
.example .meta { font-size: 1rem; color: var(--ink-soft); }
.result { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: var(--radius-s); background: var(--navy); color: #fff; }
.result .label { font: 600 1rem/1.2 var(--font-cond); color: #c9d6e3; }
.result .amount { font: 800 1.5rem/1.1 var(--font-sans); color: var(--yellow); font-variant-numeric: tabular-nums; }
.result.zero .amount { color: #fff; }
.note-crit { margin: .9rem 0 0; font-size: 1rem; color: var(--ink-soft); }
.note-crit strong { color: var(--ink); }

/* passo per passo (esempio interattivo) */
.stepper { margin-top: 1rem; }
.stepper-steps { margin: 0; padding-left: 1.4rem; }
.stepper-steps li { margin-bottom: .5rem; }
.js .stepper-steps { list-style: none; padding: 0; }
.js .stepper-steps li { display: none; margin: 0; padding: 1rem 1.1rem; border-radius: var(--radius-s); background: var(--steel-100); border-left: 4px solid var(--yellow); }
.js .stepper-steps li.is-current { display: block; }
.stepper-steps .step-t { display: block; font: 700 1.0625rem/1.3 var(--font-cond); color: var(--navy); margin-bottom: .2rem; }
.stepper-nav { display: none; align-items: center; gap: .75rem; margin-top: .75rem; }
.js .stepper-nav { display: flex; }
.stepper-count { font: 600 .9375rem var(--font-cond); color: var(--ink-soft); margin-right: auto; }
.stepper-nav .btn { min-height: 42px; padding: .5em 1em; font-size: .9375rem; }
.stepper-nav .btn[disabled] { opacity: .4; cursor: default; }
.calc [data-col].is-lit, .calc [data-cell].is-lit { background: #ffe680 !important; box-shadow: inset 0 0 0 1px #d9b62c; }

/* checklist atti di gara */
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 4px; font: 700 .8125rem/1.4 var(--font-cond); white-space: nowrap; }
.b-obb { background: var(--navy); color: #fff; }
.b-cons { background: var(--yellow); color: var(--navy-900); }
.b-fac { background: var(--steel-200); color: var(--ink); }

.gp-list { list-style: none; padding: 0; margin: 0; }
.gp-list li { padding: .9rem 0; border-top: 1px solid var(--steel-200); max-width: none; }
.gp-list li:last-child { border-bottom: 1px solid var(--steel-200); }
.gp-list .gp-src { display: block; font: 700 1rem/1.35 var(--font-cond); color: var(--navy); }
.gp-list p { margin: .25rem 0 0; font-size: 1rem; }

.shots-inline { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .shots-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.software-box { margin-top: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 14px; background: var(--navy); color: #dfe8f1; }
.software-box h3 { color: #fff; margin-top: 0; }
.software-box p { max-width: 70ch; }
.software-box .btn-row { margin-top: 1rem; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.contact-card { padding: clamp(1.25rem, 3vw, 2rem); background: var(--navy); color: #dfe8f1; border-radius: 14px; }
.contact-card h2 { color: #fff; font-size: 1.5rem; }
.contact-phone { display: inline-flex; align-items: center; gap: .75rem; margin: .25rem 0 1rem; font: 800 clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem)/1 var(--font-sans); color: var(--yellow); text-decoration: none; }
.contact-phone:hover { color: #fff; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: .55rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.contact-list .k { display: block; font: 600 .875rem/1.2 var(--font-cond); color: #9fb3c8; }
.contact-card a { color: #fff; }
.form { display: grid; gap: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form label { display: block; font: 700 1rem/1.3 var(--font-cond); color: var(--navy); margin-bottom: .35rem; }
.form .opt { font: 500 .875rem var(--font-sans); color: var(--ink-soft); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid var(--steel-300); border-radius: var(--radius-s);
  background: #fff; font: 400 1.0625rem/1.4 var(--font-sans); color: var(--ink);
}
.form textarea { min-height: 160px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--navy); }
.check { display: flex !important; gap: .6rem; align-items: flex-start; font: 400 1rem/1.45 var(--font-sans) !important; color: var(--ink) !important; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--navy); flex: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 1rem 1.1rem; border-radius: var(--radius-s); border: 1px solid #e6a6a1; background: #fdf2f1; color: #7a1d17; }
.alert[hidden] { display: none; }

/* ---------- Pagine semplici ---------- */
.simple { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.simple .prose { max-width: 820px; }
.notfound-num { display: inline-block; font: 800 clamp(4rem, 3rem + 6vw, 8rem)/1 var(--font-sans); color: var(--navy); box-shadow: inset 0 -.16em 0 var(--yellow); margin: 0 0 1rem; }

/* ---------- Piè di pagina ---------- */
.site-footer { background: var(--navy-900); color: #c9d6e3; font-size: 1rem; }
.footer-grid { display: grid; gap: 2.25rem; grid-template-columns: minmax(0, 1fr); padding-block: clamp(2.75rem, 5vw, 4rem) 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }
.footer-logo { display: inline-block; margin-bottom: 1rem; }
.footer-logo img { width: 211px; height: auto; border-radius: 3px; }
.footer-claim { max-width: 46ch; }
.footer-address { font-style: normal; margin-bottom: 1rem; line-height: 1.55; }
.footer-address strong { color: #fff; }
.footer-iso { font-size: .9375rem; }
.footer-title { font: 700 1.0625rem/1.2 var(--font-cond); color: var(--yellow); margin: 0 0 .8rem; letter-spacing: .02em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: .3rem 0; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { text-decoration-color: #fff; }
.footer-phone { font: 800 1.5rem/1.1 var(--font-sans); color: var(--yellow) !important; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.25rem 1.75rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .9375rem; }
.footer-bottom p { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer-bottom .link-button { color: #fff; text-decoration-color: rgba(255,255,255,.35); }

/* ---------- Banner cookie ---------- */
.consent { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) var(--gutter); pointer-events: none; }
.consent-inner {
  pointer-events: auto; max-width: 760px; margin-left: auto; padding: 1.1rem 1.25rem;
  background: var(--navy-900); color: #dfe8f1; border-radius: 12px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
}
.consent-title { margin: 0 0 .25rem; font: 700 1.125rem/1.3 var(--font-sans); color: #fff; }
.consent-text { margin: 0 0 .9rem; font-size: .9375rem; line-height: 1.5; }
.consent-text a { color: #fff; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.consent-actions .btn { min-width: 9rem; min-height: 44px; }

/* ---------- Lightbox ---------- */
.lightbox { width: min(96vw, 1600px); max-height: 94vh; padding: 0; border: 0; border-radius: 12px; background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.lightbox::backdrop { background: rgba(4, 38, 74, .82); }
.lightbox img { width: 100%; height: auto; max-height: calc(94vh - 5rem); object-fit: contain; background: #fff; }
.lightbox form { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: .5rem; background: #fff; border-bottom: 1px solid var(--steel-200); }
.lightbox-close { border: 0; background: var(--navy); color: #fff; font: 700 .9375rem var(--font-sans); padding: .55rem 1rem; border-radius: var(--radius-s); cursor: pointer; }
.lightbox-caption { margin: 0; padding: .75rem 1rem 1rem; font-size: .9375rem; color: var(--ink-soft); }

/* ---------- Stampa ---------- */
@media print {
  .site-header, .site-footer, .consent, .toc, .btn-row, .stepper-nav, .franchigia-controls, .cta-band { display: none !important; }
  .js .stepper-steps li { display: block !important; }
  .norma-block { break-inside: avoid; }
  body { font-size: 11pt; }
  a { color: inherit; }
}

/* ---------- Clausole per gli atti di gara ---------- */
.clauses details { border: 1px solid var(--steel-200); border-radius: var(--radius); background: #fff; margin-bottom: .75rem; }
.clauses summary { cursor: pointer; list-style: none; padding: .9rem 2.75rem .9rem 1.1rem; position: relative; font: 700 1.125rem/1.3 var(--font-cond); color: var(--navy); }
.clauses summary::-webkit-details-marker { display: none; }
.clauses summary::after { content: "+"; position: absolute; right: 1rem; top: .65rem; font: 600 1.5rem/1 var(--font-sans); color: var(--navy); }
.clauses details[open] summary::after { content: "–"; }
.clauses summary small { font: 500 .9375rem var(--font-sans); color: var(--ink-soft); margin-left: .35rem; }
.clause-list { list-style: none; margin: 0; padding: 0 1.1rem .5rem; }
.clause-list li { padding: .85rem 0; border-top: 1px solid var(--steel-100); max-width: none; margin: 0; }
.clause-h { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; font-weight: 700; color: var(--navy); }
.clause-list p { margin: .3rem 0 0; font-size: 1rem; max-width: 75ch; }
.clause-ref { display: block; margin-top: .25rem; font: 600 .875rem/1.4 var(--font-cond); color: var(--ink-soft); }
.tol-table td:first-child { font-weight: 700; color: var(--navy); }

/* ---------- Ritocchi dentro i testi lunghi ---------- */
.prose .steps, .prose .legend, .prose .gp-list, .prose .clause-list, .prose .cells { padding-left: 0; }
.prose .steps > li, .prose .gp-list li, .prose .stepper-steps li { max-width: none; }
.prose .steps h3 { margin-top: 0; }
.prose .steps .formula { margin-bottom: 0; }
.prose .steps .formula + .formula { margin-top: .6rem; }
.prose .franchigia { max-width: 760px; }
.js .prose .stepper-steps { padding-left: 0; }

/* ---------- Testata dei metodi: la regola in sintesi ---------- */
.page-head-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: end; }
@media (min-width: 960px) { .page-head-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; } }
@media (min-width: 1200px) { .page-head-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 3rem; } }
.key-card { background: var(--navy); color: #dfe8f1; border-radius: 14px; padding: 1.4rem 1.5rem 1.25rem; box-shadow: var(--shadow); }
.key-title { margin: 0 0 .5rem; font: 600 .9375rem/1.2 var(--font-cond); color: #9fb3c8; letter-spacing: .02em; }
.key-formula { margin: 0; font: 700 clamp(1.375rem, 1.1rem + 1vw, 1.75rem)/1.25 var(--font-cond); color: var(--yellow); letter-spacing: .01em; }
.key-sub { margin: .4rem 0 0; font: 600 1rem/1.35 var(--font-cond); color: #fff; }
.key-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.16); }
.key-facts dt { font: 600 .8125rem/1.25 var(--font-sans); color: #9fb3c8; }
.key-facts dd { margin: .2rem 0 0; font: 800 1.25rem/1.15 var(--font-sans); color: #fff; }
.key-facts div:last-child dd { font-size: 1rem; font-weight: 700; }
@media (min-width: 960px) and (max-width: 1199px) { .key-card { padding: 1.25rem 1.25rem 1.1rem; } .key-formula { font-size: 1.375rem; } .key-facts dd { font-size: 1.125rem; } .key-facts div:last-child dd { font-size: 1rem; } }
.contact-card .contact-phone { color: var(--yellow); text-decoration: none; }
.contact-card .contact-phone:hover { color: #fff; }

/* nota sugli arrotondamenti nelle didascalie delle tabelle di calcolo */
.calc caption .cap-note { display: block; margin-top: .2rem; font: 400 .875rem/1.4 var(--font-sans); color: var(--ink-soft); }
