body { padding-top: var(--nav-h); }

/* ── HERO RACING ─────────────────────────────────────────── */
.racing-hero {
  min-height: 60vh;
  background: var(--dark);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 80px 80px 64px;
  position: relative; overflow: hidden;
}
.racing-hero::before {
  content: 'RACING';
  position: absolute; bottom: -40px; right: -20px;
  font-family: var(--font-display); font-size: 28vw;
  color: rgba(229,20,26,.04); line-height: 1; pointer-events: none;
  letter-spacing: -4px;
}
.racing-hero-grid {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg,transparent,transparent 79px,rgba(255,255,255,.012) 79px,rgba(255,255,255,.012) 80px),
              repeating-linear-gradient(0deg,transparent,transparent 79px,rgba(255,255,255,.012) 79px,rgba(255,255,255,.012) 80px);
}
.racing-hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-cond); font-size: 11px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase; color: var(--red);
  margin-bottom: 20px; position: relative; z-index: 1;
}
.racing-hero-badge::before { content: ''; width: 28px; height: 2px; background: var(--red); }
.racing-hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 130px);
  line-height: .88; letter-spacing: 1px; margin-bottom: 24px;
  position: relative; z-index: 1;
}
.racing-hero-title span { color: var(--red); }
.racing-hero-sub {
  font-size: 15px; font-weight: 300; color: var(--lgrey);
  max-width: 520px; line-height: 1.7; position: relative; z-index: 1;
}

/* ── TICKER ─────────────────────────────────────────────── */

/* ── STATS BAR ──────────────────────────────────────────── */
.racing-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border); border-bottom: 1px solid var(--border);
}
.racing-stat {
  background: var(--panel); padding: 32px 40px;
  display: flex; flex-direction: column; gap: 6px;
}
.racing-stat-val {
  font-family: var(--font-display); font-size: 44px;
  color: var(--red); letter-spacing: 1px; line-height: 1;
}
.racing-stat-label {
  font-family: var(--font-cond); font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; color: var(--grey);
}

/* ── CAMPEONATOS ─────────────────────────────────────────── */
#campeonatos { padding: 90px 80px; background: var(--black); }
.camp-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  margin-top: 48px;
}
.camp-card {
  background: var(--panel); padding: 40px 32px;
  position: relative; overflow: hidden;
  transition: background .25s;
}
.camp-card:hover { background: var(--panel2); }
.camp-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s;
}
.camp-card:hover::after { transform: scaleX(1); }
.camp-year {
  font-family: var(--font-display); font-size: 64px;
  color: rgba(255,255,255,.05); line-height: 1; margin-bottom: -16px;
  letter-spacing: 1px;
}
.camp-name {
  font-family: var(--font-display); font-size: 28px;
  letter-spacing: 1px; margin-bottom: 10px; line-height: 1;
}
.camp-name span { color: var(--red); }
.camp-desc {
  font-size: 13px; font-weight: 300; color: var(--grey);
  line-height: 1.65; margin-bottom: 20px;
}
.camp-meta {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.camp-tag {
  font-family: var(--font-cond); font-size: 10px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; background: var(--border); color: var(--grey);
}
.camp-tag.red { background: rgba(229,20,26,.15); color: var(--red); }

/* ── MOTOS DE CORRIDA ────────────────────────────────────── */
#motos-corrida { padding: 90px 80px; background: var(--dark); }
.motos-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  margin-top: 48px;
}
.moto-card {
  background: var(--panel); display: grid; grid-template-columns: 1fr 1fr;
  transition: background .25s;
}
.moto-card:hover { background: var(--panel2); }
.moto-img-area {
  background: var(--dark); min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; overflow: hidden; position: relative;
}

