/*
Theme Name: HAASAAH (hsh-v1)
Theme URI: https://haasaah.com
Author: HAASAAH Serviços Empresariais
Description: Tema de blocos próprio da HAASAAH Serviços Empresariais. Minimalismo escuro, Syne + Inter, sem page builder.
Version: 0.5.4
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hsh-v1
*/

/* ==========================================================================
   Regras gerais
   Só tokens do theme.json (var(--wp--…)). Medidas estruturais (1px de linha,
   44px de alvo de toque, pontos da linha do tempo) ficam em px.
   ========================================================================== */

.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks > main { margin-block-start: 0; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--signal);
	outline-offset: 3px;
	border-radius: 4px;
}

a:hover { text-decoration: none; opacity: .75; }
.wp-element-button:hover, .wp-block-button__link:hover { opacity: .85; }

.hsh-muted { color: var(--wp--preset--color--stone); }

/* Eyebrow: rótulo em caixa alta acima dos títulos */
.hsh-eyebrow {
	margin: 0;
	font-size: var(--wp--preset--font-size--xs);
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--wp--preset--color--stone);
}
.hsh-eyebrow.is-accent { color: var(--wp--preset--color--signal); }
.hsh-eyebrow.has-traco { display: flex; align-items: center; gap: 12px; letter-spacing: .16em; }
.hsh-eyebrow.has-traco::before {
	content: "";
	width: 24px;
	height: 1px;
	background: var(--wp--preset--color--signal);
	flex: none;
}

/* Seções */
.hsh-secao { padding-block: var(--wp--preset--spacing--80); }
.hsh-secao.is-media { padding-block: var(--wp--preset--spacing--70); }
.hsh-linha-topo { border-top: 1px solid var(--wp--custom--line); }
.hsh-linha-base { border-bottom: 1px solid var(--wp--custom--line); }

/* Duas colunas que quebram sozinhas (flex com base mínima) */
.hsh-duas-colunas { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--60); }
.hsh-duas-colunas > * { flex: 1 1 380px; min-width: 0; margin: 0 !important; }
.hsh-duas-colunas > .is-larga { flex: 999 1 520px; }

.hsh-pilha { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--35); }
.hsh-pilha > * { margin: 0 !important; }

/* Link sublinhado ("Ver todas as publicações", "Ler o case") */
.hsh-link-sublinhado a,
a.hsh-link-sublinhado,
.hsh-link-sublinhado.wp-block-read-more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	border-bottom: 1px solid var(--wp--preset--color--bone);
	font-weight: 500;
	text-decoration: none;
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */

/* O blur fica num ::before: backdrop-filter no próprio header prenderia o menu
   mobile (position: fixed) dentro dele. */
.hsh-cabecalho {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	isolation: isolate;
	border-bottom: 1px solid var(--wp--custom--line);
}
.hsh-cabecalho::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--custom--glass);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.hsh-cabecalho-interno {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	padding-block: 18px;
}
.hsh-cabecalho-interno > * { margin: 0 !important; }

.hsh-marca { display: flex; align-items: center; gap: 18px; }
.hsh-marca > * { margin: 0 !important; }
.hsh-logo-link { display: block; line-height: 0; }
.hsh-logo-link:hover { opacity: 1; }
.hsh-logo-svg { display: block; width: auto; }
.hsh-logo-simbolo { fill: var(--wp--preset--color--vinho); }
.hsh-logo-texto { fill: var(--wp--preset--color--bone); }
.hsh-marca .hsh-logo-svg { height: 44px; }
.hsh-marca .wp-block-image a:hover { opacity: 1; }
.hsh-descritor {
	padding-left: 18px;
	border-left: 1px solid var(--wp--custom--line-strong);
	font-size: var(--wp--preset--font-size--xs);
	line-height: 1.25;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--stone);
}

.hsh-nav { font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--stone); }
.hsh-nav .wp-block-navigation-item__content { padding-block: 12px; }
.hsh-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--bone); opacity: 1; }
.hsh-nav .hsh-nav-cta > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--white);
	background: var(--wp--preset--color--vinho);
	padding: 11px 20px;
	border-radius: var(--wp--custom--radius--botao);
	font-weight: 500;
}
.hsh-nav .hsh-nav-cta > .wp-block-navigation-item__content:hover { opacity: .85; }

/* Botão do menu mobile: 44×44 em pílula */
.hsh-nav .wp-block-navigation__responsive-container-open,
.hsh-nav .wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border-radius: var(--wp--custom--radius--botao);
	border: 1px solid var(--wp--custom--line-strong);
	color: var(--wp--preset--color--bone);
}
.hsh-nav .wp-block-navigation__responsive-container-close {
	display: flex;
	padding: 0;
	top: 16px;
	right: var(--wp--custom--gutter);
}
.hsh-nav .wp-block-navigation__responsive-container-close svg,
.hsh-nav .wp-block-navigation__responsive-container-open svg { width: 22px; height: 22px; margin: 0; }
@media (max-width: 599px) {
	.hsh-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; padding: 0; }
}
.hsh-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--60) var(--wp--custom--gutter);
}
.hsh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--60);
	align-items: flex-start;
}
.hsh-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	align-items: flex-start;

	gap: var(--wp--preset--spacing--20);
	font-family: var(--wp--preset--font-family--display);
	font-size: var(--wp--preset--font-size--xl);
	font-weight: 600;
	color: var(--wp--preset--color--bone);
}
.hsh-nav .wp-block-navigation__responsive-container.is-menu-open .hsh-nav-cta > .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--md);
	padding: 14px 26px;
	margin-top: var(--wp--preset--spacing--20);
}

/* ==========================================================================
   Home — Hero
   ========================================================================== */

.hsh-hero { padding-top: var(--wp--preset--spacing--80); padding-bottom: var(--wp--preset--spacing--70); }
.hsh-hero-grade { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--60); align-items: flex-end; }
.hsh-hero-grade > * { margin: 0 !important; }
.hsh-hero-texto { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: var(--wp--preset--spacing--40); }
.hsh-hero-texto > * { margin: 0 !important; }
.hsh-hero h1 { font-size: var(--wp--preset--font-size--display); }
.hsh-hero-sub { max-width: 580px; font-size: var(--wp--preset--font-size--lg); color: var(--wp--preset--color--stone); }
.hsh-hero .wp-block-buttons { gap: 12px; }
.hsh-seta .wp-block-button__link::after {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Botões: principal retangular; secundário (estilo "outline") vira link sublinhado com seta */
.wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; }
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--bone);
	border: 0;
	border-bottom: 1px solid var(--wp--custom--line-strong);
	border-radius: 0;
	padding-inline: 0;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-bottom-color: var(--wp--preset--color--bone); opacity: 1; }
