/* ==========================================================================
   Form "Richiedi preventivo" — pannello fisso (desktop), drawer (tablet),
   bottom sheet (mobile).

   I token --iv-* riprendono quelli del redesign (redesign.css, definiti solo sotto
   .infovisti-redesign) con un valore di riserva per le pagine Enfold non migrate.
   Tutti i selettori sono sotto .iv-quote per non scontrarsi con Enfold e CF7.
   ========================================================================== */

:root {
	--iv-navy: var(--blue-900, #042c53);
	--iv-blue: var(--blue-700, #0c5aa3);
	--iv-blue-50: var(--blue-50, #e6f1fb);
	--iv-rose: var(--rose-600, #cf4988);
	--iv-rose-dark: var(--rose-700, #a8316b);
	--iv-ink: var(--ink, #1a1a2e);
	--iv-ink-60: var(--ink-60, #4a4a6a);
	--iv-ink-40: var(--ink-40, #6b7280);
	--iv-ink-20: var(--ink-20, #d1d5db);
	--iv-ink-10: var(--ink-10, #e5e7eb);
	--iv-ink-02: var(--ink-02, #f9fafb);
	--iv-ok: var(--teal-400, #1d9e75);
	--iv-error: #c62828;
	--iv-font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--iv-font-display: 'DM Serif Display', Georgia, serif;
	--iv-radius: 14px;
	--iv-radius-field: 10px;
	--iv-shadow: 0 16px 40px rgba(4, 44, 83, .14), 0 2px 6px rgba(4, 44, 83, .06);
	--iv-ease: cubic-bezier(.4, 0, .2, 1);

	/* Geometria del pannello */
	--iv-quote-w: 340px;
	--iv-quote-gap: 24px;
	--iv-quote-top: 110px;          /* aggiornato dal JS: sotto l'header, allineato al titolo */
	--iv-quote-bar-h: 56px;         /* barra mobile */
	--iv-quote-reserved: calc(var(--iv-quote-w) + var(--iv-quote-gap) * 2);
}

/* Nascosto finché il JS non ha scelto la modalità (evita salti al caricamento). */
.iv-quote:not([data-mode]) { display: none; }

.iv-quote,
.iv-quote * { box-sizing: border-box; }

.iv-quote {
	font-family: var(--iv-font-body);
	color: var(--iv-ink);
	font-size: 14px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

.iv-quote__sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}

.iv-quote button { font-family: inherit; }

.iv-quote :focus-visible {
	outline: 3px solid var(--iv-blue);
	outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Pannello
   -------------------------------------------------------------------------- */

.iv-quote__panel {
	position: fixed;
	z-index: 9000;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: var(--iv-radius);
	box-shadow: var(--iv-shadow);
	overflow: hidden;
	outline: none;
}

.iv-quote__head {
	flex: 0 0 auto;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 18px 14px;
	background: var(--iv-navy);
	color: #fff;
	position: relative;
}
/* Filetto in testa come la contact-card del sito */
.iv-quote__head::after {
	content: '';
	position: absolute;
	left: 18px; right: 18px; top: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--iv-rose), #f59e0b);
	border-radius: 0 0 3px 3px;
}

.iv-quote .iv-quote__title {
	margin: 0;
	padding: 0;
	font-family: var(--iv-font-display);
	font-weight: 400;
	font-size: 22px;
	line-height: 1.15;
	color: #fff;
	letter-spacing: 0;
	text-transform: none;
}

.iv-quote .iv-quote__sub {
	margin: 4px 0 0;
	padding: 0;
	font-size: 12.5px;
	line-height: 1.35;
	color: rgba(255, 255, 255, .78);
}

.iv-quote__close {
	flex: 0 0 auto;
	width: 34px; height: 34px;
	display: inline-flex; align-items: center; justify-content: center;
	margin: -4px -6px 0 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	cursor: pointer;
	transition: background .2s var(--iv-ease);
}
.iv-quote__close:hover { background: rgba(255, 255, 255, .2); }
.iv-quote__close:focus-visible { outline-color: #fff; }

/* Desktop: il pulsante riduce a linguetta (freccia a destra invece della X) */
.iv-quote__ico-min { display: none; }
.iv-quote[data-mode="desktop"] .iv-quote__ico-x { display: none; }
.iv-quote[data-mode="desktop"] .iv-quote__ico-min { display: block; }

.iv-quote__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	padding: 16px 18px 0;
	scrollbar-width: thin;
}

/* --------------------------------------------------------------------------
   Linguetta (desktop ridotto e tablet)
   -------------------------------------------------------------------------- */

.iv-quote__tab {
	position: fixed;
	z-index: 8999;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	display: none;
	padding: 18px 11px;
	border: 0;
	border-radius: 12px 0 0 12px;
	background: var(--iv-navy);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .01em;
	cursor: pointer;
	box-shadow: var(--iv-shadow);
	transition: background .2s var(--iv-ease), padding .2s var(--iv-ease);
}
.iv-quote__tab:hover { background: var(--iv-blue); padding-right: 14px; }
.iv-quote__tab-label {
	display: block;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	white-space: nowrap;
}
.iv-quote__tab::before {
	content: '';
	display: block;
	width: 8px; height: 8px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: var(--iv-rose);
}

/* --------------------------------------------------------------------------
   Barra mobile
   -------------------------------------------------------------------------- */

.iv-quote__bar {
	position: fixed;
	z-index: 8999;
	left: 0; right: 0; bottom: 0;
	display: none;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: var(--iv-quote-bar-h);
	padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
	border: 0;
	border-radius: 0;
	background: var(--iv-navy);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 -6px 20px rgba(4, 44, 83, .18);
}
.iv-quote__bar::before {
	content: '';
	width: 8px; height: 8px;
	border-radius: 50%;
	background: var(--iv-rose);
}

.iv-quote__backdrop {
	position: fixed;
	inset: 0;
	z-index: 8998;
	background: rgba(4, 22, 43, .45);
	opacity: 0;
	transition: opacity .25s var(--iv-ease);
}
.iv-quote.is-open .iv-quote__backdrop { opacity: 1; }

/* --------------------------------------------------------------------------
   Modalità DESKTOP (>= 1280px): pannello fisso a destra
   -------------------------------------------------------------------------- */

.iv-quote[data-mode="desktop"] .iv-quote__panel {
	top: var(--iv-quote-top);
	right: var(--iv-quote-gap);
	width: var(--iv-quote-w);
	max-height: calc(100vh - var(--iv-quote-top) - var(--iv-quote-gap));
	max-height: calc(100dvh - var(--iv-quote-top) - var(--iv-quote-gap));
	transition: transform .3s var(--iv-ease), opacity .2s var(--iv-ease);
}
.iv-quote[data-mode="desktop"]:not(.is-open) .iv-quote__panel {
	transform: translateX(calc(100% + var(--iv-quote-gap) + 8px));
	opacity: 0;
	visibility: hidden;
	transition: transform .3s var(--iv-ease), opacity .2s var(--iv-ease), visibility 0s .3s;
}
.iv-quote[data-mode="desktop"]:not(.is-open) .iv-quote__tab { display: block; }
.iv-quote[data-mode="desktop"] .iv-quote__backdrop { display: none; }

/* Spazio riservato al pannello: si restringe tutto tranne topbar e header sticky. */
body.iv-quote-docked > :not(.topbar):not(.header):not(#ivr-header):not(.iv-quote):not(.mobile-menu):not(.svs-ov):not(.pum):not(.chaty):not(.chaty-outer-forms):not([class*="cky-"]):not(script):not(style):not(svg),
body.iv-quote-docked #wrap_all > #main {
	margin-right: var(--iv-quote-reserved);
}

/* Banda "Cerca servizio": la sua larghezza è calcolata sul body (100% - 80px), va tolto lo spazio del pannello. */
body.infovisti-redesign.iv-quote-docked > .svs--band { width: calc(100% - var(--iv-quote-reserved) - 80px); }

/* La contact-card dell'hero (vecchio form) lascia il posto al pannello. */
body.iv-has-quote .contact-card { display: none !important; }
body.iv-has-quote .page-hero-inner { grid-template-columns: minmax(0, 1fr); }

/* Fino a 1599px la sidebar del corpo pagina scende sotto il contenuto (tre colonne non ci stanno). */
@media (max-width: 1599px) {
	body.iv-quote-docked .page-body { grid-template-columns: minmax(0, 1fr); }
	body.iv-quote-docked .page-body > .sidebar,
	body.iv-quote-docked .page-body > aside { position: static; }
	/* Banda "Cerca servizio": su una colonna, altrimenti le chip sbordano sotto il pannello. */
	body.iv-quote-docked .svs--band { grid-template-columns: minmax(0, 1fr); }
	/* Contatti: griglia dei reparti su due colonne (tre non ci stanno accanto al pannello). */
	body.iv-quote-docked .dept-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Pulsanti fissi a destra (chat WhatsApp, reCAPTCHA) spostati a sinistra del pannello. */
body.iv-quote-docked .chaty-widget.right-position,
body.iv-quote-docked .chaty-widget[style*="right"] {
	right: calc(var(--iv-quote-reserved) - var(--iv-quote-gap) + 4px) !important;
}
body.iv-quote-docked .grecaptcha-badge {
	right: calc(var(--iv-quote-reserved) - 186px) !important;
	bottom: 92px !important;
}

/* --------------------------------------------------------------------------
   Modalità TABLET (1024–1279px): linguetta + drawer da destra
   -------------------------------------------------------------------------- */

.iv-quote[data-mode="tablet"] .iv-quote__tab { display: block; }
.iv-quote[data-mode="tablet"] .iv-quote__panel {
	top: 0; right: 0; bottom: 0;
	width: min(400px, 92vw);
	border-radius: var(--iv-radius) 0 0 var(--iv-radius);
	transform: translateX(105%);
	visibility: hidden;
	transition: transform .3s var(--iv-ease), visibility 0s .3s;
}
.iv-quote[data-mode="tablet"].is-open .iv-quote__panel {
	transform: none;
	visibility: visible;
	transition: transform .3s var(--iv-ease);
}
.iv-quote[data-mode="tablet"].is-open .iv-quote__tab { display: none; }

/* --------------------------------------------------------------------------
   Modalità MOBILE (< 1024px): barra in basso + bottom sheet a schermo pieno
   -------------------------------------------------------------------------- */

.iv-quote[data-mode="mobile"] .iv-quote__bar { display: flex; }
.iv-quote[data-mode="mobile"] .iv-quote__panel {
	left: 0; right: 0; bottom: 0;
	top: 0;
	height: 100%;
	height: 100dvh;
	border-radius: 0;
	transform: translateY(100%);
	visibility: hidden;
	transition: transform .3s var(--iv-ease), visibility 0s .3s;
}
.iv-quote[data-mode="mobile"].is-open .iv-quote__panel {
	transform: none;
	visibility: visible;
	transition: transform .3s var(--iv-ease);
}
.iv-quote[data-mode="mobile"] .iv-quote__head { padding-top: calc(16px + env(safe-area-inset-top, 0px)); }

/* Spazio in fondo alla pagina per non coprire il footer con la barra. */
body.iv-quote-mobile { padding-bottom: var(--iv-quote-bar-h); }
/* Chat e badge reCAPTCHA sopra la barra. */
body.iv-quote-mobile .chaty-widget { bottom: calc(var(--iv-quote-bar-h) + 14px) !important; }
body.iv-quote-mobile .grecaptcha-badge { bottom: calc(var(--iv-quote-bar-h) + 14px) !important; }
body.iv-quote-mobile .cky-btn-revisit-wrapper { bottom: calc(var(--iv-quote-bar-h) + 14px) !important; }

/* Con drawer o bottom sheet aperto: niente chat sopra il form. */
body.iv-quote-modal-open .chaty,
body.iv-quote-modal-open .chaty-widget,
body.iv-quote-modal-open .grecaptcha-badge,
body.iv-quote-modal-open .cky-btn-revisit-wrapper { visibility: hidden !important; }

/* Blocco dello scroll della pagina sotto drawer/bottom sheet */
html.iv-quote-lock,
html.iv-quote-lock body { overflow: hidden !important; }
html.iv-quote-lock body { position: fixed; left: 0; right: 0; width: 100%; }

/* --------------------------------------------------------------------------
   Campi del form (CF7) — sovrascrive Enfold, CF7 e lo stile della contact-card
   -------------------------------------------------------------------------- */

.iv-quote .wpcf7 { margin: 0; padding: 0; }
.iv-quote .wpcf7 form { margin: 0; padding: 0; background: none; border: 0; }
.iv-quote .wpcf7 form > div:first-child[style*="none"] { display: none; } /* campi hidden CF7 */
.iv-quote .wpcf7 p { margin: 0; padding: 0; }
.iv-quote .wpcf7 br { display: none; }

.iv-quote .iv-f { margin: 0 0 12px; }
.iv-quote .iv-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 10px;
}

.iv-quote .iv-f > label,
.iv-quote .iv-f .iv-label {
	display: block;
	margin: 0 0 5px;
	padding: 0;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--iv-ink-60);
	text-transform: none;
	letter-spacing: 0;
}
.iv-quote .iv-req { color: var(--iv-rose); font-weight: 700; text-decoration: none; border: 0; }
.iv-quote .iv-opt { font-weight: 400; color: var(--iv-ink-40); }

.iv-quote .wpcf7-form-control-wrap { display: block; position: relative; }

.iv-quote input[type="text"],
.iv-quote input[type="email"],
.iv-quote input[type="tel"],
.iv-quote input[type="search"],
.iv-quote select,
.iv-quote textarea {
	display: block;
	width: 100%;
	max-width: none;
	min-height: 42px;
	margin: 0;
	padding: 9px 12px;
	font-family: var(--iv-font-body);
	font-size: 15px;
	line-height: 1.35;
	color: var(--iv-ink);
	background: #fff;
	border: 1.5px solid var(--iv-ink-20);
	border-radius: var(--iv-radius-field);
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s var(--iv-ease), box-shadow .15s var(--iv-ease);
}
.iv-quote textarea { min-height: 76px; resize: vertical; }
.iv-quote select {
	padding-right: 34px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23042c53' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	cursor: pointer;
	text-overflow: ellipsis;
}
.iv-quote input::placeholder,
.iv-quote textarea::placeholder { color: var(--iv-ink-40); opacity: 1; }

.iv-quote input:focus,
.iv-quote select:focus,
.iv-quote textarea:focus {
	outline: none;
	border-color: var(--iv-blue);
	box-shadow: 0 0 0 3px rgba(12, 90, 163, .2);
}

.iv-quote input[type="file"] {
	display: block;
	width: 100%;
	padding: 8px;
	font-size: 13px;
	border: 1.5px dashed var(--iv-ink-20);
	border-radius: var(--iv-radius-field);
	background: var(--iv-ink-02);
	cursor: pointer;
}
.iv-quote .iv-hint { display: block; margin-top: 4px; font-size: 11.5px; color: var(--iv-ink-40); }

/* Consenso privacy */
.iv-quote .iv-privacy { margin: 4px 0 12px; font-size: 12.5px; color: var(--iv-ink-60); }
.iv-quote .iv-privacy .wpcf7-list-item { display: block; margin: 0; }
.iv-quote .iv-privacy label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; font-weight: 400; }
.iv-quote .iv-privacy input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px; height: 18px;
	margin: 1px 0 0;
	accent-color: var(--iv-blue);
}
.iv-quote .iv-privacy a { color: var(--iv-blue); text-decoration: underline; }

/* Errori CF7 */
.iv-quote .wpcf7-not-valid { border-color: var(--iv-error) !important; }
.iv-quote .wpcf7-not-valid-tip {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--iv-error);
}
.iv-quote .wpcf7 .screen-reader-response {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
}
.iv-quote .wpcf7-response-output {
	margin: 0 0 12px !important;
	padding: 10px 12px !important;
	border: 0 !important;
	border-radius: var(--iv-radius-field);
	font-size: 13px;
	line-height: 1.4;
	background: #fdecec;
	color: #a12626;
}
.iv-quote .wpcf7 form.init .wpcf7-response-output,
.iv-quote .wpcf7 form.resetting .wpcf7-response-output,
.iv-quote .wpcf7 form.submitting .wpcf7-response-output { display: none; }
.iv-quote .wpcf7 form.sent .wpcf7-response-output { background: #eafaf3; color: #0d6b47; }

/* Footer interno con il pulsante di invio: sempre visibile in fondo al pannello.
   Il wrapper .iv-quote__submit è figlio diretto del <form>, quindi sticky funziona
   rispetto all'area che scorre (.iv-quote__body). */
.iv-quote .iv-quote__submit {
	position: sticky;
	bottom: 0;
	z-index: 2;
	margin: 0 -18px;
	padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
	background: #fff;
	border-top: 1px solid var(--iv-ink-10);
}
.iv-quote .iv-quote__submit p { margin: 0; }
.iv-quote .iv-quote__submit .wpcf7-submit,
.iv-quote .iv-quote__submit input[type="submit"] {
	display: block;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 12px 18px;
	font-family: var(--iv-font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: var(--iv-rose);
	border: 0;
	border-radius: var(--iv-radius-field);
	box-shadow: 0 6px 16px rgba(207, 73, 136, .28);
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background .15s var(--iv-ease), transform .15s var(--iv-ease);
}
.iv-quote .iv-quote__submit .wpcf7-submit:hover { background: var(--iv-rose-dark); }
.iv-quote .iv-quote__submit .wpcf7-submit:active { transform: translateY(1px); }
.iv-quote .iv-quote__submit .wpcf7-submit:disabled { opacity: .6; cursor: progress; }
.iv-quote .iv-quote__submit .wpcf7-spinner { display: none; }
.iv-quote .wpcf7 form.submitting .iv-quote__submit .wpcf7-submit { opacity: .7; cursor: progress; }
.iv-quote .iv-quote__note { margin: 8px 0 0; font-size: 11.5px; text-align: center; color: var(--iv-ink-40); }

/* --------------------------------------------------------------------------
   Gruppi condizionali (Conditional Fields): filetto rosa + transizione
   -------------------------------------------------------------------------- */

.iv-quote [data-class="wpcf7cf_group"] {
	margin: 0 0 12px;
	padding: 2px 0 0 12px;
	border-left: 3px solid var(--iv-rose);
}
.iv-quote [data-class="wpcf7cf_group"] > .iv-f:last-child { margin-bottom: 0; }
.iv-quote [data-class="wpcf7cf_group"].iv-cf-enter { animation: iv-cf-in .28s var(--iv-ease); }
@keyframes iv-cf-in {
	from { opacity: 0; max-height: 0; transform: translateY(-4px); }
	to   { opacity: 1; max-height: 400px; transform: none; }
}

/* --------------------------------------------------------------------------
   Ricerca nei select dei Paesi (combobox leggero, vedi quote-form.js)
   -------------------------------------------------------------------------- */

.iv-quote .iv-combo { position: relative; }
.iv-quote .iv-combo select.iv-combo__native {
	position: absolute !important;
	width: 1px !important; height: 1px !important; min-height: 0 !important;
	padding: 0 !important; margin: 0 !important; border: 0 !important;
	opacity: 0; pointer-events: none;
	bottom: 0; left: 12px;
}
.iv-quote .iv-combo__input {
	padding-right: 34px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 12px center !important;
}
.iv-quote .iv-combo__list {
	position: absolute;
	z-index: 5;
	top: calc(100% + 4px);
	left: 0; right: 0;
	max-height: 220px;
	margin: 0;
	padding: 4px;
	overflow-y: auto;
	list-style: none;
	background: #fff;
	border: 1px solid var(--iv-ink-10);
	border-radius: var(--iv-radius-field);
	box-shadow: var(--iv-shadow);
}
.iv-quote .iv-combo__list[hidden] { display: none; }
.iv-quote .iv-combo__opt {
	margin: 0;
	padding: 8px 10px;
	border-radius: 7px;
	font-size: 14px;
	line-height: 1.3;
	cursor: pointer;
	list-style: none;
}
.iv-quote .iv-combo__opt[aria-selected="true"],
.iv-quote .iv-combo__opt:hover { background: var(--iv-blue-50); color: var(--iv-navy); }
.iv-quote .iv-combo__empty { padding: 8px 10px; font-size: 13px; color: var(--iv-ink-40); list-style: none; }
.iv-quote .iv-combo__opt mark { background: none; color: inherit; font-weight: 700; padding: 0; }

/* --------------------------------------------------------------------------
   Messaggio di successo
   -------------------------------------------------------------------------- */

.iv-quote__success {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 28px 22px;
	text-align: center;
	outline: none;
}
.iv-quote__success[hidden] { display: none; }
.iv-quote__success p { margin: 0 0 10px; font-size: 14px; color: var(--iv-ink-60); }
.iv-quote__success a { color: var(--iv-blue); font-weight: 600; }
.iv-quote .iv-quote__success-title {
	font-family: var(--iv-font-display);
	font-size: 24px;
	color: var(--iv-navy);
	margin-bottom: 8px;
}
.iv-quote__success-icon {
	width: 56px; height: 56px;
	margin: 0 auto 14px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
	background: #e1f5ee;
	color: var(--iv-ok);
}
.iv-quote__again {
	margin-top: 8px;
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 600;
	color: var(--iv-blue);
	background: #fff;
	border: 1.5px solid var(--iv-blue);
	border-radius: var(--iv-radius-field);
	cursor: pointer;
}
.iv-quote__again:hover { background: var(--iv-blue-50); }

/* Mobile: niente zoom su iOS (font 16px) */
@media (max-width: 1023px) {
	.iv-quote input[type="text"],
	.iv-quote input[type="email"],
	.iv-quote input[type="tel"],
	.iv-quote select,
	.iv-quote textarea { font-size: 16px; }
}
@media (max-width: 360px) {
	.iv-quote .iv-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.iv-quote *,
	.iv-quote__panel { transition: none !important; animation: none !important; }
}

@media print {
	.iv-quote { display: none !important; }
	body.iv-quote-docked > * { margin-right: 0 !important; }
}

/* Menu mobile del sito aperto: niente barra né linguetta sopra il menu. */
body.ivr-menu-open .iv-quote__bar,
body.ivr-menu-open .iv-quote__tab { display: none !important; }
.iv-quote__body[hidden] { display: none !important; }

/* Clic su "Richiedi Preventivo" nell'header con il pannello già aperto: breve evidenziazione. */
.iv-quote--pulse .iv-quote__panel { animation: iv-quote-pulse .9s var(--iv-ease); }
@keyframes iv-quote-pulse {
	0%   { box-shadow: var(--iv-shadow), 0 0 0 0 rgba(207, 73, 136, .55); }
	60%  { box-shadow: var(--iv-shadow), 0 0 0 10px rgba(207, 73, 136, 0); }
	100% { box-shadow: var(--iv-shadow), 0 0 0 0 rgba(207, 73, 136, 0); }
}

/* --------------------------------------------------------------------------
   Pulsante al posto del vecchio form (template, contenuti Enfold, popup)
   -------------------------------------------------------------------------- */
.iv-quote-inline {
	margin: 16px 0;
	padding: 18px 20px;
	font-family: var(--iv-font-body);
	text-align: center;
	background: var(--iv-blue-50);
	border-radius: var(--iv-radius);
}
.iv-quote-inline .iv-quote-inline__text {
	margin: 0 0 12px;
	padding: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--iv-ink-60);
}
.iv-quote-inline .iv-quote-inline__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 12px 24px;
	font-family: var(--iv-font-body);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: var(--iv-rose);
	border: 0;
	border-radius: var(--iv-radius-field);
	box-shadow: 0 6px 16px rgba(207, 73, 136, .28);
	cursor: pointer;
	text-transform: none;
	transition: background .15s var(--iv-ease);
}
.iv-quote-inline .iv-quote-inline__btn:hover { background: var(--iv-rose-dark); }
.iv-quote-inline .iv-quote-inline__btn:focus-visible { outline: 3px solid var(--iv-blue); outline-offset: 2px; }
