/* ==========================================================================
   UmChurras — identidade "Brasa"
   Grafite da logo + vermelho do chifre + papel de açougue + brilho de brasa.
   Uma fonte (Archivo variável: largura 62–125 %, peso 100–900).
   ========================================================================== */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-var-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}

:root {
	/* Cores da marca (extraídas da logo) */
	--carvao: #17252b;
	--carvao-2: #0e171b;
	--carvao-3: #22343c;
	--brasa: #c32a33;
	--brasa-d: #9b1f27;
	--ember: #f07a2b;
	--ember-2: #ffb347;
	--papel: #f6f1e7;
	--papel-2: #ece3d3;
	--osso: #fffcf6;
	--texto: #1d2a30;
	--mute: #5b6569;
	--linha: #e0d5c2;
	--ok: #2f7d4f;

	/* Tipografia */
	--f: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fs-xs: .8125rem;
	--fs-s: .9375rem;
	--fs-m: 1.0625rem;
	--fs-l: clamp(1.15rem, 1.05rem + .4vw, 1.3rem);
	--fs-h3: clamp(1.15rem, 1rem + .5vw, 1.35rem);
	--fs-h2: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
	--fs-h1: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
	--fs-hero: clamp(3.2rem, 1.6rem + 7.4vw, 8.4rem);

	/* Espaço (base 4 px) */
	--s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6.5rem;
	--r: 14px;
	--r-s: 8px;
	--wrap: 1240px;
	--shadow: 0 1px 2px rgb(23 37 43 / .06), 0 8px 24px -12px rgb(23 37 43 / .25);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 72px;
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--f); font-size: var(--fs-m); line-height: 1.65; color: var(--texto); background: var(--osso); font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 var(--s4); font-weight: 800; font-stretch: 88%; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--brasa); color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--carvao); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ico { flex: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--mid { max-width: 820px; }
.wrap--wide { max-width: 1120px; }

/* ---------- Botões, selos, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.25em; border-radius: 999px; border: 2px solid transparent; font-weight: 750; font-stretch: 92%; font-size: var(--fs-s); text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--fire { background: var(--brasa); color: #fff; box-shadow: 0 6px 18px -8px rgb(195 42 51 / .7); }
.btn--fire:hover { background: var(--brasa-d); box-shadow: 0 10px 26px -10px rgb(240 122 43 / .9); }
.btn--dark { background: var(--carvao); color: var(--papel); }
.btn--dark:hover { background: var(--carvao-3); }
.btn--ghost { background: transparent; color: var(--papel); border-color: rgb(246 241 231 / .35); }
.btn--ghost:hover { border-color: var(--papel); }
.btn--ghost-dark { background: transparent; color: var(--carvao); border-color: var(--carvao); }
.btn--lg { min-height: 54px; font-size: var(--fs-m); padding-inline: 1.6em; }

.badge { display: inline-block; font-size: .72rem; font-weight: 800; font-stretch: 80%; letter-spacing: .08em; text-transform: uppercase; color: var(--brasa); text-decoration: none; padding: .3em .7em; border: 1.5px solid currentColor; border-radius: 4px; line-height: 1.2; margin-bottom: var(--s3); }
a.badge:hover { background: var(--brasa); color: #fff; border-color: var(--brasa); }

.kicker { font-size: var(--fs-xs); font-weight: 800; font-stretch: 75%; letter-spacing: .18em; text-transform: uppercase; color: var(--ember-2); margin-bottom: var(--s3); display: inline-flex; align-items: center; gap: .6em; }
.kicker::before { content: ""; width: 26px; height: 3px; background: currentColor; border-radius: 2px; }
.kicker--red { color: var(--brasa); }

.link-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 750; color: var(--brasa); text-decoration: none; }
.link-more .ico { transition: transform .2s var(--ease); }
.link-more:hover .ico { transform: translateX(4px); }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips a { display: inline-block; padding: .55em 1.05em; border-radius: 999px; background: var(--osso); border: 1.5px solid var(--linha); font-weight: 650; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.chips a:hover { background: var(--carvao); color: var(--papel); border-color: var(--carvao); transform: translateY(-2px) rotate(-1deg); }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(255 252 246 / .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.is-scrolled .site-header { border-color: var(--linha); box-shadow: 0 6px 20px -16px rgb(23 37 43 / .5); }
.site-header__in { display: flex; align-items: center; gap: var(--s5); height: var(--header-h); }
.logo { flex: none; display: block; }
.logo img { width: 168px; height: auto; transition: width .3s var(--ease); }
.is-scrolled .site-header .logo img { width: 148px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: var(--s4); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav__list a { display: block; padding: .55em .8em; font-size: var(--fs-s); font-weight: 650; text-decoration: none; border-radius: 8px; position: relative; }
.nav__list > li > a::after { content: ""; position: absolute; left: .8em; right: .8em; bottom: .25em; height: 2px; background: var(--brasa); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav__list > li > a:hover::after, .nav__list > .current-menu-item > a::after, .nav__list > .current-category-ancestor > a::after { transform: scaleX(1); }
.nav__list li { position: relative; }
.nav__list .sub-menu { list-style: none; margin: 0; padding: var(--s2); position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--osso); border: 1px solid var(--linha); border-radius: var(--r); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a:hover { background: var(--papel); }
.nav__list .menu-item-has-children > a::before { content: ""; float: right; margin: .55em 0 0 .45em; border: 4px solid transparent; border-top-color: currentColor; }
.nav__cta { min-height: 40px; padding: .5em 1em; }
.site-header__tools { display: flex; gap: var(--s1); margin-left: auto; }
.nav + .site-header__tools { margin-left: 0; }
@media (max-width: 1080px) { .nav + .site-header__tools { margin-left: auto; } }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 999px; border: 0; background: transparent; cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: var(--papel-2); }
.nav-toggle { display: none; }
.search-panel { border-top: 1px solid var(--linha); padding: var(--s4) 0; background: var(--osso); }

.search-form { display: flex; gap: var(--s2); background: #fff; border: 2px solid var(--linha); border-radius: 999px; padding: 5px 5px 5px 20px; transition: border-color .2s, box-shadow .2s; }
.search-form:focus-within { border-color: var(--brasa); box-shadow: 0 0 0 4px rgb(195 42 51 / .12); }
.search-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--fs-m); color: var(--texto); }
.search-form .btn { min-height: 42px; width: 42px; padding: 0; }

@media (max-width: 1080px) {
	.nav-toggle { display: grid; }
	.nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--carvao); color: var(--papel); flex-direction: column; align-items: stretch; padding: var(--s5) 1.25rem var(--s7); overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s .35s; margin: 0; }
	.nav-open .nav { transform: none; visibility: visible; transition: transform .35s var(--ease); }
	/* O drawer fechado fica à direita, dentro do header (containing block do backdrop-filter): corta só no eixo X. */
	.site-header { overflow-x: clip; }
	.nav-open { overflow: hidden; }
	/* backdrop-filter cria containing block p/ position:fixed — desliga com o menu aberto. */
	.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--osso); }
	.nav__list { flex-direction: column; }
	.nav__list a { font-size: 1.35rem; font-stretch: 85%; font-weight: 800; padding: .55em 0; border-bottom: 1px solid rgb(246 241 231 / .1); border-radius: 0; }
	.nav__list > li > a::after, .nav__list .menu-item-has-children > a::before { display: none; }
	.nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: transparent; border: 0; box-shadow: none; padding: 0 0 0 var(--s4); }
	.nav__list .sub-menu a { font-size: 1.05rem; font-weight: 600; }
	.nav__list .sub-menu a:hover { background: transparent; color: var(--ember-2); }
	.nav__cta { margin-top: var(--s5); min-height: 52px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--carvao-2); color: var(--papel); min-height: min(88vh, 860px); display: flex; align-items: center; padding: var(--s8) 0 var(--s7); }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; will-change: transform; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
	linear-gradient(90deg, var(--carvao-2) 0%, rgb(14 23 27 / .92) 34%, rgb(14 23 27 / .35) 64%, rgb(14 23 27 / .1) 100%),
	linear-gradient(0deg, var(--carvao-2) 0%, transparent 30%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .18; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero__embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__embers span { position: absolute; top: 0; left: 0; border-radius: 50%; background: radial-gradient(circle, var(--ember-2) 0%, var(--ember) 45%, rgb(195 42 51 / 0) 75%); box-shadow: 0 0 10px 2px rgb(240 122 43 / .55); will-change: transform, opacity; }
.hero__in { position: relative; }
.hero__title { font-size: var(--fs-hero); font-weight: 900; font-stretch: 66%; text-transform: uppercase; line-height: .86; letter-spacing: -.005em; margin: 0 0 var(--s5); }
.hero__title .line { display: block; overflow: hidden; overflow: visible clip; padding: 0 .1em .08em 0; margin-bottom: -.08em; }
.hero__title .line__in { display: inline-block; }
.hl { font-style: normal; color: var(--brasa); position: relative; display: inline-block; text-shadow: 0 0 40px rgb(240 122 43 / .35); }
.hl__stroke { position: absolute; left: 0; right: 0; bottom: -.02em; width: 100%; height: .16em; overflow: visible; }
.hl__stroke path { fill: none; stroke: var(--ember); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 0; }
.hero__lead { font-size: var(--fs-l); max-width: 34ch; color: rgb(246 241 231 / .86); margin-bottom: var(--s5); }
.hero__search { max-width: 520px; margin-bottom: var(--s4); }
.hero__search .search-form { background: rgb(255 252 246 / .97); border-color: transparent; box-shadow: 0 18px 40px -20px #000; }
.hero__chips { list-style: none; margin: 0 0 var(--s7); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.hero__chips a { display: inline-flex; align-items: center; gap: .4em; font-size: var(--fs-s); font-weight: 650; color: var(--papel); text-decoration: none; padding: .5em 1em; border-radius: 999px; background: rgb(246 241 231 / .08); border: 1px solid rgb(246 241 231 / .22); backdrop-filter: blur(6px); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.hero__chips a:hover { background: var(--brasa); border-color: var(--brasa); transform: translateY(-2px); }
.hero__stats { display: flex; gap: var(--s7); margin: 0; flex-wrap: wrap; }
.hero__stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.hero__stats dd { margin: 0; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 900; font-stretch: 70%; line-height: 1; color: var(--ember-2); font-variant-numeric: tabular-nums; }
.hero__stats dt { font-size: var(--fs-xs); color: rgb(246 241 231 / .7); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

/* Entrada do hero em CSS puro: começa no primeiro desenho da tela, sem esperar o GSAP
 * (no celular o JS chegava em vários segundos). O título só desliza (opacidade 1 o tempo
 * todo), então não atrasa o LCP. O resto aparece em sequência. */
.has-motion .hero__title .line__in, .has-motion .calc-head .archive-head__title { animation: umc-rise .95s cubic-bezier(.16, 1, .3, 1) both; }
.has-motion .hero__title .line:nth-child(2) .line__in { animation-delay: .1s; }
.has-motion .hero__title .line:nth-child(3) .line__in { animation-delay: .2s; }
.has-motion .kicker[data-hero] { animation: umc-up .6s .05s cubic-bezier(.16, 1, .3, 1) both; }
.has-motion .hero__lead, .has-motion .calc-head__lead { animation: umc-up .7s .35s cubic-bezier(.16, 1, .3, 1) both; }
.has-motion .hero__search { animation: umc-up .7s .45s cubic-bezier(.16, 1, .3, 1) both; }
.has-motion .hero__chips li { animation: umc-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: .55s; }
.has-motion .hero__chips li:nth-child(2) { animation-delay: .61s; } .has-motion .hero__chips li:nth-child(3) { animation-delay: .67s; } .has-motion .hero__chips li:nth-child(4) { animation-delay: .73s; }
.has-motion .hero__stats > div { animation: umc-up .6s cubic-bezier(.16, 1, .3, 1) both; animation-delay: .65s; }
.has-motion .hero__stats > div:nth-child(2) { animation-delay: .73s; } .has-motion .hero__stats > div:nth-child(3) { animation-delay: .81s; }
.has-motion .hl__stroke path { stroke-dashoffset: 320; animation: umc-draw .9s .6s cubic-bezier(.65, 0, .35, 1) forwards; }
.has-motion .calc-head .archive-head__title { animation-name: umc-up; }
@keyframes umc-rise { from { transform: translateY(110%); } to { transform: none; } }
@keyframes umc-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes umc-pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes umc-draw { to { stroke-dashoffset: 0; } }

/* ---------- Faixa de cortes ---------- */
.marquee { background: var(--brasa); color: #fff; overflow: hidden; padding: 14px 0; border-block: 3px solid var(--carvao); }
.marquee__track { display: flex; width: max-content; align-items: center; gap: 22px; will-change: transform; }
.marquee__track span { font-size: clamp(1.1rem, .9rem + 1vw, 1.6rem); font-weight: 900; font-stretch: 66%; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.marquee__track i { color: var(--ember-2); display: grid; }
@media (prefers-reduced-motion: no-preference) { body:not(.has-motion) .marquee__track { animation: umc-marquee 40s linear infinite; } }
@keyframes umc-marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { padding: var(--s8) 0; }
.section--paper { background: var(--papel); position: relative; }
.section__head { margin-bottom: var(--s6); max-width: 760px; }
.section__head--row { display: flex; justify-content: space-between; align-items: end; gap: var(--s5); max-width: none; flex-wrap: wrap; }
.section__head--row .section__title { margin: 0; }
.section__title { font-size: var(--fs-h2); font-stretch: 80%; font-weight: 850; margin-bottom: var(--s4); }
.section__title--light { color: var(--papel); }

.grid-4 { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid-3 { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* ---------- Guias (hubs): mosaico com foto ---------- */
.hubs__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(230px, auto); }
.hubs__grid .hub:first-child { grid-column: span 2; }
.hub { display: flex; }
.hub a { position: relative; isolation: isolate; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: var(--s5); border-radius: var(--r); overflow: hidden; background: var(--carvao); color: #fff; text-decoration: none; }
.hub a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(14 23 27 / .1) 0%, rgb(14 23 27 / .45) 40%, rgb(14 23 27 / .93) 100%); }
.hub a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--brasa), var(--ember)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.hub__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.hub__n { position: absolute; top: var(--s4); left: var(--s5); font-size: 3rem; font-weight: 900; font-stretch: 62%; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--ember-2); transition: color .3s; }
.hub__go { position: absolute; top: var(--s4); right: var(--s4); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .25); transition: background .25s, border-color .25s, transform .3s var(--ease); }
.hub__txt strong { display: block; font-size: var(--fs-h3); font-stretch: 85%; font-weight: 800; line-height: 1.15; margin-bottom: .3em; }
.hub__txt span { display: block; color: rgb(255 255 255 / .78); font-size: var(--fs-s); line-height: 1.45; max-width: 34ch; }
.hubs__grid .hub:first-child .hub__txt strong { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-stretch: 72%; font-weight: 900; text-transform: uppercase; letter-spacing: .01em; }
.hubs__grid .hub:first-child .hub__n { font-size: 4.2rem; }
.hub a:hover .hub__img, .hub a:focus-visible .hub__img { transform: scale(1.06); }
.hub a:hover::after, .hub a:focus-visible::after { transform: scaleX(1); }
.hub a:hover .hub__n { color: var(--ember-2); }
.hub a:hover .hub__go { background: var(--brasa); border-color: var(--brasa); transform: rotate(-45deg); }
@media (max-width: 1000px) { .hubs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .hubs__grid { gap: var(--s3); grid-auto-rows: auto; } .hub a { min-height: 168px; padding: var(--s4); } .hubs__grid .hub:first-child a { min-height: 250px; } .hub__n { font-size: 2.2rem; left: var(--s4); } .hub__go { width: 34px; height: 34px; top: var(--s3); right: var(--s3); } .hub__txt strong { font-size: 1.02rem; } .hubs__grid .hub:not(:first-child) .hub__txt span { display: none; } }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--osso); border-radius: var(--r); overflow: hidden; border: 1px solid var(--linha); transition: transform .3s var(--ease), box-shadow .3s; }
.section--paper .card { background: #fff; border-color: transparent; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--carvao); overflow: hidden; }
.card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img { transform: scale(1.05); }
.card__ph { display: grid; place-items: center; height: 100%; color: var(--ember); }
.card__ph .ico { width: 40px; height: 40px; }
.card__body { padding: var(--s4) var(--s5) var(--s5); display: flex; flex-direction: column; flex: 1; }
.card__body .badge { align-self: flex-start; font-size: .65rem; }
.card__title { font-size: var(--fs-h3); margin-bottom: var(--s2); font-stretch: 86%; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card__title a { text-decoration: none; background: linear-gradient(var(--brasa), var(--brasa)) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease); }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { background-size: 100% 2px; }
.card__excerpt { color: var(--mute); font-size: var(--fs-s); margin-bottom: var(--s3); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.card__meta { margin: auto 0 0; display: flex; align-items: center; gap: .35em; font-size: var(--fs-xs); color: var(--mute); }
.card__meta .ico { width: 15px; height: 15px; }
.card--term .card__body { padding-top: var(--s5); }

.latest__grid { display: grid; gap: var(--s4) var(--s5); grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.latest__grid .card--wide { grid-column: 1; grid-row: 1 / span 4; }
/* Lista ao lado do destaque: miniatura à esquerda, título à direita. */
.card--row { flex-direction: row; align-items: stretch; }
.card--row .card__media { flex: 0 0 38%; aspect-ratio: 4 / 3; }
.card--row .card__body { padding: var(--s3) var(--s4); justify-content: center; }
.card--row .badge { margin-bottom: var(--s2); }
.card--row .card__title { font-size: 1.08rem; line-height: 1.2; margin-bottom: var(--s2); }
.card--row .card__meta { margin-top: 0; }
/* Destaque: a foto ocupa o card inteiro e o texto fica sobre o degradê, então a altura acompanha a coluna ao lado. */
.card--wide, .section--paper .card--wide { min-height: 440px; color: #fff; background: var(--carvao); }
.card--wide .card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.card--wide .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(14 23 27 / 0) 30%, rgb(14 23 27 / .6) 58%, rgb(14 23 27 / .95) 100%); }
.card--wide .card__body { position: relative; z-index: 1; margin-top: auto; flex: 0 0 auto; padding: var(--s6); }
.card--wide .badge { background: var(--brasa); border-color: var(--brasa); color: #fff; }
.card--wide .card__title { font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.5rem); font-stretch: 76%; font-weight: 900; line-height: 1.05; max-width: 22ch; -webkit-line-clamp: 4; }
.card--wide .card__title a { color: #fff; }
.card--wide .card__excerpt { color: rgb(255 255 255 / .8); font-size: 1rem; max-width: 58ch; }
.card--wide .card__meta { color: rgb(255 255 255 / .7); }
@media (max-width: 900px) { .latest__grid { grid-template-columns: 1fr; } .latest__grid .card--wide { grid-row: auto; } .card--wide, .section--paper .card--wide { min-height: 420px; } }
@media (max-width: 620px) { .card--row .card__media { flex-basis: 36%; } .card--row .card__body { padding: var(--s3); } .card--row .card__title { font-size: 1rem; } .card--wide, .section--paper .card--wide { min-height: 380px; } .card--wide .card__body { padding: var(--s5); } }

/* ---------- Calculadora (teaser da home + página) ---------- */
.calc-teaser, .calc-head { position: relative; overflow: hidden; isolation: isolate; background: var(--carvao); color: var(--papel); }
.calc-teaser { padding: var(--s8) 0; }
.calc-teaser__glow { position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -25vmax; bottom: -40vmax; border-radius: 50%; background: radial-gradient(circle, rgb(240 122 43 / .55) 0%, rgb(195 42 51 / .35) 35%, transparent 65%); opacity: .7; pointer-events: none; }
.calc-teaser__in { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s7); align-items: center; }
.calc-teaser__copy p:not(.kicker) { color: rgb(246 241 231 / .8); font-size: var(--fs-l); max-width: 44ch; }
@media (max-width: 900px) { .calc-teaser__in { grid-template-columns: 1fr; } }

.mini-calc { background: rgb(255 252 246 / .06); border: 1px solid rgb(246 241 231 / .16); border-radius: calc(var(--r) * 1.5); padding: var(--s5); display: grid; gap: var(--s4); backdrop-filter: blur(8px); }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); }
.stepper label { font-weight: 700; }
.stepper label small { display: block; font-weight: 500; color: var(--mute); font-size: var(--fs-xs); }
.stepper__ctrl { display: flex; align-items: center; background: rgb(0 0 0 / .25); border-radius: 999px; padding: 4px; }
.stepper__ctrl button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--carvao-3); color: var(--papel); font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background .2s, transform .15s; }
.stepper__ctrl button:hover { background: var(--brasa); }
.stepper__ctrl button:active { transform: scale(.92); }
.stepper__ctrl input { width: 3.2em; text-align: center; border: 0; background: transparent; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; color: inherit; }
.stepper__ctrl input::-webkit-inner-spin-button, .stepper__ctrl input::-webkit-outer-spin-button { -webkit-appearance: none; }
.mini-calc__out { display: flex; align-items: baseline; gap: var(--s3); padding: var(--s4) 0; border-block: 1px dashed rgb(246 241 231 / .2); }
.mini-calc__kg { font-size: clamp(3rem, 2.4rem + 3vw, 4.6rem); font-weight: 900; font-stretch: 66%; line-height: 1; color: var(--ember-2); display: inline-block; font-variant-numeric: tabular-nums; }
.mini-calc__unit { color: rgb(246 241 231 / .75); font-weight: 600; }

