:root {
  --azul-escuro: #1f2858;
  --azul-principal: #002b5c;
  --azul-claro: #e6f1fc;
  --vermelho: #d70b1a;
  --vermelho-escuro: #8c1822;
  --branco: #ffffff;
  --texto: #202020;
  --texto-suave: #555d6d;
  --borda: #e5e9f0;
  --fundo-copy: #f2e9e9;

  --largura-container: 1320px;
  --espaco-lateral: 28px;
  --raio: 12px;
  --sombra: 0 16px 40px rgba(20, 40, 80, 0.12);
}

/*CONFIGURAÇÕES GERAIS*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Sora", sans-serif;
  color: var(--texto);
  background-color: var(--branco);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

.container,
.acoes-container,
.acoes-grid,
.compromisso-container,
.rodape-container {
  width: min(
    calc(100% - (var(--espaco-lateral) * 2)),
    var(--largura-container)
  );
  margin-left: auto;
  margin-right: auto;
}

/*TOPO AZUL*/

.topbar {
  min-height: 42px;
  padding: 8px max(
    var(--espaco-lateral),
    calc((100vw - var(--largura-container)) / 2)
  );

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  background-color: var(--azul-escuro);
  color: var(--branco);

  font-size: 0.88rem;
  font-weight: 500;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
}

.topbar-left .nome-associacao {
  margin: 0;
  letter-spacing: 0.3px;
}

.topbar-right {
  gap: 15px;
  margin: 0;
}

.topbar-right a {
  width: 24px;
  height: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0;
  color: var(--branco);
  text-decoration: none;

  transition: transform 0.25s ease, opacity 0.25s ease;
}

.topbar-right a:hover {
  color: var(--branco);
  opacity: 0.78;
  transform: translateY(-2px);
}

.social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

/*CABEÇALHO*/

header {
  position: relative;
  z-index: 100;
  background-color: var(--branco);
  border-bottom: 1px solid var(--borda);
}

header .container {
  min-height: 112px;
  padding: 14px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

header .logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

header .logo a {
  display: flex;
  align-items: center;
}

header .logo img {
  width: 225px;
  height: auto;
  object-fit: contain;
  display: block;
}

header nav {
  min-width: 0;
}

header nav ul {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 2.35vw, 44px);

  margin: 0;
  padding: 0;
  list-style: none;

  font-size: 1rem;
}

header nav ul li {
  flex: 0 0 auto;
}

header nav ul li a {
  position: relative;
  display: inline-flex;
  align-items: center;

  padding: 10px 0;

  color: var(--azul-escuro);
  text-decoration: none;
  white-space: nowrap;

  font-weight: 500;
  line-height: 1.2;

  transition: color 0.25s ease;
}

header nav ul li a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;

  height: 3px;
  border-radius: 999px;
  background-color: var(--vermelho-escuro);

  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
  color: var(--vermelho-escuro);
}

header nav ul li a:hover::after,
header nav ul li a.active::after {
  transform: scaleX(1);
}

/*BANNER PRINCIPAL*/

#banner {
  min-height: 430px;

  display: flex;
  align-items: center;

  margin: 0;

  color: var(--branco);
  background-image: url("imagens/cabecalho.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#banner .container {
  padding: 70px 0;
}

.banner-content {
  max-width: 610px;
  margin: 0;
}

#banner h2 {
  max-width: 600px;
  margin: 0 0 18px;

  color: var(--branco);

  font-size: clamp(2.4rem, 3.4vw, 3.55rem);
  line-height: 1.08;
  font-weight: 800;
}

#banner p {
  max-width: 580px;
  margin: 0 0 28px;

  color: var(--branco);

  font-size: 1.08rem;
  line-height: 1.55;
}

.banner-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

#banner .btn {
  min-height: 48px;
  padding: 12px 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border-radius: 10px;
  text-decoration: none;

  font-size: 0.92rem;
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;

  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

