html, body {
  overflow-x: hidden;
}

html {
  font-size: 16px;
}

body {
  /*font-family: "Open Sans", sans-serif;*/
  font-family: "Verdana", "sans-serif";
  color: rgb(34, 30, 31);
  background: rgb(255, 255, 255);
  margin: 0;
  padding: 0;
  padding-top: 80px; /* header height + padding */
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #sobre, #conceito, #clientes, #reconhecimento{
    max-width: 100%;  /* remove limite de largura */
    margin: 0;        /* remove centralização */
    padding: 0 1rem;  /* opcional: pequeno padding lateral */
  }
  
    .div_preto {
      background-color: black;
      color: white;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 25rem; /* altura mínima */
      padding: 2rem;     /* evita que o texto encoste às bordas */
      max-width: 55rem;
      width: 100%;
      margin: 3rem auto;
    }

    .div_cinza {
      background-color: rgb(222, 222, 222);
      color: black;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 12rem;
      max-width: 55rem;
      width: 100%;
      margin: 3rem auto;
      padding: 1rem;
    }
    
    .div_cinza h5 {
      line-height: 1.6;
      text-align: center; /* opcional, mas fica mais bonito */
    }
  
    /* Remove qualquer margem do container que envolve o título */
  #sobre .principais, #conceito .principais, #clientes .principais_clientes, #reconhecimento .principais{
    margin: 0;
    padding: 0;
    width: 100%;
    margin-top: 5%;
  }

  /* Remove margem do h2 para que fique colado à esquerda */
  #sobre .principais h2, #conceito .principais h2, #clientes .principais_clientes h2, #reconhecimento .principais h2 {
    margin: 0;
    padding: 0;
  }
  
  .img_reconhecimento{
      text-align: center;
  }
}


/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgb(222, 222, 222);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  height: 80px;
}


/* Logo */
#header .logo img {
  padding: 0;
  margin: 0;
  max-height: 70px;
}

/* Menu */
nav a {
  text-decoration: none;
  color: rgb(34, 30, 31);
  margin-left: 25px;
  transition: color 0.3s;
  font-weight: 500;
}

nav a:hover {
  color: #fff;
}


/* Esconde o ícone do menu no PC */
.menu-toggle {
  display: none;
}


/* Menu normal no PC */
nav {
  display: flex;
  gap: 25px;
}

@media (max-width: 768px) {
  #header {
    flex-direction: row;      /* logo e menu na mesma linha */
    justify-content: space-between; /* logo à esquerda, menu à direita */
    align-items: center;
    height: auto;      /* deixa altura automática */
    padding: 10px 20px; /* menos padding lateral */
  }

  .menu-toggle {
    display: block;
    font-size: 28px;
    cursor: pointer;
  }

  nav {
    display: none;            /* esconde menu completo por defeito */
    position: absolute;       /* sobrepõe ao conteúdo */
    top: 65px;                /* logo + header */
    right: 0;
    width: 100%;
    background: rgb(222, 222, 222);
    flex-direction: column;
    padding: 10px 0;
    z-index: 999;
  }

  nav a {
    margin: 10px 0;
    text-align: center;
    width: 100%;
  }

  nav.active {
    display: flex;            /* mostra menu ao clicar */
  }

  #header .logo img {
    max-height: 60px;         /* logo menor no telemóvel */
  }
}



/*Dropdown Menu*/

.dropdown {
  position: relative;
  display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
  display: none;
  position: absolute;
  z-index: 1;
  margin: 0;
  padding: 0;
  text-align: left;
  font-family: "Open Sans", sans-serif;
  font-size: 20px;
  width: 250px;
}

/* Links inside the dropdown */
.dropdown-content a {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
  color: rgb(34, 30, 31);
  /*#fff;*/
  text-decoration: none;
}

/* Show the dropdown menu on hover */
.dropdown:hover .dropdown-content {
  display: block;
}


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: calc(100vh - 100px); /* PC */
  background: rgb(222, 222, 222);
  position: relative;
  z-index: 9;
  overflow: hidden;
}

#myvideo {
  width: 100%;
  height: 100%;
  object-fit: cover; /* PC: cobre todo o #hero */
  filter: grayscale(100%);
}

