
/* ==========================================================================
   BASE GLOBAL E HOME
   ========================================================================== */

/* ==========================================================
   VARIÁVEIS E RESET
========================================================== */
:root {
  --pink: #cf0063;
  --lime: #c9dd00;
  --mint: #91cec4;
  --ink: #111;
  --content: 980px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "filson-soft", Arial, Helvetica, sans-serif;
}
body.menu-open {
  overflow: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

.section {
  width: min(var(--content), calc(100% - 48px));
  margin: auto;
  padding: 76px 0;
  text-align: center;
}
h2 {
  margin: 0 0 34px;
  color: var(--pink);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  line-height: 1;
}
.band-lime {
  background: var(--lime);
}
.band-mint {
  background: var(--mint);
}

/* ==========================================================
   HEADER
========================================================== */
.header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  color: #fff;
  background: transparent;
  transition:
    background 0.25s,
    box-shadow 0.25s;
}


.header.is-scrolled {
  background: transparent;
  box-shadow: none;
}
.nav-wrap {
  width: min(1120px, calc(100% - 40px));
  height: 110px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo {
  flex: 0 0 150px;
}
.logo img {
  width: 143px;
  max-height: 91px;
  object-fit: contain;
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 27px 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 18px;
  height: 2px;
  background: var(--lime);
  transition: right 0.2s;
}
.nav a:hover::after,
.nav a:focus-visible::after {
  right: 0;
}
.donate.top {
  padding: 11px 18px;
  color: #fff;
  background: var(--pink);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}
.search-button {
  width: 43px;
  height: 43px;
  padding: 9px;
  border: 0;
  background: var(--pink);
  display: grid;
  place-items: center;
}
.search-button img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
}
.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  transition:
    transform 0.2s,
    opacity 0.2s;
}
.menu-button.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-button.is-open span:nth-child(2) {
  opacity: 0;
}
.menu-button.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================
   HERO — PÁGINA CASA DE VÓ
========================================================== */

.casa-hero {
  position: relative;
  width: 100%;
  min-height: 740px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    url("../imgs/Casa-de-Vo-background-top.jpg")
    center 44% / cover no-repeat;
}

.casa-hero__shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.68),
      rgba(0, 0, 0, 0.06) 65%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.4),
      transparent 30%
    );
}

.casa-hero__frame {
  position: relative;
  z-index: 2;
  width: min(710px, calc(100% - 80px));
  min-height: 450px;
  margin-left: max(
    7vw,
    calc((100vw - 1180px) / 2)
  );
  padding: 44px;
  border: 3px solid var(--lime);
}

.casa-hero__frame h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.casa-hero__frame h1 span {
  display: table;
  margin-bottom: 10px;
  padding: 2px 10px 7px;
  color: var(--pink);
  background: var(--lime);
}

.casa-hero__message {
  position: absolute;
  left: 44px;
  bottom: 34px;
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.14;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 940px) {

  .casa-hero {
    min-height: 620px;
  }

  .casa-hero__frame {
    width: calc(100% - 56px);
    min-height: 400px;
    margin: 45px 28px 0;
  }
}


/* ==========================================================
   CELULAR
========================================================== */

@media (max-width: 700px) {

  .casa-hero {
    min-height: 570px;
    padding: 112px 18px 38px;
    background-position: 61% center;
  }

  .casa-hero__shade {
    background:
      linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.72),
        rgba(0, 0, 0, 0.22)
      );
  }

  .casa-hero__frame {
    width: 100%;
    min-height: 390px;
    margin: 0;
    padding: 28px 22px;
  }

  .casa-hero__frame h1 {
    font-size: clamp(34px, 10vw, 47px);
  }

  .casa-hero__message {
    left: 22px;
    bottom: 29px;
    font-size: 21px;
  }
}
/* ==========================================================
   HERO
========================================================== */
.hero {
  position: relative;
  height: min(50vw, 870px);
  min-height: 870px;
  display: flex;
  align-items: center;
  background: url("../imgs/imagem-header-casa-de-sossego.jpg") center / cover
    no-repeat;
}
.hero-content {
  position: relative;
  width: 80%;
  max-width: 1100px;
  height: 100%;
  margin: auto;
  padding: 0;
}
.hero-frame {
  position: absolute;
  z-index: 0;
  inset: 16% 0 12%;
  border: 5px solid var(--lime);
  pointer-events: none;
}
.hero h1 {
  position: absolute;
  z-index: 1;
  top: 24%;
  left: 4.5%;
  margin: 0;
  font-size: clamp(28px, 2.3vw, 36px);
  font-weight: 800;
  line-height: 1.88;
  letter-spacing: -0.5px;
}
.hero h1 mark {
  display: inline;
  padding: 4px 10px 5px;
  color: var(--pink);
  background: var(--lime);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero p {
  position: absolute;
  z-index: 1;
  top: 49%;
  left: 4.5%;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
@media (max-width: 560px) {
    .hero p {

        font-size: 22px !important;

    }
}
.hero-actions {
  position: absolute;
  z-index: 1;
  right: 4.5%;
  bottom: 5.5%;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
}
.hero-actions a {
  min-width: 200px;
  min-height: 85px;
  padding: 9px 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--pink);
  transition: transform 0.2s;
}
.hero-actions a:hover {
  transform: translateY(-3px);
}
.hero-actions img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.hero-actions span {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-actions .volunteer {
  background: #a7ddd3;
}
.hero-actions .volunteer span {
  color: var(--pink);
}

/* ==========================================================
   AGENDA E BOTÕES
========================================================== */
.agenda {
  min-height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 46px;
}
.agenda-icon {
  width: 140px;
  height: 140px;
  object-fit: contain;
}
.agenda h2 {
  margin-bottom: 18px;
}
.button {
  display: inline-flex;
  min-width: 172px;
  justify-content: center;
  padding: 9px 17px;
  border-radius: 999px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    transform 0.2s,
    filter 0.2s;
}
.button:hover {
  transform: translateY(-2px);
  filter: brightness(0.95);
}
.button.pink {
  background: var(--pink);
}
.button.lime {
  color: var(--pink);
  background: var(--lime);
}
/* ==========================================================
   PÁGINA QUERO SER VOLUNTÁRIO
========================================================== */
.volunteer-page-body {
  background: #fff;
}
.volunteer-hero {
  min-height: 942px;
  padding: 130px 0 80px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 34%), rgb(0 0 0 / 3%) 70%),
    url("../imgs/imagem-header-voluntario.jpg") center 50% / cover no-repeat;
}
.volunteer-hero__frame {
  position: relative;
  width: min(1440px, calc(100% - 48px));
  min-height: 644px;
  margin: auto;
  border: 3px solid var(--lime);
}
.volunteer-hero h1 {
  position: absolute;
  top: 42px;
  left: 40px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--pink);
  font-size: clamp(30px, 3.2vw, 43px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: lowercase;
}
.volunteer-hero h1 span {
  padding: 7px 11px 8px;
  background: var(--lime);
}
.volunteer-hero__message {
  position: absolute;
  left: 40px;
  bottom: 286px;
  max-width: 360px;
  margin: 0;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgb(0 0 0 / 45%);
}
.volunteer-content {
  width: min(760px, calc(100% - 48px));
  margin: auto;
  padding: 72px 0 100px;
}
.volunteer-content h2 {
  margin: 0 0 28px;
  color: var(--pink);
  font-size: clamp(32px, 3.2vw, 43px);
  font-weight: 800;
  text-transform: lowercase;
}
.volunteer-intro {
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 1.35;
}
.volunteer-intro p {
  margin: 0 0 20px;
}
.volunteer-form {
  width: min(560px, 100%);
  margin: 0 auto;
}
.volunteer-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.volunteer-form input,
.volunteer-form textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 14px 16px;
  border: 1px solid #c8c8c8;
  border-radius: 5px;
  color: #333;
  background: #fff;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.volunteer-form input {
  min-height: 52px;
}
.volunteer-form textarea {
  min-height: 145px;
  resize: vertical;
}
.volunteer-form input:focus,
.volunteer-form textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgb(216 0 102 / 12%);
}
.volunteer-form__submit {
  min-height: 48px;
  margin: 28px auto 0;
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  display: block;
  color: #fff;
  background: var(--pink);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease;
}
.volunteer-form__submit:hover,
.volunteer-form__submit:focus-visible {
  background: #b90059;
  transform: translateY(-2px);
}

/* ==========================================================
   CURSOS E OFICINAS
========================================================== */
.workshops .section {
  width: min(1120px, calc(100% - 48px));
  padding: 30px 0 28px;
}
.workshops h2 {
  margin-bottom: 10px;
  font-size: clamp(30px, 3vw, 42px);
}
.workshop-slider {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 22px;
  align-items: start;
}
.workshop-viewport {
  min-width: 0;
  overflow: hidden;
}
.workshop-track {
  display: flex;
  gap: 20px;
  will-change: transform;
}
.card-grid {
  display: grid;
  gap: 18px;
}
.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.work-card {
  min-width: 0;
  flex: 0 0 calc((100% - 60px) / 4);
  text-align: left;
}
.work-card img {
  width: 100%;
  aspect-ratio: 1.78;
  border: 2px solid #fff;
  border-radius: 7px;
  object-fit: cover;
}
.work-card h3 {
  min-height: 43px;
  margin: 7px 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgb(0 0 0 / 18%);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.12;
}
.work-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.3;
}
.workshop-arrow {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--mint);
  background: #fff;
  font: 700 24px/18px Arial, sans-serif;
  display: grid;
  place-items: center;
  margin-top: clamp(42px, 4.5vw, 61px);
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}
.workshop-prev {
  margin-right: -11px;
  justify-self: start;
}
.workshop-next {
  margin-left: -11px;
  justify-self: end;
}
.workshop-arrow:hover,
.workshop-arrow:focus-visible {
  color: #fff;
  background: var(--pink);
  transform: scale(1.08);
}
.workshops .button {
  margin-top: 24px;
}

