/* === RESET E BASE === */
body, html {
  box-sizing: border-box !important;
}
*,
*::before,
*::after {
  box-sizing: inherit !important;
}

/* === TEXTOS GERAIS === */
.entry-content p,
.widget p {
  text-align: justify;
}

/* === CENTRALIZA TITULOS === */
.hestia-title {
  text-align: center !important;
}

/* === FONTE SUB TITULO === */
#carousel-hestia-generic span.sub-title {
  font-size: 23px;
}

section {
  padding: 30px 0 30px !important;
}

/* === TITULOS INTERNOS / SEÇÕES === */
.info-title {
  font-size: 1.8em !important;
}

/* === MENU PRINCIPAL === */
#menu-menuprincipal li a {
  font-weight: 700 !important; 
}
#menu-menuprincipal-1 {
  display: none !important;
}

/* === BOTÃO - LEIA MAIS === */
.botao-read-mais {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: transparent;
  color: #a6a29b;
  border: 1px solid #a6a29b;
  padding: 0 8px 0 4px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
  height: 24px;
  transition: all 0.3s ease;
}
.botao-read-mais .icone-wrapper {
  background-color: #a6a29b;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.botao-read-mais i {
  color: #fff;
  font-size: 8px;
}
.botao-read-mais:hover {
  border-color: #8c887f;
  color: #8c887f;
}
.botao-read-mais:hover .icone-wrapper {
  background-color: #8c887f;
}

/* === STAFF / EQUIPE RESPONSIVO === */
@media (max-width: 768px) {
  .hestia-team .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hestia-team-content .card-profile {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hestia-team-content .card-image {
    text-align: center;
    margin-bottom: 15px;
  }
  .hestia-team-content .card-image img {
    margin: 0 auto;
    display: inline-block;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
  }
  .hestia-team-content .card-title {
    font-size: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hestia-team-content .content {
    text-align: left;
  }
  .hestia-team-content .col-md-5,
  .hestia-team-content .col-md-7,
  .hestia-team-content .col-xs-6,
  .hestia-team-content .col-sm-6 {
    width: 100% !important;
    padding: 0 !important;
    max-width: 100%;
    display: block;
    box-sizing: border-box;
  }
}

/* === SUBSCRIBE MOBILE AJUSTES === */
@media screen and (max-width: 768px) {
  section#subscribe .card.card-raised .content,
  section#subscribe .card.card-raised {
    padding: 0 !important;
    max-width: 95%;
    margin: 0 auto;
  }
  section#subscribe .col-md-6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  section#subscribe .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
#subscribe .col-md-6 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#ribbon .hestia-ribbon-content-right,
#ribbon .hestia-ribbon-content-right .btn.hestia-subscribe-button {
  display: none !important;
}

/* === PUBLICACOES IMAGEM === */
section#subscribe .col-md-6.col-md-offset-3 {
  width: 100% !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
section#subscribe .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
section#subscribe .publicacoes {
  margin: 0 !important;
  padding: 0 !important;
}
section#subscribe .publicacoes img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

/* === IMAGEM PAGINA POST === */ 
.custom-post-header {
  background-size: cover;
  background-position: center;
  padding: 180px 30px;
  text-align: center;
  color: white;
  position: relative;
}
.custom-post-header-overlay {
  background-color: rgba(0, 0, 0, 0.5);
  display: inline-block;
  padding: 40px 60px;
  border-radius: 16px;
}
.custom-post-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}
.custom-post-meta {
  font-size: 1.2rem;
  color: #ddd;
}

/* ==== DEPOIMENTOS ==== */ 
#testimonials .row {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
  align-items: stretch;
  margin: 0 !important;
}
#testimonials .row > .col-xs-12.col-ms-6.col-sm-6.col-md-4 {
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#testimonials .row::-webkit-scrollbar {
  display: none;
}
#testimonials .card-testimonial {
  background-color: #f4f8fc !important;
  border-radius: 16px;
  padding: 20px;
  box-shadow: none !important;
  width: 100%; 
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #111;
  text-align: left;
}
#testimonials .card-testimonial .content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
#testimonials .card-testimonial .card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#testimonials .card-testimonial .category {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: left;
}
#testimonials .card-testimonial .card-description {
  font-size: 14px;
  text-align: justify;
  flex: 1 1 auto;
}
#testimonials .botao-read-mais {
  margin-top: 10px;
  align-self: flex-start;
}