/* ═══════════════════════════════════════════════════════════
   🏍️ IMAGENS DAS MOTOS DE CORRIDA
   -------------------------------------------------------
   Para adicionar a imagem de cada moto:
   1. Faça upload da imagem no Firebase Storage
   2. Copie a URL pública gerada
   3. Substitua o atributo src= da tag <img> correspondente
   4. Ou cole a URL no campo "imageUrl" pelo painel Admin

   Exemplo:
   <img src="https://firebasestorage.googleapis.com/...sua-imagem.jpg"
        alt="Nome da moto" style="width:100%;height:100%;object-fit:cover">
   ═══════════════════════════════════════════════════════════ */

.moto-img-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; width: 100%; height: 100%;
  color: var(--grey); font-size: 14px;
}
.moto-img-placeholder span { font-family: var(--font-cond); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.moto-info { padding: 36px 32px; display: flex; flex-direction: column; justify-content: center; }
.moto-brand {
  font-family: var(--font-cond); font-size: 10px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}
.moto-name {
  font-family: var(--font-display); font-size: 28px; letter-spacing: 1px;
  line-height: 1; margin-bottom: 16px;
}
.moto-specs {
  list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px;
}
.moto-spec {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.spec-label { font-family: var(--font-cond); font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--grey); }
.spec-val { font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: 1px; color: var(--white); }
.moto-price { font-family: var(--font-display); font-size: 32px; color: var(--red); letter-spacing: 1px; margin-bottom: 16px; }
.moto-price small { font-size: 14px; color: var(--grey); }

/* ── PILOTOS / EQUIPE ────────────────────────────────────── */
#equipe { padding: 90px 80px; background: var(--black); }
.equipe-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  margin-top: 48px;
}
.piloto-card {
  background: var(--panel); overflow: hidden; transition: background .25s;
}
.piloto-card:hover { background: var(--panel2); }

/* ═══════════════════════════════════════════════════════════
   👤 IMAGENS DOS PILOTOS / EQUIPE
   -------------------------------------------------------
   Para adicionar foto de cada piloto:
   1. Faça upload no Firebase Storage
   2. Copie a URL pública
   3. Substitua o conteúdo de .piloto-img
      Exemplo:
      <div class="piloto-img">
        <img src="URL_DA_FOTO" alt="Nome do Piloto"
             style="width:100%;height:100%;object-fit:cover;object-position:top">
      </div>
   ═══════════════════════════════════════════════════════════ */

.piloto-img {
  height: 240px; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; overflow: hidden;
}
.piloto-body { padding: 24px 20px; }
.piloto-num {
  font-family: var(--font-display); font-size: 40px;
  color: rgba(229,20,26,.2); letter-spacing: 1px; line-height: 1; margin-bottom: -8px;
}
.piloto-name {
  font-family: var(--font-cond); font-size: 18px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px;
}
.piloto-role { font-size: 12px; color: var(--grey); margin-bottom: 12px; }
.piloto-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.piloto-tag {
  font-family: var(--font-cond); font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 3px 8px; background: var(--border); color: var(--grey);
}

/* ── CTA RACING ─────────────────────────────────────────── */
.racing-cta {
  background: var(--red); padding: 64px 80px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
}
.racing-cta-title {
  font-family: var(--font-display); font-size: clamp(32px, 4vw, 56px);
  letter-spacing: 1px; line-height: .95;
}
.racing-cta-sub { font-size: 14px; color: rgba(255,255,255,.75); margin-top: 8px; }
.btn-white {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--black); padding: 16px 32px;
  font-family: var(--font-cond); font-size: 13px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  transition: background .2s, transform .2s; flex-shrink: 0;
}
.btn-white:hover { background: #e0e0db; transform: translateX(3px); }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .racing-hero { padding: 60px 28px 48px; }
  #campeonatos, #motos-corrida, #equipe { padding: 64px 28px; }
  .racing-stats { grid-template-columns: repeat(2,1fr); }
  .camp-grid { grid-template-columns: 1fr; }
  .motos-grid { grid-template-columns: 1fr; }
  .moto-card { grid-template-columns: 1fr; }
  .equipe-grid { grid-template-columns: repeat(2,1fr); }
  .racing-cta { padding: 48px 28px; flex-direction: column; }
}
