/* ================================================================================
   MOBILE-FIRST CSS - RACE ADMIN TEMPLATE NEUTRO
   Race Admin - Template Mobile-First Completo
   ================================================================================ */

html {
    scroll-behavior: smooth;
}

/* Se tiver problemas, force isso: */
* {
    scroll-behavior: smooth !important;
}

.back-to-top {
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-to-top:active {
    transform: scale(0.95);
}

/* ================================
   STATUS BAR & APP HEADER
   ================================ */

.status-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    padding-top: env(safe-area-inset-top, 0);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.status-left,
.status-center,
.status-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.status-center {
    justify-content: center;
}

.status-right {
    justify-content: flex-end;
}

.status-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.status-logo {
    height: 20px;
    width: auto;
}

.status-icon {
    font-size: 0.9rem;
    margin-left: 5px;
}

/* App Header */
.app-header {
    position: fixed;
    top: 0px;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--header-bg-color, white);
    background-image: var(--header-bg-image, none);
    background-size: auto;
    background-repeat: repeat;
    color: var(--header-text-color, inherit);
    border-bottom: 1px solid var(--stroke);
    z-index: 999;
    transition: transform 0.3s var(--ease-smooth);
}
.app-header .btn-icon {
    color: var(--header-text-color, inherit);
}
.app-header .btn-icon:hover {
    background: rgba(255, 255, 255, 0.15);
}
.app-header .btn-icon:active {
    background: rgba(255, 255, 255, 0.25);
}

.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
}

.header-left {
    flex: 1;
}

.logo-link {
    display: inline-block;
}

.logo-header {
    height: 50px;
    width: auto;
}

.header-right {
    display: flex;
    gap: 10px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s var(--ease-smooth);
}

.btn-icon:hover {
    background: var(--surface-2);
    transform: scale(1.1);
}

.btn-icon:active {
    transform: scale(0.95);
}

/* ================================
   BOTTOM NAVIGATION
   ================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--nav-bg-color, rgba(255, 255, 255, 0.98));
    background-image: var(--nav-bg-image, none);
    background-size: auto;
    background-repeat: repeat;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--stroke);
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    padding-bottom: env(safe-area-inset-bottom, 0);
    z-index: 998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
    color: var(--nav-text-color, var(--text-muted));
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth), transform 0.15s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
}

.nav-item.active {
    color: var(--nav-active-color, var(--theme-accent));
    background: var(--nav-active-bg, transparent);
    border-radius: 8px;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--nav-active-color, var(--theme-accent));
    border-radius: 0 0 3px 3px;
}

.nav-item:hover {
    color: var(--nav-text-color, var(--text-muted));
}

.nav-item.active,
.nav-item.active:hover {
    color: var(--theme-accent);
}

.nav-item:active {
    transform: scale(0.95);
}

/* ================================
   FAB (Floating Action Button)
   ================================ */

.fab {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: auto;
    height: 56px;
    padding: 0 24px;
    background: var(--theme-accent);
    color: white;
    border: none;
    border-radius: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(228, 45, 47, 0.4);
    cursor: pointer;
    z-index: 997;
    transition: all 0.3s var(--ease-bounce);
}

.fab:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(var(--theme-accent-rgb, 228, 45, 47), 0.6);
}

.fab:active {
    transform: translateY(-2px) scale(0.98);
}

.fab svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

/* ================================
   DRAWER (Mobile Menu)
   ================================ */

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.3s var(--ease-smooth);
}

.drawer.open {
    pointer-events: auto;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s var(--ease-smooth);
}

.drawer.open .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: white;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s var(--ease-smooth);
    overflow: hidden;
}

.drawer.open .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--stroke);
    background: var(--surface-2);
}

.drawer-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.btn-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s var(--ease-smooth);
}

.btn-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.drawer-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 10px 0;
}

.drawer-section-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    padding: 16px 20px 6px;
    margin-top: 4px;
    border-top: 1px solid var(--stroke);
}