.wp-block-button.is-style-outline > .wp-block-button__link::after {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover::after { transform: translate(2px, -2px); }
.wp-block-buttons { column-gap: var(--wp--preset--spacing--40); }

/* Card "Como integramos" */
.hsh-card {
	border: 1px solid var(--wp--custom--line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--graphite);
	padding: var(--wp--preset--spacing--35);
}
.hsh-camadas { flex: 1 1 300px; min-width: 260px; }
.hsh-camadas .hsh-eyebrow { margin-bottom: 20px; }
.hsh-camadas-lista { list-style: none; margin: 0; padding: 0; }
.hsh-camadas-lista li {
	position: relative;
	padding: 0 0 20px 28px;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--stone);
	line-height: 1.5;
}
.hsh-camadas-lista li::before {
	content: "";
	position: absolute;
	left: 1px;
	top: 7px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--wp--preset--color--stone);
}
.hsh-camadas-lista li::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 20px;
	bottom: 4px;
	width: 1px;
	background: var(--wp--custom--line);
}
.hsh-camadas-lista li:last-child { padding-bottom: 0; }
.hsh-camadas-lista li:last-child::before { background: var(--wp--preset--color--signal); }
.hsh-camadas-lista li:last-child::after { display: none; }
.hsh-camadas-lista strong {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--lead-sm);
	color: var(--wp--preset--color--bone);
}

/* ==========================================================================
   Números
   ========================================================================== */

.hsh-numeros-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.hsh-numeros-grade > * { margin: 0 !important; padding-block: 36px; display: flex; flex-direction: column; gap: 4px; }
.hsh-numeros-grade > * > * { margin: 0 !important; }
.hsh-numero {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--stat);
	line-height: 1;
	letter-spacing: -0.03em;
}
.hsh-numero-rotulo { font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--stone); }

/* ==========================================================================
   Experiência com
   ========================================================================== */

.hsh-clientes { display: flex; align-items: center; gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50); padding-block: var(--wp--preset--spacing--50); }
.hsh-clientes > * { margin: 0 !important; }
.hsh-clientes > .hsh-eyebrow { flex: none; }

/* Faixa giratória de logos */
.hsh-faixa { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--wp--preset--spacing--20); }
.hsh-faixa-janela {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, var(--wp--preset--color--ink) 6%, var(--wp--preset--color--ink) 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, var(--wp--preset--color--ink) 6%, var(--wp--preset--color--ink) 94%, transparent);
}
.hsh-faixa-trilho { display: flex; width: max-content; animation: hsh-rolagem 45s linear infinite; }
.hsh-faixa-lista { display: flex; align-items: center; gap: var(--wp--preset--spacing--60); margin: 0; padding: 0 var(--wp--preset--spacing--60) 0 0; list-style: none; }
.hsh-faixa-lista li { display: flex; align-items: center; height: 48px; }
.hsh-logo-cliente {
	display: block;
	height: var(--h, 28px);
	background: var(--wp--preset--color--stone);
	-webkit-mask: var(--logo) center / contain no-repeat;
	mask: var(--logo) center / contain no-repeat;
	transition: background-color .2s;
}
.hsh-faixa-lista li:hover .hsh-logo-cliente { background: var(--wp--preset--color--bone); }
@keyframes hsh-rolagem { to { transform: translateX(-50%); } }
.hsh-faixa:hover .hsh-faixa-trilho,
.hsh-faixa:focus-within .hsh-faixa-trilho,
.hsh-faixa.is-pausada .hsh-faixa-trilho { animation-play-state: paused; }

.hsh-faixa-pausa {
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--wp--custom--line-strong);
	border-radius: var(--wp--custom--radius--botao);
	background: transparent;
	color: var(--wp--preset--color--stone);
	cursor: pointer;
	position: relative;
}
.hsh-faixa-pausa::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='5' width='4' height='14' fill='black'/%3E%3Crect x='14' y='5' width='4' height='14' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='5' width='4' height='14' fill='black'/%3E%3Crect x='14' y='5' width='4' height='14' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hsh-faixa.is-pausada .hsh-faixa-pausa::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='black'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='black'/%3E%3C/svg%3E");
}
.hsh-faixa-pausa:hover { color: var(--wp--preset--color--bone); }

@media (prefers-reduced-motion: reduce) {
	.hsh-faixa-trilho { animation: none; width: auto; }
	.hsh-faixa-janela { -webkit-mask-image: none; mask-image: none; }
	.hsh-faixa-lista { flex-wrap: wrap; row-gap: var(--wp--preset--spacing--30); padding-right: 0; }
	.hsh-faixa-lista[aria-hidden="true"], .hsh-faixa-pausa { display: none; }
}

/* ==========================================================================
   Quem somos
   ========================================================================== */

.hsh-texto-apoio { font-size: var(--wp--preset--font-size--lead-sm); color: var(--wp--preset--color--stone); max-width: 460px; }
.hsh-capacidades { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: capacidade; }
.hsh-capacidades li {
	counter-increment: capacidade;
	display: grid;
	grid-template-columns: 28px 1fr;
	column-gap: var(--wp--preset--spacing--30);
	padding-block: 20px;
	border-bottom: 1px solid var(--wp--custom--line);
	font-size: var(--wp--preset--font-size--ui);
	color: var(--wp--preset--color--stone);
}
.hsh-capacidades li::before {
	content: counter(capacidade, decimal-leading-zero);
	grid-row: 1 / span 2;
	padding-top: 3px;
	font-size: var(--wp--preset--font-size--caption);
}
.hsh-capacidades strong { font-weight: 500; font-size: var(--wp--preset--font-size--lead-sm); color: var(--wp--preset--color--bone); }

/* ==========================================================================
   Áreas de atuação
   ========================================================================== */

.hsh-areas-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--wp--preset--spacing--30); margin-bottom: var(--wp--preset--spacing--55); }
.hsh-areas-topo > * { margin: 0 !important; }
.hsh-areas-topo .hsh-eyebrow { margin-bottom: 20px !important; }
.hsh-areas-topo > p { max-width: 380px; color: var(--wp--preset--color--stone); }

.hsh-grade-areas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	border-top: 1px solid var(--wp--custom--line);
	border-left: 1px solid var(--wp--custom--line);
}
.hsh-grade-areas > .hsh-area { margin: 0 !important; }
@media (min-width: 1100px) { .hsh-grade-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hsh-area {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
	min-height: 280px;
	padding: 36px var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
	border-right: 1px solid var(--wp--custom--line);
	border-bottom: 1px solid var(--wp--custom--line);
}
.hsh-area > * { margin: 0 !important; }
.hsh-area::after {
	content: "";
	position: absolute;
	top: 38px;
	right: var(--wp--preset--spacing--40);
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hsh-area:hover { background: var(--wp--preset--color--graphite-2); }
.hsh-area-num { display: flex; align-items: center; gap: 12px; min-height: 24px; }
.hsh-area-num > * { margin: 0 !important; }
.hsh-area-num p:first-child { font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--stone); }
.hsh-selo {
	padding: 3px 10px;
	border-radius: var(--wp--custom--radius--botao);
	background: var(--wp--preset--color--vinho);
	color: var(--wp--preset--color--white);
	font-size: var(--wp--preset--font-size--xxs);
	letter-spacing: .08em;
	text-transform: uppercase;
	line-height: 1.4;
}
.hsh-area h3 { font-size: var(--wp--preset--font-size--xl); }
/* O link do título cobre a célula inteira */
.hsh-area h3 a::after { content: ""; position: absolute; inset: 0; }
.hsh-area h3 a:hover { opacity: 1; }
.hsh-area-resumo { flex: 1; font-size: var(--wp--preset--font-size--ui); color: var(--wp--preset--color--stone); }
.hsh-area-tags { font-size: var(--wp--preset--font-size--xs); letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--stone); }

