:root {
  --azul-escuro: #1f2858;
  --azul-principal: #002b5c;
  --azul-claro: #e6f1fc;
  --azul-ponto: #004b93;
  --vermelho: #d70b1a;
  --vermelho-escuro: #8c1822;
  --branco: #ffffff;
  --texto: #202020;
  --texto-suave: #566074;
  --borda: #e5e9f0;
  --linha: #cfd6dc;
  --fundo-copy: #f2e9e9;

  --largura-container: 1320px;
  --espaco-lateral: 28px;
  --raio: 12px;
  --sombra: 0 16px 38px rgba(20, 40, 80, 0.13);
}

/* CONFIGURAÇÕES GERAIS */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: "Sora", sans-serif;
  color: var(--texto);
  background-color: var(--branco);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(215, 11, 26, 0.35);
  outline-offset: 4px;
}

.container,
.historia-container,
.trajetoria-container,
.chamada-container,
.rodape-container {
  width: min(
    calc(100% - (var(--espaco-lateral) * 2)),
    var(--largura-container)
  );
  margin-right: auto;
  margin-left: 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;
}

.topbar-right a {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--branco);
  text-decoration: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.topbar-right a:hover {
  opacity: 0.78;
  transform: translateY(-2px);
}

.social-icon {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

/* 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,
header .logo a {
  display: flex;
  align-items: center;
}

header .logo {
  flex: 0 0 auto;
}

header .logo img {
  width: 225px;
  height: auto;
  display: block;
  object-fit: contain;
}

header nav {
  min-width: 0;
}

header nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(22px, 2.35vw, 44px);
  list-style: none;
  font-size: 1rem;
}

header nav ul li {
  flex: 0 0 auto;
}

header nav ul li a {
  position: relative;
  padding: 10px 0;
  display: inline-flex;
  align-items: center;
  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);
}

/* TÍTULO DA PÁGINA */

.quemsomos {
  min-height: 105px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px var(--espaco-lateral);
  margin: 0;

  background: linear-gradient(
    90deg,
    #1f2858 0%,
    #002b5c 52%,
    #8c1822 78%
  );

  color: #ffffff;
  text-align: center;
}

.quemsomos h1 {
  width: 100%;
  margin: 0;
  padding: 0;

  color: #ffffff;
  text-align: center;

  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.2;
  font-weight: 800;
}

/* NOSSA HISTÓRIA */
.nossa-historia {
  padding: 68px 0 76px;
  background-color: var(--branco);
}

.historia-container {
  width: min(
    calc(100% - (var(--espaco-lateral) * 2)),
    var(--largura-container)
  );
  margin: 0 auto;
}

/* Foto e primeiros parágrafos */

.historia-topo {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 4.5vw, 64px);
}

.historia-imagem {
  width: 100%;
  max-width: 500px;
  margin: 0;
}

.historia-imagem img {
  width: 100%;
  height: auto;

  display: block;

  object-fit: cover;
  object-position: center;

  border-radius: 0;
  box-shadow: var(--sombra);
}

/* Textos */

.historia-texto-inicial,
.historia-texto-completo {
  min-width: 0;
}

.historia-texto-inicial p,
.historia-texto-completo p {
  margin: 0 0 18px;

  color: var(--texto);

  font-size: 0.98rem;
  line-height: 1.7;
  text-align: left;
}

.historia-texto-inicial p:last-child,
.historia-texto-completo p:last-child {
  margin-bottom: 0;
}

/* Remove a letra inicial grande */
.historia-texto-inicial p:first-child::first-letter {
  float: none;
  margin: 0;

  color: inherit;

  font-size: inherit;
  line-height: inherit;
  font-weight: inherit;
}

/* Continuação da história */

.historia-texto-completo {
  width: 100%;
  max-width: none;
  margin: 30px 0 0;
}

/* NOSSA TRAJETÓRIA */
.trajetoria {
  padding: 68px 0 74px;
  background-color: var(--azul-claro);
  text-align: center;
}

.trajetoria h2 {
  position: relative;
  margin: 0 0 48px;
  padding-bottom: 16px;
  color: var(--azul-escuro);
  font-size: clamp(1.9rem, 2.6vw, 2.35rem);
  line-height: 1.2;
  font-weight: 800;
}

.trajetoria h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 52px;
  height: 3px;
  margin: auto;
  border-radius: 999px;
  background-color: var(--vermelho);
}

