/* ======================
   ESTILO GLOBAL
====================== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f2f2f2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ======================
   TOPO / HEADER
====================== */
.topo {
    background: #ffffff;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.container-topo {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center; /* centraliza verticalmente logo e título */
    justify-content: flex-start; /* deixa tudo começando da esquerda */
    gap: 15px; /* controla a distância entre logo e título */
}

.logo img {
    display: block;
    max-height: 120px;
    height: auto;
    width: auto;
    margin-right: 10px; /* reduz distância extra da logo */
}

.titulo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 22px;
    font-weight: bold;
    color: #003f7d;
    margin: 0; /* remove margens padrão */
}

/* Reduz espaço extra entre h3 e h1 */
.titulo h3,
.titulo h1 {
    margin: 0;
}


/* ======================
   BUSCA
====================== */
.busca-redes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* Esta linha empurra todo o bloco para a direita */
    margin-left: auto;
    margin-right: 20px; /* distância da borda direita */
    width: max-content;  /* evita que ocupe toda a largura */
}

.campo-busca {
    display: flex;
    align-items: center;
    gap: 5px;
}

.campo-busca input {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 250px;
}

.campo-busca button {
    padding: 5px 10px;
    border-radius: 5px;
    background: #23408e;
    color: white;
    border: none;
    cursor: pointer;
}

.redes-sociais {
    display: flex;
    gap: 10px;
    align-items: center;
}

.redes-sociais img {
    width: 28px;
    height: 28px;
    cursor: pointer;
}


/* ======================
   MENU PRINCIPAL
====================== */
.menu {
    background: linear-gradient(to right, #ff8500, #ffffff, #4169e1);
    position: relative;
    z-index: 1050; /* Z-INDEX ALTO: Deve ficar acima de tudo (incluindo carrossel) */
    margin-bottom: 0 !important; /* Remove qualquer margem abaixo do menu */
    padding-bottom: 0 !important; /* Remove qualquer padding abaixo do menu */
}

.menu > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    gap: 20px;
}

.menu > ul > li {
    position: relative;
}

.menu > ul > li > a {
    display: inline-block;
    padding: 16px 12px;
    font-weight: bold;
    color: #003f7d;
    position: relative;
}

.menu > ul > li > a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 6px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: width 0.3s ease-in-out;
}

.menu > ul > li:hover > a::after {
    width: 100%;
}

/* SUBMENU */
.menu .submenu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: #f78001f3;
    border-radius: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 5000; /* Z-INDEX AINDA MAIOR que o menu principal */
}

.menu .submenu ul li a {
    display: block;
    padding: 10px 15px;
    color: #003f7d;
    font-weight: normal;
}

.menu .submenu ul li a:hover {
    background: #2688f8;
    color: white;
}

.menu .submenu:hover ul {
    display: block;
}

.menu .submenu ul li a::after {
    content: none !important;
}



/* ======================
   BANNER / CARROSSEL
====================== */
.banner-img {
    width: 100%;
    height: auto;
    max-height: 40vh;
    object-fit: cover;
}

/* AJUSTE NOVO PARA GARANTIR QUE AS SETAS DO CARROSSEL APAREÇAM */
.carousel-control-prev,
.carousel-control-next {
    z-index: 900; /* Menor que o Menu (1050), mas maior que a imagem do banner */
}

#carouselHome {
    margin-top: 0 !important; /* Força a remoção de qualquer margem superior */
}


/* ======================
   CARDS / SERVIÇOS / NOTÍCIAS
====================== */
.cards, #servicos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
}

.service-card, .news-card, .card {
    background: #fff;
    border: 1px solid #B2E2F2;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(178, 226, 242, 0.3);
    padding: 20px;
    flex: 1 1 220px;
    max-width: 250px;
    height: 250px; /* todos quadrados */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
}

.service-card:hover, .card:hover {
    transform: scale(1.05);
    background: #f1f1f1;
}

