/* Yummies Motion: stili del layer di animazione delle pagine servizi.
   Tutto ciò che parte nascosto è sotto html[data-yum-js] (aggiunto solo se il JS gira e
   "riduci movimento" è spento); html[data-yum-ready] è il fallback dopo 3 s. */

:root {
	--yum-navy: #0C285E;
	--yum-pink: #FF0654;
	--yum-area: #FF0654;
	--yum-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Hero ---------- */
.yum-h1 {
	font-family: 'tan-nimbus', serif;
	color: var(--yum-navy);
	font-size: clamp(40px, 5vw, 96px);
	overflow-wrap: normal;
	word-break: keep-all;
	hyphens: none;
	line-height: 1.14;
	letter-spacing: -0.01em;
	margin: 0 0 .25em;
	font-weight: normal;
}
.yum-h1 .yum-h1-accent { color: var(--yum-area); }
html[data-yum-js]:not([data-yum-ready]) .yum-h1:not(.yum-split-done) { visibility: hidden; }

.yum-hero { position: relative; overflow: hidden; }

/* ---------- Gummy: caramelle gommose nei colori delle aree ---------- */
.yum-gummy-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	max-width: 560px;
	margin: 0 auto;
	pointer-events: none;
}
.yum-hero .wpb_column { position: relative; }
.yum-hero .wpb_text_column:has(.yum-behind),
.yum-hero .wpb_text_column:has(.yum-behind) .wpb_wrapper { position: static; margin: 0; }
.yum-gummy-stage.yum-behind {
	position: absolute;
	inset: 50% auto auto 50%;
	transform: translate(-50%, -50%);
	width: 100%;
	max-width: 620px;
	z-index: 0;
}
.yum-hero .img-with-animation-wrap { position: relative; z-index: 2; }
.yum-gummy {
	--c: var(--yum-pink);
	position: absolute;
	border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
	background:
		radial-gradient(circle at 30% 26%, rgba(255,255,255,.9) 0 5%, rgba(255,255,255,0) 17%),
		radial-gradient(circle at 68% 78%, rgba(0,0,0,.14), rgba(0,0,0,0) 55%),
		color-mix(in srgb, var(--c) 88%, transparent);
	box-shadow:
		inset -14px -18px 34px rgba(0,0,0,.14),
		inset 12px 14px 26px rgba(255,255,255,.38),
		0 34px 60px -26px color-mix(in srgb, var(--c) 80%, #000);
	will-change: transform, border-radius;
	pointer-events: auto;
}

/* ---------- Marquee ---------- */
.yum-marquee {
	overflow: hidden;
	white-space: nowrap;
	padding: 10px 0;
	user-select: none;
}
.yum-marquee-inner { display: inline-flex; align-items: center; gap: .5em; will-change: transform; }
.yum-marquee span {
	font-family: 'tan-nimbus', serif;
	font-size: clamp(44px, 7vw, 120px);
	line-height: 1.1;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--yum-navy);
	transition: color .4s var(--yum-ease);
}
.yum-marquee span:nth-child(4n+1) { color: var(--yum-navy); -webkit-text-stroke: 0; }
.yum-marquee i { font-style: normal; font-size: clamp(28px, 3vw, 48px); color: var(--yum-pink); }

