.iwm-chatbot {
	--iwm-cb-teal: #005f73;
	--iwm-cb-coral: #ec6e5e;
	--iwm-cb-cream: #fff9ee;
	--iwm-cb-ink: #0f1f24;
	--iwm-cb-dark: #0f1f24;
	--iwm-cb-muted: rgba(15, 31, 36, 0.55);
	--iwm-cb-border: rgba(0, 95, 115, 0.14);
	--iwm-cb-shadow: 0 12px 40px rgba(15, 31, 36, 0.14);
	--iwm-cb-bot-bg: rgba(0, 95, 115, 0.07);
	--iwm-cb-cream-a14: rgba(255, 249, 238, 0.14);
	--iwm-cb-cream-a26: rgba(255, 249, 238, 0.26);
	--iwm-cb-cream-a35: rgba(255, 249, 238, 0.35);
	--iwm-cb-gap: 14px;
	--iwm-cb-bottom: 20px;
	--iwm-cb-left: 20px;
	--iwm-cb-right: 20px;
	font-family: 'Sora', system-ui, sans-serif;
	z-index: 99990;
}

.iwm-chatbot--left,
.iwm-chatbot--right {
	position: fixed;
	bottom: var(--iwm-cb-bottom);
}

.iwm-chatbot--left { left: var(--iwm-cb-left); right: auto; }
.iwm-chatbot--right { right: var(--iwm-cb-right); left: auto; }

.iwm-chatbot__stack {
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-start;
	gap: var(--iwm-cb-gap);
	overflow: visible;
}

.iwm-chatbot--inline {
	position: relative;
	max-width: 440px;
	margin: 2rem auto;
}

.iwm-chatbot--dedicated {
	max-width: min(720px, 100%);
	margin: 1.5rem auto 2.5rem;
}

.iwm-chatbot--dedicated .iwm-chatbot__panel {
	height: min(68vh, 640px);
	min-height: 420px;
}

.iwm-chatbot--inline .iwm-chatbot__panel {
	position: relative;
	width: 100%;
	height: 520px;
	box-shadow: var(--iwm-cb-shadow);
	border-radius: 18px;
}

/* Teaser chiuso — icona Franco (badge tondo) */
.iwm-chatbot__teaser {
	position: relative;
	/* In column-reverse l'order più basso resta in fondo: il bottone sta
	   sotto e il fumetto (hint) gli compare sopra. */
	order: -1;
	display: block;
	overflow: visible;
	width: auto;
	height: auto;
	min-height: 0;
	max-width: none;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	transition: transform 0.25s ease, filter 0.25s ease;
}

.iwm-chatbot__teaser:hover {
	transform: translateY(-2px);
	filter: drop-shadow(0 12px 28px rgba(0, 95, 115, 0.28));
}

.iwm-chatbot__teaser-icon {
	display: block;
	line-height: 0;
}

.iwm-chatbot__teaser-logo {
	display: block;
	height: var(--iwm-cb-fab, 52px);
	width: var(--iwm-cb-fab-w, 52px);
	border-radius: 50%;
	box-shadow: 0 8px 20px rgba(15, 31, 36, 0.22);
	transition: box-shadow 0.25s ease;
	object-fit: cover;
}

.iwm-chatbot__hint {
	position: relative;
	max-width: min(260px, calc(100vw - var(--iwm-cb-left, 20px) - var(--iwm-cb-right-reserve, 88px) - 16px));
	padding: 10px 34px 10px 14px;
	background: var(--iwm-cb-cream);
	border: 1px solid var(--iwm-cb-border);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(15, 31, 36, 0.16);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
}

.iwm-chatbot__hint::after {
	content: '';
	position: absolute;
	left: 18px;
	bottom: -7px;
	width: 14px;
	height: 14px;
	background: var(--iwm-cb-cream);
	border-right: 1px solid var(--iwm-cb-border);
	border-bottom: 1px solid var(--iwm-cb-border);
	transform: rotate(45deg);
}

.iwm-chatbot__hint.is-visible {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
	cursor: pointer;
}

