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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #222;
  background: #062047;
  overflow-x: hidden;
}

/* Fundo geral para o site (abaixo da capa) */
.site-background {
  background: url('a1.png') no-repeat center center fixed;
  background-size: cover;
  filter: brightness(0.95);
  padding-top: 40px;
  padding-bottom: 0px;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(34, 34, 34, 0.9);
  color: #fff;
  padding: 12px 20px;
  display: none;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  z-index: 9999;
}

.cookie-banner p {
  max-width: 85%;
}

.cookie-banner a {
  color: #4fc3f7;
  text-decoration: underline;
}

.cookie-banner button {
  background: #4fc3f7;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
  background: #29b6f6;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* CABEÇALHO */
header {
  background: linear-gradient(to bottom, #062047, #062047);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  transition: height 0.3s ease, background 0.3s ease;
  z-index: 1000;
  padding: 0 20px; /* espaço lateral */
  overflow: hidden; /* evita elementos saindo para fora */
  box-sizing: border-box;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  box-sizing: border-box;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 8px;
  /* Garante que a logo não saia da área do cabeçalho */
  max-height: 100%;
  overflow: hidden;
}

.logo-img {
  width: 120px;
  max-height: 100%; /* limita altura para não ultrapassar o header */
  height: auto;
  display: block;
  transition: width 0.1s ease, max-height 0.1s ease;
  object-fit: contain; /* evita distorção */
  margin: 0; /* zera margens externas */
  padding: 0;
}

.menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu li a {
  color: #fafafa;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.menu li a:hover,
.menu li a:focus {
  color: #f7c214;
}

/* Estado reduzido do cabeçalho após scroll */
header.scrolled {
  height: 60px;
  background: linear-gradient(to bottom, #062047, #062047);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  padding: 0 20px;
}

header.scrolled .logo-img {
  width: 120px;
  max-height: 60px; /* limita para caber na altura do header */
}

/* HERO / CARROSSEL */
.hero {
  position: relative;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  margin-top: 90px;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 2rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Carrossel */
/* Reset geral e altura total do HTML */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Faz a imagem ocupar toda a tela */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Película escura em cada slide */
.carousel-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Transparência da película */
  z-index: 1;
}

/* Texto sempre acima da película */
.carousel-text {
  position: absolute;
  z-index: 2;
  color: white;
  font-size: 2rem;
  max-width: 60%;
  padding: 1rem;
}


.art {
  display: block;
  font-size: 5rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-top: 0.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}


.carousel-text.left {
  left: 5%;
  bottom: 15%;
}

.carousel-text.right {
  right: 5%;
  bottom: 15%;
}

.carousel-text h1, .carousel-text h2 {
  margin: 0;
  font-size: 2.5rem;
}

/* Botões */
button.prev,
button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0.5rem;
  cursor: pointer;
}

button.prev {
  left: 1rem;
}

button.next {
  right: 1rem;
}


/* (Opcional) Animação de entrada do texto */
@keyframes captionFade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


.carousel-text {
  position: absolute;
  top: 50%; /* ou ajuste como quiser */
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
}

/* Frase à ESQUERDA */
.carousel-text.left {
  left: 420px;
  text-align: left;
}

/* Frase à DIREITA */
.carousel-text.right {
  right: 0px;
  text-align: right;
}




.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 2;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}


/* Botões do carrossel */
.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 2rem;
  z-index: 2;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 25px; }
.next { right: 25px; }

/* Responsivo */
@media (max-width: 768px) {
  .carousel-caption {
    font-size: 1.2rem;
    padding: 10px 20px;
    bottom: 30px;
  }
  .carousel button {
    font-size: 1.5rem;
    padding: 10px 12px;
  }
}


/* SOBRE A EMPRESA */
.sobre-empresa {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;        /* garante largura total */
  max-width: 100%;    /* remove qualquer limitação */
  box-sizing: border-box;
}

.card-info {
  background: #ffffff;
  padding: 30px;
  width: 100%;        /* faz ocupar toda a largura */
  max-width: none;    /* remove limite de 800px */
  border: 2px solid #d4af37;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.3);
  text-align: justify;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.card-info:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.8), 0 0 40px rgba(212, 175, 55, 0.4);
}

.card-info p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
}

.card-info strong {
  color: #0B3D91; /* Azul do site */
}

.icone-capacete {
  display: block;
  margin: 20px auto 0;
  width: 70px;
  height: auto;
}

.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 2s ease-out, transform 1s ease-out;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}


/* SERVIÇOS */
.servicos {
  margin: 60px auto 100px;
  position: relative;
  padding: 40px 0;
  color: #222;
  border-radius: 8px;
  width: 100%;
  max-width: 1100px;
}

.servico {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  width: 100%;
  opacity: 0;
  transform: translateY(30px);
  animation-fill-mode: forwards;
  animation-duration: 1s;
  animation-timing-function: ease-out;
}

.servico.invertido { flex-direction: row-reverse; }