/* ==========================================================================
   Cases & Ideias (Home)
   ========================================================================== */

.hsh-cases-topo { display: flex; justify-content: space-between; align-items: center; gap: var(--wp--preset--spacing--20); margin-bottom: 20px; }
.hsh-cases-topo > * { margin: 0 !important; }
.hsh-cases-topo .hsh-link-sublinhado a { font-size: var(--wp--preset--font-size--sm); font-weight: 400; }

.hsh-destaque .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.hsh-destaque-corpo {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--50);
	align-items: flex-start;
	padding-bottom: var(--wp--preset--spacing--60);
	border-bottom: 1px solid var(--wp--custom--line);
}
.hsh-destaque-corpo > * { margin: 0 !important; }
.hsh-destaque-texto { flex: 999 1 520px; min-width: 0; }
.hsh-destaque-texto > * { margin: 0 !important; }
.hsh-destaque-meta { display: flex; flex-wrap: wrap; gap: 0 .5em; font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--stone); margin-bottom: 12px !important; }
.hsh-destaque-meta > * { margin: 0 !important; }
.hsh-destaque-meta > * + *::before { content: "· "; }
.hsh-destaque-texto .wp-block-post-title { font-size: var(--wp--preset--font-size--enorme); line-height: 1.02; letter-spacing: -0.035em; }
.hsh-destaque-texto .wp-block-post-excerpt { margin-top: var(--wp--preset--spacing--30) !important; max-width: 560px; font-size: var(--wp--preset--font-size--lead-sm); color: var(--wp--preset--color--stone); }
.hsh-destaque-texto .wp-block-post-excerpt__excerpt { margin: 0; }
.hsh-destaque-texto .wp-block-read-more { margin-top: var(--wp--preset--spacing--35) !important; }

.hsh-ficha {
	flex: 1 1 320px;
	min-width: 260px;
	border: 1px solid var(--wp--custom--line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--graphite);
	padding: 8px var(--wp--preset--spacing--35);
}
.hsh-ficha > * { margin: 0 !important; }
.hsh-ficha-linha {
	display: flex;
	justify-content: space-between;
	gap: var(--wp--preset--spacing--20);
	padding-block: 18px;
	border-bottom: 1px solid var(--wp--custom--line);
}
.hsh-ficha-linha:last-child { border-bottom: 0; }
.hsh-ficha-linha > * { margin: 0 !important; }
.hsh-ficha-linha p:first-child { font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--stone); flex: none; }
.hsh-ficha-linha p:last-child { text-align: right; font-weight: 500; font-size: var(--wp--preset--font-size--ui); }

.hsh-recentes-titulo { font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--stone); padding-top: var(--wp--preset--spacing--45); }
.hsh-recentes .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: var(--wp--preset--spacing--45);
	padding: 20px 0 0;
	margin: 0;
	list-style: none;
}
.hsh-recentes .wp-block-post { position: relative; display: flex; flex-direction: column; gap: 12px; margin: 0 !important; }
.hsh-recentes .wp-block-post > * { margin: 0 !important; }
.hsh-recentes-meta { display: flex; flex-wrap: wrap; gap: 0 .4em; font-size: var(--wp--preset--font-size--sm); }
.hsh-recentes-meta > * { margin: 0 !important; }
.hsh-recentes-meta .taxonomy-category { color: var(--wp--preset--color--signal); font-weight: 500; }
.hsh-recentes-meta .taxonomy-post_tag { color: var(--wp--preset--color--stone); }
.hsh-recentes-meta .taxonomy-post_tag::before { content: "· "; }
.hsh-recentes-meta a { pointer-events: none; }
.hsh-recentes .wp-block-post-title { font-size: var(--wp--preset--font-size--titulo-lg); letter-spacing: -0.02em; }
.hsh-recentes .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.hsh-recentes .wp-block-post-excerpt { font-size: var(--wp--preset--font-size--ui); color: var(--wp--preset--color--stone); }
.hsh-recentes .wp-block-post-excerpt__excerpt { margin: 0; }

/* ==========================================================================
   Stack
   ========================================================================== */

.hsh-stack-grupos { flex: 999 1 560px !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--wp--preset--spacing--40); }
.hsh-stack-grupos > * { margin: 0 !important; }
.hsh-stack-grupos > * > * { margin: 0 !important; }
.hsh-stack-rotulo { font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--stone); padding-bottom: 12px; border-bottom: 1px solid var(--wp--custom--line); margin-bottom: 14px !important; }
.hsh-stack-itens { font-size: var(--wp--preset--font-size--ui); line-height: 1.9; }
.hsh-h2-pequeno { font-size: var(--wp--preset--font-size--xxl) !important; line-height: 1.1; }

/* ==========================================================================
   Ecossistema
   ========================================================================== */

.hsh-eco-topo { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.hsh-eco-topo > * { margin: 0 !important; }
.hsh-eco-intro { font-size: var(--wp--preset--font-size--lead-sm); color: var(--wp--preset--color--stone); }
.hsh-eco-grade { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: var(--wp--preset--spacing--50); }
@media (min-width: 700px) { .hsh-eco-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .hsh-eco-grade { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hsh-eco-grade > * { margin: 0 !important; }
.hsh-eco-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--custom--line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--ink);
	transition: border-color .2s ease;
}
.hsh-eco-card > * { margin: 0 !important; }
.hsh-eco-card:hover, .hsh-eco-card:focus-within { border-color: var(--wp--custom--line-strong); }
/* Logo: área de altura fixa; cada marca com a altura que equilibra o peso visual entre as quatro. */
.hsh-eco-logo { display: flex; align-items: center; height: 52px; margin-bottom: 8px; color: var(--wp--preset--color--bone); }
.hsh-eco-logo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.hsh-eco-logo:focus-visible { outline: none; }
.hsh-eco-card:has(.hsh-eco-logo:focus-visible) { outline: 2px solid var(--wp--preset--color--signal); outline-offset: 3px; }
.hsh-eco-logo-svg { display: block; width: auto; height: 40px; max-width: 100%; }
.is-hpbi .hsh-eco-logo-svg { height: 46px; }
.is-telgrid .hsh-eco-logo-svg { height: 30px; }
.is-octrah .hsh-eco-logo-svg { height: 46px; }
.is-fiscoh .hsh-eco-logo-svg { height: 32px; }
.hsh-eco-rotulo { font-size: var(--wp--preset--font-size--xs); letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--signal); }
.hsh-eco-titulo { font-size: var(--wp--preset--font-size--titulo-sm) !important; line-height: 1.2; letter-spacing: -0.02em; }
.hsh-eco-desc { font-size: var(--wp--preset--font-size--ui); color: var(--wp--preset--color--stone); }
.hsh-eco-itens { flex: 1; margin: 4px 0 0 !important; padding: 0; list-style: none; border-top: 1px solid var(--wp--custom--line); }
.hsh-eco-itens li { position: relative; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--wp--custom--line); font-size: var(--wp--preset--font-size--sm); line-height: 1.45; color: var(--wp--preset--color--stone); }
.hsh-eco-itens li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 1px; background: var(--wp--preset--color--signal); }
.hsh-eco-url { font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--stone); margin-top: 8px !important; }
.hsh-eco-card:hover .hsh-eco-url { color: var(--wp--preset--color--bone); }

