/* ===========================
   FONTES / BASE GLOBAL
=========================== */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_24pt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter_24pt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #000;
  color: #fff;
  font-size: 22px;
}
body.no-scroll { overflow: hidden; }

main {
  min-height: calc(100vh - 60px); /* ajusta 60px conforme a altura do footer */
  display: flex;
  flex-direction: column;
}

footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 24px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.35);
  font-size: 12.5px;
  opacity: 0;
  transition: opacity 1s ease-in;
  z-index: 1200;
}
footer.visible { opacity: 1; }
footer:hover { color: rgba(255,255,255,.6); }

@supports (-webkit-touch-callout: none) {
  body {
    height: -webkit-fill-available;
  }
}

/* ===========================
   ESTRUTURA / TIPOGRAFIA
=========================== */
main > section {
  margin: 0 auto;
  padding: 100px 0;
  max-width: 1400px;
  width: 100%;
  position: relative;
}
h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 40px;
  text-transform: none;
  position: relative;
}
h3 {
  font-size: clamp(22px, 2vw, 32px);
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.2px;
  color: rgba(255,255,255,0.9);
}
section + section { margin-top: 60px; }
.subtitulo,
section p.intro-text {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 800px;
  margin: 0 auto 40px;
  text-align: center;
  line-height: 1.6;
}
h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 2px;
  margin: 16px auto 0;
  background: linear-gradient(90deg, transparent, #ff3b30 40%, rgba(255,59,48,0.9) 50%, #ff3b30 60%, transparent);
  opacity: 0.7;
  border-radius: 2px;
}
a {
  color: #fff;
  text-decoration: none;
  transition: opacity .3s ease;
}
a:hover { opacity: .7; }

/* ===========================
   HEADER / NAV
=========================== */
header {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  opacity: 0;
  transition: opacity 1.2s ease-in;
}
header.visible { opacity: 1; }

.header-container {
  height: 72px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  position: relative;
}
.logo-img { height: 28px; display: block; }
/* Menu hambúrguer */
.menu-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 4000;
  opacity: 1;
  background: none;
  box-shadow: none;
  border: none;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ff3b30;
  border-radius: 2px;
  transition: all .3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.menu-toggle:hover { opacity: 1; }
.header-container nav { display: none !important; }
/* Menu lateral overlay */
.mobile-nav {
  position: fixed;
  top: 0; right: -100%; bottom: 0; left: auto;
  width: min(30vw, 320px);
  height: 100vh;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0.95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 36px;
  transition: right .4s ease;
  z-index: 3500;
  padding: 0 24px;
}
.mobile-nav.open { right: 0; }
.mobile-nav a {
  font-size: 22px;
  opacity: .7;
  transition: opacity .2s ease, transform .2s ease;
}
.mobile-nav a:hover {
  opacity: 1;
  transform: translateX(2px);
}

/* ===========================
   INTRO / HERO
=========================== */
.intro {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(40px, 8vw, 160px);
}
.intro blockquote {
  font-size: 36px;
  font-style: italic;
  line-height: 1.4;
  max-width: 820px;
  margin: 0 auto;
  opacity: 0;
  transition: opacity 3s ease-in;
  position: relative;
}
.intro blockquote.visible { opacity: 1; }
.intro blockquote .segundo { display: block; margin-top: 14px; }
.intro cite { display: block; font-size: 20px; margin-top: 12px; opacity: .7; text-align: right; }

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  /* overflow: hidden; removido para não cortar animação em desktop */
  max-width: none !important;
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/timeless_background.webp') center center / cover no-repeat;
  background-attachment: scroll;
  image-rendering: auto;
  -webkit-transform: translateZ(0);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  article,
  #artigo,
  #artigo p,
  #artigo li {
    font-size: 90% !important;
    line-height: 1.4 !important;
    text-align: justify !important;
  }

  #artigo h1,
  #artigo h2,
  #artigo h3 {
    font-size: 110% !important;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  text-shadow: 0 3px 12px rgba(0,0,0,.75),
               0 0 18px rgba(0,0,0,.4),
               0 0 22px rgba(255,255,255,.2);
}
/* HERO CONTENT HEADINGS */
.hero-content h1 {
  font-size: clamp(38px, 6vw, 64px);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  opacity: 1; /* visível por padrão */
  transform: translateY(0); /* sem movimento automático */
  text-shadow: 0 3px 12px rgba(0,0,0,.75),
               0 0 18px rgba(0,0,0,.4),
               0 0 22px rgba(255,255,255,.2);
}

