.projeto-titulo {
  width: 100%;
  max-width: 1200px;

  display: flex;
  justify-content: flex-start;
  align-items: flex-start;

  padding: 75px 50px;
  margin: 0 auto;
}

.projeto-titulo h1 {
  color: rgba(8, 55, 97, 1);
  font-family: "Mulish", sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0;
  margin: 0;
}

/* PARALLAX */
.projeto-parallax {
  height: 500px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .projeto-parallax {
    background-attachment: scroll;
  }
}

/* CONTEÚDO */
.projeto-content {
  width: 100%;

  margin: 0 auto;
  padding: 75px 10%;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.projeto-tag {
  color: rgba(8, 55, 97, 1);
  font-family: "Mulish", sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 35.2px;

  text-transform: uppercase;
}

.projeto-subtitulo {
  color: rgba(8, 55, 97, 1);

  font-family: "Mulish", sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 27.2px;

  margin: 0;
}
.projeto-texto {
  width: 100%;
  max-width: 1175px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  padding: 20px 0;
}
.projeto-texto p {
  margin: 0;

  color: rgba(64, 64, 64, 1);

  font-family: "Mulish", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
}

.projeto-grid {
  width: 100%;
  max-width: 1200px;

  margin: 0 auto;
  padding: 0 30px;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (max-width: 768px) {
  .projeto-titulo {
    padding: 50px 20px;
  }

  .projeto-titulo h1 {
    font-size: 32px;
    text-align: center;
  }

  .projeto-parallax {
    height: 300px;
  }

  .projeto-content {
    padding: 50px 20px;
    gap: 15px;
  }

  .projeto-tag {
    font-size: 18px;
  }

  .projeto-subtitulo {
    font-size: 16px;
  }

  .projeto-texto p {
    font-size: 18px;
    line-height: 28px;
  }

  .projeto-grid {
    padding: 0 20px;
  }

  .grid-linha {
    flex-direction: column;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 15px;
  }

  .grid-linha img {
    max-width: 100%;
    height: auto;
  }

  .grid-linha.grande.esquerda {
    padding-left: 0;
  }

  .grid-linha.esquerda,
  .grid-linha.direita {
    padding-left: 0;
    padding-right: 0;
  }

  .btn-center {
    padding: 20px;
  }

  .projeto-lista {
    padding-left: 20px !important;
  }

  .projeto-lista li {
    font-size: 16px;
    line-height: 24px;
  }

  /* Slider específico para iluminação */
  .before-after-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
  }

  .slider-handle {
    width: 40px;
    height: 40px;
  }

  .handle-circle {
    width: 30px;
    height: 30px;
  }

  .slider-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .slider-thumbs img {
    width: 80px;
    height: 60px;
    object-fit: cover;
  }
}

/* Responsivo - Telas muito pequenas */
@media (max-width: 480px) {
  .projeto-titulo {
    padding: 30px 15px;
  }

  .projeto-titulo h1 {
    font-size: 26px;
  }

  .projeto-parallax {
    height: 200px;
  }

  .projeto-content {
    padding: 30px 15px;
  }

  .projeto-tag {
    font-size: 16px;
  }

  .projeto-subtitulo {
    font-size: 14px;
  }

  .projeto-texto p {
    font-size: 16px;
    line-height: 24px;
  }

  .grid-linha {
    gap: 10px;
  }

  .grid-linha img {
    max-width: 100%;
  }

  .lightbox-overlay img {
    max-width: 100%;
    max-height: 85%;
  }

  .projeto-lista {
    padding-left: 15px !important;
  }

  .projeto-lista li {
    font-size: 14px;
    line-height: 20px;
  }
}

/* IMAGENS */
.grid-linha {
  display: flex;
  gap: 25px;
}

.grid-linha img {
  width: 100%;
  max-width: 585px;
  height: 330px;
  object-fit: cover;
}

.grid-linha.grande.esquerda {
  padding-left: 40%;
}

.grid-linha.grande img {
  width: 100%;
  max-width: 585px;
  height: auto;
}

.grid-linha.esquerda {
  justify-content: flex-start;
  padding-left: 15%;
}

.grid-linha.direita {
  justify-content: flex-end;
  padding-right: 15%;
}

.btn-center {
  padding: 25px 25px 25px 25px;
  display: flex;
  justify-content: center;
}

.projeto-texto {
  color: rgba(64, 64, 64, 1);
  font-family: "Mulish", sans-serif;
  font-style: normal;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  text-align: left;
}
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.9);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  cursor: zoom-out;
}

.projeto-texto {
  width: 100%;
  max-width: 1200px;
}

.projeto-texto p {
  font-size: 20px;
  line-height: 32px;
}

.projeto-lista {
  width: 100%;
  max-width: 1480px;
  font-family: "Mulish", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 12px;

  padding-left: 40px;
  margin: 0;
}

.projeto-lista li {
  font-size: 20px;
  line-height: 32px;
  color: rgba(64, 64, 64, 1);
}

.before-after-section {
  width: 100%;
  max-width: 1535px;
  margin: 60px auto;
  padding: 0 150px;

  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SLIDER */
.before-after-slider {
  position: relative;
  width: 100%;
  max-width: 1415px;

  aspect-ratio: 1415 / 796;

  margin: 0 auto;

  overflow: hidden;
  cursor: ew-resize;

  --position: 50%;
}

.before-after-slider .before-img,
.before-after-slider .after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BEFORE - imagem de fundo */
.before-img {
  z-index: 1;
}

/* AFTER - imagem que fica por cima usando clip-path */
.after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  clip-path: inset(0 0 0 var(--position));
  transition: clip-path 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* DRAG STATE */
.before-after-slider.dragging .after-img {
  transition: none;
}

/* HANDLE COM TRANSIÇÃO */
.slider-handle {
  position: absolute;
  top: 0;
  left: var(--position);
  transform: translateX(-50%);
  height: 100%;
  width: 4px;
  background: #fff;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: left 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.before-after-slider.dragging .slider-handle {
  transition: none;
}

/* THUMBS */
.slider-thumbs {
  display: flex;
  gap: 10px;
  margin: 25px auto;
  justify-content: center;
}

.slider-thumbs img {
  width: 100px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
}

.slider-thumbs img.active {
  opacity: 1;
  outline: 2px solid #087f5b;
}

/* LINHA CENTRAL */
.slider-handle {
  position: absolute;
  top: 0;
  left: var(--position);
  transform: translateX(-50%);
  height: 100%;
  width: 4px;
  background: #fff;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.handle-arrows {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.arrow {
  width: 12px;
  height: 24px;
}

.arrow path {
  stroke: rgba(0, 0, 0, 1);
  stroke-width: 4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.arrow-left {
  transform: scaleX(-1);
}

.arrow path {
  stroke: rgba(0, 0, 0, 1); /* equivalente ao border */
  stroke-width: 4; /* espessura */
  fill: none;

  stroke-linecap: round;
  stroke-linejoin: round;
}

/* espelhamento */
.arrow-left {
  transform: scaleX(-1);
}
.handle-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 116px;
  min-width: 50px;
  min-height: 50px;
  aspect-ratio: 1 / 1;

  background: #fff;
  border: 4px solid #fff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  box-shadow:
    0 8px 25px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(0, 0, 0, 0.15);
}

.before-after-slider:hover .handle-circle {
  transform: translate(-50%, -50%) scale(1.05);
  transition: 0.2s;
}
.before-after-slider.dragging .handle-circle {
  transform: translate(-50%, -50%) scale(0.95);
}