/* ==== SEÇÃO BLOG ==== */
#blog {
  background-image: url('http://advocaciamarimon.com.br/desportivo/wp-content/uploads/2025/05/Estadio_backGround-1-scaled-1.jpg');
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  padding: 30px 10px;
  position: relative;
  z-index: 1;
}
#blog::before {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7)!important;
  z-index: 0;
}
#blog .container,
#blog .row {
  position: relative;
  z-index: 1;
}
#blog .hestia-blogs-title-area {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
  width: auto !important;
}
#blog .hestia-title {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-align: center;
  font-size : 37px !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
}
#blog .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
#blog .hestia-blog-item {
  background-color: #f4f8fc;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 350px;
  width: 100%;
  box-shadow: none;
  padding: 0;
}
#blog .hestia-blog-item .card-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
#blog .hestia-blog-item .content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}
#blog .hestia-blog-item .category {
  display: none;
}
#blog .hestia-blog-item .card-title a {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #111111;
  line-height: 1.3;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  hyphens: auto;
  text-decoration: none;
}
#blog .hestia-blog-item .card-description {
  font-size: 14px;
  text-align: justify;
  flex: 1 1 auto;
}
#blog .hestia-blog-item .botao-read-mais,
#blog .hestia-blog-item .moretag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: transparent;
  color: #a6a29b;
  border: 1px solid #a6a29b;
  padding: 0 8px 0 4px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  text-transform: uppercase;
  line-height: 1;
  height: 24px;
  transition: all 0.3s ease;
  position: relative;
}
#blog .hestia-blog-item .botao-read-mais::before,
#blog .hestia-blog-item .moretag::before {
  content: '\f054'; 
  font-family: "Font Awesome 5 Free" !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #a6a29b;
  color: #ffffff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 8px;
  flex-shrink: 0;
}
#blog .hestia-blog-item .botao-read-mais:hover,
#blog .hestia-blog-item .moretag:hover {
  border-color: #a6a29b;
  color: #a6a29b;
}
#blog .hestia-blog-item .botao-read-mais:hover::before,
#blog .hestia-blog-item .moretag:hover::before {
  background-color: #a6a29b;
}
#blog .hestia-blog-item .card.card-plain.card-blog {
  margin: 0 !important;
}
#blog .veja-mais-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 40px auto 0 auto;
  padding: 8px 24px;
  background-color: #ffffff;
  color: #a6a29b;
  border: 2px solid #a6a29b;
  border-radius: 30px;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}
#blog .veja-mais-btn:hover {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}
@media (max-width: 768px) {
  #blog .hestia-blog-content > .row {
    gap: 20px !important;
  }
  .hestia-blog-item {
    width: 260px;
  }
}

/* ==== BACKGROUND (Features, Depoimentos, Team) ==== */
#features,
#testimonials,
#team {
  position: relative;
  background-image: url("http://advocaciamarimon.com.br/desportivo/wp-content/uploads/2025/07/Background_depoimentos.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0;
  color: #000;
  z-index: 0;
  overflow: hidden;
}
#features::before,
#testimonials::before,
#team::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 1;
}
#features > *,
#testimonials > *,
#team > * {
  position: relative;
  z-index: 2;
}

/* === CLIENTES EMPRESARIAIS === */
ul.clients-bar-wrapper {
  all: unset;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: center;
  gap: 30px 40px;
  width: 100% !important;
  max-width: 1100px;
  margin: 0 auto !important;
  padding: 30px 0 !important;
  list-style: none !important;
  float: none !important;
  text-align: center !important;
  box-sizing: border-box;
}
ul.clients-bar-wrapper > li.clients-bar-item {
  display: flex !important;
  justify-content: center;
  align-items: center;
  height: 150px !important;
  padding: 10px;
  box-sizing: border-box;
}
ul.clients-bar-wrapper > li.clients-bar-item img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto;
}
@media (max-width: 768px) {
  ul.clients-bar-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  ul.clients-bar-wrapper {
    grid-template-columns: 1fr;
  }
}