.calc-head { padding: var(--s7) 0 calc(var(--s9) + var(--s5)); }
.calc-head .crumbs, .calc-head .crumbs a { color: rgb(246 241 231 / .7); }
.calc-head__lead { font-size: var(--fs-l); color: rgb(246 241 231 / .82); max-width: 50ch; }
.calc-app { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--s5); margin-top: calc(var(--s9) * -1); position: relative; z-index: 2; align-items: start; }
@media (max-width: 960px) { .calc-app { grid-template-columns: 1fr; } }
.calc { display: grid; gap: var(--s4); }
.calc__box { margin: 0; border: 1px solid var(--linha); border-radius: calc(var(--r) * 1.3); background: #fff; padding: var(--s5); box-shadow: var(--shadow); min-width: 0; }
.calc__box legend { float: left; width: 100%; padding: 0; margin-bottom: var(--s4); font-size: var(--fs-h3); font-weight: 800; font-stretch: 85%; display: flex; align-items: center; gap: var(--s3); }
.calc__box legend + * { clear: both; }
.calc__step { width: 32px; height: 32px; border-radius: 50%; background: var(--brasa); color: #fff; display: grid; place-items: center; font-size: 1rem; font-stretch: 75%; }
.calc__people { display: grid; gap: var(--s3); }
.stepper--light .stepper__ctrl { background: var(--papel); }
.stepper--light .stepper__ctrl button { background: #fff; color: var(--carvao); box-shadow: 0 1px 3px rgb(23 37 43 / .15); }
.stepper--light .stepper__ctrl button:hover { background: var(--brasa); color: #fff; }
.calc__group { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: var(--s4) 0 var(--s2); }
.toggles { display: flex; flex-wrap: wrap; gap: var(--s2); }
.toggle input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.toggle span { display: inline-flex; align-items: center; gap: .45em; padding: .55em 1em; border-radius: 999px; border: 1.5px solid var(--linha); font-weight: 650; font-size: var(--fs-s); cursor: pointer; transition: .2s var(--ease); user-select: none; }
.toggle span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--linha); transition: .2s; }
.toggle input:checked + span { background: var(--carvao); border-color: var(--carvao); color: var(--papel); }
.toggle input:checked + span::before { background: var(--ember) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 100%; border-color: var(--ember); }
.toggle input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2); }
.seg span { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s3); border-radius: var(--r-s); border: 1.5px solid var(--linha); font-weight: 750; cursor: pointer; transition: .2s; }
.seg small { font-weight: 500; color: var(--mute); font-size: var(--fs-xs); }
.seg input:checked + span { border-color: var(--brasa); background: rgb(195 42 51 / .06); color: var(--brasa); box-shadow: inset 0 0 0 1px var(--brasa); }

