/*
Theme Name: MerakiArtsBrasil-NobreRibeiro
Theme URI: https://www.merakiartsbrasil.com
Author: Meraki Arts Brasil
Author URI: https://www.merakiartsbrasil.com
Description: Tema personalizado.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: Meraki Arts Brasil
*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body, html {
  font-family: "Open Sans", sans-serif;
      scroll-behavior: smooth;
      background-color: #D1D3D4;
      color: #751112;
    }

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
}

.tres-colunas {
    display: grid;
    grid-template-columns: 40% 30% 30%;
    gap: 10px;
    padding: 10px;
    background-color: #d5ccbb;
    background-image: url("images/fundoescritorio.jpg");
    background-size: cover;
    height: 336px;
}

.coluna {
    padding: 1rem;
    background: transparent;
}

.coluna-vazia {
    background: transparent; /* ou cor decorativa */
}

.bloco-post {
}

.bloco-post h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #751112;
    background-image: url(images/titleescritorio.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: left;
    text-align: center;
    background-color: #F0EBE1;
    height: 60px;
    padding: 13px;
}

.bloco-post .conteudo {
    font-size: small;
    line-height: 1.6;
    margin-bottom: 10px;
}

.duas-colunas-com-fundo {
    display: grid;
    grid-template-columns: 40% 60%;
    min-height: 500px; /* ajuste conforme sua necessidade */
}

.coluna-esquerda {
    padding: 2rem;
    background-color: #E4DCCA;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coluna-direita {
    background-image: url('images/fotoescritorio.jpg'); /* Substitua com a imagem desejada */
    background-size: cover;
    background-position: center;
}

.etitulo-com-bg {
    position: relative;
    color: white;
    padding: 1em;
    z-index: 1;
    overflow: hidden;
}

.etitulo-com-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(""); /* will be overridden by JS */
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: -1;
}

h2.etitulo-com-bg {
    height: 63px;
    text-align: right;
    padding-right: 15%;
}


.titulo-com-bg {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px; /* força altura mínima para garantir que o fundo apareça */
  overflow: hidden;
  background-color: #F0EBE1;
}

.titulo-com-bg .titulo-texto {
  display: block;
  max-width: min-content;
    text-align: left;
  line-height: 1.2;
  white-space: normal;
}


/* Centralizado no topo */
#equipe-advogados {
    background-color: #E4DCCA;
}
.conteudo-centralizado {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: #E4DCCA;
}

.conteudo-centralizado h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.conteudo-centralizado .conteudo {
  font-size: 1.1rem;
  color: #751112;
}

/* Container das duas colunas */
.linha-profissionais {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 0% 10% 5%;
  background-color: #E4DCCA;
}

/* Cada card profissional */
.card-profissional {
  flex: 1 1 45%;
  background: #E4DCCA;
  text-decoration: none;
  padding: 1rem;
  transition: box-shadow 0.3s;
  color: inherit; /* mantém cor do texto */
  display: flex;
  flex-direction: column;
  align-items: center; /* mantém imagem centralizada */
}

.card-profissional:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Imagem destacada: largura total, sem arredondar */
.foto-profissional {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  margin-bottom: 1rem;
}

/* Título e texto alinhados à esquerda e largura 100% */
.card-profissional h3,
.card-profissional p {
  align-self: flex-start;  /* alinha texto à esquerda */
  text-align: left;
  width: 100%;            /* para ocupar toda largura do card */
  margin: 0 0 0.5rem 0;
}

.card-profissional p {
  color: #751112;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Responsividade: no mobile, coluna única */
@media (max-width: 768px) {
  .linha-profissionais {
    flex-direction: column;
  }

  .card-profissional {
    flex: 1 1 100%;
  }
}


/* Seção de Notícias */
#noticias {
  padding: 5%;
  background-color: #F1F2F2;
}

/* Cabeçalho centralizado */
.noticias-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.noticias-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.noticias-header p {
  font-size: 1.1rem;
  color: #751112;
}

