/* Widget di prenotazione — eredita le variabili di tema (colori/font) del tema
   Sunnyhouse Colosseo; i fallback permettono di usarlo anche fuori tema. */
.sh-booking {
	--sh-radius: 10px;
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	gap: 2.5rem;
	font-family: var( --sh-font-body, 'Jost', sans-serif );
	color: var( --sh-color-text, #2c2620 );
}

.sh-booking__loading {
	padding: 2rem;
	text-align: center;
	color: var( --sh-color-muted, #8a7f6f );
}

.sh-cal-legend {
	display: flex;
	gap: 1.5rem;
	font-size: 0.85rem;
	margin-bottom: 1rem;
	color: var( --sh-color-muted, #8a7f6f );
}
.sh-cal-legend span {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}
.sh-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}
.sh-dot--free { background: var( --sh-color-cream, #f4ead9 ); border: 1px solid var(--sh-color-gold, #b6893f); }
.sh-dot--busy { background: #d8cfc2; }
.sh-dot--selected { background: var( --sh-color-gold, #b6893f ); }

.sh-cal-nav {
	display: flex;
	justify-content: flex-end;
	gap: 0.75rem;
	margin-bottom: 1rem;
}
.sh-cal-nav__arrow {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var( --sh-color-primary, #7a3b2e );
	background: #fff;
	color: var( --sh-color-primary, #7a3b2e );
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
.sh-cal-nav__arrow:hover:not(:disabled) {
	background: var( --sh-color-primary, #7a3b2e );
	color: #fff;
	transform: scale(1.05);
}
.sh-cal-nav__arrow:disabled { opacity: 0.3; cursor: not-allowed; }

.sh-cal-months {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 240px, 1fr ) );
	gap: 1.5rem;
}

.sh-cal-note {
	margin: 1rem 0 0;
	font-size: 0.82rem;
	color: var( --sh-color-muted, #8a7f6f );
	text-align: center;
}

.sh-cal-month__heading {
	font-family: var( --sh-font-heading, 'Playfair Display', serif );
	font-size: 1.05rem;
	letter-spacing: 0.02em;
	margin-bottom: 0.6rem;
	color: var( --sh-color-primary, #7a3b2e );
}

.sh-cal-weekdays,
.sh-cal-grid {
	display: grid;
	grid-template-columns: repeat( 7, minmax( 0, 1fr ) );
	gap: 4px;
}

.sh-cal-weekdays span {
	text-align: center;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var( --sh-color-muted, #8a7f6f );
}

.sh-cal-day {
	aspect-ratio: 1;
	min-width: 0;
	overflow: hidden;
	border: 1px solid #e7ddcc;
	background: #fff;
	border-radius: 6px;
	font-size: 0.8rem;
	cursor: pointer;
	color: var( --sh-color-text, #2c2620 );
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sh-cal-day--empty { border: none; background: transparent; cursor: default; }
.sh-cal-day--disabled {
	background: #efe9df;
	color: #c2b8a6;
	text-decoration: line-through;
	cursor: not-allowed;
}
.sh-cal-day:not(.sh-cal-day--disabled):not(.sh-cal-day--empty):hover {
	border-color: var( --sh-color-gold, #b6893f );
}
.sh-cal-day--checkin,
.sh-cal-day--checkout {
	background: var( --sh-color-gold, #b6893f );
	border-color: var( --sh-color-gold, #b6893f );
	color: #fff;
	font-weight: 600;
}
.sh-cal-day--in-range {
	background: #f3e3c8;
	border-color: #f3e3c8;
}

.sh-booking__form {
	display: grid;
	gap: 1.1rem;
	background: var( --sh-color-cream, #f4ead9 );
	padding: 2rem;
	border-radius: var( --sh-radius );
}

.sh-booking__dates,
.sh-booking__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.sh-field--honeypot { position: absolute; left: -9999px; }
.sh-field[hidden] { display: none !important; }
.sh-field { display: grid; gap: 0.35rem; }
.sh-field label,
.sh-field__label {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var( --sh-color-muted, #8a7f6f );
}

.sh-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #fff;
	border: 1px solid #d9cdb8;
	border-radius: 999px;
	padding: 0.3rem 0.4rem;
}
.sh-stepper__btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid var( --sh-color-primary, #7a3b2e );
	background: #fff;
	color: var( --sh-color-primary, #7a3b2e );
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, color .15s ease;
}
.sh-stepper__btn:hover:not(:disabled) { background: var( --sh-color-primary, #7a3b2e ); color: #fff; }
.sh-stepper__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.sh-stepper__value {
	font-family: var( --sh-font-heading, 'Playfair Display', serif );
	font-size: 1.15rem;
	min-width: 2ch;
	text-align: center;
}
.sh-stepper__hint {
	margin: -0.6rem 0 0.4rem;
	font-size: 0.8rem;
	color: var( --sh-color-muted, #8a7f6f );
}
.sh-stepper__hint.is-limit { color: #a3352d; }
.sh-field input,
.sh-field select,
.sh-field textarea {
	font-family: inherit;
	font-size: 1rem;
	padding: 0.65rem 0.8rem;
	border: 1px solid #d9cdb8;
	border-radius: 6px;
	background: #fff;
	color: var( --sh-color-text, #2c2620 );
}
.sh-field input:focus,
.sh-field select:focus,
.sh-field textarea:focus {
	outline: none;
	border-color: var( --sh-color-gold, #b6893f );
}

.sh-field--checkbox {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 0.6rem;
	font-size: 0.85rem;
}
.sh-field--checkbox input { margin-top: 0.2rem; }
.sh-field--checkbox a { color: var( --sh-color-primary, #7a3b2e ); }

.sh-button {
	justify-self: start;
	background: var( --sh-color-primary, #7a3b2e );
	color: #fff;
	border: none;
	padding: 0.9rem 2rem;
	border-radius: 999px;
	font-family: var( --sh-font-heading, 'Playfair Display', serif );
	font-size: 1rem;
	letter-spacing: 0.03em;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.sh-button:hover { background: var( --sh-color-gold, #b6893f ); transform: translateY(-1px); }
.sh-button:disabled { opacity: 0.6; cursor: wait; }

.sh-booking__note {
	font-size: 0.8rem;
	color: var( --sh-color-muted, #8a7f6f );
	line-height: 1.5;
}

.sh-children-ages {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 140px, 1fr ) );
	gap: 0.8rem;
}
.sh-child-age label { font-size: 0.8rem; color: var( --sh-color-muted, #8a7f6f ); display: grid; gap: 0.3rem; }
.sh-child-age select { padding: 0.5rem; border: 1px solid #d9cdb8; border-radius: 6px; }

.sh-quote {
	background: #fff;
	border: 1px solid var( --sh-color-gold, #b6893f );
	border-radius: var( --sh-radius );
	padding: 1.3rem 1.5rem;
}
.sh-quote h3 { margin-bottom: 0.8rem; font-size: 1.05rem; }
.sh-quote__line { display: flex; justify-content: space-between; font-size: 0.92rem; padding: 0.3rem 0; border-bottom: 1px dashed #e7ddcc; }
.sh-quote__total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-top: 0.8rem;
	padding-top: 0.8rem;
	border-top: 2px solid var( --sh-color-gold, #b6893f );
	font-family: var( --sh-font-heading, 'Playfair Display', serif );
	font-size: 1.15rem;
	font-weight: 600;
	color: var( --sh-color-primary, #7a3b2e );
}
.sh-quote__note { font-size: 0.8rem; color: var( --sh-color-muted, #8a7f6f ); margin: 0.6rem 0 0; }

.sh-payment-methods__options { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: 0.4rem; }
.sh-payment-option { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; font-weight: normal; text-transform: none; letter-spacing: normal; }

.sh-booking__feedback { font-size: 0.9rem; min-height: 1.2em; }
.sh-booking__feedback.is-error { color: #a3352d; }
.sh-booking__feedback.is-success { color: #2f6a3f; }

@media ( max-width: 640px ) {
	.sh-booking__dates, .sh-booking__row { grid-template-columns: 1fr; }
}
