/*
Theme Name: Semente Originária
Theme URI: https://sementeoriginaria.com.br
Author: Coletivo Semente Originária
Author URI: https://sementeoriginaria.com.br
Description: Tema de blocos editorial, responsivo e acessível para o Coletivo Semente Originária, com página institucional, artigos e padrões reutilizáveis.
Version: 1.5.2
Requires at least: 6.6
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: semente-originaria
Tags: block-patterns, full-site-editing, wide-blocks, accessibility-ready, blog, news
*/

:root {
  --so-paper: var(--wp--preset--color--papel, #f3eadb);
  --so-paper-light: var(--wp--preset--color--papel-claro, #fffaf1);
  --so-ink: var(--wp--preset--color--carvao, #241b13);
  --so-earth: var(--wp--preset--color--terra, #8f3417);
  --so-ochre: var(--wp--preset--color--ocre, #c88b4a);
  --so-leaf: var(--wp--preset--color--folha, #38402a);
  --so-deep: var(--wp--preset--color--terra-escura, #342116);
  --so-line: color-mix(in srgb, var(--so-deep) 18%, transparent);
  --so-shadow: 0 18px 55px rgba(52, 33, 22, 0.13);
  --so-shadow-soft: 0 8px 24px rgba(52, 33, 22, 0.09);
  --so-radius: 1rem;
  --so-radius-lg: 1.5rem;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  background:
    radial-gradient(circle at 20% 10%, rgba(200, 139, 74, 0.07), transparent 28rem),
    var(--so-paper-light);
  color: var(--so-ink);
  overflow-x: clip;
}

::selection {
  background: var(--so-ochre);
  color: var(--so-deep);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--so-ochre);
  outline-offset: 4px;
}

.wp-site-blocks {
  overflow: clip;
}

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

img {
  height: auto;
}

/* Cabeçalho */
.so-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--so-line);
  background: color-mix(in srgb, var(--so-paper-light) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.admin-bar .so-site-header { top: 32px; }

.so-header-inner {
  min-height: 5.25rem;
  gap: 1.5rem;
}

.so-brand {
  min-width: max-content;
  gap: 0.75rem;
}

.so-brand .wp-block-site-logo img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.so-brand .wp-block-site-title {
  margin: 0;
  font-family: var(--wp--preset--font-family--editorial);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.so-brand .wp-block-site-title a {
  position: relative;
  display: block;
  max-width: 9rem;
  padding-left: 4rem;
  color: var(--so-deep);
  line-height: 0.9;
  text-decoration: none;
  white-space: normal;
}

.so-brand .wp-block-site-title a::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 3.25rem;
  height: 3.25rem;
  content: "";
  transform: translateY(-50%);
  background: url("assets/images/logo-semente.webp") center / contain no-repeat;
}

.so-brand:has(.wp-block-site-logo img) .wp-block-site-title a::before {
  display: none;
}

.so-brand:has(.wp-block-site-logo img) .wp-block-site-title a {
  max-width: 9rem;
  padding-left: 0;
}

.so-main-nav {
  font-size: 0.95rem;
  font-weight: 600;
}

.so-main-nav .wp-block-navigation-item__content {
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.4em;
}

.so-main-nav .current-menu-item > .wp-block-navigation-item__content,
.so-main-nav .wp-block-navigation-item__content:hover {
  color: var(--so-earth);
  text-decoration: underline;
}

.so-main-nav .so-nav-cta > .wp-block-navigation-item__content {
  padding: 0.75rem 1.05rem;
  border: 1px solid var(--so-earth);
  border-radius: 0.45rem;
  background: var(--so-earth);
  color: #fffaf1;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(143, 52, 23, 0.18);
}

.so-main-nav .so-nav-cta > .wp-block-navigation-item__content:hover {
  background: var(--so-deep);
  border-color: var(--so-deep);
  color: #fffaf1;
  text-decoration: none;
}


.so-paper-texture,
.so-news-section,
.so-cta,
.so-data-card,
.so-reason-card {
  color: var(--so-deep);
}

.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--so-earth) !important;
  border: 1px solid color-mix(in srgb, var(--so-earth) 60%, white) !important;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255,250,241,0.82) !important;
  color: var(--so-deep) !important;
  border-color: var(--so-deep) !important;
}

.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: var(--so-deep) !important;
}

.so-main-nav,
.so-main-nav .wp-block-navigation-item__content,
.so-main-nav .wp-block-navigation__responsive-container-open,
.so-main-nav .wp-block-navigation__responsive-container-close {
  color: var(--so-deep) !important;
}

.so-home-section-title {
  position: relative;
  margin: 0 0 1.4rem;
  font-size: clamp(2rem, 3vw, 2.85rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.so-home-section-title::after {
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: 0.6rem;
  content: "";
  background: var(--so-earth);
}

.so-centered-title {
  margin-bottom: 2.2rem;
}

.so-centered-title::after {
  margin-inline: auto;
}

/* Hero */
.so-hero {
  min-height: clamp(34rem, 43vw, 40rem);
  isolation: isolate;
  border-bottom: 1px solid var(--so-line);
}

.so-hero,
.so-hero .wp-block-cover__inner-container,
.so-hero .so-hero-lead {
  color: var(--so-deep) !important;
}

.so-hero .wp-block-cover__image-background {
  filter: saturate(0.92) contrast(0.98);
}

.so-hero .wp-block-cover__background {
  background:
    linear-gradient(90deg, rgba(246, 234, 215, 0.97) 0%, rgba(246, 234, 215, 0.88) 42%, rgba(246, 234, 215, 0.12) 72%, rgba(246, 234, 215, 0.03) 100%) !important;
  opacity: 1 !important;
}

.so-hero-inner {
  padding-block: clamp(3rem, 6vw, 5.25rem);
}

.so-hero-copy {
  max-width: 33rem;
}

.so-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
  color: var(--so-earth);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.so-eyebrow::before {
  width: 2rem;
  height: 2px;
  content: "";
  background: currentColor;
}

.so-hero h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--so-deep);
  font-size: clamp(2.4rem, 4vw, 3.9rem);
  line-height: 0.93;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.so-hero-lead {
  max-width: 44rem;
  margin-top: 1.35rem;
  font-size: clamp(1.02rem, 1.15vw, 1.15rem);
  line-height: 1.6;
}

.so-hero .wp-block-buttons {
  margin-top: 1.7rem;
}

/* Seções */
.so-section {
  position: relative;
  padding-block: clamp(3.75rem, 5.8vw, 5.6rem);
}

.so-section + .so-section {
  border-top: 1px solid var(--so-line);
}

.so-section-heading {
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.so-section-heading h2,
.so-section-title {
  margin: 0;
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.so-section-heading p {
  max-width: 42rem;
  color: color-mix(in srgb, var(--so-ink) 78%, transparent);
  font-size: 1.05rem;
}

.so-paper-texture {
  background:
    linear-gradient(rgba(255,255,255,0.48), rgba(255,255,255,0.48)),
    url("assets/images/paper-texture.svg") center / 640px repeat,
    var(--so-paper);
}

/* Quem somos + Censo */
.so-about-grid {
  align-items: center !important;
  gap: clamp(2rem, 6vw, 5rem) !important;
}

.so-about-copy p {
  max-width: 42rem;
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  line-height: 1.75;
}

.so-data-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 4vw, 3.2rem);
  border: 1px solid rgba(83, 46, 26, 0.16);
  border-radius: var(--so-radius-lg);
  background:
    radial-gradient(circle at 95% 10%, rgba(143, 52, 23, 0.18), transparent 13rem),
    linear-gradient(135deg, rgba(255,255,255,0.12), transparent 65%),
    var(--so-ochre);
  box-shadow: var(--so-shadow);
}

.so-data-card::after {
  position: absolute;
  right: -3.5rem;
  bottom: -4rem;
  width: 15rem;
  height: 15rem;
  border: 2px solid rgba(52, 33, 22, 0.13);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 1.25rem rgba(52, 33, 22, 0.035),
    0 0 0 2.5rem rgba(52, 33, 22, 0.025);
}

.so-data-number {
  margin: 0;
  color: var(--so-earth);
  font-family: var(--wp--preset--font-family--editorial);
  font-size: clamp(4.8rem, 7.2vw, 6.9rem);
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: -0.08em;
}

.so-data-label {
  margin: 1.5rem 0 0;
  font-family: var(--wp--preset--font-family--editorial);
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 650;
  line-height: 1;
}

.so-data-source,
.so-data-note {
  color: color-mix(in srgb, var(--so-deep) 84%, transparent);
  font-size: 0.95rem;
  line-height: 1.55;
}

.so-data-statement {
  padding-top: 1.2rem;
  border-top: 1px solid rgba(52, 33, 22, 0.24);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 750;
  line-height: 1.3;
}

/* Motivos */
.so-reasons {
  background:
    linear-gradient(rgba(255,250,241,0.9), rgba(255,250,241,0.9)),
    url("assets/images/paper-texture.svg") center / 640px repeat;
}

.so-reason-grid {
  gap: 1rem !important;
}

.so-reason-card {
  height: 100%;
  padding: clamp(1.4rem, 2vw, 2rem);
  border: 1px solid var(--so-line);
  border-radius: var(--so-radius);
  background: rgba(255, 250, 241, 0.74);
  box-shadow: var(--so-shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.so-reason-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--so-shadow);
}

.so-reason-icon {
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 0 1.35rem;
  place-items: center;
  border: 1px solid var(--so-earth);
  border-radius: 50%;
  color: var(--so-earth);
  font-family: var(--wp--preset--font-family--editorial);
  font-size: 1.45rem;
}

.so-reason-card h3 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.16rem, 1.4vw, 1.38rem);
  line-height: 1.08;
}

.so-reason-card p:last-child {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--so-ink) 78%, transparent);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Artigos */
.so-news-section {
  background: var(--so-paper-light);
}

