/*
 * Modulo di contatto.
 *
 * Usa le variabili del tema quando ci sono, con un valore di riserva per
 * restare leggibile anche sotto un tema diverso.
 */

.hs-form {
	margin: 3.5rem 0 0;
	padding: 2rem;
	background: var(--off-white, #fbfaf7);
	border: 1px solid var(--line, #e4dccd);
}

.hs-form h2 {
	margin-top: 0;
}

.hs-form__intro {
	color: var(--muted, #6f675b);
	margin-bottom: 1.8rem;
}

/* Trappola per i bot: fuori dallo schermo, non display:none, cosi' i bot
   che ignorano i fogli di stile la compilano lo stesso. */
.hs-form__trap {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hs-form__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem 1.4rem;
}

.hs-form__row {
	margin: 0;
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	gap: .35rem;
}

.hs-form__row--half {
	grid-column: span 1;
}

.hs-form label {
	font-size: .92rem;
	font-weight: 600;
	color: var(--ink, #11100e);
}

.hs-form__req {
	color: var(--ochre, #d5a047);
}

.hs-form__opt {
	font-weight: 400;
	color: var(--muted, #6f675b);
}

.hs-form__hint {
	font-size: .85rem;
	color: var(--muted, #6f675b);
}

.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form input[type="tel"],
.hs-form select,
.hs-form textarea {
	width: 100%;
	padding: .7rem .8rem;
	font: inherit;
	color: var(--ink, #11100e);
	background: #fff;
	border: 1px solid var(--sand, #ddd2c0);
	border-radius: 2px;
}

.hs-form textarea {
	resize: vertical;
	min-height: 9rem;
}

.hs-form input:focus-visible,
.hs-form select:focus-visible,
.hs-form textarea:focus-visible {
	outline: 2px solid var(--ochre, #d5a047);
	outline-offset: 1px;
	border-color: var(--ochre, #d5a047);
}

.hs-form__consent {
	margin: 1.5rem 0 0;
}

.hs-form__consent label {
	display: flex;
	align-items: flex-start;
	gap: .6rem;
	font-weight: 400;
	font-size: .92rem;
	line-height: 1.5;
}

.hs-form__consent input {
	margin-top: .25rem;
	flex: 0 0 auto;
}

.hs-form .cf-turnstile {
	margin-top: 1.2rem;
}

.hs-form__actions {
	margin: 1.6rem 0 0;
}

.hs-form__notice {
	margin: 0 0 1.6rem;
	padding: .9rem 1.1rem;
	border-left: 3px solid var(--ochre, #d5a047);
	background: #fff;
}

.hs-form__notice--err {
	border-left-color: #b3392b;
}

/* Il bottone e' quello del tema; questo vale solo se il tema non lo definisce. */
.hs-form .btn:not([class*="btn--"]) {
	cursor: pointer;
}

@media (max-width: 620px) {
	.hs-form {
		padding: 1.4rem;
	}

	.hs-form__grid {
		grid-template-columns: 1fr;
	}

	.hs-form__row--half {
		grid-column: 1 / -1;
	}
}