/* ---------- Aree in scroll orizzontale (hub) ---------- */
.yum-hscroll { position: relative; }
.yum-htrack {
	display: flex;
	gap: clamp(16px, 2vw, 28px);
	width: max-content;
	padding: 10px 0 30px;
}
.yum-acard {
	--c: #FFCA61;
	--fg: var(--yum-navy);
	position: relative;
	display: flex;
	flex-direction: column;
	width: clamp(280px, 30vw, 420px);
	min-height: 520px;
	padding: 34px 32px 30px;
	border-radius: 28px;
	background: var(--c);
	color: var(--fg) !important;
	text-decoration: none !important;
	transform-style: preserve-3d;
	will-change: transform;
	overflow: hidden;
}
.yum-acard::after { /* riflesso "gommoso" */
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: radial-gradient(circle at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,.35), rgba(255,255,255,0) 45%);
	pointer-events: none;
	transition: opacity .3s;
	opacity: .7;
}
.yum-acard img { width: 82%; height: auto; margin: 0 auto 18px; display: block; transform: translateZ(40px); }
.yum-acard-title { font-family: 'tan-nimbus', serif; font-size: clamp(26px, 2.2vw, 36px); line-height: 1.1; margin-bottom: 12px; }
.yum-acard-text { font-size: 17px; line-height: 1.5; font-weight: 500; flex: 1; }
.yum-acard-more { font-weight: 700; margin-top: 18px; display: inline-flex; gap: 8px; align-items: center; }
.yum-acard-more::after { content: "→"; transition: transform .35s var(--yum-ease); }
.yum-acard:hover .yum-acard-more::after,
.yum-acard:focus-visible .yum-acard-more::after { transform: translateX(6px); }
.yum-acard:focus-visible { outline: 3px solid var(--yum-navy); outline-offset: 4px; }
.yum-hprogress { height: 4px; border-radius: 4px; background: #0C285E14; overflow: hidden; margin-top: 10px; }
.yum-hprogress span { display: block; height: 100%; width: 100%; background: var(--yum-pink); transform-origin: left; transform: scaleX(0); }

@media (max-width: 999px) {
	.yum-hscroll { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 0 20px; }
	.yum-acard { scroll-snap-align: start; width: 78vw; min-height: 460px; }
	.yum-hprogress { display: none; }
}

/* ---------- Livelli: linea che si riempie ---------- */
.yum-levels .vc_row.inner_row, .yum-levels .wpb_row.inner_row { position: relative; }
.yum-line { position: absolute; left: 0; right: 0; top: -22px; height: 4px; border-radius: 4px; background: #0C285E14; }
.yum-line span { position: absolute; inset: 0; background: var(--yum-area); transform-origin: left; transform: scaleX(0); border-radius: inherit; }
/* il bordo va sulla card bianca (.vc_column-inner), non sulla colonna che ha 15px di margine intorno */
.yum-levels .yum-card > .vc_column-inner { position: relative; }
.yum-levels .yum-card > .vc_column-inner::after {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
	border-radius: 20px; box-shadow: inset 0 0 0 3px var(--yum-area); opacity: 0; transition: opacity .4s var(--yum-ease);
}
.yum-levels .yum-card.is-on > .vc_column-inner::after { opacity: 1; }

/* ---------- Card ---------- */
.yum-card { transform-style: preserve-3d; will-change: transform; }
.yum-card > .vc_column-inner { transition: box-shadow .4s var(--yum-ease); }
.yum-card:hover > .vc_column-inner { box-shadow: 0 30px 60px -30px rgba(12,40,94,.35); }

/* ---------- Cursore (solo puntatore fine) ---------- */
.yum-cursor {
	position: fixed;
	left: 0; top: 0;
	width: 14px; height: 14px;
	margin: -7px 0 0 -7px;
	border-radius: 50%;
	background: var(--yum-pink);
	pointer-events: none;
	z-index: 100000;
	display: flex; align-items: center; justify-content: center;
	color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .04em;
	opacity: 0;
	transition: width .35s var(--yum-ease), height .35s var(--yum-ease), margin .35s var(--yum-ease), background .35s;
}
.yum-cursor.is-big { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--yum-navy); }
.yum-cursor.is-link { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: color-mix(in srgb, var(--yum-pink) 30%, transparent); }
.yum-cursor b { opacity: 0; transition: opacity .2s; font-weight: 700; }
.yum-cursor.is-big b { opacity: 1; }
@media (hover: none), (pointer: coarse) { .yum-cursor { display: none !important; } }

/* ---------- Transizione tra pagine ---------- */
.yum-curtain {
	position: fixed; inset: 0;
	z-index: 100001;
	background: var(--yum-navy);
	transform: translateY(100%);
	pointer-events: none;
	display: flex; align-items: center; justify-content: center;
}
.yum-curtain img { width: 84px; height: auto; }
html[data-yum-curtain] .yum-curtain { transform: translateY(0); animation: yum-curtain-out .5s .2s var(--yum-ease) forwards; }
@keyframes yum-curtain-out { to { transform: translateY(-100%); } }

/* ---------- Riduci movimento: niente pin, niente parallasse, tutto visibile ---------- */
@media (prefers-reduced-motion: reduce) {
	.yum-hscroll { overflow-x: auto; scroll-snap-type: x mandatory; }
	.yum-acard { scroll-snap-align: start; }
	.yum-marquee-inner { transform: none !important; }
	.yum-cursor, .yum-curtain { display: none !important; }
}

/* Foto team: cerchio pieno nel colore dell'area */
.yum-card img.yum-face {
	width: 96px !important; height: 96px !important; max-width: none !important;
	border-radius: 50%; object-fit: cover; object-position: 50% 15%;
	box-shadow: 0 0 0 4px var(--yum-area); margin-bottom: 14px;
}
.yum-card:hover img.yum-face { animation: yum-wobble .9s var(--yum-ease); }
@keyframes yum-wobble { 30% { transform: scale(1.08, .94); } 55% { transform: scale(.97, 1.04); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .yum-card:hover img.yum-face { animation: none; } }

/* La caramella grande dietro l'illustrazione resta tenue: il disegno deve leggersi */
.yum-behind .yum-gummy:first-child { opacity: .32; box-shadow: inset -14px -18px 34px rgba(0,0,0,.08), inset 12px 14px 26px rgba(255,255,255,.5); }

/* Maschere di SplitText: spazio per ascendenti e discendenti di tan-nimbus */
.yum-h1 > div, h2.yum-t > div { padding: .14em 0 .08em; margin: -.14em 0 -.08em; }
@media (max-width: 690px) { .yum-h1 { font-size: 9.2vw; } }

/* ---------- Home ---------- */
.yum-home-hero-stage {
	position: absolute;
	top: 50%; right: -18%;
	width: 150%;
	max-width: none;
	transform: translateY(-50%);
	z-index: 0;
}
@media (max-width: 999px) { .yum-home-hero-stage { display: none; } }
.yum-home-t > div { padding: .14em 0 .08em; margin: -.14em 0 -.08em; }
.home .yum-final .yum-cta-stage { position: absolute; inset: 0; aspect-ratio: auto; max-width: none; z-index: 3; pointer-events: none; }
.home .yum-final .yum-cta-stage .yum-gummy { pointer-events: auto; }
.home .yum-final .row_col_wrap_12 { position: relative; z-index: 2; }

/* le righe full-width di Salient misurano 100vw (scrollbar compresa): niente scroll orizzontale */
body.yum-motion-page { overflow-x: clip; }

/* ---------- Effetti comuni ---------- */
/* Barra di avanzamento della lettura */
.yum-progress {
	position: fixed; left: 0; top: 0;
	width: 100%; height: 3px;
	background: var(--yum-pink);
	transform: scaleX(0); transform-origin: left;
	z-index: 100002;
	pointer-events: none;
}
body.admin-bar .yum-progress { top: 32px; }
@media (max-width: 782px) { body.admin-bar .yum-progress { top: 46px; } }

/* Evidenziatore a pennarello sulle parole chiave */
.yum-mark {
	background-image: linear-gradient(color-mix(in srgb, currentColor 20%, transparent), color-mix(in srgb, currentColor 20%, transparent));
	background-repeat: no-repeat;
	background-position: 0 88%;
	background-size: 0% 38%;
	transition: background-size 1s var(--yum-ease);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}
.yum-mark.is-on { background-size: 100% 38%; }

/* ---------- Home: sezioni con un effetto proprio ---------- */
/* "Dove sei adesso": linea che barra ogni problema */
.yum-line-txt { position: relative; }
.yum-strike {
	position: absolute; left: 0; right: 0; top: 50%;
	height: 2px; border-radius: 2px;
	background: var(--yum-pink);
	transform: scaleX(0); transform-origin: left;
	pointer-events: none;
}

/* I 3 livelli e i 4 passi: linea che si riempie e accende le colonne */
.yum-steps { position: relative; }
.yum-steps > .yum-line { top: -18px; left: 15px; right: 15px; }
.yum-steps > .yum-line span { background: var(--yum-pink); }
.yum-step > .vc_column-inner { transition: transform .6s var(--yum-ease), box-shadow .6s var(--yum-ease), outline-color .6s var(--yum-ease); outline: 3px solid transparent; outline-offset: -3px; }
.yum-step.is-on > .vc_column-inner { outline-color: var(--yum-pink); box-shadow: 0 28px 50px -30px rgba(12,40,94,.4); }

/* Foto del team: rimbalzo gommoso al passaggio del mouse */
.team-member-image-inner { border-radius: inherit; }
.team-member:hover .team-member-image-inner img { animation: yum-wobble .9s var(--yum-ease); }

/* Caramelle che spuntano dal bordo destro */
.yum-peek-stage { position: absolute; inset: 0; aspect-ratio: auto; max-width: none; margin: 0; z-index: 1; }
.yum-peek-stage .yum-gummy { opacity: .9; }
.yum-has-peek > .row_col_wrap_12 { position: relative; z-index: 2; }
@media (max-width: 999px) { .yum-peek-stage { display: none; } }

/* Contenuto delle card del carosello: profondità per l'inclinazione */
.nectar-flickity .cell .inner-wrap { transform-style: preserve-3d; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
	.yum-progress, .yum-strike { display: none !important; }
	.yum-mark { transition: none; background-size: 100% 38%; }
	.team-member:hover .team-member-image-inner img { animation: none; }
}

/* colonne impilate: linea verticale a sinistra */
.yum-steps--v > .yum-line { top: 6px; bottom: 6px; left: -22px; right: auto; width: 4px; height: auto; }
.yum-steps--v > .yum-line span { transform: scaleY(0); transform-origin: top; }
.yum-steps:not(.yum-steps--v) > .yum-line span { transform: scaleX(0); }
@media (max-width: 999px) { .yum-steps > .yum-line { display: none; } }

/* Home: esplosione di caramelle all'apertura (strato sopra la pagina, non blocca i clic) */
.yum-burst { position: fixed; inset: 0; z-index: 99990; pointer-events: none; overflow: hidden; }
.yum-burst-g {
	position: absolute; height: auto; max-width: none;
	pointer-events: none; user-select: none;
	opacity: 0; visibility: hidden;
	will-change: transform, opacity;
}
.yum-burst-ring {
	position: absolute; width: 60px; height: 60px; border-radius: 50%;
	border: 2px solid rgba(255, 6, 84, .6);
	opacity: 0; visibility: hidden; pointer-events: none;
}
.yum-burst-ring.is-alt { border-color: rgba(255, 202, 97, .8); }

/* Caramelle 3D (sprite Higgsfield) al posto delle forme CSS nelle composizioni decorative */
.yum-gummy-img {
	position: absolute; height: auto; max-width: none;
	pointer-events: auto; user-select: none; -webkit-user-drag: none;
	filter: drop-shadow(0 26px 28px rgba(12, 40, 94, .22));
	will-change: transform;
}
@media (prefers-reduced-motion: reduce) { .yum-burst { display: none !important; } }

/* Home: le aree in scroll orizzontale stanno in una riga a tutta larghezza senza margini: stesso respiro laterale dell'hub */
.home #services .yum-htrack { padding-left: 8vw; padding-right: 8vw; }
.home #services .yum-hprogress { margin-left: 8vw; margin-right: 8vw; }
@media (max-width: 999px) { .home #services .yum-hscroll { margin: 0; padding: 0 20px; } .home #services .yum-htrack { padding-left: 0; padding-right: 20px; } }

/* Mobile: l'aggancio dello scroll rispetta il margine laterale (senza, la card si attacca al bordo) */
@media (max-width: 999px) { .yum-hscroll { scroll-padding-inline: 20px; } }

/* 4 passi ("Come lavoriamo"): card chiare come i 3 livelli delle pagine servizi.
   Numero grande in tan-nimbus, illustrazione in un riquadro navy quadrato, pallini sulla linea.
   Il passo acceso: bordo rosa sulla card, pallino rosa, illustrazione che si solleva. */
.yum-steps:not(.yum-steps--v) > .yum-step > .vc_column-inner {
	position: relative; margin: 0 10px; padding: 26px 24px 28px !important; border-radius: 24px; height: 100%;
	outline: none !important; box-shadow: none !important; transform: none !important;
}
.yum-steps:not(.yum-steps--v) > .yum-step > .vc_column-inner > .column-bg-overlay-wrap .column-bg-overlay { background-color: #F4F6FB !important; border-radius: 24px; }
.yum-steps:not(.yum-steps--v) > .yum-step > .vc_column-inner::after {
	content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 24px;
	box-shadow: inset 0 0 0 3px var(--yum-pink); opacity: 0; transition: opacity .5s var(--yum-ease);
}
.yum-steps:not(.yum-steps--v) > .yum-step.is-on > .vc_column-inner::after { opacity: 1; }
.yum-steps:not(.yum-steps--v) > .yum-line { left: 50px; right: 50px; }
.yum-steps:not(.yum-steps--v) > .yum-step > .vc_column-inner::before {
	content: ""; position: absolute; top: -22px; left: 22px; z-index: 3; width: 12px; height: 12px; border-radius: 50%;
	background: #E3E7F0; box-shadow: 0 0 0 4px #fff; transition: background-color .4s var(--yum-ease), transform .5s var(--yum-ease);
}
.yum-steps:not(.yum-steps--v) > .yum-step.is-on > .vc_column-inner::before { background: var(--yum-pink); transform: scale(1.25); }
/* stessi spazi in tutte le card (nel 4° passo il template aveva margini doppi) */
.yum-steps:not(.yum-steps--v) > .yum-step > .vc_column-inner > .wpb_wrapper > .inner_row { margin-bottom: 20px !important; }
.yum-steps:not(.yum-steps--v) > .yum-step > .vc_column-inner > .wpb_wrapper > .inner_row:last-child { margin-bottom: 0 !important; }
/* titolo: numero sopra, grande, come nelle card dei livelli */
.yum-steps > .yum-step h3 { font-size: 22px !important; line-height: 1.25 !important; }
.yum-steps > .yum-step h3 > span:first-child {
	display: block; font-family: 'tan-nimbus', serif; font-size: 46px !important; line-height: 1; color: #FF0654 !important; margin-bottom: 14px;
}
/* illustrazione: riquadro navy sempre quadrato, immagine centrata (prima le altezze erano diverse) */
.yum-steps > .yum-step .child_column[data-bg-color="#0C285E"] > .vc_column-inner {
	aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 18px !important; border-radius: 18px;
}
.yum-steps > .yum-step .child_column[data-bg-color="#0C285E"] > .vc_column-inner > .column-bg-overlay-wrap,
.yum-steps > .yum-step .child_column[data-bg-color="#0C285E"] > .vc_column-inner > .column-bg-overlay-wrap .column-bg-overlay { border-radius: 18px; }
.yum-steps > .yum-step .child_column[data-bg-color="#0C285E"] .wpb_wrapper { width: 100%; }
.yum-steps > .yum-step .child_column[data-bg-color="#0C285E"] .img-with-aniamtion-wrap { margin: 0 !important; }
.yum-steps:not(.yum-steps--v) > .yum-step .hover-wrap { transition: transform .6s var(--yum-ease), filter .6s var(--yum-ease); }
.yum-steps:not(.yum-steps--v) > .yum-step.is-on .hover-wrap { transform: translateY(-8px); filter: drop-shadow(0 22px 18px rgba(0, 0, 0, .25)); }
@media (max-width: 999px) {
	.yum-steps:not(.yum-steps--v) > .yum-step > .vc_column-inner { margin: 0 0 20px; }
	.yum-steps:not(.yum-steps--v) > .yum-step > .vc_column-inner::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.yum-steps:not(.yum-steps--v) > .yum-step.is-on .hover-wrap { transform: none; }
}

/* ---------- Home e /come-lavoriamo/: icone 3D nelle card dei 3 livelli ---------- */
.child_column:has(.yum-lv-ico--home) > .vc_column-inner { position: relative; }
.wpb_text_column.yum-lv-ico-wrap { margin: 0 !important; padding: 0 !important; height: 0; position: static; }
.yum-lv-ico-wrap img.yum-lv-ico--home {
	position: absolute; top: -26px; right: 22px; z-index: 3; width: 84px !important; height: 84px !important; max-width: none;
	object-fit: contain; filter: drop-shadow(0 14px 14px rgba(12, 40, 94, .3));
	transition: transform .7s cubic-bezier(.34, 1.56, .64, 1);
}
.yum-step.is-on .yum-lv-ico--home { transform: translateY(-6px) rotate(-6deg) scale(1.08); }
/* carosello mobile: sopra il titolo, dentro la card (il carosello taglia quello che sporge) */
.carousel-outer .wpb_text_column.yum-lv-ico-wrap, .nectar-flickity .wpb_text_column.yum-lv-ico-wrap { height: auto; margin: 0 0 10px !important; }
.carousel-outer .yum-lv-ico-wrap img.yum-lv-ico--home, .nectar-flickity .yum-lv-ico-wrap img.yum-lv-ico--home { position: static; display: block; width: 64px !important; height: 64px !important; }
@media (prefers-reduced-motion: reduce) { .yum-lv-ico--home { transition: none; } .yum-step.is-on .yum-lv-ico--home { transform: none; } }
