*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
  body {
    font-family: 'Inter', sans-serif;
    background-color: #F5F7FA;
    color: #333;
  }



  /* Menu topo página principal */

/* ===========================
   Menu Principal
=========================== */
.navbar {
  background-color: #fff;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
  z-index: 100;
}

.navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0035a8;
}

.navbar ul {
  list-style: none;
  display: flex;
  padding-left: 0;
}
.navbar > ul > li {
  margin: 0 25px; /* ajusta a distância horizontal entre os itens principais */
}

.navbar li {
  position: relative;
  
}

/* Itens de menu */
.navbar span,
.navbar a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  padding: 0.5rem 0;
  cursor: pointer;
  transition: color 0.3s;
}

.navbar a {
  text-decoration: none;
  color: #111827;
}

.navbar span:hover,
.navbar a:hover {
  color: #0035a8;
  background-color: transparent;
}

/* ===========================
   Submenu
=========================== */
.navbar li ul {
  position: absolute;
  background-color: #fff;
  min-width: 310px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  border-radius: 10px;
}

.navbar li:hover > ul {
  display: flex;
}

 .navbar li ul li{
    display: block;
    
  }

.navbar li ul li a {
  padding: 15px 10px 12px 31px;
  font-weight: 400;
  color: #333;
}

.navbar li ul li a:hover {
    color: #394bec;
    background-color: rgba(119, 117, 117, 0.404);
    
   
  
}

/* ===========================
   Ícones
=========================== */
.navbar svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* ===========================
   Responsivo
=========================== */
.menu-toggle {
  display: none;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .navbar ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #ddd;
    line-height: 50px;
  }

  .navbar ul.active {
    display: flex;
  }

  .navbar li ul {
    position: static;
    box-shadow: none;
    border-radius: 0;
  }
 

  .navbar li ul li a {
    padding-left: 32px;
  }

 
  .menu-toggle {
    display: block;
  }
}



  /* Hero */
  .hero {
    background: linear-gradient(135deg, #0A2540 0%, #1c3f6e 100%);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .hero::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10.01%);
    background-size: 40px 40px;
    animation: move 30s linear infinite;
  }

  @keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
  }

  /* Botões "ver mais" */
  .btn-primary {
    background-color: #2ECC71;
    border: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .btn-primary:hover {
    transform: translateY(-3px);
   
  }

  /*Dicas */
  #dica{
    border-top: 1px solid #d9d9d9;
  }

  
  /* Footer */
  footer {
    background-color: #0A2540;
    color: #fff;
    padding: 30px 0;
    text-align: center;
  }

  /* ===========================
   Pagina de golpes financeiros e fontes das materias
=========================== */
  .bg-img{
    background-image: url("../imgs/banner_evitar_golpes_financeiros_pessoa.png");
    background-position: center;
  }
  .font-lato{
    font-family: "Lato", sans-serif;
    font-weight: 400;
    font-style: normal;
  }
  .font-montserrat-banner{
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}
 .font-montserrat-banner p{
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: rgb(40 45 52);
    font-size: 18px;
     opacity: 0.90;
     font-weight: 400;
}

  .subtitulo-banner{
    color: #e0e0e0;

}
.btn-whatsapp {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 6px 18px rgba(14, 69, 98, 0.12);
}

/* ===========================
   Pagina de golpes financeiros (ICONES)
=========================== */
:root {
      --gradient-primary: linear-gradient(135deg, hsl(234 89% 74%), hsl(250 100% 85%));
      --gradient-hero: linear-gradient(135deg, hsl(234 89% 74%) 0%, hsl(250 100% 85%) 50%, hsl(265 100% 88%) 100%);
      --gradient-card: linear-gradient(135deg, hsl(0 0% 100%), hsl(240 6% 99%));
      --gradient-danger: linear-gradient(135deg, hsl(0 72% 51%), hsl(10 80% 58%));
      --gradient-success: linear-gradient(135deg, hsl(142 71% 45%), hsl(160 75% 50%));
      --gradient-subtle: linear-gradient(135deg, hsl(234 89% 74% / .05), hsl(250 100% 85% / .1));

      --shadow-soft: 0 4px 20px -4px hsl(234 89% 74% / .15);
      --shadow-glow: 0 0 40px hsl(250 100% 85% / .25);
      --shadow-card: 0 10px 40px -10px hsl(234 89% 74% / .1);
    }

    .crd {
      background:#ffffff14;
      padding: 30px 20px;
      border-radius: 16px;
      box-shadow: var(--shadow-card);
      text-align: center;
      transition: box-shadow 0.3s ease;
      width: 250px;
    }

    /* Hover apenas muda a sombra */
    .crd:hover {
      box-shadow: var(--shadow-glow);
    }

    .icon {
      width: 64px;
      height: 64px;
      border-radius: 17px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin: 0 auto 15px auto;
    }

    .icon svg {
      width: 28px;
      height: 28px;
      stroke: #fff;
      stroke-width: 2;
    }

    .icon-primary { background: var(--gradient-primary); }
    .icon-danger { background: var(--gradient-danger); }
    .icon-success { background: var(--gradient-success); }

    .value {
      font-size: 30px;
      font-weight: bold;
      color: #111;
      margin-bottom: 6px;
      font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";

    }

    .text {
      font-size: 15px;
      color: #666;
    }
    .container.icones{
      display: flex;
    flex-wrap: wrap;
    gap: 20px;
    }

