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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--purple);
    color: var(--white);
    font-family: 'Barlow Condensed', sans-serif;
    overflow-x: hidden;
}

:root {
    /* Núcleo — roxo profundo (corpo do macacão/carro) */
    --purple: #5D1F8C;
    --purple-dk: #3F1462;
    --purple-lt: #7A2BB0;

    /* Acento principal — magenta vibrante (mangas, faixas, detalhes) */
    --pink: #FF1B8D;
    --pink-dk: #D81B70;

    /* Acento secundário — laranja (gradiente das mangas) */
    --orange: #FF6B1A;

    /* Base */
    --ink: #0A0612;
    --white: #ffffff;
    --offwhite: #F5EAF9;

    /* Gradientes — assinatura visual do piloto */
    --grad-flame: linear-gradient(135deg, var(--pink) 0%, var(--orange) 100%);
    --grad-deep: linear-gradient(180deg, var(--purple-dk) 0%, var(--purple) 100%);

    /* Card translúcido sobre roxo */
    --card-bg: rgba(255, 255, 255, 0.06);

    /* Corte diagonal padrão para cards */
    --clip-card: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--purple-dk);
}

::-webkit-scrollbar-thumb {
    background: var(--pink);
}

.s-title {
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(2.6rem, 7vw, 6rem);
    line-height: 0.93;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    color: var(--white);
}

.accent {
    color: var(--pink);
    opacity: 1;
}

.teal-rule {
    display: block;
    width: 56px;
    height: 4px;
    background: var(--grad-flame);
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    line-height: 1;
    margin-bottom: 3rem;
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 0.015em;
}

.section-title span {
    background: var(--grad-flame);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 1;
}

/* ── NAVBAR ── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    transition: background 0.4s;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
}

#navbar.scrolled {
    background: var(--purple-dk);
    box-shadow: 0 2px 20px rgba(255, 27, 141, 0.15);
}

.nav-logo {
    font-family: 'Russo One', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--grad-flame);
    transform: scaleX(0);
    transition: transform 0.25s;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-socials {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-socials a {
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    transition: color 0.25s;
}

.nav-socials a:hover {
    color: var(--pink);
}

#hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 110;
}

#hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

#mob-menu {
    display: none;
    flex-direction: column;
    gap: 2rem;
    position: fixed;
    inset: 0;
    z-index: 105;
    background: #000;
    align-items: center;
    justify-content: center;
}

#mob-menu.open {
    display: flex;
}

#mob-menu a {
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 2.2rem;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.mob-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #555;
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.mob-close:hover {
    color: var(--pink);
}

.mob-socials {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.mob-socials a {
    color: #555;
    display: flex;
    align-items: center;
    transition: color 0.25s;
    font-size: 0 !important;
}

.mob-socials a:hover {
    color: var(--pink);
}

/* ── HERO — roxo profundo, padrão de pontos pink ── */
#hero {
    position: relative;
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
    display: flex;
    background: var(--purple);
}

.h-bg-fixed {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: opacity(0.7) brightness(0.25) saturate(1.2) hue-rotate(-10deg);
    z-index: 1;
}

.h-bg-fixed::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 27, 141, 0.18) 1px, transparent 1px);
    background-size: 22px 22px;
}

/* Listras diagonais sutis no hero — eco do grafismo do uniforme */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: repeating-linear-gradient(135deg,
            transparent 0,
            transparent 80px,
            rgba(255, 27, 141, 0.04) 80px,
            rgba(255, 27, 141, 0.04) 82px);
    z-index: 2;
    pointer-events: none;
}

.h-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    padding: 0 2.5rem;
}

.h-pilot-side {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.pilot-img {
    height: 95%;
    width: auto;
    object-fit: contain;
}

.h-info-side {
    flex: 1.2;
    display: flex;
    align-items: center;
    padding-bottom: 50px;
    padding-top: 80px;
}

.h-name {
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-style: italic;
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    line-height: 0.88;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 30px rgba(255, 27, 141, 0.25);
}

.h-nickname {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    background: var(--grad-flame);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.2rem;
}

.h-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.82);
}

