header {
  padding: 10px 20px; /* ajuste para aumentar o espaço interno do header */
}

/* Se precisar, ajuste o padding dos itens do menu com mais detalhes */
nav ul {
  padding: 0;
  margin: 0; /* já removido com a regra global, mas reforçando */
}

nav ul li {
  margin-right: 20px; /* espaço entre itens, ajuste conforme desejar */
}

/* Se quiser que o menu seja um pouco mais espaçado ou com espaçamento diferente */
nav ul li a {
  padding: 10px 15px; /* ajuste espaço ao redor do texto */
}

body {
    font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, "sans-serif";
    margin: 0;
    padding: 0;
    color: white;
    background-color: #ffffff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 26px 0px 32px; 
    background-color: #ffffff; 
}

.logo img {
    width: 260px;
    margin-right: 10px;
	margin-top: 10px;
}

nav ul {
    list-style: none;
    display:  flex;
}

nav ul li {
    margin: 0px 100px 0px 0px;
}

nav ul li a {
    text-decoration: none;
    color: #1f3780;
    font-weight: bold;
}

nav ul li a:hover {
    color: #BD2A1A; 
    transition: all 0.3s ease;
}

.background-section {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  min-height: 100vh; /* full screen height, adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}

.hero {
  position: relative;
  background-image: url('backgroundimage.jpg'); 
  background-size: cover;
  background-position: center;
  height: 74vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

/* Sobrepor a imagem para melhor leitura do texto */
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* efeito escurecido transparente */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Estilo do conteúdo dentro da hero */
.hero .content {
  position: relative;
  padding: 20px;
  max-width: 800px;
  z-index: 1;
}

.hero h2 {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero p {
  font-size: 1.4em;
  margin-bottom: 30px;
}

button {
  background-color: #bc0600; /* verde vibrante */
  border: none;
  padding: 15px 30px;
  font-size: 1.2em;
  color: white;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #1f3780;
}

.hero2 {
	background-color: #1a1a1a;
	text-align: center;
	background-position: center; /* centered image */
    background-repeat: no-repeat; /* prevents tiling */
    padding: 210px; /* adjust padding as needed */
    color: white; /* text color for contrast */
}

.text-box {
  background-color: #fff; /* caixa branca com texto preto */
  color: #000;
  padding: 30px;
  flex: 1;
  min-width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4); /* leve sombra para destaque */
  margin-right: 20px;
}

.text-box h2 {
  margin-top: 0;
  font-size: 2em;
}

.text-box p {
  font-size: 1.1em;
  line-height: 1.5;
}

.image-side {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-side img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-section {
  position: relative;
  background-image: url('backgroundimageaboutus.jpg'); /* sua imagem de fundo */
  background-size: cover;
  background-position: center;
  min-height: 77vh; /* altura mínima */
  display: flex;
  align-items: flex-start; /* alinha ao topo */
  justify-content: flex-start; /* alinhamento esquerdo */
  margin-top: 0px; /* espaçamento do topo */
}

/* Style for the main section title outside the box */
.about-title {
  margin-top: 0;
  color: #fff; /* branco */
  font-size: 2em; /* maior que a caixa */
  margin-bottom: 20px; /* espaço abaixo do título */
  text-align: left; /* alinhado à esquerda, ou center se preferir */
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Container para colocar a caixa branca na esquerda */
.about-container {
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column; /* ou 'row' se desejar lado a lado */
  max-width: 800px;
  width: 100%;
  margin-left: 50px; /* ajuste a margem */
  margin-top: 80px;   /* espaçamento do topo ao conteúdo após o titulo */
  z-index: 2;         /* fica acima do overlay */
}

/* Logo ao lado */
.logo-box {
  flex-shrink: 0; /* evita que encolha */
  margin-top: 155px;
  margin-left: 100px;
  max-width: 620px; /* ou ajuste para tamanho desejado */
  z-index: 2;
}
.logo-box img {
  width: 100%;
  height: auto;
  display: block;
}
  .logo-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 0px 0px rgba(111,111,0,0,0,0);
  border-radius: 8px;
  background-color: whitesmoke;
  transition: 0.7s ease;
}

/* Caixa branca com texto */
.text-box {
  width: 800px; /* tamanho fixo */
  background-color: #fff; /* branco */
  color: #000; /* texto preto */
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.text-box h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 2em;
}

.text-box p {
  font-size: 1.1em;
  line-height: 1.5;
}

.services-title {
  margin-top: 0;
  color: #fff; /* branco */
  font-size: 2em; /* maior que a caixa */
  margin-top: 30px;
  margin-bottom: 50px; /* espaço abaixo do título */
  margin-left: 30px;
  text-align: left; /* alinhado à esquerda, ou center se preferir */
}

/* Seção de serviços com fundo escurecido */
.services-background {
  position: relative;
  background-image: url('backgroundimageservices.jpg'); /* sua imagem de fundo */
  background-size: cover;
  background-position: center;
  height: 74vh;
  padding: 50px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

/* Sobrepor a imagem com escurecimento, sem conflito com outras seções */
.services-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* ajuste a opacidade aqui, 0.6 é mais escuro */
  z-index: 1; /* fica atrás do conteúdo, mas na frente da imagem */
}

/* Conteúdo da seção fica acima da sobreposição com z-index maior */
.services-background > * {
  position: relative; /* ou altera o z-index, se necessário */
  z-index: 2;
}
.services-section h2 {
  font-size: 3.0em;
  margin-bottom: 50px;
  color: #FFF;
}

/* Container dos cartões */
.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 70px;
  gap: 30px;
}

/* Cada cartão de serviço */
.service-card {
  background-color: #fff;
  padding: 30px;
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-17px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Ícones do Font Awesome */
.service-card i {
  color: #1f3780;
  margin-bottom: 20px;
}

/* Títulos e textos */
.service-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.5em;
  color: #000;
}

.service-card p {
  font-size: 1em;
  line-height: 1.4;
  color: #333;
}

.contact-section {
  position: relative;
  background-image: url('backgroundimagecontact.jpg'); /* sua imagem de fundo */
  background-size: cover;
  background-position: center;
  height: 74vh;
  padding: 50px 20px;
  background-color: #f8f8f8;
  text-align: center;
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* Style for the main section title outside the box */
.contact-title {
  margin-top: 0;
  color: #fff; /* branco */
  font-size: 2em; /* maior que a caixa */
  margin-bottom: 20px; /* espaço abaixo do título */
  text-align: left; /* alinhado à esquerda, ou center se preferir */
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Container para colocar a caixa branca na esquerda */
.contact-container {
  position: relative;
  display: flex;
  flex-direction: column; /* ou 'row' se desejar lado a lado */
  max-width: 700px;
  width: 100%;
  margin-left: 30px; /* ajuste a margem */
  margin-top: 30px;   /* espaçamento do topo ao conteúdo após o titulo */
  z-index: 2;         /* fica acima do overlay */
  text-align: left;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: #ffffff; 
	color: #1f3780;
}

@media (max-width: 768px) {
  /* Cabeçalho: empilhar logo e menu */
  header {
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
  }

  /* Logo: reduzir o tamanho do logo e espaço */
  .logo img {
    width: 180px; /* menor que antes */
    margin-bottom: 10px;
  }

  /* Menu de navegação em coluna, com espaçamento menor */
  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul li {
    margin: 8px 0;
  }

  /* Ajustar tamanhos de títulos para não ficar grande demais */
  h2 {
    font-size: 1.8em; /* menor que 2em, ainda destaque */
  }

  /* Botões para caber melhor */
  button {
    padding: 10px 20px;
    font-size: 1em;
  }

  /* Seção Hero: ajustar altura e espaçamento */
  .hero {
    padding: 10px 20px;
    height: auto; /* altura automática para melhor adaptação */
  }

  /* Título do Hero */
  .hero h2 {
    font-size: 2em; /* menor tamanho para o mobile */
  }

  /* Conteúdo da Hero: reduzir padding */
  .hero .content {
    padding: 10px;
  }

  /* Texto nas seções, diminuir tamanho da fonte */
  .text-box {
    width: 60%;
    padding: 10px;
    font-size: 0.8em; /* menor fonte */
  }

  /* Ajustes na altura e disposição dos containers de serviços */
  .services-container {
    flex-direction: column;
    align-items: center;
  }

  /* Cartões de serviço: reduzir largura, melhorar espaçamento */
  .service-card {
    width: 70%;
    margin-bottom: 20px;
	margin-left: 0;
  }

  /* Seções de contato */
  .contact-container {
    width: 50%;
    margin-left: 0;
  }
.main-content {
  flex: 1; /* ocupa o espaço restante entre header e footer */
  display: flex;
  flex-direction: column;
  justify-content: stretch; /* força as seções internas a preencherem */
}
	/* Regras que só afetam a index para evitar conflitos */
body.index-page {
  padding-bottom: 80px; /* espaço extra na parte inferior para o footer não invadir */
}

/* Altura mínima das seções principais para preencher a tela sem invadir o footer */
body.index-page .hero,
body.index-page .about-section,
body.index-page .services-background,
body.index-page .contact-section {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* Espaçamento acima do conteúdo para não sobrepor o header */
body.index-page main,
body.index-page section,
body.index-page .about-section,
body.index-page .hero {
  margin-top: 0px; /* mesma altura do header */
}
}
