/*
 * Spuncin, foglio di stile del sito.
 *
 * Niente framework e niente risorse esterne. Il plugin dichiara di non fare
 * chiamate verso l'esterno, e un sito che tira giù font e script da mezzo mondo
 * renderebbe quella dichiarazione poco credibile.
 */

@font-face {
	font-family: 'Outfit';
	src: url('../assets/font/outfit-latin.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
	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;
}

@font-face {
	font-family: 'Outfit';
	src: url('../assets/font/outfit-latin-ext.woff2') format('woff2');
	font-weight: 100 900;
	font-display: swap;
	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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--ink: #101f28;
	--ink-soft: #4d626d;
	--paper: #f4f8fa;
	--paper-alt: #e6eef2;
	--line: #d2dfe6;

	--green: #10b981;
	--green-deep: #064e3b;
	--green-pale: #d1fae5;

	--night: #0d1b2e;
	--night-soft: #16304f;

	--stop: #b5433a;

	--wrap: 1180px;
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
	scroll-behavior: smooth;
	/* La nav è appiccicata in cima, quindi le ancore devono fermarsi più sotto. */
	scroll-padding-top: 5rem;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 1.0625rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: inherit;
}

h1,
h2,
h3 {
	line-height: 1.05;
	letter-spacing: -0.03em;
	font-weight: 600;
	margin: 0;
	text-wrap: balance;
}

p {
	margin: 0;
	text-wrap: pretty;
}

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 1.5rem;
}

.eyebrow {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--green-deep);
	margin-bottom: 1.25rem;
}

.lead {
	font-size: 1.25rem;
	color: var(--ink-soft);
	max-width: 34em;
}

/* ---------------------------------------------------------------- barra */

.bar {
	position: fixed;
	inset-inline: 0;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 0.85rem max(1.5rem, calc((100vw - var(--wrap)) / 2 + 1.5rem));
	transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.bar__logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	font-weight: 600;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	text-decoration: none;
	color: #fff;
	transition: color 0.4s var(--ease);
}

.bar__logo img {
	width: 30px;
	height: 30px;
}

.bar__logo .logo-light {
	display: block;
}

.bar__logo .logo-ink {
	display: none;
}

.bar__spacer {
	flex: 1;
}

.bar__links {
	display: flex;
	gap: 1.75rem;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.75);
}

/* Su schermo stretto i quattro link andrebbero a capo e mangerebbero mezzo
   hero. La pagina è una sola e si scorre: gli stessi link stanno nel piè di
   pagina, quindi qui spariscono invece di diventare un menu a panino. */
@media (max-width: 720px) {
	.bar__links {
		display: none;
	}
}

.bar__links a {
	text-decoration: none;
	transition: color 0.25s var(--ease);
}

.bar__links a:hover {
	color: #fff;
}

/* Superata l'immagine dell'hero il fondo diventa chiaro e il bianco sparirebbe. */
.bar.is-past-hero {
	background: rgba(244, 248, 250, 0.86);
	backdrop-filter: blur(14px);
	box-shadow: inset 0 -1px 0 var(--line);
}

.bar.is-past-hero .bar__logo {
	color: var(--ink);
}

.bar.is-past-hero .logo-light {
	display: none;
}

.bar.is-past-hero .logo-ink {
	display: block;
}

.bar.is-past-hero .bar__links {
	color: var(--ink-soft);
}

.bar.is-past-hero .bar__links a:hover {
	color: var(--ink);
}

/* ---------------------------------------------------------------- pulsanti */