.hero-content h2 {
  font-size: clamp(18px, 3.2vw, 28px);
  font-weight: 400;
  margin: 0 0 20px;
  opacity: 1; /* visível também */
  transform: translateY(0);
}


/* Remover animações automáticas do hero */
.hero-content.animate h1,
.hero-content.animate h2 {
  /* Removido - não deve existir animação automática */
}
section {
  padding: 80px 60px;
  max-width: 1400px;
  margin: auto;
}
h2 { font-size: 40px; margin-bottom: 20px; }
p, li { font-size: 26px; line-height: 1.6; }


/* ===========================
   CONTACTO
=========================== */
#contacto {
  background: linear-gradient(145deg, #1b1b1b, #242424);
  padding: 35px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 16px; /* legível e proporcional */
  line-height: 1.3;
  width: 100%;
  max-width: none !important;
  margin: 0;
}

#contacto .conteudo {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px; /* ajustado para menos largura */
}

#contacto h2 {
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

#contacto a { opacity: .85; }
#contacto a:hover { opacity: 1; text-decoration: underline; }

.mapa {
  margin-top: 10px; /* antes era 20px */
  border-radius: 6px;
  overflow: hidden;
}
.mapa iframe {
  width: 100%;
  height: 240px; /* antes 350px — reduzido cerca de 30% */
  border: 0;
  border-radius: 3px;
  box-shadow: 0 0 25px rgba(255,59,48,0.25);
}


/* ===========================
   SOBRE
=========================== */
#sobre {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  padding: 100px 0;
  color: #000;
}
/* Cabeçalho principal da secção SOBRE (parte escura) */
#sobre .sobre-titulo {
  font-size: clamp(32px, 8vw, 80px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.15;
  white-space: nowrap;
}

#sobre .sobre-impacto h3 {
  font-size: clamp(42px, 4.8vw, 72px);
  font-weight: 600;
  text-align: center;
  margin-bottom: 18px;
  color: #000;
  letter-spacing: -0.3px;
  opacity: 1;
  transform: none;
  transition: none;
}

#sobre p {
  margin-bottom: 22px;
  line-height: 1.7;
  font-size: 20px;
  color: #fff;
  opacity: 1; /* sempre visível */
  transform: none; /* sem movimento */
  transition: none; /* sem animação */
}

#sobre p:first-of-type {
  font-weight: 500;
  color: #000;
  text-align: center;
  font-size: 29px;
  margin-bottom: 50px;
}
/* Frase final de impacto */
.sobre-impacto {
  text-align: center;
  margin: 160px 0 80px;
  background: #fff;
  color: #000;
  padding: 120px 0;
  box-shadow: 0 4px 40px rgba(0,0,0,0.25);
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border-radius: 0;
}

/* ===========================
   SERVIÇOS
=========================== */
#servicos {
  text-align: center;
  width: 100vw;
  max-width: 1290px;
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 50px;
}
#servicos h2 {
  font-size: 64px;
  font-weight: 600;
  margin: 0 auto 60px  ;
  letter-spacing: -0.5px;
  color: #fff;
  text-align: center;
}
.servicos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 40px;
  margin-top: 60px;
  width: 100%;
}
.servico-card {
  position: relative;
  width: 600px;
  min-width: 400px;
  max-width: 600px;
  height: 100px;
  background: linear-gradient(145deg, #1b1b1b, #242424);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-decoration: none;
  border-radius: 0;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  flex: 1;
}
.servico-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--bg-image) center/cover no-repeat;
  opacity: 0;
  transition: opacity 0.45s ease;
  z-index: 1;
}
.servico-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
}
.servico-card:hover::after { opacity: 1; }
.servico-card h3 {
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  z-index: 2;
  text-align: center;
  letter-spacing: 0.3px;
  transition: transform 0.35s ease, color 0.35s ease;
}
.servico-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}
.servico-card:hover::before { opacity: 0.4; }
.servico-card:hover h3 {
  color: #f5f5f5;
  transform: scale(1.08);
}

