/* Aurora — template editorial moderno para associações.
   Tokens de marca (--brand/--accent) são injetados por tenant no <head>. */

:root {
  --brand: #15323a;
  --accent: #e0a44a;

  --ink: #161a1c;
  --muted: #5c6b6e;
  --paper: #f7f5f0;
  --surface: #ffffff;
  --line: color-mix(in srgb, var(--brand) 14%, transparent);
  --line-soft: color-mix(in srgb, var(--brand) 8%, transparent);

  --shadow-sm: 0 2px 8px rgba(20, 30, 32, 0.05);
  --shadow-md: 0 18px 40px -18px rgba(20, 30, 32, 0.28);
  --shadow-lg: 0 40px 80px -28px rgba(20, 30, 32, 0.36);

  --radius: 18px;
  --radius-lg: 26px;
  --max: 1200px;
  --gutter: max(22px, calc((100vw - var(--max)) / 2));

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Hoefler Text", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --hero-veil-rgb: 8 38 58;
  --hero-veil-accent-rgb: 18 93 119;

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

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* <picture> is only a wrapper; let the inner <img> keep the layout/box. */
picture {
  display: contents;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  transition: top 160ms var(--ease);
}

.skip-link:focus {
  top: 16px;
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand) 62%, var(--accent));
}

/* ---------- Buttons & link arrows ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.96rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease),
    background 200ms var(--ease), color 200ms var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-accent {
  background: var(--accent);
  color: color-mix(in srgb, var(--brand) 82%, black);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn-accent:hover {
  box-shadow: 0 16px 30px -10px color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--brand);
}

.btn-ghost:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  background: color-mix(in srgb, var(--brand) 5%, transparent);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: var(--brand);
  text-decoration: none;
}

.link-arrow .arrow {
  transition: transform 220ms var(--ease);
}

.link-arrow:hover .arrow,
a:hover > .link-arrow .arrow {
  transform: translateX(5px);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background 240ms var(--ease), border-color 240ms var(--ease),
    box-shadow 240ms var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 92px;
  padding: 12px var(--gutter);
}

.site-header.is-scrolled .site-header-inner {
  min-height: 74px;
}

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

.brand-logo {
  width: auto;
  max-height: 68px;
  object-fit: contain;
}

.site-header.is-scrolled .brand-logo {
  max-height: 56px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent)));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.05;
  max-width: 220px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav > a,
.site-nav > .nav-group {
  flex: 0 0 auto;
}

.site-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.site-nav a:hover {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, transparent);
}

/* ---------- Mega-menu (grupos com submenu) ---------- */

.nav-group {
  position: relative;
}

.nav-group-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.nav-group:hover .nav-group-btn,
.nav-group:focus-within .nav-group-btn,
.nav-group-btn[aria-expanded="true"] {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, transparent);
}

.nav-caret {
  font-size: 0.7em;
  transition: transform 180ms var(--ease);
}

.nav-group:hover .nav-caret,
.nav-group:focus-within .nav-caret {
  transform: rotate(180deg);
}

.nav-sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 230px;
  display: grid;
  gap: 2px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 160ms var(--ease);
}

.nav-group:hover .nav-sub,
.nav-group:focus-within .nav-sub,
.nav-sub.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-sub a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--ink);
  white-space: nowrap;
}

.nav-sub a:hover {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  color: var(--brand);
}

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

.site-search {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-search input {
  width: 210px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--ink);
  font: inherit;
}

.site-search button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.site-search--nav {
  display: none;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-weight: 700;
}

.social-links a {
  color: inherit;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 220ms var(--ease), opacity 160ms var(--ease);
}

.nav-toggle-bar {
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-toggle-bar::before {
  top: -7px;
}

.nav-toggle-bar::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: 30px;
  align-items: stretch;
  padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(28px, 4vw, 48px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(50% 60% at 12% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(55% 70% at 92% 10%, color-mix(in srgb, var(--brand) 20%, transparent), transparent 72%);
  opacity: 0.9;
  filter: blur(8px);
}

.hero-empty {
  grid-column: 1 / -1;
  padding: clamp(40px, 7vw, 80px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--accent)));
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.hero-empty h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  margin-bottom: 16px;
}

.hero-feature-summary {
  margin: 16px 0 22px;
  max-width: 560px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.86);
}

.hero-empty .hero-feature-summary {
  margin-bottom: 26px;
}

/* ---------- Hero carousel (cinematic) ---------- */

.hero-carousel {
  position: relative;
  min-height: clamp(540px, 86vh, 840px);
  overflow: hidden;
  background: #0a1417;
  isolation: isolate;
}

.hero-stage {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms var(--ease), visibility 900ms var(--ease);
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.14);
  transform-origin: center;
  /* Tame blown-out whites so the white headline stays legible. */
  filter: brightness(0.86) saturate(1.05);
}

.js .hero-slide.is-active .hero-slide-img {
  animation: kenburns 8s ease-out both;
}

.hero-slide-video {
  display: block;
}

.js .hero-slide.is-active .hero-slide-video {
  animation: none;
}

.hero-slide-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(130% 95% at 80% 0%, transparent 40%, rgb(var(--hero-veil-accent-rgb) / 0.34) 100%),
    linear-gradient(0deg, rgb(var(--hero-veil-rgb) / 0.94) 0%, rgb(var(--hero-veil-rgb) / 0.76) 20%, rgb(var(--hero-veil-rgb) / 0.32) 48%, rgb(var(--hero-veil-rgb) / 0.08) 72%, transparent 88%),
    linear-gradient(90deg, rgb(var(--hero-veil-rgb) / 0.84) 0%, rgb(var(--hero-veil-rgb) / 0.44) 32%, rgb(var(--hero-veil-rgb) / 0.08) 60%, transparent 78%);
}