.btn {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.85rem 1.5rem;
	border: 0;
	border-radius: 999px;
	background: var(--green);
	color: #04231a;
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 10px 24px -12px rgba(6, 78, 59, 0.7);
	transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover {
	background: #14cc90;
	transform: translateY(-2px);
	box-shadow: 0 16px 30px -14px rgba(6, 78, 59, 0.75);
}

.btn:active {
	transform: translateY(0) scale(0.985);
}

.btn--ghost {
	background: transparent;
	color: rgba(255, 255, 255, 0.85);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn--ghost:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.btn__note {
	font-weight: 400;
	opacity: 0.65;
	font-size: 0.875rem;
}

/* ---------------------------------------------------------------- hero */

.hero {
	position: relative;
	min-height: 100dvh;
	display: flex;
	/* Riservato all'altezza calcolata sul rapporto dell'immagine, più sotto. */
	align-items: center;
	background-color: var(--night);
	color: #fff;
	overflow: hidden;
}

/* L'immagine sta in un tag suo invece che nello sfondo: il browser la carica
   come immagine principale della pagina, e può muoversi in parallasse. */
.hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 100%;
	will-change: transform;
}

@media (min-width: 800px) {
	.hero__media img {
		object-position: 50% 50%;
	}
}

/* Il parallasse è legato alla barra di scorrimento, non a un ascoltatore in
   JavaScript: gira sul compositore e non fa perdere un fotogramma. Dove non è
   supportato l'immagine resta ferma e non manca niente. */
@supports (animation-timeline: scroll()) {
	.hero__media img {
		animation: drift linear both;
		animation-timeline: scroll();
		animation-range: 0 100vh;
	}
}

@keyframes drift {
	from {
		transform: scale(1.06) translateY(0);
	}

	to {
		transform: scale(1.06) translateY(7%);
	}
}

/* La scena si spegne nel colore della sezione seguente. Sta su uno strato suo
   perché la velatura del testo, sul desktop, porta una maschera che si dissolve
   verso il basso: tenerli insieme cancellerebbe la sfumatura proprio in fondo,
   dove serve. */
.hero::before {
	content: '';
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 34%;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(to bottom, transparent 0%, rgba(13, 27, 46, 0.55) 62%, var(--night) 100%);
}

/* Il testo cade sul cielo blu, che verso il basso si schiarisce. Una velatura
   dal basso tiene il contrasto sopra 4.5:1 senza spegnere la scena. */
.hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(9, 20, 36, 0.88) 0%, rgba(9, 20, 36, 0.74) 46%, rgba(9, 20, 36, 0.2) 76%, rgba(9, 20, 36, 0) 92%);
	z-index: 1;
	pointer-events: none;
}

/* Nell'immagine verticale i due personaggi stanno in basso, quindi il testo
   parte dall'alto e li lascia liberi invece di finirci sopra. */
@media (max-width: 799px) {
	.hero {
		align-items: flex-start;
	}

	.hero__inner {
		padding-block: 6rem 3rem;
	}

	.hero__facts {
		margin-top: 2rem;
		gap: 0.5rem 1.25rem;
		/* Qui sotto le tre voci cadono sopra all'immagine, dove il muro
		   illuminato le renderebbe illeggibili al grigio del desktop. */
		color: rgba(255, 255, 255, 0.88);
		text-shadow: 0 1px 12px rgba(13, 27, 46, 0.9);
	}
}

.hero__inner {
	position: relative;
	z-index: 2;
	padding-block: 8.5rem 4rem;
	width: 100%;
}

.hero h1 {
	font-size: clamp(1.7rem, 5.4vw, 3.9rem);
	font-weight: 600;
	/* Le tre righe sono decise a mano nel testo, con un <br>. Il bilanciamento
	   automatico rimescolerebbe le parole intorno a quei ritorni a capo. */
	text-wrap: initial;
	margin-bottom: 1.5rem;
}

.hero h1 em {
	font-style: normal;
	color: var(--green);
}

.hero__lead {
	font-size: clamp(1.075rem, 2.1vw, 1.3rem);
	color: rgba(255, 255, 255, 0.82);
	/* Le due righe sono decise nel testo con un <br>. Un limite di larghezza
	   qui ne aggiungerebbe una terza a metà della prima. */
	max-width: none;
	text-wrap: initial;
	margin-bottom: 2.25rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	align-items: center;
}

.hero__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 1.75rem;
	margin-top: 3rem;
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.62);
}

.hero__facts span {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.hero__facts span::before {
	content: '';
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--green);
	flex: none;
}

