/* Font locali, subset latin. */
@font-face {
	font-family: 'Source Serif 4';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url(../fonts/source-serif-4-latin.woff2) format('woff2');
}
@font-face {
	font-family: 'Sofia Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url(../fonts/sofia-sans-latin.woff2) format('woff2');
}

:root {
	--sea: #0A2A43;
	--sky: #1E8BC3;
	--link: #0E6A9E;
	--paper: #F4F6F5;
	--ink: #0C1C28;
	--muted: #4F5F6B;
	--line: #A9B7C0;
	--serif: 'Source Serif 4', Georgia, serif;
	--sans: 'Sofia Sans', 'Helvetica Neue', Arial, sans-serif;
	--margin: clamp(20px, 3vw, 48px);
}

/* Reset leggero */
*, *::before, *::after { box-sizing: border-box; }
body {
	position: relative;
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 19px;
	line-height: 1.6;
}
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { color: var(--sea); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }
button { font: inherit; cursor: pointer; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	z-index: 100;
	top: 8px;
	left: 8px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 16px;
	clip-path: none;
	background: var(--paper);
}

/* Titoli */
h1, h2, h3 { font-weight: 500; letter-spacing: -.005em; color: var(--sea); }

/* Header: assoluto sopra la hero */
.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 76px;
	padding: 16px var(--margin) 54px;
	background: linear-gradient(180deg, rgba(10, 42, 67, .85) 0%, rgba(10, 42, 67, .6) 55%, rgba(10, 42, 67, 0) 100%);
	color: #fff;
	font-family: var(--sans);
	font-size: 18px;
	font-weight: 500;
}
.site-header a, .ez-menu-dialog a, .site-footer a, .page-hero a { color: #fff; }
.site-header__name {
	font-family: var(--serif);
	font-size: 25px;
	font-weight: 500;
	letter-spacing: -.005em;
	white-space: nowrap;
	text-decoration: none;
}

/* Navigazione desktop */
.ez-nav-full { display: flex; align-items: center; gap: 32px; }
.ez-nav-extras { display: flex; align-items: center; gap: 32px; }
.ez-menu, .ez-menu .sub-menu { margin: 0; padding: 0; list-style: none; }
.ez-menu { display: flex; align-items: center; gap: 32px; }
.ez-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	text-decoration: none;
}
.ez-menu .current-menu-item > a,
.ez-menu .current-menu-ancestor > a {
	text-decoration: underline;
	text-decoration-color: var(--sky);
	text-decoration-thickness: 2px;
	text-underline-offset: 8px;
}
.ez-menu .menu-item-has-children { position: relative; }
.ez-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -16px;
	display: none;
	min-width: 220px;
	padding: 8px 0;
	background: var(--sea);
}
.ez-menu .menu-item-has-children:hover > .sub-menu,
.ez-menu .menu-item-has-children:focus-within > .sub-menu { display: block; }
.ez-menu .sub-menu a { display: flex; padding: 0 16px; white-space: nowrap; }

.ez-instagram { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; text-decoration: none; }
.ez-lang { display: flex; align-items: center; gap: 14px; }
.ez-lang a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 32px;
	font-weight: 400;
	text-decoration: none;
}
.ez-lang a[aria-current] {
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: #fff;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* Hamburger */
.ez-nav-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	min-width: 44px;
	min-height: 44px;
	padding: 10px;
	border: 0;
	background: none;
}
.ez-nav-burger span { display: block; width: 26px; height: 2px; background: #fff; }

/* Menu mobile */
.ez-menu-dialog {
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--sea);
	color: #fff;
}
.ez-menu-dialog[open] { display: flex; flex-direction: column; }
.ez-menu-dialog__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	padding: 0 20px;
}
.ez-menu-close { min-width: 44px; min-height: 44px; padding: 10px; border: 0; background: none; color: #fff; }
.ez-menu-dialog nav { flex: 1; padding: 8px 20px 0; overflow-y: auto; }
.ez-menu-dialog .ez-menu { display: block; font-size: 34px; line-height: 1.15; }
.ez-menu-dialog .ez-menu > li > a {
	display: block;
	min-height: 0;
	padding: 14px 0;
	border-top: 1px solid rgba(255, 255, 255, .35);
}
.ez-menu-dialog .sub-menu {
	position: static;
	display: grid;
	min-width: 0;
	padding: 0 0 12px;
	background: none;
	font-family: var(--sans);
	font-size: 19px;
	line-height: 1.3;
}
.ez-menu-dialog .sub-menu a { padding: 0; }
.ez-menu-dialog .ez-nav-extras {
	justify-content: space-between;
	padding: 16px 20px 24px;
	font-family: var(--sans);
	font-size: 19px;
	font-weight: 600;
}

/* Hero di pagina */
.page-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(400px, 44vw, 640px);
	overflow: hidden;
	background: var(--sea);
	color: #fff;
}
.page-hero--plain { min-height: clamp(260px, 24vw, 340px); }
.page-hero__img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__shade {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 220px;
	background: linear-gradient(0deg, rgba(10, 42, 67, .88) 0%, rgba(10, 42, 67, .6) 50%, rgba(10, 42, 67, 0) 100%);
}
.page-hero__body { position: relative; padding: 0 var(--margin) clamp(24px, 3vw, 44px); }
.page-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--sans);
	font-size: 18px;
	font-weight: 500;
}
.page-hero__title {
	margin: 0;
	color: #fff;
	font-size: clamp(40px, 4.4vw, 64px);
	letter-spacing: -.01em;
	line-height: 1.06;
}

