/* OrientaMORE: UniMORE visual identity (Brandbook), web version.
   Between the SPP site (white, Granato only for actions) and the brandbook
   (Granato and the Granato→Rosso gradient as large surfaces): Crema pages,
   white cards, a Granato hero on the entrance, Granato user messages. */

/* ── Fonts ─────────────────────────────────────────────────────────────── */

/* Inter (SIL Open Font License, fonts/LICENSE-Inter.txt): the brandbook's
   font for digital use. Self-hosted, variable weight. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.8e433c0592f7.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.ad4eb06671be.woff2") format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── Tokens ────────────────────────────────────────────────────────────── */

:root {
  /* Palette primaria UniMORE */
  --granato: #93021f;
  --rosso: #d14124;
  --crema: #f4ebe4;
  --grigio: #63666a;
  --nero: #000;
  --bianco: #fff;

  /* Derived */
  --granato-dark: #6e0117;
  --granato-tint: #f6e7e9;          /* Granato at ~8% on white: hovers, chips */
  --crema-soft: #faf6f2;            /* page background */
  --crema-deep: #ecdfd5;            /* Crema hover */
  --text: #1b1b1d;
  --text-muted: var(--grigio);
  --text-on-dark: #fff;
  --text-on-dark-muted: rgb(255 255 255 / 82%);
  --line: #e7e2de;
  --line-strong: #cfc8c2;
  --ok: #1f7a4a;
  --gradient: linear-gradient(90deg, var(--granato), var(--rosso) 45%);
  --gradient-hero: linear-gradient(135deg, var(--granato) 0%, var(--granato) 55%, var(--rosso) 130%);

  --font: 'Inter', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgb(27 27 29 / 4%), 0 4px 16px rgb(27 27 29 / 5%);
  --shadow-raised: 0 2px 4px rgb(27 27 29 / 5%), 0 12px 32px rgb(27 27 29 / 8%);
  --focus-ring: 0 0 0 3px rgb(147 2 31 / 14%);

  --space-xs: .25rem;
  --space-sm: .5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --gutter: 1.25rem;
  --page-width: 1120px;
  --header-height: 4.25rem;
}

/* ── Base ──────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--crema-soft);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 .75rem; }
h1 { font-size: 1.875rem; font-weight: 650; }
h2 { font-size: 1.25rem; font-weight: 600; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 .75rem; }

a { color: var(--granato); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--granato-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--granato); outline-offset: 2px; border-radius: 2px; }

::selection { background: var(--crema); color: var(--nero); }

@media (max-width: 760px) {
  h1 { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; } /* !important: user preference wins */
}
