@font-face {
  font-family: "Alfa Slab One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/alfa-slab-one.ttf") format("truetype");
}

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/bebas-neue.ttf") format("truetype");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lora-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/lora-semibold.ttf") format("truetype");
}

@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lora-italic.ttf") format("truetype");
}

:root {
  --ink: #143331;
  --muted-ink: #526967;
  --paper: #fffef8;
  --soft: #f4f3ed;
  --line: #d8ddd6;
  --green: #2f6f6b;
  --green-dark: #12312f;
  --green-deep: #1f5552;
  --gold: #ffdb06;
  --gold-ink: #16423f;
  --clay: #663333;
  --red: #ff171d;
  --blue: #0033ff;
  --cyan: #0cbdcd;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(18, 49, 47, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(255, 254, 248, 0.96);
  border-bottom: 1px solid rgba(216, 221, 214, 0.92);
  backdrop-filter: blur(16px);
  transition:
    min-height 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.site-header.is-scrolled {
  min-height: 64px;
  background: rgba(255, 254, 248, 0.98);
  box-shadow: 0 12px 34px rgba(18, 49, 47, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 54px;
  height: 58px;
  object-fit: contain;
  background: transparent;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
}

.brand small {
  color: var(--muted-ink);
  font-size: 0.78rem;
}

.main-menu {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.7vw, 22px);
  color: var(--muted-ink);
  font-size: 0.95rem;
  font-weight: 800;
}

.main-menu a,
.site-footer a {
  text-decoration: none;
}

.main-menu a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--green);
}

.header-cta,
.button,
.filter {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.header-cta {
  padding: 0 16px;
  background: var(--green);
  color: var(--white);
  font-size: 0.9rem;
}

.header-cta,
.button,
.filter,
.project-card,
.news-grid article,
.gallery figure,
.event-grid article,
.published-record,
.quick-access a,
.contact-option {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease;
}

.header-cta:hover,
.button:hover,
.filter:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(20, 36, 34, 0.14);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: clamp(560px, 68vh, 680px);
  display: grid;
  align-items: end;
  padding: 64px clamp(20px, 5vw, 72px) 48px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 45, 43, 0.91) 0%, rgba(18, 49, 47, 0.72) 38%, rgba(18, 49, 47, 0.22) 68%, rgba(18, 49, 47, 0.06) 100%),
    linear-gradient(0deg, rgba(13, 45, 43, 0.2), transparent 48%),
    url("assets/hero-blocao-domingao.webp") center 44% / cover;
  transform: scale(1.01);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  max-width: 720px;
  color: var(--white);
  animation: hero-copy-in 0.7s ease both;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-ink);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 480px;
  font-size: clamp(2rem, 4.4vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: 1.2rem;
}

.hero-subtitle {
  margin: 18px 0 0;
  color: var(--white);
  max-width: 560px;
  color: #fff28d;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 700;
}

.hero-content > p:last-of-type {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  padding: 0 20px;
}

.button.primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--white);
  background: rgba(18, 49, 47, 0.34);
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.section > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.muted {
  background: var(--soft);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}

.prose {
  color: var(--muted-ink);
  font-size: 1.06rem;
}

.text-link,
.project-card a,
.project-card time,
.quick-access a,
.table-wrap a {
  color: var(--green);
  font-weight: 800;
}

.hero-content .eyebrow,
.timeline-section .eyebrow {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--gold-ink);
}

.project-card time {
  display: block;
  margin: 14px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
  text-align: center;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted-ink);
  font-size: 1.05rem;
}

.area-grid,
.quick-access,
.news-grid,
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.area-grid article,
.quick-access article,
.news-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--cyan);
  border-radius: 8px;
  background: var(--white);
}

.area-grid article:nth-child(2),
.quick-access article:nth-child(2),
.news-grid article:nth-child(2) {
  border-top-color: var(--gold);
}

.area-grid article:nth-child(3),
.quick-access article:nth-child(3),
.news-grid article:nth-child(3) {
  border-top-color: var(--red);
}

.area-grid article:nth-child(4),
.quick-access article:nth-child(4),
.news-grid article:nth-child(4) {
  border-top-color: var(--blue);
}

.area-grid article:nth-child(5),
.quick-access article:nth-child(5),
.news-grid article:nth-child(5) {
  border-top-color: var(--green);
}

.area-grid article span {
  display: inline-flex;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: transparent;
  color: rgba(20, 51, 49, 0.1);
  font-size: 2.7rem;
  font-weight: 950;
  line-height: 0.9;
}