.h-desc strong {
    color: var(--pink);
}

.h-next-race {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.h-next-label {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: var(--pink);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.h-next-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--grad-flame);
}

.h-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.h-cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.h-cd-unit span {
    font-family: 'Russo One', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: #fff;
    background: rgba(255, 27, 141, 0.1);
    border: 1px solid rgba(255, 27, 141, 0.35);
    padding: 0.3rem 0.8rem;
    min-width: 60px;
    text-align: center;
    line-height: 1;
}

.h-cd-unit small {
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
}

.h-cd-sep {
    font-family: 'Russo One', sans-serif;
    font-size: 1.4rem;
    color: var(--pink);
    padding-bottom: 1rem;
    opacity: 0.6;
}

/* ── BOTÃO padrão — gradiente flame, corte chamfered ── */
.h-cal-btn {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.85rem 2.4rem;
    background: var(--grad-flame);
    color: #fff;
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    width: fit-content;
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    box-shadow: 0 4px 18px rgba(255, 27, 141, 0.3);
}

.h-cal-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 8px 24px rgba(255, 27, 141, 0.45);
}

/* ── STATS — faixa magenta de impacto ── */
#stats {
    height: 15vh;
    min-height: 100px;
    background: var(--pink);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Listras diagonais sutis no stats */
#stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg,
            transparent 0,
            transparent 28px,
            rgba(255, 255, 255, 0.05) 28px,
            rgba(255, 255, 255, 0.05) 30px);
    pointer-events: none;
}

.stats-row {
    width: 100%;
    display: flex;
    justify-content: space-around;
    position: relative;
    z-index: 2;
}

.stat-item {
    flex: 1;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.stat-item:last-child {
    border-right: none;
}

.stat-n {
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--white);
    line-height: 1;
}

.stat-l {
    font-size: 0.75rem;
    font-weight: 800;
    font-style: italic;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

/* ── CATEGORIA — preto com overlay ── */
#categoria {
    position: relative;
    padding: 8rem 0;
    background: #000;
    overflow: hidden;
}

.cat-bg-overlay {
    position: absolute;
    inset: 0;
    background: url('background-stocklight.webp') center/cover;
    z-index: 1;
    opacity: 1;
}

#categoria::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 40%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.05) 100%);
}

.cat-wrapper {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.cat-content {
    max-width: 650px;
}

.cat-brand {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: none;
}

.cat-description {
    margin-top: 2.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.cat-description strong {
    color: #fff;
}

#categoria .teal-rule {
    background: var(--grad-flame);
}

#categoria .s-title {
    color: #fff;
}

#categoria .s-title span {
    background: var(--grad-flame);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── PATROCINADORES — preto ── */
#patrocinadores {
    padding: 3rem 0;
    overflow: hidden;
    border-top: 1px solid #111;
    border-bottom: 1px solid #111;
    background: #000;
}

.spon-lbl {
    text-align: center;
    font-family: 'Russo One', sans-serif;
    font-size: 0.7rem;
    color: #444;
    margin-bottom: 2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.spon-track {
    display: flex;
}

.spon-inner {
    display: flex;
    align-items: center;
    gap: 4rem;
    animation: scrollSp 40s linear infinite;
    width: max-content;
}

.spon-inner a {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.spon-logo {
    width: 120px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(0) invert(1) opacity(0.4);
    transition: all 0.4s ease;
    cursor: pointer;
}

.spon-logo:hover {
    filter: brightness(0) invert(1) opacity(1);
    transform: scale(1.1);
}

@keyframes scrollSp {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── CALENDÁRIO ── */
#calendario {
    background: var(--purple);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* Linhas diagonais decorativas no fundo da seção */
#calendario::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(135deg,
            transparent 0,
            transparent 100px,
            rgba(255, 27, 141, 0.025) 100px,
            rgba(255, 27, 141, 0.025) 102px);
    pointer-events: none;
}

.cal-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.cal-main-title {
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    color: var(--white);
}

.cal-main-title span {
    background: var(--grad-flame);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 1;
}

/* Cards separados com gap, com corte chamfered */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.rc {
    background: var(--purple-dk);
    padding: 1.6rem 1.4rem;
    display: flex;
    flex-direction: column;
    min-height: 270px;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    border-top: 3px solid transparent;
    clip-path: var(--clip-card);
}

.rc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.25s;
}