.iwm-chatbot__hint-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--iwm-cb-ink);
	font-weight: 500;
}

.iwm-chatbot__hint-close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--iwm-cb-muted);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: color 0.2s, background 0.2s;
}

.iwm-chatbot__hint-close:hover {
	color: var(--iwm-cb-teal);
	background: var(--iwm-cb-bot-bg);
}

.iwm-chatbot__hint.is-visible .iwm-chatbot__hint-close {
	cursor: pointer;
}

.iwm-chatbot.is-open .iwm-chatbot__teaser,
.iwm-chatbot.is-open .iwm-chatbot__hint {
	display: none;
}

/* Chiuso: il contenitore (alto quanto il pannello nascosto) non deve
   intercettare i tap sulla pagina — solo il teaser è cliccabile. */
.iwm-chatbot:not(.is-open) {
	pointer-events: none;
}
.iwm-chatbot:not(.is-open) .iwm-chatbot__teaser {
	pointer-events: auto;
}

/* Pannello chat — più grande */
.iwm-chatbot__panel {
	width: min(420px, calc(100vw - 32px));
	height: min(580px, calc(100vh - 90px));
	background: var(--iwm-cb-cream);
	border: 1px solid var(--iwm-cb-border);
	border-radius: 18px;
	box-shadow: var(--iwm-cb-shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.iwm-chatbot:not(.iwm-chatbot--inline) .iwm-chatbot__panel {
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transition: opacity 0.28s ease, transform 0.28s ease;
}

.iwm-chatbot:not(.iwm-chatbot--inline) .iwm-chatbot__panel:not([hidden]) {
	opacity: 1;
	transform: none;
}

.iwm-chatbot__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	background: var(--iwm-cb-teal);
	color: var(--iwm-cb-cream);
}

.iwm-chatbot__header-main {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.iwm-chatbot__avatar {
	height: 36px;
	width: 36px;
	aspect-ratio: 679 / 672;
	border-radius: 50%;
	flex-shrink: 0;
	border: 0;
	object-fit: cover;
	background: transparent;
}

.iwm-chatbot__header-text {
	display: flex;
	align-items: center;
	min-height: 44px;
}

.iwm-chatbot__header-text h2 {
	margin: 0;
	font-family: 'Antonio', 'Sora', sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--iwm-cb-cream);
}

.iwm-chatbot__close {
	background: var(--iwm-cb-cream-a14);
	border: 0;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	color: var(--iwm-cb-cream);
	cursor: pointer;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	transition: background 0.2s;
}

.iwm-chatbot__close:hover {
	background: var(--iwm-cb-cream-a26);
}

.iwm-chatbot__messages {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	scroll-behavior: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--iwm-cb-cream);
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 95, 115, 0.4) transparent;
}

.iwm-chatbot__messages::-webkit-scrollbar {
	width: 6px;
}

.iwm-chatbot__messages::-webkit-scrollbar-track {
	background: transparent;
	margin: 6px 0;
}

.iwm-chatbot__messages::-webkit-scrollbar-thumb {
	background: rgba(0, 95, 115, 0.32);
	border-radius: 999px;
	border: 1px solid transparent;
	background-clip: padding-box;
}

.iwm-chatbot__messages::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 95, 115, 0.52);
	background-clip: padding-box;
}

.iwm-chatbot__msg {
	max-width: 92%;
	padding: 11px 15px;
	border-radius: 16px;
	font-size: 14px;
	line-height: 1.55;
	word-break: break-word;
	color: var(--iwm-cb-dark);
}

.iwm-chatbot__msg--bot {
	align-self: flex-start;
	background: var(--iwm-cb-bot-bg);
	border: 1px solid var(--iwm-cb-border);
	border-bottom-left-radius: 5px;
	box-shadow: 0 1px 4px rgba(0, 95, 115, 0.06);
}

.iwm-chatbot__msg--bot strong {
	color: var(--iwm-cb-teal);
	font-weight: 600;
}