@media (min-width: 800px) {
	.hero {
		/* L'immagine è 16:9. Su una finestra più alta che larga, riempire tutta
		   l'altezza vorrebbe dire ingrandirla parecchio e tagliarne i lati, così
		   il robot esce dall'inquadratura. L'altezza segue il rapporto
		   dell'immagine e si ferma comunque a un viewport pieno. */
		min-height: min(100dvh, max(620px, 56.25vw));
	}

	.hero::after {
		background: linear-gradient(96deg, rgba(9, 20, 36, 0.86) 0%, rgba(9, 20, 36, 0.55) 36%, rgba(9, 20, 36, 0) 64%);
		/* La velatura serve dietro al testo, non sul robot: verso il basso si
		   dissolve e lascia leggere la scena. */
		-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.25) 88%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.25) 88%, transparent 100%);
	}
}

/* ---------------------------------------------------------------- sezioni */

.sec {
	padding-block: clamp(5rem, 11vw, 8.5rem);
	position: relative;
}

.sec--alt {
	background: var(--paper-alt);
}

.sec--night {
	background: var(--night);
	color: #fff;
	/* I chiarori di sfondo e l'occhio decorativo escono di proposito dai bordi
	   della sezione: senza questo allargherebbero la pagina di lato. */
	overflow: hidden;
}

.sec--night .lead {
	color: rgba(255, 255, 255, 0.7);
}

.sec--night .eyebrow {
	color: var(--green);
}

.sec h2 {
	font-size: clamp(1.95rem, 4.4vw, 3.05rem);
	max-width: 18ch;
	margin-bottom: 1.5rem;
}

/* Griglia sfalsata: il testo non parte mai dal bordo su desktop. */
.split {
	display: grid;
	gap: clamp(2.5rem, 5vw, 4.5rem);
	align-items: center;
}

@media (min-width: 900px) {
	.split {
		grid-template-columns: 1.15fr 0.85fr;
	}

	/* Girata la coppia, la colonna larga deve restare quella del testo. */
	.split--flip {
		grid-template-columns: 0.85fr 1.15fr;
	}

	.split--flip > *:first-child {
		order: 2;
	}
}

/* ---------------------------------------------------------------- problema */

.count {
	font-size: clamp(4rem, 13vw, 8.5rem);
	font-weight: 700;
	line-height: 0.85;
	letter-spacing: -0.05em;
	color: var(--green-deep);
	display: block;
}

.count__label {
	display: block;
	font-size: 1rem;
	font-weight: 500;
	letter-spacing: 0;
	color: var(--ink-soft);
	margin-top: 1rem;
	max-width: 22ch;
}

.harm {
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0;
	border-top: 1px solid var(--line);
}

.harm li {
	padding: 1.15rem 0 1.15rem 2.25rem;
	border-bottom: 1px solid var(--line);
	position: relative;
	color: var(--ink-soft);
}

.harm li strong {
	color: var(--ink);
	font-weight: 600;
}

.harm li::before {
	content: '';
	position: absolute;
	left: 0.35rem;
	top: 1.65rem;
	width: 0.85rem;
	height: 2px;
	background: var(--stop);
	border-radius: 2px;
}

/* ---------------------------------------------------------------- nastri */

