/* =====================================================================
   ACIPOÁ — Cabeçalho, rodapé e componentes do site público
   ===================================================================== */

/* ---------------------------------------------------------------------
   Cabeçalho
   --------------------------------------------------------------------- */

.cabecalho {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
}

.cabecalho__topo {
  background: #fff;
  padding: 14px 0;
}

.cabecalho__topo .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cabecalho__marca {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cabecalho__logo img {
  width: auto;
  height: 82px;
}

.cabecalho__parceiro img {
  height: 26px;
  width: auto;
  opacity: 0.9;
}

.cabecalho__acoes {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.redes {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.redes li { margin: 0; }

.redes a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--escuro-2);
  color: #fff;
  transition: background var(--transicao), transform var(--transicao);
}

.redes a:hover { background: var(--azul); color: #fff; transform: translateY(-2px); }
.redes svg { width: 17px; height: 17px; fill: currentColor; }

.redes--rodape a { background: rgba(255, 255, 255, 0.12); }
.redes--rodape a:hover { background: var(--azul); }

.cabecalho__botoes {
  display: flex;
  border-radius: var(--raio-pill);
  overflow: hidden;
}

.cabecalho__botoes a {
  padding: 9px 20px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  transition: filter var(--transicao);
}

.cabecalho__botoes a:hover { filter: brightness(1.1); color: #fff; }
.cabecalho__botoes a:first-child { background: var(--azul); }
.cabecalho__botoes a:last-child { background: var(--verde); }

/* ---------------------------------------------------------------------
   Navegação principal
   --------------------------------------------------------------------- */

.navegacao {
  background: var(--azul);
  border-top: 4px solid var(--amarelo);
}

.navegacao .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu > li { position: relative; margin: 0; }

/* O botão de abrir submenu é só do celular — ver o bloco de menu mobile. */
.menu__abrir { display: none; }

.menu > li > a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 18px 16px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: border-color var(--transicao), background var(--transicao);
}

.menu > li > a:hover,
.menu > li:focus-within > a { color: #fff; border-bottom-color: rgba(253, 241, 9, 0.55); }

.menu > li.esta-ativo > a { border-bottom-color: var(--amarelo); color: #fff; }

.menu > li.menu__destaque > a {
  background: var(--verde);
  border-radius: var(--raio-pill);
  border-bottom-color: transparent;
  margin: 0 8px;
  padding: 14px 22px;
}

.menu > li.menu__destaque > a:hover { background: var(--verde-fundo); border-bottom-color: transparent; }

.menu__seta {
  width: 9px;
  height: 9px;
  fill: currentColor;
  transition: transform var(--transicao);
}

.menu > li:hover .menu__seta,
.menu > li:focus-within .menu__seta { transform: rotate(180deg); }

/* Submenus */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  background: #fff;
  border-radius: 0 0 var(--raio) var(--raio);
  box-shadow: var(--sombra-media);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transicao), transform var(--transicao), visibility var(--transicao);
}

.menu > li:hover > .submenu,
.menu > li:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu li { margin: 0; }

.submenu a {
  display: block;
  padding: 11px 22px;
  font-size: 15px;
  color: var(--texto);
  transition: background var(--transicao), color var(--transicao), padding-left var(--transicao);
}

.submenu a:hover {
  background: var(--azul-claro);
  color: var(--azul-escuro);
  padding-left: 27px;
}

/* Botão do menu móvel */
.menu-alternar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  width: 100%;
  border: 0;
  background: none;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.menu-alternar__barras {
  position: relative;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background var(--transicao);
}

.menu-alternar__barras::before,
.menu-alternar__barras::after {
  content: '';
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transicao);
}

.menu-alternar__barras::before { top: -7px; }
.menu-alternar__barras::after { top: 7px; }

.menu-alternar[aria-expanded='true'] .menu-alternar__barras { background: transparent; }
.menu-alternar[aria-expanded='true'] .menu-alternar__barras::before { transform: translateY(7px) rotate(45deg); }
.menu-alternar[aria-expanded='true'] .menu-alternar__barras::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--escuro-2) center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.hero__interno {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 80px;
  max-width: 640px;
}

.hero h1,
.hero :is(h2:where(:not([class*="nivel-"])), :where(.nivel-2)) {
  font-size: 40px;
  line-height: 1.375;
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
}

.hero__chamada {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 32px;
}

.hero .btn { align-self: flex-start; }

/* Hero interno das páginas */
.hero-pagina {
  position: relative;
  background: var(--escuro-2) center / cover no-repeat;
  color: #fff;
  padding-block: 84px;
  text-align: center;
}

