/* dgpaci.org: solo font di sistema, nessuna risorsa esterna. */
:root {
  --bg: #fbfaf7;
  --text: #22251f;
  --muted: #6b6f66;
  --accent: #2d7a4b;
  --accent-soft: #e6f1ea;
  --rule: #e4e2dc;
  --card: #ffffff;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161815;
    --text: #e7e6e1;
    --muted: #9da196;
    --accent: #6cc28f;
    --accent-soft: #1f2d24;
    --rule: #2c2f2a;
    --card: #1d201c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0 auto;
  max-width: 44rem;
  padding: 0 1rem;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.7 var(--serif);
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, .brand, nav, .kicker, .subtitle, .card, .stages, .pager, .site-footer {
  font-family: var(--sans);
}
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; margin: 2.5rem 0 0.75rem; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--accent); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: 0.5rem; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding: 1.5rem 0 1rem; border-bottom: 1px solid var(--rule);
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent); }
nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.95rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }

main { padding: 2rem 0 3rem; }
.hero h1 { font-size: 2.4rem; }
.hero p:first-of-type { font-size: 1.2rem; }
.avatar {
  float: right; width: 10rem; height: 10rem; margin: 0 0 1rem 1.5rem;
  border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-soft);
}
@media (max-width: 36rem) {
  .avatar { float: none; display: block; width: 7.5rem; height: 7.5rem; margin: 0 0 1.25rem; }
}
.focus {
  font-family: var(--sans); font-size: 0.9rem; color: var(--muted);
  letter-spacing: 0.02em; margin-top: 1.5rem;
}
.page-head { margin-bottom: 1.5rem; }
.subtitle { color: var(--muted); font-size: 1.1rem; margin: 0; }
.kicker { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.25rem; }
.kicker a { color: inherit; }

.cards { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: 10px;
  padding: 0.9rem 1.1rem;
}
.card a { text-decoration: none; font-size: 1.05rem; }
.card p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

.days { padding-left: 1.25rem; font-family: var(--sans); font-size: 0.95rem; }
.stages { list-style: none; padding: 0; border-top: 1px solid var(--rule); }
.stages li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--rule);
}
.stages a { text-decoration: none; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.stage-day { font-weight: 700; min-width: 3.5rem; }
.stage-route { color: var(--text); }
.stage-date { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }

.lesson {
  margin: 2rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 10px 10px 0; font-style: italic;
}
.lesson p { margin: 0; }

.pager { display: flex; justify-content: space-between; margin-top: 2.5rem; font-size: 0.95rem; }
.pager a { text-decoration: none; }
.back {
  display: inline-block; padding: 0.45rem 0.9rem; border: 1px solid var(--rule);
  border-radius: 999px; background: var(--card);
}
.back:hover { border-color: var(--accent); }
.card .meta { font-size: 0.85rem; margin: 0 0 0.15rem; }
.empty { color: var(--muted); font-style: italic; }
ol li { margin-bottom: 0.75rem; }

.site-footer {
  border-top: 1px solid var(--rule); padding: 1.5rem 0 2.5rem; color: var(--muted);
  font-size: 0.9rem; text-align: center;
}
.site-footer p { margin: 0.35rem 0; }
.motto { font-family: var(--serif); font-style: italic; font-size: 1rem; }
.small { font-size: 0.8rem; }
