/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  background-color: #f9f9f9;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* Cabeçalho */

.banner {
  margin-top: 80px;
}

header {
  background-color: #002b5c;
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
}

.header-ref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 40px;
}

.logo-ref {
  max-height: 90px;
  height: auto;
}

.menu-ref {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu-ref li a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

.menu-ref li a:hover {
  color: #00aaff;
}


/* Destaques */
.destaques {
  background-color: #002b5c;
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.destaques h3 {
  font-size: 28px;
  margin-bottom: 30px;
}

.numeros {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.numeros li {
  font-size: 20px;
  list-style: none;
}

/* Rodapé */
footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
}

/* menu areas */
.menu-user a {
  display: flex;
  align-items: center;
  height: 100%;
}

.menu-user i {
  font-size: 18px;
  color: #fff;
}

.menu-user {
  display: flex;
  align-items: center;
  position: relative;
  padding: 0 15px;
  height: 100%;
}

.submenu-user {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background-color: #333;
  border-radius: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 160px; /* largura mínima para evitar quebra */
  white-space: nowrap; /* impede quebra de linha */
  z-index: 1000;
}
.submenu-user li a {
  display: block;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}
.submenu-user li a:hover {
  background-color: #555;
}

/* Classe para mostrar o submenu */
.menu-user.active .submenu-user {
  display: block;
}

/* Carrossel adaptado para imagens 1280×320 (proporção 4:1) */
.banner-carousel {
  width: 100%;

  overflow: hidden;
  position: relative;
  margin-top: 80px; /* espaço abaixo do cabeçalho fixo */
  background-color: #000; /* fundo neutro para transição */
}

.banner-track {
  display: flex;
  width: 300%; /* 3 imagens = 300% */
  height: 100%;
  animation: scrollBanner 30s ease-in-out infinite;
}

.banner-item {
  flex: 0 0 100%;
  height: 100%;
}

.banner-item img {
  object-fit: cover;
  background-color: #000; /* opcional: evita fundo branco */
}

/* Animação suave com pausa de 5s por imagem */
@keyframes scrollBanner {
  0%, 33.33%   { transform: translateX(0); }
  33.34%, 66.66% { transform: translateX(-100%); }
  66.67%, 100%  { transform: translateX(-200%); }
}


/* botoes abaixo do carousel */

.servicos-eletricos {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.servicos-eletricos h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}

.servicos-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.servico {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servico:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.icone img {
  width: 48px;
  height: auto;
  margin-bottom: 20px;
}

.servico h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: #0073e6;
}

.servico p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 20px;
}

.btn-saiba-mais {
  display: inline-block;
  padding: 10px 18px;
  background-color: #0073e6;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-saiba-mais:hover {
  background-color: #005bb5;
}

.servico img.servico-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* testemunhos  */
.testemunhos {
  background-color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.testemunhos h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carrossel-testemunhos {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  height: auto;
}

.testemunho {
  display: none;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
  padding: 0 20px;
}

.testemunho.ativo {
  display: block;
}

.testemunho .autor {
  display: block;
  margin-top: 20px;
  font-weight: 500;
  color: #0073e6;
  font-style: normal;
}

/* fale conosco  */
.contato-institucional {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.contato-institucional h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contato-institucional .descricao {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.blocos-contato {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.bloco {
  max-width: 300px;
  text-align: center;
  flex: 1 1 280px;
}

.icone-bloco {
  width: 40px;
  height: auto;
  margin: 0 auto 15px;
  display: block;
}

.bloco h3 {
  font-size: 1.2rem;
  color: #0073e6;
  margin-bottom: 10px;
}

.bloco p {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}

.bloco a {
  color: #0073e6;
  text-decoration: none;
}

.bloco a:hover {
  text-decoration: underline;
}

/* Animação de entrada */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.bloco {
  max-width: 300px;
  text-align: center;
  flex: 1 1 280px;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.bloco:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.blocos-contato .bloco:nth-child(1) {
  animation-delay: 0.2s;
}
.blocos-contato .bloco:nth-child(2) {
  animation-delay: 0.4s;
}
.blocos-contato .bloco:nth-child(3) {
  animation-delay: 0.6s;
}


/* PAGINA SERVIÇOS */

.menu-ref a.ativo {
  color: #0073e6;
  font-weight: bold;
}
.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  padding: 10px 0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  min-width: 180px;
  z-index: 10;
}

.submenu li {
  padding: 8px 20px;
}

.submenu li a {
  color: #333;
  font-size: 15px;
  display: block;
  text-decoration: none;
}

.submenu li a:hover {
  color: #0073e6;
}

.has-submenu:hover .submenu {
  display: block;
}

.pagina-servico {
  padding: 60px 20px;
  background-color: #fff;
  text-align: left;
}

.pagina-servico h1 {
  font-size: 2rem;
  color: #0073e6;
  margin-bottom: 20px;
}

.pagina-servico p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 30px;
  line-height: 1.6;
}

.lista-servico {
  list-style: disc;
  padding-left: 20px;
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}


.modal-conteudo {
  background-color: #fff;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  border-radius: 10px;
  position: relative;
  animation: fadeIn 0.4s ease;
}

.fechar-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

.carrossel {
  display: flex;
  overflow: hidden;
  position: relative;
  height: 400px;
}

.carrossel-img {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.carrossel-img.ativo {
  display: block;
}

/* Animação */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* Pagina sobre*/

.sobre-nos {
  padding: 80px 20px;
  background-color: #f9f9f9;
  color: #333;
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  margin: auto;
}

.sobre-texto h1 {
  font-size: 2.8rem;
  color: #0073e6;
  margin-bottom: 30px;
  text-align: center; /* Centraliza o título */
}

.sobre-texto p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
  
}

.sobre-icones {
  display: flex;
  flex-direction: column;
  gap: 25px;
  justify-content: center;
}

.icone-item {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.icone-item i {
  font-size: 2rem;
  color: #0073e6;
  margin-bottom: 10px;
  display: block;
}

.icone-item strong {
  font-size: 2rem;
  color: #0073e6;
  display: block;
  margin-bottom: 5px;
}

.icone-item span {
  font-size: 1rem;
  color: #555;
}
.sidebar a:hover {
  text-decoration: underline;
  color: #ffd700;
}