/* Business Doc - pagina di presentazione.
   Nessun font scaricato da fuori: i caratteri di sistema bastano, e cosi' la
   pagina non passa l'indirizzo IP dei visitatori a nessuno. */

:root {
	--blu: #0f5f92;			/* il blu del marchio */
	--blu-scuro: #0b2a42;
	--blu-notte: #071d2e;
	--azzurro: #29a8e0;		/* il filetto di a Web Vision */
	--azzurro-chiaro: #d8eef9;
	--fondo: #ffffff;
	--fondo-chiaro: #f3f7fb;
	--testo: #13202b;
	--grigio: #586674;
	--bordo: #d7e1ea;
	--raggio: 14px;
	--ombra: 0 18px 50px rgba(7, 29, 46, .18);
	--carattere: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

/* Lo scorrimento "a sezioni": solo su schermi abbastanza grandi e solo per chi
   non ha chiesto di ridurre le animazioni. "proximity" e non "mandatory": una
   sezione piu' alta dello schermo resta leggibile per intero, la pagina si
   aggancia solo quando ci si ferma vicino all'inizio di una sezione. */
@media (min-width: 900px) and (min-height: 650px) and (prefers-reduced-motion: no-preference) {
	html { scroll-snap-type: y proximity; }
	.sezione { scroll-snap-align: start; }
}

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

body {
	margin: 0;
	background: var(--fondo);
	color: var(--testo);
	font-family: var(--carattere);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blu); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); color: var(--blu-scuro); }
h3 { font-size: 1.2rem; color: var(--blu-scuro); }

