body {
  background: #eaeaea;
}

/* Hero */

.hero {
  background: #0d47a1;
  color: #fff;
  text-align: center;
  padding: 60px 20px 70px;
}

.hero .logo {
  width: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.hero h1 span {
  color: #ffd000;
}

.hero p {
  margin-top: 10px;
  color: #ccc;
  font-size: 15px;
  line-height: 1.7;
}

/*  select ano  */

.year-selector {
  text-align: center;
  padding: 45px 20px 5px;
}

.year-selector h2 {
  color: #0d47a1;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
}

.year-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.year-btn {
  min-width: 120px;
  padding: 10px 30px;
  background: transparent;
  border: 2px solid #0d47a1;
  border-radius: 30px;
  color: #0d47a1;
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.year-btn:hover {
  background: #ffd000;
  border-color: #ffd000;
  color: #111;
  transform: translateY(-3px);
}

.year-btn.active {
  background: #0d47a1;
  border-color: #0d47a1;
  color: #fff;
}

/* Equipes */

.team-year {
  display: none;
}

.team-year.active {
  display: grid;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(300px, 400px));
  gap: 60px;
  padding: 50px;
  justify-content: center;
  align-items: stretch;
}

/* Membro*/

.member {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 420px;
  min-height: 480px;
  background: #0d47a1;
  color: #fff;
  text-align: center;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.member:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.member h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 75px;
  padding: 20px 15px;
  font-size: 22px;
  font-weight: 700;
}

.img-container {
  position: relative;
  width: 80%;
  height: 250px;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid #ffd000;
  border-radius: 5px;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.member:hover .img-container img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.member:hover .overlay {
  opacity: 1;
}

.overlay span {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}

.member > p {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  margin-top: 25px;
  padding: 25px;
  background: #ffd000;
  color: #111;
  font-size: 14px;
  line-height: 1.6;
}

/*  centralizar pc */

#team-2025 .member:last-child {
  grid-column: 2;
}

#team-2026 .member:nth-child(4),
#team-2026 .member:nth-child(5) {
  transform: translateX(50%);
}

#team-2026 .member:nth-child(4) {
  grid-column: 1 / 2;
}

#team-2026 .member:nth-child(5) {
  grid-column: 2 / 3;
}

#team-2026 .member:nth-child(4):hover,
#team-2026 .member:nth-child(5):hover {
  transform: translateX(50%) scale(1.05);
}

/* tablet */

@media (max-width: 1300px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(300px, 400px));
    gap: 40px;
  }

  #team-2025 .member:last-child,
  #team-2026 .member:nth-child(4),
  #team-2026 .member:nth-child(5) {
    grid-column: auto;
    transform: none;
  }

  #team-2026 .member:nth-child(4):hover,
  #team-2026 .member:nth-child(5):hover {
    transform: scale(1.05);
  }
}

/* xiome ne pai */

@media (max-width: 750px) {
  .hero {
    padding: 45px 20px;
  }

  .hero .logo {
    width: 80px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 13px;
  }

  .hero p br {
    display: none;
  }

  .year-selector {
    padding-top: 35px;
  }

  .year-selector h2 {
    font-size: 23px;
  }

  .year-btn {
    min-width: 100px;
    padding: 8px 20px;
    font-size: 15px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    padding: 40px 20px;
    gap: 35px;
  }

  .member {
    max-width: 400px;
    margin: 0 auto;
  }
}
