:root {
  --gestao-light: #eaf6ff;
  --gestao-light-2: #dbeeff;
  --gestao-dark: #061a33;
  --gestao-dark-2: #0b2f63;
  --gestao-dark-3: #0f4fa8;
  --gestao-blue: #1e7edb;
  --gestao-blue-2: #5bb6ff;
  --gestao-text: #061426;
  --gestao-text-soft: #33536f;
  --gestao-white: #ffffff;
  --gestao-muted: #d8e9ff;
  --gestao-border-light: rgba(15, 79, 168, 0.16);
  --gestao-border-dark: rgba(255, 255, 255, 0.16);
  --gestao-shadow-light: 0 18px 45px rgba(6, 26, 51, 0.12);
  --gestao-shadow-dark: 0 22px 55px rgba(0, 8, 24, 0.30);
  --gestao-radius-lg: 28px;
  --gestao-radius-md: 20px;
  --gestao-transition: all 0.28s ease;
}

html {
  scroll-behavior: smooth;
}

.gestao-page {
  background: var(--gestao-light);
  color: var(--gestao-text);
  font-family: "Montserrat", "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.gestao-page,
.gestao-page * {
  box-sizing: border-box;
}

.gestao-container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.gestao-section {
  position: relative;
  padding: 92px 0;
  overflow: hidden;
}

.gestao-section-light {
  background: linear-gradient(180deg, var(--gestao-light), var(--gestao-light-2));
  color: var(--gestao-text);
}

.gestao-section-dark {
  background:
    radial-gradient(circle at 12% 10%, rgba(91, 182, 255, 0.24), transparent 42%),
    radial-gradient(circle at 88% 90%, rgba(30, 126, 219, 0.28), transparent 44%),
    linear-gradient(135deg, var(--gestao-dark), var(--gestao-dark-2) 58%, var(--gestao-dark-3));
  color: var(--gestao-white);
}

.gestao-section-header {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.gestao-section-header h2,
.gestao-hero-copy h2,
.gestao-split-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.13;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.gestao-section-header p,
.gestao-hero-copy p,
.gestao-split-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.78;
  color: var(--gestao-text-soft);
}

.gestao-section-dark .gestao-section-header p,
.gestao-section-dark .gestao-split-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.gestao-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(30, 126, 219, 0.11);
  border: 1px solid rgba(30, 126, 219, 0.20);
  color: #0f4fa8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.gestao-section-dark .gestao-eyebrow {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  color: #bfe7ff;
}

.gestao-hero-section {
  padding-top: 110px;
}

.gestao-hero-grid,
.gestao-split-grid,
.gestao-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.gestao-hero-copy p {
  max-width: 650px;
}

.gestao-hero-actions,
.gestao-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.gestao-hero-pills {
  margin-top: 22px;
}

.gestao-hero-pills span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 79, 168, 0.10);
  border: 1px solid rgba(15, 79, 168, 0.14);
  color: #123b66;
  font-size: 13px;
  font-weight: 800;
}

.gestao-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  transition: var(--gestao-transition);
  line-height: 1.2;
}

.gestao-btn-primary {
  background: linear-gradient(135deg, #0f66c3, #2098f3);
  color: #ffffff !important;
  box-shadow: 0 16px 34px rgba(15, 102, 195, 0.25);
}

.gestao-btn-primary:hover,
.gestao-btn-primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(15, 102, 195, 0.34);
}

.gestao-btn-outline {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(15, 79, 168, 0.18);
  color: #0a315f !important;
}

.gestao-btn-outline:hover,
.gestao-btn-outline:focus {
  background: #ffffff;
  transform: translateY(-2px);
}

.gestao-btn-block {
  width: 100%;
}

.gestao-hero-panel {
  width: 100%;
}

.gestao-panel-window {
  padding: 24px;
  border-radius: var(--gestao-radius-lg);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 79, 168, 0.14);
  box-shadow: var(--gestao-shadow-light);
  backdrop-filter: blur(14px);
}

.gestao-window-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.gestao-window-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #89cef8;
}

.gestao-window-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0d3d78, #105fb2);
  color: #ffffff;
  margin-bottom: 18px;
}

.gestao-window-banner strong,
.gestao-window-banner small {
  display: block;
}

.gestao-window-banner strong {
  font-size: 22px;
  font-weight: 900;
}

.gestao-window-banner small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.75);
}

.gestao-window-banner i {
  font-size: 42px;
  color: #bfe7ff;
}