#banner .btn-red {
  background-color: var(--vermelho);
  color: var(--branco);
  border: 2px solid var(--vermelho);
}

#banner .btn-red:hover {
  background-color: var(--vermelho-escuro);
  border-color: var(--vermelho-escuro);
  transform: translateY(-2px);
}

#banner .btn-outline {
  background-color: transparent;
  color: var(--branco);
  border: 2px solid var(--branco);
}

#banner .btn-outline:hover {
  background-color: var(--branco);
  color: var(--azul-escuro);
  transform: translateY(-2px);
}

#banner .btn i {
  font-size: 1rem;
}

/* QUEM SOMOS*/

.quem-somos-section {
  padding: 78px 0;
  background-color: var(--branco);
}

.quem-container,
.flex-between {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
  flex-wrap: initial;
}

.container-left,
.container-right {
  min-width: 0;
  max-width: none;
  margin: 0;
  flex: initial;
}

.container-left {
  display: block;
}

.container-left .equipe {
  width: 100%;
}

.container-left .equipe img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;

  display: block;
  object-fit: cover;
  object-position: center;

  border-radius: var(--raio);
  box-shadow: var(--sombra);
}

.container-right .texto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.container-right .texto h2 {
  position: relative;
  margin: 0 0 24px;
  padding-top: 18px;

  color: var(--azul-escuro);

  font-size: clamp(1.8rem, 2.5vw, 2.25rem);
  line-height: 1.15;
  font-weight: 800;
}

.container-right .texto h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 52px;
  height: 3px;
  border-radius: 999px;
  background-color: var(--vermelho);
}

.container-right .texto p {
  max-width: 66ch;
  margin: 0 0 15px;

  color: var(--texto);

  font-size: 1rem;
  line-height: 1.72;
  text-align: left;
}

.container-right .texto p:last-of-type {
  margin-bottom: 0;
}

.container-right .texto .btn {
  min-height: 46px;
  margin-top: 26px;
  padding: 11px 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  background-color: var(--vermelho-escuro);
  color: var(--branco);

  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 700;

  transition: background-color 0.25s ease, transform 0.25s ease;
}

.container-right .texto .btn:hover {
  background-color: var(--vermelho);
  transform: translateY(-2px);
}

/*AÇÕES*/

.acoes {
  padding: 72px 0 78px;
  background-color: var(--azul-claro);
  color: var(--azul-escuro);
  text-align: center;
}

.acoes-container {
  margin-bottom: 42px;
}

.acoes h2 {
  margin: 0 0 18px;

  color: var(--azul-escuro);

  font-size: clamp(1.85rem, 2.5vw, 2.3rem);
  line-height: 1.2;
  font-weight: 800;
}

.acoes-container p {
  max-width: 980px;
  margin: 0 auto;

  color: var(--texto);

  font-size: 1rem;
  line-height: 1.65;
}

.acoes-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}

.acoes-item {
  min-width: 0;
  min-height: 100%;
  padding: 24px 16px 22px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.58);

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.acoes-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(24, 55, 100, 0.11);
}

.acoes-item img {
  width: 108px;
  height: 108px;
  margin-bottom: 18px;

  display: block;
  object-fit: contain;

  transition: transform 0.25s ease;
}

.acoes-item:hover img {
  transform: scale(1.06);
}

.acoes-item h3 {
  min-height: 42px;
  margin: 0 0 12px;

  color: var(--azul-escuro);

  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 700;
}

.acoes-item p {
  max-width: 220px;
  margin: 0;

  color: var(--texto);

  font-size: 0.86rem;
  line-height: 1.5;
  font-weight: 400;
}

.acoes-botao {
  margin-top: 38px;
  text-align: center;
}

