:root {
  --azul: #13354A;
  --azul-escuro: #0a2233;
  --branco: #fff;
  --cinza-claro: #f7fafd;
  --cinza-card: #f5f7fa;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -120%);
  background: var(--azul);
  color: var(--branco);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  z-index: 999;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
}
.skip-link:focus,
.skip-link:focus-visible {
  transform: translate(-50%, 18px);
  opacity: 1;
}


/* ====================== MENU SOCIAL =================== */
.menu-social {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 28px;
}
.menu-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7fafd;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px #13354a0a;
  text-decoration: none;
}
.menu-social a:hover {
  background: #13354A;
}
.menu-social img {
  width: 22px;
  height: 22px;
  display: block;
  filter: grayscale(0.15);
  transition: filter 0.2s;
}
.menu-social a:hover img {
  filter: grayscale(0) brightness(3);
}


@media (max-width: 700px) {
  .menu-social {
    margin-right: 10px;
  }
  .menu-social a {
    width: 32px;
    height: 32px;
  }
  .menu-social img {
    width: 18px;
    height: 18px;
  }
}

/* ====================== RESET E BASE =================== */
html {
  scroll-behavior: smooth;
}
body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--cinza-claro);
  color: var(--azul);
  margin: 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
body.nav-open {
  overflow: hidden;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Anti-injeção: oculta quaisquer campos não esperados que o servidor acrescente */
#formApresentacao input[name]:not([data-expected]),
#formApresentacao textarea[name]:not([data-expected]),
#formApresentacao select[name]:not([data-expected]),
#contactForm input[name]:not([data-expected]),
#contactForm textarea[name]:not([data-expected]),
#contactForm select[name]:not([data-expected]) {
  display: none !important;
}

/* ====================== HEADER + LOGOTIPO ANIMADO =================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--branco);
  box-shadow: 0 2px 12px #e3eafc;
  z-index: 20;
  height: 80px;
  display: flex;
  align-items: center;
  transition: background 0.4s, box-shadow 0.4s;
}
body { padding-top: 80px; }
header .container {
  position: relative;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 16px;
}

/* ---- LOGO ESCONDIDO AO ABRIR ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.7rem;
  font-weight: bold;
  color: var(--azul);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    opacity 0.5s cubic-bezier(.6,.3,.4,1),
    transform 0.5s cubic-bezier(.6,.3,.4,1),
    visibility 0.5s;
  margin-right: 40px;
  margin-left: 0;
  cursor: pointer;
}
.logo img {
  height: 48px;
  max-width: 160px;
  display: block;
}

/* ================== FUNDO LATERAL COM IMAGENS ================== */
.site-bg-sides {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.site-bg-side-img {
  position: absolute;
  top: 150px;
  width: auto;
  height: 1900px;
  min-height: 800px;
  object-fit: contain;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  transition: opacity 0.3s;
  
}
.site-bg-side-left {
  left: -400px;
}
.site-bg-side-right {
  right: -0px;
  left: auto;
  /* transform: scaleX(-1); */
}

/* ---- QUANDO FAZ SCROLL (aparece no menu) ---- */
.header-scrolled .logo {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* ====================== NAV MENU =================== */
nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  padding: 0 0;
}
.logo {
  flex-shrink: 0;
}
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-center ul {
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  align-items: center;
  list-style: none;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
  align-items: center;
}
nav ul li {
  display: inline;
}
nav a {
  text-decoration: none;
  color: var(--azul);
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s;
  border-radius: 18px;
  padding: 6px 14px;
}
nav a:focus-visible,
.menu-toggle:focus-visible,
.lang-btn:focus-visible,
.btn-contacto:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 2px;
}
nav a.active,
nav a:hover,
.btn-contacto {
  background: var(--azul);
  color: var(--branco) !important;
}
.btn-contacto {
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

/* ===================== MENU HAMBURGUER RESPONSIVO ===================== */

/* Botão hamburguer - escondido em desktop, visível só em mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  margin-left: 10px;
  z-index: 1001;
}

.menu-toggle .hamburguer {
  display: block;
  width: 32px;
  height: 3px;
  background: var(--azul);
  position: relative;
  border-radius: 2px;
}

.menu-toggle .hamburguer::before,
.menu-toggle .hamburguer::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--azul);
  position: absolute;
  border-radius: 2px;
}

.menu-toggle .hamburguer::before {
  top: -10px;
  position: absolute;
}

.menu-toggle .hamburguer::after {
  top: 10px;
  position: absolute;
}

/* ----- Menu mobile: esconde lista, mostra hamburguer ----- */
@media (max-width: 700px) {
  .menu-toggle {
    display: block;
  }
  .nav-center ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 80px; /* ajusta se o header for maior/menor */
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    background: var(--branco);
    box-shadow: 0 6px 24px #13354a11;
    padding: 18px 0;
    margin: 0;
    z-index: 1000;
  }
  .nav-center ul.open {
    display: flex;
  }
  .nav-center {
    width: 100%;
    justify-content: flex-end;
    position: relative;
  }
  nav {
    position: relative;
  }
  nav .logo {
    margin-right: auto;
  }
}