.area-grid p,
.quick-access p,
.project-card p,
.news-grid p,
.feature-list p,
.contact p,
.site-footer p {
  color: var(--muted-ink);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.filter {
  padding: 0 14px;
  background: var(--white);
  border-color: var(--line);
  color: var(--muted-ink);
}

.filter.is-active {
  background: var(--green-deep);
  color: var(--white);
  box-shadow: inset 0 -4px 0 var(--gold);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(18, 49, 47, 0.08);
}

.project-card:nth-child(2n) {
  border-top-color: var(--gold);
}

.project-card:nth-child(3n) {
  border-top-color: var(--red);
}

.project-card:hover,
.news-grid article:hover,
.gallery figure:hover,
.event-grid article:hover,
.published-record:hover,
.quick-access a:hover,
.contact-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(18, 49, 47, 0.12);
}

.project-card[hidden],
.event-card[hidden] {
  display: none;
}

.project-card img,
.news-grid img,
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.project-card:hover img,
.news-grid article:hover img,
.gallery figure:hover img {
  transform: scale(1.035);
}

.project-card > div {
  padding: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-deep);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
}

dl {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

dt {
  color: var(--muted-ink);
}

dd {
  margin: 0;
  font-weight: 800;
}

.timeline-section {
  background:
    linear-gradient(135deg, rgba(12, 189, 205, 0.07), transparent 34%),
    var(--green-dark);
  color: var(--white);
}

.timeline-section .section-heading p:not(.eyebrow),
.timeline-section span {
  color: rgba(255, 255, 255, 0.76);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gold);
}

.stats article {
  padding: 24px;
  border-right: 1px solid rgba(18, 49, 47, 0.14);
  color: var(--green-deep);
}

.stats article:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--green-deep);
}

.stats span {
  color: var(--green-deep);
  font-weight: 850;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.timeline {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.timeline time {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 900;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature-list article {
  padding: 26px;
  border-left: 5px solid var(--red);
  background: var(--white);
}

.feature-list article:nth-child(2n) {
  border-left-color: var(--gold);
}

.feature-list article:nth-child(3n) {
  border-left-color: var(--cyan);
}

.transparency {
  background: var(--soft);
}

.table-wrap {
  margin-top: 28px;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
}

th,
td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(51, 102, 102, 0.09);
}

.news-grid article {
  padding: 0;
  overflow: hidden;
}

.news-grid article > :not(img) {
  margin-left: 22px;
  margin-right: 22px;
}

.news-grid h3 {
  margin-top: 0;
}

.news-grid time {
  display: block;
  margin: 0 22px 22px;
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.gallery figure {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

.gallery img {
  height: 100%;
  min-height: 250px;
}

.gallery figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px;
  border-radius: 6px;
  background: rgba(20, 36, 34, 0.76);
  color: var(--white);
  font-weight: 800;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 80px);
}

.contact-note {
  max-width: 620px;
  padding: 16px;
  border-left: 4px solid var(--red);
  background: var(--soft);
}

.contact-options {
  display: grid;
  gap: 14px;
}

.contact-option {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-option-featured {
  border-color: rgba(51, 102, 102, 0.45);
  box-shadow: var(--shadow);
}

.contact-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-deep), var(--cyan));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
}

.contact-option h3,
.contact-option p {
  margin: 0;
}

.contact-option p {
  margin-top: 6px;
}

.contact-pending {
  display: inline-block;
  margin-top: 10px;
  color: var(--green);
  font-weight: 800;
}

.contact-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--green);
  font-weight: 800;
}

.published-records {
  margin-top: 34px;
}

.published-records-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.public-events {
  margin-top: 64px;
}

