/* ==========================================================================
   UNIR — Unidade de Luz e Integração em Ramatís
   Folha de estilos principal, linha clara
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --paper: #FCFBF7;
  --sand: #F7F2E7;
  --sand-deep: #EFE7D6;
  --mist: #EEF4F8;
  --mist-deep: #E2ECF3;

  --ink: #16283C;
  --ink-2: #2B4058;
  --body: #47586D;
  --muted: #59697B;

  --blue: #23407B;
  --blue-deep: #1A3160;
  --blue-soft: #4B6B9F;
  --blue-wash: #E8EEF7;

  --gold: #A07C34;
  --gold-ink: #7A5C1C;
  --gold-line: #CDB481;

  --green: #256B4D;
  --green-bg: #E6F1EA;

  --line: #E2DCD0;
  --line-cool: #D6E1EA;

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(60px, 8vw, 116px);

  --shadow-sm: 0 1px 2px rgba(22, 40, 60, 0.04);
  --shadow-md: 0 2px 6px rgba(22, 40, 60, 0.05), 0 18px 40px rgba(22, 40, 60, 0.06);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.78;
  font-weight: 400;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

::selection { background: var(--blue-wash); color: var(--blue-deep); }

/* Acessibilidade ---------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--blue);
  color: var(--white);
  padding: 12px 20px;
  font-size: 0.875rem;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Estrutura -------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: 860px; }

.section {
  padding-block: var(--section-y);
  position: relative;
}

.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }
.section--mist { background: var(--mist); }

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

/* Tipografia ------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin: 0 0 20px;
}

.display {
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  font-weight: 400;
  line-height: 1.04;
}

.h-section {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 500;
  line-height: 1.14;
}

.h-card {
  font-size: 1.3rem;
  line-height: 1.28;
}

.lead {
  font-size: clamp(1.0625rem, 1.3vw, 1.15rem);
  line-height: 1.75;
  color: var(--body);
}

.body-text { color: var(--body); }

.rule {
  width: 44px;
  height: 1px;
  background: var(--gold-line);
  border: 0;
  margin: 26px 0;
}

/* Botões ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 28px;
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  background: var(--blue);
  color: var(--white);
}

.btn--solid {
  background: var(--blue);
  color: var(--white);
}

.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn--ghost {
  border-color: var(--line-cool);
  color: var(--ink-2);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.btn--small { padding: 11px 18px; font-size: 0.6875rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: border-color 0.35s var(--ease), gap 0.35s var(--ease);
}

.link-arrow:hover,
.link-arrow:focus-visible {
  border-color: var(--blue);
  gap: 16px;
}

/* Cabeçalho -------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding-block: 14px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--line);
  padding-block: 8px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }

.brand img { height: 72px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 28px);
}

.nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav a:hover,
.nav a:focus-visible { color: var(--blue); }

.nav a[aria-current="page"] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.header-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease);
}

.header-cta:hover,
.header-cta:focus-visible { background: var(--blue-deep); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-cool);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  position: relative;
  transition: background 0.2s;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }

body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(126px, 15vh, 176px);
  padding-bottom: clamp(56px, 7vw, 96px);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 78% 8%, rgba(226, 236, 243, 0.9) 0%, rgba(252, 251, 247, 0) 62%),
    radial-gradient(50% 55% at 4% 92%, rgba(239, 231, 214, 0.75) 0%, rgba(252, 251, 247, 0) 68%),
    linear-gradient(180deg, #FFFFFF 0%, #FCFBF7 58%, #F4F7FA 100%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(35, 64, 123, 0.045) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(160, 124, 52, 0.05) 0, transparent 40%);
  pointer-events: none;
}

.hero__mark {
  position: absolute;
  right: clamp(-160px, -7vw, -50px);
  top: 46%;
  transform: translateY(-50%);
  width: clamp(360px, 46vw, 680px);
  color: rgba(35, 64, 123, 0.13);
  pointer-events: none;
  animation: slow-spin 260s linear infinite;
}

@keyframes slow-spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.62fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: end;
}

.hero__title {
  font-size: clamp(2.5rem, 5.2vw, 4.3rem);
  line-height: 1.04;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 26px;
}

.hero__title em {
  font-style: italic;
  color: var(--blue);
}

.hero__text {
  max-width: 34rem;
  color: var(--body);
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.78;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(18px, 2.6vw, 30px);
  padding-bottom: 6px;
}

.hero__aside-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 14px;
}

.hero__aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--body);
}

.hero__aside-list li {
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.hero__aside-list li:last-child { border-bottom: 0; }

.hero__aside-list span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 68px;
}

.hero__aside-link {
  margin-top: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.hero__aside-link:hover { text-decoration: underline; }

/* Faixa de dados --------------------------------------------------------- */

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

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