.linha-tempo {
  --gap-colunas: 32px;
  --tamanho-icone: 74px;
  --espaco-icone: 18px;
  --tamanho-ponto: 12px;

  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: var(--gap-colunas);
}

.linha-tempo::before {
  display: none;
}

.trajetoria-item {
  position: relative;
  min-width: 0;
  text-align: center;
}

.trajetoria-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--tamanho-icone) + var(--espaco-icone) + (var(--tamanho-ponto) / 2));
  left: 50%;
  z-index: 0;
  width: calc(100% + var(--gap-colunas));
  height: 2px;
  background-color: var(--linha);
  transform: translateY(-50%);
}

.trajetoria-icone {
  position: relative;
  z-index: 2;
  width: var(--tamanho-icone);
  height: var(--tamanho-icone);
  margin: 0 auto var(--espaco-icone);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--branco);
  box-shadow: 0 8px 24px rgba(24, 55, 100, 0.08);
}

.trajetoria-icone i {
  display: block;
  color: var(--azul-escuro);
  font-size: 2rem;
  line-height: 1;
}

.trajetoria-item:nth-child(1) .trajetoria-icone i,
.trajetoria-item:nth-child(3) .trajetoria-icone i {
  color: var(--vermelho);
}

.trajetoria-item > span {
  position: relative;
  z-index: 2;
  width: var(--tamanho-ponto);
  height: var(--tamanho-ponto);
  margin: 0 auto 18px;
  display: block;
  border-radius: 50%;
  background-color: var(--azul-ponto);
  box-shadow: 0 0 0 5px var(--azul-claro);
}

.trajetoria-item h3 {
  min-height: 22px;
  margin: 0 0 5px;
  color: var(--azul-escuro);
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 800;
}

.trajetoria-item h4 {
  min-height: 22px;
  margin: 0 0 10px;
  color: var(--azul-escuro);
  font-size: 0.92rem;
  line-height: 1.35;
  font-weight: 700;
}

.trajetoria-item p {
  max-width: 220px;
  margin: 0 auto;
  color: var(--azul-escuro);
  font-size: 0.79rem;
  line-height: 1.5;
}

/* CHAMADA */
.chamada-associacao {
  padding: 42px 0;
  background-color: var(--azul-principal);
  color: var(--branco);
}

.chamada-container {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 32px;
}