.hero-slide-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  /* The viewport gutter already limits the content to --max. Capping this
     wrapper too would apply the wide-screen inset twice and crush long titles. */
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 9vh, 110px);
  color: #fff;
}

/* Halo around the text guarantees legibility even over bright patches. */
.hero-slide-inner .eyebrow,
.hero-slide-title,
.hero-slide-summary {
  text-shadow:
    0 1px 3px rgb(var(--hero-veil-rgb) / 0.5),
    0 2px 22px rgb(var(--hero-veil-rgb) / 0.52);
}

.hero-slide-inner .eyebrow {
  color: color-mix(in srgb, var(--accent) 90%, white);
  letter-spacing: 0.24em;
}

.hero-slide-title {
  max-width: 17ch;
  margin: 0;
  font-size: clamp(2.4rem, 6.6vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: #fff;
}

.hero-slide-title a {
  color: inherit;
  text-decoration: none;
}

.hero-slide-summary {
  max-width: 56ch;
  margin: 18px 0 28px;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
}

.hero-slide-cta {
  align-self: flex-start;
}

/* Per-slide content reveal (only when JS drives the carousel) */
.js .hero-slide .hero-slide-inner > * {
  opacity: 0;
  transform: translateY(30px);
}

.js .hero-slide.is-active .hero-slide-inner > * {
  animation: heroRise 0.9s var(--ease) both;
}

.js .hero-slide.is-active .hero-slide-inner > *:nth-child(1) { animation-delay: 0.12s; }
.js .hero-slide.is-active .hero-slide-inner > *:nth-child(2) { animation-delay: 0.26s; }
.js .hero-slide.is-active .hero-slide-inner > *:nth-child(3) { animation-delay: 0.40s; }
.js .hero-slide.is-active .hero-slide-inner > *:nth-child(4) { animation-delay: 0.54s; }

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.5px, transparent 0.6px);
  background-size: 3px 3px;
}

.hero-ui {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 9vh, 104px);
  z-index: 4;
  width: min(330px, 40vw);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
  color: #fff;
}

.hero-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2.4rem);
  font-weight: 600;
}

.hero-count [data-current] {
  color: var(--accent);
}

.hero-count-sep {
  opacity: 0.45;
  font-size: 0.75em;
}

.hero-index {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.hero-index-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px 12px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}

.hero-index-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-index-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.hero-index-track {
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.hero-index-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 2px;
  background: var(--accent);
}

.js .hero-index-item.is-active .hero-index-fill {
  animation: heroFill 7s linear both;
}

.hero-carousel:hover .hero-index-item.is-active .hero-index-fill {
  animation-play-state: paused;
}

.hero-index-label {
  grid-column: 1 / -1;
  max-height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.25;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), margin 0.4s var(--ease);
}

.hero-index-item.is-active {
  color: #fff;
}

.hero-index-item.is-active .hero-index-num {
  color: var(--accent);
}

.hero-index-item.is-active .hero-index-label {
  max-height: 3.2em;
  margin-top: 4px;
  opacity: 1;
}

.hero-arrows {
  display: flex;
  gap: 8px;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.hero-arrow:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Headline ticker ---------- */

.ticker {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
}

.ticker-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  background: var(--accent);
  color: color-mix(in srgb, var(--brand) 82%, black);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ticker-viewport {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  padding: 12px 0;
  will-change: transform;
  animation: tickerScroll 45s linear infinite;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.ticker-dot {
  color: var(--accent);
  font-size: 0.55rem;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

/* ---------- Quick links ---------- */

.quicklinks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: clamp(16px, 2vw, 28px) var(--gutter) clamp(28px, 4vw, 44px);
}

.quicklink {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease),
    border-color 240ms var(--ease);
}

.quicklink::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--brand));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 280ms var(--ease);
}

.quicklink:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.quicklink:hover::before {
  transform: scaleY(1);
}

.quicklink-index {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--brand) 30%, var(--accent));
}

.quicklink-title {
  font-weight: 650;
  line-height: 1.25;
  flex: 1;
}

.quicklink-arrow {
  color: var(--muted);
  transition: transform 240ms var(--ease), color 240ms var(--ease);
}

.quicklink:hover .quicklink-arrow {
  transform: translateX(4px);
  color: var(--brand);
}

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.04;
}

/* ---------- News grid ---------- */

.news {
  padding: clamp(20px, 3vw, 44px) var(--gutter) clamp(40px, 6vw, 80px);
}

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

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease),
    border-color 260ms var(--ease);
  /* não renderiza cards fora da tela até se aproximarem (mais barato no load) */
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.post-card-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, var(--brand) 10%, var(--paper));
}

/* Blurred backdrop of the same image fills the frame, so the real image
   can be shown whole (object-fit: contain) without cropping — and odd or
   low-resolution images still look intentional. */
.post-card-media-fill {
  position: absolute;
  inset: 0;
  background-image: var(--card-img);
  background-position: center;
  background-size: cover;
  transform: scale(1.3);
  filter: blur(26px) saturate(1.15) brightness(0.92);
}

.post-card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 600ms var(--ease);
}

.post-card:hover .post-card-media img {
  transform: scale(1.04);
}

.post-card-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 3rem;
  color: color-mix(in srgb, var(--brand) 36%, transparent);
}

.post-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 22px 24px 24px;
}

