/* ==========================================================
   Ciao Italia, Ciao Germania — foglio di stile
   Toni caldi, leggibilità prima di tutto, mobile-first.
   ========================================================== */

:root {
  --bg: #fbf7f1;
  --bg-soft: #f4ece0;
  --paper: #ffffff;
  --ink: #2a2420;
  --ink-soft: #5c524a;
  --line: #e6dccd;

  --terra: #b4532a;        /* terracotta: colore principale */
  --terra-dark: #8f3f1e;
  --terra-soft: #f6e3d8;
  --sage: #4f6f52;         /* verde salvia: conferme, fonti */
  --sage-soft: #e3ece0;
  --sun: #d99a2b;          /* senape: attenzione */
  --sun-soft: #fbf0d9;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .06), 0 6px 20px rgba(60, 40, 20, .06);

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--terra-dark); text-underline-offset: 3px; }
a:hover { color: var(--terra); }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 720px) { .container { padding: 0 28px; } }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 84px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-head); font-weight: 600; font-size: 1.32rem; line-height: 1.15;
}
.brand-mark {
  width: 64px; height: 64px; flex: none; object-fit: contain;
}
@media (max-width: 960px) {
  .header-inner { min-height: 72px; }
  .brand { font-size: 1.12rem; gap: 10px; }
  .brand-mark { width: 52px; height: 52px; }
}
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .78rem; color: var(--ink-soft); }

.main-nav ul, .top-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a, .top-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  text-decoration: none; color: var(--ink); font-size: 1rem; white-space: nowrap;
}
.top-nav a { font-size: .95rem; color: var(--ink-soft); }
.main-nav a:hover, .top-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.main-nav a[aria-current="page"], .top-nav a[aria-current="page"] { background: var(--terra-soft); color: var(--terra-dark); font-weight: 600; }

.nav-row { border-top: 1px solid var(--line); }
.nav-row .main-nav ul { padding: 6px 0; flex-wrap: wrap; margin-left: -12px; }

.header-search { position: relative; margin-left: auto; }
.header-search input {
  width: 240px; padding: 8px 12px 8px 36px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font: inherit; font-size: .95rem;
}
.header-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; color: var(--ink-soft); }

.nav-toggle {
  display: none; margin-left: auto;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .header-search, .top-nav, .nav-row { display: none; }
  .site-header.open { max-height: 100vh; overflow-y: auto; }
  .site-header.open .header-inner { flex-wrap: wrap; padding-bottom: 10px; }
  .site-header.open .header-search { display: block; width: 100%; order: 2; margin: 0; }
  .site-header.open .header-search input { width: 100%; padding-top: 12px; padding-bottom: 12px; }
  .site-header.open .nav-row { display: block; }
  .site-header.open .top-nav { display: block; width: 100%; order: 3; }
  .site-header.open .main-nav ul, .site-header.open .top-nav ul { flex-direction: column; margin: 0; }
  .site-header.open .main-nav a, .site-header.open .top-nav a { padding: 12px 14px; border-radius: 10px; font-size: 1.05rem; }
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  background: var(--terra); color: #fff; font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--terra-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr .9fr; } }

.eyebrow {
  display: inline-block; font-size: .9rem; font-weight: 600; letter-spacing: .02em;
  color: var(--sage); background: var(--sage-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--terra); }
.hero .slogan {
  font-family: var(--font-head); font-style: italic; font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  color: var(--ink-soft); margin: -4px 0 18px;
}
.footer-slogan { font-family: var(--font-head); font-style: italic; color: #f3d9c7; margin: -4px 0 10px; }
.hero .lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 36em; }

.big-search {
  margin-top: 26px; display: flex; gap: 8px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  padding: 6px; box-shadow: var(--shadow); max-width: 560px;
}
.big-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 10px 16px; border-radius: 999px;
}
.big-search input:focus { outline: none; }
.big-search:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.search-hints { margin-top: 12px; font-size: .95rem; color: var(--ink-soft); }
.search-hints a { margin-right: 6px; }

.hero-card {
  background: var(--paper); border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow); border: 1px solid var(--line); position: relative;
}
.hero-card .word-de { font-family: var(--font-head); font-size: 2rem; margin: 4px 0 0; }
.hero-card .word-pron { color: var(--ink-soft); font-size: 1rem; }
.hero-card .word-it { font-size: 1.15rem; margin: 10px 0; }
.hero-card .word-ex { font-style: italic; color: var(--ink-soft); border-left: 3px solid var(--terra-soft); padding-left: 12px; font-size: 1rem; }
.hero-card .label { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--terra); font-weight: 700; }