.ticker {
	overflow: hidden;
	padding-block: 0.55rem;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.ticker__row {
	display: flex;
	width: max-content;
	gap: 0.6rem;
	animation: slide 58s linear infinite;
}

.ticker--back .ticker__row {
	animation-direction: reverse;
	animation-duration: 74s;
}

.ticker:hover .ticker__row {
	animation-play-state: paused;
}

@keyframes slide {
	from {
		transform: translate3d(0, 0, 0);
	}

	to {
		/* Il contenuto è duplicato, quindi metà larghezza è un giro esatto. */
		transform: translate3d(-50%, 0, 0);
	}
}

.chip {
	flex: none;
	padding: 0.42rem 0.95rem;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 500;
	white-space: nowrap;
	border: 1px solid;
}

.chip--stop {
	color: #ffb4ad;
	border-color: rgba(255, 138, 128, 0.32);
	background: rgba(181, 67, 58, 0.16);
}

.chip--pass {
	color: var(--green-pale);
	border-color: rgba(16, 185, 129, 0.32);
	background: rgba(16, 185, 129, 0.13);
}

.ticker__tag {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 0.85rem;
}

.tickers {
	margin-top: 3.5rem;
	display: grid;
	gap: 2.5rem;
}

/* Un figlio di una griglia parte da min-width:auto, quindi si allarga fino a
   contenere il nastro, che è largo quanto tutti i nomi messi in fila. Senza
   questo la pagina intera scorre di lato. */
.tickers > div,
.split > * {
	min-width: 0;
}

/* Le mascotte dentro alle due colonne: a schermo largo reggono i 320px, su
   telefono si prendevano mezza schermata e allontanavano il testo che segue. */
.split img {
	display: block;
	width: min(100%, 320px);
	height: auto;
	margin-inline: auto;
}

@media (max-width: 899px) {
	.split img {
		width: min(48%, 200px);
	}
}

/* ---------------------------------------------------------------- google */

/* Spio e la riga di chiusura stanno insieme. Su schermo stretto si affiancano,
   perché a piena larghezza la mascotte si prendeva mezzo schermo e spingeva
   fuori vista tutto il resto. */
.calm__end img {
	display: block;
	width: min(100%, 340px);
	height: auto;
	margin-inline: auto;
}

.calm__end .lead {
	margin-top: 2rem;
	font-size: 1rem;
}

@media (max-width: 899px) {
	.calm__end {
		display: flex;
		align-items: center;
		gap: 1.25rem;
	}

	.calm__end img {
		width: 8.5rem;
		flex: none;
		margin-inline: 0;
	}

	.calm__end .lead {
		margin-top: 0;
		font-size: 0.9375rem;
	}
}

.calm {
	display: grid;
	gap: 1.25rem;
	margin-top: 2.75rem;
}

@media (min-width: 700px) {
	.calm {
		grid-template-columns: repeat(2, 1fr);
	}
}

.calm div {
	display: flex;
	align-items: baseline;
	gap: 0.85rem;
	padding-bottom: 1.1rem;
	border-bottom: 1px solid var(--line);
}

.calm b {
	font-weight: 600;
	flex: none;
	min-width: 8.5rem;
}

.calm span {
	color: var(--ink-soft);
	font-size: 0.9375rem;
}

.calm .yes {
	color: var(--green-deep);
	font-weight: 600;
}

/* ---------------------------------------------------------------- passi */

.steps {
	counter-reset: step;
	display: grid;
	gap: 0;
	margin-top: 3.5rem;
}

.step {
	counter-increment: step;
	display: grid;
	gap: 0.35rem 2rem;
	padding-block: 2rem;
	border-top: 1px solid var(--line);
	align-items: start;
}

@media (min-width: 760px) {
	.step {
		grid-template-columns: 4.5rem 1fr 1fr;
		gap: 0 2.5rem;
	}
}

.step:last-child {
	border-bottom: 1px solid var(--line);
}

.step::before {
	content: counter(step, decimal-leading-zero);
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--green);
	font-feature-settings: 'tnum';
}

.step h3 {
	font-size: 1.4rem;
	font-weight: 600;
}

.step p {
	color: var(--ink-soft);
}

/* ---------------------------------------------------------------- livelli */

.levels {
	margin-top: 3rem;
}

.levels__pick {
	display: inline-flex;
	padding: 0.3rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
	gap: 0.25rem;
	flex-wrap: wrap;
}

.levels__pick button {
	appearance: none;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.62);
	font: inherit;
	font-weight: 500;
	font-size: 0.9375rem;
	padding: 0.6rem 1.25rem;
	border-radius: 999px;
	cursor: pointer;
	transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.levels__pick button:hover {
	color: #fff;
}

/* Su un telefono stretto le tre pillole non ci stanno affiancate, e andare a
   capo spezzerebbe il gruppo. Prima si stringono, e solo dopo cedono. */
@media (max-width: 520px) {
	.levels__pick {
		display: flex;
		width: 100%;
	}

	.levels__pick button {
		flex: 1;
		padding: 0.6rem 0.4rem;
		font-size: 0.875rem;
		text-align: center;
	}
}

.levels__pick button[aria-selected='true'] {
	background: var(--green);
	color: #04231a;
	font-weight: 600;
}

.levels__body {
	display: grid;
	gap: 2.5rem;
	margin-top: 2.5rem;
	align-items: start;
}

@media (min-width: 900px) {
	.levels__body {
		grid-template-columns: 0.85fr 1.15fr;
		gap: 4rem;
	}
}

