body {
  margin: 0;
  padding: 0;
  font-family: Arial;
  background: #f1f5f9;
  color: grey;
  padding-top: 83px; /* mantém isso */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.box:last-of-type {
  margin-bottom: 0;
}
section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
}
header {
  background: linear-gradient(135deg,#f1f5f9);
  padding: 60px 20px;
  text-align: center;
}
/* Fonte Roboto para os títulos */
h1, h2, h3 {
  font-family: 'Roboto', sans-serif;
}
h1 {
  font-size: 36px;
}
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;

  display: flex;
  justify-content: space-between;
  align-items: center;

  height: 90px;

  padding: 0px 40px; /* 👈 diminui um pouco (melhor pra busca) */

  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 1000;

  box-sizing: border-box;

  overflow: visible; /* 👈 importante pra não cortar input */
}
.search-input {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
  width: 180px;
}
:target::before {
  content: "";
  display: block;
  height: 80px; /* altura da navbar */
  margin-top: -80px; /* negativa para compensar */
}
/*Botão de Doar*/
.btn {
  background: #32a852;  /* fundo verde médio */
  color: white; /* texto branco */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.btn-doar {
  background: #1dab6d;
  color: white;
  border-radius: 12px; /* mais arredondado */
  padding: 16px 40px;  /* aumenta tamanho */
  font-size: 18px;     /* texto maior */
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: 0.2s;
  border: none; /* remove borda pra ficar igual da referência */
}

.btn-doar:hover {
  background: #219e43;      /* verde mais claro no hover */
  border-color: #28a745;    /* mantém a borda consistente */
  color: white;
}
/* Selo Doação Protegida */
.selo-seguro {
  display: inline-flex;
  align-items: center;
  justify-content: center;    /* centraliza o conteúdo */
  gap: 6px;
  margin: 0 0 8px 0;
  background: #fff8db;
  border: 1px solid #1f8f5f;
  color: #1f8f5f;
  padding: 2px 2px;          /* deixa mais alto (igual botão) */
  border-radius: 999px;
  font-size: 9px;            /* aumenta um pouco */
  font-weight: 600;
  font-family: Arial, sans-serif;
}
.selo-seguro .icone {
  width: 18px;  /* ícone menor */
  height: 18px;
}

.btn-compartilhar {
  display: block;
  width: 100%;
  max-width: 370px;
  text-align: center;
  margin-top: 8px;
  background: white;
  color: #1dab6d;
  border: 1px solid #1dab6d;
  padding: 14px 0;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
#valor-doacao {
  padding: 8px 12px;
  font-size: 16px;
  width: 150px;
  border-radius: 12px; /* deixa arredondado */
  border: 1px solid #ccc; /* opcional: borda cinza */
}
#btn-abrir-pix {
  width: 290px;      /* controla largura */
  text-align: center;
}
/*
.area-doacao-fixa {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;

  display: flex;
  flex-direction: column;
  align-items: center;

  background: white;
  padding: 12px;
  border-radius: 16px;

  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
*/
/* Fundo escuro e centralização da modal(caixa pix e qrcode) */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);

  display: none; /* começa escondido */
  align-items: center;
  justify-content: center;

  padding: 20px;
  box-sizing: border-box;

  z-index: 10000;
}
.modal-content {
  background-color: #e4f2e8;

  width: 100%;
  max-width: 600px;

  padding: 20px;
  border-radius: 12px;

  box-sizing: border-box;
  text-align: center;

  margin: 0; /* 🔥 importante: remove qualquer deslocamento */
}
.modal-content h2 {
  color: green;
  margin-bottom: 10px;
}
/* VALORES DA DOAÇÃO (dentro da modal) */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.valor {
  background: #ffffff;
  border: 2px solid #ddd;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  width: 100%;        /* 👈 impede ficar torto */
  max-width: 140px;   /* 👈 mantém padrão bonito */
  text-align: center; /* 👈 centraliza texto */
}

.valor:hover {
  border-color: #2ecc71;
}

.valor.ativo {
  border-color: #2ecc71;
  background: #c8efd9;
}