/* ==========================================================================
   Contato
   ========================================================================== */

.hsh-contato h2 { font-size: var(--wp--preset--font-size--enorme); line-height: 1.04; letter-spacing: -0.035em; }
.hsh-contato-lista { border-top: 1px solid var(--wp--custom--line); }
.hsh-contato-lista > * { margin: 0 !important; }
.hsh-contato-linha { display: flex; justify-content: space-between; gap: var(--wp--preset--spacing--20); padding-block: 18px; border-bottom: 1px solid var(--wp--custom--line); }
.hsh-contato-linha > * { margin: 0 !important; }
.hsh-contato-linha p:first-child { font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--stone); }
.hsh-contato-linha p:last-child { text-align: right; }

.hsh-form-card {
	padding: 36px;
	border: 1px solid var(--wp--custom--line);
	border-radius: var(--wp--custom--radius--card-lg);
	background: var(--wp--preset--color--graphite);
}
.hsh-form-aviso { color: var(--wp--preset--color--stone); }

/* Fluent Forms dentro do card */
.hsh-form-card .fluentform .ff-el-group { margin-bottom: 20px; }
.hsh-form-card .fluentform .ff-el-input--label label {
	font-size: var(--wp--preset--font-size--caption);
	font-weight: 400;
	color: var(--wp--preset--color--stone);
}
.hsh-form-card .fluentform .ff-el-form-control {
	min-height: 48px;
	padding: 12px 16px;
	border-radius: var(--wp--custom--radius--input);
	border: 1px solid var(--wp--custom--line-strong);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--bone);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--ui);
}
.hsh-form-card .fluentform textarea.ff-el-form-control { min-height: 120px; resize: vertical; }
.hsh-form-card .fluentform .ff-el-form-control:focus { border-color: var(--wp--preset--color--stone); }
.hsh-form-card .fluentform .ff-el-form-check-label,
.hsh-form-card .fluentform .ff_t_c { font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--stone); }
.hsh-form-card .fluentform .ff-btn-submit {
	width: 100%;
	min-height: 52px;
	border: 0;
	border-radius: var(--wp--custom--radius--botao) !important;
	background: var(--wp--preset--color--vinho) !important;
	color: var(--wp--preset--color--white) !important;
	font-family: inherit;
	font-weight: 500;
	font-size: var(--wp--preset--font-size--ui);
}
.hsh-form-card .fluentform .error,
.hsh-form-card .fluentform .text-danger { color: var(--wp--preset--color--signal); }

/* ==========================================================================
   Rodapé
   ========================================================================== */

.hsh-rodape { border-top: 1px solid var(--wp--custom--line); font-size: var(--wp--preset--font-size--sm); }
.hsh-rodape-topo { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--wp--preset--spacing--45); padding: var(--wp--preset--spacing--55) 0 var(--wp--preset--spacing--45); }
.hsh-rodape-topo > * { margin: 0 !important; }
.hsh-rodape-marca { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.hsh-rodape-marca > * { margin: 0 !important; }
.hsh-rodape-marca .hsh-logo-svg { height: 36px; }
.hsh-rodape-marca p { color: var(--wp--preset--color--stone); }
.hsh-rodape-colunas { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--60); }
.hsh-rodape-colunas > * { margin: 0 !important; }
.hsh-rodape-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hsh-rodape-lista li:first-child { color: var(--wp--preset--color--stone); }
.hsh-rodape-base {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 0 var(--wp--preset--spacing--40);
	border-top: 1px solid var(--wp--custom--line);
	font-size: var(--wp--preset--font-size--caption);
	color: var(--wp--preset--color--stone);
}
.hsh-rodape-base > * { margin: 0 !important; }

/* ==========================================================================
   Blog — Cases & Ideias (home.html e category.html)
   ========================================================================== */

.hsh-blog-topo { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--45); }
.hsh-blog-cabeca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--wp--preset--spacing--40); }
.hsh-blog-cabeca > * { margin: 0 !important; }
.hsh-blog-titulo { max-width: 760px; }
.hsh-blog-titulo h1 { font-size: var(--wp--preset--font-size--display); line-height: 1; letter-spacing: -0.04em; }
.hsh-rss a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--stone);
}
.hsh-rss a::before {
	content: "";
	width: 16px;
	height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 11a8 8 0 0 1 8 8M5 5a14 14 0 0 1 14 14'/%3E%3Ccircle cx='6' cy='18' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M5 11a8 8 0 0 1 8 8M5 5a14 14 0 0 1 14 14'/%3E%3Ccircle cx='6' cy='18' r='1'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hsh-filtros { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--wp--preset--spacing--45) !important; }
.hsh-filtro {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 20px;
	border: 1px solid var(--wp--custom--line-strong);
	border-radius: var(--wp--custom--radius--botao);
	font-size: var(--wp--preset--font-size--sm);
	color: var(--wp--preset--color--stone);
}
.hsh-filtro span { opacity: .6; }
.hsh-filtro:hover { color: var(--wp--preset--color--bone); border-color: var(--wp--preset--color--stone); opacity: 1; }
.hsh-filtro[aria-current="page"] { background: var(--wp--preset--color--bone); border-color: var(--wp--preset--color--bone); color: var(--wp--preset--color--ink); }

.hsh-blog-corpo { padding-bottom: var(--wp--preset--spacing--70); }
.hsh-blog-corpo > * + * { margin-top: 0 !important; }

/* Destaque (post fixado) */
.hsh-blog-destaque { margin-bottom: var(--wp--preset--spacing--60) !important; }
.hsh-blog-destaque .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.hsh-blog-destaque-card {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	border: 1px solid var(--wp--custom--line);
	border-radius: var(--wp--custom--radius--card-lg);
	overflow: hidden;
	background: var(--wp--preset--color--graphite);
}
.hsh-blog-destaque-card > * { margin: 0 !important; }
.hsh-blog-destaque-card .wp-block-post-featured-image { flex: 1 1 440px; border-right: 1px solid var(--wp--custom--line); }
.hsh-blog-destaque-card .wp-block-post-featured-image img { height: 100%; object-fit: cover; }
.hsh-blog-destaque-texto {
	flex: 1 1 440px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--wp--preset--spacing--20);
	padding: var(--wp--preset--spacing--50);
}
.hsh-blog-destaque-texto > * { margin: 0 !important; }
.hsh-blog-destaque-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--stone); }
.hsh-blog-destaque-meta > * { margin: 0 !important; }
.hsh-blog-destaque-meta p:empty { display: none; }
.hsh-blog-destaque-meta p + p::before { content: "· "; }
.hsh-selo-categoria a {
	display: inline-block;
	padding: 4px 12px;
	border-radius: var(--wp--custom--radius--botao);
	background: var(--wp--preset--color--vinho);
	color: var(--wp--preset--color--white);
	pointer-events: none;
}
.hsh-blog-destaque-texto .wp-block-post-title { font-size: var(--wp--preset--font-size--xxl); line-height: 1.08; letter-spacing: -0.03em; }
.hsh-blog-destaque-texto .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.hsh-blog-destaque-texto .wp-block-post-excerpt { font-size: var(--wp--preset--font-size--lead-sm); color: var(--wp--preset--color--stone); }
.hsh-blog-destaque-texto .wp-block-post-excerpt__excerpt { margin: 0; }
.hsh-blog-destaque-texto .wp-block-read-more { align-self: flex-start; margin-top: 8px !important; }