.chip {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.chip-date {
  color: var(--muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.post-card h3 {
  font-size: 1.35rem;
  line-height: 1.18;
}

.post-card h3 a {
  color: inherit;
  text-decoration: none;
}

.post-card h3 a:hover {
  color: var(--brand);
}

.post-card-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.post-card .link-arrow {
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.92rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  padding: 0 var(--gutter) clamp(48px, 7vw, 96px);
}

.cta-band-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(80% 140% at 100% 0%, color-mix(in srgb, var(--accent) 42%, transparent), transparent 60%),
    linear-gradient(120deg, var(--brand), color-mix(in srgb, var(--brand) 70%, black));
  box-shadow: var(--shadow-lg);
}

.cta-band-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.5;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, black);
}

.cta-band-inner > * {
  position: relative;
}

.cta-band-inner .eyebrow {
  color: color-mix(in srgb, var(--accent) 85%, white);
}

.cta-band-inner h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.05;
  margin-bottom: 8px;
}

.cta-band-inner p {
  margin: 0;
  max-width: 460px;
  color: rgba(255, 255, 255, 0.82);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page hero (list / not found) ---------- */

.page-hero {
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(24px, 3vw, 40px);
  max-width: 900px;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.page-hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.not-found .btn {
  margin-top: 26px;
}

/* ---------- Article ---------- */

.article {
  max-width: 920px;
  margin: 0 auto;
  /* small fixed side padding — the element is already centered via max-width,
     so the large --gutter would needlessly shrink the content. */
  padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 32px) clamp(48px, 7vw, 90px);
}

/* Institutional/leisure pages use the full desktop width: prose stays at a
   readable measure while media, lists and documents span the wide column. */
.article-page {
  max-width: 1120px;
}

.article-page .lead,
.article-page .article-body > p,
.article-page .article-body > h2,
.article-page .article-body > h3,
.article-page .article-body > .content-info,
.article-page .article-body > .content-notice,
.article-page .article-body > .content-question {
  max-width: 74ch;
}

.article-page .content-list {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.article-page .doc-list {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.article-head {
  margin-bottom: 28px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--brand);
  font-weight: 650;
  text-decoration: none;
}

.back-link:hover {
  color: color-mix(in srgb, var(--brand) 70%, var(--accent));
}

.article-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.06;
}

.article-meta {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-figure {
  margin: 0 0 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.lead {
  font-size: 1.3rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 84%, var(--muted));
  margin: 0 0 28px;
}

.article-body,
.content-body {
  font-size: 1.12rem;
  line-height: 1.78;
  color: color-mix(in srgb, var(--ink) 92%, white);
  /* quebra e-mails/URLs longos para não estourar a largura no mobile */
  overflow-wrap: break-word;
}

.article-body > p:first-of-type::first-letter,
.content-body > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.6rem;
  line-height: 0.82;
  padding: 6px 12px 0 0;
  color: var(--brand);
}

.article-body p,
.content-body p {
  margin: 0 0 20px;
}

.article-body h2,
.content-body h2 {
  margin: 44px 0 16px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--brand);
}

.article-body h3,
.content-body h3 {
  margin: 32px 0 12px;
  font-size: 1.3rem;
}

.article-body a,
.content-body a {
  color: var(--brand);
  text-decoration-color: color-mix(in srgb, var(--brand) 40%, transparent);
  text-underline-offset: 3px;
}

.article-body img,
.content-body img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.content-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 26px;
  padding: 0;
  list-style: none;
}

.content-list li {
  position: relative;
  padding: 12px 16px 12px 38px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 4%, var(--surface));
  border: 1px solid var(--line-soft);
}

.content-list li::before {
  content: "";
  position: absolute;
  top: 1.35em;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.content-question {
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  font-weight: 600;
}

.content-info,
.content-notice {
  padding: 16px 18px;
  border-radius: 12px;
  margin: 16px 0;
}

.content-info {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--brand) 4%, var(--surface));
}

.content-info strong {
  color: var(--brand);
}

.content-notice {
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  font-weight: 600;
}

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

/* ---------- Convênios: cards de marca dentro da categoria ---------- */

.convenio-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin: 8px 0;
}

.convenio-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.convenio-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.convenio-media {
  height: 168px;
  padding: 14px;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.convenio-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Diretorias importadas: hub editorial ---------- */

.directory-showcase,
.directory-list-section,
.directory-archive {
  margin: 38px 0;
}

.directory-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
}

.directory-section-head p {
  margin: 0;
  color: color-mix(in srgb, var(--brand) 58%, var(--accent));
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.directory-section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1;
}

.directory-showcase {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 12%, transparent);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, transparent), transparent 46%),
    color-mix(in srgb, var(--surface) 82%, var(--paper));
  box-shadow: var(--shadow-md);
}

.directory-carousel-shell {
  position: relative;
}

.directory-carousel {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.directory-carousel::-webkit-scrollbar {
  display: none;
}

.directory-slide {
  min-width: 0;
  scroll-snap-align: start;
}

.directory-slide a,
.directory-card {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.directory-slide a {
  position: relative;
  min-height: clamp(360px, 46vw, 560px);
  color: #fff;
  text-decoration: none;
}

.directory-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}

.directory-slide a:hover img {
  filter: brightness(0.92) saturate(1.08);
  transform: scale(1.05);
}

.directory-slide span {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(760px, 100%);
  padding: 120px clamp(22px, 4vw, 42px) clamp(24px, 4vw, 40px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34) 68%, transparent),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 4.4rem);
  line-height: 0.98;
  text-shadow: 0 10px 32px rgba(0, 0, 0, 0.48);
}

