/* Section Sobre - Layout Bento Gallery */
.section-sobre {
  padding: 2rem 5rem;
}

.gallery-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery {
  position: relative;
  width: 100%;
  height: 100%;
  flex: none;
}

.gallery__item {
  background-position: 50% 50%;
  background-size: cover;
  flex: none;
  position: relative;
}

.gallery__item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.gallery--bento {
  display: grid;
  gap: 1vh;
  grid-template-columns: repeat(3, 32.5vw);
  grid-template-rows: repeat(4, 23vh);
  justify-content: center;
  align-content: center;
}

.gallery--final.gallery--bento {
  grid-template-columns: repeat(3, 100vw);
  grid-template-rows: repeat(4, 49.5vh);
  gap: 1vh;
}

.gallery--bento .gallery__item:nth-child(1) {
  grid-area: 1 / 1 / 3 / 2;
}

.gallery--bento .gallery__item:nth-child(2) {
  grid-area: 1 / 2 / 2 / 3;
}

.gallery--bento .gallery__item:nth-child(3) {
  grid-area: 2 / 2 / 4 / 3;
}

.gallery--bento .gallery__item:nth-child(4) {
  grid-area: 1 / 3 / 3 / 3;
}

.gallery--bento .gallery__item:nth-child(5) {
  grid-area: 3 / 1 / 3 / 2;
}

.gallery--bento .gallery__item:nth-child(6) {
  grid-area: 3 / 3 / 5 / 4;
}

.gallery--bento .gallery__item:nth-child(7) {
  grid-area: 4 / 1 / 5 / 2;
}

.gallery--bento .gallery__item:nth-child(8) {
  grid-area: 4 / 2 / 5 / 3;
}

@media (max-width: 1024px) {
  .gallery-wrap {
    height: 100vh;
  }

  .gallery--bento {
    grid-template-columns: repeat(3, 32vw);
    grid-template-rows: repeat(4, 23vh);
    gap: 0.8vh;
  }

  .gallery--final.gallery--bento {
    grid-template-columns: repeat(3, 100vw);
    grid-template-rows: repeat(4, 49.5vh);
    gap: 1vh;
  }
}

.section-content {
  padding: 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-weight: 700;
  opacity: 0;
  transform: translateY(50px);
}

.section-content p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(50px);
}

.content-wrapper {
  position: relative;
}

.content-visible {
  opacity: 0;
  transform: translateY(50px);
}

.content-hidden {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.6s ease, margin-top 0.6s ease;
  margin-top: 0;
}

.content-hidden.expanded {
  max-height: 2000px;
  opacity: 1;
  margin-top: 1.5rem;
}

.btn-read-more {
  margin-top: 1.5rem;
  padding: 0.75rem 2rem;
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-family: inherit;
  opacity: 0;
  transform: translateY(50px);
  text-decoration: none;
}

.btn-read-more:hover {
  background: var(--primary-color);
  color: var(--dark-bg);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-read-more.expanded .btn-icon {
  transform: rotate(180deg);
}

.btn-read-more .btn-icon {
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .section-sobre {
    padding: 1rem;
  }

  .gallery-wrap {
    height: 100vh;
    padding: 0.5vh;
  }

  .gallery--bento {
    grid-template-columns: repeat(3, 32vw);
    grid-template-rows: repeat(4, 23vh);
    gap: 0.5vh;
    /* Mantém o mesmo layout Bento, apenas menor */
  }

  .gallery--final.gallery--bento {
    grid-template-columns: repeat(3, 100vw);
    grid-template-rows: repeat(4, 49.5vh);
    gap: 1vh;
    /* Mesmo efeito de zoom, apenas ajustado para mobile */
  }

  /* Mantém as mesmas áreas do grid */
  .gallery--bento .gallery__item:nth-child(1) {
    grid-area: 1 / 1 / 3 / 2;
  }

  .gallery--bento .gallery__item:nth-child(2) {
    grid-area: 1 / 2 / 2 / 3;
  }

  .gallery--bento .gallery__item:nth-child(3) {
    grid-area: 2 / 2 / 4 / 3;
  }

  .gallery--bento .gallery__item:nth-child(4) {
    grid-area: 1 / 3 / 3 / 3;
  }

  .gallery--bento .gallery__item:nth-child(5) {
    grid-area: 3 / 1 / 3 / 2;
  }

  .gallery--bento .gallery__item:nth-child(6) {
    grid-area: 3 / 3 / 5 / 4;
  }

  .gallery--bento .gallery__item:nth-child(7) {
    grid-area: 4 / 1 / 5 / 2;
  }

  .gallery--bento .gallery__item:nth-child(8) {
    grid-area: 4 / 2 / 5 / 3;
  }

  .section-content {
    padding: 2rem 1rem;
  }

  .section-content h2 {
    font-size: 2rem;
  }

  .section-content p {
    font-size: 1rem;
  }
}