.tag {
  display: block;
  font-size: 10px;
  color: #2ecc71;
  margin-top: 4px;
}

/* Código pix dentro da modal */
#codigo-pix,
#codigo-pix-modal {
  background: #ffffff;
  padding: 10px;
  border-radius: 8px;
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-family: monospace;
  word-break: break-all;
}
/* Botão fechar */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: black;
}

section {
  padding: 50px 20px;
  text-align: left; /* Alinha todo o conteúdo à esquerda */
}
.box.campanha {
  background-color: #fcf9f7 !important;
}
.box.topo { 
background-color: #fcf9f7 !important;
}
.card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin: 10px 0;
  max-width: 400px;
}
/* Barra de Progresso */
.progress {
  background: grey;
  border-radius: 20px;
  overflow: hidden;
  margin: 30px 0;
  width: 100%;
}

.progress-bar {
  height: 5px;
  background: #2ecc71;
  width: 40%; /* ALTERA AQUI */
}

/* Contribuição */
.contrib {
  background: #f5f5f5;
  margin: 10px 0;
  padding: 20px;
  border-radius: 8px;
  max-width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  animation: aparecer 0.4s ease; 
}
.nome-escuro {
  color: #2e2e30; /* tom bem escuro quase preto */
  font-weight: bold; /* opcional, se quiser que fique mais destacado */
}
@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* Contribuidores */
.linha1 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.linha1 img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
}

.nome {
  font-weight: 500;
  color: #2e2e30;
}


.tempo {
  font-size: 12px;
  color: #1b447d;
  margin-top: 4px;
  margin-left: 55px; /* alinha com o nome */
}

html {
  height: 100%;
  overflow-x: hidden;
}

.sec {
  padding: 80px 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  max-width: 900px;
  margin: auto;
}
.box {
  background: white;
  margin: 10px auto;
  padding: 30px;
  border-radius: 12px;
  max-width: 1200px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  text-align: left; /* conteúdo do footer à esquerda */
}

.box:hover {
  transform: none;
  transition: 0.2s;
}
.box-arrecadado {
  /* já herda .box */
  text-align: center;
}

.box h1,
.box h2 {
 color: #303030; /* substitua pelo tom que quiser */
}
/* Subtítulo "Saúde / Tratamentos" */

.box h3 {
	color: grey;
	font-size: 18px;  /* ajusta o tamanho conforme desejar */
    margin: 2 0 10px 0; /* opcional: espaçamento embaixo */
}
.box:last-of-type {
  margin-bottom: 0;
}
/* Arrecadado */
.box-arrecadado h2 {
  font-size: 20px; /* tamanho menor para "Arrecadado" */
  margin-bottom: 5px;
  color: #333333; /* Cinza cor d fundo */
}

.valor-principal {
  color: #1dab6d; /* valor arrecadado maior e Verde  */
  font-size: 32px;
  font-weight: 900;
  margin: 5px 0;
}

/* Meta de Arrecadação */
.meta {
  color: grey; /* meta menor e cinza */
  font-size: 16px;
  font-weight: normal;
  margin: 2px 0 15px 0;
}
.box, .card {
  text-align: left;
}
html {
  scroll-behavior: smooth;
}

/* Botão de doar Ocupar tela */
#btn-abrir-pix {
  display: block;
  width: 370px;        /* controla largura real */
  text-align: center;
  font-size: 20px;
  padding: 16px 0;     /* deixa mais alto (igual da referência) */
  border-radius: 12px;
}

/* Lista Como sua ajuda chega */
.lista {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 8px;
}
.item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 16px;
}