/* ====================== LANG SWITCH =================== */
.lang-switch {
  display: flex;
  gap: 6px;
  margin-left: 18px;
  flex-shrink: 0;
}
.lang-btn {
  background: none;
  border: none;
  padding: 3px 3px;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-btn.active,
.lang-btn:hover {
  background: var(--azul);
}
.flag-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: block;
}

/* ====================== HERO =================== */
.hero-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}
.hero-video-bg {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;  /* <-- MUDA AQUI PARA PUXAR VIDEO PARA CIMA E BAIXO */
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  min-height: 100%;
  min-width: 100%;
  pointer-events: none;
}
.hero {
  position: relative;
  min-height: 78vh;      /* menor que antes, mas ainda destacado */
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cinza-claro);
  overflow: hidden;
  z-index: 1;
}
.hero-bg img {
  width: 100vw;
  height: 64vh;          /* igual ao hero */
  object-fit: contain;
  object-position: center;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.72) 55%, rgba(255, 255, 255, 0.25) 100%);
  backdrop-filter: blur(2px);
}
.hero-overlay .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 76vh;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 140px 0 180px;
  color: var(--azul);
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 700;
  margin: 0;
  color: var(--azul);
}

.hero-desc {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  margin: 0;
  color: var(--azul);
  font-weight: 500;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--azul);
  opacity: 0.85;
  margin: 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--azul);
  color: var(--branco);
  box-shadow: 0 12px 26px rgba(19, 53, 74, 0.24);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: #0f2c3c;
  box-shadow: 0 10px 22px rgba(19, 53, 74, 0.28);
  transform: translateY(-2px);
  color: var(--branco);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--azul);
  border: 2px solid var(--azul);
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--azul);
  color: var(--branco);
  transform: translateY(-2px);
}



/* ====================== DESTAQUES =================== */
.highlights {
  background: var(--branco);
  padding: 36px 0;
  border-bottom: 1px solid #e3eafc;
}
.highlights-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.highlight {
  text-align: center;
  min-width: 150px;
}
.highlight-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--azul);
}
.highlight-label {
  color: var(--azul);
  font-size: 1.05rem;
  margin-top: 6px;
  opacity: 0.8;
}

/* ================== SOBRE NÓS ================== */



.sobre-nos-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.sobre-nos-content {
  max-width: 480px;
  margin: 0;
  font-size: 1.08rem;
  color: #24435c;
  text-align: left;
  line-height: 1.6;
  opacity: 0.93;
  flex: 1.4;
  min-width: 240px;
}
.sobre-nos-content h3 {
  font-size: 1.12rem;
  color: var(--azul);
  font-weight: 700;
  margin-top: 24px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sobre-nos-content h3:first-child {
  margin-top: 0;
}
.sobre-nos-content p {
  margin: 0 0 6px 0;
}
.sobre-nos-img-slider {
  flex: 1;
  min-width: 220px;
  max-width: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sobre-nos-img-frame {
  position: relative;
  width: 380px;   /* Largura fixa (quadrado) */
  height: 380px;  /* Altura igual à largura (quadrado) */
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 16px #13354a22;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sobre-nos-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 24px;
  z-index: 1;
  transition: opacity 0.7s;
  background: #fff;
}
.sobre-nos-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.4);
  border-radius: 24px;
  z-index: 2;
  pointer-events: none;
}
/* ================== SOBRE NÓS: FORM CTA RECTANGULAR ================== */
.sobre-nos-form-cta {
  background: var(--azul);
  color: #fff;
  border-radius: 18px;
  margin: 10px auto 10px auto;
  max-width: 800px;
  padding: 22px 18px 10px 18px; /* padding inferior reduzido */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 20px #13354a22;
  position: relative;
  z-index: 2;
}

