/* ==========================================================================
   Assinvest — base.css
   Design token, reset e tipografia.
   Palette: colori ufficiali del logo + accento oro a contrasto.
   ========================================================================== */

:root {
  /* --- Brand (estratti dal logo SVG ufficiale) --- */
  --blu-900: #1a1b57;   /* scurito, per profondità e sfondi pieni */
  --blu-700: #2d2e83;   /* PRIMARIO — dal logo */
  --blu-500: #1d71b8;   /* SECONDARIO — dal logo */
  --blu-300: #6ea9da;
  --blu-100: #d8e6f5;
  --blu-50:  #eef4fb;

  /* --- Accento a contrasto (complementare del blu) --- */
  --oro-700: #b87a08;
  --oro-600: #d9910e;
  --oro-500: #f5a623;   /* ACCENTO — CTA, dettagli, evidenziazioni */
  --oro-200: #fbdfae;
  --oro-50:  #fdf5e7;

  /* --- Neutri --- */
  --ink:     #14152e;   /* testo principale */
  --muted:   #5b5c75;   /* testo secondario */
  --grigio:  #706f6f;   /* grigio del logo */
  --linea:   #e3e7f0;
  --bg:      #ffffff;
  --bg-alt:  #f6f8fc;

  /* --- Tipografia --- */
  --font-title: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-body:  "Inter", system-ui, -apple-system, sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:   1.1875rem;
  --fs-xl:   1.375rem;
  --fs-2xl:  clamp(1.5rem,  1.2rem + 1.4vw, 2rem);
  --fs-3xl:  clamp(1.875rem, 1.4rem + 2.2vw, 2.75rem);
  --fs-4xl:  clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem);

  /* --- Spaziature --- */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  /* --- Forma --- */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 22px;  --r-full: 999px;

  /* --- Ombre --- */
  --sh-sm: 0 1px 2px rgba(20, 21, 46, .06), 0 2px 8px rgba(20, 21, 46, .04);
  --sh-md: 0 4px 12px rgba(20, 21, 46, .07), 0 12px 32px rgba(20, 21, 46, .06);
  --sh-lg: 0 8px 24px rgba(20, 21, 46, .09), 0 24px 56px rgba(20, 21, 46, .10);
  --sh-blu: 0 12px 32px rgba(45, 46, 131, .22);
  --sh-oro: 0 10px 28px rgba(245, 166, 35, .32);

  /* --- Transizioni --- */
  --t-fast: 160ms cubic-bezier(.4, 0, .2, 1);
  --t-base: 280ms cubic-bezier(.4, 0, .2, 1);
  --t-slow: 520ms cubic-bezier(.22, 1, .36, 1);
  --t-bounce: 560ms cubic-bezier(.34, 1.4, .64, 1);

  --wrap: 1180px;
  --header-h: 84px;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-5));
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

/* --- Tipografia --- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--blu-900);
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-xl); letter-spacing: -0.015em; }
h4 { font-size: var(--fs-lg); letter-spacing: -0.01em; }

p { text-wrap: pretty; }
p + p { margin-top: var(--sp-4); }

strong { font-weight: 650; color: var(--blu-900); }

a {
  color: var(--blu-500);
  text-decoration-color: color-mix(in srgb, var(--blu-500) 35%, transparent);
  text-underline-offset: 3px;
  transition: color var(--t-fast), text-decoration-color var(--t-fast);
}
a:hover { color: var(--blu-700); text-decoration-color: currentColor; }

ul, ol { padding-left: 1.25rem; }
li + li { margin-top: var(--sp-2); }

/* --- Focus visibile (accessibilità) --- */
:focus-visible {
  outline: 3px solid var(--oro-500);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

/* --- Selezione testo --- */
::selection { background: var(--oro-200); color: var(--blu-900); }

/* --- Utility --- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: var(--sp-4); z-index: 999;
  background: var(--blu-700); color: #fff;
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
  transition: top var(--t-base);
}
.skip-link:focus { top: var(--sp-4); color: #fff; }

.text-accent { color: var(--oro-500); }
.text-muted  { color: var(--muted); }