.calc-result { position: sticky; top: calc(var(--header-h) + 16px); }
.calc-result__in { background: var(--carvao); color: var(--papel); border-radius: calc(var(--r) * 1.5); padding: var(--s5) var(--s5) var(--s4); box-shadow: 0 30px 60px -30px rgb(14 23 27 / .8); position: relative; overflow: hidden; }
.calc-result__in::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--brasa), var(--ember), var(--ember-2)); }
.calc-result__kicker { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--ember-2); margin-bottom: var(--s1); }
.calc-result__title { font-size: var(--fs-h3); font-weight: 800; font-stretch: 85%; margin-bottom: var(--s3); }
.calc-result__big { display: flex; align-items: baseline; gap: var(--s3); padding-bottom: var(--s4); border-bottom: 1px dashed rgb(246 241 231 / .2); }
.calc-result__big span { font-size: clamp(3rem, 2.5rem + 2.5vw, 4.4rem); font-weight: 900; font-stretch: 66%; line-height: 1; color: var(--ember-2); display: inline-block; font-variant-numeric: tabular-nums; }
.calc-result__big small { color: rgb(246 241 231 / .75); font-weight: 600; }
.calc-result__list { list-style: none; margin: var(--s3) 0; padding: 0; }
.calc-result__list li { display: flex; justify-content: space-between; gap: var(--s3); padding: .5em 0; border-bottom: 1px solid rgb(246 241 231 / .08); }
.calc-result__list b { font-variant-numeric: tabular-nums; font-weight: 800; }
.calc-result__list small { font-weight: 500; color: rgb(246 241 231 / .6); }
.calc-result__cuts { background: rgb(255 255 255 / .05); border-radius: var(--r-s); padding: var(--s3) var(--s4); font-size: var(--fs-s); margin-bottom: var(--s4); }
.calc-result__cuts p { margin: 0 0 var(--s2); color: rgb(246 241 231 / .75); }
.calc-result__cuts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px var(--s4); }
.calc-result__actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.calc-result__actions .btn { flex: 1; }
.calc-result__note { font-size: var(--fs-xs); color: rgb(246 241 231 / .55); margin: var(--s4) 0 0; }