/* ===========================
   Pagina de golpes financeiros (CARDS DO RODAPE)
=========================== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }

  .card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .card img {
    width: 100%;
    display: block;
  }

  .card-body {
    padding: 15px;
  }

  /* Parte oculta inicialmente */
  .card-extra {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.4s ease, padding 0.3s ease;
  }

  /* Quando expandido */
  .card.expanded .card-extra {
    max-height: 200px; /* Ajuste conforme necessário */
    padding: 15px;
  }

  /* ===========================
   Pagina de Tesouro Direto
=========================== */
  .bg-img-tesouro{
    background-image: url("../imgs/tesouro-banner.png");
    background-position: center;
  }
  /* ===========================
   Pagina de Acoes
=========================== */
  .bg-img-acoes{
    background-image: url("../imgs/acoes-banner.png");
    background-position: center;
  }

  /* ===========================
   Pagina de FII
=========================== */
  .bg-img-fiis{
    background-image: url("../imgs/cripto-banner.jpg");
    background-position: center;
  }

    /* ===========================
   Pagina de Criptomoedas
=========================== */
  .bg-img-cripto{
    background-image: url("../imgs/fii-banner.jpg");
    background-position: center;
  }

/* ===========================
   Pagina de Dicas de Economia
=========================== */
  .bg-img-dicas{
    background-image: url("../imgs/dicas-banner.png");
    background-position: center;
  }

  /* ===========================
   Pagina de Como sair das dividas
=========================== */
  .bg-img-dividas{
    background-image: url("../imgs/dividas-banner.png");
    background-position: center;
  }


  /* ===========================
   Pagina de Calculadoras
=========================== */
  .bg-img-calculadora{
    background-image: url("../imgs/calculadora-banner.png");
    background-position: center;
  }

  #calculadorasFinanceiras{
    font-family: 'Inter', sans-serif;
  }

  #calculadorasFinanceiras b{
    font-size: 20px;
    
  }

   /* ===========================
   Pagina de Organização Financeira
=========================== */
  .bg-img-organizacao{
    background-image: url("../imgs/organizacao-banner.png");
    background-position: center;
  }
  

/* ===========================
   Pagina de Comparativos de cartão de crédito
=========================== */
  .bg-img-cartao{
    background-image: url("../imgs/banner_cartao_de_credito.png");
    background-position: center;
  }

  .cartao{
    color: #5ebee7;
        background-color: #0000008c;
    border-radius: 8px;
    text-align: center;
  }

  .card-img{
    width: 60px;
height: auto;
border-radius: 6px;
  }

  .tabela-cartao, .table td, .table th{
     
  
    white-space: normal;     /* Permite quebras de linha */
    word-wrap: break-word;   /* Quebra palavras longas */
    word-break: break-word;  /* Compatibilidade com navegadores */

  }


/* ===========================
   Pagina de Comparativos de Empréstimos
=========================== */

 .bg-img-emprestimo{
    background-image: url("../imgs/emprestimo-banner.png");
    background-position: center;
  }

  /* ===========================
   Pagina de Comparativos de Seguros
=========================== */

 .bg-img-seguro{
    background-image: url("../imgs/seguro_banner.png");
    background-position: center;
  }




  /* Slider base - sobrescreve Bootstrap form-range */
input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100%;
  height: 8px;
  border-radius: 8px;
  background: #d3d3d3;
  outline: none;
}

/* Track (Chrome/WebKit) — deixamos transparente porque usamos background do input */
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  -webkit-appearance: none;
  background: transparent;
  border-radius: 8px;
}

/* Thumb */
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0078d7;
  margin-top: -6px; /* centralizar no track */
  cursor: pointer;
  border: none;
}

/* Firefox */
input[type="range"]::-moz-range-track {
  height: 8px;
  background: transparent;
  border-radius: 8px;
}
input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #0078d7;
  border-radius: 50%;
  border: none;
  cursor: pointer;
}

/* ===========================
   Pagina de Comparativos de Financiamentos
=========================== */

 .bg-img-financiamento{
    background-image: url("../imgs/financiamento_banner.png");
    background-position: center;
  }



/* ===========================
   Pagina de Comparativos de Renda Fixa
=========================== */

 .bg-img-rendaFixa{
    background-image: url("../imgs/renda-fixa-banner.png");
    background-position: center;
  
  }






  /* Banner de cookies */
  #cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0A2540;
    color: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    font-size: 0.95rem;
    max-width: 550px;
    transition: transform 0.4s ease, opacity 0.4s ease;
    flex-wrap: wrap;
  }

  #cookie-banner p {
    margin: 0;
    flex: 1 1 100%;
  }

  #cookie-banner a {
    color: #2ECC71;
    text-decoration: underline;
  }

  .cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  #cookie-banner button {
    background-color: #2ECC71;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
  }

  #cookie-banner button:hover {
    background-color: #28b765;
  }

  #decline-cookies {
    background-color: #E74C3C;
  }

  #decline-cookies:hover {
    background-color: #c0392b;
  }

  #cookie-banner.hide {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    pointer-events: none;
  }

  /* Responsividade */
  @media (max-width: 992px) {
    .hero { padding: 80px 20px; }
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1.1rem; }
  }
 

  @media (max-width: 768px) {
    .hero { padding: 60px 15px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
  }

  @media (max-width: 576px) {
    .hero { padding: 50px 10px; }
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 0.95rem; }
  }

  /* Tabela responsiva */
  .table-responsive {
    overflow-x: auto;
  }

  table th,
  table td {
    white-space: nowrap;
  }

