/* lubrificanti-industriali.com — foglio di stile principale */
:root {
  --yellow: #f2b705;
  --yellow-light: #f7d774;
  --ink: #0b1424;
  --navy-950: #0b1a30;
  --navy-900: #13294a;
  --navy-800: #1b3760;
  --navy-700: #24497a;
  --steel-600: #34536f;
  --steel-500: #5c6f84;
  --steel-300: #a3afbd;
  --steel-100: #e2e7ed;
  --steel-50: #f0f3f6;
  --paper: #f5f6f8;
  --text: #18212c;
  --text-soft: #46525f;
  --line: #d3dce6;
  --teal: #2f6690;
  --teal-dark: #1f4766;
  --teal-soft: #eaf2f9;
  --teal-line: #c9dbea;
  --warn: #e0a800;
  --warn-dark: #6b5000;
  --warn-soft: #fff8dc;
  --warn-line: #f0dc95;
  --radius: 6px;
  --max: 1120px;
  --read: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--steel-600); }

img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(75,106,135,.35), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 55%, var(--ink) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.hero h1 {
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 820px;
}
.hero p {
  font-size: 19px;
  color: var(--steel-100);
  max-width: 760px;
  margin: 0;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px; padding: 0; list-style: none;
}
.hero-tags li {
  border: 1px solid var(--steel-600);
  color: var(--steel-100);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 14px;
}

.page-head {
  background: linear-gradient(160deg, var(--navy-900), var(--ink));
  color: #fff;
  padding: 40px 0 36px;
}
.page-head h1 {
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.2;
  margin: 8px 0 12px;
  max-width: 860px;
}
.page-head p { color: var(--steel-100); margin: 0; max-width: 780px; font-size: 18px; }

.crumbs { font-size: 14px; color: var(--steel-300); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--steel-500); }
.crumbs a { color: var(--steel-100); }

/* ---------- Layout contenuti ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  padding: 48px 20px 64px;
}
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

.content { max-width: var(--read); min-width: 0; }
.content h2 {
  font-size: 27px;
  line-height: 1.3;
  color: var(--navy-900);
  margin: 44px 0 14px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.content h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.content h3 { font-size: 20px; color: var(--navy-800); margin: 30px 0 8px; }
.content p { margin: 0 0 18px; }
.content ul, .content ol { padding-left: 22px; margin: 0 0 20px; }
.content li { margin-bottom: 8px; }
.content strong { color: var(--ink); }

.lead { font-size: 19px; color: var(--text-soft); }

.note {
  background: var(--steel-50);
  border-left: 4px solid var(--steel-600);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 26px 0;
}
.note p:last-child { margin-bottom: 0; }
.note-title { font-weight: 700; color: var(--navy-900); margin-bottom: 6px !important; }

.table-wrap { overflow-x: auto; margin: 22px 0 28px; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; background: #fff; min-width: 560px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--navy-900); color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--steel-50); }

/* ---------- Sidebar ---------- */
.sidebar { min-width: 0; }
.side-stack { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.side-stack .side-warn { position: sticky; top: 130px; }
.side-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.side-box h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .8px; color: var(--steel-600); margin: 0 0 12px; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li { border-top: 1px solid var(--steel-50); }
.side-box li:first-child { border-top: 0; }
.side-box a { display: block; padding: 8px 0; text-decoration: none; font-size: 15px; color: var(--navy-800); }
.side-box a:hover { color: var(--steel-600); }
.side-box a[aria-current="page"] { font-weight: 700; color: var(--ink); }
@media (max-width: 980px) { .side-stack .side-warn { position: static; } }

/* ---------- Schede home ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}
.cards li { margin: 0; }
.cards a {
  display: block; height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy-700);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.cards a:hover { border-color: var(--steel-500); transform: translateY(-2px); }
.cards strong { display: block; color: var(--navy-900); margin-bottom: 4px; font-size: 17px; }
.cards span { font-size: 15px; color: var(--text-soft); line-height: 1.55; display: block; }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 600;
  color: var(--navy-900);
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 18px; top: 12px;
  font-size: 22px; color: var(--steel-500);
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 14px 18px 4px; }

.related { margin-top: 48px; padding: 22px 24px; background: var(--navy-900); color: var(--steel-100); border-radius: var(--radius); }
.related h2 { color: #fff; border: 0; padding: 0; margin: 0 0 10px; font-size: 20px; }
.related ul { margin: 0; padding-left: 20px; }
.related a { color: #fff; }

/* ---------- Immagini ---------- */
.figure { margin: 30px 0 34px; }
.figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--navy-900);
  box-shadow: 0 10px 28px -14px rgba(10, 14, 20, .55);
}
.figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-soft);
  padding-left: 12px;
  border-left: 3px solid var(--steel-300);
}
.figure-wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.figure-side { float: right; width: 40%; margin: 6px 0 20px 28px; }
.figure-side img { aspect-ratio: 2 / 3; object-fit: cover; }
.figure-sq img { aspect-ratio: 1 / 1; }
.content h2 { clear: both; }
@media (max-width: 640px) {
  .figure-side { float: none; width: 100%; margin: 26px 0 30px; }
  .figure-side img { aspect-ratio: 4 / 3; }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 48px;
  align-items: center;
}
.hero-figure { margin: 0; }
.hero-figure img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--navy-700);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* ---------- Icone ---------- */
.ico {
  width: 1em; height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
}