.hero-pagina::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 27, 58, 0.94), rgba(5, 27, 58, 0.72));
}

.hero-pagina .container { position: relative; z-index: 2; }
.hero-pagina h1 { color: #fff; margin-bottom: 10px; }
.hero-pagina p { color: var(--texto-claro); max-width: 700px; margin-inline: auto; }

.migalhas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.migalhas li { margin: 0; display: flex; gap: 8px; align-items: center; }
.migalhas li + li::before { content: '/'; opacity: 0.5; }
.migalhas a { color: rgba(255, 255, 255, 0.85); }
.migalhas a:hover { color: #fff; }

/* ---------------------------------------------------------------------
   Bloco "Sobre" com imagem
   --------------------------------------------------------------------- */

.duas-colunas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.duas-colunas--invertida > *:first-child { order: 2; }

.duas-colunas__texto :is(h2:where(:not([class*="nivel-"])), :where(.nivel-2)) { margin-bottom: 20px; }
.duas-colunas__texto ul { padding-left: 20px; }
.duas-colunas__texto li { margin-bottom: 6px; }

.chamada-destaque {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.35;
  color: var(--azul);
  margin: 28px 0 24px;
}

/* ---------------------------------------------------------------------
   Cartões de serviço
   --------------------------------------------------------------------- */

.servico { text-align: left; }

.servico__icone {
  display: block;
  width: 56px;
  height: 56px;
  color: var(--amarelo);
}

.servico__icone svg { width: 100%; height: 100%; }

.servico :is(h3:where(:not([class*="nivel-"])), :where(.nivel-3)) { font-size: 22px; margin: 0; }
.servico p { flex: 1; font-size: 15.5px; line-height: 1.55; margin: 0; }
.servico .btn { width: 100%; }

/* ---------------------------------------------------------------------
   Categorias de associados
   --------------------------------------------------------------------- */

.categorias {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 24px;
  justify-items: center;
}

.categoria {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  color: var(--azul);
}

.categoria:hover { color: #fff; }
.categoria:hover .categoria__icone { border-color: #fff; transform: translateY(-4px); }

.categoria__icone {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 2px solid currentColor;
  border-radius: 50%;
  transition: border-color var(--transicao), transform var(--transicao);
}

.categoria__icone img { width: 48px; height: 48px; object-fit: contain; }
.categoria__nome { font-size: 17px; font-weight: 500; }

/* ---------------------------------------------------------------------
   Carrossel de benefícios
   --------------------------------------------------------------------- */

.carrossel { position: relative; }

.carrossel__trilho {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.carrossel__trilho::-webkit-scrollbar { display: none; }

.carrossel__item {
  flex: 0 0 auto;
  width: 260px;
  scroll-snap-align: start;
}

.carrossel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--escuro-2);
  box-shadow: var(--sombra-media);
  z-index: 3;
  transition: background var(--transicao), color var(--transicao);
}

.carrossel__nav:hover { background: var(--azul); color: #fff; }
.carrossel__nav[disabled] { opacity: 0.35; pointer-events: none; }
.carrossel__nav--anterior { left: -22px; }
.carrossel__nav--proximo { right: -22px; }
.carrossel__nav svg { width: 18px; height: 18px; fill: currentColor; }

.beneficio-banner {
  display: block;
  border-radius: var(--raio-card);
  overflow: hidden;
  background: #fff;
  aspect-ratio: 500 / 650;
  box-shadow: var(--sombra-suave);
  transition: transform var(--transicao), box-shadow var(--transicao);
}

.beneficio-banner:hover { transform: translateY(-6px); box-shadow: var(--sombra-media); }
.beneficio-banner img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------------------
   Bloco "Seja um associado"
   --------------------------------------------------------------------- */

.associe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--raio-card);
  overflow: hidden;
  box-shadow: var(--sombra-media);
}

.associe__lista {
  background: var(--verde);
  color: #fff;
  padding: 56px 48px;
  text-align: center;
}

.associe__lista :is(h2:where(:not([class*="nivel-"])), :where(.nivel-2)) { color: #fff; margin-bottom: 28px; }

.associe__lista ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  display: inline-block;
}

.associe__lista li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
  font-size: 17px;
}

.associe__lista li svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 4px; color: var(--amarelo); fill: currentColor; }

.associe__selo {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--amarelo);
}

.associe__selo svg { width: 100%; height: 100%; }