.sobre-nos-form-text {
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
  opacity: 0.97;
}

.sobre-nos-form-subtexto {
  text-align: center;
  font-size: 1.08rem;
  opacity: 0.93;
  margin-bottom: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.sobre-nos-form {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.sobre-nos-form input {
  padding: 10px 14px;
  border-radius: 9px;
  border: none;
  font-size: 1.04rem;
  background: #f7fafd;
  color: #23384e;
  min-width: 160px;
  width: 180px;
  outline: none;
  margin-bottom: 0;
}

.sobre-nos-form input:focus {
  outline: 2px solid var(--azul-escuro);
}

.sobre-nos-form button[type="submit"] {
  padding: 11px 32px;
  background: #ffa600;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'Inter', Arial, sans-serif; /* tipo de letra mais agradável */
  font-weight: 600;                       /* menos bold que antes */
  font-size: 1.08rem;
  cursor: pointer;
  margin-top: 0;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}

.sobre-nos-form button[type="submit"]:hover,
.sobre-nos-form button[type="submit"]:focus {
  background: #ff9900;
}

.sobre-nos-form-status {
  font-size: 0.99rem;
  color: #fffad0;
  text-align: center;
  margin-top: 6px;
  min-width: 120px;
  min-height: 20px;
  flex-basis: 100%;
}

.sobre-nos-form-priv {
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.6;
  margin-top: -10px;       /* mínimo espaço possível */
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .sobre-nos-form {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .sobre-nos-form input {
    width: 100%;
    min-width: 0;
  }
  .sobre-nos-form button[type="submit"] {
    width: 100%;
  }
  .sobre-nos-form-cta {
    padding: 18px 6vw 8px 6vw;
  }
}



/* ====================== SECÇÕES GERAIS E CARDS =================== */
.section {
  padding: 80px 0 40px 0;
}
.section-title {
  font-size: 2.1rem;
  text-align: center;
  margin-bottom: 32px;
  color: var(--azul);
  font-weight: 700;
}
.cards {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  align-items: stretch;
}

/* ================= FLIP CARDS ESTRUTURAS ================= */
.card-flip {
  width: 320px;
  min-height: 260px;
  perspective: 1200px;
  border-radius: 20px;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: none;
}

.card-flip-inner {
  width: 100%;
  height: 100%;
  min-height: 260px;
  position: relative;
  border-radius: 20px;
  transition: transform 0.6s cubic-bezier(.7, .2, .3, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

.card-flip:hover .card-flip-inner,
.card-flip:focus-within .card-flip-inner {
  transform: rotateY(180deg);
}

.card-flip-front {
  width: 100%;
  height: 100%;
  min-height: 260px;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 2px 12px #e3eafc;
  background: var(--branco);
  padding: 32px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;  /* Mantém o conteúdo alinhado ao topo */
}

.card-flip-front .card-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  object-fit: contain;
  display: block;
}

.card-flip-front h3 {
  min-height: 2.7em;      /* Altura mínima para alinhar títulos */
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 12px 0;
  font-size: 1.21rem;
  color: var(--azul);
  font-weight: 700;
  text-align: center;
  width: 100%;
}

.card-flip-front p {
  min-height: 3.7em;      /* Altura mínima para alinhar textos */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #3a4e5f;
  margin: 0;
  text-align: center;
  width: 100%;
  line-height: 1.6;
}

.card-flip-back {
  width: 100%;
  height: 100%;
  min-height: 260px;
  position: absolute;
  top: 0; left: 0;
  border-radius: 20px;
  background: no-repeat center/cover;
  box-shadow: 0 2px 12px #e3eafc;
  padding: 0;
  margin: 0;
  backface-visibility: hidden;
  z-index: 3;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
}






/* --------- CARDS NORMAIS ----------- */
.card {
  background: var(--branco);
  color: var(--azul);
  padding: 32px 20px;
  border-radius: 20px;
  width: 320px;
  box-sizing: border-box;
  box-shadow: 0 2px 12px #e3eafc;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s;
}
.card:hover {
  box-shadow: 0 8px 28px #13354a22;
}
.card-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  object-fit: contain;
}
.card h3, .service-card h4 {
  margin: 0 0 10px 0;
  font-size: 1.21rem;
  color: var(--azul);
  font-weight: 700;
}
.card p {
  font-size: 1rem;
  color: #3a4e5f;
  margin-bottom: 0;
}
.service-card ul {
  text-align: left;
  margin: 18px 0 0 0;
  padding-left: 18px;
  color: #3a4e5f;
}
.service-card ul li {
  margin-bottom: 8px;
  font-size: 0.97rem;
}

/* ================= SERVIÇOS NA PAGINA SERVIÇOS ================= */


.service-block {
  margin-bottom: 64px;
}

.service-block h3 {
  font-size: 1.28rem;
  color: var(--azul);
  margin-bottom: 10px;
  font-weight: 700;
}

.service-block p {
  font-size: 1.05rem;
  color: #3a4e5f;
  margin-bottom: 16px;
  max-width: 700px;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 10px;
}

.service-gallery picture {
  display: block;
}

.service-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 2px 10px #13354a0b;
  transition: transform 0.2s;
  background: #fff;
}

.service-gallery img:hover {
  transform: scale(1.03);
}

.service-list {
  margin-bottom: 26px;
  margin-top: 0;
  padding-left: 22px;
  color: #3a4e5f;
  font-size: 1.10rem;
}
.service-list li {
  margin-bottom: 15px;
  line-height: 1.7;
  list-style-type: disc;
}
.service-list li:last-child {
  margin-bottom: 0;
}


@media (max-width: 900px) {
  .service-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .service-gallery img {
    height: 140px;
  }
}

@media (max-width: 600px) {
  .service-gallery {
    grid-template-columns: 1fr;
  }
  .service-gallery img {
    height: 120px;
  }
}

/* Anchors de serviços: afasta do topo o suficiente para o header fixo */
#projeto-preparatorio,
#execucao,
#calculo {
  scroll-margin-top: 100px; /* ou 90px, ajusta conforme altura do header */
}



/* ================= SERVIÇOS: FADE PARA IMAGEM AO HOVER ================= */
.service-fade-img {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--branco);
  transition: background 0.5s cubic-bezier(.6,.3,.4,1), box-shadow 0.2s;
}

