body {
  font-family: 'Poppins', sans-serif;
}

h1, h2, h3 {
  font-weight: 600;
}

.menu a {
  font-weight: 500;
}

.card h4 {
  font-weight: 600;
}

.card p {
  font-weight: 400;
}

/* ==========================================================================
   1. ESTRUTURA GERAL DA PÁGINA 3D
   ========================================================================== */

.page-3d-wrapper {
  display: block !important;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   2. BANNER HERO (O QUADRADO COM IMAGEM)
   ========================================================================== */

.banner-hero-3d {
  width: 100%;
  height: 500px;


  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('../images/projetos3D.jpeg');

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8%;
  box-sizing: border-box;
  position: relative;
}

.banner-text h1 {
  color: white;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.7); /* Sombra para leitura */
  max-width: 500px;
}

.breadcrumb{
  padding: 0;
}


/* ==========================================================================
   3. MENUS DROPDOWN
   ========================================================================== */

.dropdown-menu {
  display: none;
  position: absolute;
  background: white;
  z-index: 100; /* Garante que o menu flutue sobre o banner */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.has-dropdown:hover .dropdown-menu {
  display: block;
}

/* ==========================================================================
   4. INTRODUÇÃO E TEXTOS
   ========================================================================== */

.section-intro {
  padding: 80px 0 60px;
  text-align: center;
}

.content-limit {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-intro p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: #333333;
  font-weight: 500;
}

/* ==========================================================================
   5. GRID DE VANTAGENS (LAYOUT 4 COLUNAS)
   ========================================================================== */

.section-advantages {
}

.title-orange {
  color: #F7941D;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 40px;
  text-transform: uppercase;
}

/* Define a grade de 4 colunas iguais */
.grid-advantages {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Cartão individual de vantagem */
.adv-item {
  background: #ebebeb;
  padding: 30px 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;

  /* O SEGREDO 1: Prepara o card para uma animação suave */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default; /* Deixa a setinha do mouse normal (ou mude para 'pointer' se quiser a mãozinha) */
}

.adv-item:hover {
  transform: translateY(-10px); /* O pulinho para cima */
  box-shadow: 0 12px 24px rgba(0,0,0,0.1); /* Uma sombra leve que dá o efeito 3D de descolar do fundo */
  background: #ffffff; /* Opcional: Clareia um pouquinho o fundo cinza para dar um destaque extra */
}

.adv-item img {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

.adv-item h3 {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #000;
}

.adv-item p {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #555;
}

/* ==========================================================================
   6. CALL TO ACTION (IMAGEM WHATSAPP CLICÁVEL)
   ========================================================================== */

.center-cta {
  text-align: center;
  margin: 10px 0;
  padding: 0px;
}

/* O link que envolve a imagem */
.link-wa-image {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 10px;
}

/* Tamanho da imagem do botão */
.link-wa-image img {
  max-width: 250px;
  height: auto;
  display: block;
}

.link-wa-image:hover {
  transform: scale(1.1); /* Zoom de 10% */
  filter: drop-shadow(0 10px 15px rgba(37, 211, 102, 0.4));
}


/* ==========================================================================
   7. GALERIA DE PROJETOS DESENVOLVIDOS
   ========================================================================== */

.projects-gallery {
  background-color: #f9f9f9;
  padding: 80px 0;
  border-top: 1px solid #eeeeee;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gallery-image-wrapper {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3; /* Deixa todas as imagens com o mesmo formato retangular */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Película escura que aparece no hover */
.image-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-overlay span {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  border: 2px solid #F7941D;
  padding: 10px 20px;
  border-radius: 4px;
}

/* Efeitos ao passar o mouse */
.gallery-image-wrapper:hover img {
  transform: scale(1.1); /* Dá um zoom suave na foto */
}

.gallery-image-wrapper:hover .image-overlay {
  opacity: 1; /* Mostra a película e o botão */
}

/* ==========================================================================
   8. BOTÃO FLUTUANTE DO WHATSAPP (CANTO DA TELA)
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 55px;
  height: 55px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999;
}

.whatsapp-float:hover {
  background: #1ebe5d;
}

/* ==========================================================================
   9. MODAL DE IMAGENS (LIGHTBOX)
   ========================================================================== */
.modal-overlay {
  display: none; /* Escondido por padrão */
  position: fixed;
  z-index: 9999; /* Fica por cima de tudo na tela */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85); /* Fundo preto transparente */
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.modal-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

#modal-main-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  object-fit: contain;
}

#modal-caption {
  color: white;
  margin-top: 15px;
  font-size: 1.2rem;
  font-weight: 700;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #F7941D; /* Laranja da Expositores Bueno */
}

/* Animação suave para o modal aparecer */
.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ==========================================================================
   10. SETAS DO CARROSSEL NO MODAL
   ========================================================================== */
.modal-prev, .modal-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 15px 20px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s;
  user-select: none;
  background-color: rgba(0,0,0,0.4);
  border-radius: 4px;
}

/* Posicionamento nas laterais da imagem */
.modal-prev { left: 10px; }
.modal-next { right: 10px; }

.modal-prev:hover, .modal-next:hover {
  background-color: rgba(0,0,0,0.8);
  color: #F7941D;
}
/* ==========================================================================
   FASE 2 — REFINO VISUAL CONSERVADOR (PROJETOS 3D)
   ========================================================================== */
:root {
  --p2-bg: #ffffff;
  --p2-soft: #f7f8fa;
  --p2-text: #243042;
  --p2-muted: #5f6b7a;
  --p2-orange: #F7941D;
  --p2-orange-dark: #F9A63A;
  --p2-line: #e7ebf0;
  --p2-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.section-intro,
.section-advantages,
.projects-gallery {
  background-color: var(--p2-bg);
}

.section-intro p {
  color: var(--p2-text);
  line-height: 1.8;
}

.section-advantages {
  border-top: 1px solid var(--p2-line);
  border-bottom: 1px solid var(--p2-line);
}

.title-orange,
.section-advantages h2 {
  color: var(--p2-orange) !important;
}

.adv-item {
  background: #fff;
  border: 1px solid var(--p2-line);
  border-radius: 14px;
  box-shadow: var(--p2-shadow);
}

.adv-item h3 {
  color: var(--p2-text);
}

.adv-item p {
  color: var(--p2-muted);
}

.link-wa-image img {
  filter: drop-shadow(0 8px 16px rgba(37, 211, 102, 0.24));
}

.gallery-grid {
  gap: 22px;
}

.gallery-image-wrapper {
  border: 1px solid var(--p2-line);
  border-radius: 14px;
  box-shadow: var(--p2-shadow);
}

.image-overlay span {
  border-color: var(--p2-orange);
}

.whatsapp-float {
  width: 60px;
  height: 60px;
  font-size: 30px;
  border: 3px solid #fff;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.4);
}

@media (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-intro,
  .section-advantages,
  .projects-gallery {
    padding: 42px 0;
  }

  .grid-advantages {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .adv-item {
    padding: 20px 16px;
  }

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

  .image-overlay span {
    font-size: 0.85rem;
    padding: 8px 14px;
  }

  .whatsapp-float {
    width: 56px;
    height: 56px;
    font-size: 27px;
    right: 14px;
    bottom: 14px;
  }
}

/* ==========================================================================
   FASE 2 — AJUSTE FINAL CONSERVADOR
   ========================================================================== */
.content-limit {
  max-width: 1160px;
}

.gallery-image-wrapper {
  min-height: 210px;
}

@media (max-width: 768px) {
  .banner-hero-3d {
    min-height: 230px;
  }

  .gallery-image-wrapper {
    min-height: 0;
  }
}

/* ==========================================================================
   FASE 3 — POLIMENTO VISUAL FINAL
   ========================================================================== */
.section-intro p,
.adv-item p {
  text-wrap: pretty;
}

.gallery-image-wrapper img {
  will-change: transform;
}

#modal-caption {
  letter-spacing: 0.3px;
}

.modal-content-wrapper {
  width: min(1100px, 92vw);
}

@media (max-width: 768px) {
  #modal-caption {
    font-size: 1rem;
  }
}

/* ==========================================================================
   SOLICITAÇÃO DE PROJETO
   ========================================================================== */
.request-project-section {
  padding: 24px 0 10px;
}

.request-project-content {
  border: 1px solid var(--p2-line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #fff;
  box-shadow: var(--p2-shadow);
}

.request-project-content p {
  color: var(--p2-muted);
  margin-top: 8px;
}

.request-project-btn {
  background: var(--p2-orange);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  white-space: nowrap;
}

.request-project-btn:hover {
  background: var(--p2-orange-dark);
}

@media (max-width: 768px) {
  .request-project-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
