/**
 * Ventuv — foglio di stile del tema.
 *
 * I token (colori, tipografia, spaziature, raggi, motion) vivono in
 * theme.json. Qui stanno composizione, componenti, stati e animazioni.
 * Un blocco per componente, con i propri breakpoint in coda: ogni parte
 * del sito si modifica in un punto solo.
 *
 * Regola parametrica: ogni gap, raggio, altezza, spaziatura e taglia deriva
 * da un token (--ventuv-* in :root, a sua volta letto da theme.json).
 * Le griglie "split" (titolo a sinistra, colonna laterale a destra) usano
 * tutte le stesse colonne (--ventuv-split) e lo stesso gutter (--ventuv-gap-xl),
 * e collassano tutte a 960px.
 *
 * Indice
 *   1. Base e variabili
 *   2. Tipografia e testate di sezione
 *   3. Componenti condivisi: kicker, bottoni, chip, stato, glass, glow, card, pannello scuro, aside, elenchi, passi, bleed
 *   4. Header
 *   5. Hero
 *   6. Explorer delle applicazioni
 *   7. Marchi, collaborazione e metodo
 *   8. Software
 *   9. News in home
 *  10. Invito al contatto (pannello scuro riusato anche in Lavora con noi)
 *  11. Footer
 *  12. Archivio news e articolo
 *  13. Pagine interne: News, Contatti e Lavora con noi
 *  14. Motion e keyframes
 */

/* 1. Base e variabili ---------------------------------------------------- */

:root {
	--ventuv-header-height: 4.5rem;
	--ventuv-header-inner-height: 3rem;
	--ventuv-accent: var(--wp--preset--color--accent);
	--ventuv-ember: var(--wp--preset--color--ember);
	--ventuv-signal: linear-gradient(90deg, var(--wp--preset--color--accent), var(--wp--preset--color--ember));

	/* Linee: tre livelli su chiaro (soft / control / line) e due su scuro (inverse / inverse-soft). */
	--ventuv-border: 1px solid var(--wp--preset--color--line);
	--ventuv-border-soft: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 9%, transparent);
	--ventuv-border-control: 1px solid color-mix(in srgb, var(--wp--preset--color--contrast) 20%, transparent);
	--ventuv-line-inverse: rgba(255, 255, 255, 0.14);
	--ventuv-line-inverse-soft: rgba(255, 255, 255, 0.08);
	--ventuv-border-inverse: 1px solid var(--ventuv-line-inverse);
	--ventuv-border-inverse-soft: 1px solid var(--ventuv-line-inverse-soft);
	--ventuv-line-hover: color-mix(in srgb, var(--ventuv-accent) 40%, var(--wp--preset--color--line));
	--ventuv-text-inverse: rgba(255, 255, 255, 0.72);

	/* Ombre accentate (sollevamento) e anelli dei punti di stato. */
	--ventuv-shadow-accent: 0 0.6rem 1.4rem color-mix(in srgb, var(--ventuv-accent) 28%, transparent);
	--ventuv-shadow-ember: 0 0.6rem 1.4rem color-mix(in srgb, var(--ventuv-ember) 32%, transparent);
	--ventuv-halo-accent: 0 0 0 0.3rem color-mix(in srgb, var(--ventuv-accent) 20%, transparent);
	--ventuv-halo-ember: 0 0 0 0.3rem color-mix(in srgb, var(--ventuv-ember) 20%, transparent);
	--ventuv-glow-ember: 0 0 1rem var(--ventuv-ember);

	/* Griglia di calibrazione a punti (hero, page-hero, segnaposto, mappa). */
	--ventuv-dot-grid: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--contrast) 15%, transparent) 1px, transparent 1.6px);
	--ventuv-dot-grid-size: 1.75rem;

	--ventuv-radius-sm: var(--wp--custom--radius--sm);
	--ventuv-radius: var(--wp--custom--radius--md);
	--ventuv-radius-lg: var(--wp--custom--radius--lg);

	--ventuv-gap-xxs: var(--wp--custom--gap--xxs);
	--ventuv-gap-xs: var(--wp--custom--gap--xs);
	--ventuv-gap-sm: var(--wp--custom--gap--sm);
	--ventuv-gap: var(--wp--custom--gap--md);
	--ventuv-gap-lg: var(--wp--custom--gap--lg);
	--ventuv-gap-xl: var(--wp--custom--gap--xl);
	--ventuv-gap-grid: var(--wp--custom--gap--grid);

	/* Griglia split, rientro interno dei pannelli, sbordatura al margine di pagina. */
	--ventuv-split: var(--wp--custom--layout--split);
	--ventuv-inset: var(--wp--custom--inset);
	--ventuv-bleed: var(--wp--style--root--padding-left, var(--wp--preset--spacing--30));
	--ventuv-card-padding: var(--wp--custom--card--padding);
	--ventuv-panel-padding: var(--wp--custom--panel--padding);
	--ventuv-dot: var(--wp--custom--dot);

	--ventuv-control-height: var(--wp--custom--control--height);
	--ventuv-control-height-small: var(--wp--custom--control--height-small);
	--ventuv-control-padding-inline: var(--wp--custom--control--padding-inline);

	--ventuv-ease: var(--wp--custom--motion--ease);
	--ventuv-fast: var(--wp--custom--motion--fast);
	--ventuv-base: var(--wp--custom--motion--base);
	--ventuv-slow: var(--wp--custom--motion--slow);

	--ventuv-section-space: var(--wp--custom--section--space);
	--ventuv-head-space: var(--wp--custom--section--head);

	--ventuv-measure-lead: var(--wp--custom--measure--lead);
	--ventuv-measure-wide: var(--wp--custom--measure--wide);
	--ventuv-measure-display: var(--wp--custom--measure--display);
	--ventuv-measure-title: var(--wp--custom--measure--title);

	--ventuv-weight-label: var(--wp--custom--weight--label);
	--ventuv-weight-title: var(--wp--custom--weight--title);

	--ventuv-leading-tight: var(--wp--custom--leading--tight);
	--ventuv-leading-snug: var(--wp--custom--leading--snug);
	--ventuv-leading-compact: var(--wp--custom--leading--compact);
	--ventuv-leading-relaxed: var(--wp--custom--leading--relaxed);
	--ventuv-leading-prose: var(--wp--custom--leading--prose);

	--ventuv-underline-offset: var(--wp--custom--link--underline-offset);
	--ventuv-panel-title: var(--wp--preset--font-size--panel);
}

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

@supports (overflow: clip) {
	body {
		overflow-x: clip;
	}
}

.wp-site-blocks > *,
main.wp-block-group > * {
	margin-block-start: 0;
}

:where([id]) {
	scroll-margin-top: calc(var(--ventuv-header-height) + var(--ventuv-gap-lg));
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--ventuv-accent);
	outline-offset: 3px;
}

::selection {
	background: var(--ventuv-accent);
	color: var(--wp--preset--color--base);
}

img,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

svg {
	max-width: 100%;
}

/* 2. Tipografia e testate di sezione ------------------------------------ */

/* Il peso dei titoli è custom.weight.title in theme.json: qui solo stretch e spaziatura. */
h1,
h2,
h3,
h4 {
	font-stretch: 106%;
	text-wrap: balance;
}

h3,
h4 {
	letter-spacing: -0.015em;
}

p {
	text-wrap: pretty;
}

.ventuv-section {
	padding-block: var(--ventuv-section-space);
}

.ventuv-section > * {
	margin-block: 0;
}

/* Testata di sezione: griglia split condivisa con hero, software e pagine interne. */
.ventuv-section__head {
	display: grid;
	grid-template-columns: var(--ventuv-split);
	gap: var(--ventuv-gap-lg) var(--ventuv-gap-xl);
	align-items: end;
	margin-bottom: var(--ventuv-head-space);
}

/* Testata senza contenuto sotto (intro di Lavora con noi): lo spazio lo dà la sezione. */
.ventuv-section__head:last-child {
	margin-bottom: 0;
}

.ventuv-section__head > * {
	margin: 0;
}

.ventuv-section__head > div {
	display: grid;
	gap: var(--ventuv-gap);
}

.ventuv-section__head > div > * {
	margin: 0;
}

.ventuv-section__head h2 {
	max-width: var(--ventuv-measure-title);
}

.ventuv-section__lead {
	max-width: var(--ventuv-measure-lead);
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--lg);
	line-height: var(--ventuv-leading-relaxed);
}

.ventuv-section__link {
	justify-self: end;
	align-self: end;
}

/* Link d'azione con riga rossa: un solo stile per card, testate, paginazione e navigazione articolo. */
.ventuv-link,
.ventuv-section__link a,
.wp-block-query-pagination a,
.wp-block-post-navigation-link a {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--compact);
	font-weight: var(--ventuv-weight-label);
	text-decoration: underline;
	text-decoration-color: var(--ventuv-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: var(--ventuv-underline-offset);
	transition: color var(--ventuv-fast);
}

:is(.ventuv-link, .ventuv-section__link a, .wp-block-query-pagination a, .wp-block-post-navigation-link a):is(:hover, :focus-visible) {
	color: var(--ventuv-accent);
	text-decoration: underline;
}

/* Il core toglie la sottolineatura al blocco "Leggi di più": la ripristiniamo a specificità (0,2,0). */
.wp-block-read-more.ventuv-link {
	text-decoration: underline;
}

@media (max-width: 960px) {
	.ventuv-section__head {
		grid-template-columns: 1fr;
	}

	.ventuv-section__link {
		justify-self: start;
	}
}

/* 3. Componenti condivisi ------------------------------------------------ */

/* Kicker: riga corta sopra ogni titolo, con il segno rosso che si disegna. */
.ventuv-kicker {
	display: flex;
	gap: var(--ventuv-gap-sm);
	align-items: center;
	margin: 0;
	color: var(--ventuv-accent);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--ventuv-weight-label);
	line-height: var(--ventuv-leading-compact);
}

.ventuv-kicker::before {
	flex: 0 0 auto;
	width: 1.5rem;
	height: 2px;
	background: var(--ventuv-signal);
	border-radius: 2px;
	content: "";
}

.ventuv-kicker--light {
	color: var(--ventuv-ember);
}