/* ===========================
   PORTEFÓLIO
=========================== */
#portfolio {
  background: #000;
  padding: 100px 0;
  text-align: center;
}
#portfolio h2 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 60px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colunas iguais */
  gap: 24px;
  padding: 20px 40px;
  justify-items: stretch;
  align-items: stretch;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.portfolio-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* preencher a “caixa” sem distorcer */
  border-radius: 12px;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: brightness(0.9);
}
.portfolio-grid img:hover {
  transform: scale(1.02);
  filter: brightness(1);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
 }
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 3 / 4; /* retrato, ideal para 900x1600 */
}
.portfolio-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.portfolio-item h3 {
  position: absolute;
  bottom: 30px;
  left: 30px;
  margin: 0;
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  opacity: 0;
  letter-spacing: 1px;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.portfolio-item:hover h3 {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   CLIENTES
=========================== */
#clientes {
  text-align: center;
  padding: 40px 0;
  background: radial-gradient(circle at top, #1b1b1b 0%, #111 100%);
  box-shadow: inset 0 2px 25px rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
#clientes h2 {
  text-transform: none;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: 2px;
  color: #fff;
  opacity: 0.9;
  margin-bottom: 40px;
}
#clientes .subtitulo {
  font-size: 16px;
  opacity: 0.6;
  margin-bottom: 50px;
}
.logos-slider {
  overflow: hidden;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}
.logos-track {
  display: flex;
  align-items: center;
  animation: scroll 80s linear infinite;
  width: max-content;
}
.logos-track img {
  height: 70px;
  margin: 0 50px;
  opacity: 0.8;
  filter: saturate(0.9);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.6s ease;
}
.logos-track img:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.03);
  filter: saturate(1.1);
}
@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
#clientes a,
#clientes a:hover {
  opacity: 1 !important;
  filter: none !important;
  transition: none !important;
}


/* ===========================
   SOBRE-IMPACTO: esconder pseudo-elementos ::after
   (MANTER ESTE BLOCO)
=========================== */
.sobre-impacto h2::after,
.sobre-impacto .line::after {
  display: none !important;
  content: none !important;
}

/* ===========================
   RESPONSIVO
=========================== */
@media (max-width: 900px) {
  /* Corrige o espaçamento extra no topo do hero e entre seções no mobile */
  .hero {
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important; /* centraliza o conteúdo verticalmente */
    align-items: center !important;
    padding-top: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .hero-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: translateY(0) !important;
  }

  .hero-content h1 {
    margin-bottom: 8px !important; /* reduz espaço após o título */
  }

  .hero-content h2 {
    margin-top: 0 !important;
    margin-bottom: 10px !important; /* aproxima subtítulo do texto */
  }

  main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0 !important; /* elimina espaço fantasma entre hero e próxima secção */
  }

  section {
    padding-top: 60px !important; /* valor ajustável conforme o visual */
  }

  footer {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
  }

    .header-container { height: 64px; }
    .logo-img { height: 28px; }
    .intro blockquote { font-size: 22px; }
    .intro cite { font-size: 16px; }
    section { padding: 60px 20px; }
    footer {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 10px 8px;
        font-size: 10.5px;
        line-height: 1.3;
    }
    footer span { display: block; margin: 2px 0; white-space: normal; }
    .mobile-nav { width: min(75vw, 520px); }
    .servicos-grid { gap: 20px; }
    .servico-card {
        width: 100%;
        max-width: 320px;
        height: 180px;
    }
    .sobre-impacto { margin-top: 120px; margin-bottom: 60px; }
    .sobre-impacto .line { font-size: 36px; }
    
    #sobre {
        padding: 60px 24px;
        max-width: 90%;
    }
    #sobre p {
        font-size: 18px;
        line-height: 1.6;
    }
    #sobre h2 {
        font-size: 46px;
    }
    /* Adicionado: tornar o título responsivo e quebrável em mobile */
    #sobre .sobre-titulo {
        font-size: clamp(26px, 6vw, 44px);
        white-space: normal;
        line-height: 1.2;
        text-align: center;
        word-break: break-word;
    }
    
    #contacto {
        padding-bottom: 75px;
    }
    
    #clientes .logos-track img {
        margin: 0 25px;
        height: 70px;
    }
    
    /* Overlay do menu lateral */
    .menu-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 3400;
    }
    .mobile-nav.open ~ .menu-overlay {
        opacity: 1;
        pointer-events: all;
    }

    /* Layout vertical das imagens do portefólio em mobile */
    #portfolio .portfolio-grid {
      display: flex;
      flex-direction: column; /* empilha as imagens verticalmente */
      gap: 20px;
      padding: 20px;
      width: 100%;
    }

    #portfolio .portfolio-item {
      width: 100%;
      aspect-ratio: auto;
    }

    #portfolio .portfolio-grid img {
      width: 100%;
      height: auto;
      object-fit: contain;
      border-radius: 10px;
    }

  /* Reduz espaço superior na secção Serviços (mobile) */
  #servicos {
    padding-top: 40px !important;
  }

  #servicos h2 {
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    font-size: clamp(28px, 7vw, 38px) !important;
  }


  main, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }

  /* Reduz espaçamento entre o hero e a primeira secção no mobile */
  main > section:first-of-type {
    padding-top: 0 !important;
    margin-top: -60px !important; /* puxa o conteúdo para cima */
  }
}

