/*
 * CP CONT — HOME 2.0
 * Acessos rápidos, Reforma Tributária, boas-vindas, notícias,
 * faixa de contato e widgets da homepage.
 * Carregar somente em index.php.
 */

.faixa-home{
	background:#ebebeb;
	-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.75);
	-moz-box-shadow:    0px 0px 10px 0px rgba(0, 0, 0, 0.75);
	box-shadow:         0px 0px 10px 0px rgba(0, 0, 0, 0.75);
	z-index:999;
	padding-top:2%;
	padding-bottom:25px;
	font-size:0.9em;
	border-top: 5px solid #a2a2a2;
}

.faixa-home strong{
	font-size:1.2em;
	padding-top:5px;
}

.links{    min-height: 90px !important}

.link-home {
	background: url(../images/icone-mais.png) no-repeat bottom right #ccd7e0;
	padding:2% 5%;
	margin-bottom:5%;
	min-height:135px;
	
}

.link-home h2{
	color:#1f5989;
	font-size:1.2em;
	text-transform:uppercase;
	font-weight:bolder;
}

.link-home a{
	text-decoration:none;
	color:#000 !important;	
}

.link-home a:hover {
	text-decoration:none !important;
}

.link-home:hover {
	background: url(../images/icone-mais.png) no-repeat bottom right #ccc;
	text-decoration:none;

}

.link-uteis-2 {
	border:1px solid #959595;
	padding:15px 10px;
	width:100%;
	margin-bottom:5%;
	margin-top:5%;
	text-transform:uppercase;
	text-align:center;
}

.faixa{
	background: url(../images/bg-faixa.jpg) no-repeat 50% 50%;
	background-size: cover !important;
	-webkit-background-size: cover !important;
    background-attachment: fixed;
	position: relative;
    min-height: 150px;
    width: 100%;
    overflow: hidden;
}

.texto-faixa{
	font-size:1.5em;
	color:#000;
	font-weight:500;
	text-align:center;
	padding:30px 20px;
	
}

.texto-faixa .btn-1 {
	border:3px solid #000;
	width:20%;
	margin:0 auto;
	padding:10px;
	margin-top:3%;
}


/* Banner original: mantém imagens e slider, melhora o enquadramento visual */
.cp-banner {
    overflow: hidden;
    background: #e9eef2;
}
.cp-banner .bxslider,
.cp-banner .bxslider li {
    margin: 0;
    padding: 0;
}
.cp-banner .bxslider img {
    display: block;
    width: 100%;
    height: auto;
}

/* Faixa de acessos rápidos original */
.cp-faixa-home {
    position: relative;
    padding: 30px 0 22px;
    background: linear-gradient(180deg, #f1f3f5 0%, #e8edf1 100%);
    border-top: 4px solid #a2a2a2;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .08);
}
.cp-faixa-home .links {
    min-height: 116px !important;
    padding: 13px 12px;
    margin-bottom: 12px;
    text-align: center;
    transition: transform .22s ease;
}
.cp-faixa-home .links:hover {
    transform: translateY(-3px);
}
.cp-faixa-home .links a {
    display: block;
    height: 100%;
    padding: 14px 10px;
    color: #354452;
    background: rgba(255,255,255,.82);
    border: 1px solid #d9e0e6;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 35, 65, .04);
    text-decoration: none;
    transition: border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.cp-faixa-home .links a:hover {
    background: #fff;
    border-color: #9eb4c7;
    box-shadow: var(--cp-sombra);
}
.cp-faixa-home .links img {
    display: block;
    max-width: 42px;
    max-height: 42px;
    margin: 0 auto 8px;
    object-fit: contain;
}
.cp-faixa-home .links strong {
    display: block;
    margin: 3px 0 2px;
    color: var(--cp-azul);
    font-size: 12px;
    line-height: 1.4;
}
.cp-faixa-home .links a br {
    display: none;
}

/* Faixa Reforma Tributária — acompanha a linguagem do site */
.cp-reforma {
    position: relative;
    padding: 36px 0 34px;
    background: #fff;
    border-bottom: 1px solid var(--cp-cinza-borda);
}
.cp-reforma:before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cp-azul), #4c83ad);
    content: "";
}
.cp-reforma-topo {
    margin: 0 auto 22px;
    text-align: center;
}
.cp-reforma-tag {
    display: inline-block;
    margin-bottom: 9px;
    padding: 4px 10px;
    color: #1f5989;
    background: #eaf1f6;
    border: 1px solid #d5e2ec;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.cp-ponto-atualizacao {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    vertical-align: 1px;
    background: #4b9a71;
    border-radius: 50%;
}
.cp-reforma-topo h2 {
    margin: 0 0 7px !important;
    color: var(--cp-azul) !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    line-height: 1.35;
    text-transform: none;
}
.cp-reforma-topo p {
    margin: 0;
    color: #697580;
    font-size: 13px;
}
.cp-reforma-itens {
    display: flex;
    flex-wrap: wrap;
}
.cp-reforma-itens > div {
    margin-bottom: 10px;
}
.cp-reforma-item {
    display: flex;
    min-height: 126px;
    height: 100%;
    align-items: flex-start;
    gap: 14px;
    padding: 19px 17px;
    color: inherit;
    background: #f7f9fb;
    border: 1px solid #e0e6eb;
    border-left: 3px solid var(--cp-azul-medio);
    border-radius: 3px;
    text-decoration: none !important;
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}
.cp-reforma-item:hover {
    color: inherit;
    background: #fff;
    box-shadow: var(--cp-sombra);
    transform: translateY(-3px);
}
.cp-reforma-icone {
    display: flex;
    width: 43px;
    min-width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--cp-azul);
    border-radius: 4px;
    font-size: 19px;
}
.cp-reforma-icone-sigla {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.05;
}
.cp-reforma-icone-nfse {
    width: 53px;
    min-width: 53px;
    font-size: 11px;
    font-weight: 700;
}
.cp-reforma-conteudo {
    display: block;
    min-width: 0;
}
.cp-reforma-conteudo strong {
    display: block;
    margin: 0 0 3px;
    color: var(--cp-azul);
    font-size: 14px;
}
.cp-reforma-conteudo small {
    display: block;
    min-height: 38px;
    color: #66727d;
    font-size: 11px;
    line-height: 1.55;
}
.cp-reforma-conteudo em {
    display: inline-block;
    margin-top: 7px;
    color: #1f5989;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    text-transform: uppercase;
}
.cp-reforma-conteudo em b {
    margin-left: 3px;
    font-size: 14px;
}

