/* Relato de presença — Clínica do Grão */
.presenca-hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  align-items: end;
  color: #fff;
  background: #0f2f22 center/cover no-repeat;
  overflow: hidden;
}

.presenca-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 47, 34, 0.15) 0%, rgba(15, 47, 34, 0.82) 70%, rgba(15, 31, 24, 0.94) 100%);
}

.presenca-hero-inner {
  position: relative;
  z-index: 1;
  padding: 48px 0 40px;
  max-width: 760px;
}

.presenca-hero .page-kicker {
  color: #f2c85b;
}

.presenca-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: #fff;
}

.presenca-hero p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.presenca-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.presenca-facts span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
}

.presenca-story {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.presenca-copy h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.presenca-copy p {
  margin: 0 0 22px;
  color: var(--cg-text);
  line-height: 1.65;
}

.presenca-side {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--cg-line);
  border-radius: var(--cg-radius-lg);
  box-shadow: var(--cg-shadow-sm);
  padding: 22px;
}

.presenca-side h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.presenca-side ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.presenca-side li {
  padding: 10px 0;
  border-top: 1px solid var(--cg-line);
  font-size: 0.92rem;
  line-height: 1.45;
}

.presenca-side li strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cg-muted);
  font-weight: 700;
}

.presenca-feed-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 18px;
}

.presenca-feed-head h2 {
  margin: 0;
}

.presenca-feed-head p {
  margin: 6px 0 0;
  color: var(--cg-muted);
}

.presenca-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.presenca-card {
  grid-column: span 2;
  margin: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--cg-line);
  box-shadow: var(--cg-shadow-sm);
}

.presenca-card:first-child {
  grid-column: span 4;
}

.presenca-card--turma {
  grid-column: 1 / -1;
  width: 100%;
}

.presenca-card button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0f2f22;
  cursor: zoom-in;
}

.presenca-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 20%;
}

.presenca-card:first-child img {
  aspect-ratio: 4 / 3;
  object-position: center 30%;
}

.presenca-card--turma img {
  width: 100%;
  height: auto;
  aspect-ratio: 3840 / 3185;
  object-fit: contain;
  object-position: center center;
}

.presenca-card figcaption {
  padding: 14px 16px 16px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.presenca-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--cg-green-soft);
  border-radius: var(--cg-radius-lg);
  padding: 22px 24px;
}

.presenca-next h2 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.presenca-next p {
  margin: 0;
  color: var(--cg-muted);
}

.presenca-lightbox {
  border: 0;
  padding: 0;
  width: min(1280px, calc(100vw - 32px));
  background: transparent;
  color: #fff;
}

.presenca-lightbox::backdrop {
  background: rgba(8, 18, 14, 0.88);
}

.presenca-lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 16px;
  background: #0f2f22;
}

.presenca-lightbox p {
  margin: 12px 4px 0;
  line-height: 1.45;
}

.presenca-lightbox form {
  margin: 0;
}

.presenca-lightbox button {
  margin-top: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 900px) {
  .presenca-story,
  .presenca-grid {
    grid-template-columns: 1fr 1fr;
  }

  .presenca-card,
  .presenca-card:first-child,
  .presenca-card--turma {
    grid-column: span 1;
  }

  .presenca-card:first-child,
  .presenca-card--turma {
    grid-column: span 2;
  }

  .presenca-side {
    position: static;
  }
}

@media (max-width: 640px) {
  .presenca-grid,
  .presenca-story {
    grid-template-columns: 1fr;
  }

  .presenca-card,
  .presenca-card:first-child,
  .presenca-card--turma {
    grid-column: auto;
  }
}
