/* Stile del form: eredita font e colori dal tema.
 * Persone e orari sono pulsanti selezionabili (radio), non menu a tendina:
 * alcuni temi sostituiscono i <select> con versioni proprie. */
.p21-res { max-width: 640px; }
.p21-res label { display: block; font-weight: 600; margin: 0 0 12px; }
.p21-res .p21-res__row input[type=text],
.p21-res .p21-res__row input[type=tel],
.p21-res .p21-res__row input[type=email],
.p21-res .p21-res__row input[type=date],
.p21-res .p21-res__row textarea {
	display: block; width: 100%; box-sizing: border-box; margin-top: 4px; font: inherit; font-weight: 400; padding: 10px 12px;
}
.p21-res__row { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 560px) {
	.p21-res__row { grid-template-columns: 1fr 1fr; }
	.p21-res__row:has(> label:only-child) { grid-template-columns: 1fr; }
}

/* Gruppi di pulsanti */
.p21-res .p21-res__fieldset { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
/* Alcuni temi trasformano <legend> in un titolo grande con sottolineatura: lo riportiamo allo stile delle altre etichette. */
.p21-res .p21-res__fieldset legend {
	font-size: inherit !important; font-family: inherit !important; font-weight: 600 !important; line-height: inherit !important;
	letter-spacing: normal !important; text-transform: none !important; color: inherit !important;
	border: 0 !important; box-shadow: none !important; background: none !important;
	padding: 0 !important; margin: 0 0 8px !important; width: auto; float: none;
}
.p21-res .p21-res__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.p21-res .p21-res__chip { display: inline-block; position: relative; margin: 0; font-weight: 400; }
.p21-res .p21-res__chip input {
	position: absolute !important; opacity: 0 !important; width: 1px !important; height: 1px !important;
	margin: 0 !important; left: 0; top: 0; pointer-events: none;
}
.p21-res .p21-res__chip span {
	display: inline-block; min-width: 46px; box-sizing: border-box; text-align: center;
	padding: 10px 14px; border: 1px solid #777; background: #fff; color: #222; cursor: pointer; line-height: 1.2;
	user-select: none;
}
.p21-res .p21-res__chip:hover span { border-color: #222; }
.p21-res .p21-res__chip input:checked + span { background: #222; border-color: #222; color: #fff; }
.p21-res .p21-res__chip input:focus-visible + span { outline: 2px solid #2271b1; outline-offset: 2px; }
.p21-res__group { margin: 0 0 10px; }
.p21-res__grouplabel { display: block; font-size: .85em; opacity: .75; margin: 0 0 6px; }
.p21-res__placeholder { opacity: .65; }

.p21-res__slotmsg { min-height: 1.2em; margin: 4px 0 0; font-size: .92em; white-space: pre-line; }
.p21-res__slotmsg.is-error { color: #b00020; }
.p21-res__help { font-size: .85em; opacity: .75; margin: -4px 0 14px; }
.p21-res__hint { font-size: .9em; opacity: .75; margin: 8px 0 0; }
.p21-res__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.p21-res__consents { margin: 8px 0 16px; }
.p21-res__check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: .92em; }
.p21-res__check input { margin-top: 4px; flex: none; }
.p21-res__submit { cursor: pointer; padding: 14px 24px; font: inherit; }
.p21-res__submit[disabled] { opacity: .6; cursor: wait; }
.p21-res__msg { margin-top: 12px; min-height: 1.4em; }
.p21-res__msg.is-error { color: #b00020; }
.p21-res__msg.is-ok { color: #1b6e2f; }
.p21-res__done { padding: 28px; border: 1px solid #BBA07A; background: #F6F3EE; }
.p21-res__done h3 { font-family: Marcellus, serif !important; font-size: 28px !important; line-height: 1.25 !important; font-weight: 400 !important; margin: 0 0 12px !important; }
.p21-res__total { font-weight: 600; margin: 8px 0 0; }
.p21-res__row > .p21-res__help { grid-column: 1 / -1; }

/* Telefono: nella pagina Prenota il modulo sta sopra il riquadro «Dove e quando» (nel template Elementor
 * a due colonne il riquadro viene prima). Il contenitore passa a colonna invertita su schermi stretti. */
@media (max-width: 767px) {
	.e-con:has(> .e-con .p21-res),
	.e-con-inner:has(> .e-con .p21-res) { flex-direction: column-reverse !important; }
}