/* ---------- Sezioni ---------- */
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 28px; }
.section-head p { color: var(--ink-soft); }

/* Da dove comincio */
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .steps-list { grid-template-columns: 1fr 1fr; } }
.steps-list li {
  counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 18px 70px; position: relative;
}
.steps-list li::before {
  content: counter(step); position: absolute; left: 18px; top: 18px;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--terra-soft); color: var(--terra-dark); font-weight: 700; font-family: var(--font-head);
}
.steps-list strong { display: block; font-size: 1.08rem; }
.steps-list span { color: var(--ink-soft); font-size: 1rem; }

/* Categorie */
.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cat-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d9c8b2; color: var(--ink); }
.cat-card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--terra-soft); color: var(--terra-dark); margin-bottom: 8px;
}
.cat-card .icon svg { width: 24px; height: 24px; }
.cat-card h3 { margin: 0; }
.cat-card p { margin: 0; font-size: 1rem; color: var(--ink-soft); }
.cat-card .soon { font-size: .82rem; color: var(--ink-soft); margin-top: auto; padding-top: 8px; }
.cat-card.muted { background: transparent; border-style: dashed; }
.cat-card.muted .icon { background: var(--bg-soft); color: var(--ink-soft); }

/* Liste guide */
.guide-list { display: grid; gap: 12px; }
.guide-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; text-decoration: none; color: var(--ink);
}
a.guide-item:hover { border-color: #d9c8b2; box-shadow: var(--shadow); color: var(--ink); }
.guide-item h3 { margin: 0 0 4px; font-size: 1.12rem; }
.guide-item p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.guide-item .arrow { margin-left: auto; color: var(--terra); flex: none; align-self: center; }
.guide-item.draft { background: transparent; border-style: dashed; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: var(--bg-soft); color: var(--ink-soft); margin-bottom: 6px;
}
.tag-ready { background: var(--sage-soft); color: var(--sage); }

/* Promessa / valori */
.promise { display: grid; gap: 20px; }
@media (min-width: 800px) { .promise { grid-template-columns: repeat(3, 1fr); } }
.promise div { padding: 4px 0; }
.promise h3 { display: flex; align-items: center; gap: 10px; }
.promise h3 svg { width: 22px; color: var(--sage); flex: none; }
.promise p { color: var(--ink-soft); font-size: 1rem; }

/* Novità */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; }
.news-list time { flex: none; width: 110px; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Riquadri informativi ---------- */
.notice {
  border-radius: var(--radius); padding: 18px 20px; margin: 22px 0;
  display: flex; gap: 14px; align-items: flex-start; font-size: 1.02rem;
}
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }
.notice > div > p:first-of-type { margin-top: 0; }
.notice ul { margin: 6px 0 0; padding-left: 1.2em; }
.notice strong:first-child { display: block; }
.notice-info { background: var(--sage-soft); color: #2f4632; }
.notice-warn { background: var(--sun-soft); color: #6b4a0e; }
.notice-soft { background: var(--bg-soft); color: var(--ink); }

/* ---------- Pagina numeri utili ---------- */
.num-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.num-card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.num-card h3 { margin: 4px 0 6px; font-size: 1.12rem; }
.num-card p { margin: 0 0 6px; font-size: 1rem; color: var(--ink-soft); }
.num-card .num-value {
  font-family: var(--font-head); font-weight: 600; font-size: 1.7rem; line-height: 1.2;
  color: var(--terra-dark); margin: 0; white-space: nowrap;
}
.num-card .num-local { font-family: var(--font-body); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); padding: 8px 0; }
.num-urgent { border-left: 5px solid var(--terra); }
.num-urgent .num-value { font-size: 2.3rem; }
.num-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.num-actions:empty { display: none; }
.btn-small { padding: 8px 16px; font-size: .92rem; }
.btn svg { width: 16px; height: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .95rem;
  max-width: calc(100% - 32px); box-shadow: var(--shadow); transition: opacity .2s, transform .2s; z-index: 80;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Pagina categoria / generica ---------- */
.page-head { padding: 44px 0 20px; }
.page-head .lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.breadcrumb { font-size: .92rem; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-soft); }
.subsection { margin: 40px 0; }
.subsection > h2 { font-size: 1.45rem; display: flex; align-items: center; gap: 10px; }

/* ---------- Guida ---------- */
.guide-layout { display: grid; gap: 40px; padding-bottom: 60px; }
.guide-layout > * { min-width: 0; }
@media (min-width: 980px) { .guide-layout { grid-template-columns: 250px 1fr; } }
.toc {
  position: sticky; top: 156px; align-self: start;
  font-size: .95rem; display: none;
}
@media (min-width: 980px) { .toc { display: block; } }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--terra); text-decoration: underline; }

