/* Estilos Gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  font-family: "Lato", sans-serif;
  scroll-behavior: smooth;
  color: #333;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Menu de Navegação */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000; /* Garantir que o nav fique acima de outros elementos */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

/* Logo no navbar */
nav .logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
}

nav .nav-links {
  list-style: none;
  display: flex;
}

nav .nav-links li {
  margin: 0 15px;
  position: relative;
}

nav .nav-links li a {
  color: #fff;
  font-size: 1.2em;
  text-transform: uppercase;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

nav .nav-links li a:hover {
  color: #64b5f6;
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  transition: all 0.3s ease;
}

.dropdown-toggle i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
  border: 1px solid #e0e0e0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  border-bottom: 1px solid #f0f0f0;
  margin: 0;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #333 !important;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  text-transform: none;
}

.dropdown-menu a:hover {
  background: #f8f9fa;
  color: #007bff !important;
  padding-left: 25px;
}

/* Estilo para links externos */
.dropdown-menu a[target="_blank"]::after {
  content: " ↗";
  font-size: 12px;
  opacity: 0.7;
  margin-left: 5px;
}

nav .burger {
  display: none;
  cursor: pointer;
}

nav .burger div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px;
  transition: all 0.3s ease;
}

/* Espaço para o menu fixo */
body {
  padding-top: 70px; /* Ajuste conforme a altura do nav */
}

/* Slider Inicial */
header {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px); /* Ocupa a tela inteira menos a altura do nav */
  overflow: hidden;
}



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

.slide {
  width: 100%;
  height: 100%;
  position: absolute;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-indent: -9999px; /* deixa o texto acessível para leitores de tela, mas invisível */
    z-index: 10;
}

.slide.current {
  opacity: 1;
}

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

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  padding: 0 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  max-width: 80%; /* Evita que o conteúdo se estenda demais */
}