/* Grade de 3 colunas responsiva */
.noticias-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .noticias-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .noticias-grid {
    grid-template-columns: 1fr;
  }
}

/* Card da notícia */
.noticia-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #751112;
}

/* Link do card */
.noticia-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Imagem de fundo com título sobreposto */
.noticia-thumb {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  
}

.noticia-titulo {
    background-color: transparent;
    color: #751112;
    padding: 0.5rem 3rem 0.5rem 0.5rem;
    font-size: 1.4em;
    margin: 0;
    width: 100%;
    background-image: url(images/newstitle.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

/* Texto abaixo da imagem */
.noticia-excerpt {
  padding: 1rem;
  font-size: 0.95rem;
  color: #751112;
  line-height: 1.5;
  border-top: 1px solid #eee;
  flex-grow: 1;
}

/* Caso não tenha posts */
.no-posts {
  text-align: center;
  font-size: 1rem;
  color: #751112;
}



.caixa-intro {
  text-align: center;
  margin-bottom: 2rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.caixa-intro h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #751112;
}

.caixa-intro .conteudo {
  font-size: 1rem;
  line-height: 1.6;
  color: #751112;
}


main {
    flex: 1; /* Faz o conteúdo principal ocupar o espaço restante */
    min-height: 100vh;
    height: auto;
}

    header {
      background: transparent;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0px 0%;
      position: absolute;
      width: 100%;
      z-index: 10;
    }

    .logo {
      flex: 0 0 0%;
      text-align: center;
    }

    .nav {
      flex: 0 0 50%;
      display: flex;
      justify-content: center;
      gap: 20px;
    }

    .nav a {
      text-decoration: none;
      color: #fff;
      font-weight: bold;
    }
    
    .nav a:not(:last-child)::after {
  content: " | ";
  margin: 0 10px; /* Espaço ao redor do separador */
  color: #fff;  /* Cor do separador */
}


    .social {
      flex: 0 0 12%;
      text-align: right;
      padding-right: 2%;
    }

    .social i {
      margin-left: 10px;
      font-size: 1.2rem;
      color: #fff;
    }

    .hero {
    height: 90vh;
    background: url(images/fundobg.jpg) center / cover no-repeat;
    display: flex;
    align-items: center; /* centraliza verticalmente */
    justify-content: left;
    padding: 0 5%;
    text-align: left;
}


    .hero-text {
      width: 50%;
      padding: 20px;
      animation: fadeIn 2s ease-out;
    }
    
    h1.slogantitke {
    color: #fff;
    font-size: 3em;
}

p.slogantext {
    color: #fff;
    font-size: 1.4em;
}

    section#sobre-escritorio {
    background-color: #F0EBE1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Permite que a altura seja automática com base no conteúdo */
    padding: 60px 0%; /* ou outro valor confortável */
    display: flex;
    flex-direction: column;
    justify-content: center;
    }

    .caixas {
    display: flex;
    justify-content: space-around;
    padding: 50px 5%;
    min-height: 180px;
    height: auto;
    }

    .caixa {
      width: 30%;
      text-align: center;
      padding: 0px;
      background: #fff;
      transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .caixa:hover {
      transform: translateY(-5px);
      opacity: 0.9;
    }
    
    .caixa.caixa1, .caixa.caixa2, .caixa.caixa3 {
    background-size: cover !important;
    background-position: top !important;
    max-height: 350px;
    min-height: 250px;
        background-color: #E4DCCA;
}
    
    .caixa p {
    color: #751112;
    line-height: normal;
    letter-spacing: normal;
    }

    .caixas h3 {
    color: #E4DCCA;
    font-size: 1.2em;
    font-weight: 600;
    }

    .caixa i {
      font-size: 2rem;
      margin-bottom: 10px;
      display: block;
    }

    .caixa.\31 st {
    background-color: orange;
    background-size:cover;
    }

    .caixa.\32 nd {
    background-color: pink;
    background-size:cover;
    }

    .caixa.\33 rd {
    background-color: green;
    background-size:cover;
    }

    .texto-imagem {
    display: flex;
    align-items: center;
    padding: 100px 5%;
    gap: 40px;
    background-color: rgba(35, 31, 32, 0.75);
    height: 300px;
    margin-top: 10%;
    margin-bottom: 10%;
    }

    .texto {
      flex: 0 0 60%;
      color: #fff;
    }

    .imagem {
      flex: 0 0 40%;
    }

    .imagem img {
      width: 100%;
      height: auto;
    }


/* Animações específicas */
.caixa1 {
  animation: slideFromLeft 1s ease-out forwards;
  animation-delay: 0.2s;
}

.caixa2 {
  animation: slideFromBottom 1s ease-out forwards;
  animation-delay: 0.4s;
}

.caixa3 {
  animation: slideFromRight 1s ease-out forwards;
  animation-delay: 0.6s;
}

/* Keyframes */
@keyframes slideFromLeft {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideFromRight {
  0% {
    transform: translateX(100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideFromBottom {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


    section.servicos {
      background-image: url("images/fundoservicos.jpg");
      background-size: cover;
      display: flex;
      padding: 100px 5%;
      gap: 40px;
      height: auto;
    }

.container-categorias {
    display: flex;
    position: relative;
    gap: 40px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.coluna {
    flex: 1;
    min-width: 300px;
}

.categoria h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 10%;
}

.posts-box {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: left;
}

.post-item {
    width: calc(33.333% - 14px); /* 3 per line with spacing */
    text-align: center;
}

.post-item a {
    text-decoration: none !important;
}

.thumb img {
    width: 148px;
    height: auto;
    display: block;
    margin: 0 auto 10px;
}

.post-title {
    font-size: 1rem;
    margin: 0;
    color: #58595B;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Vertical Separator */
.separator {
    width: 2px;
    background-color: #ccc;
    height: auto;
}


section.contato {
    padding-top: 10px;
    background-size: 100%;
    background-color: #751112;
}

section#contato h2 {
    color: #E4DCCA;
    font-size: 2em;
}

#contato h2 {
    background-size: auto;
    background-position: left;
    background-repeat: no-repeat;
    color: #E4DCCA;
    text-align: left;
    margin-bottom: 10px;
}


.fa-brands, .fab {
    font-weight: 900;
    color: #6e5b25;
}

.fa-solid, .fas {
    font-weight: 900;
    color: #6e5b25;
}

    .contato-info {
      display: flex;
      gap: 40px;
      padding-top: 40px;
      background: #751112;
      padding: 20px;
    }

    .contato-esquerda {
      width: 35%;
    }
    
    .contato-esquerda h3 {
    font-size: 2em;
    margin-bottom: 5%;
}

.contato-esquerda p {
    padding-bottom: 10px;
    font-weight: 600;
    font-size: 1em;
}


    .contato-direita {
      width: 60%;
    }

    .contato-esquerda i {
      margin-right: 10px;
    }

    form input, form textarea {
      width: 100%;
      padding: 10px;
      margin-bottom: 10px;
      border: none;
    }

    footer {
    display: block;
    justify-content: space-between;
    padding: 20px 5%;
    background: #6B0B0C;
    color: #fff;
    align-items: center;
    margin: 0 auto;
    text-align: center;
    width: 100%;
}

    @keyframes fadeIn {
      0% { opacity: 0; transform: translateY(20px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    @media (max-width: 768px) {
      header, .hero, section.caixas, section.texto-imagem, section.servicos, .contato-info, footer {
        flex-direction: column;
        text-align: center;
      }

      .hero-text, .caixa, .texto, .imagem, .categoria, .contato-esquerda, .contato-direita {
        width: 100%;
      }
      
      .hero-text {
          padding-top: 200px;
      }
      
      .nav a:not(:last-child)::after {
    display: none;
}

.nav {
    padding: 0px 5%;
}

.caixas {
    display: block;
    justify-content: space-around;
    padding: 0px 0%;
    min-height: 255px;
    height: auto;
    width: 100%;
    margin: 0 auto;
}

.container-categorias {
        display: flex;
        position: relative;
        gap: 40px;
        margin: 50% 0 10% 0;
        flex-wrap: wrap;
    }

article.post {
    display: block;
    padding: 45% 5% !important;
    font-family: 'Open Sans';
    font-size: inherit;
}

.separator {
    width: 2px;
    background-color: #ccc;
    height: auto;
    display: none;
}

.post-item {
    width: 45%;
    text-align: center;
    margin: 0 auto;
}

section#contato h2 {
    color: #E4DCCA;
    font-size: 1em;
}

#contato h2 {
    background-position: left;
    background-repeat: no-repeat;
    color: #E4DCCA;
    padding: 10px 10px;
    text-align: left;
    border-radius: 0px;
    margin-bottom: 0px;
}

  .texto-imagem {
    flex-direction: column;
    padding: 1rem;
  }

  .imagem, .texto {
    width: 100%;
    max-width: 100vw;
  }

  .imagem img.Kaline {
    width: 100vw;
    height: auto;
  }

  .conteudo {
    padding-top: 1rem;
  }


.caixa.caixa1, .caixa.caixa2, .caixa.caixa3 {
    background-size: cover !important;
    background-position: top !important;
    min-height: 350px;
    width: 100vw !important;
    margin: 0 auto;
}

      .icone-box div {
        width: 45%;
        margin: auto;
      }
    }
    

.custom-search-form {
  display: flex;
  align-items: center;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 50px;
  background: white;
  overflow: hidden;
  height: 25px;
}

.search-input {
    border: none;
    padding: 10px;
    margin-top: 10px;
    width: 100%;
    font-size: inherit;
    outline: none;
    background: transparent;
}

.search-button {
  background: none;
  border: none;
  padding: 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.search-button img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}


.wpforms-container button[type=submit] {
    background-color: #E4DCCA !important;
    border-color: #E4DCCA !important;
    border-style: solid;
    border-width: 2px;
    padding: 5px;
    float: right !important;
    color: #751112 !important;
}

    .social a {
  text-decoration: none;
}

article.post {
    display: block;
    padding: 10% 5%;
    font-family: 'Open Sans';
    font-size: inherit;
}

.post-header.mb-4 {
    margin-bottom: 2%;
}

.post-footer {
    margin-top: 5%;
}

section.post-content.mb-5 p {
    text-align: justify;
    line-height: 150%;
    font-size: inherit;
    font-family: 'Open Sans';
    letter-spacing: 1px;
}


div.wpforms-container-full .wpforms-form .wpforms-field {
    padding: 2px 0 !important;
    clear: both;
}

iv.wpforms-container-full .wpforms-form input[type=date], div.wpforms-container-full .wpforms-form input[type=datetime], div.wpforms-container-full .wpforms-form input[type=datetime-local], div.wpforms-container-full .wpforms-form input[type=email], div.wpforms-container-full .wpforms-form input[type=month], div.wpforms-container-full .wpforms-form input[type=number], div.wpforms-container-full .wpforms-form input[type=password], div.wpforms-container-full .wpforms-form input[type=range], div.wpforms-container-full .wpforms-form input[type=search], div.wpforms-container-full .wpforms-form input[type=tel], div.wpforms-container-full .wpforms-form input[type=text], div.wpforms-container-full .wpforms-form input[type=time], div.wpforms-container-full .wpforms-form input[type=url], div.wpforms-container-full .wpforms-form input[type=week], div.wpforms-container-full .wpforms-form select, div.wpforms-container-full .wpforms-form textarea {
    background-color: #E4DCCA !important;
    box-sizing: border-box;
    border-radius: 2px;
    color: #751112 !important;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    display: block;
    float: none;
    font-size: 16px;
    border: 1px solid #E4DCCA !important;
    padding: 6px 10px;
    height: 38px;
    width: 100%;
    line-height: 1.3;
}

div.wpforms-container-full .wpforms-form .wpforms-one-half, div.wpforms-container-full .wpforms-form .wpforms-three-sixths, div.wpforms-container-full .wpforms-form .wpforms-two-fourths {
    width: 49% !important;
}

div.wpforms-container-full .wpforms-form .wpforms-five-sixths, div.wpforms-container-full .wpforms-form .wpforms-four-sixths, div.wpforms-container-full .wpforms-form .wpforms-four-fifths, div.wpforms-container-full .wpforms-form .wpforms-one-fifth, div.wpforms-container-full .wpforms-form .wpforms-one-fourth, div.wpforms-container-full .wpforms-form .wpforms-one-half, div.wpforms-container-full .wpforms-form .wpforms-one-sixth, div.wpforms-container-full .wpforms-form .wpforms-one-third, div.wpforms-container-full .wpforms-form .wpforms-three-fourths, div.wpforms-container-full .wpforms-form .wpforms-three-fifths, div.wpforms-container-full .wpforms-form .wpforms-three-sixths, div.wpforms-container-full .wpforms-form .wpforms-two-fourths, div.wpforms-container-full .wpforms-form .wpforms-two-fifths, div.wpforms-container-full .wpforms-form .wpforms-two-sixths, div.wpforms-container-full .wpforms-form .wpforms-two-thirds {
    float: left;
    margin-left: 2% !important;
    clear: none;
}


.caixa li {
    position: relative;
    padding-left: 30%;
    list-style: none;
    text-align: left;
    margin-bottom: 5px;
}

.caixa li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 116px;
    height: 11px;
    background-image: url('images/liclass.png');
    background-size: auto;
    background-repeat: no-repeat;
}

main#primary {
    background-color: #F1F2F2;
}

/* For single posts */
body.single header {
  background-color: #6B0B0C; /* your desired color */
}

/* For pages */
body.page header {
  background-color: #6B0B0C; /* your desired color */
}



/* Responsividade: no mobile */
@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .social {
        display: none;
    }
    
    .tres-colunas {
    display: table-row-group;
    grid-template-columns: 40% 30% 30%;
    gap: 10px;
    padding: 10px;
    background-color: #d5ccbb;
    background-image: url(images/fundoescritorio.jpg);
    background-size: inherit;
    background-position: top left;
    background-repeat: no-repeat;
    min-height: 336px;
    margin-left: -5%;
    }
 
 .coluna.coluna-dupla {
    margin-top: 300px;
    }
    
    h2.etitulo-com-bg {
    height: 63px;
    text-align: right;
    padding-right: 10px;
    font-size: 1.2em;
    padding-top: 15px;
    }
    
    .duas-colunas-com-fundo {
    display: contents;
    grid-template-columns: 40% 60%;
    min-height: 500px;
    }
    
    .bloco-post h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #751112;
    background-image: url(images/titleescritorio.png);
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: left;
    text-align: right;
    background-color: #F0EBE1;
    height: 60px;
    padding: 15px 15px 0px 0px;
    }
    
    .titulo-com-bg .titulo-texto {
    display: block;
    max-width: none;
    text-align: left;
    line-height: 1.2;
    white-space: normal;
    }
    
    .titulo-com-bg {
    position: relative;
    background-size: cover;
    background-position: unset;
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    overflow: hidden;
    background-color: #f0ebe1 !important;
    }
    
    h3.titulo-com-bg {
    padding-left: 125px;
    text-align: left !important;
    padding-right: 100px;
    }
    
    .noticia-titulo {
    background-color: transparent;
    color: #751112;
    padding: 0.5rem 3rem 0.5rem 0.5rem;
    font-size: 1em;
    margin: 0;
    width: 100%;
    background-image: url(images/newstitle.png);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    }
    
    img.Logo {
    width: 100%;
    }
    
    footer img.Logo {
    width: auto;
    }
    
}