.article { max-width: 720px; }
.article h2 { margin-top: 44px; font-size: 1.6rem; scroll-margin-top: 156px; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin: 6px 0; }

.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.badge svg { width: 14px; height: 14px; }
.badge-date { background: var(--bg-soft); color: var(--ink-soft); }
.badge-official { background: var(--sage-soft); color: var(--sage); }
.badge-warn { background: var(--sun-soft); color: #7a5410; }

.in-breve {
  background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--terra);
  border-radius: var(--radius); padding: 20px 22px; font-size: 1.12rem;
}
.in-breve h2 { margin: 0 0 8px; font-size: 1.15rem; font-family: var(--font-body); font-weight: 700; color: var(--terra-dark); }

.checklist { list-style: none; padding-left: 0 !important; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px;
  border: 2px solid var(--sage); border-radius: 6px; background: var(--paper);
}

.procedure { list-style: none; padding-left: 0 !important; counter-reset: p; }
.procedure > li {
  counter-increment: p; position: relative; padding: 0 0 22px 56px; margin: 0 !important;
}
.procedure > li::before {
  content: counter(p); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%; background: var(--terra); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-family: var(--font-head);
}
.procedure > li::after {
  content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--line);
}
.procedure > li:last-child::after { display: none; }
.procedure strong { display: block; font-size: 1.08rem; }

.example {
  background: var(--bg-soft); border-radius: var(--radius); padding: 20px 22px;
}
.example p:last-child { margin: 0; }

.sources { list-style: none; padding-left: 0 !important; }
.sources li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.sources small { display: block; color: var(--ink-soft); }

/* Wortschatz */
.wortschatz {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; margin-top: 44px; box-shadow: var(--shadow);
}
.wortschatz h2 { margin-top: 0 !important; display: flex; align-items: center; gap: 10px; }
.wortschatz .intro { color: var(--ink-soft); font-size: 1rem; }
.table-wrap { overflow-x: auto; }
.wort-table { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 480px; }
.wort-table th {
  text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-soft); padding: 8px 10px; border-bottom: 2px solid var(--line);
}
.wort-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.wort-table tr:last-child td { border-bottom: 0; }
.wort-table .de { font-weight: 600; }
.wort-table .art { color: var(--terra-dark); font-weight: 400; }
.wort-table .pl { display: block; font-size: .85rem; color: var(--ink-soft); font-weight: 400; }
.pron { color: var(--sage); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .92rem; white-space: nowrap; }
.wortschatz .note { font-size: .92rem; color: var(--ink-soft); margin: 14px 0 0; }

.related { display: grid; gap: 10px; }