@media (max-width: 768px) {
  #hero {
    height: auto;           /* deixa altura automática */
    display: flex;          /* ativa flex para centralizar o vídeo */
    justify-content: center; 
    align-items: center;
    background: black;      /* fundo para preencher espaço vazio */
  }

  #myvideo {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}



/*--------------------------------------------------------------
# Clientes Section
--------------------------------------------------------------*/
#clientes {
  background-size: cover;
  position: relative;
  margin-bottom: 5rem;
  scroll-margin-top: 6rem;
}

.clientes-container {
  justify-content: center;
  margin-top: 3rem;
}

#clientes img {
  height: 3rem;
  filter: grayscale(0%);
}

#clientes img:hover {
  filter: grayscale(100%);
}

.cliente {
  margin: 1.5rem;
  text-align: center;
}

.principais {
  margin-left: 5%;
  margin-top: 5%;
}

.principais_clientes {
  margin-left: 5%;
  margin-top: 6%;
}


/*--------------------------------------------------------------
# Contactos Hero Section
--------------------------------------------------------------*/

#contactos_hero {
  height: 18rem;
  margin-top: -2rem;
  background: rgb(222, 222, 222);
  color: rgb(34, 30, 31);
  display: flex;
  align-items: flex-end;
  /* alinha verticalmente */
}

#contactos_hero h1 {
  margin: 2rem;
}

/*--------------------------------------------------------------
# Contactos Section
--------------------------------------------------------------*/

#contactos {
  background: rgb(255, 255, 255);
  color: rgb(34, 30, 31);
}

.contactos_container {
  margin-left: 2rem;
  margin-top: 2rem;
  align-items: center;
}

.chamada {
  font-size: 12px;
}

.maps {
  flex: 1;
  min-width: 280px;
  text-align: center;
}

.maps iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 8px;
}

.maps iframe {
  width: 100%;
  height: clamp(250px, 30vw, 400px);
  border: 0;
  border-radius: 8px;
}


#contactos svg {
  margin-bottom: 1rem;
}

/*--------------------------------------------------------------
# Sobre Section
--------------------------------------------------------------*/
#sobre_hero {
  height: 15rem;
  margin-top: -2rem;
  background: rgb(222, 222, 222);
  color: rgb(34, 30, 31);
  display: flex;
  align-items: flex-end;
  /* alinha verticalmente */
}

#sobre {
  background: rgb(255, 255, 255);
  color: rgb(34, 30, 31);
  scroll-margin-top: 6rem;
}

#sobre_hero h1 {
  margin: 2rem;
}

.sobre_div {
  text-align: center;
}

#reconhecimento {
  background-size: cover;
  position: relative;
  margin-top: 8rem;
  margin-bottom: 5rem;
  scroll-margin-top: 6rem;
}

#reconhecimento img {
  height: 20rem;
}

#reconhecimento img:hover {
  filter: grayscale(0%);
}

.texto {
  text-align: justify;
  max-width: 55rem;
  width: 100%;
  margin: 3rem auto;
}

.div_preto {
  background-color: black;
  color: white;
  /* Centralizar conteúdo */
  display: flex;
  justify-content: center;
  /* horizontal */
  align-items: center;
  /* vertical */
  height: 15rem;
  /* define uma altura para o bloco preto */
  max-width: 55rem;
  width: 100%;
  margin: 3rem auto;
}

.div_cinza {
  background-color: rgb(222, 222, 222);
  color: black;
  /* Centralizar conteúdo */
  display: flex;
  justify-content: center;
  /* horizontal */
  align-items: center;
  /* vertical */
  height: 8rem;
  /* define uma altura para o bloco preto */
  max-width: 55rem;
  width: 100%;
  margin: 3rem auto;
}

.div_cinza h5 {
      line-height: 1.6;
      text-align: center; 
}

.texto_preto {
  width: 50rem;
  text-align: justify;
  margin: 0;
  /* remove margens para centralização perfeita */
}

.imagens {
  max-width: 55rem;
  width: 100%;
  margin: 3rem auto;
}

.imagem {
  max-width: 30rem;
  width: 100%;
  margin: 3rem auto;
}

.imagens_6 {
    max-width: 55rem;
  width: 100%;
  margin: 3rem auto;
  display: flex;
  justify-content: center;
}