.foto-Davi img {
  width: 102%;
  max-width: 102%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.foto-Davi {
  margin-top: 15px;
  position: relative;
  display: inline-block;
}

/*  coração SVG */
.foto-Davi .coracao {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: white;
  border-radius: 50%;

  cursor: pointer;
  transition: 0.2s;
}

.foto-Davi .coracao svg {
  width: 22px;
  height: 22px;
  fill: grey;
  transition: 0.2s;
}

/* quando ativo */
.foto-Davi .coracao.ativo svg {
  fill: #00c853;
}

.foto-Davi .coracao:hover {
  transform: scale(1.1);
}

.coracao:hover {
  color: #00c853; /* verde bonito */
  transform: scale(1.2);
}

.perfil {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.foto-perfil {
  width: 35px;        /* tamanho pequeno */
  height: 35px;
  border-radius: 50%; /* deixa redondo */
  object-fit: cover;
  cursor: pointer;
  transition: 0.2s;
}
.foto-perfil:hover {
	transform: scale(1.05);
}
.titulo-destaque {
  font-size: 20px;
  font-weight: 600;
  color: #525252; /* mais escuro */
  margin-top: 20px;
}
.info {
  display: flex;
  flex-direction: column;
}

.nome {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.data {
  font-size: 13px;
  color: #777;
}
/* Popup */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  z-index: 999;

  overflow-y: auto; /* mantém scroll */
}

/* conteúdo do popup */
.popup-content {
  max-width: 600px;

  margin: 80px auto; /* 🔥 centraliza no PC e celular */
  padding: 20px;
padding-bottom: 40px; /* 👈 adiciona isso */
  position: relative;
}


/* topo do perfil */
.topo-perfil {
  text-align: center; /* 👈 centraliza tudo */
}

.foto-grande {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.nome {
  font-size: 17px;
  font-weight: bold;
}

.data {
  font-size: 14px;
  color: gray;
}
/* bio */
.bio {
  margin-top: 15px;
  color: #444;
}

/* botão fechar */
.fechar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
}

/* ===== FOOTER ===== */
.footer {
  background-color: #262626;
  color: white;
  padding: 40px 20px;
  width: 100vw;        /* ocupa a tela toda */
  margin-left: calc(-50vw + 50%); /* truque pra escapar do container */
  margin-top: auto; /* 👈 adiciona isso */
  
}
.footer {
  box-sizing: border-box;
}
.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer .col {
  display: flex;
  flex-direction: column;
  margin: 10px;
  min-width: 200px;
}

.footer .col h3 {
  margin-bottom: 15px;
}

.footer .col a {
  color: #ccc;
  text-decoration: none;
  margin-bottom: 8px;
}

.footer .col a:hover {
  color: #2ecc71;
}

.footer .col p {
  margin: 4px 0;
  color: #ccc;
}
.footer {
  color: white;
}
.footer-bottom {
  text-align: center;
  padding: 6px 0px;
  margin: 0;
  font-size: 13px;
  color: white;

  border-top: 1px solid #eee;
  line-height: 1.2;
  width: 100%;
  box-sizing: border-box;
}

.footer-bottom p {
  margin: 0;
  padding: 0 10px; /* 👈 espaço só interno, não quebra as laterais */
  text-align: center;
}
body > *:last-child {
  margin-bottom: 0;
}
html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.modal-open {
  overflow: hidden;
}

/* ===== VER MAIS (descrição) ===== */

.descricao {
  font-size: 14px;
  color: grey; /* igual ao body */
  line-height: normal;
  font-weight: normal;
}
.texto-completo {
  display: none;
}

.descricao .ver-mais {
  background: none;
  border: none;
  color: #46b0f2;
  font-weight: 600;
  cursor: pointer;
  margin-left: 5px;
  padding: 0;
  font-size: 14px;
}

.descricao .ver-mais:hover {
  text-decoration: underline;
  opacity: 0.8;
}

/* selos */

.badge-img {
  width: 25px;
  height: auto;
}
.tabs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.tab {
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12px;
  color: #777; /* cinza padrão */
  border-bottom: 2px solid transparent;
}

.tab.active {
  color:#2ecc71;  /* texto verde */
  border-bottom: 2px solid #2ecc71; /* linha verde */
  font-weight: bold;
}

.conteudo-tab {
  display: none;
  margin-top: 15px;
}

.conteudo-tab.ativo {
  display: block;
}

.badges-line{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #2ecc71;
}

.badges-line .item{
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f3f3f3;
  padding: 6px 10px;
  border-radius: 20px;
}

.icon {
  width: 18px;
  height: 18px;
  color: #1f8f5f;
  flex-shrink: 0;
}

.icon {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badges-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.badges-list .item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #222;
}

.badges-list .item svg {
  width: 18px;
  height: 18px;
  color: #1f8f5f;
  flex-shrink: 0;
}

.subtexto {
  font-size: 13px;
  color: #666;
  margin-left: 26px; /* alinha com o texto depois do ícone */
  margin-top: 2px;
  margin-bottom: 8px;
  line-height: 1.3;
}

/*botaocopiarpixinicio*/
.pix-copia {
  display: flex;
  align-items: center;
  gap: 2px; /* controla a distância */
  background: #fff;
  padding: 10px;
  border-radius: 8px;
}

.btn-copiar {
  background: none;
  border: none;
  cursor: pointer;
  color:#080707;
  display: flex;
  align-items: center;
}

.btn-copiar svg {
  stroke: currentColor;
  fill: none; /* transparente */
}
.btn-copiar:hover {
  opacity: 0.7;
}

/* ==== Mobile ====*/
@media (max-width: 600px) {

  body {
    padding-top: 70px; /* ajusta pro tamanho da navbar no mobile */
  }

  h1 {
    font-size: 22px;
  }

  section {
    padding: 30px 15px; /* melhor espaçamento no celular */
  }

  .box {
    padding: 20px;
    margin: 10px;
  }

  .navbar {
    padding: 0 20px;
    height: 70px; /* diminui a navbar */
  }
.area-doacao-fixa {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  padding: 12px;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.area-botoes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
}

.btn, .btn-compartilhar {
  width: 100%;
  max-width: 320px;
  text-align: center;
  margin: 0;
}
  #valor-doacao {
    width: 100%;
    max-width: 200px;
    display: block;
    margin-bottom: 10px;
  }

  #btn-doar-pix {
    display: block;
    margin-top: 5px;
  }

  .foto-Davi {
  position: relative;
}
.foto-Davi img {
    width: 105%; /* leve aumento no mobile também */
  }
.foto-Davi .coracao {
  position: absolute;
  top: 10px;
  right: 10px;

  background: white;
  border-radius: 50%;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 29px; /* 👈 controla o tamanho do ❤️ */
  line-height: 1;
color: grey;
  cursor: pointer;
}

  .modal-content {
    width: 90%;
    max-width: 400px;
  }
.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
	grid-template-columns: repeat(2, 1fr);
  }
   .popup-content {
    margin: 60px 15px; /* espaço lateral no celular */
  }
}
/* ==== Desktop (PC) ==== */

 @media (min-width: 601px) {

  /* CAIXA PRINCIPAL FIXA NO LADO DIREITO */
  .painel-direito {
    position: fixed !important;
    top: 120px;
    right: 20px;

    width: 420px;
    max-width: 90vw;

    display: flex;
    flex-direction: column;
    gap: 10px;

    background: white;
    padding: 18px 20px;
    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    z-index: 9999;
  }

  /* GARANTE ORDEM CORRETA EM COLUNA */
  .painel-direito .progress { order: 1; }
  .painel-direito h2 { order: 2; }
  .painel-direito .valor-principal { order: 3; }
  .painel-direito .meta { order: 4; }
  .painel-direito .area-doacao-fixa { order: 5; }
  .painel-direito .perfil { order: 6; }

  /* BOTÕES LADO A LADO NO PC */
  .area-botoes {
    display: flex;
    gap: 12px;
  }

  .btn,
  .btn-compartilhar {
    flex: 1;
    text-align: center;
  }

  /* CENTRALIZA SELINHO */
  .selo-seguro {
    justify-content: center;
  }
}
@media (min-width: 601px) {

  .foto-Davi {
    width: 100%;
    max-width: 1200px; /* aumenta o “campo” da imagem */
    margin: 0 auto;    /* centraliza */
  }

  .foto-Davi img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
  }
}