/* Ajustes WordPress e controles editoriais — edite aqui para mudanças finas. */
html { scroll-behavior: smooth; }
body { margin: 0; }
.mgs-redesign { min-height: 100vh; }
.mgs-redesign .site-container { margin-left: auto; margin-right: auto; }
.mgs-redesign .site-header { pointer-events: none; }
.mgs-redesign .site-header > * { pointer-events: auto; }
.mgs-redesign .site-header .menu-toggle { display: inline-grid; place-items: center; font-size: 22px; }
.mgs-redesign .site-nav .mgs-menu { display: flex; align-items: center; gap: 5px; list-style: none; margin: 0; padding: 0; }
.mgs-redesign .site-nav .mgs-menu a { position: relative; display: inline-block; padding: 12px; font-size: 12px; color: #47544a; text-decoration: none; }
.mgs-redesign .site-nav .mgs-menu a:hover { color: #1e4d35; }
.mgs-redesign .site-header .mobile-nav[hidden] { display: none !important; }
.mgs-redesign .site-header .mobile-nav:not([hidden]) { display: block; }
.mgs-redesign .mobile-nav-link { text-decoration: none; }
.mgs-redesign .hero-cover > picture { display: contents; }
.mgs-redesign .hero-photo { width: 100%; height: 100%; object-fit: cover; }
.mgs-redesign .hero-captions { z-index: 1; }
.mgs-redesign .hero-inner { z-index: 2; }
.mgs-redesign .cta-link { text-decoration: none; }
.mgs-redesign .cta-link .cta-link-icon { font-size: 19px; }
.mgs-redesign .ribbon-item { text-decoration: none; }
.mgs-redesign .secondary-area { background: #fff; border: 1px solid var(--border); }
.mgs-redesign .secondary-area-details summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.mgs-redesign .secondary-area-details summary::marker { content: ''; }
.mgs-redesign .secondary-area-details summary::-webkit-details-marker { display: none; }
.mgs-redesign .mgs-disclosure { border: 1px solid #d7dfd1; border-radius: 5px; overflow: hidden; background: #fff; transition: background-color .3s, border-color .3s; }
.mgs-redesign .mgs-disclosure[open] { border-color: #b6cbb5; background: #edf2e9; }
.mgs-redesign .mgs-disclosure summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer; min-height: 72px; padding: 20px; font-size: 14px; font-weight: 650; line-height: 1.5; }
.mgs-redesign .mgs-disclosure summary::marker { content: ''; }
.mgs-redesign .mgs-disclosure summary::-webkit-details-marker { display: none; }
.mgs-redesign .mgs-disclosure summary > span:nth-last-child(2) { flex: 1; }
.mgs-redesign .mgs-disclosure-index { color: #52765e; font-size: 11px; }
.mgs-redesign .mgs-disclosure-content { padding: 0 20px 24px; color: #58685a; font-size: 14px; line-height: 1.7; }
.mgs-redesign .mgs-disclosure .mgs-chevron { flex: none; font-size: 23px; color: #3c704c; transition: transform .22s; }
.mgs-redesign .mgs-disclosure[open] .mgs-chevron { transform: rotate(45deg); }
.mgs-redesign .mgs-bio-disclosure summary { display: inline-block; cursor: pointer; color: #295c41; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }
.mgs-redesign .mgs-bio-disclosure summary::marker { content: ''; }
.mgs-redesign .mgs-bio-disclosure summary::-webkit-details-marker { display: none; }
.mgs-redesign .team-portrait { aspect-ratio: 4/5; width: 100%; }
.mgs-redesign .team-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; }
.mgs-redesign .mgs-team-member.mgs-paula .team-portrait img { object-position: var(--mgs-paula-x, 50%) var(--mgs-paula-y, 15%); }
.mgs-redesign .mgs-team-member.mgs-bruno .team-portrait img { object-position: var(--mgs-bruno-x, 50%) var(--mgs-bruno-y, 15%); transform: scale(var(--mgs-bruno-scale, 1.16)); transition: transform .6s; }
.mgs-redesign .mgs-team-member.mgs-bruno .team-portrait:hover img { transform: scale(calc(var(--mgs-bruno-scale, 1.16) + .02)); }
.mgs-redesign .mgs-team-member > div:nth-child(2) > p:nth-child(2) { line-height: 1.6; }
/* No Bruno, a fotografia está à direita: a coluna estreita precisa acompanhá-la.
   Assim a biografia ocupa a coluna larga e os dois retratos têm a mesma largura. */
@media (min-width: 768px) {
  .mgs-redesign .team-section .mgs-team-member.mgs-bruno {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
  .mgs-redesign .team-section .mgs-team-member.mgs-bruno > .team-portrait {
    order: 2;
    justify-self: end;
    width: 100%;
  }
  .mgs-redesign .team-section .mgs-team-member.mgs-bruno > div:nth-child(2) {
    order: 1;
    min-width: 0;
  }
}
@media (min-width: 1024px) {
  .mgs-redesign .team-section .mgs-team-member.mgs-bruno {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}
.mgs-redesign .mgs-reviews-section { background: #f7f8f4; }
.mgs-redesign .mgs-reviews-widget { min-height: 100px; }
.mgs-redesign .mgs-developer-credit { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 27px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); color: #b7c8b5; font-size: 11px; }
.mgs-redesign .mgs-developer-credit img { display: block; max-height: 35px; width: auto; max-width: 150px; object-fit: contain; }
.mgs-redesign .mgs-developer-credit a { color: #fff; text-decoration: none; }
.mgs-redesign .mgs-developer-credit strong { color: #e0e9de; }
.mgs-redesign .mgs-simple-content { max-width: 900px; min-height: 70vh; }
.mgs-redesign .mgs-simple-content .entry-content > * + * { margin-top: 1.3rem; }
.admin-bar .mgs-redesign .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mgs-redesign .site-header { top: 46px; } }
@media (max-width: 767px) {
  .mgs-redesign .site-header .menu-toggle { display: inline-grid; }
  .mgs-redesign .hero-photo { height: 315px; top: auto; }
  .mgs-redesign .team-section article:nth-child(2) > .team-portrait { order: 0; }
  .mgs-redesign .team-section article:nth-child(2) > div:nth-child(2) { order: 0; }
  .mgs-redesign .mgs-developer-credit { justify-content: flex-start; }
}


/* MGS 1.0.3 — rodapé refinado, marcas sem fundos e HTML estático/editável. */
.mgs-redesign .footer-brand {
  display: inline-flex;
  align-items: center;
  max-width: min(360px, 100%);
  text-decoration: none;
}
.mgs-redesign .footer-brand-logo {
  display: block;
  width: min(320px, 100%);
  max-height: 112px;
  padding: 0;
  box-sizing: border-box;
  object-fit: contain;
  object-position: left center;
  background: transparent !important;
  border-radius: 0;
  filter: brightness(0) invert(1);
}
.mgs-redesign .footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto) minmax(0, 1fr);
  align-items: center;
  column-gap: 28px;
  row-gap: 18px;
  padding-top: 22px;
  font-size: 11px;
  line-height: 1.6;
}
.mgs-redesign .footer-attorney,
.mgs-redesign .footer-copyright {
  min-width: 0;
  margin: 0;
  color: #c2cec5;
}
.mgs-redesign .footer-attorney { justify-self: start; text-align: left; }
.mgs-redesign .footer-copyright { justify-self: end; text-align: right; }
.mgs-redesign .mgs-developer-credit {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 170px;
  margin: 0;
  padding: 0;
  border: 0;
  color: #e9eee9;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
}
.mgs-redesign .mgs-developer-credit img {
  display: block;
  width: auto;
  max-width: 132px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  filter: none !important;
  background: transparent;
}
.mgs-redesign .mgs-developer-credit a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
@media (min-width: 768px) and (max-width: 1100px) {
  .mgs-redesign .footer-bottom { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mgs-redesign .footer-attorney { grid-column: 1; grid-row: 1; }
  .mgs-redesign .mgs-developer-credit { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .mgs-redesign .footer-copyright { grid-column: 1; grid-row: 2; justify-self: start; text-align: left; }
}
@media (max-width: 767px) {
  .mgs-redesign .footer-top { align-items: flex-start; }
  .mgs-redesign .footer-brand-logo { width: min(290px, 100%); max-height: 102px; }
  .mgs-redesign .footer-bottom { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; padding-top: 22px; text-align: center; }
  .mgs-redesign .footer-attorney,
  .mgs-redesign .footer-copyright,
  .mgs-redesign .mgs-developer-credit { grid-column: 1; justify-self: center; text-align: center; }
  .mgs-redesign .mgs-developer-credit { grid-row: 2; }
  .mgs-redesign .footer-copyright { grid-row: 3; }
}


/* =========================================================
   MGS 1.0.5 — cabeçalho glass e faixa contínua de atuação
   ========================================================= */
.mgs-redesign .site-header.mgs-glass-header {
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: padding .35s ease;
}
.mgs-redesign .site-header.mgs-glass-header .header-bar {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto minmax(165px, 1fr);
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  width: min(1360px, calc(100% - 64px));
  min-height: 78px;
  margin-inline: auto;
  padding: 9px clamp(18px, 2.1vw, 30px);
  border: 1px solid rgba(116, 130, 94, .34);
  border-radius: 999px;
  background: rgba(248, 247, 239, .78);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow:
    0 14px 42px rgba(18, 47, 34, .13),
    inset 0 1px 0 rgba(255, 255, 255, .82);
  transition:
    min-height .35s ease,
    background-color .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}
.mgs-redesign .site-header.mgs-glass-header .site-brand {
  grid-column: 1;
  justify-self: start;
  min-width: 0;
}
.mgs-redesign .site-header.mgs-glass-header .site-logo {
  display: block;
  width: min(205px, 100%);
  max-height: 55px;
  object-fit: contain;
}
.mgs-redesign .site-header.mgs-glass-header .site-nav {
  grid-column: 2;
  justify-self: center;
  min-width: 0;
}
.mgs-redesign .site-header.mgs-glass-header .site-nav .mgs-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  white-space: nowrap;
}
.mgs-redesign .site-header.mgs-glass-header .site-nav .mgs-menu a,
.mgs-redesign .site-header.mgs-glass-header .nav-draw {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #294536;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: color .25s ease, background-color .25s ease, transform .25s ease;
}
.mgs-redesign .site-header.mgs-glass-header .site-nav .mgs-menu a:hover,
.mgs-redesign .site-header.mgs-glass-header .site-nav .mgs-menu a:focus-visible,
.mgs-redesign .site-header.mgs-glass-header .nav-draw:hover,
.mgs-redesign .site-header.mgs-glass-header .nav-draw:focus-visible,
.mgs-redesign .site-header.mgs-glass-header .nav-draw.is-current {
  color: #173b2c;
  background: rgba(116, 130, 94, .16);
}
.mgs-redesign .site-header.mgs-glass-header .nav-draw::after {
  display: none;
}
.mgs-redesign .site-header.mgs-glass-header .site-nav .current-menu-item > a,
.mgs-redesign .site-header.mgs-glass-header .site-nav .current_page_item > a {
  color: #173b2c;
  background: rgba(116, 130, 94, .18);
}
.mgs-redesign .site-header.mgs-glass-header .header-bar > div:last-child {
  grid-column: 3;
  justify-self: end;
}
.mgs-redesign .site-header.mgs-glass-header .header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid rgba(185, 174, 132, .55);
  border-radius: 999px;
  color: #f8f7ef;
  background: #1c4433;
  box-shadow: 0 5px 14px rgba(20, 56, 40, .13);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease;
}
.mgs-redesign .site-header.mgs-glass-header .header-contact:hover,
.mgs-redesign .site-header.mgs-glass-header .header-contact:focus-visible {
  color: #fff;
  background: #285640;
  box-shadow: 0 9px 20px rgba(20, 56, 40, .2);
  transform: translateY(-2px);
}
.mgs-redesign .site-header.mgs-glass-header .header-contact svg:last-child {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  color: #1d4433;
  background: #d8d3b7;
}
.mgs-redesign .site-header.mgs-glass-header .menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(116, 130, 94, .35);
  border-radius: 50%;
  color: #244b38;
  background: rgba(255, 255, 255, .52);
  font-size: 19px;
  transition: background-color .25s ease, transform .25s ease;
}
.mgs-redesign .site-header.mgs-glass-header .menu-toggle:hover {
  background: rgba(116, 130, 94, .14);
  transform: rotate(3deg);
}
.mgs-redesign .site-header.mgs-glass-header .mobile-nav {
  left: auto;
  right: 32px;
  width: min(430px, calc(100vw - 32px));
  max-width: none;
  margin-top: 10px;
  padding: 20px;
  border: 1px solid rgba(116, 130, 94, .34);
  border-radius: 24px;
  color: #244533;
  background: rgba(248, 247, 239, .94);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  backdrop-filter: blur(22px) saturate(145%);
  box-shadow: 0 22px 54px rgba(17, 47, 34, .2);
}
.mgs-redesign .site-header.mgs-glass-header .mobile-nav-link {
  display: block;
  padding: 12px 10px;
  border-bottom: 1px solid rgba(116, 130, 94, .2);
  color: #254735;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 650;
}
.mgs-redesign .site-header.mgs-glass-header .mobile-nav-link:hover {
  color: #173b2c;
  background: rgba(116, 130, 94, .1);
}
.mgs-redesign .site-header.mgs-glass-header.is-scrolled {
  padding-top: 8px;
  padding-bottom: 8px;
}
.mgs-redesign .site-header.mgs-glass-header.is-scrolled .header-bar {
  min-height: 66px;
  border-color: rgba(116, 130, 94, .42);
  background: rgba(248, 247, 239, .93);
  box-shadow: 0 12px 34px rgba(18, 47, 34, .17), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.mgs-redesign .site-header.mgs-glass-header.is-scrolled .site-logo {
  max-height: 48px;
}

/* Faixa contínua de áreas jurídicas — logo após o banner principal. */
.mgs-redesign .mgs-area-marquee {
  position: relative;
  z-index: 2;
  display: block;
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(194, 181, 137, .34);
  border-bottom: 1px solid rgba(194, 181, 137, .34);
  color: #f6f4e9;
  background: #173d2f;
}
.mgs-redesign .mgs-marquee-viewport {
  width: 100%;
  overflow: hidden;
}
.mgs-redesign .mgs-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: mgs-marquee-scroll var(--mgs-marquee-duration, 34s) linear infinite;
  will-change: transform;
}
.mgs-redesign .mgs-marquee-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
  padding-right: clamp(22px, 3vw, 46px);
}
.mgs-redesign .mgs-marquee-item {
  display: inline-flex;
  align-items: center;
  color: #f6f4e9;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .19em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .94;
  transition: color .2s ease, opacity .2s ease;
}
.mgs-redesign .mgs-marquee-item:hover,
.mgs-redesign .mgs-marquee-item:focus-visible {
  color: #d7d0ae;
  opacity: 1;
}
.mgs-redesign .mgs-marquee-separator {
  color: #c3b78a;
  font-size: 13px;
  line-height: 1;
}
.mgs-redesign .mgs-area-marquee:hover .mgs-marquee-track {
  animation-play-state: paused;
}
@keyframes mgs-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
  .mgs-redesign .site-header.mgs-glass-header .header-bar {
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 70px;
    padding-inline: 20px;
  }
  .mgs-redesign .site-header.mgs-glass-header .site-brand { grid-column: 1; }
  .mgs-redesign .site-header.mgs-glass-header .site-nav { display: none !important; }
  .mgs-redesign .site-header.mgs-glass-header .menu-toggle { display: inline-grid; }
  .mgs-redesign .site-header.mgs-glass-header .header-bar > div:last-child {
    grid-column: 2;
    display: flex;
    justify-self: end;
  }
}
@media (max-width: 767px) {
  .mgs-redesign .site-header.mgs-glass-header {
    padding: 9px 0;
  }
  .mgs-redesign .site-header.mgs-glass-header .header-bar {
    width: calc(100% - 28px);
    min-height: 64px;
    padding: 7px 12px 7px 16px;
    border-radius: 28px;
  }
  .mgs-redesign .site-header.mgs-glass-header .site-logo {
    width: min(176px, 100%);
    max-height: 47px;
  }
  .mgs-redesign .site-header.mgs-glass-header .header-bar > div:last-child {
    gap: 7px;
  }
  .mgs-redesign .site-header.mgs-glass-header .header-contact { display: none !important; }
  .mgs-redesign .site-header.mgs-glass-header .menu-toggle {
    width: 40px;
    height: 40px;
  }
  .mgs-redesign .site-header.mgs-glass-header .mobile-nav {
    right: 14px;
    width: calc(100vw - 28px);
    margin-top: 8px;
    border-radius: 21px;
  }
  .mgs-redesign .mgs-area-marquee {
    padding: 16px 0;
  }
  .mgs-redesign .mgs-marquee-item {
    font-size: 9px;
    letter-spacing: .15em;
  }
  .mgs-redesign .mgs-marquee-group {
    gap: 19px;
    padding-right: 19px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mgs-redesign .mgs-marquee-track {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    animation: none;
    transform: none;
  }
  .mgs-redesign .mgs-marquee-group {
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 16px;
  }
  .mgs-redesign .mgs-marquee-group[aria-hidden="true"] {
    display: none;
  }
}

/* =========================================
   MGS ADVOCACIA - BOTÃO PREMIUM
   Classe global: botao-msg
========================================= */

.mgs-redesign a.cta-link.botao-msg {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    color: #fff !important;
    background: linear-gradient(
        135deg,
        #294d3d 0%,
        #355e49 50%,
        #183b30 100%
    ) !important;

    border: 1px solid rgba(186, 171, 134, .45);
    border-radius: 25px;

    box-shadow:
        0 8px 22px rgba(24, 59, 48, .16),
        0 12px 30px rgba(24, 59, 48, .12);

    transition: all .5s cubic-bezier(.19, 1, .22, 1);
}

/* TEXTO */
.mgs-redesign .botao-msg > span:first-child {
    position: relative;
    z-index: 2;
    transition: transform .5s ease;
}

/* ÍCONE */
.mgs-redesign .botao-msg .cta-link-icon {
    position: relative;
    z-index: 2;

    width: 34px;
    height: 34px;
    right: 2px;
	top:2px;

    display: grid;
    place-items: center;

    color: #294d3d;
    background: #baab86;

    border-radius: 50%;

    transition: all .5s ease;
}

/* REFLEXO LUMINOSO */
.mgs-redesign .botao-msg::before {
    content: "";
    position: absolute;
    z-index: 1;

    top: -20%;
    left: -100px;

    width: 65px;
    height: 140%;

    background: #fff;
    opacity: 0;

    box-shadow: 0 0 25px 12px rgba(255,255,255,.3);

    transform: skewX(-20deg);
    pointer-events: none;

    animation: mgs-botao-brilho 3s linear infinite;
}

@keyframes mgs-botao-brilho {
    0% {
        left: -100px;
        opacity: 0;
    }

    35% {
        opacity: .18;
    }

    100% {
        left: 130%;
        opacity: 0;
    }
}

/* HOVER */
.mgs-redesign a.cta-link.botao-msg:hover {
    color: #fff !important;
    background: linear-gradient(
        135deg,
        #355e49,
        #294d3d,
        #183b30
    ) !important;

    transform: translateY(-3px);

    box-shadow:
        0 14px 30px rgba(24, 59, 48, .24),
        0 8px 25px rgba(186, 171, 134, .18);
}

/* TEXTO NO HOVER */
.mgs-redesign .botao-msg:hover > span:first-child {
    transform: scale(1.04);
}

/* ÍCONE NO HOVER */
.mgs-redesign .botao-msg:hover .cta-link-icon {
    color: #183b30;
    background: #fff;
    transform: translate(3px, -3px) rotate(360deg);
}

/* ACESSIBILIDADE */
.mgs-redesign .botao-msg:focus-visible {
    outline: 2px solid #baab86;
    outline-offset: 4px;
}

/* MOBILE */
@media (max-width: 600px) {
    .mgs-redesign .botao-msg {
        max-width: 100%;
    }
}

/* REDUÇÃO DE MOVIMENTO */
@media (prefers-reduced-motion: reduce) {
    .mgs-redesign .botao-msg,
    .mgs-redesign .botao-msg::before,
    .mgs-redesign .botao-msg * {
        animation: none !important;
        transition: none !important;
    }
}

/* AJUSTE DO BOTÃO NO MOBILE */
@media (max-width: 600px) {

    .mgs-redesign a.cta-link.botao-msg {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;

        padding-left: 16px !important;
        padding-right: 14px !important;

        justify-content: space-between;
        gap: 10px;
    }

    .mgs-redesign .botao-msg .cta-link-icon {
        flex-shrink: 0;
        margin-right: 0;
    }

    .mgs-redesign .botao-msg > span:first-child {
        min-width: 0;
    }
}
