
/* CLAMP FONTS SIZE: scala fluida, tutta in rem. Ogni token interpola tra viewport 375px (min) e 1280px (max); il valore max coincide con la spec Figma "Typography · Desktop". Il valore oscilla in un range di un valore min e max.  */

:root {
	--fs-num:      clamp(4.5rem,    2.5rem + 9vw, 10rem);        /* Numero (sezione dati) 72 → 160 · Light · 100% */
	--fs-num-unit: clamp(1.875rem,  1.05rem + 3.8vw, 4.25rem);   /* Unità del numero  30 → 68  · Light · 100% (42% del numero) */
	--fs-max:      clamp(3rem,      1.4rem + 7vw, 7rem);         /* Titolo massimo    48 → 112 · Regular · 110% */
	--fs-xl:       clamp(1.875rem,  1.409rem + 1.989vw, 3rem);   /* Titolo grande     30 → 48  · Medium  · 120% */
	--fs-lg:       clamp(1.5rem,    1.345rem + 0.663vw, 1.875rem); /* Titolo medio      24 → 30  · Medium  · 120% */
	--fs-md:       clamp(1.1875rem, 1.11rem + 0.33vw, 1.375rem); /* Titolo piccolo    19 → 22  · Medium  · 120% */
	--fs-base:     1.125rem;                                     /* Testo base        18       · Regular · 130% */
	--fs-sm:       clamp(0.875rem,  0.849rem + 0.11vw, 0.9375rem);/* Testo piccolo     14 → 15  · Regular · 150% */
	--fs-xs:       0.6875rem;                                    /* Testo piccolissimo 11      · Regular · 120% */
	--fs-label:    clamp(0.875rem,  0.82rem + 0.22vw, 1rem);     /* Label grande      14 → 16  · Medium  · LS 2% */
	--fs-label-sm: clamp(0.75rem,   0.72rem + 0.11vw, 0.8125rem);/* Label media       12 → 13  · Medium  · LS 2% */
	--fs-label-xs: 0.625rem;                                     /* Label piccola     10      · Medium  · LS 2% */
}


/* NOTA BENE FONT: per ora "helvetica-neue-lt-pro" arriva dal kit Adobe Fonts (Typekit) caricato in base.html.
   Quando verrà acquistata la licenza webfont:
   1. copiare i file .woff2 in static/sito/fonts/ (pesi usati: 300, 400, 500; 700 e corsivi solo se servono);
   2. dichiarare qui un @font-face per ogni peso, con font-display: swap e font-family "helvetica-neue-lt-pro" (stesso nome, così il resto del CSS non cambia);
   3. togliere da base.html il preconnect e il <link> a use.typekit.net;
   4. aggiungere in base.html un <link rel="preload" as="font" type="font/woff2" crossorigin> per il peso 400.  */

body {
	font-family: "helvetica-neue-lt-pro", "Helvetica Neue", "Helvetica", "Arial", "Liberation Sans", sans-serif;
	font-size: var(--fs-base);
	font-weight: 400;
	font-synthesis: none;
}


.numero {
	font-size: calc(var(--fs-num) * var(--num-scale,1)); /* --num-scale: riduzione comune del gruppo di numeri (main.js) */
	white-space: nowrap;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -.03em;
	font-variant-numeric: tabular-nums;
}

.numero-unita {
	font-size: calc(var(--fs-num-unit) * var(--num-scale,1));
	font-weight: 300;
	line-height: 1;
	letter-spacing: 0;
}

.titolo-massimo {
	font-size: var(--fs-max);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -.025em;
}

.titolo-grande {
	font-size: var(--fs-xl);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.01em;
}

.titolo-medio {
	font-size: var(--fs-lg);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.01em;
}

.titolo-piccolo {
	font-size: var(--fs-md);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -.01em;
}

.testo-base {
	font-size: var(--fs-base);
	font-weight: 400;
	line-height: 1.3;
}

.testo-piccolo {
	font-size: var(--fs-sm);
	font-weight: 400;
	line-height: 1.5;
}

.testo-piccolissimo {
	font-size: var(--fs-xs);
	font-weight: 400;
	line-height: 1.2;
}

.label-grande {
	font-size: var(--fs-label);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.label-media {
	font-size: var(--fs-label-sm);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.label-piccola {
	font-size: var(--fs-label-xs);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
}