/* Conteúdo institucional e notícias: refinamento sem mudar colunas */
.cp-section {
    padding-top: 22px;
    padding-bottom: 22px;
}
.cp-section h1 {
    color: var(--cp-azul) !important;
    font-size: 27px !important;
    font-weight: 400 !important;
    letter-spacing: -.4px;
}
.cp-section h2 {
    color: #6d7780 !important;
    font-size: 13px !important;
    letter-spacing: .7px;
}
.cp-section .border {
    width: 52px;
    margin: 12px 0 18px;
    border-top: 4px solid var(--cp-azul-medio);
}
.cp-section .text-align-justify {
    color: #596570;
    font-size: 13px;
    line-height: 1.85;
}

/* Contato: preserva faixa e imagem de fundo originais */
.cp-faixa-contato {
    border-top: 4px solid rgba(0,54,99,.9);
}
.cp-faixa-contato .texto-faixa {
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.cp-faixa-contato .texto-faixa h2,
.cp-faixa-contato .texto-faixa a {
    color: #fff !important;
}
.cp-faixa-contato .texto-faixa .btn-1 {
    max-width: 220px;
    min-width: 150px;
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 3px;
    transition: background .2s ease, border-color .2s ease;
}
.cp-faixa-contato .texto-faixa .btn-1:hover {
    background: rgba(255,255,255,.16);
    border-color: #fff;
}
.cp-faixa-contato .texto-faixa .btn-1 a {
    display: block;
}

/* Links úteis: conserva os mesmos links e colunas */
.cp-link-util {
    border: 1px solid #d8e0e6;
    border-radius: 3px;
    background: #f7f9fb;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.cp-link-util:hover {
    background: #fff;
    border-color: #9fb5c8;
    transform: translateY(-2px);
}
.cp-link-util a {
    display: block;
    color: var(--cp-azul) !important;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

/* Widgets externos */
.cp-widget-loading,
.cp-widget-fallback {
    display: block;
    padding: 12px 8px;
    color: #78838d;
    font-size: 11px;
    text-align: center;
}
.cp-widget-loading:before {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 7px;
    vertical-align: -2px;
    border: 2px solid #dce4eb;
    border-top-color: #1f5989;
    border-radius: 50%;
    content: "";
    animation: cp-widget-spin .75s linear infinite;
}
@keyframes cp-widget-spin {
    to { transform: rotate(360deg); }
}

/* Responsividade adicional, sem alterar o grid Bootstrap original */
@media (max-width: 767px) {
    .cp-faixa-home { padding-top: 20px; }
    .cp-faixa-home .links { min-height: 105px !important; padding: 7px; }
    .cp-reforma { padding: 27px 0 20px; }
    .cp-reforma-topo h2 { font-size: 20px !important; }
    .cp-reforma-item { min-height: 0; }
    .cp-reforma-conteudo small { min-height: 0; }
    .cp-section { padding-top: 15px; padding-bottom: 15px; }
}
@media (prefers-reduced-motion: reduce) {
    .cp-faixa-home .links,
    .cp-faixa-home .links a,
    .cp-reforma-item,
    .cp-link-util,
    .cp-widget-loading:before {
        transition: none !important;
        animation: none !important;
    }
}


/* CORREÇÃO DE ALINHAMENTO DOS ACESSOS RÁPIDOS
   Impede que os cards flutuantes formem linhas em alturas diferentes. */
.cp-faixa-home .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.cp-faixa-home .row > .links {
    display: flex;
    float: none;
    align-items: stretch;
    margin-top: 0;
    margin-bottom: 14px;
}
.cp-faixa-home .row > .links > a {
    display: flex;
    width: 100%;
    min-height: 126px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
@media (max-width: 767px) {
    .cp-faixa-home .row > .links > a {
        min-height: 116px;
    }
}


/* ==========================================================
   MODELO 2.0 — BLOCO INSTITUCIONAL + NOTÍCIAS
   Evolução visual mantendo as duas colunas originais.
   ========================================================== */
.cp-welcome-panel,
.cp-news-panel {
    padding-top: 24px;
    padding-bottom: 25px;
}
.cp-welcome-panel h1,
.cp-news-panel h1 {
    margin: 0 !important;
    color: #003663 !important;
    font-size: 27px !important;
    font-weight: 500 !important;
    letter-spacing: -.45px;
    line-height: 1.2;
}
.cp-welcome-panel h2,
.cp-news-panel h2 {
    margin-top: 4px !important;
    color: #71808d !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1.15px;
}
.cp-welcome-panel .border,
.cp-news-panel .border {
    width: 48px;
    margin: 13px 0 19px;
    border: 0;
    border-top: 4px solid #1f5989;
}

/* Apresentação institucional: imagem e texto continuam nas colunas 5/7 */
.cp-welcome-panel > .col-md-5,
.cp-welcome-panel > .col-md-7 {
    padding-top: 0;
    padding-bottom: 0;
}
.cp-welcome-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 5px 16px rgba(0, 35, 65, .13);
}
.cp-welcome-text {
    color: #53616d;
    font-size: 12px;
    line-height: 1.9;
    text-align: left !important;
}

/* Notícias: painel discreto, preservando o HTML retornado pelo serviço */
.cp-news-list {
    min-height: 180px;
    padding: 4px 0 0;
}
.cp-news-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.cp-news-list li {
    position: relative;
    margin: 0;
    padding: 9px 8px 9px 17px;
    border-bottom: 1px solid #e8edf1;
    line-height: 1.45;
    transition: background .18s ease, padding-left .18s ease;
}
.cp-news-list li:before {
    position: absolute;
    top: 15px;
    left: 3px;
    width: 5px;
    height: 5px;
    background: #1f5989;
    border-radius: 50%;
    content: "";
}
.cp-news-list li:hover {
    padding-left: 21px;
    background: #f6f8fa;
}
.cp-news-list a {
    color: #43515d;
    font-size: 11px;
    line-height: 1.5;
    text-decoration: none;
}
.cp-news-list a:hover {
    color: #003663;
    text-decoration: none;
}
.cp-news-list p {
    margin: 0;
}

/* Ajuste visual e de espaçamento em telas menores */
@media (max-width: 991px) {
    .cp-welcome-panel,
    .cp-news-panel {
        padding-top: 18px;
        padding-bottom: 18px;
    }
    .cp-welcome-text {
        margin-top: 14px;
    }
}
@media (max-width: 767px) {
    .cp-welcome-panel h1,
    .cp-news-panel h1 {
        font-size: 23px !important;
    }
    .cp-welcome-panel > .col-md-5,
    .cp-welcome-panel > .col-md-7 {
        width: 100%;
    }
    .cp-welcome-image {
        max-width: 320px;
        margin: 0 0 14px;
    }
    .cp-news-list li {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}


/* ==========================================================
   MODELO 2.0 — CONTATO, LINKS ÚTEIS E UTILITÁRIOS
   Mantém a faixa, colunas e widgets originais.
   ========================================================== */

/* Faixa de contato: contraste e leitura sobre a imagem existente */
.cp-faixa-contato {
    isolation: isolate;
    min-height: 205px;
    border-top: 4px solid #1f5989;
    background-position: center center;
}
.cp-faixa-contato:before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(0, 35, 65, .70) 0%,
        rgba(0, 48, 82, .58) 42%,
        rgba(0, 35, 65, .22) 100%);
    content: "";
}
.cp-faixa-contato .texto-faixa {
    padding: 25px 20px 27px;
    color: #fff;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
}
.cp-faixa-contato .texto-faixa h2 {
    display: inline-block;
    margin: 0 0 8px !important;
    padding-bottom: 7px;
    color: #fff !important;
    border-bottom: 2px solid rgba(255,255,255,.75);
    font-size: 17px !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
}
.cp-faixa-contato .texto-faixa > br:first-of-type {
    display: none;
}
.cp-faixa-contato .texto-faixa > a {
    display: inline-block;
    margin: 3px 0;
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.cp-faixa-contato .texto-faixa > a:hover {
    color: #e2eff8 !important;
    text-decoration: underline;
}
.cp-faixa-contato .texto-faixa .btn-1 {
    width: auto;
    max-width: 190px;
    margin: 12px auto 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-shadow: none;
}
.cp-faixa-contato .texto-faixa .btn-1 a {
    display: inline-block;
    padding: 9px 23px;
    color: #fff !important;
    background: #1f5989;
    border: 1px solid rgba(255,255,255,.75);
    border-radius: 3px;
    font-size: 11px;
    letter-spacing: .45px;
    text-transform: uppercase;
    transition: background .2s ease, transform .2s ease;
}
.cp-faixa-contato .texto-faixa .btn-1 a:hover {
    background: #003663;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Área de utilidades: três colunas originais, com painéis mais coesos */
.cp-section:has(.cp-link-util) {
    padding-top: 30px;
    padding-bottom: 30px;
}
.cp-section .cp-link-util {
    min-height: 47px;
    margin: 0 0 9px;
    padding: 0;
    display: flex;
    align-items: stretch;
    border: 1px solid #dce3e9;
    border-radius: 4px;
    background: #f7f9fb;
    box-shadow: 0 2px 7px rgba(0, 35, 65, .035);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cp-section .cp-link-util:hover {
    background: #fff;
    border-color: #a9bdcd;
    box-shadow: 0 5px 13px rgba(0, 35, 65, .08);
    transform: translateY(-2px);
}
.cp-section .cp-link-util a {
    display: flex;
    width: 100%;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 8px 7px;
    color: #174b75 !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    letter-spacing: .25px;
}
.cp-section .cp-link-util a:hover {
    color: #003663 !important;
    text-decoration: none;
}
.cp-section h2 {
    margin-bottom: 12px !important;
    color: #174b75 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: .8px;
}

/* Imposto do dia e calendário: os widgets continuam vindo da fonte original */
.cp-section .cp-widget-externo {
    min-height: 150px;
    margin-top: 8px;
    padding: 12px 10px;
    color: #4e5b66;
    background: #f7f9fb;
    border: 1px solid #dce3e9;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 35, 65, .04);
    font-size: 12px;
}
.cp-section .cp-widget-externo table {
    max-width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    font-size: 11px;
}
.cp-section .cp-widget-externo th {
    padding: 7px 5px;
    color: #fff;
    background: #174b75;
    font-weight: 700;
    text-align: center;
}
.cp-section .cp-widget-externo td {
    padding: 6px 5px;
    border: 1px solid #e1e6eb;
    text-align: center;
}
.cp-section .cp-widget-externo a {
    color: #174b75;
    text-decoration: none;
}
.cp-section .cp-widget-externo a:hover {
    text-decoration: underline;
}
.cp-section .cp-widget-loading,
.cp-section .cp-widget-fallback {
    color: #75818b;
    font-size: 11px;
}
.cp-section .cp-widget-loading {
    padding-top: 30px;
}

/* Pequenos ajustes para preservar boa leitura em telas menores */
@media (max-width: 767px) {
    .cp-faixa-contato .texto-faixa {
        padding: 23px 14px;
        font-size: 14px;
    }
    .cp-faixa-contato .texto-faixa > a {
        font-size: 14px;
    }
    .cp-section .cp-link-util {
        min-height: 43px;
    }
    .cp-section .cp-widget-externo {
        min-height: 0;
        margin-bottom: 18px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .cp-faixa-contato .texto-faixa .btn-1 a,
    .cp-section .cp-link-util {
        transition: none !important;
    }
}


/* Responsividade específica dos elementos legados da homepage. */
@media (max-width: 800px) {
    .texto-faixa .btn-1 { width: 30%; }
}
@media (max-width: 400px) {
    .texto-faixa .btn-1 { width: 100%; }
}