.rc:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(255, 27, 141, 0.18);
    background: #2D0A48;
}

.rc:hover::before {
    background: var(--grad-flame);
}

.rc.done {
    opacity: 0.4;
}

.rc.done:hover {
    transform: none;
    box-shadow: none;
}

/* Card próxima corrida — destaque com gradiente flame */
.rc.is-next {
    background: linear-gradient(155deg, #2D0A48 0%, var(--purple-dk) 100%);
    border-top: 3px solid transparent;
    box-shadow: 0 10px 32px rgba(255, 27, 141, 0.35);
    position: relative;
}

.rc.is-next::before {
    background: var(--grad-flame);
    height: 4px;
}

/* Glow sutil ao redor do card "próxima" */
.rc.is-next::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: var(--grad-flame);
    z-index: -1;
    clip-path: var(--clip-card);
    opacity: 0.5;
}

.rc.empty {
    pointer-events: none;
    background: transparent;
    min-height: 270px;
    clip-path: none;
}

/* Card CTA — "Venha de perto" — gradient flame */
.rc-cta {
    background: var(--grad-flame);
    text-decoration: none;
    cursor: pointer;
    justify-content: space-between;
    border-top: none;
    transition: filter 0.25s, transform 0.25s;
    clip-path: var(--clip-card);
}

.rc-cta:hover {
    filter: brightness(1.08);
    transform: translateY(-4px);
}

.rc-cta-eyebrow {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: auto;
}

.rc-cta-title {
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 2rem;
    line-height: 0.92;
    text-transform: uppercase;
    color: var(--white);
    margin: 1rem 0 1rem;
}

.rc-cta-sub {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.rc-cta-btn {
    display: inline-block;
    background: var(--ink);
    color: #fff;
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.7rem 1.4rem;
    margin-top: auto;
    transition: background 0.2s;
}

.rc-cta:hover .rc-cta-btn {
    background: #1F0830;
}

/* Traçado maior e nítido */
.rc-track {
    height: 72px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
}

.rc-track img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 1;
}

.rc-d {
    font-family: 'Russo One', sans-serif;
    font-size: 3rem;
    line-height: 1;
    color: #fff;
}

.rc-m {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.rc-c {
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 1.25rem;
    margin-bottom: 0.15rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #fff;
}

.rc-city-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.15rem;
}

