/* Escape Manager — Booking pubblico — tema scuro stile Escape Navigator */

.em-booking-app {
	--em-bg: #0e0e11;
	--em-panel: #16161c;
	--em-panel-2: #1d1d24;
	--em-chip: #23232b;
	--em-chip-hover: #2c2c36;
	--em-border: #2a2a33;
	--em-text: #ececf1;
	--em-muted: #9a9aa6;
	--em-faint: #6b6b76;
	--em-accent: #2f6df6;
	--em-accent-hover: #3f7bff;
	--em-gold: #eab308;
	--em-ok: #34d399;
	--em-danger: #f87171;

	/* Larghezza = quanto basta al contenuto (turni su una riga), non di più.
	   Esce dalla colonna stretta del tema ma si ferma a ~980px. Centrato senza
	   transform (per non rompere il modal a tutto schermo). */
	width: min(100vw - 24px, 900px);
	max-width: none;
	position: relative;
	left: 50%;
	margin-left: calc(min(100vw - 24px, 900px) * -0.5);
	margin-right: 0;
	padding: 1.25em;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--em-text);
	background: var(--em-bg);
	border-radius: 18px;
	font-size: 13px;
}

.em-booking-app * { box-sizing: border-box; }
.em-booking-app h2 { font-size: 1.4em; margin: 0 0 1em; }
.em-booking-app h3 { font-size: 1.05em; margin: 1.25em 0 0.6em; color: var(--em-text); }
.em-booking-app p { margin: 0.5em 0; }

/* ===== Calendario (Step 0) ===== */
.emc {
	background: var(--em-panel);
	border: 1px solid var(--em-border);
	border-radius: 18px;
	padding: 1.25em 1.25em 1em;
}

.emc-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	flex-wrap: wrap;
	margin-bottom: 1.1em;
}

/* Nome del mese corrente, a sinistra */
.emc-month {
	font-size: 1.5em;
	font-weight: 800;
	color: var(--em-text);
	letter-spacing: 0.01em;
}

.emc-toggle {
	display: inline-flex;
	background: var(--em-panel-2);
	border: 1px solid var(--em-border);
	border-radius: 10px;
	padding: 3px;
}
.emc-toggle button {
	border: 0;
	background: transparent;
	color: var(--em-muted);
	font-size: 0.95em;
	font-weight: 600;
	padding: 0.5em 1.15em;
	border-radius: 9px;
	cursor: pointer;
	transition: background .15s, color .15s;
}
.emc-toggle button.is-active {
	background: #fff;
	color: #11111a;
}

.emc-datepick {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	background: var(--em-panel-2);
	border: 1px solid var(--em-border);
	border-radius: 10px;
	padding: 0.5em 0.85em;
	cursor: pointer;
	color: var(--em-text);
	font-weight: 600;
	font-size: 0.95em;
	padding: 0.5em 0.9em;
}
.emc-datepick .emc-caret { color: var(--em-muted); font-size: 0.75em; }
.emc-datepick input[type="date"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}

/* striscia giorni */
.emc-strip {
	display: flex;
	align-items: stretch;
	gap: 0.5em;
	background: var(--em-panel-2);
	border: 1px solid var(--em-border);
	border-radius: 14px;
	padding: 0.5em;
	margin-bottom: 1.4em;
}
.emc-arrow {
	flex: 0 0 auto;
	width: 36px;
	border: 0;
	background: transparent;
	color: var(--em-muted);
	font-size: 1.5em;
	line-height: 1;
	cursor: pointer;
	border-radius: 10px;
	transition: background .15s, color .15s;
}
.emc-arrow:hover { background: var(--em-chip); color: var(--em-text); }
.emc-days {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 0.5em;
	flex: 1 1 auto;
	min-width: 0;
	overflow: visible;
}
.emc-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	min-width: 0;
	padding: 0.6em 0.4em;
	border: 0;
	background: transparent;
	color: var(--em-muted);
	border-radius: 12px;
	cursor: pointer;
	outline: none;
	transition: background .15s, color .15s;
	white-space: nowrap;
	overflow: hidden;
}
.emc-day:focus, .emc-day:focus-visible { outline: none; box-shadow: none; }
.emc-day:hover { background: var(--em-chip); color: var(--em-text); }
.emc-day .emc-day-wd { font-size: 0.72em; text-transform: capitalize; white-space: nowrap; }
.emc-day .emc-day-dm { font-size: 1.05em; font-weight: 800; color: var(--em-text); white-space: nowrap; }

/* §Fix 2026-07-02 — Mobile: 7 pulsanti in una riga stretta escono dai
   contorni. Passiamo a flex scrollabile orizzontalmente + layout
   inline "Gio 02" per pulsante, cosi' tutto resta dentro il chip. */