.compact-heading {
  margin-bottom: 24px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.event-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.event-grid time,
.event-grid a {
  display: block;
  margin-top: 12px;
  color: var(--green);
  font-weight: 800;
}

.gallery figure > a {
  display: block;
  height: 100%;
}

.content-page {
  max-width: 1120px;
  min-height: 70vh;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 42px;
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.content-article {
  max-width: 860px;
}

.content-article h1 {
  color: var(--ink);
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.content-summary {
  color: var(--muted-ink);
  font-size: 1.2rem;
}

.content-date {
  margin: 14px 0 0;
  color: var(--green);
  font-weight: 800;
}

.content-cover {
  width: 100%;
  max-height: 560px;
  margin: 32px 0;
  object-fit: cover;
  border-radius: 8px;
}

.content-body {
  font-size: 1.08rem;
}

.content-facts {
  margin: 30px 0;
}

.content-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.content-gallery figure {
  margin: 0;
}

.content-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.content-gallery figcaption {
  margin-top: 8px;
  color: var(--muted-ink);
  font-size: 0.9rem;
}

.published-record {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.published-record p {
  color: var(--muted-ink);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 42px clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(255, 219, 6, 0.08), transparent 28%),
    linear-gradient(45deg, transparent 62%, rgba(12, 189, 205, 0.12)),
    var(--green-dark);
  color: var(--white);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-logo {
  width: 72px;
  height: 78px;
  object-fit: contain;
  margin-bottom: 10px;
  background: transparent;
}

.reveal-ready {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.07) translate3d(-1.2%, 0, 0); }
}

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

  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}

/* Public content archives */
.theme-alma .archive-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(94px, 11vw, 150px) clamp(24px, 5vw, 72px) clamp(68px, 8vw, 104px);
  border-bottom: 8px solid var(--gold);
  background:
    linear-gradient(105deg, rgba(255, 250, 240, 0.98), rgba(255, 250, 240, 0.88) 62%, rgba(255, 250, 240, 0.2)),
    url("assets/hero-blocao-domingao.webp") center 46% / cover;
}

.theme-alma .archive-hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: min(24vw, 320px);
  height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 24px,
      rgba(6, 182, 212, 0.13) 24px 36px,
      transparent 36px 54px,
      rgba(251, 191, 36, 0.16) 54px 68px
    );
  content: "";
  pointer-events: none;
}

.theme-alma .archive-hero > div {
  position: relative;
  z-index: 1;
  max-width: 950px;
}

.theme-alma .archive-hero .eyebrow {
  color: var(--red);
  font-size: 1.1rem;
}

.theme-alma .archive-hero h1 {
  max-width: 880px;
  color: var(--green);
  font-size: clamp(4.5rem, 10vw, 8.5rem);
  line-height: 0.9;
  text-shadow: 5px 5px 0 rgba(251, 191, 36, 0.42);
}

.theme-alma .archive-hero p:last-child {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted-ink);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
}

.theme-alma .archive-marquee {
  border-top: 0;
}

.theme-alma .archive-shell {
  max-width: 1220px;
  margin: 0 auto;
  padding: clamp(72px, 8vw, 108px) clamp(24px, 4vw, 52px);
}

.theme-alma .archive-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  border: 3px solid var(--green);
  background: #f7edd7;
  box-shadow: 12px 12px 0 var(--gold);
}

.theme-alma .archive-filters label {
  display: grid;
  gap: 7px;
  color: var(--green);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.theme-alma .archive-filters input,
.theme-alma .archive-filters select {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 2px solid var(--green);
  border-radius: 0;
  background: var(--paper);
  color: var(--green);
  font-family: Lora, Georgia, serif;
  font-size: 0.95rem;
}

.theme-alma .archive-filter-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 12px;
}

.theme-alma .archive-filter-actions .button {
  min-height: 48px;
  font-size: 1rem;
}

.theme-alma .archive-filter-actions .button.secondary {
  background: var(--paper);
}

.theme-alma .archive-results-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 62px 0 28px;
  padding-bottom: 12px;
  border-bottom: 4px solid var(--cyan);
  color: var(--muted-ink);
}

.theme-alma .archive-results-heading p {
  margin: 0;
}

.theme-alma .archive-results-heading strong {
  color: var(--green);
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: 1.35rem;
}

.theme-alma .archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 30px;
}

.theme-alma .archive-card {
  position: relative;
  isolation: isolate;
}

.theme-alma .archive-card::before {
  position: absolute;
  top: 10px;
  right: -9px;
  z-index: -1;
  width: 80%;
  height: 260px;
  background: var(--gold);
  content: "";
  transform: rotate(1.4deg);
}

.theme-alma .archive-card:nth-child(3n + 2)::before {
  background: var(--cyan);
  transform: rotate(-1.4deg);
}

.theme-alma .archive-card:nth-child(3n)::before {
  background: var(--red);
}

.theme-alma .archive-card-media {
  display: block;
  height: 260px;
  overflow: hidden;
  border: 3px solid var(--green);
  background: var(--soft);
}

.theme-alma .archive-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.theme-alma .archive-card:hover .archive-card-media img {
  transform: scale(1.04);
}

.theme-alma .archive-card-body {
  padding-top: 22px;
}

.theme-alma .archive-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 14px;
}

.theme-alma .archive-card-meta time {
  color: var(--muted-ink);
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.12em;
}