.btn-acoes {
  min-height: 46px;
  padding: 11px 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;
  background-color: var(--vermelho-escuro);
  color: var(--branco);

  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;

  transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn-acoes:hover {
  background-color: var(--vermelho);
  transform: translateY(-2px);
}

/*COMPROMISSO SOCIAL*/

.compromisso-social {
  position: relative;
  overflow: hidden;

  padding: 60px 0;

  background-color: var(--azul-principal);
  color: var(--branco);
}

.compromisso-container {
  position: relative;

  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.compromisso-icone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.compromisso-icone img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
}

.compromisso-texto {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.compromisso-texto h2 {
  margin: 0 0 14px;

  color: var(--branco);

  font-size: clamp(1.55rem, 2vw, 1.95rem);
  line-height: 1.2;
  font-weight: 800;
}

.compromisso-texto p {
  max-width: 820px;
  margin: 0;

  color: var(--branco);

  font-size: 1rem;
  line-height: 1.65;
}

.compromisso-fundo {
  position: absolute;
  right: -18px;
  bottom: -60px;
  z-index: 1;

  width: 290px;
  opacity: 0.18;
  pointer-events: none;
}

/*RODAPÉ*/

.rodape {
  background-color: var(--azul-claro);
  color: var(--azul-escuro);
}

.rodape-container {
  padding: 48px 0;

  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr 1.5fr;
  align-items: start;
  gap: clamp(35px, 4vw, 60px);
}

.rodape-logo img {
  width: 250px;
  height: auto;
  display: block;
}

.rodape-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}

.rodape-menu a {
  color: var(--azul-escuro);
  text-decoration: none;

  font-size: 0.96rem;
  font-weight: 500;

  transition: color 0.25s ease;
}

.rodape-menu a:hover {
  color: var(--vermelho-escuro);
}

.rodape-contato h3 {
  margin: 0 0 12px;

  color: var(--azul-escuro);

  font-size: 1.1rem;
  font-weight: 800;
}

.rodape-contato p {
  margin: 5px 0;

  color: var(--texto);

  font-size: 0.88rem;
  line-height: 1.55;
}

.rodape-copy {
  padding: 12px var(--espaco-lateral);
  background-color: var(--azul-principal);
  text-align: center;
}

.rodape-copy p {
  margin: 0;

  color: var(--branco);

  font-size: 0.82rem;
  line-height: 1.5;
}

.rodape-copy a {
  color: var(--branco);
  text-decoration: none;
  font-weight: 700;
}

.rodape-copy a:hover {
  text-decoration: underline;
}


/*RESPONSIVO*/
/*TELAS INTERMEDIÁRIAS*/

@media screen and (max-width: 1180px) {
  :root {
    --espaco-lateral: 24px;
  }

  header .container {
    gap: 34px;
  }

  header .logo img {
    width: 205px;
  }

  header nav ul {
    gap: 24px;
    font-size: 0.93rem;
  }

  .acoes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }

  .acoes-item h3 {
    min-height: auto;
  }

  .rodape-container {
    grid-template-columns: 1.1fr 0.7fr 0.8fr 1.4fr;
    gap: 32px;
  }
}

/*TABLETS E MENUS MENORES*/