/* ---------- Dizionario ---------- */
.dict-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow);
}
.dict-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dict-controls input {
  flex: 1 1 260px; font: inherit; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
}
.dir-switch { display: inline-flex; background: var(--bg-soft); border-radius: 999px; padding: 4px; }
.dir-switch button {
  border: 0; background: transparent; font: inherit; font-size: .95rem; padding: 8px 14px; border-radius: 999px; cursor: pointer; color: var(--ink-soft);
}
.dir-switch button[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.dict-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-size: .95rem; }
.dict-filters label { font-weight: 600; color: var(--ink-soft); }
.dict-filters select {
  font: inherit; font-size: .95rem; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); max-width: 100%;
}
.dict-count { color: var(--ink-soft); margin-left: auto; }
.dict-more { justify-self: center; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 5px 14px;
  font: inherit; font-size: .9rem; cursor: pointer; color: var(--ink-soft);
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.dict-results { margin-top: 24px; display: grid; gap: 14px; }
.entry {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
}
.entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.entry-head .term { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; }
.entry-head .gram { font-size: .9rem; color: var(--ink-soft); }
.entry .translation { font-size: 1.12rem; margin: 6px 0; }
.entry .ctx { font-size: .82rem; font-weight: 600; background: var(--bg-soft); color: var(--ink-soft); padding: 2px 10px; border-radius: 999px; }
.entry .ex { font-size: 1rem; color: var(--ink-soft); border-left: 3px solid var(--terra-soft); padding-left: 12px; margin: 10px 0 0; }
.entry .ex i { color: var(--ink); }
.entry .links { margin-top: 10px; font-size: .95rem; }
.empty { text-align: center; color: var(--ink-soft); padding: 30px 10px; }

/* ---------- Ricerca ---------- */
.search-results { display: grid; gap: 12px; margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: #2f2925; color: #e9e0d4; padding: 48px 0 28px; margin-top: 40px; font-size: 1rem; }
.site-footer a { color: #f3d9c7; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--font-head); font-size: 1.1rem; margin: 0 0 10px; color: #fff; font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.footer-note { border-top: 1px solid #4a413b; margin-top: 32px; padding-top: 18px; font-size: .9rem; color: #bfb3a5; }

.small-note { font-size: .95rem; color: var(--ink-soft); margin-top: 10px; }
.guide-disclaimer { margin-top: 40px; font-size: .95rem; }
.cat-card .count { font-size: .85rem; font-weight: 600; color: var(--sage); margin-top: auto; padding-top: 8px; }

/* Risorse: checklist stampabili, tabelle, numeri */
.data-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.data-table th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.data-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table .num { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--terra-dark); white-space: nowrap; }
.print-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin: 18px 0; }
.print-card h3 { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.print-card .btn { padding: 8px 16px; font-size: .9rem; }
.abbr-grid { display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.abbr-grid div { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.abbr-grid b { color: var(--terra-dark); margin-right: 6px; }

@media print {
  .site-header, .site-footer, .no-print, .toc, .skip-link { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .print-card { border: 0; padding: 0; break-inside: avoid; }
  .print-one #contenuto > :not(.article), .print-one .article > :not(.print-zone),
  .print-one .print-zone > :not(.printing) { display: none !important; }
  .checklist li::before { border-color: #333; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- Pagine legali ---------- */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0 0; font-size: .9rem; }
.legal h3 { margin-top: 26px; font-size: 1.1rem; }
.translation-block { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--line); }
/* Segnaposto da compilare: ben visibili, così non vengono pubblicati per errore */
mark.da-completare { background: #ffe58a; color: #5a4300; padding: 1px 6px; border-radius: 4px; font-weight: 600; }

/* Impressum: informazioni obbligatorie, mostrate in formato ridotto */
.legal-compact .page-head { padding: 24px 0 8px; }
.legal-compact h1 { font-size: 1.35rem; margin-bottom: 4px; }
.legal-compact .lead { font-size: .85rem; }
.legal-compact .breadcrumb { font-size: .8rem; }
.legal-compact .article { font-size: .8rem; line-height: 1.5; max-width: 640px; }
.legal-compact .article h2 { font-size: .95rem; margin: 18px 0 4px; font-family: var(--font-body); font-weight: 700; }
.legal-compact .article h3 { font-size: .85rem; margin: 12px 0 2px; font-family: var(--font-body); font-weight: 700; }
.legal-compact .article p { margin: 0 0 6px; }
.legal-compact .small-note { font-size: .75rem; }
.legal-compact .translation-block { margin-top: 24px; padding-top: 12px; border-top-width: 1px; }

/* ---------- Colonne pubblicitarie laterali ---------- */
/* Visibili solo quando c'è spazio ai lati del contenuto (1120 px + 2 × 224 px) */
.ad-rail { display: none; }
@media (min-width: 1580px) and (min-height: 800px) {
  .ad-rail {
    display: block; position: fixed; top: 170px; width: 200px; z-index: 10;
    transition: opacity .2s;
  }
  .ad-rail-sinistra { left: calc((100vw - var(--max)) / 2 - 224px); }
  .ad-rail-destra { right: calc((100vw - var(--max)) / 2 - 224px); }
  .ad-rail-nascosta { opacity: 0; pointer-events: none; }
}
.ad-label { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; text-align: center; }
.ad-placeholder {
  width: 200px; height: 600px; border: 2px dashed var(--line); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; color: var(--ink-soft); font-size: .9rem; background: var(--bg-soft);
}
@media print { .ad-rail { display: none !important; } }

/* Piccoli aiuti */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