/* === JUSTIFICATIVA E AJUSTE DE TEXTOS === */
.hestia-features-content p,
.hestia-features-content .content,
.hestia-features-content .card-description,
.hestia-features-content .feature-box p,
#features .feature-box p,
#features .content,
#features p,
#features .card-description,
section .content,
section p:not([class*="title"]),
section .card-description,
section .feature-box p,
.card-description,
.content p,
.content {
  text-align: justify !important;
  text-align-last: left !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: manual !important;
  letter-spacing: 0.01em !important;
}
@media (max-width: 768px) {
  .hestia-features-content p,
  .hestia-features-content .content,
  .hestia-features-content .card-description,
  .hestia-features-content .feature-box p,
  #features .feature-box p,
  #features .content,
  #features p,
  #features .card-description,
  section .content,
  section p:not([class*="title"]),
  section .card-description,
  section .feature-box p,
  .card-description,
  .content p,
  .content {
    text-align: left !important;
    text-align-last: left !important;
  }
}

/* ===== NOVA PÁGINA DE PERFIL - BLOCO GUTENBERG ===== */
.wp-block-media-text.is-stacked-on-mobile {
  background: #f6f6f7 !important;
  border-radius: 22px !important;
  box-shadow: 0 6px 32px #0001 !important;
  margin: 48px auto 32px auto !important;
  padding: 40px 36px 30px 36px !important;
  max-width: 950px !important;
  width: 100% !important;
  align-items: center !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 38px !important;
}

/* Imagem do perfil */
.wp-block-media-text .wp-block-media-text__media img {
  width: 340px !important;
  max-width: 100% !important;
  min-width: 160px !important;
  height: auto !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 16px #0002 !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Conteúdo/texto do perfil */
.wp-block-media-text .wp-block-media-text__content {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Título centralizado */
.wp-block-media-text .wp-block-media-text__content h1,
.wp-block-media-text .wp-block-media-text__content h2 {
  text-align: center !important;
  margin-bottom: 32px !important;
  color: #223147 !important;
  font-weight: 700 !important;
  width: 100%;
}
.wp-block-media-text .wp-block-media-text__content p {
  margin-bottom: 18px !important;
  font-size: clamp(16px, 1.1vw, 20px) !important;
  color: #222 !important;
  line-height: 1.7 !important;
  text-align: justify !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Botão "Voltar" centralizado */
.wp-block-buttons {
  width: 100% !important;
  justify-content: center !important;
  margin-top: 24px !important;
  display: flex !important;
}
.wp-block-button__link {
  font-size: 17px !important;
  padding: 8px 34px !important;
  border-radius: 18px !important;
  border: 1.5px solid #222 !important;
  background: #fff !important;
  color: #222 !important;
  font-weight: 500 !important;
  transition: all 0.2s;
  box-shadow: none !important;
  text-transform: none !important;
}
.wp-block-button__link:hover {
  background: #222 !important;
  color: #fff !important;
}

/* ===== RESPONSIVO PERFIL ===== */
@media (max-width: 900px) {
  .wp-block-media-text.is-stacked-on-mobile {
    flex-direction: column !important;
    gap: 18px !important;
    padding: 18px 2vw 18px 2vw !important;
    border-radius: 14px !important;
  }
  .wp-block-media-text .wp-block-media-text__media img {
    width: 80vw !important;
    max-width: 320px !important;
    margin-bottom: 12px !important;
  }
}
@media (max-width: 600px) {
  .wp-block-media-text.is-stacked-on-mobile {
    padding: 8px 2vw 10px 2vw !important;
    gap: 8px !important;
    border-radius: 0 !important;
  }
  .wp-block-media-text .wp-block-media-text__media img {
    width: 98vw !important;
    max-width: 99vw !important;
    min-width: 80px !important;
    margin-bottom: 10px !important;
  }
  .wp-block-media-text .wp-block-media-text__content h1,
  .wp-block-media-text .wp-block-media-text__content h2 {
    font-size: 1.3em !important;
    margin-bottom: 12px !important;
  }
  .wp-block-media-text .wp-block-media-text__content p {
    font-size: 15px !important;
    padding: 0 4px !important;
  }
}
/* =============================
   POPUP FULLSCREEN OVERLAY - Modal STAFF (atualizado 2025-07-16 19:40)
   ============================= */

.popup-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  background: rgba(0,0,0,0.47);
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
}

/* Modal staff box: imagem acompanha altura do texto, padding interno confortável */
.popup-box, .modal-staff-box {
  background: rgba(255,255,255,0.93);
  border-radius: 14px;
  box-shadow: 0 4px 32px #0002;
  margin: 40px auto;
  padding: 38px 40px;   /* padding consistente */
  display: flex;
  gap: 0px;
  align-items: stretch;
  flex-direction: row;
  position: relative;
  width: 96vw;
  max-width: 1100px;
  min-width: 320px;
}
@media (max-width: 900px) {
  .popup-box, .modal-staff-box {
    gap: 18px;
    padding: 12px 2vw 20px 2vw;
    width: 99vw;
    max-width: none;
    flex-direction: column;
    align-items: center;
  }
}

/* Iframe do membro, fundo preto translúcido */
.iframe-membro {
  width: 100vw;
  min-height: 100vh;
  height: 100vh;
  border: none;
  border-radius: 0;
  background: #000000d9 !important;
  display: block;
  margin: 0;
  padding: 0;
}

/* Texto modal staff: padding-right afasta do texto da imagem */
.modal-staff-texto {
  flex: 1 1 60%;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 32px 32px 32px;  /* padding-right: 32px, padding-left: 0 */
}

.modal-staff-texto h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #3e3e3e;
  margin-top: 0;
  line-height: 1.2;
}

.modal-staff-texto p {
  font-size: 1.18rem;
  color: #585858;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
}

/* AJUSTE PARA IMAGEM NO MODAL STAFF IGUAL "NOSSA HISTÓRIA" */
.modal-staff-imagem {
  flex: 1 1 30%;
  max-width: 380px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0 30px 0 0;  /* igual .nossa-historia-imagem */
  background: none !important;
  box-shadow: none !important;
}

.modal-staff-imagem img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 20px #0002 !important;
  background: none !important;
  display: block;
  max-height: 100%;
  margin: 0;
  padding: 0;
  /* remove border e outras interferências */
  border: none !important;
}