/* ---------- Dicionário ---------- */
.dict__in { display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--s7); align-items: center; }
@media (max-width: 900px) { .dict__in { grid-template-columns: 1fr; } }
.archive-head { padding: var(--s7) 0 var(--s6); background: var(--papel); border-bottom: 1px solid var(--linha); }
.archive-head--dark { background: var(--carvao); color: var(--papel); border: 0; }
.archive-head--dark .crumbs, .archive-head--dark .crumbs a { color: rgb(246 241 231 / .7); }
.archive-head__title { font-size: var(--fs-h1); font-stretch: 72%; font-weight: 900; text-transform: uppercase; line-height: .95; margin-bottom: var(--s4); }
.archive-head__desc { max-width: 62ch; color: inherit; opacity: .85; font-size: var(--fs-l); }
.archive-head__search { max-width: 560px; }
.az { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s5); }
.az a, .az span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; font-weight: 850; font-stretch: 75%; text-decoration: none; }
.az a { background: rgb(246 241 231 / .1); color: var(--papel); transition: background .2s, transform .2s var(--ease); }
.az a:hover { background: var(--brasa); transform: translateY(-2px); }
.az span { color: rgb(246 241 231 / .25); }
.dict-list { display: grid; gap: var(--s6); }
.dict-group { display: grid; grid-template-columns: 90px 1fr; gap: var(--s5); padding-top: var(--s5); border-top: 2px solid var(--carvao); }
.dict-group__letter { font-size: 4rem; font-weight: 900; font-stretch: 62%; line-height: .9; color: var(--brasa); margin: 0; position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
.dict-group__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: var(--s3); }
.dict-group__list a { display: block; height: 100%; padding: var(--s4); border-radius: var(--r); background: var(--papel); text-decoration: none; transition: background .2s, transform .2s var(--ease); }
.dict-group__list a:hover { background: var(--papel-2); transform: translateY(-2px); }
.dict-group__list strong { display: block; font-size: var(--fs-h3); font-stretch: 85%; margin-bottom: 2px; }
.dict-group__list span { color: var(--mute); font-size: var(--fs-s); line-height: 1.45; display: block; }
@media (max-width: 640px) { .dict-group { grid-template-columns: 1fr; gap: var(--s3); } .dict-group__letter { position: static; font-size: 3rem; } }
.definition { margin-top: var(--s5); padding: var(--s5); background: var(--carvao); color: var(--papel); border-radius: var(--r); border-left: 6px solid var(--brasa); font-size: var(--fs-l); }
.definition p:last-child { margin: 0; }
.definition__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .16em; font-weight: 800; color: var(--ember-2); margin-bottom: var(--s2) !important; }
.hl-red { color: var(--brasa); }