/* ==========================================================
   NOTÍCIAS
========================================================== */
.news-card {
  text-align: left;
}
.news-card img {
  width: 100%;
  aspect-ratio: 1.48;
  object-fit: cover;
  border-radius: 10px;
}
.news-card h3 {
  margin: 11px 0 5px;
  font-size: 15px;
}
.news-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}
.news .button {
  margin-top: 38px;
}
.news {
  text-align: left;
}
.news h2 {
  display: inline-block;
  margin: 0 14px 9px 0;
  
}
.subtitle {
  display: inline-block;
  margin: 0;
  font-size: 19px;
   font-weight: bold;
    padding-bottom: 40px;
    width: 100%
}
.news-card img {
  aspect-ratio: 1.55;
}
.news .button {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.news .button:hover {
  transform: translateX(-50%) translateY(-2px);
}

/* ==========================================================
   SOBRE
========================================================== */
.generations {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}
.generations-copy h2 {
  text-align: justify;
}
.generations-copy p {
  font-size: 14px;
  line-height: 1.52;
}
.generations > img {
  width: 100%;
  border: 3px solid var(--pink);
  border-radius: 22px;
}
.generations > .button {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: -12px;
}

/* ==========================================================
   AÇÕES
========================================================== */
.care {
  color: #fff;
  background: var(--pink);
}
.care .section {
  text-align: left;
}
.care h2 {
  color: var(--lime);
  text-align: center;
}
.care p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
    text-align: justify
}
.care-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 22px;
  margin: 42px 0;
}
.care-grid div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.care-grid img {
  width: 120px;
  height: 120px;
  margin-bottom: 10px;
  object-fit: contain;
}
.care-grid span {
  max-width: 155px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

/* ==========================================================
   SLIDER DE PROJETOS
========================================================== */
.projects.section {
  width: 100%;
  max-width: none;
  padding-inline: 24px;
}
.projects h2 {
  color: #fff;
}
.project-slider {
  width: min(1120px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}
.project-viewport {
  overflow: hidden;
}
.project-row {
  width: auto;
  margin: 0;
  display: flex;
  gap: 12px;
  transition: transform 0.45s ease;
}
.project-row > div {
  min-width: 0;
  height: 210px;
  padding: 0;
  overflow: hidden;
  flex: 0 0 calc((100% - 36px) / 4);
  display: flex;
  align-items: center;
  background: #fff;
  border: 3px solid var(--pink);
  border-radius: 8px;
}
.project-row img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.slider-arrow {
  width: 42px;
  height: 50px;
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font:
    300 48px/1 Arial,
    sans-serif;
  display: grid;
  place-items: center;
  transition: transform 0.2s;
}
.slider-arrow:hover {
  transform: scale(1.14);
}
.dots {
  margin-top: 12px;
  color: var(--pink);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 6px;
}
.project-dots {
  min-height: 26px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
}
.project-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.project-dots button.active {
  background: var(--pink);
}

/* ==========================================================
   HISTÓRIAS E INSTAGRAM
========================================================== */
.stories {
  color: #fff;
  background: var(--pink);
}
.stories h2 {
  color: #fff;
}
.story-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.story-row img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 13px;
}
.stories .dots {
  color: var(--lime);
}
.stories .button {
  margin-top: 20px;
}
.instagram h2 {
  font-size: clamp(26px, 3vw, 38px);
}
.instagram > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.instagram img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* ==========================================================
   RODAPÉ
========================================================== */
.footer {
  padding-top: 62px;
  color: #fff;
}
.footer-grid {
  width: min(760px, calc(100% - 48px));
  margin: auto;
  padding-bottom: 54px;
  display: grid;
  grid-template-columns: 0.95fr 1.25fr;
  gap: 88px;
}
.footer-logo {
  display: block;
  width: 112px;
  margin-bottom: 28px;
}
.footer-logo img {
  width: 100%;
}
.footer-navigation nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.footer-navigation a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  transition: color 0.2s ease;
}
.footer-navigation nav > a:not(.footer-title) {
  padding-left: 16px;
}
.footer-navigation a:hover,
.footer-navigation a:focus-visible {
  color: var(--pink);
}
.footer-navigation h4,
.footer-title {
  margin: 15px 0 4px;
  font-size: 16px !important;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.footer-navigation .footer-title {
  margin-top: 0;
  padding-left: 0;
}
.footer-contact {
  padding-top: 18px;
}
.footer-contact address,
.footer-contact p {
  margin: 0 0 24px;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}
.contact-line {
  margin: 11px 0;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
}
.contact-line img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.social {
  display: flex;
  gap: 18px;
  margin: 27px 0;
}
.social img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.footer-map {
  width: 230px;
}
.copyright {
  padding: 16px 24px;
  background: rgb(0 0 0 / 12%);
  text-align: center;
  font-size: 14px;
}

/* ==========================================================
   PÁGINA QUERO DOAR
========================================================== */
.donation-page-body {
  background: #fff;
}
.donation-hero {
  min-height: 904px;
  padding: 140px 0 55px;
  display: flex;
  align-items: stretch;
  background:
    linear-gradient(rgb(0 0 0 / 8%), rgb(0 0 0 / 8%)),
    url("../imgs/quero-doar-hero.jpg") center 57% / cover no-repeat;
}
.donation-hero__frame {
  position: relative;
  width: min(1400px, calc(100% - 36px));
  margin: 0 auto;
  border: 3px solid var(--lime);
}
.donation-hero h1 {
  position: absolute;
  top: 38px;
  left: 30px;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--pink);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 800;
  line-height: 1.06;
  text-transform: lowercase;
}
.donation-hero h1 span {
  padding: 7px 11px 8px;
  background: var(--lime);
}
.donation-content {
  width: min(620px, calc(100% - 48px));
  margin: auto;
  padding: 72px 0 105px;
}
.donation-content h2 {
  margin-bottom: 32px;
  text-align: left;
  font-size: clamp(32px, 3vw, 42px);
  text-transform: lowercase;
}
.donation-copy {
  font-size: 17px;
  line-height: 1.35;
}
.donation-copy p {
  margin: 0 0 22px;
}
.donation-action {
  width: min(440px, 100%);
  margin: 58px auto 0;
  text-align: center;
}
.donation-action p {
  margin: 0 0 20px;
  font-size: 14px;
}
.donation-paybox-button {
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #00b9cb;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgb(0 185 203 / 20%);
  transition: transform .2s ease, background .2s ease;
}
.donation-paybox-button:hover,
.donation-paybox-button:focus-visible {
  color: #fff;
  background: var(--pink);
  transform: translateY(-2px);
}
.donation-action small {
  max-width: 390px;
  margin: 13px auto 0;
  display: block;
  color: #5d5d5d;
  font-size: 11px;
  line-height: 1.4;
}

