:root {
  --verde: #37AF8F;
  --verde-escuro: #267D63;
  --verde-claro: #DFF3E3;
  --azul: #1D89AA;
  --azul-hover: #1D99AA;
  --texto: #353D3F;
  --texto-suave: #5d686b;
  --branco: #ffffff;
  --fundo: #f7faf9;
  --borda: #e5eeec;
  --sombra: 0 14px 34px rgba(29, 137, 170, 0.12);
  --container: 1180px;
  --espaco-lateral: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--texto);
  background-color: var(--branco);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - (var(--espaco-lateral) * 2)), var(--container));
  margin-left: auto;
  margin-right: auto;
}

/* TOPO */

.topbar {
  min-height: 42px;
  padding: 8px max(var(--espaco-lateral), calc((100vw - var(--container)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background-color: var(--verde);
  color: var(--branco);
  font-size: 0.92rem;
  font-weight: 700;
}

.topbar-left .nome-associacao {
  display: inline-block;
  margin: 0;
  letter-spacing: 0.2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 13px;
}

.topbar-right a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--branco);
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.topbar-right a:hover {
  background-color: rgba(255, 255, 255, 0.14);
  opacity: 0.9;
  transform: translateY(-2px);
}

.topbar .social-icon {
  width: 19px;
  height: 19px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* CABEÇALHO */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 106px;
  display: flex;
  align-items: center;
  background-color: var(--branco);
  border-bottom: 1px solid var(--borda);
  box-shadow: 0 8px 24px rgba(53, 61, 63, 0.06);
}

header .container {
  min-height: 106px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
}

header .logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

header .logo img {
  width: 206px;
  max-height: 82px;
  object-fit: contain;
}

header nav {
  min-width: 0;
}

header nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(0.92rem, 1vw, 1.05rem);
}

header nav ul li a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
  color: var(--texto);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: color 0.25s ease;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 3px;
  border-radius: 999px;
  background-color: var(--verde);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

header nav ul li a:hover {
  color: var(--verde-escuro);
}

header nav ul li a:hover::after {
  transform: scaleX(1);
}

/* RODAPÉ */

footer {
  width: 100%;
  padding: 42px var(--espaco-lateral) 30px;
  background: linear-gradient(135deg, #1D89AA 0%, #126f8b 100%);
  color: var(--branco);
}

.footer-container {
  width: min(100%, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(150px, 0.75fr) minmax(260px, 1.1fr) minmax(220px, 0.9fr);
  align-items: start;
  gap: 32px;
}

.footer-logo {
  width: 190px;
  height: auto;
  object-fit: contain;
}

.footer-menu ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu ul li a {
  color: var(--branco);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.92;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.footer-menu ul li a:hover {
  color: var(--verde-claro);
  opacity: 1;
}

.footer-center,
.footer-right {
  min-width: 0;
}

.footer-center h4,
.footer-right h4 {
  margin: 0 0 10px;
  color: var(--verde-claro);
  font-size: 1.04rem;
  font-weight: 900;
}

.footer-center p,
.footer-right p {
  margin: 4px 0;
  font-size: 0.95rem;
  line-height: 1.55;
  opacity: 0.92;
}

.footer-right > .social-icon,
.social-icons {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-right > .social-icon a,
.social-icons a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.14);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.footer-right > .social-icon a:hover,
.social-icons a:hover {
  background-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.footer-right > .social-icon img,
.social-icons a img,
.footer-right img.social-icon {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-bottom {
  width: 100%;
  padding: 18px var(--espaco-lateral);
  background-color: #f4f8f7;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.92rem;
}

.footer-bottom a {
  color: var(--azul);
  text-decoration: none;
  font-weight: 800;
}

.footer-bottom a:hover {
  color: var(--verde-escuro);
}

@media (max-width: 1100px) {
  header .container {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }

  header nav ul {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 6px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 6px;
  }

  header {
    min-height: auto;
    position: relative;
  }

  header .container {
    min-height: auto;
    padding: 16px 0;
  }

  header .logo img {
    width: 178px;
  }

  header nav ul {
    gap: 14px 20px;
    font-size: 0.95rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-right > .social-icon,
  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --espaco-lateral: 18px;
  }

  header nav ul {
    gap: 10px 14px;
    font-size: 0.9rem;
  }

  .footer-logo {
    width: 152px;
  }
}


/* AJUSTES RESPONSIVOS DO MENU E CONTATOS */
@media (max-width: 768px) {
  header nav {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }
  header nav ul {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    min-width: 100%;
    justify-content: flex-start;
    gap: 18px;
    padding-bottom: 5px;
  }
  .footer-center p, .footer-right p { overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .footer-container { gap: 26px; }
  .topbar { padding-inline: var(--espaco-lateral); }
}

