/* RESET e CONFIGURAÇÕES GERAIS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

/* CONTAINER CENTRALIZADO */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 10px 0;
}

/* CABEÇALHO FIXO E REDUZIDO */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: #021d49;
  padding: 0px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Área de logo e contatos lado a lado */
.logo-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo img {
  height: 60px;
}

.contact-details {
  display: flex;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1.05em;
  color: #fff;
}

.contact-item i {
  font-size: 14px;
  color: #fff;
}

/* Navegação */
header nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

header nav ul li a {
  text-decoration: none;
  color: #fff;
  font-family: 'Gil Sans Bold', sans-serif;
  font-size: 1.05em;
  transition: color 0.3s ease;
}

header nav ul li a.active {
  color: #003595;
  border-bottom: 2px solid #003595;
}

header nav ul li a:hover {
  color: #003595;
}

/* Compensação para o cabeçalho fixo */
.hero {
  padding-top: 90px;
}

/* SEÇÃO HERO */
.hero {
  background: linear-gradient(135deg, #021d49 0%, #003595 100%);
  color: #fff;
  text-align: center;
  padding-top:80px;
  padding-bottom:30px;
}

.hero h1 {
  font-family: 'Gil Sans Bold', sans-serif;
  font-size: 2.4em;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.05em;
  margin-bottom: 40px;
}

.hero .btn {
  background: #fff;
  color: #021d49;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Gil Sans Bold', sans-serif;
  font-size: 1.05em;
  transition: background 0.3s ease, color 0.3s ease;
}

.hero .btn:hover {
  background: #003595;
  color: #fff;
}

/* SEÇÕES GERAIS */
.section {
  padding: 80px 0;
}

.section h2 {
  font-family: 'Gil Sans Bold', sans-serif;
  font-size: 2em;
  color: #021d49;
  text-align: center;
  margin-bottom: 30px;
}

.bg-light {
  background: #f7f7f7;
}

/* SERVIÇOS - CARTÕES COM IMAGENS E FUNDOS ALTERNADOS */
.servico-item {
  padding: 30px;
  margin-bottom: 50px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: 3px solid #003595;
  transition: transform 0.3s ease;
}

.servico-item:hover {
  transform: translateY(-5px);
}

.servico-item.alt {
  background: #e6ecf7;
}

.servico-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.servico-text,
.servico-image {
  flex: 1 1 48%;
}

.servico-image img {
  max-width: 90%;
  max-height: 300px;
  width: auto;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 10px;
  object-fit: contain;
}

.servico-text h3 {
  font-family: 'Gil Sans Bold', sans-serif;
  font-size: 1.6em;
  color: #021d49;
  margin-bottom: 10px;
}

.servico-text p {
  margin-bottom: 10px;
  color: #333;
}

.servico-text .normas {
  font-size: 1.05em;
  color: #555;
}

.saibamais {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #003595;
  font-family: 'Gil Sans Bold', sans-serif;
  padding: 8px 16px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.saibamais:hover {
  background: #021d49;
}

.servico-item.alt .servico-content {
  flex-direction: row-reverse;
}

/* SEÇÃO CLIENTES - CARROSSEL */
/* SEÇÃO CLIENTES - CARROSSEL */
#clientes h2 {
  margin-bottom: 30px;
  text-align: center;
  font-family: 'Gil Sans Bold', sans-serif;
  color: #021d49;
}

/* Carrossel ocupa 50% da tela e é centralizado */
/* SEÇÃO CLIENTES - CARROSSEL */
#clientes h2 {
  margin-bottom: 30px;
  text-align: center;
  font-family: 'Gil Sans Bold', sans-serif;
  color: #021d49;
}

/* O carrossel ocupa 50% da tela e é centralizado */
.carousel {
  width: 50%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

/* O track é um flex container com gap entre itens */
.carousel-track {
  display: flex;
  gap: 30px;
}

/* Cada item tem tamanho fixo (ajuste conforme necessário) */
.carousel-item {
  flex: 0 0 auto;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item img {
  max-width: 100%;
  display: block;
  filter: brightness(0.9);
}



/* QUEM SOMOS / MISSÃO, VISÃO, VALORES */
#quemsomos .info {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}

#quemsomos .info > div {
  flex: 1 1 300px;
  padding: 15px;
}

#quemsomos h3 {
  font-family: 'Gil Sans Bold', sans-serif;
  font-size: 1.4em;
  color: #021d49;
  margin-bottom: 8px;
}

#quemsomos ul {
  list-style: disc;
  margin-left: 20px;
}

/* BENEFÍCIOS */
.beneficios-list {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}

.beneficio {
  flex: 1 1 260px;
  background: #fff;
  padding: 20px;
  border: 3px solid #003595;
  border-radius: 10px;
  text-align: center;
  transition: box-shadow 0.3s ease;
}

.beneficio:hover {
  box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.beneficio h3 {
  font-family: 'Gil Sans Bold', sans-serif;
  font-size: 1.4em;
  color: #021d49;
  margin-bottom: 10px;
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 10px;
  }
  
  .logo-contact {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }
  
  .servico-content {
    flex-direction: column;
  }
  
  .servico-text, .servico-image {
    flex: 1 1 100%;
    margin-bottom: 15px;
  }
  
  .servico-image img {
    width: 100%;
    max-width: none;
  }
  
  #quemsomos .info,
  .beneficios-list {
    flex-direction: column;
    align-items: center;
  }
}

.formbtn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: #003595;
  font-family: 'Gil Sans Bold', sans-serif;
  padding: 8px 16px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.formbtn:hover {
  background: #021d49;
}

.card-beneficio {
  width: 280px;
  height: 200px;
  perspective: 1000px;
  position: relative;
}

.card-beneficio div {
  width: 100%;
  height: 100%;
  background: #f7f7f7;
  border: 3px solid #003595;
  border-radius: 10px;
  padding: 20px;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  transition: transform 0.6s ease, background 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.card-beneficio .card-front {
  z-index: 2;
  background: #f7f7f7;
}

.card-beneficio .card-back {
  background: #003595;
  color: #fff;
  transform: rotateY(180deg);
}

.card-beneficio:hover .card-front {
  transform: rotateY(180deg);
}

.card-beneficio:hover .card-back {
  transform: rotateY(0deg);
}

.carrossel-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  aspect-ratio: 3 / 2; /* mudou de 16/9 para 3/2 */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: #f8f8f8;
}

.carrossel-slides {
  display: flex;
  width: 100%;
  height: 100%;
  animation: slide 25s infinite;
}

.carrossel-slides img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* ou contain se quiser mostrar tudo */
  object-position: center;
  flex-shrink: 0;
}

/* Keyframes para o autoplay */
@keyframes slide {
  0%    { transform: translateX(0%);   }
  20%   { transform: translateX(0%);   }
  25%   { transform: translateX(-100%); }
  45%   { transform: translateX(-100%); }
  50%   { transform: translateX(-200%); }
  70%   { transform: translateX(-200%); }
  75%   { transform: translateX(-300%); }
  95%   { transform: translateX(-300%); }
  100%  { transform: translateX(0%);   }
}

footer {
  background: #021d49;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  font-size: 1.05em;
}
