* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

a,
p,
span,
h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  font-style: normal;
}

body {
  overflow-x: hidden;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
  gap: 50px;
}

/* Banner */
#banner {
  width: 100%;
  min-height: 150px;
  background-image: url("../img/banner.avif");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: 0 24px;
  color: white;
  font-size: 30px;
}

#banner h1 {
  font-size: clamp(32px, 5vw, 48px);
}

/* Seções */
#section1,
#section3 {
  width: 100%;
  max-width: 1400px;
}

#section1 {
  padding: 0 100px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#title {
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}

#title span {
  font-size: larger;
  font-weight: bold;
  color: #008871;
}

#section1 h1,
#section2 h1,
#section3 h1 {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.1;
}

#section1 p,
#section2 span,
#section3 p,
#section3 span,
.sede span {
  line-height: 1.7;
  color: #333;
}

/* Imagens seção 1 */
#images1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  flex-wrap: wrap;
}

.sede {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 280px;
  min-width: 260px;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.sede img {
  width: 100%;
  max-width: 300px;
  height: auto;
  max-height: 200px;
  object-fit: cover;
}

.images {
  padding: 7px;
  box-shadow: 0 0 5px rgb(101, 101, 101);
  border-radius: 4px;
}

.sede span {
  font-size: 14px;
}

/* Seção 2 */
#section2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 0 24px;
  text-align: center;
}

#section2 img {
  width: 100%;
  max-width: 1400px;
  height: auto;
}

/* Seção 3 */
#section3 {
  display: flex;
  flex-direction: column;
  padding: 0 100px;
  gap: 30px;
}

#section3_title {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

#section3_title h3 {
  color: #008871;
}

#section3_title img {
  width: 75px;
  height: auto;
}

#content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

#images2 {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 25px;
  width: 100%;
  flex-wrap: wrap;
}

#images2 img {
  flex: 1 1 400px;
  width: 100%;
  max-width: calc(50% - 12.5px);
  height: auto;
}

#section3 > img.images {
  width: 100%;
  max-width: 100%;
  height: auto;
}

/* ===== Responsividade ===== */

@media (max-width: 1024px) {
  #section1,
  #section3 {
    padding-left: 50px;
    padding-right: 50px;
  }

  #banner {
    min-height: 130px;
  }

  #images2 img {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  main {
    gap: 40px;
    margin-bottom: 40px;
  }

  #banner {
    min-height: 110px;
    padding: 0 20px;
    font-size: 22px;
  }

  #section1,
  #section3 {
    padding-left: 20px;
    padding-right: 20px;
    gap: 24px;
  }

  #section2 {
    padding: 0 20px;
    gap: 20px;
  }

  #title span {
    font-size: 16px;
  }

  #section1 p,
  #section3 p,
  #section2 span,
  .sede span {
    font-size: 15px;
  }

  #images1 {
    justify-content: center;
  }

  .sede {
    min-width: 100%;
  }

  .sede img {
    max-width: 100%;
    max-height: none;
  }

  #images2 {
    flex-direction: column;
    gap: 20px;
  }

  #images2 img {
    max-width: 100%;
  }

  #section3_title img {
    width: 60px;
  }
}

@media (max-width: 480px) {
  #banner {
    min-height: 90px;
    padding: 0 16px;
  }

  #section1,
  #section2,
  #section3 {
    padding-left: 16px;
    padding-right: 16px;
  }

  #section1 h1,
  #section2 h1,
  #section3 h1 {
    font-size: 28px;
  }

  #section1 p,
  #section3 p,
  #section2 span,
  .sede span {
    font-size: 14px;
    line-height: 1.6;
  }

  .images {
    padding: 4px;
  }

  #section3_title img {
    width: 50px;
  }
}