/* ===== SETA PARA SCROLL (GLOBAL) ===== */
.scroll-arrow {
  position: fixed;
  bottom: 8vh;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  width: 26px;
  height: 26px;
  border-left: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  opacity: 0;
  animation: arrow-bounce 1.5s ease-in-out infinite;
  transition: opacity 1s ease;
  pointer-events: none;
  z-index: 1500;
}

.scroll-arrow.show {
  opacity: 1;
}

/* Efeito de "respirar" da seta */
@keyframes arrow-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-45deg); }
  50% { transform: translateX(-50%) translateY(10px) rotate(-45deg); }
}

/* ===== Versão Mobile ===== */
@media (max-width: 900px) {
  .scroll-arrow {
    bottom: 6vh;
    width: 20px;
    height: 20px;
    border-width: 1.5px;
  }
}

/* ===========================
   LIGHTBOX (PORTFÓLIO POR OBRA)
=========================== */
/* Tornar itens do portefólio claramente clicáveis */
.portfolio-item { cursor: zoom-in; }
.portfolio-item:focus-visible { outline: 2px solid #ff3b30; outline-offset: 3px; }

/* Overlay principal */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  padding: 40px;
}
.lightbox.open { display: flex; }

/* Imagem */
.lightbox .lb-img {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 40px 0 #000a;
  background: #111;
  margin-bottom: 18px;
}

/* Controlo comum (botões) */
.lightbox .lb-prev,
.lightbox .lb-next,
.lightbox .lb-close {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  backdrop-filter: blur(6px);
}
.lightbox .lb-prev:hover,
.lightbox .lb-next:hover,
.lightbox .lb-close:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-50%) scale(1.04);
}

.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }
.lightbox .lb-close { top: 24px; right: 24px; font-weight: 300; }

/* Contador */
.lightbox .lb-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  letter-spacing: .6px;
}

/* Título do álbum dentro da Lightbox */
.lightbox .lb-title {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  opacity: 0.9;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 16px;
  border-radius: 6px;
  z-index: 10002;
}
@media (max-width: 900px) {
  .lightbox .lb-title {
    top: 16px;
    font-size: 16px;
    padding: 4px 12px;
  }
}


/* ===========================
   LIGHTBOX (PORTFÓLIO POR OBRA) - RESPONSIVO
=========================== */
@media (max-width: 900px) {
  .lightbox {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.95);
    padding: 20px;
    z-index: 10000;
  }
  .lightbox .lb-prev,
  .lightbox .lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    display: flex;
    padding: 0;
    width: 42px;
    height: 42px;
    font-size: 22px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    z-index: 10001;
    left: auto;
    right: auto;
  }
  .lightbox .lb-prev {
    left: 16px;
  }
  .lightbox .lb-next {
    right: 16px;
  }
  .lightbox .lb-prev i,
  .lightbox .lb-next i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .lightbox .lb-prev:hover i,
  .lightbox .lb-next:hover i {
    transform: translate(-50%, -50%) scale(1.05);
  }
  .lightbox .lb-title {
    top: 16px;
    font-size: 16px;
    padding: 4px 12px;
  }
}