/* ---------- Post ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; background: linear-gradient(90deg, var(--brasa), var(--ember), var(--ember-2)); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) { .progress { animation: umc-progress linear both; animation-timeline: scroll(root); } }
@keyframes umc-progress { to { transform: scaleX(1); } }
.post__head { padding: var(--s6) 0 0; background: linear-gradient(var(--papel) 0 70%, var(--osso) 70%); }
.page-head { padding: var(--s6) 0 var(--s4); background: var(--papel); margin-bottom: var(--s6); }
.crumbs { font-size: var(--fs-xs); color: var(--mute); margin-bottom: var(--s4); display: flex; flex-wrap: wrap; gap: .5em; align-items: center; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brasa); }
.crumbs .separator, .crumbs span[aria-hidden] { opacity: .5; }
.post__title { font-size: var(--fs-h1); font-stretch: 78%; font-weight: 900; line-height: 1.02; margin-bottom: var(--s4); }
.post__dek { font-size: var(--fs-l); color: var(--mute); max-width: 60ch; }
.post__meta { display: flex; flex-wrap: wrap; gap: .4em 1.4em; font-size: var(--fs-xs); color: var(--mute); margin-bottom: var(--s5); }
.post__meta span { display: inline-flex; align-items: center; gap: .35em; }
.post__meta .ico { width: 15px; height: 15px; }
.post__meta a { font-weight: 700; color: var(--texto); }
.post__hero { margin: 0 auto; }
.post__hero img { width: 100%; border-radius: var(--r); aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.post__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s7); padding: var(--s6) 0 var(--s8); max-width: 1120px; }
.post__body { max-width: 720px; min-width: 0; }
.post__sticky { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: var(--s4); }
@media (max-width: 1000px) { .post__layout { grid-template-columns: minmax(0, 1fr); } .post__side { order: -1; } .post__sticky { position: static; } .post__side .side-cta, .post__side .ad { display: none; } }
.toc { background: var(--papel); border-radius: var(--r); padding: var(--s4) var(--s5); font-size: var(--fs-s); }
.toc__title { font-weight: 850; font-stretch: 80%; text-transform: uppercase; letter-spacing: .1em; font-size: var(--fs-xs); color: var(--brasa); margin-bottom: var(--s2); }
.toc ol { margin: 0; padding: 0 0 0 1.2em; display: grid; gap: .35em; max-height: 50vh; overflow-y: auto; }
.toc a { text-decoration: none; color: var(--mute); line-height: 1.35; display: block; }
.toc a:hover { color: var(--brasa); }
.toc li::marker { color: var(--brasa); font-weight: 800; font-size: .85em; }
@media (max-width: 1000px) { .toc ol { max-height: none; } }
.side-cta { display: grid; grid-template-columns: auto 1fr; column-gap: var(--s3); align-items: center; padding: var(--s4) var(--s5); border-radius: var(--r); background: var(--carvao); color: var(--papel); text-decoration: none; transition: transform .25s var(--ease), background .2s; }
.side-cta .ico { grid-row: span 2; width: 30px; height: 30px; color: var(--ember-2); }
.side-cta strong { font-stretch: 85%; }
.side-cta span { font-size: var(--fs-xs); opacity: .75; }
.side-cta:hover { background: var(--brasa); transform: translateY(-3px); }

.aff-note { font-size: var(--fs-xs); color: var(--mute); background: var(--papel); border-radius: var(--r-s); padding: var(--s3) var(--s4); border-left: 3px solid var(--ember); }

/* ---------- Texto longo (prose) ---------- */
.prose { font-size: var(--fs-m); line-height: 1.75; }
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.95rem); font-stretch: 80%; margin: var(--s7) 0 var(--s4); padding-top: var(--s3); position: relative; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 4px; border-radius: 2px; background: var(--brasa); }
.prose h3 { font-size: var(--fs-h3); margin: var(--s6) 0 var(--s3); font-stretch: 86%; }
.prose p, .prose ul, .prose ol { margin-bottom: var(--s5); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brasa); font-weight: 800; }
.prose a { color: var(--brasa-d); font-weight: 600; }
.prose a:hover { color: var(--brasa); text-decoration-thickness: 2.5px; }
.prose a.gloss-link { color: inherit; font-weight: inherit; text-decoration: underline dotted var(--ember); text-decoration-thickness: 2px; }
.prose a.gloss-link:hover { color: var(--brasa); }
.prose strong { font-weight: 750; color: var(--carvao); }
.prose img { border-radius: var(--r-s); margin: var(--s5) auto; }
.prose figure, .prose .wp-caption { margin: var(--s6) 0; max-width: 100% !important; }
.prose figcaption, .prose .wp-caption-text { font-size: var(--fs-xs); color: var(--mute); text-align: center; margin-top: var(--s2); }
.prose blockquote { margin: var(--s6) 0; padding: var(--s4) var(--s5); border-left: 4px solid var(--brasa); background: var(--papel); border-radius: 0 var(--r-s) var(--r-s) 0; font-size: var(--fs-l); }
.prose hr { border: 0; height: 2px; background: var(--linha); margin: var(--s7) 0; }
.table-wrap { overflow-x: auto; margin: var(--s5) 0 var(--s6); border-radius: var(--r-s); border: 1px solid var(--linha); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); min-width: 520px; }
.prose th { background: var(--carvao); color: var(--papel); text-align: left; font-weight: 750; }
.prose th, .prose td { padding: .7em .9em; border-bottom: 1px solid var(--linha); vertical-align: top; }
.prose tr:nth-child(even) td { background: var(--papel); }
/* "Direto ao ponto" — 1º parágrafo com <strong> de rótulo */
.prose > p:first-child { font-size: var(--fs-l); line-height: 1.6; padding: var(--s4) var(--s5); background: var(--papel); border-radius: var(--r); border-left: 6px solid var(--brasa); }
.prose > p:first-child strong:first-child { color: var(--brasa); text-transform: uppercase; font-stretch: 80%; letter-spacing: .04em; font-size: .85em; display: block; }
/* Bloco "Resposta rápida" */
.prose .resposta-rapida { background: var(--carvao); color: var(--papel); border-radius: var(--r); padding: var(--s5) var(--s5) var(--s3); margin: var(--s6) 0; position: relative; overflow: hidden; }
.prose .resposta-rapida::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgb(240 122 43 / .35), transparent 70%); }
.prose .resposta-rapida h2 { color: var(--papel); margin-top: 0; font-size: var(--fs-h3); padding-top: 0; }
.prose .resposta-rapida h2::before { display: none; }
.prose .resposta-rapida strong { color: var(--ember-2); }
.prose .resposta-rapida a { color: var(--ember-2); }
.prose .resposta-rapida li::marker { color: var(--ember); }
/* Cartão de receita */
.prose .recipe-card { border: 2px solid var(--carvao); border-radius: var(--r); padding: var(--s5); margin: var(--s6) 0; background: #fff; position: relative; box-shadow: 8px 8px 0 var(--carvao); }
.prose .recipe-card > p:first-child { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); background: var(--papel); border: 0; font-size: var(--fs-s); padding: var(--s4); }
.prose .recipe-card > p:first-child br { display: none; }
.prose .recipe-card h3 { display: flex; align-items: center; gap: .5em; }
.prose .recipe-card h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brasa); }
.prose .recipe-card ol { counter-reset: passo; list-style: none; padding-left: 0; }
.prose .recipe-card ol li { counter-increment: passo; position: relative; padding-left: 2.6em; margin-bottom: var(--s4); }
.prose .recipe-card ol li::before { content: counter(passo); position: absolute; left: 0; top: .1em; width: 1.8em; height: 1.8em; border-radius: 50%; background: var(--carvao); color: var(--papel); display: grid; place-items: center; font-weight: 800; font-size: .85em; }