/* Ajuste responsivo semelhante ao da "Nossa História" */
@media (max-width: 1100px) {
  .modal-staff-imagem {
    max-width: 320px;
    padding: 0;
  }
}
@media (max-width: 800px) {
  .modal-staff-box {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .modal-staff-imagem {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  .modal-staff-imagem img {
    max-height: 340px;
    width: 100vw;
  }
}


/* Botão fechar X vermelho, fixo topo-direito */
.popup-close {
  position: fixed;
  top: 24px;
  right: 32px;
  width: 46px;
  height: 46px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #c5c5c5;
  z-index: 10010;
  transition: background 0.14s, color 0.14s;
  box-shadow: none;
}
.popup-close:hover,
.popup-close:focus {
  background: #c5c5c5;
  color: #000000;
}
@media (max-width: 700px) {
  .popup-close {
    width: 36px;
    height: 36px;
    font-size: 22px;
    top: 12px;
    right: 12px;
  }
  .modal-staff-texto h2 {
    font-size: 1.3rem;
  }
}
/* ==== PAGINA DE PERFIL ====*/
.nfd-text-md.nfd-text-faded.nfd-text-balance.has-text-align-left {
  text-align: justify;              /* Justifica o texto */
  font-size: 16px;                  /* Tamanho da fonte */
  text-justify: inter-word;         /* Minimiza espaços grandes entre palavras */
  word-break: break-word;           /* Quebra palavras longas se necessário */
  hyphens: auto;                    /* Hifeniza automaticamente para suavizar os espaços */
  line-height: 1.5;                 /* Espaçamento entre linhas (opcional, ajustável) */
}

/* #==== imprensa ====# */
.imprensa-layout {
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 40px;
                padding: 30px 0 80px 0; /* padding-bottom maior para espaço da paginação */
                border-radius: 12px;
            }
            .imprensa-swiper-wrapper-area {
                display: flex;
                flex-direction: row;
                align-items: center;
                justify-content: center;
                width: 100%;
                position: relative;
            }
            .imprensa-swiper-container {
                width: 1150px !important;
                max-width: 1150px !important;
                min-width: 1150px !important;
                box-sizing: border-box;
                overflow: hidden !important;
                position: relative;
            }
            .swiper-wrapper {
                display: flex;
                align-items: stretch;
            }
            .imprensa-swiper-slide {
                width: 360px !important;
                max-width: 360px !important;
                min-width: 360px !important;
                background: #fff;
                border-radius: 12px;
                overflow: hidden;
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
                transition: transform 0.3s ease;
                padding: 24px;
                min-height: 290px;
                display: flex;
                flex-direction: column;
                justify-content: space-between;
                height: 100%;
                box-sizing: border-box;
            }
            .imprensa-swiper-slide:hover {
                transform: translateY(-5px);
            }
            .imprensa-swiper-slide h4 {
                font-size: 1.3em;
                font-weight: 700;
                margin-bottom: 10px;
                overflow: hidden;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                text-overflow: ellipsis;
            }
            .imprensa-swiper-slide p {
                font-size: 14px;
                color: #444;
                text-align: justify;
                flex-grow: 1;
                line-height: 1.4;
                word-spacing: normal;
                margin-bottom: 0;
                text-justify: inter-word;
            }
            .imprensa-botao-rssmais {
                background-color: transparent !important;
                color: #a6a29b !important;
                border: 1px solid #a6a29b !important;
                border-radius: 999px !important;
                font-size: 12px !important;
                font-weight: 600 !important;
                font-family: inherit;
                text-decoration: none !important;
                text-transform: uppercase !important;
                height: 32px !important;
                width: 100% !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                transition: all 0.3s ease !important;
                margin-top: 15px !important;
                cursor: pointer !important;
                box-sizing: border-box !important;
                text-align: center !important;
                padding: 0 !important;
            }
            .imprensa-botao-rssmais:hover {
                border-color: #8c887f !important;
                color: #8c887f !important;
            }
            #imprensa .swiper-button-next, .swiper-button-prev {
                background: none !important;
                border-radius: 0 !important;
                width: auto !important;
                height: auto !important;
                box-shadow: none !important;
                color: #a6a29b !important;
                font-size: 48px !important;
                opacity: 1 !important;
                padding: 0 !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                margin-top: unset !important;
                margin-top: initial !important;
                margin-top: inherit !important;
            }
            #imprensa .swiper-button-prev {
                left: 320px !important;
            }
            #imprensa .swiper-button-next {
                right: 320px !important;
            }
            #imprensa .swiper-pagination {
                margin-top: 30px;
                text-align: center;
                position: absolute;
                left: 0;
                right: 0;
                bottom: -40px; /* move para baixo dos cards */
                width: 100%;
                z-index: 1;
            }
            #imprensa .swiper-pagination-bullet {
                background-color: #a6a29b !important;
                opacity: 0.7 !important;
            }
            #imprensa .swiper-pagination-bullet-active {
                background-color: #ffffff !important;
                opacity: 1 !important;
            }
            @media (max-width: 1200px) {
                .imprensa-swiper-container {
                    width: 99vw !important;
                    max-width: 99vw !important;
                    min-width: unset !important;
                }
                #imprensa .swiper-button-prev { left: -25px !important; }
                #imprensa .swiper-button-next { right: -25px !important; }
            }
            @media (max-width: 900px) {
                .imprensa-swiper-container {
                    width: 97vw !important;
                    max-width: 97vw !important;
                }
                .imprensa-swiper-slide {
                    width: 45vw !important;
                }
                #imprensa .swiper-button-prev { left: -12px !important; }
                #imprensa .swiper-button-next { right: -12px !important; }
            }
            @media (max-width: 600px) {
                .imprensa-swiper-slide {
                    width: 95vw !important;
                }
                #imprensa .swiper-button-next, .swiper-button-prev {
                    display: none !important;
                }
            }


