* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f8;
    color: #222;
    min-height: 100vh;
}


/* ==================================================
   CABEÇALHO
================================================== */

.topo {
    background: #ffffff;
    padding: 24px 18px 20px;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
}

.logo {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: #e53935;
}

.subtitulo {
    margin-top: 6px;
    font-size: 14px;
    color: #777;
}


/* ==================================================
   CONTEÚDO
================================================== */

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 25px 16px 30px;
}

.titulo {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 6px;
}

.descricao {
    font-size: 15px;
    color: #777;
    margin-bottom: 25px;
}


/* ==================================================
   REGIÕES
================================================== */

.regiao {
    margin-bottom: 28px;
}

.titulo-regiao {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e5e5;
}


/* ==================================================
   ESTADOS
================================================== */

.lista-estados {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.estado {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 64px;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 12px;

    padding: 10px 13px;

    text-decoration: none;
    color: #222;

    transition: 0.15s;
}

.estado:active {
    transform: scale(0.97);
    background: #f1f1f1;
}

.estado-esquerda {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sigla {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f1f2f4;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 800;
}

.nome {
    font-size: 14px;
    font-weight: 600;
    line-height: 17px;
}

.seta {
    font-size: 21px;
    color: #aaa;
}


/* ==================================================
   PROPAGANDA 320 x 100
================================================== */

.propaganda {
    width: 320px;
    height: 100px;

    max-width: 100%;

    margin: 20px auto;

    text-align: center;

    overflow: hidden;
}


/* ==================================================
   PROPAGANDA 320 x 50
================================================== */

.propaganda320x50 {
    width: 320px;
    height: 50px;

    max-width: 100%;

    margin: 18px auto;

    text-align: center;

    overflow: hidden;
}

/* ==================================================
   PROPAGANDA 300 x 250
================================================== */

.propaganda300x250 {
    width: 300px;
    height: 250px;

    max-width: 100%;

    margin: 30px auto 20px;

    text-align: center;

    overflow: hidden;
}

/* ==================================================
   VOLTAR
================================================== */

.voltar {
    margin-bottom: 18px;
}

.voltar a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}


/* ==================================================
   TÍTULO DO ESTADO
================================================== */

.titulo-estado {
    font-size: 40px;
    font-weight: 400;
    margin-bottom: 24px;
}

.titulo-estado strong {
    font-weight: 700;
}


/* ==================================================
   BOTÕES DE CALENDÁRIO
================================================== */

.botoes-calendario {
    display: flex;
    width: 100%;
    gap: 10px;

    margin: 0 0 22px 0;
}

.botao-calendario {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1;
    min-width: 0;
    min-height: 52px;

    padding: 8px 6px;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 9px;

    color: #333333;

    text-decoration: none;
    text-align: center;

    font-size: 17px;
    font-weight: 700;
    line-height: 20px;

    cursor: pointer;

    -webkit-tap-highlight-color: transparent;
}

.botao-calendario:link,
.botao-calendario:visited,
.botao-calendario:hover,
.botao-calendario:active {
    color: #333333;
    text-decoration: none;
}

.botao-calendario:active {
    background: #eeeeee;
}

.botoes-calendario.meses {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.botoes-calendario.meses .botao-calendario {
    text-align: center;
    padding-left: 4px;
    padding-right: 4px;
}

/* ==================================================
   DIA
================================================== */

.dia {
    margin-bottom: 24px;
}


/* ==================================================
   DATA
================================================== */

.data-corridas {
    display: block;
    width: 100%;

    font-size: 16px;
    font-weight: 700;

    color: #444;
    background: #e5e5e5;

    padding: 7px 10px;

    margin-bottom: 8px;

    border-radius: 4px;
}


/* ==================================================
   LISTA DE CORRIDAS
================================================== */

.lista-corridas {
    width: 100%;
}


/* ==================================================
   CORRIDA
================================================== */

.corrida {
    display: block;

    width: 100%;

    padding: 7px 4px;

    margin-bottom: 6px;

    border-bottom: 1px solid #e5e5e5;

    color: #222;
    text-decoration: none;

    cursor: pointer;
}

.corrida:link,
.corrida:visited,
.corrida:hover,
.corrida:active {
    color: #222;
    text-decoration: none;
}


/* ==================================================
   CIDADE + DISTÂNCIA
================================================== */

.cidade-distancia {
    display: flex;
    align-items: center;

    font-size: 16px;
    line-height: 21px;

    color: #222;
}


/* ==================================================
   CIDADE
================================================== */

.cidade {
    color: #222;
    font-weight: 700;
}


/* ==================================================
   DISTÂNCIA
================================================== */

.distancia {
    margin-left: 6px;

    color: #222;

    font-size: 15px;
    font-weight: 600;
}


/* ==================================================
   NOME DA PROVA
================================================== */

.prova {
    display: block;

    margin-top: 3px;

    font-size: 15px;
    line-height: 20px;

    color: #222;

    font-weight: 400;
}


/* ==================================================
   NENHUMA CORRIDA
================================================== */

.sem-corridas {
    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    padding: 20px;

    text-align: center;

    color: #777;

    font-size: 15px;
}


/* ==================================================
   CIDADES
================================================== */

.total-cidades {
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
}

.lista-cidades {
    width: 100%;
}

.grupo-cidades {
    margin-bottom: 22px;
}


/* ==================================================
   LETRA DAS CIDADES
================================================== */

.letra-cidades {
    display: block;

    width: 100%;

    padding: 6px 10px;

    margin-bottom: 2px;

    background: #e5e5e5;

    border-radius: 4px;

    color: #444;

    font-size: 18px;
    font-weight: 800;
}


/* ==================================================
   GRUPO DE CIDADES
================================================== */

.cidades-grupo {
    width: 100%;
}


/* ==================================================
   CIDADE NA LISTA
================================================== */

.cidade-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 46px;

    padding: 8px 10px;

    color: #222;
    text-decoration: none;

    border-bottom: 1px solid #eeeeee;

    transition: 0.15s;
}

.cidade-item:link,
.cidade-item:visited,
.cidade-item:hover,
.cidade-item:active {
    color: #222;
    text-decoration: none;
}

.cidade-item:active {
    background: #f1f1f1;
}

.cidade-nome {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.cidade-seta {
    font-size: 21px;
    color: #aaa;
}


/* ==================================================
   TÍTULO DA CORRIDA
================================================== */

.titulo-corrida {
    font-size: 27px;
    line-height: 32px;

    font-weight: 700;

    color: #222;

    margin-bottom: 20px;
}


/* ==================================================
   INFORMAÇÕES DA CORRIDA
================================================== */

.info-corrida {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e2e2e2;
    border-radius: 10px;

    overflow: hidden;
}

.info-corrida-item {
    padding: 10px 13px;

    border-bottom: 1px solid #eeeeee;
}

.info-corrida-item:last-child {
    border-bottom: none;
}

.info-corrida-label {
    font-size: 14px;
    line-height: 17px;

    color: #888;

    margin-bottom: 2px;

    font-weight: 600;
}

.info-corrida-valor {
    font-size: 18px;
    line-height: 22px;

    color: #222;

    font-weight: 600;
}


/* ==================================================
   LINKS DA CORRIDA
================================================== */

.links-corrida {
    width: 100%;
    margin-top: 16px;
}

.links-duplos {
    display: flex;

    width: 100%;
    gap: 10px;
}

.link-corrida {
    display: flex;

    align-items: center;
    justify-content: center;

    flex: 1;

    width: 100%;
    min-height: 46px;

    padding: 8px 10px;

    background: #ffffff;

    border: 1px solid #dcdcdc;
    border-radius: 8px;

    color: #333;

    text-decoration: none;
    text-align: center;

    font-size: 17px;
    font-weight: 700;
}

.link-corrida:link,
.link-corrida:visited,
.link-corrida:hover,
.link-corrida:active {
    color: #333;
    text-decoration: none;
}

.link-corrida:active {
    background: #eeeeee;
}


/* ==================================================
   RODAPÉ
================================================== */

.rodape {
    text-align: center;

    color: #999;

    font-size: 12px;

    padding: 10px 20px 25px;
}


/* ==================================================
   BANNER DO CABEÇALHO
================================================== */

.banner-header {
    width: 100%;
    text-align: center;
    margin: 0 auto;
}

.banner-header img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}


/* ==================================================
   CARROSSEL DO CABEÇALHO
================================================== */

/* ==================================================
   CARROSSEL DO CABEÇALHO
================================================== */

.carrossel-header {
    width: 100%;
    max-width: 100%;

    margin: 12px auto;

    position: relative;

    overflow: hidden;

    aspect-ratio: 3.2 / 1;
}


/* ==================================================
   ITEM DO CARROSSEL
================================================== */

.carrossel-header-item {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;
}


/* ==================================================
   ITEM ATIVO
================================================== */

.carrossel-header-item.ativo {
    opacity: 1;

    visibility: visible;

    z-index: 2;
}


/* ==================================================
   IMAGEM DA PROPAGANDA
================================================== */

.carrossel-header-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}/* ==================================================
   CELULARES PEQUENOS
================================================== */

@media (max-width: 360px) {

    .lista-estados {
        grid-template-columns: 1fr;
    }

    .titulo {
        font-size: 21px;
    }

    .titulo-estado {
        font-size: 21px;
    }

    .corrida {
        padding-left: 2px;
        padding-right: 2px;
    }

    .titulo-corrida {
        font-size: 24px;
        line-height: 29px;
    }

}


/* ==================================================
   TABLET / DESKTOP
================================================== */

@media (min-width: 700px) {

    .topo {
        padding-top: 30px;
        padding-bottom: 25px;
    }

    .logo {
        font-size: 34px;
    }

    .container {
        padding-top: 35px;
    }

    .lista-estados {
        grid-template-columns: 1fr 1fr 1fr;
    }

}