.author-box { display: flex; gap: var(--s4); align-items: flex-start; margin-top: var(--s7); padding: var(--s5); border-radius: var(--r); border: 1px solid var(--linha); background: var(--papel); font-size: var(--fs-s); }
.author-box img { border-radius: 50%; background: var(--osso); padding: 8px; flex: none; }
.author-box__name { font-weight: 850; font-stretch: 85%; font-size: var(--fs-m); margin-bottom: var(--s1); }
.author-box p:last-child { margin: 0; color: var(--mute); }
.author-box a { color: var(--brasa); font-weight: 700; }

/* ---------- Anúncios: espaço reservado = zero CLS ---------- */
.ad { margin: var(--s6) auto; text-align: center; min-height: 280px; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgb(224 213 194 / .25) 10px 20px); border-radius: var(--r-s); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ad--sidebar { min-height: 600px; margin: 0; }
.ad__label { font-size: .65rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.ad > ins, .ad > .gam-slot { width: 100%; }

/* ---------- Arquivo / navegação ---------- */
.cat-nav { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s5); }
.cat-nav a { padding: .45em .95em; border-radius: 999px; border: 1.5px solid var(--linha); font-size: var(--fs-s); font-weight: 650; text-decoration: none; background: var(--osso); transition: .2s; }
.cat-nav a:hover, .cat-nav a[aria-current] { background: var(--carvao); color: var(--papel); border-color: var(--carvao); }
.pagination { margin-top: var(--s7); }
.nav-links { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; }
.page-numbers { min-width: 44px; height: 44px; padding: 0 .9em; display: grid; place-items: center; border-radius: 999px; border: 1.5px solid var(--linha); text-decoration: none; font-weight: 700; }
.page-numbers.current, .page-numbers:hover { background: var(--carvao); color: var(--papel); border-color: var(--carvao); }

