/**
 * Path pages (redesign step 3): museo-ticket-path-page.html.twig and
 * TicketPathForm. Sizes from the design handoff (section b).
 */

.museo-path {
  background: var(--bg-page);
  color: var(--fg-default);
  font-family: var(--museo-font-sans);
}

.museo-path__shell {
  width: min(100%, 1520px);
  margin: 0 auto;
  padding: var(--museo-space-5) var(--museo-space-8) var(--museo-space-11);
}

.museo-path__breadcrumb {
  margin-bottom: var(--museo-space-7);
}

/* ── Intro ── */
.museo-path__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--museo-space-10);
  align-items: end;
  padding-bottom: var(--museo-space-8);
  border-bottom: 1px solid var(--border-rule);
}

.museo-path__copy .museo-eyebrow {
  margin: 0 0 var(--museo-space-3);
}

.museo-path__title {
  margin: 0;
  font-family: var(--museo-font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.museo-path__plus {
  margin: 0 0.2em;
  color: var(--accent-display);
}

.museo-path__description {
  max-width: 34rem;
  margin: var(--museo-space-5) 0 0;
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.55;
}

.museo-path__media {
  height: 240px;
}

.museo-path__media img,
.museo-path__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.museo-path__placeholder {
  background: repeating-linear-gradient(135deg, var(--museo-ochre-soft) 0 14px, color-mix(in srgb, var(--museo-ochre-soft) 70%, white) 14px 28px);
}

.museo-path--sage .museo-path__placeholder {
  background: repeating-linear-gradient(135deg, var(--museo-sage-soft) 0 14px, color-mix(in srgb, var(--museo-sage-soft) 60%, white) 14px 28px);
}

/* Segmented control: Individuali | Gruppo (also Privato | Azienda later). */
.museo-segmented {
  display: inline-flex;
  margin-top: var(--museo-space-6);
  border: 1px solid var(--border-strong);
  border-radius: var(--museo-radius-sm);
  overflow: hidden;
}

.museo-segmented__option {
  padding: 14px 28px;
  color: var(--fg-default);
  font-size: 16px;
  text-decoration: none;
}

.museo-segmented__option + .museo-segmented__option {
  border-left: 1px solid var(--border-strong);
}

.museo-segmented__option.is-active {
  background: var(--museo-ink);
  color: var(--museo-cream);
}

@media (hover: hover) {
  .museo-segmented__option:not(.is-active):hover {
    background: var(--museo-paper);
    color: var(--fg-default);
  }
}

/* ── Layout: steps left, summary right ── */
.museo-path-form__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: var(--museo-space-10);
  align-items: start;
  margin-top: var(--museo-space-8);
}

.museo-path-step + .museo-path-step {
  margin-top: var(--museo-space-10);
}

.museo-path-step__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--museo-space-3) var(--museo-space-6);
  margin-bottom: var(--museo-space-5);
  padding-top: var(--museo-space-5);
  border-top: 1px solid var(--border-strong);
}

.museo-path-step__title {
  display: flex;
  align-items: baseline;
  gap: var(--museo-space-4);
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.museo-path-step__index {
  color: var(--fg-label);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.museo-path-step__aside {
  margin: 0;
  color: var(--accent-text);
  font-size: 17px;
}

.museo-path-step__aside--muted {
  color: var(--fg-muted);
  font-size: 15px;
}

/* ── Calendar ── */
.museo-calendar {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: var(--bg-panel);
  border: 1px solid var(--border-rule);
}

.museo-calendar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.museo-calendar__month {
  margin: 0;
  font-size: 24px;
}

.museo-calendar__nav {
  display: flex;
  gap: 8px;
}

.museo-calendar__arrow {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-control);
  border-radius: var(--museo-radius-sm);
  background: transparent;
  color: var(--fg-default);
  font-size: 22px;
  line-height: 1;
}

.museo-calendar__arrow:disabled {
  border-color: var(--border-rule);
  color: var(--museo-border-default);
}

.museo-calendar__weekdays,
.museo-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}

.museo-calendar__weekdays {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-rule);
  color: var(--fg-label);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.museo-calendar__day {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--museo-radius-sm);
  background: none;
  color: var(--fg-default);
  font-family: inherit;
  font-size: 15px;
}

button.museo-calendar__day:not(.is-closed) {
  cursor: pointer;
}