/* ===========================
   MEDIA QUERIES CONSOLIDADAS
=========================== */
@media (max-width: 900px) {
  .hero {
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding-top: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .hero-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    transform: translateY(0) !important;
  }
  .hero-content h1 {
    margin-bottom: 8px !important;
  }
  .hero-content h2 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
  }
  main {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0 !important;
  }
  section {
    padding-top: 60px !important;
    padding: 60px 20px;
  }
  .header-container { height: 64px; }
  .logo-img { height: 28px; }
  .intro blockquote { font-size: 22px; }
  .intro cite { font-size: 16px; }
  footer {
    flex-direction: column;
    text-align: center;
    height: auto;
    padding: 10px 8px;
    font-size: 10.5px;
    line-height: 1.3;
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1200;
  }
  footer span { display: block; margin: 2px 0; white-space: normal; }
  .mobile-nav { width: min(75vw, 520px); }
  .servicos-grid { gap: 20px; }
  .servico-card {
    width: 100%;
    max-width: 320px;
    height: 180px;
  }
  .sobre-impacto { margin-top: 120px; margin-bottom: 60px; }
  .sobre-impacto .line { font-size: 36px; }
  #sobre {
    padding: 60px 24px;
    max-width: 90%;
  }
  #sobre p {
    font-size: 18px;
    line-height: 1.6;
  }
  #sobre h2 {
    font-size: 46px;
  }
  #sobre .sobre-titulo {
    font-size: clamp(26px, 6vw, 44px);
    white-space: normal;
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    margin-bottom: 4px !important;
  }
  #sobre p:first-of-type {
    margin-top: 2px !important;
  }
  #contacto {
    padding-bottom: 75px;
  }
  #clientes .logos-track img {
    margin: 0 25px;
    height: 70px;
  }
  .menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 3400;
  }
  .mobile-nav.open ~ .menu-overlay {
    opacity: 1;
    pointer-events: all;
  }
  #portfolio .portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    width: 100%;
  }
  #portfolio .portfolio-item {
    width: 100%;
    aspect-ratio: auto;
  }
  #portfolio .portfolio-grid img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
  }
  #servicos {
    padding-top: 40px !important;
  }
  #servicos h2 {
    margin-top: 0 !important;
    margin-bottom: 30px !important;
    font-size: clamp(28px, 7vw, 38px) !important;
  }
  main, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
  }
  main > section:first-of-type {
    padding-top: 0 !important;
    margin-top: -60px !important;
  }
  .scroll-arrow {
    bottom: 6vh;
    width: 20px;
    height: 20px;
    border-width: 1.5px;
  }
}

@media (max-width: 768px) {
  .hero-bg {
    background-size: cover !important;
    background-position: center center !important;
    height: 100vh !important;
    background-attachment: scroll !important;
  }
  #corpo-sobre h2 {
    margin-bottom: 5px !important;
  }
  #corpo-sobre p {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    line-height: 1.5 !important;
  }
  #sobre {
    padding-top: 10px !important;
  }
  #sobre .sobre-titulo {
    margin-bottom: 4px !important;
  }
  #sobre p:first-of-type {
    margin-top: 2px !important;
  }
}

/* ===========================
   BLOG
=========================== */
#blog {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

#blog h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

#blog h3 {
  font-weight: 400;
  margin-bottom: 40px;
  color: #fff;
}

.artigo-card {
  display: block;
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255,255,255,0.1);
}

.artigo-card:hover {
  transform: scale(1.02);
  border-color: rgba(255,255,255,0.3);
}

.artigo-conteudo {
  position: relative;
  z-index: 2;
  padding: 60px 30px;
}

#blog .artigo-card .artigo-conteudo h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #fff;
}

#blog .artigo-card .artigo-conteudo p {
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
}

# ===========================
# BOTÃO DE DOWNLOAD (ESTILO VERMELHO COM CONTORNO)
# ===========================
.download-pdf {
  display: inline-block;
  background: transparent;
  color: #ff3b30;
  font-weight: 600;
  padding: 12px 26px;
  border: 2px solid #ff3b30;
  border-radius: 6px;
  text-decoration: none;
  margin-top: 25px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.download-pdf:hover {
  background: #ff3b30;
  color: #fff;
  transform: scale(1.03);
}

/* ===========================
   SECÇÃO DE COMENTÁRIOS
=========================== */
#comentarios {
  background-color: #013440; /* azul petróleo */
  text-align: center;
  color: #fff;
  padding: 80px 0;
  width: 100%;
}

#comentarios h2 {
  color: #fff;
}

#comentarios p,
#comentarios label {
  color: #e0e0e0;
}

#comentarios form {
  display: inline-block;
  text-align: left;
  max-width: 700px;
  width: 90%;
}

#comentarios input,
#comentarios textarea {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  border: none;
  border-radius: 4px;
}

#comentarios button.btn-enviar {
  background: transparent;
  border: 2px solid #ff3b30;
  color: #ff3b30;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#comentarios button.btn-enviar:hover {
  background: #ff3b30;
  color: #fff;
}
/* ===========================
   RESPONSIVO - ARTIGO (MOBILE)
=========================== */
@media (max-width: 900px) {
  article,
  #artigo,
  #artigo p,
  #artigo li {
    font-size: 90% !important;
    line-height: 1.4 !important;
    text-align: justify !important;
  }

  #artigo h1,
  #artigo h2,
  #artigo h3 {
    font-size: 110% !important;
  }

  /* Texto centrado na secção Blog no mobile */
  #blog,
  #blog p,
  #blog h2,
  #blog h3 {
    text-align: center !important;
  }
}