.directory-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 50%;
  background: rgba(18, 28, 30, 0.46);
  color: #fff;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  place-items: center;
  transform: translateY(-50%);
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.directory-carousel-arrow:hover {
  background: rgba(18, 28, 30, 0.72);
  transform: translateY(-50%) scale(1.04);
}

.directory-carousel-arrow.prev {
  left: 14px;
}

.directory-carousel-arrow.next {
  right: 14px;
}

.directory-carousel-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.directory-carousel-dot {
  width: 34px;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 20%, transparent);
  cursor: pointer;
  transition: background 180ms var(--ease), width 180ms var(--ease);
}

.directory-carousel-dot.is-active {
  width: 54px;
  background: var(--accent);
}

.directory-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.directory-card {
  flex-direction: column;
  min-height: 100%;
}

.directory-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}

.directory-card-media img {
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  transition: transform 420ms var(--ease);
}

.directory-card:hover .directory-card-media img {
  transform: scale(1.04);
}

.directory-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.directory-card-body h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.08;
}

.directory-card-body h3 a {
  text-decoration: none;
}

.directory-card-body p {
  color: var(--muted);
  font-size: 0.98rem;
}

.directory-card-link {
  margin-top: auto;
  color: color-mix(in srgb, var(--brand) 72%, var(--accent));
  font-weight: 900;
  text-decoration: none;
}

.directory-archive {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 84%, var(--paper));
}

.directory-filter {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.directory-filter input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.directory-archive-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: directory-archive;
}

.directory-archive-item {
  counter-increment: directory-archive;
}

.directory-archive-item a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 8%, transparent);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}

.directory-archive-item a::before {
  content: counter(directory-archive, decimal-leading-zero);
  color: color-mix(in srgb, var(--brand) 50%, var(--muted));
  font-size: 0.78rem;
  font-weight: 900;
}

.directory-archive-item a:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--brand));
  transform: translateY(-1px);
}

.directory-archive.is-enhanced .directory-archive-item.is-hidden {
  display: none;
}

.directory-archive-empty {
  margin: 18px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.directory-more {
  display: block;
  margin: 22px auto 0;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.directory-more[hidden] {
  display: none;
}

.convenio-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 16px 18px 18px;
}

.convenio-info h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.convenio-desc {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  /* keep cards uniform: cap long discount text */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.convenio-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--brand);
  font-weight: 650;
  text-decoration: none;
}

.convenio-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Formulários ---------- */

.page-form {
  max-width: 820px;
  margin: 40px 0 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.page-form-intro {
  margin: 0 0 20px;
  color: var(--muted);
}

.form-success {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 4px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  font-weight: 600;
}

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

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row-wide {
  grid-column: 1 / -1;
}

.form-row label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.form-row .req {
  color: var(--accent);
}

.cms-form input,
.cms-form select,
.cms-form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.cms-form input:focus,
.cms-form select:focus,
.cms-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.cms-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 0.82rem;
  color: #c0392b;
}

.cms-form .btn {
  margin-top: 20px;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Documentos para download / figuras de página ---------- */

.doc-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 24px;
  padding: 0;
  list-style: none;
}

.doc-list li {
  margin: 0;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease),
    border-color 180ms var(--ease);
}

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

.doc-ico {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 20%, var(--surface));
  color: color-mix(in srgb, var(--brand) 80%, black);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.page-figure {
  margin: 18px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.page-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Carrossel de fotos (áreas de lazer) ---------- */

.page-gallery {
  position: relative;
  margin: 0 0 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #0a1417;
  box-shadow: var(--shadow-md);
}

.page-gallery-track {
  display: flex;
  overflow-x: auto;
  aspect-ratio: 16 / 9;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.page-gallery-track::-webkit-scrollbar {
  display: none;
}

.page-gallery-slide {
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: center;
}

.page-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--gallery-object-position, 50% 50%);
  transform: scale(var(--gallery-image-scale, 1));
  transform-origin: var(--gallery-object-position, 50% 50%);
}

.page-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(10, 20, 23, 0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.page-gallery-arrow:hover {
  background: rgba(10, 20, 23, 0.7);
}

.page-gallery-arrow.prev { left: 14px; }
.page-gallery-arrow.next { right: 14px; }

.page-gallery-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(10, 20, 23, 0.55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- Página-índice (grade de categorias) ---------- */

.page-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.page-index-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease),
    border-color 200ms var(--ease);
}

.page-index-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.page-index-arrow {
  color: var(--accent);
  transition: transform 200ms var(--ease);
}

.page-index-card:hover .page-index-arrow {
  transform: translateX(4px);
}

@media (max-width: 540px) {
  .convenio-item {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  color: color-mix(in srgb, #fff 78%, var(--brand));
  background:
    radial-gradient(60% 120% at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 94%, black), color-mix(in srgb, var(--brand) 78%, black));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 40px;
  padding: clamp(48px, 6vw, 80px) var(--gutter) clamp(28px, 4vw, 44px);
}

.footer-logo {
  max-height: 64px;
  width: auto;
  margin-bottom: 18px;
  padding: 8px 12px;
  background: #fff;
  border-radius: 12px;
}

.footer-mark {
  margin-bottom: 18px;
}

.footer-tagline {
  margin: 0 0 22px;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.74);
}

.footer-quick {
  display: flex;
  gap: 18px;
  font-weight: 600;
}

.footer-quick a {
  color: #fff;
  text-decoration: none;
  opacity: 0.86;
}

.footer-quick a:hover {
  opacity: 1;
  color: var(--accent);
}

.site-footer .site-search {
  margin-top: 18px;
}