@media (hover: hover) {
  button.museo-calendar__day:not(.is-closed):not(.is-selected):hover {
    border-color: var(--museo-ink);
  }
}

.museo-calendar__day.is-today {
  box-shadow: inset 0 0 0 1px var(--action-bg);
}

.museo-calendar__day.is-selected {
  background: var(--museo-ink);
  color: var(--museo-cream);
}

.museo-calendar__day.is-closed {
  color: var(--museo-stone);
  text-decoration: line-through;
  cursor: default;
}

.museo-calendar__day.is-outside {
  color: var(--museo-border-default);
}

.museo-calendar__legend {
  display: flex;
  gap: var(--museo-space-5);
  margin: 0;
  color: var(--fg-muted);
  font-size: 13.5px;
}

.museo-calendar__legend-selected::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  background: var(--museo-ink);
}

.museo-calendar__legend-closed::before {
  content: "12";
  margin-right: 6px;
  color: var(--museo-stone);
  text-decoration: line-through;
}

.museo-path-form__date .form-control {
  max-width: 240px;
}

/* ── Time slots ── */
.museo-path-form__slots {
  margin-top: var(--museo-space-5);
}

.museo-path-form__slots[hidden] {
  display: none;
}

.museo-path-form__slots .fieldset-wrapper {
  padding: 0;
}