/* Grade de publicações com linhas finas */
.hsh-blog-grade .wp-block-post-template {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--wp--custom--line);
	border-left: 1px solid var(--wp--custom--line);
}
.hsh-blog-grade .wp-block-post {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 280px;
	padding: var(--wp--preset--spacing--40);
	border-right: 1px solid var(--wp--custom--line);
	border-bottom: 1px solid var(--wp--custom--line);
	margin: 0 !important;
}
.hsh-blog-grade .wp-block-post:hover { background: var(--wp--preset--color--graphite); }
.hsh-blog-grade .wp-block-post > * { margin: 0 !important; }
.hsh-blog-card-meta { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: var(--wp--preset--font-size--caption); }
.hsh-blog-card-meta > * { margin: 0 !important; }
.hsh-blog-card-meta .taxonomy-category { color: var(--wp--preset--color--signal); font-weight: 500; }
.hsh-blog-card-meta .taxonomy-post_tag { color: var(--wp--preset--color--stone); }
.hsh-blog-card-meta a { pointer-events: none; }
.hsh-blog-grade .wp-block-post-title { font-size: var(--wp--preset--font-size--titulo-sm); line-height: 1.2; letter-spacing: -0.02em; }
.hsh-blog-grade .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.hsh-blog-grade .wp-block-post-excerpt { flex: 1; font-size: var(--wp--preset--font-size--ui); color: var(--wp--preset--color--stone); }
.hsh-blog-grade .wp-block-post-excerpt__excerpt { margin: 0; }
.hsh-blog-grade .wp-block-post-date { font-size: var(--wp--preset--font-size--caption); }
.hsh-blog-grade .wp-block-query-no-results { padding-top: var(--wp--preset--spacing--40); }

/* Foto de capa nos cards (grade do blog e recentes da Home) */
.hsh-card-foto { overflow: hidden; background: var(--wp--preset--color--graphite-2); }
.hsh-card-foto img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.92); transition: filter .3s ease, transform .5s ease; }
.wp-block-post:hover .hsh-card-foto img { filter: none; transform: scale(1.03); }
.hsh-blog-grade .wp-block-post > .hsh-card-foto {
	margin: calc(-1 * var(--wp--preset--spacing--40)) calc(-1 * var(--wp--preset--spacing--40)) 6px !important;
	border-bottom: 1px solid var(--wp--custom--line);
}
.hsh-recentes .hsh-card-foto { border: 1px solid var(--wp--custom--line); border-radius: var(--wp--custom--radius--card); margin-bottom: 4px !important; }
.hsh-blog-destaque-card .wp-block-post-featured-image img { filter: saturate(.85) brightness(.95); }
@media (prefers-reduced-motion: reduce) { .hsh-card-foto img { transition: none; } .wp-block-post:hover .hsh-card-foto img { transform: none; } }

.hsh-paginacao { margin-top: var(--wp--preset--spacing--50) !important; gap: 8px; font-size: var(--wp--preset--font-size--sm); }
.hsh-paginacao a, .hsh-paginacao .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--wp--custom--line-strong);
	border-radius: var(--wp--custom--radius--botao);
}
.hsh-paginacao .page-numbers.current { background: var(--wp--preset--color--bone); border-color: var(--wp--preset--color--bone); color: var(--wp--preset--color--ink); }
.hsh-paginacao .wp-block-query-pagination-numbers { display: flex; gap: 8px; }

/* Faixa CTA vinho */
.hsh-faixa-cta { padding-block: var(--wp--preset--spacing--70); }
.hsh-faixa-cta-interno { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--wp--preset--spacing--40); }
.hsh-faixa-cta-interno > * { margin: 0 !important; }
.hsh-faixa-cta h2 { max-width: 760px; font-size: var(--wp--preset--font-size--xxxl); color: var(--wp--preset--color--white); }
.hsh-botao-claro > .wp-block-button__link { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); min-height: 52px; }

/* ==========================================================================
   Fluxos (Mermaid → SVG estático; ver tema/conteudo-inicial/fluxos/)
   ========================================================================== */

.hsh-fluxo { margin: 0; container-type: inline-size; }
.hsh-fluxo-quadro {
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--custom--line);
	border-radius: var(--wp--custom--radius--card);
	background:
		radial-gradient(circle at 1px 1px, var(--wp--custom--line) 1px, transparent 0) 0 0 / 24px 24px,
		var(--wp--preset--color--ink);
	overflow: hidden;
}
.hsh-fluxo-svg { display: block; width: 100%; height: auto; margin-inline: auto; overflow: visible; }
.hsh-fluxo .is-vertical { display: none; }

/* Nós */
.hsh-fluxo-svg .node rect,
.hsh-fluxo-svg .node polygon,
.hsh-fluxo-svg .node path,
.hsh-fluxo-svg .node circle,
.hsh-fluxo-svg .node ellipse {
	fill: var(--wp--preset--color--graphite);
	stroke: var(--wp--custom--line-strong);
	stroke-width: 1px;
}
.hsh-fluxo-svg .node rect { rx: 2px; ry: 2px; }
.hsh-fluxo-svg .node .label rect { fill: none; stroke: none; }
.hsh-fluxo-svg .nodeLabel,
.hsh-fluxo-svg .node text {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--ui);
	font-weight: 400;
	color: var(--wp--preset--color--bone);
	fill: var(--wp--preset--color--bone);
}
.hsh-fluxo-svg foreignObject p { margin: 0 !important; line-height: 1.5; }
.hsh-fluxo-svg foreignObject { overflow: visible; }
.hsh-fluxo-svg .node .label foreignObject div { text-align: center; }
.hsh-fluxo-svg .node.destaque rect,
.hsh-fluxo-svg .node.destaque path,
.hsh-fluxo-svg .node.destaque polygon { stroke: var(--wp--preset--color--signal); fill: var(--wp--preset--color--graphite-2); }
.hsh-fluxo-svg .node.destaque .nodeLabel { color: var(--wp--preset--color--signal); }

/* Grupos (subgraph) */
.hsh-fluxo-svg .cluster rect {
	fill: transparent;
	stroke: var(--wp--custom--line-strong);
	stroke-width: 1px;
	stroke-dasharray: 3 5;
	rx: 2px;
}
.hsh-fluxo-svg .cluster-label .nodeLabel,
.hsh-fluxo-svg .cluster-label text {
	font-size: var(--wp--preset--font-size--xs);
	font-weight: 400;
	letter-spacing: .08em;
	color: var(--wp--preset--color--stone);
	fill: var(--wp--preset--color--stone);
}