@media (max-width: 640px) {
	.emc-days {
		display: flex;
		grid-auto-flow: unset;
		gap: 0.35em;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.emc-days::-webkit-scrollbar { display: none; }
	.emc-day {
		flex: 0 0 auto;
		flex-direction: column;
		align-items: center;
		gap: 2px;
		padding: 0.55em 0.7em;
		scroll-snap-align: start;
		min-width: 3.4em;
	}
	.emc-day .emc-day-wd { font-size: 0.75em; font-weight: 600; }
	.emc-day .emc-day-dm { font-size: 1.05em; }
}
.emc-day.is-active {
	background: var(--em-accent);
	color: #fff;
}
.emc-day.is-active .emc-day-dm,
.emc-day.is-active .emc-day-wd { color: #fff; }

/* righe stanza */
/* §Fix 2026-07-01 — più aria tra stanze (era 0.9em) e niente più zebra: le stanze
   avevano sfondi alternati che risultavano rumorosi. Ora sfondo uniforme e
   separazione data dallo spazio verticale + un divider leggero. */
.emc-body { display: flex; flex-direction: column; gap: 1.6em; }
.emc-room {
	background: #1c1c23;
	border: 1px solid var(--em-border);
	border-radius: 14px;
	padding: 1.1em 1.2em 1.15em;
}
.emc-room-head {
	display: flex;
	align-items: center;
	gap: 0.8em;
	margin-bottom: 0.85em;
}
.emc-avatar {
	position: relative;
	width: 48px; height: 48px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
	background: linear-gradient(135deg, #3a3a46, #23232b);
	display: flex; align-items: center; justify-content: center;
	color: #cfcfda; font-weight: 800; font-size: 1.1em;
	border: 1px solid var(--em-border);
}
.emc-avatar img,
.emc-avatar video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* §Poster 2026-07-15 — placeholder (poster o lettera) sotto il video, che
   appare in dissolvenza quando è pronto: icona mai vuota durante il caricamento. */
.emc-avatar-ph {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
	object-fit: cover;
	font-weight: 800; font-size: 1.1em; color: #cfcfda;
}
.emc-avatar-vid {
	position: absolute; inset: 0;
	opacity: 0; transition: opacity 0.45s ease;
}
.emc-avatar-vid.is-ready,
.emc-avatar-vid.has-poster { opacity: 1; }
/* §Promo — cerchio evidenziato attorno all'icona + bollicina "−X%" (notifica). */
.emc-avatar-wrap { position: relative; flex: 0 0 auto; display: inline-flex; }
/* Cerchio GIALLO Sottoscacco (sottile) attorno all'icona, con pulsazione MARCATA. */
.emc-avatar-wrap.is-promo .emc-avatar {
	border-color: var(--em-gold);
	animation: emc-ring-pulse 1.4s ease-in-out infinite;
}
@keyframes emc-ring-pulse {
	0%   { box-shadow: 0 0 0 2px var(--em-gold), 0 0 0 3px rgba(234, 179, 8, 0.55); }
	70%  { box-shadow: 0 0 0 2px var(--em-gold), 0 0 0 12px rgba(234, 179, 8, 0.0); }
	100% { box-shadow: 0 0 0 2px var(--em-gold), 0 0 0 12px rgba(234, 179, 8, 0.0); }
}
/* Bollicina "−X%" dorata, curata, in alto a SINISTRA — con leggera pulsazione. */
.emc-avatar-promo {
	position: absolute;
	top: -5px; left: -7px;
	height: 19px;
	padding: 0 7px;
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 0.62rem; font-weight: 800; letter-spacing: -0.01em; line-height: 1;
	color: #201a00;
	background: linear-gradient(150deg, #ffd84d 0%, var(--em-gold) 55%, #d99e07 100%);
	border: 2px solid var(--em-panel);
	border-radius: 999px;
	box-shadow: 0 2px 7px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
	white-space: nowrap;
	transform-origin: center;
	animation: emc-badge-pop 1.4s ease-in-out infinite;
	z-index: 2;
}
@keyframes emc-badge-pop {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.1); }
}
/* Meta stanza con piccole icone gialle (persone · durata · difficoltà). */
.emc-room-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5em; }
.emc-meta-item { display: inline-flex; align-items: center; gap: 0.35em; }
.emc-meta-item svg { width: 15px; height: 15px; color: var(--em-gold); flex: 0 0 auto; }
.emc-meta-sep { width: 1px; height: 14px; background: var(--em-border); display: inline-block; }
.emc-room-name { font-size: 1.05em; font-weight: 700; color: var(--em-text); }
/* §SLOGAN — nome + frase "spot" sulla STESSA riga */
.emc-room-name-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5em; }
/* Frase che si alterna, STESSO colore del nome (solo un filo più tenue), in
   corsivo e leggermente più piccola; fade a ogni cambio. */
