:root {
	--vv-background: #f2c280;
	--vv-surface: #fce3c0;
	--vv-text: #3c2a18;
	--vv-title: #5a3a1a;
	--vv-deep: #2d1d0e;
	--vv-border: rgba(90, 58, 26, 0.22);
	--vv-shadow: 0 22px 60px rgba(74, 43, 15, 0.16);
	--vv-radius: 1.5rem;
	--vv-shell: 74rem;
	--vv-reading: 52rem;
}

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

html {
	scroll-behavior: smooth;
}

html body.zagonico-vocabolario,
html body.zagonico-vocabolario.custom-background {
	margin: 0;
	color: var(--vv-text);
	background-color: var(--vv-background);
	background-image: none;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 1rem;
	line-height: 1.65;
}

body.zagonico-vocabolario::before {
	position: fixed;
	z-index: -1;
	top: -18rem;
	right: -16rem;
	width: 40rem;
	height: 40rem;
	border: 1px solid rgba(90, 58, 26, 0.12);
	border-radius: 50%;
	box-shadow: 0 0 0 5rem rgba(252, 227, 192, 0.2), 0 0 0 10rem rgba(252, 227, 192, 0.12);
	content: "";
	pointer-events: none;
}

.zagonico-vocabolario a {
	color: inherit;
}

.zagonico-vocabolario img {
	max-width: 100%;
	height: auto;
}

.vv-shell {
	width: min(calc(100% - 2rem), var(--vv-shell));
	margin-inline: auto;
}

.vv-shell--reading {
	max-width: var(--vv-reading);
}

.vv-skip-link {
	position: fixed;
	z-index: 1000;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.65rem 1rem;
	transform: translateY(-150%);
	border-radius: 0.5rem;
	color: #fff;
	background: var(--vv-deep);
}

.vv-skip-link:focus {
	transform: translateY(0);
}

.vv-header {
	position: sticky;
	z-index: 100;
	top: 0;
	border-bottom: 1px solid var(--vv-border);
	background: rgba(252, 227, 192, 0.9);
	backdrop-filter: blur(16px);
}

.vv-header__inner {
	min-height: 5.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.vv-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	text-decoration: none;
}

.vv-brand__mark {
	width: 3rem;
	height: 3rem;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
}

.vv-brand__mark img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
	filter: drop-shadow(0 3px 5px rgba(60, 42, 24, 0.2));
}

.vv-brand__text {
	display: grid;
	line-height: 1.15;
}

.vv-brand__text strong {
	color: var(--vv-title);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.15rem;
}

.vv-brand__text small {
	margin-top: 0.25rem;
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	opacity: 0.72;
	text-transform: uppercase;
}

.vv-nav__list {
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0.3rem;
	list-style: none;
}

.vv-nav__list a {
	padding: 0.55rem 0.8rem;
	display: block;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 650;
	text-decoration: none;
}

.vv-nav__list a:hover,
.vv-nav__list a:focus-visible,
.vv-nav__list a[aria-current="page"],
.vv-nav__list .current-menu-item > a {
	background: rgba(90, 58, 26, 0.1);
}

.vv-nav-toggle {
	padding: 0.6rem 0.75rem;
	display: none;
	align-items: center;
	gap: 0.65rem;
	border: 1px solid var(--vv-border);
	border-radius: 999px;
	color: var(--vv-text);
	background: transparent;
	font: inherit;
	cursor: pointer;
}

.vv-nav-toggle__icon,
.vv-nav-toggle__icon::before,
.vv-nav-toggle__icon::after {
	width: 1.2rem;
	height: 2px;
	display: block;
	background: currentColor;
	content: "";
	transition: transform 180ms ease;
}

.vv-nav-toggle__icon::before {
	transform: translateY(-0.36rem);
}

.vv-nav-toggle__icon::after {
	transform: translateY(0.24rem);
}

.vv-hero {
	padding: clamp(4rem, 9vw, 8rem) 0 clamp(4.5rem, 9vw, 7rem);
}

