/* Studio Rota — design tokens
   Generato da design_system/tokens/*.css — non modificare a mano se rigeneri il DS. */

:root {
  /* ============================================================
     BASE PALETTE
     ============================================================ */

  /* Ink — deep navy. The brand's anchor: sober, trustworthy. */
  --navy-950: #04111F;
  --navy-900: #061A30;
  --navy-800: #0B2440; /* primary ink / brand dark */
  --navy-700: #123257;
  --navy-600: #1B406E;

  /* Blue — the action accent. Confident, contemporary. */
  --blue-700: #1E47C4;
  --blue-600: #2B5CE6; /* primary action */
  --blue-500: #4571F0;
  --blue-200: #C3D2FB;
  --blue-100: #DDE7FE;
  --blue-50:  #EEF3FF;

  /* Green — growth. Tied to credit / business-plan work + success. */
  --green-700: #15724A;
  --green-600: #1B8A5A;
  --green-100: #D4F0E2;
  --green-50:  #E9F8F0;

  /* Sand — warm paper. Page backgrounds, soft sections. */
  --sand-50:  #FAF9F5;
  --sand-100: #F3F1EA;
  --sand-200: #E8E4D8;

  /* Slate — cool neutral ramp. Text, borders, surfaces. */
  --slate-50:  #F5F7FA;
  --slate-100: #E9EDF3;
  --slate-200: #D7DEE8;
  --slate-300: #B9C3D1;
  --slate-400: #8C97A8;
  --slate-500: #677083;
  --slate-600: #4C5563;
  --slate-700: #353C49;
  --slate-800: #222831;
  --slate-900: #12161C;

  /* Signal */
  --amber-600: #C8862B;
  --amber-100: #F7E8CC;
  --red-600:   #D64545;
  --red-100:   #F8DADA;
  --white:     #FFFFFF;

  /* ============================================================
     SEMANTIC ALIASES — reference these in components
     ============================================================ */

  /* Surfaces & backgrounds */
  --color-bg:         var(--sand-50);   /* default page */
  --color-bg-alt:     var(--sand-100);  /* alternating section */
  --color-bg-ink:     var(--navy-800);  /* dark section */
  --color-surface:    var(--white);     /* card */
  --color-surface-2:  var(--slate-50);  /* nested / muted card */

  /* Brand */
  --color-brand:       var(--blue-600);
  --color-brand-hover: var(--blue-700);
  --color-brand-ink:   var(--navy-800);
  --color-accent:      var(--green-600);

  /* Text */
  --text-strong:   var(--navy-800);
  --text-body:     var(--slate-700);
  --text-muted:    var(--slate-500);
  --text-on-brand: var(--white);
  --text-on-ink:   var(--sand-50);
  --text-link:     var(--blue-600);

  /* Borders & lines */
  --border-subtle: var(--slate-200);
  --border-strong: var(--slate-300);
  --border-brand:  var(--blue-600);
  --border-ink:    rgba(255, 255, 255, 0.14);

  /* Focus */
  --focus-ring: var(--blue-500);

  /* Status */
  --success:    var(--green-600);
  --success-bg: var(--green-50);
  --warning:    var(--amber-600);
  --warning-bg: var(--amber-100);
  --danger:     var(--red-600);
  --danger-bg:  var(--red-100);
}

