/* Stile condiviso del sito. Tavola tecnica: neutri verde-grigio, un solo accento petrolio, titoli in grottesco espressivo, testo in Plex. */
:root {
  --bg: #F3F5F4;
  --surface: #FFFFFF;
  --ink: #17201F;
  --muted: #5A6866;
  --line: #D5DDDB;
  --accent: #0F6E6A;
  --accent-soft: #DCEFED;
  --built: #2F6B2B;
  --built-soft: #E3F0DE;
  --warn: #8A4B0F;
  --warn-soft: #F7EAD9;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111716; --surface: #1A2221; --ink: #E6ECEA; --muted: #9AA9A6; --line: #2E3A38;
    --accent: #5CC2B9; --accent-soft: #173533; --built: #93CD86; --built-soft: #1E3220;
    --warn: #E8B07A; --warn-soft: #3A2A1A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111716; --surface: #1A2221; --ink: #E6ECEA; --muted: #9AA9A6; --line: #2E3A38;
  --accent: #5CC2B9; --accent-soft: #173533; --built: #93CD86; --built-soft: #1E3220;
  --warn: #E8B07A; --warn-soft: #3A2A1A; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.55; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.site-nav { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-nav .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; padding-block: 14px; }
.site-nav .brand { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.site-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; font-size: 14px; }
.site-nav a.link { color: var(--muted); text-decoration: none; }
.site-nav a.link:hover { color: var(--ink); }
.site-nav a.link[aria-current="page"] { color: var(--ink); font-weight: 600; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.pill.built { background: var(--built-soft); color: var(--built); }
.pill.wip { background: var(--accent-soft); color: var(--accent); }
.pill.plain { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.pill.optional { background: var(--warn-soft); color: var(--warn); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

.site-foot { border-top: 1px solid var(--line); margin-top: 56px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 20px 32px; font-size: 13px; color: var(--muted); }

@media (max-width: 480px) { .wrap { padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Elementi condivisi tra le pagine: bottoni, intestazioni di sezione, schede delle risorse */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 8px; text-decoration: none; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.res { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px 18px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; min-width: 0; }
.res .tipo { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.res h3 { font-size: 18px; font-weight: 500; line-height: 1.25; }
.res p { font-size: 14px; color: var(--muted); }
.res .foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.res .meta { font-size: 12px; color: var(--muted); }
.res .from { font-size: 12px; }
.pill.ai { background: var(--accent-soft); color: var(--accent); }
.dl-msg { font-size: 12px; color: var(--warn); flex-basis: 100%; }
.cta-band { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; }
.cta-band h2 { font-size: 22px; }
.cta-band p { color: var(--muted); max-width: 52ch; }
