/*
Theme Name: E-SUAS Ceará Child
Theme URI: https://hesuas.sps.ce.gov.br/
Description: Tema filho do GeneratePress para o site Escola do SUAS Ceará.
Author: E-SUAS Ceará
Template: generatepress
Version: 1.0.0
Text Domain: e-suas-ceara-child
*/


/* =========================================================
   1. CARDS E-SUAS
   ========================================================= */

.card-e-suas {
    background: #ffffff;
    border: 2px solid #dfe7df;
    border-radius: 16px;
    padding: 20px 16px 12px;
    box-sizing: border-box;
    margin: 0;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
    overflow: hidden;
}


/* ---------------------------------------------------------
   ÍCONES
   --------------------------------------------------------- */

.card-e-suas .wp-block-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;

    background: #f1f5ef;
    border-radius: 50%;

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

    box-sizing: border-box;
}

.card-e-suas .wp-block-icon svg {
    width: 24px;
    height: 24px;
}


/* ---------------------------------------------------------
   ORDEM DOS ELEMENTOS
   --------------------------------------------------------- */

.card-e-suas .wp-block-icon {
    order: 1;
}

.card-e-suas h2,
.card-e-suas h3,
.card-e-suas h4 {
    order: 2;
}

.card-e-suas p {
    order: 3;
}

.card-e-suas > :last-child {
    order: 4;
}


/* ---------------------------------------------------------
   TIPOGRAFIA
   --------------------------------------------------------- */

.card-e-suas h2,
.card-e-suas h3,
.card-e-suas h4 {
    font-size: 17px;
}

.card-e-suas p {
    font-size: 15px;
}

.card-e-suas a {
    font-size: 14px;
}


/* ---------------------------------------------------------
   CONTEÚDO INTERNO
   --------------------------------------------------------- */

.card-e-suas > * {
    width: 100%;
    max-width: none;
}


/* ---------------------------------------------------------
   ALINHAMENTO DOS LINKS
   --------------------------------------------------------- */

.card-e-suas > :last-child {
    margin-top: auto;
}


/* ---------------------------------------------------------
   ESPAÇAMENTO ENTRE OS CARDS
   --------------------------------------------------------- */

.wp-block-columns.cards-e-suas {
    column-gap: 8px !important;
    margin-bottom: 0 !important;
}


/* =========================================================
   2. HERO E-SUAS
   ========================================================= */

.hero-e-suas {
    width: 100%;
    max-width: none !important;
    box-sizing: border-box;
    padding: 48px 48px;
}


/* ---------------------------------------------------------
   COLUNAS
   --------------------------------------------------------- */

.hero-e-suas .wp-block-columns {
    width: 100%;
    max-width: none !important;

    margin-left: 0;
    margin-right: 0;
}


/* ---------------------------------------------------------
   IMAGEM
   --------------------------------------------------------- */

.hero-e-suas .wp-block-image img {
    width: 600px;
    max-width: 100%;
    height: auto;
    display: block;
}


/* =========================================================
   3. CARDS E-SUAS HORIZONTAIS
   ========================================================= */

.card-e-suas-horizontal {
    background: #f1f5ef;
    border: none;
    border-radius: 0;

    padding: 32px 24px 24px;

    box-sizing: border-box;
    margin: 0;

    min-height: 150px;

    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 18px;

    align-items: start;

    text-align: left;
}


/* ---------------------------------------------------------
   ÍCONE
   --------------------------------------------------------- */

.card-e-suas-horizontal .wp-block-icon {
    grid-column: 1;
    grid-row: 1 / 4;

    width: 56px;
    height: 56px;

    margin: 0;
    padding: 0;

    background: transparent;
    border-radius: 0;

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

    box-sizing: border-box;
}

.card-e-suas-horizontal .wp-block-icon svg {
    width: 40px;
    height: 40px;
}


/* ---------------------------------------------------------
   TÍTULO
   --------------------------------------------------------- */

.card-e-suas-horizontal h2,
.card-e-suas-horizontal h3,
.card-e-suas-horizontal h4 {
    grid-column: 2;
    grid-row: 1;

    margin: 0 0 6px 0;

    font-size: 17px;
    line-height: 1.3;
}


/* ---------------------------------------------------------
   TEXTO
   --------------------------------------------------------- */

.card-e-suas-horizontal > p:first-of-type {
    grid-column: 2;
    grid-row: 2;

    margin: 0;

    font-size: 15px;
    line-height: 1.45;
}


/* ---------------------------------------------------------
   LINK
   --------------------------------------------------------- */

.card-e-suas-horizontal > p:last-of-type {
    grid-column: 2;
    grid-row: 3;

    margin: 10px 0 0 0;

    font-size: 14px;
    line-height: 1.3;
}