.theme-alma .archive-card h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.45rem);
  line-height: 1.05;
}

.theme-alma .archive-card h2 a {
  text-decoration: none;
}

.theme-alma .archive-card h2 a:hover {
  color: var(--red);
}

.theme-alma .archive-card-body > p {
  color: var(--muted-ink);
}

.theme-alma .archive-location,
.theme-alma .archive-status {
  margin: 8px 0;
  color: var(--green) !important;
  font-weight: 600;
}

.theme-alma .archive-empty {
  max-width: 820px;
  padding: 58px;
  border: 3px solid var(--green);
  background: var(--soft);
  box-shadow: 14px 14px 0 var(--cyan);
}

.theme-alma .archive-empty h2 {
  margin-bottom: 30px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.theme-alma .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 72px;
}

.theme-alma .pagination a {
  display: inline-flex;
  min-width: 48px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 2px solid var(--green);
  color: var(--green);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.theme-alma .pagination a:hover,
.theme-alma .pagination a[aria-current="page"] {
  background: var(--green);
  color: var(--paper);
}

@media (max-width: 1040px) {
  .theme-alma .archive-filters,
  .theme-alma .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .theme-alma .archive-hero {
    padding-top: 84px;
  }

  .theme-alma .archive-hero h1 {
    max-width: 100%;
    font-size: clamp(3rem, 15vw, 4.5rem);
    text-shadow: 3px 3px 0 rgba(251, 191, 36, 0.42);
    overflow-wrap: normal;
    word-break: normal;
  }

  .theme-alma .archive-filters,
  .theme-alma .archive-grid {
    grid-template-columns: 1fr;
  }

  .theme-alma .archive-filters {
    padding: 20px;
    box-shadow: 8px 8px 0 var(--gold);
  }

  .theme-alma .archive-filter-actions {
    flex-direction: column;
  }

  .theme-alma .archive-results-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .theme-alma .archive-card::before {
    height: 230px;
  }

  .theme-alma .archive-card-media {
    height: 230px;
  }
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: inline-block;
    justify-self: end;
  }

  .main-menu {
    grid-column: 1 / -1;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 0;
  }

  .main-menu.is-open {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .project-grid,
  .area-grid,
  .quick-access,
  .news-grid,
  .gallery,
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .published-records-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 650px;
    padding-top: 88px;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-content {
    max-width: 580px;
  }

  .split,
  .feature-list,
  .contact,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .area-grid,
  .quick-access,
  .news-grid,
  .gallery,
  .stats {
    grid-template-columns: 1fr;
  }

  .published-records-grid {
    grid-template-columns: 1fr;
  }

  .event-grid,
  .content-gallery {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 440px) {
  .brand small {
    display: none;
  }

  .brand strong {
    max-width: 150px;
  }

  h1 {
    font-size: 2.8rem;
  }

  .actions,
  .button {
    width: 100%;
  }
}

/* Alma visual direction */
.theme-alma {
  --ink: #064e3b;
  --muted-ink: #3f6f62;
  --paper: #fffaf0;
  --soft: #fef3c7;
  --line: rgba(6, 78, 59, 0.2);
  --green: #064e3b;
  --green-dark: #033c2d;
  --green-deep: #064e3b;
  --gold: #fbbf24;
  --gold-ink: #064e3b;
  --red: #c2410c;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --white: #fffaf0;
  background: var(--paper);
  color: var(--green);
  font-family: Lora, Georgia, serif;
}

.theme-alma h1,
.theme-alma h2,
.theme-alma h3,
.theme-alma .stats strong {
  font-family: "Alfa Slab One", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0;
}

.theme-alma .eyebrow,
.theme-alma .button,
.theme-alma .header-cta,
.theme-alma .filter,
.theme-alma .tag,
.theme-alma .main-menu,
.theme-alma .culture-ribbon,
.theme-alma .timeline time {
  font-family: "Bebas Neue", Impact, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.theme-alma .site-header {
  min-height: 90px;
  padding: 10px clamp(24px, 3vw, 48px);
  background: rgba(255, 250, 240, 0.97);
  border-bottom: 2px solid rgba(194, 65, 12, 0.14);
  box-shadow: none;
}

.theme-alma .site-header.is-scrolled {
  min-height: 74px;
  background: rgba(255, 250, 240, 0.98);
  box-shadow: 0 12px 30px rgba(6, 78, 59, 0.1);
}

.theme-alma .brand {
  gap: 10px;
}

.theme-alma .brand-logo {
  width: 58px;
  height: 64px;
}

.theme-alma .brand strong {
  font-family: Lora, Georgia, serif;
  font-size: 1.05rem;
  font-weight: 600;
}

.theme-alma .brand small {
  font-size: 0.72rem;
}

.theme-alma .main-menu {
  gap: clamp(18px, 2.5vw, 38px);
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 400;
}

.theme-alma .main-menu a {
  position: relative;
}

.theme-alma .main-menu a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--terracotta, #c2410c);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.theme-alma .main-menu a:hover::after {
  transform: scaleX(1);
}

.theme-alma .header-cta {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--paper);
  box-shadow: 0 10px 22px rgba(6, 182, 212, 0.25);
}

.theme-alma .menu-toggle {
  border: 2px solid var(--green);
  background: var(--green);
}

.theme-alma .menu-toggle span {
  background: var(--paper);
}

.theme-alma .hero {
  min-height: calc(100vh - 90px);
  align-items: center;
  padding: clamp(100px, 13vw, 170px) clamp(24px, 4vw, 64px) clamp(70px, 9vw, 110px);
}

.theme-alma .hero-media {
  background:
    linear-gradient(
      90deg,
      rgba(255, 250, 240, 0.98) 0%,
      rgba(255, 250, 240, 0.94) 29%,
      rgba(255, 250, 240, 0.7) 53%,
      rgba(255, 250, 240, 0.08) 78%
    ),
    linear-gradient(0deg, rgba(255, 250, 240, 0.12), rgba(255, 250, 240, 0.12)),
    url("assets/hero-blocao-domingao.webp") center 44% / cover;
  animation: none;
  transform: none;
}

.theme-alma .hero-content {
  max-width: min(900px, 72vw);
  color: var(--green);
}

.theme-alma .hero-content .eyebrow {
  display: block;
  min-height: 0;
  margin-bottom: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--red);
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  letter-spacing: 0.25em;
}