.museo-path-form__slots legend,
.museo-path-form__slots > label {
  margin-bottom: var(--museo-space-3);
  color: var(--fg-label);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.museo-slots .form-radios,
.museo-group-tiles .form-radios {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

/* Radios as buttons/tiles: the real input stays for keyboard and forms. */
.museo-slots .form-check,
.museo-group-tiles .form-check,
.museo-slots .js-form-item,
.museo-group-tiles .js-form-item {
  position: relative;
  margin: 0;
  padding: 0;
}

.museo-slots input[type="radio"],
.museo-group-tiles input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.museo-slots label,
.museo-group-tiles label {
  display: flex;
  width: 100%;
  margin: 0;
  border: 1px solid var(--border-control);
  border-radius: var(--museo-radius-sm);
  background: var(--bg-raised);
  color: var(--fg-default);
  cursor: pointer;
}

.museo-slots label {
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 8px;
  font-size: 17px;
}

.museo-group-tiles label {
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 16px;
}

.museo-group-tile__size {
  font-size: 32px;
  line-height: 1;
}

.museo-group-tile__price {
  margin-top: 6px;
  color: var(--fg-muted);
  font-size: 13.5px;
}

@media (hover: hover) {
  .museo-slots label:hover,
  .museo-group-tiles label:hover {
    border-color: var(--museo-ink);
  }
}

.museo-slots input:checked + label,
.museo-group-tiles input:checked + label {
  border-color: var(--museo-ink);
  background: var(--museo-ink);
  color: var(--museo-cream);
}

.museo-group-tiles input:checked + label .museo-group-tile__price {
  color: var(--museo-cream);
}

.museo-slots input:focus-visible + label,
.museo-group-tiles input:focus-visible + label {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.museo-path-form__contact {
  margin: var(--museo-space-4) 0 0;
  color: var(--fg-muted);
  font-size: 15px;
}

.museo-path-form__contact a {
  color: var(--action-bg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Ticket rows with stepper ── */
.museo-ticket-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 168px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-rule);
}

.museo-ticket-row__name {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.museo-ticket-row__price {
  font-size: 28px;
  text-align: right;
}

.museo-ticket-row__stepper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.museo-ticket-row__stepper .form-item,
.museo-ticket-row__stepper .js-form-item,
.museo-ticket-row__stepper .quantity-input-wrapper {
  display: contents;
}

/* Belgrade adds its own −/+ (theme setting "quantity_input_plus_minus") and a
   floating label: here the stepper is ours, the label is for screen readers. */
.museo-ticket-row .quantity-btn {
  display: none !important;
}

.museo-ticket-row__stepper label {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.museo-stepper__button {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-control);
  border-radius: var(--museo-radius-sm);
  background: var(--bg-raised);
  color: var(--fg-default);
  font-size: 22px;
  line-height: 1;
}

@media (hover: hover) {
  .museo-stepper__button:not(:disabled):hover {
    border-color: var(--museo-ink);
  }
}

.museo-stepper__button:disabled {
  border-color: var(--border-rule);
  color: var(--museo-border-default);
}

.museo-ticket-row .museo-stepper__value {
  width: 56px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 24px;
  text-align: center;
  -moz-appearance: textfield;
}

.museo-ticket-row .museo-stepper__value::-webkit-inner-spin-button,
.museo-ticket-row .museo-stepper__value::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.museo-ticket-row .museo-stepper__value.is-zero {
  color: var(--fg-label);
}

/* ── Summary ── */
.museo-order-summary {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 20px;
  padding: 32px;
  background: var(--bg-panel);
  border: 1px solid var(--border-rule);
}

.museo-order-summary p {
  margin: 0;
}

.museo-order-summary__path {
  font-size: 24px;
  line-height: 1.1;
}

.museo-order-summary__date {
  margin-top: -14px !important;
  color: var(--fg-muted);
  font-size: 15px;
}

.museo-order-summary__date.is-missing {
  color: var(--error);
}

.museo-order-summary__lines {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-rule);
  list-style: none;
  font-size: 15px;
}

.museo-order-summary__lines:empty {
  display: none;
}

.museo-order-summary__lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.museo-order-summary__lines small {
  display: block;
  color: var(--fg-muted);
  font-size: 13.5px;
}

.museo-order-summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-strong);
  font-size: 15px;
}

.museo-order-summary__total strong {
  font-size: 36px;
  font-weight: 400;
}

.museo-order-summary .form-actions {
  display: grid;
  gap: 12px;
  margin: 0;
}

.museo-order-summary .form-actions .museo-btn {
  width: 100%;
}

.museo-order-summary .form-actions .museo-btn--secondary {
  min-height: 48px;
}

.museo-path-form .museo-btn:disabled {
  background: var(--border-rule);
  border-color: var(--border-rule);
  color: var(--fg-muted);
  opacity: 1;
  cursor: not-allowed;
}

.museo-path-form .museo-btn--secondary:disabled {
  background: transparent;
  color: var(--museo-stone);
}

.museo-order-summary__reason {
  color: var(--fg-muted);
  font-size: 13.5px;
}

.museo-order-summary__reason:empty {
  display: none;
}

.museo-order-summary__note {
  color: var(--fg-muted);
  font-size: 13.5px;
}

.museo-mobile-bar {
  display: none;
}

/* ── Tablet / mobile ── */
@media (max-width: 1199.98px) {
  .museo-path-form__layout {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: var(--museo-space-8);
  }

  .museo-ticket-row__name {
    font-size: 36px;
  }
}

@media (max-width: 991.98px) {
  .museo-path__shell {
    padding: var(--museo-space-4) var(--museo-space-5) 180px;
  }

  .museo-path__intro {
    grid-template-columns: 1fr;
    gap: var(--museo-space-6);
  }

  .museo-path__media {
    height: 180px;
  }

  .museo-path-form__layout {
    grid-template-columns: 1fr;
  }

  /* The summary is replaced by the fixed bar at the bottom. */
  .museo-order-summary {
    display: none;
  }

  .museo-mobile-bar:not([hidden]) {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1020;
    display: grid;
    gap: 10px;
    padding: 14px 20px max(22px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    background: var(--bg-raised);
    border-top: 1px solid var(--museo-ink);
  }

  /* Room for the fixed bar at the end of the page (height set by
     js/ticket-path.js): the footer stays reachable. */
  body {
    padding-bottom: var(--museo-mobile-bar-height, 0px);
  }

  .museo-mobile-bar__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
  }

  .museo-mobile-bar__row strong {
    font-size: 26px;
    font-weight: 400;
  }

  .museo-mobile-bar .museo-btn {
    width: 100%;
  }

  .museo-slots .form-radios {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .museo-slots label {
    min-height: 48px;
  }

  .museo-group-tiles .form-radios {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .museo-group-tile__size {
    font-size: 24px;
  }
}

@media (max-width: 767.98px) {
  .museo-ticket-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name stepper" "price stepper";
    gap: 2px 16px;
    padding: 18px 0;
  }

  .museo-ticket-row__name {
    grid-area: name;
    font-size: 30px;
  }

  .museo-ticket-row__price {
    grid-area: price;
    color: var(--fg-muted);
    font-size: 15px;
    text-align: left;
  }

  .museo-ticket-row__stepper {
    grid-area: stepper;
  }

  .museo-stepper__button {
    width: 44px;
    height: 44px;
  }

  .museo-segmented {
    display: flex;
  }

  .museo-segmented__option {
    flex: 1 1 auto;
    padding: 12px 16px;
    text-align: center;
  }
}

/* The old listing rows (style.css, "museo-ticket-row…") share these class
   names: undo what does not belong to the new rows. */
.museo-path .museo-ticket-row__price::after,
.museo-path .museo-ticket-row__name::before {
  content: none;
}

/* ── Compact intro (handoff v2) ── */
.museo-path__shell {
  padding-top: var(--museo-space-6);
}

.museo-path__intro {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) 240px;
  gap: var(--museo-space-8);
  align-items: end;
  padding-bottom: var(--museo-space-7);
}

.museo-path__intro--switch {
  grid-template-columns: minmax(0, 1fr) 240px;
}

.museo-path__breadcrumb {
  margin-bottom: var(--museo-space-3);
}

.museo-path__eyebrow {
  margin: var(--museo-space-5) 0 var(--museo-space-2);
}

.museo-path__title {
  font-size: 64px;
  line-height: 1;
}

.museo-path__description--side {
  max-width: 26rem;
  margin: 0 0 6px;
  justify-self: end;
}

.museo-path__media {
  width: 240px;
  height: 140px;
}

.museo-path-form__layout {
  margin-top: var(--museo-space-7);
}

@media (max-width: 1199.98px) {
  .museo-path__intro {
    grid-template-columns: minmax(0, 1fr) 240px;
  }

  .museo-path__description--side {
    grid-column: 1;
    justify-self: start;
  }

  .museo-path__media {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
  }
}

@media (max-width: 991.98px) {
  .museo-path__intro,
  .museo-path__intro--switch {
    grid-template-columns: 1fr;
    gap: var(--museo-space-4);
  }

  .museo-path__title {
    font-size: 40px;
  }

  /* No photo on mobile: the calendar starts in the first screen. */
  .museo-path__media {
    display: none;
  }
}

/* Review 27/10/2026: price on the name's line (style.css adds a top margin
   to the old ".museo-ticket-row__price"); even spacing around "/". */
.museo-path .museo-ticket-row__price {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1;
  align-self: center;
}

.museo-path .museo-ticket-row__name {
  align-self: center;
}

/* Step 03 "A che ora?" (review of 27/10/2026): when it appears the page
   scrolls to it; leave room for the sticky header and the mobile bar. */
.museo-path-step--time {
  scroll-margin-top: calc(var(--museo-header-height, 88px) + 24px);
  scroll-margin-bottom: calc(var(--museo-mobile-bar-height, 0px) + 24px);
}

.museo-path-step--time[hidden] {
  display: none;
}

/* "09:00 – 10:00" on one line. */
.museo-slots label {
  white-space: nowrap;
}

/* The number between − and +: no border, so the keyboard ring shows where
   it is (the base field rule draws only a border). */
.museo-ticket-row .museo-stepper__value:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  box-shadow: none;
}

