/* ===== PROJETOS PAGE ===== */

.page-hero {
  padding: 160px 0 80px;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('../images/projetos/hero/hero.jpg') center/cover no-repeat;
  text-align: center;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  margin: 16px 0 20px;
  line-height: 1.1;
}

.page-hero-title .highlight {
  color: var(--gold);
}

.page-hero-desc {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-hero .section-tag {
  color: var(--white);
}

/* ===== FILTROS ===== */
.gallery-section {
  padding: 60px 0 100px;
  background: var(--off-white);
}

.gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 12px 32px;
  border: 2px solid var(--dark);
  background: transparent;
  color: var(--dark);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(188, 6, 13, 0.3);
}

/* ===== GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 30px;
}

.gallery-item {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-item.hidden {
  display: none;
}

/* ===== CARD ===== */
.gallery-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-card:hover .gallery-img-wrap img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-zoom:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.1);
}

.gallery-info {
  padding: 24px;
}

.gallery-cat {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 8px;
}

.gallery-info h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.gallery-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-caption {
  margin-top: 20px;
}

.lightbox-caption h3 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 6px;
}

.lightbox-caption p {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--gold);
  border-color: var(--gold);
}

/* ===== RESPONSIVO ===== */
@media (max-width: 768px) {
  .page-hero {
    padding: 130px 0 60px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
}