/* #==== eventos ====# */
#eventos {
                        position: relative;
                        background-image: url("http://advocaciamarimon.com.br/desportivo/wp-content/uploads/2025/07/Background_depoimentos.png");
                        background-size: cover;
                        background-position: center;
                        background-repeat: no-repeat;
                        padding: 60px 0;
                        color: #000;
                        z-index: 0;
                        overflow: hidden;
                    }
                    #eventos::before {
                        content: "";
                        position: absolute; top: 0; left: 0;
                        width: 100%; height: 100%;
                        background-color: rgba(255, 255, 255, 0.6);
                        z-index: 1;
                    }
                    #eventos > * { position: relative; z-index: 2; }

                    .eventos-layout {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        gap: 40px;
                        padding: 30px;
                        border-radius: 12px;
                    }
                    .eventos-swiper {
                        width: 100%;
                        max-width: 1000px;
                        overflow: visible;
                        min-height: 240px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                    }
                    .swiper-wrapper { display: flex; align-items: stretch; }

                    .swiper-slide {
                        background: #fff;
                        border-radius: 16px;
                        box-shadow: 0 4px 10px rgba(0,0,0,0.06);
                        display: flex;
                        flex-direction: column;
                        justify-content: flex-start;
                        height: 220px;
                        max-width: 340px;
                        min-width: 240px;
                        margin: 0 12px;
                        align-items: flex-start;
                        cursor: pointer;
                        font-family: inherit;
                        transition: box-shadow 0.2s;
                    }
                    .swiper-slide:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.11); }

                    .swiper-slide img,
                    .swiper-slide .evento-thumb-video {
                        width: 100%;
                        height: 150px;
                        object-fit: cover;
                        border-radius: 12px 12px 0 0;
                        margin-bottom: 10px;
                        background: #f5f5f5;
                        display: block;
                        position: relative;
                    }
                    .swiper-slide .evento-thumb-video { background:#000; }

                    .evento-play-icon {
                        position: absolute;
                        left: 50%;
                        top: 50%;
                        transform: translate(-50%, -50%);
                        width: 56px; height: 56px;
                        background: rgba(0,0,0,0.5);
                        border-radius: 50%;
                        display: flex; align-items: center; justify-content: center;
                        z-index: 2; pointer-events: none;
                    }
                    .evento-play-icon svg { width: 28px; height: 28px; fill: #fff; }

                    .swiper-slide h3 {
                        font-size: 1.6rem !important;
                        font-weight: 700;
                        margin: 10px 20px 16px 20px;
                        font-family: inherit;
                        line-height: 1.2;
                        color: #2d3359 !important;
                    }

                    .eventos-center {
                        display: flex;
                        justify-content: center;
                        gap: 40px;
                        flex-wrap: wrap;
                        width: 100%;
                    }

                    .fancybox__thumbs {
                        --fancybox-thumbs-width: 80px;
                        --fancybox-thumbs-height: 55px;
                        border-radius: 6px;
                        margin-top: 12px;
                    }
                    .fancybox__thumb {
                        border-radius: 4px;
                        border: 2px solid transparent;
                        transition: border 0.2s;
                    }
                    .fancybox__thumb.is-selected { border-color: #a6a29b; }

                    @media (max-width: 1024px) {
                        .swiper-slide { height: auto; max-width: 90vw; }
                    }
                    @media (max-width: 768px) {
                        .eventos-swiper { min-height: 160px; }
                        .swiper-slide img, .swiper-slide .evento-thumb-video { height: 100px; }
                        .evento-play-icon { width: 32px; height: 32px; }
                        .evento-play-icon svg { width: 18px; height: 18px; }
                    }

                    /* ===== REMOVER MOLDURA DO VÍDEO (padding no Fancybox) ===== */
                    html body .fancybox__container .fancybox__slide { padding: 0 !important; }
                    html body .fancybox__container .fancybox__content {
                        padding: 0 !important;
                        background: transparent !important;
                        box-shadow: none !important;
                    }
                    html body .fancybox__container .f-html {
                        padding: 0 !important;
                        background: transparent !important;
                    }
                    html body .fancybox__container video {
                        display: block;
                        width: 100% !important;
                        height: auto !important;
                        max-height: 80vh !important;
                        background: #000 !important;
                    }


/* #==== por_que_escolher ====# */
/* Seu CSS permanece o mesmo */
          .ribbon-layout {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 40px;
            flex-wrap: wrap;
            background-color: rgba(255, 255, 255, 0.85);
            padding: 40px;
            border-radius: 12px;
          }

          .ribbon-texto {
            flex: 1 1 65%;
            min-width: 340px;
            color: #000;
          }

          .ribbon-texto h2 {
            font-family: inherit;
            font-size: 32px;
            font-weight: 700;
            margin-bottom: 25px;
            color: #000;
          }

          .ribbon-line {
            font-size: 14px;
            color: #000;
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin-bottom: 12px;
            line-height: 1.6;
          }

          .ribbon-line i {
            color:rgb(0, 0, 0);
            font-size: 16px;
            min-width: 18px;
            margin-top: 3px;
          }

          .ribbon-imagem {
            flex: 1 1 30%;
            max-width: 360px;
            display: flex;
            align-items: center;
            justify-content: center;
          }

          .ribbon-imagem img {
            width: 100%;
            height: auto;
            max-height: 500px;
            object-fit: cover;
            border-radius: 12px;
          }

          @media screen and (max-width: 768px) {
            .ribbon-layout {
              flex-direction: column;
              align-items: center;
            }

            .ribbon-texto {
              text-align: center;
            }

            .ribbon-line {
              justify-content: center;
              font-size: 13px;
            }

            .ribbon-imagem {
              max-width: 90%;
              margin-top: 30px;
            }

            .ribbon-imagem img {
              max-height: none;
            }
          }


/* ==========================================================================
   #==== about_nossa_historia ====#
   Migrado do HTML inline da seção "Nossa História" em 2025-09-10 04:13:41.
   Regras base + responsividade com foco em 1100/800/480.
   ========================================================================== */

.nossa-historia-box {
  max-width: 1400px;
  width: min(95vw, 1400px);
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 12px;
  box-shadow: 0 4px 32px #0001;
  padding: 40px;
  display: flex;
  gap: 40px;
  align-items: stretch;
  flex-wrap: wrap;
}

.nossa-historia-texto {
  flex: 1 1 65%;
  min-width: 0; /* evita overflow em mobile */
  color: #5b5b5b !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 30px;
  padding-right: 0;
}

.nossa-historia-texto h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 22px 0;
  color: #5b5b5b !important;
  text-decoration: underline;
}

.nossa-historia-texto p {
  font-size: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #5b5b5b !important;
  line-height: 1.6;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  overflow-wrap: break-word;
  margin: 0 0 12px 0;
}

.nossa-historia-imagem {
  flex: 1 1 30%;
  max-width: 380px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding-left: 0;
  padding-right: 30px;
}

.nossa-historia-imagem img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 20px #0002;
  background: #fff;
  display: block;
}

/* --- Responsivo --- */
@media (max-width: 1100px) {
  .nossa-historia-box { padding: 24px 8px; gap: 20px; }
  .nossa-historia-imagem { max-width: 320px; }
}

@media (max-width: 800px) {
  .nossa-historia-box {
    flex-direction: column;
    padding: 16px 4vw;
    gap: 20px;
  }
  .nossa-historia-texto { padding: 0 4px; }
  .nossa-historia-imagem {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }
  .nossa-historia-imagem img { max-height: 340px; }
}

@media (max-width: 480px) {
  .nossa-historia-texto h2 { font-size: 1.6rem; }
  .nossa-historia-texto p { font-size: 15px; line-height: 1.55; }
}

/* ==========================================================================
   #==== mobile_general_fixes ====#
   Ajustes gerais de tipografia e containers em telas menores.
   ========================================================================== */

@media (max-width: 768px) {
  /* Justificar parágrafos e reduzir problemas de espaçamento */
  .entry-content p,
  section .content p,
  .wp-block-media-text .wp-block-media-text__content p,
  .hestia-features-content p,
  #features p,
  .card-description,
  .content p {
    text-align: justify !important;
    text-align-last: left !important;
    text-justify: inter-word;
    hyphens: auto;
    overflow-wrap: break-word;
  }

  /* Evitar transbordo de colunas e forçar largura cheia quando necessário */
  .hestia-team-content .col-md-5,
  .hestia-team-content .col-md-7,
  .hestia-team-content .col-xs-6,
  .hestia-team-content .col-sm-6 {
    width: 100% !important;
    display: block;
    box-sizing: border-box;
  }

  /* Blog cards: imagem responsiva e sem “buraco” de altura fixa */
  .hestia-blog-item .card .card-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    display: block;
  }
}

