/**
 * Galizzi — banner cookie, segnaposto degli iframe e pagine legali.
 * Mobile first. Colori e spaziature del tema (nero, bianco, DM Sans).
 */

:root {
	--gz-consent-bg: #111111;
	--gz-consent-text: #ffffff;
	--gz-consent-muted: #c9c9c9;
	--gz-consent-border: rgba(255, 255, 255, 0.25);
	--gz-consent-accent: #e30613;
	--gz-consent-radius: 6px;
	--gz-consent-gap: 12px;
	--gz-consent-pad: 20px;
}

/* ---------------------------------------------------------------- */
/* Banner                                                            */
/* ---------------------------------------------------------------- */

.galizzi-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100000;
	padding: 12px;
	font-family: "DM Sans", sans-serif;
}

.galizzi-consent[hidden] {
	display: none;
}

.galizzi-consent__box {
	position: relative;
	max-width: 960px;
	margin: 0 auto;
	padding: var(--gz-consent-pad);
	padding-right: 48px;
	background: var(--gz-consent-bg);
	color: var(--gz-consent-text);
	border: 1px solid var(--gz-consent-border);
	border-radius: var(--gz-consent-radius);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
	max-height: calc(100vh - 24px);
	overflow-y: auto;
}

.galizzi-consent__title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 26px;
	font-weight: 700;
	color: var(--gz-consent-text);
}

.galizzi-consent__text {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 22px;
	color: var(--gz-consent-muted);
}

.galizzi-consent__text a,
.galizzi-consent__text strong {
	color: var(--gz-consent-text);
}

.galizzi-consent__text a {
	text-decoration: underline;
}

.galizzi-consent__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--gz-consent-text);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	border-radius: var(--gz-consent-radius);
}

.galizzi-consent__prefs {
	display: grid;
	gap: var(--gz-consent-gap);
	margin: 0 0 16px;
}

.galizzi-consent__prefs[hidden] {
	display: none;
}

.galizzi-consent__option {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 14px;
	line-height: 22px;
	color: var(--gz-consent-muted);
	cursor: pointer;
}

.galizzi-consent__option strong {
	color: var(--gz-consent-text);
}

.galizzi-consent__option input {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	accent-color: var(--gz-consent-accent);
}

.galizzi-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

/* Accetta e Rifiuta hanno lo stesso stile: nessuna scelta è "spinta". */
.galizzi-consent__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid #ffffff;
	border-radius: var(--gz-consent-radius);
	background: #ffffff;
	color: #181a1f;
	font-family: inherit;
	font-size: 15px;
	line-height: 22px;
	font-weight: 500;
	cursor: pointer;
	text-align: center;
}

.galizzi-consent__btn--ghost {
	background: transparent;
	color: var(--gz-consent-text);
	border-color: var(--gz-consent-border);
}

/* Variante per sfondi chiari (pulsante nella Cookie Policy). */
.galizzi-consent__btn--dark {
	background: #000000;
	color: #ffffff;
	border-color: #000000;
}

.galizzi-consent__btn[hidden] {
	display: none;
}

.galizzi-consent__btn:hover {
	opacity: 0.88;
}

.galizzi-consent__btn:focus-visible,
.galizzi-consent__close:focus-visible,
.galizzi-consent__option input:focus-visible,
.galizzi-consent__text a:focus-visible,
.galizzi-cookie-link:focus-visible {
	outline: 3px solid var(--gz-consent-accent);
	outline-offset: 2px;
}

@media (min-width: 768px) {
	.galizzi-consent {
		padding: 20px;
	}

	.galizzi-consent__box {
		padding: 24px 56px 24px 28px;
	}

	.galizzi-consent__actions {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	.galizzi-consent__btn {
		min-width: 140px;
	}
}

/* ---------------------------------------------------------------- */
/* Segnaposto iframe (Google Maps)                                   */
/* ---------------------------------------------------------------- */

.galizzi-embed {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 320px;
	background: #1b1b1b;
}

.galizzi-embed iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
}

.galizzi-embed__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	text-align: center;
	color: #ffffff;
}

.galizzi-embed__text {
	max-width: 420px;
	margin: 0;
	font-size: 15px;
	line-height: 24px;
	color: #d6d6d6;
}

.galizzi-embed__link {
	color: #ffffff;
	font-size: 14px;
	text-decoration: underline;
}

/* ---------------------------------------------------------------- */
/* Form contatti: casella privacy e Turnstile                        */
/* ---------------------------------------------------------------- */

/*
 * Il tema posiziona in assoluto ogni label dentro .form-group (etichette
 * flottanti dei campi di testo): sulla casella privacy la schiacciava in una
 * colonna larga 113px, sopra il pulsante Invia. Qui torna nel flusso normale.
 */
.form-group .wpcf7-acceptance .wpcf7-list-item {
	display: block;
	margin: 0;
}

.form-group .wpcf7-acceptance label {
	position: static;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 0;
	font-size: 14px;
	line-height: 22px;
	font-weight: 400;
	color: #181a1f;
	cursor: pointer;
}

.form-group .wpcf7-acceptance input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: #000000;
}

.form-group .wpcf7-acceptance a {
	color: #181a1f;
	text-decoration: underline;
}

.form-group .wpcf7-turnstile {
	min-height: 65px;
}

/* ---------------------------------------------------------------- */
/* Footer e pagine legali                                             */
/* ---------------------------------------------------------------- */

.galizzi-cookie-link {
	padding: 0;
	border: 0;
	background: none;
	color: #ffffff;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.galizzi-legal {
	max-width: 880px;
}

.galizzi-legal h2 {
	margin: 48px 0 16px;
	font-size: 28px;
	line-height: 38px;
	font-weight: 500;
	color: #181a1f;
}

.galizzi-legal h3 {
	margin: 28px 0 12px;
	font-size: 20px;
	line-height: 30px;
	font-weight: 500;
	color: #181a1f;
}

.galizzi-legal p,
.galizzi-legal li {
	font-size: 16px;
	line-height: 28px;
	color: #181a1f;
}

.galizzi-legal p {
	margin-bottom: 16px;
}

.galizzi-legal ul {
	margin: 0 0 16px;
	padding-left: 22px;
	list-style: disc;
}

.galizzi-legal a {
	color: #181a1f;
	text-decoration: underline;
}

.galizzi-legal__meta {
	font-size: 14px;
	color: #555555;
}

.galizzi-legal__table-wrap {
	overflow-x: auto;
	margin: 0 0 20px;
}

.galizzi-legal table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 22px;
}

.galizzi-legal th,
.galizzi-legal td {
	padding: 10px 12px;
	border: 1px solid #dddddd;
	text-align: left;
	vertical-align: top;
	color: #181a1f;
}

.galizzi-legal th {
	background: #f4f4f4;
	font-weight: 600;
}

@media (min-width: 768px) {
	.galizzi-legal h2 {
		font-size: 34px;
		line-height: 46px;
	}
}
