/* ============================================
   MORETTI REGISTRY — GLOBAL STYLESHEET
   Two universes: Moretti (cold) + Fiat (warm)
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: #1a1a1a; line-height: 1.6; -webkit-font-smoothing: antialiased; max-width: 1400px; margin: 0 auto; background: #0A0A0C; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }

/* --- CONTAINER --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media(min-width:640px) { .container { padding: 0 1.5rem; } }
@media(min-width:1024px) { .container { padding: 0 2rem; } }

/* ============================================
   HEADER / NAV
   ============================================ */
.header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0,0,0,0.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.header-moretti { background: rgba(255,255,255,0.97); }
.header-fiat { background: rgba(255,255,255,0.97); }
.header-home { background: rgba(255,255,255,0.97); }

.logo { display: flex; align-items: center; }
.logo-img { height: 36px; width: auto; }

.nav-desktop { display: none; align-items: center; gap: 2rem; }
@media(min-width:768px) { .nav-desktop { display: flex; } }
.nav-link { font-size: 0.85rem; color: #8A8B92; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: #0A0A0C; font-weight: 500; }
.header-fiat .nav-link { font-family: 'DM Sans', sans-serif; color: #B8956E; }
.header-fiat .nav-link:hover, .header-fiat .nav-link.active { color: #4A3520; }

.header-right { display: flex; align-items: center; gap: 1rem; }
.back-link { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: #8A8B92; transition: color 0.2s; }
.back-link:hover { color: #0A0A0C; }

.menu-btn { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: #0A0A0C; transition: 0.2s; }
@media(min-width:768px) { .menu-btn { display: none; } }

.mobile-nav { display: none; padding: 0.75rem 1rem; border-top: 1px solid rgba(0,0,0,0.06); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 0.5rem 0; font-size: 0.85rem; color: #0A0A0C; }
.mobile-sep { border-top: 1px solid rgba(0,0,0,0.06); margin: 0.5rem 0; }
.back-link-mobile { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: #8A8B92; }

/* ============================================
   HOMEPAGE
   ============================================ */
.homepage { }

/* Hero Carousel — full viewport */
.hero { position: relative; height: calc(100vh - 56px); overflow: hidden; background: #000; }
.swiper-hero { width: 100%; height: 100%; }
.swiper-hero .swiper-slide { width: 100%; height: 100%; }
.hero-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: flex-start; pointer-events: none; padding-left: 2rem; }
@media(min-width:768px) { .hero-overlay { padding-left: 4rem; } }
.hero-text-panel { text-align: left; color: #fff; padding: 1.5rem 2rem; border-radius: 0.75rem; backdrop-filter: blur(12px); background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08); max-width: 22rem; }
.hero-kicker { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.5; margin-bottom: 0.75rem; font-weight: 300; }
@media(min-width:640px) { .hero-kicker { font-size: 0.7rem; } }
.hero-title { font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; font-weight: 400; letter-spacing: 0.05em; margin-bottom: 0.75rem; text-shadow: 0 2px 4px rgba(0,0,0,0.4); line-height: 1.2; }
@media(min-width:640px) { .hero-title { font-size: 2.5rem; } }
@media(min-width:768px) { .hero-title { font-size: 3rem; } }
.hero-subtitle { font-size: 0.85rem; opacity: 0.5; font-style: italic; font-weight: 300; }
@media(min-width:640px) { .hero-subtitle { font-size: 1rem; } }

.swiper-hero .swiper-button-prev, .swiper-hero .swiper-button-next { color: #fff; width: 50px; height: 50px; background: rgba(0,0,0,0.4); border-radius: 50%; }
.swiper-hero .swiper-button-prev::after, .swiper-hero .swiper-button-next::after { font-size: 1.4rem; font-weight: 700; }
.swiper-hero .swiper-button-prev:hover, .swiper-hero .swiper-button-next:hover { background: rgba(0,0,0,0.7); }

.scroll-indicator { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 10; color: rgba(255,255,255,0.3); text-align: center; }
.scroll-indicator p { font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.25rem; }
.scroll-indicator svg { margin: 0 auto; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* Swiper pagination */
.swiper-hero .swiper-pagination-bullet { background: #fff; opacity: 0.4; }
.swiper-hero .swiper-pagination-bullet-active { opacity: 1; }

/* Universe Sections — text 30% + carousel 70% */
.universe-section { display: flex; flex-direction: column; }
@media(min-width:768px) { .universe-section { flex-direction: row; min-height: 50vh; } }

.universe-text { flex: 0 0 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2rem; }
@media(min-width:768px) { .universe-text { flex: 0 0 30%; padding: 2.5rem; } }

.universe-text-moretti { background: #0A0A0C; color: #E8E4DE; }
.universe-text-fiat { background: #D4622B; color: #fff; }

.universe-dates { font-size: 0.55rem; letter-spacing: 0.25em; text-transform: uppercase; opacity: 0.4; margin-bottom: 0.75rem; }
@media(min-width:640px) { .universe-dates { font-size: 0.6rem; } }

.universe-name-moretti { font-family: 'Playfair Display', Georgia, serif; font-size: 1.75rem; font-weight: 400; letter-spacing: 0.05em; margin-bottom: 0.5rem; line-height: 1.2; }
@media(min-width:640px) { .universe-name-moretti { font-size: 2rem; } }
.universe-name-fiat { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 0.5rem; }
@media(min-width:640px) { .universe-name-fiat { font-size: 1.5rem; } }

.universe-desc { font-size: 0.8rem; opacity: 0.5; margin-bottom: 1.5rem; line-height: 1.5; }

.universe-cta { display: inline-block; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; padding: 0.75rem 2rem; border: 2px solid currentColor; transition: all 0.3s; font-weight: 500; text-align: center; }
.universe-cta:hover { background: rgba(255,255,255,0.15); }
.universe-cta-fiat { border-radius: 999px; font-family: 'Space Grotesk', sans-serif; letter-spacing: 0.2em; }

.universe-logo { margin-top: 2rem; max-width: 120px; height: auto; opacity: 0.85; }
@media(min-width:640px) { .universe-logo { max-width: 150px; } }

.universe-carousel { flex: 1; position: relative; min-height: 400px; height: 400px; overflow: hidden; }
@media(min-width:768px) { .universe-carousel { height: auto; } }
.universe-carousel-moretti { background: #0A0A0C; }
.universe-carousel-fiat { background: #3A2510; }
.swiper-universe { position: absolute; inset: 0; width: 100%; height: 100%; }
.swiper-universe .swiper-slide { height: 100%; }
.universe-slide-img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.swiper-universe .swiper-button-prev, .swiper-universe .swiper-button-next { color: #fff; width: 46px; height: 46px; background: rgba(0,0,0,0.4); border-radius: 50%; }
.swiper-universe .swiper-button-prev::after, .swiper-universe .swiper-button-next::after { font-size: 1.2rem; font-weight: 700; }
.swiper-universe .swiper-button-prev:hover, .swiper-universe .swiper-button-next:hover { background: rgba(0,0,0,0.7); }
.swiper-universe .swiper-pagination-bullet { background: #fff; opacity: 0.4; }
.swiper-universe .swiper-pagination-bullet-active { opacity: 1; }

/* ============================================
   HERO SECTIONS (Registry, Racing, Docs)
   ============================================ */
.hero-moretti { background: #0A0A0C; padding: 2rem 0; }
@media(min-width:768px) { .hero-moretti { padding: 3rem 0; } }
.hero-moretti .hero-content { display: flex; align-items: center; justify-content: space-between; }
.hero-moretti .hero-logo { height: 4rem; width: auto; opacity: 0.7; }
@media(min-width:768px) { .hero-moretti .hero-logo { height: 5rem; } }
.hero-fiat { background: linear-gradient(135deg, #D4622B, #B5521F); padding: 2rem 0; }
@media(min-width:768px) { .hero-fiat { padding: 3rem 0; } }
.hero-fiat .hero-content { display: flex; align-items: center; justify-content: space-between; }
.hero-fiat .hero-logo { height: 4rem; width: auto; opacity: 0.85; }
@media(min-width:768px) { .hero-fiat .hero-logo { height: 5rem; } }

.hero-content .page-title { font-size: 1.875rem; font-weight: 400; margin-bottom: 0.75rem; }
@media(min-width:768px) { .hero-content .page-title { font-size: 2.25rem; } }
.hero-moretti .page-title { font-family: 'Playfair Display', Georgia, serif; color: #E8E4DE; }
.hero-fiat .page-title { font-family: 'Space Grotesk', sans-serif; color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 1.5rem; }
@media(min-width:768px) { .hero-fiat .page-title { font-size: 1.875rem; } }

.hero-moretti .page-desc { color: #8A8B92; font-size: 0.85rem; max-width: 36rem; }
.hero-fiat .page-desc { color: rgba(255,255,255,0.6); font-size: 0.85rem; font-family: 'DM Sans', sans-serif; max-width: 36rem; }

/* ============================================
   FILTER BAR
   ============================================ */
.filters-bar { position: sticky; top: 56px; z-index: 40; border-bottom: 1px solid rgba(0,0,0,0.06); }
.page-moretti .filters-bar { background: #F2F0EB; }
.page-fiat-moretti .filters-bar { background: #FFFBF5; }
.filters-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.75rem 0; }

.filter-pill { font-size: 0.7rem; padding: 0.35rem 0.75rem; border: 1px solid rgba(138,139,146,0.2); background: transparent; transition: all 0.2s; cursor: pointer; }
.page-moretti .filter-pill { color: #8A8B92; }
.page-moretti .filter-pill:hover, .page-moretti .filter-pill.active { background: #0A0A0C; color: #E8E4DE; border-color: #0A0A0C; }
.page-fiat-moretti .filter-pill { color: #B8956E; border-radius: 999px; font-family: 'DM Sans', sans-serif; border-color: rgba(184,149,110,0.2); }
.page-fiat-moretti .filter-pill:hover, .page-fiat-moretti .filter-pill.active { background: #D4622B; color: #fff; border-color: #D4622B; }

.search-input { font-size: 0.75rem; padding: 0.35rem 0.75rem; border: 1px solid rgba(138,139,146,0.2); background: transparent; width: 10rem; margin-left: auto; }
.search-input:focus { outline: none; border-color: rgba(138,139,146,0.5); }
.page-fiat-moretti .search-input { border-radius: 999px; font-family: 'DM Sans', sans-serif; }

/* ============================================
   CAR GRID
   ============================================ */
.registry-grid { padding: 2rem 0; }
.car-grid { display: grid; grid-template-columns: 1fr; gap: 1px; }
@media(min-width:480px) { .car-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:768px) { .car-grid { grid-template-columns: repeat(3, 1fr); } }
@media(min-width:1024px) { .car-grid { grid-template-columns: repeat(4, 1fr); } }

.page-moretti .car-grid { background: rgba(138,139,146,0.1); }
.page-fiat-moretti .car-grid { gap: 1rem; background: transparent; }

.car-card { display: block; transition: transform 0.2s; }
.page-moretti .car-card { background: #F2F0EB; padding: 1rem; }
.page-fiat-moretti .car-card { background: #fff; border-radius: 0.5rem; border: 1px solid rgba(184,149,110,0.1); overflow: hidden; }

.card-thumb { aspect-ratio: 4/3; overflow: hidden; background: #E8E4DE; margin-bottom: 0.75rem; }
.page-fiat-moretti .card-thumb { margin-bottom: 0; border-radius: 0; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.car-card:hover .card-img { transform: scale(1.05); }
.card-no-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: rgba(138,139,146,0.3); }

.card-info { }
.page-fiat-moretti .card-info { padding: 0.75rem; }
.card-chassis { font-size: 0.7rem; color: #8A8B92; font-weight: 400; }
.card-model { font-size: 0.95rem; font-weight: 600; margin-top: 0.25rem; color: #25252D; transition: color 0.2s; }
.page-moretti .card-model { font-family: 'Playfair Display', Georgia, serif; color: #25252D; }
.page-moretti .car-card:hover .card-model { color: #555; }
.page-fiat-moretti .card-model { font-family: 'DM Sans', sans-serif; color: #4A3520; }
.page-fiat-moretti .car-card:hover .card-model { color: #D4622B; }

.card-bodywork, .card-variant { font-size: 0.7rem; color: #8A8B92; margin-top: 0.25rem; text-transform: capitalize; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.35rem; }
.card-flag { width: 18px; height: auto; display: inline-block; vertical-align: middle; margin-left: 0.4rem; opacity: 0.85; position: absolute; top: 0.5rem; right: 0.5rem; }
.page-fiat-moretti .card-info { position: relative; }
.page-moretti .card-info { position: relative; }
.page-moretti .card-variant { background: rgba(138,139,146,0.1); color: #8A8B92; display: inline-block; padding: 0.15rem 0.5rem; border-radius: 3px; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.05em; }
.page-fiat-moretti .card-variant { background: rgba(212,98,43,0.1); color: #D4622B; display: inline-block; padding: 0.15rem 0.5rem; border-radius: 3px; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.05em; }
.card-status { font-size: 0.6rem; color: rgba(138,139,146,0.6); margin-top: 0.25rem; }

.registry-separator { width: 100%; grid-column: 1 / -1; padding: 2rem 0 0.5rem; margin-top: 1rem; border-top: 1px solid rgba(138,139,146,0.2); }
.separator-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; font-weight: 400; color: #8A8B92; letter-spacing: 0.05em; }
.page-fiat-moretti .separator-title { font-family: 'Space Grotesk', sans-serif; color: #B8956E; text-transform: uppercase; font-size: 1rem; font-weight: 600; letter-spacing: 0.1em; }

/* ============================================
   CAR DETAIL PAGE
   ============================================ */
.gallery { position: relative; }
.gallery-moretti { background: #0A0A0C; }
.gallery-fiat { background: #3A2510; }
.swiper-car { max-width: 900px; margin: 0 auto; aspect-ratio: 16/9; }
.gallery-img { width: 100%; height: 100%; object-fit: contain; }
.no-photos { display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9; max-width: 900px; margin: 0 auto; color: rgba(138,139,146,0.3); font-size: 0.85rem; }
.swiper-car .swiper-button-prev, .swiper-car .swiper-button-next { color: rgba(255,255,255,0.4); width: 40px; height: 40px; }
.swiper-car .swiper-button-prev::after, .swiper-car .swiper-button-next::after { font-size: 1rem; }
.swiper-car .swiper-pagination-bullet { background: #fff; opacity: 0.4; }
.swiper-car .swiper-pagination-bullet-active { opacity: 1; }

.car-detail { padding: 2rem 0 3rem; }

.breadcrumb { font-size: 0.75rem; color: #8A8B92; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.4rem; }
.breadcrumb a { transition: color 0.2s; }
.breadcrumb a:hover { color: #0A0A0C; }
.bc-sep { color: rgba(138,139,146,0.4); }
.bc-current { color: #0A0A0C; font-weight: 500; }
.page-fiat-moretti .breadcrumb { font-family: 'DM Sans', sans-serif; }
.page-fiat-moretti .bc-current { color: #4A3520; }

.detail-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width:768px) { .detail-grid { grid-template-columns: 2fr 1fr; gap: 3rem; } }

.detail-title-moretti { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 400; color: #0A0A0C; margin-bottom: 0.5rem; }
@media(min-width:768px) { .detail-title-moretti { font-size: 1.875rem; } }
.detail-title-fiat { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: #4A3520; margin-bottom: 0.25rem; }
@media(min-width:768px) { .detail-title-fiat { font-size: 1.5rem; } }

.detail-bodywork { color: #8A8B92; font-size: 1rem; margin-bottom: 0.25rem; }
.detail-variant { color: #D4622B; font-size: 1rem; font-family: 'DM Sans', sans-serif; margin-bottom: 0.25rem; }
.detail-chassis { color: #8A8B92; font-size: 0.85rem; margin-bottom: 2rem; }
.page-fiat-moretti .detail-chassis { font-family: 'DM Sans', sans-serif; color: #B8956E; }

.detail-body { color: rgba(26,26,26,0.8); font-size: 0.9rem; line-height: 1.7; }
.detail-body p { margin-bottom: 1rem; }

.specs-box { border: 1px solid rgba(138,139,146,0.1); }
.specs-moretti { border-radius: 2px; }
.specs-fiat { border-radius: 0.5rem; background: #fff; }
.spec-row { display: flex; justify-content: space-between; padding: 0.75rem 1rem; border-bottom: 1px solid rgba(138,139,146,0.08); }
.spec-row:last-child { border-bottom: none; }
.spec-label { font-size: 0.75rem; color: #8A8B92; }
.page-fiat-moretti .spec-label { font-family: 'DM Sans', sans-serif; color: #B8956E; }
.spec-value { font-size: 0.75rem; font-weight: 500; text-align: right; max-width: 60%; }
.page-fiat-moretti .spec-value { font-family: 'DM Sans', sans-serif; color: #4A3520; }

/* Sidebar sections (Videos, Auctions) */
.specs-section { margin-top: 1rem; padding: 1rem; }
.specs-section-title { font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 600; color: #4A3520; margin-bottom: 0.75rem; }
.specs-section-content { font-size: 0.8rem; line-height: 1.5; color: #4A3520; }
.specs-section-content p { margin-bottom: 0.5rem; }
.specs-section-content video { width: 100%; border-radius: 4px; margin-bottom: 0.5rem; }
.specs-section-content table { width: 100%; font-size: 0.75rem; border-collapse: collapse; }
.specs-section-content table th { background: #F5EDE5; padding: 0.4rem 0.5rem; text-align: left; font-weight: 600; color: #4A3520; }
.specs-section-content table td { padding: 0.4rem 0.5rem; border-bottom: 1px solid rgba(138,139,146,0.08); }
.specs-section-content table a { color: #B8956E; text-decoration: underline; }

.prev-next { border-top: 1px solid rgba(138,139,146,0.1); }
.prev-next-inner { display: flex; justify-content: space-between; padding: 1rem 0; }
.prev-next-link { font-size: 0.85rem; color: #8A8B92; transition: color 0.2s; }
.prev-next-link:hover { color: #0A0A0C; }
.page-fiat-moretti .prev-next-link:hover { color: #D4622B; }

/* ============================================
   ARTICLE / STORY LAYOUT (long-form specials)
   ============================================ */
.article-hero { text-align: center; padding: 2rem 0 1rem; border-bottom: 1px solid rgba(138,139,146,0.15); margin-bottom: 2rem; }
.article-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.75rem; font-weight: 500; color: #25252D; line-height: 1.3; margin-bottom: 0.5rem; }
.article-subtitle { font-family: 'DM Sans', sans-serif; font-size: 1rem; color: #8A8B92; font-weight: 300; font-style: italic; margin-bottom: 0.5rem; }
.article-author { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: #8A8B92; letter-spacing: 0.05em; text-transform: uppercase; }
@media(min-width:768px) { .article-title { font-size: 2.25rem; } }

.article-body { max-width: 740px; margin: 0 auto; padding: 0 1rem; }
.article-body h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; font-weight: 500; color: #25252D; margin: 2.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(138,139,146,0.12); }
.article-body p { font-family: 'DM Sans', sans-serif; font-size: 0.95rem; line-height: 1.8; color: #3A3A42; margin-bottom: 1.25rem; }
.article-body .article-img { width: 100%; border-radius: 6px; margin: 1.5rem 0; }
.article-body .article-img-caption { font-size: 0.75rem; color: #8A8B92; text-align: center; margin-top: -1rem; margin-bottom: 1.5rem; font-style: italic; }
.article-body .article-img-float { float: right; width: 220px; margin: 0 0 1rem 1.5rem; border-radius: 6px; }
@media(max-width:600px) { .article-body .article-img-float { float: none; width: 100%; margin: 1rem 0; } }

.article-body .article-highlight { background: rgba(138,139,146,0.06); border-left: 3px solid #8A8B92; padding: 1rem 1.25rem; margin: 1.5rem 0; border-radius: 0 4px 4px 0; font-style: italic; }

.article-docs { max-width: 740px; margin: 2rem auto; padding: 0 1rem; }
.article-docs h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; font-weight: 500; color: #25252D; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(138,139,146,0.12); }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem; }
.docs-grid img { width: 100%; border-radius: 4px; cursor: pointer; transition: transform 0.2s; }
.docs-grid img:hover { transform: scale(1.03); }

.article-cta { text-align: center; padding: 2rem 0; margin-top: 2rem; border-top: 1px solid rgba(138,139,146,0.12); }
.article-cta p { font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: #8A8B92; }
.article-cta a { color: #25252D; font-weight: 500; }
.article-credit { text-align: center; font-size: 0.75rem; color: #8A8B92; margin-top: 1rem; font-style: italic; }

/* ============================================
   RACING & DOCUMENTATION
   ============================================ */
.section-content { padding: 2rem 0; }
.race-grid, .doc-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media(min-width:640px) { .race-grid, .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .race-grid, .doc-grid { grid-template-columns: repeat(3, 1fr); } }

.race-card, .doc-card { border: 1px solid rgba(138,139,146,0.1); overflow: hidden; }
.page-moretti .race-card, .page-moretti .doc-card { background: #F2F0EB; }
.page-fiat-moretti .race-card, .page-fiat-moretti .doc-card { background: #fff; border-radius: 0.5rem; }

.race-thumb img, .doc-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.race-card > :not(.race-thumb), .doc-info { padding: 1rem; }
.race-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; color: #0A0A0C; }
.page-fiat-moretti .race-title { font-family: 'Space Grotesk', sans-serif; font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #4A3520; }
.race-years { font-size: 0.75rem; color: #8A8B92; margin-top: 0.25rem; }
.race-desc { font-size: 0.85rem; color: rgba(138,139,146,0.7); margin-top: 0.75rem; line-height: 1.5; }

.section-nav { position: sticky; top: 56px; z-index: 40; border-bottom: 1px solid rgba(0,0,0,0.06); }
.page-moretti .section-nav { background: #F2F0EB; }
.page-fiat-moretti .section-nav { background: #FFFBF5; }
.section-nav .container { display: flex; gap: 1.5rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.section-nav a { font-size: 0.85rem; color: #8A8B92; transition: color 0.2s; }
.section-nav a:hover { color: #0A0A0C; }
.page-fiat-moretti .section-nav a { font-family: 'DM Sans', sans-serif; color: #B8956E; }
.page-fiat-moretti .section-nav a:hover { color: #4A3520; }

.doc-section { margin-bottom: 4rem; scroll-margin-top: 8rem; }
.doc-card { cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; border-radius: 0.5rem; }
.doc-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.doc-cover-landscape { width: 100%; aspect-ratio: 4/3; overflow: hidden; position: relative; border-radius: 0.5rem 0.5rem 0 0; }
.doc-cover-portrait { width: 100%; aspect-ratio: 3/4; overflow: hidden; position: relative; border-radius: 0.5rem 0.5rem 0 0; }
.doc-cover-landscape img, .doc-cover-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.doc-badge { position: absolute; top: 0.4rem; right: 0.4rem; font-family: 'Space Grotesk', sans-serif; font-size: 0.65rem; font-weight: 600; padding: 0.15rem 0.45rem; border-radius: 0.25rem; background: rgba(0,0,0,0.55); color: #fff; letter-spacing: 0.02em; }
.doc-meta { padding: 0.4rem 0.5rem; }
.doc-title { font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 600; color: #25252D; margin: 0 0 0.1rem; line-height: 1.25; }
.doc-subtitle { font-family: 'DM Sans', sans-serif; font-size: 0.62rem; color: #8A8B92; margin: 0; }
.doc-grid-landscape { grid-template-columns: repeat(4, 1fr) !important; gap: 0.75rem !important; }
.doc-grid-portrait { grid-template-columns: repeat(5, 1fr) !important; gap: 0.75rem !important; }
@media(max-width:640px) { .doc-grid-landscape, .doc-grid-portrait { grid-template-columns: repeat(2, 1fr) !important; } }
@media(min-width:641px) and (max-width:1023px) { .doc-grid-landscape { grid-template-columns: repeat(3, 1fr) !important; } .doc-grid-portrait { grid-template-columns: repeat(4, 1fr) !important; } }
.doc-tech-note { font-family: 'DM Sans', sans-serif; font-size: 0.78rem; color: #8A8B92; line-height: 1.6; margin-top: 1.25rem; padding: 0.85rem 1rem; background: rgba(138,139,146,0.06); border-radius: 0.4rem; border-left: 3px solid rgba(138,139,146,0.2); }
.doc-tech-note a { color: #4A6FA5; text-decoration: none; border-bottom: 1px solid rgba(74,111,165,0.3); transition: border-color 0.2s; }
.doc-tech-note a:hover { border-color: #4A6FA5; }
.doc-card-thumb { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.doc-card-info { padding: 0.75rem 1rem; }
.doc-card-info h3 { font-size: 0.85rem; font-weight: 600; margin: 0 0 0.25rem; }
.page-fiat-moretti .doc-card-info h3 { font-family: 'DM Sans', sans-serif; color: #4A3520; }
.doc-card-info p { font-size: 0.75rem; color: #8A8B92; margin: 0; }
.page-fiat-moretti .doc-card-info p { color: #B8956E; }

.doc-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.92); align-items: center; justify-content: center; flex-direction: column; }
.doc-lightbox.open { display: flex; }
.doc-lb-close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; z-index: 10000; line-height: 1; }
.doc-lb-close:hover { color: #ccc; }
.doc-lb-prev, .doc-lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,0.7); font-size: 3rem; cursor: pointer; z-index: 10000; padding: 1rem; line-height: 1; transition: color 0.2s; }
.doc-lb-prev:hover, .doc-lb-next:hover { color: #fff; }
.doc-lb-prev { left: 0.5rem; }
.doc-lb-next { right: 0.5rem; }
.doc-lb-content { display: flex; align-items: center; justify-content: center; max-width: 90%; max-height: 85vh; }
#doc-lb-img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.doc-lb-counter { text-align: center; color: rgba(255,255,255,0.6); font-size: 0.75rem; margin-top: 0.75rem; font-family: 'DM Sans', sans-serif; }

/* Fiat-Moretti documentation lightbox (Swiper-based) */
.doc-lightbox-inner { position: relative; width: 90%; max-width: 900px; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.doc-lightbox-close { position: absolute; top: -2rem; right: -1rem; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; z-index: 10001; line-height: 1; }
.doc-lightbox-close:hover { color: #ccc; }
.doc-lightbox .swiper-lightbox { width: 100%; }
.doc-lightbox .swiper-slide { display: flex; align-items: center; justify-content: center; }
.doc-lightbox .swiper-slide img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.doc-lightbox .swiper-button-prev, .doc-lightbox .swiper-button-next { color: rgba(255,255,255,0.8); }
.doc-lightbox .swiper-button-prev:hover, .doc-lightbox .swiper-button-next:hover { color: #fff; }
.doc-lightbox .swiper-pagination-bullet { background: rgba(255,255,255,0.5); }
.doc-lightbox .swiper-pagination-bullet-active { background: #fff; }
.doc-lightbox-counter { text-align: center; color: rgba(255,255,255,0.6); font-size: 0.75rem; margin-top: 0.75rem; font-family: 'DM Sans', sans-serif; }

.section-title { font-size: 1.25rem; margin-bottom: 1.5rem; padding-bottom: 0.75rem; border-bottom: 1px solid rgba(138,139,146,0.1); }
.page-moretti .section-title { font-family: 'Playfair Display', Georgia, serif; color: #0A0A0C; }
.page-fiat-moretti .section-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #4A3520; }

.doc-info h3 { font-size: 0.85rem; font-weight: 500; }
.doc-info p { font-size: 0.75rem; color: #8A8B92; margin-top: 0.25rem; }

.empty-msg { text-align: center; padding: 4rem 0; color: #8A8B92; font-size: 0.85rem; }

/* ============================================
   CONTACT
   ============================================ */
.contact-page { background: #F2F0EB; min-height: calc(100vh - 56px); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; padding: 4rem 0; }
@media(min-width:768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; color: #0A0A0C; margin-bottom: 0.5rem; }
.contact-desc { color: #8A8B92; font-size: 0.85rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.75rem; color: #8A8B92; margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.1em; }
.form-group input, .form-group textarea { width: 100%; padding: 0.6rem 0.75rem; border: 1px solid rgba(138,139,146,0.2); background: #fff; font-size: 0.85rem; transition: border-color 0.2s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #0A0A0C; }
.submit-btn { background: #0A0A0C; color: #E8E4DE; padding: 0.75rem 2rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; border: none; cursor: pointer; margin-top: 1rem; transition: background 0.2s; }
.submit-btn:hover { background: #25252D; }
.contact-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.form-success { color: #2e7d32; margin-top: 1rem; font-size: 0.85rem; }
.form-error { color: #c62828; margin-top: 1rem; font-size: 0.85rem; }
.g-recaptcha { margin-top: 1rem; }

/* ============================================
   FOOTER
   ============================================ */
.footer { padding: 3rem 0; }
.footer-moretti { background: #0A0A0C; color: rgba(232,228,222,0.4); }
.footer-fiat { background: #3A2510; color: rgba(255,251,245,0.4); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media(min-width:768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-title-moretti { font-family: 'Playfair Display', Georgia, serif; font-size: 1.1rem; color: rgba(232,228,222,0.8); margin-bottom: 1rem; }
.footer-title-fiat { font-family: 'Space Grotesk', sans-serif; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,251,245,0.8); margin-bottom: 1rem; }
.footer-text { font-size: 0.85rem; line-height: 1.5; }
.footer-subtitle { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 1rem; }
.footer-moretti .footer-subtitle { color: rgba(232,228,222,0.6); }
.footer-fiat .footer-subtitle { color: rgba(255,251,245,0.6); font-family: 'Space Grotesk', sans-serif; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { font-size: 0.85rem; transition: color 0.2s; }
.footer-moretti .footer-links a:hover { color: rgba(232,228,222,0.7); }
.footer-fiat .footer-links a { font-family: 'DM Sans', sans-serif; }
.footer-fiat .footer-links a:hover { color: rgba(255,251,245,0.7); }

.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { transition: color 0.2s; }
.footer-social a:hover { color: rgba(232,228,222,0.7); }
.footer-fiat .footer-social a:hover { color: rgba(255,251,245,0.7); }

.footer-bottom { border-top: 1px solid rgba(232,228,222,0.1); margin-top: 2rem; padding-top: 2rem; text-align: center; font-size: 0.75rem; }
.footer-bottom-fiat { border-color: rgba(255,251,245,0.1); font-family: 'DM Sans', sans-serif; }
.footer-credits { text-align: center; font-size: 0.65rem; color: rgba(232,228,222,0.5); padding: 0.75rem 1rem 0; line-height: 1.5; max-width: 700px; margin: 0 auto; }

/* Page backgrounds */
.page-moretti { background: #F2F0EB; }
.page-fiat-moretti { background: #FFFBF5; }

/* ============================================
   RACING PAGE — MAP HERO + TIMELINE
   ============================================ */

/* Map hero */
.racing-map-hero { position: relative; width: 100%; height: 420px; background: #1a1a2e; }
@media(max-width:768px) { .racing-map-hero { height: 320px; } }
.racing-map-overlay { position: absolute; top: 0; left: 0; right: 0; z-index: 400; pointer-events: none; text-align: center; padding-top: 1.2rem; }
.racing-map-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; font-weight: 500; color: rgba(255,255,255,0.92); margin: 0 0 0.2rem; text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.racing-map-subtitle { font-family: 'DM Sans', sans-serif; font-size: 0.8rem; color: rgba(255,255,255,0.5); margin: 0; }
.race-tooltip { font-family: 'DM Sans', sans-serif !important; font-size: 0.78rem; line-height: 1.4; }

/* Filters */
.racing-filters { padding: 1.5rem 0 0.5rem; }
.racing-filter-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; flex-wrap: wrap; }
.racing-filter-label { font-family: 'DM Sans', sans-serif; font-size: 0.78rem; font-weight: 600; color: #8A8B92; min-width: 36px; }
.racing-filter-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.racing-filter-pills .filter-pill { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; padding: 0.3rem 0.85rem; border: 1px solid rgba(138,139,146,0.15); border-radius: 20px; background: transparent; color: #8A8B92; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.racing-filter-pills .filter-pill:hover { border-color: #25252D; color: #25252D; }
.racing-filter-pills .filter-pill.active { background: #25252D; color: #FFFBF5; border-color: #25252D; }

/* Stats */
.racing-stats { display: flex; gap: 2rem; padding: 1rem 0 1.5rem; border-bottom: 1px solid rgba(138,139,146,0.12); margin-bottom: 2rem; }
.racing-stat { display: flex; align-items: baseline; gap: 0.4rem; }
.racing-stat-num { font-family: 'Space Grotesk', monospace; font-size: 1.4rem; font-weight: 600; color: #25252D; }
.racing-stat-label { font-family: 'DM Sans', sans-serif; font-size: 0.78rem; color: #8A8B92; }

/* Timeline */
.racing-timeline { padding-bottom: 3rem; }
.timeline-year { display: flex; gap: 1.25rem; }
.timeline-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; width: 48px; }
.timeline-dot { width: 44px; height: 44px; border-radius: 50%; background: #F2F0EB; border: 2px solid rgba(138,139,146,0.2); display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', monospace; font-size: 0.9rem; font-weight: 600; color: #25252D; }
.timeline-line { width: 2px; flex: 1; background: rgba(138,139,146,0.12); margin-top: 0.5rem; }
.timeline-content { flex: 1; min-width: 0; padding-bottom: 2rem; }
.timeline-year-title { font-family: 'Playfair Display', Georgia, serif; font-size: 1.25rem; font-weight: 500; color: #25252D; margin: 0.4rem 0 0.15rem; }
.timeline-year-stats { font-family: 'DM Sans', sans-serif; font-size: 0.78rem; color: #8A8B92; margin: 0 0 1rem; }
@media(max-width:640px) { .timeline-marker { width: 36px; } .timeline-dot { width: 36px; height: 36px; font-size: 0.78rem; } }

/* Race blocks */
.race-block { background: #F2F0EB; border-radius: 8px; overflow: hidden; margin-bottom: 0.75rem; }
.race-block-header { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.85rem; border-bottom: 1px solid rgba(138,139,146,0.08); background: #E8E5DE; }
.race-block-img { width: 48px; height: 64px; border-radius: 4px; object-fit: cover; flex-shrink: 0; cursor: pointer; transition: opacity 0.2s; }
.race-block-img:hover { opacity: 0.8; }
.race-block-noimg { background: rgba(138,139,146,0.08); }
.race-block-name { font-family: 'Playfair Display', Georgia, serif; font-size: 0.95rem; font-weight: 500; color: #25252D; margin: 0; }
.race-block-detail { font-family: 'DM Sans', sans-serif; font-size: 0.72rem; color: #8A8B92; margin: 0.1rem 0 0; }
.race-block-entries { padding: 0 0.85rem; }

/* Column headers */
.race-entry-header { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.85rem; border-bottom: 1px solid rgba(138,139,146,0.12); }
.race-entry-header span { font-family: 'Space Grotesk', sans-serif; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: #8A8B92; }
.reh-photo { width: 52px; flex-shrink: 0; }
.reh-driver { flex: 1; min-width: 0; }
.reh-car { display: none; }
.reh-chassis { width: 80px; flex-shrink: 0; text-align: left; }
.reh-num { width: 56px; flex-shrink: 0; text-align: left; }
.reh-result { width: 40px; flex-shrink: 0; text-align: left; }

/* Empty photo placeholder */
.race-photo-empty { width: 48px; height: 64px; flex-shrink: 0; border-radius: 3px; background: rgba(138,139,146,0.06); border: 1px dashed rgba(138,139,146,0.15); }

/* Race entry rows */
.race-entry { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0; border-bottom: 1px solid rgba(138,139,146,0.08); }
.race-entry:last-child { border-bottom: none; }
.race-car-thumb { width: 52px; height: 36px; border-radius: 3px; object-fit: cover; flex-shrink: 0; cursor: pointer; transition: opacity 0.2s; }
.race-car-thumb:hover { opacity: 0.8; }
.race-car-nophoto { border: 1px dashed rgba(138,139,146,0.2); background: transparent; width: 52px; height: 36px; border-radius: 3px; }
.race-photo-link { display: block; flex-shrink: 0; width: 52px; height: 36px; border-radius: 3px; overflow: hidden; }
.race-photo-link img { width: 100%; height: 100%; object-fit: cover; }
.race-entry-info { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 0.35rem; flex-wrap: wrap; }
.race-entry-driver { font-family: 'DM Sans', sans-serif; font-size: 0.82rem; color: #25252D; }
.race-entry-sep { font-size: 0.75rem; color: #8A8B92; }
.race-entry-car { font-family: 'DM Sans', sans-serif; font-size: 0.82rem; color: #8A8B92; }
.race-entry-meta { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.race-chassis-link { font-family: 'DM Sans', sans-serif; font-size: 0.78rem; color: #4A6FA5; text-decoration: none; border-bottom: 1px solid rgba(74,111,165,0.3); transition: border-color 0.2s; width: 80px; flex-shrink: 0; }
.race-chassis-link:hover { border-color: #4A6FA5; }
.race-chassis-none { font-family: 'DM Sans', sans-serif; font-size: 0.78rem; color: #8A8B92; width: 80px; flex-shrink: 0; }
.race-chassis-ref { font-family: 'DM Sans', sans-serif; font-size: 0.78rem; color: #25252D; width: 80px; flex-shrink: 0; }
.race-entry-num { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; color: #8A8B92; width: 56px; flex-shrink: 0; }
.race-entry-result { font-family: 'Space Grotesk', monospace; font-size: 0.82rem; font-weight: 600; color: #25252D; width: 40px; flex-shrink: 0; text-align: left; }
.race-dnf { color: #C62828; font-weight: 500; }

@media(max-width:640px) {
  .race-entry-header { display: none; }
  .race-entry { flex-wrap: wrap; }
  .race-entry-meta { width: 100%; padding-left: calc(52px + 0.6rem); }
  .race-block-img { width: 40px; height: 54px; }
}

/* Fiat-Moretti Racing — intro + table layout */
.race-intro-wrap { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2.5rem; }
.race-intro { flex: 1; min-width: 0; }
.race-intro h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; font-weight: 500; color: #25252D; margin: 0 0 0.75rem; }
.race-intro p { font-family: 'DM Sans', sans-serif; font-size: 0.85rem; color: #555; line-height: 1.7; margin: 0; }
.race-map { width: 320px; height: 240px; flex-shrink: 0; border-radius: 0.5rem; overflow: hidden; border: 1px solid rgba(138,139,146,0.12); }
.race-table-wrap { overflow-x: auto; margin-bottom: 2.5rem; }
.race-table { width: 100%; border-collapse: collapse; font-family: 'DM Sans', sans-serif; font-size: 0.78rem; }
.race-table thead th { font-family: 'Space Grotesk', sans-serif; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #8A8B92; text-align: left; padding: 0.5rem 0.6rem; border-bottom: 2px solid rgba(138,139,146,0.15); white-space: nowrap; }
.race-table tbody td { padding: 0.55rem 0.6rem; border-bottom: 1px solid rgba(138,139,146,0.08); color: #25252D; vertical-align: top; }
.race-table tbody tr:hover { background: rgba(138,139,146,0.04); }
.result-good { color: #1B7D3A; font-weight: 500; }
.result-dnf { color: #C62828; font-weight: 500; }
.race-chassis { color: #8A8B92; }
.race-photos { min-width: 120px; }
.race-photo-grid { display: flex; gap: 4px; flex-wrap: wrap; }
.race-photo-grid a { display: block; }
.race-photo-grid img { width: 48px; height: 36px; object-fit: cover; border-radius: 3px; transition: opacity 0.2s; }
.race-photo-grid img:hover { opacity: 0.8; }
.race-notes { margin-bottom: 2.5rem; }
.race-notes h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1rem; font-weight: 500; color: #25252D; margin: 0 0 0.75rem; }
.race-notes ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.race-notes li { font-family: 'DM Sans', sans-serif; font-size: 0.82rem; color: #555; line-height: 1.6; padding: 0.3rem 0; padding-left: 1rem; position: relative; }
.race-notes li::before { content: '—'; position: absolute; left: 0; color: #8A8B92; }
.race-source { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; color: #8A8B92; }
.race-source a { color: #4A6FA5; text-decoration: none; border-bottom: 1px solid rgba(74,111,165,0.3); }
.race-source a:hover { border-color: #4A6FA5; }
.race-pin-dot { width: 8px; height: 8px; background: #C62828; border-radius: 50%; border: 1.5px solid #fff; }
.race-pin-dot-big { width: 12px; height: 12px; background: #C62828; border-radius: 50%; border: 2px solid #fff; }
@media(max-width:640px) {
  .race-intro-wrap { flex-direction: column; }
  .race-map { width: 100%; height: 200px; }
  .race-table { font-size: 0.72rem; }
  .race-table thead th { font-size: 0.62rem; }
}

/* Empty state */
.racing-empty-msg { font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: #8A8B92; text-align: center; padding: 3rem 0; }

/* Lightbox */
.racing-lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center; }
.racing-lightbox.open { display: flex; }
.lb-close { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; z-index: 10000; line-height: 1; }
#lb-img { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: 4px; }