/* ==========================================================
   TABLET
========================================================== */
@media (max-width: 850px) {
  .header {
    position: absolute;
  }
  .nav-wrap {
    width: calc(100% - 28px);
    height: 130px;
    gap: 12px;
  }
  .logo {
    flex-basis: 116px;
  }
  .logo img {
    width: 116px;
  }
  .menu-button {
    display: block;
    width: 58px;
    height: 58px;
    padding: 12px;
    border-radius: 5px;
    margin-left: auto;
    background: var(--pink);
  }
  .menu-button span {
    height: 4px;
    margin: 6px 0;
    border-radius: 5px;
  }
  .menu-button.is-open span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .menu-button.is-open span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  .search-button {
    width: 58px;
    height: 58px;
    padding: 12px;
    border-radius: 5px;
    display: grid;
    flex: 0 0 58px;
  }
  .search-button img {
    width: 34px;
    height: 34px;
  }
  .donate.top {
    display: none;
  }
  .nav {
    position: absolute;
    inset: 100% 0 auto;
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: rgb(207 0 99 / 98%);
    opacity: 0;
    transition:
      max-height 0.28s,
      padding 0.28s,
      opacity 0.2s;
  }
  .nav.open {
    max-height: calc(100vh - 66px);
    padding-block: 12px 20px;
    opacity: 1;
  }
  .nav a {
    padding: 13px 2px;
    font-size: 12px;
  }
  .nav a::after {
    display: none;
  }

  .hero {
    height: auto;
    min-height: 620px;
    background-position: 58% center;
  }
  .hero-content {
    width: calc(100% - 36px);
  }
  .hero-frame {
    inset: 14% 0 11%;
  }
  .hero h1 {
    top: 22%;
    left: 4%;
    font-size: 32px;
    line-height: 1.5;
  }
  .hero p {
    top: 55%;
    left: 4%;
    font-size: 24px;
  }
  .hero-actions {
    right: 4%;
    bottom: 5%;
  }

  .card-grid.three {
    grid-template-columns: repeat(2, 1fr);
  }
  .workshop-track {
    gap: 16px;
  }
  .workshop-arrow {
    margin-top: clamp(68px, 10vw, 82px);
  }
  .work-card {
    flex-basis: calc((100% - 16px) / 2);
  }
  .generations {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .generations > .button {
    grid-column: auto;
  }
  .care-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-slider {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
  }
  .project-row > div {
    height: 190px;
    flex-basis: calc((100% - 12px) / 2);
  }
  .slider-arrow {
    width: 34px;
  }
  .footer-grid {
    gap: 50px;
  }

  .donation-hero {
    min-height: 500px;
    padding-top: 130px;
    background-position: 55% center;
  }
  .donation-hero__frame {
    width: calc(100% - 36px);
  }
}

/* ==========================================================
   CELULAR
========================================================== */
@media (max-width: 560px) {
  .nav-wrap {
    width: calc(100% - 30px);
    gap: 10px;
  }
  .logo {
    flex-basis: 116px;
  }
  .menu-button,
  .search-button {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }
  .search-button img {
    width: 31px;
    height: 31px;
  }
  .section {
    width: calc(100% - 36px);
    padding: 56px 0;
  }
  h2 {
    font-size: 29px;
  }

  .hero {
    height: 720px;
    min-height: 720px;
    align-items: stretch;
    background-position: 60% center;
  }
  .hero-content {
    width: calc(100% - 32px);
    max-width: none;
  }
  .hero-frame {
    inset: 96px 0 92px;
    border-width: 5px;
      margin-top: 28px;
  }
  .hero h1 {
    top: 150px;
    left: 18px;
    right: 18px;
    font-size: clamp(25px, 7.5vw, 31px);
    line-height: 1.58;
    letter-spacing: -0.4px;
  }
  .hero h1 mark {
    padding: 3px 7px 4px;
              line-height: 1.95;
  }
  .hero p {
    top: 330px;
    left: 18px;
    font-size: 16px;
    line-height: 1.25;
  }
  .hero-actions {
    left: 18px;
    right: 18px;
    bottom: 62px;
    gap: 8px;
  }
  .hero-actions a {
    min-width: 0;
    min-height: 85px;
    flex: 1;
    padding: 9px;
  }
  .hero-actions img {
    width: 31px;
    height: 31px;
  }
  .hero-actions span {
    font-size: 9px;
  }

  .agenda {
    min-height: 220px;
    gap: 24px;
  }
  .agenda-icon {
    width: 140px;
    height: 140px;
  }
  .card-grid.three {
    grid-template-columns: 1fr;
  }
  .workshops .section {
    width: calc(100% - 20px);
    padding: 38px 0 34px;
  }
  .workshop-slider {
    grid-template-columns: 22px minmax(0, 1fr) 22px;
  }
  .workshop-arrow {
    margin-top: calc((100vw - 76px) / 3.3 - 11px);
  }
  .workshop-track {
    gap: 12px;
  }
  .work-card {
    flex-basis: 100%;
  }
  .work-card h3 {
    min-height: 0;
  }
  .work-card img,
  .news-card img {
    aspect-ratio: 1.65;
  }
  .care-grid {
    gap: 26px 12px;
  }
  .project-row > div {
    height: 210px;
    flex-basis: 100%;
  }
  .story-row {
    grid-template-columns: 1fr;
  }
  .story-row img {
    height: auto;
    aspect-ratio: 1.72;
  }
  .instagram > div {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-navigation nav > a:not(.footer-title) {
    padding-left: 15px;
  }
  .footer-contact {
    padding-top: 0;
  }
  .footer-map {
    width: 100%;
    max-width: 300px;
  }

  .donation-hero {
    min-height: 560px;
    padding: 125px 0 45px;
    background-position: 62% center;
  }
  .donation-hero__frame {
    width: calc(100% - 28px);
    border-width: 3px;
  }
  .donation-hero h1 {
    top: 34px;
    left: 18px;
    right: 18px;
    gap: 8px;
    font-size: clamp(25px, 8vw, 34px);
  }
  .donation-hero h1 span {
    padding: 6px 8px 7px;
  }
  .donation-content {
    width: calc(100% - 36px);
    padding: 52px 0 72px;
  }
  .donation-content h2 {
    margin-bottom: 25px;
  }
  .donation-copy {
    font-size: 16px;
  }
  .donation-action {
    margin-top: 42px;
  }
}

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

/* ==========================================================
   PÁGINA CASA DE VÓ — VERSÃO INSTITUCIONAL TOP
   Bloco isolado: não interfere nas demais páginas.
========================================================== */
body:has(.site-header) {
  --pink: #e50067;
  --pink-dark: #b90052;
  --mint: #92cec6;
  --lime: #d6ea00;
  --ink: #1d1d1b;
  --paper: #ffffff;
}

.site-header { position:absolute; z-index:30; top:0; left:50%; width:min(1180px,calc(100% - 48px)); height:94px; display:flex; align-items:center; gap:34px; transform:translateX(-50%); color:#fff; }
.brand { width:124px; flex:0 0 auto; }
.brand img { width:100%; }
.main-nav { margin-left:auto; display:flex; align-items:center; gap:25px; }
.main-nav a { font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; transition:color .2s; }
.main-nav a:hover { color:var(--lime); }
.header-actions { display:flex; align-items:center; gap:4px; }
.donate-button,body:has(.site-header) .search-button { min-height:39px; display:inline-flex; align-items:center; justify-content:center; background:var(--pink); color:#fff; font-weight:800; text-transform:uppercase; }
.donate-button { padding:0 17px; font-size:12px; }
body:has(.site-header) .search-button { width:39px; font-size:23px; }
.menu-toggle { display:none; }

body:has(.site-header) .hero { position:relative; min-height:740px; background:url("../imgs/hero-casa.jpg") center 44%/cover no-repeat; color:#fff; overflow:hidden; }
body:has(.site-header) .hero-shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(0,0,0,.68),rgba(0,0,0,.06) 65%),linear-gradient(180deg,rgba(0,0,0,.4),transparent 30%); }
body:has(.site-header) .hero-frame { position:absolute; left:max(7vw,calc((100vw - 1180px)/2)); top:154px; width:min(710px,calc(100% - 80px)); min-height:450px; padding:44px; border:3px solid var(--lime); }
body:has(.site-header) .hero-frame h1 { margin:0; font-size:clamp(40px,5vw,72px); line-height:1.12; letter-spacing:-.04em; font-weight:900; }
body:has(.site-header) .hero-frame h1 span { display:table; margin-bottom:10px; padding:2px 10px 7px; background:var(--lime); color:var(--pink); }
body:has(.site-header) .hero-frame p { position:absolute; left:44px; bottom:34px; margin:0; font-size:clamp(20px,2.2vw,30px); font-weight:700; line-height:1.14; }
.scroll-cue { position:absolute; left:50%; bottom:25px; width:42px; height:42px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.5); border-radius:50%; transform:translateX(-50%); animation:bounce 2s infinite; }
@keyframes bounce { 50% { transform:translate(-50%,7px); } }

.section-shell { width:min(1050px,calc(100% - 48px)); margin:0 auto; }
.story { padding:100px 0 90px; }
.eyebrow { color:#7b7b77; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.18em; }
.story>h2,.people h2 { margin:7px 0 38px; color:var(--pink); font-size:clamp(35px,4vw,54px); line-height:1; letter-spacing:-.04em; }
.story-grid { display:grid; grid-template-columns:.95fr 1.05fr; gap:72px; align-items:start; }
.story-copy { font-size:17px; line-height:1.7; }
.story-copy .lead { margin-top:0; font-size:23px; line-height:1.45; font-weight:650; }
.story-photo { margin:0; position:relative; }
.story-photo::before { content:""; position:absolute; inset:18px -18px -18px 18px; z-index:-1; background:var(--lime); }
.story-photo img { width:100%; aspect-ratio:4/3; object-fit:cover; }
.story-photo figcaption { margin-top:10px; color:#777; font-size:12px; }
.wide-copy { max-width:940px; margin:42px auto; font-size:17px; line-height:1.7; }
.plans { display:grid; grid-template-columns:1fr 1fr; gap:30px; max-width:880px; margin:50px auto; }
.plan-card { padding:0; border:1px solid #e6e6e0; background:#fff; text-align:left; cursor:pointer; box-shadow:0 16px 44px rgba(25,25,20,.08); transition:transform .25s,box-shadow .25s; }
.plan-card:hover { transform:translateY(-7px); box-shadow:0 20px 50px rgba(25,25,20,.14); }
.plan-card img { width:100%; aspect-ratio:4/3; object-fit:contain; padding:8px; }
.plan-card span { display:flex; justify-content:space-between; padding:17px 20px; border-top:1px solid #eee; color:var(--pink); font-weight:800; }

.video-section { padding:90px 24px; background:url("../imgs/video-background.jpg") center/cover no-repeat; }
.video-card { position:relative; width:min(900px,100%); margin:auto; overflow:hidden; box-shadow:0 28px 65px rgba(0,0,0,.28); }
.video-card>img { width:100%; height:500px; object-fit:cover; }
.video-card::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.05)); }
.video-overlay { position:absolute; z-index:2; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding:60px; color:#fff; }
.video-kicker { text-transform:uppercase; letter-spacing:.18em; font-size:12px; font-weight:800; }
.video-overlay h2 { max-width:530px; margin:10px 0 30px; font-size:clamp(32px,4.3vw,58px); line-height:1.05; }
.play-button { width:68px; height:68px; padding-left:5px; border:0; border-radius:50%; background:var(--pink); color:#fff; font-size:24px; cursor:pointer; box-shadow:0 0 0 10px rgba(255,255,255,.16); transition:transform .2s; }
.play-button:hover { transform:scale(1.08); }

.ods-section { padding:70px 24px; background:url("../imgs/ods-background.jpg") center/cover no-repeat; }
.ods-panel { width:min(900px,100%); margin:auto; padding:45px 55px; border:3px solid var(--pink); background:rgba(146,206,198,.88); }
.ods-panel>p { margin:0 auto 28px; max-width:760px; text-align:center; font-size:18px; line-height:1.55; }
.ods-grid { display:flex; justify-content:center; gap:16px; }
.ods-grid img { width:min(150px,20vw); }

.gallery-section { padding:60px 0 65px; overflow:hidden; }
.gallery-track { position:relative; width:min(1220px,calc(100% - 80px)); height:390px; margin:auto; }
.gallery-item { position:absolute; top:35px; width:31%; height:320px; margin:0; transition:all .55s cubic-bezier(.22,.61,.36,1); opacity:1; }
.gallery-item img { width:100%; height:100%; object-fit:cover; }
.gallery-item.item-0 { left:34.5%; top:0; width:31%; height:390px; z-index:3; }
.gallery-item.item-1 { left:68%; z-index:2; }
.gallery-item.item-2 { left:1%; z-index:2; }
.gallery-arrow { position:absolute; z-index:5; top:50%; width:45px; height:45px; border:0; border-radius:50%; background:#fff; color:var(--pink); font-size:38px; line-height:1; cursor:pointer; transform:translateY(-50%); box-shadow:0 8px 22px rgba(0,0,0,.16); }
.gallery-arrow.prev { left:-22px; }
.gallery-arrow.next { right:-22px; }
.gallery-dots { display:flex; justify-content:center; gap:8px; margin-top:20px; }
.gallery-dots button { width:7px; height:7px; padding:0; border:0; border-radius:50%; background:#bbb; cursor:pointer; }
.gallery-dots button.active { width:24px; border-radius:10px; background:var(--pink); }

.pillar { padding:70px 24px; }
.pillar-inner { width:min(920px,100%); margin:auto; position:relative; }
.pillar-inner>span { position:absolute; right:0; top:-30px; font-size:100px; font-weight:900; line-height:1; opacity:.1; }
.pillar h2 { margin:0 0 20px; font-size:44px; line-height:1; }
.pillar p,.pillar li { max-width:850px; font-size:17px; line-height:1.65; }
.pillar.mission { background:var(--lime); }
.pillar.vision { background:#fff; }
.pillar.values { background:var(--pink); color:#fff; }
.pillar.values ul { margin:0; padding-left:20px; }

.people { padding:100px 0 85px; }
.people-grid { display:grid; grid-template-columns:1fr .82fr; gap:90px; align-items:center; }
.people-grid p { font-size:18px; line-height:1.65; }
.people-photo { position:relative; margin:0; }
.people-photo img { width:100%; aspect-ratio:4/5; object-fit:cover; border-radius:28px; }
.people-photo::after { content:"casa\A de sossego\A vó tereza"; white-space:pre; position:absolute; left:-42px; top:36%; padding:15px; background:var(--pink); color:#fff; font-size:24px; font-weight:900; line-height:.95; }
.people-photo figcaption { margin-top:10px; color:#777; font-size:12px; text-align:right; }
.text-link { display:inline-flex; align-items:center; gap:15px; margin-top:16px; color:var(--pink); font-weight:900; }
.text-link span { font-size:28px; }
.support-network { margin-top:100px; text-align:center; }
.support-network h3 { margin:45px 0 18px; color:var(--mint); font-size:18px; }
.support-feature { display:inline-block; max-width:280px; padding:18px 24px; border:2px solid #3657a9; color:#3657a9; font-weight:900; }
.partner-row { display:flex; flex-wrap:wrap; justify-content:center; gap:14px; }
.partner-row span { min-width:150px; padding:18px 22px; border:1px solid #e2e2dc; font-weight:800; color:#666; }

.donation { display:flex; align-items:center; justify-content:space-between; gap:40px; padding:70px max(7vw,calc((100vw - 1050px)/2)); background:var(--lime); }
.donation-tag { color:var(--pink); font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.15em; }
.donation h2 { max-width:680px; margin:9px 0 0; font-size:clamp(32px,4vw,50px); line-height:1.07; }
.donation>button { flex:0 0 auto; padding:18px 24px; border:0; background:var(--pink); color:#fff; font-weight:900; text-transform:uppercase; box-shadow:8px 8px 0 var(--pink-dark); cursor:pointer; }

body:has(.site-header) footer { background:var(--mint); color:#fff; }
body:has(.site-header) .footer-inner { width:min(1050px,calc(100% - 48px)); margin:auto; padding:70px 0; display:grid; grid-template-columns:1fr 1.2fr .8fr; gap:70px; align-items:start; }
body:has(.site-header) .footer-logo { width:145px; margin-bottom:28px; }
body:has(.site-header) .footer-nav { display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
body:has(.site-header) .footer-nav a { font-size:15px; font-weight:800; text-transform:uppercase; }
body:has(.site-header) .footer-contact { display:flex; flex-direction:column; gap:13px; font-size:16px; line-height:1.55; }
body:has(.site-header) .footer-contact p { margin:0 0 9px; }
body:has(.site-header) .footer-contact a { display:flex; align-items:center; gap:10px; font-weight:700; }
body:has(.site-header) .footer-contact a>img { width:24px; height:24px; object-fit:contain; }
body:has(.site-header) .socials { display:flex; gap:12px; margin-top:8px; }
body:has(.site-header) .socials a { width:42px; height:42px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.55); border-radius:50%; }
body:has(.site-header) .socials a img { width:24px; height:24px; object-fit:contain; }
body:has(.site-header) .footer-map { align-self:end; width:100%; border:5px solid rgba(255,255,255,.3); }
body:has(.site-header) .footer-bottom { padding:18px 24px; background:rgba(0,0,0,.08); text-align:center; font-size:12px; }

@media (max-width:940px) {
  .site-header { width:calc(100% - 28px); height:78px; gap:8px; }
  .brand { width:106px; }
  .menu-toggle { order:2; margin-left:auto; width:42px; height:42px; border:0; display:flex; flex-direction:column; justify-content:center; gap:5px; padding:0 11px; background:var(--pink); }
  .menu-toggle span { display:block; width:100%; height:2px; background:#fff; transition:transform .2s,opacity .2s; }
  .menu-toggle.is-open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity:0; }
  .menu-toggle.is-open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
  .main-nav { position:absolute; top:70px; right:0; left:0; display:grid; gap:0; max-height:0; overflow:hidden; background:rgba(18,18,18,.97); transition:max-height .3s; }
  .main-nav.is-open { max-height:450px; }
  .main-nav a { padding:16px 22px; border-bottom:1px solid rgba(255,255,255,.1); }
  .header-actions { order:3; }
  .donate-button { display:none; }
  body:has(.site-header) .search-button { width:42px; min-height:42px; }
  body:has(.site-header) .hero { min-height:620px; }
  body:has(.site-header) .hero-frame { top:124px; left:28px; width:calc(100% - 56px); min-height:400px; }
  .story-grid,.people-grid { gap:45px; }
  body:has(.site-header) .footer-inner { grid-template-columns:1fr 1fr; }
  body:has(.site-header) .footer-map { max-width:320px; }
}

@media (max-width:700px) {
  body:has(.site-header) .hero { min-height:570px; background-position:61% center; }
  body:has(.site-header) .hero-shade { background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.22)); }
  body:has(.site-header) .hero-frame { top:112px; left:18px; width:calc(100% - 36px); min-height:390px; padding:28px 22px; }
  body:has(.site-header) .hero-frame h1 { font-size:clamp(34px,10vw,47px); }
  body:has(.site-header) .hero-frame p { left:23px; bottom:29px; font-size:21px; }
  .scroll-cue { display:none; }
  .section-shell { width:min(100% - 36px,1050px); }
  .story { padding:72px 0 60px; }
  .story-grid,.people-grid { grid-template-columns:1fr; }
  .story-grid { gap:35px; }
  .story-photo { order:-1; }
  .story-photo::before { inset:10px -9px -9px 10px; }
  .story-copy .lead { font-size:20px; }
  .wide-copy { margin:32px 0; }
  .plans { grid-template-columns:1fr; gap:20px; margin:35px 0; }
  .video-section { padding:50px 18px; }
  .video-card>img { height:440px; }
  .video-overlay { padding:30px; justify-content:flex-end; }
  .video-overlay h2 { font-size:37px; }
  .ods-section { padding:42px 18px; }
  .ods-panel { padding:30px 20px; }
  .ods-panel>p { font-size:15px; }
  .ods-grid { display:grid; grid-template-columns:1fr 1fr; width:min(330px,100%); margin:auto; }
  .ods-grid img { width:100%; }
  .gallery-track { width:calc(100% - 54px); height:390px; }
  .gallery-item,.gallery-item.item-0 { left:0; top:0; width:100%; height:390px; }
  .gallery-item.item-1,.gallery-item.item-2 { left:100%; opacity:0; }
  .pillar { padding:55px 22px; }
  .pillar-inner>span { top:-18px; font-size:70px; }
  .pillar h2 { font-size:38px; }
  .pillar p,.pillar li { font-size:16px; }
  .people { padding:75px 0 60px; }
  .people-photo { width:calc(100% - 25px); margin-left:auto; }
  .people-photo::after { left:-25px; font-size:20px; }
  .support-network { margin-top:65px; }
  .partner-row span { min-width:calc(50% - 8px); padding:15px 10px; font-size:13px; }
  .donation { flex-direction:column; align-items:flex-start; padding:55px 24px; }
  .donation>button { width:100%; text-align:center; }
  body:has(.site-header) .footer-inner { width:calc(100% - 48px); grid-template-columns:1fr; gap:45px; padding:55px 0; }
  body:has(.site-header) .footer-nav a,body:has(.site-header) .footer-contact { font-size:16px; }
  body:has(.site-header) .footer-map { width:100%; max-width:none; }
}

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

/* ==========================================================
   PADRÃO ÚNICO DOS BANNERS INTERNOS
   Mantém somente a imagem diferente em cada página.
   Este bloco precisa permanecer no final do style.css.
========================================================== */

:where(
  .hero,
  .donation-hero,
  .volunteer-hero,
  .casa-hero,
  .casa-about-hero,
  .projects-hero,
  .courses-hero
) {
  position: relative !important;
  width: 100% !important;
  height: 870px !important;
  min-height: 870px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  box-sizing: border-box !important;
}

/* A home utiliza um contêiner adicional. */
.hero-content {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

:where(
  .hero-frame,
  .donation-hero__frame,
  .volunteer-hero__frame,
  .casa-hero__frame,
  .casa-about-hero__frame,
  .projects-hero__frame,
  .courses-hero__frame
) {
  position: relative !important;
  inset: auto !important;
  width: calc(88% - 56px) !important;
  max-width: none !important;
  height: calc(100% - 148px) !important;
  min-height: 0 !important;
  margin: 120px auto 28px !important;
  padding: 0 !important;
  border: 3px solid var(--lime, #c9dd00) !important;
  box-sizing: border-box !important;
}

/* Nos projetos, o conteúdo passa a usar a própria moldura. */
.projects-hero__content {
  position: static !important;
  max-width: none !important;
}

:where(
  .donation-hero,
  .volunteer-hero,
  .casa-hero,
  .casa-about-hero,
  .projects-hero,
  .courses-hero
) h1 {
  position: absolute !important;
  inset: 40px auto auto 30px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 9px !important;
  color: var(--pink, #df0067) !important;
  font-size: clamp(32px, 2.8vw, 43px) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em !important;
  text-transform: lowercase !important;
}

:where(
  .donation-hero,
  .volunteer-hero,
  .casa-hero,
  .casa-about-hero,
  .projects-hero,
  .courses-hero
) h1 span {
  display: inline-block !important;
  margin: 0 !important;
  padding: 6px 11px 8px !important;
  color: var(--pink, #df0067) !important;
  background: var(--lime, #c9dd00) !important;
  line-height: 1.05 !important;
}

/* Título da home: mesma medida, compensando a moldura como elemento irmão. */
.hero h1 {
  position: absolute !important;
  inset: 160px auto auto 210px !important;
  margin: 0 !important;
  color: var(--pink, #df0067) !important;
  font-size: clamp(32px, 2.8vw, 43px) !important;
  font-weight: 900 !important;
  line-height: 1.42 !important;
  letter-spacing: -0.025em !important;
  text-transform: lowercase !important;
}

.hero h1 mark {
  display: inline-block !important;
  margin: 0 0 7px !important;
  padding: 3px 11px 6px !important;
  color: var(--pink, #df0067) !important;
  background: var(--lime, #c9dd00) !important;
  line-height: 1.05 !important;
}

/* Textos inferiores seguem a mesma posição dentro da moldura. */
:where(
  .volunteer-hero__message,
  .casa-hero__message,
  .casa-about-hero p,
  .projects-hero__content > p
) {
  position: absolute !important;
  inset: auto auto 36px 30px !important;
  max-width: 430px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(20px, 1.8vw, 26px) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  text-shadow: 0 2px 9px rgb(0 0 0 / 42%) !important;
}

.hero p {
  position: absolute !important;
  inset: auto auto 155px 207px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(20px, 1.8vw, 26px) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
}

.hero-actions {
  right: 60px !important;
  bottom: 46px !important;
}

/* ==========================================================
   TABLET
========================================================== */
@media (max-width: 900px) {
  :where(
    .hero,
    .donation-hero,
    .volunteer-hero,
    .casa-hero,
    .casa-about-hero,
    .projects-hero,
    .courses-hero
  ) {
    height: 640px !important;
    min-height: 640px !important;
  }

  :where(
    .hero-frame,
    .donation-hero__frame,
    .volunteer-hero__frame,
    .casa-hero__frame,
    .casa-about-hero__frame,
    .projects-hero__frame,
    .courses-hero__frame
  ) {
    width: calc(88% - 40px) !important;
    height: 512px !important;
    margin: 100px auto 28px !important;
  }

  :where(
    .donation-hero,
    .volunteer-hero,
    .casa-hero,
    .casa-about-hero,
    .projects-hero,
    .courses-hero
  ) h1 {
    inset: 28px 22px auto !important;
    font-size: clamp(30px, 5vw, 42px) !important;
  }

  .hero h1 {
    inset: 132px 42px auto !important;
    font-size: clamp(30px, 5vw, 42px) !important;
  }

  :where(
    .volunteer-hero__message,
    .casa-hero__message,
    .casa-about-hero p,
    .projects-hero__content > p
  ) {
    inset: auto 22px 28px !important;
  }

  .hero p {
    inset: auto 42px 145px !important;
  }

  .hero-actions {
    right: 42px !important;
    bottom: 42px !important;
  }
}

/* ==========================================================
   CELULAR
========================================================== */
@media (max-width: 560px) {
  :where(
    .hero,
    .donation-hero,
    .volunteer-hero,
    .casa-hero,
    .casa-about-hero,
    .projects-hero,
    .courses-hero
  ) {
    height: 600px !important;
    min-height: 600px !important;
    background-position: 60% center !important;
  }

  :where(
    .hero-frame,
    .donation-hero__frame,
    .volunteer-hero__frame,
    .casa-hero__frame,
    .casa-about-hero__frame,
    .projects-hero__frame,
    .courses-hero__frame
  ) {
    width: calc(88% - 28px) !important;
    height: 486px !important;
    margin: 92px auto 22px !important;
    border-width: 3px !important;
  }

  :where(
    .donation-hero,
    .volunteer-hero,
    .casa-hero,
    .casa-about-hero,
    .projects-hero,
    .courses-hero
  ) h1 {
    inset: 24px 18px auto !important;
    gap: 7px !important;
    font-size: clamp(26px, 8vw, 34px) !important;
  }

  :where(
    .donation-hero,
    .volunteer-hero,
    .casa-hero,
    .casa-about-hero,
    .projects-hero,
    .courses-hero
  ) h1 span {
    padding: 5px 8px 7px !important;
  }

  .hero h1 {
    inset: 120px 32px auto !important;
    font-size: clamp(26px, 8vw, 34px) !important;
    line-height: 1.35 !important;
  }

  .hero h1 mark {
    margin-bottom: 5px !important;
    padding: 4px 8px 6px !important;
  }

  :where(
    .volunteer-hero__message,
    .casa-hero__message,
    .casa-about-hero p,
    .projects-hero__content > p
  ) {
    inset: auto 18px 24px !important;
    font-size: 19px !important;
  }

  .hero p {
    inset: auto 32px 150px !important;
    font-size: 18px !important;
  }

  .hero-actions {
    left: 32px !important;
    right: 32px !important;
    bottom: 36px !important;
  }
}

/* ==========================================================
   SUBTÍTULOS PRÓXIMOS AOS TÍTULOS
========================================================== */

.volunteer-hero__message,
.projects-hero__content > p {
  top: 245px !important;
  bottom: auto !important;
}

.casa-hero__message,
.casa-about-hero p {
  top: 185px !important;
  bottom: auto !important;
}

.hero p {
  top: 370px !important;
  bottom: auto !important;
}

@media (max-width: 900px) {
  .volunteer-hero__message,
  .projects-hero__content > p {
    top: 200px !important;
    bottom: auto !important;
  }

  .casa-hero__message,
  .casa-about-hero p {
    top: 145px !important;
    bottom: auto !important;
  }

  .hero p {
    top: 330px !important;
    bottom: auto !important;
  }
}

@media (max-width: 560px) {
  .volunteer-hero__message,
  .projects-hero__content > p {
    top: 165px !important;
    bottom: auto !important;
  }

  .casa-hero__message,
  .casa-about-hero p {
    top: 120px !important;
    bottom: auto !important;
  }

  .hero p {
    top: 275px !important;
    bottom: auto !important;
  }
}


/* ==========================================================================
   PÁGINA AGENDA
   ========================================================================== */

/* ==========================================================
   AGENDA — CASA DE SOSSEGO VÓ TEREZA
========================================================== */

.agenda-page-body {
  margin: 0;
  color: #171717;
  background: #fff;
  font-family: "filson-soft", Arial, sans-serif;
}

.agenda-hero {
  position: relative;
  width: 100%;
  height: 870px;
  min-height: 870px;
  padding: 0;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-sizing: border-box;
}

.agenda-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 13%), transparent 32%, rgb(0 0 0 / 7%));
  pointer-events: none;
}

.agenda-hero__frame {
  position: relative;
  z-index: 1;
  width: calc(100% - 56px);
  max-width: 1600px;
  height: calc(100% - 148px);
  margin: 120px auto 28px;
  border: 3px solid var(--lime, #c9dd00);
  box-sizing: border-box;
}

.agenda-hero__content {
  width: 100%;
  height: 100%;
}

.agenda-hero h1 {
  position: absolute;
  left: 62px;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--pink, #df0067);
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-transform: lowercase;
}

.agenda-hero h1 span {
  display: inline-block;
  padding: 7px 14px 9px;
  background: var(--lime, #c9dd00);
  line-height: 1.04;
}

.agenda-content {
  padding: 105px 20px 125px;
  background: #fff;
}

.agenda-container {
  width: 100%;
  max-width: 630px;
  margin: 0 auto;
}

.agenda-content h2 {
  margin: 0 0 42px;
  color: var(--pink, #df0067);
  font-size: clamp(36px, 3vw, 48px);
  font-weight: 900;
  line-height: 1;
  text-transform: lowercase;
}

.agenda-year {
  position: relative;
  display: inline-block;
  margin-bottom: 52px;
}

.agenda-year::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-68%) rotate(45deg);
  pointer-events: none;
}

.agenda-year select {
  min-width: 112px;
  height: 43px;
  padding: 0 42px 0 20px;
  border: 0;
  border-radius: 7px;
  outline: 0;
  color: #fff;
  background: var(--pink, #df0067);
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 43px;
  appearance: none;
  cursor: pointer;
}

.agenda-year select:focus-visible {
  box-shadow: 0 0 0 4px rgb(223 0 103 / 24%);
}

.agenda-month h3 {
  margin: 0 0 32px;
  color: #171717;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.agenda-event {
  margin: 0 0 27px;
  font-size: 18px;
  line-height: 1.13;
}

.agenda-event:last-child {
  margin-bottom: 0;
}

.agenda-event h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.13;
  text-transform: uppercase;
}

.agenda-event p {
  margin: 0;
}

.agenda-event time {
  font: inherit;
}

@media (max-width: 900px) {
  .agenda-hero {
    height: 640px;
    min-height: 640px;
  }

  .agenda-hero__frame {
    width: calc(100% - 40px);
    height: 512px;
    margin: 100px auto 28px;
  }

  .agenda-hero h1 {
    left: 32px;
    bottom: 34px;
    font-size: clamp(32px, 6vw, 46px);
  }

  .agenda-content {
    padding: 80px 24px 100px;
  }
}

@media (max-width: 560px) {
  .agenda-hero {
    height: 600px;
    min-height: 600px;
    background-position: 55% center;
  }

  .agenda-hero__frame {
    width: calc(100% - 28px);
    height: 486px;
    margin: 92px auto 22px;
  }

  .agenda-hero h1 {
    right: 18px;
    left: 18px;
    bottom: 28px;
    gap: 7px;
    font-size: clamp(27px, 8.5vw, 36px);
  }

  .agenda-hero h1 span {
    padding: 5px 9px 7px;
  }

  .agenda-content {
    padding: 62px 22px 80px;
  }

  .agenda-content h2 {
    margin-bottom: 32px;
    font-size: 38px;
  }

  .agenda-year {
    margin-bottom: 42px;
  }

  .agenda-event,
  .agenda-event h4 {
    font-size: 17px;
  }
}


/* ==========================================================================
   CURSOS E OFICINAS
   ========================================================================== */

/* ==========================================================
   CURSOS E OFICINAS — PÁGINAS EXTERNA E INTERNA
   Arquivo isolado: carregar depois de assets/css/style.css.
========================================================== */

.courses-page-body,
.course-detail-page-body {
  --courses-pink: #cf0063;
  --courses-lime: #c9dd00;
  --courses-mint: #91cec4;
  --courses-ink: #111111;
  color: var(--courses-ink);
  background: #ffffff;
}

.courses-page-body main,
.course-detail-page-body main {
  overflow: hidden;
}

.courses-container {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
}

/* ==========================================================
   HERO COMPARTILHADO
========================================================== */

.courses-hero {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background-image: var(
    --courses-hero-image,
    url("../imgs/imagem-header-casa-de-sossego.jpg")
  );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.courses-hero__shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.03)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 25%);
}

.courses-hero__frame {
  position: relative;
  z-index: 2;
  width: min(940px, calc(100% - 70px));
  min-height: 455px;
  margin: 58px auto 0;
  padding: 58px 42px;
  border: 4px solid var(--courses-lime);
}

.courses-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.035em;
}

.courses-hero h1 span {
  display: table;
  margin-bottom: 13px;
  padding: 3px 12px 7px;
  color: var(--courses-pink);
  background: var(--courses-lime);
}

/* ==========================================================
   LISTAGEM
========================================================== */

.courses-list {
  padding: 58px 0 90px;
}

.courses-list h2,
.course-detail__category {
  margin: 0 0 30px;
  color: var(--courses-pink);
  font-size: clamp(31px, 3.5vw, 43px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  letter-spacing: -0.025em;
}

.courses-intro {
  max-width: 760px;
  margin: 0 auto 48px;
  font-size: 17px;
  line-height: 1.55;
}

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

.course-card {
  min-width: 0;
}

.course-card__image {
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.course-card__image img {
  width: 100%;
  aspect-ratio: 1.72;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.course-card:hover .course-card__image img {
  transform: scale(1.045);
}

.course-card h3 {
  min-height: 52px;
  margin: 14px 0 8px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
}

.course-card h3 a {
  transition: color 0.2s ease;
}

.course-card h3 a:hover,
.course-card h3 a:focus-visible {
  color: var(--courses-pink);
}

.course-card__date {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--courses-mint);
  font-size: 15px;
  line-height: 1.35;
}

/* ==========================================================
   DETALHE DO CURSO
========================================================== */

.course-detail {
  padding: 58px 0 88px;
}

.course-detail__category {
  margin-bottom: 34px;
}

.course-detail__header {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--courses-pink);
}

.course-detail__header h1 {
  margin: 0 0 12px;
  color: var(--courses-ink);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.08;
}

.course-detail__meta {
  display: grid;
  gap: 6px;
}

.course-detail__meta p {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.course-detail__meta span {
  width: 21px;
  display: inline-block;
  color: var(--courses-pink);
  font-weight: 900;
  text-align: center;
}

.course-detail__copy {
  margin: 34px 0;
  font-size: 16px;
  line-height: 1.52;
}

.course-detail__copy p {
  margin: 0 0 17px;
}

.course-detail__copy--second {
  margin-top: 42px;
}

.course-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0 35px;
}

.course-gallery a {
  display: block;
  overflow: hidden;
}

.course-gallery img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-gallery a:hover img {
  transform: scale(1.045);
}

.course-video {
  position: relative;
  width: min(610px, 100%);
  margin: 55px auto 40px;
  overflow: hidden;
  background: #222222;
}

.course-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.13);
  pointer-events: none;
}

.course-video > img {
  width: 100%;
  aspect-ratio: 1.58;
  object-fit: cover;
}

.course-video > a,
.course-video__play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  background: #f8004f;
  font-size: 23px;
  line-height: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 9px 25px rgba(0, 0, 0, 0.25);
}

.course-detail__action {
  text-align: center;
}

.course-detail__action a {
  display: inline-flex;
  min-height: 46px;
  padding: 10px 26px;
  align-items: center;
  justify-content: center;
  border-radius: 28px;
  color: #ffffff;
  background: var(--courses-pink);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.course-detail__action a:hover,
.course-detail__action a:focus-visible {
  background: #ae0053;
  transform: translateY(-2px);
}

.course-detail__back {
  width: max-content;
  margin: 38px auto 0;
  display: block;
  color: var(--courses-pink);
  font-size: 14px;
  font-weight: 800;
}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 850px) {
  .courses-hero {
    min-height: 610px;
    background-position: 57% center;
  }

  .courses-hero__frame {
    width: calc(100% - 48px);
    min-height: 430px;
    margin-top: 72px;
  }

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

  .course-card h3 {
    min-height: 0;
  }

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

/* ==========================================================
   CELULAR
========================================================== */

@media (max-width: 560px) {
  .courses-container {
    width: calc(100% - 36px);
  }

  .courses-hero {
    min-height: 570px;
    padding: 105px 16px 40px;
    align-items: stretch;
    background-position: 63% center;
  }

  .courses-hero__frame {
    width: 100%;
    min-height: 395px;
    margin: 0;
    padding: 42px 20px;
    border-width: 4px;
  }

  .courses-hero h1 {
    font-size: clamp(27px, 8.3vw, 37px);
    line-height: 1.28;
  }

  .courses-hero h1 span {
    margin-bottom: 10px;
    padding: 3px 8px 5px;
  }

  .courses-list,
  .course-detail {
    padding: 52px 0 68px;
  }

  .courses-list h2,
  .course-detail__category {
    margin-bottom: 25px;
    font-size: 31px;
  }

  .courses-intro {
    margin-bottom: 35px;
    font-size: 16px;
  }

  .courses-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .course-card h3 {
    font-size: 23px;
  }

  .course-card__date {
    font-size: 16px;
  }

  .course-detail__header h1 {
    font-size: 31px;
  }

  .course-detail__meta p,
  .course-detail__copy {
    font-size: 16px;
  }

  .course-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .course-video {
    margin-top: 40px;
  }

  .course-detail__action a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .course-card__image img,
  .course-gallery img,
  .course-detail__action a {
    transition: none;
  }
}


/* ==========================================================================
   PÁGINAS INSTITUCIONAIS
   ========================================================================== */

/* ==========================================================
   ATIVIDADES / PARTICIPAÇÕES E CONQUISTAS
   Casa de Sossego Vó Tereza
========================================================== */

.institutional-page {
  margin: 0;
  color: #151515;
  background: #fff;
  font-family: "filson-soft", Arial, sans-serif;
}

.institutional-page img {
  max-width: 100%;
}

/* Banner padrão das páginas internas */
.institutional-hero {
  position: relative;
  width: 100%;
  height: 870px;
  min-height: 870px;
  padding: 0;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-sizing: border-box;
}

.institutional-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 24%), transparent 35%, rgb(0 0 0 / 10%));
  pointer-events: none;
}

.institutional-hero__frame {
  position: relative;
  z-index: 1;
  width: calc(100% - 56px);
  max-width: 1600px;
  height: calc(100% - 148px);
  margin: 120px auto 28px;
  border: 3px solid var(--lime, #c9dd00);
  box-sizing: border-box;
}

.institutional-hero__content {
  width: 100%;
  height: 100%;
}

.institutional-hero h1 {
  position: absolute;
  top: 55px;
  left: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--pink, #df0067);
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-transform: lowercase;
}

.institutional-hero h1 span {
  display: inline-block;
  padding: 7px 14px 9px;
  color: var(--pink, #df0067);
  background: var(--lime, #c9dd00);
  line-height: 1.04;
}

.institutional-hero__content > p {
  position: absolute;
  top: 305px;
  left: 60px;
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 2px 9px rgb(0 0 0 / 48%);
}

/* Conteúdo compartilhado */
.institutional-container,
.achievements-container {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.activities-content,
.achievements-content {
  padding: 95px 0 110px;
  background: #fff;
}

.activities-content h2,
.achievements-content h2 {
  margin: 0 0 35px;
  color: var(--pink, #df0067);
  font-size: clamp(35px, 3.2vw, 52px);
  font-weight: 900;
  line-height: 1.05;
}

/* Atividades */
.activities-content h2 {
  text-align: center;
}

.activities-intro,
.activities-copy {
  margin-right: auto;
  margin-left: auto;
  font-size: 20px;
  line-height: 1.26;
}

.activities-intro {
  max-width: 1140px;
  margin-bottom: 48px;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 55px 30px;
  margin: 0 auto 65px;
}

.activity-card {
  text-align: center;
}

.activity-card img {
  width: 108px;
  height: 108px;
  margin-bottom: 17px;
  object-fit: contain;
}

.activity-card h3 {
  margin: 0;
  color: #111;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.08;
  text-transform: uppercase;
}

.activities-grid .activity-card:nth-child(5) {
  grid-column: 1;
}

.activities-grid .activity-card:nth-child(6) {
  grid-column: 2;
}

.activities-copy {
  max-width: 1140px;
}

.activities-copy p {
  margin: 0 0 28px;
}

.activities-copy p:last-child {
  margin-bottom: 0;
}

/* Participações e conquistas */
.achievements-container {
  max-width: 980px;
}

.achievements-content h2 {
  margin-bottom: 55px;
  text-align: left;
  text-transform: lowercase;
}

.council-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(55px, 10vw, 150px);
  margin-bottom: 52px;
}

.council-logos img {
  width: auto;
  max-width: 340px;
  max-height: 165px;
  object-fit: contain;
}

.achievements-intro {
  margin: 0 0 55px;
  font-size: 19px;
  line-height: 1.28;
}

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

.achievement-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  object-fit: cover;
}

.achievement-card h3 {
  margin: 13px 0 0;
  color: #111;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
}

@media (max-width: 900px) {
  .institutional-hero {
    height: 640px;
    min-height: 640px;
  }

  .institutional-hero__frame {
    width: calc(100% - 40px);
    height: 512px;
    margin: 100px auto 28px;
  }

  .institutional-hero h1 {
    top: 35px;
    left: 32px;
    font-size: clamp(31px, 5.5vw, 44px);
  }

  .institutional-hero__content > p {
    top: 218px;
    left: 32px;
  }

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

  .activities-grid .activity-card:nth-child(5),
  .activities-grid .activity-card:nth-child(6) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .institutional-hero {
    height: 600px;
    min-height: 600px;
    background-position: 58% center;
  }

  .institutional-hero__frame {
    width: calc(100% - 28px);
    height: 486px;
    margin: 92px auto 22px;
  }

  .institutional-hero h1 {
    top: 25px;
    right: 18px;
    left: 18px;
    gap: 7px;
    font-size: clamp(26px, 8vw, 34px);
  }

  .institutional-hero h1 span {
    padding: 5px 9px 7px;
  }

  .institutional-hero__content > p {
    top: 174px;
    right: 18px;
    left: 18px;
    font-size: 19px;
  }

  .activities-content,
  .achievements-content {
    padding: 65px 0 80px;
  }

  .activities-content h2,
  .achievements-content h2 {
    margin-bottom: 30px;
    font-size: 36px;
  }

  .activities-intro,
  .activities-copy,
  .achievements-intro {
    font-size: 17px;
  }

  .activities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 18px;
    margin-bottom: 55px;
  }

  .activity-card img {
    width: 88px;
    height: 88px;
  }

  .activity-card h3 {
    font-size: 14px;
  }

  .council-logos {
    flex-direction: column;
    gap: 35px;
    margin-bottom: 42px;
  }

  .council-logos img {
    max-width: 270px;
    max-height: 135px;
  }

  .achievements-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .achievement-card h3 {
    font-size: 17px;
  }
}


/* ==========================================================================
   PÁGINAS DE PROJETOS
   ========================================================================== */

:root {
  --projects-pink: #d50065;
  --projects-lime: #c6df00;
  --projects-mint: #8fcfc5;
  --projects-ink: #111111;
}

.projects-page-body,
.project-detail-page-body {
  margin: 0;
  color: var(--projects-ink);
  background: #ffffff;
  font-family: "filson-soft", Arial, sans-serif;
}

.projects-page-body *,
.project-detail-page-body * {
  box-sizing: border-box;
}

/* O cabeçalho precisa ficar acima do banner e do menu aberto. */
.projects-page-body .header,
.project-detail-page-body .header {
  position: absolute;
  z-index: 9999;
  width: 100%;
  overflow: visible;
}

.projects-page-body .nav-wrap,
.project-detail-page-body .nav-wrap {
  position: relative;
  z-index: 10000;
  overflow: visible;
}

.projects-hero {
  position: relative;
  min-height: clamp(430px, 52vw, 650px);
  background-image: var(--projects-hero-image);
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

.projects-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .02) 70%);
  pointer-events: none;
}

.projects-hero__frame {
  position: absolute;
  inset: 15% 11% 12%;
  border: 3px solid var(--projects-lime);
}

.projects-hero__content {
  position: absolute;
  top: 13%;
  left: 4.5%;
  max-width: 560px;
}

.projects-hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  font-size: clamp(31px, 3.2vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--projects-pink);
}

.projects-hero h1 span {
  display: inline-block;
  padding: 6px 12px 7px;
  background: var(--projects-lime);
}

.projects-hero__content > p {
  margin: 14px 0 0;
  color: #ffffff;
  font-size: clamp(20px, 2.1vw, 31px);
  font-weight: 700;
  line-height: 1.18;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .35);
}

.projects-container {
  width: min(100% - 40px, 780px);
  margin-inline: auto;
}

.projects-list {
  min-height: 570px;
  padding: 80px 0 100px;
}

.projects-list h2,
.project-detail h2 {
  margin: 0 0 46px;
  color: var(--projects-pink);
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  text-transform: lowercase;
}

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

.project-card {
  min-width: 0;
}

.project-card a {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.project-card a:hover,
.project-card a:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .12);
  outline: none;
}

.project-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
}

.projects-grid--permanent .project-card:last-child {
  grid-column: 1;
}

.project-detail {
  padding: 74px 0 100px;
}

.projects-container--detail {
  width: min(100% - 40px, 640px);
}

.project-detail h2 {
  margin-bottom: 26px;
}

.project-detail__logo {
  width: min(100%, 260px);
  margin: 0 auto 28px;
}

.project-detail__logo img {
  display: block;
  width: 100%;
  border-radius: 10px;
}

.project-detail__copy,
.project-detail__support {
  font-size: 16px;
  line-height: 1.45;
}

.project-detail__copy p,
.project-detail__support {
  margin: 0;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 32px 0;
}

.project-gallery img,
.project-gallery__tile {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.project-gallery__tile--blue {
  background: var(--projects-mint);
}

.project-gallery__tile--green {
  background: var(--projects-lime);
}

.project-gallery__tile--photo {
  background: linear-gradient(135deg, #e6e6df, #c6cfc6 47%, #edb9a5 48%, #e8d6c7);
}

.project-video {
  position: relative;
  width: min(100%, 520px);
  margin: 34px auto 30px;
  overflow: hidden;
}

.project-video img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.project-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 42px;
  border-radius: 11px;
  place-items: center;
  color: #ffffff;
  background: #ff0048;
  font-size: 23px;
  line-height: 1;
  transform: translate(-50%, -50%);
  padding-left: 3px;
}

.project-detail__support a,
.project-detail__back {
  color: inherit;
}

.project-detail__back {
  display: inline-block;
  margin-top: 24px;
  color: var(--projects-pink);
  font-weight: 700;
  text-decoration: none;
}

.project-detail__back:hover,
.project-detail__back:focus-visible {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .projects-page-body .header .menu-button,
  .project-detail-page-body .header .menu-button {
    position: relative;
    z-index: 10002;
    display: block !important;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 9px;
    border: 0;
    border-radius: 3px;
    background: var(--projects-pink);
    cursor: pointer;
  }

  .projects-page-body .header .menu-button span,
  .project-detail-page-body .header .menu-button span {
    display: block !important;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
  }

  .projects-page-body .header .nav,
  .project-detail-page-body .header .nav {
    position: absolute !important;
    z-index: 10001;
    top: 100% !important;
    right: -14px !important;
    left: -14px !important;
    display: flex !important;
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(207, 0, 99, .98);
    transition: max-height .28s ease, padding .28s ease, opacity .2s ease;
  }

  .projects-page-body .header .nav.open,
  .project-detail-page-body .header .nav.open {
    max-height: calc(100vh - 90px);
    padding-block: 14px 22px;
    overflow-y: auto;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .projects-page-body .header .nav a,
  .project-detail-page-body .header .nav a {
    display: block;
    width: 100%;
    padding: 13px 2px;
    color: #ffffff;
  }

  .projects-hero {
    min-height: 540px;
    background-position: 58% center;
  }

  .projects-hero__frame {
    inset: 15% 6% 10%;
  }

  .projects-hero__content {
    top: 14%;
    left: 5%;
  }

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

@media (max-width: 600px) {
  .projects-hero {
    min-height: 520px;
    background-position: 61% center;
  }

  .projects-hero__frame {
    inset: 12% 18px 9%;
  }

  .projects-hero__content {
    top: 12%;
    left: 4%;
    max-width: calc(100% - 30px);
  }

  .projects-hero h1 {
    gap: 9px;
    font-size: clamp(25px, 8.5vw, 37px);
  }

  .projects-hero h1 span {
    padding: 5px 8px 6px;
  }

  .projects-hero__content > p {
    margin-top: 12px;
    font-size: 20px;
  }

  .projects-container,
  .projects-container--detail {
    width: min(100% - 32px, 640px);
  }

  .projects-list,
  .project-detail {
    padding: 55px 0 72px;
  }

  .projects-list h2,
  .project-detail h2 {
    margin-bottom: 30px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .projects-grid--permanent .project-card:last-child {
    grid-column: auto;
  }

  .project-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .project-detail__copy,
  .project-detail__support {
    font-size: 15px;
  }
}


/* ==========================================================================
   PÁGINA SOBRE NÓS
   ========================================================================== */

:root {
  --casa-pink: #df0067;
  --casa-pink-dark: #ad0050;
  --casa-lime: #c9dd00;
  --casa-mint: #8dcfc5;
  --casa-ink: #171717;
}

.casa-page-body {
  overflow-x: hidden;
  color: var(--casa-ink);
  background: #fff;
}

.casa-page-body main {
  display: block;
}

.casa-shell {
  width: min(870px, calc(100% - 48px));
  margin-inline: auto;
}

/* Banner */
.casa-about-hero {
  position: relative;
  min-height: clamp(570px, 53vw, 790px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url("../imgs/Casa-de-Vo-background-top.jpg") center 48% / cover no-repeat;
}

.casa-about-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .02) 68%);
}

.casa-about-hero__frame {
  position: relative;
  z-index: 1;
  width: min(1060px, calc(100% - 100px));
  min-height: 510px;
  margin: 55px auto 0;
  padding: 58px 38px;
  border: 4px solid var(--casa-lime);
}

.casa-about-hero h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 62px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.035em;
}

.casa-about-hero h1 span {
  display: table;
  margin-bottom: 8px;
  padding: 1px 10px 7px;
  color: var(--casa-pink);
  background: var(--casa-lime);
}

.casa-about-hero p {
  position: absolute;
  left: 38px;
  bottom: 42px;
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 2vw, 29px);
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .25);
}

/* História */
.casa-story {
  padding: 95px 0 85px;
}

.casa-story h2,
.casa-people h2 {
  margin: 0 0 45px;
  color: var(--casa-pink);
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}

.casa-story__opening {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 45px;
  align-items: start;
}

.casa-story__copy,
.casa-story__text {
  font-size: 16px;
  line-height: 1.5;
}

.casa-story__copy p,
.casa-story__text p {
  margin: 0 0 18px;
}

.casa-story__photo {
  margin: 0;
}

.casa-story__photo img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.casa-story__text {
  margin: 30px 0;
}

.casa-plans {
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 42px;
  align-items: center;
  margin: 55px 0 40px;
}

.casa-plans a {
  display: block;
  padding: 12px;
  border: 1px solid #eee;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}

.casa-plans a:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 35px rgba(0, 0, 0, .12);
}

.casa-plans img {
  width: 100%;
  height: 325px;
  object-fit: contain;
}

/* Vídeo */
.casa-video {
  padding: 72px 24px;
  background-color: var(--casa-pink);
  background-image:
    linear-gradient(rgba(222, 0, 103, .75), rgba(222, 0, 103, .75)),
    url("../imgs/video-background.jpg");
  background-position: center;
  background-size: cover;
}

.casa-video__card {
  position: relative;
  width: min(750px, 100%);
  margin: auto;
  box-shadow: 0 24px 55px rgba(0, 0, 0, .26);
}

.casa-video__card > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.casa-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70px;
  height: 52px;
  padding: 0 0 0 5px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #ff0033;
  font-size: 26px;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, .25);
}

/* ODS — não depende de ods-background.jpg */
.casa-ods {
  padding: 58px 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.25), transparent 30%),
    var(--casa-mint);
}

.casa-ods__panel {
  width: min(780px, 100%);
  margin: auto;
  padding: 42px 48px;
  border: 3px solid var(--casa-pink);
  background: rgba(255, 255, 255, .08);
}

.casa-ods__panel p {
  margin: 0 auto 28px;
  max-width: 670px;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.casa-ods__grid {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.casa-ods__grid img {
  width: min(112px, 20vw);
  aspect-ratio: 1;
  object-fit: cover;
}

/* Galeria automática */
.casa-gallery {
  padding: 42px 0 55px;
  background: #fff;
}

.casa-gallery__viewport {
  position: relative;
  width: min(1180px, 100%);
  margin: auto;
  overflow: hidden;
}

.casa-gallery__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 0 10px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.casa-gallery__track::-webkit-scrollbar {
  display: none;
}

.casa-gallery__slide {
  flex: 0 0 calc((100% - 32px) / 3);
  height: 370px;
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
}

.casa-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.casa-gallery__slide:hover img {
  transform: scale(1.035);
}

.casa-gallery__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0 0 5px;
  border: 0;
  border-radius: 50%;
  color: var(--casa-pink);
  background: #fff;
  font-size: 40px;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .2);
}

.casa-gallery__arrow--prev { left: 18px; }
.casa-gallery__arrow--next { right: 18px; }

.casa-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 17px;
}

.casa-gallery__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b6b6b6;
}

.casa-gallery__dots button.is-active {
  width: 22px;
  border-radius: 8px;
  background: var(--casa-pink);
}

/* Missão, visão e valores */
.casa-pillar {
  padding: 55px 24px;
}

.casa-pillar__inner {
  width: min(830px, calc(100% - 20px));
}

.casa-pillar h2 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.casa-pillar p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.casa-pillar--mission {
  color: var(--casa-pink);
  background: var(--casa-lime);
}

.casa-pillar--mission p {
  color: var(--casa-ink);
}

.casa-pillar--vision {
  background: #fff;
}

.casa-pillar--values {
  color: #fff;
  background: var(--casa-pink);
}

/* Pessoas e marcas */
.casa-people {
  padding: 90px 0 100px;
}

.casa-people__grid {
  display: grid;
  grid-template-columns: 1fr .72fr;
  gap: 90px;
  align-items: center;
}

.casa-people__copy p {
  max-width: 500px;
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.55;
}

.casa-people__photo {
  margin: 0;
}

.casa-people__photo img {
  display: block;
  width: 100%;
  aspect-ratio: .76;
  object-fit: cover;
  border: 3px solid var(--casa-pink);
  border-radius: 27px;
}

.casa-network {
  margin-top: 75px;
  text-align: center;
}

.casa-network h3 {
  margin: 48px 0 25px;
  color: var(--casa-mint);
  font-size: 20px;
  font-weight: 800;
  text-transform: lowercase;
}

.casa-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 38px;
}