.levels__what h3 {
	font-size: 1.65rem;
	margin-bottom: 0.85rem;
}

.levels__what p {
	color: rgba(255, 255, 255, 0.72);
	margin-bottom: 1.5rem;
}

.levels__cost {
	padding: 1.1rem 1.25rem;
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.05);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.78);
}

.levels__cost b {
	display: block;
	color: #fff;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

.levels__cost--none b {
	color: var(--green-pale);
}

.cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.cloud .chip {
	transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), color 0.45s var(--ease), background 0.45s var(--ease), border-color 0.45s var(--ease);
	color: rgba(255, 255, 255, 0.5);
	border-color: rgba(255, 255, 255, 0.14);
	background: rgba(255, 255, 255, 0.04);
}

.cloud .chip.is-stopped {
	color: #ffb4ad;
	border-color: rgba(255, 138, 128, 0.4);
	background: rgba(181, 67, 58, 0.2);
	text-decoration: line-through;
	text-decoration-color: rgba(255, 138, 128, 0.6);
}

.cloud .chip.is-locked {
	color: var(--green-pale);
	border-color: rgba(16, 185, 129, 0.38);
	background: rgba(16, 185, 129, 0.14);
}

.cloud__legend {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	margin-top: 1.5rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.55);
}

.cloud__legend span {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.cloud__legend i {
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 3px;
	display: block;
}

/* ---------------------------------------------------------------- privacy */

.privacy__list {
	list-style: none;
	margin: 2.5rem 0 0;
	padding: 0;
	display: grid;
	gap: 1.6rem;
}

@media (min-width: 800px) {
	.privacy__list {
		grid-template-columns: repeat(2, 1fr);
		gap: 2rem 3rem;
	}
}

.privacy__list li {
	padding-left: 2.1rem;
	position: relative;
	color: var(--ink-soft);
}

.privacy__list strong {
	display: block;
	color: var(--ink);
	font-weight: 600;
	margin-bottom: 0.2rem;
}

.privacy__list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.45rem;
	width: 1.1rem;
	height: 0.55rem;
	border-left: 2.5px solid var(--green);
	border-bottom: 2.5px solid var(--green);
	transform: rotate(-45deg);
	border-radius: 1px;
}

/* ---------------------------------------------------------------- tecnica */

.deep {
	border-top: 1px solid var(--line);
	margin-top: 3rem;
}

.deep details {
	border-bottom: 1px solid var(--line);
}

.deep summary {
	list-style: none;
	cursor: pointer;
	padding: 1.5rem 2.5rem 1.5rem 0;
	font-size: 1.15rem;
	font-weight: 600;
	position: relative;
	transition: color 0.25s var(--ease);
}

.deep summary::-webkit-details-marker {
	display: none;
}

.deep summary:hover {
	color: var(--green-deep);
}

.deep summary::after {
	content: '';
	position: absolute;
	right: 0.35rem;
	top: 50%;
	width: 0.7rem;
	height: 0.7rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	opacity: 0.45;
	transition: transform 0.3s var(--ease);
}

.deep details[open] summary::after {
	transform: translateY(-20%) rotate(-135deg);
}

.deep__body {
	padding-bottom: 1.75rem;
	color: var(--ink-soft);
	max-width: 62ch;
	display: grid;
	gap: 1rem;
}

.deep__body code {
	font-family: ui-monospace, 'SF Mono', Menlo, monospace;
	font-size: 0.875em;
	background: var(--paper-alt);
	padding: 0.15em 0.4em;
	border-radius: 0.3rem;
}

/* ---------------------------------------------------------------- chiusura */

.end {
	text-align: center;
	display: grid;
	justify-items: center;
	gap: 1.5rem;
}

.end h2 {
	/* Le due righe sono decise nel testo con un <br>. */
	max-width: none;
	text-wrap: initial;
	margin-inline: auto;
}

.end .lead {
	margin-inline: auto;
}