.servico-text, .servico-img {
  flex: 0 0 50%;
  max-width: 50%;
}

.servico-text h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.servico-text p {
  font-size: 1.1rem;
  color: #444;
}

.servico-img {
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.12);
}

.servico-img img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.servico {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.servico.visible {
  animation: fadeInUp 1.7s ease-out forwards;
}


/* CONTATO */
/* Contato */
.contato {
  width: 100%;
  min-height: 100vh;
  background-image: url('img Roda.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  padding: 40px -10px;
  color: #f5f5f5;
  position: relative;
}


/* Camada escura leve pra destacar o texto */
.contato-conteudo {
  /* Mover para baixo */
  padding-top: 100px; /* Ajuste o valor conforme sua necessidade */
  /* Mover para a direita */
  padding-left: 100px; /* Ajuste o valor conforme sua necessidade */
}



.contato::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.contato * {
  position: relative;
  z-index: 1;
}

.contato h2 {
  font-size: 2.5rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.contato p {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.contato a {
  color: #f9e5d7;
  text-decoration: none;
  font-weight: 600;
}

.contato a:hover { color: #ff9452; }

/* REDES SOCIAIS */
.redes-sociais {
  margin-top: 20px;
  display: flex;
  justify-content: left;
  gap: 30px;
}

.redes-sociais a img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.2));
  transition: filter 0.3s ease;
}

.redes-sociais a:hover img { filter: drop-shadow(0 0 6px #ff9452); }

/* RODAPÉ */
.footer {
  background: transparent;
  color: #fff;
  text-align: center;
  padding: 0;
  font-weight: 500;
  font-size: 1rem;
  border-radius: 0;
  margin: 0;
  height: 0;
  display: none;
}


/* Animação nos cards de serviços */
.servico {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.servico.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ANIMAÇÃO */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVO */
@media (max-width: 900px) {
  .servico { flex-direction: column !important; text-align: center; }
  .servico.invertido { flex-direction: column !important; }
  .servico-text, .servico-img { flex: 1 1 100%; max-width: 100%; }
  .hero { margin-top: 60px; }
  .mascote { width: 50px; bottom: 15px; right: 15px; }
  .logo-img { width: 100px; }
}

@media (max-width: 480px) {
  .menu li a { font-size: 1rem; }
  .contato h2 { font-size: 2rem; }
  .servico-text h2 { font-size: 1.5rem; }
}

/* MASCOTE */
.mascote {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 170px; /* ajuste para o tamanho do mascote */
  cursor: pointer;
  z-index: 1100;
  transition: transform 0.3s ease;
}

.mascote img {
  width: 100%;
  height: auto;
  display: block;
}

.mascote:hover {
  transform: scale(1.05);
}

/* Balão */
.mascote-balao {
  position: absolute;
  top: 50%;
  left: -160px; /* distância para o lado esquerdo */
  transform: translateY(-50%);
  background-color: #0041a8;
  color: white;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  font-weight: 600;
  animation: pulse 2.5s infinite;
}

.mascote:hover .mascote-balao,
.mascote:focus .mascote-balao {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}


@keyframes pulse {
  0%, 100% { transform: translateX(0) scale(1); }
  50% { transform: translateX(5px) scale(1.05); }
}

/* --- RESPONSIVIDADE EXTRA PARA CAPA E HERO --- */
@media (max-width: 1024px) {
  .hero {
    height: 70vh; /* reduz altura em tablets */
  }
  .carousel-text {
    font-size: 1.6rem;
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  header {
    height: 80px;
  }
  .logo-img {
    width: 90px;
  }
  .hero {
    height: 60vh;
    margin-top: 80px;
  }
  .carousel-text {
    font-size: 1.4rem;
    padding: 0 10px;
    max-width: 90%;
  }
  button.prev,
  button.next {
    font-size: 1.5rem;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  header {
    height: 70px;
  }
  .logo-img {
    width: 70px;
  }
  .hero {
    height: 50vh;
    margin-top: 70px;
  }
  .carousel-text {
    font-size: 1.2rem;
    padding: 0 8px;
    max-width: 95%;
  }
  button.prev,
  button.next {
    font-size: 1.2rem;
    padding: 6px;
  }
}
/* Ajuste geral das imagens no carrossel para responsividade */
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center; /* centraliza a imagem */
  transition: object-position 0.3s ease;
}

/* Para celulares */
@media (max-width: 600px) {
  .hero {
    height: 50vh !important;  /* altura menor no celular */
  }
  .carousel-slide img {
    object-position: center top; /* foca mais no topo da imagem no celular */
  }
}
@media (max-width: 600px) {
  .carousel-text.left,
  .carousel-text.right {
    left: 50% !important;
    right: auto !important;
    bottom: 10%;
    transform: translateX(-50%) translateY(0);
    max-width: 90%;
    font-size: 1.2rem;
    text-align: center !important;
    padding: 0 10px;
  }
}