/* ==========================================================================
   Tema Serventia Registral de Ipojuca
   Cores e fontes vêm do theme.json (var(--wp--preset--...)).
   ========================================================================== */

:root {
	--sr-navy: var(--wp--preset--color--navy);
	--sr-navy-2: var(--wp--preset--color--navy-2);
	--sr-navy-3: var(--wp--preset--color--navy-3);
	--sr-gold: var(--wp--preset--color--gold);
	--sr-gold-dark: var(--wp--preset--color--gold-dark);
	--sr-sand: var(--wp--preset--color--sand);
	--sr-sand-2: var(--wp--preset--color--sand-2);
	--sr-line: var(--wp--preset--color--line);
	--sr-muted: var(--wp--preset--color--muted);
	--sr-serif: var(--wp--preset--font-family--serif);
	--sr-topbar-h: 38px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

/* ":root" na frente de algumas regras: no Editor do site, os estilos globais do WordPress
   carregam depois deste arquivo e, com a mesma força, desfariam espaçamentos e margens. */

/* Sem espaços entre cabeçalho, conteúdo e rodapé, nem entre as seções */
:root .wp-site-blocks > * { margin-block: 0; }
body .sr-main > *,
body .sr-main > .wp-block-post-content > * { margin-block-start: 0; }
body .sr-main > .sr-primary,
body .sr-main > .wp-block-post-content > .sr-primary { margin-block-start: -72px; }
/* O mesmo no editor da página inicial (as seções ficam dentro da página) */
.is-root-container > .alignfull { margin-block-start: 0; }
.is-root-container > .sr-primary { margin-block-start: -72px; }
[id] { scroll-margin-top: 100px; }

/* --------------------------------------------------------------------------
   Ícones (desenhados por CSS, para os blocos continuarem editáveis)
   -------------------------------------------------------------------------- */
.sr-ico::before {
	content: "";
	flex: none;
	width: 26px;
	height: 26px;
	background-color: currentColor;
	-webkit-mask: var(--sr-ico) no-repeat center / contain;
	mask: var(--sr-ico) no-repeat center / contain;
}
.ico-certidao  { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/><path d='M14 3v5h5M9 13h6M9 17h4'/></svg>"); }
.ico-protocolo { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-4-4M8 11h6M11 8v6'/></svg>"); }
.ico-envio     { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z'/><path d='m4 8 8 5 8-5'/></svg>"); }
.ico-selo      { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 4 6v6c0 4.5 3.4 8.3 8 9 4.6-.7 8-4.5 8-9V6z'/><path d='m9 12 2 2 4-4'/></svg>"); }
.ico-validar   { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/><path d='M14 3v5h5m-10 6 2 2 4-4'/></svg>"); }
.ico-bens      { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M3 21h18M5 21V10l7-5 7 5v11M10 21v-6h4v6'/></svg>"); }
.ico-tabela    { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='3' width='16' height='18' rx='2'/><path d='M8 7h8M8 11h8M8 15h5'/></svg>"); }
.ico-requer    { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M9 3h6l1 3h3a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h3z'/><path d='M9 12h6M9 16h4'/></svg>"); }
.ico-faq       { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M9.5 9a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6V14M12 17h.01'/></svg>"); }
.ico-ouvidoria { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 5h16v11H8l-4 4z'/><path d='M8 9h8M8 12h5'/></svg>"); }
.ico-digital   { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='3' width='14' height='18' rx='2'/><path d='M9 7h6M9 11h6M9 15h3'/><path d='m14 17 1.5 1.5L18 16'/></svg>"); }
.ico-globo     { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/></svg>"); }
.ico-estrela   { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/></svg>"); }
.ico-local     { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/><circle cx='12' cy='9.5' r='2.5'/></svg>"); }
.ico-relogio   { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>"); }
.ico-fone      { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2'/></svg>"); }
.ico-email     { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path d='M4 6h16v12H4z'/><path d='m4 7 8 6 8-6'/></svg>"); }
.ico-instagram { --sr-ico: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='3' width='18' height='18' rx='5'/><circle cx='12' cy='12' r='4'/><path d='M17.5 6.5h.01'/></svg>"); }

/* --------------------------------------------------------------------------
   Elementos comuns
   -------------------------------------------------------------------------- */
.sr-eyebrow {
	font-family: var(--sr-serif);
	text-transform: uppercase;
	letter-spacing: .2em;
	color: var(--sr-gold);
	font-size: 14px;
	font-weight: 600;
}
.sr-pending {
	background: rgba(184, 149, 74, .18);
	border-bottom: 1px dashed var(--sr-gold);
	color: inherit;
	padding: 0 3px;
}
.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--sr-navy);
	border: 1px solid var(--sr-navy);
	padding: 11px 21px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--sr-navy); color: #fff; }
.wp-block-button.sr-btn-light > .wp-block-button__link { color: #fff; border-color: rgba(233, 223, 204, .5); }
.wp-block-button.sr-btn-light > .wp-block-button__link:hover { background: rgba(255, 255, 255, .08); }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */
/* Só no site: no Editor, o cabeçalho não fixa e o deslocamento esconderia a faixa do topo */
header.wp-block-template-part:not(.block-editor-block-list__block) {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--sr-topbar-h));
	z-index: 50;
}
.sr-topbar {
	background: var(--sr-navy);
	color: var(--sr-sand);
	font-size: 13px;
	border-top: 5px solid var(--sr-gold);
	height: var(--sr-topbar-h);
	overflow: hidden;
}
:root .sr-topbar__inner { height: 33px; gap: 16px; }
.sr-topbar p { margin: 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-topbar p::before { width: 15px; height: 15px; color: var(--sr-gold); }
.sr-topbar a { color: inherit; text-decoration: none; }
.sr-topbar a:hover { color: #fff; }

.sr-header { background: #fff; border-bottom: 1px solid var(--sr-line); }
:root .sr-header__inner { min-height: 84px; gap: 24px; }

:root .sr-brand { gap: 12px; }
.sr-brand p { margin: 0; }
.sr-brand a { text-decoration: none; color: inherit; }
.sr-brand__mark {
	width: 46px; height: 46px; flex: none;
	border: 1.5px solid var(--sr-gold);
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-family: var(--sr-serif); font-weight: 700; font-size: 20px;
	color: var(--sr-navy);
}
:root .sr-brand__text { gap: 2px; }
.sr-brand__name {
	font-family: var(--sr-serif); font-weight: 700;
	text-transform: uppercase; letter-spacing: .12em;
	font-size: 15px; line-height: 1.2; color: var(--sr-navy);
}
.sr-brand__sub { font-size: 12px; line-height: 1.35; color: var(--sr-muted); }

:root .sr-nav { gap: 18px; }
.sr-header .wp-block-navigation { font-size: 14px; font-weight: 700; color: var(--sr-navy); letter-spacing: .03em; gap: 26px; }
.sr-header .wp-block-navigation .wp-block-navigation-item__content { padding: 6px 0; border-bottom: 2px solid transparent; }
.sr-header .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.sr-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content { border-color: var(--sr-gold); }
.sr-header .wp-block-navigation .wp-block-navigation__submenu-icon { color: var(--sr-gold); }
.sr-header .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	min-width: 250px;
	border: 1px solid var(--sr-line);
	border-top: 2px solid var(--sr-gold);
	box-shadow: 0 12px 28px rgba(20, 36, 63, .12);
	padding: 8px 0;
	color: var(--sr-navy);
}
.sr-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 8px 16px; font-weight: 400; border: 0;
}
.sr-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--sr-sand-2); }

.sr-header .wp-block-search__button {
	width: 38px; height: 38px; padding: 0; margin: 0;
	border: 1px solid var(--sr-line); border-radius: 50%;
	background: #fff; color: var(--sr-navy);
	display: inline-flex; align-items: center; justify-content: center;
}
.sr-header .wp-block-search__button svg { width: 20px; height: 20px; fill: currentColor; }
.sr-header .wp-block-search__input { border: 1px solid var(--sr-line); border-radius: 4px; font-size: 14px; }
/* Ao clicar na lupa, o campo abre por cima do menu, à esquerda da lupa, sem ocupar espaço na linha
   (antes ele crescia dentro da linha e empurrava o último item do menu para baixo). */
.sr-header .wp-block-search { position: relative; }
:root .sr-header .wp-block-search .wp-block-search__inside-wrapper { width: auto !important; min-width: 0 !important; padding: 0; border: 0; }
.sr-header .wp-block-search:not(.wp-block-search__searchfield-hidden) .wp-block-search__input {
	position: absolute; z-index: 30; right: calc(100% + 8px); top: 50%; transform: translateY(-50%);
	width: min(280px, 70vw); height: 40px; padding: 0 14px; margin: 0;
	background: #fff; border-color: var(--sr-navy); box-shadow: 0 8px 22px rgba(20, 36, 63, .14);
}

/* Menu em gaveta também em tablets e telas pequenas (600 a 1199 px) */
@media (min-width: 600px) and (max-width: 1199px) {
	.sr-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.sr-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.sr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex; }
	.sr-brand__sub { display: none; }
}
/* Menu aberto (gaveta): lista simples, alinhada à esquerda */
.sr-header .wp-block-navigation__responsive-container.is-menu-open {
	--navigation-layout-justification-setting: flex-start;
	--navigation-layout-justify: flex-start;
	padding: 24px;
	overflow-y: auto;
}
.sr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 48px; align-items: flex-start; }
.sr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.sr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { align-items: flex-start; text-align: left; width: 100%; }
.sr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 4px; }
.sr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 16px; padding: 8px 0; border-bottom: 1px solid var(--sr-line); width: 100%; }
.sr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	border: 0; box-shadow: none; min-width: 0; width: 100%;
	padding: 0 0 8px 16px !important;
}
.sr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 14px; font-weight: 400; padding: 7px 0; }
.sr-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: none; color: var(--sr-gold-dark); }

/* --------------------------------------------------------------------------
   Abertura (página inicial)
   -------------------------------------------------------------------------- */
.sr-hero {
	background: linear-gradient(180deg, var(--sr-navy) 0%, var(--sr-navy-2) 100%);
	color: var(--wp--preset--color--offwhite);
	position: relative;
	overflow: hidden;
	padding-top: 72px;
	padding-bottom: 136px;
}
.sr-hero::before, .sr-hero::after {
	content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.sr-hero::after { right: -120px; top: -120px; width: 420px; height: 420px; border: 1px solid rgba(184, 149, 74, .35); }
.sr-hero::before { right: -40px; top: -40px; width: 260px; height: 260px; border: 1px solid rgba(184, 149, 74, .25); }
.sr-hero > * { position: relative; z-index: 1; }
:root .sr-hero__inner > * { margin-block: 0; }
.sr-hero .sr-hero__title { color: var(--wp--preset--color--offwhite); max-width: 760px; margin-top: 14px; margin-bottom: 18px; }
.sr-hero .sr-hero__lead { color: var(--sr-sand); max-width: 620px; font-size: 17px; }
.sr-hero .sr-hero__actions { margin-top: 30px; }

/* Faixa de título das páginas internas */
.sr-page-hero {
	background: linear-gradient(180deg, var(--sr-navy) 0%, var(--sr-navy-2) 100%);
	color: var(--sr-sand);
	padding-top: 56px;
	padding-bottom: 56px;
}
.sr-page-hero h1, .sr-page-hero .wp-block-post-title, .sr-page-hero .wp-block-query-title { color: #fff; margin: 0; font-size: clamp(30px, 4vw, 46px); }
.sr-page-hero p, .sr-page-hero .wp-block-post-date, .sr-page-hero .wp-block-post-terms { color: var(--sr-sand); font-size: 14px; margin: 0 0 8px; }
.sr-page-hero a { color: var(--sr-gold); text-decoration: none; }
.sr-content { padding-top: 56px; padding-bottom: 80px; }
.sr-content .wp-block-post-content > h2 { margin-top: 2.2em; }
.sr-content .wp-block-post-content > h2::after { content: ""; display: block; width: 48px; height: 2px; background: var(--sr-gold); margin-top: 12px; }

/* --------------------------------------------------------------------------
   Seções
   -------------------------------------------------------------------------- */
.sr-section { padding-top: 80px; padding-bottom: 80px; }
.sr-section--tight { padding-top: 0; }
.sr-section--sand { background: var(--sr-sand-2); }
.sr-section--white { background: #fff; border-top: 1px solid var(--sr-line); border-bottom: 1px solid var(--sr-line); }

.sr-head { text-align: center; margin-bottom: 44px !important; }
:root .sr-head > * { margin-block: 0; }
.sr-head .sr-head__title { margin-top: 6px; }
.sr-head .sr-head__title::after { content: ""; display: block; width: 56px; height: 2px; background: var(--sr-gold); margin: 16px auto 0; }
.sr-head p:not(.sr-eyebrow) { color: var(--sr-muted); margin-top: 14px; }

/* Cartões */
.sr-card { background: #fff; border: 1px solid var(--sr-line); border-radius: 6px; position: relative; }
:root .sr-card > * { margin: 0; }
.sr-card h3 { font-size: 21px; }
.sr-card h3 a { color: var(--sr-navy); text-decoration: none; }
.sr-card h3 a::after { content: ""; position: absolute; inset: 0; } /* cartão inteiro clicável */
.sr-card p { font-size: 14px; color: var(--sr-muted); }
.sr-card .sr-card__go { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--sr-gold-dark); }

:root .sr-card--primary {
	border-top: 3px solid var(--sr-gold);
	padding: 24px 22px;
	gap: 10px;
	box-shadow: 0 10px 28px rgba(20, 36, 63, .08);
	transition: transform .15s, box-shadow .15s;
	align-items: stretch !important;
}
.sr-card--primary::before { color: var(--sr-gold); width: 30px; height: 30px; }
.sr-card--primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20, 36, 63, .14); }

/* Grade de serviços com linhas */
.sr-grid--cells { gap: 0 !important; background: #fff; border-top: 1px solid var(--sr-line); border-left: 1px solid var(--sr-line); }
:root .sr-cell { padding: 26px 24px; gap: 16px; border-right: 1px solid var(--sr-line); border-bottom: 1px solid var(--sr-line); position: relative; align-items: flex-start !important; transition: background .15s; }
.sr-cell:hover { background: var(--sr-sand-2); }
.sr-cell::before { color: var(--sr-navy-3); margin-top: 2px; }
.sr-cell > div { gap: 2px; }
.sr-cell h3 { font-family: var(--wp--preset--font-family--sans); font-size: 16px; font-weight: 700; margin: 0; }
.sr-cell h3 a { color: var(--sr-navy); text-decoration: none; }
.sr-cell h3 a::after { content: ""; position: absolute; inset: 0; }
.sr-cell p { font-size: 14px; color: var(--sr-muted); margin: 0; }

/* Documentos necessários */
:root .sr-doc { background: #fff; border: 1px solid var(--sr-line); border-left: 3px solid var(--sr-gold); border-radius: 4px; padding: 20px 52px 20px 22px; position: relative; gap: 2px; transition: background .15s; }
.sr-doc:hover { background: var(--sr-sand-2); }
:root .sr-doc > * { margin: 0; }
.sr-doc h3 { font-family: var(--wp--preset--font-family--sans); font-size: 16px; font-weight: 700; }
.sr-doc h3 a { color: var(--sr-navy); text-decoration: none; }
.sr-doc h3 a::after { content: "→"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding-right: 22px; color: var(--sr-gold-dark); font-weight: 700; }
.sr-doc p { font-size: 13px; color: var(--sr-muted); }

/* Especialidades */
.sr-spec { padding: 32px 28px; }
.sr-spec .sr-spec__num { font-family: var(--sr-serif); color: var(--sr-gold); font-size: 15px; letter-spacing: .15em; font-weight: 700; }
.sr-spec h3 { font-size: 24px; margin: 6px 0 10px; }
.sr-spec p:not(.sr-spec__num) { font-size: 15px; }

/* A Serventia */
.sr-about { gap: 56px !important; }
:root .sr-portrait {
	aspect-ratio: 4 / 5;
	background: linear-gradient(160deg, var(--sr-sand) 0%, #d9ccb2 100%);
	border-radius: 6px;
	position: relative;
	color: var(--sr-navy);
	font-family: var(--sr-serif);
	letter-spacing: .1em;
	text-transform: uppercase;
	text-align: center;
	padding: 20px;
	margin-right: 14px;
	margin-bottom: 14px;
}
.sr-portrait::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--sr-gold); border-radius: 6px; z-index: -1; }
:root .sr-about-photo { position: relative; z-index: 0; margin-right: 14px; margin-bottom: 14px; }
.sr-about-photo::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--sr-gold); border-radius: 6px; z-index: -1; }
.sr-about-photo img { border-radius: 6px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.sr-about__text p:not(.sr-eyebrow):not(.sr-sign):not(.sr-link) { text-align: justify; }
.sr-sign { font-family: var(--sr-serif); font-size: 22px; color: var(--sr-navy); line-height: 1.3; margin-top: 22px !important; }
.sr-sign small { display: block; font-family: var(--wp--preset--font-family--sans); font-size: 13px; color: var(--sr-muted); }
.sr-link { font-weight: 700; }
.sr-link a { color: var(--sr-gold-dark); text-decoration: none; border-bottom: 1px solid var(--sr-gold); }

/* Orientações (posts) */
:root .sr-post-card { border: 1px solid var(--sr-line); border-radius: 6px; padding: 28px 24px; position: relative; height: 100%; gap: 10px; background: #fff; transition: border-color .15s; }
.sr-post-card:hover { border-color: var(--sr-gold); }
:root .sr-post-card > * { margin: 0; }
.sr-post-card .wp-block-post-terms { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sr-gold-dark); }
.sr-post-card .wp-block-post-terms a { color: inherit; text-decoration: none; position: relative; z-index: 1; }
.sr-post-card .wp-block-post-title { font-size: 22px; }
.sr-post-card .wp-block-post-title a { color: var(--sr-navy); text-decoration: none; }
.sr-post-card .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
.sr-post-card .wp-block-post-excerpt { font-size: 14px; color: var(--sr-muted); }
.sr-post-card .wp-block-post-excerpt__excerpt { margin: 0; }
.sr-post-card .wp-block-read-more { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--sr-navy); text-decoration: none; }
.wp-block-post-template.is-layout-grid { grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)) !important; }
.sr-center { text-align: center; justify-content: center; margin-top: 36px !important; }
:root .wp-block-query-pagination { margin-top: 40px; justify-content: center; gap: 12px; }

/* LGPD */
.sr-lgpd { background: var(--sr-navy-2); color: var(--sr-sand); padding-top: 56px; padding-bottom: 56px; }
.sr-lgpd h2 { color: #fff; margin: 6px 0 12px; }
.sr-lgpd .wp-block-columns { gap: 40px; }
:root .sr-linklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sr-linklist li { margin: 0; }
.sr-linklist a {
	display: flex; justify-content: space-between; align-items: center;
	padding: 14px 18px; border: 1px solid rgba(233, 223, 204, .25); border-radius: 4px;
	text-decoration: none; color: #fff; font-weight: 700; font-size: 15px;
}
.sr-linklist a::after { content: "→"; color: var(--sr-gold); }
.sr-linklist a:hover { background: rgba(255, 255, 255, .06); border-color: var(--sr-gold); }

/* Atendimento */
.sr-info { background: var(--sr-navy); color: var(--wp--preset--color--offwhite); border-radius: 6px; padding: 36px 32px; height: 100%; }
.sr-info h3 { color: #fff; font-size: 26px; margin: 0 0 22px; }
.sr-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.sr-info li { display: flex; gap: 14px; margin: 0; }
.sr-info li::before { color: var(--sr-gold); width: 22px; height: 22px; margin-top: 3px; }
/* span em bloco: no Editor, o texto editável abriria uma linha vazia antes do título */
.sr-info li span { display: block; }
.sr-info li strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--sr-gold); }
.sr-info a { color: inherit; text-decoration: none; }
.sr-info a:hover { text-decoration: underline; }
/* Mapa com a mesma altura do quadro azul ao lado (no site e no Editor) */
.wp-block-column:has(.sr-map) { display: flex; flex-direction: column; }
.wp-block-column:has(.sr-map) > * { flex: 1; display: flex; flex-direction: column; }
.sr-map { border-radius: 6px; overflow: hidden; border: 1px solid var(--sr-line); min-height: 360px; flex: 1; background: var(--sr-sand-2); display: flex; }
.sr-map iframe { width: 100%; min-height: 360px; border: 0; display: block; flex: 1; }

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.sr-footer { background: var(--sr-navy); color: var(--sr-sand); font-size: 14px; padding-top: 56px; }
.sr-footer::after {
	content: ""; display: block; height: 6px; margin-inline: calc(var(--wp--style--root--padding-left, 16px) * -1) calc(var(--wp--style--root--padding-right, 16px) * -1);
	background: linear-gradient(90deg, #14243f 0 25%, #b8954a 25% 50%, #e9dfcc 50% 75%, #2a4570 75% 100%);
	max-width: none !important;
}
.sr-footer a { color: inherit; text-decoration: none; }
.sr-footer a:hover { color: #fff; text-decoration: underline; }
.sr-footer h4 { color: #fff; font-size: 18px; margin: 0 0 14px; }
.sr-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sr-footer li { margin: 0; }
.sr-footer p { margin: 0 0 8px; }
.sr-footer .sr-brand { margin-bottom: 14px; }
.sr-footer .sr-brand__mark, .sr-footer .sr-brand__name { color: #fff; }
.sr-footer .sr-brand__sub { color: var(--sr-sand); }
:root .sr-footer__cols { gap: 32px; padding-bottom: 40px; }
:root .sr-legal { border-top: 1px solid rgba(233, 223, 204, .18); padding-top: 18px; padding-bottom: 18px; font-size: 13px; color: #aab4c3; gap: 8px; align-items: stretch !important; }
:root .sr-legal__row { gap: 8px 16px; }
.sr-legal p { margin: 0; }

/* Formulário Fale conosco */
:root .sr-form + * { margin-block-start: 56px; }
.sr-form { background: #fff; border: 1px solid var(--sr-line); border-top: 3px solid var(--sr-gold); border-radius: 6px; padding: 32px; }
.sr-form form > p, .sr-form__grid p { margin: 0 0 18px; }
.sr-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); column-gap: 20px; }
.sr-form label { display: block; font-size: 14px; font-weight: 700; color: var(--sr-navy); margin-bottom: 6px; }
.sr-form input[type="text"], .sr-form input[type="email"], .sr-form input[type="tel"], .sr-form select, .sr-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--offwhite); border: 1px solid var(--sr-line); border-radius: 4px; padding: 10px 12px;
}
.sr-form input:focus, .sr-form select:focus, .sr-form textarea:focus { outline: 2px solid var(--sr-gold); outline-offset: 1px; border-color: var(--sr-gold); }
.sr-form textarea { resize: vertical; min-height: 140px; }
.sr-form .sr-form__consentimento label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: inherit; }
.sr-form__consentimento input { margin-top: 4px; flex: none; width: 18px; height: 18px; accent-color: var(--sr-navy); }
.sr-form__nota { font-size: 13px; color: var(--sr-muted); }
.sr-form__isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sr-form__aviso { padding: 12px 16px; border-radius: 4px; margin: 0 0 20px; font-size: 15px; }
.sr-form__aviso--sucesso { background: #e7f3ea; border: 1px solid #9cc9a6; color: #1d4f2b; }
.sr-form__aviso--erro { background: #fbeceb; border: 1px solid #e4a8a3; color: #7a201a; }
@media (max-width: 600px) { .sr-form { padding: 22px 18px; } }

/* Documentos necessários: índice e listas que abrem e fecham (bloco Detalhes) */
.sr-indice { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
:root .sr-main .sr-indice { margin-block-start: 20px; }
.sr-indice li { margin: 0; }
.sr-indice a { display: inline-block; padding: 6px 14px; border: 1px solid var(--sr-line); border-radius: 999px; background: #fff; font-size: 14px; color: var(--sr-navy); text-decoration: none; }
.sr-indice a:hover { border-color: var(--sr-gold); color: var(--sr-gold-dark); }
.sr-main .wp-block-details { background: #fff; border: 1px solid var(--sr-line); border-left: 3px solid var(--sr-gold); border-radius: 4px; padding: 0; margin-block-start: 12px; scroll-margin-top: 120px; }
.sr-main p + .wp-block-details { margin-block-start: 28px; }
.sr-main .wp-block-details > summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; position: relative; font-weight: 700; color: var(--sr-navy); font-size: 17px; }
.sr-main .wp-block-details > summary::-webkit-details-marker { display: none; }
.sr-main .wp-block-details > summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--sr-gold); }
.sr-main .wp-block-details[open] > summary::after { content: "–"; }
.sr-main .wp-block-details > summary:focus-visible { outline: 2px solid var(--sr-gold); outline-offset: -2px; }
.sr-main .wp-block-details > :not(summary) { margin: 0 20px 16px; }
.sr-main .wp-block-details > summary + * { margin-top: 0; }
.sr-main .wp-block-details li { margin-bottom: 6px; }
:root .sr-main .wp-block-details .sr-doc-minimo { margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sr-gold-dark); }
.sr-busca { margin: 28px 0 8px; }
.sr-busca label { display: block; font-size: 14px; font-weight: 700; color: var(--sr-navy); margin-bottom: 6px; }
.sr-busca input { width: 100%; box-sizing: border-box; padding: 12px 14px 12px 42px; font: inherit; font-size: 16px; border: 1px solid var(--sr-line); border-radius: 4px; background: #fff url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8954a' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-4-4'/></svg>") 14px center / 18px no-repeat; }
.sr-busca input:focus { outline: 2px solid var(--sr-gold); outline-offset: 1px; border-color: var(--sr-gold); }
.sr-busca__info { margin: 8px 0 0; font-size: 14px; color: var(--sr-muted); min-height: 1.4em; }
.sr-main .wp-block-details[hidden] { display: none; }
.sr-aviso-doc { background: var(--sr-cream, #f7f3ea); border: 1px solid var(--sr-line); border-radius: 4px; padding: 14px 18px; font-size: 15px; }

/* Páginas com texto justificado (lista em serventia_ipojuca_body_justificado, functions.php) */
.sr-justificado .sr-main .wp-block-post-content :is(p, li) { text-align: justify; hyphens: auto; }

/* Pesquisa de satisfação: estrelas */
.sr-stars-field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.sr-stars-field legend { font-size: 14px; font-weight: 700; color: var(--sr-navy); margin-bottom: 6px; padding: 0; }
.sr-stars { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.sr-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sr-stars label {
	width: 34px; height: 34px; margin: 0; cursor: pointer; background-color: #ddd5c5;
	-webkit-mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/></svg>") center / contain no-repeat;
	transition: background-color .12s;
}
.sr-stars input:checked ~ label { background-color: var(--sr-gold); }
.sr-stars:hover label { background-color: #ddd5c5; }
.sr-stars label:hover, .sr-stars label:hover ~ label { background-color: var(--sr-gold); }
.sr-stars input:focus-visible + label { outline: 2px solid var(--sr-navy); outline-offset: 2px; }
.sr-stars-legenda { margin: -12px 0 20px; }
.sr-pesquisa__criterios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); column-gap: 20px; }
.sr-pesquisa__criterios .sr-stars label { width: 26px; height: 26px; }
.sr-pesquisa__google { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 18px; margin: -8px 0 24px; background: var(--sr-cream, #f7f3ea); border: 1px solid var(--sr-line); border-radius: 4px; }
.sr-pesquisa__google p { margin: 0; flex: 1 1 18rem; font-size: 15px; }
.sr-pesquisa__opcional { font-size: 14px; font-weight: 700; color: var(--sr-navy); margin: 8px 0 10px; }

/* Aviso de privacidade */
.sr-cookies {
	position: fixed; left: 16px; bottom: 16px; max-width: 380px; z-index: 40; /* abaixo do cabeçalho e do menu aberto */
	background: #fff; border: 1px solid var(--sr-line); border-top: 3px solid var(--sr-gold); border-radius: 6px;
	box-shadow: 0 14px 36px rgba(20, 36, 63, .2);
	padding: 18px 20px; font-size: 14px;
}
.sr-cookies[hidden] { display: none; }
.sr-cookies strong { color: var(--sr-navy); display: block; margin-bottom: 4px; }
.sr-cookies p { margin: 0; }
.sr-cookies button {
	margin-top: 12px; font: inherit; font-size: 13px; font-weight: 700;
	padding: 8px 16px; border-radius: 4px; cursor: pointer;
	background: var(--sr-navy); color: #fff; border: 1px solid var(--sr-navy);
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 781px) {
	.sr-about { gap: 32px !important; }
	.sr-portrait, .sr-about-photo { max-width: 340px; }
	.sr-about__text p:not(.sr-eyebrow):not(.sr-sign) { text-align: left; }
}
@media (max-width: 600px) {
	/* No celular a barra do WordPress (usuário logado) não fica fixa */
	header.wp-block-template-part:not(.block-editor-block-list__block) { top: calc(var(--sr-topbar-h) * -1); }
	.sr-hide-sm { display: none !important; }
	.sr-hero { padding-top: 48px; padding-bottom: 112px; }
	.sr-section { padding-top: 56px; padding-bottom: 56px; }
	.sr-section--tight { padding-top: 0; }
	.sr-brand__name { font-size: 13px; }
	.sr-brand__sub { display: none; }
	.sr-cookies { left: 12px; right: 12px; max-width: none; }
}

/* Página A Oficiala: foto e citação */
.sr-oficiala { gap: 48px; }
.sr-oficiala__foto img { width: 100%; height: auto; border-radius: 4px; box-shadow: 0 10px 30px rgba(18, 35, 66, .15); }
.sr-oficiala p:not(.sr-eyebrow) { text-align: justify; hyphens: auto; }
.sr-oficiala .sr-oficiala__citacao p { text-align: left; }
:root .sr-main .sr-oficiala__citacao {
	margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--sr-gold);
	font-family: var(--sr-serif); font-size: 1.2em; font-style: italic; color: var(--sr-navy);
}
.sr-oficiala__citacao cite { display: block; margin-top: 10px; font-family: var(--wp--preset--font-family--sans); font-size: 14px; font-style: normal; color: var(--sr-gold-dark); }
@media (max-width: 781px) { .sr-oficiala__foto { max-width: 320px; margin-inline: auto; } }
.sr-oficiala--posse { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--sr-line); }
.sr-oficiala__foto figcaption { margin-top: 10px; font-size: 13px; color: var(--sr-muted); text-align: center; }
@media (max-width: 781px) { .sr-oficiala--posse { flex-direction: column-reverse; } }

/* Página Modelos de requerimento: um bloco por documento, com o nome como link para o PDF */
:root .sr-main .sr-modelos { display: grid; gap: 12px; margin-block-start: 28px; }
:root .sr-main .sr-modelo { margin: 0; padding: 18px 20px; background: #fff; border: 1px solid var(--sr-line); border-left: 3px solid var(--sr-gold); border-radius: 4px; }
:root .sr-main .sr-modelo h3 { margin: 0; font-family: var(--wp--preset--font-family--sans); font-size: 17px; font-weight: 700; line-height: 1.4; }
.sr-modelo h3 a { color: var(--sr-navy); text-decoration: none; }
.sr-modelo h3 a:hover, .sr-modelo h3 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.sr-modelo h3 a::after { content: "PDF"; display: inline-block; margin-left: 10px; padding: 2px 6px; border: 1px solid var(--sr-gold); border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--sr-gold-dark); vertical-align: 2px; }
:root .sr-main .sr-modelo p { margin: 6px 0 0; font-size: 15px; color: var(--sr-muted); }

/* Resultados da busca do site (inc/busca.php) */
.sr-resultados { margin-block-start: 36px; }
:root .sr-main .sr-resultados h2 { margin: 0 0 12px; font-size: 24px; }
.sr-resultados h2 span { margin-left: 8px; font-family: var(--wp--preset--font-family--sans); font-size: 14px; font-weight: 400; color: var(--sr-muted); }
.sr-resultados ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sr-resultados li { padding: 16px 20px; background: #fff; border: 1px solid var(--sr-line); border-left: 3px solid var(--sr-gold); border-radius: 4px; }
.sr-resultados li > a { font-weight: 700; font-size: 17px; color: var(--sr-navy); text-decoration: none; }
.sr-resultados li > a:hover, .sr-resultados li > a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
:root .sr-main .sr-resultados li p { margin: 6px 0 0; font-size: 15px; color: var(--sr-muted); }
.sr-resultados mark { background: rgba(184, 149, 74, .22); color: var(--sr-navy); padding: 0 2px; border-radius: 2px; }
.sr-resultados__tipo { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sr-gold-dark); }
:root .sr-main .sr-resultados__mais { margin: 12px 0 0; font-size: 15px; }
.sr-resultados__mais a { color: var(--sr-gold-dark); font-weight: 700; }
.sr-busca-vazia { margin-block-start: 28px; }

/* Logo da Serventia no cabeçalho e no rodapé (no lugar do "AW" e do nome escrito) */
:root .sr-brand { gap: 16px; align-items: center; }
:root .sr-brand .sr-brand__logo { margin: 0; flex: none; }
.sr-brand__logo img { display: block; height: 62px; width: auto; }
.sr-header .sr-brand__sub { padding-left: 16px; border-left: 1px solid var(--sr-gold); }
.sr-footer .sr-brand { flex-direction: column; align-items: flex-start; gap: 12px; }
.sr-footer .sr-brand__logo img { height: 52px; }
@media (max-width: 781px) {
	.sr-brand__logo img { height: 50px; }
}

/* Botão flutuante do WhatsApp (inc/whatsapp.php): abre a escolha RI / RTDPJ */
.sr-whatsapp-wrap { position: fixed; z-index: 90; right: 24px; bottom: 24px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.sr-whatsapp {
	display: grid; place-items: center; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(20, 36, 63, .28);
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.sr-whatsapp:hover, .sr-whatsapp:focus-visible { color: #fff; transform: scale(1.07); box-shadow: 0 8px 24px rgba(20, 36, 63, .36); }
.sr-whatsapp:focus-visible { outline: 3px solid var(--sr-gold); outline-offset: 3px; }
.sr-whatsapp__fechar { display: none; }
.sr-whatsapp-wrap.is-aberto .sr-whatsapp { background: var(--sr-navy, #14243f); }
.sr-whatsapp-wrap.is-aberto .sr-whatsapp__abrir { display: none; }
.sr-whatsapp-wrap.is-aberto .sr-whatsapp__fechar { display: block; }
.sr-whatsapp__abrir { display: grid; }
.sr-whatsapp-menu {
	width: 290px; max-width: calc(100vw - 32px); padding: 8px; background: #fff; border: 1px solid #e2d9c6; border-radius: 14px;
	box-shadow: 0 10px 30px rgba(20, 36, 63, .22); animation: sr-wa-abre .18s ease-out;
}
.sr-whatsapp-menu[hidden] { display: none; }
.sr-whatsapp-menu__titulo { margin: 4px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sr-gold, #b08d57); }
.sr-whatsapp-menu__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: var(--sr-navy, #14243f); text-decoration: none; line-height: 1.3; }
.sr-whatsapp-menu__item + .sr-whatsapp-menu__item { border-top: 1px solid #eee6d6; }
.sr-whatsapp-menu__item:hover, .sr-whatsapp-menu__item:focus-visible { background: #f6f1e6; color: var(--sr-navy, #14243f); }
.sr-whatsapp-menu__item strong { display: block; font-size: 14px; font-weight: 600; }
.sr-whatsapp-menu__item small { display: block; font-size: 13px; color: #5c6b82; }
.sr-whatsapp-menu__ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #25d366; color: #fff; }
.sr-whatsapp-menu__ico svg { width: 22px; height: 22px; }
@keyframes sr-wa-abre { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 781px) { .sr-whatsapp-wrap { right: 16px; bottom: 16px; } .sr-whatsapp { width: 54px; height: 54px; } }
@media (prefers-reduced-motion: reduce) { .sr-whatsapp-menu { animation: none; } }
@media print { .sr-whatsapp-wrap { display: none; } }

/* Seção "A Serventia" só com texto (sem foto): centralizada como os títulos das outras seções */
.sr-about--so-texto .sr-eyebrow, .sr-about--so-texto h2, .sr-about--so-texto .sr-sign, .sr-about--so-texto .sr-link { text-align: center; }
.sr-about--so-texto h2::after { content: ""; display: block; width: 56px; height: 2px; background: var(--sr-gold); margin: 16px auto 0; }
.sr-about--so-texto h2 { margin-bottom: 28px; }

/* Página Circunscrição: mapa do município */
.sr-circ-mapa { height: 520px; border-radius: 6px; overflow: hidden; border: 1px solid var(--sr-line); background: var(--sr-sand-2); z-index: 0; }
.sr-circ-mapa .leaflet-tile-pane { filter: saturate(.75); }
.sr-circ-fonte { margin-top: 8px; font-size: 13px; color: var(--sr-muted, #5b6678); }
@media (max-width: 781px) { .sr-circ-mapa { height: 380px; } }

/* Quadro claro de destaque (ex.: Transparência): fundo branco com filete dourado, no lugar do quadro azul */
:root .sr-quadro { background: #fff; border: 1px solid var(--sr-line); border-left: 3px solid var(--sr-gold); border-radius: 4px; padding: 28px 30px; }
.sr-quadro h3 { color: var(--sr-navy); margin-top: 0; }
.sr-quadro > :last-child { margin-bottom: 0; }
@media (max-width: 781px) { :root .sr-quadro { padding: 22px 20px; } }

/* Início: seção Circunscrição (texto + mapa) */
.sr-circ .sr-circ-mapa { height: 400px; }
@media (max-width: 781px) { .sr-circ .sr-circ-mapa { height: 320px; } }

/* Selo Agenda 2030 no rodapé (leva à notícia) */
:root .sr-footer .sr-brand { flex-direction: row; align-items: center; gap: 44px; } /* selo centrado acima de "Souza, s/n" */
:root .sr-footer .sr-selo-ods { margin: 0; }
.sr-footer .sr-selo-ods a { display: inline-block; border-radius: 50%; transition: transform .2s ease; }
.sr-footer .sr-selo-ods a:hover, .sr-footer .sr-selo-ods a:focus-visible { transform: scale(1.06); }
.sr-footer .sr-selo-ods img { display: block; width: 56px; height: 56px; }

/* Documentos necessários (RTDPJ): subtítulos dos grupos e observações */
:root .sr-main .sr-doc-grupo { font-size: 24px; margin: 40px 0 0; scroll-margin-top: 120px; }
:root .sr-main .sr-busca + .sr-doc-grupo { margin-top: 28px; }
:root .sr-main .wp-block-details + .sr-quadro { margin-top: 20px; }
:root .sr-main .sr-quadro + .sr-doc-grupo, :root .sr-main .wp-block-details + .sr-aviso-doc { margin-top: 32px; }
:root .sr-main .sr-quadro h3 { font-size: 20px; }

/* Submenu dentro de submenu (Informações › Documentos necessários › RI / RTDPJ): abre à direita, alinhado ao item */
.sr-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
	left: 100% !important; right: auto !important; top: -10px; min-width: 280px !important;
}
@media (max-width: 1360px) {
	.sr-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container { min-width: 220px !important; }
}

/* Páginas de Documentos necessários: título um pouco menor, para o nome do registro caber numa linha */
:root .sr-page-hero--docs h1 { font-size: clamp(26px, 3.3vw, 40px); }

/* Atendimento: WhatsApp e e-mail por especialidade (RI / RTDPJ) */
.sr-info .sr-sigla { display: inline-block; min-width: 48px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--sr-sand, #e9dfc9); opacity: .75; }

/* Barra do topo: contatos de RI e de RTDPJ */
.sr-topbar__contatos .sr-sigla { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--sr-gold); }
.sr-topbar__sep { margin: 0 8px; opacity: .35; }

/* Digitalização de documentos: passo a passo (Decreto 10.278/2020) */
:root .sr-main .sr-passo-selo { display: inline-block; margin: 0; padding: 6px 14px; border-radius: 4px; background: var(--sr-navy); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
:root .sr-main .sr-passo-titulo { margin: 14px 0 0; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.25; color: var(--sr-navy); }
:root .sr-main .sr-passo-itens { margin-top: 28px; }
:root .sr-main .sr-passo-itens ul { margin: 0; }
:root .sr-main .sr-passo-etapa { display: flex; align-items: center; gap: 14px; margin: 48px 0 0; font-size: 24px; color: var(--sr-navy); scroll-margin-top: 120px; }
.sr-passo-etapa__num { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sr-gold); color: #fff; font-family: Lato, system-ui, sans-serif; font-size: 18px; font-weight: 700; line-height: 1; }
:root .sr-main .sr-passo { position: relative; margin: 18px 0 0 19px; padding: 22px 26px 26px 34px; background: #fff; border: 1px solid var(--sr-line); border-radius: 6px; }
:root .sr-main .sr-passo::before { content: ""; position: absolute; left: -20px; top: -19px; bottom: -19px; width: 2px; background: var(--sr-sand-2, #e9dfc9); }
:root .sr-main .sr-passo::after { content: ""; position: absolute; left: -26px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--sr-gold); box-sizing: border-box; }
:root .sr-main .sr-passo + .sr-passo { margin-top: 18px; }
:root .sr-main .sr-passo__texto { margin: 0; font-size: 17px; line-height: 1.6; color: var(--sr-navy); }
:root .sr-main .sr-passo__texto em { font-style: italic; }
.sr-passo__ico { display: inline-block; width: auto; vertical-align: middle; margin: -4px 2px 0; border-radius: 4px; }
:root .sr-main .sr-passo__print { margin: 18px 0 0; }
:root .sr-main .sr-passo__print img { display: block; width: auto; max-width: 100%; max-height: 480px; height: auto; margin: 0 auto; border: 1px solid #e3e3e3; border-radius: 6px; box-shadow: 0 4px 16px rgba(20, 36, 63, .08); }
:root .sr-main .sr-passo__print a { display: block; cursor: zoom-in; }
:root .sr-main .sr-passo-etapa::after { flex: 0 0 auto; }
:root .sr-main .sr-passo + .sr-aviso-doc { margin-top: 40px; }
@media (max-width: 781px) {
	:root .sr-main .sr-passo { margin-left: 0; padding: 18px; }
	:root .sr-main .sr-passo::before, :root .sr-main .sr-passo::after { display: none; }
	:root .sr-main .sr-passo-etapa { font-size: 21px; }
}
:root .sr-main .sr-passo-baixar { margin-top: 22px; }
:root .sr-main .sr-passo-baixar .wp-block-button__link::before { content: ""; display: inline-block; width: 16px; height: 16px; margin: 0 8px -2px 0; 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='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%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='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Página Quem somos: texto institucional + missão, visão e valores */
:root .sr-main .sr-quem-intro .sr-eyebrow { margin-bottom: 6px; }
:root .sr-main .sr-quem-intro h2 { margin-top: 0; color: var(--sr-navy); }
:root .sr-main .sr-quem-intro p:not(.sr-eyebrow):not(.sr-sign):not(.sr-link) { text-align: justify; }
:root .sr-main .sr-mvv { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
:root .sr-main .sr-mvv > * { margin: 0 !important; max-width: none !important; }
:root .sr-main .sr-mvv__card { position: relative; background: var(--sr-navy); color: #fff; border-radius: 6px; padding: 30px 28px 28px; border-top: 3px solid var(--sr-gold); }
:root .sr-main .sr-mvv__card h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; color: #fff; font-size: 26px; }
:root .sr-main .sr-mvv__card h3::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sr-gold) center / 20px no-repeat; }
:root .sr-main .sr-mvv__card--missao h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1' fill='white'/%3E%3C/svg%3E"); }
:root .sr-main .sr-mvv__card--visao h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
:root .sr-main .sr-mvv__card p { margin: 0; color: var(--sr-sand-2, #f3ede1); line-height: 1.65; }
:root .sr-main .sr-valores { margin-top: 20px; background: #fff; border: 1px solid var(--sr-line); border-top: 3px solid var(--sr-gold); border-radius: 6px; padding: 30px 28px 10px; }
:root .sr-main .sr-valores__titulo { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--sr-navy); font-size: 26px; }
:root .sr-main .sr-valores__titulo::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sr-gold) center / 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.6 5.6 6.1.7-4.5 4.2 1.2 6L12 16.6 6.6 19.5l1.2-6-4.5-4.2 6.1-.7Z'/%3E%3C/svg%3E"); }
:root .sr-main .sr-valores__grade { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
:root .sr-main .sr-valores__grade > * { margin: 0 !important; max-width: none !important; }
:root .sr-main .sr-valores__item { padding: 14px 0 16px; border-top: 1px solid var(--sr-line); }
:root .sr-main .sr-valores__item h4 { margin: 0 0 4px; font-family: var(--wp--preset--font-family--sans); font-size: 16px; font-weight: 700; color: var(--sr-navy); }
:root .sr-main .sr-valores__item h4::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 10px 2px 0; border-radius: 50%; background: var(--sr-gold); }
:root .sr-main .sr-valores__item p { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.6; color: var(--sr-muted); }
@media (max-width: 781px) {
	:root .sr-main .sr-mvv, :root .sr-main .sr-valores__grade { grid-template-columns: 1fr; }
	:root .sr-main .sr-quem-intro p:not(.sr-eyebrow):not(.sr-sign):not(.sr-link) { text-align: left; }
}
