/* =========================================================================
   Eagle Cup Volley: fondamenta (font, token, reset, tipografia, layout)
   ========================================================================= */

/* --- Font --------------------------------------------------------------- */

@font-face {
	font-family: "League Spartan";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/league-spartan-latin-ext.woff2") format("woff2");
	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;
}

@font-face {
	font-family: "League Spartan";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/league-spartan-latin.woff2") format("woff2");
	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: "Intro";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/intro.woff") format("woff");
}

@font-face {
	font-family: "Intro Inline";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/intro-inline.woff") format("woff");
}

@font-face {
	font-family: "Futura Display";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/futura-display.ttf") format("truetype");
}

/* --- Token -------------------------------------------------------------- */

:root {
	--ecv-navy: #26307a;
	--ecv-blue: #1fa1df;
	--ecv-gold: #bea276;
	--ecv-white: #ffffff;
	--ecv-border: #d6dadd;
	--ecv-muted: #777777;
	--ecv-faint: #adadad;
	--ecv-surface: #f9f9f9;
	--ecv-red: #f02b2b;
	--ecv-navy-veil: rgba(38, 48, 122, 0.66);

	--ecv-font-body: "League Spartan", "Helvetica Neue", Arial, sans-serif;
	--ecv-font-display: "Intro", "League Spartan", "Helvetica Neue", Arial, sans-serif;
	--ecv-font-label: "Futura Display", "League Spartan", "Arial Narrow", sans-serif;

	--ecv-container: 1200px;
	--ecv-gutter: 20px;
	--ecv-header-height: 101px;

	--ecv-shadow-card: 0 0 30px rgba(0, 0, 0, 0.1);
	--ecv-shadow-soft: 0 0 10px rgba(0, 0, 0, 0.1);
	--ecv-shadow-button: 0 0 20px rgba(2, 41, 64, 0.3);
	--ecv-shadow-glow: 0 0 30px rgba(0, 155, 249, 0.3);

	--ecv-title-size: 48px;
	--ecv-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 1024px) {
	:root {
		--ecv-title-size: 35px;
		--ecv-header-height: 100px;
	}
}

@media (max-width: 767px) {
	:root {
		--ecv-title-size: 30px;
		--ecv-header-height: 72px;
	}
}

/* --- Reset -------------------------------------------------------------- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--ecv-header-height) + 20px);
}

body {
	margin: 0;
	background: var(--ecv-white);
	color: var(--ecv-navy);
	font-family: var(--ecv-font-body);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
figure,
blockquote {
	margin: 0;
}

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

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

img,
video {
	height: auto;
}

a {
	color: var(--ecv-gold);
	text-decoration: none;
}

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

button {
	cursor: pointer;
}

:focus-visible {
	outline: 2px solid var(--ecv-blue);
	outline-offset: 2px;
}

strong,
b {
	font-weight: 600;
}

/* --- Utilità ------------------------------------------------------------ */

.ecv-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ecv-skip-link {
	position: absolute;
	top: -100px;
	left: 10px;
	z-index: 200;
	padding: 12px 20px;
	background: var(--ecv-navy);
	color: var(--ecv-white);
}

.ecv-skip-link:focus {
	top: 10px;
	color: var(--ecv-white);
}

.ecv-container {
	width: min(100% - (var(--ecv-gutter) * 2), var(--ecv-container));
	margin-inline: auto;
}

.ecv-container--narrow {
	--ecv-container: 1000px;
}

.ecv-container--inset {
	padding-inline: 10px;
}

@media (max-width: 767px) {
	.ecv-container--inset {
		padding-inline: 0;
	}
}

.ecv-main {
	display: block;
	padding-top: var(--ecv-header-height);
}

.ecv-section {
	padding-block: 50px;
}

.ecv-icon {
	width: 1em;
	height: 1em;
	flex: none;
}

/* --- Tipografia --------------------------------------------------------- */

.ecv-title {
	font-family: var(--ecv-font-display);
	font-size: var(--ecv-title-size);
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	color: var(--ecv-navy);
}

.ecv-title--gold {
	color: var(--ecv-gold);
}

.ecv-title--white {
	color: var(--ecv-white);
}

.ecv-eyebrow {
	font-family: var(--ecv-font-label);
	font-size: 18px;
	font-weight: 300;
	line-height: 1;
	text-transform: capitalize;
	color: var(--ecv-navy);
}

.ecv-heading {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.ecv-heading--center {
	text-align: center;
}

.ecv-heading--gold .ecv-title {
	color: var(--ecv-gold);
}

.ecv-heading--white .ecv-title,
.ecv-heading--white .ecv-eyebrow {
	color: var(--ecv-white);
}

.ecv-prose p {
	margin-bottom: 14.4px;
}

.ecv-prose h1,
.ecv-prose h2,
.ecv-prose h3,
.ecv-prose h4 {
	margin: 8px 0 16px;
	font-family: var(--ecv-font-body);
	font-weight: 500;
	line-height: 1.2;
	color: var(--ecv-navy);
}

.ecv-prose h1 {
	font-size: 40px;
}

.ecv-prose h2 {
	font-size: 32px;
}

.ecv-prose h3 {
	font-size: 28px;
}

.ecv-prose h4 {
	font-size: 24px;
}

.ecv-prose strong,
.ecv-prose b {
	font-weight: 400;
}

.ecv-prose ul,
.ecv-prose ol {
	margin-bottom: 14.4px;
	padding-left: 40px;
}

.ecv-prose ul {
	list-style: disc;
}

.ecv-prose ul ul {
	list-style: circle;
	margin-bottom: 0;
}

.ecv-prose ol {
	list-style: decimal;
}

.ecv-prose hr {
	height: 0;
	margin-block: 8px 16px;
	border: 0;
	border-top: 1px solid rgba(38, 48, 122, 0.4);
}

.ecv-prose a {
	color: var(--ecv-gold);
}

.ecv-prose table {
	width: 100%;
	margin-bottom: 15px;
	border-collapse: collapse;
	font-size: 14.4px;
	line-height: 1.5;
}

.ecv-prose th,
.ecv-prose td {
	padding: 15px;
	border: 1px solid rgba(128, 128, 128, 0.5);
	vertical-align: top;
}

.ecv-prose th {
	font-weight: 700;
	text-align: center;
}

.ecv-prose tbody tr:nth-child(odd) td {
	background: rgba(128, 128, 128, 0.07);
}

.ecv-prose code {
	font-family: ui-monospace, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

.ecv-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
	.ecv-prose h1 {
		font-size: 30px;
	}

	.ecv-prose h2 {
		font-size: 26px;
	}

	.ecv-prose h3 {
		font-size: 22px;
	}

	.ecv-prose h4 {
		font-size: 20px;
	}

	.ecv-prose ul,
	.ecv-prose ol {
		padding-left: 24px;
	}

	.ecv-prose th,
	.ecv-prose td {
		padding: 8px;
	}
}