/* ==========================================================================
   #==== por_que_escolher_overrides ====#
   Melhora do card/coluna em mobile para centralizar e evitar corte lateral.
   ========================================================================== */

@media (max-width: 768px) {
  .ribbon-layout {
    width: 92vw;
    margin: 0 auto;
    padding: 16px;
  }
  .ribbon-texto { padding: 12px 8px; }
  .ribbon-imagem { text-align: center; }
  .ribbon-imagem img { max-width: 100%; height: auto; }
}


/* ==========================================================================
   #==== mobile_title_wrap_fixes ====#  (2025-09-10 04:21:49)
   Evita quebra de palavras nos títulos em mobile e centraliza os headings.
   ========================================================================== */
@media (max-width: 768px) {
  .section .title,
  .section .section-title,
  .hestia-blogs .title,
  .hestia-blogs .title h2,
  .card-title,
  h1, h2, h3, h4 {
    word-break: normal !important;
    overflow-wrap: normal !important; /* quebra apenas em espaços */
    hyphens: manual !important;
    white-space: normal !important;
    text-align: center;
    letter-spacing: normal;
    line-height: 1.25;
  }
}

/* ==========================================================================
   #==== testimonials_mobile_stack ====#  (2025-09-10 04:21:49)
   Empilha os cards de depoimentos (um por linha) e aumenta a largura útil.
   ========================================================================== */
