:root {
  --brand-green: #29443f;
  --brand-green-hover: #203732;
  --brand-green-soft: #e8efec;
  --brand-gold: #bd7e2a;
  --brand-gold-soft: #f6eee2;
  --surface: #ffffff;
  --surface-muted: #f4f5f4;
  --text-primary: #292d2b;
  --text-muted: #5f6864;
  --border-color: #d8dfdc;
  --verde-escuro: var(--brand-green);
  --verde-principal: var(--brand-green);
  --verde-claro: var(--brand-green-soft);
  --dourado: var(--brand-gold);
  --cinza-claro: var(--surface-muted);
  --cinza-texto: var(--text-primary);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 28px rgba(41, 68, 63, 0.18);
  --shadow-focus: 0 0 0 0.2rem rgba(41, 68, 63, 0.3);
}

.action {
  text-decoration: none;  
  transition: all .3s ease;
  background: var(--brand-green);

}

.cookie-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1055;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 16px 18px;
  display: none;
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__content {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner__text strong {
  display: block;
  color: var(--verde-escuro);
  margin-bottom: 4px;
}

.cookie-banner__text p {
  margin: 0 0 6px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cookie-banner__link {
  color: var(--verde-escuro);
  font-weight: 600;
  text-decoration: none;
}

.cookie-banner__link:hover {
  text-decoration: underline;
}

.cookie-modal {
  max-width: 720px;
}

.cookie-modal .modal-content {
  max-height: 80vh;
}

.cookie-modal__body {
  max-height: 60vh;
  overflow-y: auto;
}

.rpps-modal .modal-dialog {
  height: calc(100vh - 144px);
  margin-top: 120px;
  margin-bottom: 24px;
  max-height: calc(100vh - 144px);
}

.rpps-modal .modal-content {
  max-height: calc(100vh - 144px);
}

#blogHeroCarousel .carousel-item {
  position: relative;
}

#blogHeroCarousel img {
  height: clamp(180px, 55vw, 320px);
  object-fit: cover;
}

#blogHeroCarousel .blog-hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.65) 100%);
  z-index: 2;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--cinza-texto);
  scroll-behavior: smooth;
  line-height: 1.6;
  letter-spacing: 0.3px;
  background: #ffffff;
}

html {
  scroll-behavior: smooth;
}

p {
  text-align: justify;
  text-justify: inter-word;
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: 0.5px;
  font-weight: 700;
}



.navbar-brand {
  font-size: 0.95rem;
}

section {
  padding: 100px 0;
  position: relative;
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 60px;
  scroll-margin-top: 80px;

}

#continuous-pages-root {
  display: block;
}

.stream-page {
  position: relative;
}

.stream-sentinel {
  height: 1px;
}

.stream-loading {
  text-align: center;
  color: #5f5f5f;
  font-size: 0.95rem;
  padding: 12px 0 20px;
}

section h2 {
  margin-bottom: 3rem;
  font-size: 2.5rem;
  letter-spacing: 1.2px;
  padding-bottom: 1.5rem;
  border-bottom: 3px solid var(--dourado);
  display: inline-block;
  position: relative;
  line-height: 1.2;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--dourado), transparent);
  border-radius: 2px;
}

section h3 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: var(--dourado);
  font-weight: 700;
  letter-spacing: 0.8px;
  position: relative;
  padding-bottom: 1rem;
}

section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200px;
  height: 3px;
  background: var(--dourado);
  border-radius: 2px;
}

ul {
  list-style: none;
  padding-left: 0; /* Opcional: remove o recuo padrão que a lista deixa à esquerda */
}

ul li h3 {
  color: var(--brand-green);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: normal;
  position: relative; /* Mudado de static para relative para servir de âncora para o ::after */
}

ul li h3::after {
  
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%); /* Centraliza a linha perfeitamente */    
  background: var(--brand-green);
  border-radius: 2px;
}

/* HERO */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, rgba(41, 68, 63, 0.88) 0%, rgba(41, 68, 63, 0.68) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(246, 238, 226, 0.55), rgba(232, 239, 236, 0.55));
              
  z-index: -1;
}


.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.8;
}

.hero .carousel-indicators {
  bottom: -40px;
}

