@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&family=Nunito:ital,wght@0,200..1000;1,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Sora:wght@100..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap');

/* COBdeSantos - novo visual */
:root {
  --fonte: "Manrope", system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fonte-mono: ui-monospace, 'SF Mono', Consolas, 'Liberation Mono', monospace;

  --azul: #428bca;
  --azul-escuro: #0a2540;
  --azul-rodape: #062a5c;
  --texto: #0a1a3a;
  --fundo: #f6f9ff;
  --verde: #056444;
  --laranja: #ee8a01;
  --roxo: #8a2be2;
  --borda: #dbe4f3;
  --vermelho-vinho: #8d0126;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Seções (rolagem) ---------- */
html {
  scroll-behavior: smooth;
}

.secao {
  scroll-margin-top: 130px;
  padding: 50px 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: var(--fonte);
  font-feature-settings: 'cv11', 'ss01';
  /* "a" de um andar e "1" mais claro: melhor leitura de valores */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--texto);
  background: var(--fundo);
  line-height: 1.3;
  font-style: normal;
}

h1,
h2,
h3,
.card h3 {
  font-family: var(--fonte);
  letter-spacing: -0.02em;
}

/* inputs e botões não herdam a fonte sozinhos */
button,
input,
select,
textarea {
  font-family: inherit;
}

/* números alinhados nos painéis e indicadores */
.kpi,
.numero,
.valor,
table td,
table th,
input[type="number"] {
  font-variant-numeric: tabular-nums;
}

/* códigos de barras, linha digitável, chave PIX */
.mono,
code {
  font-family: var(--fonte-mono);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Botão ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 5px;
  background: linear-gradient(135deg, #1a56ff, #0030c8);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(11, 59, 255, .35);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(11, 59, 255, .45);
}

/* ---------- Header ---------- */
.header {
  background: rgba(243, 248, 255, 0.78);
  height: 88px;
  position: sticky;
  top: 0;
  z-index: 100;

  /* Efeito vidro */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  /* Acabamento */
  border-bottom: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 20px rgb(30 64 100 / 25%);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header .logo img {
  height: 64px;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu a {
  position: relative;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 5px;
  border: 1px solid transparent;
  transition: color .25s, background .25s, border-color .25s,
    box-shadow .25s, transform .25s;
}

.menu a:hover {
  color: var(--azul);
  background: linear-gradient(135deg,
      rgba(255, 255, 255, .75),
      rgba(190, 215, 255, .35));
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 8px 22px rgba(11, 59, 255, .18),
    inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateY(-2px);
}

.menu a.ativo {
  color: var(--azul);
}

.menu a.ativo::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 3px;
  border-radius: 10px;
  background: var(--azul);
}

.header .divisor {
  width: 1px;
  height: 46px;
  background: var(--borda);
}

/* ---------- Hero ---------- */
.hero {
  background: #3b86ff url("images/hero-cobdesantos1.svg") no-repeat right center / cover;
  overflow: hidden;
  height: 570px;
}

.hero .container {
  display: flex;
  align-items: center;
  min-height: 460px;
}

.hero-texto {
  max-width: 520px;
}

.hero-texto h1 {
  font-size: 40px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1px;
  text-justify: inter-word;
}

.hero-texto h1 span {
  color: var(--azul);
  display: block;
}

.hero-texto p {
  font-size: 19px;
  margin-top: 22px;
  text-align: justify;
  text-justify: inter-word;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
}

/* Celular: a imagem iria para trás do texto, então ela fica clarinha */
@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(rgba(245, 248, 255, 0.88), rgba(245, 248, 255, 0.88)),
      url("/images/hero-cobdesantos1.svg") no-repeat 70% center / cover;
  }
  .hero .container { min-height: 380px; }
  .hero-texto h1 { font-size: 30px; }
  .hero-texto p { font-size: 17px; }
}

/* ---------- Destaques ---------- */
.destaques {
  background: var(--fundo);
  padding: 40px 0px;
  margin-right: 30px;
}
.destaques ul {
  display: flex;
  flex-wrap: wrap;
  width: 1360px;
  gap: 16px;
}

.destaques li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 0.89rem;
  padding: 0 28px;
  border-right: 1px solid var(--borda);
}

.destaques li:last-child {
  border-right: 0;
}

.destaques li i {
  display: flex;
  align-items: center;
  color: var(--azul);
  font-size: 28px;
  font-style: normal;
}

.destaques li i img {
  width: 50px;
  height: 50px;
  display: block;
}

/* ---------- Cards ---------- */
.cards {
  background: var(--fundo);
  padding: 42px 0 60px;
}

.cards .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.card {
  background: #fff;
  border: 1px solid var(--borda);
  border-top: 3px solid var(--cor, var(--azul));
  border-radius: 10px;
  padding: 24px 26px 26px;
  box-shadow: 0 6px 18px rgba(10, 37, 64, .08);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(10, 37, 64, .15);
}

.card .icone {
  font-size: 28px;
  color: var(--cor, var(--azul));
  line-height: 1;
}

.card .icone img {
  width: 46px;
  height: 46px;
  display: block;
}

.card h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: 6px 0 8px;
}

.card p {
  font-size: 17px;
  flex: 1;
}

.card .saiba {
  margin-top: 18px;
  font-weight: 700;
  font-size: 18px;
  color: var(--azul);
}

.card.azul {
  --cor: var(--azul);
}

.card.verde {
  --cor: var(--verde);
}

.card.laranja {
  --cor: var(--laranja);
}

.card.vermelho {
  --cor: var(--roxo);
}

/* ---------- Rodapé ---------- */

.footer {
  margin-top: 100px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #061d67 0%, #2a58db 100%);
  color: #e5edff;
  padding: 64px 0 0;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 -4px 24px rgba(10, 46, 124, 0.08);
}

/* faixa de destaque no topo */
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