.drawer-section-title:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 8px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s var(--ease-smooth);
}

.drawer-link-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.badge-soon {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--surface-2);
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}

.drawer-link:hover {
    background: var(--surface-2);
    color: var(--theme-accent);
}

.drawer-icon {
    font-size: 1.3rem;
    width: 28px;
    text-align: center;
}

.drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--stroke);
    background: var(--surface-2);
}

.drawer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    color: var(--text);
    transition: all 0.3s var(--ease-smooth);
}

.social-link:hover {
    background: var(--theme-accent);
    color: white;
    transform: translateY(-3px);
}

.drawer-credits {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.drawer-credits a {
    color: var(--text-muted);
    text-decoration: none;
}

.drawer-credits a:hover {
    color: var(--text-muted);
}

/* ================================
   SEARCH OVERLAY
   ================================ */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease-smooth);
}

.search-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.search-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: env(safe-area-inset-top, 0);
}

.search-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--stroke);
}

.search-input {
    flex: 1;
    height: 44px;
    padding: 0 15px;
    border: none;
    background: var(--surface-2);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
}

.btn-close-search {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--text);
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* ================================
   MAIN CONTENT
   ================================ */

.site-main {
    padding-top: 60px; /* app-header height */
    padding-bottom: 70px; /* bottom-nav */
    min-height: 100vh;
}

/* ================================
   SECTIONS
   ================================ */

.section {
    padding: 10px 10px;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text);
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 40px;
}

/* ================================
   BUTTONS
   ================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
}

.btn-primary {
    background: var(--theme-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(228, 45, 47, 0.3);
}

.btn-primary:hover {
    background: var(--theme-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(228, 45, 47, 0.5);
}

.btn-secondary {
    background: var(--theme-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(41, 44, 97, 0.3);
}

.btn-secondary:hover {
    background: var(--theme-primary-xdark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 44, 97, 0.5);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
}

.btn:active {
    transform: translateY(0) scale(0.98);
}

/* ================================
   HERO
   ================================ */

.hero {
    position: relative;
    min-height: auto;
    padding: 80px 20px 40px;
    background: var(--gradient-dark-hero);
    overflow: hidden;
    margin-top: -75px;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo-copasp {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.hero-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--theme-accent);
    line-height: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    margin-top: 5px;
}



.card-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--theme-accent);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(228, 45, 47, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(228, 45, 47, 0); }
}

.race-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.race-venue {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
}

.race-date {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin: 20px 0;
}

.countdown-item {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 10px;
    border-radius: 12px;
}

.countdown-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--theme-accent);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    margin-top: 5px;
}

/* Weather Box */
.weather-box {
    background: rgba(33, 150, 243, 0.2);
    border: 2px solid #2196f3;
    border-radius: 12px;
    padding: 12px;
    margin: 20px 0;
    text-align: center;
}

.weather-line {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e3f2fd;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* ================================
   ABOUT SECTION
   ================================ */

.section-about,
.about-section {
    padding: 60px 20px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 40px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s var(--ease-smooth);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ================================
   CATEGORIAS
   ================================ */

.categories-section {
    padding: 60px 20px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.category-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s var(--ease-smooth);
    display: flex;
    flex-direction: column;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.category-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f0f0f0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-smooth);
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    padding: 20px;
}

.category-content h4 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 700;
}

.category-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.category-actions {
    display: flex;
    gap: 10px;
}

.btn-category {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

.btn-about {
    background: var(--theme-accent);
    color: white;
}

.btn-about:hover {
    background: var(--theme-accent-dark);
    transform: translateY(-2px);
}

.btn-results {
    background: var(--theme-primary);
    color: white;
}

.btn-results:hover {
    background: var(--theme-primary-xdark);
    transform: translateY(-2px);
}

/* ================================
   CALENDÁRIO
   ================================ */

.calendar-section {
    padding: 60px 20px;
}

.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.calendar-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s var(--ease-smooth);
    align-items: center;
}

