/* 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; }

/* Politica di rimborso valida per le date scelte (righe da /quote, scritte con textContent). */
.sh-refund-policy {
	margin-top: 1rem;
	padding: 0.8rem 1rem;
	background: #fbf7f0;
	border-left: 3px solid var( --sh-color-gold, #b6893f );
	border-radius: 4px;
}
.sh-refund-policy__title { margin: 0 0 0.4rem; font-weight: 600; font-size: 0.9rem; color: var( --sh-color-primary, #7a3b2e ); }
.sh-refund-policy__list { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; line-height: 1.5; }
.sh-refund-policy__list li { margin: 0.15rem 0; }

/* Piani di rimborso (schede selezionabili, testo via textContent). */
.sh-plan-picker { margin-bottom: 1rem; }
.sh-plan-picker__title { margin: 0 0 0.5rem; font-weight: 600; font-size: 0.95rem; }
.sh-plan-picker__list { display: grid; gap: 0.6rem; }
.sh-plan-card { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.8rem 1rem; border: 1px solid #d9cdb8; border-radius: 8px; cursor: pointer; background: #fff; text-transform: none; letter-spacing: normal; font-weight: normal; }
.sh-plan-card.is-selected { border-color: var( --sh-color-gold, #b6893f ); box-shadow: 0 0 0 2px rgba( 182, 137, 63, 0.25 ); }
.sh-plan-card input { margin-top: 0.25rem; }
.sh-plan-card__body { display: grid; gap: 0.15rem; }
.sh-plan-card__name { font-weight: 600; color: var( --sh-color-primary, #7a3b2e ); }
.sh-plan-card__surcharge, .sh-plan-card__total { font-size: 0.88rem; }
.sh-plan-card__policy { margin: 0.3rem 0 0; padding-left: 1.1rem; font-size: 0.82rem; color: var( --sh-color-muted, #8a7f6f ); }

.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-citytax-step {
	background: var( --sh-color-cream, #faf3e7 );
	border: 1px solid var( --sh-color-gold, #b6893f );
	border-radius: var( --sh-radius );
	padding: 1.3rem 1.5rem;
}
.sh-citytax-step__title {
	font-family: var( --sh-font-heading, 'Playfair Display', serif );
	font-size: 1.05rem;
	color: var( --sh-color-primary, #7a3b2e );
	margin: 0 0 0.5rem;
}
.sh-citytax-step__intro { font-size: 0.9rem; color: var( --sh-color-muted, #8a7f6f ); margin: 0 0 0.9rem; }
.sh-citytax-step__amount {
	font-family: var( --sh-font-heading, 'Playfair Display', serif );
	font-size: 1.05rem;
	font-weight: 600;
	color: var( --sh-color-primary, #7a3b2e );
	margin: 0 0 0.9rem;
}
.sh-citytax-step__options { display: flex; flex-direction: column; gap: 0.6rem; }

.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; }

/* Avviso "danger": periodo selezionato con date non disponibili nel mezzo
   (es. arrivo/partenza precompilati da link esterno, o rimasti in
   sessione dopo che una data si è liberata/occupata nel frattempo) —
   compare tra la nota "Disponibilità consultabile..." del calendario e il
   form di prenotazione, così è impossibile non notarlo prima di compilare
   i propri dati. */
.sh-booking__alert--danger {
	background: #f8d7da;
	color: #842029;
	border: 1px solid #f1aeb5;
	border-radius: 8px;
	padding: 0.9rem 1.1rem;
	font-size: 0.9rem;
	margin: 0 0 1.8rem;
}

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

/* ---------------- Invio richiesta: animazione + conferma ---------------- */
.sh-booking__form { position: relative; }
.sh-send-overlay {
	position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center;
	background: rgba( 255, 255, 255, 0.92 ); backdrop-filter: blur( 3px ); border-radius: var( --sh-radius, 10px );
	animation: sh-fade-in .25s ease both;
}
.sh-send-overlay__box { text-align: center; padding: 1.5rem; }
.sh-send-overlay__box p { margin: 1rem 0 0; font-weight: 500; color: var( --sh-color-primary, #7a3b2e ); }
.sh-send-anim { position: relative; width: 220px; height: 70px; margin: 0 auto; overflow: hidden; }
.sh-send-anim__plane {
	position: absolute; left: 0; top: 14px; width: 42px; height: 42px; color: var( --sh-color-primary, #7a3b2e );
	animation: sh-plane-fly 1.3s ease-in-out infinite;
}
.sh-send-anim__plane svg, .sh-sent__plane svg { width: 100%; height: 100%; display: block; }
.sh-send-anim__trail {
	position: absolute; left: 0; right: 0; top: 34px; height: 2px;
	background: repeating-linear-gradient( 90deg, var( --sh-color-gold, #b6893f ) 0 10px, transparent 10px 20px );
	opacity: .55; animation: sh-trail 1s linear infinite;
}
@keyframes sh-plane-fly {
	0% { transform: translateX( -50px ) rotate( -8deg ); opacity: 0; }
	20% { opacity: 1; }
	70% { transform: translateX( 140px ) rotate( 4deg ); opacity: 1; }
	100% { transform: translateX( 240px ) rotate( -6deg ); opacity: 0; }
}
@keyframes sh-trail { to { background-position: -20px 0; } }
@keyframes sh-fade-in { from { opacity: 0; } to { opacity: 1; } }

.sh-sent {
	text-align: center; padding: 2rem 1.25rem 1.5rem; margin-bottom: 1.5rem; border-radius: var( --sh-radius, 10px );
	background: linear-gradient( 180deg, #f3faf4, #fff ); border: 2px solid #2f6a3f;
	box-shadow: 0 10px 30px rgba( 47, 106, 63, 0.15 ); outline: none;
	animation: sh-sent-in .5s cubic-bezier( .2, .9, .3, 1.2 ) both;
}
.sh-sent__art { position: relative; width: 150px; height: 110px; margin: 0 auto 1rem; }
.sh-sent__envelope { width: 120px; height: 90px; position: absolute; left: 15px; top: 14px; }
.sh-sent__env-body { fill: #fff; stroke: var( --sh-color-primary, #7a3b2e ); stroke-width: 3; }
.sh-sent__env-flap { fill: none; stroke: var( --sh-color-primary, #7a3b2e ); stroke-width: 3; stroke-linejoin: round; }
.sh-sent__plane {
	position: absolute; left: 0; top: 0; width: 34px; height: 34px; color: var( --sh-color-gold, #b6893f );
	animation: sh-sent-plane 1s ease-in .15s both;
}
.sh-sent__check { position: absolute; right: 0; bottom: 0; width: 46px; height: 46px; animation: sh-pop .5s cubic-bezier( .2, .9, .3, 1.4 ) .9s both; }
.sh-sent__check-ring { fill: #2f6a3f; }
.sh-sent__check-mark { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: sh-draw .4s ease-out 1.25s forwards; }
.sh-sent__title { margin: 0 0 .4rem; font-size: 1.6rem; color: #2f6a3f; }
.sh-sent__text { margin: 0 auto .8rem; max-width: 34rem; font-size: 1.05rem; }
.sh-sent__details { list-style: none; margin: 0 auto .8rem; padding: .6rem 1rem; display: inline-block; background: #fff; border: 1px solid #cfe5d3; border-radius: 8px; font-weight: 500; }
.sh-sent__details li { padding: .15rem 0; }
.sh-sent__note { margin: 0; font-size: .9rem; color: var( --sh-color-muted, #8a7f6f ); }
@keyframes sh-sent-in { from { opacity: 0; transform: translateY( 14px ) scale( .96 ); } to { opacity: 1; transform: none; } }
@keyframes sh-sent-plane {
	0% { transform: translate( -10px, 70px ) rotate( -15deg ); opacity: 0; }
	30% { opacity: 1; }
	100% { transform: translate( 70px, 30px ) scale( .3 ) rotate( 10deg ); opacity: 0; }
}
@keyframes sh-pop { from { transform: scale( 0 ); } to { transform: scale( 1 ); } }
@keyframes sh-draw { to { stroke-dashoffset: 0; } }

.sh-booking.is-sent .sh-booking__calendar { opacity: .45; pointer-events: none; }
.sh-booking__form.is-sent > *:not( .sh-sent ):not( button ) { opacity: .55; }
.sh-booking__form.is-sent #sh-submit, .sh-button.is-sent {
	background: #2f6a3f; color: #fff; opacity: 1; cursor: not-allowed; transform: none;
}
@media ( prefers-reduced-motion: reduce ) {
	.sh-send-anim__plane, .sh-send-anim__trail, .sh-sent, .sh-sent__plane, .sh-sent__check, .sh-sent__check-mark { animation: none !important; }
	.sh-sent__check-mark { stroke-dashoffset: 0; }
}

.sh-sent { position: relative; }
.sh-sent__close {
	position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
	border-radius: 50%; background: #fff; border: 1px solid #cfe5d3; color: #2c2620; text-decoration: none; opacity: 1;
	transition: background .15s, transform .15s;
}
.sh-sent__close:hover, .sh-sent__close:focus-visible { background: #2f6a3f; color: #fff; transform: scale( 1.06 ); }
.sh-sent__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.sh-sent__cta {
	display: inline-block; margin-top: 1rem; padding: .7rem 1.4rem; border-radius: 999px; background: var( --sh-color-primary, #7a3b2e );
	color: #fff; font-weight: 500; text-decoration: none; transition: background .15s, transform .15s;
}
.sh-sent__cta:hover { background: var( --sh-color-gold, #b6893f ); transform: translateY( -1px ); }

.sh-feedback__links { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .5rem; }
.sh-feedback__links a { font-weight: 600; text-decoration: underline; color: inherit; }


/* Scelta pagamento: tutto ora / solo l'acconto */
.sh-paymode { margin-bottom: 1rem; }
.sh-paymode__title { margin: 0 0 0.5rem; font-weight: 600; font-size: 0.95rem; }
.sh-paymode__list { display: grid; gap: 0.5rem; }
.sh-paymode__full-btn { margin-top: 0.5rem; }

/* Modalita' Airbnb: pulsante di redirect e nota (pagina Prenota) */
.sh-booking--airbnb .sh-button--airbnb { width: 100%; margin-top: 1rem; }
.sh-booking__airbnb-note { margin-top: 1rem; font-size: .9rem; opacity: .85; }