.vv-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(19rem, 0.75fr);
	align-items: center;
	gap: clamp(3rem, 8vw, 7rem);
}

.vv-eyebrow {
	margin: 0 0 1rem;
	color: var(--vv-title);
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.vv-hero h1,
.vv-page-header h1 {
	margin: 0;
	color: var(--vv-title);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(3.1rem, 8vw, 6.7rem);
	font-weight: 600;
	letter-spacing: -0.045em;
	line-height: 0.94;
}

.vv-hero__lead {
	max-width: 42rem;
	margin: 1.6rem 0 2rem;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.18rem, 2.4vw, 1.55rem);
	line-height: 1.55;
}

.vv-hero__lead p {
	margin: 0;
}

.vv-button {
	padding: 0.85rem 1.25rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--vv-title);
	border-radius: 999px;
	color: var(--vv-surface);
	background: var(--vv-title);
	font-weight: 750;
	text-decoration: none;
	box-shadow: 0 8px 25px rgba(90, 58, 26, 0.18);
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.vv-button:hover,
.vv-button:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(90, 58, 26, 0.25);
}

.vv-play-badge {
	display: inline-block;
	line-height: 0;
	transition: transform 160ms ease, filter 160ms ease;
}

.vv-play-badge img {
	width: 12.5rem;
	height: auto;
	display: block;
}

.vv-play-badge:hover,
.vv-play-badge:focus-visible {
	transform: translateY(-2px);
	filter: drop-shadow(0 8px 14px rgba(60, 42, 24, 0.2));
}

.vv-play-badge:focus-visible {
	outline: 3px solid var(--vv-title);
	outline-offset: 4px;
	border-radius: 0.45rem;
}

.vv-hero__visual {
	position: relative;
	min-height: 30rem;
	display: grid;
	place-items: center;
}

.vv-hero__visual::before {
	position: absolute;
	width: 22rem;
	height: 22rem;
	border: 1px solid rgba(90, 58, 26, 0.2);
	border-radius: 44% 56% 58% 42%;
	content: "";
	transform: rotate(-8deg);
}

.vv-entry-card {
	position: relative;
	z-index: 2;
	width: min(100%, 31rem);
	max-height: 36rem;
	padding: clamp(1.35rem, 4vw, 2rem);
	overflow: auto;
	border: 1px solid rgba(90, 58, 26, 0.18);
	border-radius: var(--vv-radius);
	background: var(--vv-surface);
	box-shadow: var(--vv-shadow);
}

.vv-entry-card__header {
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--vv-border);
}

.vv-entry-card__label {
	display: block;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	opacity: 0.68;
	text-transform: uppercase;
}

.vv-entry-card__identity {
	margin-bottom: 0.55rem;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	color: var(--vv-title);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
}

.vv-entry-card__identity img {
	width: 2.5rem;
	height: 2.5rem;
	display: block;
	flex: 0 0 auto;
	object-fit: contain;
	filter: drop-shadow(0 2px 4px rgba(60, 42, 24, 0.18));
}

.vv-entry-card h2 {
	margin: 0.15rem 0 0;
	color: var(--vv-title);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(2rem, 5vw, 3.1rem);
	font-weight: 600;
	line-height: 1.08;
}

.vv-entry-card__variants {
	margin: 1rem 0 0;
	font-size: 0.9rem;
}

.vv-entry-card__definitions {
	margin: 1.15rem 0 0;
	padding: 0;
	list-style: none;
}

.vv-entry-card__definitions > li + li {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(90, 58, 26, 0.13);
}

.vv-entry-card__sense {
	display: flex;
	align-items: baseline;
	gap: 0.35rem;
	color: var(--vv-title);
}

.vv-entry-card__sense em {
	font-size: 0.88rem;
}

.vv-entry-card__definition {
	margin-top: 0.2rem;
}

.vv-entry-card__definition > :first-child {
	margin-top: 0;
}

.vv-entry-card__definition > :last-child {
	margin-bottom: 0;
}

