/* Waves – Sala prove: calendario e configuratore 3D */
.wv-booking, .wv-config { padding: 130px 6vw; background: var(--wv-ink); }
.wv-booking { background: linear-gradient(180deg, #0e0d0b, #17150f); }
.wv-config { background: #17150f; padding-top: 40px; }
.wv-booking button, .wv-config button { font-family: var(--wv-sans); cursor: pointer; color: inherit; }
.wv-booking button:focus-visible, .wv-config button:focus-visible { outline: 2px solid var(--wv-gold-2); outline-offset: 2px; }
.wv-booking__head, .wv-config__head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-bottom: 44px; }
.wv-booking__head h2, .wv-config__head h2 { font-family: var(--wv-display); font-weight: 400; font-size: clamp(54px, 7.4vw, 120px); line-height: .92; margin: 0; }
.wv-booking__head p, .wv-config__head p { font-size: 17px; line-height: 1.6; color: #d4cebf; margin: 0; }

/* Stato live */
.wv-live { display: flex; align-items: center; gap: 20px; padding: 20px 26px; margin-bottom: 18px; border: 1px solid rgba(243,239,228,.14); border-radius: 16px; background: rgba(243,239,228,.04); position: relative; overflow: hidden; }
.wv-live__dot { flex: none; width: 13px; height: 13px; border-radius: 50%; background: #6fbf73; position: relative; }
.wv-live__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: wvPulse 1.8s ease-out infinite; }
@keyframes wvPulse { to { transform: scale(3.2); opacity: 0; } }
.wv-live[data-mode="busy"] .wv-live__dot { background: #e5533d; }
.wv-live[data-mode="closed"] .wv-live__dot { background: var(--wv-taupe); }
.wv-live[data-mode="closed"] .wv-live__dot::after { animation: none; opacity: 0; }
.wv-live__txt { flex: 1; min-width: 0; }
.wv-live__title { display: block; font-family: var(--wv-display); font-size: 34px; line-height: 1; letter-spacing: .02em; }
.wv-live__sub { display: block; margin-top: 4px; font-size: 14px; color: #c9c3b3; }
.wv-live__clock { flex: none; font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--wv-gold-2); text-align: right; }
.wv-live__clock-wrap small { display: block; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--wv-muted); text-align: right; }
.wv-live__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; }
.wv-live__bar i { display: block; height: 100%; width: 0; background: #e5533d; transition: width 1s linear; }

/* Griglia calendario + fasce */
.wv-booking__grid { display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: 18px; }
.wv-cal, .wv-slots { padding: 26px; border: 1px solid rgba(243,239,228,.14); border-radius: 16px; background: rgba(243,239,228,.03); }
.wv-cal__top, .wv-slots__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; margin-bottom: 18px; }
.wv-cal__month, .wv-slots__day { font-family: var(--wv-display); font-size: 30px; line-height: 1; }
.wv-cal__nav { display: flex; gap: 8px; }
.wv-cal__nav button { width: 42px; height: 42px; padding: 0; border: 1px solid rgba(243,239,228,.25); border-radius: 50%; background: none; font-size: 16px; transition: background .2s, color .2s; }
.wv-cal__nav button:hover:not(:disabled) { background: var(--wv-text); color: var(--wv-ink); }
.wv-cal__nav button:disabled { opacity: .25; cursor: default; }
.wv-cal__dow, .wv-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wv-cal__dow { margin-bottom: 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--wv-muted); text-align: center; }
.wv-cal__day { position: relative; aspect-ratio: 1; min-height: 40px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: none; font-size: 15px; font-weight: 500; transition: background .2s; }
.wv-cal__day i { position: absolute; left: 50%; bottom: 14%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #6fbf73; }
.wv-cal__day i.is-low { background: #e39a3b; }
.wv-cal__day:hover:not(:disabled) { background: rgba(243,239,228,.1); }
.wv-cal__day:disabled { color: rgba(243,239,228,.24); cursor: default; }
.wv-cal__day.is-today { border-color: rgba(202,177,85,.7); }
.wv-cal__day.is-sel { background: var(--wv-gold) !important; color: var(--wv-ink); font-weight: 700; }
.wv-cal__day.is-sel i { background: var(--wv-ink); }
.wv-cal__legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; font-size: 12px; color: var(--wv-muted); }
.wv-cal__legend span::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #6fbf73; }
.wv-cal__legend span:last-child::before { background: #e39a3b; }
.wv-slots__dur { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--wv-muted); }
.wv-slots__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wv-slot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 66px; padding: 12px 16px; border: 1px solid rgba(243,239,228,.2); border-radius: 12px; background: none; text-align: left; transition: background .2s, border-color .2s, transform .2s; }
.wv-slot b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wv-slot small { font-size: 12px; text-align: right; color: #8fd093; }
.wv-slot--free:hover { border-color: var(--wv-gold); background: rgba(202,177,85,.1); transform: translateY(-2px); }
.wv-slot:disabled { cursor: default; }
.wv-slot--busy { background: repeating-linear-gradient(135deg, rgba(243,239,228,.035) 0 7px, transparent 7px 14px); border-color: rgba(243,239,228,.1); }
.wv-slot--busy b, .wv-slot--past b { color: rgba(243,239,228,.48); }
.wv-slot--busy small { color: #b9b2a2; }
.wv-slot--past { border-color: rgba(243,239,228,.08); }
.wv-slot--past small { color: rgba(243,239,228,.48); }
.wv-slot--live { border-color: #e5533d; background: rgba(229,83,61,.12); }
.wv-slot--live small { color: #ff9c8b; font-weight: 700; }
.wv-slot--mine { border-color: var(--wv-gold); }
.wv-slot--mine small { color: var(--wv-gold-2); font-weight: 700; }
.wv-slot.is-sel { background: var(--wv-gold); border-color: var(--wv-gold); color: var(--wv-ink); }
.wv-slot.is-sel small { color: var(--wv-ink); font-weight: 700; }
.wv-booking__cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(243,239,228,.12); }
.wv-booking__pick { font-size: 14px; color: var(--wv-muted); }
.wv-booking__cta.is-ready .wv-booking__pick { color: var(--wv-text); font-weight: 600; }

/* Configuratore */
.wv-config__layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; align-items: start; }
.wv-config__stage { position: sticky; top: 84px; height: min(76vh, 720px); min-height: 460px; border: 1px solid rgba(243,239,228,.14); border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse 70% 70% at 50% 45%, #2b241a, #0e0d0b); }
.wv-config__canvas { position: absolute; inset: 0; }
.wv-config__canvas canvas { display: block; width: 100% !important; height: 100% !important; cursor: grab; touch-action: pan-y; }
.wv-config__canvas canvas:active { cursor: grabbing; }
.wv-config__canvas.is-fallback::after { content: 'La vista 3D non è disponibile su questo dispositivo.'; position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--wv-muted); }
.wv-config__hud { position: absolute; left: 16px; right: 16px; top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; font-size: 12px; }
.wv-config__count { padding: 7px 12px; border-radius: 999px; background: rgba(14,13,11,.72); font-weight: 600; }
.wv-config__hint { color: rgba(243,239,228,.75); }
.wv-config__clear { pointer-events: auto; position: absolute; right: 14px; bottom: 14px; padding: 8px 14px; border: 1px solid rgba(243,239,228,.3); border-radius: 999px; background: rgba(14,13,11,.72); font-size: 12px; }
.wv-config__clear:hover { background: var(--wv-text); color: var(--wv-ink); }
.wv-config__panel { padding: 22px; border: 1px solid rgba(243,239,228,.14); border-radius: 16px; background: rgba(243,239,228,.03); }
.wv-config__panel h3 { font-family: var(--wv-display); font-weight: 400; font-size: 30px; margin: 0 0 2px; }
.wv-config__panel > p { margin: 0 0 12px; font-size: 13px; color: var(--wv-muted); }
.wv-cat__item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid rgba(243,239,228,.1); }
.wv-cat__item b { display: block; font-size: 14.5px; font-weight: 600; }
.wv-cat__item small { display: block; margin-top: 2px; font-size: 12px; color: var(--wv-muted); }
.wv-cat__price { font-size: 14px; font-weight: 600; color: var(--wv-gold-2); }
.wv-cat__step { display: flex; align-items: center; gap: 2px; }
.wv-cat__step output { width: 20px; font-size: 14px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.wv-cat__step button { width: 34px; height: 34px; padding: 0; border: 1px solid rgba(243,239,228,.28); border-radius: 50%; background: none; font-size: 17px; line-height: 1; transition: background .2s, color .2s; }
.wv-cat__step .inc { background: var(--wv-gold); border-color: var(--wv-gold); color: var(--wv-ink); }
.wv-cat__step button:hover:not(:disabled) { background: var(--wv-text); border-color: var(--wv-text); color: var(--wv-ink); }
.wv-cat__step button:disabled { opacity: .25; cursor: default; }
.wv-cat__item.is-on b { color: var(--wv-gold-2); }
.wv-sum { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(243,239,228,.3); font-size: 14px; }
.wv-sum__row { display: flex; justify-content: space-between; gap: 14px; padding: 3px 0; color: #d4cebf; }
.wv-sum__slot { font-size: 13px; color: var(--wv-gold-2); padding-bottom: 6px; display: block; }
.wv-sum__row--total { align-items: baseline; margin-top: 6px; color: var(--wv-text); font-weight: 600; }
.wv-sum__total { font-family: var(--wv-display); font-size: 40px; font-weight: 400; line-height: 1; color: var(--wv-gold-2); }
.wv-sum__go { width: 100%; margin-top: 10px; border: 0; }
.wv-sum__msg { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: var(--wv-gold-2); }
.wv-sum__msg:empty { display: none; }

@media (max-width: 1100px) {
	.wv-booking__grid { grid-template-columns: 1fr; }
	.wv-config__layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 980px) {
	.wv-booking, .wv-config { padding: 80px 16px; }
	.wv-config { padding-top: 24px; padding-bottom: 60px; }
	.wv-booking__head, .wv-config__head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 28px; }
	.wv-booking__head h2, .wv-config__head h2 { font-size: 15vw; }
	.wv-booking__head p, .wv-config__head p { font-size: 15px; }
	.wv-live { gap: 14px; padding: 16px; }
	.wv-live__title { font-size: 27px; }
	.wv-live__sub { font-size: 13px; }
	.wv-live__clock { font-size: 15px; }
	.wv-cal, .wv-slots { padding: 16px; }
	.wv-slot { min-height: 62px; }
	.wv-booking__cta .wv-btn { width: 100%; }
	.wv-config__layout { grid-template-columns: minmax(0, 1fr); }
	/* la sala resta visibile mentre si scelgono gli strumenti */
	.wv-config__stage { top: 68px; z-index: 3; height: 40svh; min-height: 250px; }
	.wv-config__hint { display: none; }
	.wv-config__panel { padding: 16px; }
}
@media (max-width: 520px) {
	.wv-slots__grid { grid-template-columns: 1fr; }
	.wv-slots__dur { display: none; }
	.wv-cal__month, .wv-slots__day { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
	.wv-live__dot::after { animation: none; }
}
