/* Yummies Arya Forms: skin Yummies sopra l'embed Arya (classi .arya-form-*).
   Vale solo dentro .yum-arya, così i form Arya già presenti in /risorse/ restano come sono.
   Contrasti: testo navy #0C285E su bianco 15.6:1; bottone giallo #FFCA61 con testo navy 9.4:1;
   testo bianco su navy 15.6:1. */

.yum-arya {
	--yum-navy: #0C285E;
	--yum-pink: #FF0654;
	--yum-yellow: #FFCA61;
}
.yum-arya .arya-form-host {
	--arya-form-primary: var(--yum-pink);
	--arya-form-accent: var(--yum-navy);
	--arya-form-text: var(--yum-navy);
	--arya-form-muted: #4A5878;
	--arya-form-border: rgba(12, 40, 94, .18);
	--arya-form-radius: 14px;
	--arya-form-font: 'Raleway', Helvetica, Arial, sans-serif;
	max-width: 640px;
	letter-spacing: normal;
	text-align: left;
}
.yum-arya .arya-form-host .arya-form {
	border: 0;
	padding: clamp(24px, 3.4vw, 44px);
	border-radius: 28px;
	gap: 18px;
	box-shadow: 0 40px 80px -40px rgba(12, 40, 94, .35);
}
.yum-arya .arya-form-host .arya-form-title { display: none; }
.yum-arya .arya-form-host .arya-form-description { font-size: 16px; line-height: 1.5; color: var(--arya-form-muted); }
.yum-arya .arya-form-host .arya-form-field label,
.yum-arya .arya-form-host .arya-form-group-title { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.yum-arya .arya-form-host .arya-form-required { color: var(--yum-pink); }
.yum-arya .arya-form-host .arya-form-field input[type="text"],
.yum-arya .arya-form-host .arya-form-field input[type="email"],
.yum-arya .arya-form-host .arya-form-field input[type="tel"],
.yum-arya .arya-form-host .arya-form-field input[type="number"],
.yum-arya .arya-form-host .arya-form-field input[type="url"],
.yum-arya .arya-form-host .arya-form-field select,
.yum-arya .arya-form-host .arya-form-field textarea {
	font-size: 16px; /* niente zoom automatico su iPhone */
	padding: 14px 18px;
	border-width: 1.5px;
	background: #fff;
	min-height: 52px;
	width: 100%;
	max-width: none;
	align-self: stretch;
	box-sizing: border-box;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}
.yum-arya .arya-form-host .arya-form-field input:focus,
.yum-arya .arya-form-host .arya-form-field select:focus,
.yum-arya .arya-form-host .arya-form-field textarea:focus {
	border-color: var(--yum-pink);
	box-shadow: 0 0 0 4px rgba(255, 6, 84, .16);
}
.yum-arya .arya-form-host input[type="checkbox"] { accent-color: var(--yum-pink); width: 18px; height: 18px; }
.yum-arya .arya-form-host .arya-form-checkbox,
.yum-arya .arya-form-host .arya-form-privacy-label { font-size: 14px; line-height: 1.5; font-weight: 500; }
.yum-arya .arya-form-host .arya-form-privacy a { color: inherit; text-decoration: underline; font-weight: 700; }
.yum-arya .arya-form-host .arya-form-submit {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
	padding: 16px 34px;
	border: 0;
	border-radius: 999px;
	background: var(--yum-navy);
	color: #fff;
	font: 700 16px/1 'Raleway', Helvetica, Arial, sans-serif;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background .25s, transform .25s cubic-bezier(.22, 1, .36, 1);
}
.yum-arya .arya-form-host .arya-form-submit::after { content: "→"; transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.yum-arya .arya-form-host .arya-form-submit:hover { background: var(--yum-pink); transform: translateY(-2px); }
.yum-arya .arya-form-host .arya-form-submit:hover::after { transform: translateX(4px); }
.yum-arya .arya-form-host .arya-form-submit:focus-visible { outline: 3px solid var(--yum-pink); outline-offset: 3px; }
.yum-arya .arya-form-host .arya-form-submit:disabled { opacity: .7; cursor: wait; transform: none; }
.yum-arya .arya-form-host .arya-form-success-title { font-family: 'tan-nimbus', serif; font-weight: normal; color: var(--yum-navy); font-size: 32px; line-height: 1.15; }
.yum-arya .arya-form-host .arya-form-branding { opacity: .6; font-size: 12px; }
@media (max-width: 690px) {
	.yum-arya .arya-form-host .arya-form-submit { align-self: stretch; justify-content: center; }
}

/* Segnaposto quando lo slug del form non è ancora impostato (solo locale/admin) */
.yum-arya--missing {
	max-width: 640px; margin: 0 auto; padding: 24px 28px;
	border: 2px dashed rgba(12, 40, 94, .35); border-radius: 20px;
	background: #FFF4D9; color: #0C285E; font-size: 15px; line-height: 1.5;
}
.yum-arya--missing code { font-size: 13px; background: #fff; padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* ---------- Blocco newsletter sopra il footer ---------- */
.yum-news {
	position: relative;
	overflow: hidden;
	background: #0C285E;
	color: #fff;
	padding: clamp(64px, 8vw, 120px) 8%;
}
.yum-news-inner {
	position: relative; z-index: 1;
	max-width: 1240px; margin: 0 auto;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(32px, 5vw, 80px); align-items: center;
}
.yum-news-eyebrow { font-family: 'Caveat', 'tan-nimbus', cursive; color: #4BEFC3; font-size: 26px; margin: 0 0 6px; }
.yum-news-title { font-family: 'tan-nimbus', serif; font-weight: normal; color: #fff !important; font-size: clamp(36px, 4.2vw, 64px) !important; line-height: 1.1 !important; letter-spacing: 0 !important; margin: 0 0 18px; }
.yum-news-text { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .86); max-width: 460px; margin: 0; }

/* form in linea sul blu */
.yum-arya--inline .arya-form-host { max-width: none; }
.yum-arya--inline .arya-form-host .arya-form {
	background: transparent; padding: 0; box-shadow: none; border-radius: 0;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 16px; align-items: end;
	--arya-form-text: #fff;
	--arya-form-muted: rgba(255, 255, 255, .78);
}
.yum-arya--inline .arya-form-host .arya-form > :not(.arya-form-field):not(input),
.yum-arya--inline .arya-form-host .arya-form-field-checkbox,
.yum-arya--inline .arya-form-host .arya-form-field-checkbox-group { grid-column: 1 / -1; }
.yum-arya--inline .arya-form-host .arya-form-field input:not([type="checkbox"]) { border-color: transparent; color: #0C285E; }
.yum-arya--inline .arya-form-host .arya-form-submit { background: #FFCA61; color: #0C285E; }
.yum-arya--inline .arya-form-host .arya-form-submit:hover { background: #fff; color: #0C285E; }
.yum-arya--inline .arya-form-host .arya-form-submit:focus-visible { outline-color: #FFCA61; }
.yum-arya--inline .arya-form-host .arya-form-privacy a { color: #FFCA61; }
.yum-arya--inline .arya-form-host .arya-form-branding,
.yum-arya--inline .arya-form-host .arya-form-branding a { color: rgba(255, 255, 255, .7); }
.yum-arya--inline .arya-form-host .arya-form-success-screen { color: #fff; }
.yum-arya--inline .arya-form-host .arya-form-success-title { color: #fff; }
.yum-news .yum-arya--missing { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .4); }
.yum-news .yum-arya--missing code { background: rgba(255, 255, 255, .15); color: #fff; }

/* caramelle 3D decorative (sprite Higgsfield), fluttuazione solo CSS: funziona anche dove il layer di animazioni non è caricato */
.yum-news-gummy {
	position: absolute; height: auto; max-width: none;
	pointer-events: none; user-select: none; -webkit-user-drag: none;
	filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .35));
	animation: yum-news-float 7s ease-in-out infinite alternate;
}
.yum-news-gummy--a { width: 150px; left: -34px; top: 14%; --r0: -14deg; --r1: -2deg; }
.yum-news-gummy--b { width: 92px; right: 6%; top: 8%; --r0: 10deg; --r1: 22deg; animation-delay: -2s; }
.yum-news-gummy--c { width: 170px; right: -46px; bottom: -40px; --r0: -8deg; --r1: 6deg; animation-delay: -4s; }
.yum-news-gummy--d { width: 64px; left: 40%; bottom: 10%; --r0: 14deg; --r1: -6deg; animation-delay: -5.5s; opacity: .9; }
@keyframes yum-news-float {
	0% { transform: translateY(0) rotate(var(--r0, -6deg)); }
	100% { transform: translateY(-20px) rotate(var(--r1, 8deg)); }
}
@media (max-width: 999px) {
	.yum-news-inner { grid-template-columns: minmax(0, 1fr); }
	.yum-news { padding-left: 20px; padding-right: 20px; }
	.yum-news-gummy--a { width: 84px; left: -24px; top: 6%; }
	.yum-news-gummy--b { width: 60px; }
	.yum-news-gummy--c { width: 110px; right: -30px; bottom: -26px; }
	.yum-news-gummy--d { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.yum-news-gummy { animation: none; }
	.yum-arya .arya-form-host .arya-form-submit,
	.yum-arya .arya-form-host .arya-form-submit::after { transition: none; }
}

/* "Powered by arya.so" leggibile sul blu */
.yum-arya--inline .arya-form-host .arya-form-branding,
.yum-arya--inline .arya-form-host .arya-form-branding * { color: rgba(255, 255, 255, .72) !important; }
.yum-arya--inline .arya-form-host .arya-form-branding img,
.yum-arya--inline .arya-form-host .arya-form-branding svg { filter: brightness(0) invert(1); opacity: .72; }

/* Newsletter (variante inline): i campi occupano tutta la riga della griglia Arya, larghi quanto il bottone */
.yum-arya--inline .arya-form-host .arya-form-field { grid-column: 1 / -1; }

/* ======================================================================
   Form contatti (variante card) nello stile Yummies
   griglia a 2 colonne, campi morbidi, spunte rosa, CTA come nel sito, caramelle 3D
   ====================================================================== */
.yum-arya--card { position: relative; max-width: 780px; margin-left: auto; margin-right: auto; }
.yum-arya--card .arya-form-host { max-width: none; }
.yum-arya--card .arya-form-host .arya-form {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 22px 18px;
	position: relative; z-index: 1;
	background: #fff;
	border: 2px solid rgba(12, 40, 94, .08);
	border-radius: 36px;
	padding: clamp(28px, 4.2vw, 56px);
	box-shadow: 0 2px 0 rgba(12, 40, 94, .05), 0 36px 70px -40px rgba(12, 40, 94, .45);
}
.yum-arya--card .arya-form-host .arya-form > * { grid-column: 1 / -1; min-width: 0; }
/* Nome | Cognome, Email a tutta riga, Azienda | Telefono */
.yum-arya--card .arya-form-host .arya-form > .arya-form-field:has(> input[type="text"]),
.yum-arya--card .arya-form-host .arya-form > .arya-form-field:has(> input[type="tel"]) { grid-column: auto; }
.yum-arya--card .arya-form-host .arya-form > .arya-form-honeypot { display: none; }

.yum-arya--card .arya-form-host .arya-form-description {
	text-align: center; max-width: 460px; margin: 0 auto 6px;
	font-size: 18px; line-height: 1.55; font-weight: 500; color: var(--yum-navy);
}
.yum-arya--card .arya-form-host .arya-form-field { gap: 8px; }
.yum-arya--card .arya-form-host .arya-form-field > label { font-size: 14px; font-weight: 700; color: var(--yum-navy); letter-spacing: .01em; }

/* campi morbidi su azzurrino, bordo rosa al focus */
.yum-arya--card .arya-form-host .arya-form-field input:not([type="checkbox"]),
.yum-arya--card .arya-form-host .arya-form-field textarea,
.yum-arya--card .arya-form-host .arya-form-field select {
	background: #F4F6FB !important;
	border: 2px solid transparent !important;
	border-radius: 16px !important;
	min-height: 56px;
	padding: 15px 18px !important;
	color: var(--yum-navy);
	box-shadow: none !important;
}
.yum-arya--card .arya-form-host .arya-form-field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.yum-arya--card .arya-form-host .arya-form-field input::placeholder,
.yum-arya--card .arya-form-host .arya-form-field textarea::placeholder { color: #8A94AD; }
.yum-arya--card .arya-form-host .arya-form-field input:hover:not(:focus),
.yum-arya--card .arya-form-host .arya-form-field textarea:hover:not(:focus) { background: #EDF0F8 !important; }
.yum-arya--card .arya-form-host .arya-form-field input:focus,
.yum-arya--card .arya-form-host .arya-form-field textarea:focus {
	background: #fff !important;
	border-color: var(--yum-pink) !important;
	box-shadow: 0 0 0 5px rgba(255, 6, 84, .12) !important;
	outline: none;
}

/* spunte personalizzate */
.yum-arya--card .arya-form-host .arya-form-privacy {
	background: transparent !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important;
}
.yum-arya--card .arya-form-host .arya-form-checkbox,
.yum-arya--card .arya-form-host .arya-form-privacy-label {
	display: flex !important; align-items: flex-start; gap: 12px;
	font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--yum-navy); cursor: pointer;
}
.yum-arya--card .arya-form-host input[type="checkbox"] {
	-webkit-appearance: none; appearance: none;
	flex: 0 0 24px; width: 24px !important; height: 24px !important; margin: 0 !important;
	border: 2px solid rgba(12, 40, 94, .3); border-radius: 8px; background: #fff;
	display: grid; place-content: center; cursor: pointer;
	transition: background .2s, border-color .2s, transform .2s;
}
.yum-arya--card .arya-form-host input[type="checkbox"]::after {
	content: ""; width: 12px; height: 7px; margin-top: -3px;
	border: solid #fff; border-width: 0 0 3px 3px; transform: rotate(-45deg) scale(0);
	transition: transform .25s cubic-bezier(.34, 1.56, .64, 1);
}
.yum-arya--card .arya-form-host input[type="checkbox"]:hover { border-color: var(--yum-pink); }
.yum-arya--card .arya-form-host input[type="checkbox"]:checked { background: var(--yum-pink); border-color: var(--yum-pink); }
.yum-arya--card .arya-form-host input[type="checkbox"]:checked::after { transform: rotate(-45deg) scale(1); }
.yum-arya--card .arya-form-host input[type="checkbox"]:focus-visible { outline: 3px solid var(--yum-pink); outline-offset: 2px; }
.yum-arya--card .arya-form-host .arya-form-privacy a { color: var(--yum-pink); }
.yum-arya--card .arya-form-host .arya-form-privacy-links { font-size: 13px; opacity: .8; }

/* CTA come quelle del sito: pillola blu con la lineetta, rosa al passaggio */
.yum-arya--card .arya-form-host .arya-form-submit {
	justify-self: start; width: auto !important; margin-top: 6px;
	display: inline-flex !important; align-items: center; gap: 14px;
	min-height: 60px; padding: 18px 40px !important;
	background: var(--yum-navy) !important; color: #fff !important;
	border-radius: 999px !important; border: 0 !important;
	font: 600 16px/1 'Raleway', Helvetica, Arial, sans-serif !important; letter-spacing: .01em;
	box-shadow: 0 14px 28px -16px rgba(12, 40, 94, .7);
}
.yum-arya--card .arya-form-host .arya-form-submit::before {
	content: ""; width: 26px; height: 1.5px; background: currentColor;
	transition: width .35s cubic-bezier(.22, 1, .36, 1);
}
.yum-arya--card .arya-form-host .arya-form-submit::after { content: none !important; }
.yum-arya--card .arya-form-host .arya-form-submit:hover { background: var(--yum-pink) !important; transform: translateY(-2px); }
.yum-arya--card .arya-form-host .arya-form-submit:hover::before { width: 40px; }

.yum-arya--card .arya-form-host .arya-form-status:empty { display: none; }
.yum-arya--card .arya-form-host .arya-form-branding { border-top: 0 !important; padding-top: 0 !important; margin-top: -4px; opacity: .55; justify-content: center; }

/* caramelle 3D che spuntano dagli angoli della card */
.yum-arya--card::before,
.yum-arya--card::after {
	content: ""; position: absolute; z-index: 2; pointer-events: none;
	background: center / contain no-repeat;
	filter: drop-shadow(0 20px 22px rgba(12, 40, 94, .22));
	animation: yum-card-float 6s ease-in-out infinite alternate;
}
.yum-arya--card::before { width: 120px; height: 120px; top: -46px; right: -38px; background-image: url('../yummies-motion/gummies/g01.webp'); --r0: 10deg; --r1: 18deg; }
.yum-arya--card::after { width: 104px; height: 104px; bottom: -34px; left: -40px; background-image: url('../yummies-motion/gummies/g02.webp'); --r0: -12deg; --r1: -2deg; animation-delay: -3s; }
@keyframes yum-card-float {
	0% { transform: translateY(0) rotate(var(--r0)); }
	100% { transform: translateY(-14px) rotate(var(--r1)); }
}

@media (max-width: 690px) {
	.yum-arya--card .arya-form-host .arya-form { grid-template-columns: minmax(0, 1fr); border-radius: 28px; }
	.yum-arya--card .arya-form-host .arya-form > .arya-form-field { grid-column: 1 / -1 !important; }
	.yum-arya--card .arya-form-host .arya-form-submit { justify-self: stretch; justify-content: center; }
	.yum-arya--card::before { width: 78px; height: 78px; top: -30px; right: -8px; }
	.yum-arya--card::after { width: 68px; height: 68px; bottom: -24px; left: -8px; }
}
@media (prefers-reduced-motion: reduce) {
	.yum-arya--card::before, .yum-arya--card::after { animation: none; }
}

/* ---------- Richiesta servizi in 2 passi ([yum_arya_steps]) ---------- */
.yum-steps-form { position: relative; z-index: 1; }
.yum-steps-form__bar { display: flex; gap: 10px; margin: 0 0 16px !important; padding: 0 !important; list-style: none !important; }
.yum-steps-form__bar li { display: flex; align-items: center; gap: 8px; margin: 0 !important; padding: 8px 14px 8px 8px !important; border-radius: 999px; background: rgba(12, 40, 94, .07); color: #0C285E; font-size: 14px; font-weight: 700; line-height: 1; opacity: .55; transition: opacity .3s ease, background-color .3s ease; list-style: none !important; }
.yum-steps-form__bar li::before { display: none !important; }
.yum-steps-form__bar li b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #0C285E; color: #fff; font-size: 12px; }
.yum-steps-form__bar li.is-on { opacity: 1; background: #fff; box-shadow: 0 6px 18px -10px rgba(12, 40, 94, .35); }
.yum-steps-form__bar li.is-on b { background: #FF0654; }
.yum-steps-form__bar li.is-done { opacity: 1; }
.yum-steps-form__bar li.is-done b { background: #4BEFC3; color: #0C285E; font-size: 0; }
.yum-steps-form__bar li.is-done b::after { content: "✓"; font-size: 13px; }
.yum-steps-form__ok { margin: 0 0 10px !important; padding: 12px 16px; border-radius: 14px; background: #E8FBF5; color: #0C285E; font-size: 16px; }
.yum-steps-form__ok span { color: #19a37f; font-weight: 800; }
.yum-steps-form__intro { margin: 0 0 14px !important; color: #0C285E; font-size: 17px; }
.yum-steps-form .yum-hidden-field { display: none !important; }
.yum-steps-form__skip { margin: 12px 0 0 16px; padding: 0; border: 0; background: none; color: #0C285E; font: 600 15px/1.2 'Raleway', Helvetica, Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; opacity: .75; }
.yum-steps-form__skip:hover { opacity: 1; color: #FF0654; }
@media (max-width: 690px) {
	.yum-steps-form__bar li { font-size: 13px; padding-right: 10px !important; }
	.yum-steps-form__skip { display: block; margin: 14px auto 0; }
}

/* Sezione contatto in fondo alle pagine servizi */
.yum-contact .yum-contact-where { margin-top: 8px; color: #0C285E; font-size: 16px; }
.yum-contact .nectar-fancy-ul li { color: #0C285E; font-size: 17px; line-height: 1.5; }
/* nel form a 2 passi: niente orsetto in griglia, campi a tutta riga (nome ed email affiancati su desktop) */
.yum-steps-form .arya-form-host .arya-form::before { display: none !important; }
.yum-steps-form .yum-arya--card .arya-form-host .arya-form > .arya-form-field { grid-column: 1 / -1; }
@media (min-width: 1000px) {
	.yum-steps-form__step--1 .arya-form-field:has([name="first_name"]) { grid-column: 1 / 2 !important; }
	.yum-steps-form__step--1 .arya-form-field:has([name="email"]) { grid-column: 2 / 3 !important; }
	.yum-steps-form__step--2 .arya-form-field:has([name="tempi"]) { grid-column: 1 / 2 !important; }
	.yum-steps-form__step--2 .arya-form-field:has([name="budget"]) { grid-column: 2 / 3 !important; }
}
@media (max-width: 690px) {
	.yum-steps-form__bar { gap: 6px; }
	.yum-steps-form__bar li { white-space: nowrap; font-size: 12px; gap: 6px; }
	.yum-steps-form__bar li b { width: 20px; height: 20px; }
	.yum-steps-form .yum-arya--card::before { display: none; } /* caramella d'angolo: non coprire i passi */
}
/* barra dei passi allineata alla card (la card è larga al massimo 780px e centrata) */
.yum-steps-form { max-width: 780px; margin-left: auto; margin-right: auto; text-align: left; }
/* sezione con il form a 2 passi: lo sfondo (in home è un colore con parallasse) copre sempre tutta la sezione */
.wpb_row:has(.yum-steps-form) > .row-bg-wrap .row-bg { height: 100% !important; transform: none !important; }
@media (max-width: 690px) { body .wpb_row#contatti:has(.yum-steps-form) { padding-bottom: 48px !important; } }