/* Conexões e setas */
.hsh-fluxo-svg .flowchart-link { fill: none; stroke: var(--wp--preset--color--stone); stroke-width: 1.2px; }
.hsh-fluxo-svg .marker,
.hsh-fluxo-svg .arrowMarkerPath { fill: var(--wp--preset--color--stone); stroke: var(--wp--preset--color--stone); }
.hsh-fluxo-svg .flowchart-link.edge-pattern-dotted,
.hsh-fluxo-svg .flowchart-link.edge-pattern-dashed { stroke-dasharray: 3 5; }
.hsh-fluxo-svg .edgeLabel,
.hsh-fluxo-svg .edgeLabel p,
.hsh-fluxo-svg .edgeLabel span { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--stone); font-size: var(--wp--preset--font-size--caption); }
.hsh-fluxo-svg .edgeLabel rect { fill: var(--wp--preset--color--ink); }
.hsh-fluxo-svg .node polygon { stroke: var(--wp--preset--color--stone); }

/* Entrada animada: uma vez, ao aparecer na tela (classe posta pelo tema.js) */
.hsh-fluxo.is-pendente .node,
.hsh-fluxo.is-pendente .cluster,
.hsh-fluxo.is-pendente .edgeLabel { opacity: 0; }
.hsh-fluxo.is-pendente .flowchart-link { opacity: 0; }
.hsh-fluxo.is-pendente .flowchart-link[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hsh-fluxo.is-animando .node,
.hsh-fluxo.is-animando .cluster,
.hsh-fluxo.is-animando .edgeLabel { animation: hsh-fluxo-surge .5s ease-out both; animation-delay: calc(var(--i, 0) * 110ms); }
.hsh-fluxo.is-animando .flowchart-link { animation: hsh-fluxo-surge .5s ease-out both; animation-delay: calc(250ms + var(--i, 0) * 110ms); }
.hsh-fluxo.is-animando .flowchart-link[pathLength] {
	stroke-dasharray: 1;
	animation: hsh-fluxo-traca .7s ease-out both;
	animation-delay: calc(250ms + var(--i, 0) * 110ms);
}
.hsh-fluxo.is-animando .node.destaque rect,
.hsh-fluxo.is-animando .node.destaque path { animation: hsh-fluxo-pulso 1.2s ease-out 1.4s both; }
/* Só opacidade: transform em CSS substituiria o translate() que posiciona cada nó no SVG. */
@keyframes hsh-fluxo-surge { from { opacity: 0; } to { opacity: 1; } }
/* A linha se desenha e ganha opacidade junto; a seta (marker) acompanha a opacidade da linha. */
@keyframes hsh-fluxo-traca { from { stroke-dashoffset: 1; opacity: 0; } 70% { opacity: .6; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes hsh-fluxo-pulso { 0% { stroke-width: 1px; } 40% { stroke-width: 3px; } 100% { stroke-width: 1px; } }
@media (prefers-reduced-motion: reduce) {
	.hsh-fluxo.is-pendente .node, .hsh-fluxo.is-pendente .cluster, .hsh-fluxo.is-pendente .edgeLabel, .hsh-fluxo.is-pendente .flowchart-link { opacity: 1; }
	.hsh-fluxo .flowchart-link { stroke-dasharray: none !important; animation: none !important; }
	.hsh-fluxo .node, .hsh-fluxo .cluster, .hsh-fluxo .node * { animation: none !important; }
}

@media (max-width: 781px) {
	.hsh-fluxo-quadro { padding: 12px; margin-inline: calc(var(--wp--custom--gutter) * -0.5); }
}

/* Alternativa em texto */
.hsh-fluxo-texto { margin-top: var(--wp--preset--spacing--20); font-size: var(--wp--preset--font-size--sm); color: var(--wp--preset--color--stone); }
.hsh-fluxo-texto summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.hsh-fluxo-texto ol { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 6px; }

/* ==========================================================================
   Página de área (single-solucao.html) — referência Solucao.dc.html
   ========================================================================== */

.hsh-sol-topo { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--70); }
.hsh-migalhas { display: flex; flex-wrap: wrap; gap: 0 10px; margin-bottom: var(--wp--preset--spacing--60) !important; font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--stone); }
.hsh-migalhas > * { margin: 0 !important; }
.hsh-migalhas > * + *::before { content: "/"; margin-right: 10px; color: var(--wp--preset--color--stone); }
.hsh-migalhas .wp-block-post-title { font-size: inherit; font-family: inherit; font-weight: 400; letter-spacing: 0; line-height: inherit; color: var(--wp--preset--color--bone); }
.hsh-sol-cabeca { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--60); align-items: flex-end; }
.hsh-sol-cabeca > * { margin: 0 !important; }
.hsh-sol-cabeca > .is-larga { flex: 999 1 560px; min-width: 0; }
.hsh-sol-cabeca > .is-larga > * { margin: 0 !important; }
.hsh-sol-cabeca .hsh-sol-numero { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: var(--wp--preset--font-size--lg); color: var(--wp--preset--color--signal); margin-bottom: var(--wp--preset--spacing--20) !important; }
.hsh-sol-titulo { font-size: var(--wp--preset--font-size--display) !important; line-height: 1 !important; letter-spacing: -0.04em !important; }
.hsh-sol-cabeca .hsh-sol-intro { margin-top: var(--wp--preset--spacing--35) !important; max-width: 600px; font-size: var(--wp--preset--font-size--lg); color: var(--wp--preset--color--stone); }
.hsh-sol-intro .wp-block-post-excerpt__excerpt { margin: 0; }
.hsh-sol-acoes { flex: 1 1 280px; }
.hsh-sol-acoes .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 12px; }
.hsh-sol-acoes .wp-block-button__link { width: 100%; justify-content: center; min-height: 52px; }
.hsh-sol-acoes .wp-block-button.is-style-outline { align-self: center; }

/* Seções do conteúdo da área */
.hsh-sol-secao { padding-block: var(--wp--preset--spacing--70); border-top: 1px solid var(--wp--custom--line); }
.hsh-sol-secao.has-graphite-background-color { border-bottom: 1px solid var(--wp--custom--line); }
.hsh-numeros + .hsh-sol-secao { border-top: 0; } /* evita linha dupla (Sobre) */
.hsh-sol-secao h2 { font-size: var(--wp--preset--font-size--xxl); line-height: 1.1; }
.hsh-sol-secao .hsh-eyebrow { margin-bottom: 20px !important; }

.hsh-entregas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	border-top: 1px solid var(--wp--custom--line);
	border-left: 1px solid var(--wp--custom--line);
}
.hsh-entregas > * { margin: 0 !important; padding: var(--wp--preset--spacing--35); border-right: 1px solid var(--wp--custom--line); border-bottom: 1px solid var(--wp--custom--line); }
.hsh-entregas > * > * { margin: 0 !important; }
.hsh-entregas h3 { font-family: var(--wp--preset--font-family--body); font-weight: 500; font-size: var(--wp--preset--font-size--item); letter-spacing: 0; margin-bottom: 6px !important; }
.hsh-entregas p { font-size: var(--wp--preset--font-size--ui); color: var(--wp--preset--color--stone); }

.hsh-etapas { list-style: none; margin: var(--wp--preset--spacing--55) 0 0; padding: 0; counter-reset: etapa; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--wp--preset--spacing--40); }
.hsh-etapas li {
	counter-increment: etapa;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-top: var(--wp--preset--spacing--30);
	border-top: 1px solid var(--wp--custom--line-strong);
	font-size: var(--wp--preset--font-size--ui);
	color: var(--wp--preset--color--stone);
}
.hsh-etapas li::before { content: counter(etapa, decimal-leading-zero); font-size: var(--wp--preset--font-size--caption); }
.hsh-etapas strong { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: var(--wp--preset--font-size--titulo-sm); color: var(--wp--preset--color--bone); }