.indicadores-carousel {
  padding-bottom: 8px;
}

.indicadores-carousel .indicador-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  width: 200px;
  height: 100px;
  margin: 0 .5rem;
  background: #ffffff;
  border: 2px solid var(--verde-principal);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: .75rem;
}

.indicadores-carousel .indicador-valor {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--verde-escuro);
}

.indicadores-carousel .indicador-descricao {
  font-size: .85rem;
  font-weight: 600;
  color: var(--verde-escuro);
}

.indicador-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  max-width: 220px;
}



.indicador-valor-page {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--verde-escuro);
}

.indicador-descricao-page {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--verde-escuro);
}

/* CARDS */
.card {
  border: none;
  border-radius: var(--radius-md);
  background: #ffffff;
 
  transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover {
  transition: all .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(41, 68, 63, 0.15);
}

/* Indica visualmente que os cards de especialistas abrem um modal ao clicar */
#teamCarousel .card-hover {
  cursor: pointer;
}

.team-photo-wrap {
  position: relative;
  overflow: hidden;
}

.team-photo-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  background: rgba(41, 68, 63, .6);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}

#teamCarousel .card-hover:hover .team-photo-hint,
#teamCarousel .card-hover:focus-visible .team-photo-hint {
  opacity: 1;
}

.card p {
  text-align: left;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.card-body {
  padding: 1.5rem;
}

/* NAVIGATION STYLES */
.nav-link {
  position: relative;
  transition: all .3s ease;
  color: #333 !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.nav-link:hover {
  background: rgba(41, 68, 63, 0.08);
  color: var(--verde-principal) !important;
}

.nav-link.active {
  background: var(--verde-principal);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(41, 68, 63, 0.25);
}

.nav-link.active,
#site-header .nav-link.active,
#site-header .navbar.is-dark .nav-link.active,
.scrolled #site-header .nav-link.active,
.navbar.is-light .nav-link.active {
  color: #fff !important;
}

.nav-link:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.dropdown-item.active,
.dropdown-item:active {
  background: var(--verde-principal);
  color: #fff !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(41, 68, 63, 0.25);
}

/* SERVICE BOX STYLES */
.service-box {
  background: linear-gradient(135deg, var(--surface-muted) 0%, var(--surface) 100%);
  border-left: 4px solid var(--dourado);
  transition: all .3s ease;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
}

.service-box:hover {
  background: linear-gradient(135deg, #ecefec 0%, var(--surface-muted) 100%);
  box-shadow: 0 8px 20px rgba(41, 68, 63, 0.12);
  transform: translateX(8px);
}

.service-box h6 {
  color: var(--verde-principal);
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bg-cinza {
  background: linear-gradient(180deg, #f7f7f7 0%, var(--cinza-claro) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

#quem-confia-na-atos {
  min-height: auto;
}

.quem-confia-na-atos__intro {
  max-width: 680px;
  color: #666;
  text-align: center;
}

.client-logo {
  align-items: center;
  display: flex;
  height: 128px;
  justify-content: center;
  padding: 16px;
  text-decoration: none;
}

.client-logo img {
  filter: grayscale(1);
  max-height: 88px;
  max-width: 100%;
  object-fit: contain;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.client-logo:hover img,
.client-logo:focus-visible img {
  filter: grayscale(0);
  transform: scale(1.04);
}

.client-logo:focus-visible {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-focus);
  outline: none;
}

/* SETAS FORA DAS IMAGENS (TIME / SERVIÇOS / ETC) */
.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  
  filter: invert(1);
  border-radius: 50%;
  background-size: 50% 50%;
}

.carousel-control-prev {
  left: -60px;
}

.carousel-control-next {
  right: -60px;
}

/* FORM STYLES */
.form-control {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all .3s ease;
}

.form-control:focus {
  border-color: var(--verde-principal);
  box-shadow: 0 4px 12px rgba(41, 68, 63, 0.15);
  outline: none;
}

.btn-primary:hover {
  background: var(--brand-green-hover) !important;
  box-shadow: 0 8px 20px rgba(41, 68, 63, 0.25);
  transform: translateY(-2px);
}

.btn-primary,
.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--brand-green);
  --bs-btn-border-color: var(--brand-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-green-hover);
  --bs-btn-hover-border-color: var(--brand-green-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--brand-green-hover);
  --bs-btn-active-border-color: var(--brand-green-hover);
  --bs-btn-focus-shadow-rgb: 41, 68, 63;
}

.btn-outline-success {
  --bs-btn-color: var(--brand-green);
  --bs-btn-border-color: var(--brand-green);
  --bs-btn-bg: transparent;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--brand-green);
  --bs-btn-hover-border-color: var(--brand-green);
  --bs-btn-active-bg: var(--brand-green-hover);
  --bs-btn-active-border-color: var(--brand-green-hover);
}