.service-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/* ======================
   RODAPÉ
====================== */
.rodape-laranja {
   background: linear-gradient(to right, #ff8500, #ffffff, #4169e1);
    color: #0a4f9c;
    text-align: center;
    padding: 20px 0;
}

/* ======================
   SEÇÕES
====================== */
.descricao, .melhorias {
    width: 95%;
    max-width: 1100px;
    margin: 40px auto;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: justify;
}

.descricao h2, .melhorias h2 {
    color: #004aad;
    margin-bottom: 20px;
}

.imagem-centro {
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 20px auto;
    border-radius: 10px;
}

.marcado {
    background: yellow;
    padding: 2px;
    border-radius: 3px;
}

/* ======================
   OBRAS
====================== */

.galeria-obras {
    display: grid;
    /* Cria colunas responsivas: mínimo 250px, máximo 1 fração do espaço */
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.obra-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    height: 250px; /* Altura fixa para manter a simetria */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.obra-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Faz a imagem preencher o espaço sem distorcer */
    transition: transform 0.5s ease;
}

/* Efeito de Overlay (Camada escura ao passar o mouse) */
.obra-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fundo preto transparente */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.obra-overlay span {
    color: white;
    font-weight: bold;
    border: 2px solid white;
    padding: 8px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* Efeitos de Hover (Ao passar o mouse) */
.obra-item:hover {
    transform: translateY(-5px); /* Sobe um pouquinho */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.obra-item:hover img {
    transform: scale(1.1); /* Zoom na imagem */
}

.obra-item:hover .obra-overlay {
    opacity: 1; /* Mostra o texto/botão */
}

/* Ajuste para celulares pequenos */
@media (max-width: 480px) {
    .galeria-obras {
        grid-template-columns: 1fr; /* Uma coluna apenas no celular */
    }
}

/* ======================
   youtube
====================== */


  .canal-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 15px;
  }

  .canal-link {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
  }

  .canal-link:hover {
    transform: scale(1.02);
  }

  .canal-banner {
    width: 100%;
    height: 250px;
    /* Imagem de fundo padrão do YouTube (Capa do canal) */
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('imagens/ponte.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #222;
  }

  /* Botão de Play Central */
  .play-button {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    position: relative;
    margin-bottom: 15px;
  }

  .play-button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent #fff;
  }

  .view-text {
    color: #fff;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
  }

  /* Ajuste para Mobile */
  @media (max-width: 600px) {
    .canal-banner {
      height: 180px;
    }
    .view-text {
      font-size: 1rem;
    }
    .play-button {
      width: 60px;
      height: 60px;
    }
  }

  /* ======================
   tempo
====================== */

.weather-bar {
  /* Degradê linear: Azul escuro -> Branco -> Laranja */
  background: linear-gradient(90deg,  #f97316 0%, #ffffff 50%, #1e3a8a 100%);
  
  /* Mudamos a cor do texto para um cinza escuro para dar leitura sobre o branco */
  color: #333; 
  padding: 12px;
  text-align: center;
  font-family: sans-serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Sombra leve para destacar a barra */
}

.weather-bar img {
  width: 35px;
  height: 35px;
  /* Filtro opcional para dar destaque ao ícone caso ele seja muito claro */
  filter: drop-shadow(1px 1px 1px rgba(0,0,0,0.2));
}

/* Ajustamos o divisor para aparecer melhor no fundo claro */
.divider { 
  color: #bbb; 
  font-weight: bold;
}

/* Destaque para o nome da cidade e temperatura */
#weather-city {
  font-weight: bold;
  color: #1e3a8a; /* Azul no texto da esquerda */
}

#weather-temp {
  font-weight: bold;
  color: #c2410c; /* Tom de laranja mais escuro para o texto da direita */
}

/* Adaptabilidade para celular */
@media (max-width: 600px) {
  .weather-bar { 
    font-size: 12px; 
    flex-wrap: wrap;
    background: linear-gradient(180deg, #1e3a8a 0%, #ffffff 50%, #f97316 100%); /* No celular o degrade fica melhor vertical */
  }
}

#weather-desc {
  color: #1e3a8a; /* O mesmo azul escuro do início do seu degradê */
  font-weight: bold;
  text-transform: capitalize; /* Deixa a primeira letra maiúscula (ex: Chuva leve) */
}

#weather-day, #weather-desc, #weather-city {
    color: #1e3a8a; /* O azul que você escolheu */
    font-weight: bold;
}

#weather-day {
    text-transform: capitalize;
}