.casa-brand {
  width: 135px;
  height: 76px;
  display: grid;
  place-items: center;
  margin: 0;
}

.casa-brand img {
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
  filter: none;
}

.casa-brand--base {
  width: 180px;
  height: 100px;
}

@media (max-width: 850px) {
  .casa-about-hero__frame {
    width: calc(100% - 56px);
  }

  .casa-story__opening,
  .casa-people__grid {
    gap: 45px;
  }

  .casa-gallery__slide {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 650px) {
  .casa-shell {
    width: calc(100% - 36px);
  }

  .casa-about-hero {
    min-height: 580px;
    padding: 105px 18px 35px;
    background-position: 64% center;
  }

  .casa-about-hero__frame {
    width: 100%;
    min-height: 400px;
    margin: 0;
    padding: 30px 20px;
    border-width: 3px;
  }

  .casa-about-hero h1 {
    font-size: clamp(32px, 10vw, 45px);
  }

  .casa-about-hero p {
    left: 20px;
    bottom: 28px;
    font-size: 21px;
  }

  .casa-story {
    padding: 65px 0 55px;
  }

  .casa-story h2,
  .casa-people h2 {
    margin-bottom: 30px;
  }

  .casa-story__opening,
  .casa-people__grid,
  .casa-plans {
    grid-template-columns: 1fr;
  }

  .casa-story__opening,
  .casa-plans {
    gap: 24px;
  }

  .casa-story__photo {
    order: -1;
  }

  .casa-plans img {
    height: auto;
    max-height: 330px;
  }

  .casa-video {
    padding: 45px 18px;
  }

  .casa-ods {
    padding: 42px 18px;
  }

  .casa-ods__panel {
    padding: 28px 20px;
  }

  .casa-ods__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: min(280px, 100%);
    margin: auto;
  }

  .casa-ods__grid img {
    width: 100%;
  }

  .casa-gallery__viewport {
    width: 100%;
  }

  .casa-gallery__track {
    gap: 10px;
  }

  .casa-gallery__slide {
    flex-basis: 86%;
    height: 350px;
  }

  .casa-gallery__arrow--prev { left: 10px; }
  .casa-gallery__arrow--next { right: 10px; }

  .casa-pillar {
    padding: 48px 18px;
  }

  .casa-people {
    padding: 65px 0 75px;
  }

  .casa-people__grid {
    gap: 35px;
  }

  .casa-people__photo {
    width: min(310px, 90%);
    margin: auto;
  }

  .casa-network {
    margin-top: 55px;
  }

  .casa-brands {
    gap: 18px 22px;
  }

  .casa-brand {
    width: 115px;
    height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .casa-gallery__track {
    scroll-behavior: auto;
  }
}


/* ==========================================================================
   PÁGINA DE VÍDEOS
   ========================================================================== */

/* ==========================================================
   VÍDEOS — CASA DE SOSSEGO VÓ TEREZA
========================================================== */

.videos-page-body {
  margin: 0;
  color: #161616;
  background: #fff;
  font-family: "filson-soft", Arial, sans-serif;
}

.videos-hero {
  position: relative;
  width: 100%;
  height: 870px;
  min-height: 870px;
  padding: 0;
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-sizing: border-box;
}

.videos-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 23%), transparent 34%, rgb(0 0 0 / 9%));
  pointer-events: none;
}