.gestao-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gestao-kpi-card,
.gestao-flow-card {
  padding: 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 79, 168, 0.13);
}

.gestao-kpi-card strong {
  display: block;
  color: #0f4fa8;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.gestao-kpi-card span {
  display: block;
  color: #41637e;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.gestao-flow-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
  color: #0a315f;
  font-size: 13px;
  font-weight: 900;
}

.gestao-card-grid {
  display: grid;
  gap: 22px;
}

.gestao-card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gestao-card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gestao-card,
.gestao-calculator-card,
.gestao-log-card,
.gestao-form-card,
.gestao-location-card,
.gestao-flow-step {
  min-width: 0;
  overflow: hidden;
  word-break: normal;
  overflow-wrap: anywhere;
}

.gestao-card {
  min-height: 100%;
  padding: 26px;
  border-radius: var(--gestao-radius-md);
  transition: var(--gestao-transition);
}

.gestao-card:hover {
  transform: translateY(-5px);
}

.gestao-light-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--gestao-border-light);
  box-shadow: var(--gestao-shadow-light);
}

.gestao-dark-card {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--gestao-border-dark);
  box-shadow: var(--gestao-shadow-dark);
}

.gestao-card-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 18px;
  background: #d6f0ff;
  color: #084b92;
  font-size: 25px;
}

.gestao-dark-card .gestao-card-icon {
  background: rgba(191, 231, 255, 0.16);
  color: #bfe7ff;
}

.gestao-card h3,
.gestao-flow-step h3,
.gestao-calculator-card h3,
.gestao-form-card h3,
.gestao-location-info h3 {
  margin: 0 0 12px;
  font-size: 21px;
  line-height: 1.28;
  font-weight: 900;
}

.gestao-card p,
.gestao-flow-step p,
.gestao-calculator-card p,
.gestao-form-card p,
.gestao-location-info p {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
}

.gestao-light-card p,
.gestao-flow-step p,
.gestao-calculator-card p,
.gestao-form-card p,
.gestao-location-info p {
  color: var(--gestao-text-soft);
}

.gestao-dark-card p {
  color: rgba(255, 255, 255, 0.78);
}

.gestao-check-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.gestao-check-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  color: #173c63;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
}

.gestao-check-list i {
  color: #0f66c3;
  margin-top: 4px;
}

.gestao-calculator-card,
.gestao-form-card,
.gestao-location-card {
  padding: 28px;
  border-radius: var(--gestao-radius-lg);
  background: #ffffff;
  border: 1px solid var(--gestao-border-light);
  box-shadow: var(--gestao-shadow-light);
}

.gestao-form-row-small,
.gestao-form-group {
  margin-bottom: 16px;
}

.gestao-form-row-small label {
  display: block;
  margin-bottom: 7px;
  color: #0a315f;
  font-weight: 900;
  font-size: 13px;
}

.gestao-form-row-small input,
.gestao-form .form-control {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(15, 79, 168, 0.22);
  background: #f8fcff;
  color: #061426 !important;
  font-size: 15px;
  outline: none;
  box-shadow: none;
}

.gestao-form textarea.form-control {
  min-height: 122px;
  resize: vertical;
}

.gestao-form .form-control::placeholder {
  color: #647f99 !important;
  opacity: 1;
}

.gestao-form .form-control:focus,
.gestao-form-row-small input:focus {
  border-color: #1e7edb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 126, 219, 0.13);
}

.gestao-result-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #eaf6ff;
  color: #0a315f;
  font-weight: 900;
  border: 1px solid rgba(15, 79, 168, 0.14);
}

.gestao-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.gestao-flow-step {
  padding: 26px;
  border-radius: var(--gestao-radius-md);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid var(--gestao-border-dark);
  box-shadow: var(--gestao-shadow-dark);
}

.gestao-flow-step strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(191, 231, 255, 0.16);
  color: #bfe7ff;
  font-weight: 900;
}

.gestao-log-card {
  padding: 24px;
  border-radius: var(--gestao-radius-lg);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--gestao-border-dark);
  box-shadow: var(--gestao-shadow-dark);
}

.gestao-log-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.gestao-log-item:last-child {
  border-bottom: 0;
}

.gestao-log-item span {
  color: #bfe7ff;
  font-weight: 900;
}

.gestao-log-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.gestao-contact-grid {
  align-items: stretch;
}

.gestao-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gestao-form-card .jc-form-privacy {
  background: #f2f8ff !important;
  border-color: rgba(15, 79, 168, 0.18) !important;
  color: #123b66 !important;
  border-radius: 14px !important;
}

