@font-face { font-family: "Sora"; src: url("/assets/fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --brand: #5b2bc9;
  --brand-dark: #44199e;
  --brand-soft: #f1ebff;
  --green: #4cb52a;
  --green-dark: #3a8f1f;
  --green-light: #9be86a;
  --green-soft: #eaf8e2;
  --night: #1a1033;
  --ink: #1a1033;
  --text: #34304a;
  --muted: #6b6684;
  --line: #ebe6f5;
  --bg: #ffffff;
  --bg-alt: #f8f5ff;
  --radius: 8px;
  --shadow: 0 2px 6px rgba(26, 16, 51, .05), 0 12px 32px rgba(26, 16, 51, .08);
  --font: "Sora", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; color: var(--ink); line-height: 1.25; margin: 0 0 .5em; text-wrap: balance; letter-spacing: -.02em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* ---------- cabecalho */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .dropdown summary { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 6px; cursor: pointer; transition: color .15s; }
.nav > a:hover, .dropdown summary:hover, .nav > a[aria-current] { color: var(--brand); }
.dropdown { position: relative; }
.dropdown summary { list-style: none; }
.dropdown summary::-webkit-details-marker { display: none; }
.dropdown summary::after { content: ""; display: inline-block; margin-left: 6px; border: 5px solid transparent; border-top-color: currentColor; transform: translateY(3px); }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); padding: 6px; min-width: 280px; }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.dropdown-menu a:hover { background: var(--brand-soft); color: var(--brand); }
.nav-search { display: inline-flex; align-items: center; gap: 6px; }
.nav > a.nav-search { background: var(--brand); color: #fff; width: 40px; height: 40px; padding: 0; justify-content: center; margin-left: 6px; }
.nav > a.nav-search:hover { background: var(--brand-dark); color: #fff; }
.nav-search-label { display: none; }
.nav-toggle, .nav-btn { display: none; }

@media (max-width: 1060px) {
  .header-inner { min-height: 64px; }
  .logo img { height: 34px; }
  .nav-btn { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; }
  .nav-btn span, .nav-btn span::before, .nav-btn span::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; transition: transform .2s; }
  .nav-btn span::before { position: absolute; top: -6px; }
  .nav-btn span::after { position: absolute; top: 6px; }
  .nav-toggle:checked + .nav-btn span { background: transparent; }
  .nav-toggle:checked + .nav-btn span::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked + .nav-btn span::after { transform: translateY(-6px) rotate(-45deg); }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: var(--shadow); max-height: calc(100vh - 64px); overflow-y: auto; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav > a, .dropdown summary { padding: 12px 14px; font-size: 16px; border-radius: 12px; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav > a.nav-search { width: auto; height: auto; padding: 12px 14px; margin: 6px 0 0; justify-content: flex-start; }
  .nav-search-label { display: inline; }
}

/* ---------- busca */
.hero-search { display: flex; max-width: 640px; background: #fff; border-radius: 8px; padding: 6px; border: 2px solid var(--line); transition: border-color .15s; }
.hero-search:focus-within { border-color: var(--brand); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 10px 16px; font: inherit; font-size: 16px; color: var(--ink); background: transparent; border-radius: 999px; }
.hero-search input:focus { outline: none; }
.hero-search button { border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 700; padding: 10px 24px; border-radius: 6px; cursor: pointer; }
.hero-search button:hover { background: var(--brand-dark); }
.search-page { margin: 18px 0 0; }
/* ---------- blocos e cards */
.block { padding-top: 48px; padding-bottom: 8px; }
.block-first { padding-top: 28px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.block-title { font-size: clamp(20px, 2.4vw, 24px); margin: 0; }
.block-head { border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.block > .block-title { margin-bottom: 22px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.more { font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; color: var(--brand); }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.latest { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.latest-list { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 900px) { .latest { grid-template-columns: 1fr; } }

.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; transition: transform .2s; }
.card-img { display: block; aspect-ratio: 16 / 10; background: var(--brand-soft); overflow: hidden; border-radius: var(--radius); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px 2px 4px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 17px; line-height: 1.35; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--brand); }
.card-excerpt { margin: 0; color: var(--muted); font-size: 16px; }
.card .meta { margin-top: auto; }
.card-lg .card-title { font-size: clamp(22px, 2.8vw, 30px); line-height: 1.2; }
.card-lg .card-body { padding-top: 18px; }
.card-row { flex-direction: row; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); border-radius: 0; }
.card-row:last-child { border-bottom: 0; padding-bottom: 0; }
.card-row .card-img { flex: 0 0 36%; aspect-ratio: 4 / 3; border-radius: 6px; }
.card-row .card-body { padding: 0; gap: 6px; }
.card-row .card-title { font-size: 15px; }
.card-row .meta { font-size: 13px; }
.badge { align-self: flex-start; display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--brand); }
.badge:hover { color: var(--brand-dark); text-decoration: underline; }
.meta { color: var(--muted); font-size: 14px; margin: 0; }

/* faixa escura */
.band { margin-top: 60px; padding: 48px 0; background: var(--night); color: #d8d2ee; }
.band-title { color: #fff; font-size: clamp(22px, 3vw, 28px); margin-bottom: 24px; }
.rank { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rank li { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid rgba(255, 255, 255, .15); padding: 16px 0 0; }
.rank-n { flex: none; width: 32px; color: var(--green-light); font-weight: 800; font-size: 28px; line-height: 1; }
.rank-cat { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--green-light); text-decoration: none; margin-bottom: 4px; }
.rank-title { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.4; }
.rank-title:hover { color: var(--green-light); }
@media (max-width: 1000px) { .rank { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rank { grid-template-columns: 1fr; } }

/* ---------- post */
.post { padding-bottom: 16px; }
.post-head { padding-top: 32px; }
.post-head .badge { margin-bottom: 12px; }
.post-head h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; margin-bottom: 14px; }
.post-meta { font-size: 15px; }
.author-link { font-weight: 600; }
.author-head { text-align: center; }
.author-photo { display: block; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 16px auto; }
.author-initial { background: #5B2BC9; color: #fff; font-size: 52px; font-weight: 700; line-height: 120px; text-align: center; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.post-cover { margin-top: 24px; margin-bottom: 8px; }
.post-cover img { width: 100%; border-radius: var(--radius); }

.toc { margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; }
.toc summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); padding: 12px 0; }
.toc ol { margin: 0 0 14px; padding-left: 20px; }
.toc li { margin: 5px 0; font-size: 15px; }
.toc li::marker { color: var(--brand); font-weight: 700; }
.toc .toc-3 { margin-left: 16px; list-style: circle; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--brand); }

.prose { font-size: 17px; line-height: 1.8; overflow-wrap: break-word; }
.prose > * { margin-top: 0; margin-bottom: 1.15em; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose h3 { font-size: 23px; margin-top: 1.4em; }
.prose h4 { font-size: 19px; margin-top: 1.2em; }
.prose a { text-decoration-color: var(--green); text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--green); font-weight: 700; }
.prose img { border-radius: var(--radius); margin: 1.4em auto; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { text-align: center; color: var(--muted); font-size: 14px; }
.prose blockquote { margin: 1.5em 0; padding: 16px 22px; border-left: 5px solid var(--green); background: var(--green-soft); border-radius: 0 16px 16px 0; color: var(--ink); }
.prose strong, .prose b { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--brand); color: #fff; }
.prose tr:nth-child(even) td { background: var(--bg-alt); }
.prose tr:last-child td { border-bottom: 0; }
.prose .faq { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 4px; margin-bottom: 14px; background: var(--bg-alt); }
.prose .faq h3 { font-size: 19px; margin: 0 0 8px; }
.prose .faq p { margin: 0 0 12px; font-size: 17px; }

.yt { margin: 1.5em 0; }
.yt button { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; background: #000; }
.yt button img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; opacity: .85; }
.yt button::after { content: ""; position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 12px; background: #e00 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 30px no-repeat; }
.yt iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }

.tags { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: inline-block; font-size: 13px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 4px; }
.tags a:hover { border-color: var(--brand); color: var(--brand); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 28px 0 8px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.share span { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); margin-right: 4px; }
.share a, .share button { font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; color: #fff; padding: 8px 14px; border-radius: 6px; border: 0; cursor: pointer; }
.s-wa { background: #1f9d55; } .s-fb { background: #1877f2; } .s-x { background: #111; } .s-pin { background: #c8232c; }
.s-copy { background: var(--brand); }
.share a:hover, .share button:hover { color: #fff; filter: brightness(1.1); }
.related { padding-top: 40px; }

/* ---------- listas */
.list-head { margin-bottom: 28px; padding: 8px 0 18px; border-bottom: 2px solid var(--ink); }
.list-head h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 0; }
.list-intro { color: var(--muted); margin: 8px 0 0; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 40px 0 12px; }
.pager a, .pager span { min-width: 44px; text-align: center; padding: 9px 15px; border-radius: 6px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.pager a:hover { border-color: var(--brand); background: var(--brand-soft); }
.pager span[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- contato */
.contact-form { display: grid; gap: 16px; margin: 8px 0 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; font-size: 15px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.contact-form button { justify-self: start; border: 0; background: var(--green); color: #fff; font: inherit; font-weight: 700; padding: 13px 28px; border-radius: 6px; cursor: pointer; }
.contact-form button:hover { background: var(--green-dark); }
.hp { position: absolute; left: -9999px; }

/* ---------- rodape */
.site-footer { margin-top: 72px; background: var(--night); color: #c4bddb; font-size: 15px; position: relative; }

.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-about p { margin: 0; font-size: 14px; line-height: 1.7; max-width: 300px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.site-footer h2 { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.site-footer a { color: #c4bddb; text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--green-light); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; padding-bottom: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-bottom p { margin: 0; font-size: 14px; }
.footer-note { color: #8d86a8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- aviso de cookies */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 580px; margin: 0 auto; display: flex; align-items: center; gap: 14px; background: var(--night); color: #e6e2f2; padding: 14px 16px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cookie a { color: var(--green-light); }
.cookie button { border: 0; background: var(--green); color: #fff; font: inherit; font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.cookie .cookie-no { background: transparent; color: #e6e2f2; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
@media (max-width: 600px) { .cookie { flex-direction: column; align-items: stretch; } .cookie-actions { justify-content: stretch; } .cookie button { flex: 1; } }

/* ---------- anuncios (Ad Manager) */
.ad { display: flex; justify-content: center; align-items: center; min-height: 100px; margin: 36px auto 28px; position: relative; }
.ad::before { content: "Publicidade"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
main > .ad { max-width: 1180px; padding: 0 16px; }
.prose .ad { min-height: 280px; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 25px; }
  .prose h3 { font-size: 20px; }
  .hero-lead { font-size: 17px; }
  .hero-search button { padding: 10px 16px; }
  .card-row .card-img { flex-basis: 34%; }

  .band { padding: 36px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
