/* 1. IMPORTAÇÕES E RESET */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif !important;
    background-color: #f8f9fa;
    color: #333;
}

/* 2. BANNER PRINCIPAL COM ANIMAÇÕES (Zoom, Hover, Overlay) */
.banner-principal {
    width: 100%;
    height: 400px;
    background-image: url('fundo-corrida.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Efeito de zoom na imagem */
.banner-principal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: inherit;
    background-size: cover;
    transition: transform 8s ease;
    z-index: 0;
}

.banner-principal:hover::before {
    transform: scale(1.1);
}

/* Overlay para escurecimento no hover */
.banner-principal::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.5s ease;
    z-index: 1;
}

.banner-principal:hover::after {
    background: rgba(0, 0, 0, 0.6);
}

/* Animação do texto */
.texto-banner {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.5s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 3. ESTILIZAÇÃO DOS CARDS */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
    border: none;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.card-img-top {
    height: 180px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* 4. ELEMENTOS DE SUPORTE */
.titulo-secao {
    font-weight: 700;
    color: #212529;
}

/* Ajuste para o botão do destaque */
.btn-lg {
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Ajuste para garantir que o menu não tenha margens estranhas no topo */
header {
    width: 100%;
}

body {
    padding-top: 0 !important;
}

/* Garante que o banner não tenha margem superior indesejada */
.banner-principal {
    margin-top: 0 !important;
}