/* Testo del contenuto: colonna vuota a sinistra, testo a destra */
.ez-content {
	display: flex;
	flex-wrap: wrap;
	column-gap: clamp(24px, 4vw, 64px);
	padding: clamp(36px, 4.4vw, 64px) var(--margin) clamp(32px, 4vw, 56px);
}
.ez-content::before { content: ''; flex: 3 1 240px; min-width: 0; }
.ez-entry { flex: 7 1 420px; min-width: 0; max-width: 40em; }
.ez-entry > :first-child { margin-top: 0; }
.ez-entry > p:first-child { font-size: clamp(20px, 1.7vw, 24px); line-height: 1.45; }
.ez-entry h2 { margin: 1.6em 0 .5em; font-size: clamp(30px, 3vw, 44px); line-height: 1.12; }
.ez-entry h3 { margin: 1.4em 0 .5em; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.ez-entry ul, .ez-entry ol { padding-left: 1.4em; }
.ez-entry img, .ez-entry figure { max-width: 100%; height: auto; }
.ez-entry iframe { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.video-container { position: relative; aspect-ratio: 16 / 9; margin: 1.5em 0; }
.video-container iframe { position: absolute; inset: 0; height: 100%; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-family: var(--sans); font-size: 16px; color: var(--muted); }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--sans); font-weight: 600; }
.nav-links a, .nav-links span { display: inline-flex; align-items: center; min-height: 44px; }

/* Numeri */
.ez-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px clamp(16px, 2vw, 32px);
}
.ez-stats__item { padding-top: 12px; border-top: 1px solid var(--line); }
.ez-stats__number {
	color: var(--sea);
	font-size: clamp(44px, 4.2vw, 60px);
	font-weight: 500;
	line-height: 1;
}
.ez-stats__label { padding-top: 6px; font-family: var(--sans); font-size: 17px; font-weight: 500; line-height: 1.3; }

/* Footer */
.site-footer {
	padding: clamp(32px, 3.6vw, 52px) var(--margin) clamp(20px, 2vw, 28px);
	background: var(--sea);
	color: #fff;
	font-family: var(--sans);
	font-size: 16px;
}
.ez-footer-top {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px 32px;
	padding-bottom: clamp(24px, 2.6vw, 36px);
}
.ez-footer-name { font-family: var(--serif); font-size: 25px; font-weight: 500; text-decoration: none; }
.ez-sponsor { display: flex; align-items: center; gap: 14px; }
.ez-sponsor-logo { display: block; width: 72px; height: 60px; object-fit: contain; }
.ez-footer-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 0 32px;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, .3);
}
.ez-footer-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.ez-footer-links a, .ez-credits a, .ez-copyright { display: inline-flex; align-items: center; min-height: 44px; }
.ez-credits { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }

@media (max-width: 1024px) {
	.ez-nav-full { display: none; }
	.ez-nav-burger { display: flex; }
}
@media (max-width: 640px) {
	.ez-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.ez-footer-links { display: grid; grid-template-columns: 1fr 1fr; }
	.ez-credits { display: block; font-size: 14px; }
	.ez-copyright { display: block; min-height: 0; padding-top: 8px; }
}
@media (max-width: 400px) {
	.ez-footer-top { flex-wrap: nowrap; gap: 8px; }
	.ez-footer-name { font-size: 22px; white-space: nowrap; }
	.ez-sponsor { gap: 10px; }
	.ez-sponsor-logo { width: 56px; height: 47px; }
}
@media (max-width: 340px) {
	.ez-sponsor-logo { width: 48px; height: 40px; }
}
