/* ==========================================================
   MAR GRANDE | CONECTA VERA CRUZ
   Classes exclusivas com prefixo mg-
   ========================================================== */

:root {
  --mg-blue: #075d78;
  --mg-blue-deep: #073c5a;
  --mg-ocean: #0b8da0;
  --mg-turquoise: #17b7b0;
  --mg-green: #087b58;
  --mg-sand: #f7f1e5;
  --mg-gold: #f2c15d;
  --mg-coral: #dc724f;
  --mg-ink: #163a40;
  --mg-muted: #5e7473;
  --mg-line: rgba(7, 93, 120, .16);
  --mg-shadow: 0 24px 65px rgba(5, 61, 82, .16);
}
/* Justifica apenas os parágrafos */
p {
  text-align: justify;
}

/* Os títulos permanecem com o alinhamento padrão ou o que você definir */
h1, h2, h3 {
  text-align: left; /* ou center, etc. */
}
html,
body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.mar-grande-page {
  background: #fff;
}

.mar-grande-page main {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.mar-grande-page *,
.mar-grande-page *::before,
.mar-grande-page *::after {
  box-sizing: border-box;
}

.mar-grande-page img {
  display: block;
  max-width: 100%;
}

.mg-shell {
  width: min(1220px, calc(100% - 36px));
  margin-inline: auto;
}

.mg-section {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 108px 0;
  scroll-margin-top: 142px;
}

.mg-eyebrow {
  display: inline-flex;
  color: var(--mg-ocean);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mg-eyebrow--light { color: #a8f2ea; }
.mg-eyebrow--gold { color: var(--mg-gold); }

.mg-lead {
  color: #365c5e;
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.8;
}

.mg-section-heading {
  max-width: 860px;
  margin-bottom: 45px;
}

.mg-section-heading--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.mg-section-heading--light h2,
.mg-section-heading--light p {
  color: #fff;
}

.mg-section-heading h2,
.mg-sources h2 {
  margin: 10px 0 18px;
  color: var(--mg-blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  letter-spacing: -.045em;
  line-height: .98;
}

.mg-section-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--mg-muted);
  line-height: 1.75;
}

/* HERO */

.mg-hero {
  position: relative;
  min-height: min(790px, calc(100vh - 78px));
  overflow: hidden;
  color: #fff;
  background: #063b55;
}

.mg-hero__image,
.mg-hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mg-hero__image {
  object-fit: cover;
  object-position: center;
}

.mg-hero__overlay {
  background:
    linear-gradient(90deg, rgba(2, 36, 57, .93), rgba(3, 67, 77, .58) 52%, rgba(3, 67, 77, .12)),
    linear-gradient(0deg, rgba(1, 35, 49, .58), transparent 54%);
}

.mg-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: min(710px, calc(100vh - 78px));
  padding-top: 95px;
  padding-bottom: 110px;
  justify-content: center;
  flex-direction: column;
}

.mg-breadcrumbs {
  display: flex;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 9px;
  color: rgba(255,255,255,.73);
  font-size: .78rem;
}

.mg-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.mg-hero h1 {
  max-width: 930px;
  margin: 13px 0 23px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 11vw, 9rem);
  letter-spacing: -.07em;
  line-height: .83;
  text-shadow: 0 14px 35px rgba(0, 24, 38, .3);
}

.mg-hero__content > p {
  max-width: 730px;
  margin: 0 0 30px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1.04rem, 2vw, 1.28rem);
  line-height: 1.74;
}