/* ---------- Sobre (selo) ---------- */
.about-strip { padding: var(--s8) 0; }
.about-strip__in { display: grid; grid-template-columns: auto 1fr; gap: var(--s7); align-items: center; max-width: 920px; }
.about-strip__seal { width: clamp(140px, 20vw, 200px); }
.about-strip p { font-size: var(--fs-l); color: var(--mute); }
@media (max-width: 640px) { .about-strip__in { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- 404 ---------- */
.notfound { padding: var(--s9) 0; background: var(--papel); }
.notfound__in { max-width: 640px; text-align: center; }
.notfound__code { font-size: clamp(6rem, 4rem + 10vw, 12rem); font-weight: 900; font-stretch: 62%; line-height: .8; margin: 0 0 var(--s4); color: transparent; -webkit-text-stroke: 3px var(--brasa); }
.notfound .search-form { margin: var(--s5) 0; }
.notfound__links { display: flex; gap: var(--s2); justify-content: center; flex-wrap: wrap; }
.empty { text-align: center; padding: var(--s7) 0; }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--carvao-2); color: rgb(246 241 231 / .78); position: relative; font-size: var(--fs-s); }
.ember-line { height: 4px; background: linear-gradient(90deg, var(--brasa), var(--ember), var(--ember-2), var(--ember), var(--brasa)); background-size: 200% 100%; animation: umc-ember 8s linear infinite; }
@keyframes umc-ember { to { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) { .ember-line { animation: none; } }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) auto; gap: var(--s6); padding: var(--s8) 0 var(--s6); }
.site-footer__brand .logo img { width: 190px; }
.site-footer__tag { margin-top: var(--s4); max-width: 30ch; }
.site-footer__title { font-weight: 850; font-stretch: 80%; text-transform: uppercase; letter-spacing: .12em; color: var(--papel); font-size: var(--fs-xs); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45em; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ember-2); }
.site-footer__seal img { width: 140px; opacity: .9; }
.social { display: flex !important; gap: var(--s2) !important; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgb(246 241 231 / .08); transition: background .2s; }
.social a:hover { background: var(--brasa); color: #fff; }
.site-footer__legal { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; padding: var(--s4) 0 var(--s6); border-top: 1px solid rgb(246 241 231 / .1); font-size: var(--fs-xs); }
.site-footer__legal p { margin: 0; }
@media (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } .site-footer__seal { display: none; } }