.emc-room-slogan {
	color: inherit;
	opacity: 0.6;
	font-size: 0.82em;
	font-weight: 500;
	font-style: italic;
	white-space: nowrap;
	animation: emc-slogan-in 0.5s ease;
}
@keyframes emc-slogan-in {
	from { opacity: 0; transform: translateY(2px); }
	to   { opacity: 0.6; transform: none; }
}
/* §Ordinamento stanze deboli — badge "molta disponibilità". */
.emc-room-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25em;
	font-size: 0.72em;
	font-weight: 700;
	line-height: 1;
	padding: 0.28em 0.6em;
	border-radius: 999px;
	color: #34d399;
	background: rgba(16, 185, 129, 0.12);
	border: 1px solid rgba(16, 185, 129, 0.35);
	white-space: nowrap;
}
/* §Promo periodo — badge sconto "-X%" sulla stanza. */
.emc-room-promo {
	display: inline-flex;
	align-items: center;
	gap: 0.25em;
	font-size: 0.74em;
	font-weight: 800;
	line-height: 1;
	padding: 0.28em 0.62em;
	border-radius: 999px;
	color: #fff;
	background: linear-gradient(135deg, #f97316, #ef4444);
	border: 1px solid rgba(249, 115, 22, 0.55);
	box-shadow: 0 1px 6px rgba(239, 68, 68, 0.35);
	white-space: nowrap;
	letter-spacing: 0.01em;
}
.emc-room-meta { font-size: 0.85em; color: var(--em-muted); margin-top: 2px; }
.emc-room-meta .emc-dot { color: var(--em-faint); margin: 0 0.15em; }

.emc-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
}
.emc-slot-empty { color: var(--em-faint); font-size: 0.9em; }

.emc-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	position: relative;
	min-width: 82px;
	padding: 0.55em 0.75em;
	border: 1px solid var(--em-border);
	background: var(--em-chip);
	border-radius: 12px;
	cursor: pointer;
	color: var(--em-text);
	transition: background .15s, border-color .15s, transform .1s;
}
.emc-slot.is-available:hover { background: var(--em-chip-hover); border-color: #3b3b47; }
.emc-slot.is-available:active { transform: scale(0.97); }
.emc-slot-time { font-size: 1.02em; font-weight: 800; letter-spacing: 0.01em; }
.emc-slot-date { font-size: 0.66em; color: var(--em-muted); margin-top: 1px; }
.emc-slot.is-locked {
	cursor: not-allowed;
	background: var(--em-panel-2);
	color: var(--em-faint);
	border-style: dashed;
	border-color: #2b2b34;
	min-width: 58px;
}
.emc-slot-lock { font-size: 0.95em; opacity: 0.5; }

/* slot "hot": orario più richiesto (statistiche storiche) */
.emc-slot.is-hot {
	border-color: #e8a23d;
	box-shadow: 0 0 0 1px rgba(232,162,61,0.35), 0 0 14px rgba(232,162,61,0.18);
}
.emc-slot.is-hot:hover { border-color: #f4b659; }
.emc-slot-hot {
	position: absolute;
	top: -9px; right: -7px;
	font-size: 1em; line-height: 1;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,0.55));
	pointer-events: none;
}

/* ===== Vista settimana (stile Escape Navigator) ===== */
.emc-weekview { display: grid; grid-template-columns: 230px 1fr; gap: 1.3em; align-items: start; }
@media (max-width: 760px) { .emc-weekview { grid-template-columns: 1fr; } }

