@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #0b0b0c; --bg-raised: #0f1011; --surface: #141516; --surface2: #1a1b1d;
  --border: rgba(255,255,255,0.06); --border-med: rgba(255,255,255,0.10);
  --accent: #4dab9a; --accent-dim: rgba(77,171,154,0.12); --accent-line: rgba(77,171,154,0.38);
  --yellow: #eab308;
  --text: #f0f0f2;
  --text-dim: rgba(162,162,173,0.80);
  --text-muted: rgba(162,162,173,0.65);
  --text-legge: rgba(214,214,222,0.90);
  --radius: 10px;
  --on-accent: #051010;
  --e-ts: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.leg-testa {
  display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap;
  max-width: 1160px; margin: 0 auto; padding: 22px 26px;
}
.leg-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -0.02em; margin-right: auto; }
.leg-logo img { width: 30px; height: 30px; }
.leg-lingua {
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  border: 1px solid var(--border-med); border-radius: 999px; padding: 7px 14px;
  transition: color 0.2s, border-color 0.2s;
}
.leg-lingua:hover { color: var(--text); border-color: var(--accent-line); }
.leg-torna {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--on-accent); background: var(--accent);
  border-radius: 999px; padding: 8px 16px; transition: background 0.2s;
}
.leg-torna:hover { background: #5cc0ad; }
.leg-main { max-width: 1160px; margin: 0 auto; padding: 36px 26px 96px; }
.leg-capo { max-width: 760px; margin-bottom: 44px; }
.leg-capo h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin-top: 16px; }
.leg-data { margin-top: 14px; font-size: 14px; color: var(--text-muted); }
.leg-occhiello {
  display: inline-flex; align-items: center;
  font-size: 11px; line-height: 1.2; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  border: 1px solid rgba(77,171,154,0.28); background: var(--accent-dim);
  border-radius: 999px; padding: 4px 12px;
}
.eq3 { display: inline-flex; flex-direction: column; justify-content: center; gap: 2px; width: 12px; margin-right: 9px; flex: 0 0 auto; }
.eq3 i { display: block; height: 2px; width: 12px; border-radius: 1px; background: currentColor; opacity: 0.8;
  transform-origin: left center; animation: eqLieve 3s var(--e-ts) infinite; }
.eq3 i:nth-child(2) { animation-delay: -2s; }
.eq3 i:nth-child(3) { animation-delay: -1s; }
@keyframes eqLieve { 0%, 100% { transform: scaleX(1); } 33.33% { transform: scaleX(0.7); } 66.66% { transform: scaleX(0.45); } }
@media (prefers-reduced-motion: reduce) { .eq3 i { animation: none; } }
.leg-grid { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 64px; align-items: start; }
.leg-indice {
  position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto;
  font-size: 13.5px; line-height: 1.4; padding-right: 6px;
}
.leg-indice-tit { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.leg-indice ol { list-style: none; border-left: 1px solid var(--border-med); }
.leg-indice a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--text-dim); transition: color 0.2s, border-color 0.2s; }
.leg-indice a:hover { color: var(--text); border-left-color: var(--accent); }
.leg-testo { min-width: 0; color: var(--text-legge); }
.leg-testo section { scroll-margin-top: 24px; }
.leg-testo section + section { margin-top: 48px; }
.leg-testo h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; color: var(--text); margin-bottom: 14px; text-wrap: balance; }
.leg-testo h3 { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; color: var(--text); margin: 26px 0 8px; }
.leg-testo p, .leg-testo li { font-size: 16px; line-height: 1.72; }
.leg-testo p + p, .leg-testo ul + p, .leg-testo ol + p, .leg-testo p + ul, .leg-testo p + ol,
.leg-testo .leg-tab-wrap + p, .leg-testo p + .leg-tab-wrap { margin-top: 14px; }
.leg-testo ul, .leg-testo ol { padding-left: 22px; }
.leg-testo li + li { margin-top: 6px; }
.leg-testo li::marker { color: var(--accent); }
.leg-testo strong { color: var(--text); font-weight: 600; }
.leg-testo a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.leg-testo a:hover { text-decoration-color: var(--accent); }
.leg-testo .leg-breve {
  background: var(--surface); border: 1px solid var(--border-med); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 22px 26px;
}
.leg-testo .leg-breve h2 { font-size: 18px; margin-bottom: 10px; }
.leg-testo .leg-breve li { font-size: 15.5px; }
.leg-tab-wrap { overflow-x: auto; border: 1px solid var(--border-med); border-radius: var(--radius); }
.leg-tab { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.leg-tab th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); background: var(--surface); padding: 11px 14px; border-bottom: 1px solid var(--border-med); }
.leg-tab td { vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--border); }
.leg-tab tr:first-child td { border-top: 0; }
.leg-tab td:first-child { color: var(--text); font-weight: 600; min-width: 130px; }
.leg-dc {
  background: var(--yellow); color: #1b1400; font-weight: 600;
  padding: 1px 6px; border-radius: 4px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.leg-piede { background: var(--bg-raised); border-top: 1px solid var(--border); }
.leg-piede-in { max-width: 1160px; margin: 0 auto; padding: 36px 26px 44px; font-size: 13px; color: var(--text-muted); }
.leg-piede-link { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.leg-piede-link a { color: var(--text-dim); transition: color 0.2s; }
.leg-piede-link a:hover { color: var(--accent); }
.leg-piede-link a[aria-current="page"] { color: var(--text); }
.leg-chi { margin-top: 18px; }
.leg-avviso { max-width: 740px; margin-top: 10px; line-height: 1.55; font-size: 12.5px; }
@media (max-width: 900px) {
  .leg-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .leg-indice {
    position: static; max-height: none; overflow: visible;
    background: var(--surface); border: 1px solid var(--border-med); border-radius: var(--radius); padding: 18px 20px;
  }
}
@media (max-width: 560px) {
  .leg-tab-wrap { overflow: visible; border: 0; border-radius: 0; }
  .leg-tab thead { display: none; }
  .leg-tab, .leg-tab tbody, .leg-tab tr, .leg-tab td { display: block; width: 100%; }
  .leg-tab tr { border: 1px solid var(--border-med); border-radius: var(--radius); padding: 6px 0; }
  .leg-tab tr + tr { margin-top: 10px; }
  .leg-tab td, .leg-tab tr:first-child td { border-top: 0; padding: 6px 16px; }
  .leg-tab td:first-child { min-width: 0; }
  .leg-tab td[data-th]::before {
    content: attr(data-th); display: block; margin-bottom: 2px;
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
  }
  .leg-testa { padding: 16px; gap: 10px; }
  .leg-logo span { display: none; }
  .leg-main { padding: 20px 16px 72px; }
  .leg-capo { margin-bottom: 30px; }
  .leg-testo .leg-breve { padding: 18px; }
  .leg-testo p, .leg-testo li { font-size: 15.5px; }
  .leg-piede-in { padding: 28px 16px 36px; }
}
@media print {
  body { background: #fff; color: #000; }
  .leg-testa, .leg-indice, .leg-piede-link { display: none; }
  .leg-grid { display: block; }
  .leg-testo, .leg-testo h2, .leg-testo h3, .leg-testo strong, .leg-tab td:first-child { color: #000; }
  .leg-testo a { color: #000; }
  .leg-testo .leg-breve, .leg-tab th { background: #fff; }
  .leg-piede { background: #fff; }
}