.hsh-fluxo-cabeca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--wp--preset--spacing--30); margin-bottom: var(--wp--preset--spacing--50) !important; }
.hsh-fluxo-cabeca > * { margin: 0 !important; }
.hsh-fluxo-cabeca > p { max-width: 420px; color: var(--wp--preset--color--stone); }

.hsh-pratica { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: var(--wp--preset--spacing--50) !important; }
.hsh-pratica > * { margin: 0 !important; }
.hsh-pratica .hsh-card { display: flex; flex-direction: column; gap: 12px; }
.hsh-pratica .hsh-card > * { margin: 0 !important; }
.hsh-pratica .hsh-card h3 { font-size: var(--wp--preset--font-size--titulo-sm); line-height: 1.2; }
.hsh-pratica .hsh-card p:not(.hsh-eyebrow) { font-size: var(--wp--preset--font-size--ui); color: var(--wp--preset--color--stone); }

.hsh-ferramentas { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hsh-ferramentas li { padding: 8px 16px; border: 1px solid var(--wp--custom--line-strong); border-radius: var(--wp--custom--radius--botao); font-size: var(--wp--preset--font-size--sm); }

/* Anterior / Próxima */
.hsh-sol-navegacao { border-top: 1px solid var(--wp--custom--line); }
.hsh-sol-navegacao:not(:has(a)) { display: none; }
.hsh-sol-navegacao-grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.hsh-sol-navegacao-grade > * { margin: 0 !important; padding-block: var(--wp--preset--spacing--45); font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: var(--wp--preset--font-size--xl); }
.hsh-sol-navegacao-grade .post-navigation-link-next { text-align: right; }
.hsh-sol-navegacao-grade .wp-block-post-navigation-link__label { display: block; margin-bottom: 6px; font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--stone); }

/* Arquivo /solucoes/ */
.hsh-arquivo-topo { padding-top: var(--wp--preset--spacing--70); padding-bottom: var(--wp--preset--spacing--45); }
.hsh-arquivo-topo h1 { font-size: var(--wp--preset--font-size--display); line-height: 1; letter-spacing: -0.04em; }

/* ==========================================================================
   Post (single.html) — referência Post.dc.html
   ========================================================================== */

.hsh-post-topo { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--50); }
.hsh-post-topo .hsh-migalhas { margin-bottom: var(--wp--preset--spacing--50) !important; }
.hsh-post-titulo { max-width: 900px; margin-left: 0 !important; }
.hsh-post-titulo > * { margin: 0 !important; }
.hsh-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 20px !important; font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--stone); }
.hsh-post-meta > * { margin: 0 !important; font-size: inherit; }
.hsh-post-meta p:empty { display: none; }
.hsh-post-meta > :not(.hsh-selo-categoria) + :not(.hsh-selo-categoria)::before { content: "· "; }
.hsh-post-titulo .wp-block-post-title { font-size: var(--wp--preset--font-size--enorme); line-height: 1.04; letter-spacing: -0.035em; }
.hsh-post-sub { margin-top: var(--wp--preset--spacing--30) !important; max-width: 720px; font-size: var(--wp--preset--font-size--lg); color: var(--wp--preset--color--stone); }
.hsh-post-sub .wp-block-post-excerpt__excerpt { margin: 0; }

.hsh-post-capa { border: 1px solid var(--wp--custom--line); border-radius: var(--wp--custom--radius--card-lg); overflow: hidden; }
.hsh-post-capa img { display: block; object-fit: cover; }

.hsh-post-corpo-secao { padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--70); }
.hsh-post-corpo { display: flex; flex-wrap: wrap; gap: var(--wp--preset--spacing--60); align-items: flex-start; }
.hsh-post-corpo > * { margin: 0 !important; }
.hsh-post-artigo { flex: 999 1 560px; min-width: 0; max-width: 720px; font-size: var(--wp--preset--font-size--item); line-height: 1.75; }
.hsh-post-artigo .wp-block-post-content > * + * { margin-top: var(--wp--preset--spacing--20); }
.hsh-post-artigo .wp-block-post-content > :first-child { margin-top: 0; }
.hsh-post-artigo h2 { font-size: var(--wp--preset--font-size--xxl); letter-spacing: -0.02em; margin-top: var(--wp--preset--spacing--45) !important; }
.hsh-post-artigo h2:first-child { margin-top: 0 !important; }
.hsh-post-artigo blockquote, .hsh-post-artigo .wp-block-quote {
	margin: var(--wp--preset--spacing--45) 0;
	padding: 8px 0 8px 28px;
	border-left: 2px solid var(--wp--preset--color--vinho);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 500;
	font-size: var(--wp--preset--font-size--titulo-lg);
	line-height: 1.35;
}
.hsh-post-artigo a { text-decoration: underline; text-underline-offset: 3px; }
.hsh-post-artigo ul, .hsh-post-artigo ol { padding-left: 1.2em; }
.hsh-post-artigo li + li { margin-top: 8px; }
.hsh-post-artigo li::marker { color: var(--wp--preset--color--signal); }
.hsh-post-artigo .wp-block-quote p { margin: 0; }
.hsh-tabela { margin: var(--wp--preset--spacing--40) 0 0; font-size: var(--wp--preset--font-size--ui); line-height: 1.5; }
.hsh-tabela table { width: 100%; border-collapse: collapse; }
.hsh-tabela th, .hsh-tabela td { padding: 12px 8px; border: 0; border-bottom: 1px solid var(--wp--custom--line); text-align: left; }
.hsh-tabela th { font-weight: 500; font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--stone); border-bottom-color: var(--wp--custom--line-strong); }
.hsh-tabela th:last-child, .hsh-tabela td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hsh-tabela thead, .hsh-tabela tfoot { border: 0; }
.hsh-tabela tfoot td { font-weight: 600; border-bottom: 0; border-top: 1px solid var(--wp--custom--line-strong); }
.hsh-tabela figcaption { margin-top: 10px; font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--stone); text-align: left; }
.hsh-post-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--wp--preset--spacing--40) !important; padding-top: var(--wp--preset--spacing--40); border-top: 1px solid var(--wp--custom--line); font-size: var(--wp--preset--font-size--sm); line-height: 1.4; }
.hsh-post-tags a { padding: 6px 14px; border: 1px solid var(--wp--custom--line-strong); border-radius: var(--wp--custom--radius--botao); text-decoration: none; }
.hsh-post-tags .wp-block-post-terms__separator { display: none; }