.service-card-content {
  position: relative;
  z-index: 2;
  transition: opacity 0.5s cubic-bezier(.6,.3,.4,1);
}

.service-fade-img .service-card-img-layer {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  z-index: 3;
  transition: opacity 0.5s cubic-bezier(.6,.3,.4,1);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-fade-img .service-card-img-overlay {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.50);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-fade-img .service-more-btn {
  padding: 6px 14px;
  border-radius: 14px;
  background: var(--azul);
  color: var(--branco);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.2s;
  box-shadow: 0 1px 4px #2222;
  border: none;
  outline: none;
  display: inline-block;
  letter-spacing: 0.01em;
}
.service-fade-img .service-more-btn:hover {
  background: var(--azul-escuro);
}

.service-fade-img:hover .service-card-content {
  opacity: 0;
}
.service-fade-img:hover .service-card-img-layer {
  opacity: 1;
}

/* Torna as cards dos serviços sempre com a mesma largura e auto altura */
.service-fade-img, .service-card {
  width: 320px;
  padding: 32px 20px;
  box-sizing: border-box;
  min-height: 180px;
}

/* ====================== SLIDER ANTES/DEPOIS =================== */
.slider-label {
  text-align: center;
  color: #3a4e5f;
  margin-bottom: 18px;
  font-size: 1rem;
  opacity: 0.85;
}
.container-slider {
  position: relative;
  width: 1100px;
  max-width: 98vw;
  height: 520px;
  margin: 60px auto 0 auto;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 2px 16px #e3eafc;
  background: #000;
}
.img-before, .img-after {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  user-select: none;
  pointer-events: none;
}
.img-after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.1s;
}
.slider-bar {
  position: absolute;
  top: 0; left: 50%;
  width: 6px;
  height: 100%;
  background: var(--azul);
  border-radius: 3px;
  cursor: ew-resize;
  z-index: 2;
  transition: left 0.1s;
  box-shadow: 0 0 8px #2228;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-bar::before {
  content: '';
  display: block;
  width: 32px;
  height: 32px;
  background: var(--branco);
  border-radius: 50%;
  border: 2px solid var(--azul);
  box-shadow: 0 2px 8px #2223;
  margin: auto;
}
.slider-bar:focus-visible {
  outline: none;
}
.slider-bar:focus-visible::before,
.container-slider.slider-active .slider-bar::before {
  box-shadow: 0 0 0 4px rgba(19, 53, 74, 0.2), 0 0 12px rgba(19, 53, 74, 0.35);
}