/* ---------------------------------------------------------
   ALINHAMENTO DO CONTEÚDO
   --------------------------------------------------------- */

.card-e-suas-horizontal h2,
.card-e-suas-horizontal h3,
.card-e-suas-horizontal h4,
.card-e-suas-horizontal p,
.card-e-suas-horizontal a {
    text-align: left !important;
}


/* =========================================================
   4. FAIXA INFORMATIVA - 4 COLUNAS
   ========================================================= */

.wp-block-columns.info-e-suas {
    background: #f1f5ef !important;

    border-radius: 16px !important;
    overflow: hidden !important;

    gap: 0 !important;
    padding: 0 !important;

    margin-top: 24px !important;
    margin-bottom: 0 !important;
}


/* ---------------------------------------------------------
   COLUNAS
   --------------------------------------------------------- */

.wp-block-columns.info-e-suas > .wp-block-column {
    margin: 0 !important;

    padding: 32px 24px 28px !important;

    background: transparent !important;

    box-sizing: border-box;
}


/* ---------------------------------------------------------
   DIVISÓRIAS
   --------------------------------------------------------- */

.wp-block-columns.info-e-suas > .wp-block-column:not(:last-child) {
    border-right: 1px solid #d5ddd5 !important;
}


/* ---------------------------------------------------------
   CARDS DENTRO DA FAIXA
   --------------------------------------------------------- */

.info-e-suas .card-e-suas-horizontal {
    background: transparent !important;

    border: none !important;
    border-radius: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    min-height: 160px !important;
    height: auto !important;

    box-sizing: border-box !important;
}


/* =========================================================
   5. HERO PRINCIPAL
   ========================================================= */

/* ---------------------------------------------------------
   TÍTULO
   --------------------------------------------------------- */

.hero-principal h1 {
    max-width: 520px !important;

    margin-left: 0 !important;
    margin-right: auto !important;
}


/* ---------------------------------------------------------
   PARÁGRAFO
   --------------------------------------------------------- */

.hero-principal p {
    max-width: 500px !important;

    margin-left: 0 !important;
    margin-right: auto !important;

    font-size: 22px;
}


/* ---------------------------------------------------------
   BOTÃO
   --------------------------------------------------------- */

.hero-principal .wp-block-button__link {
    display: inline-flex !important;

    width: auto !important;
    max-width: none !important;
    min-width: max-content !important;

    white-space: nowrap !important;

    box-sizing: border-box !important;
}


/* =========================================================
   6. CABEÇALHO
   ========================================================= */

/*
   O tamanho da logo, a tipografia do menu,
   a lupa e o indicador do item ativo estão sendo
   controlados pelo Customizer do GeneratePress.
*/

/* ---------------------------------------------------------
   BARRA SUPERIOR
   --------------------------------------------------------- */

/* Centraliza os controles de acessibilidade e o botão Entrar */
.topbar-alinhamento .topbar-coluna-direita > .wp-block-group {
    justify-content: center !important;
}

/* ---------------------------------------------------------
   CABEÇALHO - MOBILE
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .site-header .inside-header {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .site-header .site-logo img {
        max-width: 300px !important;
        height: auto !important;
    }
}

/* ---------------------------------------------------------
   CONTROLE DE CONTRASTE - CELULAR REAL
   --------------------------------------------------------- */

@media (max-width: 768px) and (pointer: coarse) {

    .topbar-alinhamento .esuas-contraste {
        transform: translateY(-1px) scale(2);
    }
}

/* ---------------------------------------------------------
   CONTROLE DE CONTRASTE - FIREFOX RESPONSIVO
   --------------------------------------------------------- */

@media (max-width: 768px) and (pointer: fine) {

    .topbar-alinhamento .esuas-contraste {
        transform: translateY(-1px) scale(1.4);
    }
}

/* ---------------------------------------------------------
   CONTROLE DE CONTRASTE - DESKTOP
   --------------------------------------------------------- */

@media (min-width: 769px) {

    .topbar-alinhamento .esuas-contraste {
        transform: translateY(-1px) scale(1.1);
    }
}