.strip__item {
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.strip__item:last-child { border-right: 0; }

.strip__num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--blue);
  line-height: 1.2;
  display: block;
  margin-bottom: 2px;
}

.strip__label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Cabeçalho de página interna -------------------------------------------- */

.page-head {
  position: relative;
  padding-top: clamp(118px, 14vh, 158px);
  padding-bottom: clamp(40px, 5.5vw, 68px);
  background:
    radial-gradient(70% 120% at 86% 0%, rgba(226, 236, 243, 0.95) 0%, rgba(252, 251, 247, 0) 62%),
    linear-gradient(180deg, #FFFFFF 0%, #FBF9F4 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-head__inner { position: relative; z-index: 2; }

.page-head__title {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  max-width: 22ch;
}

.page-head__lead {
  max-width: 46rem;
  margin-top: 22px;
  color: var(--body);
  font-size: clamp(1rem, 1.15vw, 1.075rem);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span[aria-hidden] { opacity: 0.6; }
.breadcrumb span { color: var(--body); }

/* Blocos ----------------------------------------------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 56px);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(22px, 4.4vw, 72px);
  align-items: end;
  margin-bottom: clamp(34px, 4.4vw, 58px);
}

.pillar {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(22px, 2.6vw, 30px);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.pillar--flat {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0 0;
}

.pillar:hover {
  border-color: var(--line-cool);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pillar--flat:hover { box-shadow: none; transform: none; border-color: var(--gold-line); }

.pillar__num {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-ink);
  display: block;
  margin-bottom: 16px;
}

.pillar h3 {
  font-size: 1.32rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.pillar p {
  font-size: 0.9375rem;
  line-height: 1.72;
  color: var(--body);
}

/* Agenda semanal --------------------------------------------------------- */

.agenda {
  border-top: 1px solid var(--line);
}

.agenda__row {
  display: grid;
  grid-template-columns: 118px 122px minmax(0, 1fr) auto;
  gap: clamp(12px, 2.4vw, 32px);
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease);
}

.agenda__row:hover { background: rgba(35, 64, 123, 0.035); }

.agenda__day {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.agenda__time {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.agenda__what { min-width: 0; }

.agenda__what h3 {
  font-size: 1.0625rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.45;
  margin-bottom: 2px;
  color: var(--ink);
}

.agenda__where {
  font-size: 0.8125rem;
  color: var(--muted);
}

.agenda__where a { color: var(--blue); border-bottom: 1px solid var(--line-cool); }
.agenda__where a:hover { border-color: var(--blue); }

.tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  white-space: nowrap;
}

.tag--open { border-color: #C7E0D2; background: var(--green-bg); color: var(--green); }
.tag--book { border-color: #E5D6B4; background: #FBF4E4; color: var(--gold-ink); }
.tag--restrict { border-color: var(--line); background: var(--sand); color: var(--body); }

.agenda-note {
  margin-top: 24px;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 64ch;
}

/* Núcleos: grade --------------------------------------------------------- */

.nucleos-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.nucleo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
  padding: clamp(22px, 2.4vw, 30px);
  min-height: 224px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.nucleo-card::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.nucleo-card:hover,
.nucleo-card:focus-visible {
  border-color: var(--line-cool);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.nucleo-card:hover::after,
.nucleo-card:focus-visible::after { transform: scaleX(1); }

.nucleo-card__num {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.nucleo-card h3 {
  font-size: 1.32rem;
  line-height: 1.24;
  margin: 10px 0 8px;
  font-weight: 500;
}

.nucleo-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--body);
  max-width: 36ch;
}

.nucleo-card__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nucleo-card__foot svg { transition: transform 0.4s var(--ease); }
.nucleo-card:hover .nucleo-card__foot svg { transform: translateX(6px); }

/* Lista de núcleos ------------------------------------------------------- */

.nucleo-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1.1fr) minmax(0, 1fr) 148px;
  gap: clamp(14px, 2.6vw, 36px);
  align-items: baseline;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), padding-left 0.35s var(--ease);
}

.nucleo-row:hover {
  background: rgba(35, 64, 123, 0.035);
  padding-left: 10px;
}

.nucleo-row__num {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--gold-ink);
}

.nucleo-row h3 {
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1.26;
}

.nucleo-row p {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.62;
  margin: 0;
}

.nucleo-row__when {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--blue);
  text-align: right;
}

/* Passos ----------------------------------------------------------------- */

.steps { counter-reset: step; }

