/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:  #1a3a2a;
  --green-mid:   #2d6a4f;
  --green-light: #52b788;
  --green-pale:  #d8f3dc;
  --green-text:  #7fc99a;
  --amber:       #f4a261;
  --text:        #1a1a1a;
  --text-muted:  #555;
  --text-light:  #888;
  --border:      #ddd;
  --bg:          #f9f9f7;
  --white:       #ffffff;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow:      0 2px 8px rgba(0,0,0,.08);
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

a { color: var(--green-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 1.8rem; font-weight: 600; }
h2 { font-size: 1.4rem; font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

/* ── Layout ────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.page-wrap { padding: 28px 0 60px; }

.grid-2 { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
@media(max-width:768px){ .grid-2 { grid-template-columns: 1fr; } }

/* ── Navbar ────────────────────────────────────────────────────── */
.navbar {
  background: var(--green-dark);
  color: white;
  padding: 0 20px;
  position: sticky; top: 0; z-index: 100;
}
.navbar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; height: 56px; gap: 20px;
}
.navbar-brand {
  font-size: 1.1rem; font-weight: 700;
  color: var(--green-text); display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.navbar-brand:hover { text-decoration: none; color: white; }
.navbar-links { display: flex; gap: 6px; margin-left: auto; }
.navbar-links a {
  color: #b0c8bc; padding: 6px 12px; border-radius: var(--radius);
  font-size: 14px; transition: background .15s;
}
.navbar-links a:hover, .navbar-links a.active { background: rgba(255,255,255,.1); color: white; text-decoration: none; }
.navbar-admin {
  background: rgba(82,183,136,.2); color: var(--green-text);
  padding: 5px 12px; border-radius: var(--radius); font-size: 13px;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: white; padding: 48px 20px 36px;
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero h1 { font-size: 2.2rem; margin-bottom: 10px; }
.hero p { color: #b0c8bc; font-size: 1.05rem; margin-bottom: 24px; max-width: 560px; }
.hero-search {
  display: flex; gap: 8px; max-width: 520px; margin-bottom: 28px;
}
.hero-search input {
  flex: 1; padding: 10px 16px; border-radius: var(--radius);
  border: none; font-size: 15px;
  background: rgba(255,255,255,.15); color: white;
}
.hero-search input::placeholder { color: rgba(255,255,255,.5); }
.hero-search button { padding: 10px 20px; }
.hero-stats { display: flex; gap: 32px; }
.hstat .n { font-size: 1.8rem; font-weight: 700; color: var(--green-text); }
.hstat .l { font-size: 13px; color: #7dbaa0; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 9px 18px;
  border-radius: var(--radius); border: none; cursor: pointer;
  font-size: 14px; font-weight: 500; transition: filter .15s;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn-primary { background: var(--green-mid); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--green-mid); color: var(--green-mid); }
.btn-danger { background: #c0392b; color: white; }
.btn-sm { padding: 5px 12px; font-size: 13px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 20px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }

/* ── Race Card ─────────────────────────────────────────────────── */
.race-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--border); padding: 20px;
  box-shadow: var(--shadow); transition: border-color .2s;
  display: block; color: inherit; text-decoration: none;
}
.race-card:hover { border-color: var(--green-mid); text-decoration: none; color: inherit; }
.race-card + .race-card { margin-top: 14px; }

.race-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.race-name { font-size: 1.15rem; font-weight: 700; }
.race-score { font-size: 1.5rem; font-weight: 700; color: var(--green-mid); }
.race-score small { font-size: 13px; color: var(--text-muted); }
.race-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.race-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; line-height: 1.5; }

.distances-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dist-badge {
  font-size: 12px; padding: 3px 10px; border-radius: 20px;
  background: var(--green-pale); color: var(--green-mid); font-weight: 500;
}

.ratings-mini { display: flex; gap: 16px; flex-wrap: wrap; }
.ratings-mini-item { font-size: 12px; color: var(--text-muted); }
.ratings-mini-item .val { font-weight: 600; color: var(--text); }

/* ── Stars ─────────────────────────────────────────────────────── */
.stars { color: #ccc; font-size: 1.1rem; letter-spacing: 2px; }
.stars .on { color: var(--amber); }

/* Star rating input */
.star-rating { display: flex; flex-direction: row-reverse; gap: 4px; }
.star-rating input { display: none; }
.star-rating label {
  font-size: 1.6rem; color: #ddd; cursor: pointer; transition: color .1s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--amber); }

/* ── Score Badge ───────────────────────────────────────────────── */
.score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.1rem; font-weight: 700; color: white;
}
.score-5 { background: #27ae60; }
.score-4 { background: #52b788; }
.score-3 { background: #f4a261; }
.score-2 { background: #e67e22; }
.score-1 { background: #c0392b; }
.score-0 { background: #bbb; }

/* ── Rating Blocks ─────────────────────────────────────────────── */
.rating-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
  margin-bottom: 20px;
}
.rating-block {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; background: var(--white);
}
.rating-block-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px;
}
.rating-block h4 { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.rating-block .comment-text {
  font-size: 14px; color: var(--text); margin-top: 8px;
  font-style: italic; border-left: 3px solid var(--green-pale); padding-left: 10px;
}
.no-rating { color: var(--text-light); font-size: 13px; }

/* ── Ristori Section ───────────────────────────────────────────── */
.ristori-by-distance { margin-bottom: 28px; }
.ristori-by-distance h3 { margin-bottom: 12px; }
.ristori-dist-block {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 14px;
}
.ristori-dist-header {
  background: var(--green-dark); color: white;
  padding: 10px 16px; display: flex; justify-content: space-between; align-items: center;
}
.ristori-dist-header h4 { font-size: 14px; }
.ristori-dist-body { padding: 14px 16px; }
.ristoro-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f0f0f0;
}
.ristoro-row:last-child { border-bottom: none; }
.ristoro-km { font-weight: 700; font-size: 13px; color: var(--green-mid); min-width: 50px; }
.ristoro-name { font-size: 14px; }
.ristoro-type {
  font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: var(--green-pale); color: var(--green-mid); white-space: nowrap;
}
.ristoro-notes { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ── Reviews ───────────────────────────────────────────────────── */
.review-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; margin-bottom: 16px;
}
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.review-author { font-weight: 700; font-size: 1rem; }
.review-sub { font-size: 13px; color: var(--text-muted); }
.review-dist { display: inline-block; padding: 2px 10px; border-radius: 12px; background: var(--green-pale); color: var(--green-mid); font-size: 12px; margin-top: 4px; }

.review-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.review-cat { background: #f9f9f9; border-radius: var(--radius); padding: 10px 12px; }
.review-cat-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 4px; }
.review-cat-score { display: flex; align-items: center; gap: 8px; }
.review-cat-comment { font-size: 13px; color: var(--text-muted); margin-top: 5px; font-style: italic; }

.review-general { background: #f9f9f9; border-radius: var(--radius); padding: 12px 14px; font-size: 14px; line-height: 1.6; }

/* ── Forum / Comments ──────────────────────────────────────────── */
.comment-list { margin-bottom: 28px; }
.comment-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-mid); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.comment-body .meta { font-size: 13px; color: var(--text-muted); }
.comment-body .meta strong { color: var(--text); }
.comment-body p { margin-top: 4px; font-size: 14px; }

/* ── Forms ─────────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; background: white;
  transition: border-color .2s, box-shadow .2s;
}
.form-group select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232d6a4f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: var(--text-light); margin-top: 4px; }

.rating-form-block {
  background: #f9f9f9; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
}
.rating-form-block h4 { margin-bottom: 4px; font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.rating-form-block p.hint { font-size: 13px; color: var(--text-light); margin-bottom: 10px; }

/* ── Sidebar ───────────────────────────────────────────────────── */
.sidebar-block {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 18px;
  box-shadow: var(--shadow); margin-bottom: 18px;
}
.sidebar-block h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 12px; }

.top-list { list-style: none; }
.top-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.top-list li:last-child { border-bottom: none; }
.top-rank { font-size: 11px; font-weight: 700; color: var(--text-light); width: 18px; }
.top-name { flex: 1; }
.top-score { font-weight: 700; color: var(--green-mid); }

.filter-row { margin-bottom: 14px; }
.filter-row label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; color: var(--text-muted); }
.filter-row select,
.filter-row input[type="text"] {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; background: white; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
}
.filter-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%232d6a4f' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}
.filter-row select:hover,
.filter-row input[type="text"]:hover {
  border-color: #b8d0c4;
}
.filter-row select:focus,
.filter-row input[type="text"]:focus {
  outline: none; border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}
.filter-row select option { padding: 8px; }

/* ── Admin ─────────────────────────────────────────────────────── */
.admin-header { background: var(--green-dark); color: white; padding: 16px 20px; margin-bottom: 28px; border-radius: var(--radius-lg); }
.admin-header h1 { font-size: 1.4rem; }

.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th { background: var(--green-dark); color: white; padding: 12px 16px; font-size: 13px; text-align: left; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid #f0f0f0; font-size: 14px; vertical-align: top; }
.admin-table tr:hover td { background: #fafaf8; }
.admin-table .actions { display: flex; gap: 6px; }

.admin-nav { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-stat { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow); }
.admin-stat .num { font-size: 2rem; font-weight: 700; color: var(--green-mid); }
.admin-stat .lbl { font-size: 13px; color: var(--text-muted); }

/* ── Tabs ──────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn {
  padding: 10px 18px; background: transparent; border: none;
  font-size: 14px; font-weight: 500; cursor: pointer; color: var(--text-muted);
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color .15s;
}
.tab-btn.active { color: var(--green-mid); border-bottom-color: var(--green-mid); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Alerts ────────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 14px; }
.alert-success { background: #d8f3dc; color: #1b4332; border: 1px solid #b7e4c7; }
.alert-danger  { background: #ffe0e0; color: #7b2020; border: 1px solid #ffc0c0; }
.alert-info    { background: #e8f4fd; color: #1a5276; border: 1px solid #b8d8f8; }

/* ── Section titles ────────────────────────────────────────────── */
.section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--green-pale); }
.section-title span { color: var(--green-mid); }

/* ── Breadcrumb ────────────────────────────────────────────────── */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--green-mid); }
.breadcrumb span { color: var(--text-light); margin: 0 6px; }

/* ── Utilities ─────────────────────────────────────────────────── */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.badge-type {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 10px;
  background: #e8f4fd; color: #185fa5; font-weight: 600;
}
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 10px; }

.ristori-avg-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.ristori-avg-pill {
  background: var(--green-pale); color: var(--green-mid);
  padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 600;
}

/* ── Organizzatore badge ───────────────────────────────────────────────────── */
.navbar-organizer {
  background: rgba(244,162,97,.2); color: #f4a261;
  padding: 5px 12px; border-radius: var(--radius); font-size: 13px;
}
.org-welcome {
  background: linear-gradient(135deg, #8B4513 0%, #f4a261 100%);
  color: white; padding: 12px 20px; font-size: 14px;
  display: flex; justify-content: space-between; align-items: center;
}

/* ── Ads ───────────────────────────────────────────────────────────────────── */
.ad-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-light); margin-bottom: 6px;
}

/* Banner orizzontale */
.ad-banner {
  margin: 20px 0; padding: 10px;
  border-radius: var(--radius); background: #fafafa;
  border: 1px dashed var(--border);
  text-align: center;
}
.ad-banner.ad-amazon { text-align: left; }

/* Sidebar Amazon */
.ad-sidebar-amazon { border-top: 3px solid var(--amber); }
.amazon-sidebar-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; border-bottom: 1px solid #f0f0f0;
  font-size: 13px; color: var(--text); text-decoration: none;
}
.amazon-sidebar-item:hover { color: var(--green-mid); }
.amazon-sidebar-item:last-of-type { border-bottom: none; }
.amazon-disclaimer {
  font-size: 10px; color: var(--text-light);
  margin-top: 8px; text-align: right;
}

