/* Il client MetroStay eredita i token di ContaChiaro: nessun reset globale. */
.ms-shell { max-width: 1180px; margin: 0 auto; padding: 28px 24px 64px; color: var(--text); }
.ms-shell [hidden] { display: none !important; }
.ms-shell .ms-hero { width: 100%; max-width: 100%; margin: 0 0 24px; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.ms-hero::before, .ms-hero::after { display: none; }
.ms-hero > .discovery-hero__inner { display: block; min-height: 0; width: 100%; max-width: none; padding: clamp(24px, 4vw, 48px); }
.ms-hero h1 { max-width: 21ch; margin: 20px 0; font-size: clamp(2.1rem, 4.6vw, 3.8rem); line-height: 1.1; letter-spacing: -.04em; }
.ms-hero p { max-width: 68ch; line-height: 1.65; }
.ms-hero a { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary-strong); text-underline-offset: 4px; }
.ms-hero .ms-eyebrow { margin-top: 16px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: var(--primary-strong); }
.ms-chip { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: .8rem; font-weight: 600; }
.ms-launch-note { border-left: 3px solid var(--primary); padding: 16px 20px; background: var(--surface-2); border-radius: 0 12px 12px 0; }
.ms-launch-note p { margin: 6px 0 0; color: var(--muted); line-height: 1.65; }
.ms-shell #ms-form { display: grid; gap: 24px; margin: 24px 0; }
.ms-shell .ms-section { min-width: 0; margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.ms-shell .ms-location-section { position: static; z-index: auto; margin-top: 0; }
.ms-section-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.ms-section-head > div { min-width: 0; }
.ms-section h2 { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.3; }
.ms-section-head p { margin: 0; color: var(--muted); line-height: 1.6; }
.ms-step { display: grid; flex-shrink: 0; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; }
.ms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
.ms-zone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.ms-section label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: .9rem; font-weight: 600; }
.ms-section input, .ms-section select { width: 100%; min-width: 0; max-width: 100%; min-height: 48px; border: 1px solid var(--control-line); border-radius: 10px; padding: 10px 12px; background: var(--surface); color: var(--text); font: inherit; }
.ms-section #ms-station-query { margin-top: 8px; }
.ms-shell :focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.ms-section .ms-check { flex-direction: row; align-items: center; gap: 12px; min-height: 44px; margin: 20px 0; }
.ms-check input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; }
.ms-children { margin-top: 24px; }
.ms-children > p { color: var(--muted); line-height: 1.6; }
#ms-children { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
#ms-children label { max-width: 140px; }
.ms-children button, .ms-pagination button { min-height: 44px; padding: 10px 16px; border: 1px solid var(--control-line); border-radius: 8px; color: var(--text); background: var(--surface); cursor: pointer; }
.ms-submit, .ms-external { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 20px; padding: 12px 24px; border: 0; border-radius: 10px; color: var(--on-primary); background: var(--primary); font-size: 1rem; font-weight: 650; text-decoration: none; cursor: pointer; }
.ms-submit:hover, .ms-external:hover { background: var(--primary-strong); }
.ms-submit:disabled { opacity: .55; cursor: not-allowed; }
.ms-note, #ms-search-status { color: var(--muted); font-size: .875rem; line-height: 1.65; }
.ms-alert { border: 1px solid var(--warning); border-radius: 10px; padding: 16px; background: var(--surface-2); color: var(--text); }
.ms-alert.discovery-empty { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.ms-stay22 { min-width: 0; margin: 0; }
.ms-map-label { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ms-map-label > span { color: var(--muted); font-size: .9rem; line-height: 1.6; }
.ms-map-label .ms-map-gesture { color: var(--primary-strong); font-weight: 600; }
.ms-stay22-stage { overflow: hidden; min-height: 640px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.ms-stay22 iframe { display: block; width: 100%; height: 640px; border: 0; background: var(--surface); touch-action: pan-y pinch-zoom; }
.ms-stay22-state { display: grid; min-height: 640px; place-items: center; padding: 24px; text-align: center; color: var(--muted); }
.ms-stay22-state strong { max-width: 36ch; line-height: 1.6; }
.ms-stay22 iframe:not([hidden]) + .ms-stay22-state { display: none; }
.ms-station-results { position: relative; z-index: 2; overflow: auto; max-height: 310px; margin-top: 8px; border: 1px solid var(--control-line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-soft); }
.ms-station-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 48px; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); color: var(--text); background: var(--surface); text-align: left; cursor: pointer; }
.ms-station-option:last-child { border-bottom: 0; }
.ms-station-option:hover, .ms-station-option:focus-visible { background: var(--surface-2); }
.ms-station-option small { color: var(--muted); }
.ms-selected-station { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 20px 0; padding: 16px; border-radius: 10px; background: var(--surface-2); }
.ms-selected-station > div { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-line-badge { display: inline-block; padding: 7px 10px; border-left: 4px solid var(--line-color, var(--primary)); border-radius: 6px; background: var(--surface); color: var(--text); font-size: .8rem; font-weight: 600; }
.ms-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 24px 0; }
.ms-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.ms-card h3 { font-size: 1.2rem; }
.ms-card a, .ms-sources a { color: var(--primary-strong); font-weight: 600; text-underline-offset: 3px; }
.ms-price { font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ms-price small { display: block; font-size: .875rem; font-weight: 400; }
.ms-empty { padding: 24px; border-radius: 12px; background: var(--surface-2); }
.ms-empty p { margin-bottom: 0; }
.ms-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ms-pagination button:disabled { opacity: .55; }
.ms-shell .ms-method { margin-top: 56px; padding-bottom: 0; }
.ms-method .discovery-section-head { align-items: flex-start; }
.ms-method .discovery-section-head h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.2; }
.ms-method .discovery-editorial__grid { align-items: start; }
.ms-method article { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.ms-method h3 { margin: 0 0 12px; font-size: 1.15rem; line-height: 1.4; }
.ms-method article > span { display: block; margin-bottom: 12px; color: var(--primary-strong); font-size: .875rem; font-weight: 700; }
.ms-method p { color: var(--muted); line-height: 1.75; }
.ms-reading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.ms-sources { margin-top: 32px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
@media (max-width: 960px) { .ms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ms-method .discovery-editorial__grid { grid-template-columns: 1fr; } .ms-stay22 iframe { height: 540px; } .ms-stay22-stage, .ms-stay22-state { min-height: 540px; } }
@media (max-width: 720px) { .ms-shell { padding: 20px 16px 48px; } .ms-shell .ms-section { padding: 20px; } .ms-section-head { gap: 12px; } .ms-section h2 { font-size: 1.25rem; } .ms-section input, .ms-section select { font-size: 16px; } .ms-zone-grid, .ms-reading-grid { grid-template-columns: 1fr; } .ms-stay22 iframe { height: 460px; } .ms-stay22-stage, .ms-stay22-state { min-height: 460px; } .ms-section .ms-check { align-items: flex-start; } .ms-sources { padding: 20px; } }
@media (max-width: 420px) { .ms-shell .ms-section { padding: 16px; } .ms-grid { grid-template-columns: 1fr; } .ms-submit { width: 100%; } }