/* Bottoni: il core (.wp-element-button) e gli anchor del tema condividono lo stesso stile (stessi token di theme.json). */
.wp-element-button,
.ventuv-button {
	position: relative;
	box-sizing: border-box;
	display: inline-flex;
	gap: var(--ventuv-gap-sm);
	align-items: center;
	justify-content: center;
	min-height: var(--ventuv-control-height);
	padding: var(--ventuv-gap-sm) var(--ventuv-control-padding-inline);
	overflow: hidden;
	background: var(--ventuv-accent);
	border: 1px solid transparent;
	border-radius: var(--ventuv-radius);
	color: var(--wp--preset--color--base);
	cursor: pointer;
	font: inherit;
	font-size: var(--wp--preset--font-size--compact);
	font-weight: var(--ventuv-weight-label);
	line-height: var(--ventuv-leading-snug);
	text-decoration: none;
	transition:
		background-color var(--ventuv-fast),
		border-color var(--ventuv-fast),
		color var(--ventuv-fast),
		box-shadow var(--ventuv-fast),
		transform var(--ventuv-fast);
}

.wp-element-button::after,
.ventuv-button::after {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
	content: "";
	pointer-events: none;
	transform: translateX(-120%);
}

:is(.wp-element-button, .ventuv-button):is(:hover, :focus-visible) {
	background: var(--wp--preset--color--accent-deep);
	color: var(--wp--preset--color--base);
	box-shadow: var(--ventuv-shadow-accent);
	transform: translateY(-1px);
}

:is(.wp-element-button, .ventuv-button):is(:hover, :focus-visible)::after {
	transform: translateX(120%);
	transition: transform 650ms var(--ventuv-ease);
}

/* Il padding va ripetuto: il core impone .667em 1.333em sullo stile outline. */
.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link,
.ventuv-button--outline {
	padding: var(--ventuv-gap-sm) var(--ventuv-control-padding-inline);
	background: transparent;
	border: var(--ventuv-border-control);
	color: var(--wp--preset--color--contrast);
}

.wp-block-buttons .wp-block-button.is-style-outline > .wp-block-button__link:is(:hover, :focus-visible),
.ventuv-button--outline:is(:hover, :focus-visible) {
	background: var(--wp--preset--color--surface);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--contrast);
	box-shadow: none;
}

.ventuv-button--ember {
	background: var(--ventuv-ember);
	color: var(--wp--preset--color--graphite);
}

.ventuv-button--ember:is(:hover, :focus-visible) {
	background: color-mix(in srgb, var(--ventuv-ember) 84%, white);
	color: var(--wp--preset--color--graphite);
	box-shadow: var(--ventuv-shadow-ember);
}

.ventuv-button--small {
	min-height: var(--ventuv-control-height-small);
	padding: var(--ventuv-gap-xs) var(--ventuv-gap);
}

/* Chip: elenchi brevi di funzioni o ambiti (sempre ul > li). */
.ventuv-chips {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ventuv-gap-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ventuv-chips li {
	padding: var(--ventuv-gap-xs) var(--ventuv-gap-sm);
	border: var(--ventuv-border-control);
	border-radius: 999px;
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: var(--ventuv-weight-label);
	line-height: var(--ventuv-leading-compact);
}

.ventuv-chips--inverse li {
	border-color: var(--ventuv-line-inverse);
	color: var(--wp--preset--color--base);
}

/* Stato: punto rosso con etichetta ("Controllo attivo"). */
.ventuv-status {
	display: inline-flex;
	gap: var(--ventuv-gap-sm);
	align-items: center;
	font-size: var(--wp--preset--font-size--xs);
	font-weight: var(--ventuv-weight-label);
	line-height: var(--ventuv-leading-snug);
}

.ventuv-status i {
	flex: 0 0 auto;
	width: 0.5rem;
	height: 0.5rem;
	background: var(--ventuv-accent);
	border-radius: 50%;
	box-shadow: var(--ventuv-halo-accent);
}

.ventuv-status--light i {
	background: var(--ventuv-ember);
	box-shadow: var(--ventuv-halo-ember);
}

/* Glass: header e badge sui visual (variante scura per lo stato dell'explorer). */
.ventuv-glass {
	background-color: var(--wp--custom--glass--background);
	border: 1px solid var(--wp--custom--glass--border);
	-webkit-backdrop-filter: blur(var(--wp--custom--glass--blur)) saturate(140%);
	backdrop-filter: blur(var(--wp--custom--glass--blur)) saturate(140%);
}

.ventuv-glass--dark {
	background-color: var(--wp--custom--glass--background-dark);
	border: var(--ventuv-border-inverse);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.ventuv-glass {
		background-color: var(--wp--preset--color--base);
		border-color: var(--wp--preset--color--line);
	}

	.ventuv-glass--dark {
		background-color: var(--wp--preset--color--graphite);
		border: var(--ventuv-border-inverse);
	}
}

/* Badge in vetro appoggiato sui visual (stato dell'explorer, didascalia del software): stessa geometria. */
.ventuv-explorer__status,
.ventuv-visual figcaption {
	display: flex;
	gap: var(--ventuv-gap);
	align-items: center;
	padding: var(--ventuv-gap-sm) var(--ventuv-gap);
	border-radius: var(--ventuv-radius);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: var(--ventuv-weight-label);
	line-height: var(--ventuv-leading-compact);
}

/* Neutralizza small { font-size: smaller } e strong { font-weight: bolder } dello UA. */
.ventuv-explorer__status small,
.ventuv-visual figcaption strong {
	font-size: inherit;
	font-weight: inherit;
}

/* Glow: riflesso sul bordo e alone che seguono il puntatore (JS imposta --ventuv-mx/--ventuv-my). */
.ventuv-glow {
	--ventuv-mx: 50%;
	--ventuv-my: 50%;

	position: relative;
	overflow: hidden;
}

.ventuv-glow > * {
	position: relative;
	z-index: 1;
}

.ventuv-glow::before,
.ventuv-glow::after {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	content: "";
	opacity: 0;
	pointer-events: none;
	transition: opacity 420ms ease;
}

.ventuv-glow::before {
	z-index: 2;
	padding: 1px;
	background: radial-gradient(20rem circle at var(--ventuv-mx) var(--ventuv-my), var(--ventuv-ember), transparent 55%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
}

.ventuv-glow::after {
	z-index: 0;
	background: radial-gradient(28rem circle at var(--ventuv-mx) var(--ventuv-my), color-mix(in srgb, var(--ventuv-ember) 12%, transparent), transparent 60%);
}

@media (hover: hover) and (pointer: fine) {
	.ventuv-glow:hover::before,
	.ventuv-glow:hover::after {
		opacity: 1;
	}
}

/* Card chiara: base condivisa da delivery, metodo, listing, contatti, mappa e ruoli. */
.ventuv-card {
	background: var(--wp--preset--color--surface);
	border: var(--ventuv-border-soft);
	border-radius: var(--ventuv-radius-lg);
}

.ventuv-card--raised {
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--soft);
}

.ventuv-card--lift {
	transition:
		border-color var(--ventuv-base),
		box-shadow var(--ventuv-base),
		transform var(--ventuv-base);
}

.ventuv-card--lift:is(:hover, :focus-within) {
	border-color: var(--ventuv-line-hover);
	box-shadow: var(--wp--preset--shadow--soft);
	transform: translateY(-3px);
}

/* Pannello scuro: base condivisa da explorer, pipeline, card email e inviti al contatto. */
.ventuv-panel-dark {
	--ventuv-panel-bg: var(--wp--preset--color--graphite);
	--ventuv-panel-fg: var(--wp--preset--color--base);

	background: var(--ventuv-panel-bg);
	color: var(--ventuv-panel-fg);
}

/* Variante con barra "signal" in testa: inviti al contatto e card email. */
.ventuv-panel-dark--signal {
	position: relative;
	overflow: hidden;
}

.ventuv-panel-dark--signal::before {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: var(--ventuv-signal);
	content: "";
}

/* Aside: colonna laterale con riga verticale sfumata (hero, page-hero). Tutti i figli hanno la stessa larghezza. */
.ventuv-aside {
	position: relative;
	display: grid;
	gap: var(--ventuv-gap);
	align-content: start;
	padding-left: var(--ventuv-inset);
}

.ventuv-aside > * {
	max-width: none;
	margin: 0;
}

.ventuv-aside::before {
	position: absolute;
	inset: var(--ventuv-gap-xxs) auto var(--ventuv-gap-xxs) 0;
	width: 2px;
	background: linear-gradient(to bottom, var(--ventuv-accent), var(--ventuv-ember));
	border-radius: 2px;
	content: "";
}

/* Archivi senza descrizione: la colonna laterale non esiste. */
.ventuv-aside:empty {
	display: none;
}

@media (max-width: 960px) {
	.ventuv-aside {
		max-width: var(--ventuv-measure-wide);
	}
}

/* Su telefono la riga verticale diventa una barra orizzontale sopra il testo. */
@media (max-width: 560px) {
	.ventuv-aside {
		padding: var(--ventuv-gap-lg) 0 0;
	}

	.ventuv-aside::before {
		inset: 0 auto auto 0;
		width: 3rem;
		height: 2px;
	}
}

/* Elenco puntato con punto rosso: card e pannello scuro (variante inverse). */
.ventuv-dots {
	--ventuv-dots-indent: calc(var(--ventuv-dot) + var(--ventuv-gap-sm));

	display: grid;
	gap: var(--ventuv-gap-sm);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ventuv-dots li {
	position: relative;
	padding-left: var(--ventuv-dots-indent);
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--compact);
	line-height: var(--ventuv-leading-relaxed);
}

/* Il punto sta al centro della prima riga: metà interlinea meno metà diametro. */
.ventuv-dots li::before {
	position: absolute;
	top: calc(var(--ventuv-leading-relaxed) * 0.5em - var(--ventuv-dot) / 2);
	left: 0;
	width: var(--ventuv-dot);
	height: var(--ventuv-dot);
	background: var(--ventuv-accent);
	border-radius: 50%;
	content: "";
}

.ventuv-dots--inverse li {
	color: var(--ventuv-text-inverse);
	font-weight: var(--ventuv-weight-label);
}

.ventuv-dots--inverse li::before {
	background: var(--ventuv-ember);
}

/* Passi numerati (01-04): base condivisa da metodo e pipeline. */
.ventuv-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.ventuv-steps small {
	color: var(--ventuv-accent);
	font-size: var(--wp--preset--font-size--xs);
	font-weight: var(--ventuv-weight-label);
	font-variant-numeric: tabular-nums;
}

.ventuv-steps strong {
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--ventuv-weight-title);
	line-height: var(--ventuv-leading-snug);
}

.ventuv-panel-dark .ventuv-steps small {
	color: var(--ventuv-ember);
}

/* Punto luminoso in viaggio lungo la linea di segnale (metodo e pipeline). */
.ventuv-method__flow::after,
.ventuv-pipeline__signal i {
	position: absolute;
	top: 50%;
	left: 0;
	width: 0.6rem;
	height: 0.6rem;
	background: var(--ventuv-ember);
	border-radius: 50%;
	box-shadow: var(--ventuv-halo-ember), var(--ventuv-glow-ember);
	opacity: 0;
	transform: translate(-50%, -50%);
}