.step {
  position: relative;
  padding: 0 0 26px 46px;
  border-left: 1px solid var(--line);
  margin-left: 12px;
}

.step:last-child { padding-bottom: 0; border-left-color: transparent; }

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: -13px;
  top: -2px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold-ink);
}

.step h3 {
  font-size: 1.02rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 6px;
  padding-top: 2px;
}

.step p {
  font-size: 0.9375rem;
  color: var(--body);
  line-height: 1.7;
}

/* Faixa de citação ------------------------------------------------------- */

.quote-band {
  position: relative;
  padding-block: clamp(56px, 7vw, 104px);
  background: var(--sand);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
}

.quote-band__mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(280px, 32vw, 460px);
  color: rgba(160, 124, 52, 0.16);
  pointer-events: none;
}

.quote-band blockquote {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 44rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.4;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
}

.quote-band cite {
  display: block;
  position: relative;
  z-index: 2;
  margin-top: 22px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* Acordeão --------------------------------------------------------------- */

.acc { border-top: 1px solid var(--line); }

.acc__item { border-bottom: 1px solid var(--line); }

.acc__btn {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding-block: 22px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.acc__btn:hover { color: var(--blue); }

.acc__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 500;
  color: inherit;
}

.acc__icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  position: relative;
  align-self: center;
}

.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  background: var(--blue);
  transition: transform 0.4s var(--ease);
}

.acc__icon::before { inset: 6px 0 auto 0; height: 1px; }
.acc__icon::after { inset: 0 auto 0 6px; width: 1px; }

.acc__btn[aria-expanded="true"] .acc__icon::after { transform: scaleY(0); }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.acc__btn[aria-expanded="true"] + .acc__panel { grid-template-rows: 1fr; }

.acc__inner { overflow: hidden; }

.acc__content {
  max-width: 70ch;
  padding-bottom: 30px;
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--body);
}

.acc__content p { margin-bottom: 0.9em; }
.acc__content ol { padding-left: 20px; margin: 0 0 1em; }
.acc__content li { margin-bottom: 0.55em; }
.acc__content strong { color: var(--ink); font-weight: 600; }
.acc__content em { color: var(--gold-ink); font-style: italic; }

/* Cartões de link -------------------------------------------------------- */

.card-link {
  display: block;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}

.card-link:hover,
.card-link:focus-visible {
  border-color: var(--line-cool);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-link h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.card-link p {
  font-size: 0.9375rem;
  color: var(--body);
}

.card-link__meta {
  display: block;
  margin-top: 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Detalhe de núcleo ------------------------------------------------------ */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  gap: clamp(30px, 4.4vw, 64px);
  align-items: start;
}

.side {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(20px, 2.4vw, 28px);
}

/* Espaços para imagens (topo da coluna de núcleos, aside de Ramatís).
   aspect-ratio reserva o espaço e evita deslocamento de layout. */
.media {
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
}

.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--wide { aspect-ratio: 16 / 9; }
.media--portrait { aspect-ratio: 4 / 5; }

/* Caixa cinza do modo --preview-slots (imagem ainda ausente). */
.media--slot {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcd8cc;
  border-style: dashed;
}

.media__label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #5c574c;
  text-align: center;
  line-height: 1.5;
  padding: 10px;
}

.side + .side { margin-top: 18px; }

.side h2,
.side h3 {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 14px;
}

.hours { list-style: none; margin: 0 0 4px; padding: 0; }

.hours li {
  display: grid;
  gap: 2px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
}

.hours li:last-child { border-bottom: 0; padding-bottom: 0; }

.hours .d {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.hours .t {
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.hours .w {
  font-size: 0.8125rem;
  color: var(--body);
  line-height: 1.55;
}

.side p {
  font-size: 0.8125rem;
  line-height: 1.68;
  color: var(--body);
}

.side a { color: var(--blue); border-bottom: 1px solid var(--line-cool); }
.side a:hover { border-color: var(--blue); }

.pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }

.side .btn { width: 100%; justify-content: center; margin-top: 16px; }

/* Visita e contato ------------------------------------------------------- */

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(30px, 4.4vw, 64px);
  align-items: start;
}

.info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.info-list li {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  padding-block: 17px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.info-list dt,
.info-list .label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}

.info-list .value { color: var(--ink); }
.info-list .value a { color: var(--blue); border-bottom: 1px solid var(--line-cool); }
.info-list .value a:hover { border-color: var(--blue); }

.map {
  position: relative;
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--white);
  aspect-ratio: 4 / 3;
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15);
}

/* Formulário ------------------------------------------------------------- */

.form { display: grid; gap: 16px; }

.field { display: grid; gap: 7px; }

