/* ComunidadeCon — cards da grelha “Mais soluções” e utilitários de layout */

.cc-wow-grid-card {
  cursor: pointer;
}

.cc-wow-grid-body {
  padding: 1.5rem 1.35rem 1.5rem 1.5rem !important;
}

.cc-wow-grid-body h3 {
  margin-bottom: .55rem !important;
}

.cc-wow-grid-body p {
  margin-bottom: .85rem !important;
}

.cc-wow-grid-more {
  padding-top: .15rem;
}

.cc-wow-grid-media img {
  padding: .55rem .45rem !important;
}

/* Secção de impacto — operação unificada (home) */
.cc-impact {
  position: relative;
  padding: 4.5rem 0 4.75rem;
  background:
    linear-gradient(180deg, #f6f7fb 0%, #eef0f6 48%, #f8f9fc 100%);
  color: #000036;
  overflow: hidden;
}

.cc-impact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 12% 20%, rgba(65, 88, 200, .12), transparent 60%),
    radial-gradient(ellipse 45% 40% at 88% 80%, rgba(0, 0, 54, .06), transparent 55%);
  pointer-events: none;
}

.cc-impact > .container {
  position: relative;
  z-index: 1;
}

.cc-impact-intro {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.cc-impact-eyebrow {
  display: inline-block;
  margin-bottom: .85rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4158c8;
}

.cc-impact-title {
  margin-bottom: 1rem;
  color: #000036;
  letter-spacing: -.02em;
}

.cc-impact-lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(0, 0, 54, .62);
}

.cc-impact-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: stretch;
  margin: 0 auto 2.75rem;
  max-width: 52rem;
}

.cc-impact-before,
.cc-impact-after {
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: .85rem;
  border: 1px solid rgba(0, 0, 54, .08);
}

.cc-impact-before {
  background: rgba(255, 255, 255, .55);
}

.cc-impact-after {
  background: #000036;
  border-color: transparent;
  color: #fff;
}

.cc-impact-compare-label {
  display: block;
  margin-bottom: .85rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(0, 0, 54, .45);
}

.cc-impact-after .cc-impact-compare-label {
  color: rgba(157, 176, 255, .95);
}

.cc-impact-compare-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cc-impact-compare-list li {
  position: relative;
  padding: .35rem 0 .35rem 1.15rem;
  font-size: .9375rem;
  line-height: 1.45;
  color: rgba(0, 0, 54, .72);
}

.cc-impact-compare-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75rem;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: rgba(0, 0, 54, .28);
}

.cc-impact-after .cc-impact-compare-list li {
  color: rgba(255, 255, 255, .82);
}

.cc-impact-after .cc-impact-compare-list li::before {
  background: #5b7cfa;
}

.cc-impact-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #4158c8;
}

.cc-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}

.cc-impact-item {
  padding-top: .25rem;
}

.cc-impact-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: .85rem;
  border-radius: .65rem;
  background: rgba(65, 88, 200, .12);
  color: #4158c8;
  font-size: 1.25rem;
}

.cc-impact-item-title {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #000036;
  letter-spacing: -.015em;
}

.cc-impact-item-desc {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.5;
  color: rgba(0, 0, 54, .58);
}

.cc-impact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

@media (max-width: 991.98px) {
  .cc-impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .cc-impact {
    padding: 3.5rem 0 3.75rem;
  }

  .cc-impact-compare {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cc-impact-arrow {
    transform: rotate(90deg);
    padding: .15rem 0;
  }

  .cc-impact-grid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }
}

/*
  Páginas com footer-hero: no overscroll (empurrar o footer)
  o canvas do browser não deve mostrar branco atrás.
*/
html:has(.footer-hero),
html:has(body.cc-page-feat) {
  background-color: #050a1e;
  overscroll-behavior-y: none;
}

body:has(.footer-hero),
body.cc-page-feat {
  background-color: #fff !important;
  overscroll-behavior-y: none;
}

body:has(.footer-hero) .page-wrapper,
body.cc-page-feat .page-wrapper {
  background-color: #fff;
}

/* Footer com fundo do hero (#050a1e + aurora silk) — home e funcionalidades */
.footer-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #050a1e;
  color: rgba(255, 255, 255, .62);
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 3.75rem !important;
  padding-bottom: 2.5rem !important;
}

.footer-hero canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none;
  filter: saturate(.72) brightness(.78);
  opacity: .9;
}

.footer-hero > .container {
  position: relative;
  z-index: 1;
}

/* CTA card acima do footer — respira, não cola */
#cta.cc-cta-lift,
section#cta.cc-cta-lift {
  padding-bottom: 2.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
  #cta.cc-cta-lift,
  section#cta.cc-cta-lift {
    padding-bottom: 3.25rem;
    margin-bottom: 2rem;
  }
}

.footer-hero .navbar-brand,
.footer-hero .navbar-brand-name,
.footer-hero .text-dark {
  color: #fff !important;
}

.footer-hero h6,
.footer-hero .h6,
.footer-hero .form-label {
  color: rgba(255, 255, 255, .92) !important;
}

.footer-hero h6 a {
  color: rgba(255, 255, 255, .92) !important;
}

.footer-hero p,
.footer-hero .fs-sm,
.footer-hero .fs-xs,
.footer-hero .text-muted {
  color: rgba(255, 255, 255, .55) !important;
}

.footer-hero .nav-link {
  color: rgba(255, 255, 255, .68) !important;
}

.footer-hero .nav-link:hover,
.footer-hero .nav-link:focus {
  color: #fff !important;
}

.footer-hero a.fw-medium,
.footer-hero a[href^="mailto"]:not(.footer-hero-contact) {
  color: #9db0ff !important;
}

