/* PÁGINA */

.linha-planejada-page {
  padding-top: 82px;
  background: #f8f6f2;
}

/* BLOCO PRINCIPAL: FOTO + TEXTO */

.planejada-destaque {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #414019;
}

.planejada-destaque > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 680px;
  object-fit: cover;
}

.planejada-destaque-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 105px 70px 75px 58px;
  color: #ffffff;
}

.planejada-destaque-texto span {
  margin-bottom: 18px;
  color: #e79058;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.7px;
}

.planejada-destaque-texto h1,
.planejada-destaque-texto h2 {
  margin: 0 0 26px;
  color: #ffffff;
  font-size: clamp(36px, 3.3vw, 54px);
  font-weight: 500;
  line-height: 1.12;
}

.planejada-destaque-texto p {
  max-width: 420px;
  margin: 0;
  color: #e3d8d0;
  font-size: 16px;
  line-height: 1.62;
}

/* CARDS */

.projetos-planejados {
  padding: 80px 0 100px;
  background: #f8f6f2;
}

.projetos-planejados .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.titulo-projetos {
  margin-bottom: 42px;
  text-align: center;
}

.titulo-projetos span {
  display: block;
  margin-bottom: 8px;
  color: #e79058;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.titulo-projetos h2 {
  margin: 0;
  color: #79472a;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
}

.linha-titulo {
  width: 65px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 10px;
  background: #e79058;
}

.grid-projetos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card-projeto {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(65, 64, 25, 0.16);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-projeto:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 30px rgba(65, 64, 25, 0.24);
}

.card-projeto img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card-projeto:hover img {
  transform: scale(1.07);
}

.card-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 18px;
  color: #79472a;
  font-size: 16px;
  font-weight: 500;
}

.card-info i {
  color: #e79058;
  font-size: 17px;
  transition: transform 0.3s ease;
}

.card-projeto:hover .card-info i {
  transform: rotate(90deg);
}

/* FOTO AMPLIADA */
/* LIGHTBOX COM GALERIA */

.lightbox-projeto {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 70px 95px;
  background: rgba(20, 20, 10, 0.92);
}

.lightbox-projeto.ativo {
  display: flex;
}

.conteudo-lightbox {
  display: flex;
  width: min(1100px, 100%);
  height: min(78vh, 760px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.titulo-lightbox {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
}

.lightbox-projeto img {
  display: block;
  width: 100%;
  height: calc(100% - 55px);
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.48);
}

.contador-lightbox {
  margin-top: 14px;
  color: #e3d8d0;
  font-size: 13px;
  letter-spacing: 1px;
}

.fechar-lightbox,
.seta-lightbox {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #79472a;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.fechar-lightbox:hover,
.seta-lightbox:hover {
  transform: scale(1.08);
  background: #e79058;
  color: #ffffff;
}

.fechar-lightbox {
  top: 24px;
  right: 28px;
  font-size: 22px;
}

.seta-lightbox {
  top: 50%;
  font-size: 19px;
  transform: translateY(-50%);
}

.seta-lightbox:hover {
  transform: translateY(-50%) scale(1.08);
}

.seta-esquerda {
  left: 30px;
}

.seta-direita {
  right: 30px;
}

@media (max-width: 700px) {
  .lightbox-projeto {
    padding: 75px 18px 55px;
  }

  .conteudo-lightbox {
    height: 70vh;
  }

  .seta-lightbox {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .seta-esquerda {
    left: 10px;
  }

  .seta-direita {
    right: 10px;
  }

  .fechar-lightbox {
    top: 15px;
    right: 15px;
  }

  .titulo-lightbox {
    font-size: 15px;
  }
}


/* TABLET */

@media (max-width: 1050px) {
  .planejada-destaque {
    min-height: 590px;
  }

  .planejada-destaque > img {
    min-height: 590px;
  }

  .planejada-destaque-texto {
    padding: 85px 45px 65px;
  }

  .grid-projetos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 850px) {
  .planejada-destaque {
    grid-template-columns: 1fr;
  }

  .planejada-destaque > img {
    min-height: 420px;
    height: 420px;
  }

  .planejada-destaque-texto {
    padding: 65px 42px 70px;
  }

  .planejada-destaque-texto p {
    max-width: 580px;
  }
}

/* CELULAR */

@media (max-width: 700px) {
  .linha-planejada-page {
    padding-top: 76px;
  }

  .planejada-destaque > img {
    min-height: 290px;
    height: 290px;
  }

  .planejada-destaque-texto {
    padding: 52px 24px 58px;
  }

  .planejada-destaque-texto h1,
  .planejada-destaque-texto h2 {
    margin-bottom: 20px;
    font-size: 34px;
  }

  .planejada-destaque-texto p {
    font-size: 14px;
    line-height: 1.65;
  }

  .projetos-planejados {
    padding: 58px 0 75px;
  }

  .projetos-planejados .container {
    padding: 0 18px;
  }

  .titulo-projetos {
    margin-bottom: 30px;
  }

  .grid-projetos {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .card-projeto {
    border-radius: 14px;
  }

  .card-projeto img {
    height: 135px;
  }

  .card-info {
    min-height: 54px;
    padding: 0 12px;
    font-size: 13px;
  }

  .card-info i {
    font-size: 14px;
  }

  .lightbox-projeto {
    padding: 18px;
  }

  .fechar-lightbox {
    top: 15px;
    right: 15px;
  }
}

@media (max-width: 430px) {
  .grid-projetos {
    grid-template-columns: 1fr;
  }

  .card-projeto img {
    height: 220px;
  }
}
#imagemLightbox {
  transition: opacity 0.2s ease;
}

.arquivo-lightbox {
  max-width: 90%;
  margin-top: 8px;
  color: #e79058;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  word-break: break-all;
}