:root {
  /* ============================================================
     FONT FAMILIES
     ============================================================ */
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-sans:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Semantic */
  --display-font: var(--font-display);
  --body-font:    var(--font-sans);
  --data-font:    var(--font-mono);

  /* ============================================================
     WEIGHTS
     ============================================================ */
  --fw-regular:   400; /* @kind font */
  --fw-medium:    500; /* @kind font */
  --fw-semibold:  600; /* @kind font */
  --fw-bold:      700; /* @kind font */
  --fw-extrabold: 800; /* @kind font */

  /* ============================================================
     TYPE SCALE  (root = 16px)
     ============================================================ */
  --text-xs:   0.75rem;   /* 12 — captions, legal */
  --text-sm:   0.875rem;  /* 14 — labels, meta */
  --text-base: 1rem;      /* 16 — body */
  --text-md:   1.125rem;  /* 18 — lead body */
  --text-lg:   1.375rem;  /* 22 — card titles */
  --text-xl:   1.75rem;   /* 28 — section sub-heads */
  --text-2xl:  2.25rem;   /* 36 — section heads */
  --text-3xl:  3rem;      /* 48 — page titles */
  --text-4xl:  3.75rem;   /* 60 — hero */
  --text-5xl:  4.75rem;   /* 76 — display hero */

  /* ============================================================
     LINE HEIGHT
     ============================================================ */
  --leading-tight:   1.05;  /* display */
  --leading-snug:    1.2;   /* headings */
  --leading-normal:  1.5;   /* body */
  --leading-relaxed: 1.65;  /* long-form */

  /* ============================================================
     LETTER SPACING
     ============================================================ */
  --tracking-tight:  -0.02em; /* large display */
  --tracking-snug:   -0.01em; /* headings */
  --tracking-normal: 0;
  --tracking-wide:   0.04em;
  --tracking-caps:   0.12em;  /* uppercase eyebrows / labels */
}

:root {
  /* ============================================================
     SPACING SCALE  (4px base)
     ============================================================ */
  --space-0:  0;
  --space-1:  0.25rem; /*  4 */
  --space-2:  0.5rem;  /*  8 */
  --space-3:  0.75rem; /* 12 */
  --space-4:  1rem;    /* 16 */
  --space-5:  1.5rem;  /* 24 */
  --space-6:  2rem;    /* 32 */
  --space-7:  3rem;    /* 48 */
  --space-8:  4rem;    /* 64 */
  --space-9:  6rem;    /* 96 */
  --space-10: 8rem;    /* 128 */

  /* ============================================================
     LAYOUT
     ============================================================ */
  --container:        1200px; /* default max content width */
  --container-narrow: 760px;  /* prose / forms */
  --container-wide:   1380px; /* full-bleed feature rows */
  --gutter:           1.5rem; /* page side padding (mobile) */
  --gutter-lg:        2.5rem; /* page side padding (desktop) */
  --section-y:        6rem;   /* vertical rhythm between sections */
}

:root {
  /* ============================================================
     CORNER RADII
     Studio Rota uses soft, confident rounding — never pills on
     containers, never sharp corners. Pills reserved for chips/avatars.
     ============================================================ */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius-md:   12px;  /* default for cards, inputs, buttons */
  --radius-lg:   18px;  /* feature cards, media */
  --radius-xl:   28px;  /* hero panels */
  --radius-pill: 999px; /* chips, avatars, icon buttons */

  /* ============================================================
     BORDERS
     ============================================================ */
  --border-width:       1px;
  --border-width-thick: 2px;

  /* ============================================================
     ELEVATION — soft, low, navy-tinted. Never harsh black shadow.
     ============================================================ */
  --shadow-xs: 0 1px 2px rgba(11, 36, 64, 0.06);
  --shadow-sm: 0 2px 8px rgba(11, 36, 64, 0.07);
  --shadow-md: 0 10px 28px rgba(11, 36, 64, 0.10);
  --shadow-lg: 0 22px 50px rgba(11, 36, 64, 0.13);
  --shadow-ring: 0 0 0 4px rgba(43, 92, 230, 0.18); /* focus / active halo */
}

:root {
  /* ============================================================
     MOTION
     Studio Rota motion is calm and decisive: short, eased fades
     and rises. No bounce on UI; a gentle spring only for playful
     accents (e.g. counters). Respect prefers-reduced-motion.
     ============================================================ */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);  /* @kind other */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);  /* @kind other */
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1); /* @kind other */

  --dur-fast: 120ms; /* @kind other */ /* hover / press */
  --dur-base: 220ms; /* @kind other */ /* most transitions */
  --dur-slow: 420ms; /* @kind other */ /* entrances */
}

/* ============================================================
   ROSA — aggiunto nel restyling (pannello "Le vostre domande")
   ============================================================ */
:root {
  --rose-50:  #FBE9EF; /* bg pannello */
  --rose-100: #F5D3DF; /* border */
  --rose-600: #C94573; /* eyebrow */
}