.rc-flag {
    width: 28px;
    height: 19px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.rc-s {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

/* Badges — sem skew, sem sombra */
.badge {
    margin-top: auto;
    width: fit-content;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.4rem 1rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-block;
}

.b-done {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.b-soon {
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.35);
    background: transparent;
}

.b-next {
    background: var(--grad-flame);
    color: #fff;
    padding: 0.5rem 1.2rem;
    font-weight: 900;
    box-shadow: 0 4px 14px rgba(255, 27, 141, 0.4);
}

/* Bloco de resultados — estilo stats */
.rc-results {
    margin-top: auto;
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.8rem;
    width: 100%;
}

.rc-res-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.rc-res-item:last-child {
    border-right: none;
}

.rc-res-pos {
    font-family: 'Russo One', sans-serif;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--pink);
}

.rc-res-pos.gold {
    color: #FFB13D;
}

.rc-res-lbl {
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    white-space: nowrap;
}

/* Próxima Corrida */
.next-race-wrapper {
    background: var(--purple-dk);
    padding: 4rem 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: center;
    gap: 2rem;
    border-top: 4px solid transparent;
    border-image: var(--grad-flame) 1;
    position: relative;
}

.next-tag {
    background: var(--grad-flame);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 0.4rem 1.1rem;
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.next-tag-inner {
    display: inline-block;
}

.next-date-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
}

.next-day {
    font-family: 'Russo One', sans-serif;
    font-size: 5rem;
    background: var(--grad-flame);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 0.8;
}

.next-mo-yr {
    display: flex;
    flex-direction: column;
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
}

.next-city {
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 2.4rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.015em;
}

.next-detail {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 0.05em;
}

.timer-col {
    text-align: center;
}

.cd-label {
    font-size: 0.7rem;
    color: var(--pink);
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 800;
}

.cd-timer-digital {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cd-unit small {
    font-size: 0.55rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cd-num {
    background: var(--ink);
    color: var(--pink);
    font-family: 'Russo One', sans-serif;
    font-size: 2.8rem;
    padding: 0.5rem 0.8rem;
    min-width: 80px;
    border: 1px solid rgba(255, 27, 141, 0.3);
    text-align: center;
}

.cd-sep {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    color: var(--pink);
    padding-bottom: 1.5rem;
    opacity: 0.5;
}

.button-col {
    display: flex;
    justify-content: flex-end;
}

/* Botão comprar ingresso — gradient flame */
.btn-tickets-new {
    background: var(--grad-flame);
    color: #fff;
    padding: 1.15rem 3rem;
    text-decoration: none;
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-align: center;
    display: inline-block;
    transition: filter 0.25s, transform 0.25s, box-shadow 0.25s;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    box-shadow: 0 6px 22px rgba(255, 27, 141, 0.35);
    text-transform: uppercase;
}

.btn-tickets-new:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 27, 141, 0.5);
}

/* ── GALERIA — roxo escuro ── */
#galeria {
    padding: 6rem 0;
    background: var(--purple-dk);
}

.gal-container {
    text-align: center;
}

.gal-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 4rem;
}

/* Abas — cantos retos, branco/pink */
.gtab {
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.65rem 1.7rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: 0.2s;
    letter-spacing: 0.1em;
    font-style: italic;
}

.gtab:hover:not(.active) {
    background: rgba(255, 27, 141, 0.1);
    color: #fff;
    border-color: var(--pink);
}

.gtab.active {
    background: var(--grad-flame);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(255, 27, 141, 0.3);
}

/* ── GALERIA — duas faixas horizontais independentes ── */
.gal-ticker-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

/* Cada faixa tem seu próprio overflow oculto */
.gal-row-wrap {
    width: 100%;
    overflow: hidden;
}

/* Faixa de scroll — flex simples, largura natural de cada imagem */
.gal-row-track {
    display: flex;
    width: max-content;
    gap: 12px;
    animation: scrollGal 60s linear infinite;
}

/* Fila 2 rola no sentido oposto */
.gal-row-reverse {
    animation-direction: reverse;
}

.gal-row-track:hover {
    animation-play-state: paused;
}

/* Cada item: só altura fixa, largura livre */
.g-item {
    height: 260px;
    flex-shrink: 0;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Imagem: px direto na altura, largura natural */
.g-item img {
    height: 260px;
    width: auto;
    max-width: none;
    display: block;
    filter: brightness(0.9);
    transition: 0.5s;
}

.g-item:hover img {
    filter: brightness(1.05);
    transform: scale(1.04);
}

.g-item:hover {
    border-color: var(--pink);
    box-shadow: 0 0 0 1px var(--pink), 0 10px 28px rgba(255, 27, 141, 0.25);
}

.g-panel {
    display: none;
}

.g-panel.active {
    display: block;
}

@keyframes scrollGal {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ── LIGHTBOX ── */
#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.96);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

#lightbox.open {
    display: flex;
}

#lb-img {
    max-height: 85vh;
    max-width: 90vw;
    object-fit: contain;
}