.theme-alma .hero h1 {
  max-width: 760px;
  color: var(--green);
  font-size: clamp(3.8rem, 8.3vw, 8.2rem);
  line-height: 0.92;
  word-break: keep-all;
  overflow-wrap: break-word;
  text-shadow: 4px 4px 0 rgba(251, 191, 36, 0.34);
}

.theme-alma .hero-subtitle {
  max-width: 690px;
  margin-top: 24px;
  color: var(--red);
  font-family: "Alfa Slab One", Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}

.theme-alma .hero-content > p:last-of-type {
  max-width: 720px;
  margin-top: 20px;
  color: var(--muted-ink);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.7;
}

.theme-alma .actions {
  gap: 16px;
  margin-top: 34px;
}

.theme-alma .button {
  min-height: 62px;
  padding: 0 30px;
  border-radius: 0;
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.16em;
}

.theme-alma .button.primary {
  border: 3px solid var(--red);
  background: var(--red);
  color: var(--paper);
  box-shadow: 0 14px 26px rgba(194, 65, 12, 0.22);
  transform: rotate(-0.6deg);
}

.theme-alma .button.secondary {
  border: 3px solid var(--green);
  background: rgba(255, 250, 240, 0.7);
  color: var(--green);
  transform: rotate(0.5deg);
}

.theme-alma .vernacular-marquee {
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--gold);
  border-bottom: 5px solid var(--cyan);
  background: var(--green);
  color: var(--paper);
}

.theme-alma .vernacular-marquee::before,
.theme-alma .vernacular-marquee::after {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 70px;
  height: 100%;
  content: "";
  pointer-events: none;
}

.theme-alma .vernacular-marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--green), transparent);
}

.theme-alma .vernacular-marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--green), transparent);
}

.theme-alma .vernacular-marquee-track {
  display: flex;
  width: max-content;
  animation: vernacular-scroll 32s linear infinite;
}

