/* ==========================================================================
   Academia das Finanças — Estilo 2026 (out/2026)
   Fica POR CIMA do main.css (não o substitui). Para voltar atrás basta
   desligar o mu-plugin academia-estilo-2026.php.
   Letra: Figtree · Fundo branco · Azul-marinho do logo · Dourado do logo
   ========================================================================== */

:root {
  --af-navy: #081838;
  --af-navy-deep: #06122b;
  --af-gold: #b98a3f;
  --af-gold-hover: #a8782f;
  --af-canvas: #ffffff;
  --af-warm-grey: #f5f7fa;
  --af-text-primary: #081838;
  --af-text-secondary: #344158;
  --af-text-muted: #5b6576;
  --af-text-tagline: #8a93a3;
  --af-border: #e3e7ee;
  --af-font-serif: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --af-font-sans: 'Figtree', 'Helvetica Neue', Arial, sans-serif;

  --adf-gold-grad: linear-gradient(135deg, #a8782f 0%, #d9ab62 55%, #b98a3f 100%);
  --adf-gold-text: #a8782f;
  --adf-soft: #f5f7fa;
  --adf-line: #e3e7ee;
  --adf-radius: 14px;
  --adf-navy: #081838;
  --adf-paper: #ffffff;
}

/* ---------- Letra ---------- */
html body,
body button, body input, body select, body textarea,
body h1, body h2, body h3, body h4, body h5, body h6,
body p, body a, body li, body td, body th, body label, body blockquote, body blockquote p,
body .af-masthead__logo, body .af-hero__title, body .af-carousel-title, body .af-carousel__title,
body .af-ranked__title, body .af-ranked__item::before, body .af-tools__title, body .af-single__title,
body .af-archive__title, body .af-card__title, body .af-footer__brand-logo, body .af-footer h4,
body .af-drawer__title, body .adf-share-label, body .comments-title, body #reply-title,
body .af-briefing-featured-title, body .quiz-intro-title, body .hero-stat-num, body .big-quote,
body .yes-card h3, body .pillar-num, body .legal-content h3, body .adf-fb-follow-text strong,
body .af-retencao-head h2, body .af-newsletter-box h2,
body .adf-home-gateway h2, body .adf-home-gateway-card strong {
  font-family: 'Figtree', 'Helvetica Neue', Arial, sans-serif !important;
}
body { color: #1b2536; -webkit-font-smoothing: antialiased; }
body h1, body h2, body h3, body h4,
body .af-hero__title, body .af-carousel-title, body .af-carousel__title, body .af-single__title,
body .af-archive__title, body .af-card__title, body .af-ranked__title, body .af-tools__title,
body .adf-home-gateway h2, body .adf-home-gateway-card strong, body .af-briefing-featured-title {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
}
body .af-hero__title { font-size: clamp(28px, 3.2vw, 40px) !important; line-height: 1.12 !important; }
body .af-single__title { line-height: 1.12 !important; }
body .af-carousel__title { font-size: 17px !important; line-height: 1.3 !important; }

/* ---------- Fundos: branco em vez de creme ---------- */
html body, body .af-main, body .af-hero, body .af-single, body .af-archive { background: #ffffff !important; }
body .af-ranked-section,
body .af-single__content blockquote, body .af-single__content th,
body .adf-share, body .adf-share-top,
body .comment-list li.comment, body .comment-respond, body .no-comments,
body .error-card, body .legal-box, body .af-retencao-card { background: var(--adf-soft) !important; }
body .adf-home-gateway-card:not(.adf-home-gateway-card--primary) { background: var(--adf-soft) !important; }

/* ---------- Menos MAIÚSCULAS espaçadas ---------- */
body .af-hero__kicker, body .af-carousel__kicker, body .af-single__kicker, body .af-card__kicker {
  display: inline-block !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--af-navy) !important;
  border: 1px solid #d5dbe5;
  border-radius: 999px;
  padding: 3px 10px;
}
body .af-carousel-link, body .af-tools__label, body .af-briefing-label, body .af-briefing-count,
body .af-briefing-featured-tag, body .af-briefing-sub-label, body .af-briefing-ant-date,
body .adf-home-gateway-kicker, body .adf-home-gateway-card em,
body .af-retencao-eyebrow, body .af-retencao-card span,
body .af-newsletter-eyebrow, body .af-newsletter-label,
body .adf-article-summary__label, body .adf-related-card span, body .section-tag {
  text-transform: none !important;
  letter-spacing: 0 !important;
}
body .af-carousel-link, body .adf-home-gateway-card em, body .adf-home-gateway-kicker,
body .adf-article-summary__label, body .adf-related-card span { color: var(--adf-gold-text) !important; font-weight: 700 !important; }

/* ---------- Cantos arredondados ---------- */
body .af-hero__slide-img, body .af-carousel__card img, body .af-card img,
body .af-single__hero img, body .af-single .wp-post-image { border-radius: var(--adf-radius) !important; }
body .adf-home-gateway-card, body .af-retencao-card, body .af-newsletter-box,
body .adf-home-gateway { border-radius: var(--adf-radius) !important; }

/* ---------- Botões no dourado do logo ---------- */
body .af-briefing-cta, body .af-newsletter-row button, body .af-retencao-bar a:first-child,
body .form-submit .submit, body .adf-nav-cta {
  background: var(--adf-gold-grad) !important;
  color: var(--af-navy) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
}

/* ==========================================================================
   CABEÇALHO NOVO (header.php)
   ========================================================================== */
body .af-topbar, body .af-masthead { display: none !important; }
body .af-nav {
  background: #ffffff !important;
  border: 0 !important;
  position: sticky;
  top: 0;
  z-index: 60;
}
body.admin-bar .af-nav { top: 32px; }
body .af-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex !important;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  padding: 0 24px !important;
}
.adf-brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; flex: 0 0 auto; }
.adf-brand img { height: 32px; width: auto; display: block; }
.adf-brand span { color: var(--af-navy); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
body .af-nav__list { display: flex !important; gap: 2px !important; margin: 0 0 0 auto !important; }
body .af-nav__list > li > a {
  white-space: nowrap !important;
  text-transform: none !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  padding: 8px 11px !important;
  color: var(--af-navy) !important;
}
body .af-nav__list > li > a:hover, body .af-nav__list > li.current-menu-item > a { color: var(--adf-gold-text) !important; }
body .af-nav__list .sub-menu { background: #fff !important; border: 1px solid var(--adf-line) !important; border-radius: 12px !important; box-shadow: 0 12px 30px rgba(8,24,56,.10) !important; }
body .af-nav__list .sub-menu li > a { color: var(--af-navy) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 14.5px !important; font-weight: 500 !important; }
body .af-nav__list .sub-menu li > a:hover { color: var(--adf-gold-text) !important; background: var(--adf-soft) !important; }
.adf-nav-cta { flex: 0 0 auto; font-size: 14.5px; padding: 10px 18px; text-decoration: none !important; white-space: nowrap; }
body .af-nav__toggle { display: none !important; color: var(--af-navy) !important; text-transform: none !important; letter-spacing: 0 !important; font-weight: 600 !important; font-size: 15px !important; background: transparent !important; border: 0 !important; }

@media (max-width: 1100px) {
  body .af-nav__list, .af-nav__inner .adf-nav-cta { display: none !important; }
  body .af-nav__inner { min-height: 58px; padding: 0 16px !important; gap: 12px; }
  .adf-brand img { height: 26px; }
  .adf-brand span { font-size: 16px; }
  body .af-nav__toggle { display: inline-flex !important; align-items: center; gap: 6px; margin-left: auto; padding: 8px 0 !important; }
}
@media (max-width: 380px) { .adf-brand span { font-size: 15px; } }

/* Menu do telemóvel */
body .af-drawer { background: var(--af-navy) !important; }
body .af-drawer__title { color: #d9ab62 !important; letter-spacing: 0 !important; font-weight: 700 !important; }
body .af-drawer li a { text-transform: none !important; letter-spacing: 0 !important; font-size: 16px !important; font-weight: 500 !important; color: #fff !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; }
body .af-drawer .sub-menu li a { font-size: 15px !important; }
body .af-drawer .sub-menu { border-left-color: #d9ab62 !important; }
.adf-drawer-cta { display: block !important; text-align: center; margin-top: 20px; padding: 12px 18px !important; }

/* ---------- Barra "Começa por aqui" ---------- */
body .af-startbar {
  background: #ffffff !important;
  border-top: 2px solid var(--af-navy) !important;
  border-bottom: 2px solid var(--af-navy) !important;
  font-family: 'Figtree', Arial, sans-serif !important;
}
body .af-startbar .af-container { display: flex; align-items: center; gap: 22px; min-height: 44px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
body .af-startbar .af-container::-webkit-scrollbar { display: none; }
body .af-startbar a { text-decoration: none !important; flex: 0 0 auto; font-size: 14.5px; }
@media (max-width: 600px) { body .af-startbar .af-container { gap: 16px; } }
body .af-startbar a { display: inline-flex !important; align-items: center; gap: 7px; color: var(--af-navy) !important; font-weight: 600 !important; }
body .af-startbar a svg { color: var(--adf-gold-text); flex: 0 0 auto; }
body .af-startbar a:hover { color: var(--adf-gold-text) !important; }
body .af-startbar a.af-startbar__cta {
  background: var(--adf-gold-grad) !important;
  color: var(--af-navy) !important;
  border-radius: 999px !important;
  padding: 5px 14px !important;
  font-weight: 700 !important;
}
body .af-startbar a.af-startbar__cta svg { color: var(--af-navy); }
body .af-startbar__label, body .af-startbar__sep { display: none !important; }

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */
/* Caixa de ferramentas (clara) */
body .af-hero__aside.af-briefing-aside {
  background: #ffffff !important;
  border: 1px solid var(--adf-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(8,24,56,.08) !important;
  color: var(--af-navy) !important;
}
body .af-briefing-aside * { border-color: #e9edf3 !important; }
body .af-briefing-label { display: inline-flex !important; align-items: center; gap: 8px; font-size: 15px !important; font-weight: 700 !important; color: var(--adf-gold-text) !important; }
body .af-briefing-count { color: var(--af-text-muted) !important; background: var(--adf-soft) !important; }
body .af-briefing-featured-tag, body .af-briefing-ant-date, body .af-briefing-arquivo,
body .af-briefing-newsletter a, body .af-briefing-news-icon { color: var(--adf-gold-text) !important; }
body .af-briefing-featured-title a, body .af-briefing-ant-title, body .af-briefing-newsletter strong { color: var(--af-navy) !important; }
body .af-briefing-anteriores li a:hover .af-briefing-ant-title { color: var(--adf-gold-text) !important; }
body .af-briefing-featured-excerpt, body .af-briefing-sub-label { color: var(--af-text-muted) !important; }
body .af-briefing-newsletter { background: var(--adf-soft) !important; border-radius: 12px !important; }
body .af-briefing-news-icon { display: inline-flex !important; }

/* Mapa rápido */
body .adf-home-gateway-card { border: 1px solid var(--adf-line) !important; }
body .adf-home-gateway-card--primary { background: var(--af-navy) !important; }
.adf-gw-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; background: #eaeef5; color: var(--af-navy); }
.adf-home-gateway-card--primary .adf-gw-icon { background: rgba(217,171,98,.18); color: #d9ab62; }

body .adf-home-gateway-card::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
  background-color: #eaeef5;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}
body .adf-home-gateway-card--primary::before {
  background-color: rgba(217,171,98,.18);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9ab62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2l3 7h7l-5.5 4.5L18.5 21 12 16.5 5.5 21l2-7.5L2 9h7z'/%3E%3C/svg%3E");
}
body .adf-home-gateway-card[href*="investir"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081838' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17l6-6 4 4 8-8'/%3E%3Cpath d='M15 7h6v6'/%3E%3C/svg%3E");
}
body .adf-home-gateway-card[href*="credito"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081838' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21a1 1 0 0 1-1 1h-5v-7H9v7H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
}
body .adf-home-gateway-card[href*="irs"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081838' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2h12v20l-3-2-3 2-3-2-3 2z'/%3E%3Cpath d='M9 7h6M9 11h6M9 15h4'/%3E%3C/svg%3E");
}
body .adf-home-gateway-card[href*="ferramentas"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081838' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2' width='14' height='20' rx='2'/%3E%3Cpath d='M8 6h8M8 11h.01M12 11h.01M16 11h.01M8 15h.01M12 15h.01M16 15h.01M8 19h.01M12 19h.01M16 19h.01'/%3E%3C/svg%3E");
}

/* Mais lidos */
body .af-ranked__item::before { color: var(--adf-gold-text) !important; }

/* ==========================================================================
   ARTIGOS
   ========================================================================== */
html body .af-single__content :where(h2:not([class]):not([style]), h3:not([class]):not([style]), h2.wp-block-heading, h3.wp-block-heading) { color: var(--af-navy) !important; } /* 11/10/2026 fase9k: só títulos normais; antes: body .af-single__content h2, body .af-single__content h3 */
body .af-single__content a { color: #1f4fa3; text-decoration-color: rgba(31,79,163,.35); }
body .af-single__content a:hover { color: var(--af-navy); }
body .af-single__content table { border-radius: 12px; overflow: hidden; }

/* ==========================================================================
   v2 (5/out/2026): caixas creme -> cinzento claro, letra única nas ferramentas
   ========================================================================== */
body .af-single__content :is(div, span, strong, em, small, label, button, h4, h5, td, th, summary, input, select) {
  font-family: 'Figtree', 'Helvetica Neue', Arial, sans-serif !important;
}
body .adf-article-summary {
  background: var(--adf-soft) !important;
  border: 1px solid var(--adf-line) !important;
  border-left: 4px solid #b98a3f !important;
  box-shadow: none !important;
}
body .adf-article-summary__meta li { background: #fff !important; border-color: var(--adf-line) !important; }
body .sch-intro {
  background: var(--adf-soft) !important;
  border-left-color: #b98a3f !important;
  font-style: normal !important;
}
body .sch-privacy-note { background: var(--adf-soft) !important; border-left-color: var(--af-navy) !important; }
body .quiz-intro-title em, body .cr-hero h1 em { font-style: normal !important; }
body .af-single__content :is(.sch-btn, .sch-cta a, .tool-btn, button[class*="btn"]) { border-radius: 999px !important; }

/* ==========================================================================
   v3 (5/out/2026): página Ferramentas com ícones de linha
   ========================================================================== */
body .ferramenta-icon {
  width: 52px !important; height: 52px !important; flex: 0 0 52px !important;
  border-radius: 14px; background: #eaeef5; color: var(--af-navy);
  display: flex !important; align-items: center; justify-content: center;
  font-size: 0 !important;
}
body .ferramenta-icon svg { width: 24px; height: 24px; }
body .ferramenta-card--destaque .ferramenta-icon { background: rgba(217,171,98,.18); color: #a8782f; }
body .ferramenta-card:hover { border-color: #b98a3f !important; }
body .ferramenta-card:hover .ferramenta-icon { background: var(--af-navy); color: #d9ab62; }
body .ferramenta-card--breve .ferramenta-icon { background: #f1f3f6; color: #8a93a3; }
body .ferramenta-arrow { color: #a8782f; }
body .ferramentas-page h2[style] {
  color: var(--af-navy) !important; text-transform: none !important; letter-spacing: -0.01em !important;
  font-size: 1.25rem !important; font-weight: 700 !important;
}
