.ch {
    color: #17243a;
}

.ch .container {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}

.ch-kicker {
    margin: 0 0 10px;
    color: #b18435;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}


/* =========================================================
   CABEÇALHO
   ========================================================= */

.ch-hero {
    background: linear-gradient(135deg, #173a65 0%, #102b4d 100%);
    color: #fff;
    padding: 74px 0 70px;
}

.ch-hero .ch-kicker {
    color: #e1b95f;
}

.ch-hero h1 {
    margin: 0 0 18px;
    font-family: Georgia, serif;
    font-size: 52px;
    line-height: 1.05;
}

.ch-hero .ch-lead {
    max-width: 720px;
    margin: 0 0 18px;
    color: #edf3f8;
    font-size: 18px;
    line-height: 1.65;
}

.ch-hero .ch-year {
    margin: 0;
    color: #fff;
    font-size: 17px;
    line-height: 1.5;
}


/* =========================================================
   NAVEGAÇÃO PELOS DIAS
   ========================================================= */

.ch-days {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;

    /*
     * Dá respiração entre o cabeçalho azul
     * e os botões dos dias.
     */
    padding-top: 30px;
    padding-bottom: 38px;
}

.ch-days a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;

    border: 1px solid #dce2e8;
    border-radius: 999px;

    color: #183b67;
    background: #fff;

    font-size: 14px;
    font-weight: 750;
    text-decoration: none;

    transition:
        border-color .2s ease,
        color .2s ease,
        background .2s ease;
}

.ch-days a:hover {
    border-color: #c89a3d;
    color: #9a6d20;
    background: #fbf8f1;
}


/* =========================================================
   CONJUNTO DOS HORÁRIOS
   ========================================================= */

.ch-schedule {
    padding-bottom: 88px;
}


/* =========================================================
   DIA
   ========================================================= */

.ch-day {
    scroll-margin-top: 120px;
    padding: 0 0 50px;
    margin-bottom: 50px;
    border-bottom: 1px solid #e4e8ec;
}

.ch-day:last-of-type {
    margin-bottom: 42px;
}

.ch-day-header {
    margin-bottom: 28px;
}

.ch-day-header .ch-kicker {
    margin-bottom: 12px;
}

.ch-day-header h2 {
    margin: 0;
    color: #183b67;
    font-family: Georgia, serif;
    font-size: 36px;
    line-height: 1.15;
}


/* =========================================================
   LINHA DE CADA HORA
   ========================================================= */

.ch-time-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 22px;
    align-items: start;

    margin-bottom: 28px;
}

.ch-time-row:last-child {
    margin-bottom: 0;
}


/* =========================================================
   BLOCO AZUL DA HORA
   ========================================================= */

.ch-time {
    position: sticky;
    top: 105px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 88px;
    min-height: 46px;
    padding: 6px 10px;

    border-radius: 7px;
    background: #183b67;
    color: #fff;

    font-size: 17px;
    font-weight: 800;
    letter-spacing: .02em;

    box-sizing: border-box;
}


/* =========================================================
   GRELHA DOS GRUPOS
   ========================================================= */

.ch-groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}


/* =========================================================
   CARTÃO DE CADA GRUPO
   ========================================================= */

.ch-group {
    min-height: 160px;
    padding: 22px 22px 18px;

    border: 1px solid #e1e6eb;
    border-radius: 9px;

    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 36, 58, .045);

    display: flex;
    flex-direction: column;

    box-sizing: border-box;
}

.ch-group h3 {
    margin: 0 0 7px;

    color: #183b67;
    font-family: Georgia, serif;
    font-size: 22px;
    line-height: 1.2;
}

.ch-room {
    margin: 0;
    color: #697483;
    font-size: 14px;
}


/* =========================================================
   CATEQUISTA
   ========================================================= */

.ch-catechist {
    margin-top: auto;
    padding-top: 13px;

    border-top: 1px solid #edf0f2;

    color: #374355;
    font-size: 14px;
}

.ch-catechist span {
    display: block;

    margin-bottom: 4px;

    color: #9a7a40;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ch-catechist strong {
    display: block;

    color: #374355;
    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   CONTACTO
   ========================================================= */

.ch-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 34px 38px;

    border-radius: 10px;
    background: #f3f0e9;
}

.ch-contact h2 {
    margin: 0 0 8px;

    color: #183b67;

    font-family: Georgia, serif;
    font-size: 30px;
}

.ch-contact p {
    color: #626b78;
    line-height: 1.65;
}

.ch-contact p:not(.ch-kicker) {
    margin: 0;
}

.ch-button {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 13px 18px;

    border-radius: 5px;

    background: #c89a3d;
    color: #fff;

    font-weight: 800;
    text-decoration: none;

    transition:
        background .2s ease,
        transform .2s ease;
}

.ch-button:hover {
    background: #b78931;
    transform: translateY(-1px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ch-groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ch-contact {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .ch-hero {
        padding: 56px 0 52px;
    }

    .ch-hero h1 {
        font-size: 42px;
    }

    .ch-hero .ch-lead {
        font-size: 17px;
    }

    .ch-hero .ch-year {
        font-size: 16px;
    }

    .ch-days {
        padding-top: 24px;
        padding-bottom: 32px;
    }

    .ch-time-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
    }

    .ch-time {
        position: static;

        width: auto;
        min-width: 88px;
        min-height: 42px;

        justify-self: start;
    }

    .ch-groups {
        grid-template-columns: 1fr;
    }

    .ch-day {
        padding-bottom: 38px;
        margin-bottom: 38px;
    }

    .ch-contact {
        padding: 28px 24px;
    }

}


/* =========================================================
   MOBILE PEQUENO
   ========================================================= */

@media (max-width: 560px) {

    .ch .container {
        width: min(100% - 28px, 1160px);
    }

    .ch-hero h1 {
        font-size: 36px;
    }

    .ch-days {
        gap: 7px;
    }

    .ch-days a {
        padding: 8px 11px;
        font-size: 13px;
    }

    .ch-day-header h2 {
        font-size: 31px;
    }

    .ch-group {
        min-height: 145px;
    }

    .ch-contact h2 {
        font-size: 27px;
    }

}