/* ==========================================================================
   THE WISE GUY · Agenti live (/agenti-live/, /en/live-agents/)
   Apertura giroscopio 3D a pieno schermo · Testata larga --twg-wide-gx
   Zero pillole tondeggianti (999px) · Parità 1:1 Scuro/Chiaro · Mobile 390px
   ========================================================================== */

.al-page {
  --al-em: #10B981;
  --al-cy: #22D3EE;
  --al-vi: #A855F7;
  --al-surface: rgba(16, 13, 28, 0.88);
  --al-surface-alt: rgba(24, 20, 40, 0.92);
  --al-ink-em: #34D399;
  --al-gx: clamp(16px, 3vw, 24px);
}

:root:not([data-theme="light"]):has(.al-page) { --bg-page: #060812; }
:root:not([data-theme="light"]) body:has(.al-page),
:root:not([data-theme="light"]) .al-page { background-color: #060812; }

:root[data-theme="light"] .al-page {
  --al-surface: #FFFFFF;
  --al-surface-alt: #F8FAFC;
  --al-ink-em: #047857;
}

.al-page .pp2 { overflow-x: clip; }
.al-page .pp-sec { padding-block: clamp(38px, 4.2vw, 56px); }
.al-page .pp2-head { margin-bottom: 20px; }

/* Angoli netti su tutta la pagina (zero capsule a pillola 999px) */
.al-page .btn,
.al-page .pp2-cta .btn { border-radius: 6px; }

/* Estensione allineamento testata larga & briciola P1-ECOSISTEMA-b (>=1280px) */
@media (min-width: 1280px) {
  .al-page { --al-gx: var(--twg-wide-gx, clamp(24px, calc(3.75vw - 24px), 48px)); }
  html.tp.tp-hero-largo:has(.al-hero-stage) .twg-crumbbar > .twg-container {
    max-width: none;
    padding-inline: var(--twg-wide-gx, clamp(24px, calc(3.75vw - 24px), 48px));
  }
  html.tp.tp-hero-largo:has(.al-hero-stage) .twg-crumbbar .twg-crumb {
    transform: translate3d(calc(var(--tp-chiudi, 0) * var(--tp-shift-px, 0px)), 0, 0);
    will-change: transform;
  }
}

/* ==========================================================================
   APERTURA A PIENO SCHERMO · GIROSCOPIO 3D (sempre fondo cosmico scuro)
   ========================================================================== */
.al-hero-stage {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin-top: var(--al-head-h, 116px);
  height: calc(100svh - var(--al-head-h, 116px));
  min-height: 580px;
  max-height: 940px;
  padding-top: clamp(58px, 7.6vh, 72px);
  background: #050711;
  color: #F8FAFC;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  overflow: hidden;
  isolation: isolate;
}

.al-hero-gyro {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.al-gyro-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
}

.al-hero-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: pan-y;
}
.al-hero-canvas:active { cursor: grabbing; }

.al-gyro-hint {
  position: absolute;
  left: var(--al-gx);
  bottom: 58px;
  padding: 4px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 4px;
  background: rgba(5, 7, 17, 0.78);
  color: #94A3B8;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  pointer-events: none;
  z-index: 4;
}

/* Barra HUD superiore interna al giroscopio */
.al-gyro-hud-top {
  position: absolute;
  top: 14px;
  left: var(--al-gx);
  right: auto;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.al-gyro-engines {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 4px;
  background: rgba(6, 10, 22, 0.84);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.al-engine-tab {
  position: relative;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 5px 11px;
  border: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0;
  background: transparent;
  color: #E2E8F0;
  font: 600 12px/1.1 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}
.al-engine-tab:last-child { border-right: 0; }
.al-engine-tab:hover,
.al-engine-tab.is-selected {
  background: rgba(16, 185, 129, 0.16);
  color: #FFFFFF;
}
.al-engine-tab.is-selected::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: #34D399;
}
.al-eng-pct {
  font-size: 10.5px;
  font-weight: 700;
  color: #6EE7B7;
}

.al-gyro-actions {
  display: inline-flex;
  gap: 6px;
}

.al-gyro-btn {
  appearance: none;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 4px;
  background: rgba(6, 10, 22, 0.86);
  color: #F8FAFC;
  font: 600 11.5px/1.1 var(--font-mono);
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.al-gyro-btn:hover {
  border-color: #34D399;
  background: rgba(16, 185, 129, 0.16);
}
.al-gyro-btn:focus-visible,
.al-engine-tab:focus-visible,
.al-btn-wave:focus-visible,
.al-arrive-back:focus-visible,
.al-flowbar-next:focus-visible {
  outline: 2px solid #22D3EE;
  outline-offset: 2px;
}

/* Colonna editoriale sinistra in primo piano con scrim netto */
.al-hero-overlay {
  position: relative;
  z-index: 5;
  margin-top: 0;
  margin-left: var(--al-gx);
  width: clamp(340px, 29.5vw, 438px);
  padding: 20px 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-left: 2px solid #10B981;
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(6, 9, 20, 0.88), rgba(9, 14, 30, 0.74));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.85);
}

.al-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #34D399;
}