.vv-entry-card__tags {
	margin-top: 1.25rem;
	padding-top: 1rem;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.45rem;
	border-top: 1px solid var(--vv-border);
	font-size: 0.78rem;
}

.vv-entry-card__tags span {
	padding: 0.24rem 0.58rem;
	border: 1px solid var(--vv-border);
	border-radius: 999px;
	background: rgba(242, 194, 128, 0.3);
	font-weight: 700;
}

.vv-entry-card__note {
	margin: 1.1rem 0 0;
	font-size: 0.74rem;
	opacity: 0.64;
}

.vv-entry-card--unavailable {
	display: grid;
	min-height: 12rem;
	place-items: center;
	text-align: center;
}

.vv-entry-card--unavailable p {
	margin: 0;
}

.vv-page-header {
	padding: clamp(3.5rem, 8vw, 6rem) 0 2.5rem;
}

.vv-page-header h1 {
	margin-top: 1.3rem;
	font-size: clamp(2.8rem, 7vw, 5rem);
}

.vv-back-link {
	font-size: 0.88rem;
	font-weight: 750;
	text-decoration: none;
}

.vv-content {
	padding-bottom: clamp(4rem, 8vw, 7rem);
}

.zagonico-project-home .vv-content {
	padding-top: 0;
}

.vv-content__card {
	padding: clamp(1.5rem, 5vw, 3.5rem);
	border: 1px solid var(--vv-border);
	border-radius: var(--vv-radius);
	background: var(--vv-surface);
	box-shadow: var(--vv-shadow);
}

.vv-content__card > :first-child {
	margin-top: 0;
}

.vv-content__card > :last-child {
	margin-bottom: 0;
}

.vv-content__card h2,
.vv-content__card h3,
.vv-content__card h4 {
	color: var(--vv-title);
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.2;
}

.vv-content__card h2 {
	margin: 2.2rem 0 1rem;
	font-size: clamp(1.8rem, 4vw, 2.55rem);
}

.vv-content__card h3 {
	font-size: 1.45rem;
}

.vv-content__card a:not(.wp-block-button__link) {
	color: var(--vv-title);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.vv-content__card .wp-block-button__link {
	border-radius: 999px;
	color: var(--vv-surface);
	background: var(--vv-title);
}

.vv-content__card .alignwide {
	width: min(68rem, calc(100vw - 4rem));
	max-width: none;
	margin-left: 50%;
	transform: translateX(-50%);
}

.vv-footer {
	padding: 2.5rem 0;
	border-top: 1px solid var(--vv-border);
	background: rgba(90, 58, 26, 0.08);
}

.vv-footer__inner {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
}

.vv-footer strong {
	color: var(--vv-title);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.2rem;
}

.vv-footer p {
	margin: 0.35rem 0 0;
}

.vv-footer__credit {
	font-size: 0.82rem;
	opacity: 0.7;
}

@media (max-width: 780px) {
	.vv-header__inner {
		position: relative;
		min-height: 4.7rem;
	}

	.vv-nav-toggle {
		display: inline-flex;
	}

	.vv-nav {
		position: absolute;
		top: calc(100% - 0.25rem);
		right: 0;
		left: 0;
		padding: 0.75rem;
		display: none;
		border: 1px solid var(--vv-border);
		border-radius: 1rem;
		background: var(--vv-surface);
		box-shadow: var(--vv-shadow);
	}

	.vv-nav.is-open {
		display: block;
	}

	.vv-nav__list {
		display: grid;
	}

	.vv-nav__list a {
		padding: 0.75rem;
	}

	.vv-hero__grid {
		grid-template-columns: 1fr;
	}

	.vv-hero__visual {
		min-height: 24rem;
	}

	.vv-footer__inner {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.vv-brand__text small {
		display: none;
	}

	.vv-hero h1 {
		font-size: clamp(2.8rem, 16vw, 4.2rem);
	}

	.vv-entry-card {
		max-height: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

