/* =========================================================
   Painel de LED RJ — CSS próprio (mobile-first, sem framework)
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --c-ink: #111827;
  --c-ink-2: #54595F;
  --c-ink-3: #7A7A7A;
  --c-accent: #6853DB;
  --c-accent-ink: #FFFFFF;
  --c-accent-soft: #EFEBFB;
  --c-surface: #FFFFFF;
  --c-surface-2: #F6F7F1;
  --c-line: #E3E5EA;
  --c-dark: #111827;
  --c-dark-2: #1B2238;
  --c-on-dark: #FFFFFF;
  --c-on-dark-2: #B4B9C6;
  --c-wa: #1FAF5A;
  --c-error: #C0392B;
  --c-ok: #1E8E4A;
  --c-link: #5641CB;
  --c-blue: #4054B2;
  --c-blue-logo: #1285CC;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-0: 0.875rem;
  --fs-1: 1.0625rem;
  --fs-2: 1.25rem;
  --fs-3: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
  --fs-4: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --fs-5: clamp(2.125rem, 1.4rem + 2.8vw, 3.5rem);

  --r-1: 6px;
  --r-2: 12px;
  --r-3: 20px;

  --w-content: 760px;
  --w-wide: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(3rem, 7vw, 6rem);
  --header-h: 64px;

  --shadow-1: 0 1px 2px rgba(11, 18, 32, .06), 0 8px 24px -12px rgba(11, 18, 32, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Fonte (self-hosted, variável, subset latin) ---------- */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-1);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--fs-5); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-4); font-weight: 800; }
h3 { font-size: var(--fs-3); font-weight: 700; }
h4 { font-size: var(--fs-2); font-weight: 700; }
p, ul, ol, dl, table, figure { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .35em; }
strong { font-weight: 700; }
small, .small { font-size: var(--fs-0); }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2rem 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 2px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--c-ink); color: #fff; padding: .5rem .75rem; z-index: 1000; border-radius: var(--r-1); }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--w-content) + 2 * var(--gutter)); }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--alt { background: var(--c-surface-2); }
.section--dark { background: var(--c-dark); color: var(--c-on-dark); }
.section--dark a:not(.btn) { color: #fff; }
.section-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.section-head p { color: var(--c-ink-2); font-size: var(--fs-2); margin: 0; }
.section--dark .section-head p { color: var(--c-on-dark-2); }
.eyebrow { display: inline-block; font-size: var(--fs-0); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-blue); margin-bottom: .75rem; }
.section--dark .eyebrow { color: #A99BF0; }
.lead { font-size: var(--fs-2); color: var(--c-ink-2); }
.muted { color: var(--c-ink-3); }
.grid { display: grid; gap: clamp(1rem, 2.5vw, 2rem); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.stack > * + * { margin-top: 1rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.25rem; border-radius: var(--r-2);
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-accent); color: var(--c-accent-ink); }
.btn--primary:hover { background: #5641CB; color: #fff; }
.btn--ghost { background: transparent; color: var(--c-ink); border-color: var(--c-line); }
.btn--ghost:hover { border-color: var(--c-ink); color: var(--c-ink); }
.section--dark .btn--ghost, .hero--dark .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.section--dark .btn--ghost:hover, .hero--dark .btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--wa { background: var(--c-wa); color: #fff; }
.btn--wa:hover { background: #178F49; color: #fff; }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--c-ink); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand img { height: 36px; width: auto; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__mark img { width: 36px; height: 36px; }
.brand__text span { display: block; font-size: .72rem; font-weight: 600; color: var(--c-ink-3); letter-spacing: .02em; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--c-line); background: #fff; border-radius: var(--r-1); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.site-nav { display: none; }
.site-nav[data-open="true"] { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow-1); padding: .5rem var(--gutter) 1rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: .7rem .25rem; color: var(--c-ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--c-line); }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { color: var(--c-link); }
.site-nav .menu-item-has-children > a::after { content: ""; }
.site-nav .sub-menu { list-style: none; margin: 0; padding: 0 0 0 1rem; }
.site-nav .sub-menu a { font-weight: 500; font-size: .95rem; }
.header-cta { display: none; }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; }
  .site-nav ul { flex-direction: row; align-items: center; gap: .15rem; }
  .site-nav a { padding: .5rem .65rem; border: 0; font-size: .95rem; border-radius: var(--r-1); }
  .site-nav a:hover { background: var(--c-surface-2); }
  .site-nav .menu-item-has-children { position: relative; }
  .site-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-2); box-shadow: var(--shadow-1); padding: .4rem; z-index: 60; }
  .site-nav .menu-item-has-children:hover > .sub-menu, .site-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
  .site-nav .sub-menu a { padding: .55rem .7rem; }
  .header-cta { display: inline-flex; min-height: 42px; padding: .5rem 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); }