.hsh-post-lateral { flex: 1 1 300px; min-width: 260px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 100px); }
.hsh-post-lateral > * { margin: 0 !important; }
.hsh-ficha-v .hsh-eyebrow { padding: 20px 0 8px; }
.hsh-ficha-v .hsh-ficha-linha { flex-direction: column; gap: 2px; padding-block: 14px; }
.hsh-ficha-v .hsh-ficha-linha p:first-child { font-size: var(--wp--preset--font-size--caption); }
.hsh-ficha-v .hsh-ficha-linha p:last-child { text-align: left; }
.hsh-ficha-v .hsh-ficha-linha:has(p:last-child:empty) { display: none; }
.hsh-ficha-v:not(:has(.hsh-ficha-linha p:last-child:not(:empty))) { display: none; }
.hsh-compartilhar { display: flex; flex-direction: column; gap: 12px; padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--35); border: 1px solid var(--wp--custom--line); border-radius: var(--wp--custom--radius--card); }
.hsh-compartilhar > * { margin: 0 !important; }
.hsh-compartilhar > p:first-child { font-size: var(--wp--preset--font-size--caption); color: var(--wp--preset--color--stone); }
.hsh-compartilhar-links { display: flex; flex-wrap: wrap; gap: 10px; }
.hsh-compartilhar-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--wp--custom--line-strong); border-radius: var(--wp--custom--radius--botao); font-size: var(--wp--preset--font-size--sm); }

.hsh-relacionados { border-top: 1px solid var(--wp--custom--line); padding-top: var(--wp--preset--spacing--60); padding-bottom: var(--wp--preset--spacing--70); }
.hsh-relacionados-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--wp--preset--spacing--20); margin-bottom: var(--wp--preset--spacing--40) !important; }
.hsh-relacionados-topo > * { margin: 0 !important; }
.hsh-relacionados-topo h2 { font-size: var(--wp--preset--font-size--xxl); letter-spacing: -0.02em; }
.hsh-relacionados-topo .hsh-link-sublinhado a { font-size: var(--wp--preset--font-size--sm); font-weight: 400; }
.hsh-relacionados-lista .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--wp--preset--spacing--45); margin: 0; padding: 0; list-style: none; }
.hsh-relacionados-lista .wp-block-post { position: relative; display: flex; flex-direction: column; gap: 10px; margin: 0 !important; padding-top: 20px; border-top: 1px solid var(--wp--custom--line-strong); }
.hsh-relacionados-lista .wp-block-post > * { margin: 0 !important; }
.hsh-relacionados-lista .wp-block-post-title { font-size: var(--wp--preset--font-size--titulo-sm); line-height: 1.2; }
.hsh-relacionados-lista .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }

@media (max-width: 781px) {
	.hsh-post-lateral { position: static; }
}

/* ==========================================================================
   Página simples (index/page)
   ========================================================================== */

.hsh-conteudo { padding-block: var(--wp--preset--spacing--70); }
.hsh-conteudo .wp-block-post-content { font-size: var(--wp--preset--font-size--lead-sm); line-height: 1.75; }
.hsh-conteudo .wp-block-post-content h2 { font-size: var(--wp--preset--font-size--titulo-lg); margin-top: var(--wp--preset--spacing--50); }
.hsh-conteudo .wp-block-post-content li + li { margin-top: 6px; }
.hsh-conteudo .wp-block-post-content li::marker { color: var(--wp--preset--color--signal); }
.hsh-conteudo .wp-block-post-content a { text-decoration: underline; text-underline-offset: 3px; }
.hsh-aviso-rascunho { padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30); border: 1px dashed var(--wp--custom--line-strong); border-radius: var(--wp--custom--radius--botao); color: var(--wp--preset--color--stone); font-size: var(--wp--preset--font-size--sm); }

/* ==========================================================================
   Mobile (referência: Home-Mobile.dc.html, 390px)
   ========================================================================== */

@media (max-width: 781px) {
	.hsh-cabecalho-interno { padding-block: 16px; }
	.hsh-marca { gap: 10px; }
	.hsh-marca .hsh-logo-svg { height: 34px; }
	.hsh-descritor { padding-left: 10px; font-size: var(--wp--preset--font-size--xxs); letter-spacing: .12em; }

	.hsh-hero { padding-top: var(--wp--preset--spacing--55); padding-bottom: var(--wp--preset--spacing--50); }
	.hsh-hero-texto { gap: var(--wp--preset--spacing--30); }
	.hsh-hero-sub { font-size: var(--wp--preset--font-size--lead-sm); }
	.hsh-hero .wp-block-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
	.hsh-hero .wp-block-button { width: 100%; }
	.hsh-hero .wp-block-button__link { width: 100%; justify-content: center; min-height: 52px; }
	.hsh-hero .wp-block-button.is-style-outline { width: auto; align-self: center; }
	.hsh-hero .wp-block-button.is-style-outline > .wp-block-button__link { width: auto; min-height: 44px; }

	.hsh-numeros-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: calc(var(--wp--custom--gutter) * -1); }
	.hsh-numeros-grade > * { padding: var(--wp--preset--spacing--30) var(--wp--custom--gutter); border-bottom: 1px solid var(--wp--custom--line); }
	.hsh-numeros-grade > *:nth-child(odd) { border-right: 1px solid var(--wp--custom--line); }
	.hsh-numeros { border-bottom: 0 !important; }
	.hsh-numero-rotulo { font-size: var(--wp--preset--font-size--caption); }

	.hsh-clientes { flex-direction: column; align-items: stretch; }
	.hsh-faixa-lista { gap: var(--wp--preset--spacing--50); padding-right: var(--wp--preset--spacing--50); }
	.hsh-logo-cliente { height: calc(var(--h, 28px) * .8); }

	/* Áreas viram linhas: número, título, selo e seta */
	.hsh-grade-areas { grid-template-columns: 1fr; border-left: 0; }
	.hsh-area { flex-direction: row; align-items: center; flex-wrap: wrap; min-height: 72px; padding: 12px 34px 12px 0; gap: 4px 16px; border-right: 0; }
	.hsh-area::after { top: 50%; right: 0; transform: translateY(-50%); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
	.hsh-area-num { order: 0; min-width: 22px; }
	.hsh-area h3 { order: 1; flex: 1; font-size: var(--wp--preset--font-size--item); line-height: 1.25; }
	.hsh-area .hsh-selo { order: 2; }
	.hsh-area-resumo, .hsh-area-tags { display: none; }
	.hsh-area-num .hsh-selo { display: none; }
	.hsh-area.is-nucleo h3::after {
		content: "Núcleo";
		display: inline-block;
		margin-left: 10px;
		padding: 2px 8px;
		vertical-align: middle;
		border-radius: var(--wp--custom--radius--botao);
		background: var(--wp--preset--color--vinho);
		color: var(--wp--preset--color--white);
		font-family: var(--wp--preset--font-family--body);
		font-weight: 400;
		font-size: var(--wp--preset--font-size--xxs);
		letter-spacing: .08em;
		text-transform: uppercase;
	}

	.hsh-ficha-linha { flex-direction: column; gap: 2px; }
	.hsh-ficha-linha p:last-child { text-align: left; }

	.hsh-form-card { padding: var(--wp--preset--spacing--30); }
	.hsh-contato-linha { flex-direction: column; gap: 2px; }
	.hsh-contato-linha p:last-child { text-align: left; }

	.hsh-rodape-colunas { gap: var(--wp--preset--spacing--40); }

	.hsh-blog-grade .wp-block-post-template { grid-template-columns: 1fr; }
	.hsh-blog-grade .wp-block-post { min-height: 0; padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20); }
	.hsh-blog-destaque-texto { padding: var(--wp--preset--spacing--30); }
	.hsh-blog-destaque-card .wp-block-post-featured-image { border-right: 0; border-bottom: 1px solid var(--wp--custom--line); }
}