.footer-hero a.fw-medium:hover,
.footer-hero a[href^="mailto"]:not(.footer-hero-contact):hover {
  color: #fff !important;
}

.footer-hero-contact {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  width: max-content;
  max-width: 100%;
  padding: .7rem .95rem .7rem .7rem;
  border-radius: .65rem;
  text-decoration: none !important;
  color: inherit !important;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.footer-hero-contact:hover,
.footer-hero-contact:focus {
  background: rgba(91, 124, 250, .16);
  border-color: rgba(91, 124, 250, .4);
  color: inherit !important;
}

.footer-hero-contact-ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: .5rem;
  background: rgba(91, 124, 250, .22);
  color: #c5d0ff;
  font-size: 1.15rem;
}

.footer-hero-contact-copy {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
}

.footer-hero-contact-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  white-space: nowrap;
}

.footer-hero-contact-mail {
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
}

.footer-hero-contact:hover .footer-hero-contact-mail {
  color: #e8ecff;
}

@media (max-width: 575.98px) {
  .footer-hero-contact {
    width: 100%;
  }

  .footer-hero-contact-mail {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.footer-hero .form-control {
  background-color: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
}

.footer-hero .form-control::placeholder {
  color: rgba(255, 255, 255, .4);
}

.footer-hero .form-control:focus {
  background-color: rgba(255, 255, 255, .09);
  border-color: rgba(91, 124, 250, .55);
  color: #fff;
  box-shadow: 0 0 0 .2rem rgba(91, 124, 250, .2);
}

.footer-hero .cc-newsletter-error {
  color: #fecaca;
}

.footer-hero .cc-newsletter-success {
  color: #86efac;
  opacity: 0;
  transform: translateY(.35rem);
  transition: opacity .35s ease, transform .35s ease;
}

.footer-hero .cc-newsletter-form.is-sent .cc-newsletter-success:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.footer-hero .form-control.is-invalid {
  border-color: rgba(248, 113, 113, .7);
}

.footer-hero .input-group > i {
  color: rgba(255, 255, 255, .45) !important;
}

.footer-hero .cc-newsletter-icon-ok {
  display: none !important;
  color: #4ade80 !important;
}

.footer-hero .cc-newsletter-form.is-sent .cc-newsletter-group {
  animation: cc-newsletter-pulse .55s ease;
}

.footer-hero .cc-newsletter-form.is-sent .form-control {
  background-color: rgba(74, 222, 128, .1);
  border-color: rgba(74, 222, 128, .55);
  color: #ecfdf5;
  box-shadow: 0 0 0 .2rem rgba(74, 222, 128, .18);
}

.footer-hero .cc-newsletter-form.is-sent .form-control:disabled {
  opacity: 1;
  cursor: default;
}

.footer-hero .cc-newsletter-form.is-sent .cc-newsletter-icon-mail {
  display: none !important;
}

.footer-hero .cc-newsletter-form.is-sent .cc-newsletter-icon-ok {
  display: inline-block !important;
  animation: cc-newsletter-check .45s cubic-bezier(.2, .9, .3, 1.35);
}

.footer-hero .cc-newsletter-form.is-sent .btn-cc-navy {
  background: #22a06b;
  pointer-events: none;
}

@keyframes cc-newsletter-check {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(.45);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@keyframes cc-newsletter-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-hero .cc-newsletter-success,
  .footer-hero .cc-newsletter-form.is-sent .cc-newsletter-group,
  .footer-hero .cc-newsletter-form.is-sent .cc-newsletter-icon-ok {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

.footer-hero .btn-cc-navy {
  background: #4158c8;
}

.footer-hero .btn-cc-navy:hover,
.footer-hero .btn-cc-navy:focus {
  background: #5b7cfa;
}

.footer-hero.footer-hero-compact {
  padding-top: 1.75rem !important;
  padding-bottom: 1.75rem !important;
}

.footer-hero.footer-hero-compact .footer-hero-top {
  padding-bottom: 1rem;
}

/* Página contato — caber formulário + footer sem scroll em desktop comum */
@media (min-width: 992px) and (min-height: 720px) {
  html {
    height: 100%;
  }

  body.cc-page-contato {
    height: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  body.cc-page-contato .page-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  body.cc-page-contato .contato-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4.75rem 0 1.25rem;
    overflow: hidden;
  }

  body.cc-page-contato .contato-page .container {
    flex: 0 1 auto;
    min-height: 0;
  }

  body.cc-page-contato .contato-eyebrow {
    margin-bottom: 0.45rem;
  }

  body.cc-page-contato .contato-title {
    font-size: clamp(1.65rem, 2.2vw, 2rem);
    margin-bottom: 0.45rem;
    line-height: 1.12;
  }

  body.cc-page-contato .contato-lead {
    font-size: 0.9375rem;
    line-height: 1.5;
  }

  body.cc-page-contato .contato-card {
    margin-top: 1.1rem;
    padding: 1.35rem 1.75rem 1.25rem;
  }

  body.cc-page-contato .contato-card-intro {
    margin-bottom: 1rem;
    font-size: 0.875rem;
  }

  body.cc-page-contato .contato-field {
    margin-bottom: 0.75rem;
  }

  body.cc-page-contato .contato-input {
    height: 2.75rem;
  }

  body.cc-page-contato .contato-submit {
    height: 2.85rem;
    margin-top: 0.25rem;
  }

  body.cc-page-contato .footer-contato {
    flex-shrink: 0;
    padding-top: 1.35rem !important;
    padding-bottom: 1.35rem !important;
  }

  body.cc-page-contato .footer-contato .footer-contato-top {
    padding-bottom: 0.85rem !important;
    margin-bottom: 0.15rem;
  }
}
