html
{
	box-sizing: border-box;
}

*,
*::before,
*::after
{
	box-sizing: inherit;
}

body
{
	margin: 0;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1rem;
	line-height: 1.5;
	color: #1a1a1a;
	background: #f4f6f8;
}

.SaltaNavigazione
{
	position: absolute;
	left: 0.5rem;
	top: 0.5rem;
	min-width: 44px;
	min-height: 44px;
	padding: 0.75rem 1rem;
	background: #111111;
	color: #ffffff;
	text-decoration: none;
	z-index: 10000;
	transform: translateY(-250%);
}

.SaltaNavigazione:focus,
.SaltaNavigazione:focus-visible
{
	transform: translateY(0);
	outline: 0.15rem solid #ffffff;
	outline-offset: 0.15rem;
}

header
{
	padding: 0.75rem 1rem;
	background: #1f4e79;
	color: #ffffff;
}

.HeaderCompattato
{
	padding: 0.25rem 0.5rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 0.25rem 0.75rem;
}

.HeaderCompattato h1
{
	margin: 0;
	font-size: clamp(0.95rem, 2.5vw, 1.15rem);
	line-height: 1.2;
	justify-self: start;
	min-width: 0;
}

.HeaderCompattato .PulsanteHome
{
	grid-column: 2;
	justify-self: center;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0.35rem 1.1rem;
	background: #ffffff;
	color: #1f4e79;
	text-decoration: none;
	border: 0.1rem solid #ffffff;
	border-radius: 0.3rem;
	font-weight: bold;
	font-size: 0.95rem;
}

.HeaderCompattato .PulsanteHome:hover
{
	background: #e8eef4;
	color: #163a5a;
}

.HeaderCompattato .PulsanteHome:focus-visible
{
	outline: 0.15rem solid #ffffff;
	outline-offset: 0.15rem;
}

main
{
	display: block;
	padding: 1rem;
	max-width: 48rem;
	margin: 0 auto;
}

.Pannello
{
	position: relative;
	background: #ffffff;
	padding: 1rem;
	border-radius: 0.5rem;
	margin-bottom: 1rem;
	box-shadow: 0 0.1rem 0.4rem rgba(0, 0, 0, 0.12);
}

.Pannello h2
{
	margin: 0 0 0.75rem 0;
	font-size: 1.15rem;
	color: #1f4e79;
}

.Pannello p
{
	margin: 0.5rem 0;
}

.Pannello strong
{
	color: #1f4e79;
}

.RigaCampo
{
	margin-bottom: 0.75rem;
}

.EtichettaCampo
{
	display: block;
	font-weight: bold;
	margin: 0 0 0.35rem 0;
}

input[type="number"],
select
{
	width: 100%;
	min-height: 44px;
	padding: 0.5rem 0.75rem;
	font-family: inherit;
	font-size: 1rem;
	max-width: 100%;
	border: 1px solid #6b6b6b;
	border-radius: 0.3rem;
	background: #ffffff;
}

.RigaAzioni
{
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	align-items: center;
	margin: 0.75rem 0 0 0;
}

button
{
	min-height: 44px;
	min-width: 44px;
	padding: 0.5rem 1rem;
	font-size: 1rem;
	cursor: pointer;
	background: #1f4e79;
	color: #ffffff;
	border: 0;
	border-radius: 0.3rem;
}

button:hover
{
	background: #163a5a;
}

button:focus-visible,
select:focus-visible,
input:focus-visible
{
	outline: 0.15rem solid #1f4e79;
	outline-offset: 0.15rem;
}

.MessaggioErrore
{
	margin: 1rem 0 0 0;
	padding: 0.75rem 1rem;
	background: #fde8e8;
	color: #8a1f1f;
	border-radius: 0.4rem;
	font-weight: bold;
	text-align: center;
}

@media (max-width: 40rem)
{
	.HeaderCompattato
	{
		grid-template-columns: 1fr;
		justify-items: start;
	}

	.HeaderCompattato .PulsanteHome
	{
		grid-column: 1;
		justify-self: start;
	}

	.RigaAzioni button
	{
		flex: 1 1 8rem;
		width: 100%;
	}
}
