/* Basi comuni della home e della pagina prezzi: font, colori del marchio, reset, entrate. */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 100 700; font-display: swap; src: url(../fonts/plex-latin.woff2) format('woff2'); 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: 'IBM Plex Sans'; font-weight: 100 700; font-display: swap; src: url(../fonts/plex-latin-ext.woff2) format('woff2'); 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 200 800; font-display: swap; src: url(../fonts/bricolage-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2013-2014, U+2018-201E, U+20AC; }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 200 800; font-display: swap; src: url(../fonts/bricolage-latin-ext.woff2) format('woff2'); unicode-range: U+0100-024F; }
@font-face { font-family: 'Public Sans'; font-weight: 100 900; font-display: swap; src: url(../fonts/publicsans-latin.woff2) format('woff2'); }

:root {
  --navy: #0B3D66; --deep: #062A47; --blue: #1C5C96; --gold: #E9B949; --paper: #F4F2EB; --sand: #E6E1D2; --white: #FBFAF6;
  --soft: #4F667C;
  --v: #2E7D5B; --p: #1C5C96; --d: #94600F; --f: #B23A3A;   /* i quattro livelli: verificato, provato, dichiarato, da fare */
  --head: 'Bricolage Grotesque', 'Public Sans', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --m: clamp(16px, 2.4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img, video, svg { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Stati dei controlli, come nell'app (frammenti data-ui) */
.st { display: inline-block; padding: .28em .6em; border-radius: 6px; font: 700 .78em/1 var(--body); letter-spacing: .02em; color: #fff; white-space: nowrap; }
.st.v { background: var(--v); } .st.p { background: var(--p); } .st.d { background: var(--d); } .st.f { background: var(--f); }

/* Entrate: titolo, testo, figura, una dopo l'altra. Senza script il contenuto resta visibile. */
.js [data-in] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-in].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-in] { transform: none; transition: opacity .3s linear; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Barra delle varianti: solo per confrontarle in locale, non fa parte del design */