.emc-side {
	background: var(--em-panel-2); border: 1px solid var(--em-border);
	border-radius: 14px; padding: 0.8em;
}
.emc-side-loc {
	color: var(--em-muted); font-size: 0.82em; line-height: 1.55;
	padding: 0.3em 0.5em 0.8em; border-bottom: 1px solid var(--em-border); margin-bottom: 0.6em;
}
.emc-side-rooms { display: flex; flex-direction: column; gap: 0.15em; }
.emc-side-room {
	display: flex; align-items: center; gap: 0.6em;
	padding: 0.5em; border: 0; background: transparent; color: var(--em-text);
	border-radius: 10px; cursor: pointer; text-align: left; font-size: 0.92em; font-weight: 600;
	transition: background .15s;
}
.emc-side-room:hover { background: var(--em-chip); }
.emc-side-room.is-active { background: var(--em-accent); color: #fff; }
.emc-side-room .emc-avatar { width: 34px; height: 34px; font-size: 0.85em; }

.emc-main .emc-room-head { margin-bottom: 1.1em; }
.emc-week-days { display: flex; flex-direction: column; gap: 0; }
.emc-week-day {
	display: grid; grid-template-columns: 95px 1fr; gap: 0.9em; align-items: start;
	padding: 0.9em 0; border-bottom: 1px solid var(--em-border);
}
.emc-week-day:last-child { border-bottom: 0; }
.emc-week-daylabel { display: flex; flex-direction: column; }
.emc-wd-num { font-weight: 700; color: var(--em-text); font-size: 0.95em; }
.emc-wd-wd { color: var(--em-muted); font-size: 0.8em; text-transform: lowercase; }
.emc-week-dayslots { display: flex; flex-wrap: wrap; gap: 0.5em; }

/* legenda */
.emc-legend {
	display: flex; gap: 1.4em; flex-wrap: wrap;
	margin-top: 1.3em; padding-top: 1em;
	border-top: 1px solid var(--em-border);
	font-size: 0.82em; color: var(--em-muted);
}
.emc-legend-item { display: inline-flex; align-items: center; gap: 0.4em; }
.emc-dot-c { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.emc-dot-available { background: var(--em-accent); }
.emc-dot-locked { background: var(--em-faint); }

.emc-loading, .emc-empty { color: var(--em-muted); padding: 1.5em 0; text-align: center; }
.emc-error { color: var(--em-danger); padding: 1em 0; }

/* ===== Stepper checkout (step 1-4) — centrato e ben visibile ===== */
.em-stepper { display: flex; justify-content: center; align-items: center; gap: 0.7em; margin-bottom: 1.1em; flex-wrap: wrap; }
.em-step { display: flex; align-items: center; gap: 0.55em; color: var(--em-muted); font-size: 1em; }
.em-step:not(:last-child)::after { content: ""; width: 30px; height: 2px; background: var(--em-border); margin-left: 0.55em; }
.em-step-num {
	width: 30px; height: 30px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--em-chip); color: var(--em-muted); font-size: 0.95em; font-weight: 800;
	border: 1px solid var(--em-border);
}
/* §Fix 2026-07-02 — Pallini step: da blu/verde a giallo Sottoscacco
   (brand). Attivo = giallo pieno intenso; completato = giallo con
   segno di spunta. */
.em-step.is-active .em-step-num { background: #fbbf24; color: #1a1206; border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.20); }
.em-step.is-active { color: var(--em-text); }
.em-step.is-done .em-step-num { background: #f59e0b; color: #1a1206; border-color: #f59e0b; }
.em-step:not(:last-child).is-done::after,
.em-step:not(:last-child).is-active::after { background: #f59e0b; }

.em-countdown {
	display: block;
	width: fit-content;
	margin: 0 auto 1.3em;
	text-align: center;
	background: rgba(47,109,246,0.14);
	border: 1px solid rgba(47,109,246,0.45);
	color: #bcd2ff;
	padding: 0.6em 1.3em; border-radius: 999px;
	font-size: 1.15em; font-weight: 700;
}

/* ===== Step content (forms) ===== */
.em-step2, .em-step3, .em-step4, .em-step5, .em-step-event {
	background: var(--em-panel);
	border: 1px solid var(--em-border);
	border-radius: 16px;
	padding: 1.4em;
}

.em-num-input { display: flex; align-items: center; justify-content: space-between; max-width: 320px; margin: 0.75em 0; }
.em-num-input label { color: var(--em-muted); }
.em-counter { display: inline-flex; align-items: center; gap: 0.75em; }
.em-counter button {
	width: 38px; height: 38px; border-radius: 10px;
	border: 1px solid var(--em-border); background: var(--em-chip); color: var(--em-text);
	font-size: 1.2em; cursor: pointer;
}
.em-counter button:hover { background: var(--em-chip-hover); }
.em-counter span { min-width: 28px; text-align: center; font-weight: 700; font-size: 1.05em; }

.em-textarea-label { display: block; margin-top: 1em; color: var(--em-muted); font-size: 0.9em; }
.em-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9em; }
.em-form-grid label, .em-textarea-label { display: flex; flex-direction: column; gap: 0.3em; }
@media (max-width: 620px) { .em-form-grid { grid-template-columns: 1fr; } }

.em-booking-app input, .em-booking-app textarea, .em-booking-app select {
	background: var(--em-panel-2);
	border: 1px solid var(--em-border);
	border-radius: 10px;
	padding: 0.65em 0.8em;
	color: var(--em-text);
	font-size: 0.95em;
	font-family: inherit;
	width: 100%;
	/* §Fix 2026-07-02 — Su Chrome/Safari il campo type=tel veniva
	   colorato con il "link color" (blu scuro) sull'autodetected phone,
	   quasi illeggibile su sfondo scuro. Forzo tutti i canali che
	   sovrascriverebbero il colore. */
	-webkit-text-fill-color: var(--em-text);
	color-scheme: dark;
}
/* §Fix 2026-07-15 — Autofill (Chrome giallo, iOS Safari BIANCO): con la
   compilazione automatica su mobile il campo diventava bianco e il testo
   spariva. Forziamo sfondo scuro + testo chiaro anche in autofill/active,
   con !important (iOS ignora la versione senza), su input E textarea. */
.em-booking-app input:-webkit-autofill,
.em-booking-app input:-webkit-autofill:hover,
.em-booking-app input:-webkit-autofill:focus,
.em-booking-app input:-webkit-autofill:active,
.em-booking-app textarea:-webkit-autofill,
.em-booking-app textarea:-webkit-autofill:focus,
.em-booking-app select:-webkit-autofill {
	-webkit-text-fill-color: var(--em-text) !important;
	-webkit-box-shadow: 0 0 0 1000px var(--em-panel-2) inset !important;
	box-shadow: 0 0 0 1000px var(--em-panel-2) inset !important;
	background-color: var(--em-panel-2) !important;
	caret-color: var(--em-text) !important;
	color: var(--em-text) !important;
	transition: background-color 99999s ease-in-out 0s;
}
.em-booking-app input:focus, .em-booking-app textarea:focus {
	outline: none; border-color: var(--em-accent);
	box-shadow: 0 0 0 3px rgba(47,109,246,0.18);
}
.em-err { color: var(--em-danger); font-size: 0.78em; }
.em-error { color: var(--em-danger); }

.em-summary { display: grid; gap: 0.6em; background: var(--em-panel-2); border: 1px solid var(--em-border); border-radius: 12px; padding: 1.2em 1.3em; font-size: 1.1em; line-height: 1.4; }
.em-summary strong { color: var(--em-muted); font-weight: 600; margin-right: 0.35em; }

/* §Fix 2026-07-15 — Avviso gift card / QR reso DISCRETO: una piccola nota
   sobria (niente box giallo grande, niente pulsazione, icona piccola). */
.em-giftnote {
	position: relative;
	margin: 0.9em 0;
	padding: 0.55em 0.8em 0.55em 2.1em;
	background: rgba(251, 191, 36, 0.05);
	border: 1px solid rgba(251, 191, 36, 0.20);
	border-radius: 9px;
	color: var(--em-muted);
	font-size: 0.8em;
	line-height: 1.4;
}
.em-giftnote::before {
	content: '🎟️';
	position: absolute;
	left: 0.62em;
	top: 0.6em;
	font-size: 0.95em;
	line-height: 1;
}
.em-giftnote strong { color: #fcd34d; font-weight: 600; }

.em-promo-row { display: flex; gap: 0.5em; }
.em-promo-applied { display: flex; align-items: center; gap: 0.5em; color: var(--em-ok); }
.em-link { background: none; border: 0; color: var(--em-accent); cursor: pointer; text-decoration: underline; padding: 0; }

.em-payment-methods { display: flex; flex-direction: column; gap: 0.5em; }
.em-payment-option {
	display: flex; align-items: center; gap: 0.6em;
	border: 1px solid var(--em-border); border-radius: 10px; padding: 0.7em 0.9em; cursor: pointer; width: auto;
}
.em-payment-option.is-active { border-color: var(--em-accent); background: rgba(47,109,246,0.08); }
.em-payment-option input { width: auto; }
.em-terms {
	display: flex; align-items: center; gap: 0.8em; margin-top: 1.2em;
	padding: 0.95em 1.15em; border: 2px solid var(--em-accent); border-radius: 12px;
	background: rgba(47,109,246,0.12); color: var(--em-text);
	font-size: 1.05em; font-weight: 600; cursor: pointer;
}
.em-terms input { width: 24px; height: 24px; flex: 0 0 auto; accent-color: var(--em-accent); cursor: pointer; margin: 0; }
/* quando NON spuntata, pulsa leggermente per farsi notare */
.em-terms:has(input:not(:checked)) { animation: em-terms-pulse 1.8s ease-in-out infinite; }
@keyframes em-terms-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(47,109,246,0.0); } 50% { box-shadow: 0 0 0 4px rgba(47,109,246,0.18); } }

.em-actions { display: flex; justify-content: space-between; gap: 0.75em; margin-top: 1.4em; }
.em-btn {
	padding: 0.7em 1.4em; border-radius: 10px; border: 0; cursor: pointer;
	font-weight: 700; font-size: 0.92em; transition: background .15s, opacity .15s;
}
.em-btn-primary { background: var(--em-accent); color: #fff; }
.em-btn-primary:hover { background: var(--em-accent-hover); }
.em-btn-primary:disabled { background: #394150; color: #8b93a3; cursor: not-allowed; }
.em-btn-secondary { background: var(--em-chip); color: var(--em-text); border: 1px solid var(--em-border); }
.em-btn-secondary:hover { background: var(--em-chip-hover); }
.em-btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Step 5 (thank-you) + modal ===== */
.em-step5 { text-align: center; padding: 2em 1.4em; }
.em-step5-logo {
	height: 50px; width: auto; display: block; margin: 0 auto 0.6em;
	opacity: 0; animation: em-fadein .5s ease .05s forwards;
}
/* lucchetto che si chiude */
.em-lock { width: 92px; height: 92px; margin: 0.2em auto 1em; }
.em-lock svg { width: 100%; height: 100%; display: block; overflow: visible; }
.em-lock svg { animation: em-lockglow 2.4s ease-in-out 1.6s infinite; }
.em-lock-body {
	fill: #ffcf06;
	transform-origin: 32px 43px;
	animation: em-pop .9s cubic-bezier(.2,.8,.2,1.5) both;
}
.em-lock-shackle {
	fill: none; stroke: #ffcf06; stroke-width: 6; stroke-linecap: round;
	animation: em-shackle 1.1s cubic-bezier(.2,.7,.2,1.3) .35s both;
}
.em-lock-keyhole { fill: #1B1B1A; opacity: 0; animation: em-fadein .5s ease 1.05s forwards; }
@keyframes em-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes em-shackle { 0% { transform: translateY(-13px); opacity: 0; } 60% { transform: translateY(3px); opacity: 1; } 100% { transform: translateY(0); } }
@keyframes em-lockglow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255,207,6,0)); } 50% { filter: drop-shadow(0 0 12px rgba(255,207,6,0.6)); } }
@keyframes em-fadein { to { opacity: 1; } }
.em-step5 h2 { margin-bottom: 0.6em; }
/* §Fix 2026-07-02 — badge conferma: giallo Sottoscacco con AURA pulsante
   permanente (glow luminoso all'esterno) per non passare inosservato. */
.em-wa {
	display: inline-flex; align-items: center; gap: 0.6em;
	margin: 0 auto 0.9em; padding: 0.6em 1.1em 0.6em 0.6em;
	background: #fbbf24; color: #1a1206; border-radius: 999px;
	font-weight: 800; font-size: 1.02em;
	max-width: 100%;
	animation: em-aura-glow 2.4s ease-in-out infinite;
}
@keyframes em-aura-glow {
	0%, 100% {
		box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.55),
		            0 6px 18px rgba(251, 191, 36, 0.30);
	}
	50% {
		box-shadow: 0 0 0 14px rgba(251, 191, 36, 0),
		            0 8px 26px rgba(251, 191, 36, 0.55);
	}
}
.em-wa-ico { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: #25D366; border-radius: 50%; flex: 0 0 auto; }
.em-wa-ico svg { width: 20px; height: 20px; display: block; }
.em-wa-txt { line-height: 1.25; }
.em-wa-txt strong { color: #1a1206; }
/* §Fix 2026-07-02 — Step 5 su mobile: contenuto piu' compatto per
   entrare tutto nello schermo senza scroll iniziale. */
@media (max-width: 640px) {
	.em-step5 { padding: 1.2em 0.9em; }
	.em-step5 h2 { font-size: 1.25em; margin: 0.3em 0 0.4em; }
	.em-step5-logo { max-width: 130px; margin-bottom: 0.4em; }
	.em-wa { padding: 0.5em 0.9em 0.5em 0.5em; font-size: 0.92em; }
	.em-wa-ico { width: 26px; height: 26px; }
	.em-wa-ico svg { width: 17px; height: 17px; }
	.em-step5-lead { font-size: 0.98em; margin-bottom: 0.7em; }
	.em-step5-recap { padding: 0.75em 0.95em; font-size: 0.95em; margin-bottom: 0.9em; }
	.em-step5-thanks { margin-bottom: 0.9em; }
	.em-xc-title { font-size: 0.98em; }
	.em-xc-slogan { font-size: 0.92em; }
}
.em-step5-lead { font-size: 1.12em; color: var(--em-text); line-height: 1.55; max-width: 460px; margin: 0 auto 1.1em; }
.em-step5-recap {
	display: inline-grid; gap: 0.35em; text-align: left;
	background: var(--em-panel-2); border: 1px solid var(--em-border);
	border-radius: 12px; padding: 0.9em 1.2em; margin: 0 auto 1.2em; font-size: 1.02em;
}
.em-step5-recap strong { color: var(--em-muted); font-weight: 600; margin-right: 0.35em; }
.em-step5-thanks { color: var(--em-muted); line-height: 1.5; margin-bottom: 1.3em; }
.em-step5-thanks strong { color: var(--em-accent); }

/* §Fix 2026-07-02 — countdown "tic tac" esperienza. Aggiunta un'aura
   che pulsa ritmicamente ogni secondo per creare la sensazione di
   ansia da orologio (tic/tac). L'ultimo digit dei secondi si anima
   con em-tic-tac. */
.em-xc-title {
	font-size: 1.05em; color: var(--em-text); font-weight: 700;
	margin: 0.4em 0 0.8em;
	animation: em-title-flicker 3.2s infinite;
}
@keyframes em-title-flicker {
	0%, 92%, 100% { text-shadow: 0 0 0 transparent; }
	95% { text-shadow: 0 0 12px rgba(220, 38, 38, 0.7); color: #fca5a5; }
	97% { text-shadow: 0 0 0 transparent; }
}
.em-xcount { display: flex; justify-content: center; gap: 0.6em; margin: 0 auto 0.9em; flex-wrap: wrap; }
.em-xc-cell {
	display: flex; flex-direction: column; align-items: center; gap: 2px;
	min-width: 72px; padding: 0.7em 0.4em;
	background: var(--em-panel-2); border: 1px solid var(--em-border); border-radius: 12px;
	position: relative;
	animation: em-tic-tac 1s ease-in-out infinite;
	transform-origin: bottom center;
}
/* Sfalsiamo le celle per un effetto orologio "meccanico" */
.em-xc-cell:nth-child(1) { animation-delay: 0s;    }
.em-xc-cell:nth-child(2) { animation-delay: 0.25s; }
.em-xc-cell:nth-child(3) { animation-delay: 0.5s;  }
.em-xc-cell:nth-child(4) { animation-delay: 0.75s; }
@keyframes em-tic-tac {
	0%, 100% { transform: rotate(0deg); }
	25%      { transform: rotate(0.6deg); }
	75%      { transform: rotate(-0.6deg); }
}
.em-xc-cell::before {
	content: '';
	position: absolute; inset: -2px;
	border-radius: 14px;
	box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
	animation: em-tic-glow 1s ease-out infinite;
	pointer-events: none;
}
.em-xc-cell:nth-child(1)::before { animation-delay: 0s;    }
.em-xc-cell:nth-child(2)::before { animation-delay: 0.25s; }
.em-xc-cell:nth-child(3)::before { animation-delay: 0.5s;  }
.em-xc-cell:nth-child(4)::before { animation-delay: 0.75s; }
@keyframes em-tic-glow {
	0%   { box-shadow: 0 0 0 0    rgba(255, 207, 6, 0.55); }
	100% { box-shadow: 0 0 0 10px rgba(255, 207, 6, 0);    }
}
.em-xc-cell { border-color: rgba(255,207,6,0.35); }
.em-xc-num {
	font-size: 1.9em; font-weight: 900; color: #ffcf06; line-height: 1;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 0 6px rgba(255, 207, 6, 0.35);
}
/* L'ultima cella (secondi) piu' "nervosa" */
.em-xc-cell:last-child .em-xc-num {
	animation: em-sec-flash 1s steps(2) infinite;
}
@keyframes em-sec-flash {
	0%, 50% { opacity: 1; }
	51%, 100% { opacity: 0.65; }
}
.em-xc-lbl { font-size: 0.72em; text-transform: uppercase; letter-spacing: 0.08em; color: var(--em-muted); }
.em-xc-slogan { font-size: 1.05em; color: var(--em-text); margin: 0.2em auto 1.3em; max-width: 460px; line-height: 1.5; }
.em-xc-slogan strong { color: #ffcf06; }
.em-success-badge { /* legacy, non più usato */
	width: 64px; height: 64px; border-radius: 50%;
	background: var(--em-ok); color: #07150f;
	display: flex; align-items: center; justify-content: center;
	font-size: 2em; margin: 0 auto 1em;
}
.em-modal-backdrop {
	position: fixed; inset: 0; background: rgba(0,0,0,0.6);
	display: flex; align-items: center; justify-content: center; z-index: 9999;
}
.em-modal {
	background: var(--em-panel); border: 1px solid var(--em-border);
	border-radius: 16px; padding: 1.8em; max-width: 420px; text-align: center; color: var(--em-text);
}

/* ===== Step Partecipanti (fasce) ===== */
.em-muted-p { color: var(--em-muted); margin-bottom: 1em; }
.em-num-label { display: flex; flex-direction: column; }
.em-num-label .em-hint { color: var(--em-faint); font-size: 0.78em; margin-top: 1px; }
.em-info-box {
	margin-top: 1em; padding: 1em 1.2em;
	background: var(--em-panel-2); border: 1px solid var(--em-border);
	border-radius: 12px; font-size: 1.05em; color: var(--em-text); line-height: 1.55;
}
.em-info-box strong { color: #fff; }
.em-info-box.em-info-ok {
	background: rgba(52,211,153,0.10); border-color: rgba(52,211,153,0.4); color: #b9f3da;
}
.em-info-box.em-info-ok strong { color: #eafff7; }

/* ===== Step Evento ===== */
.em-event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6em; margin-bottom: 0.4em; }
.em-event-opt {
	display: flex; align-items: center; gap: 0.6em;
	padding: 0.85em 1em; border-radius: 12px;
	border: 1px solid var(--em-border); background: var(--em-chip); color: var(--em-text);
	cursor: pointer; font-size: 0.95em; font-weight: 600; text-align: left;
	transition: border-color .15s, background .15s;
}
.em-event-opt:hover { background: var(--em-chip-hover); }
.em-event-opt.is-active { border-color: var(--em-accent); background: rgba(47,109,246,0.12); }
.em-event-ico { font-size: 1.3em; line-height: 1; }
/* icona emoji via attributo (NON nodo-testo Preact) per evitare la duplicazione a ogni re-render */
.em-event-ico::before { content: attr(data-ico); }
.em-field { display: flex; flex-direction: column; gap: 0.3em; margin-top: 1em; color: var(--em-muted); font-size: 0.9em; }

/* §Fix 2026-07-02 — Textarea "note al gioco" piu' evidente e generosa.
   Prima: rows=4 con placeholder e hint stessa dimensione, sembrava un
   testo qualunque. Ora: label chiaro, textarea alta 6 righe con
   evidente bordo giallo tenue quando in focus, placeholder attenuato,
   hint sotto in font più piccolo/grigio (non si confonde col testo). */
.em-field-notes {
	margin-top: 1.4em;
	padding: 0.8em 1em 1em;
	background: var(--em-panel-2);
	border: 1px solid var(--em-border);
	border-radius: 14px;
	gap: 0.45em;
}
.em-field-notes .em-field-label {
	font-size: 1em;
	font-weight: 700;
	color: var(--em-text);
}
.em-field-notes .em-optional {
	font-weight: 400;
	color: var(--em-muted);
	font-size: 0.85em;
}
.em-notes-textarea {
	width: 100%;
	min-height: 8em;
	padding: 0.7em 0.85em;
	background: var(--em-bg);
	color: var(--em-text);
	border: 1.5px solid var(--em-border);
	border-radius: 10px;
	font: inherit;
	font-size: 0.95em;
	line-height: 1.4;
	resize: vertical;
	transition: border-color .15s;
}
.em-notes-textarea:focus {
	outline: none;
	border-color: #fbbf24;
	box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.12);
}
.em-notes-textarea::placeholder {
	color: var(--em-faint);
	opacity: 0.6;
	font-style: italic;
}
.em-field-notes .em-field-hint {
	font-size: 0.78em;
	color: var(--em-faint);
	opacity: 0.75;
	line-height: 1.35;
}
.em-addon {
	display: flex; align-items: flex-start; gap: 0.7em; margin-top: 0.7em;
	padding: 0.8em 1em; border: 1px solid var(--em-border); border-radius: 12px;
	background: var(--em-panel-2); cursor: pointer; color: var(--em-text); font-size: 0.95em;
}
.em-addon input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 0.1em; accent-color: var(--em-accent); cursor: pointer; }
.em-addon-body { display: flex; flex-direction: column; gap: 0.15em; }
.em-addon-head { font-weight: 700; }
.em-addon-head strong { color: var(--em-accent); }
.em-addon-head strong.em-addon-free { color: var(--em-ok); }
.em-addon-desc { font-size: 0.88em; color: var(--em-muted); line-height: 1.4; }
.em-addon-link {
	margin-top: 0.35em;
	color: var(--em-accent);
	font-size: 0.85em;
	text-decoration: underline;
	align-self: flex-start;
}
.em-addon-link:hover { color: var(--em-accent-hover); }
.em-extras-sub { margin: -0.3em 0 0.4em !important; font-size: 0.9em; color: var(--em-muted); }
.em-extra-row::before { content: attr(data-ico); margin-right: 0.4em; }

/* sezione "extra esperienza" — area a sé con titolo */
.em-extras {
	margin-top: 1.4em;
	padding: 1.1em 1.2em;
	background: var(--em-panel-2);
	border: 1px solid var(--em-border);
	border-radius: 14px;
}
.em-extras-title {
	margin: 0 0 0.7em !important;
	font-size: 1.05em; font-weight: 800; color: var(--em-text);
}
.em-extras .em-addon { margin-top: 0; background: var(--em-chip); }

/* ===== Box prezzo nel riepilogo ===== */
.em-price-box {
	margin: 1.2em 0; padding: 1em 1.1em;
	background: var(--em-panel-2); border: 1px solid var(--em-border); border-radius: 14px;
}
.em-price-row { display: flex; justify-content: space-between; padding: 0.35em 0; color: var(--em-text); font-size: 0.95em; }
.em-price-row.em-discount span:last-child { color: var(--em-ok); }
.em-price-row.em-price-total {
	margin-top: 0.5em; padding-top: 0.7em; border-top: 1px solid var(--em-border);
	font-size: 1.25em; font-weight: 800;
}
.em-price-row.em-price-total span:last-child { color: var(--em-accent); }

/* §Fix 2026-07-01 — giorni passati disabilitati (calendario cliente) */
.emc-day.is-past, .emc-day[disabled] {
	opacity: 0.28;
	cursor: not-allowed;
	pointer-events: none;
}
.emc-arrow[disabled] {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

/* §Fix 2026-07-01 — box "documento richiesto" per minori */
.em-info-box.em-info-warn {
	background: rgba(251, 191, 36, 0.08);
	border-left: 3px solid #fbbf24;
	color: #fde68a;
}

/* §Fix 2026-07-01 — WatchingAlert (fittizio, urgenza gentile) */
.em-watching-alert {
	display: inline-flex; align-items: center; gap: 0.5em;
	margin: 0 0 1em;
	padding: 0.55em 0.9em;
	border-radius: 999px;
	background: rgba(251, 191, 36, 0.12);
	border: 1px solid rgba(251, 191, 36, 0.35);
	color: #fde68a;
	font-size: 0.86em;
	animation: em-watching-in 240ms ease-out;
}
.em-watching-ico { font-size: 1.05em; }
.em-watching-text { line-height: 1.3; }
@keyframes em-watching-in {
	from { opacity: 0; transform: translateY(-4px); }
	to { opacity: 1; transform: translateY(0); }
}