.al-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  flex-shrink: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .al-live-dot { animation: alPulse 2.4s ease-in-out infinite; }
}
@keyframes alPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.al-hero-h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(26px, 2.5vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #F8FAFC;
}
.al-hero-h1 em {
  font-style: normal;
  color: #34D399;
}

.al-hero-lead {
  margin: 12px 0 0;
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 1.5;
  color: #CBD5E1;
}

.al-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.al-hero-ctas .al-btn-primary {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

.al-btn-wave {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(52, 211, 153, 0.48);
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.12);
  color: #ECFDF5;
  font: 600 13.5px/1.2 var(--font-sans);
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.al-btn-wave:hover {
  border-color: #34D399;
  background: rgba(16, 185, 129, 0.24);
}
.al-btn-wave-ico {
  font-weight: 800;
  color: #34D399;
}

/* Barra compatta passaggio attivo sotto le CTA */
.al-hero-flowbar {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.al-flowbar-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
}
.al-flowbar-route {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #F8FAFC;
  min-width: 0;
}
.al-flowbar-route strong { color: #FFFFFF; font-weight: 700; }

.al-flowbar-state {
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.al-flowbar-state.is-live { background: rgba(56, 189, 248, 0.16); border-color: rgba(56, 189, 248, 0.42); color: #7DD3FC; }
.al-flowbar-state.is-ok { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.5); color: #6EE7B7; }
.al-flowbar-state.is-stop { background: rgba(239, 68, 68, 0.18); border-color: rgba(239, 68, 68, 0.55); color: #FCA5A5; }

.al-flowbar-desc {
  grid-column: 1 / 2;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.al-flowbar-next {
  appearance: none;
  padding: 3px 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.72);
  color: #E2E8F0;
  font: 600 10.5px/1.2 var(--font-mono);
  cursor: pointer;
}
.al-flowbar-next:hover { border-color: #38BDF8; color: #FFFFFF; }

/* Scheda «Cosa arriva a te» / Ispettore nodo in basso a destra */
.al-arrive-card {
  position: absolute;
  right: var(--al-gx);
  bottom: 72px;
  z-index: 6;
  width: clamp(268px, 22vw, 336px);
  padding: 16px 18px;
  border: 1px solid rgba(16, 185, 129, 0.58);
  border-top: 2px solid #10B981;
  border-radius: 6px;
  background: rgba(6, 22, 20, 0.90);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.85);
  color: #F8FAFC;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.al-arrive-card.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.al-arrive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.al-arrive-k {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6EE7B7;
}
.al-arrive-badge {
  padding: 2px 6px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 3px;
  background: rgba(16, 185, 129, 0.14);
  font-size: 9.5px;
  font-weight: 700;
  color: #A7F3D0;
}
.al-arrive-back {
  appearance: none;
  padding: 2px 7px;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.72);
  color: #E2E8F0;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.al-arrive-back:hover { border-color: #34D399; color: #FFFFFF; }

.al-arrive-node {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.al-arrive-avatar {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1.5px solid #34D399;
  background: #0B1224;
  flex-shrink: 0;
}
.al-arrive-gate-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: 1.5px solid #10B981;
  background: rgba(16, 185, 129, 0.16);
  color: #6EE7B7;
  font: 800 11px/1 var(--font-mono);
  flex-shrink: 0;
}
.al-arrive-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
}
.al-arrive-sub {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.al-arrive-desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.48;
  color: #E2E8F0;
}
.al-arrive-share {
  margin-top: 8px;
  padding: 5px 8px;
  border-left: 2px solid #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  font-size: 11px;
  color: #CBD5E1;
}
.al-arrive-share strong { color: #FFFFFF; }

.al-arrive-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.al-arrive-list li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  line-height: 1.35;
  color: #ECFDF5;
}
.al-arrive-list svg { color: #34D399; flex-shrink: 0; }

.al-arrive-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(16, 185, 129, 0.24);
  font-size: 10.5px;
  color: #94A3B8;
}
.al-arrive-wave-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: none;
  color: #6EE7B7;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Fascia sottile telemetria reale in fondo all'apertura */
.al-hero-metrics {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--al-gx);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(4, 7, 16, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.al-metrics-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(16px, 2.8vw, 38px);
}
.al-metrics-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.al-metric-val {
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 800;
  line-height: 1;
  color: #34D399;
}
.al-metric-val.is-standby { font-size: 13px; color: #FBBF24; }
.al-metric-lbl {
  font-size: 12px;
  color: #CBD5E1;
  white-space: nowrap;
}
.al-hero-stamp {
  font-size: 11px;
  color: #94A3B8;
  white-space: nowrap;
}

/* ==========================================================================
   SEZIONI COMPATTE SOTTO L'APERTURA (Dark & Light 1:1)
   ========================================================================== */
.al-live-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.al-feed-card,
.al-chart-card {
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--al-surface);
  min-width: 0;
}

.al-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.al-card-head h3 {
  margin: 0;
  font: 700 17px/1.3 var(--font-sans);
  color: var(--fg-primary);
}
.al-filters { display: flex; flex-wrap: wrap; gap: 6px; }

.al-filter-btn {
  position: relative;
  appearance: none;
  cursor: pointer;
  min-block-size: 34px;
  padding: 6px 11px;
  border-radius: 4px;
  border: 1px solid var(--border-medium);
  background: var(--bg-subtle);
  color: var(--fg-secondary);
  font: 600 12px/1.2 var(--font-mono);
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.al-filter-btn:hover,
.al-filter-btn[aria-pressed="true"] {
  border-color: var(--al-em);
  background: color-mix(in srgb, var(--al-em) 14%, transparent);
  color: var(--fg-primary);
}
.al-filter-btn[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 2px;
  background: var(--al-em);
}
.al-filter-btn:focus-visible,
.al-focus-btn:focus-visible,
.al-pmark-link:focus-visible {
  outline: 2px solid var(--al-cy);
  outline-offset: 2px;
}

.al-ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.al-ev-item {
  display: grid;
  grid-template-columns: 50px 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--al-surface-alt);
}
.al-ev-time { font-size: 12px; font-weight: 700; color: var(--al-ink-em); }
.al-ev-ico { display: inline-flex; align-items: center; justify-content: center; }
.al-ev-0llm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  border-radius: 4px;
  font: 800 9.5px/1 var(--font-mono);
  background: rgba(56, 189, 248, 0.16);
  color: #38BDF8;
}
:root[data-theme="light"] .al-ev-0llm { color: #0369A1; }
.al-ev-txt { font-size: 13.5px; line-height: 1.42; color: var(--fg-primary); min-width: 0; }
.al-ev-tag {
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-secondary);
  white-space: nowrap;
}

.al-bars { display: grid; gap: 12px; }
.al-bar-row { display: grid; gap: 5px; }
.al-bar-row--stop { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--border-subtle); }
.al-bar-row--stop strong { color: #F59E0B; }
:root[data-theme="light"] .al-bar-row--stop strong { color: #B45309; }
.al-bar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--fg-secondary); }
.al-bar-top strong { font-size: 14px; color: var(--fg-primary); }
.al-bar-track { height: 8px; border-radius: 2px; background: var(--bg-subtle); overflow: hidden; }
.al-bar-fill { display: block; height: 100%; border-radius: 2px; }

.al-privacy-note {
  margin-top: 16px;
  padding: 12px 15px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--al-em) 32%, var(--border-subtle));
  background: color-mix(in srgb, var(--al-em) 7%, var(--al-surface-alt));
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-secondary);
}