.contenitore { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.centrato { text-align: center; }

/* ---- barra in alto ------------------------------------------------------ */
.barra {
	position: fixed; inset: 0 0 auto 0; z-index: 20;
	display: flex; align-items: center; justify-content: space-between;
	padding: 10px 24px;
	background: rgba(255, 255, 255, .92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(15, 95, 146, .12);
}
.marchio img { height: 38px; width: auto; }

/* ---- bottoni ------------------------------------------------------------ */
.bottone {
	display: inline-block;
	padding: .8em 1.5em;
	border-radius: 999px;
	background: var(--azzurro);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: transform .15s ease, background-color .15s ease;
}
.bottone:hover { background: #1c93c8; transform: translateY(-1px); }
.bottone:focus-visible { outline: 3px solid var(--azzurro-chiaro); outline-offset: 3px; }
.bottone-piccolo { padding: .55em 1.1em; font-size: .95rem; }
.bottone-chiaro { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.bottone-chiaro:hover { background: rgba(255, 255, 255, .12); }
.azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.centrato .azioni { justify-content: center; }

/* ---- sezioni ------------------------------------------------------------ */
.sezione {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex; align-items: center;
	padding: 110px 0 80px;
}
.chiara { background: var(--fondo-chiaro); }

.occhiello {
	margin: 0 0 .6em;
	font-size: .85rem; font-weight: 700;
	letter-spacing: .12em; text-transform: uppercase;
	color: var(--azzurro);
}
.introduzione { max-width: 46em; font-size: 1.2rem; color: var(--grigio); }
.nota { margin-top: 32px; color: var(--grigio); }

/* ---- apertura e chiusura, su fondo scuro -------------------------------- */
.eroe {
	color: #fff;
	background:
		radial-gradient(1200px 600px at 85% 15%, rgba(41, 168, 224, .35), transparent 60%),
		linear-gradient(160deg, var(--blu) 0%, var(--blu-scuro) 55%, var(--blu-notte) 100%);
}
.eroe h1 span { display: block; color: var(--azzurro-chiaro); }
.eroe h2 { color: #fff; }
.eroe .occhiello { color: var(--azzurro-chiaro); }
.eroe .sottotitolo { font-size: 1.2rem; color: rgba(255, 255, 255, .85); max-width: 36em; }
.centrato .sottotitolo { margin-left: auto; margin-right: auto; }
/* testo centrato sopra, schermata larga sotto: le schermate del gestionale
   sono molto piu' larghe che alte, e accanto al testo diventavano minuscole */
.eroe-griglia { display: grid; grid-template-columns: 1fr; gap: 48px; justify-items: center; text-align: center; }
.eroe-testo { max-width: 50em; }
.eroe-testo .sottotitolo { margin-left: auto; margin-right: auto; }
.eroe-testo .azioni { justify-content: center; }
.eroe-griglia .schermo { width: 100%; max-width: 1080px; }

.scendi {
	position: absolute; left: 50%; bottom: 28px;
	width: 34px; height: 34px; margin-left: -17px;
	border-right: 3px solid rgba(255, 255, 255, .7);
	border-bottom: 3px solid rgba(255, 255, 255, .7);
	transform: rotate(45deg);
}

/* ---- schermate in una "finestra" di browser ----------------------------- */
.schermo {
	margin: 0;
	border-radius: var(--raggio);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--ombra);
	border: 1px solid var(--bordo);
}
.schermo-barra { display: flex; gap: 7px; padding: 11px 14px; background: #e9eef3; }
.schermo-barra i { width: 11px; height: 11px; border-radius: 50%; background: #c3ccd5; }
.schermo-barra i:first-child { background: #ef6a5e; }
.schermo-barra i:nth-child(2) { background: #f4bf4f; }
.schermo-barra i:nth-child(3) { background: #61c454; }

/* ---- due colonne, testo e schermata ------------------------------------- */
.due-colonne { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.due-colonne.inversa > :first-child { order: 2; }

.spunte { list-style: none; margin: 0; padding: 0; }
.spunte li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.spunte li::before {
	content: ""; position: absolute; left: 0; top: .3em;
	width: 20px; height: 20px; border-radius: 50%;
	background: var(--azzurro-chiaro);
	box-shadow: inset 0 0 0 2px var(--azzurro);
}
.spunte li::after {
	content: ""; position: absolute; left: 7px; top: calc(.3em + 4px);
	width: 5px; height: 9px;
	border: solid var(--blu); border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* ---- il flusso dei documenti -------------------------------------------- */
.flusso {
	list-style: none; margin: 48px 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
	counter-reset: passo;
}
.flusso li {
	position: relative;
	padding: 26px 22px 22px;
	border-radius: var(--raggio);
	background: var(--fondo-chiaro);
	border: 1px solid var(--bordo);
	counter-increment: passo;
}
.flusso li::before {
	content: counter(passo);
	display: inline-grid; place-items: center;
	width: 34px; height: 34px; margin-bottom: 12px;
	border-radius: 50%;
	background: var(--blu); color: #fff; font-weight: 700;
}
.flusso li + li::after {	/* la freccia fra un passo e l'altro */
	content: "›"; position: absolute; left: -15px; top: 50%;
	transform: translateY(-50%);
	font-size: 1.6rem; color: var(--azzurro);
}
.flusso strong { display: block; font-size: 1.15rem; color: var(--blu-scuro); }
.flusso span { color: var(--grigio); }

/* ---- schede delle funzioni ---------------------------------------------- */
.schede { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.scheda {
	padding: 26px 24px;
	border-radius: var(--raggio);
	background: #fff;
	border: 1px solid var(--bordo);
	border-top: 4px solid var(--azzurro);
}
.scheda p { margin: 0; color: var(--grigio); }

/* ---- versioni ----------------------------------------------------------- */
.versioni { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.versione {
	padding: 32px;
	border-radius: var(--raggio);
	border: 1px solid var(--bordo);
	background: #fff;
}
.versione p:last-child { margin-bottom: 0; color: var(--grigio); }
.in-evidenza { border: 2px solid var(--azzurro); box-shadow: var(--ombra); }

/* ---- piede -------------------------------------------------------------- */
.finale { min-height: 70vh; min-height: 70svh; }
.piede { padding: 28px 0; background: var(--blu-notte); color: rgba(255, 255, 255, .7); font-size: .9rem; }
.piede p { margin: .3em 0; }
.piede a { color: #fff; }

/* ---- i puntini di navigazione (creati da pagina.js) --------------------- */
.puntini {
	position: fixed; right: 18px; top: 50%; z-index: 15;
	transform: translateY(-50%);
	display: flex; flex-direction: column; gap: 12px;
	margin: 0; padding: 0; list-style: none;
}
.puntini a {
	display: block; width: 12px; height: 12px;
	border-radius: 50%;
	background: rgba(120, 140, 160, .45);
	box-shadow: 0 0 0 2px rgba(255, 255, 255, .8);
	transition: transform .2s ease, background-color .2s ease;
}
.puntini a:hover, .puntini a:focus-visible { transform: scale(1.3); }
.puntini a[aria-current="true"] { background: var(--azzurro); transform: scale(1.3); }

/* ---- comparsa delle sezioni allo scorrimento ---------------------------- */
/* Solo con JavaScript attivo (classe .js su <html>) e senza "riduci il
   movimento": altrimenti tutto e' visibile da subito. */
@media (prefers-reduced-motion: no-preference) {
	.js .appare { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
	.js .appare.visibile { opacity: 1; transform: none; }
}

/* ---- schermi stretti ---------------------------------------------------- */
@media (max-width: 960px) {
	.due-colonne { grid-template-columns: 1fr; gap: 36px; }
	.due-colonne.inversa > :first-child { order: 0; }
	.schede { grid-template-columns: 1fr 1fr; }
	.flusso { grid-template-columns: 1fr 1fr; }
	.flusso li + li::after { display: none; }
	.puntini { display: none; }
}
@media (max-width: 600px) {
	.contenitore { padding: 0 16px; }
	.barra { padding: 8px 16px; }
	.marchio img { height: 32px; }
	.sezione { min-height: 0; padding: 92px 0 56px; }
	.eroe:first-child { min-height: 100svh; }
	.schede, .flusso, .versioni { grid-template-columns: 1fr; }
	.versione { padding: 24px; }
	.scendi { display: none; }
}
