/* Banner cookie - Studio Legale Macis */
.slm-cb,
.slm-cp {
	--slm-accent: #CB2027;
	--slm-accent-dark: #a3181e;
	--slm-ink: #222;
	--slm-muted: #555;
	--slm-line: #e2e2e2;
	box-sizing: border-box;
	color: var(--slm-ink);
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	text-align: left;
}
.slm-cb *,
.slm-cp * {
	box-sizing: border-box;
}
.slm-cb[hidden] {
	display: none !important;
}

.slm-cb {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 2147483000;
	max-width: 1140px;
	margin: 0 auto;
	padding: 22px 56px 20px 24px;
	background: #fff;
	border-top: 4px solid var(--slm-accent);
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, .28);
}
.slm-cb__title,
.slm-cp__title {
	margin: 0 0 8px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 21px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--slm-ink);
}
.slm-cb__text {
	margin: 0;
	color: var(--slm-muted);
}
.slm-cb a,
.slm-cp a {
	color: var(--slm-accent);
	text-decoration: underline;
}
.slm-cb__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 16px;
}

.slm-btn {
	min-width: 150px;
	margin: 0;
	padding: 11px 22px;
	border: 2px solid var(--slm-accent);
	border-radius: 3px;
	background: var(--slm-accent);
	color: #fff;
	font: 700 14px/1.2 "Roboto", "Helvetica Neue", Arial, sans-serif;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.slm-btn:hover {
	background: var(--slm-accent-dark);
	border-color: var(--slm-accent-dark);
}
.slm-btn--ghost {
	background: #fff;
	color: var(--slm-accent);
}
.slm-btn--ghost:hover {
	background: #fbeaea;
	color: var(--slm-accent-dark);
}
.slm-btn:focus-visible,
.slm-cb__close:focus-visible,
.slm-cp input:focus-visible,
.slm-cb a:focus-visible,
.slm-cp a:focus-visible {
	outline: 3px solid #1a5fb4;
	outline-offset: 2px;
}

.slm-cb__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--slm-ink);
	font-size: 30px;
	line-height: 40px;
	cursor: pointer;
}
.slm-cb__close:hover {
	color: var(--slm-accent);
}

/* Finestra preferenze */
.slm-cp {
	position: fixed;
	width: calc(100% - 32px);
	max-width: 620px;
	max-height: calc(100% - 32px);
	overflow: auto;
	margin: auto;
	padding: 28px 28px 24px;
	border: 0;
	border-top: 4px solid var(--slm-accent);
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 8px 40px rgba(0, 0, 0, .35);
	z-index: 2147483001;
}
.slm-cp:not([open]) {
	display: none;
}
.slm-cp::backdrop {
	background: rgba(0, 0, 0, .55);
}
.slm-cp > p {
	margin: 0 0 16px;
	color: var(--slm-muted);
}
.slm-cp__cat {
	padding: 14px 0;
	border-top: 1px solid var(--slm-line);
}
.slm-cp__cat p {
	margin: 4px 0 0;
	color: var(--slm-muted);
	font-size: 14px;
}
.slm-cp__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.slm-cp__head h3 {
	margin: 0;
	font: 700 15px/1.3 "Roboto", "Helvetica Neue", Arial, sans-serif;
	color: var(--slm-ink);
}
.slm-cp__head label {
	margin: 0;
	font: inherit;
	cursor: pointer;
}
.slm-cp__always {
	flex: none;
	color: var(--slm-accent);
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

/* Interruttore: checkbox nativa, spenta di default */
.slm-cp input[type="checkbox"] {
	flex: none;
	position: relative;
	width: 46px;
	height: 26px;
	margin: 0;
	border-radius: 13px;
	background: #bbb;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	transition: background-color .15s;
}
.slm-cp input[type="checkbox"]::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	transition: transform .15s;
}
.slm-cp input[type="checkbox"]:checked {
	background: var(--slm-accent);
}
.slm-cp input[type="checkbox"]:checked::before {
	transform: translateX(20px);
}
.slm-cp .slm-cb__actions {
	padding-top: 16px;
	border-top: 1px solid var(--slm-line);
}

/* Avviso Google Maps (SiteOrigin) prima del consenso */
.sow-google-map-consent .sow-google-map-consent-prompt-inner {
	font-size: 15px;
	line-height: 1.5;
}
.sow-google-map-consent .sow-google-map-consent-prompt-inner a {
	color: #fff;
	text-decoration: underline;
}
.sow-google-map-consent .sow-google-map-consent-prompt-inner button {
	padding: 11px 22px;
	border: 2px solid #CB2027;
	border-radius: 3px;
	background: #CB2027;
	color: #fff;
	font: 700 14px/1.2 "Roboto", "Helvetica Neue", Arial, sans-serif;
	cursor: pointer;
}
.sow-google-map-consent .sow-google-map-consent-prompt-inner button:hover {
	background: #a3181e;
	border-color: #a3181e;
}

@media (max-width: 640px) {
	.slm-cb {
		left: 8px;
		right: 8px;
		bottom: 8px;
		max-height: calc(100% - 16px);
		overflow: auto;
		padding: 18px 16px 16px;
		font-size: 14px;
	}
	.slm-cb__title {
		padding-right: 36px;
		font-size: 19px;
	}
	.slm-cb__actions {
		flex-direction: column-reverse;
	}
	.slm-btn {
		width: 100%;
	}
	.slm-cp {
		padding: 24px 18px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.slm-btn,
	.slm-cp input[type="checkbox"],
	.slm-cp input[type="checkbox"]::before {
		transition: none;
	}
}

@media print {
	.slm-cb,
	.slm-cp {
		display: none !important;
	}
}

/* Modulo contatti: casella "Ho letto l'informativa" (il tema mette tutti gli input a width:100%) */
.wpcf7-form .privacy-check {
	margin: 4px 0 18px;
}
.wpcf7-form .privacy-check .wpcf7-list-item {
	display: block;
	margin: 0;
}
.wpcf7-form .privacy-check label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	cursor: pointer;
}
.wpcf7-form .privacy-check input[type="checkbox"] {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
}