.site-footer .site-search input {
  width: min(260px, 100%);
}

.site-footer .social-links {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer .social-links a:hover {
  color: var(--accent);
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
}

/* Com o rodapé configurado pelo tenant, o grid tem três filhos: a marca e o
   conteúdo ocupam as duas colunas e o menu cai sozinho numa segunda linha.
   Sem isto ele fica espremido na primeira coluna, com metade do rodapé vazia. */
.footer-grid:has(.footer-rich) .footer-columns {
  grid-column: 1 / -1;
}

.footer-column h3 {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

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

.footer-column a,
.footer-rich a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.96rem;
}

.footer-column a:hover,
.footer-rich a:hover {
  color: #fff;
}

.footer-rich {
  color: rgba(255, 255, 255, 0.78);
}

/* O conteúdo do rodapé configurado no painel usa as mesmas classes do
   template padrão, cujas regras vivem no site.css — que o Aurora não carrega.
   Sem o bloco abaixo, cartões, listas, logo e formulário caem no estilo bruto
   do navegador. As cores aqui são para fundo escuro. */
.footer-rich .footer-feature-grid,
.footer-rich .footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.footer-rich .footer-card,
.footer-rich .footer-nav-group {
  min-width: 0;
}

.footer-rich .footer-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 20px;
}

.footer-rich .footer-card h2,
.footer-rich .footer-card h3 {
  color: var(--accent);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.footer-rich .footer-brand-block {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-rich .footer-brand-block img {
  background: #fff;
  border-radius: 10px;
  max-height: 56px;
  object-fit: contain;
  padding: 6px 8px;
  width: 82px;
}

.footer-rich ul {
  display: grid;
  gap: 9px;
  /* Sem limitar a coluna, a trilha do grid cresce até o maior item e vaza. */
  grid-template-columns: minmax(0, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-rich li {
  line-height: 1.45;
}

/* `anywhere`, e não `break-word`: só ele reduz a largura mínima do conteúdo,
   que é o que deixa o grid encolher. Sem isto, um endereço de e-mail longo
   vira um token indivisível e estica o cartão inteiro. */
.footer-rich li,
.footer-rich p,
.footer-rich a {
  overflow-wrap: anywhere;
}

.footer-rich p {
  margin: 0 0 12px;
}

.footer-rich time {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  margin-right: 6px;
}

.footer-rich .footer-newsletter {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.footer-rich .footer-newsletter input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  font: inherit;
  min-height: 42px;
  padding: 0 12px;
  width: 100%;
}

.footer-rich .footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.footer-rich .footer-newsletter input:focus-visible,
.footer-rich .footer-newsletter button:focus-visible,
.footer-rich .footer-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.footer-rich .footer-newsletter button,
.footer-rich .footer-cta {
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: color-mix(in srgb, var(--brand) 82%, black);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  min-height: 42px;
  padding: 0 18px;
  text-decoration: none;
}

.footer-rich .footer-newsletter button {
  justify-self: start;
}

.footer-rich .footer-cta {
  align-items: center;
  display: inline-flex;
  margin-top: 14px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Scroll reveal ---------- */

/* Reveal only applies when JS is active (progressive enhancement):
   without JS, content is always visible. The `js` class is set in <head>
   before first paint, so there is no flash of hidden content. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

/* Stagger items inside a grid for a cascading entrance */
.news-grid .reveal.is-visible,
.quicklinks .reveal.is-visible {
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ---------- Keyframes ---------- */

@keyframes kenburns {
  from { transform: scale(1.14) translate3d(0, 0, 0); }
  to { transform: scale(1.26) translate3d(-2.5%, -2%, 0); }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

@keyframes heroFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

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

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
}

/* Mega-menu denso: vira hambúrguer/acordeão já em telas médias. */
@media (max-width: 1180px) {
  .site-search--header {
    display: none;
  }

  .site-search--nav {
    display: flex;
    width: 100%;
    padding: 10px 0 2px;
  }

  .site-search--nav input {
    flex: 1;
    width: auto;
    border-radius: 12px;
  }

  .site-search--nav button {
    border-radius: 12px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto;
    inset: calc(64px + env(safe-area-inset-top)) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 16px var(--gutter) 24px;
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px - env(safe-area-inset-top));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    transition: transform 240ms var(--ease), opacity 240ms var(--ease),
      visibility 240ms var(--ease);
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 13px 14px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .nav-group {
    width: 100%;
  }

  .nav-group-btn {
    width: 100%;
    justify-content: space-between;
    padding: 13px 14px;
    font-size: 1rem;
    border-radius: 12px;
  }

  .nav-group-btn[aria-expanded="true"] .nav-caret {
    transform: rotate(180deg);
  }

  .nav-sub {
    position: static;
    min-width: 0;
    display: none;
    padding: 2px 0 8px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .nav-sub.is-open {
    display: grid;
    opacity: 1;
    visibility: visible;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Hero carousel: compact controls into a stories-style bar */
  .hero-carousel {
    min-height: clamp(480px, 78vh, 620px);
  }

  .hero-slide-inner {
    padding-bottom: 132px;
  }

  .hero-ui {
    left: var(--gutter);
    right: var(--gutter);
    bottom: 22px;
    width: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .hero-count {
    order: 2;
    font-size: 1.1rem;
  }

  .hero-index {
    order: 1;
    flex: 1;
    flex-direction: row;
    gap: 8px;
  }

  .hero-index-item {
    grid-template-columns: 1fr;
    padding: 0;
    border: 0;
  }

  .hero-index-item:last-child {
    border: 0;
  }

  .hero-index-num,
  .hero-index-label {
    display: none;
  }

  .hero-index-track {
    height: 3px;
  }

  .hero-arrows {
    order: 3;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
  }

  .directory-showcase,
  .directory-archive {
    margin-inline: calc(var(--gutter) * -0.45);
    border-radius: 0;
  }

  .directory-section-head {
    display: block;
  }

  .directory-section-head p {
    margin-bottom: 8px;
  }

  .directory-slide a {
    min-height: 420px;
  }

  .directory-slide span {
    width: 100%;
    padding: 120px 22px 26px;
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .directory-carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }

  .directory-carousel-arrow.prev {
    left: 8px;
  }

  .directory-carousel-arrow.next {
    right: 8px;
  }

  .directory-card-grid,
  .directory-archive-list {
    grid-template-columns: 1fr;
  }
}

@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;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

.association-application {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 108px) 0;
}

.association-application__intro {
  max-width: 760px;
  margin-bottom: 32px;
}

.association-application__intro h1,
.application-success h2 {
  margin: 0;
}

.association-application__intro p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.application-success {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--brand), transparent 78%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand), transparent 94%);
}

.application-warning {
  color: #8a5a00;
  font-weight: 700;
}

.association-form {
  display: grid;
  gap: 24px;
}

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

.form-field {
  display: grid;
  gap: 8px;
}

.form-field--full,
.form-field--checkbox {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink);
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

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

.form-field--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
}

.form-field--checkbox input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}

.form-field small {
  color: var(--muted);
}

.form-error {
  color: #b42318 !important;
  font-weight: 700;
}

.member-portal {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 108px) 0;
}

.member-portal__intro {
  max-width: 760px;
  margin-bottom: 32px;
}

.member-portal__intro h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

/* Telas logadas: o título é uma saudação, não a capa da página. */
.member-portal--dashboard .member-portal__intro h1,
.member-portal--profile .member-portal__intro h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.12;

  /* Nome comprido não pode empurrar a saudação para uma segunda linha. */
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* A saudação encolhe conforme o tamanho do nome para caber inteira em uma linha. */
.member-portal__intro h1.member-greeting {
  font-size: clamp(0.9rem, calc(min(760px, 100vw - 48px) / (var(--greeting-chars, 24) * 0.56)), 2.6rem);
}

.member-portal__intro p,
.member-portal__footnote {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.member-login-form {
  display: grid;
  gap: 24px;
  max-width: 760px;
}

.member-login-form__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.member-login-form__actions a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.form-grid--compact {
  max-width: 760px;
}

.member-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--brand), transparent 82%);
}