/* Titoli h2 con icona */
.content h2.h-ic { display: flex; align-items: center; gap: 14px; }
.h-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--navy-700), var(--navy-900));
  color: var(--steel-100);
  font-size: 23px;
  box-shadow: 0 6px 14px -8px rgba(17, 32, 51, .8);
}
.h-ico-warn {
  background: linear-gradient(145deg, #f2c230, var(--warn-dark));
  color: #2a2000;
  box-shadow: 0 6px 14px -8px rgba(107, 80, 0, .8);
}
.content h2.h-ic::after { content: none; }
.content h3 { display: flex; align-items: baseline; gap: 10px; }
.content h3::before {
  content: "";
  width: 14px; height: 3px; flex: none;
  background: var(--steel-500);
  border-radius: 2px;
  transform: translateY(-5px);
}

/* Elenchi puntati e numerati */
.content ul:not(.cards):not(.risk-grid):not(.feat):not(.stat-row) { list-style: none; padding-left: 0; }
.content ul:not(.cards):not(.risk-grid):not(.feat):not(.stat-row) > li { position: relative; padding-left: 26px; }
.content ul:not(.cards):not(.risk-grid):not(.feat):not(.stat-row) > li::before {
  content: "";
  position: absolute; left: 4px; top: .62em;
  width: 8px; height: 8px;
  border: 2px solid var(--steel-600);
  border-radius: 2px;
  transform: rotate(45deg);
}
.content ol { list-style: none; padding-left: 0; counter-reset: step; }
.content ol > li { position: relative; padding-left: 44px; counter-increment: step; margin-bottom: 14px; }
.content ol > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.lead {
  border-left: 3px solid var(--steel-500);
  padding-left: 18px;
}

/* Box di nota e di avvertenza */
.note { position: relative; }
.note-title { display: flex; align-items: center; gap: 9px; }
.note-title .ico { font-size: 21px; color: var(--steel-600); }
.note-warn {
  background: var(--warn-soft);
  border-left-color: var(--warn);
  border: 1px solid var(--warn-line);
  border-left: 4px solid var(--warn);
}
.note-warn .note-title { color: var(--warn-dark); }
.note-warn .note-title .ico { color: var(--warn); }
.note-warn a { color: var(--warn-dark); }
.content .note-warn ul > li::before { border-color: var(--warn); }

/* Testata pagine interne */
.page-head, .hero { position: relative; overflow: hidden; }
.page-head::before, .hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(142,164,187,.06) 0 1px, transparent 1px 22px);
  pointer-events: none;
}
.page-head::after {
  content: "";
  position: absolute; right: -120px; top: -160px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(75,106,135,.35), transparent 65%);
  pointer-events: none;
}
.page-head .wrap, .hero .wrap { position: relative; z-index: 1; }
.page-head-row { display: flex; align-items: flex-start; gap: 20px; }
.page-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; flex: none;
  margin-top: 10px;
  border-radius: 14px;
  border: 1px solid var(--steel-600);
  background: rgba(33, 59, 89, .55);
  color: var(--steel-100);
  font-size: 34px;
}
.page-badge-warn { border-color: var(--warn); background: rgba(224, 168, 0, .18); color: #f7d774; }
@media (max-width: 640px) { .page-badge { display: none; } }

/* Fascia punti chiave */
.facts {
  list-style: none;
  margin: 28px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.facts li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(142, 164, 187, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--steel-300);
  font-size: 14px;
  line-height: 1.4;
}
.facts .ico {
  font-size: 22px;
  width: 40px; height: 40px; padding: 9px;
  border-radius: 50%;
  background: rgba(142, 164, 187, .16);
  color: #fff;
  box-sizing: border-box;
}
.facts strong { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.facts-warn li { border-color: rgba(224, 168, 0, .45); }
.facts-warn .ico { background: rgba(224, 168, 0, .28); color: #f7d774; }
@media (max-width: 760px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.hero .facts { margin-top: 26px; }

.hero-tags .tag-warn { border-color: var(--warn); color: #f7d774; display: inline-flex; align-items: center; gap: 6px; }

/* Sidebar con icone */
.side-box a { display: flex; align-items: center; gap: 10px; }
.side-box a .ico { font-size: 18px; color: var(--steel-500); }
.side-box a[aria-current="page"] .ico { color: var(--navy-900); }
.page-sicurezza-saldatura .side-box a[aria-current="page"] .ico,
.side-box a[href="sicurezza-saldatura.html"] .ico { color: var(--warn); }

.side-warn {
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  border-top: 4px solid var(--warn);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.5;
}
.side-warn-title {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px;
  font-weight: 700; color: var(--warn-dark);
  text-transform: uppercase; letter-spacing: .6px; font-size: 13.5px;
}
.side-warn-title .ico { font-size: 20px; color: var(--warn); }
.side-warn ul { list-style: none; margin: 0 0 12px; padding: 0; }
.side-warn li { position: relative; padding-left: 18px; margin-bottom: 7px; color: var(--text); }
.side-warn li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--warn);
}
.side-warn a { display: inline-flex; align-items: center; gap: 6px; color: var(--warn-dark); font-weight: 600; text-decoration: none; }
.side-warn a:hover { text-decoration: underline; }

/* Schede home con icone */
.cards a { display: flex; flex-direction: column; gap: 4px; }
.cards .card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin-bottom: 8px;
  border-radius: 10px;
  background: var(--steel-50);
  color: var(--navy-700);
  font-size: 22px;
  line-height: 1;
}
.cards a:hover .card-ico { background: var(--navy-900); color: #fff; }
.cards .card-warn a { border-top-color: var(--warn); }
.cards .card-warn .card-ico { background: var(--warn-soft); color: var(--warn); }

/* Griglia rischi (sicurezza) */
.risk-grid {
  list-style: none; margin: 26px 0 30px; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.risk-grid li {
  margin: 0;
  background: #fff;
  border: 1px solid var(--warn-line);
  border-radius: 8px;
  padding: 16px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--text-soft);
}
.risk-grid .ico {
  font-size: 26px; color: var(--warn);
  display: block; margin-bottom: 8px;
}
.risk-grid strong { display: block; color: var(--ink); margin-bottom: 3px; font-size: 16px; }
@media (max-width: 760px) { .risk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .risk-grid { grid-template-columns: minmax(0, 1fr); } }

/* FAQ in arancio */
.faq details { border-left: 4px solid var(--warn-line); }
.faq details[open] { border-left-color: var(--warn); }
.faq summary::after { color: var(--warn); }

/* Tabelle */
th { border-bottom: 3px solid var(--steel-500); }
tbody tr:hover td { background: #e9eff5; }
td:first-child { font-weight: 600; color: var(--navy-900); }

/* ---------- Sezioni alternate ---------- */
.content { counter-reset: sec; }
.sec {
  counter-increment: sec;
  display: flow-root;
  margin: 0 0 40px;
}
.sec::before {
  content: "Sezione " counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--steel-500);
}
.content .sec h2 { border-top: 0; padding-top: 0; margin-top: 0; scroll-margin-top: 140px; }
.sec-alt {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy-700);
  border-radius: 12px;
  padding: 26px 30px 12px;
  box-shadow: 0 14px 30px -24px rgba(17, 32, 51, .45);
}
.page-sicurezza-saldatura .sec-alt { border-top-color: var(--warn); }
.sec-alt .note:not(.note-warn) { background: var(--teal-soft); }
@media (max-width: 640px) { .sec-alt { padding: 22px 18px 8px; } }

/* Indice della pagina */
.toc {
  margin: 0 0 44px;
  padding: 22px 26px;
  border-radius: 12px;
  background:
    repeating-linear-gradient(135deg, rgba(142,164,187,.07) 0 1px, transparent 1px 18px),
    linear-gradient(150deg, var(--navy-900), var(--ink));
  color: var(--steel-100);
}
.toc-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px !important;
  font-size: 13px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: #f2c230;
}
.toc-title .ico { font-size: 20px; }
.content .toc ol {
  margin: 0; padding: 0;
  columns: 2; column-gap: 32px;
  counter-reset: toc;
}
.content .toc li {
  break-inside: avoid;
  padding-left: 36px;
  margin-bottom: 9px;
  counter-increment: toc;
  font-size: 15px;
  line-height: 1.45;
}
.content .toc li::before {
  content: counter(toc, decimal-leading-zero);
  width: auto; height: auto;
  background: none;
  border-radius: 0;
  top: 0;
  color: #f2c230;
  font-size: 13px;
  display: block;
}
.toc a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(242, 194, 48, .35); }
.toc a:hover { border-bottom-color: #f2c230; }
@media (max-width: 640px) { .content .toc ol { columns: 1; } }

/* Elenchi a schede */
.content ul.feat {
  list-style: none;
  padding: 0;
  margin: 22px 0 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.content ul.feat > li {
  position: relative;
  margin: 0;
  padding: 16px 16px 16px 54px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15.5px;
  line-height: 1.55;
}
.sec:not(.sec-alt) ul.feat > li { background: #fff; }
.content ul.feat > li::before {
  content: "";
  position: absolute; left: 16px; top: 17px;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--teal), var(--teal-dark));
}
.content ul.feat > li::after {
  content: "";
  position: absolute; left: 25px; top: 22px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.content ul.feat strong { display: block; color: var(--navy-900); margin-bottom: 3px; font-size: 16px; }
.page-sicurezza-saldatura .content ul.feat > li::before { background: linear-gradient(145deg, #f2c230, var(--warn-dark)); }
@media (max-width: 700px) { .content ul.feat { grid-template-columns: minmax(0, 1fr); } }

/* Consigli in petrolio */
.note:not(.note-warn) {
  background: var(--teal-soft);
  border: 1px solid var(--teal-line);
  border-left: 4px solid var(--teal);
}
.note:not(.note-warn) .note-title { color: var(--teal-dark); }
.note:not(.note-warn) .note-title .ico { color: var(--teal); }

/* h3 con accento petrolio */
.content h3::before { background: var(--teal); }

/* Link esterni a fonti */
a.ext {
  color: var(--navy-700);
  text-decoration-color: var(--steel-300);
  text-decoration-thickness: 1px;
}
a.ext::after {
  content: "↗";
  display: inline-block;
  margin-left: 2px;
  font-size: .78em;
  color: var(--steel-500);
  text-decoration: none;
}
a.ext:hover { color: var(--steel-600); text-decoration-color: currentColor; }
.note-warn a.ext, .note-warn a.ext::after { color: var(--warn-dark); }


/* =========================================================
   Personalizzazione lubrificanti-industriali.com
   ========================================================= */

/* Hero con fascia segnaletica */
.hero { padding-bottom: 72px; }
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, var(--navy-900) 16px 32px);
  opacity: .95;
}
.hero h1 { color: #fff; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px !important;
  padding: 5px 12px;
  border: 1px solid rgba(242, 183, 5, .55);
  border-radius: 999px;
  color: var(--yellow-light) !important;
  font-size: 13px !important; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.hero-kicker .ico { font-size: 18px; }
.hero-figure img { border-color: rgba(242, 183, 5, .45); }
.hero-tags li { border-color: rgba(163, 175, 189, .45); }

/* Testate interne */
.page-head { border-bottom: 4px solid var(--yellow); }
.page-head::after { background: radial-gradient(circle, rgba(242, 183, 5, .16), transparent 65%); }
.page-badge { color: var(--yellow); border-color: rgba(242, 183, 5, .5); background: rgba(19, 41, 74, .7); }

/* Icone gialle su blu */
.h-ico { color: var(--yellow); }
.h-ico-warn { color: #2a2000; }
.facts .ico { background: rgba(242, 183, 5, .16); color: var(--yellow-light); }
.facts li { border-color: rgba(163, 175, 189, .3); }
.sec-alt { border-top-color: var(--yellow); }
.sec::before { color: #8a6a00; }
.content h3::before { background: var(--yellow); }
.lead { border-left-color: var(--yellow); }
.cards a { border-top-color: var(--yellow); }
.card-ico, .cards .card-ico { background: #fff6d6; color: var(--navy-800); }
.cards a:hover .card-ico { background: var(--navy-900); color: var(--yellow); }
.content ol > li::before { background: var(--navy-900); color: var(--yellow); }
.note-warn .note-title .ico, .side-warn-title .ico { color: #b38600; }
.side-warn { border-top-color: var(--yellow); }
.side-warn li::before { background: var(--yellow); }
.side-box a .ico { color: var(--steel-500); }
.side-box a[aria-current="page"] .ico { color: #b38600; }
th { border-bottom-color: var(--yellow); }
.faq details { border-left-color: var(--warn-line); }
.faq details[open] { border-left-color: var(--yellow); }
.faq summary::after { color: #b38600; }
.figure figcaption { border-left-color: var(--yellow); }

/* Glossario */
.gloss {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
}
.gloss .term {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px 14px 20px;
  overflow: hidden;
}
.gloss .term::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(var(--yellow), #d99a00);
}
.sec:not(.sec-alt) .gloss .term { background: #fff; }
.sec-alt .gloss .term { background: var(--paper); }
.gloss dt {
  font-weight: 700;
  color: var(--navy-900);
  font-size: 16.5px;
  margin-bottom: 4px;
}
.gloss dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
@media (max-width: 700px) { .gloss { grid-template-columns: minmax(0, 1fr); } }

/* Etichetta statistica nelle sezioni */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 28px;
  padding: 0; list-style: none;
}
.content .stat-row > li {
  margin: 0; padding: 18px 16px;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--navy-900), var(--ink));
  color: var(--steel-100);
  font-size: 14px; line-height: 1.45;
}
.content .stat-row > li::before { content: none; }
.stat-row .ico { font-size: 26px; color: var(--yellow); display: block; margin-bottom: 8px; }
.stat-row strong { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
@media (max-width: 700px) { .stat-row { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Header, menu e footer (design dedicato)
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 60; }

/* Barra superiore */
.topbar { background: var(--navy-950); color: var(--steel-300); font-size: 13px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-note { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .3px; }
.topbar-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px rgba(242, 183, 5, .2); }
.lang-switch { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.lang-switch a {
  display: block; padding: 3px 10px; border-radius: 999px;
  color: var(--steel-100); text-decoration: none; font-weight: 700; font-size: 12px; letter-spacing: .8px;
  border: 1px solid rgba(163, 175, 189, .35);
}
.lang-switch a:hover { border-color: var(--yellow); color: #fff; }
.lang-switch a[aria-current="true"] { background: var(--yellow); border-color: var(--yellow); color: #1b1400; }

/* Barra principale */
.mainbar {
  position: relative;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 24px -18px rgba(11, 26, 48, .55);
}
.mainbar-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-900); line-height: 1.15; }
.brand:hover { color: var(--navy-900); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: -.2px; }
.brand-name b { color: #c99400; font-weight: 800; }
.brand small { display: block; font-size: 12.5px; color: var(--steel-500); font-weight: 500; letter-spacing: .2px; margin-top: 2px; }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn {
  display: none;
  align-items: center; gap: 8px;
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 700; font-size: 14px;
}
.nav-btn span, .nav-btn span::before, .nav-btn span::after {
  display: block; width: 16px; height: 2px; background: var(--yellow); border-radius: 2px; position: relative;
}
.nav-btn span::before, .nav-btn span::after { content: ""; position: absolute; left: 0; }
.nav-btn span::before { top: -5px; }
.nav-btn span::after { top: 5px; }

.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-parent {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--navy-900);
  text-decoration: none;
  font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.nav-list > li > a:hover, .nav-parent:hover, .has-sub:focus-within .nav-parent { background: var(--steel-50); }
.nav-list > li > a[aria-current="page"], .nav-parent.is-active { background: var(--yellow); color: #1b1400; }
.nav-parent::after {
  content: ""; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 2px;
}
.sub {
  position: absolute; top: calc(100% + 10px); left: -8px;
  min-width: 290px;
  list-style: none; margin: 0; padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--yellow);
  border-radius: 12px;
  box-shadow: 0 24px 48px -20px rgba(11, 26, 48, .45);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--navy-900); text-decoration: none; font-size: 15px; font-weight: 600;
}
.sub a .ico {
  width: 34px; height: 34px; padding: 7px; box-sizing: border-box;
  border-radius: 8px; background: #fff6d6; color: var(--navy-800); font-size: 20px;
}
.sub a:hover { background: var(--steel-50); }
.sub a[aria-current="page"] { background: #fff6d6; }
.sub a[aria-current="page"] .ico { background: var(--yellow); color: #1b1400; }

@media (max-width: 1040px) {
  .topbar-note { display: none; }
  .topbar-in { justify-content: flex-end; }
  .nav-btn { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 4px solid var(--yellow);
    box-shadow: 0 24px 40px -20px rgba(11, 26, 48, .5);
    max-height: calc(100vh - 110px); overflow-y: auto;
  }
  .nav-toggle:checked ~ .main-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .nav-list > li > a, .nav-parent { display: flex; border-radius: 8px; padding: 12px 14px; }
  .nav-parent::after { display: none; }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 3px solid var(--yellow-light); border-radius: 0;
    margin: 0 0 6px 14px; padding: 0 0 0 8px; min-width: 0;
  }
  .sub::before { display: none; }
}

/* Footer chiaro */
.site-footer {
  background: linear-gradient(180deg, #edf1f5, #e4e9ef);
  color: var(--text);
  font-size: 15px;
  border-top: 6px solid var(--yellow);
  padding: 56px 0 0;
  margin-top: 20px;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { margin: 0; color: var(--text-soft); line-height: 1.6; max-width: 380px; }
.site-footer h2 {
  margin: 4px 0 16px;
  font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--navy-900);
}
.site-footer h2::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 8px; background: var(--yellow); border-radius: 2px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { display: inline-flex; align-items: center; gap: 9px; color: var(--navy-800); text-decoration: none; }
.footer-links a .ico { color: #b38600; font-size: 17px; }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.footer-privacy {
  margin-top: 40px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 12px;
}
.footer-privacy h2 { margin: 0 0 8px; }
.footer-privacy h2::after { display: none; }
.privacy { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--text-soft); }
.footer-bottom { margin-top: 40px; background: var(--navy-950); color: var(--steel-300); font-size: 14px; }
.footer-bottom-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; min-height: 54px; }
.footer-bottom a { color: var(--yellow); text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; }
.footer-bottom .lang-switch a { color: var(--steel-100); }
.footer-bottom .lang-switch a[aria-current="true"] { color: #1b1400; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* Testi di interfaccia in inglese */
:lang(en) .sec::before { content: "Section " counter(sec, decimal-leading-zero); }