#lb-x {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

#lb-x:hover {
    color: var(--pink);
}

#lb-p,
#lb-n {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    color: var(--pink);
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

#lb-p {
    left: 10px;
}

#lb-n {
    right: 10px;
}

/* ── HISTÓRICO — roxo ── */
#historico {
    padding: 6rem 0;
    text-align: center;
    background: var(--purple);
}

.hist-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hist-tabs-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    display: flex;
    width: 100%;
    padding: 6px 0;
    justify-content: center;
}

.hist-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.hist-tabs {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

/* Abas — cantos retos, branco/pink */
.htab {
    padding: 0.65rem 1.9rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.55);
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.htab:hover:not(.active) {
    border-color: var(--pink);
    color: #fff;
    background: rgba(255, 27, 141, 0.08);
}

.htab.active {
    background: var(--grad-flame);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(255, 27, 141, 0.3);
}

.hist-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.hist-content.active {
    display: block;
}

.hist-header {
    display: none;
}

.hist-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 10px;
}

.h-thumb {
    aspect-ratio: 1/1;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: var(--purple-dk);
}

.h-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.9);
    transition: all 0.4s ease;
}

.h-thumb:hover {
    border-color: var(--pink);
    box-shadow: 0 0 0 1px var(--pink), 0 6px 20px rgba(255, 27, 141, 0.2);
}

.h-thumb:hover img {
    filter: brightness(1.05);
    transform: scale(1.04);
}

.hist-navigation {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 6px 40px;
    overflow: visible;
}

.hist-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.hist-nav-btn:hover {
    background: var(--pink);
    color: #fff;
    border-color: var(--pink);
}

.hist-nav-btn.prev {
    left: 0;
}

.hist-nav-btn.next {
    right: 0;
}

.hist-navigation::before,
.hist-navigation::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    pointer-events: none;
    z-index: 2;
}

.hist-navigation::before {
    left: 40px;
    background: linear-gradient(to right, var(--purple), transparent);
}

.hist-navigation::after {
    right: 40px;
    background: linear-gradient(to left, var(--purple), transparent);
}

@media (max-width: 600px) {
    .hist-photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ── CONTATO — roxo escuro ── */
#contato {
    padding: 6rem 0;
    background: var(--purple-dk);
    border-top: 1px solid rgba(255, 27, 141, 0.15);
}

.ct-in {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 0 2rem;
}

.ct-inf .teal-rule {
    background: var(--grad-flame);
}

.ct-inf .s-title {
    color: #fff;
}

.ct-inf .accent {
    background: var(--grad-flame);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 1;
}

.ct-inf p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

.ct-f {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Campos — cantos retos, fundo translúcido */
.ct-f input,
.ct-f textarea {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    padding: 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.ct-f input::placeholder,
.ct-f textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.ct-f input:focus,
.ct-f textarea:focus {
    border-color: var(--pink);
    background: rgba(255, 27, 141, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 27, 141, 0.12);
}

.ct-f textarea {
    min-height: 130px;
    resize: vertical;
}

/* BOTÃO ENVIAR — gradient flame */
.btn-send {
    background: var(--grad-flame);
    color: #fff;
    border: none;
    padding: 1.05rem 2.6rem;
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-style: italic;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.08em;
    transition: filter 0.25s, transform 0.25s, box-shadow 0.25s;
    align-self: flex-start;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    box-shadow: 0 4px 18px rgba(255, 27, 141, 0.3);
}

.btn-send span {
    display: inline-block;
}

.btn-send:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 27, 141, 0.45);
}

.btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.f-ok {
    display: none;
    color: #6FFF8B;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.f-err {
    display: none;
    color: #FF7A8C;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* ── REVEAL ── */
.rv {
    opacity: 0;
    transform: translateY(28px);
    transition: 0.8s ease-out;
}

.rv.on {
    opacity: 1;
    transform: translateY(0);
}

.d1 {
    transition-delay: 0.1s;
}

.d2 {
    transition-delay: 0.2s;
}

.d3 {
    transition-delay: 0.3s;
}

/* ── FOOTER — preto roxeado ── */
footer {
    border-top: 4px solid transparent;
    border-image: var(--grad-flame) 1;
    background: var(--ink);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 2.5rem 3rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 4rem;
}

.f-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.f-socials {
    display: flex;
    gap: 14px;
}

.f-socials a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.f-socials a:hover {
    color: var(--pink);
}

.footer-col-title {
    font-family: 'Russo One', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: var(--grad-flame);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.4rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.25s;
}

.footer-links a:hover {
    color: var(--pink);
}

.footer-patrocinio {
    margin-top: 1.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-patrocinio p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.8rem;
}

.footer-cta {
    display: inline-block;
    padding: 0.7rem 1.9rem;
    background: var(--grad-flame);
    color: #fff;
    font-family: 'Saira Condensed', 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-style: italic;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: filter 0.25s, transform 0.25s;
    text-transform: uppercase;
}

.footer-cta span {
    display: inline-block;
}

.footer-cta:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom strong {
    color: rgba(255, 255, 255, 0.6);
}

/* ── RESPONSIVIDADE ── */
@media (max-width: 1024px) {
    .cal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rc.empty {
        display: none;
    }

    .ct-in {
        grid-template-columns: 1fr;
    }

    .next-race-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .next-date-row,
    .next-col,
    .button-col {
        justify-content: center;
    }
}

@media (max-width: 512px) {
    #navbar {
        padding: 0 1rem;
    }

    .nav-links,
    .nav-socials {
        display: none;
    }

    #hamburger {
        display: flex;
    }

    #hero {
        height: auto;
        min-height: 100svh;
    }

    /* Gradiente na parte inferior da seção hero */
    #hero::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 45%;
        background: linear-gradient(to top, #000 0%, transparent 100%);
        pointer-events: none;
        z-index: 1;
    }

    .h-wrapper {
        flex-direction: column;
        padding: 0 1.5rem 2.5rem;
        align-items: center;
        text-align: center;
        justify-content: flex-end;
        max-width: 100%;
        width: 100%;
    }

    .h-pilot-side {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        padding-top: 60px;
        flex: none;
    }

    .pilot-img {
        width: 100%;
        height: auto;
        max-height: 55vh;
        object-fit: contain;
        object-position: center bottom;
    }

    .h-info-side {
        order: 2;
        padding: 1rem 0 0;
        width: 100%;
        flex: none;
        display: flex;
        align-items: center;
    }

    .h-text-content {
        width: 100%;
    }

    .h-name {
        font-size: clamp(2.6rem, 13vw, 4.2rem);
    }

    .h-desc {
        font-size: 0.95rem;
    }

    .h-next-race {
        align-items: center;
        margin-top: 1.2rem;
    }

    .h-countdown {
        gap: 4px;
        justify-content: center;
    }

    .h-cd-unit span {
        font-size: 1.3rem;
        min-width: 44px;
        padding: 0.3rem 0.4rem;
    }

    .h-cd-sep {
        font-size: 1rem;
        padding-bottom: 1.2rem;
    }

    .stat-item {
        border: none;
    }

    .stat-n {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .stat-l {
        font-size: 0.65rem;
    }

    .cat-wrapper {
        padding: 0 1.5rem;
    }

    .s-title {
        font-size: clamp(1.8rem, 7vw, 3rem);
    }

    .cat-description {
        font-size: 0.95rem;
    }

    #calendario {
        padding: 4rem 0;
    }

    .cal-container {
        padding: 0 1rem;
    }

    .cal-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    /* Grid de duas colunas: texto à esquerda, traçado à direita */
    .rc {
        display: grid;
        grid-template-columns: 1fr 100px;
        grid-template-areas:
            "date  track"
            "month track"
            "city  track"
            "state track"
            "badge track";
        min-height: unset;
        padding: 1.2rem 1.2rem;
        column-gap: 0.8rem;
        row-gap: 0;
        align-items: start;
    }

    .rc-track {
        grid-area: track;
        height: 100%;
        width: 100%;
        margin-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .rc-track img {
        width: 100%;
        height: auto;
        max-height: 100px;
        object-fit: contain;
    }

    .rc-d {
        grid-area: date;
        font-size: 2.4rem;
    }

    .rc-m {
        grid-area: month;
        margin-bottom: 0.3rem;
    }

    .rc-city-row {
        grid-area: city;
        margin-bottom: 0.1rem;
    }

    .rc-s {
        grid-area: state;
        margin-bottom: 0.5rem;
    }

    .badge {
        grid-area: badge;
        margin-top: 0;
    }

    .rc-badge-area {
        grid-area: badge;
        margin-top: 0;
    }

    .rc-results {
        grid-area: badge;
        margin-top: 0;
        border-top: none;
        padding-top: 0;
        flex-direction: column;
        gap: 2px;
    }

    .rc-res-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 6px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding-bottom: 2px;
    }

    .rc-res-item:last-child {
        border-bottom: none;
    }

    .rc-res-pos {
        font-size: 0.95rem;
        min-width: 32px;
    }

    .rc-res-lbl {
        font-size: 0.6rem;
    }

    .rc.empty {
        display: none;
    }

    /* CTA volta a flex coluna */
    .rc.rc-cta {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-height: 160px;
    }

    .next-race-wrapper {
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
    }

    .next-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .next-day {
        font-size: 3.5rem;
    }

    .cd-num {
        font-size: 1.8rem;
        min-width: 56px;
        padding: 0.4rem 0.5rem;
    }

    .cd-timer-digital {
        gap: 5px;
    }

    .cd-sep {
        font-size: 1rem;
        padding-bottom: 1rem;
    }

    .btn-tickets-new {
        padding: 0.9rem 1.8rem;
        font-size: 0.85rem;
    }

    #galeria {
        padding: 4rem 0;
    }

    .gal-container {
        overflow: hidden;
    }

    .section-title {
        font-size: clamp(2rem, 10vw, 3.5rem);
        padding: 0 1.5rem;
    }

    .gal-tabs-wrapper {
        padding: 0 1rem;
        gap: 8px;
    }

    .gtab {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }

    .g-item {
        height: 180px;
    }

    .g-item img {
        height: 180px;
    }

    .gal-ticker-container {
        gap: 10px;
    }

    #historico {
        padding: 4rem 0;
    }

    .hist-container {
        padding: 0 1rem;
    }

    .hist-navigation {
        padding: 6px 0;
        margin-bottom: 2rem;
    }

    /* Setas desnecessárias quando as abas quebram em linha */
    .hist-nav-btn {
        display: none;
    }

    /* Abas em wrap — quebram em múltiplas linhas centralizadas */
    .hist-tabs-wrapper {
        overflow: visible;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 4px 0;
    }

    .hist-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        white-space: normal;
    }

    /* Fade das bordas desnecessário sem scroll */
    .hist-navigation::before,
    .hist-navigation::after {
        display: none;
    }

    .htab {
        font-size: 0.8rem;
        padding: 0.5rem 1.2rem;
    }

    #contato {
        padding: 4rem 0;
    }

    .ct-in {
        padding: 0 1.5rem;
        gap: 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 1.5rem 2rem;
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .f-socials {
        justify-content: center;
    }

    .footer-patrocinio {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 1.2rem 1.5rem;
    }
}

@media (max-width: 360px) {
    .h-cd-unit span {
        font-size: 1.2rem;
        min-width: 40px;
        padding: 0.25rem 0.4rem;
    }

    .cal-grid {
        grid-template-columns: 1fr;
    }

    .cd-num {
        font-size: 1.5rem;
        min-width: 48px;
    }

    .next-race-wrapper {
        padding: 2rem 1rem;
    }
}