/*
Theme Name: GA Racing
Theme URI:
Author: Antigravity
Description: High-performance theme for Gioele Arnaudo Racing, 1:1 Base44 Replica
Version: 1.1
*/

:root {
  --racing-red: #E8000D;
  --bg-dark: #0A0A0A;
  --surface-gray: #1A1A1A;
  --surface-card: #111111;
  --border-gray: #2A2A2A;
  --text-light: #F4F4F4;
  --text-muted: #aaaaaa;
  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 800;
  text-transform: uppercase;
  margin-top: 0;
}

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

/* Utility */
.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.text-red { color: var(--racing-red); }
.bg-red { background-color: var(--racing-red); }

/* =====================
   HEADER
   ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar {
  height: 4px;
  background: linear-gradient(90deg, #E8000D 0%, #FF4444 50%, #E8000D 100%);
  background-size: 200% 100%;
  animation: topBarSlide 3s linear infinite;
}
@keyframes topBarSlide {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.navbar {
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 80px;
  border-bottom: 1px solid var(--border-gray);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-badge {
  background-color: var(--racing-red);
  color: #fff;
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1.35rem;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  letter-spacing: 0.05em;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1.1;
}

.logo-text .light { color: #fff; font-size: 1.1rem; display: block; }
.logo-text .dark { color: var(--text-muted); font-size: 0.8rem; display: block; letter-spacing: 0.1em; }

.desktop-menu {
  display: none;
}
@media (min-width: 1024px) {
  .desktop-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
  }
}

.nav-link {
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--racing-red);
  transition: width 0.25s ease;
}
.nav-link:hover, .nav-link.active {
  color: #fff;
}
.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.social-icons-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border-gray);
}
.social-icons-header svg {
  fill: #555;
  width: 18px;
  height: 18px;
  transition: fill 0.2s ease, transform 0.2s ease;
}
.social-icons-header a:hover svg {
  fill: #fff;
  transform: scale(1.15);
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex !important;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}
@media (min-width: 1024px) {
  .mobile-toggle { display: none !important; }
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(10,10,10,0.98);
  border-bottom: 1px solid var(--border-gray);
  padding: 1.5rem 2rem;
  gap: 1rem;
}
.mobile-menu.open {
  display: flex;
}
.mobile-menu .nav-link {
  font-size: 1.3rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-gray);
}
.mobile-menu .nav-link:last-child { border-bottom: none; }

/* =====================
   HERO SECTION
   ===================== */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* Racing background decoration */
.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 120%;
  background: linear-gradient(135deg, transparent 30%, rgba(232,0,13,0.04) 100%);
  border-left: 1px solid rgba(232,0,13,0.1);
  transform: skewX(-8deg);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 120px,
      rgba(255,255,255,0.012) 120px,
      rgba(255,255,255,0.012) 121px
    );
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}
@media(min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 4rem;
  }
}

.hero-subtitle {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--racing-red);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.hero-subtitle::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--racing-red);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(3.5rem, 9vw, 6.5rem);
  line-height: 0.88;
  margin: 1rem 0 1.5rem;
  letter-spacing: -0.02em;
}
.hero-title .white-text { color: #fff; display: block; }
.hero-title .red-text { color: var(--racing-red); display: block; }

.hero-tagline {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  font-style: italic;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
  background-color: var(--racing-red);
  color: #fff;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  clip-path: polygon(18px 0, 100% 0, calc(100% - 18px) 100%, 0 100%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary:hover {
  background-color: #ff1a1a;
  box-shadow: 0 0 30px rgba(232,0,13,0.4);
  transform: translateY(-1px);
}
.btn-transparent {
  background: transparent;
  color: #fff;
  border-bottom: 2px solid transparent;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  padding-bottom: 0.2rem;
  transition: border-color 0.2s, color 0.2s;
  letter-spacing: 0.05em;
}
.btn-transparent:hover {
  border-color: var(--racing-red);
  color: var(--racing-red);
}

/* Stats Grid */
.hero-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Pilot image placeholder */
.pilot-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface-card);
  border: 1px solid var(--border-gray);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pilot-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pilot-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pilot-image-placeholder svg {
  width: 48px;
  height: 48px;
  stroke: #333;
  fill: none;
  stroke-width: 1.5;
}
.pilot-image-placeholder span {
  color: #333;
  font-size: 0.8rem;
}