/* Amazon strip orizzontale */
.amazon-strip {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px;
}
.amazon-item {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 20px;
  font-size: 13px; color: var(--text); text-decoration: none;
  background: white; transition: border-color .15s;
}
.amazon-item:hover { border-color: var(--amber); color: var(--green-mid); text-decoration: none; }
.amazon-icon { font-size: 1.1rem; }
.amazon-label { font-size: 12px; }

/* In-content */
.ad-incontent { margin: 24px 0; }
.ad-incontent-amazon {
  margin: 20px 0; padding: 12px 14px;
  background: #fffbf5; border: 1px solid #f4e0b5;
  border-radius: var(--radius-lg);
}
.ad-sidebar { margin-bottom: 18px; }

/* ── Servizi gara ──────────────────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media(max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-item {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 14px;
}
.service-item:last-child { border-bottom: none; }
.service-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── Base Vita badge ───────────────────────────────────────────────────────── */
.base-vita-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 8px;
  background: #faeeda;
  color: #854f0b;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Bib pickup card ───────────────────────────────────────────────────────── */
.bib-pickup-card {
  border-left: 4px solid var(--amber);
}

/* ── Prezzi iscrizione ─────────────────────────────────────────────────────── */
.price-box {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 12px;
}
.price-current {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.price-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; }
.price-value { font-size: 1.4rem; font-weight: 700; color: var(--green-dark); }
.price-tier-name {
  font-size: 12px; padding: 2px 10px; border-radius: 10px;
  background: var(--green-mid); color: white; font-weight: 600;
}
.price-deadline { font-size: 12px; color: var(--text-muted); }
.price-tiers-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.price-tier-chip {
  font-size: 11px; padding: 3px 10px; border-radius: 10px;
  background: white; border: 1px solid var(--border); color: var(--text-muted);
}
.price-tier-chip.active {
  border-color: var(--green-mid); color: var(--green-mid); font-weight: 600;
}

/* ── Error indicator dot ───────────────────────────────────────────────────── */
.error-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #e74c3c;
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: middle;
  animation: error-pulse 2s infinite;
}
@keyframes error-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(231,76,60,.5); }
  50% { opacity: .7; box-shadow: 0 0 0 4px rgba(231,76,60,0); }
}

/* ── Link classifiche ─────────────────────────────────────────────────────── */
.results-link-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 10px;
  background: var(--green-mid);
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.results-link-badge:hover {
  background: var(--green-dark);
  text-decoration: none;
  color: white;
}

/* ── Flag Demo/Provvisorio ─────────────────────────────────────────────────── */
.badge-flag {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; margin-left: 6px; cursor: help;
  vertical-align: middle;
}
.badge-demo, .badge-provisional { opacity: .85; }

/* Pill versione testuale (usata nella pagina pubblica) */
.flag-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: 10px; margin-left: 6px; vertical-align: middle;
}
.flag-pill.demo { background: #e8e3f7; color: #5b3aa8; }
.flag-pill.provisional { background: #fff3da; color: #9a6b00; }

/* ── Stato gara: passata/futura ────────────────────────────────────────────── */
.race-status-icon {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; margin-left: 6px; cursor: help; vertical-align: middle;
}
