/* Pagine legali Termoproget: stessi colori e caratteri del sito */
:root {
  --font-head: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bg: #fff; --surface: #EFEFEE; --text: #222; --muted: #555; --brand: #17709F; --border: #CFCFCC;
  --header: #17709F; --footer: #0B3550; --hot: #D9481F; --cold: #3A8FD0; --focus: #1D4ED8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; --bg: #0C161D; --surface: #121F29; --text: #E8EFF4; --muted: #A9B9C6; --brand: #6DB6E3; --border: #26394A; --header: #0A2230; --footer: #071118; --focus: #FFD54A; } }
:root[data-theme="dark"] { color-scheme: dark; --bg: #0C161D; --surface: #121F29; --text: #E8EFF4; --muted: #A9B9C6; --brand: #6DB6E3; --border: #26394A; --header: #0A2230; --footer: #071118; --focus: #FFD54A; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font-body); line-height: 1.65; color: var(--text); background: var(--bg); }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -100px; padding: 12px 16px; background: #fff; color: #0F4F75; font-weight: 600; z-index: 10; }
.skip:focus { top: 12px; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
header { position: sticky; top: 0; z-index: 5; background: var(--header); border-bottom: 4px solid; border-image: linear-gradient(90deg, var(--hot), var(--cold)) 1; }
header .wrap { max-width: 1200px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
header img { display: block; width: 150px; height: auto; }
header a.back { color: #fff; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
header a.back:hover { text-decoration: underline; }
main { padding: 48px 0 72px; }
.kicker { margin: 0 0 8px; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0 0 12px; }
h1::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 16px; background: linear-gradient(90deg, var(--hot), var(--cold)); }
h2 { font-size: 1.5rem; margin: 48px 0 12px; padding-top: 16px; border-top: 1px solid var(--border); }
h3 { font-size: 1.1875rem; margin: 24px 0 8px; }
.meta { color: var(--muted); font-size: .9375rem; }
.toc { margin: 32px 0 0; padding: 20px 24px; background: var(--surface); border-radius: 8px; }
.toc h2 { margin: 0 0 8px; padding: 0; border: 0; font-size: 1.125rem; }
.toc ol { margin: 0; padding-left: 20px; columns: 2 260px; }
.toc li { margin: 4px 0; }
.card { padding: 20px 24px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); }
dl.data { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
dl.data dt { color: var(--muted); }
dl.data dd { margin: 0; }
@media (max-width: 540px) { dl.data { grid-template-columns: 1fr; gap: 0; } dl.data dd { margin-bottom: 8px; } }
.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--border); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { background: var(--surface); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.note { padding: 14px 18px; border-left: 4px solid var(--cold); background: var(--surface); border-radius: 0 6px 6px 0; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; font: inherit; font-weight: 600; color: #fff; background: var(--brand); border: 0; border-radius: 6px; cursor: pointer; }
.btn:hover { filter: brightness(1.1); }
#pref-status { font-weight: 600; }
footer { background: var(--footer); color: #E3ECF3; padding: 32px 0; font-size: .9375rem; }
footer a { color: #fff; }
footer .wrap { max-width: 1200px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer p { margin: 0; }