.hero--dark { background: linear-gradient(135deg, #111827 0%, #151D33 100%); color: var(--c-on-dark); }
.hero__inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hero__text > * + * { margin-top: 1.1rem; }
.hero h1 { margin: 0; }
.hero__sub { font-size: var(--fs-2); color: var(--c-ink-2); max-width: 36rem; }
.hero--dark .hero__sub { color: var(--c-on-dark-2); }
.hero__b2b { font-size: var(--fs-0); color: var(--c-ink-3); display: flex; gap: .5rem; align-items: flex-start; max-width: 36rem; }
.hero--dark .hero__b2b { color: var(--c-on-dark-2); }
.hero__b2b svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; }
.hero__figure { margin: 0; position: relative; }
.hero__figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-3); background: var(--c-dark-2); }
.hero__figure figcaption { margin-top: .6rem; font-size: var(--fs-0); color: var(--c-ink-3); }
.hero--dark .hero__figure figcaption { color: var(--c-on-dark-2); }
.hero__placeholder { aspect-ratio: 3 / 2; border-radius: var(--r-3); background: linear-gradient(160deg, #131C2E, #0B1220); border: 1px dashed rgba(255,255,255,.25); display: grid; place-items: center; color: var(--c-on-dark-2); font-size: var(--fs-0); text-align: center; padding: 1rem; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.05fr 1fr; }
  .hero__figure img { aspect-ratio: 3 / 2; }
}
.hero--page { padding-block: clamp(1.5rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); }
.hero--page .hero__inner { grid-template-columns: 1fr; }
@media (min-width: 900px) { .hero--page .hero__inner { grid-template-columns: 1.15fr .85fr; } }

/* ---------- Fatos / faixa ---------- */
.facts { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.facts li { padding: 1rem 1.1rem; border: 1px solid var(--c-line); border-radius: var(--r-2); background: #fff; }
.facts strong { display: block; font-size: 1.05rem; margin-bottom: .2rem; }
.facts span { color: var(--c-ink-2); font-size: .95rem; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .facts { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-3); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.card:hover { border-color: var(--c-ink-3); transform: translateY(-2px); text-decoration: none; }
.card__media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--c-surface-2); }
.card__media--empty { aspect-ratio: 16 / 10; background: linear-gradient(160deg, #131C2E, #0B1220); }
.card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .4rem; }
.card h3 { margin: 0; font-size: 1.15rem; }
.card p { margin: 0; color: var(--c-ink-2); font-size: .97rem; }
.card__link { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--c-link); font-size: .95rem; }
.card--plain { padding: 1.25rem 1.3rem; gap: .5rem; }
.card--plain h3 { font-size: 1.1rem; }
.section--dark .card { background: var(--c-dark-2); border-color: rgba(255,255,255,.12); color: #fff; }
.section--dark .card p { color: var(--c-on-dark-2); }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.25rem; border: 1px solid var(--c-line); border-radius: var(--r-2); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table-wrap table { margin: 0; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
th { background: var(--c-surface-2); font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { border: 1px solid var(--c-line); border-radius: var(--r-2); }

/* ---------- Passos ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { position: relative; padding: 1.1rem 1.2rem 1.2rem 3.6rem; border: 1px solid var(--c-line); border-radius: var(--r-2); background: #fff; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 1.1rem; top: 1.05rem; font-weight: 800; color: var(--c-blue); font-size: 1.1rem; }
.steps strong { display: block; margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--c-ink-2); font-size: .97rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- FAQ (details nativo) ---------- */
.faq { border-top: 1px solid var(--c-line); }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 2.5rem 1rem 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--c-ink); border-bottom: 2px solid var(--c-ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > *:not(summary) { padding-bottom: 1rem; color: var(--c-ink-2); }
.faq details p:last-child { margin-bottom: 0; }
.wp-block-details { border-bottom: 1px solid var(--c-line); margin: 0; }
.pled-faq .wp-block-details summary { list-style: none; cursor: pointer; padding: 1rem 2.5rem 1rem 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.pled-faq .wp-block-details summary::-webkit-details-marker { display: none; }
.pled-faq .wp-block-details summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--c-ink); border-bottom: 2px solid var(--c-ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.pled-faq .wp-block-details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.pled-faq .wp-block-details > *:not(summary) { padding-bottom: 1rem; color: var(--c-ink-2); }
.pled-faq { border-top: 1px solid var(--c-line); margin-bottom: 1.5rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, #111827 0%, #1B2238 100%); color: #fff; border-radius: var(--r-3); padding: clamp(1.75rem, 4vw, 3rem); display: grid; gap: 1.25rem; }
.cta-band h2 { margin: 0 0 .35rem; font-size: var(--fs-3); }
.cta-band p { margin: 0; color: var(--c-on-dark-2); max-width: 40rem; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr auto; align-items: center; } }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: var(--fs-0); color: var(--c-ink-3); margin-bottom: 1rem; }
.crumbs a { color: var(--c-ink-3); }
.crumbs ol, .crumbs span.breadcrumb_last { display: inline; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--c-ink-3); }
.hero--dark .crumbs, .hero--dark .crumbs a { color: var(--c-on-dark-2); }

/* ---------- Prosa (conteúdo do editor) ---------- */
.prose > * { margin-left: auto; margin-right: auto; }
.prose > :where(:not(.alignwide):not(.alignfull):not(.is-layout-flex):not(.pled-wide)) { max-width: var(--w-content); }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose .alignwide, .prose .pled-wide { max-width: var(--w-wide); }
.prose figure img { border-radius: var(--r-2); }
.prose figcaption { font-size: var(--fs-0); color: var(--c-ink-3); margin-top: .5rem; }
.prose blockquote { margin: 1.5rem auto; padding: 1rem 1.25rem; border-left: 4px solid var(--c-blue); background: var(--c-surface-2); border-radius: var(--r-1); }
.prose .wp-block-buttons { margin-top: 1.5rem; }
.prose .wp-block-button__link { border-radius: var(--r-2); font-weight: 700; padding: .75rem 1.25rem; background: var(--c-accent); color: var(--c-accent-ink); }
.prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--c-ink); border: 2px solid var(--c-line); }
.prose .wp-block-columns { gap: 2rem; }
.prose .wp-block-group.has-background { padding: 1.5rem; border-radius: var(--r-2); }
.prose .wp-block-image { margin-block: 1.5rem; }
.answer { background: var(--c-accent-soft); border-left: 4px solid var(--c-blue); padding: 1rem 1.25rem; border-radius: var(--r-1); margin-block: 1.25rem; }
.answer p:last-child { margin-bottom: 0; }
.answer strong:first-child { display: block; margin-bottom: .3rem; font-size: var(--fs-0); text-transform: uppercase; letter-spacing: .06em; color: var(--c-blue); }

/* ---------- Formulário ---------- */
.form { display: grid; gap: 1rem; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 1rem; }
.form legend { font-weight: 800; font-size: 1.1rem; margin-bottom: .5rem; padding: 0; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field label .req { color: var(--c-error); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .7rem .85rem; border: 1px solid #C5CDD8; border-radius: var(--r-1); background: #fff; color: var(--c-ink); min-height: 48px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--c-accent); outline-offset: 1px; border-color: var(--c-accent); }
.field .hint { font-size: var(--fs-0); color: var(--c-ink-3); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--c-error); }
.field__error { font-size: var(--fs-0); color: var(--c-error); font-weight: 600; }
.field__error:empty { display: none; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: repeat(2, 1fr); } }
.form__msg { padding: 1rem 1.1rem; border-radius: var(--r-2); font-weight: 600; }
.form__msg:empty { display: none; }
.form__msg--ok { background: #E8F7EE; color: var(--c-ok); }
.form__msg--error { background: #FDECEA; color: var(--c-error); }
.form__b2b { font-size: var(--fs-0); color: var(--c-ink-2); background: var(--c-surface-2); padding: .85rem 1rem; border-radius: var(--r-1); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { font-size: var(--fs-0); color: var(--c-ink-2); display: flex; gap: .5rem; align-items: flex-start; }
.form__consent input { width: 18px; height: 18px; margin-top: .2rem; flex: none; }
.form__success { padding: 1.5rem; background: #E8F7EE; border-radius: var(--r-2); }
.form__success h3 { color: var(--c-ok); }
.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-3); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-1); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Especificações (cases) ---------- */
.spec { display: grid; gap: .6rem; margin: 0; grid-template-columns: repeat(2, 1fr); }
.spec > div { background: var(--c-surface-2); border-radius: var(--r-1); padding: .75rem .85rem; }
.spec dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-ink-3); font-weight: 700; }
.spec dd { margin: .15rem 0 0; font-weight: 700; }
@media (min-width: 760px) { .spec { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Galeria / figuras ---------- */
.figure { margin: 0; }
.figure img { border-radius: var(--r-2); width: 100%; object-fit: cover; aspect-ratio: 3 / 2; background: var(--c-surface-2); }
.figure figcaption { margin-top: .5rem; font-size: var(--fs-0); color: var(--c-ink-3); }
.gallery { display: grid; gap: 1rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gallery--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Contato / canais ---------- */
.channels { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.channels li { display: flex; gap: .75rem; align-items: flex-start; }
.channels svg { width: 22px; height: 22px; flex: none; color: var(--c-blue); margin-top: .1rem; }
.channels a { font-weight: 700; }
.channels span { display: block; color: var(--c-ink-2); font-size: .95rem; }

/* ---------- Rodapé ---------- */
.site-footer { background: #0D1322; color: var(--c-on-dark-2); padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #A99BF0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 .45rem; }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .5rem; display: block; }
.footer-b2b { border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-2); padding: .85rem 1rem; margin-top: 1rem; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: inline-flex; align-items: center; gap: .5rem; background: var(--c-wa); color: #fff; text-decoration: none; font-weight: 700; padding: .7rem .9rem; border-radius: 999px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.4); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float span { display: none; }
@media (min-width: 640px) { .wa-float span { display: inline; } .wa-float { padding: .75rem 1.1rem; } }
.wa-float:hover { background: #178F49; color: #fff; text-decoration: none; }

/* ---------- Revelação sutil (apenas opacity/transform, com fallback) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------- Página 404 / utilitários ---------- */
.page-404 { text-align: center; padding-block: var(--section); }
.list-inline { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--c-accent-soft); color: var(--c-link); }
.section--dark .tag { background: rgba(255,255,255,.1); color: #fff; }
.entry-meta { font-size: var(--fs-0); color: var(--c-ink-3); }
.post-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.archive-list { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .archive-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .archive-list { grid-template-columns: repeat(3, 1fr); } }
.pagination { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--c-line); border-radius: var(--r-1); text-decoration: none; color: var(--c-ink); padding: 0 .5rem; }
.pagination .page-numbers.current { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
@media print { .site-header, .wa-float, .site-footer, .cta-band { display: none !important; } }

/* ---------- Equivalente aos estilos core de paragraph/details (não enfileirados) ---------- */
.is-small-text { font-size: .875em; } .is-regular-text { font-size: 1em; } .is-large-text { font-size: 2.25em; } .is-larger-text { font-size: 3em; }
.has-drop-cap:not(:focus)::first-letter { float: left; font-size: 8.4em; font-style: normal; font-weight: 100; line-height: .68; margin: .05em .1em 0 0; text-transform: uppercase; }
p.has-background { padding: 1.25em 2.375em; }
.wp-block-details { box-sizing: border-box; overflow: hidden; } .wp-block-details summary { cursor: pointer; }

/* ---------- Seções dentro do conteúdo do editor ---------- */
.prose > .pled-wide + .pled-wide { margin-top: var(--section); }
.prose > .pled-wide > h2:first-child { margin-top: 0; }
.prose > .pled-wide > .grid, .prose > .pled-wide > .facts, .prose > .pled-wide > .steps { margin-top: 1.5rem; }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn--ghost:hover { border-color: #fff; color: #fff; }
.wp-block-table table { table-layout: auto; min-width: 640px; }
.wp-block-table.is-style-compact table { min-width: 0; }
@media (min-width: 900px) { .wp-block-table table { min-width: 0; } }

/* ---------- Ajustes finos de tabela/passos ---------- */
.wp-block-table thead { border-bottom: 1px solid var(--c-line); }
.wp-block-table tfoot { border-top: 1px solid var(--c-line); }
.prose > .pled-wide > .steps + p, .prose > .pled-wide > .facts + p, .prose > .pled-wide > .grid + p { margin-top: 1.25rem; }