.calendar-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.calendar-item.active {
    border: 2px solid var(--theme-accent);
    box-shadow: 0 6px 25px rgba(228, 45, 47, 0.2);
}

.calendar-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
}

.calendar-date .month {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--theme-accent);
    text-transform: uppercase;
}

.calendar-date .day {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
}

.calendar-info h4 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 5px;
    font-weight: 700;
}

.calendar-info .venue {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.calendar-info .time {
    font-size: 0.85rem;
    color: var(--text-faint);
}

.calendar-status {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.status-badge {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.concluido {
    background: #e8f5e9;
    color: #4caf50;
}

.status-badge.inscricoes {
    background: #fff3e0;
    color: var(--theme-accent);
    animation: pulse 2s infinite;
}

.status-badge.agendado {
    background: #f5f5f5;
    color: #757575;
}

.btn-calendar {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

.btn-inscricao {
    background: var(--theme-accent);
    color: white;
}

.btn-inscricao:hover {
    background: var(--theme-accent-dark);
    transform: translateY(-2px);
}

/* ================================
   FAQ
   ================================ */

.faq-section {
    padding: 60px 20px;
}

.faq-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s var(--ease-smooth);
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.faq-question {
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--theme-primary);
    transition: transform 0.3s var(--ease-smooth);
    font-style: normal;
}

.faq-icon.open {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-smooth), padding 0.4s var(--ease-smooth);
    padding: 0 20px;
}

.faq-answer.open {
    max-height: 500px;
    padding: 0 20px 18px 20px;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 10px;
}

.faq-cta {
    position: sticky;
    top: 120px;
}

.faq-cta-content {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 20px;
    text-align: center;
}

.faq-cta h3 {
    font-size: 1.6rem;
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 700;
}

.faq-cta p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ================================
   DOCUMENTOS
   ================================ */

.documents-section {
    padding: 60px 20px;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.document-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s var(--ease-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.document-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.document-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.document-card h4 {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 8px;
    font-weight: 700;
}

.document-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* ================================
   CTA INSCRIÇÕES
   ================================ */

.section-cta,
.cta-section {
    padding: 60px 20px;
    background: var(--gradient-accent);
}

.cta-content {
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 900;
    color: #e32d2f;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.cta-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.cta-icon {
    font-size: 1.5rem;
}

.cta-text {
    font-weight: 600;
}


/* ================================
   FOOTER
   ================================ */

.app-footer {
    background: var(--theme-primary);
    color: white;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

.footer-col ul li a:hover {
    color: white;
}

.footer-address {
    margin-top: 20px;
}

.footer-address p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-address a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

.social-btn:hover {
    background: var(--theme-accent);
    transform: translateX(5px);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.footer-badges {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.badge-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 60px;
}

.footer-bottom-left,
.footer-bottom-right {
    flex: 1;
}

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

.footer-sponsor {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.sponsor-logo {
    height: 24px;
    width: auto;
}

.footer-legal {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 10px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: white;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.5);
}

.footer-credits {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-credits a:hover {
    color: white;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 160px;
    width: 48px;
    height: 48px;
    background: var(--theme-primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(41, 44, 97, 0.4);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease-bounce);
    z-index: 996;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(var(--theme-accent-rgb, 228, 45, 47), 0.6);
}

/* ================================
   MOBILE (768px)
   ================================ */

@media (max-width: 768px) {

    .section-title {
        font-size: 1.2rem;
    }

    .logo-copasp {
        max-width: 250px;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .countdown {
        gap: 8px;
    }

    .countdown-item {
        padding: 12px 8px;
    }

    .countdown-value {
        font-size: 1.6rem;
    }

    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .calendar-item {
        grid-template-columns: 60px 1fr;
    }

    .calendar-status {
        grid-column: 1 / -1;
        align-items: stretch;
        margin-top: 10px;
    }

    .btn-calendar {
        width: 100%;
    }

    .faq-content {
        grid-template-columns: 1fr;
    }

    .faq-cta {
        position: relative;
        top: 0;
    }

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

    .cta-info {
        flex-direction: column;
        gap: 15px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}


/* ================================
   HERO - MÁXIMA LEGIBILIDADE
   ================================ */

.hero {
    position: relative;
    min-height: auto;
    padding: 80px 20px 40px;
    background: var(--gradient-dark-hero);
    overflow: hidden;
    margin-top: -75px;
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4); /* Mais escuro */
}

/* Overlay MAIS ESCURO */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo-copasp {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.8));
}

.hero-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--theme-accent);
    line-height: 1;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    margin-top: 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 600;
}

/* Next Race Card - Glass com fundo mais escuro */
.next-race-card {
    margin-top: 30px;
}

.card-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--theme-accent);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
    box-shadow: 0 4px 12px rgba(228, 45, 47, 0.5);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(228, 45, 47, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(228, 45, 47, 0); }
}

.race-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
}

.race-venue {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

.race-date {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

/* Countdown - fundo BRANCO opaco */
.countdown {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin: 20px 0;
}

.countdown-item {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.95); /* FUNDO BRANCO */
    padding: 15px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.countdown-value {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--theme-accent); /* Cor de acento do tema */
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.7); /* TEXTO ESCURO */
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: 600;
}

/* Weather Box - fundo AZUL mais forte */
.weather-box {
    background: rgba(33, 150, 243, 0.85); /* Mais opaco */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(33, 150, 243, 0.6);
    border-radius: 12px;
    padding: 12px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.weather-line {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* CTAs - LADO A LADO */
.hero-cta {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 20px;
}

.hero-cta .btn {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile: empilhar se < 400px */
@media (max-width: 400px) {

    .section-title {
        font-size: 1.2rem;
    }

    .about-text {
        font-size: 0.9rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

/* Mobile: ajustes gerais */
@media (max-width: 768px) {

    .section-title {
        font-size: 1.2rem;
    }

    .about-text {
     font-size: 0.9rem;
    }

    .logo-copasp {
        max-width: 250px;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .countdown {
        gap: 8px;
    }

    .countdown-item {
        padding: 12px 8px;
    }

    .countdown-value {
        font-size: 1.6rem;
    }
}



/* ================================
   MOBILE - EMPILHAR FEATURES
   ================================ */

/* Telas menores que 600px: 1 coluna */
@media (max-width: 600px) {
    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Telas entre 601px e 768px: 2 colunas */
@media (min-width: 601px) and (max-width: 768px) {
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Telas maiores que 768px: auto-fit com min 150px */
@media (min-width: 769px) {
    .about-features {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}


/* ================================
   HERO - BOTÕES RESPONSIVOS
   ================================ */

/* Botões gerais */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1rem;
}

/* Hero CTAs */
.hero-cta {
    display: flex;
    flex-direction: row;
    gap: 12px;
    margin-top: 20px;
}

.hero-cta .btn {
    flex: 1;
    min-width: 0;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ================================
   MOBILE - AJUSTES DE TEXTO
   ================================ */

/* Telas pequenas (< 380px) - texto menor e padding reduzido */
@media (max-width: 380px) {
    .hero-cta .btn {
        font-size: 0.8rem;
        padding: 12px 16px;
        gap: 6px;
    }

    .hero-cta .btn-lg {
        font-size: 0.85rem;
        padding: 12px 16px;
    }

    /* Emojis menores */
    .hero-cta .btn span {
        font-size: 0.9em;
    }
}

/* Telas muito pequenas (< 340px) - empilhar */
@media (max-width: 340px) {
    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        font-size: 0.85rem;
    }
}

/* Telas médias (381px - 480px) */
@media (min-width: 381px) and (max-width: 480px) {
    .hero-cta .btn {
        font-size: 0.85rem;
        padding: 12px 20px;
    }

    .hero-cta .btn-lg {
        font-size: 0.8rem;
        padding: 14px 24px;
    }
}

/* Ajuste no texto do botão - quebrar texto se necessário */
.hero-cta .btn span {
    display: inline-block;
    line-height: 1.2;
}

/* Alternativa: Texto mais curto em mobile */
.hero-cta .btn .btn-text-full {
    display: inline;
}

.hero-cta .btn .btn-text-short {
    display: none;
}

@media (max-width: 380px) {
    .hero-cta .btn .btn-text-full {
        display: none;
    }

    .hero-cta .btn .btn-text-short {
        display: inline;
    }
}

/* ================================
   CTA INSCRIÇÕES - LEGIBILIDADE
   ================================ */

.section-cta,
.cta-section {
    padding: 60px 20px;
    background: var(--gradient-accent);
    position: relative;
}

.cta-content {
    padding: 40px 30px;
    background: rgba(0, 0, 0, 0.25); /* Fundo escuro semi-transparente */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.cta-title {
    font-size: 2rem;
    font-weight: 900;
    color: #e32d2f;
    margin-bottom: 15px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgb(41, 44, 97);
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.cta-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    border-radius: 12px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    font-weight: 600;
}

.cta-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.cta-text {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Botão CTA - destaque máximo */
.cta-content .btn-primary {
    background: white;
    color: var(--theme-accent);
    font-size: 1.1rem;
    padding: 18px 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-content .btn-primary:hover {
    background: #f5f5f5;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.cta-content .btn-large {
    padding: 18px 40px;
    font-size: 1.1rem;
}

/* ================================
   MOBILE - CTA RESPONSIVO
   ================================ */

@media (max-width: 768px) {
    .cta-title {
        font-size: 1.6rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-info {
        flex-direction: column;
        gap: 15px;
    }

    .cta-item {
        justify-content: center;
    }

    .cta-content .btn-primary,
    .cta-content .btn-large {
        width: 100%;
        font-size: 1rem;
        padding: 16px 32px;
    }
}

@media (max-width: 480px) {
    .cta-content {
        padding: 30px 20px;
    }

    .cta-title {
        font-size: 1.4rem;
    }

    .cta-subtitle {
        font-size: 0.95rem;
    }

    .cta-item {
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .cta-icon {
        font-size: 1.3rem;
    }
}

/* ================================
   FOOTER - AJUSTES
   ================================ */

.app-footer {
    background: var(--theme-primary);
    color: white;
    padding: 60px 20px 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s var(--ease-smooth);
}

.footer-col ul li a:hover {
    color: white;
}

.footer-address {
    margin-top: 20px;
}

.footer-address p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-address a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
}

.social-btn:hover {
    background: var(--theme-accent);
    transform: translateX(5px);
}

.social-btn svg {
    width: 24px;
    height: 24px;
}

.footer-badges {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.badge-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s var(--ease-smooth);
}

.badge-img:hover {
    opacity: 1;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-bottom-left,
.footer-bottom-right {
    width: 100%;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 10px 0;
    font-size: 0.9rem;
}

/* PATROCÍNIO CENTRALIZADO */
.footer-sponsor {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.footer-sponsor span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.sponsor-logo {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-legal {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: white;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.5);
}

.footer-credits {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.footer-credits a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.footer-credits a:hover {
    color: white;
}

/* ================================
   BACK TO TOP - VERMELHO
   ================================ */

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 90px; /* Acima do bottom-nav */
    width: 48px;
    height: 48px;
    background: var(--theme-accent); /* VERMELHO */
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(228, 45, 47, 0.4);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease-bounce);
    z-index: 996;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--theme-accent-dark);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(var(--theme-accent-rgb, 228, 45, 47), 0.6);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

/* ================================
   REMOVER FAB (Inscreva-se flutuante)
   ================================ */

.fab {
    display: none !important; /* REMOVIDO */
}

/* ================================
   MOBILE - FOOTER RESPONSIVO
   ================================ */

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        padding-top: 20px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 10px;
    }

    .footer-sponsor {
        flex-direction: column;
        gap: 10px;
    }

    .back-to-top {
        bottom: 85px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 480px) {
    .footer-badges {
        justify-content: center;
    }

    .badge-img {
        height: 40px;
    }

    .sponsor-logo {
        height: 24px;
    }
}

/* ================================
   HERO - STATS (BULLETS) ALINHADOS
   ================================ */

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Alinha pela base */
    gap: 30px;
    margin: 30px 0;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Alinha pela base */
    min-width: 80px; /* Largura mínima consistente */
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--theme-accent);
    line-height: 1;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8);
    margin-bottom: 8px; /* Espaço fixo entre número e label */
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    font-weight: 600;
    line-height: 1.2;
    min-height: 28px; /* Altura mínima para labels de 2 linhas */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================
   MOBILE - STATS RESPONSIVOS
   ================================ */

@media (max-width: 768px) {
    .hero-stats {
        gap: 20px;
    }

    .stat-item {
        min-width: 70px;
    }

    .stat-value {
        font-size: 2rem;
        margin-bottom: 6px;
    }

    .stat-label {
        font-size: 0.7rem;
        min-height: 26px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 15px;
    }

    .stat-item {
        min-width: 60px;
    }

    .stat-value {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .stat-label {
        font-size: 0.65rem;
        min-height: 24px;
    }
}

/* ================================================================================
   CALENDÁRIO CUSTOMIZADO - CSS ADICIONAL
   Adicione este CSS ao final do seu mobile-first.css
   ================================================================================ */

/* ================================
   CALENDÁRIO - VERSÃO CUSTOMIZADA
   ================================ */

.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.calendar-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 20px;
    padding: 24px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s var(--ease-smooth);
    align-items: center;
    border: 2px solid transparent;
    position: relative;
}

/* Estados do calendário (bordas diferentes) */
.calendar-item.status-futuro {
    border-color: #e0e0e0;
}

.calendar-item.status-andamento {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff 0%, #fff8f0 100%);
    box-shadow: 0 6px 25px rgba(255, 152, 0, 0.2);
}

.calendar-item.status-realizado {
    border-color: #4caf50;
    opacity: 0.9;
}

.calendar-item.status-cancelado {
    border-color: #f44336;
    opacity: 0.7;
    background: #fafafa;
}

/* Hover - só para eventos futuros e realizados */
.calendar-item.status-futuro:hover,
.calendar-item.status-realizado:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--theme-accent);
}

.calendar-item.status-andamento:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 152, 0, 0.3);
    border-color: #f57c00;
}

/* Box da data */
.calendar-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-dark-hero);
    border-radius: 14px;
    padding: 16px 12px;
    min-width: 90px;
    box-shadow: 0 4px 12px rgba(41, 44, 97, 0.3);
}

.calendar-date .month {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-date .day {
    font-size: 2.2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-top: 4px;
}

.calendar-date .date-qualify {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
    margin-bottom: 2px;
    white-space: nowrap;
}
.calendar-date .date-qualify::before {
    content: "Quali ";
}

/* Info do evento */
.calendar-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-title {
    font-size: 1.3rem;
    color: var(--text);
    margin: 0 0 4px 0;
    font-weight: 700;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.event-location svg {
    color: var(--theme-accent);
    flex-shrink: 0;
}

.event-details {
    display: flex;
    gap: 20px;
    margin-top: 4px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-faint);
    font-size: 0.85rem;
    font-weight: 500;
}

.detail-item svg {
    color: var(--theme-primary);
    flex-shrink: 0;
}

.event-schedule {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--theme-primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 4px;
}

.event-schedule svg {
    flex-shrink: 0;
}

/* Status e Ações */
.calendar-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    min-width: 160px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-futuro {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-andamento {
    background: #fff3e0;
    color: #e65100;
    animation: pulseOrange 2s infinite;
}

@keyframes pulseOrange {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 152, 0, 0);
    }
}

.badge-realizado {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge-cancelado {
    background: #ffebee;
    color: #c62828;
}

/* Botões de ação */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.btn-action svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.btn-results {
    background: var(--theme-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(41, 44, 97, 0.3);
}

.btn-results:hover {
    background: var(--theme-primary-xdark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 44, 97, 0.5);
}

.btn-agenda {
    background: var(--theme-accent);
    color: white;
    box-shadow: 0 2px 8px rgba(228, 45, 47, 0.3);
}

.btn-agenda:hover {
    background: var(--theme-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(228, 45, 47, 0.5);
    color: white;
}

.btn-action:active {
    transform: translateY(0);
}

/* ================================
   RESPONSIVO - TABLET (< 900px)
   ================================ */

@media (max-width: 900px) {
    .calendar-item {
        grid-template-columns: 80px 1fr auto;
        gap: 16px;
        padding: 20px;
    }

    .calendar-date {
        min-width: 80px;
        padding: 14px 10px;
    }

    .calendar-date .day {
        font-size: 1.8rem;
    }

    .event-title {
        font-size: 1.15rem;
    }

    .event-details {
        flex-wrap: wrap;
        gap: 12px;
    }

    .calendar-actions {
        min-width: 140px;
    }
}

/* ================================
   RESPONSIVO - MOBILE (< 640px)
   ================================ */

@media (max-width: 640px) {
    .calendar-item {
        grid-template-columns: 70px 1fr;
        gap: 14px;
        padding: 16px;
    }

    .calendar-date {
        min-width: 70px;
        padding: 12px 8px;
    }

    .calendar-date .month {
        font-size: 0.75rem;
    }

    .calendar-date .day {
        font-size: 1.6rem;
    }

    .event-title {
        font-size: 1.05rem;
    }

    .event-location {
        font-size: 0.9rem;
    }

    .event-details {
        flex-direction: column;
        gap: 6px;
    }

    .detail-item,
    .event-schedule {
        font-size: 0.8rem;
    }

    /* Ações ocupam linha inteira no mobile */
    .calendar-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-width: auto;
        margin-top: 8px;
    }

    .action-buttons {
        flex-direction: row;
        flex: 1;
        justify-content: flex-end;
    }

    .btn-action {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    /* Botão com texto completo no mobile */
    .btn-action svg {
        margin: 0;
    }
}

/* ================================
   EXTRA SMALL MOBILE (< 400px)
   ================================ */

@media (max-width: 400px) {
    .calendar-item {
        padding: 14px;
        gap: 12px;
    }

    .calendar-date {
        min-width: 60px;
        padding: 10px 6px;
    }

    .calendar-date .day {
        font-size: 1.4rem;
    }

    .event-title {
        font-size: 0.95rem;
    }

    .status-badge {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .btn-action {
        padding: 8px 12px;
    }
}

/* ================================
   ACESSIBILIDADE
   ================================ */

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus states */
.btn-action:focus-visible {
    outline: 3px solid var(--theme-accent);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .calendar-item,
    .btn-action,
    .status-badge {
        transition: none;
        animation: none;
    }
}

/* ================================
   ESTADOS ESPECIAIS
   ================================ */

/* Evento cancelado com risco */
.calendar-item.status-cancelado::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #f44336;
    transform: translateY(-50%) rotate(-5deg);
    opacity: 0.3;
    pointer-events: none;
}

/* Destaque para evento em andamento */
.calendar-item.status-andamento::before {
    content: "🔴 AO VIVO";
    position: absolute;
    top: -10px;
    right: 20px;
    background: #e65100;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    animation: pulseOrange 2s infinite;
    box-shadow: 0 2px 8px rgba(230, 81, 0, 0.4);
}

/* ================================
   LOADING STATE
   ================================ */

.calendar-item.loading {
    pointer-events: none;
    opacity: 0.6;
}

.calendar-item.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--theme-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ================================
   NO EVENTS MESSAGE
   ================================ */

.no-events {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.no-events::before {
    content: "📅";
    display: block;
    font-size: 4rem;
    margin-bottom: 20px;
}


/* ================================================================================
   BOTÕES PRIMÁRIOS - COR DE ACENTO DO TEMA
   ================================================================================ */

.btn-primary,
.hero-cta .btn-primary,
.btn-inscricao,
.section-categories .btn-results,
.modal-cta .btn-primary {
    background: var(--gradient-accent);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 20px rgba(228, 45, 47, 0.35);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover,
.hero-cta .btn-primary:hover,
.btn-inscricao:hover,
.section-categories .btn-results:hover,
.modal-cta .btn-primary:hover {
    background: var(--gradient-accent-rev);
    box-shadow: 0 6px 28px rgba(228, 45, 47, 0.55);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 12px rgba(228, 45, 47, 0.4);
}

/* ================================================================================
   BOTÕES SECUNDÁRIOS - COR PRIMÁRIA DO TEMA
   ================================================================================ */

.btn-secondary,
.hero-cta .btn-secondary,
.section-categories .btn-about,
.modal-cta .btn-secondary {
    background: var(--gradient-primary);
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 20px rgba(41, 44, 97, 0.3);
}

.btn-secondary:hover,
.hero-cta .btn-secondary:hover,
.section-categories .btn-about:hover,
.modal-cta .btn-secondary:hover {
    background: var(--gradient-dark-hero);
    box-shadow: 0 6px 28px rgba(41, 44, 97, 0.5);
    transform: translateY(-2px);
}

/* ================================================================================
   FAB (Floating Action Button) - VERMELHO
   ================================================================================ */

.fab {
    background: var(--gradient-accent);
    box-shadow: 0 6px 24px rgba(228, 45, 47, 0.45);
}

.fab:hover {
    background: var(--gradient-accent-rev);
    box-shadow: 0 8px 32px rgba(228, 45, 47, 0.65);
}

/* ================================================================================
   BADGES E ACENTOS
   ================================================================================ */

.card-badge,
.status-badge.badge-andamento {
    background: var(--gradient-accent);
    box-shadow: 0 2px 12px rgba(228, 45, 47, 0.3);
    color: white;
}

/* Countdown items - fundo branco mantém, só ajusta valor */
.countdown-value {
    color: var(--theme-accent); /* Cor de acento do tema */
}

/* Weather box - mantém azul, mas ajusta tom */
.weather-box {
    background: rgba(41, 44, 97, 0.15);
    border: 2px solid rgba(41, 44, 97, 0.3);
}

/* Links e acentos no texto */
a:hover,
.text-accent {
    color: var(--theme-accent);
}

/* ================================================================================
   CATEGORIAS - AJUSTE FINO
   ================================================================================ */

.section-categories .section-title::after {
    background: linear-gradient(90deg, var(--theme-accent) 0%, var(--theme-accent-bright) 100%);
}

.section-categories .group-title {
    border-left: 4px solid var(--theme-accent);
}

/* ================================================================================
   MODAL - AJUSTES
   ================================================================================ */

.modal-badge {
    background: rgba(228, 45, 47, 0.12);
    color: var(--theme-accent);
}

.info-item svg,
.modal-cta svg {
    color: var(--theme-accent);
    stroke: var(--theme-accent);
}



/* ====== BACK TO TOP - FIX CLICK NO SVG ====== */

.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 48px;
    height: 48px;
    background: var(--theme-accent);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(var(--theme-accent-rgb, 228, 45, 47), 0.4);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 996;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ✅ DESABILITA POINTER-EVENTS NO SVG (Evita interferência) */
.back-to-top svg,
.back-to-top svg * {
    pointer-events: none !important; /* ✅ SVG não captura clicks */
}

.back-to-top:hover {
    background: var(--theme-accent-medium);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(var(--theme-accent-rgb, 228, 45, 47), 0.6);
}

.back-to-top:active {
    transform: translateY(-2px) scale(0.95);
}

/* Mobile */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 85px;
        right: 15px;
        width: 44px;
        height: 44px;
    }
}