@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }

  section h2 {
    max-width: 100%;
    font-size: clamp(1.25rem, 7vw, 2rem);
    overflow-wrap: anywhere;
  }

  .page-public .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }

  p {
    text-align: left;
  }

  .carousel-control-prev {
    left: 0;
  }

  .carousel-control-next {
    right: 0;
  }
}



.features-item {
  background: transparent;
  color: inherit;
  appearance: none;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  padding: 1rem;
  width: 100%;           /* ocupa toda a coluna */
  text-decoration: none;
  transition: all 0.3s ease;
}

.features-item:hover {
  border-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}



footer {
  background: var(--verde-escuro);
  color: #d0d0d0;
}


#site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  transition: all 0.4s ease;
}

/* NAVBAR TRANSPARENTE NO INÍCIO */
#site-header > #mainNavbar {
  background: transparent !important;
  border: none;
  box-shadow: none;
  
  transition: all 0.4s ease;
}

/* LINKS BRANCOS */
#site-header .nav-link {
  color: #fff !important;
}

/* LOGO BRANCA */
.logo-dark {
  display: none;
}
.logo-light {
  display: block;
}

/* ESTADO APÓS SCROLL */
.scrolled #site-header > #mainNavbar {
  background: var(--surface) !important;
  padding: 0.8rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.scrolled #site-header .nav-link {
  color: var(--text-primary) !important;
}

.scrolled .logo-light {
  display: none;
}

.scrolled .logo-dark {
  display: block;
}

#site-header,
#site-header .navbar {
  border: none !important;
}

#site-header {
  margin-bottom: 0 !important;
}

@media (max-width: 991px) {
  .navbar-toggler {
    position: relative;
    z-index: 11000;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    position: fixed;
    top: 120px; /* abaixo top-bar + navbar */
    right: 15px;
    background: var(--brand-green);
    width: 220px;
    padding: 15px;
    border-radius: 8px;
    z-index: 10900;
  }
}

@media (max-width: 991px) {
  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 991px) {
  body.scrolled #mainNavbar {
    background-color: var(--brand-green) !important;
  }

  body.scrolled #mainNavbar .nav-link {
    color: #ffffff !important;
  }

  body.scrolled #mainNavbar .navbar-toggler {
    background: var(--brand-green-hover);
    border-color: rgba(255, 255, 255, 0.2);
  }
}


.top-bar {
  position: sticky;
  top: 0px;
  z-index: 1060;
}

.bottom-bar {
  position: sticky;
  bottom: 0px;
  z-index: 950;
  display: none;
  transition: all 0.4s ease;
  background: var(--brand-green-soft);
  min-height: 38px;
  height: auto;
  padding: 0.25rem 0;
}

.bottom-bar .navbar-brand,
.bottom-bar .nav-link,
.bottom-bar .dropdown-item {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  line-height: 1.1;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.25px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.bottom-bar .navbar-toggler {
  padding: 0.25rem 0.5rem;
  border-color: rgba(255,255,255,.25);
}

.bottom-bar .navbar-nav {
  align-items: center;
}

.bottom-bar .navbar-collapse {
  background: transparent;
}

.bottom-bar .navbar-collapse.show {
  background: var(--brand-green-soft);
}

.bottom-bar .navbar-collapse.show .nav-link,
.bottom-bar .navbar-collapse.show .dropdown-item {
  color: var(--brand-green) !important;
}

.bottom-bar .navbar-collapse.show .dropdown-menu {
  background: var(--surface);
}

.scrolled #bottom-bar {
  display: block;
}