.so-news-header {
  gap: 1rem;
  margin-bottom: 2rem;
}

.so-news-query .wp-block-post-template {
  gap: 1.25rem;
}

.so-news-card {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--so-line);
  border-radius: var(--so-radius);
  background: #fffaf1;
  box-shadow: var(--so-shadow-soft);
}

.so-news-card:not(:has(.wp-block-post-featured-image img))::before {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  content: "";
  background: url("assets/images/news-placeholder.svg") center / cover no-repeat;
}

.so-news-card .wp-block-post-featured-image {
  margin: 0;
  overflow: hidden;
}

.so-news-card .wp-block-post-featured-image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 300ms ease;
}

.so-news-card:hover .wp-block-post-featured-image img {
  transform: scale(1.03);
}

.so-news-card-body {
  padding: 1.4rem;
}

.so-news-card .wp-block-post-date {
  margin-bottom: 0.7rem;
  color: var(--so-earth);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.so-news-card .wp-block-post-title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.12rem, 1.4vw, 1.35rem);
  line-height: 1.05;
}

.so-news-card .wp-block-post-title a {
  color: var(--so-deep);
  text-decoration: none;
}

.so-news-card .wp-block-post-title a:hover {
  color: var(--so-earth);
}

.so-news-card .wp-block-post-excerpt {
  color: color-mix(in srgb, var(--so-ink) 78%, transparent);
  font-size: 0.95rem;
}

.so-news-card .wp-block-post-excerpt__more-link {
  color: var(--so-earth);
  font-weight: 750;
  text-decoration: none;
}

/* CTA */
.so-cta-wrap {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.so-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(1.85rem, 3.7vw, 3rem);
  border: 1px solid rgba(52, 33, 22, 0.16);
  border-radius: var(--so-radius-lg);
  background:
    radial-gradient(circle at 6% 50%, rgba(143, 52, 23, 0.28), transparent 11rem),
    url("assets/images/paper-texture.svg") center / 640px repeat,
    #d3a06a;
  box-shadow: var(--so-shadow);
}

.so-cta::after {
  position: absolute;
  right: -4rem;
  top: -5rem;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(52, 33, 22, 0.18);
  border-radius: 50%;
  content: "";
}

.so-cta h2 {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(1.95rem, 3.2vw, 2.85rem);
  line-height: 0.98;
}

.so-cta p {
  max-width: 40rem;
  font-size: 1.08rem;
}

/* Páginas e posts */
.so-page-hero {
  padding-block: clamp(4rem, 9vw, 7rem);
  border-bottom: 1px solid var(--so-line);
  background:
    linear-gradient(110deg, rgba(255,250,241,0.96), rgba(243,234,219,0.68)),
    url("assets/images/paper-texture.svg") center / 640px repeat;
}

.so-page-hero h1,
.so-archive-title {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.so-page-main,
.so-post-main {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.so-page-main .entry-content > * + *,
.so-post-content > * + * {
  margin-block-start: 1.35em;
}

.so-post-meta {
  color: color-mix(in srgb, var(--so-ink) 68%, transparent);
  font-size: 0.9rem;
}

.so-post-featured img {
  border-radius: var(--so-radius-lg);
  box-shadow: var(--so-shadow);
}

.so-archive-grid .wp-block-post-template {
  gap: 1.25rem;
}

.so-pagination {
  margin-top: 3rem;
}

/* Formulários genéricos */
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), select, textarea) {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid color-mix(in srgb, var(--so-deep) 28%, transparent);
  border-radius: 0.55rem;
  background: #fffdf8;
  color: var(--so-ink);
  font: inherit;
}

textarea { min-height: 10rem; resize: vertical; }

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

/* Rodapé */
.so-site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  background:
    linear-gradient(rgba(42, 27, 18, 0.96), rgba(42, 27, 18, 0.96)),
    url("assets/images/paper-texture.svg") center / 640px repeat;
  color: #f7ead7;
}

.so-footer-grid {
  gap: clamp(2rem, 5vw, 5rem) !important;
  padding-bottom: 3rem;
}

.so-site-footer a {
  color: #f7ead7;
}

.so-footer-title {
  margin-top: 0;
  color: #fff6e8;
  font-size: 1.15rem;
}

.so-footer-nav .wp-block-navigation-item__content {
  color: #f7ead7;
  text-decoration: none;
}

.so-footer-nav .wp-block-navigation-item__content:hover {
  color: #e8a562;
}

.so-footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
}

.so-footer-bottom p {
  margin: 0;
}