.chamada-icone {
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chamada-icone img {
  width: 108px;
  height: 108px;
  display: block;
  object-fit: contain;
}

.chamada-texto {
  min-width: 0;
}

.chamada-texto h2 {
  margin: 0 0 8px;
  color: var(--branco);
  font-size: clamp(1.45rem, 2vw, 1.8rem);
  line-height: 1.25;
  font-weight: 800;
}

.chamada-texto p {
  max-width: 760px;
  margin: 0;
  color: var(--branco);
  font-size: 1.02rem;
  line-height: 1.55;
}

.btn-chamada {
  min-width: 220px;
  min-height: 58px;
  padding: 15px 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: var(--vermelho);
  color: var(--branco);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.08rem;
  line-height: 1;
  font-weight: 700;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.btn-chamada:hover {
  background-color: var(--vermelho-escuro);
  transform: translateY(-3px);
}

/* 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;
  }

  .historia-topo {
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 42px;
  }

  .historia-imagem,
  .historia-imagem img {
    width: 380px;
  }

  .historia-imagem img {
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .linha-tempo {
    --gap-colunas: 24px;
  }

  .chamada-container {
    grid-template-columns: 104px minmax(0, 1fr) max-content;
    gap: 26px;
  }

  .chamada-icone {
    width: 104px;
    height: 104px;
  }

  .chamada-icone img {
    width: 96px;
    height: 96px;
  }

  .btn-chamada {
    min-width: 190px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .rodape-container {
    grid-template-columns: 1.1fr 0.7fr 0.8fr 1.4fr;
    gap: 32px;
  }
}

/* RESPONSIVO: 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;
  }

  .quemsomos .container {
    min-height: 100px;
  }

  .nossa-historia {
    padding: 60px 0 66px;
  }

  .historia-topo {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .historia-imagem {
    width: min(100%, 426px);
    margin: 0 auto;
  }

  .historia-imagem img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }

  .historia-texto-completo {
    margin-top: 28px;
  }

  .trajetoria {
    padding: 60px 0 66px;
  }

  .linha-tempo {
    --gap-colunas: 48px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 54px;
  }

  .trajetoria-item:nth-child(2)::after,
  .trajetoria-item:nth-child(4)::after {
    display: none;
  }

  .trajetoria-item p {
    max-width: 250px;
  }

  .chamada-container {
    grid-template-columns: 96px minmax(0, 1fr) max-content;
    gap: 22px;
  }

  .chamada-icone {
    width: 96px;
    height: 96px;
  }

  .chamada-icone img {
    width: 88px;
    height: 88px;
  }

  .chamada-texto p {
    font-size: 0.96rem;
  }

  .btn-chamada {
    min-width: 170px;
    min-height: 54px;
    padding: 14px 24px;
    font-size: 1rem;
  }

  .rodape-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

/* RESPONSIVO: 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%;
    padding: 0 2px 5px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 22px;
  }

  header nav ul li a {
    font-size: 0.88rem;
  }

  .quemsomos .container {
    min-height: 88px;
  }

  .quemsomos h1 {
    font-size: 1.9rem;
  }

  .nossa-historia {
    padding: 46px 0 52px;
  }

  .historia-topo {
    gap: 26px;
  }

  .historia-imagem {
    width: 100%;
    max-width: 426px;
  }

  .historia-imagem img {
    border-radius: 10px;
  }

  .historia-texto-inicial p,
  .historia-texto-completo p {
    margin-bottom: 16px;
    font-size: 0.94rem;
    line-height: 1.68;
  }

  .historia-texto-inicial p:first-child::first-letter {
    font-size: 2.65rem;
  }

  .historia-texto-completo {
    margin-top: 24px;
  }

  .trajetoria {
    padding: 54px 0 60px;
  }

  .trajetoria h2 {
    margin-bottom: 38px;
    font-size: 1.75rem;
  }

  .linha-tempo {
    --tamanho-icone: 68px;
    --tamanho-ponto: 12px;
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .trajetoria-item {
    position: relative;
    min-height: 152px;
    padding: 0 0 40px 92px;
    display: block;
    text-align: left;
  }

  .trajetoria-item:last-child {
    min-height: auto;
    padding-bottom: 0;
  }

  .trajetoria-item:not(:last-child)::after {
    display: block;
    top: 84px;
    left: 33px;
    width: 2px;
    height: calc(100% - 54px);
    background-color: var(--linha);
    transform: none;
  }

  .trajetoria-icone {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--tamanho-icone);
    height: var(--tamanho-icone);
    margin: 0;
  }

  .trajetoria-icone i {
    font-size: 1.8rem;
  }

  .trajetoria-item > span {
    position: absolute;
    top: 78px;
    left: 28px;
    margin: 0;
  }

  .trajetoria-item h3 {
    min-height: auto;
    margin: 0 0 4px;
    font-size: 1rem;
  }

  .trajetoria-item h4 {
    min-height: auto;
    margin: 0 0 9px;
    font-size: 0.9rem;
  }

  .trajetoria-item p {
    max-width: none;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .chamada-associacao {
    padding: 42px 0;
  }

  .chamada-container {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    text-align: center;
  }

  .chamada-icone {
    width: 96px;
    height: 96px;
  }

  .chamada-icone img {
    width: 90px;
    height: 90px;
  }

  .chamada-texto h2 {
    font-size: 1.42rem;
  }

  .chamada-texto p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .btn-chamada {
    width: min(100%, 290px);
    min-width: 0;
    min-height: 52px;
    padding: 14px 26px;
    font-size: 0.98rem;
  }

  .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: 12px 18px;
  }

  .rodape-copy p {
    font-size: 0.76rem;
  }
}

/* RESPONSIVO: CELULARES PEQUENOS */
@media screen and (max-width: 430px) {
  .topbar-left .nome-associacao {
    max-width: 205px;
  }

  .quemsomos h1 {
    font-size: 1.72rem;
  }

  .trajetoria-item {
    padding-left: 84px;
  }

  .linha-tempo {
    --tamanho-icone: 62px;
  }

  .trajetoria-item:not(:last-child)::after {
    top: 78px;
    left: 30px;
  }

  .trajetoria-item > span {
    top: 72px;
    left: 25px;
  }
}