@media (max-width: 991px) {
  #mainNavbar > .container {
    gap: 0.75rem;
  }

  #mainNavbar .logo {
    width: auto;
    max-width: calc(100vw - 112px);
    height: clamp(42px, 15vw, 70px) !important;
    object-fit: contain;
  }

  .top-bar .container {
    justify-content: center !important;
    flex-wrap: wrap;
    gap: 0 0.5rem;
  }

  .top-bar .topo-contato {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }

  .top-bar .contato {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
  }

  .top-bar .contato .bi-telephone {
    margin-left: 0 !important;
  }

  .top-bar .contato a {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  #bottom-bar {
    position: absolute;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    display: block;
    width: 100%;
    height: 0;
    min-height: 0;
    padding: 0;
    pointer-events: none;
    background: transparent;
  }

  #bottom-bar > .container {
    height: 0;
    min-height: 0;
    padding: 0;
  }

  #bottom-bar .navbar-toggler {
    display: none;
  }

  #bottom-bar .navbar-collapse {
    position: absolute;
    top: 0;
    right: 12px;
    width: min(320px, calc(100vw - 24px));
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    padding: 0;
    border-radius: var(--radius-md);
    background: var(--brand-green);
    pointer-events: auto;
  }

  #bottom-bar .navbar-collapse.show {
    padding: 0.75rem;
  }

  #bottom-bar .navbar-collapse.show .nav-link,
  #bottom-bar .navbar-collapse.show .dropdown-item {
    color: #fff !important;
  }

  #bottom-bar .navbar-collapse.show .dropdown-menu {
    background: var(--brand-green);
  }

  #bottom-bar .navbar-collapse.show .nav-link:hover,
  #bottom-bar .navbar-collapse.show .nav-link:focus-visible,
  #bottom-bar .navbar-collapse.show .dropdown-item:hover,
  #bottom-bar .navbar-collapse.show .dropdown-item:focus-visible {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.18);
  }

  #bottom-bar .navbar-nav {
    align-items: stretch;
  }

  #bottom-bar .nav-link,
  #bottom-bar .dropdown-item {
    white-space: normal;
  }

  .indicadores-carousel .carousel-item > .row {
    margin-right: 0;
    margin-left: 0;
  }

  .indicadores-carousel .carousel-item > .row > .col-auto {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

}


.zoom-cover{

background-size: 60%;
}

#heroCarousel .carousel-item {
  min-height: 500px;

}

#heroCarousel .carousel-item > .container {
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;

}




/* estado inicial (sobre o hero) */
.navbar.is-dark {
  background-color: var(--brand-green);
}

.navbar.is-dark .nav-link {
  color: rgba(255,255,255,.75);
}

.navbar.is-dark .nav-link:hover {
  color: #fff;
}

/* estado após scroll */
.navbar.is-light {
  background-color: var(--surface);
}

.navbar.is-light .nav-link {
  color: var(--text-primary);
}

.navbar.is-light .nav-link:hover {
  color: var(--brand-green-hover);
}

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  min-height: 56px;
  padding: 0.875rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #40c351 0%, #2ca844 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 41, 25, 0.28);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float svg {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  fill: #fff;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 41, 25, 0.32);
}

.whatsapp-mobile-cta {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  min-height: 56px;
  padding: 0.875rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #40c351 0%, #2ca844 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 41, 25, 0.28);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-mobile-cta:hover,
.whatsapp-mobile-cta:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 41, 25, 0.32);
}

.whatsapp-mobile-cta i {
  font-size: 1.25rem;
  line-height: 1;
}

#depoimentos {
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 60px;
  scroll-margin-top: 80px;
}



.topo-contato {
  color: #fff;
  font-size: 14px;
}

.topo-contato a {
  color: inherit;        /* mesma cor do texto */
  text-decoration: none; /* sem sublinhado */
}

.topo-contato a:hover {
  text-decoration: underline;
}

.topo-contato i {
  font-size: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

.topo-contato .nibbo i {
  font-size: 16px; /* 🔒 cadeado maior */
}


 

.team-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(24px + var(--scroll-offset, 0px)) 24px 24px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1050;
}