.iwm-chatbot__msg--user {
	align-self: flex-end;
	background: var(--iwm-cb-teal);
	color: var(--iwm-cb-cream);
	border-bottom-right-radius: 5px;
}

.iwm-chatbot__msg--typing {
	opacity: 0.65;
	font-style: italic;
	color: var(--iwm-cb-muted);
	background: var(--iwm-cb-bot-bg);
	border: 1px solid var(--iwm-cb-border);
}

.iwm-chatbot__msg a {
	color: var(--iwm-cb-teal);
	text-decoration: underline;
	font-weight: 500;
}

.iwm-chatbot__msg--user a {
	color: var(--iwm-cb-cream);
}

.iwm-chatbot__form {
	display: flex;
	align-items: flex-end;
	gap: 10px;
	padding: 12px 14px;
	border-top: 1px solid var(--iwm-cb-border);
	background: var(--iwm-cb-cream);
}

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

.iwm-chatbot__form textarea {
	flex: 1;
	resize: none;
	overflow-y: hidden;
	overflow-x: hidden;
	border: 1px solid var(--iwm-cb-border);
	border-radius: 14px;
	background: var(--iwm-cb-cream);
	color: var(--iwm-cb-dark);
	padding: 11px 12px 11px 14px;
	font: inherit;
	font-size: 16px; /* iOS Safari zooms inputs below 16px on focus */
	line-height: 1.45;
	min-height: 44px;
	max-height: 110px;
	height: 44px;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-text-size-adjust: 100%;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 95, 115, 0.4) transparent;
}

.iwm-chatbot__form textarea::-webkit-scrollbar {
	width: 5px;
}

.iwm-chatbot__form textarea::-webkit-scrollbar-track {
	background: transparent;
	margin: 8px 2px;
}

.iwm-chatbot__form textarea::-webkit-scrollbar-thumb {
	background: rgba(0, 95, 115, 0.28);
	border-radius: 999px;
	border: 1px solid transparent;
	background-clip: padding-box;
}

.iwm-chatbot__form textarea:focus::-webkit-scrollbar-thumb {
	background: rgba(0, 95, 115, 0.45);
	background-clip: padding-box;
}

.iwm-chatbot__form textarea::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 95, 115, 0.55);
	background-clip: padding-box;
}

.iwm-chatbot__form textarea::placeholder {
	color: var(--iwm-cb-muted);
}

.iwm-chatbot__form textarea:focus {
	outline: none;
	border-color: var(--iwm-cb-teal);
	box-shadow: 0 0 0 3px rgba(0, 95, 115, 0.12);
}

.iwm-chatbot__send {
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: var(--iwm-cb-coral);
	color: var(--iwm-cb-cream);
	cursor: pointer;
	display: grid;
	place-items: center;
	flex-shrink: 0;
	transition: transform 0.2s, background 0.2s;
}

.iwm-chatbot__send:hover {
	background: #d85a4a;
	transform: scale(1.05);
}

.iwm-chatbot__send:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	transform: none;
}

.iwm-chatbot__footer {
	padding: 0 14px 14px;
	background: var(--iwm-cb-cream);
	text-align: center;
}

.iwm-chatbot__privacy {
	margin: 0 0 10px;
	font-size: 10px;
	line-height: 1.45;
	color: rgba(34, 34, 34, 0.72);
}

.iwm-chatbot__privacy a {
	color: var(--iwm-cb-teal);
	text-decoration: underline;
}

.iwm-chatbot__turnstile {
	display: flex;
	justify-content: center;
	margin: 0 auto 10px;
}

.iwm-chatbot__turnstile[hidden] {
	display: none;
}

/* Messaggio verifica anti-bot, centrato nell'area messaggi */
.iwm-chatbot__verify {
	margin: auto;
	padding: 24px 18px;
	max-width: 85%;
	text-align: center;
	font-size: 13.5px;
	line-height: 1.55;
	color: #5f6b6d;
}

.iwm-chatbot__verify.is-wait {
	animation: iwm-cb-status-pulse 1.6s ease-in-out infinite;
}

.iwm-chatbot__verify.is-ok {
	color: #1a7f37;
	animation: none;
}