/* ── Phone and tablet review (28/10/2026) ── */

/* Fixed bar: one row (what is chosen + total on the left, the button on the
   right), the reason under it only when there is one. It took a quarter of
   the phone screen. */
@media (max-width: 1199.98px) {
  .museo-mobile-bar:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 14px;
    padding: 10px 16px max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px));
  }

  .museo-mobile-bar__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 0;
    font-size: 14px;
    line-height: 1.25;
  }

  .museo-mobile-bar__row span {
    max-width: 100%;
  }

  .museo-mobile-bar__row strong {
    font-size: 22px;
    line-height: 1.15;
  }

  .museo-mobile-bar .museo-btn {
    width: auto;
    min-height: 50px;
    padding: 0 20px;
    white-space: nowrap;
  }

  .museo-mobile-bar .museo-order-summary__reason {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
  }

  .museo-mobile-bar .museo-order-summary__reason:empty {
    display: none;
  }
}

@media (max-width: 575.98px) {
  /* Breadcrumb: only the way back, as one link easy to tap. */
  .museo-path__breadcrumb .museo-breadcrumb__item {
    display: none;
  }

  .museo-path__breadcrumb .museo-breadcrumb__item:nth-last-child(2) {
    display: block;
  }

  .museo-path__breadcrumb .museo-breadcrumb__item::after {
    content: none;
  }

  .museo-path__breadcrumb a {
    display: inline-block;
    padding: 10px 0;
  }

  .museo-path__breadcrumb a::before {
    content: "‹ ";
  }

  .museo-path__title {
    font-size: 36px;
    line-height: 1.05;
  }

  /* Individuali / Gruppo: same width, the whole row. */
  .museo-segmented {
    display: flex;
    width: 100%;
  }

  .museo-segmented__option {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 8px 10px;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
  }

  /* Group sizes: 3 per row, so the price fits in the tile. */
  .museo-group-tiles .form-radios {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .museo-group-tiles label {
    padding: 12px;
  }

  .museo-group-tile__size {
    font-size: 26px;
  }

  .museo-group-tile__price {
    font-size: 14px;
    white-space: nowrap;
  }
}

@media (max-width: 1199.98px) {
  /* With a reason under the button ("scegli la data…"), the same words on
     the left are a repeat: only the total stays. */
  .museo-mobile-bar:has(.museo-order-summary__reason:not(:empty)) .museo-mobile-bar__row span {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .museo-mobile-bar .museo-btn {
    padding: 0 16px;
    font-size: 17px;
  }
}

/* Time slots on a phone: 2 per row, "09:00 – 10:00" fits (3 per row left
   ~100px and the text came out of the button). */
@media (max-width: 575.98px) {
  .museo-slots .form-radios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .museo-slots label {
    padding: 0 6px;
    font-size: 16px;
  }
}

/* ══ Rettifica scelte (09/11/2026) ══
 * Tickets first (01), then the date (02) with the hours or the entry slots
 * under the calendar. Steps still to do are marked "Da fare" in their
 * heading, in "Le tue scelte" and in the mobile bar; never by colour only. */

/* Step heading: title, then "Da fare" or "✓ chosen" on the right, then one
   line of instructions. */
.museo-path-step__head {
  align-items: center;
  margin-bottom: var(--museo-space-2);
}

.museo-path-step__status {
  margin: 0;
  font-size: 17px;
}

.museo-todo {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--error);
  background: var(--error-bg);
  color: var(--error);
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.museo-path-step__done {
  color: var(--accent-text);
}

.museo-path-step__intro {
  margin: 0 0 var(--museo-space-5);
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.5;
}

.museo-path-step__intro-short {
  display: none;
}

/* Ticket rows: "A chi spetta" under the name. */
.museo-ticket-row__info {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.museo-ticket-row__who {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.35;
}

/* Hours of the chosen day, under the calendar. */
.museo-hours[hidden],
.museo-slots__eyebrow[hidden] {
  display: none;
}

.museo-hours {
  margin-top: var(--museo-space-6);
}

.museo-hours__eyebrow,
.museo-slots__eyebrow {
  margin: var(--museo-space-6) 0 var(--museo-space-3);
}

.museo-hours__eyebrow {
  margin-top: 0;
}

.museo-hours__box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 18px 24px;
  border: 1px solid var(--museo-ink);
  background: var(--bg-panel);
}

.museo-hours__text p {
  margin: 0;
}

.museo-hours__time {
  font-size: 28px;
  line-height: 1.15;
}

.museo-hours__note {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.45;
}

.museo-hours__tag {
  flex: 0 0 auto;
  padding: 5px 10px;
  background: var(--museo-sage-soft);
  color: var(--museo-sage-deep);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* "Le tue scelte" in the summary. */
.museo-choices {
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border-rule);
}

.museo-choices__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.museo-choices__count {
  color: var(--error);
  font-size: 14px;
  text-align: right;
}

.museo-choices__count.is-ready {
  color: var(--museo-sage-deep);
}

.museo-choices__bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.museo-choices__bar span {
  height: 4px;
  background: var(--border-rule);
}

.museo-choices__bar .is-done {
  background: var(--museo-sage-deep);
}

.museo-choices__bar .is-todo {
  background: var(--error);
}

.museo-choices__list {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.museo-choice {
  display: grid;
  grid-template-columns: 20px 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 0;
  border: 1px solid transparent;
  font-size: 15px;
  line-height: 1.3;
}

.museo-choice__label {
  color: var(--fg-muted);
}

.museo-choice__flag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.museo-choice__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--museo-cream);
  font-size: 12px;
  line-height: 1;
}

.museo-choice.is-done .museo-choice__icon {
  background: var(--museo-sage-deep);
}

.museo-choice.is-done .museo-choice__icon::before {
  content: "✓";
}

.museo-choice.is-todo {
  margin: 0 -12px;
  padding: 8px 12px;
  border-color: var(--error);
  background: var(--error-bg);
}

.museo-choice.is-todo .museo-choice__icon {
  background: var(--error);
}

.museo-choice.is-todo .museo-choice__icon::before {
  content: "!";
}

.museo-choice.is-todo .museo-choice__label {
  color: var(--fg-default);
}

.museo-choice.is-todo .museo-choice__value,
.museo-choice.is-todo .museo-choice__flag {
  color: var(--error);
}

.museo-choice.is-waiting .museo-choice__icon {
  border: 1px dashed var(--border-control);
}

.museo-choice.is-waiting .museo-choice__value,
.museo-choice.is-waiting .museo-choice__flag {
  color: var(--fg-muted);
}

/* The reason under a disabled button: in the error colour. */
.museo-path-form .museo-order-summary__reason {
  color: var(--error);
}

/* Mobile bar: pills with the three steps, then total and button. */
.museo-mobile-bar__pills {
  display: none;
}

@media (max-width: 991.98px) {
  .museo-mobile-bar:not([hidden]) {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .museo-mobile-bar__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .museo-mobile-bar__row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  .museo-mobile-bar .museo-btn {
    width: 100%;
  }

  .museo-mobile-bar .museo-order-summary__reason {
    text-align: center;
  }

  /* Pills say what is missing: the summary on the left stays. */
  .museo-mobile-bar:has(.museo-order-summary__reason:not(:empty)) .museo-mobile-bar__row span {
    display: inline;
  }
}

.museo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 4px;
  border: 1px solid var(--border-rule);
  border-radius: var(--museo-radius-pill);
  font-size: 13px;
  line-height: 1.3;
}

.museo-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
}

