/* =========================================================
   RADIO CORSA — Design System condiviso
   Font titoli: Barlow Condensed (coerente con Gestione Trasferte)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  /* Palette */
  --navy-900: #0b1f3a;
  --navy-800: #0f294c;
  --navy-700: #14315c;
  --accent: #ff6b35;
  --accent-dark: #e0551c;
  --accent-soft: #fff1ea;

  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #1c2430;
  --muted: #6b7480;
  --border: #e3e6ea;

  --live-red: #e0293e;
  --success: #1f9d55;
  --warn: #d69e00;

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .heading {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.topbar img.logo {
  height: 42px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  padding: 2px;
}

.topbar .titles { flex: 1; min-width: 0; }

.topbar .event-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .event-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* LIVE badge, pallino animato */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(224,41,62,0.16);
  border: 1px solid rgba(224,41,62,0.5);
  color: #ff8a97;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live-red);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

/* Barra di refresh (30s) */
.refresh-bar-wrap {
  height: 3px;
  background: rgba(255,255,255,0.08);
}
.refresh-bar {
  height: 100%;
  background: var(--accent);
  animation: refresh-fill 30s linear infinite;
}
@keyframes refresh-fill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ---------- Layout ---------- */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 12px 40px;
}

.section-title {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 22px 4px 10px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

/* ---------- Search ---------- */
.search-box {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  background: var(--surface);
  margin-bottom: 4px;
}
.search-box:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- Riga ricerca + nome gara ---------- */
.search-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}
.race-name-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy-900);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 700px) {
  .search-row {
    flex-direction: row;
    align-items: center;
  }
  .search-row .search-box {
    width: 50%;
    margin-bottom: 0;
  }
  .search-row .race-name-tag {
    flex: 1;
    white-space: normal;
  }
}

/* ---------- Card list (sostituisce le tabelle) ---------- */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.race-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.race-card:active { transform: scale(0.99); }

.race-card .stage-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
}

.race-card .info { flex: 1; min-width: 0; }