.theme-alma .vernacular-marquee span {
  display: inline-flex;
  min-height: 72px;
  align-items: center;
  padding: 0 30px;
  color: var(--paper);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.theme-alma .vernacular-marquee span::after {
  margin-left: 30px;
  color: var(--gold);
  content: "◆";
  transform: rotate(45deg);
}

@keyframes vernacular-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.theme-alma .section {
  padding: clamp(80px, 9vw, 116px) clamp(24px, 4vw, 64px);
}

.theme-alma .section > * {
  max-width: 1220px;
}

.theme-alma .about-section {
  grid-template-columns: minmax(300px, 520px) minmax(0, 1fr);
  gap: clamp(42px, 5.5vw, 74px);
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.theme-alma .about-media {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  margin: 0;
}

.theme-alma .about-media::before {
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border: 5px solid var(--gold);
  content: "";
}

.theme-alma .about-media::after {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 78px;
  height: 78px;
  border-top: 14px solid var(--cyan);
  border-left: 14px solid var(--cyan);
  content: "";
}

.theme-alma .about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.theme-alma .about-copy .eyebrow,
.theme-alma .section-heading .eyebrow {
  color: var(--red);
  font-size: 1rem;
  letter-spacing: 0.2em;
  transform: rotate(-1deg);
  transform-origin: left center;
}

.theme-alma .about-copy h2 {
  max-width: 620px;
  margin-top: 12px;
  color: var(--green);
  font-size: clamp(3rem, 4.7vw, 3.75rem);
  line-height: 0.96;
}

.theme-alma .about-copy > p:not(.eyebrow) {
  color: var(--muted-ink);
  font-size: 1rem;
}

.theme-alma blockquote {
  margin: 22px 0;
  padding: 16px 0 16px 22px;
  border-left: 6px solid var(--cyan);
  color: var(--red);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-style: italic;
  line-height: 1.45;
}

.theme-alma .text-link {
  color: var(--green);
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.theme-alma .muted {
  position: relative;
  background: var(--green);
  color: var(--paper);
  padding-top: 96px;
  padding-bottom: 96px;
}

.theme-alma .muted::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 18px;
  background:
    linear-gradient(135deg, var(--gold) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(225deg, var(--cyan) 25%, transparent 25%) 14px 0 / 28px 28px;
  content: "";
}

.theme-alma .muted .section-heading {
  max-width: 900px;
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.theme-alma .muted .section-heading h2 {
  color: var(--paper);
}

.theme-alma .muted .section-heading p:not(.eyebrow) {
  max-width: 700px;
  color: rgba(255, 250, 240, 0.72);
}

.theme-alma .section-heading {
  margin-bottom: 54px;
}

.theme-alma .section-heading h2 {
  color: var(--green);
  font-size: clamp(3rem, 5.4vw, 5rem);
  line-height: 0.95;
}

.theme-alma .section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 22px;
}

.theme-alma .muted .section-actions .text-link {
  color: var(--gold);
}

.theme-alma .area-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 250, 240, 0.24);
  border-left: 1px solid rgba(255, 250, 240, 0.24);
}

.theme-alma .area-grid article {
  min-height: 235px;
  padding: 24px;
  border: 0;
  border-right: 1px solid rgba(255, 250, 240, 0.24);
  border-bottom: 1px solid rgba(255, 250, 240, 0.24);
  border-radius: 0;
  background: transparent;
  color: var(--paper);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.theme-alma .area-grid article:hover {
  z-index: 2;
  filter: saturate(1.12);
  transform: translateY(-8px) rotate(-0.7deg);
}

.theme-alma .area-grid article:nth-child(even):hover {
  transform: translateY(-8px) rotate(0.7deg);
}

.theme-alma .area-grid article:nth-child(2) {
  background: var(--soft);
  color: var(--green);
}

.theme-alma .area-grid article:nth-child(3) {
  background: var(--cyan);
  color: var(--green);
}

.theme-alma .area-grid article:nth-child(4) {
  background: var(--paper);
  color: var(--green);
}

.theme-alma .area-grid article:nth-child(5) {
  background: var(--red);
  color: var(--paper);
}

.theme-alma .area-grid article:nth-child(6) {
  background: var(--gold);
  color: var(--green);
}

.theme-alma .area-grid article span {
  margin-bottom: 36px;
  color: currentColor;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: 3.2rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.42;
}

.theme-alma .area-grid h3 {
  max-width: 230px;
  color: currentColor;
  font-size: 1.55rem;
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
}

.theme-alma .area-grid p {
  color: currentColor;
  opacity: 0.78;
}

.theme-alma #projetos {
  background: var(--paper);
}

.theme-alma #projetos .section-heading {
  margin-left: 0;
  text-align: left;
}

.theme-alma .filters {
  justify-content: flex-start;
  margin-bottom: 34px;
}

.theme-alma .filter {
  min-height: 40px;
  border: 2px solid var(--green);
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-weight: 400;
}

.theme-alma .filter.is-active {
  background: var(--green);
  color: var(--paper);
  box-shadow: none;
}

.theme-alma .project-grid,
.theme-alma .news-grid {
  gap: 28px;
}