.iwm-chatbot__verify.is-error {
	color: #b32d2e;
	animation: none;
}

@keyframes iwm-cb-status-pulse {
	50% { opacity: 0.5; }
}

.iwm-chatbot__turnstile-status[hidden] {
	display: none;
}

.iwm-chatbot__contact-link {
	font-size: 12px;
	font-weight: 500;
	color: var(--iwm-cb-teal);
	text-decoration: none;
	letter-spacing: 0.02em;
}

.iwm-chatbot__contact-link:hover {
	color: var(--iwm-cb-coral);
}

.iwm-chatbot__msg--consent {
	background: rgba(236, 110, 94, 0.08);
	border: 1px solid rgba(236, 110, 94, 0.22);
}

.iwm-chatbot__consent-btn {
	display: inline-block;
	margin-top: 10px;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--iwm-cb-teal);
	color: var(--iwm-cb-cream);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}

.iwm-chatbot__consent-btn:hover {
	background: #004a5c;
}

.iwm-chatbot--consent-blocked .iwm-chatbot__form textarea {
	opacity: 0.65;
	cursor: not-allowed;
}

.iwm-chatbot__backdrop {
	display: none;
}

/* Chiuso: nessun layer full-screen (Safari bfcache può lasciare .is-open) */
.iwm-chatbot:not(.is-open) .iwm-chatbot__backdrop {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.iwm-chatbot:not(.is-open) .iwm-chatbot__panel {
	pointer-events: none !important;
}

html.iwm-chatbot-scroll-lock {
	overflow: hidden;
	overscroll-behavior: none;
	height: 100%;
}

html.iwm-chatbot-scroll-lock body {
	overflow: hidden;
	overscroll-behavior: none;
}

/* Complianz sopra la chat quando si aprono le preferenze cookie da Franco */
html.iwm-chatbot-cmplz-open .iwm-chatbot,
html.iwm-chatbot-cmplz-open .iwm-chatbot.is-open {
	z-index: 99980 !important;
}

html.iwm-chatbot-cmplz-open .cmplz-cookiebanner,
html.iwm-chatbot-cmplz-open #cmplz-manage-consent-container,
html.iwm-chatbot-cmplz-open #cmplz-manage-consent-container.cmplz-manage-consent-container,
html.iwm-chatbot-cmplz-open #cmplz-manage-consent,
html.iwm-chatbot-cmplz-open .cmplz-soft-cookiewall,
html.iwm-chatbot-cmplz-open .cmplz-cookiebanner-container {
	z-index: 100100 !important;
}

@media (max-width: 991px) {
	body.iwm-mobile-menu-open #iwm-chatbot-root:not(.is-open),
	body:has(.tp-offcanvas-2-area.menu-open) #iwm-chatbot-root:not(.is-open),
	body:has(.tp-offcanvas-2-area.menu-open-temp) #iwm-chatbot-root:not(.is-open) {
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
}

@media (max-width: 768px) {
	.iwm-chatbot:not(.is-open) {
		width: auto !important;
		height: auto !important;
		top: auto !important;
		left: var(--iwm-cb-left, 20px) !important;
		bottom: var(--iwm-cb-bottom, 20px) !important;
		right: auto !important;
		z-index: 100003 !important;
	}

	.iwm-chatbot:not(.is-open) .iwm-chatbot__stack {
		position: relative !important;
		inset: auto !important;
		width: auto !important;
		height: auto !important;
		pointer-events: none;
	}

	.iwm-chatbot:not(.is-open) .iwm-chatbot__teaser {
		pointer-events: auto;
	}

	.iwm-chatbot--left,
	.iwm-chatbot--right {
		left: var(--iwm-cb-left, 20px);
		right: auto;
		bottom: var(--iwm-cb-bottom, 20px);
	}

	.iwm-chatbot__stack {
		max-width: none;
	}

	.iwm-chatbot__teaser-logo {
		height: var(--iwm-cb-fab, 52px);
		width: var(--iwm-cb-fab-w, 52px);
	}

	.iwm-chatbot__hint {
		max-width: min(280px, calc(100vw - var(--iwm-cb-left, 20px) - 16px));
	}

	/* Chat aperta: sheet a tutta altezza dentro il visual viewport (tastiera inclusa) */
	.iwm-chatbot.is-open {
		position: fixed;
		top: var(--iwm-cb-vv-top, 0);
		left: var(--iwm-cb-vv-left, 0);
		width: var(--iwm-cb-vv-width, 100vw);
		height: var(--iwm-cb-vv-height, 100dvh);
		z-index: 100010;
		pointer-events: auto;
		bottom: auto;
		right: auto;
	}

	.iwm-chatbot.is-open .iwm-chatbot__backdrop {
		display: block;
		position: absolute;
		inset: 0;
		background: rgba(15, 31, 36, 0.72);
		pointer-events: auto;
		z-index: 0;
		border: 0;
		padding: 0;
		margin: 0;
	}

	.iwm-chatbot.is-open .iwm-chatbot__stack {
		position: absolute;
		inset: 0;
		z-index: 1;
		pointer-events: none;
		padding: 12px;
		padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
		box-sizing: border-box;
		flex-direction: column;
		justify-content: flex-end;
		align-items: stretch;
		max-width: none;
		width: auto;
	}

	.iwm-chatbot.is-open .iwm-chatbot__panel {
		pointer-events: auto;
		width: 100%;
		height: 100%;
		max-height: 100%;
		min-height: 0;
		flex: 1 1 auto;
	}

	.iwm-chatbot.is-open .iwm-chatbot__messages {
		flex: 1 1 auto;
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iwm-chatbot__panel,
	.iwm-chatbot__teaser,
	.iwm-chatbot__send {
		transition: none;
	}
}

/* ── Pre-preventivo: modulo contatti (CF7) dentro la chat ───────────────
   Stile autonomo: non dipende dal CSS di CF7 (che la home può non caricare). */
.iwm-chatbot__leadform {
	max-width: 100%;
	width: 100%;
	background: #fffdf7;
	border: 1px solid rgba(0, 95, 115, .14);
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
}
.iwm-chatbot__leadform .wpcf7,
.iwm-chatbot__leadform form { margin: 0; padding: 0; }

/* elementi CF7 che non servono / sporcano dentro la chat
   (.hidden-fields-container è un <fieldset>: senza il CSS di CF7 mostra il bordo) */
.iwm-chatbot__leadform .screen-reader-response,
.iwm-chatbot__leadform .hidden-fields-container,
.iwm-chatbot__leadform .wpcf7-turnstile,
.iwm-chatbot__leadform .wpcf7-spinner { display: none !important; }
.iwm-chatbot__leadform fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

/* intestazione del modulo */
.iwm-chatbot__leadform > .wpcf7 > form::before {
	content: "Lasciami i tuoi dati per la stima";
	display: block;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.3;
	color: var(--iwm-cb-teal, #005f73);
	margin: 0 0 14px;
}

/* nome + cognome affiancati, a capo se stretto */
.iwm-chatbot__leadform .iwm-form-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 0 0 10px;
}
.iwm-chatbot__leadform .iwm-form-row > .wpcf7-form-control-wrap { flex: 1 1 140px; }

/* ogni campo su una riga */
.iwm-chatbot__leadform .wpcf7-form-control-wrap { display: block; margin: 0 0 10px; }
.iwm-chatbot__leadform .iwm-form-row .wpcf7-form-control-wrap { margin: 0; }

/* input testo / email / tel */
.iwm-chatbot__leadform input.wpcf7-text,
.iwm-chatbot__leadform input[type="text"],
.iwm-chatbot__leadform input[type="email"],
.iwm-chatbot__leadform input[type="tel"] {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 11px 13px;
	border: 1px solid rgba(0, 95, 115, .22);
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.3;
	background: #fff9ee;
	color: #1d2327;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.iwm-chatbot__leadform input::placeholder { color: #8a8f94; opacity: 1; }
.iwm-chatbot__leadform input.wpcf7-text:focus,
.iwm-chatbot__leadform input:focus {
	outline: none;
	background: #fffdf7;
	border-color: var(--iwm-cb-teal, #005f73);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--iwm-cb-teal, #005f73) 18%, transparent);
}

/* checkbox newsletter + accettazione privacy */
.iwm-chatbot__leadform .wpcf7-checkbox,
.iwm-chatbot__leadform .wpcf7-acceptance { display: block; }
.iwm-chatbot__leadform .wpcf7-list-item { display: block; margin: 0 0 6px; }
.iwm-chatbot__leadform .wpcf7-list-item label,
.iwm-chatbot__leadform .wpcf7-list-item > label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 0;
	font-size: 12.5px;
	line-height: 1.45;
	color: #555;
	cursor: pointer;
}
/* newsletter: l'etichetta è uno span accanto all'input, non un <label> */
.iwm-chatbot__leadform .wpcf7-checkbox .wpcf7-list-item {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 12.5px;
	line-height: 1.45;
	color: #555;
}
.iwm-chatbot__leadform .wpcf7-list-item-label { cursor: pointer; }
.iwm-chatbot__leadform input[type="checkbox"] {
	margin: 2px 0 0;
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	accent-color: var(--iwm-cb-teal, #005f73);
}
.iwm-chatbot__leadform a { color: var(--iwm-cb-teal, #005f73); }

/* pulsante invia */
.iwm-chatbot__leadform .wpcf7-submit {
	width: 100%;
	margin: 12px 0 0;
	padding: 12px 14px;
	border: 0;
	border-radius: 10px;
	background: var(--iwm-cb-teal, #005f73);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: filter .15s, transform .05s;
}
.iwm-chatbot__leadform .wpcf7-submit:hover { filter: brightness(1.07); }
.iwm-chatbot__leadform .wpcf7-submit:active { transform: translateY(1px); }
.iwm-chatbot__leadform .wpcf7-submit:disabled { opacity: .6; cursor: default; }

/* messaggio di esito (lo riempiamo noi via JS) */
.iwm-chatbot__leadform .wpcf7-response-output {
	display: none;
	margin: 12px 0 0 !important;
	padding: 9px 11px !important;
	border: 0 !important;
	border-radius: 8px;
	font-size: 12.5px;
	background: #f3f4f5;
	color: #444;
}
.iwm-chatbot__leadform .wpcf7-response-output.iwm-lead-ok { background: #e7f4ec; color: #1a7f37; }
.iwm-chatbot__leadform .wpcf7-response-output.iwm-lead-err { background: #fcebec; color: #b32d2e; }
.iwm-chatbot__leadform .wpcf7-not-valid-tip { font-size: 11.5px; color: #b32d2e; margin-top: 4px; }
.iwm-chatbot__leadform input[aria-invalid="true"] { border-color: #b32d2e; }

/* ── Schede ricche (servizi / progetti / articoli) in chat ──────────── */
.iwm-chatbot__cards {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 4px 0 6px;
}
.iwm-chatbot__card {
	display: flex;
	align-items: stretch;
	gap: 0;
	text-decoration: none;
	background: #fffdf7;
	border: 1px solid rgba(0, 95, 115, .16);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
	transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.iwm-chatbot__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
	border-color: var(--iwm-cb-teal, #005f73);
}
.iwm-chatbot__card-img {
	flex: 0 0 92px;
	width: 92px;
	min-height: 92px;
	background-size: cover;
	background-position: center;
	background-color: #eef5f7;
}
.iwm-chatbot__card-body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 11px 13px;
	min-width: 0;
}
.iwm-chatbot__card-title {
	font-weight: 700;
	font-size: 14px;
	line-height: 1.25;
	color: #1d2327;
}
.iwm-chatbot__card-excerpt {
	font-size: 12px;
	line-height: 1.4;
	color: #5a6a6e;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.iwm-chatbot__card-cta {
	margin-top: 2px;
	font-size: 12px;
	font-weight: 600;
	color: var(--iwm-cb-teal, #005f73);
}
