/* ===== PAGE CONTENT ===== */
.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}


/* ===== MATERIAIS CARDS ===== */
.materiais-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.material-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  cursor: default;
}
.material-card:hover {
  box-shadow: 0 12px 30px rgba(30, 58, 110, 0.12);
  transform: translateY(-6px);
  border-color: var(--azul);
}
.material-card-img {
  width: 100%;
  aspect-ratio: 16/11;
  background: #fbfbfb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.material-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.material-card:hover .material-card-img img {
  transform: scale(1.05);
}
.material-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.material-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--azul-escuro);
  margin: 0 0 12px 0;
  font-family: 'Barlow', sans-serif;
  transition: color 0.3s ease;
}
.material-card:hover .material-card-title {
  color: var(--laranja);
}
.material-card-desc {
  font-size: 0.92rem;
  color: var(--cinza-texto);
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
  flex-grow: 1;
}


/* ===== TEXTO INSTITUCIONAL ===== */
.texto-institucional {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--cinza-texto);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* ===== DIVISOR ===== */
.divisor {
  border: none;
  border-top: 1px solid var(--cinza-borda);
  margin: 0 0 48px;
}

/* ===== MARCAS ===== */
.marcas-titulo {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--azul-escuro);
  margin-bottom: 36px;
}
.marcas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.marca-card {
  background: #fff;
  border-radius: 8px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.marca-card img {
  width: 100%;
  height: 100%;
  max-width: 130px;
  object-fit: contain;
}

/* Aumenta o tamanho específico para estas marcas sem alterar o card */
.marca-card:has(img[alt="Metaltex"]),
.marca-card:has(img[alt="Steck"]),
.marca-card:has(img[src*="Lumibras"]) {
  padding: 5px; /* Reduz o padding para dar mais espaço à imagem */
}

.marca-card img[alt="Metaltex"],
.marca-card img[alt="Steck"],
.marca-card img[src*="Lumibras"] {
  max-width: 165px;
  max-height: 80px; /* Garante que aproveite quase todo o card de 90px */
}
.marca-card:hover {
  transform: translateY(-4px);
  border-color: var(--azul);
  box-shadow: 0 10px 24px rgba(30, 58, 110, 0.15);
}
/* último card com borda azul conforme design */
.marca-card.destaque {
  border-color: var(--azul);
  background: #fff;
  color: var(--azul-escuro);
}

/* ===== CARD HOVER OVERLAY FOR ZOOM ===== */
.material-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 74, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

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

.zoom-icon {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  transform: translateY(12px);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  align-items: center;
  gap: 6px;
}

.zoom-icon i {
  font-size: 0.85rem;
}

.material-card:hover .zoom-icon {
  transform: translateY(0);
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

/* ===================== LIGHTBOX MELHORADO ===================== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 28, 0.96);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.lightbox.open {
  display: flex;
}

.lightbox-content-wrapper {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lightboxZoomIn 0.3s ease-out;
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  display: block;
  transition: transform 0.25s ease;
  cursor: zoom-in;
  background: #111a2e;
}

.lightbox img.zoomed {
  transform: scale(1.8);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: all 0.2s;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  color: #fff;
  transform: scale(1.1) rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  backdrop-filter: blur(4px);
  z-index: 100;
}

.lightbox-prev {
  left: 28px;
}

.lightbox-next {
  right: 28px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--laranja);
  border-color: var(--laranja);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 0 20px rgba(212, 105, 30, 0.5);
}

@media (max-width: 1024px) {
  .lightbox-content-wrapper {
    margin: 0 80px;
  }
}

@media (max-width: 768px) {
  .lightbox-content-wrapper {
    margin: 0 16px;
  }

  .lightbox img {
    max-height: 65vh;
  }

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

  .lightbox-prev {
    left: 12px;
  }

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

@media (max-width: 480px) {
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .title-section {
    font-size: 1.6rem;
  }
  .materiais-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .marcas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .marcas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