.associe__imagem {
  background: var(--azul);
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.associe__imagem img { border-radius: var(--raio); }

/* ---------------------------------------------------------------------
   Notícias
   --------------------------------------------------------------------- */

.noticia-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.noticia-card__imagem {
  display: block;
  border-radius: var(--raio-card);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--cinza-200);
}

.noticia-card__imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.noticia-card:hover .noticia-card__imagem img { transform: scale(1.05); }

.noticia-card :is(h3:where(:not([class*="nivel-"])), :where(.nivel-3)) { font-size: 21px; margin: 0; line-height: 1.3; }
.noticia-card :is(h3:where(:not([class*="nivel-"])), :where(.nivel-3)) a { color: inherit; }
.noticia-card :is(h3:where(:not([class*="nivel-"])), :where(.nivel-3)) a:hover { color: var(--azul); }

.noticia-card__data { font-size: 14px; color: var(--texto-suave); }
.secao--escura .noticia-card__data,
.secao--preta .noticia-card__data { color: rgba(255, 255, 255, 0.65); }

.noticia-card__resumo { font-size: 15px; color: var(--texto-suave); flex: 1; }
.secao--escura .noticia-card__resumo { color: var(--texto-claro); }

.noticia-card__link { font-weight: 500; font-size: 15px; }

/* Notícia interna */
.noticia-topo { max-width: 820px; margin-inline: auto; }
.noticia-topo h1 { margin-bottom: 12px; }

.noticia-topo__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--texto-suave);
  margin-bottom: 28px;
}

.noticia-capa {
  max-width: 980px;
  margin: 0 auto 40px;
  border-radius: var(--raio-card);
  overflow: hidden;
}

/* ---------------------------------------------------------------------
   Rodapé
   --------------------------------------------------------------------- */

.rodape {
  background: var(--escuro-2);
  color: var(--texto-claro);
  padding-top: 56px;
  font-size: 15px;
}

.rodape a { color: var(--texto-claro); }
.rodape a:hover { color: #fff; }
.rodape :is(h2:where(:not([class*="nivel-"])), :where(.nivel-2)), .rodape :is(h3:where(:not([class*="nivel-"])), :where(.nivel-3)) { color: #fff; font-size: 21px; margin-bottom: 16px; }

.rodape__grade {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.rodape__logo img { height: 96px; width: auto; }

.rodape__lista { list-style: none; margin: 0; padding: 0; }

.rodape__lista li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.rodape__lista svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; fill: currentColor; opacity: 0.8; }

.rodape__endereco {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.rodape__endereco svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }

.rodape__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 28px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

.rodape__base p { margin: 0; text-align: center; flex: 1; }

/* ---------------------------------------------------------------------
   Botão flutuante de WhatsApp
   --------------------------------------------------------------------- */

.botao-flutuante {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
}

.botao-flutuante__gatilho {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform var(--transicao);
}

.botao-flutuante__gatilho:hover { transform: scale(1.07); }
.botao-flutuante__gatilho svg { width: 30px; height: 30px; fill: currentColor; }

.botao-flutuante__ponto {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff3b30;
  border: 2px solid #fff;
}

.botao-flutuante__painel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 288px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transicao), transform var(--transicao), visibility var(--transicao);
}

.botao-flutuante.esta-aberto .botao-flutuante__painel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.botao-flutuante__topo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #075e54;
  color: #fff;
}

.botao-flutuante__topo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.botao-flutuante__nome { font-weight: 700; font-size: 15px; }
.botao-flutuante__cargo { font-size: 13px; opacity: 0.85; }