.museo-pill.is-done .museo-pill__icon {
  color: var(--museo-sage-deep);
}

.museo-pill.is-todo {
  border-color: var(--error);
  background: var(--error-bg);
  color: var(--error);
}

.museo-pill.is-todo .museo-pill__icon {
  background: var(--error);
  color: var(--museo-cream);
}

.museo-pill.is-waiting {
  border-style: dashed;
  border-color: var(--border-control);
  color: var(--fg-muted);
}

.museo-pill.is-waiting .museo-pill__icon {
  border: 1px dashed var(--border-control);
}

@media (max-width: 767.98px) {
  .museo-path-step__intro-long {
    display: none;
  }

  .museo-path-step__intro-short {
    display: inline;
  }

  .museo-ticket-row {
    grid-template-areas: "info stepper" "price stepper";
  }

  .museo-ticket-row__info {
    grid-area: info;
  }

  .museo-ticket-row__who {
    font-size: 13px;
  }

  .museo-hours__box {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
  }

  .museo-hours__time {
    font-size: 24px;
  }

  .museo-todo {
    padding: 4px 10px;
    font-size: 11px;
  }
}

/* The name is now inside __info: the old mobile "grid-area: name" would
   place it in the wrong cell of that small grid. */
.museo-ticket-row__info .museo-ticket-row__name {
  grid-area: auto;
}

