/* Testata e piè di pagina */

.vf-salta {
	position: absolute;
	left: -9999px;
	z-index: 100;
	padding: 0.75rem 1.25rem;
	background: var( --wp--preset--color--verde );
	color: var( --wp--preset--color--avorio );
}

.vf-salta:focus {
	left: 1rem;
	top: 1rem;
}

/* --- Testata --- */

.vf-testata {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var( --wp--preset--color--bianco );
	border-bottom: 1px solid rgba( 92, 59, 40, 0.1 );
}

.vf-testata__barra {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 78rem;
	margin: 0 auto;
	padding: 0.875rem 1.25rem;
}

.vf-marchio {
	display: block;
	text-decoration: none;
	color: var( --wp--preset--color--verde );
}

.vf-marchio__nome {
	display: block;
	font-family: var( --wp--preset--font-family--titoli );
	font-size: 1.5rem;
	line-height: 1.1;
	margin: 0;
}

.vf-marchio__coda {
	display: block;
	font-size: 0.5625rem;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var( --wp--preset--color--oro-testo );
	margin-top: 0.25rem;
}

.custom-logo-link img {
	max-height: 3.25rem;
	width: auto;
}

/* Interruttore mobile */

.vf-testata__interruttore {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem;
	font-size: 0.6875rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var( --wp--preset--color--verde );
	background: none;
	border: 0;
	cursor: pointer;
}

.vf-testata__interruttore-segno,
.vf-testata__interruttore-segno::before,
.vf-testata__interruttore-segno::after {
	display: block;
	width: 1.375rem;
	height: 1px;
	background: currentColor;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.vf-testata__interruttore-segno {
	position: relative;
}

.vf-testata__interruttore-segno::before,
.vf-testata__interruttore-segno::after {
	content: "";
	position: absolute;
	left: 0;
}

.vf-testata__interruttore-segno::before { top: -0.375rem; }
.vf-testata__interruttore-segno::after  { top: 0.375rem; }

[aria-expanded="true"] .vf-testata__interruttore-segno {
	background: transparent;
}

[aria-expanded="true"] .vf-testata__interruttore-segno::before {
	top: 0;
	transform: rotate( 45deg );
}

[aria-expanded="true"] .vf-testata__interruttore-segno::after {
	top: 0;
	transform: rotate( -45deg );
}

/* Navigazione — a tutto schermo su mobile, come da mockup */

.vf-navigazione {
	position: fixed;
	inset: 0;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	padding: 4rem 1.5rem;
	background: var( --wp--preset--color--verde );
}

.vf-navigazione.is-aperta {
	display: flex;
}

.vf-navigazione__elenco {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vf-navigazione__elenco a {
	font-family: var( --wp--preset--font-family--titoli );
	font-size: 1.75rem;
	text-decoration: none;
	color: var( --wp--preset--color--avorio );
}

@media ( min-width: 62rem ) {
	.vf-testata__interruttore {
		display: none;
	}

	.vf-navigazione {
		position: static;
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 2rem;
		padding: 0;
		background: none;
	}

	.vf-navigazione__elenco {
		flex-direction: row;
		gap: 1.75rem;
	}

	.vf-navigazione__elenco a {
		font-family: var( --wp--preset--font-family--corpo );
		font-size: 0.75rem;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: var( --wp--preset--color--verde );
	}

	.vf-navigazione__elenco a:hover,
	.vf-navigazione__elenco a:focus-visible {
		color: var( --wp--preset--color--oro-testo );
	}
}

/* --- Piè di pagina --- */

.vf-pieDiPagina {
	padding: 4rem 1.5rem 2rem;
	background: var( --wp--preset--color--verde );
	color: var( --wp--preset--color--avorio );
}

.vf-pieDiPagina__griglia {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: 1fr;
}

.vf-pieDiPagina__titolo {
	font-family: var( --wp--preset--font-family--corpo );
	font-size: 0.6875rem;
	font-weight: 400;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var( --wp--preset--color--oro-testo );
	margin: 0 0 1rem;
}

.vf-pieDiPagina__elenco {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
}

.vf-pieDiPagina a {
	text-decoration: none;
}

.vf-pieDiPagina a:hover,
.vf-pieDiPagina a:focus-visible {
	text-decoration: underline;
}

.vf-pieDiPagina__coda {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba( 242, 237, 227, 0.2 );
	font-size: 0.75rem;
	opacity: 0.7;
}

@media ( min-width: 48rem ) {
	.vf-pieDiPagina__griglia {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( min-width: 62rem ) {
	.vf-pieDiPagina {
		padding: 5rem 2.5rem 2rem;
	}

	.vf-pieDiPagina__griglia {
		grid-template-columns: repeat( 4, 1fr );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.vf-testata__interruttore-segno,
	.vf-testata__interruttore-segno::before,
	.vf-testata__interruttore-segno::after {
		transition: none;
	}
}

/* Selettore di lingua */

.vf-lingue {
	display: flex;
	gap: 0.75rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.6875rem;
	letter-spacing: 0.16em;
}

.vf-lingue a {
	text-decoration: none;
	color: var( --wp--preset--color--avorio );
	opacity: 0.55;
}

.vf-lingue a.is-attiva,
.vf-lingue a:hover,
.vf-lingue a:focus-visible {
	opacity: 1;
	color: var( --wp--preset--color--oro-testo );
}

@media ( min-width: 62rem ) {
	.vf-lingue a {
		color: var( --wp--preset--color--verde );
	}

	.vf-lingue a.is-attiva,
	.vf-lingue a:hover,
	.vf-lingue a:focus-visible {
		color: var( --wp--preset--color--oro-testo );
	}
}
