/* Colori, caratteri e misure di Contanotti. Barlow: licenza SIL Open Font (assets/fonts/LICENSE-Barlow.txt). */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-semi-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  --paper: #f3f5f2;
  --card: #ffffff;
  --ink: #17211f;
  --ink-2: #4f5d59;
  --line: #dce2dd;
  --line-2: #c9d1cb;
  --spruce: #1e4d44;
  --spruce-2: #2a6558;
  --spruce-tint: #e3eeea;
  --amber: #eaa83c;     /* la tacca diagonale del marchio */
  --ok: #2b7a4b;
  --ok-bg: #e5f2ea;
  --warn: #9a5f08;
  --warn-bg: #fbf0dc;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;

  /* nomi storici usati dal motore dei grafici e dalle pagine di accesso */
  --color-fg: var(--ink);
  --color-fg-muted: var(--ink-2);
  --color-bg: #ffffff;
  --color-panel: var(--paper);
  --color-border-line: var(--line);
  --color-ok: var(--ok);
  --color-warn: var(--warn);
  --color-bad: var(--bad);
  --font-anthropic-sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-anthropic-serif: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --cds-font-size-caption: 13px;
  --cds-font-size-body: 16px;
  --cds-font-size-heading: 18px;
  --cds-font-size-title: 28px;
  --cds-font-weight-medium: 600;
  --cds-gap-xs: 4px;
  --cds-gap-sm: 8px;
  --cds-gap-md: 12px;
  --cds-gap-lg: 20px;
  --cds-gap-xl: 28px;
  --cds-pad-sm: 8px;
  --cds-pad-md: 14px;
  --cds-pad-lg: 18px;
  --cds-radius: 12px;
  --cds-text-secondary: var(--ink-2);
  --cds-chart-grid: #e6ebe7;
  --cds-chart-axis: #b9c3bc;
  --cds-chart-reference: #7b8a83;
  --cds-chart-muted: #aab6af;
  --cds-chart-status-critical: #b3261e;
  --cds-surface-popover: #ffffff;
  --cds-border: #c9d1cb;
  --cds-shadow-popover: 0 6px 18px rgba(23, 33, 31, .16);

  /* un colore fisso per ogni camera */
  --c-salvia: #58a06a;
  --c-ortensia: #3e6fd0;
  --c-cannella: #b5472a;
  --c-vaniglia: #b8860b;
  --c-alpi: #13929f;
  --c-valtellina: #9e2f6e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-anthropic-sans); background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
.dash-select { font: inherit; font-size: 16px; min-height: 44px; padding: 8px 34px 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background-color: #fff; color: inherit; max-width: 100%; }
.dash-skeleton { background: #e7ece8; border-radius: 6px; color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--spruce-2); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