.field label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line-cool);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 12px 14px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 3px rgba(75, 107, 159, 0.14);
}

.field textarea { resize: vertical; min-height: 124px; }

.field select { appearance: none; }

.form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.form__note {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

.form__status {
  font-size: 0.875rem;
  color: var(--green);
  min-height: 1.2em;
}

/* Chamada final ---------------------------------------------------------- */

.cta-band {
  background: var(--mist);
  border-top: 1px solid var(--line-cool);
  padding-block: clamp(44px, 6vw, 76px);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.15rem);
  font-weight: 500;
  max-width: 26ch;
}

/* Rodapé ----------------------------------------------------------------- */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding-top: clamp(44px, 5.5vw, 70px);
  padding-bottom: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.6vw, 50px);
  padding-bottom: clamp(34px, 4.4vw, 54px);
}

.site-footer img { height: 72px; width: auto; margin-bottom: 18px; }

.footer-grid p {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 32ch;
  line-height: 1.68;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-col a,
.footer-col li {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.55;
}

.footer-col a:hover { color: var(--blue); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-bottom a:hover { color: var(--blue); }

/* WhatsApp flutuante ----------------------------------------------------- */

.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #1F7A54;
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 40, 60, 0.22);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease);
}

.wa-float:hover { transform: translateY(-3px); background: #25875D; }

/* Prosa ------------------------------------------------------------------ */

.prose { max-width: 70ch; }

.prose h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  margin-top: 2em;
  margin-bottom: 0.62em;
  font-weight: 500;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 1.9em;
  margin-bottom: 0.55em;
  color: var(--ink);
}

.prose p,
.prose li {
  font-size: 1rem;
  line-height: 1.82;
  color: var(--body);
}

.prose strong { color: var(--ink); font-weight: 600; }

.prose ul, .prose ol { padding-left: 20px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }

.prose a { color: var(--blue); border-bottom: 1px solid var(--line-cool); }
.prose a:hover { border-color: var(--blue); }

.pending {
  border-left: 2px solid var(--gold-line);
  background: var(--sand);
  padding: 16px 0 16px 20px;
  margin-top: 30px;
  font-size: 0.875rem;
  color: var(--body);
  max-width: 64ch;
}

/* Programação por dia ---------------------------------------------------- */

.day-block {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 44px);
  padding-block: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.day-block:last-child { border-bottom: 1px solid var(--line); }

.day-block__name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: var(--ink);
  line-height: 1.2;
}

.day-block__name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.day-block__items { display: grid; gap: 16px; }

.day-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
}

.day-item__time {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}

.day-item__what h3 {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 2px;
}

.day-item__what p {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0;
}

.day-block--empty .day-block__name { color: var(--muted); }

/* Lista de obras --------------------------------------------------------- */

.book-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.book-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}

.book-list .idx {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-ink);
}

.book-list .title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.35;
}

.book-list .note {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Revelação ao rolar ----------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

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

/* Responsivo ------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 22px; max-width: 34rem; }
  .hero__mark { opacity: 0.55; right: -16vw; }
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .nucleos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .visit-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip__item:nth-child(2n) { border-right: 0; }
  .strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 1020px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(84vw, 360px);
    background: var(--white);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 84px 32px 40px;
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    overflow-y: auto;
    z-index: 120;
    box-shadow: -20px 0 60px rgba(22, 40, 60, 0.12);
  }

  .nav a {
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    padding-block: 13px;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  body.menu-open .nav { transform: none; }
  body.menu-open { overflow: hidden; }

  .brand img, .site-footer img { height: 60px; }

  .menu-toggle { display: inline-flex; z-index: 130; }

  .header-cta { display: none; }

  .agenda__row {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 6px 16px;
    padding-block: 18px;
  }

  .agenda__time { grid-row: span 2; }
  .agenda__row .tag { grid-column: 2; justify-self: start; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .nucleos-grid { grid-template-columns: 1fr; }
  .nucleo-card { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .info-list li { grid-template-columns: 1fr; gap: 3px; }

  .nucleo-row { grid-template-columns: 54px minmax(0, 1fr); gap: 4px 14px; }
  .nucleo-row p, .nucleo-row__when { grid-column: 2; text-align: left; }

  .day-block { grid-template-columns: 1fr; gap: 14px; }
  .day-item { grid-template-columns: 88px minmax(0, 1fr); }
  .day-item .tag { grid-column: 2; justify-self: start; margin-top: 4px; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero { padding-top: 112px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .strip__inner { grid-template-columns: 1fr; }
  .strip__item { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip__item:last-child { border-bottom: 0; }
}
