/* ============================================================
   DEEPWORLDVR — Design Tokens v1.0
   Dark cinematic. Coerente con ecosistema Deep World.
   ============================================================ */

:root {
  /* ============ COLORI — Brand ============ */
  --color-primary: #0B1620;            /* navy profondo, fondo principale */
  --color-primary-light: #142433;
  --color-primary-dark: #050B12;
  --color-accent: #C9A14A;             /* oro */
  --color-accent-bright: #E5BE65;
  --color-accent-dark: #9E7A1F;

  /* ============ COLORI — Superfici dark ============ */
  --color-ground: #0B1620;             /* fondo body */
  --color-surface: #142433;            /* card su fondo */
  --color-surface-alt: #1B2E40;        /* card hover / sezione alt */
  --color-surface-elev: #213548;       /* card in evidenza */
  --color-border-soft: rgba(201, 161, 74, 0.15);
  --color-border-med: rgba(201, 161, 74, 0.35);
  --color-border-bright: #C9A14A;

  /* ============ COLORI — Testo ============ */
  --color-text: #F2EDE2;               /* testo principale su dark */
  --color-text-secondary: #BDB6A6;
  --color-text-muted: #8A8473;
  --color-text-on-accent: #0B1620;

  /* ============ COLORI — Semantici ============ */
  --color-success: #6FBF73;
  --color-warning: #D9B85B;
  --color-error: #E07567;

  /* ============ TIPOGRAFIA — Famiglie ============ */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* ============ TIPOGRAFIA — Scala ============ */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.12em;

  /* ============ SPACING ============ */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ============ LAYOUT ============ */
  --container-max: 1280px;
  --header-height: 72px;

  /* ============ RADIUS ============ */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* ============ SHADOW (su dark, glow oro discreto) ============ */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.55), 0 6px 12px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(201, 161, 74, 0.25), 0 8px 32px rgba(201, 161, 74, 0.08);

  /* ============ MOTION ============ */
  --motion-fast: 150ms;
  --motion-base: 250ms;
  --motion-slow: 400ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-header: 50;
  --z-modal: 110;
}

/* ============ RESET ============ */

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

html {
  font-size: 100%;
  line-height: var(--leading-normal);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-ground);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-4);
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); letter-spacing: var(--tracking-tight); }
h2 { font-size: var(--text-3xl); line-height: var(--leading-snug); }

h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-3);
  color: var(--color-text);
}

h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p { margin: 0 0 var(--space-4); color: var(--color-text-secondary); }

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  transition: color var(--motion-fast) var(--ease-out);
}
a:hover { color: var(--color-accent-bright); }

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img, picture, video, svg { max-width: 100%; height: auto; display: block; }

button { font-family: inherit; cursor: pointer; }

@media (min-width: 1024px) {
  h1 { font-size: var(--text-6xl); }
  h2 { font-size: var(--text-4xl); }
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) { .container { padding-inline: var(--space-8); } }
@media (min-width: 1024px) { .container { padding-inline: var(--space-12); } }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.skip-link {
  position: absolute;
  top: -40px;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  border-radius: var(--radius-md);
  text-decoration: none;
  z-index: 200;
  transition: top var(--motion-fast);
}
.skip-link:focus { top: var(--space-4); }