@media (max-width: 840px) {
	.ventuv-steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Pannelli a tutto schermo su telefono (.ventuv-bleed nel markup). Il prefisso .wp-site-blocks
   dà (0,2,0) e gli !important battono il margin auto !important che WordPress impone ai figli
   dei gruppi constrained. Il rientro interno (--ventuv-inset) coincide con il margine di pagina. */
@media (max-width: 560px) {
	.ventuv-steps {
		grid-template-columns: 1fr;
	}

	.wp-site-blocks .ventuv-bleed {
		--ventuv-inset: var(--ventuv-bleed);

		box-sizing: border-box;
		width: auto !important;
		max-width: none !important;
		margin-inline: calc(-1 * var(--ventuv-bleed)) !important;
		border-inline: 0;
		border-radius: 0;
	}
}

/* 4. Header -------------------------------------------------------------- */

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

body.admin-bar header.wp-block-template-part {
	top: 32px;
}

/* Il padding deriva dall'altezza dell'header e da quella della riga interna: l'header misura esattamente --ventuv-header-height. */
.ventuv-header {
	min-height: var(--ventuv-header-height);
	padding-block: calc((var(--ventuv-header-height) - var(--ventuv-header-inner-height)) / 2);
	border-width: 0 0 1px;
}

.ventuv-header__inner {
	min-height: var(--ventuv-header-inner-height);
}

.ventuv-logo {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
}

.ventuv-logo img {
	width: var(--wp--custom--navigation--logo-width);
	height: auto;
}

.ventuv-header__actions {
	gap: clamp(1rem, 2.5vw, 2rem);
}

.ventuv-navigation {
	font-size: var(--wp--preset--font-size--compact);
	font-weight: var(--ventuv-weight-label);
}

.ventuv-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.ventuv-navigation .wp-block-navigation-item__content::after {
	display: block;
	width: 100%;
	height: 2px;
	margin-top: 0.15rem;
	background: var(--ventuv-signal);
	border-radius: 2px;
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--ventuv-base) var(--ventuv-ease);
}

.ventuv-navigation .wp-block-navigation-item__content:is(:hover, :focus-visible)::after,
.ventuv-navigation .current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

.ventuv-mobile-only {
	display: none !important;
}

@media (max-width: 960px) {
	/* Il menu fixed deve riferirsi al viewport, anche tra 841 e 960px. */
	.ventuv-header {
		background: var(--wp--preset--color--base);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}

	.ventuv-header__cta {
		display: none;
	}

	.ventuv-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.ventuv-navigation .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}

	.ventuv-navigation .wp-block-navigation__responsive-container-open,
	.ventuv-navigation .wp-block-navigation__responsive-container-close {
		align-items: center;
		justify-content: center;
		width: var(--ventuv-control-height);
		height: var(--ventuv-control-height);
		border: var(--ventuv-border);
		border-radius: var(--ventuv-radius);
		background: var(--wp--preset--color--base);
	}

	/* Questa specificità supera colori e padding dell'overlay nativo WP. */
	.ventuv-header .ventuv-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
		--ventuv-menu-top: max(var(--ventuv-gap), env(safe-area-inset-top, 0px));
		--ventuv-menu-bottom: max(var(--ventuv-gap), env(safe-area-inset-bottom, 0px));

		padding: var(--ventuv-menu-top) max(var(--ventuv-gap), env(safe-area-inset-right, 0px)) var(--ventuv-menu-bottom) max(var(--ventuv-gap), env(safe-area-inset-left, 0px));
		background: var(--wp--custom--navigation--scrim);
		color: var(--wp--preset--color--contrast);
		animation: none;
	}

	.ventuv-navigation .is-menu-open .wp-block-navigation__responsive-close {
		width: 100%;
		max-width: var(--wp--custom--navigation--panel-width);
		margin-inline: auto 0;
	}

	.ventuv-navigation .is-menu-open .wp-block-navigation__responsive-dialog {
		display: flex;
		flex-direction: column;
		gap: var(--ventuv-gap);
		max-height: calc(100vh - var(--ventuv-menu-top) - var(--ventuv-menu-bottom));
		max-height: calc(100dvh - var(--ventuv-menu-top) - var(--ventuv-menu-bottom));
		padding: var(--ventuv-inset);
		border: var(--ventuv-border);
		border-radius: var(--ventuv-radius-lg);
		background: var(--wp--preset--color--base);
		box-shadow: var(--wp--preset--shadow--lifted);
	}

	/* Marchio decorativo: il dialogo conserva il nome accessibile nativo. */
	.ventuv-navigation .is-menu-open .wp-block-navigation__responsive-dialog::before {
		flex: 0 0 var(--ventuv-control-height);
		background: url('../img/ventuv-logo.svg') left center / var(--wp--custom--navigation--logo-width) auto no-repeat;
		content: "";
	}

	.ventuv-navigation .is-menu-open .wp-block-navigation__responsive-container-close {
		display: flex;
		top: var(--ventuv-inset);
		right: var(--ventuv-inset);
	}

	.ventuv-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		min-height: 0;
		padding: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		align-items: stretch;
		justify-content: flex-start;
	}

	.ventuv-navigation .is-menu-open .wp-block-navigation__container {
		width: 100%;
		flex: 0 0 auto;
		gap: 0 !important;
		align-items: stretch !important;
	}

	.ventuv-navigation .is-menu-open .wp-block-navigation-item {
		width: 100%;
		border-bottom: var(--ventuv-border);
	}

	/* WP annulla il padding dei link aperti: la regola deve includere lo stato. */
	.ventuv-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content {
		box-sizing: border-box;
		display: flex;
		align-items: center;
		width: 100%;
		min-height: var(--wp--custom--navigation--item-height);
		padding: var(--ventuv-gap) var(--ventuv-gap-sm);
		font-size: var(--wp--preset--font-size--lg);
		font-weight: var(--ventuv-weight-label);
		line-height: var(--ventuv-leading-relaxed);
		letter-spacing: normal;
		color: var(--wp--preset--color--contrast);
	}

	.ventuv-navigation .wp-block-navigation-item__content::after {
		content: none;
	}

	.ventuv-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .wp-block-navigation-item__content:is(:hover, :focus-visible) {
		background: var(--wp--preset--color--surface);
		color: var(--ventuv-accent);
	}

	.ventuv-navigation .is-menu-open .wp-block-navigation-item__content:focus-visible {
		outline-offset: -3px;
	}

	.ventuv-navigation .ventuv-mobile-only {
		display: flex !important;
	}

	.ventuv-navigation .is-menu-open .ventuv-mobile-only {
		margin-top: var(--ventuv-gap);
		border: 0;
	}

	.ventuv-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .ventuv-mobile-only .wp-block-navigation-item__content {
		justify-content: center;
		border-radius: var(--ventuv-radius);
		background: var(--ventuv-accent);
		color: var(--wp--preset--color--base);
	}

	.ventuv-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .ventuv-mobile-only .wp-block-navigation-item__content:focus-visible {
		outline-color: var(--wp--preset--color--base);
	}

	body.admin-bar .ventuv-header .ventuv-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
		--ventuv-menu-top: calc(46px + var(--ventuv-gap));
	}

	.has-modal-open body.admin-bar .ventuv-navigation .is-menu-open .wp-block-navigation__responsive-dialog {
		margin-top: 0;
	}
}

@media (min-width: 783px) and (max-width: 960px) {
	body.admin-bar .ventuv-header .ventuv-navigation.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
		--ventuv-menu-top: calc(32px + var(--ventuv-gap));
	}
}

@media (max-width: 782px) and (min-width: 601px) {
	body.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}

@media (max-width: 600px) {
	body.admin-bar header.wp-block-template-part {
		top: 0;
	}
}

@media (max-width: 560px) {
	:root {
		--ventuv-header-height: 4rem;
	}

	.ventuv-logo img {
		width: 104px;
	}
}

/* 5. Hero ---------------------------------------------------------------- */

/* L'explorer è la prima cosa in vista: la hero parte subito sotto la testata e la dichiarazione segue. */
.ventuv-hero {
	position: relative;
	isolation: isolate;
	padding-top: var(--ventuv-gap-lg);
	padding-bottom: calc(var(--ventuv-section-space) * 0.75);
	background-color: var(--wp--preset--color--base);
}

.ventuv-hero > * {
	margin-block: 0;
}

/* L'alone caldo sporge a destra: si taglia solo in orizzontale, così l'ombra dell'explorer resta. */
@supports (overflow: clip) {
	.ventuv-hero {
		overflow-x: clip;
	}
}

/* Griglia di calibrazione a punti, come un target di visione, che sfuma verso il basso. */
.ventuv-hero::before {
	position: absolute;
	inset: 0 0 auto;
	z-index: -1;
	height: 62%;
	background-image: var(--ventuv-dot-grid);
	background-size: var(--ventuv-dot-grid-size) var(--ventuv-dot-grid-size);
	content: "";
	mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
	-webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 92%);
}

.ventuv-hero::after {
	position: absolute;
	top: -12rem;
	right: -10rem;
	z-index: -1;
	width: 38rem;
	height: 38rem;
	background: radial-gradient(circle, color-mix(in srgb, var(--ventuv-ember) 14%, transparent), transparent 62%);
	content: "";
	pointer-events: none;
}

.ventuv-hero__intro {
	display: grid;
	grid-template-columns: var(--ventuv-split);
	gap: var(--wp--preset--spacing--40) var(--ventuv-gap-xl);
	align-items: start;
	margin-top: var(--ventuv-section-space);
}

.ventuv-hero__copy {
	display: grid;
	gap: var(--ventuv-gap);
	align-content: start;
}

/* Tutto ciò che sta nelle due colonne occupa la stessa larghezza: nessun max-width per figlio (l'aside fa lo stesso). */
.ventuv-hero__copy > * {
	max-width: none;
	margin: 0;
}

.ventuv-hero__copy h2 {
	max-width: var(--ventuv-measure-display);
	font-size: var(--wp--preset--font-size--xxxl);
}

.ventuv-hero__lead {
	font-size: var(--wp--preset--font-size--lg);
	line-height: var(--ventuv-leading-relaxed);
}

/* Card dei destinatari e bottoni condividono la stessa griglia a due colonne e lo stesso gap. */
.ventuv-audience,
.ventuv-hero__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ventuv-gap-sm);
}