/* =========================================================
   7. HERO PRINCIPAL - MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------------------
       ALTURA DO HERO
       ----------------------------------------------------- */

    .hero-principal {
        height: 380px !important;
        min-height: 380px !important;
        max-height: 380px !important;

        box-sizing: border-box !important;
    }


    /* -----------------------------------------------------
       ÁREA INTERNA
       ----------------------------------------------------- */

    .hero-principal .wp-block-cover__inner-container {
        width: 100% !important;
        max-width: 100% !important;
    }


    /* -----------------------------------------------------
       TÍTULO
       ----------------------------------------------------- */

    .hero-principal h1 {
        max-width: 100% !important;

        font-size: 40px !important;
        line-height: 1.12 !important;

        margin-bottom: 20px !important;
    }


    /* -----------------------------------------------------
       PARÁGRAFO
       ----------------------------------------------------- */

    .hero-principal p {
        max-width: 100% !important;

        font-size: 20px !important;
        line-height: 1.4 !important;

        margin-bottom: 24px !important;
    }


    /* -----------------------------------------------------
       IMAGEM DE FUNDO
       ----------------------------------------------------- */

    .hero-principal {
        background-position: 65% center !important;
    }
}


/* =========================================================
   8. RODAPÉ
   ========================================================= */

/* ---------------------------------------------------------
   SEPARADOR ENTRE CONTEÚDO E RODAPÉ
   --------------------------------------------------------- */

.site-footer .footer-widgets {
    position: relative;
}

.site-footer .footer-widgets::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1200px, calc(100% - 40px));
    transform: translateX(-50%);
    border-top: 1px solid #e5e5e5;
}

/* ---------------------------------------------------------
   CRÉDITO PADRÃO DO GENERATEPRESS
   --------------------------------------------------------- */

/*
   O GeneratePress cria uma área própria para o crédito
   "Built with GeneratePress".

   O nosso texto personalizado está na Barra do rodapé
   e permanece independente dessa área.
*/

.copyright-bar {
    display: none !important;
}


/* ---------------------------------------------------------
   BARRA DO RODAPÉ PERSONALIZADA
   --------------------------------------------------------- */

/*
   Mantém os direitos reservados em uma única faixa,
   abaixo das quatro colunas do rodapé.
*/

.footer-bar {
    flex: 1 0 100%;
    width: 100%;
    text-align: center;
}

/* ---------------------------------------------------------
   ESPAÇAMENTO - WIDGET 2 (SEDE)
   --------------------------------------------------------- */

.footer-widget-2 .widget {
    margin-bottom: 0 !important;
}

/* ---------------------------------------------------------
   ESPAÇAMENTO - WIDGET 3
   --------------------------------------------------------- */

.footer-widget-3 .widget:nth-child(1) {
    margin-bottom: 0 !important;
}

.footer-widget-3 .widget:nth-child(2) {
    margin-bottom: 15px !important;
}

.footer-widget-3 .widget:nth-child(3) {
    margin-bottom: 0 !important;
}

.footer-widget-3 .widget:nth-child(4) {
    margin-bottom: 0 !important;
}

/* ---------------------------------------------------------
   BARRA DE DIREITOS AUTORAIS
   --------------------------------------------------------- */

.footer-bar .inner-padding {
    padding: 0 !important;
}

.footer-bar .widget p {
    margin: 0 !important;
    line-height: 1 !important;
}

/* ---------------------------------------------------------
   CANAIS OFICIAIS - ESPAÇAMENTO DOS ÍCONES
   --------------------------------------------------------- */

.footer-widget-4 .wp-block-social-links {
    margin-top: -8px !important;
}

/* =========================================================
   9. MODELO - PÁGINA INTERNA
   ========================================================= */

/* ---------------------------------------------------------
   ÁREA DE CONTEÚDO
   --------------------------------------------------------- */

.page-template-page-interna .inside-article {
    padding-top: 0px;
    padding-bottom: 56px;
}


/* ---------------------------------------------------------
   LARGURA DO CONTEÚDO
   --------------------------------------------------------- */

.page-template-page-interna .entry-content {
    width: 100%;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   10. GRUPOS DE CONTEÚDO INTERNO
   ========================================================= */

/* ---------------------------------------------------------
   AJUSTE DO PADDING AUTOMÁTICO DO GENERATEPRESS
   --------------------------------------------------------- */

.conteudo-interno .wp-block-group__inner-container {
    padding: 0 40px !important;
}


/* ---------------------------------------------------------
   ESPAÇAMENTO SUPERIOR DO PRIMEIRO GRUPO
   --------------------------------------------------------- */

.entry-content > .conteudo-interno:first-child .wp-block-group__inner-container {
    padding-top: 30px !important;
}

/* =========================================================
   11. MODELO - PÁGINA DE CONTEÚDO AMPLO
   ========================================================= */

/* ---------------------------------------------------------
   ÁREA DE CONTEÚDO
   --------------------------------------------------------- */

.page-template-page-conteudo-amplo .inside-article {
    padding-top: 0;
    padding-bottom: 56px;
}


/* ---------------------------------------------------------
   LARGURA DO CONTEÚDO
   --------------------------------------------------------- */

.page-template-page-conteudo-amplo .entry-content {
    width: 100%;
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   FIM DO CSS
   ========================================================= */