/* Banner */
.hero-section {
    position: relative;
    width: 100%;
    height: 400px;
    margin-top: 80px;
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-contain {
    object-fit: contain;
    background-color: #050505;
    padding: 40px 8%;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1;
    color: white;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
}

/* Conta */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: white;
    display: inline-block;
    padding-bottom: 10px;
    border-bottom: 3px solid #FF2800;
}

.section-header p {
    color: #aaa;
    margin-top: 10px;
}

/* Formulário */
.historia-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

.historia-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.historia-texto {
    flex: 1;
}

.historia-texto h2 {
    color: #FF2800;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.historia-texto p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 15px;
}

.historia-video {
    flex: 1;
}

.historia-video video {
    width: 100%;
    border-radius: 12px;
}

/* Pilotos */
.pilotos-section {
    padding: 60px 0;
    background-color: #222;
}

.pilotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.piloto-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.piloto-card:hover {
    transform: translateY(-5px);
}

.piloto-foto {
    width: 100%;
    height: 200px;
    box-sizing: border-box;
    object-fit: cover;
    object-position: center;
    display: block;
}

.piloto-foto[data-image-fit="contain"] {
    height: 240px;
    object-fit: contain;
    object-position: center bottom;
    background: radial-gradient(circle at center top, #2b3440 0, #111820 58%, #0b0f14 100%);
    padding: 12px 12px 0;
}

.piloto-info {
    padding: 15px;
}

.piloto-info h3 {
    color: #FF2800;
    margin-bottom: 5px;
}

.piloto-info p {
    color: #aaa;
}

.piloto-info .piloto-meta {
    margin-top: 6px;
    color: #c7d2dc;
    font-size: 0.85rem;
}

.piloto-info .piloto-classe {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 40, 0, 0.14);
    color: #ffb0a3;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* Calendário */
.etapas-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

.etapas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.etapa-card {
    background: #222;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s;
}

.etapa-card:hover {
    transform: translateY(-5px);
}

.etapa-imagem {
    width: 100%;
    height: 200px;
    box-sizing: border-box;
    object-fit: cover;
    object-position: center;
    display: block;
}

.etapa-imagem[data-image-fit="contain"] {
    height: 210px;
    object-fit: contain;
    background: #111820;
    padding: 8px;
}

.etapa-info {
    padding: 15px;
    text-align: center;
}

.etapa-info h3 {
    color: #FF2800;
    margin-bottom: 8px;
}

.etapa-info p {
    color: #aaa;
    font-size: 0.9rem;
}

.etapa-info .etapa-meta {
    margin-top: 6px;
    color: #c7d2dc;
    font-weight: 700;
}

/* Resultados */
.classificacao-section {
    padding: 60px 0;
    background-color: #222;
}

.tabela-container {
    overflow-x: auto;
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
}

.classificacao-tabela {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.classificacao-tabela th {
    background: #FF2800;
    color: white;
    padding: 12px;
    text-align: left;
}

.classificacao-tabela td {
    padding: 10px 12px;
    color: #ddd;
    border-bottom: 1px solid #333;
}

.classificacao-tabela tr:hover {
    background: rgba(255, 40, 0, 0.1);
}

/* Galeria */
.galeria-section {
    padding: 60px 0;
    background-color: #1a1a1a;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.galeria-item {
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.galeria-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s;
}

.galeria-item:hover img {
    transform: scale(1.05);
}

.galeria-placeholder-item {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    background:
        linear-gradient(135deg, rgba(255, 40, 0, 0.1), transparent 45%),
        #151515;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    cursor: default;
}

.galeria-placeholder-item .galeria-placeholder-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    background-color: rgba(255, 40, 0, 0.12);
    font-size: 1.2rem;
}

.galeria-placeholder-item span {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.section-button-container {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.section-button {
    display: inline-block;
    padding: 14px 35px;
    background: #FF2800;
    color: white !important;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 40, 0, 0.25);
}

.section-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 40, 0, 0.35);
    background: #FF3300;
}

.classificacao-ver-mais {
    margin-top: 16px;
    margin-bottom: 10px;
}

.section-button-small {
    padding: 9px 22px;
    border-radius: 999px;
    font-size: 0.85rem;
    box-shadow: 0 5px 14px rgba(255, 40, 0, 0.18);
}

.section-button-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(255, 40, 0, 0.28);
}

.videos-section {
    padding: 60px 0;
    background-color: #222;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.video-card {
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumb {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.video-info {
    padding: 15px;
    text-align: center;
}

.video-info h3 {
    color: white;
    font-size: 0.9rem;
}

/* Efeitos */
@media (max-width: 768px) {
    .hero-section {
        height: 300px;
        margin-top: 130px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .historia-grid {
        flex-direction: column;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 250px;
        margin-top: 135px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
}