.ventuv-audience span {
	display: grid;
	gap: var(--ventuv-gap-xxs);
	padding: var(--ventuv-gap-sm) var(--ventuv-gap);
	background: var(--wp--preset--color--surface);
	border: var(--ventuv-border-soft);
	border-radius: var(--ventuv-radius);
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--xs);
	line-height: var(--ventuv-leading-compact);
}

.ventuv-audience strong {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--ventuv-weight-title);
}

.ventuv-hero__actions .wp-block-button {
	display: grid;
}

.ventuv-hero__actions .wp-element-button {
	width: 100%;
}

/* Sequenza di apertura: prima l'explorer, poi dichiarazione e riassunto, una sola volta. */
html.ventuv-js .ventuv-explorer,
html.ventuv-js .ventuv-hero__copy > *,
html.ventuv-js .ventuv-hero__summary > * {
	animation: ventuv-rise var(--ventuv-slow) var(--ventuv-ease) both;
}

html.ventuv-js .ventuv-hero__copy > :nth-child(1) { animation-delay: 240ms; }
html.ventuv-js .ventuv-hero__copy > :nth-child(2) { animation-delay: 320ms; }
html.ventuv-js .ventuv-hero__summary > :nth-child(1) { animation-delay: 400ms; }
html.ventuv-js .ventuv-hero__summary > :nth-child(2) { animation-delay: 480ms; }
html.ventuv-js .ventuv-hero__summary > :nth-child(3) { animation-delay: 560ms; }

@media (max-width: 960px) {
	.ventuv-hero__intro {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.ventuv-audience,
	.ventuv-hero__actions {
		grid-template-columns: 1fr;
	}
}

/* 6. Explorer delle applicazioni ---------------------------------------- */

.ventuv-explorer {
	position: relative;
	box-sizing: border-box;
	min-width: 0;
	overflow: hidden;
	background: var(--wp--preset--color--base);
	border: var(--ventuv-border-soft);
	border-radius: var(--ventuv-radius-lg);
	box-shadow: var(--wp--preset--shadow--lifted);
}

/* Testata: kicker, prima tab, badge di stato e contenuto partono tutti da --ventuv-inset. */
.ventuv-explorer__header {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ventuv-gap) var(--ventuv-gap-lg);
	justify-content: space-between;
	align-items: center;
	padding: var(--ventuv-gap) var(--ventuv-inset);
	border-bottom: var(--ventuv-border);
}

.ventuv-explorer__heading {
	display: grid;
	gap: var(--ventuv-gap-xs);
}

.ventuv-explorer__heading > * {
	margin: 0;
}

.ventuv-explorer__heading h1 {
	font-size: var(--ventuv-panel-title);
}

.ventuv-explorer__controls {
	display: none;
	gap: var(--ventuv-gap-xs);
	align-items: center;
}

.ventuv-explorer.is-enhanced .ventuv-explorer__controls {
	display: flex;
}

.ventuv-explorer__counter {
	min-width: 4.2rem;
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--ventuv-weight-label);
	font-variant-numeric: tabular-nums;
}

.ventuv-explorer__control {
	display: grid;
	width: var(--ventuv-control-height-small);
	height: var(--ventuv-control-height-small);
	padding: 0;
	place-items: center;
	background: var(--wp--preset--color--base);
	border: var(--ventuv-border-control);
	border-radius: var(--ventuv-radius);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
	font: inherit;
	transition:
		background-color var(--ventuv-fast),
		border-color var(--ventuv-fast),
		color var(--ventuv-fast),
		transform var(--ventuv-fast);
}

.ventuv-explorer__control:is(:hover, :focus-visible) {
	background: var(--ventuv-accent);
	border-color: var(--ventuv-accent);
	color: var(--wp--preset--color--base);
	transform: translateY(-1px);
}

.ventuv-explorer__control[hidden] {
	display: none !important;
}

/* Geometria del glifo "pausa" (due barre): non è un passo di layout. */
.ventuv-explorer__control--auto > span {
	display: flex;
	gap: 0.22rem;
	align-items: center;
	justify-content: center;
	width: 0.8rem;
	height: 0.85rem;
}

.ventuv-explorer__control--auto i {
	display: block;
	width: 2px;
	height: 0.75rem;
	background: currentcolor;
	border-radius: 1px;
}

.ventuv-explorer__control--auto[data-state="paused"] i {
	display: none;
}

.ventuv-explorer__control--auto[data-state="paused"] > span::before {
	width: 0;
	height: 0;
	border-top: 0.38rem solid transparent;
	border-bottom: 0.38rem solid transparent;
	border-left: 0.6rem solid currentcolor;
	content: "";
}

.ventuv-explorer__tab-scroll {
	overflow-x: auto;
	overflow-y: hidden;
	background: var(--wp--preset--color--surface);
	border-bottom: var(--ventuv-border);
	scrollbar-width: none;
	overscroll-behavior-inline: contain;
}

.ventuv-explorer__tab-scroll::-webkit-scrollbar {
	display: none;
}

/* Sette tab: il minimo deriva dalle tracce, più il rientro extra della prima e dell'ultima. */
.ventuv-explorer__tabs {
	--ventuv-tab-min: 8.5rem;

	display: grid;
	grid-template-columns: repeat(7, minmax(var(--ventuv-tab-min), 1fr));
	min-width: calc(7 * var(--ventuv-tab-min) + 2 * (var(--ventuv-inset) - var(--ventuv-gap)));
}

.ventuv-explorer__tab {
	position: relative;
	display: grid;
	gap: var(--ventuv-gap-xxs);
	align-content: center;
	min-height: 4.6rem;
	padding: var(--ventuv-gap-sm) var(--ventuv-gap);
	border-right: var(--ventuv-border);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition:
		background-color var(--ventuv-base),
		color var(--ventuv-base);
}

.ventuv-explorer__tab:first-child {
	padding-left: var(--ventuv-inset);
}

.ventuv-explorer__tab:last-child {
	padding-right: var(--ventuv-inset);
	border-right: 0;
}

.ventuv-explorer__tab strong {
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--ventuv-weight-title);
	line-height: var(--ventuv-leading-snug);
	letter-spacing: -0.01em;
}

.ventuv-explorer__tab small {
	overflow: hidden;
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--xs);
	line-height: var(--ventuv-leading-compact);
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ventuv-explorer__tab-progress {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 3px;
	background: var(--ventuv-signal);
	transform: scaleX(0);
	transform-origin: left;
}

.ventuv-explorer__tab[aria-current="true"] {
	background: var(--wp--preset--color--base);
}

.ventuv-explorer__tab[aria-current="true"] .ventuv-explorer__tab-progress {
	transform: scaleX(1);
}

.ventuv-explorer.is-running .ventuv-explorer__tab[aria-current="true"] .ventuv-explorer__tab-progress {
	animation: ventuv-progress var(--ventuv-cycle, 3500ms) linear both;
}

.ventuv-explorer__tab:is(:hover, :focus-visible) {
	background: color-mix(in srgb, var(--ventuv-accent) 6%, var(--wp--preset--color--base));
	color: var(--wp--preset--color--contrast);
}

/* Lo stage è un .ventuv-panel-dark: sfondo e colore arrivano da lì. */
.ventuv-explorer__stage {
	position: relative;
	touch-action: pan-y;
}

.ventuv-explorer.is-enhanced .ventuv-explorer__panel[hidden] {
	display: none !important;
}

.ventuv-explorer__panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(19rem, 0.85fr);
}

.ventuv-explorer__panel + .ventuv-explorer__panel {
	border-top: var(--ventuv-border-inverse);
}

/* Il pannello in uscita resta sotto per la durata della scansione. */
.ventuv-explorer__panel.is-leaving {
	position: absolute;
	inset: 0;
	z-index: 0;
	border-top: 0;
	pointer-events: none;
}

/* Il visual tiene il 3:2 ma non supera l'altezza che lascia l'intero explorer in vista sotto la testata. */
.ventuv-explorer__visual {
	position: relative;
	min-width: 0;
	min-height: 22rem;
	max-height: calc(100vh - 21rem);
	margin: 0;
	overflow: hidden;
	aspect-ratio: 3 / 2;
}

@supports (height: 100svh) {
	.ventuv-explorer__visual {
		max-height: calc(100svh - 21rem);
	}
}

.ventuv-explorer__frame {
	display: block;
	width: 100%;
	height: 100%;
}

.ventuv-explorer__visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
	-webkit-user-drag: none;
}

.ventuv-explorer__visual::after {
	position: absolute;
	inset: auto 0 0;
	z-index: 1;
	height: 40%;
	background: linear-gradient(to top, rgba(12, 10, 11, 0.55), transparent);
	content: "";
	pointer-events: none;
}

.ventuv-explorer__scan {
	position: absolute;
	top: 0;
	bottom: 0;
	left: -2px;
	z-index: 2;
	width: 2px;
	background: linear-gradient(to bottom, transparent, var(--ventuv-ember) 12%, var(--ventuv-accent) 88%, transparent);
	box-shadow: 0 0 1.25rem 0.15rem color-mix(in srgb, var(--ventuv-ember) 65%, transparent);
	opacity: 0;
	pointer-events: none;
}

/* Badge di stato: geometria e vetro dalle regole condivise (§3), qui solo posizione e colore. */
.ventuv-explorer__status {
	position: absolute;
	bottom: var(--ventuv-gap);
	left: var(--ventuv-inset);
	z-index: 3;
	color: var(--wp--preset--color--base);
}

.ventuv-explorer__status small {
	color: var(--ventuv-text-inverse);
}

/* Il fondo resta opaco: copre il pannello in uscita durante la transizione. */
.ventuv-explorer__content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--ventuv-gap);
	justify-content: center;
	min-width: 0;
	padding: var(--ventuv-card-padding) var(--ventuv-inset);
	background: var(--ventuv-panel-bg);
	border-left: var(--ventuv-border-inverse-soft);
}

.ventuv-explorer__content > * {
	margin: 0;
}

.ventuv-explorer__content h2 {
	max-width: var(--ventuv-measure-title);
	color: var(--wp--preset--color--base);
	font-size: var(--ventuv-panel-title);
}

.ventuv-explorer__body {
	max-width: var(--ventuv-measure-lead);
	color: var(--ventuv-text-inverse);
}

.ventuv-explorer__content .ventuv-chips {
	margin-top: var(--ventuv-gap-xs);
}

/* Cambio applicazione: la linea rosso-papaya scorre sul visual e rivela l'immagine nuova. */
.ventuv-explorer.is-enhanced .ventuv-explorer__panel.is-entering .ventuv-explorer__frame {
	animation: ventuv-wipe var(--ventuv-slow) linear both;
}