.member-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-nav__link {
  display: inline-block;
  padding: 6px 0;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.member-nav__link:hover,
.member-nav__link.is-active {
  color: var(--brand);
}

.member-nav__link.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.member-nav__logout {
  color: var(--brand);
  font-weight: 850;
  text-decoration: none;
}

.member-status-panel,
.member-portal-message {
  padding: 26px;
  border: 1px solid color-mix(in srgb, var(--brand), transparent 78%);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand), transparent 94%);
}

.member-status-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.member-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.member-status-badge--under_review,
.member-status-badge--needs_changes,
.member-status-badge--erp_sync_pending {
  background: #8a5a00;
}

.member-status-badge--rejected,
.member-status-badge--disabled,
.member-status-badge--erp_sync_failed {
  background: #b42318;
}

.member-status-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin: 22px 0 0;
}

.member-status-list dt {
  color: var(--muted);
  font-weight: 850;
}

.member-status-list dd {
  margin: 4px 0 0;
}

.member-portal-message {
  margin-top: 18px;
  color: var(--ink);
}

.member-portal-message--success {
  border-color: color-mix(in srgb, var(--brand), transparent 55%);
  background: color-mix(in srgb, var(--brand), transparent 90%);
}

.member-portal-message--warning {
  border-color: #f0c36a;
  background: #fff8e8;
}

.member-profile-section {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.member-profile-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}

@media (max-width: 760px) {
  .association-application {
    width: min(100% - 28px, 1120px);
  }

  .member-portal {
    width: min(100% - 28px, 1120px);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .site-search {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer .site-search input {
    width: 100%;
  }
}


/* Áreas de lazer e título de grupo do menu com destino próprio. */
/* ==========================================================================
   Áreas de lazer — vitrine com todas as colônias do ERP em uma página, cada
   cartão levando ao fluxo de reserva na área do associado.
   ========================================================================== */

.leisure-areas {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 32px) clamp(48px, 7vw, 90px);
}

.leisure-areas-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

.leisure-areas-intro {
  font-size: 1.08rem;
  color: color-mix(in srgb, var(--ink) 88%, var(--muted));
}

.leisure-areas-note {
  margin: 32px 0 0;
  font-size: 0.96rem;
  color: var(--muted);
}

.leisure-areas-empty {
  margin: 32px 0 0;
  padding: 22px 24px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

/* Grupo do menu com título clicável: o texto vira link e o cursor fica só no
   caret, que abre o submenu no toque. */
.nav-group-head {
  display: inline-flex;
  align-items: center;
}

.nav-group-caret {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px 8px 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.nav-group-caret[aria-expanded="true"] .nav-caret,
.nav-group:hover .nav-group-caret .nav-caret {
  transform: rotate(180deg);
}

.nav-group-head {
    width: 100%;
    justify-content: space-between;
  }

.nav-group-head .nav-group-btn {
    flex: 1;
  }


/* Cartoes da vitrine de areas de lazer. */
.leisure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.leisure-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease),
    border-color 220ms var(--ease);
}

.leisure-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}