.theme-alma .project-card,
.theme-alma .news-grid article {
  position: relative;
  isolation: isolate;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.theme-alma .news-marquee {
  max-width: none;
  margin: 0 calc(clamp(24px, 4vw, 64px) * -1) 56px;
  border-top-color: var(--red);
  border-bottom-color: var(--gold);
  background: var(--paper);
  color: var(--green);
}

.theme-alma .news-marquee::before {
  background: linear-gradient(90deg, var(--paper), transparent);
}

.theme-alma .news-marquee::after {
  background: linear-gradient(-90deg, var(--paper), transparent);
}

.theme-alma .news-marquee span {
  color: var(--green);
}

.theme-alma .news-marquee span::after {
  color: var(--red);
}

.theme-alma .project-card::before,
.theme-alma .news-grid article::before {
  position: absolute;
  top: 10px;
  right: -8px;
  z-index: -1;
  width: 78%;
  height: 56%;
  background: var(--gold);
  content: "";
  transform: rotate(1.5deg);
}

.theme-alma .project-card:nth-child(2n)::before,
.theme-alma .news-grid article:nth-child(2n)::before {
  background: var(--cyan);
  transform: rotate(-1.5deg);
}

.theme-alma .project-card:nth-child(3n)::before,
.theme-alma .news-grid article:nth-child(3n)::before {
  background: var(--red);
}

.theme-alma .project-card img,
.theme-alma .news-grid img {
  height: 280px;
}

.theme-alma .project-card > div {
  padding: 24px 0;
}

.theme-alma .project-card h3,
.theme-alma .news-grid h3 {
  color: var(--green);
  font-size: 1.8rem;
  line-height: 1.15;
}

.theme-alma .tag {
  border-radius: 0;
  background: var(--gold);
  color: var(--green);
  font-weight: 400;
}

.theme-alma .timeline-section {
  position: relative;
  background: var(--green-dark);
  color: var(--paper);
}

.theme-alma .timeline-section::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(36vw, 440px);
  height: min(36vw, 440px);
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(251, 191, 36, 0.12) 0deg 10deg,
      transparent 10deg 20deg
    );
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  content: "";
  pointer-events: none;
}

.theme-alma .timeline-section .section-heading {
  margin-right: auto;
  margin-left: 0;
  text-align: left;
}

.theme-alma .timeline-section .section-heading h2 {
  color: var(--paper);
}

.theme-alma .timeline-section .eyebrow {
  display: block;
  padding: 0;
  background: transparent;
  color: var(--gold);
}

.theme-alma .stats {
  border-radius: 0;
  background: var(--gold);
}

.theme-alma .timeline time {
  border-radius: 0;
  background: var(--gold);
  color: var(--green);
}

.theme-alma .feature-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--paper);
}

.theme-alma .feature-list article {
  min-height: 220px;
  padding: 32px;
  border: 1px solid var(--line);
  border-left-width: 7px;
}

.theme-alma .feature-list article h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1;
}

.theme-alma .transparency {
  position: relative;
  background: #f7edd7;
}

.theme-alma .transparency::before {
  position: absolute;
  top: 32px;
  left: 0;
  width: 120px;
  height: 24px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--red) 0 16px,
      var(--gold) 16px 32px,
      var(--cyan) 32px 48px,
      var(--green) 48px 64px
    );
  content: "";
}

.theme-alma .transparency .section-heading h2 {
  max-width: 920px;
}

.theme-alma .quick-access {
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.theme-alma .quick-access article {
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--paper);
}

.theme-alma table {
  border-color: var(--line);
  background: var(--paper);
}

.theme-alma th {
  background: var(--green);
  color: var(--paper);
}

.theme-alma #noticias.muted {
  background: var(--paper);
  color: var(--green);
}

.theme-alma #noticias.muted .section-heading h2 {
  color: var(--green);
}

.theme-alma #noticias.muted .section-heading p:not(.eyebrow) {
  color: var(--muted-ink);
}

.theme-alma .gallery figure {
  border-radius: 0;
}

.theme-alma .gallery figcaption {
  border-radius: 0;
  background: rgba(6, 78, 59, 0.9);
}

.theme-alma .contact {
  align-items: start;
}

.theme-alma .contact-option {
  border-radius: 0;
  border-left: 6px solid var(--cyan);
}

.theme-alma .contact-option:nth-child(2) {
  border-left-color: var(--gold);
}

.theme-alma .contact-option:nth-child(3) {
  border-left-color: var(--red);
}

.theme-alma .site-footer {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 72px;
  border-top: 8px solid var(--gold);
  background: var(--green-dark);
}