/* Race number badge on image */
.pilot-image-wrap .race-number-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--racing-red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 2rem;
  padding: 0.3rem 0.8rem;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card {
  background: linear-gradient(135deg, var(--surface-card) 0%, #161616 100%);
  border: 1px solid var(--border-gray);
  border-top: 3px solid var(--racing-red);
  border-radius: 0.75rem;
  padding: 1.5rem 1.25rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  border-color: var(--racing-red);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.stat-number {
  font-size: 2.8rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: #fff;
}
.stat-label {
  color: var(--racing-red);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 0.4rem;
  letter-spacing: 0.1em;
}
.stat-desc { color: #666; font-size: 0.82rem; margin-top: 0.2rem; }

/* =====================
   INFO CARDS
   ===================== */
.info-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 4rem 0;
}
@media(min-width: 768px) {
  .info-cards { grid-template-columns: repeat(3, 1fr); }
}

.card-racing {
  background: var(--surface-gray);
  border: 1px solid var(--border-gray);
  border-radius: 0.75rem;
  padding: 2.5rem 2rem;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}
.card-racing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--racing-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.card-racing:hover::before { transform: scaleX(1); }
.card-racing:hover {
  border-color: rgba(232,0,13,0.5);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.card-icon {
  color: var(--racing-red);
  margin-bottom: 1.5rem;
  display: inline-flex;
  background: rgba(232,0,13,0.08);
  padding: 1rem;
  border-radius: 0.5rem;
}
.card-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.card-title { font-size: 1.8rem; margin-bottom: 0.75rem; }
.card-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.6; }

/* =====================
   SECTION HEADER
   ===================== */
.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-header .line {
  width: 40px;
  height: 2px;
  background: var(--racing-red);
  flex-shrink: 0;
}
.section-header .title {
  color: var(--racing-red);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* =====================
   NEWS SECTION
   ===================== */
.news-section { margin-top: 3rem; }

.news-featured {
  background: var(--surface-gray);
  border: 1px solid var(--border-gray);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s;
}
.news-featured:hover { border-color: rgba(232,0,13,0.4); }

@media(min-width: 768px) {
  .news-featured { flex-direction: row; }
}

.news-img {
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  width: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.news-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(232,0,13,0.03) 20px,
    rgba(232,0,13,0.03) 21px
  );
}
.news-img-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.news-img-logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 3.5rem;
  color: #fff;
  line-height: 1;
  text-align: center;
}
.news-img-logo span { color: var(--racing-red); }
.news-img-tag {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
}

@media(min-width: 768px) {
  .news-img { width: 38%; min-height: auto; }
}

.news-content {
  padding: 2.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-badges {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.badge {
  background: #fdf526;
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}
.badge.red { background: var(--racing-red); color: white; }
.news-date { color: var(--text-muted); font-size: 0.85rem; }
.news-featured h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: #fff;
}
@media(min-width: 768px) {
  .news-featured h3 { font-size: 2.4rem; }
}
.news-featured p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.read-more {
  color: var(--racing-red);
  font-weight: 800;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s;
  letter-spacing: 0.05em;
}
.read-more:hover { gap: 1rem; }

/* =====================
   REACH SECTION
   ===================== */
.reach-section {
  margin-top: 4rem;
  background: var(--surface-gray);
  border: 1px solid var(--border-gray);
  border-radius: 0.75rem;
  padding: 3rem;
}
.reach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-gray);
}
@media(min-width: 640px) { .reach-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1024px) { .reach-grid { grid-template-columns: repeat(4, 1fr); } }

.reach-item {
  text-align: center;
  padding: 1rem 0;
  transition: transform 0.2s;
}
.reach-item:hover { transform: translateY(-3px); }

@media(min-width: 1024px) {
  .reach-item + .reach-item {
    border-left: 1px solid var(--border-gray);
  }
}