.ventuv-explorer.is-enhanced .ventuv-explorer__panel.is-entering .ventuv-explorer__scan {
	animation: ventuv-scan var(--ventuv-slow) linear both;
}

.ventuv-explorer.is-enhanced .ventuv-explorer__panel.is-entering .ventuv-explorer__status {
	animation: ventuv-rise 480ms var(--ventuv-ease) 480ms both;
}

.ventuv-explorer.is-enhanced .ventuv-explorer__panel.is-entering .ventuv-explorer__content > * {
	animation: ventuv-rise 520ms var(--ventuv-ease) both;
}

.ventuv-explorer.is-enhanced .ventuv-explorer__panel.is-entering .ventuv-explorer__content > :nth-child(1) { animation-delay: 80ms; }
.ventuv-explorer.is-enhanced .ventuv-explorer__panel.is-entering .ventuv-explorer__content > :nth-child(2) { animation-delay: 160ms; }
.ventuv-explorer.is-enhanced .ventuv-explorer__panel.is-entering .ventuv-explorer__content > :nth-child(3) { animation-delay: 240ms; }
.ventuv-explorer.is-enhanced .ventuv-explorer__panel.is-entering .ventuv-explorer__content > :nth-child(4) { animation-delay: 320ms; }

.ventuv-explorer.is-running .ventuv-explorer__panel.is-active .ventuv-explorer__visual img {
	animation: ventuv-breathe 9s ease-in-out infinite alternate;
}

.ventuv-explorer.is-running .ventuv-explorer__panel.is-active .ventuv-status i {
	animation: ventuv-pulse 2.4s ease-in-out infinite;
}

@media (max-width: 960px) {
	.ventuv-explorer__panel {
		grid-template-columns: 1fr;
	}

	.ventuv-explorer__visual {
		aspect-ratio: 16 / 10;
	}

	.ventuv-explorer__content {
		border-top: var(--ventuv-border-inverse-soft);
		border-left: 0;
	}
}

/* 7. Marchi, collaborazione e metodo ------------------------------------ */

.ventuv-brands {
	padding-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border-block: var(--ventuv-border-soft);
}

.ventuv-brands__inner {
	--ventuv-brands-width: var(--wp--custom--brands--item-width);
	--ventuv-brands-height: var(--wp--custom--brands--logo-height);
	--ventuv-brands-gap: var(--wp--custom--brands--gap);
	min-width: 0;
}

.ventuv-brands__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ventuv-gap);
	min-height: var(--ventuv-control-height);
	margin-bottom: var(--ventuv-gap-lg);
}

.ventuv-brands__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--lg);
	font-weight: var(--ventuv-weight-label);
	letter-spacing: 0;
}

.ventuv-brands__control {
	display: grid;
	place-items: center;
	flex: 0 0 var(--ventuv-control-height);
	width: var(--ventuv-control-height);
	height: var(--ventuv-control-height);
	padding: 0;
	border: var(--ventuv-border-control);
	border-radius: var(--ventuv-radius);
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	cursor: pointer;
}

.ventuv-brands__control:hover {
	border-color: var(--ventuv-accent);
	color: var(--ventuv-accent);
}

.ventuv-brands__control[hidden],
.ventuv-brands__play,
.ventuv-brands__inner.is-paused .ventuv-brands__pause {
	display: none;
}

.ventuv-brands__inner.is-paused .ventuv-brands__play {
	display: block;
}

/* Senza JavaScript tutti i marchi restano visibili in una lista statica. */
.ventuv-brands__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--ventuv-brands-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.ventuv-brands__item {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 var(--ventuv-brands-width);
	height: var(--wp--custom--brands--logo-height-tall);
}

.ventuv-brands__item img {
	width: var(--ventuv-brands-width);
	height: var(--ventuv-brands-height);
	object-fit: contain;
}

.ventuv-brands__item--tall img {
	height: var(--wp--custom--brands--logo-height-tall);
}

.ventuv-brands__list[aria-hidden="true"] {
	display: none;
}

/* Avvio per tutti i visitatori; Pausa resta sempre disponibile. */
.ventuv-brands__inner.is-enhanced .ventuv-brands__viewport {
	overflow: hidden;
}

.ventuv-brands__inner.is-draggable .ventuv-brands__viewport {
	touch-action: pan-y pinch-zoom;
	user-select: none;
	-webkit-user-select: none;
	cursor: grab;
}

.ventuv-brands__inner.is-dragging .ventuv-brands__viewport {
	cursor: grabbing;
}

.ventuv-brands__inner.is-enhanced .ventuv-brands__track {
	display: flex;
	width: max-content;
	animation: ventuv-brands-left var(--wp--custom--brands--duration) linear infinite;
}

.ventuv-brands__inner.is-enhanced .ventuv-brands__list {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	padding-inline-end: var(--ventuv-brands-gap);
}

.ventuv-brands__inner.is-paused .ventuv-brands__track,
.ventuv-brands__inner.is-dragging .ventuv-brands__track,
.ventuv-brands__inner.is-page-hidden .ventuv-brands__track,
.ventuv-brands__inner.is-offscreen .ventuv-brands__track {
	animation-play-state: paused;
}

@keyframes ventuv-brands-left {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

.ventuv-delivery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ventuv-gap-grid);
}

/* Card (base .ventuv-card + .ventuv-card--lift): qui solo layout interno. */
.ventuv-delivery__card {
	display: flex;
	flex-direction: column;
	gap: var(--ventuv-gap);
	padding: var(--ventuv-card-padding);
}

.ventuv-delivery__card > * {
	margin: 0;
}

.ventuv-delivery__card h3 {
	max-width: var(--ventuv-measure-title);
	font-size: var(--wp--preset--font-size--xl);
}

.ventuv-delivery__card > p {
	color: var(--wp--preset--color--contrast-secondary);
}

.ventuv-delivery__card > a {
	align-self: flex-start;
	margin-top: auto;
	padding-top: var(--ventuv-gap-sm);
}

.ventuv-method {
	margin-top: var(--ventuv-section-space);
	padding: var(--ventuv-panel-padding);
}

/* Passi (base .ventuv-steps): qui la linea di segnale e le card dei singoli passi. */
.ventuv-method__flow {
	position: relative;
	gap: var(--ventuv-gap-sm);
}

.ventuv-method__flow::before {
	position: absolute;
	top: 50%;
	right: 5%;
	left: 5%;
	height: 2px;
	background: var(--ventuv-signal);
	content: "";
	opacity: 0.35;
	transform: translateY(-50%);
}

.ventuv-method__flow::after {
	content: "";
}

.ventuv-method__flow li {
	position: relative;
	z-index: 1;
	display: grid;
	gap: var(--ventuv-gap-xxs);
	padding: var(--ventuv-gap-sm) var(--ventuv-gap);
	background: var(--wp--preset--color--base);
	border: var(--ventuv-border-soft);
	border-radius: var(--ventuv-radius);
}

html.ventuv-motion .ventuv-method.is-visible .ventuv-method__flow::after {
	animation: ventuv-travel 3.6s var(--ventuv-ease) 300ms 1 both;
}

.ventuv-method__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0 var(--wp--preset--spacing--40);
	margin-top: var(--ventuv-head-space);
}

.ventuv-method__item {
	display: grid;
	gap: var(--ventuv-gap-sm);
	align-content: start;
	padding-top: var(--ventuv-gap-lg);
	border-top: 2px solid var(--wp--preset--color--contrast);
}

.ventuv-method__item > * {
	margin: 0;
}

.ventuv-method__item h3 {
	font-size: var(--wp--preset--font-size--lg);
}

.ventuv-method__item p {
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--compact);
	line-height: var(--ventuv-leading-relaxed);
}

@media (max-width: 840px) {
	.ventuv-delivery {
		grid-template-columns: 1fr;
	}

	.ventuv-method__flow::before,
	.ventuv-method__flow::after {
		display: none;
	}

	.ventuv-method__grid {
		grid-template-columns: 1fr;
		gap: var(--ventuv-gap-lg);
	}
}

/* 8. Software ------------------------------------------------------------ */

.ventuv-software {
	background: var(--wp--preset--color--surface);
	border-top: var(--ventuv-border);
	border-bottom: var(--ventuv-border);
}

.ventuv-software__grid {
	display: grid;
	grid-template-columns: var(--ventuv-split);
	gap: var(--wp--preset--spacing--40) var(--ventuv-gap-xl);
	align-items: start;
}

.ventuv-visual {
	position: relative;
	margin: 0;
	overflow: hidden;
	background: var(--wp--preset--color--surface-strong);
	border-radius: var(--ventuv-radius-lg);
	box-shadow: var(--wp--preset--shadow--lifted);
	aspect-ratio: 16 / 10;
}

.ventuv-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Didascalia in vetro (.ventuv-glass nel markup): geometria dalle regole condivise (§3). */
.ventuv-visual figcaption {
	position: absolute;
	inset: auto var(--ventuv-gap) var(--ventuv-gap);
	justify-content: space-between;
}

.ventuv-software__list {
	display: grid;
}

.ventuv-software__item {
	display: grid;
	gap: var(--ventuv-gap-sm);
	padding: var(--ventuv-gap-lg) 0;
	border-top: var(--ventuv-border);
}

.ventuv-software__item:first-child {
	padding-top: 0;
	border-top: 0;
}

.ventuv-software__item > * {
	margin: 0;
}

.ventuv-software__item h3 {
	font-size: var(--wp--preset--font-size--xl);
}

.ventuv-software__item p {
	color: var(--wp--preset--color--contrast-secondary);
}

.ventuv-software__note {
	margin: var(--ventuv-gap-sm) 0 0;
	padding: var(--ventuv-gap) var(--ventuv-gap-lg);
	background: var(--wp--preset--color--base);
	border: var(--ventuv-border-soft);
	border-left: 3px solid var(--ventuv-accent);
	border-radius: var(--ventuv-radius);
	font-size: var(--wp--preset--font-size--compact);
	line-height: var(--ventuv-leading-relaxed);
}

.ventuv-software__note strong {
	font-weight: var(--ventuv-weight-title);
}

.ventuv-pipeline {
	position: relative;
	box-sizing: border-box;
	margin-top: var(--ventuv-section-space);
	overflow: hidden;
	border-radius: var(--ventuv-radius-lg);
	box-shadow: var(--wp--preset--shadow--lifted);
}

/* Titolo, passi e linea del segnale condividono lo stesso rientro (--ventuv-inset). */
.ventuv-pipeline > header {
	display: flex;
	gap: var(--ventuv-gap);
	justify-content: space-between;
	align-items: center;
	padding: var(--ventuv-gap) var(--ventuv-inset);
	border-bottom: var(--ventuv-border-inverse);
}