.leisure-card-media {
  margin: 0;
  aspect-ratio: 16 / 10;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

.leisure-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leisure-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 24px 24px 26px;
}

.leisure-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
}

.leisure-card-location {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--brand) 62%, var(--accent));
}

.leisure-card-text {
  margin: 0;
  color: color-mix(in srgb, var(--ink) 86%, var(--muted));
}

.leisure-card-facts {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
  color: var(--muted);
}

.leisure-card-facts li {
  padding-left: 16px;
  position: relative;
}

.leisure-card-facts li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.leisure-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1.05rem;
}

/* ==========================================================================
   Página de venda: template único para todas as associações. Herói com a
   oferta, corpo em seções de landing (.lp-*, editáveis no CMS), fechamento
   com formulário de interesse e barra fixa no celular. Conteúdo vem do ERP e
   da própria página; nada de número ou depoimento inventado aqui.
   ========================================================================== */

.sales-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 22px 80px;
}

.sales-page__unavailable {
  padding: 24px 0;
}

/* Com corpo em seções, o herói é só a abertura: menos respiro até a primeira. */
.sales-page--rich .sales-hero {
  margin-bottom: 24px;
}

/* ---------- Herói ---------- */

.sales-hero {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}

.sales-hero__copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.6vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.sales-hero__copy .lead {
  margin-bottom: 0;
}

.sales-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 26px 0 0;
}

.sales-hero__cta-note {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.sales-hero__offer {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 22px 0 0;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  font-size: 0.95rem;
}

.sales-hero__offer-name {
  font-weight: 600;
  color: var(--muted);
}

.sales-hero__offer-price {
  font-size: 1.15rem;
  color: var(--brand);
}

.sales-hero__media {
  position: relative;
  width: 100%;
  margin: 0;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: var(--radius);
  object-fit: cover;
}

.sales-hero__media .hero-image {
  aspect-ratio: 5 / 4;
  margin: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- Corpo: seções de landing ---------- */

.lp-content {
  margin: 0;
}

.lp-content > p:first-of-type::first-letter {
  float: none;
  padding: 0;
  font: inherit;
  color: inherit;
}

.lp-content img {
  margin: 0;
  border-radius: 0;
}

.lp-content .btn,
.lp-content .btn:hover {
  text-decoration: none;
}

.lp-nav {
  position: sticky;
  top: 96px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 8px 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lp-nav__links {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.lp-nav__links::-webkit-scrollbar {
  display: none;
}

.lp-content .lp-nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 200ms var(--ease), color 200ms var(--ease);
}

.lp-content .lp-nav__links a:hover {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  color: var(--brand);
}

.lp-nav__cta {
  flex: 0 0 auto;
}

.lp-section {
  padding: 56px 0;
  scroll-margin-top: 96px;
}

.lp-section--soft {
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--brand) 6%, var(--surface));
  clip-path: inset(0 -100vmax);
}

.lp-section--brand {
  color: #fff;
  background: color-mix(in srgb, var(--brand) 78%, black);
  box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--brand) 78%, black);
  clip-path: inset(0 -100vmax);
}

.lp-section--brand .eyebrow {
  color: var(--accent);
}

.lp-content .lp-section--brand h2 {
  color: #fff;
}

.lp-section__head {
  max-width: 720px;
  margin: 0 0 32px;
}

.lp-content .lp-section__head h2,
.lp-content .lp-split__copy h2,
.lp-content .lp-band__title {
  margin: 6px 0 12px;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lp-section__intro {
  margin: 0;
  font-size: 1.08rem;
  color: var(--muted);
}

.lp-section--brand .lp-section__intro {
  color: rgba(255, 255, 255, 0.78);
}

.lp-note {
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.lp-section--brand .lp-note {
  color: rgba(255, 255, 255, 0.7);
}

.lp-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.lp-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}

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

.lp-card__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  color: var(--brand);
}

.lp-card__icon svg {
  width: 26px;
  height: 26px;
}

.lp-content .lp-card__title {
  margin: 0;
  font-size: 1.15rem;
}

.lp-card__text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
}

.lp-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lp-stat {
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.lp-stat__value {
  display: block;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.lp-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.lp-places {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.lp-content .lp-place {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease);
}

.lp-content .lp-place:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.lp-place__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.lp-content .lp-place__media img,
.lp-content .lp-place__media picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease);
}

.lp-content .lp-place:hover .lp-place__media img {
  transform: scale(1.05);
}

.lp-place__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px 20px;
}

.lp-place__title {
  font-size: 1.1rem;
  font-weight: 750;
  color: var(--ink);
}

.lp-place__meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.lp-place__tags,
.lp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.lp-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
}

.lp-tags--big {
  gap: 10px;
}

.lp-tags--big .lp-tag {
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.02rem;
  box-shadow: var(--shadow-sm);
}

.lp-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 28px 0 0;
}

.lp-actions__alt {
  font-weight: 600;
}

