/* ============================================================================
   BLOG ITARAÍ — formato do blog WebFormas nas cores da Itaraí
   (hero + busca, pílulas, destaque + mais lidos, newsletter, grade, artigo)
   ============================================================================ */
:root {
	--b-ink: #131313; --b-ink-2: #1B1B1B; --b-red: #AF1216; --b-red-2: #8F0E12; --b-red-050: #FBEDEE;
	--b-yellow: #F1CE25; --b-paper: #FFFFFF; --b-bg: #F3F3F3; --b-text: #2A2A2A; --b-soft: #5F656C;
	--b-line: #E2E2E2; --b-r: 12px; --b-r-lg: 16px; --b-sh: 0 10px 30px -18px rgba(0,0,0,.35);
	--b-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --b-font-titulo: 'Archivo', 'Inter', sans-serif; --b-t: .18s ease;
}
.blog-body { background: var(--b-bg); font-family: var(--b-font); color: var(--b-text); }
.blog-body h1, .blog-body h2, .blog-body h3, .blog-body .nl__titulo { font-family: var(--b-font-titulo); }
.blog-body main a { text-decoration: none; }
.skip-link { position: absolute; left: -9999px; } .skip-link:focus { left: 8px; top: 8px; z-index: 999; background: #fff; padding: 8px 12px; }
.card { background: var(--b-paper); border: 1px solid var(--b-line); border-radius: var(--b-r); }
.card--hover { transition: transform var(--b-t), box-shadow var(--b-t); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--b-sh); }
.grid { display: grid; gap: 24px; } .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-body .btn { display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.5rem; border-radius: 8px; font-weight: 700; font-size: .95rem; line-height: 1.2; transition: background var(--b-t), color var(--b-t), transform var(--b-t); }
.blog-body .btn svg { width: 18px; height: 18px; }
.btn--vermelho { background: var(--b-red); color: #fff; box-shadow: 0 14px 30px -14px rgba(175,18,22,.7); }
.btn--vermelho:hover { background: var(--b-red-2); color: #fff; }
.btn--amarelo { background: var(--b-yellow); color: var(--b-ink); }
.btn--amarelo:hover { background: #E3BF12; color: var(--b-ink); }
.btn-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 700; color: var(--b-red); }
.btn-link svg { width: 16px; height: 16px; transition: transform var(--b-t); } .btn-link:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- 1. HERO */
.bloghero { position: relative; isolation: isolate; overflow: hidden; padding: 4rem 0 3rem; background: var(--b-ink); color: #fff; }
.bloghero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(closest-side, rgba(175,18,22,.45), transparent 75%) -120px -140px / 560px 460px no-repeat, radial-gradient(closest-side, rgba(241,206,37,.16), transparent 74%) right -160px bottom -200px / 520px 460px no-repeat; z-index: -1; }
.bloghero__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 2.5rem; align-items: end; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1rem; font-size: .85rem; color: rgba(255,255,255,.72); }
.crumbs a { color: rgba(255,255,255,.72); } .crumbs a:hover { color: var(--b-yellow); } .crumbs svg { width: 14px; height: 14px; } .crumbs [aria-current] { color: #fff; font-weight: 600; }
.bloghero h1 { font-size: clamp(2.4rem, 3vw, 4rem); line-height: 1; letter-spacing: -.03em; color: #fff; margin: 0; }
.t-amarelo { color: var(--b-yellow); }
.bloghero__sub { margin-top: .5rem; font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 500; color: rgba(255,255,255,.85); }
.blogbusca label { display: block; margin-bottom: .6rem; font-size: .95rem; font-weight: 600; color: #fff; }
.blogbusca__campo { display: flex; align-items: center; gap: .6rem; padding: .35rem .35rem .35rem 1rem; border-radius: var(--b-r); background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.blogbusca__campo svg { width: 22px; height: 22px; flex: none; color: var(--b-ink); }
.blogbusca__campo input { flex: 1; min-width: 0; border: 0; background: none; padding: .55rem 0; font: inherit; font-size: .95rem; color: var(--b-ink); }
.blogbusca__campo input:focus { outline: none; }
.blogbusca__btn { padding: .7rem 1.25rem; border: 0; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer; }

/* -------------------------------------------------------------- 2. FILTRO */
.blogfiltro { background: var(--b-paper); border-bottom: 1px solid var(--b-line); }
.blogfiltro__inner { padding-block: 1.5rem; }
.blogfiltro__rotulo { display: block; margin-bottom: .75rem; font-size: 1rem; font-weight: 600; }
.blogfiltro__pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.4rem; border-radius: 8px; background: #fff; border: 1px solid var(--b-line); color: var(--b-ink); font-size: .95rem; font-weight: 500; line-height: 1; transition: border-color var(--b-t), color var(--b-t), background var(--b-t), transform var(--b-t); }
.pill:hover { border-color: var(--b-red); color: var(--b-red); transform: translateY(-1px); }
.pill.is-active { background: var(--b-red); border-color: var(--b-red); color: #fff; font-weight: 600; }
.pill--mais { position: relative; padding: 0; }
.pill--mais summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.4rem; }
.pill--mais summary::-webkit-details-marker { display: none; }
.pill--mais summary svg { width: 16px; height: 16px; color: var(--b-red); transition: transform var(--b-t); }
.pill--mais[open] summary svg { transform: rotate(180deg); }
.pill__menu { position: absolute; left: 0; top: calc(100% + .5rem); z-index: 20; min-width: 240px; display: grid; padding: .5rem; border-radius: var(--b-r); background: #fff; border: 1px solid var(--b-line); box-shadow: var(--b-sh); }
.pill__menu a { padding: .6rem .8rem; border-radius: 8px; font-size: .92rem; color: var(--b-text); }
.pill__menu a:hover, .pill__menu a[aria-current] { background: var(--b-red-050); color: var(--b-red); }

/* --------------------------------------------------------------- 3. MIOLO */
.blogmiolo { padding-block: 2.5rem 4rem; }
.blogtitulo { font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.02em; margin: 0 0 1.5rem; color: var(--b-ink); }
.bcat { display: block; font-size: .8rem; font-weight: 700; color: var(--b-red); text-transform: uppercase; letter-spacing: .04em; }
.blogtopo { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 2rem; align-items: stretch; margin-bottom: 2.5rem; }
.blogdestaque { display: grid; grid-template-rows: auto 1fr; }
.destaque { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; border-radius: var(--b-r-lg); }
.destaque__media { display: block; min-height: 100%; background: var(--b-ink-2); }
.destaque__media img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; }
.destaque__body { padding: 2.25rem 2rem; display: flex; flex-direction: column; justify-content: center; }
.destaque__body h3 { margin: .75rem 0 0; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.12; letter-spacing: -.02em; }
.destaque__body h3 a { color: var(--b-ink); } .destaque__body h3 a:hover { color: var(--b-red); }
.destaque__resumo { margin-top: .75rem; font-size: .95rem; line-height: 1.65; color: var(--b-soft); }
.destaque .btn { margin-top: 1.5rem; align-self: flex-start; }
.bloglidos { display: grid; grid-template-rows: auto repeat(3, minmax(0, 1fr)); gap: .75rem; }
.bloglidos .blogtitulo { margin-bottom: .75rem; }
.lido { display: grid; grid-template-columns: 128px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .75rem; min-height: 0; }
.lido__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--b-bg); }
.lido__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.lido:hover .lido__media img { transform: scale(1.05); }
.lido__body h3 { margin: .25rem 0 0; font-size: 1rem; line-height: 1.3; } .lido__body h3 a { color: var(--b-ink); } .lido__body h3 a:hover { color: var(--b-red); }
.lido__seta { width: 22px; height: 22px; margin-right: .5rem; color: var(--b-red); transition: transform var(--b-t); }
.lido:hover .lido__seta { transform: translateX(4px); }

/* newsletter: faixa (lista), card (lateral do artigo) e fim do texto */
.nl { background: var(--b-ink); color: #fff; border-radius: var(--b-r-lg); }
.nl--faixa { margin: 0 0 2.5rem; padding: 2.25rem 2rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem; align-items: center; border-left: 6px solid var(--b-yellow); }
.nl--card, .nl--fim { padding: 1.5rem; }
.nl--fim { margin-top: 2.5rem; border-left: 6px solid var(--b-yellow); }
.nl__titulo { margin: 0; font-size: 1.35rem; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.nl--card .nl__titulo { font-size: 1.15rem; }
.nl__titulo::before { content: "» "; color: var(--b-yellow); }
.nl__txt { margin: .5rem 0 0; font-size: .95rem; line-height: 1.6; color: rgba(255,255,255,.78); }
.nl__form { display: flex; gap: .5rem; margin-top: 1rem; position: relative; }
.nl--card .nl__form, .nl--fim .nl__form { flex-direction: column; }
.nl__form input[type=email] { flex: 1; min-width: 0; padding: .85rem 1rem; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; font: inherit; }
.nl__form input[type=email]::placeholder { color: rgba(255,255,255,.5); }
.nl__form button { padding: .85rem 1.4rem; border: 0; border-radius: 8px; background: var(--b-yellow); color: var(--b-ink); font: inherit; font-weight: 700; cursor: pointer; }
.nl__form button:hover { background: #E3BF12; }
.nl__msg { margin: .75rem 0 0; font-size: .9rem; font-weight: 600; }
.nl__msg--ok { color: #7CE0A3; } .nl__msg--erro { color: #FFB4A2; }

/* recentes */
.blogrecentes__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.blogrecentes__head .blogtitulo { margin-bottom: 0; }
.blogordem { padding: .7rem 1.2rem; border-radius: 8px; background: #fff; border: 1px solid var(--b-line); font-size: .92rem; font-weight: 600; }
.bloggrid { margin-top: 1.5rem; }
.bcard { overflow: hidden; display: flex; flex-direction: column; padding: .75rem; }
.bcard__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--b-bg); }
.bcard__media img, .bcard__vazio { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bcard:hover .bcard__media img { transform: scale(1.05); }
.bcard__body { flex: 1; display: flex; flex-direction: column; padding: 1rem .5rem .5rem; }
.bcard__body h3 { margin: .35rem 0 0; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; } .bcard__body h3 a { color: var(--b-ink); } .bcard__body h3 a:hover { color: var(--b-red); }
.bcard .btn-link { margin-top: auto; padding-top: 1rem; align-self: flex-start; }
.blogvazio { padding: 2.25rem; border-radius: var(--b-r); background: #fff; border: 1px dashed var(--b-line); color: var(--b-soft); text-align: center; }
.blogpag { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.blogpag__num, .blogpag__gap, .blogpag__prox { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 .75rem; border-radius: 10px; font-size: .95rem; font-weight: 600; color: var(--b-text); }
.blogpag__num:hover { background: var(--b-red-050); color: var(--b-red); }
.blogpag__num.is-active { background: var(--b-red); color: #fff; }
.blogpag__gap { color: #9A9A9A; }
.blogpag__prox { gap: .5rem; margin-left: .5rem; background: #fff; border: 1px solid var(--b-line); } .blogpag__prox svg { width: 18px; height: 18px; } .blogpag__prox:hover { border-color: var(--b-red); color: var(--b-red); }

/* -------------------------------------------------------------- 4. ARTIGO */
.artigo-pagina { padding-top: 2rem; }
.artigo-preview { max-width: 1240px; margin: 0 auto 1.5rem; padding: .75rem 1.25rem; border-radius: 8px; background: #FFF4D6; color: #7A4B00; font-size: .9rem; font-weight: 500; }
.artigo-topo { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid var(--b-line); margin-bottom: 2.25rem; }
.artigo-voltar { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; font-weight: 600; color: var(--b-soft); }
.artigo-voltar svg { width: 18px; height: 18px; transition: transform var(--b-t); } .artigo-voltar:hover { color: var(--b-red); } .artigo-voltar:hover svg { transform: translateX(-3px); }
.artigo-share { display: flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--b-soft); }
.artigo-share__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--b-line); color: var(--b-ink); transition: transform var(--b-t), box-shadow var(--b-t), border-color var(--b-t); cursor: pointer; }
.artigo-share__btn svg { width: 18px; height: 18px; } .artigo-share__btn:hover { transform: translateY(-2px); box-shadow: var(--b-sh); border-color: var(--b-red); }
.artigo-share__btn--wa { color: #1FAF38; } .artigo-share__btn--in { color: #0A66C2; }
.artigo-share__aviso { font-size: .8rem; font-weight: 500; color: var(--b-red); }
.artigo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 4rem; align-items: start; padding-bottom: 4rem; }
.artigo-corpo { min-width: 0; max-width: 46rem; }
.artigo-cab .bcat { margin-bottom: .75rem; }
.artigo-cab h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.12; letter-spacing: -.025em; color: var(--b-ink); margin: 0; }
.artigo-lead { margin-top: 1rem; font-size: 1.15rem; line-height: 1.6; color: var(--b-soft); }
.artigo-meta { margin-top: 1rem; font-size: .9rem; color: var(--b-soft); } .artigo-meta strong { color: var(--b-ink); font-weight: 600; }
.artigo-capa { margin: 2rem 0 2.25rem; }
.artigo-capa img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--b-r-lg); box-shadow: var(--b-sh); }
.artigo-capa figcaption { margin-top: .75rem; font-size: .85rem; color: var(--b-soft); text-align: center; }
.blog-body .prose { font-size: 1.05rem; line-height: 1.8; color: var(--b-text); }
.blog-body .prose > * + * { margin-top: 1.1em; }
.blog-body .prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.25; margin-top: 2em; letter-spacing: -.02em; color: var(--b-ink); }
.blog-body .prose h3 { font-size: 1.2rem; line-height: 1.35; margin-top: 1.6em; color: var(--b-ink); }
.blog-body .prose a { color: var(--b-red); text-decoration: underline; text-underline-offset: 3px; }
.blog-body .prose img { max-width: 100%; height: auto; border-radius: 8px; }
.blog-body .prose ul { list-style: disc; padding-left: 1.4em; } .blog-body .prose ol { list-style: decimal; padding-left: 1.4em; }
.blog-body .prose ul li::before { content: none; } .blog-body .prose li + li { margin-top: .4em; } .blog-body .prose li::marker { color: var(--b-red); }
.blog-body .prose blockquote { padding: 1rem 1.5rem; border-left: 3px solid var(--b-red); background: var(--b-red-050); border-radius: 0 8px 8px 0; font-weight: 500; color: var(--b-ink); }
.artigo-faq { margin-top: 2.5rem; } .artigo-faq h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -.02em; color: var(--b-ink); margin: 0 0 1.5rem; }
.accordion { display: grid; gap: .75rem; } .accordion__item { padding: 0; } .accordion__btn { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; font-weight: 600; color: var(--b-ink); }
.accordion__btn::-webkit-details-marker { display: none; } .accordion__sign::before { content: "+"; color: var(--b-red); font-weight: 700; } .accordion__item[open] .accordion__sign::before { content: "−"; }
.accordion__panel { padding: 0 1.25rem 1.25rem; line-height: 1.7; }
.artigo-fecho { margin-top: 2.5rem; padding: 1.5rem 2rem; border-radius: var(--b-r); background: var(--b-red-050); border: 1px solid #F1D5D6; font-size: 1.05rem; line-height: 1.65; color: var(--b-ink); }
.artigo-fecho a { color: var(--b-red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.artigo__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.artigo__tags a { padding: .4rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--b-line); font-size: .85rem; color: var(--b-soft); }
.artigo__tags a:hover { border-color: var(--b-red); color: var(--b-red); }
.artigo-lateral { min-width: 0; position: sticky; top: 1.5rem; }
.artigo-lateral__fixo { display: grid; gap: 1.5rem; }
.lateral-bloco { padding: 1.5rem; }
.lateral-bloco__titulo { display: flex; align-items: center; gap: .6rem; font-size: 1rem; font-weight: 700; color: var(--b-ink); margin: 0 0 1rem; }
.lateral-bloco__titulo svg { width: 20px; height: 20px; color: var(--b-red); flex: none; }
.toc__lista { list-style: none; padding: 0; margin: 0; position: relative; }
.toc__lista::before { content: ""; position: absolute; left: 5px; top: .7rem; bottom: .7rem; width: 2px; background: var(--b-line); }
.toc__lista li { position: relative; padding-left: 1.4rem; } .toc__lista li + li { margin-top: .55rem; }
.toc__lista li::before { content: ""; position: absolute; left: 0; top: .5rem; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--b-line); transition: border-color var(--b-t), background var(--b-t); }
.toc__lista a { display: block; font-size: .9rem; line-height: 1.45; color: var(--b-soft); } .toc__lista a:hover { color: var(--b-red); }
.toc__lista li.is-active::before { border-color: var(--b-red); background: var(--b-red); } .toc__lista li.is-active a { color: var(--b-ink); font-weight: 600; }
.toc__topo { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--b-line); width: 100%; font-size: .85rem; font-weight: 600; color: var(--b-red); } .toc__topo svg { width: 15px; height: 15px; }
.lateral-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.lateral-tags a { padding: .35rem .75rem; border-radius: 999px; background: var(--b-bg); border: 1px solid var(--b-line); font-size: .82rem; font-weight: 500; color: var(--b-text); } .lateral-tags a:hover { border-color: var(--b-red); color: var(--b-red); background: #fff; }
.lateral-cta { padding: 1.5rem; border-radius: var(--b-r-lg); background: linear-gradient(160deg, var(--b-red), #6E0B0E); color: #fff; box-shadow: 0 18px 40px rgba(175,18,22,.28); }
.lateral-cta h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -.02em; color: #fff; margin: 0; }
.lateral-cta p { margin-top: .75rem; font-size: .95rem; line-height: 1.6; color: rgba(255,255,255,.86); }
.lateral-cta .btn { margin-top: 1.5rem; width: 100%; justify-content: center; }
.leiatambem { padding-bottom: 4rem; }

/* ------------------------------------------------------------ RESPONSIVO */
@media (max-width: 1024px) {
	.bloghero__inner { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
	.blogtopo { grid-template-columns: minmax(0, 1fr); } .bloglidos { grid-template-rows: none; }
	.nl--faixa { grid-template-columns: minmax(0, 1fr); }
	.bloggrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.artigo-grid { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; } .artigo-corpo { max-width: none; }
	.artigo-lateral { position: static; top: auto !important; } .artigo-lateral__fixo { grid-template-columns: repeat(2, minmax(0, 1fr)); } .artigo-lateral__fixo .lateral-cta { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.bloghero { padding: 2.5rem 0 2rem; }
	.destaque { grid-template-columns: minmax(0, 1fr); } .destaque__media img { min-height: 0; aspect-ratio: 16 / 10; }
	.bloggrid { grid-template-columns: minmax(0, 1fr); } .lido { grid-template-columns: 110px minmax(0, 1fr) auto; }
	.nl--faixa { padding: 1.5rem; } .nl__form { flex-direction: column; }
	.blogpag__num:not(.is-active):not(:first-child):not(:last-child) { display: none; }
	.artigo-lateral__fixo { grid-template-columns: minmax(0, 1fr); } .blog-body .prose { font-size: 1rem; } .artigo-fecho { padding: 1rem 1.5rem; }
}
