/*
 * TestVibe — design tokens (tutte le pagine)
 * Versione: homepage r8 statica (tv-build 2026-11-11-r8) · fonte dei valori: TestVibe Home r8.dc.html
 *
 * Ordine di caricamento: design-tokens.css → components.css → CSS della pagina.
 * Tema: :root = chiaro; [data-theme="dark"] su <html> = scuro (home.js legge localStorage "testvibe-theme": light | dark | auto).
 * Gli url() sono relativi a questo file (cartella /assets/). Nessun url() dentro le variabili:
 * le immagini a onde sono in components.css (.tv-wave-*), così il percorso non dipende dalla pagina.
 */

/* ---------- Font: Albert Sans variabile 400–700, file locali (nessuna richiesta a Google Fonts) ---------- */
@font-face {
  font-family: 'Albert Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("albert-sans-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: 'Albert Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("albert-sans-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;
}

/* ---------- Tema chiaro (default) ---------- */
:root {
  color-scheme: light;

  /* superfici e testo */
  --tv-bg: #FFFFFF;
  --tv-fg: #1F1F1F;
  --tv-fg-strong: #000000;
  --tv-muted: #6B6B6B;
  --tv-placeholder: #9A9A9E;
  --tv-field: #FFFFFF;
  --tv-line: #E7E7E9;
  --tv-border: #D4D4D8;
  --tv-chip: #F4F4F5;
  --tv-chip-on: #E4E4E7;
  --tv-header: rgba(255, 255, 255, 0.92);
  --tv-frame: rgba(244, 244, 245, 0.55);
  --tv-frame-border: rgba(226, 226, 228, 0.7);
  --tv-error: #C4263D;
  --tv-eyebrow: #BA3EFE;   /* occhielli ("Before your first test"…), stesso colore in chiaro e scuro (16 nov 2026) */

  /* card illustrazione (tour e passi) */
  --tv-card: #FFFFFF;
  --tv-code: #F4F4F5;
  --tv-c-write: #8A2BD0;
  --tv-c-run: #0270C9;
  --tv-c-und: #00843F;
  --tv-hv-up: rgba(17, 17, 17, 0.18);
  --tv-hv-sh: 0 30px 60px -28px rgba(30, 20, 70, .38), 0 10px 22px -14px rgba(17, 17, 17, .2);

  /* marchio e azioni (uguali nei due temi) */
  --tv-primary: #892990;
  --tv-primary-hover: #701E76;
  --tv-step-1: #BA3EFF;
  --tv-step-2: #038DFB;
  --tv-step-3: #00A952;

  /* loghi Ice Tea Group per tema (valori di display) */
  --tv-logo-light: block;
  --tv-logo-dark: none;

  /* tipografia e layout */
  --tv-font: 'Albert Sans', sans-serif;
  --tv-header-h: 64px;
  --tv-gutter: clamp(20px, 4vw, 32px);
  --tv-fs-h2: clamp(41px, calc(6.6vw + 1px), 69px);
  --tv-fs-body-lg: clamp(19px, 2.4vw, 25px);
  --tv-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* illustrazione di sfondo */
  --tv-art-size: calc(max(min(115vw, 172.5vh), 105vh) + 10px) auto;
  --tv-bgx: right;          /* posizione orizzontale (center sugli schermi verticali) */
  --tv-front-l: block;      /* livello frontale orizzontale */
  --tv-front-p: none;       /* livello frontale verticale */

  /* footer (valori desktop e telefono; tablet più sotto) */
  --tv-ft-pad: var(--tv-gutter);
  --tv-ft-gap: clamp(32px, calc(10vw - 56px), 88px);
  --tv-ft-tag: 16px;
  --tv-ft-tagl: 21px;
  --tv-ft-fs: 16px;
  --tv-itg-gap: 10px;
  --tv-itg-h: 24.7px;
  --tv-itg-top: 4.85px;
  --tv-itg-top2: 4.94px;
  --tv-sw-order: 0;         /* posizione del selettore tema nel footer */
}

/* ---------- Tema scuro ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --tv-bg: #161618;
  --tv-fg: #F2F2F3;
  --tv-fg-strong: #FFFFFF;
  --tv-muted: #A1A1A6;
  --tv-placeholder: rgba(255, 255, 255, 0.85);
  --tv-field: rgba(255, 255, 255, 0.15);
  --tv-line: #2A2A2E;
  --tv-border: #3A3A3F;
  --tv-chip: #222225;
  --tv-chip-on: #38383E;
  --tv-header: rgba(22, 22, 24, 0.86);
  --tv-frame: rgba(30, 30, 34, 0.55);
  --tv-frame-border: rgba(58, 58, 63, 0.7);
  --tv-error: #FF8A98;
  --tv-eyebrow: #BA3EFE;
  --tv-card: #1C1C20;
  --tv-code: #26262B;
  --tv-c-write: #CF8BFF;
  --tv-c-run: #5BB4FF;
  --tv-c-und: #3FD68A;
  --tv-hv-up: rgba(0, 0, 0, 0.55);
  --tv-hv-sh: 0 30px 60px -28px rgba(0, 0, 0, .75), 0 10px 22px -14px rgba(0, 0, 0, .6);
  --tv-logo-light: none;
  --tv-logo-dark: block;
}

/* ---------- Tablet: 640–1023px (footer compatto) ---------- */
@media (min-width: 640px) and (max-width: 1023px) {
  :root {
    --tv-ft-pad: 20px;
    --tv-ft-gap: 18px;
    --tv-ft-tag: 15px;
    --tv-ft-tagl: 20px;
    --tv-ft-fs: 15px;
    --tv-itg-gap: 6px;
    --tv-itg-h: 16px;
    --tv-itg-top: 3.15px;
    --tv-itg-top2: 3.2px;
  }
}

/* ---------- Schermi verticali: illustrazione centrata, livello frontale "portrait" ---------- */
@media (orientation: portrait) {
  :root {
    --tv-bgx: center;
    --tv-front-l: none;
    --tv-front-p: block;
  }
}
@media (orientation: portrait) and (max-width: 639px) {
  :root { --tv-sw-order: 99; }   /* selettore tema in fondo al footer */
}
