.itajai-section {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
}

.slideshow-container {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide.active {
  opacity: 1;
}

.content-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  /* max-width: 1200px; */
  /* background-color: rgba(255, 255, 255, 0.2); */
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1%;
  /* border-radius: 15px; */
  /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); */
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.8s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.content-overlay.show {
  transform: translateY(0);
  opacity: 1;
}

h1 {
  /* background-color: rgba(255, 255, 255, 0.9); */
  border-radius: 10px;
  /* color: #0056b3; */
  color: #ff4d00;
  margin-top: 10%;
  margin-bottom: 20px;
  font-size: 2.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
  width: inherit;
}

#p_titulo {
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 1);
  font-size: 1.2rem;
}

quality-item > p {
  color: #333;
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.qualities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.quality-item {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quality-item:hover {
  transform: translateY(-25px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.quality-item h3 {
  color: #ff4d00;
  margin-bottom: 10px;
}

.slide-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: white;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 1rem;
  }

  .qualities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .itajai-section {
    height: auto;
  }

  .content-overlay {
    padding: 2%;
  }

  /* .slide {
    background-attachment: fixed;
    background-position: center;
  } */

  h1 {
    margin: 20% 0;
    font-size: 1.8rem;
  }

  #p_titulo {
    margin-bottom: 10%;
  }

  .quality-item {
    padding: 15px;
  }

  .quality-item:hover {
    transform: none;
  }
}