.botao-flutuante__fechar {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.botao-flutuante__corpo { padding: 20px 16px; background: #ece5dd; }

.botao-flutuante__balao {
  background: #fff;
  border-radius: 0 10px 10px 10px;
  padding: 12px 14px;
  font-size: 14.5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  margin-bottom: 16px;
}

.botao-flutuante__enviar {
  display: block;
  padding: 12px;
  border-radius: 8px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}

.botao-flutuante__enviar:hover { background: #1eb85a; color: #fff; }

/* ---------------------------------------------------------------------
   Responsivo
   --------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .duas-colunas { grid-template-columns: 1fr; gap: 32px; }
  .duas-colunas--invertida > *:first-child { order: 0; }
  .associe { grid-template-columns: 1fr; }
  .rodape__grade { grid-template-columns: 1fr 1fr; }
  .categorias { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .carrossel__nav--anterior { left: 4px; }
  .carrossel__nav--proximo { right: 4px; }
}

@media (max-width: 900px) {
  .navegacao .container { justify-content: stretch; }
  .menu-alternar { display: flex; }

  .menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 12px;
    max-height: 70vh;
    overflow-y: auto;
  }

  .menu.esta-aberto { display: flex; }

  .menu > li > a {
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    justify-content: space-between;
  }

  .menu > li.esta-ativo > a { border-bottom-color: var(--amarelo); }

  .menu > li.menu__destaque > a {
    margin: 10px 0;
    justify-content: center;
    border-radius: var(--raio);
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.14);
    padding: 4px 0;
  }

  .submenu.esta-aberto { display: block; }
  .submenu a { color: #fff; padding-left: 20px; }
  .submenu a:hover { background: rgba(0, 0, 0, 0.2); color: #fff; padding-left: 24px; }

  .cabecalho { position: static; }
  .cabecalho__topo .container { flex-direction: column; gap: 16px; }
  .cabecalho__marca { flex-direction: column; gap: 12px; }
  .cabecalho__acoes { align-items: center; }
  .cabecalho__logo img { height: 66px; }
}

@media (max-width: 768px) {
  .hero__interno { min-height: 380px; padding-block: 56px; }
  .hero h1, .hero :is(h2:where(:not([class*="nivel-"])), :where(.nivel-2)) { font-size: 28px; }
  .hero__chamada { font-size: 17px; }
  .hero .btn { align-self: stretch; }

  .categorias { grid-template-columns: repeat(2, 1fr); }
  .categoria__icone { width: 74px; height: 74px; }
  .categoria__icone img { width: 38px; height: 38px; }

  .associe__lista, .associe__imagem { padding: 32px 22px; }

  .rodape__grade { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .rodape__logo img { margin-inline: auto; }
  .rodape__lista li { justify-content: center; }
  .redes { justify-content: center; }
  .rodape__base { flex-direction: column; }

  .carrossel__item { width: 210px; }
  .botao-flutuante { right: 14px; bottom: 14px; }
  .botao-flutuante__painel { width: calc(100vw - 28px); max-width: 300px; }
}

/* Sem itens suficientes para rolar: as setas somem */
.carrossel--sem-navegacao .carrossel__nav { display: none; }

/* =====================================================================
   Ajustes medidos no site original (acip.com.br)
   ===================================================================== */

/* ---------------------------------------------------------------------
   Cabeçalho — logo e redes sociais
   --------------------------------------------------------------------- */

.cabecalho__logo img { height: 97px; }

.redes a {
  width: 34px;
  height: 34px;
  border-radius: 5px;
}

.redes svg { width: 19px; height: 19px; }

/* Cada rede usa a própria cor de marca, como no original.
   O seletor repete .redes para vencer a regra genérica .redes a. */
.redes a.redes__facebook  { background: #3b5998; }
.redes a.redes__instagram { background: #262626; }
.redes a.redes__youtube   { background: #cd201f; }
.redes a.redes__linkedin  { background: #0077b5; }
.redes a.redes__tiktok    { background: #69727d; }

.redes a.redes__facebook:hover,
.redes a.redes__instagram:hover,
.redes a.redes__youtube:hover,
.redes a.redes__linkedin:hover,
.redes a.redes__tiktok:hover { filter: brightness(1.15); }

/* No rodapé os ícones ficam em pastilhas brancas */
.redes--rodape a,
.redes--rodape a.redes__facebook,
.redes--rodape a.redes__instagram,
.redes--rodape a.redes__youtube,
.redes--rodape a.redes__linkedin,
.redes--rodape a.redes__tiktok {
  background: #fff;
  border-radius: 10px;
  color: var(--escuro-2);
}

.redes--rodape a:hover,
.redes--rodape a.redes__facebook:hover,
.redes--rodape a.redes__instagram:hover,
.redes--rodape a.redes__youtube:hover,
.redes--rodape a.redes__linkedin:hover,
.redes--rodape a.redes__tiktok:hover {
  background: var(--amarelo);
  color: var(--escuro-2);
  filter: none;
}

/* ---------------------------------------------------------------------
   Navegação
   --------------------------------------------------------------------- */

.menu > li > a {
  padding: 13px 20px;
  font-weight: 400;
}

.menu > li.menu__destaque > a { padding: 13px 24px; font-weight: 400; }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */

.hero h1,
.hero :is(h2:where(:not([class*="nivel-"])), :where(.nivel-2)) { margin-bottom: 24px; }

.hero__chamada {
  font-size: 24px;
  /* Era 1: servia quando a chamada eram duas linhas separadas por <br>.
     Agora ela é uma frase corrida que quebra sozinha — e no celular passa de
     quatro linhas, onde entrelinha 1 fica ilegível. */
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 36px;
}

.hero .btn { padding: 24px; }

/* ---------------------------------------------------------------------
   Rodapé
   --------------------------------------------------------------------- */

.rodape__logo img { height: 110px; }

.rodape :is(h2:where(:not([class*="nivel-"])), :where(.nivel-2)),
.rodape :is(h3:where(:not([class*="nivel-"])), :where(.nivel-3)) {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 18px;
}

.rodape__base p { font-size: 14px; line-height: 1.15; color: #fff; }

/* ---------------------------------------------------------------------
   Seções da home
   --------------------------------------------------------------------- */

/* "Principais serviços" é o único título maior no original */
#servicos .secao__titulo :is(h2:where(:not([class*="nivel-"])), :where(.nivel-2)) { font-size: 40px; line-height: 1; }

.secao--escura { padding-block: 80px 100px; }

/* O cabeçalho do site original rola junto com a página — mas continua
   posicionado para que os submenus fiquem acima do conteúdo. */
.cabecalho { position: relative; z-index: 100; }

/* A curva verde entre as notícias e o rodapé é bem rasa no original */
#noticias .curva--baixo svg { height: 14px; }

/* Os dois telefones do rodapé têm o mesmo peso */
.rodape__lista a { font-size: 16px; }

/* ---------------------------------------------------------------------
   Cabeçalho: medidas conferidas no site original (viewport 1512px)
   Topo branco com 147px, faixa de 4px e barra de navegação com 69px.
   --------------------------------------------------------------------- */

.cabecalho__topo { padding: 25px 0; border-bottom: 2px solid var(--verde); }

/* A faixa entre o topo e o menu tem 2px de verde seguidos de 2px de amarelo. */
.navegacao { border-top-width: 2px; }

/* As duas metades do topo têm a mesma largura; a da direita é centralizada. */
.cabecalho__marca,
.cabecalho__acoes { width: calc(50% - 10px); }

.cabecalho__topo .container { gap: 20px; }
.cabecalho__marca { padding-inline-start: 10px; }
.cabecalho__acoes { align-items: center; gap: 20px; }

.cabecalho__botoes a { padding: 5px 15px; font-size: 16px; }

.navegacao .container { padding-block: 10px; }
.menu > li > a { height: 49px; padding-block: 0; align-items: center; line-height: 23px; }

/* ---------------------------------------------------------------------
   Seta dos submenus — o original usa o "caret" cheio do Font Awesome
   dentro de uma caixa de 16px, com 10px de distância do rótulo.
   --------------------------------------------------------------------- */

.menu > li > a { gap: 10px; }
.menu__seta { width: 16px; height: 16px; }

/* ---------------------------------------------------------------------
   Botões — no original o preenchimento é igual nos quatro lados (18px)
   e não há borda. Só os botões de contorno têm traço, com o
   preenchimento reduzido para manter a mesma altura.
   --------------------------------------------------------------------- */

.btn { padding: 18px; border: 0; line-height: 20px; }

.btn--contorno,
.btn--contorno-branco,
.btn--fantasma { border: 2px solid; padding: 16px; }

.btn--pequeno { padding: 10px 18px; }
.btn--grande { padding: 22px 36px; }

@media (max-width: 768px) {
  .btn { padding: 15px; }
  .btn--contorno,
  .btn--contorno-branco,
  .btn--fantasma { padding: 13px; }
  .btn--grande { padding: 18px 28px; }
}

/* ---------------------------------------------------------------------
   Hero — espaçamentos verificados no original
   --------------------------------------------------------------------- */

.hero__interno { padding-inline-start: 10px; }
.hero h1, .hero :is(h2:where(:not([class*="nivel-"])), :where(.nivel-2)) { margin-bottom: 20px; }
.hero__chamada { margin-bottom: 20px; }
.hero .btn { padding: 24px; }

/* ---------------------------------------------------------------------
   Cartões de serviço da home
   --------------------------------------------------------------------- */

#servicos .grade--3 { gap: 20px; }

.card--verde { padding: 40px; }

/* No original o bloco do ícone tem 79px de altura (o glifo ocupa 72px). */
.servico__icone { width: 72px; height: 79px; }
.servico :is(h3:where(:not([class*="nivel-"])), :where(.nivel-3)) { font-size: 24px; line-height: 1; }
.servico p { font-size: 18px; line-height: 25px; }
.servico .btn { padding: 24px; }

/* ---------------------------------------------------------------------
   Bloco "Sobre a ACIPOÁ" — colunas, listas e chamada conferidas no original
   --------------------------------------------------------------------- */

.hero__interno { min-height: 549px; }

/* Colunas de 565px e 555px separadas por 20px, dentro dos 1140px do container.
   Vale só para o bloco "Sobre" da home; as demais páginas têm outras medidas. */
#sobre .duas-colunas { grid-template-columns: 113fr 111fr; gap: 20px; }
#sobre .duas-colunas__imagem { padding: 10px; }

#sobre .duas-colunas__texto :is(h2:where(:not([class*="nivel-"])), :where(.nivel-2)) { line-height: 40px; margin-bottom: 20px; }
#sobre .duas-colunas__texto p { margin-bottom: 20px; }
#sobre .duas-colunas__texto ul { margin: 0 0 15px; padding-left: 20px; }
#sobre .duas-colunas__texto li { margin-bottom: 0; }

.chamada-destaque {
  font-size: 24px;
  line-height: 32px;
  margin: 40px 0 20px;
}

/* ---------------------------------------------------------------------
   "Conheça os associados" — o anel azul já faz parte do SVG de cada
   categoria, então o ícone é a própria imagem de 100px.
   --------------------------------------------------------------------- */

#associados { padding-block: 80px 120px; }
#associados .secao__titulo { margin-bottom: 60px; }

#associados::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/uploads/2025/01/A-02-Cipoa.png') center center / auto no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

#associados .container { position: relative; z-index: 1; }

.categorias {
  max-width: 1004px;
  margin-inline: auto;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-items: stretch;
}

.categoria { padding: 10px; gap: 20px; }

.categoria__icone {
  width: 100px;
  height: 100px;
  border: 0;
  border-radius: 0;
}

.categoria__icone img { width: 100px; height: 100px; }
.categoria:hover .categoria__icone { border-color: transparent; }

.categoria__nome { font-size: 20px; line-height: 20px; }

/* ---------------------------------------------------------------------
   "Seja um Associado" — medidas do original: dois blocos de 570px com
   cantos de 44px nas pontas externas e preenchimento de 50px 20px.
   --------------------------------------------------------------------- */

.associe { border-radius: 0; overflow: visible; box-shadow: none; }

.associe__lista,
.associe__imagem { padding: 50px 20px; }

.associe__lista { border-radius: 44px 0 0 44px; }
.associe__imagem { border-radius: 0 44px 44px 0; gap: 20px; }

.associe__selo { width: 72px; height: 72px; margin-bottom: 11px; }

.associe__lista :is(h2:where(:not([class*="nivel-"])), :where(.nivel-2)) { line-height: 40px; margin-bottom: 36px; }

.associe__lista ul { width: 416px; max-width: 100%; }

.associe__lista li {
  gap: 5px;
  margin-bottom: 5px;
  padding-bottom: 5.5px;
  font-size: 20px;
  line-height: 24px;
}

.associe__lista li svg { margin-top: 3px; }
.associe__imagem img { border-radius: 0; }

.secao--compacta { padding-block: 100px; }
.associe__imagem .btn { padding: 24px; }

/* ---------------------------------------------------------------------
   Notícias da home — grade de 1104px com três colunas de 348px
   --------------------------------------------------------------------- */

#noticias { padding-block: 104px 108px; }
#noticias .container { max-width: 1144px; }
#noticias .secao__titulo { margin-bottom: 31px; }
#noticias .grade--3 { gap: 35px 30px; }

.noticia-card--home { gap: 0; }

.noticia-card--home :is(h3:where(:not([class*="nivel-"])), :where(.nivel-3)) {
  font-size: 24px;
  line-height: 24px;
  font-weight: 700;
  margin: 0;
}

.noticia-card--home .noticia-card__data {
  font-size: 16px;
  line-height: 23px;
  margin-top: 1px;
}

.secao--preta .noticia-card--home .noticia-card__data { color: #adadad; }

.noticia-card--home .noticia-card__link {
  margin-top: 18px;
  font-size: 16px;
  line-height: 23px;
  font-weight: 400;
  color: #fff;
}

.noticia-card--home .noticia-card__link:hover { color: var(--amarelo); }

/* ---------------------------------------------------------------------
   Rodapé — quatro colunas de 265px, medidas do original
   --------------------------------------------------------------------- */

.rodape { padding-top: 30px; font-size: 16px; }

.rodape__grade {
  grid-template-columns: repeat(4, 265px);
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-bottom: 0;
  min-height: 135px;
}

.rodape__grade > * { padding: 10px; }
.rodape__logo { padding: 0; }
.rodape__logo img { height: 110px; }

.rodape :is(h2:where(:not([class*="nivel-"])), :where(.nivel-2)), .rodape :is(h3:where(:not([class*="nivel-"])), :where(.nivel-3)) { font-size: 24px; line-height: 24px; margin-bottom: 10px; }

.rodape__lista li { gap: 4px; margin-bottom: 10px; align-items: center; }
.rodape__lista li:last-child { margin-bottom: 0; }

.rodape__lista svg {
  width: 14px;
  height: 14px;
  margin-top: 0;
  opacity: 1;
  color: var(--azul);
}

.rodape__lista a { font-size: 16px; line-height: 23px; color: #fff; }

/* O segundo telefone do original é maior e verde. */
.rodape__lista li:nth-child(2) a {
  font-size: 24px;
  line-height: 24px;
  font-weight: 700;
  color: var(--verde);
}

.rodape__endereco {
  border-top: 0;
  padding: 20px 0 0;
  gap: 4px;
  font-size: 16px;
  line-height: 23px;
  color: #fff;
}

.rodape__endereco svg { width: 26px; height: 26px; color: var(--azul); }

.rodape__base {
  display: block;
  position: relative;
  padding: 0 0 20px;
  font-size: 16px;
  line-height: 23px;
  color: #fff;
}

.rodape__base p { font-size: 16px; line-height: 23px; color: #fff; }

/* ---------------------------------------------------------------------
   Assinatura de autoria da Agência Pine

   Fica toda aqui, e não junto do primeiro `.rodape__base`, porque este bloco
   vem depois no arquivo e é o que define o layout final do rodapé — inclusive
   o `color: #fff` de `.rodape__base p`, que sobrescreveria a cor de repouso do
   crédito se ela estivesse declarada lá em cima.
   --------------------------------------------------------------------- */

.rodape__credito {
  position: absolute;
  right: 10px;
  bottom: 20px;
  margin: 0;
  font-size: 13.5px;
}

.rodape__credito a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  /* Discreto em repouso: 8,4:1 sobre o #051b3a do rodapé, bem acima dos 4,5:1
     exigidos, e ainda assim distinguível do branco que assume no hover. */
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 200ms ease;
}

.rodape__credito a:hover,
.rodape__credito a:focus-visible { color: #fff; }

/* height em `em` acompanha o texto ao redor; width auto preserva a proporção
   retrato do pinheiro (424×588) sem achatá-lo. */
.rodape__credito svg { height: 1.35em; width: auto; fill: currentColor; }
.rodape__credito strong { font-weight: 600; }

@media (max-width: 1024px) {
  .rodape__grade { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .rodape__grade { grid-template-columns: 1fr; }
  /* No celular o crédito desce inteiro para baixo do copyright, centralizado —
     sem separar a marca do nome. `text-align` em vez de `width: max-content`
     com margem automática: o link é inline-flex e centraliza junto do resto do
     texto da base, sem depender da largura própria do bloco. */
  .rodape__credito { position: static; display: block; width: auto; margin: 12px 0 0; text-align: center; }
}

/* No rodapé o original inverte as redes: fundo branco e ícone escuro. */
.redes--rodape a,
.redes--rodape a.redes__facebook,
.redes--rodape a.redes__instagram,
.redes--rodape a.redes__youtube,
.redes--rodape a.redes__linkedin,
.redes--rodape a.redes__tiktok {
  background: #fff;
  color: var(--escuro-2);
  border-radius: 10px;
}

.redes--rodape a.redes__facebook:hover,
.redes--rodape a.redes__instagram:hover,
.redes--rodape a.redes__youtube:hover,
.redes--rodape a.redes__linkedin:hover,
.redes--rodape a.redes__tiktok:hover {
  background: var(--amarelo);
  color: var(--escuro-2);
}

/* Os itens do menu do original ficam colados e com 1.1px de espaçamento. */
.menu { gap: 0; }
.menu > li > a { letter-spacing: 1.1px; }

.menu > li.menu__destaque > a { padding: 13px 20px; margin: 0; }

/* ---------------------------------------------------------------------
   Perguntas frequentes da home: fundo branco entre a seção de notícias
   e o rodapé verde, com os mesmos cartões das páginas internas.
   --------------------------------------------------------------------- */
.secao--faq { background: var(--branco); padding-block: var(--secao-y) calc(var(--secao-y) + 20px); }

.faq { padding-block: 72px 96px; }

.pagina .faq__titulo,
.faq__titulo {
  font-size: 34px;
  line-height: 1.05;
  font-weight: 700;
  color: var(--escuro-2);
  text-align: center;
  margin: 0 0 40px;
}

.faq__lista {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 560px));
  justify-content: center;
  gap: 24px;
}

.faq__item {
  background: var(--cinza-50);
  border: 1px solid var(--cinza-200);
  border-radius: 24px;
  padding: 28px 30px;
}

.pagina .faq__pergunta,
.faq__pergunta {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--escuro-2);
  margin: 0 0 12px;
}

.pagina .faq__resposta,
.faq__resposta {
  font-size: 16px;
  line-height: 1.6;
  color: var(--texto-suave);
  margin: 0;
}

@media (max-width: 900px) {
  .faq { padding-block: 48px 64px; }
  .faq__lista { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pagina .faq__titulo, .faq__titulo { font-size: 26px; margin-bottom: 28px; }
}


/* ---------------------------------------------------------------------
   Ajustes finais de mobile
   As medidas fixas usadas para reproduzir o original ficam depois das
   media queries originais e por isso venciam no celular. Este bloco, no
   fim do arquivo, devolve o comportamento fluido nas telas pequenas.
   --------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .categorias { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .associe { grid-template-columns: minmax(0, 1fr); }
  .associe__lista { border-radius: 44px 44px 0 0; }
  .associe__imagem { border-radius: 0 0 44px 44px; }
  .associe__lista ul { display: block; }
}

@media (max-width: 560px) {
  .categorias { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .faq__lista { grid-template-columns: minmax(0, 1fr); }
}

/* =====================================================================
   Menu mobile
   Fica no fim do arquivo de propósito: as regras de medidas fixas do
   original (`.menu > li > a { padding: 13px 20px }`) vêm depois das media
   queries originais e desmontavam o menu no celular.
   ===================================================================== */

@media (max-width: 900px) {

  /* O botão e a lista passam a ocupar linhas próprias */
  .navegacao .container {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-inline: 0;
  }

  .menu-alternar {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    min-height: 56px;
    padding: 0 var(--gutter);
    font-size: 17px;
    font-weight: 500;
    cursor: pointer;
  }

  .menu-alternar__barras { flex-shrink: 0; }

  .menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    background: var(--azul-escuro);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .menu.esta-aberto { display: flex; }

  /* Cada item é uma linha: o texto navega, o botão da direita abre o
     submenu e a lista de filhos ocupa a linha seguinte. */
  .menu > li {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .menu > li:last-child { border-bottom: 0; }

  .menu > li > a {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 52px;
    padding: 14px var(--gutter);
    font-size: 16px;
    white-space: normal;
    border-bottom: 0;
    border-radius: 0;
  }

  /* No celular a seta que fica dentro do link daria alvo duplo */
  .menu > li > a .menu__seta { display: none; }

  .menu__abrir {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 56px;
    min-height: 52px;
    padding: 0;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    background: none;
    color: #fff;
    cursor: pointer;
  }

  .menu__abrir:hover { background: rgba(0, 0, 0, 0.16); }

  .menu__abrir .menu__seta {
    width: 14px;
    height: 14px;
    transition: transform var(--transicao);
  }

  .menu__abrir[aria-expanded='true'] { background: rgba(0, 0, 0, 0.22); }
  .menu__abrir[aria-expanded='true'] .menu__seta { transform: rotate(180deg); }

  .menu > li > a:hover,
  .menu > li:focus-within > a { background: rgba(0, 0, 0, 0.16); border-bottom-color: rgba(255, 255, 255, 0.16); }

  .menu > li.esta-ativo {
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 4px 0 0 var(--amarelo);
  }

  .menu > li.esta-ativo > a { background: none; }

  /* Portal do Emprego continua em destaque, agora como botão de largura total */
  .menu > li.menu__destaque { border-bottom: 0; }

  .menu > li.menu__destaque > a,
  .menu > li.menu__destaque > a:hover {
    justify-content: center;
    width: auto;
    margin: 10px var(--gutter);
    padding: 15px 20px;
    border: 0;
    border-radius: var(--raio);
    background: var(--verde);
    font-weight: 700;
    box-shadow: none;
  }

  .submenu {
    position: static;
    flex: 0 0 100%;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 0;
    box-shadow: none;
  }

  .submenu.esta-aberto { display: block; }

  .submenu a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px var(--gutter) 12px calc(var(--gutter) + 16px);
    font-size: 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .submenu li:last-child a { border-bottom: 0; }

  .submenu a:hover,
  .submenu a[aria-current='page'] {
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    padding-left: calc(var(--gutter) + 16px);
  }

  .submenu a[aria-current='page'] { box-shadow: inset 4px 0 0 var(--amarelo); }
}