@media (max-width: 768px) {
  /* colunas comuns em seções de depoimentos/testimonials */
  #depoimentos [class*="col-"],
  .depoimentos [class*="col-"],
  .testimonials [class*="col-"],
  .hestia-testimonials [class*="col-"] {
    width: 100% !important;
    max-width: 680px;
    margin: 0 auto 18px;
    box-sizing: border-box;
  }
  #depoimentos .card, .depoimentos .card,
  .testimonials .card, .hestia-testimonials .card {
    width: 92vw;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* ==========================================================================
   #==== mobile_titles_and_testimonials_strict ====#  (2025-09-10 04:36:47)
   - Evita corte de títulos (remove overflow/height fixos) e aplica clamp na fonte.
   - Empilha depoimentos com largura quase total e sem paddings laterais da row.
   ========================================================================== */

@media (max-width: 768px) {
  /* Títulos: nunca cortar, apenas quebrar em espaços e reduzir tamanho com clamp */
  .hestia-blogs .title, .hestia-blogs .title h2,
  section .title, section .title h2,
  .section .title, .section .title h2,
  #blog .title, #blog .title h2,
  #imprensa .title, #imprensa .title h2,
  #eventos .title, #eventos .title h2,
  #depoimentos .title, #depoimentos .title h2 {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
    hyphens: manual;
  }

  .hestia-blogs .title h2,
  section .title h2,
  .section .title h2,
  #blog .title h2,
  #imprensa .title h2,
  #eventos .title h2,
  #depoimentos .title h2 {
    font-size: clamp(22px, 6vw, 34px) !important;
    line-height: 1.15 !important;
    letter-spacing: normal !important;
    margin: 0 0 12px;
    padding: 0 8px;
    text-align: center;
  }

  /* Depoimentos: colunas e cards ocupam quase toda a largura */
  #depoimentos .row,
  .depoimentos .row,
  .testimonials .row,
  .hestia-testimonials .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #depoimentos [class*="col-"],
  .depoimentos [class*="col-"],
  .testimonials [class*="col-"],
  .hestia-testimonials [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #depoimentos .card, .depoimentos .card,
  .testimonials .card, .hestia-testimonials .card {
    width: 94vw;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
}



/* ==========================================================================
   #==== about_nossa_historia | alinhamento desktop ====#
   Centraliza o card dentro do container do Hestia e equilibra paddings.
   ========================================================================== */
section#about.hestia-about .container{
  display: flex;
  justify-content: center;   /* centraliza o conteúdo real */
}

section#about.hestia-about .container > .nossa-historia-box{
  width: 100%;
  max-width: 1180px;          /* ajuste fino: 1140–1220px conforme preferência */
  margin: 40px auto;
  padding: 32px 28px;         /* padding homogêneo no card */
}

/* colunas com padding simétrico no desktop */
.nossa-historia-texto,
.nossa-historia-imagem{
  padding: 0 16px;            /* antes era 30/0 e 0/30; agora equilibrado */
}

/* proporção texto/imagem confortável */
.nossa-historia-texto{
  flex: 1 1 58%;
  min-width: 380px;
}
.nossa-historia-imagem{
  flex: 1 1 42%;
  max-width: 520px;
}

/* ===== responsivo herdado + ajustes ===== */
@media (max-width: 1100px){
  section#about.hestia-about .container > .nossa-historia-box{
    max-width: 98vw;
    padding: 24px 16px;
  }
}
@media (max-width: 800px){
  section#about.hestia-about .container{
    display: block;           /* evita qualquer “empurra-empurra” do flex */
  }
  section#about.hestia-about .container > .nossa-historia-box{
    width: min(95vw, 680px);
    padding: 16px 4vw;
  }
  .nossa-historia-texto,
  .nossa-historia-imagem{
    padding: 0;
  }
}
