@font-face {
	font-family: "DM Sans";
	font-weight: 400;
	font-display: swap;
	src: url(fonts/dm-sans-400.woff2) format("woff2");
}
@font-face {
	font-family: "DM Sans";
	font-weight: 500;
	font-display: swap;
	src: url(fonts/dm-sans-500.woff2) format("woff2");
}
@font-face {
	font-family: "DM Sans";
	font-weight: 700;
	font-display: swap;
	src: url(fonts/dm-sans-700.woff2) format("woff2");
}

:root {
	--blu: #121585;
	--giallo: #EEBB1E;
	--grigio: #F1F1F1;
}

/* Tutte le misure sono in rem con 1rem = 10px. Tra 1400 e 1750px la radice cresce
   con la finestra e la pagina scala in proporzione (fino a 1,25x); oltre resta
   così e aumenta solo il margine ai lati. */
html {
	font-size: 62.5%;
}

@media (min-width: 1400px) {
	html {
		font-size: min(calc(100vw / 140), 12.5px);
	}
}

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

body {
	margin: 0;
	background: #fff;
	color: #000;
	font: 500 1.8rem/2.4rem "neue-haas-grotesk-display", "DM Sans", Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

h1, h2, p, ul, address {
	margin: 0;
	font-weight: 500;
	font-style: normal;
}

ul {
	padding: 0;
	list-style: none;
}

strong {
	font-weight: 700;
}

a {
	color: inherit;
	text-decoration: none;
}

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

.contenitore {
	max-width: 128rem;
	margin: 0 auto;
	padding: 0 2rem;
}

.metodo-testo p, .webridge-testo p, .bolzano-testo p {
	letter-spacing: .1rem;
}

.bottone {
	display: inline-block;
	height: 3.8rem;
	padding: 0 4rem;
	border-radius: 1.9rem;
	background: var(--giallo);
	color: var(--blu);
	font-size: 1.6rem;
	line-height: 3.8rem;
	text-transform: uppercase;
	transition: background-color .2s, color .2s;
}

.bottone:hover {
	background: var(--blu);
	color: var(--giallo);
}

/* I quadratini del design: 1.2rem, centrati sui bordi del riquadro. Un solo
   pseudo-elemento con otto sfondi, così seguono il riquadro a ogni larghezza. */
.cornice {
	position: relative;
	--quadratino: var(--blu);
	--q: linear-gradient(var(--quadratino), var(--quadratino));
}

.cornice::after {
	content: "";
	position: absolute;
	inset: -.6rem;
	pointer-events: none;
	background-image: var(--q), var(--q), var(--q), var(--q), var(--q), var(--q), var(--q), var(--q);
	background-size: 1.2rem 1.2rem;
	background-repeat: no-repeat;
	background-position: 0 0, 50% 0, 100% 0, 0 50%, 100% 50%, 0 100%, 50% 100%, 100% 100%;
}

.cornice-angoli::after {
	background-position: 0 0, 100% 0, 0 100%, 100% 100%;
}

.intestazione .contenitore {
	display: flex;
	align-items: center;
	height: 8.6rem;
}

.hero {
	padding: 25.5rem 0 4.8rem;
	background: var(--blu);
	color: #fff;
}

.hero .contenitore {
	display: flex;
	flex-direction: column;
}

.hero-foto {
	--quadratino: #fff;
}

.hero-foto img {
	width: 100%;
	height: auto;
}

.hero-foto::before {
	content: "";
	position: absolute;
	top: -18.6rem;
	left: -.6rem;
	right: -.6rem;
	height: 1.2rem;
	background: var(--q) 0 0 / 1.2rem 1.2rem no-repeat, var(--q) 100% 0 / 1.2rem 1.2rem no-repeat;
}

.hero h1 {
	margin-top: 4.6rem;
	font-weight: 400;
	font-size: 5rem;
	line-height: 1.125;
	color: var(--grigio);
}

.hero-risposta {
	margin-top: 6.8rem;
	font-size: 2rem;
	line-height: 2.8rem;
}

.hero-sottotitolo {
	margin-top: .4rem;
	font-size: 3.2rem;
	line-height: 4rem;
}

.congresso {
	padding: 8rem 0 5.6rem;
	border-bottom: 1px solid var(--blu);
}

.congresso p {
	font-size: 2.4rem;
	line-height: 3.2rem;
	color: var(--blu);
}

.congresso .bottone {
	display: block;
	width: fit-content;
	margin: 4.6rem auto 0;
}

.metodo {
	padding: 5.6rem 0;
	border-bottom: 1px solid var(--blu);
}

.metodo img {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.metodo h2 {
	margin: 5.6rem 0 2.2rem;
	font-size: 2.4rem;
	line-height: 3.2rem;
	color: var(--blu);
}

.metodo p + p, .bolzano p + p {
	margin-top: 2.4rem;
}

.webridge {
	padding: 6.4rem 0;
	background: var(--grigio);
	border-bottom: 1px solid var(--blu);
}

/* nel design il logo sta un po' sotto il centro del box bianco */
.webridge-logo {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 24.1rem;
	padding-top: 3.2rem;
	background: #fff;
}

.webridge-logo img {
	width: 13.2rem;
	height: auto;
}

.webridge h2 {
	margin: 7.2rem 0 3.2rem;
	font-size: 3.2rem;
	line-height: 4rem;
	color: var(--blu);
}

.webridge-testo .webridge-invito {
	margin: 4.8rem 0 1.4rem;
	font-size: 2.4rem;
	line-height: 3.2rem;
	letter-spacing: 0;
	text-align: center;
	color: var(--blu);
}

.webridge-testo .bottone {
	display: block;
	width: fit-content;
	margin: 0 auto;
}

.bolzano {
	padding: 6rem 0 6.4rem;
}

.bolzano h2 {
	margin-bottom: 4.8rem;
	font-size: 4rem;
	line-height: 4.8rem;
	color: var(--blu);
}

.bolzano-box {
	display: flex;
	flex-direction: column-reverse;
	margin-top: 5.6rem;
}

.bolzano-modello, .bolzano-ordine {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 15.1rem;
}

.bolzano-modello {
	background: var(--grigio);
}

.bolzano-modello .bottone {
	padding: 0 2rem;
}

.bolzano-ordine {
	background: var(--blu);
}

.bolzano-ordine img {
	width: 32.4rem;
	height: auto;
}

.banner-trieste {
	padding: 5.6rem 2rem 4.8rem;
	border-bottom: 1px solid var(--blu);
	background: var(--giallo);
	font-size: 4rem;
	line-height: 4.8rem;
	text-align: center;
	color: var(--blu);
}

.footer {
	font-size: 1.5rem;
	line-height: 1.9rem;
}

.footer-colonne {
	padding-top: 5.6rem;
	padding-bottom: 3.4rem;
}

.footer-logo {
	width: 14.4rem;
	height: auto;
}

.footer-etichetta {
	margin-top: 5.6rem;
	color: var(--blu);
}

.footer address {
	margin-top: 1.2rem;
}

.footer-colonne ul {
	margin-top: 4rem;
}

.footer-colonne li + li {
	margin-top: .8rem;
}

.footer-barra {
	border-top: 1px solid var(--blu);
	border-bottom: 1px solid var(--blu);
}

.footer-contatto {
	display: block;
	width: calc(100% + 4rem);
	margin: 0 -2rem;
	background: var(--blu);
	line-height: 4.4rem;
	text-align: center;
	color: #fff;
	transition: background-color .2s, color .2s;
}

.footer-contatto:hover {
	background: var(--giallo);
	color: var(--blu);
}

.footer-social {
	display: flex;
	gap: 3.8rem;
	padding-top: 4.4rem;
}

.footer-social img {
	width: 2.6rem;
	height: 2.4rem;
}

.footer-copyright {
	margin-top: 3.4rem;
}

.footer-piva {
	margin: .8rem 0 3.4rem;
}

.footer-credit {
	padding: 7.2rem 2rem 7.6rem;
}

.footer-credit a {
	display: block;
	width: fit-content;
	margin: 0 auto;
}

.footer-credit img {
	width: 18.8rem;
	height: auto;
}

@media (min-width: 480px) {
	.hero h1 {
		font-size: 6.4rem;
	}

	.bolzano h2, .banner-trieste {
		font-size: 4.8rem;
		line-height: 5.6rem;
	}
}

@media (min-width: 768px) {
	.contenitore {
		padding: 0 4rem;
	}

	.banner-trieste {
		padding-left: 4rem;
		padding-right: 4rem;
	}

	.footer {
		font-size: 1.4rem;
		line-height: 2.1rem;
	}

	.footer-colonne {
		display: grid;
		grid-template-columns: 22% 15% 15% 25% 1fr;
		padding-top: 6rem;
		padding-bottom: 3.6rem;
	}

	.footer-logo {
		grid-row: 1 / 3;
	}

	.footer-etichetta {
		margin: 0 0 1.8rem;
	}

	.footer address, .footer-colonne ul {
		grid-row: 2;
		margin: 0;
	}

	.footer address {
		line-height: 2.2rem;
	}

	.footer-colonne li + li {
		margin: 0;
	}

	.footer-barra .contenitore {
		position: relative;
		display: grid;
		grid-template-columns: 22% 15% 15% 25% 1fr;
		align-items: center;
		height: 5rem;
	}

	.footer-contatto {
		position: absolute;
		top: 0;
		right: 0;
		width: 20rem;
		margin: 0;
		line-height: 5rem;
	}

	.footer-social {
		gap: 2.7rem;
		padding: 0 0 0 2rem;
	}

	.footer-copyright {
		grid-column: 2 / 4;
		margin: 0;
	}

	.footer-piva {
		margin: 0;
	}

	.footer-credit {
		padding: 4rem 0 4.4rem;
	}

}

@media (min-width: 1024px) {
	.hero {
		padding: 22.8rem 0 8rem;
	}

	.hero .contenitore {
		flex-direction: row-reverse;
		justify-content: space-between;
		align-items: flex-end;
	}

	.hero-foto {
		flex-shrink: 0;
		width: 45.8%;
		margin-left: 4rem;
	}

	.hero-foto::before {
		background: var(--q) 0 0 / 1.2rem 1.2rem no-repeat, var(--q) 50% 0 / 1.2rem 1.2rem no-repeat, var(--q) 100% 0 / 1.2rem 1.2rem no-repeat;
	}

	.hero-testo {
		max-width: 48rem;
	}

	.hero h1 {
		margin-top: 0;
	}

	.hero-risposta {
		margin-top: 5.6rem;
	}

	.congresso {
		padding: 11.6rem 0 11.2rem;
		text-align: center;
	}

	.congresso p {
		max-width: 77rem;
		margin: 0 auto;
	}

	.congresso .bottone {
		display: inline-block;
		width: auto;
		min-width: 25.4rem;
		margin: 3rem 0 0;
	}

	.metodo {
		padding: 10.4rem 0 10.8rem;
	}

	.metodo .contenitore {
		display: grid;
		grid-template-columns: 49.3% 40.8%;
		justify-content: space-between;
		align-items: center;
	}

	.metodo h2 {
		margin-top: 0;
	}

	.webridge {
		padding: 10.4rem 0 11.6rem;
	}

	.webridge .contenitore {
		display: flex;
		flex-direction: row-reverse;
		justify-content: space-between;
		align-items: flex-start;
	}

	.webridge-logo {
		width: 49.3%;
		height: 39.8rem;
	}

	.webridge-logo::after {
		background-position: 0 0, 50% 0, 100% 0, 0 100%, 50% 100%, 100% 100%;
	}

	.webridge-logo img {
		width: 20rem;
	}

	.webridge-testo {
		width: 40%;
	}

	.webridge h2 {
		margin: 0 0 4.8rem;
	}

	.webridge-testo .webridge-invito {
		margin-top: 6.4rem;
		text-align: left;
	}

	.webridge-testo .bottone {
		display: inline-block;
		width: auto;
		margin: 0;
	}

	.bolzano {
		padding: 9.6rem 0 11.2rem;
	}

	.bolzano-intro {
		display: grid;
		grid-template-columns: 50% 40.8%;
	}

	.bolzano h2 {
		max-width: 48rem;
		margin: 0;
	}

	.bolzano-box {
		flex-direction: row;
		margin-top: 8rem;
	}

	.bolzano-modello, .bolzano-ordine {
		flex: 1;
		height: 20.5rem;
	}

	.bolzano-ordine img {
		width: 34rem;
	}
}

@media (min-width: 1280px) {
	.hero h1 {
		font-size: 7.2rem;
	}

	.footer-contatto {
		width: 26.5rem;
	}
}

/* Header attaccato in alto come nel sito completo (chiesto il 21/09): scompare scendendo
   e ricompare risalendo, la classe la mette intestazione.js. */
.intestazione {
	position: sticky;
	top: 0;
	z-index: 10;
	background: #fff;
	transition: transform .3s ease;
}

.intestazione-nascosta {
	transform: translateY(-100%);
}
