/* Pagina interattiva delle sale: token condivisi e controlli leggibili. */
.museum-stops-page { max-width: var(--wp--custom--museum--stops--content-width); margin-inline: auto; }
.museum-stops-page .atlas-section { padding-inline: var(--wp--custom--space--px-32); }
.museum-stops-page .museum-stops-intro { padding-inline: var(--wp--custom--space--px-32); }
.museum-stops-page .atlas-head h2 { font-size: var(--wp--preset--font-size--x-large); letter-spacing: var(--wp--custom--tracking--minus-em-0-02-2); }
.stops-experience .atlas-stamp:empty, .stops-experience .atlas-head p:empty { display: none; }
.stops-experience .route-picker { gap: var(--wp--custom--space--px-4); }
.stops-experience .route-picker button { min-height: var(--wp--custom--measure--px-48); padding: var(--wp--custom--space--px-12) var(--wp--custom--space--px-16); font-size: var(--wp--custom--type--size-16); }
.stops-experience .route-intro { align-items: baseline; }
.stops-experience .route-intro p { font-size: var(--wp--custom--type--size-14); line-height: var(--wp--custom--leading--ratio-1-6); max-width: none; }
.museum-stops-page #route-count { display: none; }
.atlas-route-info { color: var(--muted); font-size: var(--wp--custom--type--size-14); min-width: 0; }
.atlas-route-info summary { display: none; }
.atlas-route-field, .atlas-view-switch, .atlas-back-to-plan { display: none; }
.atlas-tools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--wp--custom--space--px-24); align-items: end; margin-bottom: var(--wp--custom--space--px-16); }
.atlas-floor-field, .atlas-room-field, .atlas-route-field { min-width: 0; }
.atlas-field-label, .stops-experience .room-select-label, .atlas-route-field label { display: block; margin: 0 0 var(--wp--custom--space--px-8); font-size: var(--wp--custom--type--size-16); font-weight: var(--wp--custom--weight--semibold); color: var(--ink); }
.stops-experience .floor-picker { display: flex; width: 100%; }
.stops-experience .floor-picker button { min-height: var(--wp--custom--measure--px-48); padding: var(--wp--custom--space--px-10) var(--wp--custom--space--px-20); font-size: var(--wp--custom--type--size-16); }
.stops-experience select { width: 100%; min-height: var(--wp--custom--measure--px-48); padding: var(--wp--custom--space--px-10) var(--wp--custom--space--px-12); border: var(--wp--custom--measure--px-1) solid var(--wp--preset--color--muted); font: inherit; font-size: var(--wp--custom--type--size-16); color: var(--ink); background: var(--wp--preset--color--panel); }
.stops-experience .atlas-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--wp--custom--space--px-24); align-items: start; }
.stops-experience .atlas-map-panel { padding: var(--wp--custom--space--px-16); }
.stops-experience .map-toolbar { gap: var(--wp--custom--space--px-12); }
.atlas-map-hint { font-size: var(--wp--custom--type--size-14); line-height: var(--wp--custom--leading--ratio-1-5); color: var(--muted); margin: 0; }
.stops-experience #map-zoom { flex-shrink: 0; min-height: var(--wp--custom--measure--px-44); padding: var(--wp--custom--space--px-8); font-size: var(--wp--custom--type--size-16); }
.stops-experience .map-scroll, .stops-experience .map-scroll.zoomed { height: auto; max-height: var(--wp--custom--museum--stops--map-max-height); overflow: auto; overscroll-behavior: contain; scrollbar-width: auto; }
.stops-experience .map-scroll .plan-layer { width: max(100%, var(--wp--custom--museum--stops--map-width)); }
.stops-experience .map-scroll.zoomed .plan-layer { width: max(150%, var(--wp--custom--museum--stops--zoom-width)); }
#atlante.stops-experience .map-dot { width: var(--wp--custom--measure--px-44); height: var(--wp--custom--measure--px-44); font-size: var(--wp--custom--type--size-16); box-shadow: none; }
#atlante.stops-experience .plan-sheet svg :is(.street, .micro) { fill: var(--muted); }
.stops-experience .map-legend { flex-wrap: wrap; gap: var(--wp--custom--space--px-12); font-size: var(--wp--custom--type--size-14); margin-top: var(--wp--custom--space--px-12); }
.stops-experience .atlas-details-view { position: sticky; top: calc(var(--wp--custom--measure--px-105) + var(--venafro-notice-height)); }
.stops-experience .room-detail-image { height: var(--wp--custom--museum--stops--image-height); }
.stops-experience .room-detail-copy { padding: var(--wp--custom--space--px-24); }
.stops-experience #room-location { font-size: var(--wp--custom--type--size-14); letter-spacing: var(--wp--custom--tracking--em-0-04); color: var(--wp--preset--color--brand-gold); }
.stops-experience #room-era { font-size: var(--wp--custom--type--size-16); line-height: var(--wp--custom--leading--ratio-1-5); margin: var(--wp--custom--space--px-12) 0; }
.stops-experience #room-title { font-size: var(--wp--custom--type--size-30); line-height: var(--wp--custom--leading--ratio-1-2); margin: 0 0 var(--wp--custom--space--px-16); }
.stops-experience #room-body { min-height: 0; font-size: var(--wp--custom--type--size-18); line-height: var(--wp--custom--leading--ratio-1-6); }
.stops-experience .room-controls { display: grid; grid-template-columns: 1fr 1fr; gap: var(--wp--custom--space--px-12); margin-top: var(--wp--custom--space--px-20); padding-top: var(--wp--custom--space--px-16); }
.stops-experience .room-controls button { width: auto; height: auto; min-height: var(--wp--custom--measure--px-48); padding: var(--wp--custom--space--px-10); font-size: var(--wp--custom--type--size-16); line-height: var(--wp--custom--leading--ratio-1-4); }
.stops-experience #room-position { grid-column: 1 / -1; grid-row: 1; text-align: center; font-size: var(--wp--custom--type--size-16); color: var(--wp--preset--color--white); }
.atlas-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wp--custom--space--px-10); margin-top: var(--wp--custom--space--px-12); }
.atlas-copy-link { min-height: var(--wp--custom--measure--px-44); padding: var(--wp--custom--space--px-8) 0; background: none; color: var(--wp--preset--color--brand-gold); font: inherit; font-size: var(--wp--custom--type--size-16); text-decoration: underline; text-underline-offset: var(--wp--custom--measure--px-4); border: 0; }
.atlas-share-status { font-size: var(--wp--custom--type--size-14); color: var(--wp--preset--color--white); }
.atlas-share-input { width: 100%; min-width: 0; padding: var(--wp--custom--space--px-10); font-size: var(--wp--custom--type--size-16); color: var(--ink); background: var(--paper); }
.stops-experience .route-stops { margin-top: var(--wp--custom--space--px-16); }
.stops-experience .route-stops button { min-height: var(--wp--custom--measure--px-48); font-size: var(--wp--custom--type--size-16); }
.stops-experience :is(button, select, input, .map-scroll):focus-visible { outline: var(--wp--custom--measure--px-3) solid var(--wp--preset--color--secondary-dark); outline-offset: var(--wp--custom--measure--px-3); }
.stops-experience .room-detail :is(button, input, #room-title):focus-visible { outline: var(--wp--custom--measure--px-3) solid var(--wp--preset--color--brand-gold); outline-offset: var(--wp--custom--measure--px-3); }
@media (max-width: 1023px) {
  .museum-stops-page .atlas-section, .museum-stops-page .museum-stops-intro { padding-inline: var(--wp--custom--space--px-20); }
  .museum-stops-page .atlas-head h2 { font-size: var(--wp--preset--font-size--large); }
  .stops-experience .route-picker { display: none; }
  .atlas-route-field { display: block; margin-top: var(--wp--custom--space--px-16); }
  .stops-experience .route-intro { flex-direction: column; gap: var(--wp--custom--space--px-8); margin: var(--wp--custom--space--px-8) 0 var(--wp--custom--space--px-12); }
  .atlas-route-info { width: 100%; }
  .atlas-route-info summary { display: list-item; min-height: var(--wp--custom--measure--px-44); padding-block: var(--wp--custom--space--px-10); cursor: pointer; font-size: var(--wp--custom--type--size-14); color: var(--ink); }
  .atlas-route-info p { margin: 0 0 var(--wp--custom--space--px-12); }
  .atlas-floor-field > .atlas-field-label { position: absolute; width: var(--wp--custom--measure--px-1); height: var(--wp--custom--measure--px-1); padding: 0; margin: var(--wp--custom--space--minus-px-1); overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
  .stops-experience .floor-picker button { white-space: nowrap; padding-inline: var(--wp--custom--space--px-10); }
  .atlas-view-switch { display: flex; gap: var(--wp--custom--space--px-4); margin-bottom: var(--wp--custom--space--px-16); scroll-margin-top: calc(var(--wp--custom--space--px-80) + var(--venafro-notice-height)); }
  .atlas-view-switch button { flex: 1; min-height: var(--wp--custom--measure--px-48); padding: var(--wp--custom--space--px-12); background: var(--wp--preset--color--surface); color: var(--ink); font: inherit; font-size: var(--wp--custom--type--size-16); border: var(--wp--custom--measure--px-1) solid var(--wp--preset--color--muted); }
  .atlas-view-switch [aria-selected="true"] { background: var(--wp--preset--color--header-background); border-color: var(--wp--preset--color--header-background); color: var(--wp--preset--color--white); }
  .atlas-tools { grid-template-columns: minmax(0, 1fr); gap: var(--wp--custom--space--px-12); }
  [data-atlas-view="details"] .atlas-floor-field { display: none; }
  .stops-experience .atlas-layout { grid-template-columns: minmax(0, 1fr); }
  .stops-experience .map-scroll, .stops-experience .map-scroll.zoomed { height: var(--wp--custom--museum--stops--mobile-map-height); max-height: none; }
  .stops-experience .atlas-map-panel { padding: var(--wp--custom--space--px-12); }
  .stops-experience .map-toolbar { flex-wrap: wrap; }
  .stops-experience .map-toolbar .atlas-map-hint { flex: 1; }
  .stops-experience .atlas-details-view { position: static; }
  .stops-experience .room-detail-image { height: var(--wp--custom--museum--stops--mobile-image-height); }
  .stops-experience .room-detail-copy { padding: var(--wp--custom--space--px-20); }
  .stops-experience #room-body { font-size: var(--wp--custom--type--size-16); }
  .stops-experience #room-title { font-size: var(--wp--custom--type--size-26); }
  .atlas-back-to-plan { display: block; min-height: var(--wp--custom--measure--px-48); padding: var(--wp--custom--space--px-12) var(--wp--custom--space--px-16); border: 0; background: var(--wp--preset--color--header-background); color: var(--wp--preset--color--white); font: inherit; font-size: var(--wp--custom--type--size-16); text-align: left; }
}
