/**
 * Reset minimo.
 *
 * Normalizza i default del browser senza azzerarli: un reset troppo aggressivo
 * costringe poi a riscrivere a mano cose che il browser faceva gia bene.
 */

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

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
	margin: 0;
}

ul[class],
ol[class] {
	padding: 0;
	list-style: none;
}

img,
picture,
video,
canvas,
svg,
iframe {
	display: block;
	max-width: 100%;
}

img,
video {
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
	color: inherit;
}

button {
	background: none;
	border: 0;
	cursor: pointer;
}

table {
	width: 100%;
	border-collapse: collapse;
}

/*
 * Rispetta la richiesta di ridurre il movimento: le animazioni vengono
 * praticamente azzerate, non solo accorciate.
 */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
