/* Pagina Prenota: riquadro con il modulo di richiesta appuntamento.
   Misure riprese dal vecchio modulo MetForm (sezione 95/75, riquadro 1200 px con ombra,
   righe con 15 px di spazio, campi alti 61 px). */

/* Roboto solo per il titolo del consenso, come nel modulo precedente. */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-stretch: 100%; font-display: swap; src: url("../fonts/roboto-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

#themesflat-content.cg-page-prenota { padding-top: 0; padding-bottom: 0; }
.cg-prenota { padding: 95px 0 75px; }
.cg-prenota__con { max-width: 1200px; margin: 0 auto; }
.cg-prenota__card {
	padding: 44px 36px 50px;
	border-radius: 5px;
	background: #fff;
	box-shadow: 0 5px 30px 0 rgba(0, 0, 0, .06);
}
.cg-prenota__intro { padding: 15px; }

/* ---------- Righe e colonne ---------- */
.cg-booking .cg-form-msg { margin: 15px; }
.cg-bk-row { display: flex; flex-wrap: wrap; }
.cg-bk-col { position: relative; width: 50%; padding: 15px; }
.cg-bk-col.is-full { width: 100%; }

.cg-bk-title {
	margin: 0;
	color: var(--cg-primary);
	font-family: Jost, sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 30px;
}

/* ---------- Campi ---------- */
.cg-bk-input {
	display: block;
	width: 100%;
	height: 61px;
	margin: 0;
	padding: 18px 22px;
	border: 2px solid #e8e8e8;
	border-radius: 5px;
	background-color: #fff;
	box-shadow: none;
	color: var(--cg-primary);
	font-family: Rubik, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 21px;
	outline: none;
	transition: border-color .3s;
	-webkit-appearance: none;
	appearance: none;
}
.cg-bk-input::placeholder { color: var(--cg-primary); opacity: 1; }
.cg-bk-input:focus { border-color: var(--cg-secondary); }

/* Tendina con il triangolino grigio a destra */
.cg-bk-select {
	height: 62.39px;
	padding: 1px 48px 0 22px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='7' viewBox='0 0 14 7'%3E%3Cpath d='M0 0h14L7 7z' fill='%23ccc'/%3E%3C/svg%3E") no-repeat right 24px center / 14px 7px;
	color: #000;
	line-height: 58px;
	cursor: pointer;
}

/* Data e ora: campi del browser (calendario e orologio nativi) con il testo d'invito del modulo precedente */
.cg-bk-picker { position: relative; }
.cg-bk-picker .cg-bk-ph { display: none; }
.js .cg-bk-picker .cg-bk-ph {
	position: absolute;
	top: 20px;
	right: 24px;
	left: 24px;
	display: block;
	overflow: hidden;
	color: var(--cg-primary);
	font-family: Rubik, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 21px;
	white-space: nowrap;
	pointer-events: none;
}
.js .cg-bk-picker.is-filled .cg-bk-ph,
.js .cg-bk-picker input:focus + .cg-bk-ph { display: none; }
.js .cg-bk-picker:not(.is-filled) input:not(:focus) { color: transparent; }
.cg-bk-picker input { position: relative; cursor: pointer; }
.cg-bk-picker input::-webkit-calendar-picker-indicator {
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	background: transparent;
	color: transparent;
	opacity: 0;
	cursor: pointer;
}
.cg-bk-picker input::-webkit-date-and-time-value { text-align: left; }

.cg-bk-textarea { height: 141px; resize: vertical; }

/* ---------- Consenso GDPR ---------- */
.cg-bk-gdpr { margin-top: 20px; }
.cg-bk-label {
	display: block;
	margin: 0 0 5px;
	color: #000;
	font-family: Roboto, Rubik, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 16px;
}
.cg-bk-req { color: #f00; }
.cg-bk-check { display: inline-block; padding-right: 15px; color: #000; font-size: 17px; line-height: 32.3px; }
.cg-bk-check label { display: inline-block; cursor: pointer; }
.cg-bk-check input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	padding: 0;
	opacity: 0;
}
.cg-bk-check label span { font-size: 14px; font-weight: 400; line-height: 26.6px; }
.cg-bk-check label a { color: inherit; text-decoration: underline; }
.cg-bk-check label a:hover, .cg-bk-check label a:focus { color: var(--cg-accent); }
/* Casella disegnata come prima (icone "square" e "check-square" di Font Awesome 5, CC BY 4.0) */
.cg-bk-check label span::before {
	content: "";
	position: relative;
	top: 2px;
	display: inline-block;
	width: 25px;
	height: 18px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -448 448 512'%3E%3Cpath transform='scale(1,-1)' fill='%23747474' d='M400 416c26.5 0 48 -21.5 48 -48v-352c0 -26.5 -21.5 -48 -48 -48h-352c-26.5 0 -48 21.5 -48 48v352c0 26.5 21.5 48 48 48h352zM394 16c3.3 0 6 2.7 6 6v340c0 3.3 -2.7 6 -6 6h-340c-3.3 0 -6 -2.7 -6 -6v-340c0 -3.3 2.7 -6 6 -6h340z'/%3E%3C/svg%3E") no-repeat 0 0 / 15.75px 18px;
	vertical-align: -2.25px;
}
.cg-bk-check input:checked + span::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -448 448 512'%3E%3Cpath transform='scale(1,-1)' fill='%234285f4' d='M400 416c26.51 0 48 -21.49 48 -48v-352c0 -26.51 -21.49 -48 -48 -48h-352c-26.51 0 -48 21.49 -48 48v352c0 26.51 21.49 48 48 48h352zM400 16v352h-352v-352h352zM364.136 257.724l-172.589 -171.204c-4.705 -4.667 -12.303 -4.637 -16.97 0.068l-90.781 91.516c-4.667 4.705 -4.637 12.304 0.069 16.972l22.719 22.536c4.705 4.667 12.303 4.637 16.97 -0.069l59.792 -60.277l141.353 140.217c4.705 4.667 12.303 4.637 16.97 -0.068l22.536 -22.718c4.667 -4.706 4.637 -12.305 -0.068 -16.972z'/%3E%3C/svg%3E");
}
.cg-bk-check input:focus-visible + span::before { outline: 2px solid var(--cg-accent); outline-offset: 1px; }

/* ---------- Pulsante ---------- */
.cg-bk-btn {
	position: relative;
	display: inline-block;
	max-width: 100%;
	margin: 0;
	padding: 21px 40px;
	border: none;
	border-radius: 5px;
	background-color: var(--cg-accent);
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0);
	color: #fff;
	font-family: Rubik, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 18px;
	text-decoration: none;
	cursor: pointer;
	transition: all .4s;
}
.cg-bk-btn:hover, .cg-bk-btn:focus-visible { background-color: var(--cg-primary); color: #fff; }
.cg-bk-btn__icon { display: inline-block; width: 13.125px; height: 15px; vertical-align: -1.875px; fill: currentColor; }

/* ---------- Tablet e smartphone ---------- */
@media (max-width: 767px) {
	.cg-prenota__con { padding: 0 15px; }
	.cg-prenota__card { padding: 44px 0 54px; }
	.cg-bk-col { width: 100%; }
	/* Pulsante a tutta larghezza come prima, con il testo su una riga. */
	.cg-bk-btn { width: 100%; padding-right: 20px; padding-left: 20px; }
}
