/* Reset e base */
*{

  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f5f6fa;
  color: #222;
}

/* Container principal */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px;
}

/* Banner topo */
.banner-top {
  background: linear-gradient(90deg, #263159 70%, #5164c7 100%);
  color: #fff;
  padding: 42px 8px 26px 8px;
  text-align: center;
  border-radius: 0 0 22px 22px;
  margin-bottom: 12px;
}
.banner-top h1 {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.18em;
}
.banner-top p {
  font-size: 1.13em;
  margin-bottom: 16px;
  line-height: 1.5em;
}
.banner-top .cta-btn {
  background: #ffbb00;
  color: #263159;
  font-weight: bold;
  font-size: 1.08em;
  padding: 10px 30px;
  border-radius: 32px;
  text-decoration: none;
  box-shadow: 0 2px 12px #0002;
  transition: background 0.2s;
  border: none;
  display: inline-block;
  margin-top: 12px;
  cursor: pointer;
}
.banner-top .cta-btn:hover {
  background: #ffd966;
}

/* Menu fixo (header) */
header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #263159;
  padding: 0;
  margin-bottom: 0;
  box-shadow: 0 4px 12px #0002;
}
header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
}
header nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  margin-right: 22px;
  font-size: 1.02em;
  transition: color 0.15s;
}
header nav a:hover {
  color: #ffbb00;
}
header nav .logo-site {
  font-weight: bold;
  font-size: 1.18em;
  letter-spacing: 1.5px;
  color: #ffbb00;
  margin-right: 32px;
}

@media (max-width: 900px) {
  header nav { flex-direction: column; gap: 7px;}
}

/* Cards em colunas */
.categorias {
  display: flex;
  gap: 24px;
  margin-bottom: 28px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.categoria-col {
  flex: 1 1 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px #0001;
  padding: 24px 12px 18px 12px;
  min-width: 250px;
}
.categoria-col h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.18em;
  letter-spacing: 1.5px;
  color: #5164c7;
  text-transform: uppercase;
  font-weight: bold;
}

.card-acao, .card-fii, .card-bdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f6fa;
  border-radius: 10px;
  margin-bottom: 10px;
  padding: 10px 14px;
  box-shadow: 0 2px 4px #0001;
  transition: box-shadow 0.2s;
}
.card-acao:hover, .card-fii:hover, .card-bdr:hover {
  box-shadow: 0 4px 14px #0002;
}

.logo-acao {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-right: 10px;
  object-fit:cover;
  border: 2px solid #5164c7;
  background: #fff;
  display:inline-block;
}
.sigla {
  font-size: 1.13em;
  font-weight: bold;
  margin-right: 6px;
  min-width: 48px;
  text-align: center;
  letter-spacing:1px;
}
.seta-up { color: #16a34a; font-weight:bold; font-size: 1.2em;}
.seta-down { color: #c1121f; font-weight:bold; font-size: 1.2em;}
.porcent { font-weight: bold; font-size: 1.09em; margin: 0 5px;}
.valor-atual { font-size: 1em; color: #263159; font-weight: bold;}

/* Responsividade dos cards */
@media (max-width: 900px) {
  .categorias { flex-direction: column; gap: 18px;}
  .categoria-col { min-width: unset; width: 100%; padding: 18px 6px 12px 6px;}
}
@media (max-width: 600px) {
  .banner-top h1 { font-size: 1.15em;}
  .banner-top p { font-size: 0.98em;}
  .categorias { gap: 8px;}
  .categoria-col h2 { font-size: 0.98em; margin-bottom: 12px;}
  .logo-acao { width: 28px; height: 28px; margin-right: 7px;}
  .sigla, .valor-atual, .porcent { font-size: 0.94em;}
  .card-acao, .card-fii, .card-bdr { padding: 7px 7px; font-size: 0.95em;}
  .info-bloco { padding: 12px 8px;}
}

.info-bloco {
  background: #fff;
  border-radius: 12px;
  margin: 18px 0;
  box-shadow: 0 1px 5px #0001;
  padding: 16px 18px;
}
.info-bloco h3 { color: #5164c7; margin-bottom: 10px;}
.info-bloco ul { margin: 0; padding-left: 16px;}
.info-bloco a { color: #263159; text-decoration: underline;}
.info-bloco a:hover { color: #ffbb00; }

form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px #0001;
  padding: 16px;
  gap: 8px;
}
input[type="text"] {
  border: none;
  font-size: 1.13em;
  flex: 1;
  padding: 8px 12px;
  outline: none;
  background: transparent;
  color: #263159;
}
button[type="submit"] {
  background: #263159;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 1em;
  margin-left: 12px;
  cursor: pointer;
  transition: background 0.2s;
}
button[type="submit"]:hover {
  background: #5164c7;
}
@media (max-width: 600px) {
  form { flex-direction: column; gap: 10px; padding: 9px;}
  button[type="submit"] { margin-left: 0;}
}

/* Scrollbar personalizado leve */
::-webkit-scrollbar {
  width: 8px;
  background: #f3f3f3;
}
::-webkit-scrollbar-thumb {
  background: #26315999;
  border-radius: 8px;
}

