/* IBM Plex self-hostato (stessi file del gestionale, nessun terzo) */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('./fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('./fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Serif'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('./fonts/ibm-plex-serif-latin-600-normal.woff2') format('woff2'); }

:root {
  /* colori dal design system Linfa (apps/web/.../tokens/colors.css) */
  --brand: #2f5d43;          /* green-600, brand primary */
  --brand-hover: #234a33;    /* green-700 */
  --brand-strong: #183924;   /* green-800, colore della foglia */
  --brand-soft: #eef3ee;     /* green-50 */
  --text: #1b241e;           /* ink-900 */
  --text-secondary: #3a443d; /* ink-700 */
  --muted: #66705f;          /* ink-500 */
  --text-on-brand: #eef3ee;
  --bg: #faf8f3;             /* sand-50, off-white caldo */
  --card: #ffffff;
  --line: #e3ded4;           /* stone-200, hairline */
  --error: #bf3b34;          /* danger-600 */
  --radius: 12px;
  --maxw: 640px;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); line-height: 1.5;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 24px 16px 64px; }
header.brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap;
}
header.brand .logo { height: 46px; width: auto; display: block; }
header.brand .lockup { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
header.brand .word {
  font-family: var(--font-serif); font-weight: 600; font-size: 32px;
  color: var(--brand-strong); line-height: 1;
}
header.brand .tag { color: var(--muted); font-weight: 500; font-size: 17px; }
header.brand .azienda { font-weight: 600; font-size: 17px; color: var(--brand); }
.progress { margin: 12px 0 20px; }
.progress .bar { height: 8px; background: var(--brand-soft); border-radius: 999px; overflow: hidden; }
.progress .bar > i { display: block; height: 100%; background: var(--brand); width: 0; transition: width .25s ease; }
.progress .label { font-size: 13px; color: var(--muted); margin-top: 6px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h2 { margin: 0 0 4px; font-size: 19px; font-weight: 600; color: var(--text); }
.card .sub { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--text-secondary); }
.field input, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; background: #fff; color: var(--text);
}
.field input:focus, .field select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.field.invalid input, .field.invalid select { border-color: var(--error); }
.field .err { display: none; color: var(--error); font-size: 12px; margin-top: 4px; }
.field.invalid .err { display: block; }
.field.check { display: flex; align-items: flex-start; gap: 8px; }
.field.check input { width: auto; margin-top: 3px; accent-color: var(--brand); }
.row-group { border: 1px dashed var(--line); border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.row-group .row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.btn { font: inherit; border: 0; border-radius: 8px; padding: 11px 18px; cursor: pointer; font-weight: 600; }
.btn.primary { background: var(--brand); color: var(--text-on-brand); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.ghost { background: transparent; color: var(--brand); border: 1px solid var(--line); }
.btn.link { background: none; color: var(--brand); padding: 4px 0; text-decoration: underline; }
.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.thanks { text-align: center; padding: 40px 16px; }
.thanks .leaf-big { height: 72px; width: auto; margin: 0 auto 16px; display: block; }
.thanks h2 { font-family: var(--font-serif); font-weight: 600; color: var(--brand-strong); }