.mg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mg-button {
  display: inline-flex;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  font-size: .86rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.mg-button--primary {
  color: #053744;
  background: linear-gradient(135deg, #ffe79d, var(--mg-gold));
  box-shadow: 0 15px 34px rgba(242, 193, 93, .25);
}

.mg-button--glass {
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}

.mg-hero__stamp {
  position: absolute;
  z-index: 2;
  right: 25px;
  bottom: 25px;
  display: grid;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  place-content: center;
  color: #fff;
  background: rgba(2, 47, 63, .5);
  text-align: center;
  backdrop-filter: blur(12px);
}

.mg-hero__stamp strong {
  font-family: Georgia, serif;
  font-size: 2rem;
}

.mg-hero__stamp span {
  max-width: 100px;
  font-size: .63rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* NAVEGAÇÃO INTERNA */

.mg-nav-wrap {
  position: sticky;
  z-index: 850;
  top: 78px;
  border-bottom: 1px solid var(--mg-line);
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 25px rgba(5, 61, 82, .07);
  backdrop-filter: blur(14px);
}

.mg-nav {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.mg-nav::-webkit-scrollbar { display: none; }

.mg-nav a {
  position: relative;
  display: inline-flex;
  min-height: 58px;
  padding: 15px 16px;
  align-items: center;
  color: #566c6b;
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.mg-nav a::after {
  position: absolute;
  right: 15px;
  bottom: 0;
  left: 15px;
  height: 3px;
  border-radius: 99px 99px 0 0;
  background: var(--mg-turquoise);
  content: "";
  opacity: 0;
  transform: scaleX(.25);
  transition: opacity .2s ease, transform .2s ease;
}

.mg-nav a:hover,
.mg-nav a.is-active {
  color: var(--mg-blue-deep);
}

.mg-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* VISÃO GERAL */

.mg-overview {
  background:
    radial-gradient(circle at 95% 0%, rgba(23, 183, 176, .11), transparent 28%),
    #fff;
}

.mg-overview__grid {
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  gap: 64px;
  align-items: center;
}

.mg-overview__copy h2 {
  margin: 12px 0 22px;
  color: var(--mg-blue-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  letter-spacing: -.045em;
  line-height: .98;
}

.mg-overview__copy > p:not(.mg-lead) {
  color: var(--mg-muted);
  line-height: 1.8;
}

.mg-overview__cards {
  display: grid;
  margin-top: 34px;
  gap: 11px;
}

.mg-overview__cards article {
  padding: 17px 18px;
  border: 1px solid var(--mg-line);
  border-radius: 17px;
  background: #f8fbfa;
}

.mg-overview__cards strong,
.mg-overview__cards span {
  display: block;
}

.mg-overview__cards strong { color: var(--mg-blue-deep); }
.mg-overview__cards span {
  margin-top: 4px;
  color: var(--mg-muted);
  font-size: .83rem;
  line-height: 1.55;
}

.mg-overview__media {
  position: relative;
  margin: 0;
}

.mg-overview__media::before {
  position: absolute;
  z-index: -1;
  top: -22px;
  right: -22px;
  width: 72%;
  height: 62%;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--mg-gold), #f9dfaa);
  content: "";
}

.mg-overview__media img {
  width: 100%;
  min-height: 560px;
  border-radius: 28px;
  object-fit: cover;
  box-shadow: var(--mg-shadow);
}

.mg-overview__media figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 17px 18px;
  border-radius: 16px;
  color: rgba(255,255,255,.76);
  background: rgba(3, 48, 61, .86);
  font-size: .78rem;
  line-height: 1.55;
  backdrop-filter: blur(10px);
}

.mg-overview__media figcaption strong,
.mg-overview__media figcaption span {
  display: block;
}

.mg-overview__media figcaption strong { color: #fff; }

/* HISTÓRIA */

.mg-history {
  color: #fff;
  background:
    radial-gradient(circle at 100% 15%, rgba(23,183,176,.18), transparent 28%),
    linear-gradient(145deg, #052f4f 0%, #075b68 64%, #087b58 100%);
}

.mg-history__grid {
  display: grid;
  grid-template-columns: 1fr .82fr;
  gap: 65px;
  align-items: start;
}

.mg-history__story .mg-lead { color: rgba(255,255,255,.88); }
.mg-history__story p:not(.mg-lead) {
  color: rgba(255,255,255,.73);
  line-height: 1.8;
}

.mg-timeline {
  position: relative;
  display: grid;
  gap: 13px;
}

.mg-timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 18px;
  width: 2px;
  background: rgba(255,255,255,.18);
  content: "";
}

.mg-timeline article {
  position: relative;
  padding: 18px 18px 18px 55px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
}

.mg-timeline article::before {
  position: absolute;
  top: 24px;
  left: 11px;
  width: 16px;
  height: 16px;
  border: 4px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: var(--mg-gold);
  content: "";
}

.mg-timeline span {
  color: var(--mg-gold);
  font-size: .71rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mg-timeline h3 {
  margin: 5px 0 6px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.mg-timeline p {
  margin: 0;
  color: rgba(255,255,255,.69);
  font-size: .82rem;
  line-height: 1.6;
}

/* NOME */

.mg-name {
  background:
    radial-gradient(circle at 0% 0%, rgba(242,193,93,.17), transparent 27%),
    linear-gradient(180deg, #fffdf8, var(--mg-sand));
}

.mg-name__grid {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 65px;
  align-items: center;
}

.mg-name__mark {
  position: relative;
  display: grid;
  min-height: 510px;
  padding: 45px;
  overflow: hidden;
  border-radius: 28px;
  place-content: center;
  background:
    radial-gradient(circle at 30% 15%, rgba(255,255,255,.24), transparent 24%),
    linear-gradient(150deg, var(--mg-ocean), var(--mg-blue-deep));
  box-shadow: var(--mg-shadow);
}

.mg-name__mark::before,
.mg-name__mark::after {
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  content: "";
}

.mg-name__mark::before { top: -90px; right: -90px; }
.mg-name__mark::after { bottom: -110px; left: -110px; }

.mg-name__mark span,
.mg-name__mark strong {
  position: relative;
  z-index: 2;
  color: #fff;
  font-family: Georgia, serif;
  line-height: .83;
}

.mg-name__mark span {
  font-size: clamp(3.5rem, 7vw, 6rem);
}

.mg-name__mark strong {
  font-size: clamp(3.1rem, 6.5vw, 5.4rem);
}

.mg-name__copy h2 {
  margin: 10px 0 22px;
  color: var(--mg-blue-deep);
  font-family: Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  letter-spacing: -.045em;
  line-height: .98;
}

.mg-name__copy p:not(.mg-lead) {
  color: var(--mg-muted);
  line-height: 1.8;
}

.mg-source-alert {
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 4px solid var(--mg-gold);
  border-radius: 0 17px 17px 0;
  background: rgba(255,255,255,.82);
}

.mg-source-alert strong { color: #7d5a11; }
.mg-source-alert p {
  margin: 6px 0 0;
  color: #745f35 !important;
  font-size: .84rem;
  line-height: 1.6 !important;
}

/* IGREJA */

.mg-church { background: #fff; }

.mg-church__feature {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 45px;
  align-items: center;
}

.mg-church__main {
  margin: 0;
}

.mg-church__main img {
  width: 100%;
  min-height: 500px;
  border-radius: 27px;
  object-fit: cover;
  box-shadow: var(--mg-shadow);
}

.mg-church__main figcaption,
.mg-church__gallery figcaption {
  margin-top: 10px;
  color: var(--mg-muted);
  font-size: .76rem;
  line-height: 1.5;
}

.mg-church__text {
  padding: 10px 0;
}

.mg-church__year {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--mg-coral);
  font-family: Georgia, serif;
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1;
}

.mg-church__text h3 {
  margin: 0 0 17px;
  color: var(--mg-blue-deep);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.03;
}

.mg-church__text p {
  color: var(--mg-muted);
  line-height: 1.78;
}

.mg-church__cards {
  display: grid;
  margin-top: 52px;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mg-church__cards article {
  padding: 27px;
  border: 1px solid var(--mg-line);
  border-radius: 21px;
  background: #f8fbfa;
}

.mg-church__cards span {
  color: var(--mg-coral);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 900;
}

.mg-church__cards h3 {
  margin: 11px 0 10px;
  color: var(--mg-blue-deep);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.08;
}

.mg-church__cards p {
  margin: 0;
  color: var(--mg-muted);
  font-size: .84rem;
  line-height: 1.65;
}

.mg-church__gallery {
  display: grid;
  margin-top: 44px;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
}

.mg-church__gallery figure { margin: 0; }
.mg-church__gallery img {
  width: 100%;
  height: 520px;
  border-radius: 23px;
  object-fit: cover;
}

/* PRAÇA */

.mg-square {
  background:
    radial-gradient(circle at 100% 0%, rgba(23,183,176,.13), transparent 28%),
    #f5faf8;
}

.mg-square__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 65px;
  align-items: center;
}

.mg-square__copy h2 {
  margin: 10px 0 22px;
  color: var(--mg-blue-deep);
  font-family: Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  letter-spacing: -.045em;
  line-height: .98;
}

.mg-square__copy > p:not(.mg-lead) {
  color: var(--mg-muted);
  line-height: 1.8;
}

.mg-square__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.mg-square__facts article {
  min-height: 175px;
  padding: 24px;
  border: 1px solid var(--mg-line);
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 13px 35px rgba(5, 61, 82, .08);
}

.mg-square__facts strong,
.mg-square__facts span {
  display: block;
}

.mg-square__facts strong {
  color: var(--mg-ocean);
  font-family: Georgia, serif;
  font-size: 1.85rem;
  line-height: 1.05;
}

.mg-square__facts span {
  margin-top: 10px;
  color: var(--mg-muted);
  font-size: .82rem;
  line-height: 1.55;
}

/* ÁGUAS */

.mg-water {
  color: #fff;
  background:
    radial-gradient(circle at 0% 100%, rgba(242,193,93,.15), transparent 28%),
    linear-gradient(145deg, #052f4f, #075d78 58%, #087b58);
}

.mg-water__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.mg-water__text .mg-lead { color: rgba(255,255,255,.88); }
.mg-water__text p:not(.mg-lead) {
  color: rgba(255,255,255,.72);
  line-height: 1.8;
}

.mg-water__mosaic {
  display: grid;
  gap: 14px;
}

.mg-water__mosaic-main { margin: 0; }

.mg-water__mosaic-main img {
  width: 100%;
  min-height: 470px;
  border-radius: 27px;
  object-fit: cover;
  box-shadow: 0 28px 75px rgba(0, 28, 42, .33);
}

.mg-water__mosaic-main figcaption {
  margin-top: 10px;
  color: rgba(255,255,255,.62);
  font-size: .76rem;
}

.mg-water__mosaic blockquote {
  position: relative;
  margin: 0;
  padding: 25px 28px 25px 65px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.08);
  font-family: Georgia, serif;
  font-size: 1.12rem;
  line-height: 1.58;
}

.mg-water__mosaic blockquote span {
  position: absolute;
  top: 8px;
  left: 20px;
  color: var(--mg-gold);
  font-size: 4.5rem;
  line-height: 1;
}

/* LENDAS */

.mg-legends {
  background:
    radial-gradient(circle at 100% 0%, rgba(220,114,79,.1), transparent 27%),
    #fffdf8;
}

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

.mg-legends__grid article {
  min-height: 340px;
  padding: 29px;
  border: 1px solid #eadfc9;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(74,52,18,.07);
}

.mg-legends__number {
  color: var(--mg-coral);
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 900;
}

.mg-legends__grid h3 {
  margin: 14px 0 13px;
  color: var(--mg-blue-deep);
  font-family: Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.05;
}

.mg-legends__grid p {
  color: var(--mg-muted);
  line-height: 1.72;
}

.mg-legends__grid small {
  display: block;
  margin-top: 18px;
  color: #92764b;
  font-size: .72rem;
  line-height: 1.5;
}

/* FATOS */

.mg-facts {
  background: #f4faf9;
}

.mg-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mg-facts__grid article {
  min-height: 225px;
  padding: 25px;
  border: 1px solid var(--mg-line);
  border-radius: 20px;
  background: #fff;
}

.mg-facts__grid strong {
  display: block;
  color: var(--mg-blue-deep);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.08;
}

.mg-facts__grid p {
  margin: 13px 0 0;
  color: var(--mg-muted);
  font-size: .84rem;
  line-height: 1.65;
}

/* GALERIA */

.mg-gallery { background: #fff; }

.mg-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 245px;
  gap: 14px;
}

.mg-gallery__item {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 21px;
  background: var(--mg-blue-deep);
  cursor: zoom-in;
}

.mg-gallery__item--wide { grid-column: span 2; }
.mg-gallery__item--tall { grid-row: span 2; }

.mg-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.mg-gallery__item:hover img { transform: scale(1.045); }

.mg-gallery__item span {
  position: absolute;
  right: 13px;
  bottom: 13px;
  left: 13px;
  padding: 11px 13px;
  border-radius: 12px;
  color: #fff;
  background: rgba(3,45,56,.76);
  font-size: .75rem;
  font-weight: 850;
  text-align: left;
  backdrop-filter: blur(10px);
}

/* MURAL */

.mg-memory {
  color: #fff;
  background:
    radial-gradient(circle at 92% 0%, rgba(242,193,93,.16), transparent 27%),
    linear-gradient(145deg, #052f4f, #075d78 52%, #087b58);
}

.mg-memory__header {
  max-width: 820px;
  margin-bottom: 42px;
}

.mg-memory__header h2 {
  margin: 10px 0 16px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  line-height: .98;
}

.mg-memory__header p {
  color: rgba(255,255,255,.72);
  line-height: 1.75;
}

.mg-memory__grid {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 28px;
  grid-template-columns: .86fr 1.14fr;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0,28,42,.28);
}

.mg-memory__form,
.mg-memory__feed {
  padding: 36px;
}

.mg-memory__form {
  color: var(--mg-ink);
  background: #f8fbfa;
}

.mg-memory__form h3,
.mg-memory__feed h3 {
  margin: 0 0 20px;
  color: var(--mg-blue-deep);
  font-family: Georgia, serif;
  font-size: 1.75rem;
}

.mg-memory__form label {
  display: block;
  margin: 18px 0 8px;
  color: var(--mg-ink);
  font-size: .79rem;
  font-weight: 900;
}

.mg-memory__form label span {
  color: var(--mg-muted);
  font-weight: 600;
}

.mg-memory__form input,
.mg-memory__form textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #cbded8;
  border-radius: 13px;
  outline: none;
  color: var(--mg-ink);
  background: #fff;
  font: inherit;
}

.mg-memory__form textarea { resize: vertical; }

.mg-memory__form input:focus,
.mg-memory__form textarea:focus {
  border-color: var(--mg-ocean);
  box-shadow: 0 0 0 4px rgba(11,141,160,.1);
}

.mg-memory__counter {
  display: flex;
  margin-top: 7px;
  justify-content: space-between;
  gap: 12px;
  color: var(--mg-muted);
  font-size: .7rem;
}

#mg-memory-warning { color: #aa4f34; }

#mg-memory-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  border: 0;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--mg-ocean), var(--mg-green));
  font-weight: 900;
  cursor: pointer;
}

#mg-memory-submit:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.mg-memory__privacy,
.mg-memory__status {
  color: var(--mg-muted);
  font-size: .72rem;
  line-height: 1.5;
}

.mg-memory__privacy { margin: 11px 0 0; }
.mg-memory__status {
  min-height: 22px;
  margin-top: 10px;
  font-weight: 800;
}

.mg-memory__status[data-type="success"] { color: #087a45; }
.mg-memory__status[data-type="error"] { color: #a33e2d; }
.mg-memory__status[data-type="warning"] { color: #96630e; }

.mg-memory__feed {
  color: var(--mg-ink);
  background: #fff;
}

.mg-memory__feed-head {
  display: flex;
  margin-bottom: 18px;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.mg-memory__feed-head small {
  color: var(--mg-ocean);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mg-memory__feed-head h3 { margin: 5px 0 0; }

#mg-memory-total {
  padding: 7px 10px;
  border-radius: 99px;
  color: var(--mg-green);
  background: #e2f3ec;
  font-size: .71rem;
}

.mg-memory__list {
  display: grid;
  max-height: 620px;
  overflow-y: auto;
  gap: 12px;
}

.mg-memory__empty {
  padding: 30px;
  border: 1px dashed #bed7cf;
  border-radius: 18px;
  color: var(--mg-muted);
  background: #f8fbfa;
  text-align: center;
}

.mg-memory-card {
  padding: 19px;
  border: 1px solid var(--mg-line);
  border-radius: 17px;
  background: #fff;
}

.mg-memory-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mg-memory-card strong { color: var(--mg-green); }
.mg-memory-card time {
  color: var(--mg-muted);
  font-size: .7rem;
}

.mg-memory-card p {
  margin: 11px 0 0;
  color: #526765;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mg-memory-card__actions {
  display: flex;
  margin-top: 13px;
  justify-content: flex-end;
}

.mg-memory-like {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--mg-line);
  border-radius: 99px;
  color: var(--mg-green);
  background: #f6faf8;
  font-size: .72rem;
  font-weight: 850;
  cursor: pointer;
}

/* FONTES */

.mg-sources {
  background: var(--mg-sand);
}

.mg-sources__grid {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 70px;
}

.mg-sources p,
.mg-sources li {
  color: var(--mg-muted);
  line-height: 1.75;
}

.mg-sources ul {
  margin: 19px 0;
  padding-left: 20px;
}

.mg-sources__note {
  padding: 17px 19px;
  border-left: 4px solid var(--mg-gold);
  border-radius: 0 15px 15px 0;
  background: rgba(255,255,255,.74);
}

/* LIGHTBOX */

.mg-lightbox {
  width: min(1080px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #041f2a;
  box-shadow: 0 35px 100px rgba(0,0,0,.45);
}

.mg-lightbox::backdrop {
  background: rgba(1,18,25,.83);
  backdrop-filter: blur(7px);
}

.mg-lightbox img {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}

.mg-lightbox p {
  margin: 0;
  padding: 16px 22px 20px;
  color: rgba(255,255,255,.78);
  font-size: .82rem;
}

.mg-lightbox__close {
  position: absolute;
  z-index: 3;
  top: 13px;
  right: 13px;
  display: grid;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  place-items: center;
  color: #fff;
  background: rgba(1,31,42,.74);
  font-size: 1.6rem;
  cursor: pointer;
}

/* RESPONSIVO */

@media (max-width: 1080px) {
  .mg-nav-wrap { top: 72px; }

  .mg-overview__grid,
  .mg-history__grid,
  .mg-name__grid,
  .mg-church__feature,
  .mg-square__grid,
  .mg-water__grid {
    grid-template-columns: 1fr;
  }

  .mg-name__mark {
    min-height: 360px;
  }

  .mg-church__cards,
  .mg-legends__grid {
    grid-template-columns: 1fr;
  }

  .mg-facts__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mg-memory__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .mg-shell {
    width: min(100% - 24px, 1220px);
  }

  .mg-hero {
    min-height: 690px;
  }

  .mg-hero__content {
    min-height: 620px;
    padding-top: 82px;
    padding-bottom: 105px;
  }

  .mg-hero h1 {
    font-size: clamp(4rem, 21vw, 6.2rem);
  }

  .mg-hero__actions {
    flex-direction: column;
  }

  .mg-button { width: 100%; }
  .mg-hero__stamp { display: none; }

  .mg-section { padding: 75px 0; }

  .mg-overview__media img,
  .mg-church__main img {
    min-height: 380px;
  }

  .mg-church__cards,
  .mg-church__gallery,
  .mg-square__facts,
  .mg-facts__grid,
  .mg-gallery__grid {
    grid-template-columns: 1fr;
  }

  .mg-church__gallery img { height: 400px; }

  .mg-gallery__grid {
    grid-auto-rows: 330px;
  }

  .mg-gallery__item--wide,
  .mg-gallery__item--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .mg-memory__form,
  .mg-memory__feed {
    padding: 25px;
  }

  .mg-memory__feed-head {
    flex-direction: column;
  }

  .mg-sources__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 430px) {
  .mg-square__facts {
    grid-template-columns: 1fr;
  }

  .mg-memory-card__top {
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mg-gallery__item img,
  .mg-button { transition: none; }
}
