/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #111;
}

/* =========================================================
   CENTRALIZAÇÃO (INDEX + CONTATO)
   ========================================================= */

/* Centraliza no meio da tela (responsivo, melhor no celular) */
.page {
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;      /* centro vertical */
  justify-content: center;  /* centro horizontal */
  padding: 20px;
}

/* Container central (mantém elegante e proporcional) */
.container {
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 26px;
}

/* Imagens responsivas (global) */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* BOTÃO "VER MAIS" */
.btn-img {
  display: inline-block;
}

.btn-img img {
  width: clamp(160px, 40vw, 240px);
  transition: 0.2s;
}

.btn-img img:hover {
  transform: scale(1.05);
}

/* NOVO: principal-group3.png abaixo do botão */
.principal-img {
  width: clamp(260px, 52vw, 820px);
  height: auto;
  margin-top: clamp(6px, 1.2vw, 14px);
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.08));
}

/* BOTÕES CONTATO */
.buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.buttons img {
  width: clamp(220px, 55vw, 360px);
}

/* =========================================================
   BOTÃO VOLTAR (mantido no canto superior esquerdo)
   ========================================================= */

.topnav {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 9999;
}

.topnav__link {
  background: #7b73ff;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 14px;
  transition: .2s;
  display: inline-block;
}

.topnav__link:hover {
  background: #5e56ff;
}

/* ============================
   PÁGINA SERVIÇOS
============================ */

.page-servicos {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 90px 20px;
}

/* CONTAINER CENTRAL */
.container-servicos {
  width: 100%;
  max-width: 1200px;
}

/* ============================
   TÍTULO
============================ */

.servicos-header {
  text-align: center;
  margin-bottom: 100px;
}

.titulo-img {
  width: 100%;
  max-width: 990px;
}

/* ============================
   GALERIA  (CORREÇÃO: sem espaços + horizontais corretas)
============================ */

/* Masonry por colunas (não cria buracos) */
.galeria {
  column-gap: 22px;
  column-count: 1; /* mobile */
}

/* 2 colunas */
@media (min-width: 620px) {
  .galeria { column-count: 2; }
}

/* 3 colunas */
@media (min-width: 980px) {
  .galeria { column-count: 3; }
}

/* 4 colunas */
@media (min-width: 1280px) {
  .galeria { column-count: 4; }
}

/* CARD */
.item {
  display: block;
  width: 100%;
  margin: 0 0 22px;         /* espaço vertical entre cards */
  break-inside: avoid;      /* evita quebrar card no meio */
  border-radius: 14px;
  overflow: hidden;
  background: #eee;
}

/* IMAGEM (sem forçar aspect-ratio: evita horizontais virarem “verticais”) */
.item img {
  width: 100%;
  height: auto;             /* <- ESSENCIAL para horizontais ficarem horizontais */
  display: block;
  transition: transform .3s ease;
}

.item:hover img {
  transform: scale(1.05);
}

/* ============================
   LIGHTBOX
============================ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.lightbox.active {
  display: flex;
}

/* IMAGEM */
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(0,0,0,.6);
}

/* FECHAR */
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* BOTÕES */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}

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

/* MOBILE */
@media(max-width:600px){
  .lightbox-prev,
  .lightbox-next{
    display:none;
  }
}

/* CENTRALIZAR TÍTULO SERVIÇOS */

.servicos-header {
  width: 100%;
  display: flex;
  justify-content: center; /* centro horizontal */
  align-items: center;
}

.titulo-img {
  margin: 0 auto; /* garante centralização */
}