@media (max-width: 767.98px) {
  /* "Da fare" stays next to the title, which wraps. */
  .museo-path-step__head {
    flex-wrap: nowrap;
    align-items: flex-start;
  }

  .museo-path-step__status {
    flex: 0 0 auto;
    padding-top: 6px;
  }
}

/* Limiti delle fasce (09/11/2026): fascia piena barrata, posti rimasti. */
.museo-slots label {
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.museo-slot__note {
  color: var(--museo-error);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.museo-slots label.is-full {
  border-style: dashed;
  border-color: var(--museo-border-subtle, var(--border-control));
  background: transparent;
  color: var(--fg-muted);
  cursor: not-allowed;
}
.museo-slots label.is-full .museo-slot__time {
  text-decoration: line-through;
}
.museo-slots label.is-full .museo-slot__note {
  color: var(--fg-muted);
  text-transform: uppercase;
  font-size: 11px;
}
@media (hover: hover) {
  .museo-slots label.is-full:hover {
    border-color: var(--museo-border-subtle, var(--border-control));
  }
}
.museo-slots__note {
  margin: var(--museo-space-2, 8px) 0 0;
  color: var(--fg-muted);
  font-size: 14px;
}
/* Room left, but not for all the people chosen: not struck through. */
.museo-slots label.is-short {
  border-style: dashed;
  background: transparent;
  color: var(--fg-muted);
  cursor: not-allowed;
}
