/* Paidema: identità visiva. Palette "lavagna e gesso", titoli Fraunces, testo Inter. */
@import url("/assets/fonts/fraunces.css");
:root {
  /* palette */
  --board: #1F4D3B;   /* verde lavagna: superfici scure, CTA, link */
  --deep: #16382B;    /* verde profondo: header, footer */
  --mid: #3D6B57;     /* verde medio: testo secondario, eyebrow */
  --sage: #9DBFAE;    /* salvia: bordi, divisori */
  --gesso: #F5C543;   /* giallo gesso: evidenziatore, badge, accento su scuro */
  --ocra: #9A6B00;    /* ocra: testo giallo leggibile su chiaro (solo ≥18px o bold) */
  --matita: #C84E2B;  /* rosso matita: richiami, errori, correzioni */
  --ink: #1B2B26;     /* testo */
  --paper: #FFFFFF;   /* superfici */
  --carta: #FAF6EE;   /* sfondo pagina, color carta */
  /* alias compatibili con i componenti esistenti */
  --brand: var(--board); --brand-soft: var(--gesso); --ocean: var(--deep); --ocean-2: var(--mid); --sky: var(--sage); --sand: var(--carta);
  --muted: rgb(27 43 38 / .72);
  --line: rgb(31 77 59 / .22);
  --line-soft: rgb(31 77 59 / .12);
  --sky-tint: rgb(157 191 174 / .18);
  --brand-tint: rgb(245 197 67 / .32);
  --on-dark: rgb(255 255 255 / .82);
  --radius: 12px; --radius-s: 8px;
  --container: 1200px; --gutter: 24px;
  --font-display: Fraunces, Georgia, "Times New Roman", serif;
  --font-body: Inter, system-ui, "Segoe UI", Arial, sans-serif;
  font-family: var(--font-body);
  color: var(--ink); background: var(--paper);
  font-synthesis: none; -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.55; }
h1, h2, h3, h4, p, ul, ol { margin-top: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0; font-optical-sizing: auto; }
h1 { font-size: 56px; line-height: 1.08; margin-bottom: 20px; }
h2 { font-size: 40px; line-height: 1.12; margin-bottom: 20px; }
h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; font-weight: 600; margin-bottom: 12px; }
p { color: var(--muted); }
small, .small { font-size: 14px; }
a { color: var(--board); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--mid); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:focus-visible { outline: 2px solid var(--gesso); outline-offset: 3px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
/* Titolo a due righe: prima riga inchiostro, seconda con evidenziatore giallo (tratto del brand) */
.t2 .l1, .t2 .l2 { display: block; }
.t2 .l1 { color: var(--ink); }
.t2 .l2 { color: var(--board); }
.t2 .l2, .hl { background: linear-gradient(transparent 62%, var(--gesso) 62%, var(--gesso) 92%, transparent 92%); display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .06em; }
.t2 .l2 { display: inline; }
.dark .t2 .l1 { color: #fff; }
.dark .t2 .l2 { color: #fff; background: linear-gradient(transparent 62%, rgb(245 197 67 / .55) 62%, rgb(245 197 67 / .55) 92%, transparent 92%); }
/* Bottoni */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; transition: background-color .18s, color .18s, border-color .18s; }
.btn-primary { background: var(--board); color: #fff; border-color: var(--board); }
.btn-primary:hover { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--board); border-color: var(--board); }
.btn-secondary:hover { background: var(--sky-tint); color: var(--board); }
.btn-gesso { background: var(--gesso); color: var(--ink); border-color: var(--gesso); }
.btn-gesso:hover { background: #ecb92f; color: var(--ink); }
.dark .btn-secondary { color: #fff; border-color: rgb(255 255 255 / .7); }
.dark .btn-secondary:hover { background: rgb(255 255 255 / .1); color: #fff; }
.btn-ghost { background: transparent; color: var(--board); border-color: transparent; padding-inline: 10px; }
.btn-ghost:hover { color: var(--mid); }
/* Marchio */
.wordmark { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -.01em; line-height: 1; }
.wordmark b { font-weight: 600; color: #fff; }
.wordmark .wm-mark, .wm-mark { width: 28px; height: 28px; border-radius: 7px; background: url("/assets/logo-mark.svg") center/contain no-repeat; display: inline-block; }
.wordmark .wm-tag, .wm-tag { font-family: var(--font-body); font-size: 11px; font-weight: 600; border: 1px solid rgb(255 255 255 / .5); border-radius: 999px; padding: 2px 8px; margin-left: 6px; letter-spacing: .08em; }
@media (max-width: 720px) {
  h1 { font-size: 36px; line-height: 1.1; }
  h2 { font-size: 30px; }
  h3 { font-size: 21px; }
}