.theme-alma .site-footer::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 34px,
      rgba(255, 250, 240, 0.035) 34px 36px
    );
  content: "";
  pointer-events: none;
}

.theme-alma .site-footer > * {
  position: relative;
  z-index: 1;
}

.theme-alma .footer-logo {
  width: 92px;
  height: 96px;
}

.theme-alma .content-page {
  padding-top: 80px;
}

.theme-alma .content-return {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 4px solid var(--gold);
}

.theme-alma .related-content {
  max-width: 1120px;
  margin: 100px auto 0;
  padding-top: 64px;
  border-top: 8px solid var(--green);
}

.theme-alma .related-content > h2 {
  max-width: 760px;
  margin-bottom: 38px;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.theme-alma .related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.theme-alma .related-grid article {
  border-top: 6px solid var(--gold);
}

.theme-alma .related-grid article:nth-child(2) {
  border-top-color: var(--cyan);
}

.theme-alma .related-grid article:nth-child(3) {
  border-top-color: var(--red);
}

.theme-alma .related-grid img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.theme-alma .related-grid h3 {
  margin-top: 18px;
  font-size: 1.65rem;
}

.theme-alma .related-grid h3 a {
  text-decoration: none;
}

.theme-alma .related-grid p {
  color: var(--muted-ink);
}

@media (max-width: 760px) {
  .theme-alma .related-grid {
    grid-template-columns: 1fr;
  }

  .theme-alma .content-article h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
    overflow-wrap: break-word;
  }
}

.theme-alma .content-article h1 {
  color: var(--green);
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.95;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

@media (max-width: 1040px) {
  .theme-alma .site-header {
    grid-template-columns: auto auto;
  }

  .theme-alma .main-menu {
    padding: 18px 0 10px;
    font-size: 1.05rem;
  }

  .theme-alma .hero-content {
    max-width: 82vw;
  }

  .theme-alma .hero h1 {
    font-size: clamp(3.6rem, 9vw, 6.5rem);
  }

  .theme-alma .about-section {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  }

  .theme-alma .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .theme-alma .site-header {
    min-height: 88px;
    padding: 10px 18px;
  }

  .theme-alma .brand-logo {
    width: 54px;
    height: 58px;
  }

  .theme-alma .hero {
    min-height: 760px;
    align-items: end;
    padding: 120px 24px 56px;
  }

  .theme-alma .hero-media {
    background:
      linear-gradient(
        90deg,
        rgba(255, 250, 240, 0.96) 0%,
        rgba(255, 250, 240, 0.87) 58%,
        rgba(255, 250, 240, 0.36) 100%
      ),
      url("assets/hero-blocao-domingao.webp") 59% center / cover;
  }

  .theme-alma .hero-content {
    max-width: 100%;
  }

  .theme-alma .hero-content .eyebrow {
    max-width: 330px;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .theme-alma .hero h1 {
    max-width: 350px;
    font-size: clamp(2.9rem, 13vw, 3.5rem);
    line-height: 0.94;
  }

  .theme-alma .hero-subtitle {
    max-width: 340px;
    font-size: 1.35rem;
  }

  .theme-alma .hero-content > p:last-of-type {
    font-size: 1rem;
    line-height: 1.65;
  }

  .theme-alma .button {
    width: 100%;
    min-height: 60px;
  }

  .theme-alma .vernacular-marquee span {
    min-height: 64px;
    padding: 0 24px;
  }

  .theme-alma .about-section,
  .theme-alma .area-grid,
  .theme-alma .feature-list {
    grid-template-columns: 1fr;
  }

  .theme-alma .about-media {
    max-width: 520px;
  }

  .theme-alma .about-media::before {
    inset: 12px -12px -12px 12px;
  }

  .theme-alma .about-copy h2,
  .theme-alma .section-heading h2 {
    font-size: clamp(2.7rem, 12vw, 4rem);
  }

  .theme-alma .area-grid article {
    min-height: 230px;
  }

  .theme-alma .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-alma .stats article:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 440px) {
  .theme-alma .brand strong {
    max-width: 165px;
    font-size: 0.95rem;
  }

  .theme-alma .hero {
    min-height: 720px;
  }

  .theme-alma .hero h1 {
    font-size: 3.05rem;
    text-shadow: 2px 2px 0 rgba(251, 191, 36, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-alma .vernacular-marquee-track {
    animation: none;
  }

  .theme-alma .area-grid article:hover,
  .theme-alma .area-grid article:nth-child(even):hover {
    transform: none;
  }
}