.ventuv-pipeline > header h3 {
	margin: 0;
	font-size: var(--wp--preset--font-size--md);
}

.ventuv-pipeline ol {
	padding: var(--wp--preset--spacing--40) var(--ventuv-inset) var(--wp--preset--spacing--50);
}

.ventuv-pipeline li {
	display: grid;
	gap: var(--ventuv-gap-xxs);
	align-content: start;
	padding: 0 var(--ventuv-gap-lg);
	border-left: var(--ventuv-border-inverse);
}

.ventuv-pipeline li:first-child {
	padding-left: 0;
	border-left: 0;
}

.ventuv-pipeline li span {
	color: var(--ventuv-text-inverse);
	font-size: var(--wp--preset--font-size--sm);
}

.ventuv-pipeline__signal {
	position: absolute;
	right: var(--ventuv-inset);
	bottom: var(--ventuv-inset);
	left: var(--ventuv-inset);
	height: 2px;
	background: linear-gradient(90deg, color-mix(in srgb, var(--ventuv-accent) 45%, transparent), color-mix(in srgb, var(--ventuv-ember) 45%, transparent));
}

html.ventuv-motion .ventuv-pipeline.is-visible .ventuv-pipeline__signal i {
	animation: ventuv-travel 4s linear 200ms 1 both;
}

html.ventuv-motion .ventuv-pipeline.is-visible .ventuv-status i {
	animation: ventuv-pulse 2.2s ease-in-out 3;
}

@media (min-width: 961px) {
	.ventuv-visual--sticky {
		position: sticky;
		top: calc(var(--ventuv-header-height) + var(--ventuv-gap-lg));
	}
}

@media (max-width: 960px) {
	.ventuv-software__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 840px) {
	.ventuv-pipeline ol {
		gap: var(--ventuv-gap-lg) 0;
	}

	.ventuv-pipeline li:nth-child(3) {
		padding-left: 0;
		border-left: 0;
	}
}

@media (max-width: 560px) {
	.ventuv-pipeline ol {
		gap: var(--ventuv-gap-lg);
	}

	.ventuv-pipeline li {
		padding-left: 0;
		border-left: 0;
	}

	.ventuv-pipeline__signal {
		display: none;
	}
}

/* 9. News in home -------------------------------------------------------- */

.wp-block-post-template.ventuv-news-grid {
	gap: var(--ventuv-gap-grid);
}

.ventuv-news-card {
	display: grid;
	gap: var(--ventuv-gap-sm);
	align-content: start;
}

.ventuv-news-card > * {
	margin: 0;
}

.ventuv-news-card .wp-block-post-featured-image {
	margin-bottom: var(--ventuv-gap-xs);
	overflow: hidden;
	border-radius: var(--ventuv-radius);
}

.ventuv-news-card .wp-block-post-featured-image img {
	transition: transform 700ms var(--ventuv-ease);
}

.ventuv-news-card:is(:hover, :focus-within) .wp-block-post-featured-image img {
	transform: scale(1.03);
}

/* Taglie di titolo e meta arrivano dai pattern (fontSize lg / sm): qui solo interlinea e peso. */
.ventuv-news-card .wp-block-post-title,
.ventuv-listing-card .wp-block-post-title {
	line-height: var(--ventuv-leading-snug);
}

.ventuv-news-card .wp-block-post-date,
.ventuv-listing-card :is(.wp-block-post-terms, .wp-block-post-date),
.ventuv-article__header :is(.wp-block-post-terms, .wp-block-post-date) {
	font-weight: var(--ventuv-weight-label);
}

.ventuv-news-card .wp-block-post-excerpt,
.ventuv-listing-card .wp-block-post-excerpt {
	font-size: var(--wp--preset--font-size--compact);
	line-height: var(--ventuv-leading-relaxed);
}

/* Segnaposto quando manca l'immagine in evidenza: griglia a punti e mirino rosso. */
.wp-block-post:not(.has-post-thumbnail) .ventuv-news-card::before,
.wp-block-post:not(.has-post-thumbnail) .ventuv-listing-card::before,
.ventuv-featured-fallback {
	display: block;
	background-color: var(--wp--preset--color--surface-strong);
	background-image:
		linear-gradient(to right, transparent calc(64% - 1px), var(--ventuv-accent) calc(64% - 1px), var(--ventuv-accent) calc(64% + 1px), transparent calc(64% + 1px)),
		linear-gradient(to bottom, transparent calc(40% - 1px), var(--ventuv-accent) calc(40% - 1px), var(--ventuv-accent) calc(40% + 1px), transparent calc(40% + 1px)),
		var(--ventuv-dot-grid);
	background-position: center;
	background-size: 100% 100%, 100% 100%, var(--ventuv-dot-grid-size) var(--ventuv-dot-grid-size);
	border-radius: var(--ventuv-radius);
	content: "";
	aspect-ratio: 3 / 2;
}

.wp-block-post:not(.has-post-thumbnail) .ventuv-news-card::before {
	margin-bottom: var(--ventuv-gap-xs);
}

.wp-block-post:not(.has-post-thumbnail) .ventuv-listing-card::before {
	margin-bottom: calc(var(--ventuv-gap-lg) - var(--ventuv-gap-sm));
	border-radius: 0;
}

.ventuv-featured-fallback {
	display: none;
	aspect-ratio: 16 / 9;
}

body.ventuv-no-featured-image .ventuv-featured-fallback {
	display: block;
}

/* 10. Invito al contatto ------------------------------------------------- */

.ventuv-cta {
	padding-top: 0;
}

.ventuv-cta__panel {
	position: relative;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(14rem, 0.5fr);
	gap: var(--ventuv-gap-xl);
	align-items: center;
	padding: var(--ventuv-panel-padding);
	overflow: hidden;
	border-radius: var(--ventuv-radius-lg);
	box-shadow: var(--wp--preset--shadow--lifted);
}

.ventuv-cta__panel::after {
	position: absolute;
	top: -12rem;
	right: -10rem;
	width: 30rem;
	height: 30rem;
	background: radial-gradient(circle, color-mix(in srgb, var(--ventuv-ember) 22%, transparent), transparent 60%);
	content: "";
	pointer-events: none;
}

.ventuv-cta__copy {
	position: relative;
	z-index: 1;
	display: grid;
	gap: var(--ventuv-gap);
	justify-items: start;
}

.ventuv-cta__copy > * {
	margin: 0;
}

.ventuv-cta__copy h2 {
	max-width: var(--ventuv-measure-title);
	color: var(--wp--preset--color--base);
}

/* Lead e nota condividono bordo destro e colore, differiscono solo in scala (lg / sm). */
.ventuv-cta__copy .ventuv-cta__lead,
.ventuv-cta__copy .ventuv-cta__note {
	max-width: var(--ventuv-measure-lead);
	color: var(--ventuv-text-inverse);
	line-height: var(--ventuv-leading-relaxed);
}

.ventuv-cta__copy .ventuv-cta__lead {
	font-size: var(--wp--preset--font-size--lg);
}

.ventuv-cta__copy .ventuv-cta__note {
	font-size: var(--wp--preset--font-size--sm);
}

/* Elenco (base .ventuv-dots --inverse): a desktop il punto sta a cavallo della riga di bordo. */
.ventuv-cta__list {
	position: relative;
	z-index: 1;
	padding-left: var(--ventuv-gap-lg);
	border-left: var(--ventuv-border-inverse);
}

.ventuv-cta__list li {
	padding-left: 0;
}

.ventuv-cta__list li::before {
	left: calc(-1 * var(--ventuv-gap-lg));
	transform: translateX(-50%);
}

@media (max-width: 840px) {
	.ventuv-cta__panel {
		grid-template-columns: 1fr;
	}

	.ventuv-cta__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--ventuv-gap-sm) var(--ventuv-gap-lg);
		padding: var(--ventuv-gap-lg) 0 0;
		border-top: var(--ventuv-border-inverse);
		border-left: 0;
	}

	.ventuv-cta__list li {
		padding-left: var(--ventuv-dots-indent);
	}

	.ventuv-cta__list li::before {
		left: 0;
		transform: none;
	}
}

@media (max-width: 560px) {
	.ventuv-cta__list {
		grid-template-columns: 1fr;
	}
}

/* 11. Footer ------------------------------------------------------------- */

.ventuv-footer {
	padding: var(--ventuv-section-space) var(--ventuv-bleed) var(--ventuv-gap-lg);
	background: var(--wp--preset--color--surface);
	border-top: var(--ventuv-border);
	color: var(--wp--preset--color--contrast-secondary);
}

.ventuv-footer__inner {
	display: grid;
	grid-template-columns: minmax(16rem, 1.4fr) minmax(9rem, 0.6fr) minmax(12rem, 0.7fr);
	gap: var(--ventuv-gap-xl);
	padding-bottom: var(--wp--preset--spacing--50);
}

.ventuv-footer__brand,
.ventuv-footer__nav {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.ventuv-footer__brand {
	gap: var(--ventuv-gap);
}

/* Descrizione breve, non un lead: misura propria. */
.ventuv-footer__brand p {
	max-width: 28rem;
	margin: 0;
	font-size: var(--wp--preset--font-size--compact);
}

.ventuv-footer__nav {
	gap: var(--ventuv-gap-sm);
	font-size: var(--wp--preset--font-size--compact);
}

.ventuv-footer__nav strong {
	margin-bottom: var(--ventuv-gap-xs);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--ventuv-weight-title);
}

.ventuv-footer__nav :is(a, span) {
	color: var(--wp--preset--color--contrast-secondary);
}

.ventuv-footer__nav a {
	text-decoration-color: transparent;
	text-underline-offset: var(--ventuv-underline-offset);
	transition: color var(--ventuv-fast), text-decoration-color var(--ventuv-fast);
}

.ventuv-footer__nav a:is(:hover, :focus-visible) {
	color: var(--ventuv-accent);
	text-decoration-color: currentcolor;
}

.ventuv-footer__legal {
	display: flex;
	gap: var(--ventuv-gap-sm) var(--wp--preset--spacing--40);
	justify-content: space-between;
	padding-top: var(--ventuv-gap-lg);
	border-top: var(--ventuv-border);
	font-size: var(--wp--preset--font-size--xs);
}

.ventuv-footer__legal p {
	margin: 0;
}

@media (max-width: 960px) {
	.ventuv-footer__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ventuv-footer__brand {
		grid-column: 1 / -1;
	}

	.ventuv-footer__legal {
		flex-direction: column;
	}
}