.lp-compare {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.lp-compare__item {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.lp-content .lp-compare__name {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.lp-compare__name small {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.lp-compare__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.lp-compare__row strong {
  font-variant-numeric: tabular-nums;
}

.lp-compare__saving {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 18%, var(--surface));
  font-size: 0.92rem;
}

.lp-groups {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.lp-group {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.lp-content .lp-group__title {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--brand);
}

.lp-content .lp-group__list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.lp-content .lp-group__list a {
  text-decoration: none;
}

.lp-content .lp-group__list a:hover {
  text-decoration: underline;
}

.lp-split {
  display: grid;
  gap: 28px;
  align-items: center;
}

.lp-content .lp-split__media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.lp-content .lp-split__media img,
.lp-content .lp-split__media picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-split__copy p {
  font-size: 1.02rem;
}

.lp-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-step {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.lp-step__num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

.lp-content .lp-step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.lp-step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.lp-faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.lp-content .lp-faq__item {
  margin: 0;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: box-shadow 200ms var(--ease);
}

.lp-content .lp-faq__item[open] {
  box-shadow: var(--shadow-sm);
}

.lp-faq__q {
  position: relative;
  padding: 16px 40px 16px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.lp-faq__q::-webkit-details-marker {
  display: none;
}

.lp-faq__q::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  color: var(--brand);
  font-weight: 700;
  transform: translateY(-50%);
  transition: transform 250ms var(--ease);
}

.lp-faq__item[open] .lp-faq__q::after {
  transform: translateY(-50%) rotate(45deg);
}

.lp-faq__a {
  padding: 0 0 18px;
  font-size: 0.98rem;
  animation: lp-fade 300ms var(--ease);
}

.lp-faq__a p,
.lp-faq__a ul {
  margin: 0;
}

.lp-faq__a ul {
  padding-left: 1.2rem;
}

@keyframes lp-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.lp-band {
  position: relative;
  overflow: hidden;
  margin: 56px 0 0;
  padding: clamp(40px, 6vw, 72px) clamp(22px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 78%, black));
  color: #fff;
  text-align: center;
}

.lp-band::before {
  content: "";
  position: absolute;
  right: -20%;
  bottom: -60%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%);
  pointer-events: none;
}

.lp-content .lp-band__title {
  max-width: 760px;
  margin: 0 auto 12px;
  color: #fff;
}

.lp-band__text {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
}

.lp-band .lp-actions {
  justify-content: center;
}

.lp-band__note {
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.8);
}

.lp-content .lp-band__note a {
  color: #fff;
}

/* Cards de oferta (convite e área de vendas): preço e o que o indicador ganha. */
.lp-card__price {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand);
}

.lp-card__gain {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  color: color-mix(in srgb, var(--brand) 82%, black);
  font-size: 0.9rem;
  font-weight: 700;
}

.lp-card__meta {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.lp-status {
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  font-weight: 600;
}

/* Código e links de indicação com botão de copiar. */
.referral-box {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.referral-box--inline {
  margin-top: 6px;
  padding: 14px;
  box-shadow: none;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}

.referral-box label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

.referral-box input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.referral-box--inline input {
  background: var(--surface);
}

.referral-box__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.referral-box__status {
  font-size: 0.9rem;
  color: var(--muted);
}

.referral-box__help {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.lp-grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.lp-page .lp-content > .lp-section:first-child {
  padding-top: 24px;
}

.sales-close__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.member-portal--seller .lp-content {
  margin-top: 8px;
}

.member-portal--seller .member-portal__intro h1 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

/* Código de indicação no painel e no perfil: campo legível com o botão ao lado. */
.member-referral-code {
  display: grid;
  gap: 6px;
  max-width: 520px;
  font-size: 0.92rem;
  font-weight: 700;
}

.member-referral-code input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.member-summary--referral .member-summary__body {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.member-summary--referral .member-summary__body p {
  margin: 0;
}

/* Entrada suave das seções; sem JS (ou com movimento reduzido) tudo aparece. */
.lp-js .lp-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

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

/* ---------- Fechamento: oferta e formulário ---------- */

.sales-close {
  margin: 48px 0 0;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  scroll-margin-top: 96px;
}

.sales-close__grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.sales-offer {
  min-width: 0;
}

.sales-offer__card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.sales-offer__name {
  margin: 4px 0 0;
  font-size: 1.25rem;
}

.sales-offer__price {
  margin: 12px 0 0;
  font-size: clamp(1.7rem, 3.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand);
}

.sales-offer__price--quote {
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
}

.sales-offer__note {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.sales-offer__points {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.sales-offer__points li {
  position: relative;
  padding-left: 20px;
}

.sales-offer__points li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

.sales-terms {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.sales-terms h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.sales-terms__body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.sales-form {
  min-width: 0;
}

.sales-form h2 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.sales-form__intro {
  margin: 10px 0 22px;
  color: var(--muted);
}

.sales-form__form {
  display: grid;
  gap: 18px;
}

.sales-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ---------- Barra fixa (só no celular) ---------- */

.sales-sticky {
  display: none;
}

@media (min-width: 900px) {
  .sales-hero--media {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
  }

  .lp-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lp-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }

  .lp-split--reverse .lp-split__media {
    order: 2;
  }

  .lp-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sales-close__grid {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 40px;
  }

  .sales-close__grid--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .sales-offer__card {
    position: sticky;
    top: 92px;
  }
}

@media (max-width: 899px) {
  .lp-nav {
    position: static;
    padding: 6px;
    border-radius: 16px;
  }

  .lp-nav__cta {
    display: none;
  }

  .lp-section {
    padding: 40px 0;
  }

  .sales-page {
    padding-bottom: 96px;
  }

  .sales-sticky {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 18px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .sales-sticky__price {
    font-weight: 800;
  }

  .sales-sticky .btn {
    flex: 0 0 auto;
  }

  /* O convite de instalação do PWA também é fixo no rodapé e tem z-index
     maior: nas páginas de venda ele sobe para não cobrir a barra de oferta. */
  body:has(.sales-sticky) .pwa-install-prompt {
    bottom: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-js .lp-reveal,
  .lp-card,
  .lp-content .lp-place,
  .lp-content .lp-place__media img,
  .lp-faq__a {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}
