@charset "utf-8";

/* ========================================
   Base / Normalização leve
   ======================================== */
*, *::before, *::after { box-sizing: border-box; }
img, video { display: block; max-width: 100%; height: auto; }
:where(figure) { margin: 0; }

/* ========================================
   PÁGINA DE ARTIGO - VURA
   ======================================== */

/* ========================================
   CABEÇALHO DO ARTIGO
   ======================================== */

.artigo-header {
  padding: 2rem 0;
  max-width: 100%;
  margin: 0 auto;
}

/* Categoria/Tag do cabeçalho (escopado) */
.artigo-header .tag {
  display: inline-block;
  background: #00DC00;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  text-transform: capitalize;
}

/* Título Principal */
.artigo-titulo {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  margin: 1rem 0;
}

/* Subtítulo/Descrição */
.artigo-subtitulo {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  color: #666;
  margin-bottom: 1.5rem;
}

/* Meta Informações */
.artigo-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #e0e0e0;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.meta-autor {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.autor-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.autor-info { display: flex; flex-direction: column; }

.autor-nome {
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
}

.artigo-data { font-size: 0.875rem; color: #666; }

/* Ações */
.artigo-acoes { display: flex; gap: 0.5rem; }

/* Botão Voltar */
.btn-voltar {
  background: transparent;
  border: 1px solid #333;
  color: #333;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.btn-voltar:hover { background: #333; color: #fff; }

/* Botão Compartilhar */
.btn-compartilhar {
  background: transparent;
  border: 1px solid #333;
  color: #333;
  font-size: 1.125rem;
  font-weight: 600;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}
.btn-compartilhar:hover { background: #333; color: #fff; }

/* Responsivo - Cabeçalho */
@media (max-width: 1000px) {
  .artigo-titulo { font-size: 2rem; }
  .artigo-subtitulo { font-size: 1.2rem; }
}
@media (max-width: 600px) {
  .artigo-header { padding: 1.5rem 0; }
  .artigo-titulo { font-size: 1.75rem; }
  .artigo-subtitulo { font-size: 1rem; }
}

/* ========================================
   LAYOUT DO ARTIGO - 2 COLUNAS
   ======================================== */

.artigo-corpo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  column-gap: 3rem;
  row-gap: 3rem;
}

/* Garantia extra: itens diretos do grid podem encolher */
.artigo-corpo > * { min-width: 0; }

.coluna-principal,
.coluna-lateral { min-width: 0; }

.coluna-lateral { width: auto; }

@media (max-width: 1000px) {
  .artigo-corpo {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }
  .coluna-lateral,
  .coluna-principal {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .artigo-corpo { padding-left: 0; padding-right: 0; }
}

/* ========================================
   IMAGENS DESTAQUE (capa)
   ======================================== */

.imagem-destaque {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.legenda-imagem {
  display: block;
  text-align: left;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 30px;
  font-style: italic;
}

/* Figura padrão (se usar <figure>) */
.artigo-imagem { margin-bottom: 1rem; }
.artigo-imagem img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.artigo-imagem figcaption {
  font-size: 0.875rem;
  color: #666;
  font-style: italic;
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* ========================================
   TIPOGRAFIA E LINKS (escopo: conteúdo)
   ======================================== */

.coluna-principal p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 1.5rem;
}

/* Mídias no corpo nunca estouram */
.coluna-principal img,
.coluna-principal video,
.coluna-principal iframe { max-width: 100%; height: auto; }

.coluna-principal h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  color: #000;
  margin-top: 3rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 15px;
}
.coluna-principal h2::before {
  content: "";
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  width: 4px; background: #00DC00; border-radius: 2px;
}

.coluna-principal h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.coluna-principal a {
  color: #00b300;
  text-decoration: underline;
  transition: color 0.2s;
}
.coluna-principal a:hover { color: #00DC00; }

/* Responsivo - Tipografia no conteúdo */
@media (max-width: 1000px) {
  .coluna-principal h2 { font-size: 1.6rem; }
  .coluna-principal h3 { font-size: 1.3rem; }
}
@media (max-width: 600px) {
  .coluna-principal h2 { font-size: 1.4rem; }
  .coluna-principal h3 { font-size: 1.2rem; }
}

/* ========================================
   LISTAS NO CONTEÚDO
   ======================================== */

/* UL – lista com check alinhado */
.coluna-principal ul {
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.coluna-principal ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.7;
  margin-bottom: 12px;
  position: relative;
}
.coluna-principal ul li::before {
  content: "\2713"; /* ✓ */
  color: #00DC00;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
}

/* OL – numeração em “badge” circular alinhada */
.coluna-principal ol {
  counter-reset: listCounter;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.coluna-principal ol li {
  counter-increment: listCounter;
  display: flex;
  gap: 12px;
  align-items: center;
  line-height: 1.7;
  margin-bottom: 12px;
  position: relative;
}
.coluna-principal ol li::before {
  content: counter(listCounter);
  flex: 0 0 36px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #00DC00; color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Lista Passo a Passo */
.passo-a-passo {
  list-style: none;
  counter-reset: passos;
  margin: 1.5em 0;
  padding: 0;
  display: grid;
  gap: 5px;
}
.passo-a-passo li {
  counter-increment: passos;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 12px;
  background: #FFF;
  border-radius: 8px;
  padding: 14px 16px;
  min-height: 56px;
  line-height: 1.7;
}
.passo-a-passo li::before {
  content: counter(passos);
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #00DC00; color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* Ajustes para listas aninhadas */
.coluna-principal li > ul,
.coluna-principal li > ol { margin-top: 8px; }

/* ========================================
   CITAÇÕES (blockquote)
   ======================================== */

.coluna-principal blockquote {
  border-left: 5px solid #00DC00;

  padding: 20px 25px;
  font-style: italic;
  background: #f0fff0;
  color: #333;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
  font-size: 1.125rem;
  box-shadow: 0 2px 8px rgba(0, 220, 0, 0.1);
}
.coluna-principal blockquote p { margin: 0; }

/* ========================================
   VÍDEO RESPONSIVO
   ======================================== */

.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  margin: 10px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.legenda-video {
  display: block;
  text-align: left;
  font-size: 0.9em;
  color: #666;
  margin-top: 10px;
  margin-bottom: 25px;
  font-style: italic;
}

/* ========================================
   GALERIA DE IMAGENS
   ======================================== */

.galeria-container {
  position: relative;
  width: 100%;
  margin: 40px 0;
  overflow: hidden;
  border-radius: 8px;
}
.galeria-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.galeria-slide { min-width: 100%; display: none; }
.galeria-slide.ativo { display: block; }
.galeria-slide img { width: 100%; height: auto; display: block; }
.galeria-legenda {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 20px;
  text-align: center;
  font-size: 0.95em;
  border-radius: 0 0 12px 12px;
}
.galeria-controles {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 15px;
}
.galeria-btn {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  width: 45px; height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transition: all 0.3s;
}
.galeria-btn:hover { background: rgba(0, 0, 0, 0.9); transform: scale(1.1); }
.galeria-indicadores {
  display: flex; justify-content: center; gap: 10px; margin-top: 20px;
}
.galeria-indicador {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer; transition: all 0.3s;
}
.galeria-indicador:hover { background: rgba(0, 0, 0, 0.5); }
.galeria-indicador.ativo {
  background: #00DC00; width: 32px; border-radius: 6px;
}

/* ========================================
   ESTATÍSTICAS / NÚMEROS
   ======================================== */

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.stat-box {
  background: linear-gradient(135deg, #f0fff0 0%, #e6ffe6 100%);
  border: 2px solid #00DC00;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s;
}
.stat-box:hover { transform: translateY(-5px); }
.stat-number {
  font-size: 3rem; font-weight: 700; color: #00DC00; line-height: 1; margin-bottom: 10px;
}
.stat-label { font-size: 1rem; color: #555; font-weight: 500; }

/* Responsivo - Estatísticas */
@media (max-width: 1000px) {
  .stats-container { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
@media (max-width: 600px) {
  .stats-container { grid-template-columns: 1fr; }
  .galeria-btn { width: 38px; height: 38px; font-size: 18px; }
}

/* ========================================
   BOXES DE DESTAQUE
   ======================================== */

.box-destaque {
  padding: 20px 25px;
  margin: 30px 0;
  border-left: 5px solid;
  border-radius: 8px;
  background-color: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.box-destaque h3 {
  margin-top: 0;
  color: inherit;
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem;
}

/* Dica */
.box-destaque.dica { border-left-color: #00DC00; background-color: #f0fff0; }
.box-destaque.dica h3::before {
  content: "\01F4A1"; /* 💡 */
  display: inline-flex; width: 1.5rem; height: 1.5rem; font-size: 1.5rem; line-height: 1;
}

/* Atenção */
.box-destaque.atencao { border-left-color: #FFA500; background-color: #fff8f0; }
.box-destaque.atencao h3::before {
  content: "\26A0"; /* ⚠ */
  display: inline-flex; width: 1.5rem; height: 1.5rem; font-size: 1.5rem; line-height: 1;
}

/* Importante */
.box-destaque.importante { border-left-color: #FF4136; background-color: #fff0f0; }
.box-destaque.importante h3::before {
  content: "\01F534"; /* 🔴 */
  display: inline-flex; width: 1.5rem; height: 1.5rem; font-size: 1.5rem; line-height: 1;
}

/* ========================================
   COMPARAÇÃO LADO A LADO
   ======================================== */

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}
.comparison-item {
  padding: 25px;
  border-radius: 8px;
  border: 2px solid;
}
.comparison-item.pros { border-color: #00DC00; background: #f0fff0; }
.comparison-item.cons { border-color: #FF4136; background: #fff0f0; }
.comparison-item h4 { margin-top: 0; font-size: 1.3rem; }
.comparison-item ul { list-style: none; padding-left: 0; }
.comparison-item ul li {
  position: relative; padding-left: 26px; line-height: 1.6;
}
.comparison-item.pros ul li::before {
  content: "\2713"; position: absolute; left: 0; top: 0.1em;
  color: #00DC00; font-weight: 700; font-size: 18px;
}
.comparison-item.cons ul li::before {
  content: "\2717"; position: absolute; left: 0; top: 0.1em;
  color: #FF4136; font-weight: 700; font-size: 18px;
}

/* Responsivo - Comparação */
@media (max-width: 1000px) {
  .comparison { grid-template-columns: 1fr; }
}

/* ========================================
   TABELAS (escopo conteúdo)
   ======================================== */

.table-container {
  overflow-x: auto;
  margin: 25px 0;
  border-radius: 10px;
  border:1px solid #CCC;
}
.coluna-principal table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.coluna-principal th,
.coluna-principal td {
  border: 1px solid #e0e0e0;
  padding: 14px 12px;
  text-align: left;
}
.coluna-principal thead { background: #f8f8f8; }
.coluna-principal th { font-weight: 600; color: #000; }
.coluna-principal tbody tr:hover { background: #f9f9f9; }

/* ========================================
   FAQ
   ======================================== */

.faq-container { max-width: 100%; margin: 40px 0; }

.faq-item {
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s;
}
.faq-item:hover { border-color: #00DC00; }
.faq-item[open] { border-color: #000; }

.faq-item summary {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  padding: 15px 20px;
  font-weight: 600; font-size: 1.05rem;
  background: #fff; cursor: pointer; list-style: none;
  transition: background 0.3s, color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: #f8f8f8; }

/* Acessibilidade: foco visível no teclado */
.faq-item summary:focus-visible {
  outline: 3px solid rgba(0,220,0,0.35);
  outline-offset: 2px; border-radius: 6px;
}

.faq-icon {
  font-size: 24px; font-weight: 700; color: #00DC00;
  transition: color 0.3s, transform 0.2s;
  min-width: 24px; text-align: center; line-height: 1;
}
/* Ícones seguros (Unicode) */
.faq-item summary .faq-icon::before { content: "\002B"; }     /* + */
.faq-item[open] summary .faq-icon::before { content: "\00D7"; } /* × */

.faq-item[open] summary { background: #000; color: #fff; }
.faq-item[open] .faq-icon { color: #fff; }

.faq-answer {
  padding: 15px 20px; background: #ffffff;
  font-size: 1rem; line-height: 1.7; color: #333;
  border-top: 1px solid #eee; margin: 0;
}

/* ========================================
   CARDS RELACIONADOS
   ======================================== */

.cards-relacionados { margin: 40px 0; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; margin-top: 20px;
}
.card-mini {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none; color: inherit; display: block;
}
.card-mini:hover { transform: translateY(-5px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.card-mini img { width: 100%; height: 140px; object-fit: cover; }
.card-mini h4 {
  margin: 0; padding: 15px; font-size: 1rem; line-height: 1.4; color: #333;
}

/* ========================================
   LATERAL - POPULARES (se usado)
   ======================================== */

.lateral-populares { margin-bottom: 2rem; }
.lateral-titulo {
  font-size: 1.5rem; font-weight: 700; color: #333; margin-bottom: 1rem;
}
.card-popular {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-popular:hover { transform: translateY(-5px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.card-popular a { text-decoration: none; color: inherit; display: block; }
.card-popular img { width: 100%; height: 180px; object-fit: cover; display: block; }
.card-popular-content { padding: 1rem; }
.card-popular-categoria {
  font-size: 0.75rem; color: #888; text-transform: uppercase; display: block; margin-bottom: 0.5rem;
}
.card-popular-titulo {
  font-size: 1rem; font-weight: 600; line-height: 1.4; color: #333; margin-bottom: 0.5rem;
}
.card-popular-data { font-size: 0.75rem; color: #666; }

/* Publicidade Lateral */
.lateral-publicidade { margin-bottom: 2rem; }
.lateral-publicidade img {
  width: 100%; height: auto; display: block; border-radius: 8px;
}

/* ========================================
   BOTÃO DE CONVERSÃO
   ======================================== */

.artigo-conversao { margin-bottom: 2rem; }
.btn-conversao {
  display: inline-block;
  background: #000; color: #FFF;
  font-size: 0.875rem; font-weight: 600;
  padding: 0.75rem 2rem; border-radius: 4px;
  text-decoration: none; transition: all 0.3s ease;
}
.btn-conversao:hover { background: #333; color:#FFF; transform: translateY(-2px); }

/* ========================================
   RODAPÉ DO ARTIGO (tags)
   ======================================== */

.article-footer {
  margin-top: 50px; padding-top: 30px; border-top: 2px solid #e0e0e0;
}
.article-tags { margin-top: 20px; }

/* Tags do rodapé (escopado) */
.article-tags .tag {
  display: inline-block;
  background: #f9f9f9;
  padding: 6px 14px; border-radius: 20px;
  margin-right: 8px; margin-bottom: 8px;
  font-size: 0.9em; transition: all 0.3s;
  border: 1px solid #e0e0e0; text-transform: none;
}
.article-tags .tag:hover {
  background: #00DC00; color: white; border-color: #00DC00;
}

/* ========================================
   SEÇÃO DE DESTAQUES
   ======================================== */

.artigo-destaques {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e0e0e0;
}

/* ================================
   CALL-TO-ACTION - MELHORADO
   ================================ */
.coluna-principal .cta-container {
  background: #EEFFEE;
  border: 2px solid #00DC00;
  border-radius: 12px;
  padding: 36px 30px;
  text-align: center;
}
.coluna-principal .cta-titulo {
  margin: 0 0 14px; color: #000;
  font-size: 2rem; font-weight: 800; line-height: 1.3;
}
.coluna-principal .cta-descricao {
  margin: 0 auto 24px; color: #333;
  font-size: 1.125rem; line-height: 1.7;
  max-width: 720px;
}
.coluna-principal .cta-botao {
  display: inline-block;
  background: #00DC00; color: #fff;
  padding: 16px 44px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 1.125rem;
  border: 2px solid #00b300;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.coluna-principal .cta-botao:hover {
  background: #00c400;
  box-shadow: 0 12px 26px rgba(0,220,0,0.45);
  transform: translateY(-1px);
}
.coluna-principal .cta-botao:active { transform: translateY(0); box-shadow: 0 8px 18px rgba(0,220,0,0.3); }
.coluna-principal .cta-botao:focus-visible {
  outline: 3px solid rgba(0,220,0,0.35); outline-offset: 3px;
}

/* ========================================
   RESPONSIVO - AJUSTES FINAIS
   ======================================== */
@media (max-width: 600px) {
  :root { --gutter-m: 20px; }

  .cards-grid { grid-template-columns: 1fr; }

  /* Unifica o gutter da CTA no mobile e evita recuos diferentes */
  .cta-container,
  .coluna-principal .cta-container {
    padding: 20px var(--gutter-m) !important;
  }

  .coluna-principal .cta-titulo { font-size: 1.5rem; }
  .coluna-principal .cta-descricao { font-size: 1rem; }
  .coluna-principal .cta-botao {
    padding: 14px 30px; font-size: 1rem;
  }
}