.race-card .name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.race-card .meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.status-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-live { background: #fde8ea; color: var(--live-red); }
.status-updated { background: #e6f6ec; color: var(--success); }
.status-progress { background: #fff5e0; color: var(--warn); }

.race-card .actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:active { background: var(--accent-dark); }
.btn-ghost { background: var(--navy-900); color: #fff; }
.btn-outline { background: transparent; color: var(--navy-900); border: 1.5px solid var(--border); }

@media (max-width: 480px) {
  .race-card { flex-wrap: wrap; }
  .race-card .actions { width: 100%; }
  .btn { flex: 1; }
}

/* ---------- Feed notizie (radio.php) ---------- */
.feed-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}

.feed-item .time {
  flex-shrink: 0;
  width: 54px;
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: var(--navy-900);
  line-height: 1.1;
}
.feed-item .time .date { display: block; font-size: 10px; font-weight: 500; color: var(--muted); }

.feed-item .icon img { width: 30px; height: 30px; object-fit: contain; }

.feed-item .text {
  flex: 1;
  font-size: 15px;
  line-height: 1.45;
}

/* primo elemento della lista = notizia più recente, evidenziata */
.feed-item.latest {
  border-left-color: var(--live-red);
  background: linear-gradient(90deg, #fff, var(--accent-soft) 400%);
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 24px 12px;
  font-size: 13px;
  color: var(--muted);
}
.site-footer a { color: var(--navy-700); font-weight: 600; }

/* ---------- Skip link ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.sr-only:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto;
  background: var(--accent); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 999; clip: auto;
}

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

/* =========================================================
   Estensioni: GPM/TV feed, roster squadre (iscritti), modal
   ========================================================= */

.nav-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

/* Icona tipo evento più grande nel feed GPM/TV */
.feed-item .icon img.type-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.feed-item .icon .type-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Roster squadre (iscritti.php) ---------- */
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}

.team-header {
  background: var(--navy-900);
  color: #fff;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-jersey {
  width: 52px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}
.team-jersey-placeholder {
  width: 52px;
  height: 40px;
  background: var(--navy-700);
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.team-code {
  font-size: 10px;
  opacity: 0.7;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.team-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.team-count {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.rider-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  cursor: pointer;
}
.rider-row:active { background: var(--bg); }

.dor-badge {
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  flex-shrink: 0;
  min-width: 30px;
  text-align: center;
}

.rider-thumb {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}
.rider-thumb-jersey {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  object-fit: contain;
  border: 2px solid var(--border);
  background: var(--bg);
  padding: 2px;
  flex-shrink: 0;
}
.no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--border);
  font-size: 18px;
  border-radius: 50%;
}

.rider-name {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
  display: block;
  line-height: 1.2;
}
.uci-id {
  font-size: 10px;
  color: var(--muted);
  font-family: monospace;
  margin-top: 1px;
}

.flag-cell { flex-shrink: 0; }
.flag-img {
  width: 22px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  display: block;
}

.search-icon-btn {
  color: var(--muted);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.search-icon-btn:active { color: var(--accent); }

/* ---------- Modal foto ---------- */
.photo-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,31,58,0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.photo-modal img {
  max-width: 90%;
  max-height: 85%;
  border: 4px solid #fff;
  border-radius: 14px;
}

/* =========================================================
   Estensioni: pannello admin (principale.php)
   ========================================================= */

.admin-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.admin-section summary {
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 17px;
  letter-spacing: 0.2px;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  list-style: none;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.admin-section summary::-webkit-details-marker { display: none; }
.admin-section summary::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat center;
  transition: transform 0.25s ease;
}
.admin-section[open] summary::after { transform: translateY(-50%) rotate(180deg); }

.admin-section .content { padding: 18px; }

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--navy-900);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  min-height: 46px;
  text-align: center;
  transition: transform 0.12s ease, background 0.12s ease;
}
.admin-btn:active { transform: scale(0.98); }
.admin-btn.danger { background: var(--live-red); }
.admin-btn.success { background: var(--success); }
.admin-btn.accent { background: var(--accent); }

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}
.admin-form label { font-size: 13px; font-weight: 600; color: var(--text); }
.admin-form small { color: var(--muted); font-size: 12px; }
.admin-form input[type="password"],
.admin-form input[type="file"],
.admin-form input[type="text"] {
  padding: 11px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  background: var(--surface);
}
.admin-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.admin-warning {
  color: var(--live-red);
  font-size: 13px;
  margin-top: 8px;
}

.qr-panel {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  margin: 20px 0;
}
.qr-panel img { max-width: 220px; height: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.qr-panel p { margin-top: 12px; color: var(--muted); font-size: 13px; }

.admin-header {
  text-align: center;
  padding: 20px 0 8px;
}
.admin-header img { max-width: 110px; height: auto; border-radius: 8px; margin-bottom: 10px; }
.admin-header h1 { font-family: 'Barlow Condensed', sans-serif; font-size: 26px; color: var(--navy-900); }
.admin-header .code { color: var(--muted); font-size: 14px; margin-top: 4px; }

.faq-section h2 {
  text-align: center;
  font-family: 'Barlow Condensed', sans-serif;
  color: var(--navy-900);
  font-size: 22px;
  margin: 32px 0 16px;
}
.faq-section .admin-section summary { background: var(--navy-700); font-size: 14px; padding: 12px 16px; }
.faq-section .content { font-size: 13.5px; color: var(--text); }

/* =========================================================
   Estensioni: tabelle admin, upload PDF, elenco gare
   ========================================================= */

.icon-actions { display: flex; gap: 6px; flex-shrink: 0; }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; text-decoration: none; flex-shrink: 0;
  transition: filter 0.15s, transform 0.1s;
}
.icon-btn:hover { filter: brightness(1.1); }
.icon-btn:active { transform: scale(0.93); }
.icon-btn img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.icon-btn svg { width: 18px; height: 18px; color: #fff; }
.icon-btn.edit { background: var(--success); }
.icon-btn.dup  { background: var(--warn); }
.icon-btn.del  { background: var(--live-red); }

/* Distacchi pubblici — usato da apertura.php, schermo_grande.php, radio.php */
.distacco-pub-wrap {
  display: flex; flex-wrap: wrap; gap: 6px 16px;
  padding: 10px 16px; background: var(--bg); border-radius: var(--radius-sm);
  margin-top: 8px;
}
.distacco-pub-riga { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.distacco-pub-etichetta { font-weight: 700; color: var(--navy-900); }
.distacco-pub-gap { font-weight: 700; color: var(--accent); font-size: 13px; }
.distacco-pub-gap.testa { color: var(--success); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 3px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-dropzone:hover, .upload-dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.upload-dropzone .upload-icon { font-size: 2.4rem; margin-bottom: 10px; }
.upload-progress { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 16px; display: none; }
.upload-progress-bar { height: 100%; background: var(--accent); width: 0%; transition: width 0.3s; }

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.thumb-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-card); text-align: center;
}
.thumb-card img { width: 100%; height: 90px; object-fit: contain; background: var(--bg); padding: 6px; }
.thumb-card .thumb-label { padding: 8px; font-size: 11px; color: var(--muted); word-break: break-all; }

.gate-card { max-width: 420px; margin: 60px auto; text-align: center; }

/* ---------- Card azioni pericolose (svuota/cancella dati) ---------- */
.danger-card {
    max-width: 480px;
    margin: 20px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--live-red);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 28px 26px;
    text-align: center;
}
.info-box {
    background: #fde8ea;
    border: 1px solid #f6c4ca;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    margin: 14px 0;
}
.alert-box { padding: 13px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 600; text-align: left; }
.alert-box.success { background: #e6f6ec; color: var(--success); border: 1px solid #b7e6c8; }
.alert-box.error   { background: #fde8ea; color: var(--live-red); border: 1px solid #f6c4ca; }
.btn-danger {
    background: var(--live-red); color: #fff; border: none;
    padding: 14px 24px; border-radius: var(--radius-sm); cursor: pointer;
    font-weight: 700; font-size: 14px; width: 100%; margin-top: 6px;
}
.btn-danger:active { background: #b8202f; }
.btn-danger:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }

/* ---------- Upload per-tappa (GPX, planimetrie) ---------- */
.tappa-upload-row {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-card);
}
.tappa-upload-row .tappa-badge {
    background: var(--navy-900); color: #fff; font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: var(--radius-sm); flex-shrink: 0;
}
.tappa-upload-row .tappa-name { font-weight: 700; color: var(--text); font-size: 14px; }
.tappa-upload-row .file-status { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tappa-upload-row .file-status.ok { color: var(--success); }
.tappa-upload-row form { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.tappa-upload-row input[type="file"] { font-size: 12px; max-width: 180px; }

/* ---------- Nome squadra dentro il testo notizie (es. "(45)" risolto) ---------- */
.notizia-team {
    font-style: italic;
    font-weight: 500;
    color: var(--muted);
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.2px;
}

/* ---------- Coppia di card affiancate su desktop (Live Timing + Official Site) ---------- */
.card-row-pair {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-row-pair .race-card { flex: 1; margin-bottom: 0; }

@media (min-width: 700px) {
  .card-row-pair { flex-direction: row; }
}

/* ---------- Sezione Info & Servizi collassabile (apertura.php) ---------- */
.info-servizi-collapse { margin-top: 0; }
.info-servizi-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.info-servizi-summary::-webkit-details-marker { display: none; }
.info-servizi-summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-left: 8px;
  flex-shrink: 0;
}
.info-servizi-collapse[open] .info-servizi-summary::after {
  transform: rotate(-135deg);
}
.info-servizi-hint {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: none;
  letter-spacing: normal;
  margin-left: 6px;
}
.info-servizi-collapse[open] .info-servizi-hint { display: none; }

/* ---------- Card avanzamento tappa (file JSON simulazione) ---------- */
.stage-progress-card {
  background: var(--navy-900);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}
.stage-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.stage-progress-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.stage-progress-km {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent);
  white-space: nowrap;
}
.stage-progress-bar-wrap {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}
.stage-progress-bar {
  background: var(--accent);
  height: 100%;
  width: 0%;
  transition: width 0.6s ease;
}