.imagens_6 .row,
.imagens_6 .col-6 {
  padding: 0 !important;
  margin: 0 !important;
}

.img__wrap {
  position: relative;
  width: 20rem;
  height: 100%; /* escolhe a altura que quiseres */
  overflow: hidden;
  display: block;
  padding: 0;
  margin: 0;
}

.img__img {
  display: block;
  width: 20rem;
  height: 100%;
  object-fit: cover; /* corta a imagem mas mantém proporções */
  transition: opacity 0.4s ease;
}

.img__description {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; 
  background: rgb(222,222,222);
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* Hover */
.img__wrap:hover .img__img { opacity: 0; }
.img__wrap:hover .img__description { opacity: 1; }


#sobre p {
  font-size: 16px;
}

.flip-card {
  position: relative;
  width: 100%;
  max-width: 25rem;
  overflow: hidden;
  cursor: pointer;
  margin-top: 1rem;
}

.flip-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(222, 222, 222);
  color: black;
  padding: 2rem;
  display: flex;
  align-items: center;
  text-align: justify;
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 10;
}

.flip-card:hover .flip-back {
  transform: translateX(0);
}
.texto-imagem {
  text-align: center;
  margin-top: 0.5rem;
  transition: opacity 0.3s ease;
}
.flip-card:hover .texto-imagem {
  opacity: 0.2;
}


/*--------------------------------------------------------------
# Conceito Section
--------------------------------------------------------------*/
#conceito {
  background: rgb(255, 255, 255);
  color: rgb(34, 30, 31);
  scroll-margin-top: 6rem;
}

#conceito p {
  font-size: 16px;
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  background-color: rgb(34, 30, 31);
  color: rgb(222, 222, 222);
  padding: 40px;
  text-align: center;
  font-size: 12px;
  scroll-margin-top: 6rem;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.contact-form label {
  display: block;
  margin: 10px 0 5px;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  margin-bottom: 15px;
}

.contact-form button {
  background-color: rgb(222, 222, 222);
  color: rgb(34, 30, 31);
  border: none;
  padding: 12px 20px;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: rgb(222, 222, 222);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 2rem;
}

.footer_header {
  text-align: left;
  margin-left: 4rem;
}

.contact-form,
.footer-info {
  flex: 1;
  /* cada coluna ocupa metade */
}

.footer-info {
  flex: 1;                  /* ocupa espaço como as outras colunas */
  display: flex;             /* transforma em flex container interno */
  flex-direction: column;    /* empilha verticalmente */
  align-items: flex-start;   /* mantém cada linha alinhada à esquerda */
  margin: 0 auto;            /* centra o bloco inteiro horizontalmente */
  max-width: 300px;          /* opcional: limita largura para melhor leitura */
  text-align: left;          /* garante alinhamento interno à esquerda */
  gap: 0.5rem;               /* espaço entre linhas */
}

#email p {
  margin: 0;
  /* remove a margem padrão do parágrafo */
}


.social-links {
  display: flex;
  gap: 0rem;
}


.social-links a {
  font-size: 18px;
  display: flex;
  /* ativa flexbox */
  align-items: center;
  /* centra verticalmente */
  justify-content: center;
  /* centra horizontalmente */
  background: rgb(222, 222, 222);
  color: rgb(34, 30, 31);
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  transition: 0.3s;
  margin-right: 1.2rem;
  text-decoration: none;
}

.social-links a:hover {
  background: rgb(34, 30, 31);
  color: rgb(222, 222, 222);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  /* <-- força coluna */
  gap: 0.75rem;
  /* espaço entre telemóvel e email */
  align-items: flex-start;
  /* alinha à esquerda */
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.footer-center {
  display: flex;
  align-items: center;
}


.contact-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 1rem; /* menos espaço entre colunas */
    max-width: 100%; /* garante que cabe no ecrã */
    padding: 0 1rem; /* pequeno padding lateral */
  }

  .contact-form,
  .footer-info {
    flex: none; /* remove o flex para não forçar largura */
    width: 100%;
    margin-bottom: 1rem;
  }

  .footer_header {
    margin-left: 0; /* remove margens grandes */
    text-align: center; /* centra o texto */
  }
}



@media (min-width: 1600px) {
  .footer-container {
    max-width: 1400px;
    gap: 5rem;
  }
}