.videos-hero__frame {
  position: relative;
  z-index: 1;
  width: calc(100% - 56px);
  max-width: 1600px;
  height: calc(100% - 148px);
  margin: 120px auto 28px;
  border: 3px solid var(--lime, #c9dd00);
  box-sizing: border-box;
}

.videos-hero__content {
  width: 100%;
  height: 100%;
}

.videos-hero h1 {
  position: absolute;
  top: 55px;
  left: 60px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--pink, #df0067);
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-transform: lowercase;
}

.videos-hero h1 span {
  display: inline-block;
  padding: 7px 14px 9px;
  color: var(--pink, #df0067);
  background: var(--lime, #c9dd00);
  line-height: 1.04;
}

.videos-hero__content > p {
  position: absolute;
  top: 247px;
  left: 60px;
  margin: 0;
  color: #fff;
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 800;
  line-height: 1.12;
  text-shadow: 0 2px 9px rgb(0 0 0 / 48%);
}

.videos-content {
  padding: 90px 20px 125px;
  background: #fff;
}

.videos-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.videos-content h2 {
  margin: 0 0 28px;
  color: var(--pink, #df0067);
  font-size: clamp(36px, 3.2vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: lowercase;
}

.videos-intro {
  max-width: 980px;
  margin: 0 auto 55px;
  font-size: 20px;
  line-height: 1.28;
}

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

.video-card {
  min-width: 0;
}

.video-card > a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 18px;
  background: #ececec;
}

.video-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.video-card > a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 8%);
  transition: background-color 220ms ease;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 82px;
  height: 82px;
  border: 4px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 2px 7px rgb(0 0 0 / 25%));
}

.video-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 53%;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 22px solid #fff;
  transform: translate(-40%, -50%);
}