.slide-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.slide-content p {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.slide-content .cta {
  padding: 15px 30px;
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.slide-content .cta:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Classe específica para CTAs no desktop */
.desktop-cta {
  display: inline-block;
  /* Mantém o estilo do CTA */
}

/* Botões de Navegação do Slider */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2em;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  cursor: pointer;
  user-select: none;
  z-index: 1001; /* Garantir que os botões fiquem acima do slider */
}

.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* Botões de Navegação entre Blocos */
.block-navigation {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.block-navigation button {
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  margin: 5px 0;
  padding: 10px;
  font-size: 1em;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.block-navigation button:hover {
  background-color: rgba(0, 0, 0, 1);
}

/* Bloco de Notícias */
.bloco-noticias {
  background-color: #ecf0f1;
  padding: 50px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.bloco-noticias h1 {
  margin-bottom: 40px;
  font-size: 2.5em;
  color: #2c3e50;
}

.mini-blocos {
  display: flex;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-around;
}

.mini-bloco {
  background-color: #fff;
  width: 30%;
  margin: 10px;
  text-align: center;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s; /* Adiciona transições */
}

.mini-bloco:hover {
  transform: translateY(-5px); /* Efeito de elevação */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Sombra mais intensa */
}

.mini-bloco img {
  width: 100%;
  height: auto;
  border: 2px solid black;
  transition: border-color 0.3s;
}

.mini-bloco img:hover {
  border-color: white;
}

.mini-bloco h3 {
  margin: 20px 0 10px;
  color: #2c3e50;
}

.mini-bloco p {
  margin-bottom: 20px;
  color: #2c3e50;
}

.mini-bloco .cta {
  padding: 10px 60px;
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.mini-bloco .cta:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Blocos de Conteúdo */
.bloco {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  color: #fff;
  text-align: center;
  background-attachment: fixed;
  background-size: cover;
}

.bloco-azul-escuro {
  background-image: url("img/background_bloco2.jpg");
}

.bloco-cinza {
  background-image: url("img/background_noticias.jpg");
  color: #333;
}

.bloco-noticias {
  background-image: url("img/background_noticias.jpg");
  color: #333;
}

.conteudo {
  display: flex;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
}

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

.imagem,
.texto {
  flex: 1;
  min-width: 300px;
}

.imagem img {
  width: 100%;
  height: auto;
  border: 2px solid black;
  transition: border-color 0.3s;
}

.imagem img:hover {
  border-color: white;
}

.texto {
  padding: 20px;
}

.texto h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.texto p {
  font-size: 1.2em;
  margin-bottom: 20px;
  line-height: 1.5;
}

.texto .cta {
  display: inline-block;
  padding: 15px 30px;
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s;
  font-size: 0.9em;
}

.texto .cta:hover {
  background-color: #0056b3;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Rodapé */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

/* Responsividade */
@media (max-width: 1024px) {
  nav .nav-links li a {
    font-size: 1em;
  }

  .mini-bloco {
    width: 45%;
  }

  .block-navigation {
    display: none;
  }

  .logo-img {
    height: 40px;
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  /* Ajustes Gerais para Mobile */
  body {
    margin: 0;
    padding: 0;
  }

  /* Logo responsiva mobile */
  .logo-img {
    height: 35px;
    max-width: 180px;
  }

  /* Dropdown mobile functionality */
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-radius: 0;
  }

  .dropdown:hover .dropdown-menu,
  .dropdown.active .dropdown-menu {
    max-height: 300px;
  }

  .dropdown-menu a {
    padding-left: 40px !important;
    color: white !important;
    font-size: 16px;
  }

  .dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    padding-left: 45px !important;
    color: #64b5f6 !important;
  }

  /* Ajustes no Slider para Mobile */
  header {
    height: 100vh; /* Garante que o header ocupe toda a altura da tela */
  }

  .slider {
    height: 100%;
  }

  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease-in-out;
  }

  .slide.current {
    opacity: 1;
    z-index: 1;
  }

  .slide img {
    height: 50vh; /* Ocupa apenas metade da altura da viewport */
    width: 100%;
    object-fit: cover;
  }

  /* Estilização do Link Mobile */
  .slide-link.mobile-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
    background: rgba(0, 0, 0, 0); /* Transparente */
    display: block;
  }

  /* Oculta CTAs no mobile */
  .desktop-cta {
    display: none;
  }

  /* Ajusta o tamanho do conteúdo do slide */
  .slide-content {
    position: absolute; /* Posicionamento absoluto para sobrepor a imagem */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    max-width: 90%; /* Garante que o conteúdo não exceda a largura */
    margin-top: 0; /* Remove margens para evitar deslocamentos */
  }

  /* Ajusta os tamanhos das fontes */
  .slide-content h1 {
    font-size: 1.5em; /* Reduzido de 3em para evitar exceder a altura */
  }

  .slide-content p {
    font-size: 0.9em; /* Reduzido de 1.5em para melhor legibilidade */
    line-height: 1.2; /* Reduzir espaçamento entre linhas */
  }

  .slide-content .cta {
    padding: 8px 20px;
    font-size: 0.8em;
  }

  /* Garantir que o header, slider e slides não excedam a viewport */
  header,
  .slider,
  .slide,
  .slide img,
  .slide-content {
    box-sizing: border-box;
  }

  /* Evitar overflow */
  .slide-content,
  .slide-link.mobile-link {
    overflow: hidden;
  }

  /* Menu Responsivo */
  nav .nav-links {
    position: absolute;
    right: 0;
    height: 100vh;
    top: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 60%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in;
  }

  nav .nav-links li {
    opacity: 0;
  }

  nav.active .nav-links {
    transform: translateX(0%);
  }

  nav.active .nav-links li {
    opacity: 1;
    transition: opacity 0.5s ease-in;
  }

  nav .burger {
    display: block;
  }

  /* Ajustes adicionais para garantir que os elementos não causem overflow */
  .mini-blocos {
    flex-direction: column;
    align-items: center;
  }

  .mini-bloco {
    width: 80%;
    margin: 10px 0;
  }
}

/* Animação do Menu */
@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.burger.toggle .linha1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle .linha2 {
  opacity: 0;
}

.burger.toggle .linha3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Animações suaves para navegação */
.nav-links li {
  transition: all 0.3s ease;
}

.nav-links li:hover {
  transform: translateY(-2px);
}

.msd-footer {
  background-color: #020743;
  color: #ffffff;
  padding: 3rem 0;
  font-family: "Lato", sans-serif;
}

.msd-footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.msd-footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.msd-footer-logo,
.msd-footer-links,
.msd-footer-contact,
.msd-footer-social {
  flex: 1;
  min-width: 200px;
  margin-bottom: 1rem;
}

.msd-footer-logo-img {
  max-width: 220px;
  margin-bottom: 1rem;
}

.msd-footer h3 {
  color: #64b5f6;
  margin-bottom: 1rem;
}

.msd-footer ul {
  list-style: none;
  padding: 0;
}

.msd-footer ul li {
  margin-bottom: 0.5rem;
}

.msd-footer a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.msd-footer a:hover {
  color: #64b5f6;
}

.msd-social-icons {
  display: block;
  gap: 1rem;
}

.msd-social-icons a {
  font-size: 1.5rem;
  text-align: right;
}

.msd-footer-branches {
  margin-bottom: 2rem;
}

.msd-branches-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.msd-branch {
  flex: 1;
  min-width: 200px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 5px;
}

.msd-branch h4 {
  color: #64b5f6;
  margin-bottom: 0.5rem;
}

.msd-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.msd-footer-legal {
  display: flex;
  gap: 1rem;
}

@media (max-width: 768px) {
  .msd-footer-main,
  .msd-branches-list {
    flex-direction: column;
  }

  .msd-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .msd-footer-legal {
    margin-top: 1rem;
  }
}
