/* ==========================================================================
   Design tokens — palette, tipografia, spacing, raggi, ombre, transizioni.
   ========================================================================== */

:root {
	/* Palette */
	--color-primary: #1e3a5f;
	--color-primary-hover: #2d5a8b;
	--color-primary-soft: #dbe5f1;
	--color-accent: #c89b3c;
	--color-accent-hover: #b0852b;
	--color-text: #0f172a;
	--color-text-muted: #64748b;
	--color-text-inverse: #ffffff;
	--color-bg: #ffffff;
	--color-bg-alt: #f8fafc;
	--color-bg-dark: #0f1d33;
	--color-border: #e2e8f0;
	--color-border-strong: #cbd5e1;
	--color-success: #15803d;
	--color-success-bg: #dcfce7;
	--color-error: #b91c1c;
	--color-error-bg: #fee2e2;

	/* Typography */
	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-size-xs: 0.75rem;
	--font-size-sm: 0.875rem;
	--font-size-base: 1rem;
	--font-size-md: 1.125rem;
	--font-size-lg: 1.25rem;
	--font-size-xl: 1.5rem;
	--font-size-2xl: 1.875rem;
	--font-size-3xl: 2.5rem;
	--font-size-4xl: 3.25rem;
	--font-size-5xl: 4rem;
	--line-height-tight: 1.2;
	--line-height-snug: 1.35;
	--line-height-base: 1.6;
	--line-height-loose: 1.75;

	/* Spacing */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 24px;
	--space-6: 32px;
	--space-7: 48px;
	--space-8: 64px;
	--space-9: 96px;
	--space-10: 128px;

	/* Radii */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	--radius-xl: 20px;
	--radius-pill: 999px;

	/* Shadows */
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
	--shadow-md: 0 4px 12px rgba(15, 23, 42, .08);
	--shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
	--shadow-xl: 0 24px 60px rgba(15, 23, 42, .18);

	/* Layout */
	--container-max: 1200px;
	--container-narrow: 880px;
	--container-pad: 24px;

	/* Motion */
	--ease: cubic-bezier(.2, .8, .2, 1);
	--dur-fast: 150ms;
	--dur-base: 250ms;
	--dur-slow: 400ms;

	/* Header */
	--header-height: 84px;
}

@media (max-width: 768px) {
	:root {
		--container-pad: 16px;
		--font-size-3xl: 2rem;
		--font-size-4xl: 2.5rem;
		--font-size-5xl: 2.75rem;
		--header-height: 68px;
	}
}