@media (max-width: 560px) {
	.ventuv-footer__inner {
		grid-template-columns: 1fr;
	}

	.ventuv-footer__brand {
		grid-column: auto;
	}
}

/* 12. Archivio news e articolo ------------------------------------------- */

/* Elenchi (News, archivi, indice, ricerca): l'apertura è la page-hero condivisa (§13), poi le card. */
.ventuv-news-index .wp-block-query {
	margin-top: var(--ventuv-section-space);
}

.ventuv-news-index .wp-block-post {
	min-width: 0;
}

/* Card elenco (base .ventuv-card + --lift): passo interno unico --ventuv-gap-sm, rientro laterale --ventuv-gap-lg. */
.ventuv-listing-card {
	display: flex;
	flex-direction: column;
	gap: var(--ventuv-gap-sm);
	height: 100%;
	min-width: 0;
	padding-bottom: var(--ventuv-gap-lg);
	overflow: hidden;
}

.ventuv-listing-card > *:not(.wp-block-post-featured-image) {
	margin-right: var(--ventuv-gap-lg);
	margin-left: var(--ventuv-gap-lg);
}

/* Immagine → testo = --ventuv-gap-lg esatto, uguale al rientro laterale: si sottrae il gap del flex. */
.ventuv-listing-card .wp-block-post-featured-image {
	margin: 0 0 calc(var(--ventuv-gap-lg) - var(--ventuv-gap-sm));
	overflow: hidden;
}

.ventuv-listing-card .wp-block-post-featured-image img {
	transition: transform 700ms var(--ventuv-ease);
}

.ventuv-listing-card:is(:hover, :focus-within) .wp-block-post-featured-image img {
	transform: scale(1.03);
}

/* margin-top: 0 resta esplicito: batte la regola di flusso di WordPress. */
.ventuv-listing-card .wp-block-post-terms,
.ventuv-listing-card .wp-block-post-date {
	margin-top: 0;
	margin-bottom: 0;
}

.ventuv-listing-card .wp-block-post-terms a {
	color: var(--ventuv-accent);
	text-decoration: none;
}

.ventuv-listing-card .wp-block-post-title {
	margin-top: var(--ventuv-gap-xs);
	margin-bottom: 0;
}

.ventuv-listing-card .wp-block-post-excerpt {
	margin-top: 0;
	margin-bottom: var(--ventuv-gap-xs);
}

.ventuv-listing-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

.ventuv-listing-card__more {
	margin-top: auto !important;
}

/* Paginazione: stesso ruolo link delle card; tipografia sul contenitore così pagina corrente e puntini restano allineati. */
.wp-block-query-pagination {
	gap: var(--ventuv-gap) var(--ventuv-gap-lg);
	font-size: var(--wp--preset--font-size--compact);
	font-weight: var(--ventuv-weight-label);
}

.wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ventuv-gap-sm);
}

.wp-block-query-pagination-numbers .page-numbers.current {
	color: var(--ventuv-accent);
}

.wp-block-query-pagination-numbers .page-numbers.dots {
	color: var(--wp--preset--color--contrast-secondary);
}

/* Articolo: intestazione a larghezza di lettura (760px), come il corpo. */
.ventuv-article__header {
	display: grid;
	gap: var(--ventuv-gap);
	padding-top: var(--ventuv-section-space);
	padding-bottom: var(--wp--preset--spacing--40);
	border-bottom: var(--ventuv-border);
}

.ventuv-article__header > * {
	margin: 0;
}

.ventuv-article__header .wp-block-post-terms a {
	color: var(--ventuv-accent);
	text-decoration: none;
}

.ventuv-article__header .wp-block-post-title {
	font-size: var(--wp--preset--font-size--xxxl);
}

/* I margini dell'immagine in evidenza stanno nel pattern (spacing 40 / 50); il segnaposto li replica qui. */
.ventuv-article > .wp-block-post-featured-image,
.ventuv-article > .ventuv-featured-fallback {
	overflow: hidden;
	border-radius: var(--ventuv-radius-lg);
}

.ventuv-article > .ventuv-featured-fallback {
	margin-top: var(--wp--preset--spacing--40);
	margin-bottom: var(--wp--preset--spacing--50);
}

/* Corpo articolo: taglia md ereditata, interlinea da lettura lunga (eccezione dichiarata). */
.ventuv-article .wp-block-post-content {
	line-height: var(--ventuv-leading-prose);
}

.ventuv-article .wp-block-post-content :is(h2, h3) {
	scroll-margin-top: 7rem;
}

.ventuv-article .wp-block-post-content h2 {
	margin-top: var(--wp--preset--spacing--50);
}

.ventuv-article .wp-block-post-content h3 {
	margin-top: var(--ventuv-head-space);
}

.ventuv-article .wp-block-post-content :is(ul, ol) {
	padding-left: var(--ventuv-gap-lg);
}

.ventuv-article .wp-block-post-content li + li {
	margin-top: var(--ventuv-gap-sm);
}

.ventuv-article .wp-block-post-content a {
	text-decoration-color: var(--ventuv-accent);
	text-underline-offset: var(--ventuv-underline-offset);
}

/* 13. Pagine interne: News, Contatti e Lavora con noi -------------------- */

.ventuv-page {
	margin: 0;
}

/* Le sezioni interne hanno lo stesso padding laterale dei gruppi WordPress (--ventuv-bleed): l'.alignwide riempie il contenuto. */
.ventuv-page .alignwide {
	box-sizing: border-box;
	width: auto;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto;
}

.ventuv-page-hero {
	position: relative;
	padding-block: var(--ventuv-section-space);
	padding-inline: var(--ventuv-bleed);
	overflow: hidden;
	background: var(--wp--preset--color--base);
	border-bottom: var(--ventuv-border);
}

.ventuv-page-hero::before {
	position: absolute;
	inset: 0;
	background-image: var(--ventuv-dot-grid);
	background-size: var(--ventuv-dot-grid-size) var(--ventuv-dot-grid-size);
	content: "";
	mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.7), transparent 75%);
	-webkit-mask-image: linear-gradient(105deg, rgba(0, 0, 0, 0.7), transparent 75%);
	pointer-events: none;
}

.ventuv-page-hero::after {
	position: absolute;
	top: -12rem;
	right: -10rem;
	width: 34rem;
	height: 34rem;
	background: radial-gradient(circle, color-mix(in srgb, var(--ventuv-ember) 14%, transparent), transparent 62%);
	content: "";
	pointer-events: none;
}

.ventuv-page-hero__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: var(--ventuv-split);
	gap: var(--wp--preset--spacing--40) var(--ventuv-gap-xl);
	align-items: end;
}

/* Negli archivi le due colonne sono gruppi core: si azzera il margine di flusso di WordPress. */
.ventuv-page-hero__grid > * {
	margin: 0;
}

.ventuv-page-hero__copy {
	display: grid;
	gap: var(--ventuv-gap);
}

/* Tutto ciò che sta nelle due colonne occupa la stessa larghezza (il lato destro è un .ventuv-aside). */
.ventuv-page-hero__copy > * {
	max-width: none;
	margin: 0;
}

.ventuv-page-hero h1 {
	max-width: var(--ventuv-measure-display);
	font-size: var(--wp--preset--font-size--xxxl);
}

/* Lead: paragrafo nudo (Contatti, Lavora con noi, News) o descrizione dell'archivio. */
.ventuv-page-hero__side > :is(p, .wp-block-term-description) {
	font-size: var(--wp--preset--font-size--lg);
	line-height: var(--ventuv-leading-relaxed);
}

.ventuv-page-hero__side .wp-block-term-description > * {
	margin: 0;
}

.ventuv-page-section {
	padding-block: var(--ventuv-section-space);
	padding-inline: var(--ventuv-bleed);
}

.ventuv-page-section + .ventuv-page-section {
	padding-top: 0;
}

/* Contatti: la colonna dei recapiti sta sulla stessa colonna split della hero; il gutter verticale è quello delle card. */
.ventuv-contact-layout {
	display: grid;
	grid-template-columns: var(--ventuv-split);
	gap: var(--ventuv-gap-grid) var(--ventuv-gap-xl);
	align-items: start;
}

.ventuv-contact-form-panel {
	grid-column: 1;
	grid-row: 1;
	padding: var(--ventuv-panel-padding);
}

.ventuv-contact-details {
	grid-column: 2;
	grid-row: 1;
	display: grid;
	gap: var(--ventuv-gap-grid);
}

/* Intestazione del modulo: stesso bordo dei campi (nessun max-width proprio). */
.ventuv-panel-heading {
	display: grid;
	gap: var(--ventuv-gap);
	margin-bottom: var(--ventuv-gap-lg);
}

.ventuv-panel-heading > * {
	margin: 0;
}

.ventuv-panel-heading h2 {
	font-size: var(--ventuv-panel-title);
}

.ventuv-panel-heading > p:last-child {
	color: var(--wp--preset--color--contrast-secondary);
	line-height: var(--ventuv-leading-relaxed);
}

/* Intestazione, avviso, nota e modulo si susseguono sempre con passo --ventuv-gap-lg. */
.ventuv-form-notice {
	margin-bottom: var(--ventuv-gap-lg);
	padding: var(--ventuv-gap);
	border-left: 3px solid currentcolor;
	border-radius: var(--ventuv-radius);
	font-size: var(--wp--preset--font-size--compact);
	font-weight: var(--ventuv-weight-label);
	line-height: var(--ventuv-leading-relaxed);
}

.ventuv-form-notice--success {
	background: color-mix(in srgb, var(--wp--preset--color--ok) 10%, var(--wp--preset--color--base));
	color: color-mix(in srgb, var(--wp--preset--color--ok) 85%, var(--wp--preset--color--contrast));
}

.ventuv-form-notice--error {
	background: color-mix(in srgb, var(--ventuv-accent) 9%, var(--wp--preset--color--base));
	color: var(--wp--preset--color--accent-deep);
}

.ventuv-form-required {
	margin: 0 0 var(--ventuv-gap-lg);
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--sm);
}

.ventuv-contact-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ventuv-gap-lg) var(--ventuv-gap);
}

.ventuv-form-field {
	display: grid;
	gap: var(--ventuv-gap-xs);
	min-width: 0;
}

.ventuv-form-field--wide {
	grid-column: 1 / -1;
}

.ventuv-form-field label,
.ventuv-form-privacy {
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--ventuv-weight-label);
}

.ventuv-form-field label span {
	color: var(--ventuv-accent);
}