/* ---------- Consentimento ---------- */
.consent { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; background: var(--carvao); color: var(--papel); border-radius: var(--r); padding: var(--s4) var(--s5); box-shadow: 0 20px 50px -20px #000; display: grid; gap: var(--s3); font-size: var(--fs-s); }
.consent[hidden] { display: none; }
.consent p { margin: 0; }
.consent a { color: var(--ember-2); }
.consent__actions { display: flex; gap: var(--s2); justify-content: flex-end; flex-wrap: wrap; }
.consent .btn { min-height: 40px; }

/* ---------- Responsivo geral ---------- */
@media (max-width: 700px) {
	:root { --header-h: 64px; }
	.section { padding: var(--s7) 0; }
	.logo img { width: 140px; }
	.hero { min-height: auto; padding: var(--s7) 0 var(--s6); align-items: flex-end; }
	/* Celular: foto no topo (recorte 4:3 na grelha), texto abaixo sobre o degradê. */
	.hero { padding-top: 58vw; }
	.hero__bg { bottom: auto; height: 75vw; }
	.hero__bg img { object-position: 50% 50%; }
	.hero::before { background: linear-gradient(0deg, var(--carvao-2) 0%, var(--carvao-2) calc(100% - 75vw), rgb(14 23 27 / .55) calc(100% - 40vw), rgb(14 23 27 / .05) 100%); }
	.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
	.hero__stats dd { font-size: 2rem; }
	.hero__stats dt { font-size: .62rem; letter-spacing: .06em; }
	.hero__chips { margin-bottom: var(--s5); }
	.seg { grid-template-columns: 1fr; }
	.calc-result__cuts ul { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .post__side, .ad, .consent, .progress, .related { display: none !important; }
}

/* ---------- Contato ---------- */
.contact-head .archive-head__title { color: #fff; }
.contact { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s6); align-items: start; margin-top: calc(var(--s9) * -1); padding-bottom: var(--s9); scroll-margin-top: 90px; }
.contact__form { background: #fff; border: 1px solid var(--linha); border-radius: calc(var(--r) * 1.3); box-shadow: var(--shadow); padding: var(--s6); }
.contact__h { font-size: var(--fs-h3); font-stretch: 85%; font-weight: 800; margin-bottom: var(--s4); }
.form { display: grid; gap: var(--s4); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: var(--s2); }
.field label, .field legend { font-weight: 750; font-size: var(--fs-s); padding: 0; }
.field small { font-weight: 400; color: var(--mute); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--texto); background: var(--osso); border: 1.5px solid var(--linha); border-radius: 10px; padding: .75em .9em; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brasa); background: #fff; box-shadow: 0 0 0 4px rgb(195 42 51 / .12); }
.field [aria-invalid="true"] { border-color: var(--brasa); background: #fff6f5; }
.chips-radio { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chips-radio label { position: relative; }
.chips-radio input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.chips-radio span { display: inline-block; padding: .55em 1em; border-radius: 999px; border: 1.5px solid var(--linha); background: var(--osso); font-size: var(--fs-s); font-weight: 650; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.chips-radio label:hover span { border-color: var(--carvao); }
.chips-radio input:checked + span { background: var(--carvao); border-color: var(--carvao); color: var(--papel); }
.chips-radio input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }
.check { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-s); color: var(--mute); cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: .1em; flex: none; accent-color: var(--brasa); }
.form__send { justify-self: start; min-height: 52px; padding-inline: 1.6em; font-size: 1rem; }
.notice { border-radius: 10px; padding: var(--s4); margin-bottom: var(--s4); font-size: var(--fs-s); border-left: 4px solid; }
.notice strong { display: block; font-size: 1rem; margin-bottom: .2em; }
.notice--ok { background: #eef7ef; border-color: #2f8a3e; color: #1f5a29; }
.notice--err { background: #fff2f1; border-color: var(--brasa); color: var(--brasa-d); }
.contact__aside { display: grid; gap: var(--s5); }
.contact__card { background: var(--carvao); color: var(--papel); border-radius: calc(var(--r) * 1.3); padding: var(--s5); box-shadow: var(--shadow); }
.contact__card .contact__h { color: #fff; }
.contact__card--paper { background: var(--papel); color: var(--texto); box-shadow: none; border: 1px solid var(--linha); }
.contact__card--paper .contact__h { color: var(--carvao); }
.contact__list { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s3); }
.contact__list li { display: grid; gap: .15em; padding-bottom: var(--s3); border-bottom: 1px solid rgb(246 241 231 / .14); }
.contact__list span { font-size: var(--fs-xs); font-weight: 800; font-stretch: 75%; letter-spacing: .14em; text-transform: uppercase; color: var(--ember-2); }
.contact__list a { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; word-break: break-all; }
.contact__list a:hover { color: var(--ember-2); }
.contact__note { margin: 0; font-size: var(--fs-s); color: rgb(246 241 231 / .72); }
.contact__shortcuts { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.contact__shortcuts a { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); border-radius: 10px; text-decoration: none; color: var(--mute); font-size: var(--fs-s); background: #fff; border: 1px solid transparent; transition: border-color .2s, transform .2s var(--ease); }
.contact__shortcuts a:hover { border-color: var(--brasa); transform: translateX(4px); }
.contact__shortcuts .ico { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--carvao); color: var(--ember-2); }
.contact__shortcuts strong { display: block; color: var(--carvao); font-size: 1rem; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } .contact__form { padding: var(--s5) var(--s4); } .form__send { justify-self: stretch; } }

/* Vitrine de livros, cursos e e-books (page-livros-e-cursos.php, inc/livros.php) */
.shelf { margin-bottom: var(--s7, 4rem); }
.shelf__grid { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr)); }
.shelf__item { display: flex; gap: var(--s4); background: var(--osso); border: 1px solid var(--linha); border-radius: var(--r); padding: var(--s4); align-items: flex-start; }
.shelf__cover { position: relative; display: block; flex: 0 0 clamp(96px, 28%, 170px); aspect-ratio: 3 / 4; border-radius: var(--r-s); overflow: hidden; background: var(--papel); box-shadow: 0 10px 24px -14px rgb(14 23 27 / .55); }
.shelf__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; }
.shelf__body { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.shelf__title { font-size: 1.12rem; line-height: 1.2; margin: 0; }
.shelf__title a { color: inherit; text-decoration: none; }
.shelf__title a:hover { text-decoration: underline; }
.shelf__text { color: var(--mute); font-size: var(--fs-s); margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.shelf__body .btn { align-self: flex-start; margin-top: var(--s2); white-space: normal; }
.shelf-cta { margin-top: var(--s5); }
@media (max-width: 520px) { .shelf__item { flex-direction: column; } .shelf__cover { flex-basis: auto; width: 60%; max-width: 220px; } }
