
/* Fundo da Logo no Header */
a.brand,
a.brand:hover,
a.brand:focus,
a.brand:active {
    background-color: #0a3d62 !important;
    display: inline-block; /* Garante que o fundo preencha toda a área do link */

/* Página Sobre Nós C2 PRIME: escopo limitado ao conteúdo institucional */
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) h1 {
  color: #c6a04c !important;
  font-family: Georgia, serif;
  letter-spacing: .02em;
  margin: 38px 0 28px;
}
html body #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(3) { display:block !important; visibility:visible !important; opacity:1 !important; } !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) .row.dinamic-module:has(ul.pageGalery:not(:has(li))) {
  position: relative;
  display: block;
  min-height: 420px;
  margin: 0 0 36px;
  overflow: hidden;
  border-radius: 3px;
  background: #103653 url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=85') center 54% / cover no-repeat;
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) .row.dinamic-module:has(ul.pageGalery:not(:has(li))) .lSSlideOuter { display: none !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) .row.dinamic-module:has(ul.pageGalery:not(:has(li)))::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,31,49,.88) 0%, rgba(7,31,49,.58) 48%, rgba(7,31,49,.08) 100%);
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) .row.dinamic-module:has(ul.pageGalery:not(:has(li)))::after {
  content: 'C2 PRIME IMÓVEIS & ASSESSORIA\\A Mais do que imóveis, construímos\\A relações de confiança.';
  white-space: pre-line;
  position: absolute;
  z-index: 1;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 62%;
  color: #fff;
  font: 500 clamp(28px, 3.6vw, 48px)/1.25 Georgia, serif;
  border-left: 3px solid #c6a04c;
  padding: 12px 0 12px 24px;
  text-shadow: 0 2px 18px rgba(0,0,0,.2);
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 0;
  align-items: stretch;
  color: #344553;
  font-size: 15px;
  line-height: 1.8;
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > * { grid-column: 1 / -1; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(2),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(4),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(6),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(8),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(10),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(12),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(14),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(16),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(18),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(20),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(22),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(25),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(28),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(30),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(37) { display: none !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:first-child { display: none !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(3),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(5),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(7),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(9),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(11),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(13) { max-width: 900px; margin: 0 auto 18px; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(2) {
  text-align: center;
  color: #103653;
  font: 500 30px/1.25 Georgia, serif;
  margin: 36px 0 18px;
  padding-top: 20px;
  border-top: 1px solid #e6e5df;
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0 auto 24px;
  padding: 22px;
  background: #f5f6f4;
  border-top: 2px solid #c6a04c;
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > ul li {
  background: #fff;
  border: 1px solid #e6e5df;
  border-radius: 24px;
  padding: 8px 15px;
  color: #103653;
  font-size: 14px;
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(3) {
  grid-row: 21;
  text-align: center;
  color: #103653;
  font: 500 32px/1.2 Georgia, serif;
  margin: 34px 0 22px;
  padding-top: 26px;
  border-top: 1px solid #e6e5df;
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(3) {
  grid-row: 23;
  margin: 0;
  padding: 24px 22px 9px;
  background: #103653;
  border: 1px solid #e6e5df;
  border-top: 3px solid #c6a04c;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  color: #e4c77c;
  font: 500 22px/1.25 Georgia, serif;
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) { grid-column: 1; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) { grid-column: 2; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(3) { grid-column: 3; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) + p,
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) + p {
  grid-row: 24 / 30;
  margin: 0;
  padding: 10px 22px 24px;
  align-self: stretch;
  background: #fff;
  border: 1px solid #e6e5df;
  border-top: 0;
  border-radius: 0 0 5px 5px;
  color: #586671;
  font-size: 14px;
  line-height: 1.75;
  box-shadow: 0 12px 30px rgba(16,54,83,.06);
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) + p { grid-column: 1; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) + p { grid-column: 2; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(31),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(32),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(33),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(34),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(35),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(36) {
  grid-column: 3;
  margin: 0;
  padding: 10px 16px;
  background: #fff;
  border-left: 1px solid #e6e5df;
  border-right: 1px solid #e6e5df;
  color: #586671;
  font-size: 12px;
  line-height: 1.55;
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(31) { grid-row: 24; padding-top: 18px; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(32) { grid-row: 25; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(33) { grid-row: 26; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(34) { grid-row: 27; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(35) { grid-row: 28; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(36) { grid-row: 29; padding-bottom: 18px; border-bottom: 1px solid #e6e5df; border-radius: 0 0 5px 5px; box-shadow: 0 12px 30px rgba(16,54,83,.06); }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(31) strong,
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(32) strong,
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(33) strong,
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(34) strong,
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(35) strong,
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(36) strong { color: #103653; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(38),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(39) {
  grid-column: 1 / -1;
  margin: 0;
  padding: 4px 24px;
  background: #103653;
  color: #fff;
  text-align: center;
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(38) { grid-row: 31; padding-top: 28px; margin-top: 34px; border-radius: 4px 4px 0 0; color: #e4c77c; font-weight: 700; font-size: 18px; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(39) { grid-row: 32; padding-bottom: 28px; border-radius: 0 0 4px 4px; font: italic 17px Georgia, serif; }
@media (max-width: 850px) {
  #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) .row.dinamic-module:has(ul.pageGalery:not(:has(li))) { min-height: 300px; }
  #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) .row.dinamic-module:has(ul.pageGalery:not(:has(li)))::after { max-width: 88%; font-size: clamp(25px, 6vw, 38px); left: 6%; }
  #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 { display: block !important; }
  #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1),
  #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2),
  #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(3) { margin-top: 18px; }
  #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) + p,
  #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) + p { min-height: 0; }
}

/* Correções finais do hero e da legibilidade dos cards */
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) > .row.dinamic-module {
  position: relative !important;
  display: block !important;
  height: auto !important;
  min-height: 420px !important;
  margin: 0 0 36px !important;
  overflow: hidden !important;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(7,31,49,.88) 0%, rgba(7,31,49,.58) 48%, rgba(7,31,49,.08) 100%), url('https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=1800&q=85') center 54% / cover no-repeat !important;
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) > .row.dinamic-module > .lSSlideOuter { display: none !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) > .row.dinamic-module::after {
  content: 'C2 PRIME IMÓVEIS & ASSESSORIA — Mais do que imóveis, construímos relações de confiança.';
  position: absolute;
  z-index: 2;
  left: 7%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 62%;
  color: #fff;
  font: 500 clamp(28px, 3.6vw, 48px)/1.25 Georgia, serif;
  border-left: 3px solid #c6a04c;
  padding: 12px 0 12px 24px;
  text-shadow: 0 2px 18px rgba(0,0,0,.2);
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:last-child { width: 100% !important; margin-left: 0 !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) + p,
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) + p,
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(31),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(32),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(33),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(34),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(35),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(36) { text-align: left !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(31),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(32),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(33),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(34),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(35),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(36) { font-size: 13px; }
@media (max-width: 850px) {
  #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) > .row.dinamic-module { min-height: 300px !important; }
  #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) > .row.dinamic-module::after { max-width: 88%; font-size: clamp(25px, 6vw, 38px); left: 6%; }
}
/* Hero: título curto sobre a foto; frase institucional logo abaixo */
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) > .row.dinamic-module::after {
  content: 'C2 PRIME IMÓVEIS & ASSESSORIA';
  max-width: 88%;
  font-size: clamp(27px, 3vw, 40px);
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:first-child {
  display: block !important;
  max-width: 900px;
  margin: 0 auto 18px;
  padding: 4px 0 0;
  border: 0;
  color: #103653;
  text-align: center;
  font: 500 clamp(22px, 2.5vw, 30px)/1.35 Georgia, serif;
}
@media (max-width: 850px) {
  #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) > .row.dinamic-module::after { max-width: 90%; font-size: clamp(26px, 6vw, 36px); }
}
/* Evita que o título do hero fique espaçado pelo alinhamento global. */
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) > .row.dinamic-module::after { text-align: left !important; letter-spacing: 0 !important; }

/* Ajustes solicitados para a página Sobre nós */
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(2) > .row.dinamic-module { display: none !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(2),
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(2) + * { display: none !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) h3 { text-align: center !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3))::after {
  background: #f7f5ef !important; color: #103653 !important;
  border: 1px solid #e6ddc6 !important; border-left: 5px solid #c39422 !important;
  border-radius: 10px !important; box-shadow: 0 12px 30px rgba(16,54,83,.08) !important;
  text-align: center !important; padding: 28px 32px !important; margin-top: 30px !important;
}

/* A foto e o título foram removidos da composição. */
#dinamic .row.dinamic-module:has(.pageGalery), #dinamic > h2 { display: none !important; }
/* Mantém missão, visão e valores visíveis e retira provisoriamente só serviços. */
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(2),
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(2) + p,
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(2) + p + ul,
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(2) + p + ul + p { display: none !important; }
/* Fechamento leve e elegante ao fim dos cards. */
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(38) {
  background: #f7f5ef !important; color: #103653 !important;
  border: 1px solid #e6ddc6 !important; border-bottom: 0 !important;
  border-radius: 10px 10px 0 0 !important; padding: 22px 24px 5px !important;
  margin: 32px 0 0 !important; text-align: center !important;
  font-size: 19px !important; font-weight: 700 !important;
}
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(39) {
  background: #f7f5ef !important; color: #526474 !important;
  border: 1px solid #e6ddc6 !important; border-top: 0 !important;
  border-radius: 0 0 10px 10px !important; padding: 0 24px 22px !important;
  margin: 0 0 34px !important; text-align: center !important;
  font: italic 17px/1.55 Georgia, serif !important;
}

/* Remove o resíduo visual vazio que aparecia após o fechamento. */
#dinamic .row.dinamic-module:has(h3:nth-of-type(3))::after { content: none !important; display: none !important; }

/* Reorganização aprovada: Missão e Visão lado a lado; Valores em três colunas. */
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 {
  display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  grid-auto-rows: min-content !important; column-gap: 14px !important; row-gap: 0 !important;
  align-items: stretch !important;
}
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2,
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(-n+16) { grid-column: 1 / -1 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(3) { grid-row: 21 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) { grid-column: 1 / 4 !important; grid-row: 23 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) { grid-column: 4 / 7 !important; grid-row: 23 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(24) { grid-column: 1 / 4 !important; grid-row: 24 !important; height: auto !important; min-height: 0 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(27) { grid-column: 4 / 7 !important; grid-row: 24 !important; height: auto !important; min-height: 0 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(3) { grid-column: 1 / -1 !important; grid-row: 25 !important; text-align: center !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(31) { grid-column: 1 / 3 !important; grid-row: 26 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(32) { grid-column: 3 / 5 !important; grid-row: 26 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(33) { grid-column: 5 / 7 !important; grid-row: 26 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(34) { grid-column: 1 / 3 !important; grid-row: 27 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(35) { grid-column: 3 / 5 !important; grid-row: 27 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(36) { grid-column: 5 / 7 !important; grid-row: 27 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(n+31):nth-child(-n+36) {
  height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 17px 18px !important;
  background: #fff !important; border: 1px solid #e5e5e5 !important; border-left: 3px solid #c39422 !important;
  border-radius: 4px !important; align-self: stretch !important; text-align: left !important;
}
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(38) { grid-row: 29 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(39) { grid-row: 30 !important; }
@media (max-width: 850px) {
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; column-gap: 12px !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) { grid-column: 1 / 3 !important; grid-row: 23 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) { grid-column: 3 / 5 !important; grid-row: 23 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(24) { grid-column: 1 / 3 !important; grid-row: 24 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(27) { grid-column: 3 / 5 !important; grid-row: 24 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(31) { grid-column: 1 / 3 !important; grid-row: 26 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(32) { grid-column: 3 / 5 !important; grid-row: 26 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(33) { grid-column: 1 / 3 !important; grid-row: 27 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(34) { grid-column: 3 / 5 !important; grid-row: 27 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(35) { grid-column: 1 / 3 !important; grid-row: 28 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(36) { grid-column: 3 / 5 !important; grid-row: 28 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(38) { grid-row: 30 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(39) { grid-row: 31 !important; }
}
@media (max-width: 560px) {
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 { grid-template-columns: minmax(0, 1fr) !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) { grid-column: 1 !important; grid-row: 23 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(24) { grid-column: 1 !important; grid-row: 24 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) { grid-column: 1 !important; grid-row: 25 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(27) { grid-column: 1 !important; grid-row: 26 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(3) { grid-column: 1 !important; grid-row: 27 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(31) { grid-column: 1 !important; grid-row: 28 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(32) { grid-column: 1 !important; grid-row: 29 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(33) { grid-column: 1 !important; grid-row: 30 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(34) { grid-column: 1 !important; grid-row: 31 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(35) { grid-column: 1 !important; grid-row: 32 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(36) { grid-column: 1 !important; grid-row: 33 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(38) { grid-row: 35 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(39) { grid-row: 36 !important; }
}

/* Dá o mesmo respiro visual da prévia entre cards e itens. */
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 { column-gap: 24px !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(24),
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(27) { margin-bottom: 22px !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(n+31):nth-child(-n+36) {
  margin: 14px 0 !important; padding: 17px 20px !important; line-height: 1.6 !important;
}
@media (max-width: 850px) {
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 { column-gap: 18px !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(24),
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(27) { margin-bottom: 18px !important; }
}
@media (max-width: 560px) {
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 { column-gap: 0 !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(24),
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(27) { margin-bottom: 18px !important; }
  #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-child(n+31):nth-child(-n+36) { margin: 7px 0 !important; padding: 15px 17px !important; }
}

/* O template mobile usa #pagina-dinamica e .dinamic-module (sem o wrapper #dinamic). */
@media (max-width: 850px) {
  #pagina-dinamica > h2,
  #pagina-dinamica .dinamic-module:has(.pageGalery) { display: none !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) {
    display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: min-content !important; column-gap: 18px !important; row-gap: 0 !important;
    align-items: stretch !important;
  }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h2,
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(-n+16) { grid-column: 1 / -1 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(2),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(4),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(6),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(8),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(10),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(12),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(14),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(16),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h2:nth-of-type(2),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h2:nth-of-type(2) + p,
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h2:nth-of-type(2) + p + ul,
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h2:nth-of-type(2) + p + ul + p,
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(25),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(28),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(30),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(37) { display: none !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h2:nth-of-type(3) { grid-column: 1 / -1 !important; grid-row: 21 !important; text-align: center !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h3 {
    display: block !important; background: #183c5a !important; color: #e2c477 !important;
    border-top: 3px solid #c39422 !important; border-radius: 4px 4px 0 0 !important;
    padding: 16px 14px 12px !important; margin: 0 !important; text-align: center !important;
    font: 500 20px/1.3 Georgia, serif !important; height: auto !important;
  }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h3:nth-of-type(1) { grid-column: 1 / 3 !important; grid-row: 23 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h3:nth-of-type(2) { grid-column: 3 / 5 !important; grid-row: 23 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(24) { grid-column: 1 / 3 !important; grid-row: 24 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(27) { grid-column: 3 / 5 !important; grid-row: 24 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h3:nth-of-type(3) { grid-column: 1 / -1 !important; grid-row: 25 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(31) { grid-column: 1 / 3 !important; grid-row: 26 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(32) { grid-column: 3 / 5 !important; grid-row: 26 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(33) { grid-column: 1 / 3 !important; grid-row: 27 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(34) { grid-column: 3 / 5 !important; grid-row: 27 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(35) { grid-column: 1 / 3 !important; grid-row: 28 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(36) { grid-column: 3 / 5 !important; grid-row: 28 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(n+31):nth-child(-n+36) {
    background: #fff !important; color: #586671 !important; border: 1px solid #e5e5e5 !important;
    border-left: 3px solid #c39422 !important; border-radius: 4px !important;
    padding: 15px 16px !important; margin: 8px 0 !important; font-size: 14px !important;
    line-height: 1.55 !important; height: auto !important; min-height: 0 !important; text-align: left !important;
  }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(24),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(27) {
    background: #fff !important; color: #586671 !important; border: 1px solid #e5e5e5 !important;
    border-top: 0 !important; border-radius: 0 0 4px 4px !important;
    padding: 16px 18px !important; margin: 0 0 18px !important; font-size: 14px !important;
    line-height: 1.65 !important; height: auto !important; min-height: 0 !important; text-align: left !important;
  }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(38),
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(39) {
    grid-column: 1 / -1 !important; background: #f7f5ef !important; text-align: center !important;
    border-left: 1px solid #e6ddc6 !important; border-right: 1px solid #e6ddc6 !important;
  }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(38) { grid-row: 30 !important; border-top: 1px solid #e6ddc6 !important; border-bottom: 0 !important; border-radius: 10px 10px 0 0 !important; padding: 20px 18px 4px !important; margin: 25px 0 0 !important; color: #103653 !important; font-weight: 700 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(39) { grid-row: 31 !important; border-bottom: 1px solid #e6ddc6 !important; border-top: 0 !important; border-radius: 0 0 10px 10px !important; padding: 0 18px 20px !important; margin: 0 0 25px !important; color: #526474 !important; font: italic 16px/1.5 Georgia, serif !important; }
}
@media (max-width: 560px) {
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) { grid-template-columns: minmax(0, 1fr) !important; column-gap: 0 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h3:nth-of-type(1) { grid-column: 1 !important; grid-row: 23 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h3:nth-of-type(2) { grid-column: 1 !important; grid-row: 25 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(27) { grid-column: 1 !important; grid-row: 26 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h3:nth-of-type(3) { grid-column: 1 !important; grid-row: 27 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(31) { grid-column: 1 !important; grid-row: 28 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(32) { grid-column: 1 !important; grid-row: 29 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(33) { grid-column: 1 !important; grid-row: 30 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(34) { grid-column: 1 !important; grid-row: 31 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(35) { grid-column: 1 !important; grid-row: 32 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(36) { grid-column: 1 !important; grid-row: 33 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(38) { grid-row: 35 !important; }
  #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-child(39) { grid-row: 36 !important; }
}


/* Correção robusta dos cards Sobre nós */
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12,
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 { grid-auto-flow: row !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(2),
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(2) { grid-column: 1 / -1 !important; grid-row: auto !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1),
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) + p,
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1),
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) + p { grid-column: 1 / 4 !important; grid-row: auto !important; width: auto !important; min-width: 0 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2),
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) + p,
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2),
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) + p { grid-column: 4 / 7 !important; grid-row: auto !important; width: auto !important; min-width: 0 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(3),
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(3) { grid-column: 1 / -1 !important; grid-row: auto !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:has(strong),
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:has(strong) { display: block !important; grid-column: span 2 !important; grid-row: auto !important; width: auto !important; min-width: 0 !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(2) + p,
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) + p + p,
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) + p + p,
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(3) + p,
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(2) + p,
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) + p + p,
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) + p + p,
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(3) + p,
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-last-child(3),
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-last-child(3) { display: none !important; }
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-last-child(2),
#dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:last-child,
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-last-child(2),
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:last-child { display: block !important; grid-column: 1 / -1 !important; grid-row: auto !important; width: auto !important; }
@media (max-width: 767px) {
 #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12, #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 { grid-template-columns: minmax(0,1fr) !important; }
 #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3, #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3 + p, #dinamic .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:has(strong), #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3, #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3 + p, #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:has(strong) { grid-column: 1 !important; }
}

/* TESTE-LOCAL-APPEND */

/* Ajuste final responsivo: preserva a ordem mesmo quando o texto muda */
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) > .row > div:nth-child(n+2):not(:has(h1,h2,h3,p,ul li,img,video,iframe)) { display:none !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) h1 { margin:30px 0 14px !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 { grid-auto-flow:row !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(3) { grid-column:1/-1 !important; grid-row:auto !important; margin:22px 0 18px !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3,
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3 + p { grid-column:1/-1 !important; grid-row:auto !important; width:auto !important; min-width:0 !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:has(strong):nth-child(n) { display:block !important; grid-column:span 2 !important; grid-row:auto !important; width:auto !important; min-width:0 !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h2:nth-of-type(3) + p,
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) + p + p,
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) + p + p,
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(3) + p,
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-last-child(3) { display:none !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:has(strong):nth-child(n) { display:block !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-last-child(2),
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:last-child { display:block !important; grid-column:1/-1 !important; grid-row:auto !important; width:auto !important; }
@media(max-width:767px) {
 #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 { grid-template-columns:minmax(0,1fr) !important; }
 #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3,
 #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3 + p,
 #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:has(strong):nth-child(n) { grid-column:1 !important; }
}

/* Acabamento uniforme dos valores e do painel final */
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:has(strong):nth-child(n),
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:has(strong):nth-child(n) {
 display:block !important; grid-row:auto !important; grid-column:span 2 !important; width:auto !important; min-width:0 !important;
 margin:14px 0 !important; padding:18px 18px !important; min-height:88px; box-sizing:border-box;
 background:#fff !important; border:1px solid #e6ddc6 !important; border-left:3px solid #c6a04c !important;
 border-radius:4px !important; box-shadow:0 8px 22px rgba(16,54,83,.06); text-align:left !important; line-height:1.55 !important;
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:nth-last-child(2),
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-last-child(2) {
 display:block !important; grid-column:1/-1 !important; grid-row:auto !important; margin:28px 0 0 !important; padding:20px 18px 6px !important;
 background:#f7f5ef !important; border:1px solid #e6ddc6 !important; border-bottom:0 !important; border-radius:10px 10px 0 0 !important;
 color:#103653 !important; text-align:center !important; font-weight:700 !important; width:auto !important;
}
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > p:last-child,
#pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:last-child {
 display:block !important; grid-column:1/-1 !important; grid-row:auto !important; margin:0 0 26px !important; padding:0 18px 20px !important;
 background:#f7f5ef !important; border:1px solid #e6ddc6 !important; border-top:0 !important; border-radius:0 0 10px 10px !important;
 color:#526474 !important; text-align:center !important; font:italic 16px/1.5 Georgia,serif !important; width:auto !important;
}
@media(max-width:767px) {
 #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) { grid-template-columns:minmax(0,1fr) !important; }
 #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h2,
 #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h3,
 #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h3 + p,
 #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:has(strong):nth-child(n),
 #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:nth-last-child(2),
 #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > p:last-child { grid-column:1 !important; grid-row:auto !important; }
 #pagina-dinamica > h1 { margin:24px 0 14px !important; }
}

/* Desktop: missão e visão em duas colunas; mobile mantém sequência vertical */
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) { grid-column:1 / 4 !important; grid-row:10 !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) { grid-column:4 / 7 !important; grid-row:10 !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(1) + p { grid-column:1 / 4 !important; grid-row:11 !important; }
#dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module:has(h3:nth-of-type(3)) > .col-xs-12 > h3:nth-of-type(2) + p { grid-column:4 / 7 !important; grid-row:11 !important; }
@media(max-width:767px) {
 #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h3:nth-of-type(1),
 #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h3:nth-of-type(2),
 #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h3:nth-of-type(1) + p,
 #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) > h3:nth-of-type(2) + p { grid-column:1 !important; grid-row:auto !important; }
}



/* C2 PRIME | Serviços: estilos exclusivos, sem interferir em Sobre nós */
#dinamic:has(h4) > .row > div:nth-child(3) { display:block !important; visibility:visible !important; opacity:1 !important; height:auto !important; max-height:none !important; overflow:visible !important; }
#dinamic:has(h4) .row.dinamic-module { display:block !important; visibility:visible !important; opacity:1 !important; height:auto !important; max-height:none !important; overflow:visible !important; max-width:1100px; margin:0 auto 40px; padding:0 24px 40px; color:#344553; font:15px/1.75 Arial,sans-serif; }
#dinamic:has(h4) h1 { color:#c6a04c !important; font:500 38px/1.2 Georgia,serif !important; margin:38px 0 24px !important; }
#dinamic:has(h4) h2 { display:block !important; color:#103653 !important; text-align:center !important; font:500 30px/1.25 Georgia,serif !important; margin:34px auto 18px !important; padding-top:18px !important; border-top:1px solid #e6e5df !important; }
#dinamic:has(h4) h4 { display:block !important; color:#e4c77c !important; background:#103653 !important; border:1px solid #e6e5df !important; border-top:3px solid #c6a04c !important; border-radius:4px 4px 0 0 !important; padding:16px 20px !important; margin:24px auto 0 !important; font:500 21px/1.3 Georgia,serif !important; }
#dinamic:has(h4) p { display:block !important; max-width:900px !important; margin:0 auto 14px !important; padding:10px 20px 18px !important; color:#586671 !important; line-height:1.75 !important; }
#dinamic:has(h4) h4 + p { border:1px solid #e6e5df !important; border-top:0 !important; border-radius:0 0 4px 4px !important; background:#fff !important; box-shadow:0 8px 22px rgba(16,54,83,.05) !important; max-width:none !important; }
@media(max-width:767px) { #dinamic:has(h4) .row.dinamic-module { padding-left:16px !important; padding-right:16px !important; } #dinamic:has(h4) h1 { margin:24px 0 14px !important; } #dinamic:has(h4) h4 { font-size:19px !important; padding:14px 16px !important; } #dinamic:has(h4) p { padding-left:16px !important; padding-right:16px !important; } }

/* Serviços: reexibe somente o módulo com títulos H4 */
#dinamic:has(h4) .row.dinamic-module:has(h4), #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 { display:block !important; visibility:visible !important; opacity:1 !important; height:auto !important; max-height:none !important; overflow:visible !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) * { visibility:visible !important; opacity:1 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2, #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4, #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p { display:block !important; }

/* Serviços: grade dos seis cartões e painéis finais */
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; column-gap:18px !important; row-gap:0 !important; align-items:stretch !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:empty, #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:has(> br:only-child) { display:none !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2 { grid-column:1/-1 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(1), #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(4) { grid-column:1 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(2), #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(5) { grid-column:2 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(3), #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(6) { grid-column:3 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(-n+3) { grid-row:2 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(n+4) { grid-row:4 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(1) + p, #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(4) + p { grid-column:1 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(2) + p, #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(5) + p { grid-column:2 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(3) + p, #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(6) + p { grid-column:3 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(-n+3) + p { grid-row:3 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(n+4) + p { grid-row:5 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:nth-of-type(2) { margin-top:38px !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:last-of-type { margin-top:38px !important; }
@media(max-width:767px){#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 {grid-template-columns:minmax(0,1fr) !important;} #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4,#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 + p{grid-column:1 !important;grid-row:auto !important;}}

/* Serviços: usar largura total e alinhar textos à esquerda */
#dinamic:has(h4) > .row { display:block !important; }
#dinamic:has(h4) > .row > div { width:100% !important; max-width:1100px !important; margin-left:auto !important; margin-right:auto !important; float:none !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 { width:100% !important; max-width:none !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4, #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p { text-align:left !important; }

/* Serviços: manter os textos institucionais em largura integral */
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:nth-of-type(2) ~ p { grid-column:1/-1 !important; max-width:900px !important; margin-left:auto !important; margin-right:auto !important; text-align:center !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:last-of-type { display:none !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:last-of-type ~ p { grid-column:1/-1 !important; width:100% !important; max-width:900px !important; margin:0 auto !important; padding:14px 24px !important; text-align:center !important; background:#f7f5ef !important; color:#526474 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:last-of-type ~ p:first-of-type { margin-top:28px !important; padding-top:26px !important; border:1px solid #e6ddc6 !important; border-bottom:0 !important; border-radius:8px 8px 0 0 !important; color:#103653 !important; font:500 22px/1.4 Georgia,serif !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:last-of-type ~ p:last-child { padding-bottom:26px !important; border:1px solid #e6ddc6 !important; border-top:0 !important; border-radius:0 0 8px 8px !important; }

/* Serviços: separar a seção institucional das descrições dos cartões */
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:nth-of-type(n+7) { grid-column:1/-1 !important; grid-row:auto !important; display:block !important; max-width:900px !important; width:100% !important; margin-left:auto !important; margin-right:auto !important; text-align:center !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:nth-of-type(n+11) { background:#f7f5ef !important; padding:14px 24px !important; color:#526474 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:nth-of-type(11) { margin-top:24px !important; padding-top:26px !important; border:1px solid #e6ddc6 !important; border-bottom:0 !important; border-radius:8px 8px 0 0 !important; color:#103653 !important; font:500 22px/1.4 Georgia,serif !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:last-child { padding-bottom:26px !important; border:1px solid #e6ddc6 !important; border-top:0 !important; border-radius:0 0 8px 8px !important; }

/* Serviços: remover parágrafos vazios e manter a seção de confiança limpa */
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:has(br) { display:none !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:nth-of-type(2) ~ p { background:transparent !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; padding:10px 0 !important; color:#586671 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:last-of-type ~ p { background:#f7f5ef !important; padding:12px 24px !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:last-of-type ~ p:first-of-type { border:1px solid #e6ddc6 !important; border-bottom:0 !important; border-radius:8px 8px 0 0 !important; padding-top:26px !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:last-of-type ~ p:last-child { border:1px solid #e6ddc6 !important; border-top:0 !important; border-radius:0 0 8px 8px !important; padding-bottom:26px !important; }

/* C2 PRIME | refinamento isolado de Serviços */
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 { display:block !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 { min-height:88px !important; display:flex !important; align-items:center !important; text-align:left !important; font:500 20px/1.3 Georgia,serif !important; padding:16px 20px !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 + p { min-height:190px !important; height:100% !important; text-align:left !important; line-height:1.7 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:nth-of-type(2) ~ p { grid-column:1/-1 !important; grid-row:auto !important; display:block !important; background:transparent !important; border:0 !important; border-radius:0 !important; box-shadow:none !important; text-align:justify !important; max-width:900px !important; margin:0 auto 14px !important; padding:8px 0 !important; color:#586671 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:has(strong) { display:block !important; grid-column:1/-1 !important; grid-row:auto !important; background:#f7f5ef !important; border:1px solid #e6ddc6 !important; border-bottom:0 !important; border-radius:8px 8px 0 0 !important; padding:24px 24px 10px !important; margin:28px auto 0 !important; max-width:900px !important; text-align:center !important; color:#103653 !important; font:600 22px/1.4 Georgia,serif !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:has(strong) + p, #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:has(strong) + p + p { display:block !important; grid-column:1/-1 !important; grid-row:auto !important; background:#f7f5ef !important; border:0 !important; padding:10px 24px !important; margin:0 auto !important; max-width:900px !important; text-align:center !important; color:#526474 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:has(strong) + p + p { border:1px solid #e6ddc6 !important; border-top:0 !important; border-radius:0 0 8px 8px !important; padding-bottom:24px !important; }
@media(max-width:767px){#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 + p {min-height:0 !important;height:auto !important;} #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 {min-height:72px !important;font-size:19px !important;}}

/* Serviços | restaura a grade e uniformiza os cartões */
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; grid-auto-rows:min-content !important; column-gap:20px !important; row-gap:0 !important; align-items:stretch !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2 { grid-column:1/-1 !important; grid-row:auto !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(-n+3) { grid-row:2 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(n+4) { grid-row:4 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(1), #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(4) { grid-column:1 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(2), #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(5) { grid-column:2 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(3), #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(6) { grid-column:3 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 + p { min-height:170px !important; height:auto !important; margin:0 0 20px !important; box-sizing:border-box !important; text-align:left !important; line-height:1.65 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(1) + p, #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(4) + p { grid-column:1 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(2) + p, #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(5) + p { grid-column:2 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(3) + p, #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(6) + p { grid-column:3 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(-n+3) + p { grid-row:3 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(n+4) + p { grid-row:5 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:nth-of-type(2) ~ p:nth-of-type(-n+10) { grid-column:1/-1 !important; grid-row:auto !important; max-width:900px !important; min-height:0 !important; height:auto !important; background:transparent !important; border:0 !important; box-shadow:none !important; margin:0 auto 12px !important; padding:8px 0 !important; text-align:justify !important; line-height:1.7 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:nth-last-of-type(3) { grid-column:1/-1 !important; grid-row:auto !important; background:#f7f5ef !important; border:1px solid #e6ddc6 !important; border-bottom:0 !important; border-radius:8px 8px 0 0 !important; max-width:900px !important; margin:28px auto 0 !important; padding:22px 24px 6px !important; text-align:center !important; color:#103653 !important; font:600 22px/1.4 Georgia,serif !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:nth-last-of-type(2), #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:last-of-type { grid-column:1/-1 !important; grid-row:auto !important; background:#f7f5ef !important; border:0 !important; max-width:900px !important; margin:0 auto !important; padding:8px 24px !important; text-align:center !important; color:#526474 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:last-of-type { border:1px solid #e6ddc6 !important; border-top:0 !important; border-radius:0 0 8px 8px !important; padding-bottom:22px !important; margin-bottom:28px !important; }
@media(max-width:767px){ #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 { grid-template-columns:minmax(0,1fr) !important; } #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4, #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 + p { grid-column:1 !important; grid-row:auto !important; } #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 + p { min-height:0 !important; } }
/* Serviços | remove chamadas antigas e fecha apenas com os três textos pedidos */
#dinamic:has(h4) .row.dinamic-module:has(h4) p:nth-last-of-type(5), #dinamic:has(h4) .row.dinamic-module:has(h4) p:nth-last-of-type(4) { display:none !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) p:nth-last-of-type(3) { display:block !important; grid-column:1/-1 !important; grid-row:auto !important; width:100% !important; max-width:900px !important; min-height:0 !important; margin:28px auto 0 !important; padding:22px 24px 8px !important; text-align:center !important; background:#f7f5ef !important; color:#103653 !important; border:1px solid #e6ddc6 !important; border-bottom:0 !important; border-radius:8px 8px 0 0 !important; font:600 22px/1.4 Georgia,serif !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) p:nth-last-of-type(2), #dinamic:has(h4) .row.dinamic-module:has(h4) p:last-of-type { display:block !important; grid-column:1/-1 !important; grid-row:auto !important; width:100% !important; max-width:900px !important; min-height:0 !important; margin:0 auto !important; padding:8px 24px !important; text-align:center !important; background:#f7f5ef !important; color:#526474 !important; border:0 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) p:last-of-type { border:1px solid #e6ddc6 !important; border-top:0 !important; border-radius:0 0 8px 8px !important; padding-bottom:22px !important; margin-bottom:28px !important; }
@media(max-width:767px){#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12{grid-template-columns:minmax(0,1fr)!important;} #dinamic:has(h4) .row.dinamic-module:has(h4) p:nth-last-of-type(3),#dinamic:has(h4) .row.dinamic-module:has(h4) p:nth-last-of-type(2),#dinamic:has(h4) .row.dinamic-module:has(h4) p:last-of-type{grid-column:1!important;}}
/* Serviços | título e texto da seção de confiança */
#dinamic:has(h4) h2:nth-of-type(2) { display:block !important; grid-column:1/-1 !important; grid-row:auto !important; visibility:visible !important; color:#103653 !important; text-align:center !important; font:500 30px/1.25 Georgia,serif !important; margin:36px auto 18px !important; padding-top:20px !important; border-top:1px solid #e6e5df !important; }
#dinamic:has(h4) h2:nth-of-type(2) ~ p { display:block !important; grid-column:1/-1 !important; grid-row:auto !important; max-width:900px !important; min-height:0 !important; height:auto !important; margin:0 auto 14px !important; padding:8px 0 !important; background:transparent !important; border:0 !important; box-shadow:none !important; color:#586671 !important; text-align:justify !important; font:15px/1.7 Arial,sans-serif !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:last-of-type { display:block !important; grid-column:1/-1 !important; grid-row:auto !important; visibility:visible !important; text-align:center !important; color:#103653 !important; font:500 30px/1.25 Georgia,serif !important; margin:36px auto 18px !important; padding-top:20px !important; border-top:1px solid #e6e5df !important; }
/* Serviços | padronização dos seis títulos e da sexta descrição */
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 { text-align:left !important; justify-content:flex-start !important; align-items:center !important; color:#e4c77c !important; background:#103653 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(6) + p { background:#fff !important; color:#586671 !important; border:1px solid #e6e5df !important; border-top:0 !important; box-shadow:0 8px 22px rgba(16,54,83,.05) !important; }
/* Serviços | força alinhamento à esquerda e fundo uniforme no sexto cartão */
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 { display:flex !important; justify-content:flex-start !important; text-align:left !important; padding-left:20px !important; }
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(6) + p { background-color:#ffffff !important; color:#586671 !important; border-color:#e6e5df !important; }
/* Serviços | cabeçalho ocupa toda a largura com título à esquerda */
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 { width:100% !important; max-width:100% !important; box-sizing:border-box !important; margin-left:0 !important; margin-right:0 !important; text-align:left !important; justify-content:flex-start !important; }
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(6) + p { background:#fff !important; background-color:#fff !important; }

/* Serviços: grade corrigida dos seis cards, isolada da página Sobre nós */
@media (min-width: 768px) {
  #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4,
  #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 + p { width: 100% !important; min-width: 0 !important; max-width: none !important; box-sizing: border-box !important; margin-left: 0 !important; margin-right: 0 !important; }
  #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 { text-align: left !important; justify-content: flex-start !important; padding: 20px 24px !important; }
}
@media (max-width: 767px) {
  #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 { grid-template-columns: minmax(0, 1fr) !important; }
  #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4,
  #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 + p { grid-column: 1 !important; width: 100% !important; min-width: 0 !important; max-width: none !important; box-sizing: border-box !important; }
  #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 { text-align: left !important; justify-content: flex-start !important; padding: 16px 20px !important; }
}
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 + p { background: #fff !important; color: #586671 !important; border: 1px solid #e6e5df !important; border-top: 0 !important; }
#dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(6) + p { background: #fff !important; background-color: #fff !important; color: #586671 !important; }


/* Serviços: prevalece sobre as regras antigas de posicionamento */
@media (max-width: 767px) {
 html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 { grid-template-columns: minmax(0,1fr) !important; }
 html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4,
 html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 + p { grid-column: 1 !important; justify-self: stretch !important; width: 100% !important; min-width: 0 !important; max-width: none !important; box-sizing: border-box !important; margin-left: 0 !important; margin-right: 0 !important; }
}
@media (min-width: 768px) {
 html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 { grid-template-columns: repeat(3,minmax(0,1fr)) !important; }
 html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4,
 html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 + p { justify-self: stretch !important; width: 100% !important; min-width: 0 !important; max-width: none !important; box-sizing: border-box !important; margin-left: 0 !important; margin-right: 0 !important; }
}
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 { text-align: left !important; justify-content: flex-start !important; }
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4 + p,
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(6) + p { background: #fff !important; background-color: #fff !important; color: #586671 !important; border-color: #e6e5df !important; }


/* Serviços: remove as colunas fixas antigas de cada título no celular */
@media (max-width: 767px) {
 html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(1), html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(2), html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(3), html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(4), html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(5), html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(6),
 html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(1) + p, html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(2) + p, html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(3) + p, html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(4) + p, html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(5) + p, html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h4:nth-of-type(6) + p { grid-area: auto / 1 / auto / 2 !important; grid-column: 1 / 2 !important; justify-self: stretch !important; width: 100% !important; }
}


/* Serviços: seção de confiança no estilo editorial de Sobre nós */
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:nth-of-type(2) { display: block !important; grid-column: 1 / -1 !important; text-align: center !important; color: #103653 !important; font: 500 clamp(28px, 3.2vw, 58px)/1.2 Georgia, serif !important; margin: 44px auto 28px !important; padding: 0 !important; border: 0 !important; }
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:nth-of-type(2) ~ p:not(:nth-last-of-type(-n+3)) { display: block !important; grid-column: 1 / -1 !important; width: min(100%, 1200px) !important; max-width: 1200px !important; margin: 0 auto 20px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; color: #3e4e5e !important; font: 400 clamp(16px, 1.6vw, 30px)/1.55 Arial, sans-serif !important; text-align: justify !important; }
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:has(+ h4), html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:first-of-type + p { display: none !important; }
@media (max-width: 767px) { html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:nth-of-type(2) { margin: 36px auto 22px !important; font-size: 28px !important; } }


/* Serviços: painel claro do fechamento com três linhas */
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:nth-last-of-type(-n+3) { grid-column: 1 / -1 !important; width: min(100%, 1000px) !important; max-width: 1000px !important; margin: 0 auto !important; padding: 12px 24px !important; background: #f7f5ef !important; color: #526474 !important; text-align: center !important; border-left: 1px solid #e6ddc6 !important; border-right: 1px solid #e6ddc6 !important; }
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:nth-last-of-type(3) { margin-top: 28px !important; padding-top: 26px !important; border-top: 1px solid #e6ddc6 !important; border-radius: 8px 8px 0 0 !important; color: #103653 !important; font-weight: 600 !important; }
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:last-of-type { padding-bottom: 26px !important; border-bottom: 1px solid #e6ddc6 !important; border-radius: 0 0 8px 8px !important; }


/* Serviços: oculta espaçadores vazios que herdavam a cor do painel final */
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:nth-of-type(7), html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:nth-of-type(9), html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:nth-of-type(11), html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:nth-of-type(13) { display: none !important; }


/* Serviços: título de confiança no mesmo tamanho e fonte de Sobre nós */
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:nth-of-type(2) { font: 500 22px/1.35 Georgia, serif !important; }


/* Serviços: texto de confiança igual ao corpo de Sobre nós */
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:nth-of-type(2) ~ p:not(:nth-last-of-type(-n+3)) { font: 400 15px/21px Montserrat, 'Open Sans', Calibri, sans-serif !important; color: #344553 !important; text-align: justify !important; margin: 0 auto 18px !important; }


/* Serviços: reduzir o intervalo entre o título da página e Nossas soluções */
html body #dinamic:has(h4) h1 { margin: 38px 0 10px !important; padding-bottom: 0 !important; }
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > h2:first-of-type { margin: 12px auto 12px !important; padding: 0 !important; }
/* Serviços: fechamento mais compacto */
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:nth-last-of-type(3) { font: 600 18px/24px Georgia, serif !important; margin-top: 18px !important; padding: 16px 24px 4px !important; }
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:nth-last-of-type(2), html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:last-of-type { line-height: 21px !important; padding: 4px 24px !important; margin: 0 auto !important; }
html body #dinamic:has(h4) .row.dinamic-module:has(h4) > .col-xs-12 > p:last-of-type { padding-bottom: 16px !important; }

/* Sobre nós: ajustes apenas na versão desktop; o modelo mobile permanece independente */
@media (min-width: 992px) {
      html body #dinamic:has(h3):not(:has(h4)) .row.dinamic-module:has(h2 + p + h3) > .col-xs-12 > h2:nth-of-type(3) { font-size: 28px !important; line-height: 1.25 !important; }
        html body #dinamic:has(h3):not(:has(h4)) .row.dinamic-module:has(h2 + p + h3) > .col-xs-12 > h3 { font-size: 20px !important; line-height: 1.25 !important; }
          html body #dinamic:has(h3):not(:has(h4)) .row.dinamic-module:has(h2 + p + h3) > .col-xs-12 > h3:nth-of-type(3) { margin-top: 12px !important; }
          }
          
}

/* Mobile: alinhar tipografia e cards de Sobre nós e Serviços sem trocar o modelo */
#pagina-dinamica:has(h3):not(:has(h4)) h1, #pagina-dinamica:has(h4) h1 { font-family: Georgia, serif !important; font-weight: 500 !important; line-height: 1.2 !important; }
#pagina-dinamica:has(h3):not(:has(h4)) .dinamic-module > h2:nth-of-type(3) { font: 500 24px/1.25 Georgia, serif !important; color: #153a58 !important; text-align: center !important; margin: 0 0 14px !important; }
#pagina-dinamica:has(h3):not(:has(h4)) .dinamic-module > h2:nth-of-type(3) + p, #pagina-dinamica:has(h3):not(:has(h4)) .dinamic-module > h3:nth-of-type(-n+2) + p + p:has(+ h3), #pagina-dinamica:has(h3):not(:has(h4)) .dinamic-module > h3:nth-of-type(3) + p:has(+ p strong) { display: none !important; }
#pagina-dinamica:has(h3):not(:has(h4)) .dinamic-module > h3 { font: 500 20px/1.25 Georgia, serif !important; }
#pagina-dinamica:has(h3):not(:has(h4)) .dinamic-module > h3:nth-of-type(-n+2) + p { font: 400 15px/1.45 Montserrat, 'Open Sans', Calibri, sans-serif !important; color: #344553 !important; background: #fff !important; padding: 14px 16px !important; margin: 0 0 12px !important; border: 1px solid #e5e3dc !important; border-radius: 0 0 6px 6px !important; }
#pagina-dinamica:has(h3):not(:has(h4)) .dinamic-module > h3:nth-of-type(3) { margin-top: 12px !important; }
#pagina-dinamica:has(h3):not(:has(h4)) .dinamic-module > h3:nth-of-type(3) ~ p:has(strong) { font: 400 15px/1.45 Montserrat, 'Open Sans', Calibri, sans-serif !important; color: #344553 !important; background: #fff !important; padding: 13px 16px !important; margin: 8px 0 !important; border: 1px solid #e5e3dc !important; border-radius: 6px !important; }
#pagina-dinamica:has(h4) .dinamic-module > p:nth-of-type(1), #pagina-dinamica:has(h4) .dinamic-module > p:nth-of-type(3), #pagina-dinamica:has(h4) .dinamic-module > p:nth-of-type(5), #pagina-dinamica:has(h4) .dinamic-module > p:nth-of-type(7), #pagina-dinamica:has(h4) .dinamic-module > p:nth-of-type(9), #pagina-dinamica:has(h4) .dinamic-module > p:nth-of-type(11), #pagina-dinamica:has(h4) .dinamic-module > p:nth-of-type(13), #pagina-dinamica:has(h4) .dinamic-module > p:nth-of-type(17) { display: none !important; }
#pagina-dinamica:has(h4) .dinamic-module > h2:first-of-type { font: 500 24px/1.25 Georgia, serif !important; color: #153a58 !important; margin: 0 0 14px !important; }
#pagina-dinamica:has(h4) .dinamic-module > h4 { font: 500 20px/1.3 Georgia, serif !important; color: #e2c477 !important; background: #183c5a !important; text-align: center !important; padding: 13px 14px !important; margin: 12px 0 0 !important; border-top: 4px solid #c5a24e !important; border-radius: 6px 6px 0 0 !important; }
#pagina-dinamica:has(h4) .dinamic-module > h4 + p { font: 400 15px/1.45 Montserrat, 'Open Sans', Calibri, sans-serif !important; color: #526272 !important; background: #fff !important; padding: 14px 16px !important; margin: 0 0 14px !important; border: 1px solid #e5e3dc !important; border-top: 0 !important; border-radius: 0 0 6px 6px !important; }
#pagina-dinamica:has(h4) .dinamic-module > h2:nth-of-type(2) { font: 500 22px/1.3 Georgia, serif !important; color: #153a58 !important; margin: 22px 0 12px !important; }
#pagina-dinamica:has(h4) .dinamic-module > h2:nth-of-type(2) ~ p:not(:nth-last-of-type(-n+3)) { font: 400 15px/1.45 Montserrat, 'Open Sans', Calibri, sans-serif !important; color: #344553 !important; text-align: justify !important; margin: 0 0 14px !important; }
#pagina-dinamica:has(h4) .dinamic-module > p:nth-last-of-type(-n+3) { background: #f7f5ef !important; text-align: center !important; margin: 0 !important; }
#pagina-dinamica:has(h4) .dinamic-module > p:nth-last-of-type(3) { font: 600 17px/1.35 Georgia, serif !important; color: #153a58 !important; padding: 18px 16px 4px !important; border-radius: 8px 8px 0 0 !important; }
#pagina-dinamica:has(h4) .dinamic-module > p:nth-last-of-type(2), #pagina-dinamica:has(h4) .dinamic-module > p:last-of-type { font: 400 15px/1.4 Montserrat, 'Open Sans', Calibri, sans-serif !important; color: #344553 !important; padding: 4px 16px !important; }
#pagina-dinamica:has(h4) .dinamic-module > p:last-of-type { padding-bottom: 16px !important; border-radius: 0 0 8px 8px !important; }


/* Mobile: manter a ordem natural do conteúdo e evitar sobras de grid */
#pagina-dinamica:has(h3):not(:has(h4)) .dinamic-module:has(h3), #pagina-dinamica:has(h4) .dinamic-module:has(h4) { display: block !important; }
#pagina-dinamica:has(h3):not(:has(h4)) .dinamic-module > h3:nth-of-type(3) ~ p:has(+ p + p):not(:has(strong)) { display: none !important; }

/* Mobile Sobre nós: neutralizar o posicionamento em grid da seção de valores */
html body #pagina-dinamica .dinamic-module:has(h3:nth-of-type(3)) { display: block !important; }


/* Header: fundo do bloco da marca igual ao azul institucional */

/* Sobre nós: aproximar o título principal do título da página, apenas no desktop */
@media (min-width: 992px) {
      #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) h1::after {
              content: "";
                  display: block;
                      width: min(426px, 80%);
                          height: 1px;
                              margin: 14px auto 0;
                                  background: #e5e2da;
      }
      
        #dinamic:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module {
                position: relative;
                    top: -52px;
                      }
}

        }
      }
      @media (min-width: 992px) {
            #pagina-dinamica:has(.row.dinamic-module h3:nth-of-type(3)) h1::after {
                    content: "";
                        display: block;
                            width: min(426px, 80%);
                                height: 1px;
                                    margin: 14px auto 0;
                                        background: #e5e2da;
            }
              #pagina-dinamica:has(.row.dinamic-module h3:nth-of-type(3)) .row.dinamic-module {
                      position: relative;
                          top: -52px;
                            }
      }
      
              }
            }
            
#imovel_preco .price-grid {
    display: flex !important;
    align-items: flex-start;
    gap: 25px !important;
}

#imovel_preco .imovel_iptu {
    margin-left: 0 !important;
    position: static !important;
    transform: translateX(15px);
}