/* Griglie schede motori / assistenti / specialisti / revisori / cancelli */
.al-engines-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.al-roster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.al-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.al-gates-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }

.al-agent-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: var(--al-surface);
  min-width: 0;
}
.al-agent-card--featured {
  border-color: color-mix(in srgb, var(--ag-c, #10B981) 44%, var(--border-medium));
  background:
    radial-gradient(360px 150px at 100% 0%, color-mix(in srgb, var(--ag-c, #10B981) 11%, transparent), transparent 72%),
    var(--al-surface);
}
.al-agent-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.al-agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1.5px solid var(--ag-c, #10B981);
  background: #141024;
  flex-shrink: 0;
}
.al-gate-ico {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.12);
  color: var(--al-ink-em);
  flex-shrink: 0;
}
.al-agent-meta { min-width: 0; }
.al-agent-meta h3 { margin: 0; font: 700 16px/1.25 var(--font-sans); color: var(--fg-primary); }
.al-agent-role {
  display: block;
  margin-top: 2px;
  font: 600 11px/1.25 var(--font-mono);
  color: var(--al-ink-em);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.al-agent-body { margin: 0; font-size: 13.5px; line-height: 1.48; color: var(--fg-secondary); }

.al-engine-meter {
  margin-top: 2px;
  display: grid;
  gap: 4px;
}
.al-engine-meter-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font: 600 11.5px/1.2 var(--font-mono);
  color: var(--fg-secondary);
}
.al-engine-meter-row strong { color: var(--fg-primary); font-size: 12.5px; }

.al-card-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 6px;
}

.al-focus-btn {
  appearance: none;
  cursor: pointer;
  min-block-size: 34px;
  padding: 5px 11px;
  border-radius: 4px;
  border: 1px solid var(--border-medium);
  background: var(--bg-subtle);
  color: var(--fg-primary);
  font: 600 11.5px/1.2 var(--font-mono);
}
.al-focus-btn:hover { border-color: var(--ag-c, #10B981); }

/* Link esplicito a marchio prodotto (.twg-pmark) */
.al-pmark-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-subtle);
  color: var(--fg-primary);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
}
.al-pmark-link:hover {
  border-color: var(--al-em);
}
.al-pmark-link .twg-pmark { font-size: 13px; }
.al-pmark-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

@media (pointer: coarse) {
  .al-filter-btn,
  .al-focus-btn,
  .al-gyro-btn {
    min-block-size: 44px;
    padding-inline: 12px;
  }
}

/* Tablet & Laptop compatto */
@media (max-width: 1180px) {
  .al-live-grid,
  .al-engines-grid { grid-template-columns: 1fr; }
  .al-roster-grid,
  .al-gates-grid,
  .al-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile & Schermi < 960px: Giroscopio largo a pieno schermo SOPRA il titolo */
@media (max-width: 959px) {
  .al-hero-stage {
    margin-top: var(--al-head-h, 104px);
    height: auto;
    min-height: 0;
    max-height: none;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .al-hero-gyro {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  }
  .al-gyro-canvas-wrap {
    height: clamp(340px, 49svh, 395px);
    min-height: 340px;
    max-height: 395px;
  }
  .al-gyro-hud-top {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    padding: 10px var(--al-gx) 6px;
    justify-content: space-between;
    background: rgba(5, 7, 17, 0.94);
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  }
  .al-gyro-engines { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .al-gyro-hint {
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    font-size: 10px;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .al-hero-overlay {
    order: 2;
    margin: 0;
    width: 100%;
    padding: 18px var(--al-gx);
    border: 0;
    border-left: 0;
    border-radius: 0;
    background: #060914;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .al-hero-ctas { flex-direction: column; }
  .al-hero-ctas .al-btn-primary,
  .al-btn-wave { width: 100%; justify-content: center; }

  .al-arrive-card {
    position: relative;
    order: 3;
    right: auto;
    bottom: auto;
    width: calc(100% - 2 * var(--al-gx));
    margin: 0 var(--al-gx) 14px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .al-hero-metrics {
    position: relative;
    order: 4;
    left: auto;
    right: auto;
    bottom: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px var(--al-gx) 16px;
  }
  .al-metrics-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }
  .al-metrics-list li {
    flex-direction: column;
    gap: 2px;
  }
  .al-metric-lbl { white-space: normal; }
}

@media (max-width: 680px) {
  .al-roster-grid,
  .al-review-grid,
  .al-gates-grid { grid-template-columns: 1fr; }
  .al-feed-card,
  .al-chart-card { padding: 14px; }
  .al-ev-item { grid-template-columns: 46px 20px minmax(0, 1fr); }
  .al-ev-tag { grid-column: 1 / -1; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .al-arrive-card {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }
}