.gestao-form-card .jc-form-privacy label,
.gestao-form-card .jc-form-privacy a {
  color: #123b66 !important;
}

.gestao-map-frame {
  width: 100%;
  min-height: 290px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 79, 168, 0.15);
  background: #dbeeff;
  margin-bottom: 22px;
}

.gestao-map-frame iframe {
  width: 100%;
  height: 310px;
  display: block;
  border: 0;
}

.gestao-location-info p {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 0 0 11px;
  font-weight: 800;
}

.gestao-location-info i {
  width: 18px;
  color: #0f66c3;
  margin-top: 4px;
}

#bottom-widget,
footer {
  background:
    radial-gradient(circle at 10% 10%, rgba(91, 182, 255, 0.16), transparent 38%),
    linear-gradient(135deg, #061a33, #0b2f63) !important;
  color: #ffffff !important;
}

#bottom-widget h1,
#bottom-widget h2,
#bottom-widget h3,
#bottom-widget h4,
#bottom-widget h5,
#bottom-widget h6,
#bottom-widget p,
#bottom-widget li,
#bottom-widget a,
footer,
footer p,
footer a {
  color: #ffffff !important;
}

.social-network .fa-stack-1x,
.social-network .fa-stack-1x.fa-inverse,
.social-network i.fa-stack-1x {
  color: #061a33 !important;
  opacity: 1 !important;
}

.social-network .fa-circle,
.social-network .fa-stack-2x {
  color: #eaf6ff !important;
  opacity: 1 !important;
}

.social-network a:hover .fa-circle,
.social-network a:hover .fa-stack-2x {
  color: #5bb6ff !important;
}

.social-network a:hover .fa-stack-1x,
.social-network a:hover i.fa-stack-1x {
  color: #ffffff !important;
}

@media (max-width: 1100px) {
  .gestao-card-grid-4,
  .gestao-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .gestao-hero-grid,
  .gestao-split-grid,
  .gestao-contact-grid {
    grid-template-columns: 1fr;
  }

  .gestao-card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .gestao-container {
    width: min(100% - 22px, 1180px);
  }

  .gestao-section {
    padding: 68px 0;
  }

  .gestao-hero-section {
    padding-top: 86px;
  }

  .gestao-section-header {
    margin-bottom: 28px;
  }

  .gestao-card-grid-4,
  .gestao-card-grid-3,
  .gestao-flow-grid,
  .gestao-form-row,
  .gestao-kpi-grid {
    grid-template-columns: 1fr;
  }

  .gestao-hero-actions .gestao-btn,
  .gestao-btn-block {
    width: 100%;
  }

  .gestao-panel-window,
  .gestao-calculator-card,
  .gestao-form-card,
  .gestao-location-card {
    padding: 20px;
  }

  .gestao-window-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================
   CORREÇÃO FINAL DE CONTRASTE - GESTÃO
   Mantém a lógica visual, apenas garante leitura em seções escuras.
   ========================================================= */
.gestao-section-dark .gestao-section-header h2,
.gestao-section-dark .gestao-split-copy h2,
.gestao-section-dark .gestao-card h3,
.gestao-section-dark .gestao-flow-step h3,
.gestao-section-dark .gestao-log-card h3,
.gestao-section-dark .gestao-card strong,
.gestao-section-dark .gestao-flow-step strong {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 2px 10px rgba(0, 8, 24, 0.28);
}

.gestao-section-dark .gestao-section-header p,
.gestao-section-dark .gestao-split-copy p,
.gestao-section-dark .gestao-card p,
.gestao-section-dark .gestao-flow-step p,
.gestao-section-dark .gestao-log-card p,
.gestao-section-dark .gestao-log-item p {
  color: rgba(255, 255, 255, 0.90) !important;
  opacity: 1 !important;
}

.gestao-section-dark .gestao-card,
.gestao-section-dark .gestao-flow-step,
.gestao-section-dark .gestao-log-card,
.gestao-dark-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08)) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  box-shadow: 0 22px 55px rgba(0, 8, 24, 0.35) !important;
}

.gestao-section-dark .gestao-card-icon,
.gestao-section-dark .gestao-flow-step strong,
.gestao-dark-card .gestao-card-icon {
  background: #d6f0ff !important;
  color: #061a33 !important;
  text-shadow: none !important;
}

.gestao-section-dark .gestao-card *,
.gestao-section-dark .gestao-flow-step *,
.gestao-section-dark .gestao-log-card * {
  overflow-wrap: anywhere;
  word-break: normal;
}