.reach-icon {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: inline-flex;
}
.reach-icon svg { width: 28px; height: 28px; fill: currentColor; }
.reach-number {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: #fff;
}
.reach-label {
  color: var(--racing-red);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
}
.reach-desc {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.reach-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.reach-total-number {
  color: var(--racing-red);
  font-size: 3.5rem;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
}
.reach-total-text {
  font-size: 1.3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  color: #fff;
}

/* =====================
   NEWSLETTER
   ===================== */
.newsletter-section {
  margin: 4rem auto;
  max-width: 760px;
  background: var(--surface-card);
  border: 1px solid var(--border-gray);
  border-top: 3px solid var(--racing-red);
  padding: 3rem 2.5rem;
  border-radius: 1rem;
}
.newsletter-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2rem;
}
.newsletter-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.newsletter-header p { color: var(--text-muted); font-size: 1rem; }
.newsletter-form { display: flex; flex-direction: column; gap: 0.75rem; }
.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-gray);
  color: #fff;
  padding: 0.9rem 1rem;
  border-radius: 0.5rem;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--racing-red);
  background: rgba(232,0,13,0.03);
}
.form-input::placeholder { color: #555; }
.btn-block {
  width: 100%;
  justify-content: center;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

/* =====================
   FOOTER
   ===================== */
.site-footer {
  border-top: 1px solid var(--border-gray);
  padding: 2.5rem 0;
  margin-top: 5rem;
  background: #060606;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}
@media(min-width: 768px) {
  .footer-inner { flex-direction: row; }
}
.footer-logo { text-align: center; }
@media(min-width: 768px) { .footer-logo { text-align: left; } }
.footer-logo-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1.4rem;
  display: block;
  color: #fff;
}
.footer-logo-desc {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.2rem;
  display: block;
}
.footer-social { display: flex; gap: 1.25rem; }
.footer-social svg { width: 18px; height: 18px; fill: #444; transition: fill 0.2s, transform 0.2s; }
.footer-social a:hover svg { fill: #fff; transform: scale(1.2); }
.footer-copyright { color: #444; font-size: 0.85rem; }

/* =====================
   ANIMAZIONI INGRESSO
   ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-up {
  animation: fadeUp 0.7s ease both;
}
.animate-up-delay-1 { animation: fadeUp 0.7s 0.1s ease both; }
.animate-up-delay-2 { animation: fadeUp 0.7s 0.2s ease both; }
.animate-up-delay-3 { animation: fadeUp 0.7s 0.3s ease both; }
.animate-up-delay-4 { animation: fadeUp 0.7s 0.4s ease both; }

/* =====================
   PAGINA BIOGRAFIA
   ===================== */

/* Hero */
.bio-hero {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-gray);
}
.bio-hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -5%; width: 55%; height: 120%;
  background: linear-gradient(135deg, transparent 30%, rgba(232,0,13,0.04) 100%);
  border-left: 1px solid rgba(232,0,13,0.1);
  transform: skewX(-8deg);
  pointer-events: none;
}
.bio-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
  align-items: center;
}
@media(min-width: 1024px) {
  .bio-hero-inner { grid-template-columns: 1.3fr 1fr; gap: 4rem; }
}

.bio-hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.88;
  margin: 0.75rem 0 1rem;
  letter-spacing: -0.02em;
}
.bio-hero-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
}
.bio-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.bio-badge {
  background: var(--racing-red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1.3rem;
  padding: 0.3rem 0.9rem;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.bio-badge span { color: rgba(255,255,255,0.7); margin-right: 1px; }
.bio-badge-text {
  border: 1px solid var(--border-gray);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

.bio-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border-gray);
}
.bio-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.bio-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 60%);
}

/* Profilo */
.bio-profile {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border-gray);
}
.bio-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media(min-width: 640px) { .bio-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1024px) { .bio-stats-grid { grid-template-columns: repeat(3, 1fr); } }

.bio-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface-gray);
  border: 1px solid var(--border-gray);
  border-left: 3px solid var(--racing-red);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}
.bio-stat-item:hover {
  border-color: var(--racing-red);
  transform: translateX(4px);
}
.bio-stat-item svg {
  width: 24px; height: 24px;
  fill: var(--racing-red);
  flex-shrink: 0;
}
.bio-stat-content { display: flex; flex-direction: column; }
.bio-stat-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.bio-stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-top: 0.15rem;
}

.bio-text-block {
  background: var(--surface-gray);
  border: 1px solid var(--border-gray);
  border-radius: 0.75rem;
  padding: 2rem 2.5rem;
}
.bio-text-block p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.bio-text-block p:last-child { margin-bottom: 0; }
.bio-text-block strong { color: #fff; }
.bio-text-block em { color: var(--racing-red); font-style: italic; }

/* Timeline */
.bio-timeline-section { padding: 4rem 0 6rem; }

.bio-timeline {
  position: relative;
  margin-top: 2rem;
}
.bio-timeline::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--racing-red), rgba(232,0,13,0.1));
}
@media(max-width: 767px) {
  .bio-timeline::before { left: 40px; }
}

.bio-timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.bio-timeline-item:last-child { margin-bottom: 0; }

.bio-year-badge {
  flex-shrink: 0;
  width: 80px;
  background: var(--racing-red);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 900;
  font-style: italic;
  font-size: 1.1rem;
  text-align: center;
  padding: 0.5rem 0.25rem;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  align-self: flex-start;
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}
@media(max-width: 767px) {
  .bio-year-badge { width: 56px; font-size: 0.9rem; }
}

.bio-year-card {
  flex: 1;
  background: var(--surface-gray);
  border: 1px solid var(--border-gray);
  border-radius: 0.75rem;
  padding: 1.75rem 2rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.bio-year-card:hover {
  border-color: rgba(232,0,13,0.4);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

.bio-year-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.bio-year-header h3 {
  font-size: 1.6rem;
  margin: 0;
  color: #fff;
}
.bio-position-badge {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.bio-year-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-gray);
}
.bio-meta-item { display: flex; flex-direction: column; gap: 0.15rem; }
.bio-meta-label {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--racing-red);
  text-transform: uppercase;
}
.bio-meta-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}
.bio-year-desc { color: var(--text-muted); font-size: 1rem; line-height: 1.7; }
.bio-year-desc p { margin: 0; }

.bio-no-years {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  border: 1px dashed var(--border-gray);
  border-radius: 0.75rem;
}
.bio-no-years a { color: var(--racing-red); }
