:root {
  color-scheme: light;
  --ink: #303b48;
  --muted: #586574;
  --accent: #f8bf36;
  --link: #075b82;
  --line: #dbe1e7;
  --sidebar-width: 280px;
  scroll-padding-top: 88px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f1f3f5; font: 17px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
button { border: 1px solid #b8c3ce; border-radius: 8px; padding: 8px 14px; background: white; color: var(--ink); }
:focus-visible { outline: 3px solid #076b9c; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 15px; background: white; padding: 12px; z-index: 100; }
.skip-link:focus { top: 10px; }
.header { position: fixed; inset: 0 0 auto; height: 68px; display: flex; align-items: center; gap: 16px; padding: 0 28px; background: #343a40; color: white; z-index: 20; box-shadow: 0 2px 10px #0002; }
.brand { display: flex; align-items: center; gap: 10px; color: white; text-decoration: none; font-size: 23px; font-weight: 750; }
.brand-mark { display: block; flex-shrink: 0; width: 40px; height: 40px; border-radius: 9px; }
.brand-note { font-size: 14px; font-weight: 400; color: #e1e5e9; border-left: 1px solid #78828b; padding-left: 14px; margin-left: 6px; }
.print-button { margin-left: auto; background: transparent; color: white; border-color: #aeb7bf; font-size: 14px; }
.menu-toggle { margin-left: auto; }
.sidebar { position: fixed; top: 68px; bottom: 0; width: var(--sidebar-width); overflow-y: auto; padding: 24px 16px; background: white; border-right: 1px solid var(--line); z-index: 15; }
.nav-heading { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; margin: 0 10px 18px; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar nav a { padding: 9px 12px; border-radius: 7px; color: #3e4955; text-decoration: none; font-size: 15px; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { background: #fff4d5; color: #4c3900; }
.sidebar nav a[aria-current] { box-shadow: inset 3px 0 var(--accent); font-weight: 700; }
.sidebar-note { font-size: 13px; color: var(--muted); margin: 25px 12px; }
.search { margin: 0 10px 16px; }
.search label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 5px; }
.search input { width: 100%; min-width: 0; padding: 9px; border: 1px solid #aeb9c4; border-radius: 7px; font-size: 13px; }
#risultati { font-size: 12px; color: var(--muted); margin: 6px 0; min-height: 20px; }
main { max-width: 1640px; margin: 68px auto 0 var(--sidebar-width); padding: 26px 38px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.topic { scroll-margin-top: 20px; }
.hero { padding: 32px 36px; margin-bottom: 26px; border-radius: 14px; background: #fff9e9; border: 1px solid #eed9a2; }
h1, h2, h3 { line-height: 1.25; color: #27313c; }
h1 { font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -.035em; margin: 8px 0 16px; max-width: 780px; }
h2 { font-size: 28px; margin: 6px 0 22px; letter-spacing: -.02em; }
h3 { font-size: 20px; margin: 26px 0 12px; }
p { margin: 12px 0; }
.lead { font-size: 20px; max-width: 820px; }
.eyebrow { font-size: 12px; color: #726029; font-weight: 800; letter-spacing: .1em; margin: 0; }
.card { background: white; padding: 32px 36px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 26px; box-shadow: 0 3px 12px #25324205; }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.quick-links a { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: white; border: 1px solid #e1cd93; padding: 16px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 700; color: #584300; }
.quick-links a:hover { background: #ffefbb; }
.install-button { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 14px 20px; border-radius: 8px; background: #075b82; color: white; text-decoration: none; font-weight: 750; }
.install-button:hover { background: #064666; text-decoration: underline; }
.notice, .example { border-radius: 7px; padding: 15px 18px; margin: 22px 0; background: #edf5fa; border-left: 4px solid #3383a5; font-size: 16px; }
.warning { background: #fff5dd; border-color: #bc7900; color: #614711; }
.success { background: #edf7f0; border-color: #368152; color: #28513a; }
.example { background: #f4f5f7; border-color: #7e8995; }
.small, figcaption { font-size: 14px; color: var(--muted); }
.two-columns { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.two-columns > * { min-width: 0; }
ol, ul { padding-left: 25px; }
li { margin: 10px 0; padding-left: 4px; }
li::marker { color: #646c74; font-weight: 700; }
kbd { display: inline-block; border: 1px solid #c8d1db; border-bottom-width: 3px; background: white; border-radius: 5px; padding: 0 7px; font: 15px/1.8 system-ui, sans-serif; white-space: nowrap; }
figure { margin: 24px 0; }
figure.compact { max-width: 760px; }
figure a { display: block; border: 1px solid #bac7d1; border-radius: 8px; overflow: hidden; background: #f7f9fc; }
figure a:hover { box-shadow: 0 0 0 3px #f8bf3670; }
figure img { width: 100%; height: auto; display: block; }
figure video { display: block; width: 100%; height: auto; border: 1px solid #bac7d1; border-radius: 8px; background: #111; }
figcaption { margin-top: 8px; }
.definitions { display: grid; grid-template-columns: 170px 1fr; gap: 14px 24px; }
dt { font-weight: 750; }
dd { margin: 0; }
details { padding: 15px 0; border-bottom: 1px solid var(--line); }
summary { font-weight: 650; padding: 4px 0; }
details p { margin-left: 20px; }
.inset { padding: 4px 20px 18px; background: #f5f7f9; border-radius: 8px; }
.no-results { background: white; padding: 30px; border-radius: 10px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0 30px; font-size: 14px; color: var(--muted); }
dialog { border: 0; border-radius: 10px; padding: 18px; max-width: 96vw; max-height: 94vh; background: #f8fafc; color: var(--ink); }
dialog::backdrop { background: #111c29d9; }
dialog img { display: block; max-width: 100%; max-height: 74vh; width: auto; height: auto; margin: 16px auto 0; }
dialog p { font-size: 14px; max-width: 1000px; }
.close-image { display: block; margin-left: auto; }
@media (max-width: 1200px) {
  main { padding: 24px; }
  .two-columns { grid-template-columns: 1fr; gap: 0; }
  .quick-links { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .header { padding: 0 16px; gap: 10px; }
  .brand { font-size: 20px; }
  .brand-note, .print-button { display: none; }
  .sidebar { position: static; width: auto; margin-top: 68px; border-bottom: 1px solid var(--line); }
  .enhanced .sidebar { display: none; position: fixed; inset: 68px 0 0; margin-top: 0; width: min(340px, 100%); box-shadow: 12px 0 35px #0003; }
  .enhanced.menu-open .sidebar { display: block; }
  main { margin: 0; padding: 20px 12px; }
  .enhanced main { margin-top: 68px; }
  .card, .hero { padding: 24px 19px; border-radius: 10px; }
  body { font-size: 16px; }
  h2 { font-size: 25px; }
  .definitions { grid-template-columns: 1fr; gap: 4px; }
  dd { margin-bottom: 14px; }
  .lead { font-size: 18px; }
  footer { flex-wrap: wrap; }
}
@media (min-width: 801px) { .menu-toggle { display: none; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  :root { scroll-padding-top: 0; }
  .header, .sidebar, .breadcrumb, .quick-links, dialog, footer a, .skip-link, .no-results { display: none !important; }
  main, .enhanced main { margin: 0; max-width: none; padding: 0; }
  body { background: white; color: black; font-size: 11pt; }
  .card, .hero { border: 0; box-shadow: none; padding: 12px 0; margin: 0; background: white; }
  .topic[hidden] { display: block !important; }
  figure { max-width: 115mm; break-inside: avoid; }
  figure video { display: none; }
  h2, h3 { break-after: avoid; }
  .two-columns { display: block; }
  a { color: inherit; }
}
