
html {
  scroll-padding-top: 80px; /* Ajusta a posição do scroll */
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 120px; /* Ajuste posição do scroll maior para dispositivos móveis */
  }
}

:root {
  scroll-behavior: smooth;
}


/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/*  */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
  padding-top: 70px; /* espaço para a barra fixa */
  overflow-x: hidden;
}

/* NAV bar fixa no topo */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  background-color: #2c3e50;
  color: white;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

/* Logotipo */
.nav-left img {
  height: 40px;
}

/* Botão hamburguer */
.nav-toggle {
  font-size: 2em;
  cursor: pointer;
  color: white;
}

/* Menu popup oculto */
.nav-popup {
  display: none;
  position: absolute;
  top: 70px;
  right: 1em;
  background-color: #2c3e50;
  padding: 1em 2em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  flex-direction: column;
  z-index: 1000;
}

.nav-popup a {
  color: white;
  text-decoration: none;
  padding: 0.4em 0;
  font-weight: bold;
}

/* Secção de idiomas */
.lang-options {
  margin-top: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 1em;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
}

.flag {
  width: 20px;
  margin-right: 0.5em;
  vertical-align: middle;
}

/* Mostrar menu */
.nav-popup.show {
  display: flex;
}

section {
  scroll-margin-top: 20px; /* altura da tua barra fixa */
}

section, footer {
  padding: 2em;
  margin: 2em auto; /* Adiciona espaçamento vertical entre as secções */
  max-width: 900px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.contact-info i {
  margin-right: 0.5em;
}

#localizacao iframe {
  margin-top: 2em;
  margin-bottom: 2em;
  border-radius: 8px;
  border: none;
}

 /* Formatação de espaço a seguir à ao titulo de cada secção */
section p {
  line-height: 1.8; /* valor ajustável — entre 1.6 e 2.0 é geralmente confortável */
  margin-top: 1em; /* para garantir afastamento do título */
}
#localização h2 {
  margin-bottom: 1em;
}
#localização .map-container {
  margin-top: 1em;
}
 /*  Formatação de espaço entre linhas: */
 /*
section p,
section li,
section ul,
section ol {
  line-height: 1.8;
}
*/
/* Formatação da secção servicos */
#servicos h2 {
  margin-bottom: 0.5em;
}
#servicos ul {
  padding-left: 1.2em;
  line-height: 1.8;
}
#servicos ul li {
  margin-bottom: 1em;
}
/* Formatar imagem logotipo em função do equipamento de visualização */
.logo-img {
  max-width: 60%;
  height: auto;
}

/* Animação do fundo */
#background-animation {
    position: fixed;
    width: 100%;
    height: 100%;
    /* background-color: #ffffff; /* Fundo branco */
	/* background-color: #f2f2f2; /* Cinza quase branco */
	background-color: #e6e6e6; /* Cinza muito claro */
	/* background-color: #cccccc; /* Cinza claro */
	/*background-color: #888888; /* Cinza médio */
    z-index: -1;
    top: 0;
    left: 0;
}