@media screen and (max-width: 980px) {
  header .container {
    min-height: auto;
    padding: 16px 0 12px;

    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  header .logo img {
    width: 210px;
  }

  header nav {
    width: 100%;
  }

  header nav ul {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-size: 0.92rem;
  }

  header nav ul li a {
    padding: 7px 0;
  }

  #banner {
    min-height: 400px;
    background-position: 58% center;
  }

  #banner .container {
    padding: 60px 0;
  }

  .quem-somos-section {
    padding: 64px 0;
  }

  .quem-container,
  .flex-between {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .container-left {
    width: 100%;
    max-width: 700px;
  }

  .container-left .equipe img {
    aspect-ratio: 16 / 9;
  }

  .container-right .texto p {
    max-width: 74ch;
  }

  .compromisso-container {
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 34px;
  }

  .compromisso-icone img {
    width: 120px;
    height: 120px;
  }

  .rodape-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

/*CELULARES*/

@media screen and (max-width: 700px) {
  :root {
    --espaco-lateral: 20px;
  }

  .topbar {
    padding-top: 9px;
    padding-bottom: 9px;
    gap: 14px;
  }

  .topbar-left .nome-associacao {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .topbar-right {
    gap: 10px;
  }

  .topbar-right a {
    width: 21px;
    height: 21px;
  }

  .social-icon {
    width: 18px;
    height: 18px;
  }

  header .container {
    padding: 13px 0 10px;
  }

  header .logo img {
    width: 190px;
  }

  header nav {
    overflow-x: auto;
    scrollbar-width: thin;
  }

  header nav ul {
    width: max-content;
    min-width: 100%;

    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 22px;

    padding: 0 2px 5px;
  }

  header nav ul li a {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  #banner {
    min-height: 440px;
    background-position: 65% center;
  }

  #banner .container {
    padding: 54px 0;
  }

  .banner-content {
    max-width: 100%;
  }

  #banner h2 {
    max-width: 480px;
    margin-bottom: 16px;
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  #banner p {
    max-width: 500px;
    margin-bottom: 24px;
    font-size: 0.97rem;
    line-height: 1.55;
  }

  .banner-buttons {
    align-items: stretch;
  }

  #banner .btn {
    min-height: 46px;
    padding: 11px 18px;
    font-size: 0.84rem;
  }

  .quem-somos-section {
    padding: 52px 0 58px;
  }

  .quem-container,
  .flex-between {
    gap: 30px;
  }

  .container-left .equipe img {
    aspect-ratio: 4 / 3;
    border-radius: 10px;
  }

  .container-right .texto h2 {
    margin-bottom: 20px;
    font-size: 1.75rem;
  }

  .container-right .texto p {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .container-right .texto .btn {
    width: 100%;
    margin-top: 22px;
    text-align: center;
  }

  .acoes {
    padding: 56px 0 62px;
  }

  .acoes-container {
    margin-bottom: 32px;
  }

  .acoes h2 {
    font-size: 1.75rem;
  }

  .acoes-container p {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .acoes-container br {
    display: none;
  }

  .acoes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .acoes-item {
    padding: 20px 12px;
  }

  .acoes-item img {
    width: 86px;
    height: 86px;
    margin-bottom: 14px;
  }

  .acoes-item h3 {
    font-size: 0.9rem;
  }

  .acoes-item p {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .btn-acoes {
    width: min(100%, 320px);
  }

  .compromisso-social {
    padding: 50px 0;
  }

  .compromisso-container {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    text-align: center;
  }

  .compromisso-icone img {
    width: 105px;
    height: 105px;
  }

  .compromisso-texto h2 {
    font-size: 1.55rem;
  }

  .compromisso-texto p {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .compromisso-fundo {
    right: -55px;
    bottom: -45px;
    width: 190px;
    opacity: 0.12;
  }

  .rodape-container {
    padding: 42px 0;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 26px;
    text-align: center;
  }

  .rodape-logo img {
    width: 230px;
  }

  .rodape-menu {
    align-items: center;
  }

  .rodape-contato h3 {
    margin-top: 0;
  }

  .rodape-copy {
    padding-top: 13px;
    padding-bottom: 13px;
  }

  .rodape-copy p {
    font-size: 0.76rem;
  }
}

/*CELULARES PEQUENOS*/

@media screen and (max-width: 440px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-left {
    max-width: 235px;
  }

  #banner {
    min-height: 470px;
  }

  .banner-buttons {
    width: 100%;
    flex-direction: column;
  }

  #banner .btn {
    width: 100%;
  }

  .acoes-grid {
    grid-template-columns: 1fr;
  }

  .acoes-item {
    max-width: 360px;
    width: 100%;
    margin: 0 auto;
  }

  .acoes-item p {
    max-width: 270px;
    font-size: 0.84rem;
  }
}