/* brilhos decorativos de fundo */
.footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 320px at 8% 0%, rgba(255, 255, 255, .14), transparent 70%),
    radial-gradient(480px 360px at 100% 100%, rgba(159, 192, 255, .22), transparent 70%);
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: opacity .2s ease;
}

/* único efeito ao passar o mouse: esmaecimento */
.footer a:hover {
  opacity: .7;
}

.footer a:focus-visible {
  outline: 2px solid #9fc0ff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Grade principal ---------- */

.footer .topo {
  display: grid;
  grid-template-columns: 1.35fr .85fr .95fr 1.25fr;
  gap: 38px;
  align-items: start;
}


/* ---------- Marca do Footer ---------- */

.footer .marca {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 340px;
}

/* Logo */

.footer .marca .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer .marca .logo img {
    display: block;
    width: auto;
    max-width: 190px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 3px 8px rgba(0, 20, 80, .25));
}

/* Conteúdo */

.footer .marca-conteudo {
    margin-top: 18px;
}

.footer .marca .slogan {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.5;
}

.footer .marca .descricao {
    max-width: 310px;
    margin: 10px 0 0;
    color: #c3d3fb;
    font-size: 14px;
    line-height: 1.75;
}

/* Selos e apoios */

.footer .marca-selos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 24px;
}

.footer .marca-selos .selo-apoio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, opacity .25s ease;
}

.footer .marca-selos .selo-apoio img {
    display: block;
    width: auto;
    max-width: 130px;
    max-height: 90px;
    object-fit: contain;
}

.footer .marca-selos .selo-apoio:hover {
    transform: translateY(-3px);
    opacity: .85;
}

/* Mobile */

@media (max-width: 720px) {
    .footer .marca {
        max-width: 100%;
    }

    .footer .marca .descricao {
        max-width: 100%;
    }

    .footer .marca-selos {
        gap: 16px;
        margin-top: 20px;
    }
}

/* ---------- Botão comercial ---------- */

.footer .footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border: 1px solid #fff;
  border-radius: 10px;
  background: #fff;
  color: #0030c8;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0, 20, 80, .25);
}

.footer .footer-cta span {
  font-size: 19px;
  line-height: 1;
}

.footer .footer-cta:hover {
  color: #0030c8;
  opacity: .8;
}

/* ---------- Colunas ---------- */

.footer .coluna > strong {
  position: relative;
  display: block;
  margin-bottom: 22px;
  padding-bottom: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.footer .coluna > a {
  display: block;
  width: fit-content;
  padding: 6px 0;
  color: #fff;
}

/* ---------- Contato ---------- */

.footer .contato-lista {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer .contato-lista li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
}

.footer .ico {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  display: grid;
  place-items: center;
}

.footer .ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.footer .contato-lista small {
  display: block;
  margin-bottom: 2px;
  color: #aebff0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer .contato-lista address {
  color: #fff;
  font-style: normal;
  font-weight: 600;
  line-height: 1.3;
}

.footer .contato-lista a {
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ---------- Base ---------- */

.footer .base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 52px;
  padding: 22px 0;
  color: #b9c9f5;
  font-size: 13px;

  /* faixa mais escura que ocupa a largura toda da tela:
     o background cobre a área central e o box-shadow cobre as laterais,
     os dois com a mesma cor para não aparecer emenda */
  background: rgba(0, 20, 90, .22);
  box-shadow: 0 0 0 100vmax rgba(0, 20, 90, .22);
  clip-path: inset(0 -100vmax);
}

.footer .base-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer .base-links a {
  color: #e5edff;
  font-weight: 600;
}

/* ---------- Responsividade ---------- */

@media (max-width: 1100px) {
  .footer .topo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 30px;
  }
}

@media (max-width: 560px) {
  .footer {
    padding-top: 46px;
  }

  .footer .topo {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer .descricao {
    max-width: 100%;
  }

  .footer .base {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 38px;
  }

  .footer .base-links {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer a {
    transition: none;
  }
}

/* ---------- Sobre o Sistema ---------- */
section#sistema {
  background: #fff;
}

.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--azul);
  background: #e8f0ff;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.sistema-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.sistema-head h2 {
  font-size: 2rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.sistema-head p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--cor-texto-secundario, #687386);
  font-size: 1.05rem;
  line-height: 1.3;
}

.modulos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.modulo {
  background: #fff;
  border: 1px solid var(--borda);
  border-top: 3px solid var(--cor, var(--borda));
  border-radius: 10px;
  padding: 26px 24px 28px;
  box-shadow: 0 6px 18px rgba(10, 37, 64, .08);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.modulo:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(10, 37, 64, .12);
}

/* cores padrão (aparecem se o JavaScript não rodar) */
.modulo:nth-child(4n+1) {
  --cor: var(--verde);
}

.modulo:nth-child(4n+2) {
  --cor: var(--laranja);
}

.modulo:nth-child(4n+3) {
  --cor: var(--roxo);
}

.modulo:nth-child(4n+4) {
  --cor: var(--vermelho-vinho);
}

.modulo .ico {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #eaf1ff;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.modulo .ico img {
  width: 30px;
  height: 30px;
  display: block;
}

.modulo h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
}

.modulo p {
  font-size: 17px;
  color: #3a4a68;
}