/* ====================== CAROUSEL PARCEIROS =================== */
.parceiros-carousel {
  background: var(--cinza-claro);
  padding: 60px 0 40px 0;
  margin-top: 60px;
}
.carousel-container {
  width: 1100px;
  max-width: 98vw;
  margin: auto;
  overflow: hidden;
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 40px;
  align-items: center;
  will-change: transform;
}
.carousel-track picture {
  display: flex;
  align-items: center;
}
.carousel-track img {
  height: 80px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  transition: transform 0.3s;
  border-radius: 12px;
  box-shadow: 0 2px 8px #e3eafc44;
  padding: 7px 12px;
  display: block;
  user-select: none;
  pointer-events: auto;
}
.carousel-track img:hover {
  transform: scale(1.05);
}

/* ====================== FOOTER =================== */
.footer {
  background: var(--azul);
  color: var(--branco);
  text-align: center;
  padding: 38px 0 0 0;
  position: relative;
  margin-top: 0;
  font-size: 1.05rem;
}
.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-info {
  flex: 1;
  min-width: 280px;
  max-width: 360px;
  color: var(--branco);
  font-size: 1.07rem;
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
  align-items: flex-start;
}
.footer-info a {
  color: var(--branco);
  text-decoration: underline;
}
.footer-logo {
  height: 150px;
  width: auto;
  margin-bottom: 14px;
  display: block;
}
.footer-logo img {
  height: 45px;
  margin-bottom: 10px;
}
.footer-form {
  flex: 1.2;
  min-width: 320px;
  max-width: 480px;
  background: var(--azul-escuro);
  border-radius: 18px;
  padding: 28px 24px 22px 24px;
  box-shadow: 0 2px 12px #13354a33;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}
.footer-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
}
.footer-form input,
.footer-form textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  margin-bottom: 0;
  resize: none;
  outline: none;
  background: #fff;
  font-family: 'Inter', Arial, sans-serif;
  color: #13354A;
  box-sizing: border-box;
}
.footer-form textarea {
  min-height: 80px;
  max-height: 180px;
  box-sizing: border-box;
}
.footer-form button {
  background: var(--azul);
  color: var(--branco);
  border: none;
  border-radius: 8px;
  padding: 10px 0;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
}
.footer-form button:hover {
  background: var(--azul-escuro);
}
#formStatus {
  margin-top: 8px;
  font-size: 0.98rem;
  color: #fffad0;
  min-height: 20px;
}
.footer-copy {
  text-align: center;
  color: var(--branco);
  opacity: 0.8;
  margin-top: 36px;
  font-size: 1rem;
  padding-bottom: 30px;
}

/* ====================== FOOTER SOCIAL =================== */

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 24px 0 12px 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7fafd;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px #13354a0a;
  text-decoration: none;
}
.footer-social a:hover {
  background: #13354A;
}
.footer-social img {
  width: 22px;
  height: 22px;
  display: block;
  filter: grayscale(0.15);
  transition: filter 0.2s;
}
.footer-social a:hover img {
  filter: grayscale(0) brightness(3);
}

@media (max-width: 700px) {
  .footer-social a {
    width: 32px;
    height: 32px;
  }
  .footer-social img {
    width: 18px;
    height: 18px;
  }
}