.so-site-footer .wp-block-site-title {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.so-site-footer .wp-block-site-title a {
  color: #fff6e8;
  text-decoration: none;
}

/* Utilitários */
.so-muted { color: color-mix(in srgb, var(--so-ink) 68%, transparent); }
.so-narrow { max-width: 48rem; }
.so-no-margin { margin: 0 !important; }

@media (max-width: 1020px) {
  .so-main-nav { font-size: 0.9rem; }
  .so-hero .wp-block-cover__background {
    background: linear-gradient(90deg, rgba(246, 234, 215, 0.97) 0%, rgba(246, 234, 215, 0.84) 58%, rgba(246, 234, 215, 0.25) 100%) !important;
  }
  .so-reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 782px) {
  body.admin-bar .so-site-header { top: 46px; }

  .so-site-header { position: relative; top: auto; }

  .so-header-inner {
    min-height: 4.5rem;
    padding-inline: 1rem;
  }

  .so-brand .wp-block-site-title {
    font-size: 1.22rem;
  }

  .so-brand .wp-block-site-title a::before {
    width: 2.5rem;
    height: 2.5rem;
  }

  .wp-block-navigation__responsive-container.is-menu-open {
    padding: 1.25rem;
    background: var(--so-paper-light) !important;
    color: var(--so-deep) !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    align-items: stretch;
    gap: 0.45rem;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    padding: 0.75rem 0;
    font-size: 1.25rem;
  }

  .wp-block-navigation__responsive-container.is-menu-open .so-nav-cta > .wp-block-navigation-item__content {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    text-align: center;
  }

  .so-hero {
    min-height: 35rem;
  }

  .so-hero-copy {
    max-width: 100%;
  }

  .so-hero .wp-block-cover__image-background {
    object-position: 80% center;
  }

  .so-hero .wp-block-cover__background {
    background: linear-gradient(180deg, rgba(246, 234, 215, 0.38) 0%, rgba(246, 234, 215, 0.48) 38%, rgba(246, 234, 215, 0.78) 100%) !important;
  }

  .so-hero h1 {
    max-width: 8.8ch;
    font-size: clamp(1.85rem, 7.8vw, 2.55rem);
  }

  .so-about-grid,
  .so-cta > .wp-block-columns,
  .so-footer-grid {
    gap: 2rem !important;
  }

  .so-reason-grid {
    grid-template-columns: 1fr !important;
  }

  .so-news-header {
    align-items: flex-start !important;
    flex-direction: column;
  }

  .so-news-query .wp-block-post-template,
  .so-archive-grid .wp-block-post-template {
    grid-template-columns: 1fr !important;
  }

  .so-footer-bottom {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .so-header-inner { gap: 0.75rem; }
  .so-brand .wp-block-site-title { max-width: 8.5rem; }
  .so-hero-inner { padding-block: 3.25rem 4.5rem; }
  .so-section { padding-block: 3.75rem; }
  .so-data-card { padding: 1.45rem; }
  .so-data-number { font-size: 6.5rem; }
  .wp-block-button__link { width: 100%; text-align: center; }
  .wp-block-buttons { width: 100%; }
  .wp-block-buttons > .wp-block-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .so-site-header,
  .so-site-footer,
  .wp-block-buttons,
  .wp-block-navigation { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}

@media (max-width: 782px) {
  .so-news-card .wp-block-post-title { font-size: 1.18rem; }
  .so-section-title { font-size: clamp(1.85rem, 8vw, 2.55rem); }
  .so-cta h2 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
}

.so-about-section .so-about-copy {
  align-self: center;
}

.so-about-section .so-about-copy p {
  font-size: 0.98rem;
  line-height: 1.65;
}

.so-data-card .wp-block-columns {
  gap: clamp(1.25rem, 2.6vw, 2.4rem);
}

.so-site-footer .so-footer-title.wp-block-site-title a {
  position: relative;
  display: inline-block;
  max-width: 10rem;
  padding-left: 3.7rem;
  color: #fff6e8;
  line-height: 0.92;
  text-decoration: none;
}

.so-site-footer .so-footer-title.wp-block-site-title a::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 3rem;
  height: 3rem;
  content: "";
  transform: translateY(-50%);
  background: url("assets/images/logo-semente.webp") center / contain no-repeat;
}

@media (max-width: 782px) {
  .so-main-nav .wp-block-navigation__responsive-container.is-menu-open,
  .so-main-nav .wp-block-navigation__responsive-container.is-menu-open a,
  .so-main-nav .wp-block-navigation__responsive-container.is-menu-open button,
  .so-main-nav .wp-block-navigation__responsive-container.is-menu-open svg {
    color: var(--so-deep) !important;
    fill: currentColor !important;
  }

  .so-hero {
    min-height: 34rem !important;
  }

  .so-hero .so-hero-lead {
    max-width: 18rem;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .so-hero h1 {
    font-size: clamp(1.8rem, 7.4vw, 2.4rem);
  }

  .so-home-section-title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }
}

.so-paper-texture a, .so-news-section a, .so-cta a { color: var(--so-earth); }





@media (max-width: 480px) {
  .so-hero {
    min-height: 32rem !important;
  }

  .so-hero .wp-block-cover__image-background {
    object-position: 82% center;
  }

  .so-hero .wp-block-cover__background {
    background: linear-gradient(180deg, rgba(246, 234, 215, 0.28) 0%, rgba(246, 234, 215, 0.42) 36%, rgba(246, 234, 215, 0.74) 100%) !important;
  }

  .so-hero h1 {
    max-width: 8.7ch;
    font-size: clamp(1.85rem, 8.5vw, 2.4rem);
  }

  .so-hero .wp-block-buttons {
    margin-top: 1.2rem;
  }
}


@media (min-width: 783px) {
  .so-hero .so-hero-inner {
    padding-inline: clamp(2rem, 4vw, 4.5rem) !important;
  }

  .so-hero .wp-block-columns {
    gap: 0 !important;
    align-items: center !important;
  }

  .so-hero-copy {
    flex-basis: 39% !important;
    max-width: 28rem;
    margin-left: 0 !important;
  }

  .so-hero h1 {
    max-width: 9.8ch;
    font-size: clamp(2.05rem, 3.15vw, 3.2rem);
    line-height: 0.94;
  }

  .so-hero-lead {
    max-width: 28rem;
    font-size: 0.98rem;
  }

  .so-hero .wp-block-cover__background {
    background: linear-gradient(90deg, rgba(246, 234, 215, 0.90) 0%, rgba(246, 234, 215, 0.74) 28%, rgba(246, 234, 215, 0.28) 52%, rgba(246, 234, 215, 0.02) 70%) !important;
  }
}

@media (max-width: 782px) {
  .so-hero .so-hero-inner {
    padding-top: 15.5rem !important;
    padding-bottom: 2rem !important;
  }

  .so-hero .wp-block-cover__inner-container {
    min-height: inherit;
    display: flex;
    align-items: flex-end;
  }

  .so-hero-copy {
    flex-basis: 100% !important;
    max-width: 18rem;
  }

  .so-hero .wp-block-buttons {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {
  .so-hero .so-hero-inner {
    padding-top: 14.5rem !important;
  }

  .so-hero-copy {
    max-width: 16.5rem;
  }
}

/* ============================================================
   1.2.0 — composição fiel ao mockup aprovado
   ============================================================ */

/* Estrutura geral mais compacta, como no mockup. */
.so-site-header {
  background: rgba(255, 250, 241, 0.98);
  box-shadow: none;
}

.so-header-inner {
  width: min(100% - 3rem, 1180px) !important;
  max-width: 1180px !important;
  min-height: 4.75rem;
  padding-inline: 0 !important;
}

.so-brand .wp-block-site-title {
  font-size: 1.42rem;
  font-weight: 500;
}

.so-main-nav {
  gap: 1.45rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.so-main-nav .so-nav-cta > .wp-block-navigation-item__content {
  padding: 0.72rem 1.05rem;
}

/* Hero desktop: usa a arte exata do mockup e reconstrói o texto em HTML editável. */
.so-hero {
  position: relative;
  height: clamp(25rem, 43.7vw, 34rem) !important;
  min-height: 0 !important;
  overflow: hidden;
}

.so-hero::after {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: clamp(4.8rem, 10.8vw, 6.6rem);
  content: "";
  pointer-events: none;
  background: url("assets/images/hero-left-strip.png") left center / 100% 100% no-repeat;
}

.so-hero .wp-block-cover__image-background {
  object-fit: cover !important;
  object-position: center center !important;
  filter: none !important;
}

.so-hero .wp-block-cover__background {
  z-index: 1;
  opacity: 1 !important;
  background: linear-gradient(
    90deg,
    rgba(246, 234, 215, 1) 0%,
    rgba(246, 234, 215, 1) 49%,
    rgba(246, 234, 215, 0.99) 54%,
    rgba(246, 234, 215, 0.84) 60%,
    rgba(246, 234, 215, 0.28) 71%,
    rgba(246, 234, 215, 0.02) 82%
  ) !important;
}

.so-hero .wp-block-cover__inner-container {
  z-index: 3;
  width: 100% !important;
}

.so-hero .so-hero-inner {
  width: 100% !important;
  max-width: none !important;
  min-height: 100%;
  padding: 0 clamp(2rem, 5vw, 4rem) 0 clamp(6.7rem, 13.2vw, 8.2rem) !important;
  display: flex;
  align-items: center;
}

.so-hero .so-hero-inner > .wp-block-columns {
  width: 100%;
  margin: 0;
  gap: 0 !important;
  align-items: center !important;
}

.so-hero-copy {
  flex: 0 0 53% !important;
  max-width: 34rem !important;
  margin: 0 !important;
}

.so-hero h1 {
  max-width: 18.2ch !important;
  margin: 0;
  font-size: clamp(2.45rem, 5vw, 3.45rem) !important;
  font-weight: 400 !important;
  line-height: 0.99 !important;
  letter-spacing: -0.042em !important;
  text-wrap: balance;
}

.so-hero-lead {
  max-width: 34rem !important;
  margin-top: 1.2rem !important;
  font-size: clamp(0.95rem, 1.45vw, 1.08rem) !important;
  line-height: 1.48 !important;
}

.so-hero .wp-block-buttons {
  margin-top: 1.45rem !important;
  gap: 0.8rem;
}

.so-hero .wp-block-button__link {
  padding: 0.74rem 1.12rem;
  font-size: 0.9rem;
}

/* Seções com a mesma densidade visual do mockup. */
.so-section {
  padding-block: clamp(2.7rem, 4.6vw, 4.1rem) !important;
}

.so-home-section-title {
  font-size: clamp(2rem, 3.3vw, 2.85rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.035em;
}

.so-about-grid {
  width: min(100% - 3.5rem, 1120px) !important;
  max-width: 1120px !important;
  gap: clamp(2.2rem, 5vw, 4.2rem) !important;
}

.so-about-copy {
  flex-basis: 41% !important;
}

.so-about-copy p {
  font-size: 0.98rem !important;
  line-height: 1.68 !important;
}

.so-data-card {
  padding: clamp(1.55rem, 3vw, 2.35rem) !important;
  border-radius: 0.72rem !important;
  background:
    linear-gradient(rgba(219, 166, 102, 0.86), rgba(219, 166, 102, 0.86)),
    url("assets/images/paper-texture.svg") center / 580px repeat !important;
}

.so-data-card .wp-block-columns {
  gap: clamp(1.2rem, 2.2vw, 2rem) !important;
}

.so-data-number {
  font-size: clamp(5.1rem, 9vw, 7.4rem) !important;
}

.so-data-label {
  margin-top: 0.85rem !important;
  font-size: clamp(1.55rem, 2.5vw, 2.05rem) !important;
}

.so-data-source,
.so-data-note {
  font-size: 0.88rem !important;
}

.so-data-statement {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem) !important;
}

.so-centered-title {
  margin-bottom: 2rem !important;
}

.so-reasons {
  padding-top: 2.7rem !important;
  padding-bottom: 2.7rem !important;
}

.so-reason-grid {
  width: min(100% - 3.5rem, 1120px) !important;
  max-width: 1120px !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}

.so-reason-card {
  min-height: 12.5rem;
  padding: 1.35rem 1.25rem !important;
  border-radius: 0.7rem !important;
  text-align: center;
}

.so-reason-icon {
  margin: 0 auto 1rem !important;
}

.so-reason-card h3 {
  font-size: 1.16rem !important;
  font-weight: 400 !important;
}

.so-reason-card p:last-child {
  font-size: 0.86rem !important;
  line-height: 1.5 !important;
}

.so-news-section {
  padding-top: 2.45rem !important;
  padding-bottom: 2.65rem !important;
}

.so-news-header,
.so-news-grid {
  width: min(100% - 3.5rem, 1120px) !important;
  max-width: 1120px !important;
}

.so-news-header {
  margin-bottom: 1.35rem !important;
}

.so-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.so-news-card {
  min-width: 0;
  border-radius: 0.62rem !important;
}

.so-news-card-image {
  display: block;
  overflow: hidden;
}

.so-news-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 2.68 / 1;
  object-fit: cover;
}

.so-news-card-body {
  padding: 1rem 1.05rem 1.15rem !important;
}

.so-news-card-body time,
.so-news-date {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--so-earth);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.so-news-card-body h3 {
  margin: 0 0 0.55rem;
  font-family: var(--wp--preset--font-family--editorial);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.05;
}

.so-news-card-body h3 a {
  color: var(--so-deep);
  text-decoration: none;
}

.so-news-card-body p {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.43;
}

.so-news-more {
  color: var(--so-earth);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.so-cta-wrap {
  padding-block: 1.4rem 2.2rem !important;
}

.so-cta {
  width: min(100% - 3.5rem, 1120px) !important;
  max-width: 1120px !important;
  padding: clamp(1.35rem, 2.8vw, 2.2rem) clamp(1.5rem, 3.5vw, 3rem) !important;
  border-radius: 0.72rem !important;
  background:
    radial-gradient(circle at 7% 55%, rgba(143, 52, 23, 0.22), transparent 8rem),
    url("assets/images/paper-texture.svg") center / 620px repeat,
    #d8a56c !important;
}

.so-cta h2 {
  max-width: 22ch !important;
  font-size: clamp(1.65rem, 3vw, 2.6rem) !important;
  font-weight: 400 !important;
}

.so-cta p {
  margin-bottom: 0;
  font-size: 0.95rem !important;
}

.so-cta .wp-block-button__link {
  color: #fffaf1 !important;
}

.so-site-footer {
  padding-top: 2.6rem !important;
}

.so-footer-grid {
  width: min(100% - 3.5rem, 1120px) !important;
  max-width: 1120px !important;
  gap: 2.5rem !important;
  padding-bottom: 2rem !important;
}

.so-site-footer p,
.so-site-footer .wp-block-navigation-item__content {
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Tablet e celular: a imagem vira a parte superior do hero, plenamente visível. */
@media (max-width: 782px) {
  .so-header-inner {
    width: calc(100% - 2rem) !important;
    min-height: 4.35rem;
  }

  .so-hero {
    height: auto !important;
    min-height: 44rem !important;
    padding-top: 17.5rem;
    background: var(--so-paper-light);
  }

  .so-hero::after {
    display: none;
  }

  .so-hero .wp-block-cover__image-background {
    height: 19rem !important;
    object-fit: cover !important;
    object-position: 71% center !important;
  }

  .so-hero .wp-block-cover__background {
    height: 19rem;
    bottom: auto;
    background: linear-gradient(180deg, rgba(246,234,215,0.04), rgba(246,234,215,0.10) 62%, rgba(246,234,215,0.90) 100%) !important;
  }

  .so-hero .wp-block-cover__inner-container {
    position: static;
  }

  .so-hero .so-hero-inner {
    min-height: 0;
    padding: 1.6rem 1.25rem 2rem !important;
    align-items: flex-start;
  }

  .so-hero .so-hero-inner > .wp-block-columns {
    display: block;
  }

  .so-hero-copy {
    max-width: 31rem !important;
    flex-basis: 100% !important;
  }

  .so-hero h1 {
    max-width: 15ch !important;
    font-size: clamp(2.15rem, 10vw, 3.2rem) !important;
    line-height: 0.98 !important;
  }

  .so-hero-lead {
    max-width: 31rem !important;
    font-size: 0.98rem !important;
  }

  .so-about-grid,
  .so-reason-grid,
  .so-news-grid,
  .so-footer-grid {
    width: calc(100% - 2rem) !important;
  }

  .so-about-grid {
    display: block !important;
  }

  .so-about-copy {
    margin-bottom: 2rem;
  }

  .so-reason-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .so-news-grid {
    grid-template-columns: 1fr !important;
  }

  .so-news-card-image img {
    aspect-ratio: 16 / 7;
  }

  .so-cta {
    width: calc(100% - 2rem) !important;
  }

  .so-cta > .wp-block-columns {
    display: block;
  }

  .so-cta .wp-block-buttons {
    justify-content: flex-start !important;
    margin-top: 1rem;
  }
}

@media (max-width: 520px) {
  .so-hero {
    min-height: 42rem !important;
    padding-top: 15.5rem;
  }

  .so-hero .wp-block-cover__image-background,
  .so-hero .wp-block-cover__background {
    height: 17rem !important;
  }

  .so-hero .wp-block-cover__image-background {
    object-position: 73% center !important;
  }

  .so-hero h1 {
    max-width: 13.5ch !important;
    font-size: clamp(2rem, 10.5vw, 2.8rem) !important;
  }

  .so-reason-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Refinos finais do mockup. */
.so-news-grid .so-news-card::before {
  display: none !important;
  content: none !important;
}

@media (min-width: 783px) {
  .so-hero .wp-block-cover__background {
    background: linear-gradient(
      90deg,
      rgba(246, 234, 215, 1) 0%,
      rgba(246, 234, 215, 1) 53%,
      rgba(246, 234, 215, 0.98) 58%,
      rgba(246, 234, 215, 0.72) 65%,
      rgba(246, 234, 215, 0.20) 75%,
      rgba(246, 234, 215, 0.01) 84%
    ) !important;
  }

  .so-hero h1 {
    max-width: 20.5ch !important;
  }
}

@media (max-width: 782px) {
  .so-hero::before {
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    height: 19rem;
    content: "";
    background: url("assets/images/hero-mobile.jpg") 65% center / cover no-repeat;
  }

  .so-hero .wp-block-cover__image-background {
    display: none !important;
  }

  .so-hero .wp-block-cover__background {
    z-index: 1;
  }

  .so-hero .wp-block-cover__inner-container {
    z-index: 2;
  }
}

@media (max-width: 520px) {
  .so-hero::before,
  .so-hero .wp-block-cover__background {
    height: 17rem !important;
  }
}

@media (min-width: 783px) {
  .so-hero h1 {
    max-width: 23ch !important;
  }
}

.so-cta .wp-block-button__link {
  background: var(--so-deep) !important;
  border-color: var(--so-deep) !important;
  color: #fffaf1 !important;
}

@media (max-width: 782px) {
  .so-hero {
    min-height: 0 !important;
    height: auto !important;
    padding-top: 19rem !important;
  }

  .so-hero .wp-block-cover__inner-container {
    min-height: 0 !important;
    display: block !important;
    align-items: initial !important;
  }
}

@media (max-width: 520px) {
  .so-hero {
    padding-top: 17rem !important;
  }
}


/* Hero fiel ao mockup */
.so-hero-exact {
  position: relative;
  border-bottom: 1px solid var(--so-line);
  background: var(--so-paper-light);
}

.so-hero-exact__desktop-wrap {
  position: relative;
  display: block;
}

.so-hero-exact__desktop {
  display: block;
  width: 100%;
  height: auto;
}

.so-hero-hit {
  position: absolute;
  z-index: 3;
  display: block;
  border-radius: 0.8rem;
}

.so-hero-hit--collective {
  left: 13.25%;
  top: 74.9%;
  width: 14.2%;
  height: 11.3%;
}

.so-hero-hit--contact {
  left: 28.45%;
  top: 74.9%;
  width: 12.4%;
  height: 11.3%;
}

.so-hero-exact__mobile-wrap {
  display: none;
}

.so-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.65rem;
  font-weight: 700;
  text-decoration: none;
  transition: 0.2s ease;
}

.so-btn--solid {
  background: var(--so-earth);
  color: #fffaf1;
  box-shadow: 0 8px 18px rgba(143, 52, 23, 0.18);
}

.so-btn--solid:hover { background: var(--so-deep); color: #fffaf1; }

.so-btn--outline {
  border: 1px solid color-mix(in srgb, var(--so-earth) 55%, white);
  color: var(--so-earth);
  background: transparent;
}

.so-btn--outline:hover {
  border-color: var(--so-deep);
  color: var(--so-deep);
  background: rgba(255,250,241,0.85);
}

/* Ícones da seção Por que nos reunimos */
.so-reason-card .so-reason-icon {
  position: relative;
  width: 4.6rem;
  height: 4.6rem;
  margin: 0 auto 1rem;
  overflow: hidden;
  border: 1.7px solid color-mix(in srgb, var(--so-earth) 65%, white);
  border-radius: 999px;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.so-reason-card .so-reason-icon::before {
  position: absolute;
  inset: 0;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: 62%;
}

.so-reason-grid > .wp-block-column:nth-child(1) .so-reason-icon::before { background-image: url("assets/images/icon-presenca.svg"); }
.so-reason-grid > .wp-block-column:nth-child(2) .so-reason-icon::before { background-image: url("assets/images/icon-vinculos.svg"); }
.so-reason-grid > .wp-block-column:nth-child(3) .so-reason-icon::before { background-image: url("assets/images/icon-memorias.svg"); }
.so-reason-grid > .wp-block-column:nth-child(4) .so-reason-icon::before { background-image: url("assets/images/icon-respeito.svg"); }

@media (max-width: 782px) {
  .so-hero-exact__desktop-wrap { display: none; }

  .so-hero-exact__mobile-wrap {
    display: block;
    background: var(--so-paper-light);
  }

  .so-hero-exact__mobile-image {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
  }

  .so-hero-exact__mobile-copy {
    padding: 1.4rem 1.1rem 1.6rem;
    background: var(--so-paper-light);
  }

  .so-hero-exact__mobile-copy h1 {
    margin: 0;
    font-size: clamp(2rem, 10vw, 2.65rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    color: var(--so-deep);
  }

  .so-hero-exact__mobile-copy p {
    margin: 1rem 0 0;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--so-deep);
  }

  .so-hero-exact__mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.15rem;
  }

  .so-btn { width: 100%; }
}


/* Hero editável com imagem fiel ao mockup */
.so-hero-live {
  position: relative;
  overflow: hidden;
  background: var(--so-paper-light);
  border-bottom: 1px solid var(--so-line);
}

.so-hero-live__image {
  margin: 0;
}

.so-hero-live__image img {
  display: block;
  width: 100%;
  height: auto;
}

.so-hero-live__image--mobile {
  display: none;
}

.so-hero-live__copy {
  position: absolute;
  top: 18.2%;
  left: 13.4%;
  width: 34.5%;
  max-width: 31rem;
}

.so-hero-live__copy h1 {
  margin: 0;
  font-size: clamp(3rem, 4.55vw, 4.72rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
  color: var(--so-deep);
}

.so-hero-live__copy .so-hero-lead {
  margin-top: 1.25rem;
  max-width: 23rem;
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.5;
  color: var(--so-deep);
}

.so-hero-live__copy .wp-block-buttons {
  gap: 0.85rem;
  margin-top: 1.45rem;
}

.so-hero-live__copy .wp-block-button__link {
  min-height: 3.15rem;
  padding: 0.92rem 1.45rem;
  border-radius: 0.55rem;
  font-size: 1rem;
}

.so-hero-live__copy .wp-block-button.is-style-outline .wp-block-button__link {
  background: rgba(255, 250, 241, 0.10) !important;
}


.so-hero-live::before,
.so-hero-live::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

/* Integração suave do grafismo/esquerda com o fundo do texto */
.so-hero-live::before {
  left: 10.3%;
  width: 7.8%;
  background: linear-gradient(90deg,
    rgba(240, 227, 203, 0.00) 0%,
    rgba(240, 227, 203, 0.48) 28%,
    rgba(240, 227, 203, 0.82) 62%,
    rgba(240, 227, 203, 0.98) 100%);
}

/* Integração suave do fundo do texto com a imagem da mulher/cidade */
.so-hero-live::after {
  left: 59.8%;
  width: 10.5%;
  background: linear-gradient(90deg,
    rgba(240, 227, 203, 0.96) 0%,
    rgba(240, 227, 203, 0.72) 34%,
    rgba(240, 227, 203, 0.30) 68%,
    rgba(240, 227, 203, 0.00) 100%);
}

.so-hero-live__copy {
  z-index: 3;
}

@media (max-width: 1100px) {
  .so-hero-live::before {
    left: 10.2%;
    width: 9.2%;
  }

  .so-hero-live::after {
    left: 58.6%;
    width: 12.4%;
  }
}

/* Ícones mais artísticos */
.so-reason-card .so-reason-icon {
  position: relative;
  width: 4.9rem;
  height: 4.9rem;
  margin: 0 auto 1.05rem;
  overflow: hidden;
  border: 1.6px solid color-mix(in srgb, var(--so-earth) 68%, white);
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(198,117,60,0.06), rgba(255,255,255,0) 60%), rgba(255,250,241,0.82);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.so-reason-card .so-reason-icon::before {
  position: absolute;
  inset: 0;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: 69%;
}

.so-reason-icon--presenca::before { background-image: url("assets/images/icon-presenca-art.svg"); }
.so-reason-icon--vinculos::before { background-image: url("assets/images/icon-vinculos-art.svg"); }
.so-reason-icon--memorias::before { background-image: url("assets/images/icon-memorias-art.svg"); }
.so-reason-icon--respeito::before { background-image: url("assets/images/icon-respeito-art.svg"); }

@media (max-width: 782px) {
  .so-hero-live::before,
  .so-hero-live::after { display: none; }
  .so-hero-live__image--desktop { display: none; }
  .so-hero-live__image--mobile { display: block; }
  .so-hero-live__copy {
    position: static;
    width: auto;
    max-width: none;
    padding: 1.25rem 1.15rem 1.5rem;
    background: var(--so-paper-light);
  }
  .so-hero-live__copy h1 {
    font-size: clamp(2rem, 10vw, 2.85rem);
  }
  .so-hero-live__copy .so-hero-lead {
    max-width: 100%;
    font-size: 1rem;
  }
  .so-hero-live__copy .wp-block-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .so-hero-live__copy .wp-block-button,
  .so-hero-live__copy .wp-block-button__link {
    width: 100%;
  }
}

/* v1.5.1 — hero visual fiel, com conteúdo real e editável */
.so-hero-editable {
  position: relative;
  min-height: clamp(34rem, 43.7vw, 52rem) !important;
  overflow: hidden;
  border-bottom: 1px solid var(--so-line);
  background: var(--so-paper-light);
}

.so-hero-editable .wp-block-cover__image-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.so-hero-editable .wp-block-cover__background {
  display: none;
}

.so-hero-editable .wp-block-cover__inner-container,
.so-hero-editable__inner {
  position: relative;
  width: 100%;
  min-height: inherit;
  max-width: none !important;
  padding: 0 !important;
}

.so-hero-editable__copy {
  position: absolute;
  top: 16.5%;
  left: 13.4%;
  width: 39%;
  max-width: 34rem;
  margin: 0 !important;
  padding: 0;
}

.so-hero-editable__copy h1 {
  max-width: 12.4ch;
  margin: 0;
  color: var(--so-deep);
  font-size: clamp(2.65rem, 4.15vw, 4.45rem);
  line-height: 0.95;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.so-hero-editable__copy .so-hero-lead {
  max-width: 30rem;
  margin-top: 1.25rem;
  color: var(--so-deep);
  font-size: clamp(1rem, 1.18vw, 1.18rem);
  line-height: 1.52;
}

.so-hero-editable__copy .wp-block-buttons {
  gap: 0.85rem;
  margin-top: 1.45rem;
}

.so-hero-editable__copy .wp-block-button__link {
  min-height: 3.1rem;
  padding: 0.88rem 1.4rem;
  border-radius: 0.55rem;
  font-size: 1rem;
}

.so-hero-editable__copy .wp-block-button.is-style-outline .wp-block-button__link {
  background: rgba(255,250,241,0.42) !important;
  backdrop-filter: blur(2px);
}

/* Medalhões ilustrados da seção Por que nos reunimos */
.so-reason-card .so-reason-icon {
  position: relative;
  width: 5.35rem;
  height: 5.35rem;
  margin: 0 auto 1.05rem;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.so-reason-card .so-reason-icon::before {
  position: absolute;
  inset: 0;
  content: "";
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 5px 8px rgba(82,45,24,0.08));
}

.so-reason-icon--presenca::before { background-image: url("assets/images/icon-presenca-art.svg"); }
.so-reason-icon--vinculos::before { background-image: url("assets/images/icon-vinculos-art.svg"); }
.so-reason-icon--memorias::before { background-image: url("assets/images/icon-memorias-art.svg"); }
.so-reason-icon--respeito::before { background-image: url("assets/images/icon-respeito-art.svg"); }

.so-reason-card {
  border-color: rgba(118,73,42,0.18);
  background:
    linear-gradient(rgba(255,250,241,0.91), rgba(255,250,241,0.91)),
    url("assets/images/paper-texture.svg") center / 430px repeat;
}

@media (max-width: 782px) {
  .so-hero-editable {
    min-height: auto !important;
    padding: 0;
    background: var(--so-paper-light);
  }

  .so-hero-editable .wp-block-cover__image-background {
    content: url("assets/images/hero-background-mobile.webp");
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: 100vw;
    max-height: 32rem;
    object-fit: cover;
    object-position: center top;
  }

  .so-hero-editable .wp-block-cover__inner-container {
    padding-top: min(100vw, 32rem) !important;
  }

  .so-hero-editable__inner {
    min-height: 0;
  }

  .so-hero-editable__copy {
    position: static;
    width: auto;
    max-width: none;
    padding: 1.35rem 1.1rem 1.55rem;
    background: var(--so-paper-light);
  }

  .so-hero-editable__copy h1 {
    max-width: 11ch;
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .so-hero-editable__copy .so-hero-lead {
    max-width: 100%;
    font-size: 1rem;
  }

  .so-hero-editable__copy .wp-block-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .so-hero-editable__copy .wp-block-button,
  .so-hero-editable__copy .wp-block-button__link {
    width: 100%;
  }
}


/* v1.5.1 — mobile: texto editável sobre a imagem, com transparência */
@media (max-width: 782px) {
  .so-hero-editable {
    position: relative;
    min-height: clamp(42rem, 178vw, 52rem) !important;
    padding: 0 !important;
    isolation: isolate;
    background: #ead7b8;
  }

  .so-hero-editable::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    content: "";
    background: linear-gradient(
      180deg,
      rgba(246, 234, 215, 0.02) 0%,
      rgba(246, 234, 215, 0.08) 26%,
      rgba(246, 234, 215, 0.34) 43%,
      rgba(246, 234, 215, 0.72) 58%,
      rgba(246, 234, 215, 0.93) 72%,
      rgba(246, 234, 215, 0.98) 100%
    );
  }

  .so-hero-editable .wp-block-cover__image-background {
    content: url("assets/images/hero-background-mobile.webp");
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center top;
    filter: saturate(0.94) contrast(0.98);
  }

  .so-hero-editable .wp-block-cover__inner-container,
  .so-hero-editable__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: inherit;
    padding: 0 !important;
  }

  .so-hero-editable__copy {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    max-width: none;
    margin: 0 !important;
    padding: 1.15rem 1.1rem 1.35rem;
    background: transparent;
  }

  .so-hero-editable__copy h1 {
    max-width: 11.5ch;
    margin: 0;
    color: var(--so-deep);
    font-size: clamp(2rem, 9.2vw, 2.75rem);
    line-height: 0.96;
    letter-spacing: -0.048em;
    text-wrap: balance;
  }

  .so-hero-editable__copy .so-hero-lead {
    max-width: 34rem;
    margin-top: 0.85rem;
    color: var(--so-deep);
    font-size: 0.97rem;
    line-height: 1.46;
  }

  .so-hero-editable__copy .wp-block-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    width: 100%;
    margin-top: 1rem;
  }

  .so-hero-editable__copy .wp-block-button,
  .so-hero-editable__copy .wp-block-button__link {
    width: 100%;
  }

  .so-hero-editable__copy .wp-block-button__link {
    min-height: 2.8rem;
    padding: 0.72rem 0.75rem;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .so-hero-editable__copy .wp-block-button.is-style-outline .wp-block-button__link {
    background: rgba(255, 250, 241, 0.58) !important;
    border-color: rgba(143, 52, 23, 0.48) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
}

@media (max-width: 380px) {
  .so-hero-editable {
    min-height: 47rem !important;
  }

  .so-hero-editable__copy .wp-block-buttons {
    grid-template-columns: 1fr;
  }

  .so-hero-editable__copy .wp-block-button__link {
    font-size: 0.92rem;
  }
}

/* ==========================================================
   v1.5.1 — Home dinâmica e painel do tema
   ========================================================== */
.so-home-wide {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
}

/* Hero: imagem responsiva + texto real e editável */
.so-home-hero {
  position: relative;
  min-height: 34rem;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--so-line);
  background: var(--so-paper-light);
}

.so-home-hero__media,
.so-home-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}

.so-home-hero__media img {
  object-fit: cover;
  object-position: center center;
}

.so-home-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(243,234,219,.04) 0%,
    rgba(243,234,219,.08) 11%,
    rgba(243,234,219,.00) 24%,
    rgba(243,234,219,.00) 58%,
    rgba(243,234,219,.00) 100%);
}

.so-home-hero__copy {
  position: absolute;
  z-index: 2;
  top: 17.5%;
  left: max(2rem, calc((100vw - 1200px) / 2 + 2rem));
  width: min(42vw, 35rem);
  color: var(--so-deep);
}

.so-home-hero__copy h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--so-deep);
  font-family: var(--wp--preset--font-family--editorial, ui-serif, Georgia, serif);
  font-size: var(--so-panel-desktop-title, clamp(2.85rem, 4.35vw, 4.75rem));
  font-weight: 650;
  line-height: .94;
  letter-spacing: -.052em;
  text-wrap: balance;
}

.so-home-hero__copy > p {
  max-width: 31rem;
  margin: 1.3rem 0 0;
  color: var(--so-deep);
  font-size: clamp(.98rem, 1.15vw, 1.14rem);
  line-height: 1.55;
}

.so-home-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.45rem;
}

.so-home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .82rem 1.35rem;
  border: 1px solid var(--so-earth);
  border-radius: .55rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.so-home-button--primary {
  background: var(--so-earth);
  color: var(--so-paper-light) !important;
  box-shadow: 0 8px 20px rgba(143,52,23,.18);
}

.so-home-button--primary:hover { background: var(--so-deep); border-color: var(--so-deep); }

.so-home-button--secondary {
  background: rgba(255,250,241,.28);
  color: var(--so-earth) !important;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.so-home-button--secondary:hover { background: rgba(255,250,241,.75); color: var(--so-deep) !important; }

/* Quem somos + dado */
.so-about-grid-dynamic {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.so-about-grid-dynamic .so-about-copy p {
  font-size: clamp(.98rem, 1.15vw, 1.08rem);
  line-height: 1.72;
}

.so-data-card__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.2rem);
}

/* Motivações */
.so-reason-grid-dynamic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.so-reason-grid-dynamic .so-reason-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  text-align: center;
}

.so-reason-grid-dynamic .so-reason-card h3 {
  margin: 0 0 .75rem;
}

.so-reason-grid-dynamic .so-reason-card p:last-child {
  margin-top: auto;
}

/* Artigos */
.so-news-header-dynamic {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.so-news-header-dynamic .so-home-section-title { margin-bottom: 0; }
.so-news-header-dynamic > a { font-weight: 650; }

/* Chamada final */
.so-cta-wrap { padding-inline: 1rem; }
.so-cta.so-home-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}

.so-cta-dynamic-copy h2 { margin: 0; }
.so-cta-dynamic-copy p { margin-bottom: 0; }
.so-cta.so-home-wide > .wp-element-button { position: relative; z-index: 2; color: var(--so-paper-light) !important; text-decoration: none; }

/* Rodapé dinâmico */
.so-footer-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  font-family: var(--wp--preset--font-family--editorial, Georgia, serif);
  font-size: 1.35rem;
  line-height: 1;
}