.team-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.team-modal__content {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  max-width: min(90vw, 720px);
  max-height: 80vh;
  overflow: auto;
  padding: 24px;
  text-align: center;
  position: relative;
}

.team-modal__image {
  width: min(240px, 60vw);
  height: auto;
  border-radius: 12px;
  background: var(--surface-muted);
  margin: 0 auto 16px;
  display: block;
}

.team-modal__name {
  margin-bottom: 6px;
}

.team-modal__role {
  margin-bottom: 0.75rem;
  color: var(--brand-green);
  font-weight: 700;
}

.team-modal__desc,
.team-modal__long {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  text-align: left;
}

.team-modal__long p {
  margin-bottom: 1rem;
  text-align: justify;
}

.team-modal__long p:last-child {
  margin-bottom: 0;
}

.team-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: var(--surface-muted);
  color: var(--text-primary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.team-modal__close:hover {
  background: #e9ecea;
  transform: scale(1.03);
}

.team-modal__close:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* BLOG */
.blog-page {
  padding-top: 140px;
  background: var(--surface-muted);
}

.page-blog main {
  padding-top: 0;
}

.page-blog section {
  min-height: auto;
}

.blog-section-body ul,
.blog-section-body ol {
  padding-inline-start: 2rem;
}

.blog-section-body ul {
  list-style-type: disc;
}

.blog-section-body ol {
  list-style-type: decimal;
}

/* Páginas de documento (LGPD, políticas): espaçamento sem hero 100vh */
.page-document section {
  min-height: auto;
  padding-top: 140px;
  padding-bottom: 60px;
}

.page-document section + section {
  padding-top: 60px;
}

.page-blog #site-header > #mainNavbar {
  background: var(--surface) !important;
  padding: 0.8rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.page-blog #mainNavbar .nav-link {
  color: var(--text-primary) !important;
}

.page-blog .logo-light {
  display: none;
}

.page-blog .logo-dark {
  display: block;
}

.blog-hero {
  padding-bottom: 40px;
}

.blog-hero__media img {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.blog-hero__content {
  margin-top: 2rem;
}

.blog-hero__content h1 {
  font-size: 2.4rem;
  margin-bottom: 0.6rem;
  color: var(--brand-green);
}

.blog-hero__content p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
}

.blog-listing {
  padding: 30px 0 80px;
}