/* Campi: stessa altezza e stesso bordo dei controlli; vale anche per il blocco Ricerca (pagine Ricerca e 404). */
.ventuv-form-field :is(input, select, textarea),
.wp-block-search__input {
	box-sizing: border-box;
	width: 100%;
	min-height: var(--ventuv-control-height);
	padding: var(--ventuv-gap-sm) var(--ventuv-gap);
	background: var(--wp--preset--color--surface);
	border: var(--ventuv-border-control);
	border-radius: var(--ventuv-radius);
	color: var(--wp--preset--color--contrast);
	font: inherit;
	line-height: var(--ventuv-leading-compact);
	transition:
		background-color var(--ventuv-fast),
		border-color var(--ventuv-fast),
		box-shadow var(--ventuv-fast);
}

.ventuv-form-field textarea {
	min-height: 10rem;
	resize: vertical;
}

.ventuv-form-field :is(input, select, textarea):focus,
.wp-block-search__input:focus {
	background: var(--wp--preset--color--base);
	border-color: var(--ventuv-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ventuv-accent) 14%, transparent);
	outline: 0;
}

.ventuv-form-field textarea::placeholder {
	color: color-mix(in srgb, var(--wp--preset--color--contrast-secondary) 70%, transparent);
}

.wp-block-search__inside-wrapper {
	gap: var(--ventuv-gap-sm);
}

.wp-block-search__button {
	flex: none;
	margin: 0;
}

.ventuv-form-privacy {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: var(--ventuv-gap-sm);
	align-items: start;
	color: var(--wp--preset--color--contrast-secondary);
	line-height: var(--ventuv-leading-relaxed);
}

/* La casella si centra sulla prima riga di testo per costruzione (interlinea meno altezza, diviso due). */
.ventuv-form-privacy input {
	width: 1.1rem;
	height: 1.1rem;
	margin: calc((var(--ventuv-leading-relaxed) * 1em - 1.1rem) / 2) 0 0;
	font: inherit;
	accent-color: var(--ventuv-accent);
}

.ventuv-form-submit {
	display: flex;
	gap: var(--ventuv-gap) var(--ventuv-gap-lg);
	justify-content: space-between;
	align-items: center;
	margin-top: var(--ventuv-gap-xs);
}

.ventuv-form-submit p {
	margin: 0;
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--sm);
}

/* Link inline nella nota: stessa taglia del testo, sottolineatura del sistema. */
.ventuv-form-submit a {
	font-weight: var(--ventuv-weight-label);
	text-underline-offset: var(--ventuv-underline-offset);
}

.ventuv-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

/* Card recapiti (base .ventuv-card): stesso rientro interno della card mappa. */
.ventuv-contact-card {
	display: grid;
	gap: var(--ventuv-gap);
	padding: var(--ventuv-card-padding);
}

.ventuv-contact-card > * {
	margin: 0;
}

.ventuv-contact-card h2 {
	font-size: var(--wp--preset--font-size--xl);
}

/* Ripetuto: .ventuv-card (sopra) vince in cascata su .ventuv-panel-dark, quindi il pannello scuro va ribadito. */
.ventuv-contact-card--email {
	background: var(--ventuv-panel-bg);
	border-color: transparent;
	color: var(--ventuv-panel-fg);
}

.ventuv-contact-card--email h2 {
	color: inherit;
}

.ventuv-contact-email {
	display: flex;
	gap: var(--ventuv-gap-sm);
	justify-content: space-between;
	padding-top: var(--ventuv-gap);
	border-top: var(--ventuv-border-inverse);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: var(--ventuv-weight-title);
	text-decoration: none;
	transition: color var(--ventuv-fast);
}

.ventuv-contact-email:is(:hover, :focus-visible) {
	color: var(--ventuv-ember);
}

/* Card mappa (base .ventuv-card + --lift): fondo bianco e link senza sottolineatura. */
.ventuv-map-card {
	display: block;
	overflow: hidden;
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
}

.ventuv-map-card:is(:hover, :focus-visible) {
	color: var(--wp--preset--color--contrast);
}

.ventuv-map-card__canvas {
	position: relative;
	display: block;
	height: 12rem;
	overflow: hidden;
	background-color: var(--wp--preset--color--surface-strong);
	background-image:
		linear-gradient(26deg, transparent 46%, rgba(255, 255, 255, 0.95) 46% 51%, transparent 51%),
		linear-gradient(-18deg, transparent 38%, rgba(255, 255, 255, 0.95) 38% 44%, transparent 44%),
		var(--ventuv-dot-grid);
	background-size: 100% 100%, 100% 100%, var(--ventuv-dot-grid-size) var(--ventuv-dot-grid-size);
}

.ventuv-map-card__canvas::before,
.ventuv-map-card__canvas::after {
	position: absolute;
	content: "";
}

.ventuv-map-card__canvas::before {
	top: 50%;
	left: 58%;
	width: 2.15rem;
	height: 2.15rem;
	background: var(--ventuv-accent);
	border: 5px solid rgba(255, 255, 255, 0.92);
	border-radius: 50% 50% 50% 0;
	box-shadow: var(--ventuv-shadow-accent);
	transform: translate(-50%, -70%) rotate(-45deg);
}

.ventuv-map-card__canvas::after {
	top: calc(50% - 0.52rem);
	left: calc(58% - 0.52rem);
	width: 1.04rem;
	height: 1.04rem;
	background: white;
	border-radius: 50%;
}

.ventuv-map-card__canvas :is(i, b, em) {
	position: absolute;
	display: block;
	height: 2px;
	background: var(--ventuv-ember);
	opacity: 0.6;
}

.ventuv-map-card__canvas i { top: 28%; right: 8%; width: 28%; transform: rotate(-18deg); }
.ventuv-map-card__canvas b { bottom: 23%; left: 7%; width: 37%; transform: rotate(25deg); }
.ventuv-map-card__canvas em { top: 48%; left: 17%; width: 22%; transform: rotate(-42deg); }

.ventuv-map-card__body {
	display: grid;
	gap: var(--ventuv-gap-xxs);
	padding: var(--ventuv-card-padding);
}

.ventuv-map-card__body strong {
	font-size: var(--wp--preset--font-size--md);
	font-weight: var(--ventuv-weight-title);
}

.ventuv-map-card__body > span:not(.ventuv-kicker) {
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--sm);
}

.ventuv-map-card__body b {
	margin-top: var(--ventuv-gap-sm);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--ventuv-weight-label);
}

.ventuv-company-data {
	display: grid;
	gap: var(--ventuv-gap);
	margin: 0;
}

.ventuv-company-data > div {
	display: grid;
	grid-template-columns: 6.5rem minmax(0, 1fr);
	gap: var(--ventuv-gap);
	padding-top: var(--ventuv-gap);
	border-top: var(--ventuv-border);
}

.ventuv-company-data :is(dt, dd) {
	margin: 0;
}

.ventuv-company-data dt {
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--ventuv-weight-label);
}

.ventuv-company-data dd {
	font-size: var(--wp--preset--font-size--compact);
	line-height: var(--ventuv-leading-relaxed);
}

/* Lavora con noi: l'intro usa .ventuv-section__head; qui solo le card dei ruoli. */

.ventuv-role-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--ventuv-gap-grid);
}

/* Card ruolo (base .ventuv-card + --lift): stesso layout interno della card delivery. */
.ventuv-role-card {
	display: flex;
	flex-direction: column;
	gap: var(--ventuv-gap);
	min-width: 0;
	padding: var(--ventuv-card-padding);
}

.ventuv-role-card > * {
	margin: 0;
}

.ventuv-role-card h3 {
	max-width: var(--ventuv-measure-title);
	font-size: var(--wp--preset--font-size--xl);
}

.ventuv-role-card__subtitle {
	color: var(--wp--preset--color--contrast-secondary);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: var(--ventuv-weight-label);
}

.ventuv-role-card > p:not(.ventuv-role-card__subtitle):not(.ventuv-kicker) {
	color: var(--wp--preset--color--contrast-secondary);
}

.ventuv-role-card h4 {
	margin-top: var(--ventuv-gap-sm);
	font-size: var(--wp--preset--font-size--sm);
}

.ventuv-role-card > a {
	align-self: flex-start;
	margin-top: auto;
	padding-top: var(--ventuv-gap-sm);
}

@media (max-width: 960px) {
	.ventuv-page-hero__grid,
	.ventuv-contact-layout {
		grid-template-columns: 1fr;
	}

	.ventuv-contact-details {
		grid-column: 1;
		grid-row: 1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ventuv-contact-form-panel {
		grid-column: 1;
		grid-row: 2;
	}

	.ventuv-contact-card--email {
		grid-column: 1 / -1;
	}
}

@media (max-width: 840px) {
	.ventuv-contact-form,
	.ventuv-contact-details,
	.ventuv-role-grid {
		grid-template-columns: 1fr;
	}

	.ventuv-contact-card--email,
	.ventuv-form-field--wide {
		grid-column: auto;
	}

	.ventuv-form-submit {
		flex-direction: column;
		align-items: flex-start;
	}

	.ventuv-form-submit .ventuv-button {
		width: 100%;
	}
}

@media (max-width: 560px) {
	.ventuv-company-data > div {
		grid-template-columns: 1fr;
		gap: var(--ventuv-gap-xxs);
	}
}

/* 14. Motion e keyframes ------------------------------------------------- */

html.ventuv-motion .ventuv-reveal {
	opacity: 0;
	transform: translateY(1rem);
	transition:
		opacity 700ms var(--ventuv-ease),
		transform 700ms var(--ventuv-ease);
}

html.ventuv-motion .ventuv-reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

html.ventuv-motion .ventuv-reveal .ventuv-kicker::before {
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 600ms var(--ventuv-ease) 250ms;
}

html.ventuv-motion .ventuv-reveal.is-visible .ventuv-kicker::before {
	transform: scaleX(1);
}

@keyframes ventuv-rise {
	from {
		opacity: 0;
		transform: translateY(0.75rem);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes ventuv-wipe {
	from { clip-path: inset(0 100% 0 0); }
	to { clip-path: inset(0 0 0 0); }
}

@keyframes ventuv-scan {
	0% { left: 0; opacity: 1; }
	85% { opacity: 1; }
	100% { left: 100%; opacity: 0; }
}

@keyframes ventuv-progress {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@keyframes ventuv-pulse {
	0%,
	100% { transform: scale(0.85); opacity: 0.7; }
	50% { transform: scale(1.1); opacity: 1; }
}

@keyframes ventuv-breathe {
	from { transform: scale(1); }
	to { transform: scale(1.035); }
}

@keyframes ventuv-travel {
	0% { left: 0; opacity: 0; }
	8% { opacity: 1; }
	92% { opacity: 1; }
	100% { left: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
	}
}
