/* STARE — stile comune. Font Nunito Sans (come Avenir del logo) ospitato sul sito: zero richieste a terzi, zero cookie. */
@import url("fonts/fonts.css");
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f5f2;
  --ink: #1c1c1c;
  --ink-soft: #575757;
  --line: #e6e4df;
  --brand: #1f6f93;
  --brand-ink: #ffffff;
  --brand-soft: #e3f6fd;
  --accent: #b2479f;
  --accent-soft: #fdeefd;
  --warn-bg: #fff6e3;
  --warn-ink: #6b4e00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 6px 22px rgba(0,0,0,.06);
  --font: "Nunito Sans", Avenir, "Avenir Next", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Nunito Sans", Avenir, "Avenir Next", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141516;
    --surface: #1c1d1f;
    --surface-2: #242628;
    --ink: #f2f2f0;
    --ink-soft: #b0b0ad;
    --line: #323436;
    --brand: #86d3f2;
    --brand-ink: #141516;
    --brand-soft: #1b3440;
    --accent: #f2a6ee;
    --accent-soft: #3a2238;
    --warn-bg: #3a3218;
    --warn-ink: #f6e3b4;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #141516;
    --surface: #1c1d1f;
    --surface-2: #242628;
    --ink: #f2f2f0;
    --ink-soft: #b0b0ad;
    --line: #323436;
    --brand: #86d3f2;
    --brand-ink: #141516;
    --brand-soft: #1b3440;
    --accent: #f2a6ee;
    --accent-soft: #3a2238;
    --warn-bg: #3a3218;
    --warn-ink: #f6e3b4;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--font);
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; font-size: 1.4rem; }
.logo picture { display: flex; flex: none; }
.logo img { height: 46px; width: auto; display: block; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.menu-btn { display: none; }
@media (max-width: 720px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); color: var(--ink); border: 0; border-radius: 10px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 700; line-height: 1.2; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Hero */
.hero { padding: 56px 0 40px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.hero h1 em { font-style: normal; color: var(--accent); }

/* Sezioni e card */
section { padding: 32px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s ease, border-color .15s ease; }
.card-link:hover { transform: translateY(-2px); border-color: var(--brand); }
.card .more { font-weight: 700; color: var(--brand); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }
.icon svg { width: 24px; height: 24px; }
.icon.alt { background: var(--accent-soft); color: var(--accent); }

.band { background: var(--surface-2); border-radius: 20px; padding: 28px 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chip { background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 600; }

/* Community */
.community { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.community h2 { margin: 0; font-size: 1.6rem; }
.community-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; flex-wrap: wrap; }
.community-per { font-weight: 700; color: var(--brand); margin-bottom: .4em; }
.community .chips { margin: 4px 0 16px; }
.chips.small .chip { font-size: .8rem; padding: 4px 10px; background: var(--surface-2); }
.status { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.status.on { background: var(--brand-soft); color: var(--brand); }
.status.soon { background: var(--warn-bg); color: var(--warn-ink); }

/* Punti di forza per gli enti */
.points { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 8px 0 20px; padding: 0; list-style: none; }
.points li { min-width: 0; }
.points strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.points span { color: var(--ink-soft); }
.tool-for { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }

/* Annunci */
.filters { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-items: end; margin-bottom: 16px; }
@media (max-width: 560px) { .filters { grid-template-columns: 1fr; } }
label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 6px; }
select, input, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
select:focus, input:focus, textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 180px; resize: vertical; }
.count { color: var(--ink-soft); font-size: .95rem; margin: 0 0 12px; }

.jobs { display: grid; gap: 12px; }
.job { scroll-margin-top: 80px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.job summary { list-style: none; cursor: pointer; padding: 18px 20px; display: grid; gap: 8px; }
.job summary::-webkit-details-marker { display: none; }
.job summary:hover .job-title { color: var(--brand); }
.job-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.job-ente { color: var(--ink-soft); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-soft); }
.tag.fig { background: var(--brand-soft); color: var(--brand); }
.tag.pay { background: var(--accent-soft); color: var(--accent); }
.job-body { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; margin: 16px 0; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; }
.facts dd { margin: 0; font-weight: 600; }
.desc { white-space: pre-line; }
.job-meta { font-size: .85rem; color: var(--ink-soft); margin-top: 12px; }
.job .btn { padding: 10px 16px; font-size: .95rem; }

.notice { background: var(--warn-bg); color: var(--warn-ink); border-radius: 12px; padding: 12px 16px; font-weight: 600; margin-bottom: 16px; }
.empty { text-align: center; padding: 40px 20px; color: var(--ink-soft); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Form */
.form { display: grid; gap: 18px; }
.form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0; background: var(--surface); display: grid; gap: 16px; }
.form legend { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; padding: 0 6px; }
.two { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.hint { font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.req { color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.radio-row { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-row label { display: flex; gap: 8px; align-items: center; font-weight: 600; margin: 0; }
.radio-row input { width: auto; }
.hidden { display: none !important; }
.error { color: #b3261e; font-weight: 700; }

/* Prosa (privacy) */
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Footer */
.site-footer { margin-top: 48px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-soft); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--ink-soft); }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.more-card { border-style: dashed; box-shadow: none; background: transparent; }

/* Scritta del logo: STARE e sotto "we care", nel colore del testo (si legge anche in modalità notturna) */
.logo-testo { display: flex; flex-direction: column; line-height: 1; }
.logo-testo small { font-family: var(--font); font-size: .52rem; font-weight: 400; letter-spacing: .32em; text-transform: uppercase; color: var(--ink); margin-top: 4px; padding-left: 1px; }

/* ---------- Centro assistenza ---------- */
.help-hero { padding-bottom: 24px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; box-shadow: var(--shadow); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.search svg { width: 20px; height: 20px; flex: none; color: var(--ink-soft); }
.search input { border: 0; background: transparent; box-shadow: none; padding: 14px 0; min-width: 0; }
.search input:focus { box-shadow: none; }
.search.big { max-width: 640px; margin-top: 8px; }
.search.big input { font-size: 1.1rem; padding: 16px 0; }
.search.small { box-shadow: none; border-radius: 12px; padding: 0 12px; margin-bottom: 20px; }
.search.small input { padding: 10px 0; }
.risultati { list-style: none; margin: 12px 0 0; padding: 6px; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.risultati li { padding: 10px 12px; border-radius: 10px; }
.risultati li + li { border-top: 1px solid var(--line); }
.risultati span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.risultati a { font-weight: 700; text-decoration: none; }
.risultati a:hover { text-decoration: underline; }
.risultati .vuoto { color: var(--ink-soft); }
.grid.two-up { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.path { padding: 26px; }
.path h3 { font-size: 1.4rem; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 12px 0; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-list a::after { content: " →"; color: var(--brand); }
.link-list a:hover { color: var(--brand); }

.breadcrumb { padding-top: 24px; font-size: .9rem; color: var(--ink-soft); }
.breadcrumb a { color: var(--ink-soft); font-weight: 600; }
.help-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.help-side { position: sticky; top: 88px; }
.side-t { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 6px; }
.side-nav { list-style: none; padding: 0; margin: 0 0 20px; border-left: 2px solid var(--line); }
.side-nav a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.side-nav a:hover { border-left-color: var(--brand); color: var(--brand); }
.side-alt { font-size: .9rem; color: var(--ink-soft); }
.help-main { min-width: 0; }
.faq-cat { padding: 0 0 28px; scroll-margin-top: 88px; }
.faq-cat h2 { font-size: 1.35rem; margin-bottom: 12px; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; scroll-margin-top: 88px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--brand); }
.faq-a { padding: 0 16px 14px; color: var(--ink); }
.faq-a ul { padding-left: 1.2em; margin: 0 0 1em; }
.faq-a li { margin-bottom: .3em; }
.faq-link { font-size: .82rem; margin: 0; }
.faq-link a { color: var(--ink-soft); }

.contatto { padding: 8px 0 0; scroll-margin-top: 88px; }
.contatto .card { padding: 26px; }
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 22px; }
.step h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.step .n { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: var(--bg); font-size: .85rem; flex: none; }
.topics { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.topic { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; background: var(--surface); }
.topic:hover { border-color: var(--brand); }
.topic input { width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.topic:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.sugg { margin: 0 0 14px; padding-left: 1.2em; }
.sugg li { margin-bottom: .4em; }
.codice { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }

@media (max-width: 820px) {
  .help-layout { grid-template-columns: 1fr; gap: 8px; }
  .help-side { position: static; }
  .side-nav { display: flex; flex-wrap: wrap; gap: 6px; border: 0; }
  .side-nav a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; margin: 0; font-size: .88rem; }
  .side-nav a:hover { border-color: var(--brand); }
}

/* ---------- Strumento assistente infermiere (prefisso ai-) ---------- */
.ai .ai-card { margin-top: 20px; }
.ai-h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.ai-card > .ai-h3:first-child { margin-top: 0; }
.ai-facts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.ai-facts li { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.ai-count { font-size: .85rem; color: var(--ink-soft); margin: 0 0 6px; }
.ai-progress { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 18px; }
.ai-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--brand)); transition: width .3s; }
.ai-q { font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.ai-hint { margin: 0 0 16px; }
.ai-opts { display: grid; gap: 10px; margin-top: 12px; }
.ai-opt { text-align: left; font: inherit; font-weight: 600; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; min-height: 52px; transition: border-color .15s, background .15s; }
.ai-opt:hover { border-color: var(--brand); background: var(--brand-soft); }
.ai-opt small { display: block; font-weight: 400; font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }
.ai-back { background: none; border: 0; font: inherit; font-weight: 600; font-size: .9rem; color: var(--ink-soft); cursor: pointer; margin-top: 18px; padding: 8px 0; text-decoration: underline; }
.ai-badge { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 99px; margin-bottom: 12px; }
.ai-ok { background: var(--brand-soft); color: var(--brand); }
.ai-near { background: var(--warn-bg); color: var(--warn-ink); }
.ai-no { background: var(--accent-soft); color: var(--accent); }
.ai-steps { list-style: none; counter-reset: s; margin: 8px 0 0; padding: 0; }
.ai-steps li { counter-increment: s; position: relative; padding: 0 0 14px 40px; }
.ai-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.ai-box { border-radius: 12px; padding: 14px 16px; margin-top: 8px; background: var(--surface-2); }
.ai-box .ai-steps { margin-top: 12px; }
.ai-promo { background: linear-gradient(135deg, var(--accent-soft), var(--brand-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; margin-top: 28px; }
.ai-promo h2 { font-size: 1.4rem; }
.ai-promo ul { margin: 10px 0 18px; padding-left: 1.2em; display: grid; gap: 4px; }

/* Verifica anti-bot nel modulo */
.verifica-umano:empty { display: none; }
.verifica-umano { min-height: 65px; }

/* ---------- Indagine stipendi ---------- */
.st-contatore { margin-top: 8px; }
.st-numero { font-size: 1.1rem; margin: 0 0 8px; }
.st-numero strong { font-size: 1.6rem; }
.st-barra { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.st-barra span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--brand)); transition: width .6s; }
.st-contatore .hint { margin: 8px 0 0; }
.st-box { display: grid; gap: 16px; }
.st-grazie { border-color: var(--brand); }
.st-banner { display: block; text-decoration: none; color: inherit; background: linear-gradient(135deg, var(--accent-soft), var(--brand-soft)); transition: transform .15s ease; }
.st-banner:hover { transform: translateY(-2px); }
.st-banner h2 { margin-bottom: .3em; }
.st-banner p { margin: 0; color: var(--ink); }
.st-banner strong { color: var(--brand); }

/* ---------- Risultati dell'indagine stipendi ---------- */
.rs-filtri { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .rs-filtri { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .rs-filtri { grid-template-columns: 1fr; } }
.rs-sezione { padding-top: 16px; }
.rs-sezione > h2 { margin-bottom: 14px; }
.rs-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; }
.rs-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.rs-tile-l { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.rs-tile-v { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.2; color: var(--ink); }
.rs-tile-n { font-size: .82rem; color: var(--ink-soft); }
.rs-due { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: 16px; }
.rs-blocco { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.rs-blocco h3 { font-size: 1rem; margin-bottom: 4px; }
.rs-nota { font-size: .82rem; color: var(--ink-soft); margin: 0 0 12px; }
.rs-barre, .rs-ccnl { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rs-barre li { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; align-items: center; gap: 10px; font-size: .9rem; }
.rs-barre-nome { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.rs-barre-traccia { display: block; height: 10px; background: var(--surface-2); border-radius: 4px; overflow: hidden; }
.rs-barre-barra { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.rs-barre-val { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 700; white-space: nowrap; }
.rs-ins .rs-barre-val { color: var(--ink-soft); font-weight: 400; }
.rs-ris .rs-barre-barra { opacity: .45; }
.rs-ccnl li { display: grid; gap: 6px; }
.rs-ccnl-testa { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.rs-ccnl-testa span { color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs-ccnl .chips { margin-top: 2px; }
.rs-riservato { font-size: .88rem; font-weight: 700; color: var(--warn-ink); background: var(--warn-bg); padding: 8px 12px; border-radius: 10px; }
.rs-pochi { padding: 24px 20px; }
.rs-pochi p:last-child { margin: 0; }
.rs-metodo { padding-left: 1.2em; margin: 0 0 14px; }
.rs-metodo li { margin-bottom: .4em; }
@media (max-width: 560px) { .rs-barre li { grid-template-columns: 1fr auto; } .rs-barre-traccia { grid-column: 1 / -1; grid-row: 2; } }

.rs-regioni { margin-bottom: 16px; }
.rs-regioni .rs-barre li { grid-template-columns: minmax(140px, 22%) 1fr auto; }
.rs-confronto { background: linear-gradient(135deg, var(--accent-soft), var(--brand-soft)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.rs-confronto > h3 { font-size: 1.15rem; margin-bottom: 4px; }
.rs-pila { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 900px) { .rs-pila .rs-blocco:last-child .rs-barre { display: block; columns: 2; column-gap: 40px; } .rs-pila .rs-blocco:last-child .rs-barre li { break-inside: avoid; margin-bottom: 10px; } }
.rs-manca { font-weight: 700; color: var(--brand); margin: 0; }
.rs-misure { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 6px; }
.rs-misura { font: inherit; font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.rs-misura:hover { border-color: var(--brand); }
.rs-misura.attiva { background: var(--ink); color: var(--bg); border-color: var(--ink); }
