/*
 * Seções das páginas (templates/modular) e componentes repetidos: carrossel, atalhos, texto e imagem, grade de
 * newsletter, cartões de publicação e faixas de chamada. Medidas do site atual em 1440, 768 e 390 px.
 */

/* cabeçalho de seção: cartola + título centralizados num bloco de 600 px */
.cabeca-secao { max-width: 600px; margin: 0 auto 20px; padding: 10px; }
.cabeca-secao .cartola { margin-bottom: 20px; }

/* ---------- carrossel da home ---------- */
.carrossel { position: relative; }
.carrossel__janela { position: relative; overflow: hidden; }
.carrossel__trilho { display: flex; transition: transform .5s ease; }
.carrossel__slide { flex: 0 0 100%; min-width: 0; }
.carrossel__slide a, .carrossel__slide picture { display: block; }
.carrossel__slide img { display: block; width: 100%; height: auto; }
.carrossel__seta { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 25px; height: 25px; margin-top: -12.5px; padding: 0; border: 0; background: none; color: rgba(237, 237, 237, .9); font-size: 25px; cursor: pointer; }
.carrossel__seta .ic { width: 25px; height: 25px; }
.carrossel__seta--ant { left: 10px; }
.carrossel__seta--prox { right: 10px; }
.carrossel__pontos { display: flex; justify-content: center; height: 37px; padding-top: 16px; }
/* o botão tem 24px (área de toque mínima da acessibilidade) e os botões não se sobrepõem; o ponto de 6px é desenhado no meio */
.carrossel__ponto { position: relative; width: 24px; height: 24px; margin: -9px 0 0; padding: 0; border: 0; background: none; cursor: pointer; }
.carrossel__ponto::before { content: ''; position: absolute; top: 9px; left: 9px; width: 6px; height: 6px; border-radius: 50%; background: #000; opacity: .2; }
.carrossel__ponto.e-atual::before { opacity: 1; }

/* no tablet e no celular o carrossel mostra a imagem vertical, no tamanho natural (até a largura da tela) */
@media (max-width: 1024px) {
  .carrossel--celular .carrossel__slide img { width: auto; max-width: 100%; margin: 0 auto; }
}
@media (max-width: 767px) {
  .carrossel--celular .carrossel__slide img { width: 100%; }
}

/* ---------- atalhos (4 caixas com ícone) ---------- */
.atalhos { padding: 90px 0 0; background-image: linear-gradient(180deg, #fff 70%, var(--cinza-fundo-2) 70%); z-index: 9; }
.atalhos__lista { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.atalho { margin: 10px; padding: 20px; border: 1px solid var(--cinza-borda); border-radius: 6px; background: #fff; text-align: center; }
.atalho__icone { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 23px; padding: 16px; border-radius: 50%; background: var(--cinza-fundo-2); color: var(--azul); font-size: 32px; transition: transform .3s; }
.atalho__icone .ic { width: 32px; height: 32px; }
.atalho--push .atalho__icone:hover { animation: atalho-push .3s linear 1; }
.atalho--pulse .atalho__icone:hover { animation: atalho-pulse 1s linear infinite; }
@keyframes atalho-push { 50% { transform: scale(.8); } 100% { transform: scale(1); } }
@keyframes atalho-pulse { 25% { transform: scale(1.1); } 75% { transform: scale(.9); } }
.atalho__titulo { margin: 0; font-size: 16px; font-weight: 500; line-height: 19.2px; }
.atalho__titulo a { color: var(--texto); }
.atalho__texto { margin: 16px 0 0; font-size: 12px; line-height: 18px; color: var(--texto); }
.atalho__link { color: var(--verde); }

/* ---------- texto e imagem ---------- */
.texto-imagem { background: var(--cinza-fundo-2); }
.texto-imagem.sec--cinza { background: var(--cinza-fundo); }
.texto-imagem__grade { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.texto-imagem__foto { margin-right: 20px; }
.texto-imagem__foto img { display: block; width: 100%; height: 600px; object-fit: cover; border-radius: 100px 0; }
.texto-imagem__texto { margin-left: 20px; position: relative; z-index: 20; }
.texto-imagem__texto .titulo { margin-bottom: 20px; }
.texto-imagem__corpo { margin-bottom: 20px; }
.texto-imagem__corpo p:last-child { margin-bottom: 0; }
.texto-imagem--direita .texto-imagem__foto { order: 2; margin: 0 0 0 30px; }
.texto-imagem--direita .texto-imagem__foto img { width: 540px; }
.texto-imagem--direita .texto-imagem__texto { margin: 0; }

.compartilhar { position: relative; display: flex; align-items: center; }
.compartilhar__botao { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid #d9d9d9; background: #fff; color: #767676; font-size: 16px; cursor: pointer; }
.compartilhar__redes { position: absolute; left: 42px; top: 0; display: none; margin: 0; padding: 0; list-style: none; background: #fff; }
.compartilhar.e-aberto .compartilhar__redes { display: flex; }
.compartilhar__redes a { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #e8e8e8; margin-left: -1px; color: #767676; }
.compartilhar__redes a:hover { color: var(--azul); }

/* (grade de eventos: css/eventos.css) */

/* ---------- newsletter ---------- */
.newsletter { background: var(--azul-escuro); }
.newsletter__grade { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.newsletter__texto { padding: 10px; }
.newsletter__cartola { display: flex; align-items: center; margin: 0 0 20px; color: #fff; font-size: 14px; font-weight: 700; line-height: 21px; }
.newsletter__cartola .ic { width: 14px; height: 14px; }
.newsletter__cartola span { padding-left: 5px; }
.newsletter__titulo { margin: 0 0 40px; }
.newsletter__corpo { color: #fff; }
.newsletter__corpo p { margin: 0; }
.newsletter__caixa { display: flex; flex-direction: column; justify-content: center; padding: 30px 25px; border-radius: 20px; background: #fff; }

/* formulários (como o Form do Elementor Pro) */
.form-aboo { display: flex; flex-wrap: wrap; }
.form-aboo .form-field { width: 100%; margin: 0 0 30px; }
.form-aboo .form-label { display: block; margin: 0; font-size: 16px; line-height: 16px; color: var(--texto); }
.form-aboo .form-label label { display: block; line-height: 16px; }
.form-aboo .required { display: none; }
.form-aboo input[type=text], .form-aboo input[type=email], .form-aboo input[type=tel], .form-aboo input[type=url], .form-aboo input[type=file], .form-aboo select, .form-aboo textarea { display: block; width: 100%; min-height: 40px; padding: 5px 14px; border: 1px solid #69727d; border-radius: 0; background: #fff; color: #1f2124; font-size: 15px; line-height: 1.4; }
.form-aboo textarea { min-height: 100px; resize: vertical; }
.form-aboo ::placeholder { color: #69727d; opacity: .8; }
.form-aboo input:focus, .form-aboo select:focus, .form-aboo textarea:focus { outline: 0; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.form-aboo .form-field--aceite { margin-bottom: 10px; }
.form-aboo .form-field--aceite .form-label { display: none; }
.form-aboo .checkboxes label, .form-aboo .form-field--aceite label { display: inline; font-size: 16px; line-height: 24px; color: var(--texto); }
.form-aboo .form-field--aceite label a { text-decoration: underline; }
.form-aboo input[type=checkbox] { width: 13px; height: 13px; margin: 0 4px 0 0; vertical-align: -1px; }
.form-aboo .buttons { width: 100%; }
.form-aboo .buttons button, .form-aboo .buttons .button { width: 100%; padding: 15px 30px; border: 0; border-radius: 6px; background: var(--verde); color: #fff; font-size: 18px; font-weight: 700; line-height: 30px; cursor: pointer; transition: background .3s; }
.form-aboo .buttons button:hover { background: var(--azul); }
.form-aboo .form-errors, .form-aboo .form-error { color: #d9534f; font-size: 13px; line-height: 20px; margin-top: 4px; }
.form-aboo .form-honeybear, .form-aboo .form-honeypot { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notices, .form-messages { margin: 0 0 20px; padding: 12px 15px; border-left: 4px solid var(--verde); background: rgba(76, 214, 200, .15); color: var(--texto); font-size: 15px; line-height: 24px; }
.notices.red, .notices.error { border-color: #d9534f; background: rgba(217, 83, 79, .1); }
.notices p, .form-messages p { margin: 0; }

/* ---------- cartões de publicação ---------- */
.publicacoes-secao { padding-bottom: 90px; }
.publicacoes-secao .cabeca-secao { margin-bottom: 0; padding: 0 0 20px; }
.cartoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px 30px; }
.cartao-post { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: var(--sombra-cartao); }
.cartao-post__imagem { position: relative; display: block; overflow: hidden; padding-bottom: 80.83%; }
.cartao-post__imagem img { position: absolute; top: 50%; left: 50%; width: calc(100% + 17px); height: 100%; object-fit: cover; transform: translate(-50%, -50%); }
/* degradê escuro embaixo da foto ("hover gradient" do widget Posts), mais claro ao passar o mouse */
.cartao-post__imagem::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(0deg, rgba(0, 0, 0, .35) 0%, transparent 75%); transition: opacity .3s ease-out; }
.cartao-post:hover .cartao-post__imagem::after { opacity: .5; }
.cartao-post__etiqueta { position: absolute; top: 0; right: 0; margin: 20px; padding: 7.2px 14.4px; border-radius: 999px; background: #69727d; color: #fff; font-size: 12px; line-height: 12px; text-transform: uppercase; }
.cartao-post__etiqueta--noticias { background: var(--verde); border-radius: 6px; }
.cartao-post__etiqueta--artigos { background: var(--azul); border-radius: 6px; }
.cartao-post__texto { flex: 1 1 auto; padding: 15px 20px 0; }
.cartao-post__titulo { margin: 0 0 14px; font-size: 21px; font-weight: 500; line-height: 25.2px; }
.cartao-post__titulo a { color: var(--azul); }
.cartao-post__resumo { margin: 0 0 14px; font-size: 14px; line-height: 21px; color: #757575; }
.cartao-post__mais { display: inline-block; margin: 0 0 20px; font-size: 12px; font-weight: 700; line-height: 18px; text-transform: uppercase; color: var(--azul); }
.cartao-post__data { margin-top: auto; padding: 10px 20px; border-top: 1px solid #eaeaea; color: #adadad; font-size: 12px; line-height: 15.6px; }
.publicacoes-secao__botao { margin: 50px 0 0; }

/* ---------- faixa de título das páginas internas (hexágonos claros ao fundo) ---------- */
.faixa { padding: 90px 0 0; background: #fff url(../images/transparencia2.png) center center / cover no-repeat; }
.faixa__titulo { margin: 0; }

/* abaixo de 1140 px o Elementor esconde a descrição dos atalhos (CSS da página) */
@media (max-width: 1140px) {
  .atalho__texto { display: none; }
  .atalho { padding: 20px 20px 36px; }
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .atalhos { padding: 50px 10px 0; margin-bottom: -120px; }
  .atalhos__lista { grid-template-columns: repeat(2, 1fr); }
  .texto-imagem { padding: 50px 20px; }
  .atalhos + .texto-imagem { padding: 170px 20px 40px; margin-top: -100px; }
  .texto-imagem__foto img { border-radius: 50px 0; }
  .titulo--medio { font-size: 40px; }
  .cartoes { grid-template-columns: repeat(2, 1fr); }
  .faixa { padding: 50px 20px 0; }
  .newsletter__titulo { margin-bottom: 20px; }
  .publicacoes-secao { padding-bottom: 37px; }
  .publicacoes-secao .cartao-post__imagem { padding-bottom: 77%; }
  .publicacoes-secao__botao { margin-top: 32px; }
  .publicacoes-secao .cartao-post__texto { padding-top: 30px; }
  .publicacoes-secao .cartao-post__mais { margin-bottom: 20px; }
}

/* ---------- celular ---------- */
@media (max-width: 767px) {
  .atalhos { padding: 50px 10px 0; margin-bottom: 0; }
  .atalho { padding: 20px 0 16px; }
  .texto-imagem, .atalhos + .texto-imagem { padding: 50px 20px; margin-top: 0; }
  /* no celular: cartola e título, depois a foto, o texto e o botão */
  .texto-imagem__grade { display: flex; flex-direction: column; align-items: stretch; }
  .texto-imagem__texto { display: contents; }
  .texto-imagem__texto .cartola { order: 1; text-align: center; }
  .texto-imagem__texto .titulo { order: 2; text-align: center; }
  .texto-imagem__foto { order: 3; margin: 0 0 20px; }
  .texto-imagem__corpo { order: 4; }
  .texto-imagem__texto .botao { order: 5; align-self: center; }
  .texto-imagem__foto img { height: 300px; }
  .texto-imagem__corpo { text-align: left; }
  .titulo--40 { font-size: 24px; }
  .texto-imagem--direita .texto-imagem__foto { order: 3; margin: 0 0 20px; }
  .texto-imagem--direita .texto-imagem__foto img { width: 100%; border-radius: 50px 0; }
  .newsletter__grade { grid-template-columns: 1fr; }
  .newsletter__texto { margin-bottom: 20px; }
  .cartoes { grid-template-columns: 1fr; }
  .publicacoes-secao .cartoes { padding: 0 20px; }
  .publicacoes-secao .cartao-post__imagem { padding-bottom: 100%; }
  .publicacoes-secao .cartao-post__texto { padding-top: 15px; }
  .publicacoes-secao .cartao-post__mais { margin-bottom: 38px; }
  .form-aboo .buttons button, .form-aboo .buttons .button { padding: 10px 20px; font-size: 14px; line-height: 20px; }
  .faixa { padding: 50px 20px 0; }
}

/* botões sozinhos numa linha: sem a sobra de linha embaixo (como os botões do Elementor) */
.chamada .sec__dentro, .publicacoes-secao__botao, .eventos-secao__botao { line-height: 0; }