/* ====================== RESPONSIVO =================== */
@media (max-width: 1200px) {
  .container-slider { width: 98vw; height: 340px; }
}
@media (max-width: 900px) {
  .footer-flex {
    flex-direction: column;
    gap: 38px;
    align-items: stretch;
  }
  .footer-info, .footer-form {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
}
@media (max-width: 900px) {
  .hero-overlay .container {
    min-height: 68vh;
    padding: 0 6vw;
  }
  .hero-content {
    padding: 120px 0 140px;
  }
  .hero-cta {
    gap: 12px;
  }
}
@media (max-width: 700px) {
  .container-slider { height: 180px; }
  nav ul { gap: 10px; }
  .hero {
    min-height: 88vh;
  }
  .hero-overlay {
    background: rgba(255, 255, 255, 0.96);
  }
  .hero-overlay .container {
    min-height: 74vh;
    padding: 0 7vw 40px;
    justify-content: center;
  }
  .hero-content {
    padding: 100px 0 120px;
    text-align: center;
    align-items: center;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-title { font-size: clamp(1.9rem, 6vw, 2.4rem); }
  .section-title { font-size: 1.3rem; }
  .logo img { height: 66px; max-width: 180px; }
  .header-scrolled .logo img { height: 28px; }
}

@media (max-width: 768px) {
  /* Mostrar vídeo também em mobile; remover fallback de imagem */
}
@media (max-width: 1020px) {
  .site-bg-side-img { display: none; }
}

#sobre {
  padding-top: 12px !important;
}

/* BOTÃO VOLTAR ABAIXO DO MENU */
.btn-voltar-servicos {
  position: fixed;
  top: 92px;           /* <-- Abaixo do header (80px), mais 12px de margem */
  left: 22px;
  z-index: 100;
  background: rgba(19, 53, 74, 0.62);
  color: #fff;
  padding: 11px 26px 11px 22px;
  border-radius: 22px;
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px #0002;
  letter-spacing: 0.01em;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s, transform 0.12s;
  opacity: 0.85;
  backdrop-filter: blur(2.5px);
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-voltar-servicos:hover, .btn-voltar-servicos:focus {
  background: rgba(19, 53, 74, 0.89);
  color: #ffd866;
  box-shadow: 0 8px 28px #13354a44;
  opacity: 1;
  transform: scale(1.05);
  text-decoration: none;
}
@media (max-width: 700px) {
  .btn-voltar-servicos {
    top: 72px;        /* Header reduzido em mobile */
    left: 8px;
    padding: 8px 15px 8px 13px;
    font-size: 0.97rem;
    border-radius: 17px;
  }
}
/* Todas as anchors de navegação ajustadas para o header fixo */
#inicio,
#sobre,
#estruturas,
#servicos,
#contacto,
#projeto-preparatorio,
#execucao,
#calculo {
  scroll-margin-top: 100px; /* Ajusta para a altura real do teu header! */
}

.sobre-nos-duas-colunas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 30px 0 40px 0;
  align-items: flex-start;
}
.sobre-nos-duas-colunas h3 {
  font-size: 1.14rem;
  color: var(--azul);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.sobre-nos-duas-colunas p {
  font-size: 1.07rem;
  color: #24435c;
  line-height: 1.7;
  margin: 0;
  opacity: 0.93;
}
@media (max-width: 900px) {
  .sobre-nos-duas-colunas {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

@media (max-width: 700px) {
  .nav-center ul {
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    box-sizing: border-box;
  }
}
@media (max-width: 700px) {
  .sobre-nos-form-cta {
    width: 100%;
    max-width: 97vw;
    padding-left: 2vw;
    padding-right: 2vw;
    box-sizing: border-box;
  }
}

@media (max-width: 700px) {
  .sobre-nos-form-cta {
    width: 100%;
    max-width: 97vw;
    box-sizing: border-box;
    padding-left: 3vw;
    padding-right: 3vw;
  }
  .sobre-nos-form {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }
  .sobre-nos-form input,
  .sobre-nos-form button[type="submit"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 700px) {
  .footer-info {
    text-align: center !important;
    align-items: center !important;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

.footer-legal-link {
  color: #fff !important;
  text-decoration: underline !important;
  font-weight: 600;
  opacity: 1;
  margin-left: 10px;
  transition: color 0.2s;
}

.footer-legal-link:hover,
.footer-legal-link:focus {
  color: #ffd866 !important; /* cor de destaque ao hover, opcional */
}

.header-scrolled .nav-center ul {
  padding-left: 90px;
  padding-right: 90px;
}
.logo {
  position: absolute;
  left: 10%;
  top: 0;
  transform: translate(-50%, -70%);
  width: 160px;
  height: 80px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s, transform 0.5s;
  z-index: 10;
}
.header-scrolled .logo {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 2%);     /*o segundo valor altera a altura do logo scrolled */
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    left: 0;
    right: 0;
  }
  header .container {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