.so-footer-brand .custom-logo-link { display: inline-flex; }
.so-footer-brand .custom-logo { width: 3.1rem; max-height: 3.1rem; object-fit: contain; }
.so-footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.so-footer-links a, .so-footer-socials a { color: #f7ead7; text-decoration: none; }
.so-footer-links a:hover, .so-footer-socials a:hover { color: #e8a562; }
.so-footer-socials { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .9rem; }
.so-footer-small { font-size: .82rem; opacity: .78; }
.so-footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.so-footer-bottom-inner p { margin: 0; }

/* Logo completa: esconde o título duplicado no cabeçalho */
.so-logo-contains-name .so-brand .wp-block-site-title { display: none; }
.so-logo-contains-name .so-brand .wp-block-site-logo img { width: auto; max-width: 14rem; height: 3.5rem; }

/* Tablet */
@media (max-width: 1100px) and (min-width: 783px) {
  .so-home-hero { min-height: 31rem; }
  .so-home-hero__copy { top: 15%; left: 6.2%; width: 45%; }
  .so-home-hero__copy h1 { font-size: clamp(2.35rem, 4.5vw, 3.75rem); }
  .so-home-hero__copy > p { max-width: 25rem; font-size: .98rem; }
  .so-reason-grid-dynamic { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Celular e tablet estreito */
@media (max-width: 782px) {
  .so-home-wide { width: min(100% - 1.5rem, 42rem); }

  .so-home-hero {
    min-height: var(--so-panel-mobile-height, clamp(43rem, 172vw, 52rem));
  }

  .so-home-hero__media img {
    object-position: center top;
  }

  .so-home-hero__overlay {
    background: linear-gradient(180deg,
      rgba(255,250,241,.01) 0%,
      rgba(255,250,241,.08) 26%,
      rgba(255,250,241,.38) 45%,
      rgba(255,250,241,.76) 62%,
      rgba(255,250,241,.96) 80%,
      rgba(255,250,241,.99) 100%);
  }

  .so-home-hero__copy {
    top: auto;
    right: 1rem;
    bottom: 1.15rem;
    left: 1rem;
    width: auto;
  }

  .so-home-hero__copy h1 {
    max-width: 11.5ch;
    font-size: var(--so-panel-mobile-title, clamp(2.05rem, 9.1vw, 2.8rem));
    line-height: .96;
  }

  .so-home-hero__copy > p {
    max-width: 34rem;
    margin-top: .85rem;
    font-size: .97rem;
    line-height: 1.47;
  }

  .so-home-hero__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
    margin-top: 1rem;
  }

  .so-home-button { width: 100%; min-height: 2.8rem; padding: .7rem .65rem; font-size: .88rem; white-space: nowrap; }
  .so-home-button--secondary { background: rgba(255,250,241,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

  .so-about-grid-dynamic,
  .so-data-card__grid,
  .so-cta.so-home-wide {
    grid-template-columns: 1fr;
  }

  .so-reason-grid-dynamic { grid-template-columns: 1fr; }
  .so-news-header-dynamic { align-items: flex-start; flex-direction: column; }
  .so-cta.so-home-wide > .wp-element-button { width: 100%; text-align: center; }
  .so-footer-bottom-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .so-home-hero__buttons { grid-template-columns: 1fr; }
  .so-home-button { font-size: .92rem; }
}

/* Refinos responsivos validados em 360, 390, 430, 768, 844, 1024 e 1366 px */
@media (max-width: 782px) {
  .so-reason-grid-dynamic .so-reason-card {
    min-height: 0;
    padding: 1.25rem 1.1rem;
  }

  .so-reason-grid-dynamic .so-reason-icon {
    width: 4.2rem;
    height: 4.2rem;
    margin-bottom: .8rem;
  }

  .so-reason-grid-dynamic .so-reason-card p:last-child {
    margin-top: 0;
  }
}

@media (min-width: 600px) and (max-width: 782px) {
  .so-reason-grid-dynamic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* v1.5.1 — respiro lateral do título do hero no celular */
@media (max-width: 782px) {
  .so-home-hero__copy h1 {
    padding-inline-start: .38rem;
  }
}


/* v1.5.1 — aplicação completa dos refinamentos de notebook e mobile */
@media (min-width: 1101px) {
  .so-home-hero {
    min-height: 32rem;
  }

  .so-home-hero__copy {
    top: 13.8%;
    width: min(45vw, 38rem);
  }

  .so-home-hero__copy h1 {
    max-width: 13.5ch;
  }

  .so-home-hero__copy > p {
    max-width: 33rem;
    margin-top: 1rem;
  }

  .so-home-hero__buttons {
    margin-top: 1rem;
  }
}

@media (max-width: 782px) {
  .so-site-header .so-header-inner {
    min-height: 3.9rem;
    padding-block: .35rem;
  }

  .so-logo-contains-name .so-brand .wp-block-site-logo img {
    max-width: 12.5rem;
    height: 3rem;
  }

  .so-brand .wp-block-site-logo img {
    width: 2.8rem;
    height: 2.8rem;
  }

  .so-home-hero__copy {
    right: 1rem;
    bottom: .85rem;
    left: 1rem;
  }

  .so-home-hero__copy h1 {
    max-width: 90%;
    padding-inline-start: .42rem;
    line-height: .98;
  }

  .so-home-hero__copy > p {
    margin-top: .8rem;
    font-size: .96rem;
    line-height: 1.46;
  }

  .so-home-hero__buttons {
    gap: .55rem;
    margin-top: .85rem;
  }

  .so-home-button {
    min-height: 3.35rem;
    padding: .82rem 1rem;
    font-size: 1rem;
  }
}

@media (max-width: 390px) {
  .so-home-hero__copy h1 {
    max-width: 94%;
  }

  .so-home-button {
    min-height: 3.2rem;
    font-size: .96rem;
  }
}


/* ==========================================================
   v1.5.1 — legibilidade e respiro do hero
   ========================================================== */

/* Notebook e desktop: margens internas reais em todos os lados. */
@media (min-width: 783px) {
  .so-home-hero {
    min-height: clamp(35.5rem, 43vw, 40rem);
  }

  .so-home-hero__copy {
    top: 11.5%;
    left: max(3rem, calc((100vw - 1200px) / 2 + 3rem));
    width: min(43vw, 36rem);
    max-width: calc(100% - 6rem);
    padding-block: .75rem 1rem;
    box-sizing: border-box;
  }

  .so-home-hero__copy h1 {
    max-width: 13.2ch;
  }

  .so-home-hero__copy > p {
    margin-top: 1.05rem;
  }

  .so-home-hero__buttons {
    gap: .8rem;
    margin-top: 1.2rem;
    padding-bottom: .35rem;
  }
}

/* Tablet em paisagem/notebook pequeno. */
@media (min-width: 783px) and (max-width: 1100px) {
  .so-home-hero {
    min-height: 34.5rem;
  }

  .so-home-hero__copy {
    top: 10.5%;
    left: 3rem;
    width: 46%;
    max-width: 31rem;
  }
}

/* Celular: degradê mais protetor, caixa dentro da tela e botões sem estouro. */
@media (max-width: 782px) {
  .so-home-hero {
    min-height: var(--so-panel-mobile-height, clamp(43rem, 172vw, 52rem));
  }

  .so-home-hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(255, 250, 241, .03) 0%,
      rgba(255, 250, 241, .12) 24%,
      rgba(255, 250, 241, .58) 41%,
      rgba(255, 250, 241, .86) 57%,
      rgba(255, 250, 241, .97) 76%,
      rgba(255, 250, 241, 1) 100%
    ) !important;
  }

  .so-home-hero__copy {
    right: 1.15rem;
    bottom: 1.1rem;
    left: 1.15rem;
    width: auto;
    max-width: calc(100% - 2.3rem);
    padding: 1rem .35rem .25rem;
    box-sizing: border-box;
  }

  .so-home-hero__copy::before {
    position: absolute;
    z-index: -1;
    inset: -.7rem -.55rem -.45rem;
    border-radius: 1rem;
    content: "";
    background: linear-gradient(
      180deg,
      rgba(255, 250, 241, .20),
      rgba(255, 250, 241, .56) 38%,
      rgba(255, 250, 241, .82) 100%
    );
    -webkit-backdrop-filter: blur(1.5px);
    backdrop-filter: blur(1.5px);
  }

  .so-home-hero__copy h1 {
    max-width: 10.5ch;
    padding-inline-start: .2rem;
    color: var(--so-deep);
    font-size: var(--so-panel-mobile-title, clamp(1.9rem, 8.1vw, 2.48rem));
    line-height: .98;
    text-shadow: 0 1px 0 rgba(255,250,241,.65);
  }

  .so-home-hero__copy > p {
    max-width: none;
    margin-top: .8rem;
    color: var(--so-deep);
    font-size: .96rem;
    line-height: 1.48;
  }

  .so-home-hero__buttons {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .65rem;
    width: 100%;
    max-width: 100%;
    margin-top: .9rem;
    box-sizing: border-box;
  }

  .so-home-button {
    width: 100%;
    min-width: 0;
    min-height: 3.15rem;
    padding: .78rem .65rem;
    box-sizing: border-box;
    font-size: .92rem;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .so-home-hero__copy {
    right: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
  }
}

@media (max-width: 390px) {
  .so-home-hero__buttons {
    grid-template-columns: 1fr;
  }

  .so-home-button {
    min-height: 3rem;
  }
}


/* ==========================================================
   v1.5.1 — rodapé compacto e controle mobile do hero
   ========================================================== */
.so-site-footer {
  min-height: 0 !important;
  padding-top: clamp(2.5rem, 4vw, 3.75rem) !important;
}

.so-site-footer .so-footer-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(10rem, .65fr) minmax(0, 1fr) !important;
  align-items: start !important;
  align-content: start !important;
  gap: clamp(2rem, 5vw, 4.5rem) !important;
  width: min(100% - 3rem, 1120px) !important;
  max-width: 1120px !important;
  min-height: 0 !important;
  margin-inline: auto !important;
  padding: 0 0 2.25rem !important;
}

.so-site-footer .so-footer-grid > * {
  min-width: 0;
  min-height: 0;
  margin: 0 !important;
  padding: 0 !important;
}

.so-site-footer .so-footer-grid p {
  max-width: 32rem;
  margin: 0 0 .8rem !important;
  font-size: .9rem;
  line-height: 1.58;
}

.so-site-footer .so-footer-title {
  margin: 0 0 .85rem !important;
  font-size: 1.15rem;
  line-height: 1.2;
}

.so-site-footer .so-footer-links {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: .5rem !important;
  width: auto !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

.so-site-footer .so-footer-links a {
  display: inline-block !important;
  width: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: .08rem 0 !important;
  font-size: .9rem !important;
  line-height: 1.45 !important;
}

.so-site-footer .so-footer-brand {
  margin: 0 0 1rem !important;
}

.so-site-footer .so-footer-bottom {
  padding-block: 1rem !important;
}

.so-site-footer .so-footer-bottom-inner {
  width: min(100% - 3rem, 1120px) !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
}

@media (max-width: 900px) and (min-width: 783px) {
  .so-site-footer .so-footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(8rem, .65fr) minmax(0, 1fr) !important;
    gap: 1.5rem !important;
    width: min(100% - 2.5rem, 1120px) !important;
  }
}

@media (max-width: 782px) {
  .so-site-footer .so-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
    width: min(100% - 2rem, 42rem) !important;
    padding-bottom: 1.75rem !important;
  }

  .so-site-footer .so-footer-bottom-inner {
    width: min(100% - 2rem, 42rem) !important;
  }
}

/* ==========================================================
   v1.5.1 — favicon robusto, rodapé compacto e ilustrações orgânicas
   ========================================================== */
.so-site-footer .so-footer-links {
  display: grid !important;
  grid-template-columns: 1fr !important;
  row-gap: .16rem !important;
  column-gap: 0 !important;
}

.so-site-footer .so-footer-links a {
  margin: 0 !important;
  padding: .02rem 0 !important;
  line-height: 1.28 !important;
}

.so-reason-grid-dynamic .so-reason-card {
  position: relative;
  overflow: hidden;
  padding-top: 1.35rem;
  background:
    linear-gradient(180deg, rgba(210,154,83,.055), rgba(255,250,241,0) 38%),
    rgba(255,250,241,.84);
}

.so-reason-grid-dynamic .so-reason-card::before {
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(143,52,23,.58), rgba(101,112,61,.48), transparent);
}

.so-reason-art {
  display: grid;
  width: min(100%, 9.6rem);
  min-height: 6.25rem;
  margin: 0 auto .7rem;
  place-items: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.so-reason-art--presenca { background-image: url("assets/images/reason-presenca.webp"); }
.so-reason-art--vinculos { background-image: url("assets/images/reason-vinculos.webp"); }
.so-reason-art--memorias { background-image: url("assets/images/reason-memorias.webp"); }
.so-reason-art--respeito { background-image: url("assets/images/reason-respeito.webp"); }

.so-reason-art:has(.so-reason-art__custom) {
  background-image: none !important;
}

.so-reason-art__custom {
  display: block;
  width: 100%;
  max-width: 9.6rem;
  max-height: 6.25rem;
  object-fit: contain;
}

.so-reason-grid-dynamic .so-reason-card h3 {
  margin-top: .15rem;
}

@media (max-width: 782px) {
  .so-site-footer .so-footer-links {
    row-gap: .12rem !important;
  }

  .so-reason-art {
    width: 8.8rem;
    min-height: 5.75rem;
  }
}


/* ==========================================================
   v1.5.1 — correções de artigo, contato e telas estreitas
   ========================================================== */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

:where(img, video, iframe, canvas, svg) {
  max-width: 100%;
}

.so-page-main,
.so-post-main,
.so-post-content,
.so-page-main .entry-content,
.so-news-grid,
.so-news-card {
  box-sizing: border-box;
  min-width: 0;
}

.so-post-main {
  width: min(100% - 2rem, 1120px);
  margin-inline: auto;
}

.so-post-content {
  width: min(100%, 760px);
  margin-inline: auto;
}

.so-post-content > *,
.so-page-main .entry-content > * {
  max-width: 100%;
  box-sizing: border-box;
}

.so-post-content :where(a, code, pre),
.so-page-main :where(a, code, pre) {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.so-post-content :where(table, pre) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.so-post-content .alignwide,
.so-post-content .alignfull,
.so-page-main .entry-content .alignwide,
.so-page-main .entry-content .alignfull {
  max-width: 100% !important;
}

/* Botões e e-mail da página de contato nunca ultrapassam a viewport. */
.so-page-main .wp-block-buttons,
.so-page-main .wp-block-button {
  max-width: 100%;
}

.so-page-main .wp-block-button__link {
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
}

/* Cartões de artigos alinhados e estáveis. */
.so-news-grid {
  align-items: stretch;
}

.so-news-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.so-news-card-image,
.so-news-card-image img {
  width: 100%;
}

@media (max-width: 782px) {
  .so-page-hero {
    padding: 2.4rem 1rem 2.1rem !important;
  }

  .so-page-hero > * {
    width: min(100%, 42rem) !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  .so-page-hero h1,
  .so-archive-title {
    max-width: 100% !important;
    font-size: clamp(2.1rem, 10vw, 3.15rem) !important;
    line-height: .98 !important;
    overflow-wrap: anywhere;
  }

  .so-post-main,
  .so-page-main {
    width: 100% !important;
    max-width: 100% !important;
    padding: 2rem 1rem 3rem !important;
    margin: 0 !important;
  }

  .so-post-featured,
  .so-post-content,
  .so-page-main .entry-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  .so-post-featured {
    margin-bottom: 1.5rem !important;
  }

  .so-post-featured img {
    width: 100%;
    height: auto;
    border-radius: .7rem;
  }

  .so-post-content .alignwide,
  .so-post-content .alignfull,
  .so-page-main .entry-content .alignwide,
  .so-page-main .entry-content .alignfull {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .so-news-grid {
    width: min(100% - 1.5rem, 42rem) !important;
    margin-inline: auto !important;
    grid-template-columns: 1fr !important;
  }

  .so-news-card-body {
    padding: 1rem !important;
  }

  .so-page-main .wp-block-buttons,
  .so-page-main .wp-block-button,
  .so-page-main .wp-block-button__link {
    width: 100% !important;
  }

  .so-page-main .wp-block-button__link {
    min-height: 3rem;
    padding: .8rem .75rem !important;
    font-size: .96rem;
    line-height: 1.25;
  }

  .so-page-main .wp-block-button__link[href^="mailto:"] {
    font-size: clamp(.82rem, 3.8vw, .96rem);
  }
}


.so-article-header-inner {
  width: min(100% - 2rem, 1120px);
  max-width: 1120px;
  margin-inline: auto;
}

.so-article-header-inner > * {
  max-width: 760px;
  margin-left: 0;
  margin-right: 0;
}

.so-post-navigation {
  width: min(100%, 760px);
  margin-inline: auto;
}

.so-post-navigation a {
  overflow-wrap: anywhere;
}

@media (max-width: 782px) {
  .so-article-header-inner {
    width: 100% !important;
  }

  .so-article-header-inner > * {
    max-width: 100% !important;
  }

  .so-post-navigation {
    width: 100% !important;
  }
}


/* ==========================================================
   v1.5.2 — centralização dos artigos e CTA dentro da viewport
   ========================================================== */

/* A grade já está dentro de .so-home-wide. Não deve receber uma
   segunda largura nem os deslocamentos globais de .alignwide. */
.so-news-section .so-home-wide,
.so-news-header-dynamic,
.so-news-grid {
  box-sizing: border-box;
  min-width: 0;
}

.so-news-section .so-news-grid {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

.so-news-section .so-news-card {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
  box-sizing: border-box;
}

/* O padding do invólucro entra no cálculo da largura. */
.so-cta-wrap {
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(1rem, 3vw, 2rem) !important;
  box-sizing: border-box;
  overflow: hidden;
}

.so-cta.so-home-wide {
  width: min(100%, 1120px) !important;
  max-width: 1120px !important;
  min-width: 0;
  margin-inline: auto !important;
  box-sizing: border-box;
  overflow: hidden;
}

.so-cta-dynamic-copy,
.so-cta-dynamic-copy h2,
.so-cta-dynamic-copy p,
.so-cta.so-home-wide > .wp-element-button {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.so-cta.so-home-wide > .wp-element-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  line-height: 1.25;
}

@media (max-width: 782px) {
  .so-news-section .so-home-wide {
    width: calc(100% - 2rem) !important;
    max-width: calc(100% - 2rem) !important;
    margin-inline: auto !important;
  }

  .so-news-header-dynamic,
  .so-news-grid {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
  }

  .so-news-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
  }

  .so-news-card-image,
  .so-news-card-image img,
  .so-news-card-body {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .so-cta-wrap {
    padding-inline: 1rem !important;
  }

  .so-cta.so-home-wide {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 1.5rem 1.15rem !important;
    gap: 1.15rem !important;
  }

  .so-cta-dynamic-copy h2 {
    max-width: 100% !important;
    font-size: clamp(1.8rem, 8vw, 2.45rem) !important;
    line-height: 1.02 !important;
  }

  .so-cta-dynamic-copy p {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    font-size: 1rem !important;
    line-height: 1.55;
  }

  .so-cta.so-home-wide > .wp-element-button {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 3.25rem;
    padding: .85rem 1rem !important;
    margin: 0 !important;
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .so-news-section .so-home-wide {
    width: calc(100% - 1.5rem) !important;
    max-width: calc(100% - 1.5rem) !important;
  }

  .so-cta-wrap {
    padding-inline: .75rem !important;
  }

  .so-cta.so-home-wide {
    padding-inline: 1rem !important;
  }
}