.blog-search {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.blog-search__field {
  flex: 1 1 420px;
  max-width: 560px;
}

.blog-search input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.blog-categories {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

.blog-category {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  color: var(--brand-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
}

.blog-category.is-active {
  background: var(--verde-principal);
  color: #fff;
  border-color: var(--verde-principal);
  box-shadow: 0 6px 16px rgba(41, 68, 63, 0.2);
}

.blog-card {
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
}

.blog-card__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card__body {
  padding: 16px 18px 20px;
}

.blog-card__date {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.blog-card h3 {
  font-size: 1.1rem;
  margin: 8px 0;
  color: var(--brand-green);
}

.blog-card p {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.blog-card__link {
  color: var(--verde-principal);
  font-weight: 700;
  text-decoration: none;
}

.blog-card__link:hover {
  text-decoration: underline;
}

.blog-card__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-page .card-img-top {
  height: 200px;
  object-fit: cover;
}

.blog-page .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-page .card-body .card-text {
  margin-bottom: 1rem;
}

.blog-page .card-body a.fw-semibold {
  margin-top: auto;
}

.blog-pagination .page-link {
  color: var(--verde-principal);
}

.blog-pagination .page-item.active .page-link {
  background: var(--verde-principal);
  border-color: var(--verde-principal);
  color: #fff;
}

.blog-detail {
  padding: 140px 0 80px;
  background: var(--surface-muted);
}

.blog-back {
  color: var(--verde-principal);
  font-weight: 600;
  text-decoration: none;
}

.blog-detail__hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  margin: 20px 0;
}

.blog-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.blog-detail__category {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
}

.blog-detail__title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: var(--brand-green);
}

.blog-detail__content p {
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.blog-detail__recent {
  margin-top: 40px;
}

.blog-recent-card {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--brand-green);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.blog-recent-card small {
  display: block;
  color: var(--text-muted);
  margin-top: 6px;
}

@media (max-width: 768px) {
  .blog-hero__content h1 {
    font-size: 2rem;
  }

  .blog-detail {
    padding-top: 120px;
  }
}


/* ALERTAS PROGRAMADOS */
.scheduled-alert {
  position: fixed;
  inset: 0;
  z-index: 1065;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.scheduled-alert__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.scheduled-alert__card {
  position: relative;
  z-index: 1;
  width: min(92vw, 640px);
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 26px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.scheduled-alert__title {
  margin-bottom: 12px;
  color: var(--verde-escuro);
  font-weight: 800;
}

.scheduled-alert__message {
  text-align: left;
  margin: 0 0 20px;
  color: var(--cinza-texto);
}

.scheduled-alert__btn {
  border-radius: 999px;
  padding: 10px 28px;
  font-weight: 700;
}

.scheduled-alert.is-hidden {
  display: none;
}

.scheduled-alert .carousel-control-prev,
.scheduled-alert .carousel-control-next {
  width: 12%;
  opacity: 0.9;
}

.scheduled-alert .carousel-control-prev-icon,
.scheduled-alert .carousel-control-next-icon {
  filter: none;
  background-color: var(--dourado);
  border-radius: 50%;
  background-size: 55% 55%;
}

.scheduled-alert .carousel-indicators {
  position: static;
  margin-top: 12px;
}

.scheduled-alert .carousel-indicators button {
  background-color: var(--verde-principal);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

@media (max-width: 991px) {
  footer .list-unstyled li a[href^="mailto:"] {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .whatsapp-mobile-cta {
    left: max(16px, env(safe-area-inset-left));
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 767.98px) {
  :root {
    --mobile-nav-height: calc(68px + env(safe-area-inset-bottom, 0px));
    --mobile-whatsapp-height: 56px;
    --mobile-cookie-height: 0px;
    --mobile-controls-height: calc(var(--mobile-nav-height) + var(--mobile-whatsapp-height) + 24px);
  }

  body {
    padding-bottom: var(--mobile-controls-height);
  }

  #contabilidade-empresarial,
  .rpps-intro,
  #contato {
    /* O offset inclui 20px extras; o container do titulo ja tem 3rem de padding. */
    padding-top: calc(var(--scroll-offset, 185px) + 4px - 3rem);
  }

  #site-header {
    z-index: 1030;
  }

  #mainNavbar .navbar-toggler {
    display: none;
  }

  #bottom-bar {
    z-index: 1070;
  }

  .mobile-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 1020;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    height: var(--mobile-nav-height);
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: var(--surface);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 16px rgba(41, 68, 63, 0.12);
  }

  .mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 44px;
    padding: 6px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--brand-green);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
  }

  .mobile-bottom-nav__item i {
    font-size: 1.4rem;
    line-height: 1;
  }

  .mobile-bottom-nav__item:hover,
  .mobile-bottom-nav__item.active,
  .mobile-bottom-nav__item[aria-expanded="true"] {
    color: var(--brand-green);
    background: var(--brand-green-soft);
  }

  .mobile-bottom-nav__item:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: -4px;
    background: var(--brand-green-soft);
  }

  .whatsapp-mobile-cta {
    bottom: calc(var(--mobile-nav-height) + 12px);
  }

  #bottom-bar .navbar-collapse,
  #bottom-bar .navbar-collapse.collapsing {
    position: fixed;
    top: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(var(--mobile-controls-height) + var(--mobile-cookie-height));
    left: max(12px, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100vh - var(--mobile-controls-height) - var(--mobile-cookie-height) - 12px);
    max-height: calc(100dvh - var(--mobile-controls-height) - var(--mobile-cookie-height) - 12px);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: var(--shadow-md);
  }

  #bottom-bar .navbar-collapse.collapsing {
    padding: 0.75rem;
  }

  .cookie-banner {
    right: max(12px, env(safe-area-inset-right));
    left: max(12px, env(safe-area-inset-left));
    bottom: var(--mobile-controls-height);
    z-index: 1031;
    max-height: calc((100vh - var(--mobile-controls-height) - 24px) / 2);
    max-height: calc((100dvh - var(--mobile-controls-height) - 24px) / 2);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