/* faixa de chamada */
.sistema-cta {
  margin-top: 48px;
  background: linear-gradient(135deg, #0a2f78, #0b3bff);
  color: #fff;
  border-radius: 10px;
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 18px 40px rgba(11, 59, 255, .22);
}

.sistema-cta strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.sistema-cta p {
  opacity: .9;
  font-size: 17px;
}

.sistema-cta .btn {
  background: #fff;
  color: var(--azul);
  border-color: #fff;
  box-shadow: none;
}

.sistema-cta .btn:hover {
  box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

@media (max-width: 1100px) {
  .modulos {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .secao {
    padding: 56px 0;
  }

  .sistema-head h2 {
    font-size: 28px;
  }

  .modulos {
    grid-template-columns: 1fr;
  }

  .sistema-cta {
    padding: 26px 22px;
  }
}

/* ---------- Sobre o Sistema: modal dos módulos ----------
   Cole no FINAL do bloco "Sobre o Sistema" do seu CSS.
   Tudo que depende do JS fica sob .js-modulos: se o JS não rodar,
   os cards continuam mostrando o texto completo. */

/* --- Cards com texto limitado --- */

.js-modulos .modulo {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.js-modulos .modulo p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;      /* quantidade de linhas visíveis */
  line-clamp: 3;
  overflow: hidden;
}

/* Botão "Ler mais" (criado pelo JS) */
.modulo-mais {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;           /* empurra para o rodapé do card */
  padding: 14px 0 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--azul, #1d4ed8);
  cursor: pointer;
}

.modulo-mais span {
  transition: transform .2s ease;
}

.modulo:hover .modulo-mais span,
.modulo-mais:focus-visible span {
  transform: translateX(4px);
}

.modulo-mais:focus-visible {
  outline: 2px solid var(--azul, #1d4ed8);
  outline-offset: 4px;
  border-radius: 4px;
}

/* --- Modal --- */

html.modal-aberto {
  overflow: hidden;           /* trava a rolagem da página ao fundo */
}

.modal-modulo {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  overflow: auto;
  box-shadow: 0 24px 60px rgba(10, 37, 64, .28);
}

.modal-modulo::backdrop {
  background: rgba(10, 25, 60, .55);
  backdrop-filter: blur(3px);
}

.modal-modulo[open] {
  animation: modal-entrar .22s ease;
}

.modal-modulo[open]::backdrop {
  animation: modal-fade .22s ease;
}

@keyframes modal-entrar {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

@keyframes modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-corpo {
  position: relative;
  padding: 36px 32px 32px;
}

.modal-ico {
  margin-bottom: 18px;
}

.modal-modulo h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f1b33;
}

.modal-modulo p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: #3a4a68;
}

.modal-fechar {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5a6a88;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.modal-fechar svg {
  width: 20px;
  height: 20px;
}

.modal-fechar:hover {
  background: #eef2fb;
  color: #172033;
}

.modal-fechar:focus-visible {
  outline: 2px solid var(--azul, #1d4ed8);
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .modal-corpo {
    padding: 32px 22px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-modulo[open],
  .modal-modulo[open]::backdrop {
    animation: none;
  }

  .modulo-mais span {
    transition: none;
  }
}

/* ---------- Sobre a Empresa ---------- */
section#empresa {
  background: var(--fundo);
}

/* alterna o fundo: empresa (branco) -> sistema (cinza-azulado) */
section#sistema {
  background: var(--fundo);
}

.empresa-intro {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 56px;
}

.empresa-texto h2 {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.empresa-texto .lead {
  font-size: 20px;
  color: #24365a;
  margin-bottom: 30px;
}

.empresa-texto h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.empresa-texto p {
  font-size: 1.05rem;
  color: #3a4a68;
  text-align: justify;
}

/* painel de destaque */
.empresa-destaque {
  background: linear-gradient(135deg, #0a2f78, #0b3bff);
  color: #fff;
  border-radius: 10px;
  padding: 36px 34px;
  box-shadow: 0 18px 40px rgba(11, 59, 255, .22);
}

.empresa-destaque .anos {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.empresa-destaque .anos strong {
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.empresa-destaque .anos span {
  font-size: 17px;
  line-height: 1.35;
  opacity: .92;
}

.empresa-destaque ul {
  display: grid;
  gap: 14px;
}

.empresa-destaque li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
  font-size: 17px;
}

.empresa-destaque li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
}

/* missão / visão / valores */
.pilares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pilar {
  background: #fff;
  border: 1px solid var(--borda);
  border-top: 3px solid var(--cor);
  border-radius: 10px;
  padding: 30px 28px 32px;
  box-shadow: 0 6px 18px rgba(10, 37, 64, .06);
  transition: transform .2s, box-shadow .2s;
}

.pilar:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(10, 37, 64, .12);
}

.pilar .ico {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--cor) 12%, #fff);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.pilar .ico img {
  width: 34px;
  height: 34px;
  display: block;
}

.pilar h3 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.pilar p {
  font-size: 16.5px;
  color: #3a4a68;
}

.pilar.missao {
  --cor: var(--verde);
}

.pilar.visao {
  --cor: var(--laranja);
}

.pilar.valores {
  --cor: var(--vermelho-vinho);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--vermelho-vinho);
  background: color-mix(in srgb, var(--vermelho-vinho) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--vermelho-vinho) 22%, #fff);
  padding: 6px 13px;
  border-radius: 999px;
}

@media (max-width: 1100px) {
  .empresa-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pilares {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .empresa-texto h2 {
    font-size: 32px;
  }

  .empresa-destaque {
    padding: 28px 22px;
  }

  .empresa-destaque .anos strong {
    font-size: 52px;
  }
}

/* ---------- Carteiras ---------- */
section#carteiras {
  background: var(--fundo);
}

.carteiras-cta {
  position: relative;
  overflow: hidden;
  padding: 38px 44px;
  gap: 28px;
  box-shadow: 0 18px 40px rgba(11, 59, 255, .22);
}

/* brilho suave no canto esquerdo */
.carteiras-cta::before {
  content: "";
  position: absolute;
  top: -140px;
  left: -90px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%);
  pointer-events: none;
}

.carteira-conteudo {
  display: flex;
  align-items: center;
  gap: 22px;
}

.carteira-icone {
  display: grid;
  place-items: center;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.carteira-texto h2 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.carteira-texto p {
  color: #fff;
  opacity: .9;
  font-size: 1.05rem;
}

/* ---------- Botão ---------- */

.btn-carteiras {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 5px;
  background: #fff;
  color: #0030c8;
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 20, 80, .25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn-carteiras span {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  transition: transform .25s ease;
}

.btn-carteiras:hover {
  color: #0030c8;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 20, 80, .35);
  animation: none;
}

.btn-carteiras:hover::before {
  left: 130%;
}

.btn-carteiras:hover span {
  transform: translateX(5px);
}

.btn-carteiras:active {
  transform: translateY(-1px);
}

.btn-carteiras:focus-visible {
  outline: 3px solid #9fc0ff;
  outline-offset: 3px;
}

/* ---------- Celular ---------- */

@media (max-width: 720px) {
  .carteiras-cta {
    padding: 28px 22px;
  }

  .carteira-conteudo {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .carteira-texto h2 {
    font-size: 1.4rem;
  }

  .carteira-texto p {
    font-size: 1rem;
  }

  .btn-carteiras {
    width: 100%;
    justify-content: center;
  }
}

/* faixa que corta o que sai da tela, com as pontas esmaecidas */
.carteiras-marquee {
  overflow: hidden;
  padding: 8px 0; /* espaço para a sombra dos chips não ser cortada */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

/* trilho com duas cópias da lista, andando da direita para a esquerda */
.carteiras-track {
  display: flex;
  width: max-content;
  animation: carteiras-rolar 60s linear infinite; /* menor = mais rápido */
}

/* pausa ao passar o mouse (apague este bloco se não quiser) */
.carteiras-marquee:hover .carteiras-track {
  animation-play-state: paused;
}

.carteiras-lista {
  display: flex;
  flex-shrink: 0;
  gap: 12px;
  padding-right: 12px; /* igual ao gap: garante o looping sem emenda */
}

@keyframes carteiras-rolar {
  to {
    transform: translateX(-50%);
  }
}

/* segunda linha: vai no sentido contrário e um pouco mais devagar */
.carteiras-track + .carteiras-track {
  margin-top: 20px;
}

.carteiras-track--inversa {
  animation-direction: reverse;
  animation-duration: 75s;
}

.carteiras-lista li {
  padding: 10px 18px;
  border: 1px solid var(--borda);
  border-radius: 999px;
  background: var(--fundo);
  color: var(--texto);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(10, 37, 64, .05);
}

@media (max-width: 720px) {
  .carteiras-lista li {
    font-size: 14px;
    padding: 8px 14px;
  }
}

/* quem prefere menos movimento vê a lista parada, em várias linhas */
@media (prefers-reduced-motion: reduce) {
  .carteiras-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .carteiras-track {
    animation: none;
    width: auto;
  }

  .carteiras-lista {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }

  .carteiras-lista[aria-hidden="true"] {
    display: none;
  }
}

/* ---------- Contato ---------- */
section#contato {
  background: var(--fundo, #f5f8ff);
}

/* --- Cabeçalho da seção --- */

.contato-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.contato-head h2 {
  font-size: 1.7rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.contato-head p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--cor-texto-secundario, #687386);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* --- Grid de 2 colunas --- */

.contato-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

/* --- Coluna de informações --- */

.contato-info {
  padding-top: 8px;
}

.contato-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: #0f1b33;
}

.contato-info-sub {
  margin: 0 0 28px;
  color: var(--cor-texto-secundario, #687386);
  font-size: 1rem;
  line-height: 1.55;
}

.contato-beneficios {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.contato-beneficios li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contato-beneficios strong {
  display: block;
  color: #172033;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.contato-beneficios li > div > span {
  display: block;
  margin-top: 2px;
  color: #6b7a96;
  font-size: 0.88rem;
  line-height: 1.4;
}

.contato-icone {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--azul, #1d4ed8);
  background: rgba(29, 78, 216, .10);
}

.contato-icone svg {
  width: 20px;
  height: 20px;
}

/* --- Formulário --- */
.contato-form {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--borda);
  border-top: 3px solid var(--azul);
  border-radius: 10px;
  padding: 30px 28px 32px;
  box-shadow: 0 6px 18px rgba(10, 37, 64, .06);
  
}

.contato-form h3 {
  margin: 0 0 6px;
  color: #172033;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contato-form-sub {
  color: #5a6a88;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 22px;
}

.contato-form .campo {
  margin-bottom: 16px;
}

.contato-form .campo-duplo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contato-form .campo label {
  display: block;
  margin-bottom: 7px;
  color: #263247;
  font-size: 0.88rem;
  font-weight: 600;
}

.contato-form .campo input,
.contato-form .campo textarea {
  width: 100%;
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  color: var(--texto, #172033);
  background: #f9fbff;
  border: 1px solid var(--borda, #dbe3f0);
  border-radius: 8px;
  padding: 10px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.contato-form .campo textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.contato-form .campo input::placeholder,
.contato-form .campo textarea::placeholder {
  color: #8a98b3;
}

.contato-form .campo input:hover,
.contato-form .campo textarea:hover {
  border-color: #c3cfe4;
}

.contato-form .campo input:focus,
.contato-form .campo textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(66, 114, 202, 0.18);
}

.contato-form .campo input.invalido,
.contato-form .campo textarea.invalido {
  border-color: #c0102a;
  background: #fff6f7;
}

.contato-form .campo input.invalido:focus,
.contato-form .campo textarea.invalido:focus {
  box-shadow: 0 0 0 3px rgba(192, 16, 42, .15);
}

/* --- Honeypot --- */

.contato-form .campo-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Botão (o visual vem do .btn global) --- */

.contato-form .btn {
  margin-top: 4px;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.contato-form .btn:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

/* --- Status (sucesso / erro) --- */

.contato-form .form-status {
  margin: 14px 0 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
}

.contato-form .form-status:empty {
  display: none;
}

.contato-form .form-status.ok,
.contato-form .form-status.erro {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 8px;
}

.contato-form .form-status.ok {
  color: #056444;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.contato-form .form-status.erro {
  color: #a30d24;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.contato-form .form-status.ok::before,
.contato-form .form-status.erro::before {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.contato-form .form-status.ok::before {
  content: "✓";
  background: #059669;
}

.contato-form .form-status.erro::before {
  content: "!";
  background: #c0102a;
}

/* --- Nota de privacidade --- */

.contato-privacidade {
  margin: 14px 0 0;
  color: #7a89a5;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

/* --- Responsivo --- */

@media (max-width: 900px) {
  .contato-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contato-info {
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .contato-head {
    margin-bottom: 32px;
  }

  .contato-form {
    padding: 30px 20px 22px;
  }

  .contato-form .campo-duplo {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* ---------- Menu mobile ---------- */
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  border-radius: 3px;
  background: var(--azul-escuro);
  transition: transform .25s, opacity .25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1100px) {
  .header {
    height: 72px;
  }

  .header .container {
    position: relative;
  }

  .header .btn,
  .header .divisor {
    display: none;
  }

  /* o CTA vira item dentro do menu aberto, ou some */
  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 8px 24px 20px;
    box-shadow: 0 14px 24px rgba(10, 37, 64, .12);
  }

  .menu.aberto {
    display: flex;
  }

  .menu a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--borda);
  }
}

.voltar-topo {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 52px;
  height: 52px;
  border: 2px solid #3d7bff;
  border-radius: 50%;
  background: linear-gradient(180deg, #1a56ff, #0030c8);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(11, 59, 255, .35);

  /* escondido por padrão */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, box-shadow .2s;
}

.voltar-topo.visivel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.voltar-topo:hover {
  box-shadow: 0 12px 26px rgba(11, 59, 255, .5);
  transform: translateY(-3px);
}

.voltar-topo:focus-visible {
  outline: 3px solid #9fc0ff;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .voltar-topo {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }
}

/* =====================================================
   AJUSTE DE DENSIDADE VISUAL - DESKTOP
   Aproxima a visualização de 90% sem usar zoom.
===================================================== */

@media (min-width: 1101px) {

  /* Base */
  html {
    font-size: 15px;
  }

  body {
    font-size: 15px;
  }

  /* Containers */
  .container {
    max-width: 1320px;
    padding-left: 22px;
    padding-right: 22px;
  }

  /* Espaçamento geral das seções */
  .secao {
    padding-top: 50px;
    padding-bottom: 80px;
  }

  /* Header */
  .header {
    height: 80px;
  }

  .header .logo img {
    height: 58px;
  }

  .menu a {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  /* Hero */
  .hero .container {
    min-height: 325px;
    gap: 24px;
  }

  .hero-texto {
    max-width: 520px;
  }

  .hero-texto h1 {
    font-size: 33px;
  }

  .hero-texto p {
    font-size: 18px;
    margin-top: 18px;
  }

  /* Destaques */
  .destaques {
    padding: 32px 0;
  }

  .destaques li {
    font-size: 0.89rem;
    padding: 0 20px;
    gap: 10px;
  }

  .destaques li i img {
    width: 42px;
    height: 42px;
  }

  /* Cards */
  .cards {
    padding: 34px 0 48px;
  }

  .cards .container {
    gap: 22px;
  }

  .card {
    padding: 20px 22px 22px;
    border-radius: 10px;
  }

  .card .icone img {
    width: 40px;
    height: 40px;
  }

  .card h3 {
    font-size: 16px;
  }

  .card p {
    font-size: 15px;
    text-align: justify;
  }

  .card .saiba {
    font-size: 16px;
    margin-top: 14px;
  }

  /* Títulos das seções */
  .sistema-head,
  .contato-head,
  .carteiras-head {
    margin-bottom: 38px;
  }

  .sistema-head h2,
  .empresa-texto h2 {
    font-size: 1.85rem;
  }

  /* Módulos */
  .modulos {
    gap: 20px;
  }

  .modulo {
    padding: 22px 20px 24px;
    border-radius: 10px;
  }

  .modulo .ico {
    width: 50px;
    height: 50px;
    margin-bottom: 13px;
  }

  .modulo h3 {
    font-size: 17px;
  }

  .modulo p {
    font-size: 15px;
    text-align: justify;
  }

  /* Empresa */
  .empresa-intro {
    gap: 42px;
    margin-bottom: 42px;
  }

  .empresa-texto .lead {
    font-size: 1.05rem;
    margin-bottom: 22px;
  }

  .empresa-destaque {
    padding: 30px;
    border-radius: 10px;
  }

  .empresa-destaque .anos strong {
    font-size: 56px;
  }

  .pilares {
    gap: 22px;
  }

  .pilar {
    padding: 24px 22px 26px;
  }

  .pilar h3 {
    font-size: 19px;
  }

  .pilar p {
    font-size: 15px;
    text-align: justify;
  }

  /* Formulário de contato */
  .contato-form {
    padding: 24px 28px;
    border-radius: 10px;
  }

  .contato-form .campo {
    margin-bottom: 11px;
  }

  .contato-conteudo {
    max-width: 1060px;
    margin: 0 auto;
  }

  /* Formulário de propostas */
  .secao-propostas {
    padding: 48px 0;
  }

  .propostas-head {
    margin-bottom: 40px;
  }

  .propostas-conteudo {
    max-width: 1060px;
  }

  .propostas-info h3 {
    font-size: 1.85rem;
    margin: 18px 0 14px;
  }

  .propostas-beneficios {
    gap: 14px;
    margin-top: 25px;
  }

  .propostas-form {
    padding: 24px 28px;
    border-radius: 10px;
  }

  .propostas-form .campo {
    margin-bottom: 17px;
  }

  .propostas-form input:not([type="checkbox"]),
  .propostas-form select,
  .propostas-form textarea {
    min-height: 44px;
    padding: 10px 13px;
  }

  .propostas-form textarea {
    min-height: 100px;
  }

  /* Footer */
  .footer {
    padding-top: 40px;
  }

  .footer .topo {
    gap: 38px;
  }

  .footer .info {
    gap: 24px;
  }
}

@media (max-width: 1380px) {

  .sobre-sistema {
    max-width: 1100px;
    margin: 0 auto;
  }

  .modulo .ico {
    width: 44px;
    height: 44px;
  }

  .empresa-conteudo {
    max-width: 1100px;
    margin: 0 auto;
  }

  .pilar .ico {
    width: 48px;
    height: 48px;
  }

  .carteiras-conteudo {
    max-width: 1100px;
    margin: 0 auto;
  }

  .carteiras-cta {
    padding: 30px 34px;
  }

  .carteira-icone {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
  }

  .carteira-texto h2 {
    font-size: 1.5rem;
  }

  .carteira-texto p {
    font-size: 1rem;
  }

  .btn-carteiras {
    padding: 13px 22px;
    font-size: 14px;
  }
}

/* =====================================================
   REFINAMENTO RESPONSIVO - TABLET E MOBILE
   Sobrescreve somente os pontos que causavam quebra,
   excesso de largura ou espaçamento em telas menores.
===================================================== */

/* Base segura para telas estreitas */
html,
body {
  width: 100%;
  max-width: 100%;
}

body {
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

.container {
  width: 100%;
  min-width: 0;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

/* Corrige a largura fixa que provocava rolagem horizontal */
.destaques {
  margin-right: 0;
}

.destaques ul {
  width: 100%;
  max-width: 100%;
}

/* Evita que grids e flex-items forcem a largura dos pais */
.cards .container,
.modulos,
.empresa-intro,
.pilares,
.propostas-conteudo,
.contato-grid,
.contato-conteudo,
.footer .topo {
  min-width: 0;
}

.card,
.modulo,
.pilar,
.propostas-info,
.propostas-form,
.contato-form {
  min-width: 0;
}

/* Tablet */
@media (min-width: 721px) and (max-width: 1100px) {
  .container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero {
    height: auto;
    min-height: 440px;
    background-position: 65% center;
  }

  .hero .container {
    min-height: 440px;
  }

  .hero-texto {
    max-width: 470px;
  }

  .hero-texto h1 {
    font-size: clamp(30px, 4vw, 38px);
  }

  .destaques ul {
    justify-content: center;
    gap: 18px 8px;
  }

  .destaques li {
    padding: 8px 16px;
    border-right: 0;
  }

  .cards .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .modulos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .empresa-intro {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .pilares {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .propostas-conteudo {
    grid-template-columns: 1fr;
    gap: 34px;
    max-width: 760px;
  }

  .propostas-info {
    max-width: 100%;
    text-align: center;
  }

  .propostas-beneficios {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .footer .topo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Celulares */
@media (max-width: 720px) {
  html {
    scroll-padding-top: 82px;
  }

  .secao {
    padding: 48px 0;
    scroll-margin-top: 82px;
  }

  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Header e menu */
  .header {
    height: 68px;
  }

  .header .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header .logo img {
    height: 48px;
    max-width: 190px;
    object-fit: contain;
  }

  .menu {
    top: 68px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 8px 20px 18px;
    border-top: 1px solid var(--borda);
  }

  .menu a {
    display: block;
    width: 100%;
    padding: 14px 6px;
    font-size: 0.95rem;
  }

  .menu a.ativo::after {
    left: 6px;
    right: auto;
    bottom: 5px;
    width: 34px;
  }

  .menu-toggle {
    padding: 8px;
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 0;
    background:
      linear-gradient(rgba(245, 248, 255, .92), rgba(245, 248, 255, .92)),
      url("images/hero-cobdesantos1.svg") no-repeat 68% center / cover;
  }

  .hero .container {
    min-height: 390px;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero-texto {
    width: 100%;
    max-width: 100%;
  }

  .hero-texto h1 {
    font-size: clamp(29px, 8vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.8px;
  }

  .hero-texto p {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero .btn {
    max-width: 100%;
    justify-content: center;
  }

  /* Destaques */
  .destaques {
    padding: 26px 0;
  }

  .destaques ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .destaques li {
    min-width: 0;
    padding: 4px 0;
    border: 0;
    gap: 9px;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .destaques li i img {
    width: 38px;
    height: 38px;
    object-fit: contain;
  }

  /* Cards */
  .cards {
    padding: 28px 0 42px;
  }

  .cards .container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    padding: 22px 20px;
  }

  .card h3 {
    font-size: 17px;
  }

  .card p {
    font-size: 15px;
    line-height: 1.55;
  }

  .card .saiba {
    font-size: 15px;
  }

  /* Cabeçalhos das seções */
  .sistema-head,
  .contato-head,
  .propostas-head {
    margin-bottom: 30px;
  }

  .sistema-head h2,
  .empresa-texto h2,
  .contato-head h2,
  .propostas-head h2 {
    font-size: clamp(24px, 6vw, 30px);
    line-height: 1.2;
  }

  .sistema-head p,
  .contato-head p,
  .propostas-head p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Sistema */
  .modulos {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .modulo {
    padding: 22px 20px;
  }

  .modulo h3 {
    font-size: 17px;
  }

  .modulo p {
    font-size: 15px;
    line-height: 1.55;
  }

  .sistema-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 25px 20px;
    gap: 18px;
  }

  .sistema-cta strong {
    font-size: 21px;
    line-height: 1.25;
  }

  .sistema-cta p {
    font-size: 15px;
    line-height: 1.5;
  }

  .sistema-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* Empresa */
  .empresa-intro {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 34px;
  }

  .empresa-texto .lead {
    font-size: 17px;
    line-height: 1.55;
    margin-bottom: 22px;
    text-align: justify;
  }

  .empresa-texto h3 {
    font-size: 19px;
  }

  .empresa-texto p {
    font-size: 15px;
    line-height: 1.6;
  }

  .empresa-destaque {
    padding: 26px 20px;
  }

  .empresa-destaque .anos {
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .empresa-destaque .anos strong {
    font-size: 48px;
  }

  .empresa-destaque .anos span {
    font-size: 15px;
  }

  .empresa-destaque li {
    font-size: 15px;
    line-height: 1.45;
  }

  .pilares {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pilar {
    padding: 24px 20px;
  }

  .pilar h3 {
    font-size: 19px;
  }

  .pilar p {
    font-size: 15px;
    line-height: 1.55;
  }

  .chips {
    gap: 7px;
  }

  .chips li {
    font-size: 13px;
  }

  /* Carteiras */
  .carteiras-cta {
    padding: 26px 20px;
    gap: 20px;
  }

  .carteira-conteudo {
    align-items: flex-start;
    gap: 14px;
  }

  .carteira-icone {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
  }

  .carteira-texto {
    min-width: 0;
  }

  .carteira-texto h2 {
    font-size: 21px;
    line-height: 1.25;
  }

  .carteira-texto p {
    font-size: 15px;
    line-height: 1.5;
  }

  .btn-carteiras {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding: 14px 16px;
  }

  .carteiras-marquee {
    margin-left: -18px;
    margin-right: -18px;
  }

  .carteiras-lista li {
    font-size: 13px;
    padding: 8px 13px;
  }

  /* Contato */
  .contato-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contato-form {
    padding: 22px 18px;
  }

  .contato-form h3 {
    font-size: 1.15rem;
    line-height: 1.3;
  }

  .contato-form .campo-duplo {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contato-form .campo input,
  .contato-form .campo textarea {
    font-size: 16px;
    min-height: 46px;
  }

  .contato-form .campo textarea {
    min-height: 120px;
  }

  .contato-form .btn-enviar {
    width: 100%;
  }

  /* Propostas */
  .secao-propostas {
    padding: 48px 0;
  }

  .propostas-head {
    margin-bottom: 30px;
  }

  .propostas-conteudo {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .propostas-info {
    max-width: 100%;
    text-align: left;
  }

  .propostas-info h3 {
    font-size: 24px;
    line-height: 1.2;
  }

  .propostas-info > p {
    font-size: 15px;
    line-height: 1.6;
  }

  .propostas-beneficios {
    display: flex;
    flex-direction: column;
    gap: 13px;
    max-width: 100%;
    margin: 22px 0 0;
  }

  .propostas-beneficios li {
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.45;
  }

  .propostas-form {
    padding: 22px 17px;
  }

  .propostas-form-head h3 {
    font-size: 19px;
    line-height: 1.3;
  }

  .propostas-form-head p {
    font-size: 13px;
  }

  .propostas-progresso {
    gap: 5px;
    margin-bottom: 24px;
  }

  .progresso-item {
    min-width: 0;
    gap: 5px;
  }

  .progresso-numero {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    font-size: 12px;
  }

  .progresso-texto {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 11px;
    line-height: 1.2;
  }

  .progresso-linha {
    min-width: 8px;
  }

  .etapa-titulo {
    gap: 10px;
    margin-bottom: 22px;
  }

  .etapa-titulo h4 {
    font-size: 15px;
    line-height: 1.35;
  }

  .etapa-titulo p {
    font-size: 12px;
    line-height: 1.45;
  }

  .propostas-form .campo {
    margin-bottom: 17px;
  }

  .propostas-form .campo label {
    font-size: 13px;
    line-height: 1.4;
  }

  .propostas-form input:not([type="checkbox"]),
  .propostas-form select,
  .propostas-form textarea {
    min-height: 46px;
    padding: 11px 12px;
    font-size: 16px;
  }

  .propostas-form textarea {
    min-height: 110px;
  }

  .propostas-form .campo-duplo {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .funcionalidades-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .funcionalidade-item {
    min-height: 44px;
    padding: 10px;
  }

  .funcionalidade-item span {
    font-size: 13px;
  }

  .propostas-acoes {
    margin-top: 22px;
  }

  .propostas-acoes-duplas {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .propostas-acoes-duplas button,
  .propostas-acoes > button,
  .propostas-form .btn,
  .propostas-form .btn-secundario {
    width: 100%;
    min-height: 46px;
    justify-content: center;
  }

  .propostas-privacidade {
    font-size: 11px;
    line-height: 1.5;
  }

  /* Rodapé */
  .footer {
    margin-top: 55px;
    padding: 42px 0 0;
  }

  .footer .topo {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer .marca .logo img {
    max-width: 175px;
    height: 44px;
  }

  .footer .slogan {
    font-size: 15px;
  }

  .footer .descricao {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.65;
  }

  .footer .coluna > strong {
    margin-bottom: 12px;
  }

  .footer .contato-lista li {
    gap: 10px;
    padding: 10px;
  }

  .footer .base {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-top: 32px;
    padding: 20px 0;
    font-size: 12px;
  }

  .footer .base-links {
    gap: 10px 16px;
  }

  /* Voltar ao topo */
  .voltar-topo {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

/* Celulares compactos */
@media (max-width: 380px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .hero .container {
    min-height: 350px;
  }

  .hero-texto h1 {
    font-size: 28px;
  }

  .destaques ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .destaques li {
    font-size: 13px;
  }

  .propostas-form {
    padding-left: 14px;
    padding-right: 14px;
  }

  .progresso-texto {
    font-size: 10px;
  }

  .carteira-conteudo {
    flex-direction: column;
  }
}

/* Dispositivos sem hover: evita efeitos presos após o toque */
@media (hover: none) {
  .btn:hover,
  .card:hover,
  .modulo:hover,
  .pilar:hover,
  .btn-carteiras:hover,
  .voltar-topo:hover {
    transform: none;
  }

  .carteiras-marquee:hover .carteiras-track {
    animation-play-state: running;
  }
}

/* Acessibilidade: respeita a preferência por menos movimento */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   REFINO DO BANNER / HERO — tipografia e contraste
   Mantém a imagem original e melhora a leitura do conteúdo.
    0%: branco quase totalmente opaco.
    34%: continua bastante branco.
    49%: começa a revelar a imagem.
    69%: imagem fica mais visível.
    100%: imagem praticamente sem interferência do branco.
   ========================================================== */
.hero {
  position: relative;
  isolation: isolate;
  height: auto;
  min-height: 520px;
  background-color: #edf4f8;
  background-image:
    linear-gradient(90deg,
      rgba(247, 251, 250, .99) 0%,
      rgba(247, 251, 250, .97) 34%,
      rgba(170, 210, 255, 0.80) 49%,
      rgba(247, 251, 250, .28) 69%,
      rgba(247, 251, 250, .04) 100%),
    url("images/hero-cobdesantos1.svg");
  background-repeat: no-repeat;
  background-position: center, right center;
  background-size: cover;
}

.hero .container {
  min-height: 520px;
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  align-items: center;
}

.hero-texto {
  position: relative;
  z-index: 1;
  width: min(100%, 610px);
  max-width: 610px;
}

.hero-texto h1 {
  max-width: 600px;
  color: #102d3b;
  font-family: "Sora", sans-serif;
  font-size: clamp(38px, 3.5vw, 50px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.8px;
  text-wrap: balance;
  text-shadow: 6px 6px 7px rgb(0 0 0 / 8%);
}

.hero-texto h1 span {
  color: var(--azul);
  font-weight: 800;
}

.hero-texto p {
  max-width: 530px;
  margin-top: 24px;
  color: #405660;
  font-family: "Manrope", sans-serif;
  font-size: clamp(16px, 1.35vw, 18px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.15px;
}

.hero .btn {
  margin-top: 28px;
  min-height: 50px;
  padding: 15px 25px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .1px;
  box-shadow: 0 8px 22px rgba(5, 100, 68, .22);
}

.hero .btn:hover {
  box-shadow: 0 11px 26px rgba(5, 100, 68, .3);
}

/* Telas médias: preserva a imagem, mas reforça a área de leitura. */
@media (min-width: 721px) and (max-width: 1100px) {
  .hero {
    min-height: 470px;
    background-image:
      linear-gradient(90deg,
      rgba(247, 251, 250, .99) 0%,
      rgba(247, 251, 250, .97) 34%,
      rgba(170, 210, 255, 0.80) 49%,
      rgba(247, 251, 250, .28) 69%,
      rgba(247, 251, 250, .04) 100%),
      url("images/hero-cobdesantos1.svg");
    background-position: center, 65% center;
  }

  .hero .container {
    min-height: 470px;
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero-texto {
    max-width: 560px;
  }

  .hero-texto h1 {
    font-size: clamp(34px, 4.3vw, 44px);
  }
}

/* Mobile: texto em primeiro plano e imagem mais discreta ao fundo. */
@media (max-width: 720px) {
  .hero {
    min-height: 0;
    background-image:
      linear-gradient(180deg,
      rgba(247, 251, 250, .99) 0%,
      rgba(247, 251, 250, .97) 34%,
      rgba(170, 210, 255, 0.80) 49%,
      rgba(247, 251, 250, .28) 69%,
      rgba(247, 251, 250, .04) 100%),
      url("images/hero-cobdesantos1.svg");
    background-position: center, 68% center;
    background-size: cover;
  }

  .hero .container {
    min-height: 0;
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .hero-texto {
    max-width: 100%;
  }

  .hero-texto h1 {
    max-width: 560px;
    font-size: clamp(32px, 8.2vw, 40px);
    line-height: 1.14;
    letter-spacing: -1.2px;
  }

  .hero-texto p {
    max-width: 520px;
    margin-top: 19px;
    font-size: 16px;
    line-height: 1.7;
  }

  .hero .btn {
    margin-top: 24px;
  }
}

@media (max-width: 380px) {
  .hero .container {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .hero-texto h1 {
    font-size: 30px;
    letter-spacing: -.9px;
  }

  .hero-texto p {
    font-size: 15px;
    line-height: 1.65;
  }
}


/* ==========================================================
   AJUSTE FINAL DO BANNER NO MOBILE
   Prioriza a leitura e mantém a imagem como elemento decorativo.
   ========================================================== */
@media (max-width: 720px) {
  .hero {
    height: auto;
    min-height: 0;
    background-color: #f7fbfa;
    background-image:
      linear-gradient(
        180deg,
        rgba(247, 251, 250, .985) 0%,
        rgba(247, 251, 250, .97) 58%,
        rgba(247, 251, 250, .91) 100%
      ),
      url("images/hero-cobdesantos1.svg");
    background-repeat: no-repeat;
    background-position: center, center bottom;
    background-size: cover, 100% auto;
  }

  .hero .container {
    min-height: 0;
    padding: 48px 18px 64px;
    align-items: flex-start;
  }

  .hero-texto {
    width: 100%;
    max-width: 100%;
  }

  .hero-texto h1 {
    max-width: 560px;
    color: #102d3b;
    font-family: "Sora", sans-serif;
    font-size: clamp(29px, 7.8vw, 36px);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -1.05px;
    text-align: left;
    text-shadow: 0 2px 5px rgba(16, 45, 59, .07);
    text-wrap: balance;
  }

  .hero-texto h1 span {
    display: block;
    color: #287db8;
  }

  .hero-texto p {
    max-width: 540px;
    margin-top: 18px;
    color: #263f4b;
    font-family: "Manrope", sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.65;
    letter-spacing: 0;
    text-align: left;
    text-justify: auto;
    text-shadow: none;
  }

  .hero .btn {
    margin-top: 22px;
  }
}

/* Celulares compactos */
@media (max-width: 380px) {
  .hero .container {
    padding: 40px 15px 56px;
  }

  .hero-texto h1 {
    font-size: 28px;
    line-height: 1.17;
    letter-spacing: -.8px;
  }

  .hero-texto p {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.6;
  }
}