.end img {
	width: clamp(140px, 22vw, 210px);
	margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------------- footer */

.foot {
	background: var(--night);
	color: rgba(255, 255, 255, 0.6);
	padding-block: 3.5rem;
	font-size: 0.9375rem;
}

.foot__top {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot__logo {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: #fff;
	font-weight: 600;
	font-size: 1.1rem;
	text-decoration: none;
}

.foot__logo img {
	width: 28px;
	height: 28px;
}

.foot__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
}

.foot__links a {
	text-decoration: none;
	transition: color 0.25s var(--ease);
}

.foot__links a:hover {
	color: #fff;
}

.foot__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	justify-content: space-between;
	align-items: center;
	padding-top: 2rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.45);
}

/* ---------------------------------------------------------------- lingua */

.flag-defs {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.flag {
	width: 21px;
	height: 14px;
	border-radius: 2px;
	flex: none;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.lang {
	position: relative;
}

.lang__btn {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.55rem 0.9rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.88);
	font: inherit;
	font-size: 0.9375rem;
	cursor: pointer;
	transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.lang__btn:hover {
	background: rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.lang__caret {
	width: 10px;
	height: 6px;
	opacity: 0.6;
	transition: transform 0.3s var(--ease);
}

.lang__btn[aria-expanded='true'] .lang__caret {
	transform: rotate(180deg);
}

/* Il JavaScript apre e chiude il menu con l'attributo hidden. Senza questa
   riga non servirebbe a niente: display:grid qui sotto è una regola nostra e
   batte il display:none che il browser dà agli elementi hidden, quindi il
   menu resterebbe aperto per sempre. */
.lang__list[hidden] {
	display: none;
}

/* Si apre verso l'alto perché il pulsante sta nel piè di pagina. */
.lang__list {
	position: absolute;
	bottom: calc(100% + 0.6rem);
	right: 0;
	z-index: 30;
	margin: 0;
	padding: 0.5rem;
	list-style: none;
	/* Due lingue per riga: dodici voci in colonna vorrebbero dire una barra di
	   scorrimento dentro a un menu, che è sempre il segno che il menu è
	   sbagliato. Così è più largo, più basso, e si legge tutto in un colpo. */
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.15rem;
	width: max-content;
	max-width: calc(100vw - 3rem);
	border-radius: 1.15rem;
	background: #12263c;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.1),
		0 24px 48px -18px rgba(0, 0, 0, 0.7);
	transform-origin: bottom right;
	animation: unfold 0.28s var(--ease);
}

/* Il menu è agganciato al bordo destro del pulsante e si apre verso sinistra:
   su telefono, dove il pulsante sta a sinistra, finiva mezzo fuori dallo
   schermo. Qui si aggancia a sinistra e stringe quel tanto che basta perché
   le due colonne ci stiano davvero. */
@media (max-width: 620px) {
	.lang__list {
		right: auto;
		left: 0;
		transform-origin: bottom left;
		padding: 0.4rem;
		gap: 0.1rem;
	}

	.lang__list a {
		gap: 0.45rem;
		padding: 0.5rem 0.55rem;
		font-size: 0.8125rem;
	}
}

@keyframes unfold {
	from {
		opacity: 0;
		transform: translateY(6px) scale(0.96);
	}
}

@media (max-width: 560px) {
	.lang__list a {
		padding: 0.55rem 0.6rem;
		font-size: 0.875rem;
		gap: 0.5rem;
	}
}

.lang__list a {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.6rem 0.8rem;
	white-space: nowrap;
	border-radius: 0.65rem;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.9375rem;
	transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.lang__list a:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

/* La lingua che stai leggendo, con la spunta a destra. */
.lang__list a[aria-checked='true'] {
	color: var(--green-pale);
	font-weight: 600;
}

.lang__list a[aria-checked='true']::after {
	content: '';
	margin-left: 0.15rem;
	width: 0.8rem;
	height: 0.42rem;
	border-left: 2px solid var(--green);
	border-bottom: 2px solid var(--green);
	transform: rotate(-45deg) translate(1px, -2px);
}

/* ---------------------------------------------------------------- ingressi */

[data-rise] {
	opacity: 0;
	transform: translate3d(0, 26px, 0);
	transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
	transition-delay: var(--wait, 0ms);
}

[data-rise].is-in {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

:focus-visible {
	outline: 2px solid var(--green);
	outline-offset: 3px;
	border-radius: 4px;
}

.skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 60;
	background: var(--green);
	color: #04231a;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 0.5rem 0;
	font-weight: 600;
}

.skip:focus {
	left: 0;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	[data-rise] {
		opacity: 1;
		transform: none;
	}
}

/* ================================================================ movimento */

/* Quanto si è letto della pagina. Anche questa legata alla barra di
   scorrimento invece che a un ascoltatore in JavaScript. */
.progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	z-index: 50;
	background: var(--green);
	transform-origin: 0 50%;
	transform: scaleX(0);
	pointer-events: none;
}

@supports (animation-timeline: scroll()) {
	.progress {
		animation: fill linear both;
		animation-timeline: scroll();
	}
}

@keyframes fill {
	to {
		transform: scaleX(1);
	}
}

/* L'apertura entra a scaglioni invece che tutta insieme. */
.hero h1,
.hero__lead,
.hero__actions,
.hero__facts {
	animation: enter 0.9s var(--ease) both;
}

.hero h1 {
	animation-delay: 0.1s;
}

.hero__lead {
	animation-delay: 0.25s;
}

.hero__actions {
	animation-delay: 0.38s;
}

.hero__facts {
	animation-delay: 0.5s;
}

@keyframes enter {
	from {
		opacity: 0;
		transform: translate3d(0, 22px, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Due chiarori lenti dietro alle sezioni scure, perché non siano un
   rettangolo piatto. Stanno su uno strato che non riceve il puntatore e si
   muovono solo per trasformazione. */
.sec--night {
	isolation: isolate;
}

.sec--night::before {
	content: '';
	position: absolute;
	inset: 0 -10% -20%;
	z-index: -1;
	pointer-events: none;
	/* Il chiarore si spegne verso l'alto. L'hero sopra sta ancora sfumando nel
	   blu scuro, e un verde che arrivasse fino al bordo disegnerebbe una riga
	   netta proprio dove le due sezioni si incontrano. */
	-webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
	mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
	background:
		radial-gradient(38% 42% at 22% 28%, rgba(16, 185, 129, 0.16), transparent 70%),
		radial-gradient(34% 38% at 78% 72%, rgba(22, 48, 79, 0.85), transparent 72%);
	animation: breathe 22s ease-in-out infinite alternate;
	will-change: transform;
}

@keyframes breathe {
	from {
		transform: translate3d(-2%, -1%, 0) scale(1);
	}

	to {
		transform: translate3d(3%, 2%, 0) scale(1.12);
	}
}

/* L'occhio che segue il puntatore. È il marchio, non un ornamento qualunque:
   sta dietro alla sezione dove si sceglie chi far entrare e chi no. */
.watcher {
	position: absolute;
	right: -6%;
	top: 50%;
	width: min(46vw, 620px);
	height: auto;
	transform: translateY(-50%);
	color: rgba(16, 185, 129, 0.09);
	z-index: -1;
	pointer-events: none;
}

.watcher__pupil {
	transition: transform 0.9s var(--ease);
	transform: translate(var(--px, 0px), var(--py, 0px));
}

@media (max-width: 900px) {
	.watcher {
		right: -22%;
		width: 92vw;
		opacity: 0.7;
	}
}

/* Cambiando livello i nomi non si spengono tutti insieme ma a onda. */
.cloud .chip {
	transition-delay: calc(var(--i, 0) * 14ms);
}

.cloud .chip:hover {
	transform: translateY(-2px);
}

/* I nomi che scorrono reagiscono al passaggio del puntatore. */
.ticker .chip {
	transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.ticker .chip:hover {
	transform: scale(1.08);
}

/* Il numero grande cresce mentre entra. */
.count {
	font-variant-numeric: tabular-nums;
}

/* Il pulsante principale si sposta verso il puntatore quando gli passi vicino. */
.btn {
	transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
}

.btn:hover {
	transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) - 2px), 0);
}

@media (prefers-reduced-motion: reduce) {
	.hero h1,
	.hero__lead,
	.hero__actions,
	.hero__facts,
	.sec--night::before,
	.hero__media img {
		animation: none;
	}

	.watcher__pupil,
	.btn {
		transform: none;
	}
}
