/* RESET E BASE */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fff;
  margin: 0;
}

/* LOGO */
.logo-area img {
  height: 60px;
  position: absolute;
  bottom: -25px;
  left: 15px;
  transition: transform 0.3s ease;
}

/* ===== MENU TOP ===== */
.menu-topo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(to right, #022957, #0077ff);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  z-index: 1000;
}

/* Ícone mobile */
.menu-mobile {
  display: none;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 1100;
}

/* Navegação desktop */
.botoes-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #fff;
}

.menu-toggle {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  transition: color 0.2s;
}

.menu-toggle:hover {
  color: #ffe100;
}

.menu-item {
  position: relative;
}

/* Submenu desktop */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  min-width: 200px;
  z-index: 9999;
}

.menu-item:hover .submenu {
  display: block;
}

.submenu a {
  display: block;
  padding: 8px 15px;
  color: #022957;
  font-size: 12px;
  text-decoration: none;
}

.submenu a:hover {
  background: #0077ff;
  color: #fff;
}

/* Fechar no mobile */
.fechar-menu {
  display: none;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* Menu ativo (mobile) */
.botoes-menu.ativo {
  left: 0;
}

/* AJUSTE DO CONTEÚDO */
main {
  margin: 55px 0 0 0;
  transition: margin-top 0.3s;
}

/* BARRA DE PESQUISA */
.barra-pesquisa {
  position: relative;
  max-width: 250px;
  z-index: 1001;
}

.barra-pesquisa form {
  display: flex;
  width: 100%;
  background: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.barra-pesquisa input {
  flex: 1;
  border: none;
  border-radius: 5px;
  padding: 10px 15px;
  font-size: 12px;
  outline: none;
  
}

.barra-pesquisa button {
  background: transparent;
  border: none;
  color: #00619c;
  padding: 0 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.barra-pesquisa button:hover {
  border: solid 1px #00619c;
  border-radius: 5px;
}

/* BANNER ROTATIVO */
/* BANNER */
.b {
  position: relative;
  margin: 0 15px;
  width: calc(100% - 30px);
  height: 300px;
  overflow: hidden;
  border-radius: 1px 15px 15px 15px;
  z-index: 1;
}

.b .slide {
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-position: right bottom;
  background-size:cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
  align-items: stretch;

}

.b .slide.ativo {
  opacity: 1;
  z-index: 1;
}

.b .slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(0,85,188,0.2),hsla(7, 66%, 56%, 0.3) 0%);
}

.b .slide .texto {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 50%;
  max-width: 800px !important;
  height: auto;
  text-align: center;
  background: hsla(0, 2%, 10%, 0.4);
  padding: 0 25px;
  margin: 0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;    /* empilha h1, p, botão etc */
  justify-content: center;   /* centraliza verticalmente */
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.b .slide .texto h1 {
  font-size: 26px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin: 0;
}

.b .slide .texto p {
  font-size: 15px;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 25px;
  background: linear-gradient(to bottom, #E4533B, #8b200d);
  color: #fff;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.3s ease;
  box-shadow: 0 3px 8px rgba(34, 35, 37, 0.9);
  font-size: 13px;
}

.cta-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(to bottom, #0063dd, #0044a3);
  color: #ffd000;
}

.ia-section {
  background: linear-gradient(to bottom, #f8faff, #e6efff);
  margin: 30px 0;
  padding: 0 15px;
  text-align: center;
  color: rgb(102, 101, 101);
}
.ia-container {
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  padding: 5px 25px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.ia-container h2, p {
  margin: 10px;
}
#ia-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px;
}
#ia-pergunta {
  flex: 1;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
#ia-form button {
  background: linear-gradient(to bottom, #0077ff, #0055bc);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
}
#ia-resposta {
  margin-top: 20px;
  text-align: left;
  color: #333;
  font-size: 15px;
  line-height: 1.4;
}
.loading { color: #0055bc; font-weight: bold; }
#ia-resposta {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 15px;
  max-height: 400px;
  overflow-y: auto;
}
.user-msg, .ia-msg {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
}
.user-msg {
  background: #e7f0ff;
  color: #022957;
}
.ia-msg {
  background: #fff;
  border: 1px solid #dce3f3;
  color: #333;
}
.erro { color: red; }

/* === MENU MOBILE === */
.menu-mobile {
  display: none;
  font-size: 26px;
  color: white;
  cursor: pointer;
  z-index: 1100;
}

.fechar-menu {
  display: none;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: white;
  cursor: pointer;
}

/* Estado aberto */
.botoes-menu.ativo {
  left: 0;
}
.atalhos-section {
  padding: 15px;
  text-align: center;
  background: #f7f9fc;
  font-family: 'Montserrat', sans-serif;
}

.atalhos-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.atalho {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(to top, #034c9f, #0077ff);
  border-radius: 10px;
  padding: 10px 15px;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.atalho:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.atalho i {
  font-size: 18px;
  color: white;
}

.atalho span {
  font-size: 12px;
  font-weight: 500;
}

/* === MOBILE AJUSTADO === */
@media (max-width: 768px) {

  .menu-mobile {
    display: block;
    z-index: 1200;
  }

  .botoes-menu {
    position: fixed;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: linear-gradient(to bottom, #012045, #0048a4);
    padding: 70px 20px 30px 20px;
    gap: 12px;
    transition: left 0.3s ease;
    box-shadow: 3px 0 8px rgba(0,0,0,0.5);
    overflow-y: auto;
  }

  .botoes-menu.ativo { left: 0; }

  .fechar-menu {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    color: #fff;
    cursor: pointer;
    z-index: 1201;
  }

  .menu-item { width: 100%; }

  .menu-toggle {
    display: block;
    width: 100%;
    color: #fff;
    font-size: 15px;
    padding: 12px 15px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
  }

  .menu-toggle::after {
    content: "▾";
    position: absolute;
    right: 15px;
    font-size: 15px;
    opacity: 0.8;
  }

  .menu-toggle:hover {
    background: rgba(255,255,255,0.18);
  }

  /* Submenus expansíveis corrigidos */
  .submenu {
    display: none;
    position: static !important; /* remove posicionamento absoluto herdado */
    flex-direction: column;
    background: rgba(255,255,255,0.05);
    border-radius: 5px;
    margin: 5px 0 10px;
    padding: 5px 10px;
  }

  .submenu.ativo {
    display: flex;
  }

  .submenu a {
    color: #eaeaea;
    font-size: 14px;
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
  }

  .submenu a:hover {
    background: rgba(255,255,255,0.15);
    color: #ffe100;
  }

  .barra-pesquisa { display: none; }

  .logo-area img {
    position: relative;
    height: 45px;
    bottom: auto;
  }

  .banner-rotativo { height: 200px; }
  .banner-rotativo .texto {
    text-align: center;
    margin: 0 20px;
  }

  .b .slide .texto {
  background: hsla(0, 2%, 10%, 0.6);
  width: 100%;
  
}

.b .slide .texto h1 {
  font-size: 26px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin: 0;
}

.b .slide .texto p {
  font-size: 15px;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.cta-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 25px;
  background: linear-gradient(to bottom, #E4533B, #8b200d);
  color: #fff;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.3s ease;
  box-shadow: 0 3px 8px rgba(34, 35, 37, 0.9);
  font-size: 13px;
}

.cta-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(to bottom, #0063dd, #0044a3);
  color: #ffd000;
}
#ia-pergunta {
 font-size: 16px;
}

.ia-container {
  padding: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#ia-resposta {
  margin-top: 20px;
  text-align: left;
  color: #333;
  font-size: 15px;
  line-height: 1.4;
}
.loading { color: #0055bc; font-weight: bold; }
#ia-resposta {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 15px;
  
  overflow-y: auto;
}
.user-msg, .ia-msg {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 8px;
}
.user-msg {
  background: #e7f0ff;
  color: #022957;
}
.ia-msg {
  background: #fff;
  border: 1px solid #dce3f3;
  color: #333;
}
.erro { color: red; }

}

