/* I corsi introduttivi seguono la Rampa: cartelloni nella scena ampia,
   elenco sempre disponibile sotto. Corridoio, classi e Segreteria esclusi. */
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) {
  --lesson-board-width:26%;
}
#sc-mondo[data-stage=hall]:not([data-view=secretariat]) {--lesson-board-width:33%}

#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .world-hotspot {
  display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;
  position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);
  width:var(--lesson-board-width);max-width:490px;min-width:0;min-height:0;height:auto;
  padding:16px 18px;gap:8px;text-align:left;line-height:1.4;
  border:2px solid var(--teal);border-left-width:5px;border-radius:7px;
  background:var(--surface);color:var(--ink);box-shadow:0 8px 18px #18313824;
  opacity:1;filter:none;outline:none;animation:none;
}
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .world-hotspot::before,
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .world-hotspot::after,
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) :is(.hotspot-symbol,.hotspot-title) {display:none}
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .hotspot-number {
  position:static;font-size:15px;font-weight:400;line-height:1.4;letter-spacing:0;color:var(--muted);
}
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .board-copy {
  display:block;max-width:none;font-size:clamp(18px,1.5vw,24px);font-weight:600;
  line-height:1.28;letter-spacing:0;text-wrap:pretty;
}
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .board-status {
  display:block;width:auto;margin-top:8px;padding:0;border:0;
  font-size:15px;font-weight:400;line-height:1.4;color:var(--ink);
}
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .world-hotspot.is-current-lesson {
  box-shadow:0 0 0 4px var(--raised),0 8px 18px #18313824;
}
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .world-hotspot.is-locked {opacity:.76}
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .world-hotspot:not(:disabled):hover {
  background:var(--raised);box-shadow:0 0 0 4px var(--surface),0 8px 18px #18313840;
}
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .world-hotspot:focus-visible {
  outline:3px solid var(--focus-ring);outline-offset:4px;
}

#sc-mondo:is([data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .world-plane {
  position:relative;inset:auto;transform:none;min-width:0;min-height:0;
  width:100%;height:auto;aspect-ratio:1672/941;display:block;padding:0;
}
#sc-mondo:is([data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .world-stops {
  position:absolute;inset:0;display:block;padding:0;
}
#sc-mondo:is([data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) :is(.world-art,.world-actors,.secretariat-area) {
  height:100%;aspect-ratio:auto;bottom:0;
}
#sc-mondo:is([data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .world-art img {object-fit:contain}

#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .explore-dock {
  display:block;margin:0;padding:20px 24px;border-top:1px solid var(--line);
}
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) :is(#stop-list,.stop-list:has(>.stop-card:nth-child(3):last-child)) {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
}
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .stop-card:nth-child(n) {
  min-width:0;border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);
}
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .stop-card:nth-child(even) {border-right:0}
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .stop-card:nth-last-child(-n+2) {border-bottom:0}
#sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .stop-list:has(>.stop-card:nth-child(3):last-child) .stop-card:last-child {
  grid-column:1/-1;border:0;border-top:1px solid var(--line);
}

/* Il cartellone resta nella scena solo finché è leggibile. L'elenco non si sposta. */
@media(max-width:1350px) {
  /* Sulla parete dell'Ingresso i tre cartelloni si distribuiscono nello spazio
     disponibile, conservando fregio e accesso alla Segreteria. */
  #sc-mondo[data-stage=hall]:not([data-view=secretariat]) #world-stops {
    inset:27% auto 1% 44%;width:37%;display:flex;flex-direction:column;
    justify-content:space-between;gap:8px;
  }
  #sc-mondo[data-stage=hall]:not([data-view=secretariat]) .world-hotspot {
    position:relative;inset:auto;transform:none;width:100%;max-width:none;
    flex:0 0 auto;padding:8px 14px;gap:4px;
  }
  #sc-mondo[data-stage=hall]:not([data-view=secretariat]) .hotspot-number {font-size:14px}
  #sc-mondo[data-stage=hall]:not([data-view=secretariat]) .board-copy {font-size:18px}
  #sc-mondo[data-stage=hall]:not([data-view=secretariat]) .board-status {font-size:14px;margin-top:4px}
}
@media(max-width:1000px) {
  #sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) #world-stops {display:none}
}
@media(max-width:760px) {
  #sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .method-line {display:grid;grid-template-columns:36px minmax(0,1fr);align-items:start}
  #sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .method-line>button {grid-column:2;justify-self:start;margin:0}
  #sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .explore-dock {padding:18px}
  #sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) :is(#stop-list,.stop-list:has(>.stop-card:nth-child(3):last-child)) {grid-template-columns:minmax(0,1fr)}
  #sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .stop-card:nth-child(n) {grid-column:auto;border:0;border-bottom:1px solid var(--line)}
  #sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .stop-list:has(>.stop-card:nth-child(3):last-child) .stop-card:last-child {grid-column:auto;border:0}
  #sc-mondo:is([data-stage=strada],[data-stage=giardino],[data-stage=hall]):not([data-view=secretariat]) .stop-card:last-child {border-bottom:0}
}