.video-card > a:hover img,
.video-card > a:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.video-card > a:hover::after,
.video-card > a:focus-visible::after {
  background: rgb(0 0 0 / 18%);
}

.video-card > a:focus-visible {
  outline: 4px solid var(--lime, #c9dd00);
  outline-offset: 4px;
}

.video-card h3 {
  margin: 13px 2px 0;
  color: #161616;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.videos-channel-link {
  display: table;
  margin: 62px auto 0;
  padding: 14px 26px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--pink, #df0067);
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease;
}

.videos-channel-link:hover,
.videos-channel-link:focus-visible {
  color: #fff;
  filter: brightness(0.92);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .videos-hero {
    height: 640px;
    min-height: 640px;
  }

  .videos-hero__frame {
    width: calc(100% - 40px);
    height: 512px;
    margin: 100px auto 28px;
  }

  .videos-hero h1 {
    top: 35px;
    left: 32px;
    font-size: clamp(31px, 5.5vw, 44px);
  }

  .videos-hero__content > p {
    top: 218px;
    left: 32px;
  }

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

@media (max-width: 560px) {
  .videos-hero {
    height: 600px;
    min-height: 600px;
    background-position: 58% center;
  }

  .videos-hero__frame {
    width: calc(100% - 28px);
    height: 486px;
    margin: 92px auto 22px;
  }

  .videos-hero h1 {
    top: 25px;
    right: 18px;
    left: 18px;
    gap: 7px;
    font-size: clamp(26px, 8vw, 34px);
  }

  .videos-hero h1 span {
    padding: 5px 9px 7px;
  }

  .videos-hero__content > p {
    top: 174px;
    right: 18px;
    left: 18px;
    font-size: 19px;
  }

  .videos-content {
    padding: 65px 20px 85px;
  }

  .videos-content h2 {
    font-size: 37px;
  }

  .videos-intro {
    margin-bottom: 42px;
    font-size: 17px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .video-card__play {
    width: 68px;
    height: 68px;
  }

  .video-card h3 {
    font-size: 17px;
  }
}


/* ==========================================================================
   DROPDOWNS DO MENU
   ========================================================================== */

/* ==========================================================
   DROPDOWN DO MENU PRINCIPAL
   Carregar depois de assets/css/style.css
========================================================== */

.header,
.header .nav-wrap {
  overflow: visible;
}

.header {
  z-index: 9999;
}

.header .nav {
  overflow: visible;
}

.header .nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.header .nav-item > a {
  white-space: nowrap;
}

.header .submenu-toggle {
  position: relative;
  width: 22px;
  height: 42px;
  margin-left: -5px;
  padding: 0;
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
}

.header .submenu-toggle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(-50%, -68%) rotate(45deg);
  transition: transform .2s ease;
}

.header .nav-item.submenu-open > .submenu-toggle::before,
.header .nav-item:focus-within > .submenu-toggle::before {
  transform: translate(-50%, -28%) rotate(225deg);
}

.header .dropdown-menu {
  position: absolute;
  z-index: 10010;
  top: calc(100% - 5px);
  left: 0;
  display: block !important;
  min-width: 225px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(207, 0, 99, .98);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
  transform: translateY(9px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.header .dropdown-menu--wide {
  min-width: 260px;
}

.header .dropdown-menu--right {
  right: 0;
  left: auto;
}

.header .dropdown-menu a {
  display: block;
  width: 100%;
  padding: 11px 18px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-transform: none;
  white-space: normal;
  transition: color .18s ease, background .18s ease, padding-left .18s ease;
}

.header .dropdown-menu a::after {
  display: none;
}

.header .dropdown-menu a:hover,
.header .dropdown-menu a:focus-visible {
  padding-left: 23px;
  color: #cf0063;
  background: #c9dd00;
  outline: none;
}

.header .nav-item:hover > .dropdown-menu,
.header .nav-item:focus-within > .dropdown-menu,
.header .nav-item.submenu-open > .dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ==========================================================
   DROPDOWN NO CELULAR
========================================================== */

@media (max-width: 850px) {
  .header .nav {
    overflow-y: auto;
  }

  .header .nav-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    width: 100%;
    align-items: stretch;
  }

  .header .nav-item > a {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  .header .submenu-toggle {
    width: 46px;
    height: 46px;
    margin: 0;
    border-left: 1px solid rgba(255, 255, 255, .22);
  }

  .header .dropdown-menu,
  .header .dropdown-menu--wide,
  .header .dropdown-menu--right {
    position: static;
    grid-column: 1 / -1;
    right: auto;
    left: auto;
    min-width: 0;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(117, 0, 57, .58);
    box-shadow: none;
    transform: none;
    transition: max-height .28s ease, padding .28s ease, opacity .2s ease;
  }

  .header .nav-item:hover > .dropdown-menu {
    max-height: 0;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  /* No celular, a seta só vira quando o JavaScript realmente abre o submenu. */
  .header .nav-item:focus-within:not(.submenu-open) > .submenu-toggle::before {
    transform: translate(-50%, -68%) rotate(45deg);
  }

  .header .nav-item:focus-within:not(.submenu-open) > .dropdown-menu {
    max-height: 0;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  .header .nav-item.submenu-open > .dropdown-menu,
  .header .nav-item.submenu-open:hover > .dropdown-menu {
    max-height: 520px;
    padding: 6px 0 10px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .header .dropdown-menu a {
    padding: 11px 20px 11px 28px;
    font-size: 12px;
  }

  .header .dropdown-menu a:hover,
  .header .dropdown-menu a:focus-visible {
    padding-left: 33px;
  }
}


/* ==========================================================================
   CORREÇÕES GLOBAIS DE MOBILE
   ========================================================================== */

/* ==========================================================
   CORREÇÃO GLOBAL DO MOBILE — CASA DE SOSSEGO VÓ TEREZA
   Carregado pelo include/_header.php em todas as páginas.
========================================================== */

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

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

  img,
  video,
  iframe {
    max-width: 100%;
  }

  /* Cabeçalho */
  .header .nav-wrap {
    width: calc(100% - 24px) !important;
    height: 106px !important;
    gap: 9px !important;
  }

  .header .logo {
    flex: 0 0 104px !important;
    min-width: 0 !important;
  }

  .header .logo img {
    display: block !important;
    width: 104px !important;
    max-width: 104px !important;
    max-height: 88px !important;
    margin-top: 0 !important;
    object-fit: contain !important;
  }

  .header .menu-button,
  .header .search-button {
    width: 52px !important;
    height: 52px !important;
    flex: 0 0 52px !important;
    padding: 11px !important;
  }

  .header .search-button img {
    width: 30px !important;
    height: 30px !important;
  }

  .header .nav {
    top: 100% !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }

  .header .nav.open {
    max-height: calc(100vh - 106px) !important;
    max-height: calc(100dvh - 106px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  /* Altura única de todos os banners internos */
  .hero,
  .donation-hero,
  .volunteer-hero,
  .casa-hero,
  .casa-about-hero,
  .projects-hero,
  .courses-hero,
  .agenda-hero,
  .institutional-hero,
  .videos-hero {
    width: 100% !important;
    height: 600px !important;
    min-height: 600px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
  }

  .donation-hero {
    background-position: 56% center !important;
  }

  /* Moldura afastada do logo e dos botões */
  .hero-frame,
  .donation-hero__frame,
  .volunteer-hero__frame,
  .casa-hero__frame,
  .casa-about-hero__frame,
  .projects-hero__frame,
  .courses-hero__frame,
  .agenda-hero__frame,
  .institutional-hero__frame,
  .videos-hero__frame {
    position: relative !important;
    inset: auto !important;
    width: calc(100% - 28px) !important;
    max-width: none !important;
    height: 466px !important;
    min-height: 0 !important;
    margin: 112px auto 22px !important;
    padding: 0 !important;
    border-width: 3px !important;
  }

  /* Títulos internos: tamanho reduzido e sem quebra indesejada */
  .donation-hero h1,
  .volunteer-hero h1,
  .casa-hero h1,
  .casa-about-hero h1,
  .projects-hero h1,
  .courses-hero h1,
  .agenda-hero h1,
  .institutional-hero h1,
  .videos-hero h1 {
    position: absolute !important;
    inset: 24px 14px auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 7px !important;
    width: auto !important;
    max-width: calc(100% - 28px) !important;
    margin: 0 !important;
    font-size: clamp(23px, 6.6vw, 27px) !important;
    line-height: 1.04 !important;
  }

  .donation-hero h1 span,
  .volunteer-hero h1 span,
  .casa-hero h1 span,
  .casa-about-hero h1 span,
  .projects-hero h1 span,
  .courses-hero h1 span,
  .agenda-hero h1 span,
  .institutional-hero h1 span,
  .videos-hero h1 span {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 5px 8px 7px !important;
    line-height: 1.04 !important;
    white-space: nowrap !important;
  }

  /* Subtítulos próximos ao título */
  .volunteer-hero__message,
  .casa-hero__message,
  .casa-about-hero p,
  .projects-hero__content > p,
  .institutional-hero__content > p,
  .videos-hero__content > p {
    position: absolute !important;
    inset: 172px 16px auto !important;
    max-width: calc(100% - 32px) !important;
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1.12 !important;
  }

  /* A Home possui estrutura diferente das páginas internas */
  .hero h1 {
    position: absolute !important;
    inset: 132px 28px auto !important;
    max-width: calc(100% - 56px) !important;
    margin: 0 !important;
    font-size: clamp(23px, 6.6vw, 27px) !important;
    line-height: 1.34 !important;
  }

  .hero h1 mark {
    padding: 4px 8px 6px !important;
    white-space: nowrap !important;
  }

  .hero p {
    inset: 285px 28px auto !important;
    max-width: calc(100% - 56px) !important;
    font-size: 17px !important;
    line-height: 1.12 !important;
  }

  .hero-actions {
    right: 28px !important;
    bottom: 30px !important;
    left: 28px !important;
    width: auto !important;
  }

  /* Conteúdo e rodapé não podem ultrapassar a largura da tela */
  main,
  .section,
  .footer,
  .footer-grid,
  .footer-navigation,
  .footer-contact {
    max-width: 100% !important;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* ==========================================================================
   AJUSTES FINAIS PADRONIZADOS — HOME / SLIDER DE CURSOS
   Mantidos no fim do arquivo para evitar sobrescrita por estilos antigos.
   ========================================================================== */

.workshops .section {
  width: min(1120px, calc(100% - 48px));
  padding: 58px 0 34px;
}

.workshops h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.15;
}

.workshop-slider,
.workshop-viewport,
.workshop-track {
  width: 100%;
  min-width: 0;
}

.workshop-track {
  display: flex;
  gap: 20px;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.work-card {
  min-width: 0;
  flex: 0 0 calc((100% - 60px) / 4);
}

.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.78;
  object-fit: cover;
}

.workshop-arrow {
  z-index: 3;
  margin-top: clamp(52px, 5.2vw, 72px);
  cursor: pointer;
  touch-action: manipulation;
}

.workshops .button {
  margin-top: 28px;
}

@media (max-width: 850px) {
  .workshop-track {
    gap: 16px;
  }

  .work-card {
    flex-basis: calc((100% - 16px) / 2);
  }
}

@media (max-width: 560px) {
  .workshops .section {
    width: calc(100% - 20px);
    padding: 48px 0 38px;
  }

  .workshops h2 {
    margin-bottom: 20px;
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.15;
  }

  .workshop-track {
    gap: 12px;
  }

  .work-card {
    flex-basis: 100%;
  }

  .workshop-arrow {
    margin-top: calc((100vw - 76px) / 3.3 - 11px);
  }
}

/* ==========================================================================
   SOBRE NÓS — BLOCOS DE BASE, PARCEIROS E JUNÇÕES
   ========================================================================== */

.casa-network {
  width: 100%;
  max-width: 760px;
  margin: 68px auto 0;
  text-align: center;
}

.casa-network__group {
  width: 100%;
  margin: 0;
  padding: 0;
}

.casa-network__group + .casa-network__group {
  margin-top: 46px;
}

.casa-network h3 {
  margin: 0 0 24px;
  color: var(--casa-mint, #8dcfc5);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-transform: lowercase;
}

.casa-brands {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 145px);
  justify-content: center;
  align-items: center;
  gap: 27px 34px;
}

.casa-brand {
  width: 145px;
  height: 78px;
  margin: 0;
  display: grid;
  place-items: center;
}

.casa-brand img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 70px;
  object-fit: contain;
}

.casa-brands--base {
  grid-template-columns: 190px;
}

.casa-brands--base .casa-brand {
  width: 190px;
  height: 105px;
}

.casa-brands--base .casa-brand img {
  max-height: 96px;
}

.casa-brands--juncoes {
  grid-template-columns: repeat(2, 190px);
  gap: 32px;
}

.casa-brands--juncoes .casa-brand {
  width: 190px;
  height: 88px;
}

.casa-brands--juncoes .casa-brand img {
  max-height: 80px;
}

@media (max-width: 850px) {
  .casa-network {
    max-width: 560px;
  }

  .casa-brands--partners {
    grid-template-columns: repeat(3, 135px);
  }

  .casa-brand {
    width: 135px;
  }
}

@media (max-width: 560px) {
  .casa-network {
    width: 100%;
    margin-top: 52px;
  }

  .casa-network__group + .casa-network__group {
    margin-top: 40px;
  }

  .casa-network h3 {
    margin-bottom: 20px;
    font-size: 18px;
  }

  .casa-brands--partners {
    grid-template-columns: repeat(2, minmax(0, 120px));
    gap: 20px 24px;
  }

  .casa-brand {
    width: 120px;
    height: 68px;
  }

  .casa-brands--base {
    grid-template-columns: 180px;
  }

  .casa-brands--base .casa-brand {
    width: 180px;
  }

  .casa-brands--juncoes {
    grid-template-columns: repeat(2, minmax(0, 135px));
    gap: 18px;
  }

  .casa-brands--juncoes .casa-brand {
    width: 135px;
  }
}

/* ==========================================================================
   PÁGINA DE NOTÍCIAS — PADRÃO DE PROJETOS PONTUAIS
   ========================================================================== */

.news-page-container {
  width: min(100% - 40px, 900px);
}

.news-page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.news-page-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 7px 22px rgba(0, 0, 0, .08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.news-page-card__link {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.news-page-card__link:hover,
.news-page-card__link:focus-visible {
  color: inherit;
  text-decoration: none;
  outline: none;
}

.news-page-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .13);
}

.news-page-card__image {
  margin: 0;
  overflow: hidden;
}

.news-page-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  object-fit: cover;
  transition: transform .35s ease;
}

.news-page-card:hover .news-page-card__image img {
  transform: scale(1.035);
}

.news-page-card__content {
  flex: 1;
  padding: 17px 18px 20px;
  display: flex;
  flex-direction: column;
}

.news-page-card h3 {
  margin: 0 0 9px;
  color: var(--projects-pink, #d50065);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.16;
}

.news-page-card p {
  margin: 0;
  color: #222222;
  font-size: 14px;
  line-height: 1.38;
}

.news-page-card__more {
  display: inline-block;
  margin-top: 15px;
  color: var(--projects-pink, #d50065);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Página interna da notícia */
.news-detail {
  padding: 78px 20px 105px;
  background: #ffffff;
}

.news-detail__container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.news-detail h2 {
  margin: 0 0 34px;
  color: var(--projects-pink, #d50065);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  text-transform: lowercase;
}

.news-detail__featured {
  margin: 0 0 34px;
  overflow: hidden;
  border-radius: 12px;
}

.news-detail__featured img {
  display: block;
  width: 100%;
  max-height: 510px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-detail__content {
  color: #171717;
  font-size: 17px;
  line-height: 1.58;
}

.news-detail__content p,
.news-detail__not-found {
  margin: 0 0 21px;
}

.news-detail__back {
  display: inline-flex;
  margin-top: 18px;
  color: var(--projects-pink, #d50065);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.news-detail__back:hover,
.news-detail__back:focus-visible {
  color: var(--projects-pink, #d50065);
  text-decoration: underline;
}

@media (max-width: 850px) {
  .news-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .news-page-container {
    width: min(100% - 32px, 640px);
  }

  .news-page-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .news-page-card__content {
    padding: 15px 16px 18px;
  }

  .news-detail {
    padding: 54px 18px 75px;
  }

  .news-detail h2 {
    margin-bottom: 25px;
    font-size: 30px;
  }

  .news-detail__featured {
    margin-bottom: 26px;
    border-radius: 9px;
  }

  .news-detail__content {
    font-size: 16px;
    line-height: 1.5;
  }
}

/* ==========================================================================
   PÁGINA DE ATIVIDADES — AJUSTE FIEL À REFERÊNCIA
   ========================================================================== */

.activities-page .institutional-hero {
  width: 100%;
  height: clamp(560px, 52vw, 620px);
  min-height: 560px;
  padding: 0;
  background-position: center center;
  background-size: cover;
}

.activities-page .institutional-hero__shade {
  background: linear-gradient(180deg, rgba(0, 0, 0, .24), transparent 34%, rgba(0, 0, 0, .08));
}

.activities-page .institutional-hero__frame {
  position: relative;
  width: min(920px, calc(100% - 80px));
  height: 410px;
  min-height: 410px;
  margin: 124px auto 0;
  border: 3px solid var(--lime, #c9dd00);
}

.activities-page .institutional-hero h1 {
  position: absolute;
  top: 48px;
  left: 40px;
  gap: 10px;
  font-size: clamp(32px, 3vw, 43px);
  line-height: 1.04;
}

.activities-page .institutional-hero h1 span {
  padding: 7px 12px 8px;
}

.activities-page .activities-content {
  padding: 68px 0 84px;
}

.activities-page .institutional-container {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
        padding-top: 20px;
    padding-bottom: 20px;
}

.activities-page .activities-content h2 {
  margin: 0 0 22px;
  color: var(--pink, #df0067);
  font-size: clamp(31px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
}

.activities-page .activities-intro,
.activities-page .activities-copy {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.35;
}

.activities-page .activities-intro {
  margin: 0 auto 38px;
}

.activities-page .activities-grid {
  width: 100%;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 38px 24px;
}

.activities-page .activity-card {
  min-width: 0;
  text-align: center;
}

.activities-page .activity-card img {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.activities-page .activity-card h3 {
  margin: 0;
  color: #111111;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.12;
  text-transform: uppercase;
}

.activities-page .activities-grid .activity-card:nth-child(5) {
  grid-column: 1;
}

.activities-page .activities-grid .activity-card:nth-child(6) {
  grid-column: 2;
}

.activities-page .activities-copy p {
  margin: 0 0 24px;
}

.activities-page .activities-copy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 850px) {
  .activities-page .institutional-hero {
    height: 600px;
    min-height: 600px;
  }

  .activities-page .institutional-hero__frame {
    width: calc(100% - 56px);
  }

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

  .activities-page .activities-grid .activity-card:nth-child(5),
  .activities-page .activities-grid .activity-card:nth-child(6) {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .activities-page .institutional-hero {
    height: 600px !important;
    min-height: 600px !important;
    background-position: 56% center !important;
  }

  .activities-page .institutional-hero__frame {
    width: calc(100% - 28px) !important;
    height: 466px !important;
    min-height: 0 !important;
    margin: 112px auto 22px !important;
  }

  .activities-page .institutional-hero h1 {
    inset: 24px 14px auto !important;
    gap: 7px !important;
    font-size: clamp(23px, 6.6vw, 27px) !important;
  }

  .activities-page .activities-content {
    padding: 54px 0 70px;
  }

  .activities-page .institutional-container {
    width: calc(100% - 34px);
  }

  .activities-page .activities-content h2 {
    margin-bottom: 22px;
    font-size: 31px;
  }

  .activities-page .activities-intro,
  .activities-page .activities-copy {
    font-size: 15px;
    line-height: 1.4;
  }

  .activities-page .activities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 18px;
    margin-bottom: 45px;
  }

  .activities-page .activity-card img {
    width: 76px;
    height: 76px;
  }

  .activities-page .activity-card h3 {
    font-size: 13px;
  }
}
