/* =========================================================
   TEMA NOVO - Paróquia Cristo Ressuscitado
   Design system aplicado em todo o site (prefixo .tn-)
   Carregado por ultimo para sobrescrever o tema antigo.
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:wght@700;800&display=swap");

:root {
  --tn-ink: #111827;
  --tn-muted: #667085;
  --tn-line: #e7e4dd;
  --tn-paper: #fffaf1;
  --tn-paper2: #f6efe4;
  --tn-gold: #f6b73c;
  --tn-orange: #e9791a;
  --tn-blue: #213b80;
  --tn-blue2: #5f77d4;
  --tn-green: #3f8f58;
  --tn-wine: #8d274c;
  --tn-white: #fff;
  --tn-shadow: 0 24px 70px rgba(17, 24, 39, 0.16);
  --tn-radius: 30px;
  --tn-card-w: clamp(185px, 13.5vw, 200px);
}

/* ---------- Loader padrão (logo da paróquia) ---------- */
.tn-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.tn-loader-mark {
  position: relative;
  width: 76px;
  height: 76px;
}

.tn-loader-mark::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 2px solid rgba(33, 59, 128, 0.12);
  border-top-color: var(--tn-wine);
  animation: tn-loader-ring 1s linear infinite;
}

.tn-loader-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 16px 40px rgba(33, 59, 128, 0.22);
  animation: tn-loader-logo 1.35s ease-in-out infinite;
}

.tn-loader-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--tn-muted);
  text-align: center;
}

@keyframes tn-loader-ring {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tn-loader-logo {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }
}

/* Substitui o GIF antigo nas páginas com .page-loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.98) !important;
  background-image: none !important;
}

.page-loader::before {
  content: "";
  position: absolute;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  border: 2px solid rgba(33, 59, 128, 0.12);
  border-top-color: var(--tn-wine);
  animation: tn-loader-ring 1s linear infinite;
}

.page-loader::after {
  content: "";
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: url(../images/Paroquia-Cristo-Ressuscitado-Logo.png) center/cover
    no-repeat #fff;
  box-shadow: 0 16px 40px rgba(33, 59, 128, 0.22);
  animation: tn-loader-logo 1.35s ease-in-out infinite;
}

/* ---------- Base global (suave, nao quebra paginas internas) ---------- */
body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  margin: 0;
  overflow-x: hidden;
}

body.tn-menu-open {
  overflow: hidden;
}

.tn-scope,
.tn-scope * {
  box-sizing: border-box;
}

.tn-scope a {
  text-decoration: none;
  color: inherit;
}

.tn-scope img {
  max-width: 100%;
  display: block;
}

/* ---------- Uniformizacao do cabecalho (home x paginas internas) ----------
   O style.css das paginas internas define body{font-size:15px;line-height:28px;
   color:#8d9297; font-family:Open Sans} e regras em a/ul/nav que "vazam" para o
   menu. Aqui fixamos tudo para o cabecalho ficar identico em todas as paginas. */
.tn-topbar,
.tn-topbar *,
.tn-nav,
.tn-nav * {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  line-height: 1.2;
}

.tn-topbar,
.tn-topbar * {
  line-height: 1.35;
}

.tn-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tn-nav li {
  margin: 0;
}

/* Nome da paroquia sempre preto (evita herdar o cinza do body interno) */
.tn-brand,
.tn-brand .tn-brand-txt {
  color: var(--tn-ink);
}

/* =========================================================
   TOPBAR
   ========================================================= */
.tn-topbar {
  background: linear-gradient(180deg, #0a1628 0%, #07111f 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  padding: 0 7vw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 -1px 0 rgba(246, 183, 60, 0.22);
}

.tn-topbar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 10px 0;
}

.tn-topbar-content {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  text-align: center;
}

.tn-topbar-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.tn-topbar-item:hover {
  color: #fff !important;
}

.tn-topbar-ico {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(246, 183, 60, 0.14);
  border: 1px solid rgba(246, 183, 60, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.tn-topbar-item:hover .tn-topbar-ico {
  background: rgba(246, 183, 60, 0.22);
  border-color: rgba(246, 183, 60, 0.45);
}

.tn-topbar-ico svg {
  width: 14px;
  height: 14px;
  fill: var(--tn-gold);
}

.tn-socials {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.tn-social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.tn-social-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.tn-social-fb {
  background: #1877f2;
  border-color: #1877f2;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.35);
}

.tn-social-ig {
  background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
  box-shadow: 0 4px 14px rgba(221, 42, 123, 0.3);
}

.tn-social-mail {
  background: #ea580c;
  border-color: #ea580c;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.32);
}

.tn-social-wa {
  background: #25d366;
  border-color: #25d366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
}

.tn-social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  box-shadow: none;
}

@media (max-width: 1400px) {
  .tn-topbar {
    padding: 0 4vw;
  }
  .tn-topbar-content {
    gap: 16px;
  }
  .tn-topbar-item {
    font-size: 12.5px;
  }
  .tn-nav {
    padding: 0 2vw;
    gap: 8px;
  }
  .tn-brand-txt {
    display: none;
  }
  .tn-brand {
    gap: 0;
  }
  .tn-brand img {
    width: 80px;
    height: 80px;
    margin: 0;
  }
  .tn-menu {
    gap: 0;
    font-size: 13px;
  }
  .tn-menu > li > a,
  .tn-menu > li > .tn-toggle {
    padding: 10px 9px;
  }
}

@media (max-width: 1180px) {
  .tn-topbar-item--mail {
    display: none;
  }
  .tn-brand-txt {
    display: none;
  }
  .tn-brand {
    gap: 0;
  }
  .tn-brand img {
    width: 64px;
    height: 64px;
    margin: 0;
  }
  .tn-nav {
    padding: 0 2vw;
    gap: 6px;
  }
  .tn-menu {
    font-size: 12.5px;
    gap: 0;
  }
  .tn-menu > li > a,
  .tn-menu > li > .tn-toggle {
    padding: 10px 8px;
  }
}

@media (max-width: 980px) {
  .tn-topbar-inner {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .tn-topbar-content {
    grid-column: 1;
    flex-direction: column;
    gap: 10px;
  }

  .tn-topbar-item {
    white-space: normal;
  }

  .tn-socials {
    grid-column: 1;
    justify-self: center;
    margin-top: 4px;
  }
}

/* =========================================================
   NAV (cabecalho principal)
   ========================================================= */
.tn-nav {
  min-height: 88px;
  padding: 0 4vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  overflow: visible;
}

.tn-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--tn-ink);
}

.tn-brand img {
  width: clamp(72px, 7.5vw, 112px);
  height: clamp(72px, 7.5vw, 112px);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 14px 32px rgba(33, 59, 128, 0.28);
  margin: -24px 0;
}

.tn-brand .tn-brand-txt {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  font-size: clamp(11px, 1.05vw, 15px);
}

.tn-brand-line {
  display: block;
  white-space: nowrap;
}

.tn-brand small {
  display: block;
  font-weight: 700;
  color: var(--tn-muted);
  font-size: 12px;
  margin-top: 3px;
}

/* ----- Menu principal ----- */
.tn-menu {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #313946;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tn-menu > li {
  position: relative;
}

/* Ponte invisivel entre item e dropdown (evita perder hover no gap) */
.tn-menu > li::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  pointer-events: none;
}

.tn-menu > li > a,
.tn-menu > li > .tn-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 0;
  color: #313946;
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  transition: color 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Traço animado esquerda → direita no menu principal */
.tn-menu > li > a::after,
.tn-menu > li > .tn-toggle::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tn-blue), var(--tn-wine));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.tn-menu > li > a:hover,
.tn-menu > li > .tn-toggle:hover,
.tn-menu > li.tn-open > .tn-toggle,
.tn-menu > li:hover > .tn-toggle {
  color: var(--tn-blue);
}

.tn-menu > li > a:hover::after,
.tn-menu > li > .tn-toggle:hover::after,
.tn-menu > li.tn-open > .tn-toggle::after,
.tn-menu > li:hover > .tn-toggle::after {
  transform: scaleX(1);
}

.tn-caret {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 2px;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease;
  opacity: 0.65;
}

.tn-menu > li:hover > .tn-toggle .tn-caret,
.tn-menu > li.tn-open > .tn-toggle .tn-caret {
  transform: rotate(-135deg);
  opacity: 1;
}

/* ----- Dropdown nivel 1 ----- */
.tn-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(33, 59, 128, 0.1);
  border-radius: 16px;
  box-shadow:
    0 4px 6px rgba(17, 24, 39, 0.04),
    0 20px 48px rgba(17, 24, 39, 0.14);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 210;
}

.tn-menu > li:hover > .tn-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tn-dropdown a,
.tn-dropdown .tn-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #313946;
  cursor: pointer;
  transition:
    color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.tn-dropdown a::after,
.tn-dropdown .tn-toggle::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tn-blue), rgba(33, 59, 128, 0.35));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.tn-dropdown a:hover,
.tn-dropdown .tn-toggle:hover {
  background: rgba(33, 59, 128, 0.06);
  color: var(--tn-blue);
}

.tn-dropdown a:hover::after,
.tn-dropdown .tn-toggle:hover::after {
  transform: scaleX(1);
}

/* ----- Submenu nivel 2 ----- */
.tn-subitem {
  position: relative;
}

/* Ponte invisivel entre subitem e submenu lateral */
.tn-subitem::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 100%;
  width: 12px;
  pointer-events: none;
}

.tn-submenu {
  position: absolute;
  top: -8px;
  left: calc(100% + 8px);
  min-width: 260px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(33, 59, 128, 0.1);
  border-radius: 16px;
  box-shadow:
    0 4px 6px rgba(17, 24, 39, 0.04),
    0 20px 48px rgba(17, 24, 39, 0.14);
  padding: 8px;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 220;
}

.tn-subitem:hover > .tn-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.tn-submenu a {
  position: relative;
  display: block;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #313946;
  transition:
    color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.tn-submenu a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--tn-blue), rgba(33, 59, 128, 0.35));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.tn-submenu a:hover {
  background: rgba(33, 59, 128, 0.06);
  color: var(--tn-blue);
}

.tn-submenu a:hover::after {
  transform: scaleX(1);
}

.tn-subitem:hover > .tn-toggle .tn-plus {
  transform: rotate(45deg);
}

.tn-plus {
  font-size: 16px;
  line-height: 1;
  color: var(--tn-orange);
  font-weight: 900;
  display: inline-block;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- CTA ----- */
.tn-nav-cta {
  background: #111827;
  color: #fff !important;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.22);
  transition: transform 0.2s;
}

.tn-nav-cta:hover {
  transform: translateY(-2px);
}

/* ----- Hamburguer ----- */
.tn-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.tn-burger span {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--tn-ink);
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.tn-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(8, 12, 24, 0.45);
  backdrop-filter: blur(2px);
}

.tn-nav-overlay.tn-on {
  display: block;
}

/* =========================================================
   HERO
   ========================================================= */
.tn-hero {
  position: relative;
  padding: 64px 7vw 88px;
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(246, 183, 60, 0.34),
      transparent 30%
    ),
    linear-gradient(135deg, #fff8eb 0%, #f4efe9 44%, #eaf0ff 100%);
  overflow: hidden;
}

.tn-hero:before {
  content: "";
  position: absolute;
  inset: auto -11vw -210px -11vw;
  height: 390px;
  background: #fff;
  border-radius: 50% 50% 0 0/28% 28% 0 0;
}

.tn-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 54px;
  align-items: stretch;
  max-width: 1260px;
  margin: 0 auto;
}

.tn-hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
}

.tn-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 59, 128, 0.12);
  padding: 10px 14px;
  border-radius: 999px;
  color: #213b80;
  font-weight: 900;
  font-size: 13px;
  width: fit-content;
  box-shadow: 0 12px 30px rgba(33, 59, 128, 0.08);
}

.tn-eyebrow:before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tn-orange);
}

.tn-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin: 0 0 18px;
  color: #111827;
}

.tn-hero-verse {
  position: relative;
  margin: 0 0 40px;
  padding-left: 20px;
  max-width: 600px;
}

.tn-hero-verse:before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--tn-orange), var(--tn-gold));
}

.tn-hero-verse p {
  font-family: "Playfair Display", serif;
  font-style: italic;
  margin: 0;
  line-height: 1.45;
  color: #2a3c70;
}

.tn-hero-verse .v1 {
  font-size: clamp(22px, 2.8vw, 31px);
  font-weight: 700;
  margin-bottom: 6px;
}

.tn-hero-verse .v2 {
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 600;
  color: #5b6580;
}

.tn-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tn-hero-meta {
  margin: 0 0 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(33, 59, 128, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 580px;
}

.tn-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--tn-muted);
  font-weight: 600;
}

.tn-hero-meta-item strong {
  color: var(--tn-ink);
  font-weight: 800;
}

.tn-hero-meta-ico {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tn-hero-meta-ico svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.tn-hero-meta-ico--paroquia {
  background: linear-gradient(135deg, var(--tn-blue), var(--tn-blue2));
  color: #fff;
}

.tn-hero-meta-ico--bispo {
  background: linear-gradient(135deg, var(--tn-wine), #b83258);
  color: #fff;
}

.tn-hero-meta-ico--paroco {
  background: linear-gradient(135deg, var(--tn-orange), var(--tn-gold));
  color: #fff;
}

.tn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: 0.2s;
  cursor: pointer;
}

.tn-btn-ico {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: none;
}

.tn-btn-primary {
  background: linear-gradient(135deg, var(--tn-blue), var(--tn-blue2));
  color: #fff !important;
  box-shadow: 0 20px 42px rgba(33, 59, 128, 0.27);
}

.tn-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(33, 59, 128, 0.4);
}

.tn-btn-secondary {
  background: #fff;
  border-color: rgba(17, 24, 39, 0.12);
  color: #111827;
}

.tn-btn-orange {
  background: linear-gradient(135deg, #e9791a, #f6b73c);
  color: #fff !important;
  box-shadow: 0 20px 42px rgba(233, 121, 26, 0.3);
}

.tn-btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(233, 121, 26, 0.4);
}

.tn-btn-wa {
  background: linear-gradient(135deg, #25d366, #128c4b);
  color: #fff !important;
  box-shadow: 0 18px 40px rgba(18, 140, 75, 0.32);
}

.tn-btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(18, 140, 75, 0.4);
}

.tn-visual {
  position: relative;
  min-height: 610px;
}

.tn-photo-main {
  position: absolute;
  right: 0;
  top: 18px;
  width: min(570px, 100%);
  height: 570px;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: var(--tn-shadow);
  transform: rotate(1.5deg);
  border: 10px solid rgba(255, 255, 255, 0.86);
}

.tn-photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----- Hero cards ----- */
.tn-hero-cards {
  position: relative;
  z-index: 6;
  max-width: 1260px;
  margin: 54px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.tn-hcard {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 14px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.1);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  color: inherit;
}

.tn-hcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 64px rgba(17, 24, 39, 0.16);
}

.tn-hc-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.16);
}

.tn-hc-ico svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.tn-hc-tag {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-orange);
  margin-bottom: 2px;
}

.tn-hcard b {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.tn-hc-txt {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 12px;
  color: var(--tn-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tn-hcard:nth-child(1) .tn-hc-ico {
  background: linear-gradient(135deg, #c2185b, #f06292);
}
.tn-hcard:nth-child(2) .tn-hc-ico {
  background: linear-gradient(135deg, #8d274c, #e9791a);
}
.tn-hcard:nth-child(3) .tn-hc-ico {
  background: linear-gradient(135deg, #276b43, #3f8f58);
}
.tn-hcard:nth-child(4) .tn-hc-ico {
  background: linear-gradient(135deg, #213b80, #5f77d4);
}
.tn-hcard:nth-child(5) .tn-hc-ico {
  background: linear-gradient(135deg, #e9791a, #f6b73c);
}

/* =========================================================
   SECTIONS genericas
   ========================================================= */
.tn-section {
  padding: 86px 7vw;
  position: relative;
}

.tn-section-inner {
  max-width: 1260px;
  margin: 0 auto;
}

.tn-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.tn-section-title small {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tn-orange);
  font-weight: 900;
}

.tn-section-title h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 8px 0 0;
}

.tn-section-title p {
  max-width: 470px;
  color: var(--tn-muted);
  line-height: 1.7;
  margin: 0;
}

/* ----- Action grid ----- */
.tn-action-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 18px;
}

.tn-action-card {
  border-radius: 32px;
  padding: 28px;
  min-height: 250px;
  color: #fff !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 54px rgba(17, 24, 39, 0.12);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.tn-action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 62px rgba(17, 24, 39, 0.22);
}

.tn-action-card:nth-child(1) {
  background: linear-gradient(135deg, #1f3478, #5f77d4);
}
.tn-action-card:nth-child(2) {
  background: linear-gradient(135deg, #8d274c, #e9791a);
}
.tn-action-card:nth-child(3) {
  background: linear-gradient(135deg, #276b43, #3f8f58);
}

.tn-action-card:after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -70px;
  bottom: -80px;
  background: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.tn-action-ico {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tn-action-ico svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

.tn-action-card b {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9) !important;
}

.tn-action-card h3 {
  position: relative;
  z-index: 1;
  font-size: clamp(24px, 2.4vw, 31px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 10px 0 12px;
  color: #fff !important;
}

.tn-action-card p {
  position: relative;
  z-index: 1;
  line-height: 1.62;
  margin: 0;
  margin-top: auto;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
}

/* ----- Timeline / agenda ----- */
.tn-timeline {
  background: #101828;
  color: #fff;
}
.tn-timeline .tn-section-title h2 {
  color: #fff;
}
.tn-timeline .tn-section-title p {
  color: #cbd5e1;
}

.tn-events {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tn-event {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  padding: 22px;
  min-height: 190px;
}

.tn-event .tn-date {
  display: inline-flex;
  background: #fff;
  color: #101828;
  border-radius: 18px;
  padding: 10px 12px;
  font-weight: 900;
  margin-bottom: 28px;
}

.tn-event h3 {
  font-size: 20px;
  margin: 0 0 10px;
}
.tn-event p {
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
  font-size: 14px;
}

.tn-event-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 800;
  color: var(--tn-gold);
}

.tn-event-more svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.tn-event:hover .tn-event-more svg {
  transform: translateX(4px);
}

/* Cards com imagem de fundo suavizada (mantém a leitura do conteúdo) */
.tn-event--bg {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: rgba(255, 255, 255, 0.16);
}

.tn-event--bg > * {
  position: relative;
  z-index: 1;
}

.tn-event--bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    160deg,
    rgba(16, 24, 40, 0.82) 0%,
    rgba(16, 24, 40, 0.9) 60%,
    rgba(16, 24, 40, 0.95) 100%
  );
  transition: background 0.3s ease;
}

.tn-event--bg:hover::before {
  background: linear-gradient(
    160deg,
    rgba(16, 24, 40, 0.74) 0%,
    rgba(16, 24, 40, 0.84) 60%,
    rgba(16, 24, 40, 0.92) 100%
  );
}

.tn-event--teatro {
  background-image: url("../images/fotos/grupo-teatro/card-teatro-bg.png");
}

.tn-event--domingo {
  background-image: url("../images/fotos/cards-home/card-domingo-bg.png");
}

.tn-event--liturgia {
  background-image: url("../images/fotos/cards-home/card-liturgia-bg.png");
}

/* Calendário: imagem inclinada em diagonal, bem sutil, sob o overlay escuro */
.tn-event--calendario {
  background-image: none;
}

.tn-event--calendario > * {
  z-index: 2;
}

.tn-event--calendario::before {
  z-index: 1;
}

.tn-event--calendario::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 155%;
  height: 155%;
  background-image: url("../images/fotos/cards-home/card-calendario-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translate(-50%, -50%) rotate(-11deg);
  transform-origin: center;
}

/* ----- Media wall ----- */
.tn-media-wall {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: stretch;
}

.tn-video-box {
  background: #111827;
  border-radius: 36px;
  padding: 20px;
  box-shadow: var(--tn-shadow);
}

.tn-video-frame {
  aspect-ratio: 16/9;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #f7e7c6, #f97316);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  padding: 36px;
}

.tn-video-frame strong {
  font-size: 32px;
  letter-spacing: -0.04em;
}

.tn-video-frame.tn-has-video {
  padding: 0;
  background: #000;
}

.tn-video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tn-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.tn-mosaic img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.1);
}

/* ----- Communities ----- */
.tn-communities {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tn-community {
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 32px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.06);
  transition: 0.2s;
}

.tn-community:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(17, 24, 39, 0.11);
}

.tn-community .tn-cover {
  height: 160px;
  background: linear-gradient(135deg, #213b80, #f6b73c);
  position: relative;
  overflow: hidden;
}

.tn-community .tn-cover img {
  width: 100%;
  height: 140%;
  object-fit: cover;
}

.tn-community .tn-content {
  padding: 22px;
}
.tn-community h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.tn-community p {
  margin: 0;
  color: var(--tn-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* ----- Visita / contato ----- */
.tn-visit {
  background: linear-gradient(135deg, #fff8eb, #eef3ff);
}

.tn-visit-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

.tn-visit-photo {
  height: 520px;
  border-radius: 46px;
  overflow: hidden;
  box-shadow: var(--tn-shadow);
  transform: rotate(-1deg);
  border: 10px solid #fff;
}

.tn-visit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tn-contact-panel {
  background: linear-gradient(160deg, #1a2a5c 0%, #142046 60%, #0f1830 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 42px;
  padding: 38px;
  box-shadow: 0 26px 70px rgba(17, 24, 39, 0.35);
}

.tn-contact-panel .tn-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tn-orange);
  font-weight: 900;
}

.tn-contact-panel h2 {
  font-family: "Playfair Display", serif;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 10px 0 18px;
}

.tn-contact-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px;
  margin: 0 -14px;
  border-radius: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: inherit;
  transition:
    background 0.2s,
    transform 0.2s;
  width: 100%;
  background: none;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tn-contact-row:last-of-type {
  border-bottom: 0;
}
.tn-contact-row:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.tn-contact-ico {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 48px;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
}

.tn-contact-ico svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.tn-ic-addr {
  background: linear-gradient(135deg, #1f3478, #5f77d4);
}
.tn-ic-wa {
  background: linear-gradient(135deg, #1ea257, #25d366);
}
.tn-ic-mail {
  background: linear-gradient(135deg, #8d274c, #e9791a);
}

.tn-contact-row b {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tn-gold);
}

.tn-contact-row span span,
.tn-contact-row > span:last-child span {
  color: #fff;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tn-contact-row > span:not(.tn-contact-ico) {
  flex: 1;
  min-width: 0;
}

.tn-contact-row > span:not(.tn-contact-ico) span:last-child {
  display: block;
}

.tn-contact-panel .tn-hero-actions {
  margin-top: 8px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.tn-footer {
  background: #030712;
  color: #fff;
  padding: 64px 7vw;
  position: relative;
  overflow: hidden;
}

.tn-footer:before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/about-us/paroquia-Cristo-Ressuscitado-img-01.jpg")
    center/cover;
  opacity: 0.16;
  filter: grayscale(30%);
}

.tn-footer-inner {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
}

.tn-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 40px 36px;
  align-items: start;
}

.tn-footer-col {
  min-width: 0;
}

.tn-footer-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: start;
  gap: 12px 14px;
}

.tn-footer-logo {
  grid-column: 1;
  grid-row: 1 / span 3;
  align-self: start;
  display: block;
  margin-bottom: 0;
}

.tn-footer-brand .tn-footer-meta-item {
  grid-column: 2;
  min-width: 0;
}

.tn-footer-logo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgb(255 255 255);
}

.tn-footer-meta {
  display: contents;
}

.tn-footer-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #cbd5e1;
  min-width: 0;
}

.tn-footer-meta-text {
  display: block;
  min-width: 0;
}

.tn-footer-meta-sub {
  display: block;
  margin-top: 2px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
}

.tn-footer-meta-item strong {
  color: #fff;
  font-weight: 800;
}

.tn-footer-meta-ico {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.tn-footer-meta-ico svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tn-footer-meta-ico--paroquia {
  background: linear-gradient(135deg, var(--tn-blue), var(--tn-blue2));
  color: #fff;
}

.tn-footer-meta-ico--bispo {
  background: linear-gradient(135deg, var(--tn-wine), #b83258);
  color: #fff;
}

.tn-footer-meta-ico--paroco {
  background: linear-gradient(135deg, var(--tn-orange), var(--tn-gold));
  color: #fff;
}

.tn-footer-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tn-gold);
}

.tn-footer-contact .tn-footer-title,
.tn-footer-communities .tn-footer-title {
  padding-top: 2px;
}

.tn-footer-title--social {
  margin-top: 24px;
}

.tn-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tn-footer-links li {
  margin: 0;
}

.tn-footer-links a,
.tn-footer-action {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #cbd5e1 !important;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.2s ease;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.tn-footer-links a svg,
.tn-footer-action svg {
  width: 16px;
  height: 16px;
  fill: var(--tn-gold);
  flex: none;
}

.tn-footer-links a:hover,
.tn-footer-action:hover {
  color: #fff !important;
}

.tn-footer-action--wa svg {
  fill: #25d366;
}

.tn-footer-links--plain a {
  gap: 0;
}

.tn-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tn-footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.tn-footer-bottom p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

/* =========================================================
   MOBILE NAV (barra inferior fixa)
   ========================================================= */
.tn-mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 160;
  display: none;
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 -10px 40px rgba(17, 24, 39, 0.1);
}

.tn-mobile-nav-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 48px;
  padding: 8px 4px;
  border-radius: 14px;
  color: #64748b;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.tn-mobile-nav-item svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex: none;
}

.tn-mobile-nav-item:hover,
.tn-mobile-nav-item:focus-visible {
  color: var(--tn-blue);
  background: rgba(33, 59, 128, 0.06);
  outline: none;
}

.tn-mobile-nav-item:active {
  transform: scale(0.94);
}

.tn-mobile-nav-item.tn-active {
  color: var(--tn-blue);
  background: rgba(33, 59, 128, 0.1);
  box-shadow: inset 0 0 0 1px rgba(33, 59, 128, 0.12);
}

/* =========================================================
   PWA - banner instalar app
   ========================================================= */
.tn-pwa-install {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  z-index: 170;
  animation: tn-pwa-in 0.35s ease;
}

.tn-pwa-install[hidden] {
  display: none !important;
}

.tn-pwa-install-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(33, 59, 128, 0.12);
  box-shadow: 0 16px 48px rgba(17, 24, 39, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tn-pwa-install-ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
}

.tn-pwa-install-ico img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tn-pwa-install-copy {
  flex: 1;
  min-width: 0;
}

.tn-pwa-install-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
  color: var(--tn-ink);
  margin-bottom: 2px;
}

.tn-pwa-install-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--tn-muted);
}

.tn-pwa-install-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.tn-pwa-install-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--tn-blue), var(--tn-blue2));
  cursor: pointer;
  white-space: nowrap;
}

.tn-pwa-install-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.06);
  color: #64748b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

@keyframes tn-pwa-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 981px) {
  .tn-pwa-install {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .tn-pwa-install {
    left: 10px;
    right: 10px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .tn-pwa-install-inner {
    padding: 11px 12px;
    gap: 10px;
  }

  .tn-pwa-install-copy p {
    font-size: 11.5px;
  }
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

/* Notebooks 1366x768 e telas medias: cabecalho mais compacto */
@media (max-width: 1400px) {
  .tn-nav {
    padding: 0 4vw;
    gap: 12px;
  }

  .tn-brand {
    gap: 13px;
  }

  .tn-brand img {
    width: 100px;
    height: 100px;
    margin: -20px 0 0px -45px;
  }

  .tn-brand .tn-brand-txt {
    font-size: 14px;
  }
  .tn-brand small {
    font-size: 11px;
  }

  .tn-menu {
    gap: 2px;
    font-size: 13px;
  }

  .tn-menu > li > a,
  .tn-menu > li > .tn-toggle {
    padding: 9px 10px;
  }
}

@media (max-width: 980px) {
  .tn-topbar {
    display: none;
  }

  body:has(.tn-mobile-nav) {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .tn-section-inner,
  .tn-visit-grid > *,
  .tn-hero-grid > *,
  .tn-action-card,
  .tn-community,
  .tn-contact-panel,
  .tn-event,
  .tn-hcard {
    min-width: 0;
    max-width: 100%;
  }

  .tn-action-card p,
  .tn-community p,
  .tn-hcard .tn-hc-txt,
  .tn-hero-meta-item span:last-child {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tn-burger {
    display: flex;
  }

  .tn-nav.tn-open .tn-burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .tn-nav.tn-open .tn-burger span:nth-child(2) {
    opacity: 0;
  }

  .tn-nav.tn-open .tn-burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .tn-nav {
    padding: 0 5vw;
    flex-wrap: wrap;
    min-height: 76px;
  }

  .tn-brand img {
    width: 84px;
    height: 84px;
    margin: -6px 0;
  }

  .tn-menu {
    order: 3;
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 18px;
    max-height: min(78vh, calc(100dvh - 120px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tn-nav.tn-open .tn-menu {
    display: flex;
  }

  .tn-menu > li > a,
  .tn-menu > li > .tn-toggle {
    justify-content: space-between;
    width: 100%;
    border-radius: 12px;
    transition:
      background 0.25s ease,
      color 0.25s ease;
  }

  /* Mobile: fundo suave em vez do traço animado */
  .tn-menu > li > a::after,
  .tn-menu > li > .tn-toggle::after,
  .tn-dropdown a::after,
  .tn-dropdown .tn-toggle::after,
  .tn-submenu a::after {
    display: none;
  }

  .tn-menu > li > a:hover,
  .tn-menu > li > .tn-toggle:hover,
  .tn-menu > li.tn-open > .tn-toggle {
    background: rgba(33, 59, 128, 0.08);
  }

  .tn-menu > li::before,
  .tn-subitem::after {
    display: none;
  }

  .tn-menu > li:hover > .tn-toggle .tn-caret,
  .tn-menu > li.tn-open > .tn-toggle .tn-caret {
    transform: rotate(-135deg);
  }

  .tn-subitem:hover > .tn-toggle .tn-plus {
    transform: rotate(45deg);
  }

  /* Dropdowns viram acordeao no mobile */
  .tn-dropdown,
  .tn-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid rgba(33, 59, 128, 0.15);
    border-radius: 0;
    margin: 2px 0 6px 14px;
    padding: 4px 0 4px 8px;
    min-width: 0;
    display: none;
  }

  .tn-menu li.tn-open > .tn-dropdown,
  .tn-menu li.tn-open > .tn-submenu {
    display: block;
  }

  .tn-menu > li:hover > .tn-dropdown,
  .tn-subitem:hover > .tn-submenu {
    opacity: 1;
    visibility: visible;
  }

  .tn-nav-cta {
    order: 2;
  }

  .tn-hero-grid,
  .tn-media-wall,
  .tn-visit-grid {
    grid-template-columns: 1fr;
  }

  .tn-visit-grid {
    gap: 20px;
  }

  .tn-visit-photo {
    height: 240px;
    width: 100%;
    transform: none;
    border-width: 6px;
    border-radius: 28px;
  }

  .tn-contact-panel {
    padding: 24px 18px calc(24px + 68px + env(safe-area-inset-bottom, 0px));
    border-radius: 28px;
    overflow: hidden;
  }

  .tn-contact-panel h2 {
    font-size: clamp(26px, 7.5vw, 38px);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .tn-contact-row {
    margin: 0;
    padding: 12px 6px;
    align-items: flex-start;
    gap: 12px;
  }

  .tn-contact-row:hover {
    transform: none;
  }

  .tn-contact-panel .tn-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-top: 12px;
  }

  .tn-contact-panel .tn-hero-actions .tn-btn {
    width: 100%;
    justify-content: center;
  }

  body:has(.tn-mobile-nav) .tn-visit {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    scroll-margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.tn-mobile-nav) main [id] {
    scroll-margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .tn-hero-cards {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 28px;
    gap: 12px;
  }

  .tn-hero {
    padding: 32px 5vw 48px;
  }

  .tn-hero:before {
    inset: auto -8vw -180px -8vw;
    height: 320px;
  }

  .tn-visual {
    min-height: 300px;
  }

  .tn-photo-main {
    left: 0;
    right: auto;
    width: 100%;
    height: 280px;
    transform: none;
    border-width: 6px;
    border-radius: 32px;
  }

  .tn-hero-actions .tn-btn {
    flex: 1 1 auto;
    min-width: 0;
  }

  .tn-action-grid,
  .tn-events,
  .tn-communities {
    grid-template-columns: 1fr 1fr;
  }

  .tn-mobile-nav {
    display: flex;
  }

  .tn-section {
    padding: 56px 5vw;
  }

  .tn-footer {
    padding: 56px 5vw calc(32px + 68px + env(safe-area-inset-bottom, 0px));
  }

  .tn-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 28px;
  }

  .tn-footer-brand {
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .tn-footer-logo {
    grid-row: 1 / span 3;
  }

  .tn-footer-contact {
    grid-column: 1;
  }

  .tn-footer-communities {
    grid-column: 2;
  }

  body:has(.tn-mobile-nav) .tn-totop {
    right: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
  }

  body:has(.tn-mobile-nav) .tn-totop svg {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 640px) {
  .tn-hero h1 {
    font-size: clamp(36px, 11vw, 50px);
  }

  .tn-hero-verse {
    margin-bottom: 28px;
    padding-left: 16px;
  }

  .tn-hero-meta-item {
    font-size: 13px;
    align-items: flex-start;
  }

  .tn-hero-cards {
    grid-template-columns: 1fr;
  }

  .tn-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .tn-hero-actions .tn-btn {
    width: 100%;
    justify-content: center;
  }

  .tn-action-grid,
  .tn-events,
  .tn-communities {
    grid-template-columns: 1fr;
  }

  .tn-visual {
    min-height: 240px;
  }

  .tn-photo-main {
    height: 240px;
    border-radius: 28px;
  }

  .tn-section-title {
    display: block;
  }

  .tn-section-title p {
    margin-top: 12px;
  }

  .tn-mosaic {
    grid-template-columns: 1fr;
  }

  .tn-visit-photo {
    height: 220px;
    border-radius: 24px;
  }

  .tn-contact-panel {
    padding: 20px 16px calc(20px + 68px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px;
  }

  .tn-contact-panel h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .tn-contact-row span span {
    font-size: 14px;
  }

  .tn-contact-ico {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
  }

  .tn-contact-ico svg {
    width: 20px;
    height: 20px;
  }

  .tn-section {
    padding: 48px 16px;
  }

  .tn-footer {
    padding: 48px 16px calc(28px + 68px + env(safe-area-inset-bottom, 0px));
  }

  .tn-mobile-nav-item {
    min-height: 44px;
    border-radius: 12px;
  }

  .tn-mobile-nav-item svg {
    width: 22px;
    height: 22px;
  }

  .tn-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .tn-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    padding-bottom: 0;
    border-bottom: 0;
  }

  .tn-footer-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
  }

  .tn-footer-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    align-self: center;
  }

  .tn-footer-contact,
  .tn-footer-communities {
    grid-column: auto;
  }

  .tn-footer-meta-item {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
  }

  .tn-footer-links a,
  .tn-footer-meta-item span:last-child {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tn-footer-socials {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .tn-brand .tn-brand-txt {
    font-size: 11px;
  }

  .tn-nav {
    min-height: 68px;
  }

  .tn-brand img {
    width: 72px;
    height: 72px;
    margin: 0;
  }

  .tn-hcard {
    padding: 16px;
  }

  .tn-hc-txt {
    font-size: 12px;
    line-height: 1.45;
  }
}

/* =========================================================
   BREADCRUMB (páginas internas)
   ========================================================= */
.tn-breadcrumb {
  position: relative;
  background: var(--tn-paper);
  border-bottom: 1px solid rgba(17, 24, 39, 0.06);
}

.tn-breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 11px 7vw 12px;
}

.tn-bc-back {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 10px;
  background: #fff;
  color: var(--tn-ink);
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.tn-bc-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tn-bc-back:hover {
  color: var(--tn-wine);
  border-color: rgba(141, 39, 76, 0.24);
  box-shadow: 0 6px 16px rgba(141, 39, 76, 0.08);
}

.tn-bc-back:focus-visible {
  outline: 2px solid var(--tn-blue);
  outline-offset: 2px;
}

.tn-bc-trail {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tn-bc-trail::-webkit-scrollbar {
  display: none;
}

.tn-bc-trail > li {
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
}

.tn-bc-trail > li + li::before {
  content: "/";
  margin: 0 10px;
  color: rgba(17, 24, 39, 0.22);
  font-weight: 400;
  pointer-events: none;
}

.tn-bc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tn-blue);
  text-decoration: none;
  transition: color 0.18s ease;
}

.tn-bc-link:hover {
  color: var(--tn-wine);
}

.tn-bc-link:focus-visible {
  outline: 2px solid var(--tn-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.tn-bc-home-ico {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: none;
}

.tn-bc-cat {
  color: var(--tn-muted);
  font-weight: 500;
}

.tn-bc-current {
  color: var(--tn-wine);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Reduz o enorme espaço do tema antigo agora que há breadcrumb */
.section-conteudo-pags {
  margin-top: 40px;
}

@media (max-width: 1400px) {
  .tn-breadcrumb-inner {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

@media (max-width: 980px) {
  .tn-breadcrumb-inner {
    padding: 10px 18px 11px;
    gap: 10px;
  }

  .tn-bc-back {
    display: inline-flex;
  }

  .tn-bc-trail {
    font-size: 12.5px;
    mask-image: linear-gradient(90deg, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
  }

  .tn-bc-link span {
    display: none;
  }

  .tn-bc-link {
    gap: 0;
    padding: 2px;
  }

  .tn-bc-home-ico {
    width: 16px;
    height: 16px;
  }

  .section-conteudo-pags {
    margin-top: 26px;
  }
}

/* =========================================================
   VOLTAR AO TOPO
   ========================================================= */
.tn-totop {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 9990;
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: linear-gradient(135deg, var(--tn-blue), var(--tn-blue2));
  color: #fff;
  box-shadow: 0 16px 34px rgba(33, 59, 128, 0.38);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.85);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease,
    box-shadow 0.2s ease;
}

.tn-totop svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.tn-totop.tn-totop-on {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.tn-totop:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 22px 44px rgba(33, 59, 128, 0.5);
}

.tn-totop:active {
  transform: translateY(0) scale(0.96);
}

.tn-totop:focus-visible {
  outline: 3px solid rgba(95, 119, 212, 0.6);
  outline-offset: 3px;
}

/* =========================================================
   BANNER INFORMATIVO (popup ao abrir o site)
   ========================================================= */
.tn-banner-informativo {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.tn-banner-informativo--on {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

body.tn-banner-open {
  overflow: hidden;
}

.tn-banner-informativo-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 50% 40%,
      rgba(33, 59, 128, 0.28),
      transparent 70%
    ),
    rgba(8, 12, 24, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tn-banner-informativo--visible .tn-banner-informativo-backdrop {
  opacity: 1;
}

.tn-banner-informativo-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: auto;
  max-width: 94vw;
  max-height: min(80vh, 80dvh);
  border-radius: clamp(18px, 2.8vw, 24px);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow:
    0 0 0 1px rgba(33, 59, 128, 0.08),
    0 28px 80px rgba(8, 12, 24, 0.42),
    0 8px 24px rgba(141, 39, 76, 0.12);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease;
}

.tn-banner-informativo--visible .tn-banner-informativo-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.tn-banner-informativo-head {
  position: relative;
  flex: none;
  padding: 18px 54px 16px;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(33, 59, 128, 0.96) 0%,
    rgba(141, 39, 76, 0.92) 100%
  );
  color: #fff;
}

.tn-banner-informativo-head-text {
  max-width: 100%;
  margin: 0 auto;
}

.tn-banner-informativo-kicker {
  margin: 0 0 6px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.tn-banner-informativo-title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 4.2vw, 30px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #fff;
}

.tn-banner-informativo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  flex: none;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #111827;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.tn-banner-informativo-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tn-banner-informativo-close:hover {
  transform: rotate(90deg);
  background: #000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.tn-banner-informativo-stage {
  flex: none;
  min-height: 0;
  overflow: hidden;
  background: #111827;
  line-height: 0;
}

.tn-banner-informativo-media {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

a.tn-banner-informativo-media:hover .tn-banner-informativo-img {
  opacity: 0.94;
}

.tn-banner-informativo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tn-banner-informativo--ready .tn-banner-informativo-img {
  opacity: 1;
}

.tn-banner-informativo-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  background: #fffaf1;
}

.tn-banner-informativo-hint {
  margin: 0;
  font-size: 12px;
  color: var(--tn-muted);
}

.tn-banner-informativo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.tn-banner-informativo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.tn-banner-informativo-btn--ghost {
  background: #fff;
  color: var(--tn-ink);
  border: 1px solid rgba(17, 24, 39, 0.12);
}

.tn-banner-informativo-btn--ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

.tn-banner-informativo-btn--primary {
  background: linear-gradient(135deg, var(--tn-blue) 0%, var(--tn-wine) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(33, 59, 128, 0.28);
}

.tn-banner-informativo-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(33, 59, 128, 0.34);
}

@media (max-width: 720px) {
  .tn-banner-informativo {
    padding: 10px;
    align-items: center;
  }

  .tn-banner-informativo-dialog {
    max-width: 96vw;
    max-height: min(82vh, 82dvh);
    border-radius: 18px;
  }

  .tn-banner-informativo-head {
    padding: 16px 48px 14px;
  }

  .tn-banner-informativo-kicker {
    font-size: 12px;
  }

  .tn-banner-informativo-title {
    font-size: clamp(20px, 5.5vw, 24px);
  }

  .tn-banner-informativo-close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
  }

  .tn-banner-informativo-foot {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px 12px;
  }

  .tn-banner-informativo-hint {
    text-align: center;
    order: 2;
  }

  .tn-banner-informativo-actions {
    width: 100%;
    margin-left: 0;
  }

  .tn-banner-informativo-btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tn-banner-informativo,
  .tn-banner-informativo-backdrop,
  .tn-banner-informativo-dialog,
  .tn-banner-informativo-img,
  .tn-banner-informativo-close,
  .tn-banner-informativo-btn {
    transition: none !important;
  }

  .tn-banner-informativo-dialog,
  .tn-banner-informativo-img {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* =========================================================
   MODAIS (mapa + whatsapp)
   ========================================================= */
.tn-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tn-modal.tn-modal-on {
  display: flex;
}

.tn-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, 0.62);
  backdrop-filter: blur(4px);
  animation: tnFade 0.25s ease;
}

.tn-modal-box {
  position: relative;
  z-index: 1;
  background: var(--tn-white);
  border-radius: 26px;
  box-shadow: 0 40px 100px rgba(8, 12, 24, 0.45);
  animation: tnPop 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@keyframes tnFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes tnPop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tn-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(8, 12, 24, 0.2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.tn-modal-close:hover {
  transform: rotate(90deg);
  background: #fff;
}
.tn-modal-close svg {
  width: 18px;
  height: 18px;
  fill: var(--tn-ink);
}

/* ----- Modal Mapa ----- */
.tn-modal-map {
  width: 80vw;
  height: 80vh;
  max-width: 1200px;
}

.tn-modal-head {
  padding: 22px 26px 16px;
  border-bottom: 1px solid var(--tn-line);
}

.tn-modal-head small {
  color: var(--tn-orange);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tn-modal-head h3 {
  margin: 4px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  color: var(--tn-ink);
}

.tn-modal-head p {
  margin: 6px 0 0;
  color: var(--tn-muted);
  font-weight: 600;
  font-size: 14px;
}

.tn-modal-map-frame {
  flex: 1;
  min-height: 0;
}
.tn-modal-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tn-modal-foot {
  padding: 16px 26px;
  border-top: 1px solid var(--tn-line);
  display: flex;
  justify-content: flex-end;
}

.tn-modal-foot .tn-btn {
  padding: 12px 20px;
}

/* ----- Modal WhatsApp ----- */
.tn-modal-wa {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
}

.tn-wa-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 26px 18px;
  background: linear-gradient(135deg, #eafff2, #f6efe4);
  border-bottom: 1px solid var(--tn-line);
}

.tn-wa-ico {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128c4b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(18, 140, 75, 0.35);
}

.tn-wa-ico svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}
.tn-wa-head h3 {
  margin: 0;
  font-size: 20px;
  color: var(--tn-ink);
  font-weight: 800;
}
.tn-wa-head p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--tn-muted);
}

.tn-wa-form {
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tn-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tn-field > span {
  font-size: 13px;
  font-weight: 800;
  color: var(--tn-ink);
}

.tn-field input,
.tn-field select,
.tn-field textarea {
  width: 100%;
  font-family: Inter, system-ui, sans-serif;
  font-size: 14.5px;
  color: var(--tn-ink);
  background: #fff;
  border: 1.5px solid var(--tn-line);
  border-radius: 14px;
  padding: 12px 14px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.tn-field textarea {
  resize: vertical;
  min-height: 96px;
}

.tn-field input:focus,
.tn-field select:focus,
.tn-field textarea:focus {
  outline: none;
  border-color: #25d366;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15);
}

.tn-wa-submit {
  margin-top: 4px;
  width: 100%;
}

.tn-wa-note {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: var(--tn-muted);
}

/* ----- Modal imagem (lightbox / tela cheia) ----- */
.tn-modal-lightbox {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}

.tn-modal-lightbox .tn-modal-overlay {
  background: rgba(8, 12, 24, 0.88);
  backdrop-filter: blur(8px);
}

.tn-modal-lightbox-box {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  animation: tnFade 0.25s ease;
}

.tn-modal-close--lightbox {
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  background: rgba(255, 255, 255, 0.15);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.tn-modal-close--lightbox svg {
  fill: #fff;
}
.tn-modal-close--lightbox:hover {
  background: rgba(255, 255, 255, 0.28);
}

.tn-modal-lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tn-modal-lightbox-figure img {
  display: block;
  max-width: 100%;
  max-height: calc(
    100dvh - 80px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  );
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.tn-modal-lightbox-figure figcaption {
  margin: 0;
  padding: 8px 16px;
  max-width: min(640px, 92vw);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}

.tn-modal-lightbox-counter {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.tn-modal-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.55);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    transform 0.2s,
    border-color 0.2s;
}

.tn-modal-lightbox-nav svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.tn-modal-lightbox-nav:hover {
  background: rgba(33, 59, 128, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
}

.tn-modal-lightbox-nav--prev {
  left: max(12px, env(safe-area-inset-left));
}

.tn-modal-lightbox-nav--next {
  right: max(12px, env(safe-area-inset-right));
}

.tn-modal-lightbox--gallery .tn-modal-lightbox-figure img {
  max-height: calc(
    100dvh - 110px - env(safe-area-inset-top) - env(safe-area-inset-bottom)
  );
}

@media (max-width: 640px) {
  .tn-modal-lightbox-nav {
    width: 40px;
    height: 40px;
  }

  .tn-modal-lightbox-nav--prev {
    left: 8px;
  }
  .tn-modal-lightbox-nav--next {
    right: 8px;
  }
}

@media (max-width: 760px) {
  .tn-modal {
    padding: 14px;
  }
  .tn-modal-map {
    width: 94vw;
    height: 86vh;
  }
  .tn-modal-head {
    padding: 20px 20px 14px;
  }
  .tn-modal-head h3 {
    font-size: 22px;
  }
  .tn-wa-head,
  .tn-wa-form {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tn-field input,
  .tn-field select,
  .tn-field textarea {
    font-size: 16px;
  }
}

/* =========================================================
   NOSSA HISTÓRIA - timeline
   ========================================================= */
.tn-historia-page {
  background: var(--tn-paper);
}

.tn-historia-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 7vw 48px;
  color: #fff;
}

.tn-historia-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(17, 24, 39, 0.88) 0%,
      rgba(33, 59, 128, 0.82) 45%,
      rgba(141, 39, 76, 0.75) 100%
    ),
    url("../images/about-us/paroquia-Cristo-Ressuscitado-img-01.jpg")
      center/cover;
}

.tn-historia-hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.tn-historia-hero .tn-kicker {
  color: var(--tn-gold);
}

.tn-historia-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 10px 0 14px;
}

.tn-historia-lead {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.tn-historia-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.tn-historia-stat {
  min-width: 120px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.tn-historia-stat strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: var(--tn-gold);
  margin-bottom: 4px;
}

.tn-historia-stat span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.tn-historia-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 241, 0.92);
  border-bottom: 1px solid var(--tn-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tn-historia-nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 7vw;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tn-historia-nav-inner::-webkit-scrollbar {
  display: none;
}

.tn-historia-nav-link {
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--tn-blue);
  background: #fff;
  border: 1px solid rgba(33, 59, 128, 0.12);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.15s;
}

.tn-historia-nav-link:hover,
.tn-historia-nav-link.tn-active {
  background: linear-gradient(135deg, var(--tn-blue), var(--tn-blue2));
  color: #fff;
  border-color: transparent;
}

.tn-historia-body {
  padding: 56px 7vw 80px;
}

.tn-historia-inner {
  max-width: 980px;
  margin: 0 auto;
}

.tn-historia-intro {
  text-align: center;
  margin-bottom: 48px;
}

.tn-historia-intro h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--tn-ink);
}

.tn-historia-intro p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--tn-muted);
  line-height: 1.65;
}

.tn-historia-track {
  position: relative;
  padding: 8px 0 12px;
}

.tn-historia-track:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    var(--tn-gold),
    var(--tn-blue) 35%,
    var(--tn-wine) 70%,
    var(--tn-green)
  );
  border-radius: 999px;
  opacity: 0.35;
}

.tn-hist-section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 36px 0 28px;
  text-align: center;
}

.tn-hist-section-label h2 {
  flex: none;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--tn-blue);
  white-space: nowrap;
}

.tn-hist-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tn-line), transparent);
}

.tn-hist-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 0 20px;
  margin-bottom: 28px;
  scroll-margin-top: 88px;
}

.tn-hist-item--left .tn-hist-card {
  grid-column: 1;
}
.tn-hist-item--right .tn-hist-card {
  grid-column: 3;
}

.tn-hist-item--founding {
  display: block;
  max-width: 720px;
  margin: 0 auto 36px;
}

.tn-hist-item--founding .tn-hist-marker {
  display: flex;
  justify-content: center;
  padding: 0 0 14px;
}

.tn-hist-item--founding .tn-hist-year {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 12px;
}

.tn-hist-marker {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 14px;
  position: relative;
  z-index: 2;
}

.tn-hist-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 34px;
  padding: 10px 9px 12px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.1);
}

.tn-hist-badge--row {
  flex-direction: row;
  min-width: 0;
  padding: 8px 14px;
  gap: 8px;
}

.tn-hist-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(33, 59, 128, 0.16);
  flex: none;
}

.tn-hist-dot--founding {
  background: var(--tn-gold);
  box-shadow: 0 0 0 2px rgba(246, 183, 60, 0.4);
}
.tn-hist-dot--early {
  background: var(--tn-blue2);
  box-shadow: 0 0 0 2px rgba(95, 119, 212, 0.35);
}
.tn-hist-dot--middle {
  background: var(--tn-wine);
  box-shadow: 0 0 0 2px rgba(141, 39, 76, 0.28);
}
.tn-hist-dot--legacy {
  background: var(--tn-orange);
  box-shadow: 0 0 0 2px rgba(233, 121, 26, 0.3);
}
.tn-hist-dot--current {
  background: var(--tn-green);
  box-shadow: 0 0 0 2px rgba(63, 143, 88, 0.32);
}

.tn-hist-year {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--tn-ink);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: 1;
}

.tn-hist-card {
  background: #fff;
  border: 1px solid var(--tn-line);
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.07);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.tn-hist-item--left .tn-hist-card {
  text-align: right;
}
.tn-hist-item--right .tn-hist-card {
  text-align: left;
}
.tn-hist-item--founding .tn-hist-card {
  text-align: center;
}

.tn-hist-visible .tn-hist-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(17, 24, 39, 0.11);
}

.tn-hist-card--founding {
  background: linear-gradient(160deg, #fff 0%, #fff8eb 100%);
  border-color: rgba(246, 183, 60, 0.35);
}

.tn-hist-card--current {
  background: linear-gradient(160deg, #fff 0%, #edf7f0 100%);
  border-color: rgba(63, 143, 88, 0.35);
}

.tn-hist-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tn-blue);
  background: rgba(33, 59, 128, 0.08);
}

.tn-hist-card--founding .tn-hist-tag {
  color: #9a6700;
  background: rgba(246, 183, 60, 0.22);
}
.tn-hist-card--current .tn-hist-tag {
  color: var(--tn-green);
  background: rgba(63, 143, 88, 0.12);
}

.tn-hist-card time {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tn-muted);
  margin-bottom: 6px;
}

.tn-hist-card h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 2.5vw, 26px);
  line-height: 1.15;
  color: var(--tn-ink);
}

.tn-hist-nick {
  display: block;
  font-size: 0.72em;
  font-style: normal;
  font-weight: 600;
  color: var(--tn-orange);
  margin-top: 4px;
}

.tn-hist-card p {
  margin: 0;
  color: var(--tn-muted);
  line-height: 1.65;
  font-size: 14.5px;
}

.tn-hist-cta {
  display: inline-flex;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff !important;
  background: linear-gradient(135deg, var(--tn-green), #2f7a4d);
}

.tn-hist-end {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--tn-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tn-hist-end-pulse {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tn-gold);
  box-shadow: 0 0 0 0 rgba(246, 183, 60, 0.45);
  animation: tn-hist-pulse 2.4s ease infinite;
}

@keyframes tn-hist-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(246, 183, 60, 0.45);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(246, 183, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(246, 183, 60, 0);
  }
}

.tn-hist-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.tn-hist-reveal.tn-hist-visible {
  opacity: 1;
  transform: translateY(0);
}

.tn-hist-item--left.tn-hist-reveal {
  transform: translateX(-20px) translateY(16px);
}
.tn-hist-item--right.tn-hist-reveal {
  transform: translateX(20px) translateY(16px);
}
.tn-hist-item--left.tn-hist-reveal.tn-hist-visible,
.tn-hist-item--right.tn-hist-reveal.tn-hist-visible {
  transform: translateX(0) translateY(0);
}

@media (max-width: 860px) {
  .tn-historia-hero {
    padding: 44px 5vw 40px;
  }
  .tn-historia-body {
    padding: 40px 5vw 64px;
  }
  .tn-historia-nav-inner {
    padding: 10px 5vw;
  }

  .tn-historia-track:before {
    left: 22px;
    transform: none;
  }

  .tn-hist-item,
  .tn-hist-item--left,
  .tn-hist-item--right,
  .tn-hist-item--founding {
    grid-template-columns: 44px 1fr;
    gap: 0 14px;
  }

  .tn-hist-marker {
    grid-column: 1;
    grid-row: 1;
    padding-top: 12px;
  }

  .tn-hist-badge {
    padding: 8px 8px 10px;
  }

  .tn-hist-badge--row {
    padding: 7px 12px;
  }

  .tn-hist-year {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 11px;
  }

  .tn-hist-item--founding {
    max-width: none;
    margin-bottom: 28px;
  }

  .tn-hist-item--left .tn-hist-card,
  .tn-hist-item--right .tn-hist-card,
  .tn-hist-item--founding .tn-hist-card {
    grid-column: 2;
    text-align: left;
    max-width: none;
  }

  .tn-hist-item--founding .tn-hist-marker {
    grid-column: 1;
    grid-row: 1;
    padding-top: 12px;
  }

  .tn-hist-item--left.tn-hist-reveal {
    transform: translateY(20px);
  }
  .tn-hist-item--right.tn-hist-reveal {
    transform: translateY(20px);
  }
}

@media (max-width: 640px) {
  .tn-historia-hero h1 {
    font-size: clamp(32px, 9vw, 44px);
  }
  .tn-historia-stat {
    min-width: 100px;
    padding: 12px 14px;
  }
  .tn-historia-stat strong {
    font-size: 24px;
  }
  .tn-hist-card {
    padding: 18px 16px;
    border-radius: 20px;
  }
  .tn-hist-section-label h2 {
    white-space: normal;
    font-size: 22px;
  }
}

/* =========================================================
   HORÁRIO DAS MISSAS
   ========================================================= */
.tn-missas-page {
  background: var(--tn-paper);
}

.tn-missas-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 7vw 48px;
  color: #fff;
}

.tn-missas-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      145deg,
      rgba(33, 59, 128, 0.9) 0%,
      rgba(17, 24, 39, 0.85) 50%,
      rgba(141, 39, 76, 0.78) 100%
    ),
    url("../images/about-us/paroquia-Cristo-Ressuscitado-img-01.jpg")
      center/cover;
}

.tn-missas-hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.tn-missas-hero .tn-kicker {
  color: var(--tn-gold);
}

.tn-missas-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 10px 0 14px;
}

.tn-missas-lead {
  margin: 0 auto;
  max-width: 600px;
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.tn-missas-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tn-missas-stat {
  min-width: 110px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tn-missas-stat strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  color: var(--tn-gold);
  margin-bottom: 3px;
}

.tn-missas-stat span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.tn-missas-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 241, 0.92);
  border-bottom: 1px solid var(--tn-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tn-missas-nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 7vw;
  scrollbar-width: none;
}

.tn-missas-nav-inner::-webkit-scrollbar {
  display: none;
}

.tn-missas-nav-btn {
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: var(--tn-blue);
  background: #fff;
  border: 1px solid rgba(33, 59, 128, 0.12);
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.tn-missas-nav-btn:hover,
.tn-missas-nav-btn.tn-active {
  background: linear-gradient(135deg, var(--tn-blue), var(--tn-blue2));
  color: #fff;
  border-color: transparent;
}

.tn-missas-body {
  padding: 40px 7vw 80px;
}

.tn-missas-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.tn-missas-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 28px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--tn-line);
  color: var(--tn-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.tn-missas-note svg {
  width: 20px;
  height: 20px;
  fill: var(--tn-orange);
  flex: none;
  margin-top: 1px;
}

.tn-missas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tn-missas-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--tn-line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 52px rgba(17, 24, 39, 0.08);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.3s ease;
}

.tn-missas-card.tn-missas-hidden {
  display: none;
}

.tn-missas-visible .tn-missas-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 64px rgba(17, 24, 39, 0.12);
}

.tn-missas-card-photo {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.tn-missas-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tn-missas-card-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(17, 24, 39, 0.55));
}

.tn-missas-card-badge {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(17, 24, 39, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tn-missas-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.tn-missas-card-body h2 {
  margin: 0 0 16px;
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.15;
  color: var(--tn-ink);
}

.tn-missas-card--matriz {
  border-top: 4px solid var(--tn-blue);
}
.tn-missas-card--nsa {
  border-top: 4px solid #5f77d4;
}
.tn-missas-card--sagrada {
  border-top: 4px solid var(--tn-wine);
}
.tn-missas-card--santa-rita {
  border-top: 4px solid var(--tn-orange);
}

.tn-missas-schedule {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.tn-missas-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--tn-paper2);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.tn-missas-row--domingo {
  background: linear-gradient(135deg, #fff8eb, #fff3d6);
  border-color: rgba(246, 183, 60, 0.35);
}

.tn-missas-row-days {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--tn-ink);
}

.tn-missas-row-days svg {
  width: 16px;
  height: 16px;
  fill: var(--tn-blue);
  flex: none;
}

.tn-missas-row--domingo .tn-missas-row-days svg {
  fill: var(--tn-orange);
}

.tn-missas-row-times {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  flex: none;
}

.tn-missas-time {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--tn-blue);
  background: #fff;
  border: 1px solid rgba(33, 59, 128, 0.12);
}

.tn-missas-row--domingo .tn-missas-time {
  color: #9a6700;
  border-color: rgba(246, 183, 60, 0.4);
  background: rgba(255, 255, 255, 0.85);
}

.tn-missas-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--tn-muted);
}

.tn-missas-address svg {
  width: 16px;
  height: 16px;
  fill: var(--tn-orange);
  flex: none;
  margin-top: 2px;
}

.tn-missas-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.tn-missas-link {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--tn-blue) !important;
  background: rgba(33, 59, 128, 0.08);
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  transition: background 0.2s;
}

.tn-missas-link:hover {
  background: rgba(33, 59, 128, 0.14);
}

.tn-missas-link--map {
  color: var(--tn-wine) !important;
  background: rgba(141, 39, 76, 0.08);
}

.tn-missas-link--map:hover {
  background: rgba(141, 39, 76, 0.14);
}

.tn-missas-cta {
  margin-top: 40px;
  padding: 32px 28px;
  border-radius: 28px;
  text-align: center;
  background: linear-gradient(135deg, #1a2a5c, #213b80);
  color: #fff;
}

.tn-missas-cta h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 32px);
}

.tn-missas-cta p {
  margin: 0 auto 20px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.tn-missas-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.tn-missas-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.tn-missas-reveal.tn-missas-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .tn-missas-grid {
    grid-template-columns: 1fr;
  }
  .tn-missas-hero {
    padding: 44px 5vw 40px;
  }
  .tn-missas-body {
    padding: 32px 5vw 64px;
  }
  .tn-missas-nav-inner {
    padding: 10px 5vw;
  }
}

@media (max-width: 640px) {
  .tn-missas-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tn-missas-row-times {
    justify-content: flex-start;
  }

  .tn-missas-card-actions {
    flex-direction: column;
  }

  .tn-missas-link {
    justify-content: center;
    width: 100%;
  }

  .tn-missas-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .tn-missas-cta-actions .tn-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   ATIVIDADES DA PARÓQUIA
   ========================================================= */
.tn-atividades-page {
  background: var(--tn-paper);
}

.tn-atividades-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 7vw 48px;
  color: #fff;
}

.tn-atividades-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      145deg,
      rgba(141, 39, 76, 0.88) 0%,
      rgba(33, 59, 128, 0.85) 55%,
      rgba(17, 24, 39, 0.82) 100%
    ),
    url("../images/fotos/atividades-da-matriz-fotos/04.jpg") center/cover;
}

.tn-atividades-hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.tn-atividades-hero .tn-kicker {
  color: var(--tn-gold);
}

.tn-atividades-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 10px 0 14px;
}

.tn-atividades-lead {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
}

.tn-atividades-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.tn-atividades-stat {
  min-width: 110px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.tn-atividades-stat strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  color: var(--tn-gold);
  margin-bottom: 3px;
}

.tn-atividades-stat span {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.tn-atividades-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 241, 0.92);
  border-bottom: 1px solid var(--tn-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.tn-atividades-nav-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 7vw;
  scrollbar-width: none;
}

.tn-atividades-nav-inner::-webkit-scrollbar {
  display: none;
}

.tn-atividades-nav-link {
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--tn-blue);
  background: #fff;
  border: 1px solid rgba(33, 59, 128, 0.12);
  text-decoration: none;
  transition:
    background 0.2s,
    color 0.2s;
}

.tn-atividades-nav-link:hover {
  background: linear-gradient(135deg, var(--tn-blue), var(--tn-blue2));
  color: #fff;
  border-color: transparent;
}

.tn-atividades-body {
  padding: 40px 7vw 80px;
}

.tn-atividades-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.tn-atividades-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 48px;
}

.tn-atividades-info-card {
  padding: 22px 22px 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.06);
}

.tn-atividades-info-card h2 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: var(--tn-ink);
}

.tn-atividades-info-card p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tn-muted);
}

.tn-atividades-info-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.tn-atividades-info-ico svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.tn-atividades-info-ico--sec {
  background: linear-gradient(135deg, var(--tn-blue), var(--tn-blue2));
}
.tn-atividades-info-ico--conf {
  background: linear-gradient(135deg, var(--tn-wine), #b84a72);
}

.tn-atividades-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tn-atividades-info-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tn-muted);
}

.tn-atividades-info-list li:before {
  content: none;
}

.tn-atividades-ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
}

.tn-atividades-info-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tn-muted);
}

.tn-atividades-info-meta .tn-atividades-ico {
  color: var(--tn-blue);
}

.tn-atividades-info-nota {
  font-size: 13px;
  color: var(--tn-muted);
}

.tn-atividades-hora-sep {
  margin: 0 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tn-muted);
  text-transform: lowercase;
}

.tn-atividades-info-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--tn-blue) !important;
}

.tn-atividades-info-link .tn-atividades-ico {
  color: var(--tn-blue);
}

.tn-atividades-info-card--cta {
  background: linear-gradient(145deg, #1a2a5c, #213b80);
  border-color: transparent;
  color: #fff;
}

.tn-atividades-info-card--cta h2 {
  color: #fff;
}
.tn-atividades-info-card--cta p {
  color: rgba(255, 255, 255, 0.82);
}

.tn-atividades-section,
.tn-atividades-poster-block {
  margin-bottom: 48px;
}

.tn-atividades-section-head {
  margin-bottom: 24px;
}

.tn-atividades-section-head h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: clamp(26px, 3.2vw, 34px);
  color: var(--tn-ink);
}

.tn-atividades-section-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tn-atividades-section-title .tn-atividades-ico {
  width: 22px;
  height: 22px;
  color: var(--tn-blue);
}

.tn-atividades-section-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tn-blue);
  background: rgba(33, 59, 128, 0.1);
  border: 1px solid rgba(33, 59, 128, 0.14);
}

.tn-atividades-section-head p {
  margin: 0;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tn-muted);
}

.tn-atividades-poster {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--tn-line);
  box-shadow: 0 24px 56px rgba(17, 24, 39, 0.1);
  background: #fff;
}

.tn-atividades-poster-trigger {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  font: inherit;
}

.tn-atividades-poster-trigger img {
  display: block;
  width: 100%;
  height: auto;
}

.tn-atividades-poster-zoom {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition:
    background 0.2s,
    transform 0.2s;
}

.tn-atividades-poster-zoom svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.tn-atividades-poster-trigger:hover .tn-atividades-poster-zoom {
  background: rgba(33, 59, 128, 0.88);
  transform: translateY(-2px);
}

.tn-atividades-grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tn-atividades-day {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.tn-atividades-day:hover {
  border-color: rgba(17, 24, 39, 0.14);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.1);
  transform: translateY(-3px);
}

.tn-atividades-day h3 {
  margin: 0;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  border-bottom: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tn-atividades-day h3 .tn-atividades-ico {
  width: 15px;
  height: 15px;
  fill: rgba(255, 255, 255, 0.92);
  flex: none;
}

.tn-atividades-day--blue h3 {
  background: linear-gradient(135deg, var(--tn-blue) 0%, #2d5099 100%);
}

.tn-atividades-day--wine h3 {
  background: linear-gradient(135deg, var(--tn-wine) 0%, #a63358 100%);
}

.tn-atividades-day--green h3 {
  background: linear-gradient(135deg, #247a52 0%, #2d9666 100%);
}

.tn-atividades-day--orange h3 {
  background: linear-gradient(135deg, #c96512 0%, var(--tn-orange) 100%);
}

.tn-atividades-day--gold h3 {
  background: linear-gradient(135deg, #c9921a 0%, var(--tn-gold) 100%);
  color: #3d2e08;
}

.tn-atividades-day--gold h3 .tn-atividades-ico {
  fill: #3d2e08;
}

.tn-atividades-day ul {
  margin: 0;
  padding: 6px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.tn-atividades-day li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  margin: 0 8px;
  border-radius: 8px;
  background: transparent;
  border-bottom: none;
  font-size: 13.5px;
  line-height: 1.45;
  transition: background 0.18s ease;
}

.tn-atividades-day li + li {
  border-top: 1px solid rgba(17, 24, 39, 0.06);
  margin-top: 0;
  border-radius: 0;
}

.tn-atividades-day li:first-child {
  margin-top: 2px;
}

.tn-atividades-day li:last-child {
  margin-bottom: 6px;
}

.tn-atividades-day li:hover {
  background: rgba(17, 24, 39, 0.035);
  border-radius: 8px;
}

.tn-atividades-day-nome {
  font-weight: 600;
  color: var(--tn-ink);
}

.tn-atividades-day-hora {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 4px 9px;
  border-radius: 6px;
}

.tn-atividades-day-hora .tn-atividades-ico {
  width: 13px;
  height: 13px;
  flex: none;
}

.tn-atividades-hora-texto {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
}

.tn-atividades-day--blue .tn-atividades-day-hora {
  color: var(--tn-blue);
  background: rgba(33, 59, 128, 0.09);
}

.tn-atividades-day--wine .tn-atividades-day-hora {
  color: var(--tn-wine);
  background: rgba(141, 39, 76, 0.09);
}

.tn-atividades-day--green .tn-atividades-day-hora {
  color: #247a52;
  background: rgba(36, 122, 82, 0.1);
}

.tn-atividades-day--orange .tn-atividades-day-hora {
  color: #b85a0f;
  background: rgba(233, 121, 26, 0.12);
}

.tn-atividades-day--gold .tn-atividades-day-hora {
  color: #8a6914;
  background: rgba(246, 183, 60, 0.18);
}

.tn-atividades-missas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.tn-atividades-missa-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--tn-line);
}

.tn-atividades-missa-row--dom {
  background: linear-gradient(135deg, #fff8eb, #fff3d6);
  border-color: rgba(246, 183, 60, 0.35);
}

.tn-atividades-missa-row > span {
  font-size: 14px;
  font-weight: 700;
  color: var(--tn-ink);
}

.tn-atividades-missa-dias {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tn-atividades-missa-dias .tn-atividades-ico {
  color: var(--tn-blue);
  flex: none;
}

.tn-atividades-missa-row--dom .tn-atividades-missa-dias .tn-atividades-ico {
  color: var(--tn-orange);
}

.tn-atividades-missa-times {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.tn-atividades-missa-times em {
  font-style: normal;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--tn-blue);
  background: var(--tn-paper2);
  border: 1px solid rgba(33, 59, 128, 0.12);
}

.tn-atividades-missa-times em .tn-atividades-ico {
  width: 13px;
  height: 13px;
  color: var(--tn-blue);
}

.tn-atividades-missa-row--dom .tn-atividades-missa-times em {
  color: #9a6700;
  border-color: rgba(246, 183, 60, 0.4);
  background: rgba(255, 255, 255, 0.85);
}

.tn-atividades-missa-row--dom .tn-atividades-missa-times em .tn-atividades-ico {
  color: #9a6700;
}

.tn-atividades-link-all {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--tn-wine) !important;
}

.tn-atividades-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tn-atividades-gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--tn-ink);
  aspect-ratio: 4 / 3;
  font: inherit;
  text-align: left;
}

.tn-atividades-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

.tn-atividades-gallery-cap {
  position: absolute;
  inset: auto 0 0;
  padding: 28px 12px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.82));
}

.tn-atividades-gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.92;
}

.tn-atividades-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.tn-atividades-reveal.tn-atividades-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .tn-atividades-info-grid {
    grid-template-columns: 1fr;
  }
  .tn-atividades-grade {
    grid-template-columns: 1fr;
  }
  .tn-atividades-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tn-atividades-hero {
    padding: 44px 5vw 40px;
  }
  .tn-atividades-body {
    padding: 32px 5vw 64px;
  }
  .tn-atividades-nav-inner {
    padding: 10px 5vw;
  }
}

@media (max-width: 640px) {
  .tn-atividades-missa-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .tn-atividades-missa-times {
    justify-content: flex-start;
  }

  .tn-atividades-day li {
    flex-direction: column;
    gap: 4px;
  }

  .tn-atividades-poster-zoom {
    right: 10px;
    bottom: 10px;
    font-size: 12px;
    padding: 8px 12px;
  }

  .tn-atividades-gallery {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   ANIVERSÁRIOS DE DIZIMISTAS
   ========================================================= */
.tn-dizim-page {
  background: var(--tn-paper);
}

.tn-dizim-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 7vw 48px;
  color: #fff;
}

.tn-dizim-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      145deg,
      rgba(141, 39, 76, 0.9) 0%,
      rgba(33, 59, 128, 0.86) 55%,
      rgba(17, 24, 39, 0.84) 100%
    ),
    url("../images/about-us/paroquia-Cristo-Ressuscitado-img-01.jpg")
      center/cover;
}

.tn-dizim-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.tn-dizim-hero .tn-kicker {
  color: var(--tn-gold);
}

.tn-dizim-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 5.8vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 10px 0 14px;
}

.tn-dizim-lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(15px, 2.1vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.tn-dizim-body {
  padding: 36px 7vw 80px;
}

.tn-dizim-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.tn-dizim-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.tn-dizim-mes-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--tn-ink);
}

.tn-dizim-mes-badge strong {
  color: var(--tn-wine);
}

.tn-dizim-meses-wrap {
  margin-bottom: 20px;
}

.tn-dizim-meses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tn-dizim-mes-tab {
  appearance: none;
  border: 1px solid rgba(141, 39, 76, 0.16);
  background: #fff;
  color: var(--tn-ink);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.tn-dizim-mes-tab:hover,
.tn-dizim-mes-tab:focus-visible {
  border-color: rgba(141, 39, 76, 0.34);
  box-shadow: 0 6px 16px rgba(141, 39, 76, 0.08);
  outline: none;
}

.tn-dizim-mes-tab.is-active,
.tn-dizim-mes-tab[aria-selected="true"] {
  background: var(--tn-wine);
  border-color: var(--tn-wine);
  color: #fff;
}

.tn-dizim-mes-select-wrap {
  display: none;
  margin-top: 0;
}

.tn-dizim-mes-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--tn-line);
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: var(--tn-ink);
}

.tn-dizim-mes-panel[hidden] {
  display: none !important;
}

.tn-dizim-panels--busca .tn-dizim-mes-panel--busca {
  margin-bottom: 28px;
}

.tn-dizim-mes-panel-titulo {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--tn-wine);
  border-bottom: 1px solid rgba(141, 39, 76, 0.12);
}

.tn-dizim-meses--busca {
  opacity: 0.72;
}

.tn-dizim-toolbar-note {
  margin: 0;
  max-width: 560px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--tn-muted);
}

.tn-dizim-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 280px);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: var(--tn-paper2);
}

.tn-dizim-search input {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--tn-ink);
  outline: none;
}

.tn-dizim-search input::placeholder {
  color: var(--tn-muted);
}

.tn-dizim-ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
  color: var(--tn-wine);
}

.tn-dizim-search .tn-dizim-ico {
  color: var(--tn-blue);
}

.tn-dizim-search .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tn-dizim-grid.event-cards-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.tn-dizim-page .event.event-card {
  display: flex;
  align-items: stretch;
  width: auto;
  float: none;
  margin: 0;
  padding: 0;
  color: var(--tn-ink);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.05);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.tn-dizim-page .event.event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(17, 24, 39, 0.14);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1);
}

.tn-dizim-page .event.event-card.tn-dizim-card--hoje {
  border-color: rgba(246, 183, 60, 0.55);
  box-shadow:
    0 0 0 2px rgba(246, 183, 60, 0.22),
    0 12px 30px rgba(141, 39, 76, 0.12);
}

.tn-dizim-page .event.event-card.tn-dizim-card--hidden {
  display: none !important;
}

.tn-dizim-page .event-card-date {
  flex: none;
  width: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  background: linear-gradient(160deg, var(--tn-wine) 0%, #a63358 100%);
}

.tn-dizim-page .event.event-card.tn-dizim-card--hoje .event-card-date {
  background: linear-gradient(160deg, #c9921a 0%, var(--tn-gold) 100%);
}

.tn-dizim-page .event-start {
  float: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
}

.tn-dizim-page .event-start-date {
  float: none;
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.tn-dizim-page .event.event-card.tn-dizim-card--hoje .event-start-date {
  color: #3d2e08;
}

.tn-dizim-page .event-start-month {
  float: none;
  text-align: center;
}

.tn-dizim-page .event-start-month small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.tn-dizim-page .event.event-card.tn-dizim-card--hoje .event-start-month small {
  color: #3d2e08;
}

.tn-dizim-page .event-card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 16px;
}

.tn-dizim-page .event-title {
  float: none;
  clear: none;
  margin: 0;
  text-transform: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--tn-ink);
}

.tn-dizim-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 2px;
}

.tn-dizim-numero,
.tn-dizim-comunidade {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tn-muted);
}

.tn-dizim-numero strong {
  color: var(--tn-wine);
  font-weight: 800;
}

.tn-dizim-numero .tn-dizim-ico {
  color: var(--tn-wine);
  margin-top: 1px;
}

.tn-dizim-comunidade .tn-dizim-ico {
  color: var(--tn-blue);
  margin-top: 1px;
}

.tn-dizim-comunidade span:last-child {
  color: var(--tn-ink);
  font-weight: 600;
}

.tn-dizim-empty {
  margin: 0 0 16px;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(17, 24, 39, 0.14);
  color: var(--tn-muted);
}

.tn-dizim-mes-panel--vazio {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(42vh, 320px);
  padding: 32px 20px 40px;
}

.tn-dizim-mes-vazio {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 36px 28px;
  text-align: center;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(33, 59, 128, 0.1);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.07);
}

.tn-dizim-mes-vazio-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgba(33, 59, 128, 0.1),
    rgba(141, 39, 76, 0.08)
  );
  color: var(--tn-blue);
}

.tn-dizim-mes-vazio-ico svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.tn-dizim-mes-vazio-msg {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--tn-ink);
}

.tn-dizim-mes-vazio-msg strong {
  color: var(--tn-wine);
  font-weight: 900;
}

.tn-dizim-mes-vazio-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tn-muted);
}

.tn-dizim-mes-tab.is-empty:not(.is-active) {
  opacity: 0.72;
}

.tn-dizim-mes-tab.is-empty.is-active {
  opacity: 1;
}

.tn-dizim-foot {
  margin-top: 32px;
  text-align: center;
}

.tn-dizim-link {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  color: var(--tn-wine) !important;
  background: rgba(141, 39, 76, 0.08);
  border: 1px solid rgba(141, 39, 76, 0.14);
  transition: background 0.2s;
}

.tn-dizim-link:hover {
  background: rgba(141, 39, 76, 0.14);
}

.tn-dizim-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.tn-dizim-reveal.tn-dizim-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .tn-dizim-hero {
    padding: 44px 5vw 40px;
  }
  .tn-dizim-body {
    padding: 28px 5vw 64px;
  }
  .tn-dizim-grid.event-cards-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tn-dizim-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tn-dizim-search {
    min-width: 0;
    width: 100%;
  }

  .tn-dizim-search input {
    font-size: 16px;
  }

  .tn-dizim-meses {
    display: none;
  }

  .tn-dizim-mes-select-wrap {
    display: block;
  }
}

/* =========================================================
   PASTORAIS E GRUPOS (layout reutilizável)
   ========================================================= */
.tn-pastoral-page {
  background: var(--tn-paper);
}

.tn-pastoral-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 7vw 44px;
  color: #fff;
}

.tn-pastoral-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      145deg,
      rgba(33, 59, 128, 0.9) 0%,
      rgba(17, 24, 39, 0.86) 55%,
      rgba(141, 39, 76, 0.78) 100%
    ),
    url("../images/about-us/paroquia-Cristo-Ressuscitado-img-01.jpg")
      center/cover;
}

.tn-pastoral-hero-bg--acolhida {
  background:
    linear-gradient(
      145deg,
      rgba(141, 39, 76, 0.88) 0%,
      rgba(33, 59, 128, 0.85) 100%
    ),
    url("../images/fotos/pastoral-acolhida/02.jpg") center/cover;
}

.tn-pastoral-hero-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.tn-pastoral-hero .tn-kicker {
  color: var(--tn-gold);
}

.tn-pastoral-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 10px 0 12px;
}

.tn-pastoral-responsavel {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
}

.tn-pastoral-responsavel strong {
  color: #fff;
  font-weight: 800;
}

.tn-pastoral-body {
  padding: 40px 7vw 80px;
}

.tn-pastoral-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.tn-pastoral-intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.06);
}

.tn-pastoral-intro--texto {
  grid-template-columns: 1fr;
}

.tn-pastoral-intro--foto-topo {
  grid-template-columns: 1fr;
}

.tn-pastoral-intro--foto-topo .tn-pastoral-coord {
  max-width: 520px;
  margin: 0 auto;
}

.tn-pastoral-intro--foto-topo .tn-pastoral-coord img {
  aspect-ratio: 16 / 10;
}

.tn-pastoral-coord--grande img {
  aspect-ratio: 4 / 3;
  max-height: 360px;
  object-position: center top;
}

/* Foto horizontal em faixa (ex.: Apostolado de Oração) - banner completo, sem recorte */
.tn-pastoral-foto-horizontal {
  margin: 0 0 36px;
  border-radius: 16px;
  overflow: hidden;
  background: #dceaf5;
  border: 1px solid var(--tn-line);
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.08);
}

.tn-pastoral-foto-horizontal img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
}

.tn-pastoral-foto-horizontal-cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 14px 20px;
  background: linear-gradient(
    135deg,
    rgba(141, 39, 76, 0.07) 0%,
    rgba(33, 59, 128, 0.05) 100%
  );
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

.tn-pastoral-foto-horizontal-cap strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--tn-wine);
}

.tn-pastoral-foto-horizontal-cap span {
  font-size: 13px;
  font-weight: 600;
  color: var(--tn-muted);
}

.tn-pastoral-page--foto-horizontal .tn-pastoral-secao:first-of-type {
  margin-top: 0;
}

.tn-pastoral-coord {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.tn-pastoral-coord img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.tn-pastoral-texto p {
  margin: 0 0 16px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--tn-muted);
}

.tn-pastoral-texto p:last-child {
  margin-bottom: 0;
}

.tn-pastoral-destaque {
  margin-top: 20px !important;
  padding: 14px 16px;
  border-radius: 10px;
  font-weight: 700 !important;
  color: var(--tn-ink) !important;
  background: linear-gradient(135deg, #fff8eb, #fff3d6);
  border: 1px solid rgba(246, 183, 60, 0.35);
}

.tn-pastoral-citacao {
  margin: 18px 0 0;
  padding: 20px 24px;
  border-left: 4px solid var(--tn-wine);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(
    135deg,
    rgba(141, 39, 76, 0.06),
    rgba(33, 59, 128, 0.05)
  );
}

.tn-pastoral-citacao p {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 17px;
  line-height: 1.6;
  font-style: italic;
  color: var(--tn-ink);
}

.tn-pastoral-citacao cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tn-wine);
}

.tn-pastoral-secao {
  margin-bottom: 36px;
  padding: 24px 26px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: 0 10px 32px rgba(17, 24, 39, 0.05);
}

.tn-pastoral-secao-title {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--tn-ink);
}

.tn-pastoral-secao p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--tn-muted);
}

.tn-pastoral-secao p:last-child {
  margin-bottom: 0;
}

/* Card único com blocos internos (sem fatiar em vários cards) */
.tn-pastoral-card {
  margin-bottom: 36px;
  padding: 28px 30px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.06);
}

.tn-pastoral-card-bloco + .tn-pastoral-card-bloco {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.tn-pastoral-card-bloco .tn-pastoral-secao-title {
  margin: 0 0 12px;
}

.tn-pastoral-card-bloco p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--tn-muted);
}

.tn-pastoral-card-bloco p:last-child {
  margin-bottom: 0;
}

.tn-pastoral-card-bloco .tn-pastoral-destaque {
  margin-top: 18px !important;
}

.tn-pastoral-card-bloco .tn-pastoral-info {
  margin-top: 4px;
}

.tn-pastoral-card-bloco .tn-pastoral-lista {
  margin: 0 0 14px;
}

.tn-pastoral-card-bloco .tn-pastoral-lista:last-child {
  margin-bottom: 0;
}

.tn-pastoral-card-bloco .tn-hero-actions {
  margin-top: 16px;
}

.tn-pastoral-lista a {
  color: var(--tn-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tn-pastoral-lista a:hover {
  color: var(--tn-wine);
}

.tn-pastoral-lista {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tn-pastoral-lista li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--tn-muted);
}

.tn-pastoral-lista li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tn-gold);
}

.tn-pastoral-info {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tn-pastoral-info-row {
  display: grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap: 10px 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--tn-paper2);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.tn-pastoral-info-row dt {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--tn-blue);
}

.tn-pastoral-info-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tn-muted);
}

@media (max-width: 640px) {
  .tn-pastoral-info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.tn-pastoral-extra {
  margin: 0 0 40px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--tn-line);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.tn-pastoral-extra img {
  display: block;
  width: 100%;
  height: auto;
}

.tn-pastoral-extra figcaption {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tn-muted);
  background: #fff;
}

.tn-pastoral-section-head {
  margin-bottom: 22px;
}

.tn-pastoral-section-head h2 {
  margin: 0 0 8px;
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--tn-ink);
}

.tn-pastoral-section-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tn-muted);
}

.tn-pastoral-galeria-block {
  margin-top: 8px;
}

.tn-pastoral-galeria-block + .tn-pastoral-galeria-block {
  margin-top: 40px;
}

/* Galeria uniforme (reutilizável em pastorais e demais páginas) */
.tn-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.tn-galeria-item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--tn-ink);
  aspect-ratio: 1 / 1;
  font: inherit;
  text-align: left;
}

.tn-galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tn-galeria-cap {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 32px 12px 11px;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.85));
  pointer-events: none;
}

.tn-pastoral-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.tn-pastoral-reveal.tn-pastoral-visible {
  opacity: 1;
  transform: translateY(0);
}

.tn-pastoral-hero-bg--animacao {
  background:
    linear-gradient(
      145deg,
      rgba(33, 59, 128, 0.88) 0%,
      rgba(141, 39, 76, 0.82) 100%
    ),
    url("../images/fotos/pastoral-animacao/05.jpg") center/cover;
}

.tn-pastoral-hero-bg--jovens {
  background:
    linear-gradient(
      145deg,
      rgba(141, 39, 76, 0.86) 0%,
      rgba(33, 59, 128, 0.88) 100%
    ),
    url("../images/fotos/grupo-jovens/03.jpg") center/cover;
}

.tn-pastoral-hero-bg--oracao {
  background:
    linear-gradient(
      145deg,
      rgba(33, 59, 128, 0.9) 0%,
      rgba(17, 24, 39, 0.84) 100%
    ),
    url("../images/fotos/grupo-oracao/02.jpg") center/cover;
}

.tn-pastoral-hero-bg--rua {
  background:
    linear-gradient(
      145deg,
      rgba(17, 24, 39, 0.88) 0%,
      rgba(141, 39, 76, 0.82) 100%
    ),
    url("../images/fotos/coordenadores/rizaldo.jpg") center/cover;
}

.tn-pastoral-hero-bg--teatro {
  background:
    linear-gradient(
      45deg,
      rgba(141, 39, 76, 0.84) 0%,
      rgb(26 122 233 / 72%) 100%
    ),
    url(../images/fotos/grupo-teatro/06.jpg) center / cover;
  top: -134px;
}

.tn-pastoral-hero-bg--secretaria {
  background:
    linear-gradient(
      145deg,
      rgba(33, 59, 128, 0.9) 0%,
      rgba(141, 39, 76, 0.82) 100%
    ),
    url("../images/about-us/paroquia-Cristo-Ressuscitado-img-01.jpg")
      center/cover;
}

/* ===== Comunidades ===== */
.tn-pastoral-hero-bg--comunidade-matriz {
  background:
    linear-gradient(
      145deg,
      rgba(33, 59, 128, 0.9) 0%,
      rgba(17, 24, 39, 0.8) 100%
    ),
    url("../images/comunidades/PCR.png") center/cover;
}

.tn-pastoral-hero-bg--comunidade-nsa {
  background:
    linear-gradient(
      145deg,
      rgba(33, 59, 128, 0.88) 0%,
      rgba(17, 24, 39, 0.82) 100%
    ),
    url("../images/comunidades/nsa-foto-principal.jpg") center/cover;
}

.tn-pastoral-hero-bg--comunidade-sagrada {
  background:
    linear-gradient(
      145deg,
      rgba(141, 39, 76, 0.85) 0%,
      rgba(33, 59, 128, 0.82) 100%
    ),
    url("../images/comunidades/sagrada-familia-foto-principal.jpg") center/cover;
}

.tn-pastoral-hero-bg--comunidade-santa-rita {
  background:
    linear-gradient(
      145deg,
      rgba(141, 39, 76, 0.86) 0%,
      rgba(17, 24, 39, 0.8) 100%
    ),
    url("../images/comunidades/santa-rita-foto-principal.jpg") center/cover;
}

.tn-comunidade-horarios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.tn-comunidade-horario {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f6f8fc;
  border: 1px solid var(--tn-line);
}

.tn-comunidade-horario--domingo {
  background: linear-gradient(
    135deg,
    rgba(33, 59, 128, 0.08) 0%,
    rgba(141, 39, 76, 0.08) 100%
  );
  border-color: rgba(33, 59, 128, 0.18);
}

.tn-comunidade-horario-ico {
  width: 42px;
  height: 42px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #213b80, #5f77d4);
}

.tn-comunidade-horario--domingo .tn-comunidade-horario-ico {
  background: linear-gradient(135deg, #8d274c, #e9791a);
}

.tn-comunidade-horario-ico svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.tn-comunidade-horario-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tn-comunidade-horario-dia {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tn-muted);
}

.tn-comunidade-horario-hora {
  font-size: 20px;
  font-weight: 800;
  color: var(--tn-ink, #111827);
  letter-spacing: -0.01em;
}

.tn-comunidade-nota {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--tn-muted);
}

.tn-comunidade-nota svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  fill: var(--tn-wine, #8d274c);
}

.tn-comunidade-actions {
  margin-top: 22px;
}

.tn-comunidade-outras {
  margin-top: 48px;
}

.tn-comunidade-terco {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(233, 121, 26, 0.1) 0%,
    rgba(141, 39, 76, 0.08) 100%
  );
  border: 1px solid rgba(233, 121, 26, 0.22);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--tn-ink, #111827);
}

.tn-comunidade-terco svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: var(--tn-orange, #e9791a);
}

.tn-comunidade-atendimento {
  margin-bottom: 22px;
}

/* Tabela de atividades (texto responsivo) */
.tn-comunidade-tabela {
  border: 1px solid var(--tn-line);
  border-radius: 14px;
  overflow: hidden;
}

.tn-comunidade-tabela-head,
.tn-comunidade-tabela-row {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 0.7fr;
  gap: 12px;
  align-items: center;
  padding: 12px 18px;
}

.tn-comunidade-tabela-head {
  background: linear-gradient(135deg, #213b80, #5f77d4);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tn-comunidade-tabela-row {
  border-top: 1px solid var(--tn-line);
  font-size: 14.5px;
  background: #fff;
}

.tn-comunidade-tabela-row:nth-child(even) {
  background: #e9eefb;
}

.tn-comunidade-tabela-dia {
  font-weight: 800;
  color: var(--tn-ink, #111827);
}

.tn-comunidade-tabela-ativ {
  color: var(--tn-muted);
}

.tn-comunidade-tabela-hora {
  font-weight: 800;
  color: var(--tn-wine, #8d274c);
}

@media (max-width: 640px) {
  .tn-comunidade-tabela-head {
    display: none;
  }

  .tn-comunidade-tabela-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 16px;
  }

  .tn-comunidade-tabela-row span::before {
    content: attr(data-label) ": ";
    font-weight: 800;
    color: var(--tn-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.06em;
    margin-right: 6px;
  }

  .tn-comunidade-tabela-dia::before,
  .tn-comunidade-tabela-hora::before {
    color: var(--tn-muted);
  }
}

.tn-pastoral-ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
}

/* Escala de animação */
.tn-escala-anim {
  margin-bottom: 48px;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: 0 16px 44px rgba(17, 24, 39, 0.06);
}

.tn-escala-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tn-escala-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(33, 59, 128, 0.14);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--tn-muted);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
}

.tn-escala-tab .tn-pastoral-ico {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--tn-blue);
  fill: var(--tn-blue);
  opacity: 0.85;
}

.tn-escala-tab:hover {
  background: rgba(33, 59, 128, 0.06);
  border-color: rgba(33, 59, 128, 0.22);
  color: var(--tn-blue);
  box-shadow: 0 2px 8px rgba(33, 59, 128, 0.08);
}

.tn-escala-tab:hover .tn-pastoral-ico {
  opacity: 1;
}

.tn-escala-inst-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--tn-paper2);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.tn-escala-inst-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--tn-muted);
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.07);
}

.tn-escala-inst-legend-item:nth-child(1) {
  background: rgba(33, 59, 128, 0.05);
  border-color: rgba(33, 59, 128, 0.12);
  color: #4a5f8f;
}

.tn-escala-inst-legend-item:nth-child(2) {
  background: rgba(233, 121, 26, 0.06);
  border-color: rgba(233, 121, 26, 0.14);
  color: #a8651a;
}

.tn-escala-inst-legend-item:nth-child(3) {
  background: rgba(141, 39, 76, 0.05);
  border-color: rgba(141, 39, 76, 0.12);
  color: #9a4560;
}

.tn-escala-inst-legend-item .tn-pastoral-ico--inst {
  color: var(--tn-blue);
}

.tn-escala-bloco {
  margin-bottom: 36px;
  scroll-margin-top: 88px;
}

.tn-escala-bloco:last-child {
  margin-bottom: 0;
}

.tn-escala-bloco-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--tn-ink);
}

.tn-escala-bloco-title .tn-pastoral-ico {
  color: var(--tn-wine);
}

.tn-escala-pessoas {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tn-escala-pessoa {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.07);
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
}

.tn-escala-pessoa-nome {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--tn-ink);
  line-height: 1.25;
}

.tn-escala-instrumentos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.tn-escala-inst {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 2px 7px 2px 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: none;
}

.tn-escala-inst-tag {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1;
  color: var(--tn-muted);
}

.tn-escala-inst--teclado {
  background: rgba(33, 59, 128, 0.05);
  border-color: rgba(33, 59, 128, 0.12);
}

.tn-escala-inst--teclado .tn-escala-inst-tag {
  color: #5a6f9a;
}

.tn-escala-inst--violao {
  background: rgba(233, 121, 26, 0.06);
  border-color: rgba(233, 121, 26, 0.14);
}

.tn-escala-inst--violao .tn-escala-inst-tag {
  color: #a8651a;
}

.tn-escala-inst--voz {
  background: rgba(141, 39, 76, 0.05);
  border-color: rgba(141, 39, 76, 0.12);
}

.tn-escala-inst--voz .tn-escala-inst-tag {
  color: #9a4560;
}

.tn-escala-inst .tn-pastoral-ico--inst {
  width: 16px;
  height: 16px;
  flex: none;
  opacity: 0.92;
}

.tn-escala-inst .tn-ico-kbd-body {
  fill: #dfe6f2;
  stroke: var(--tn-blue);
  stroke-width: 0.65;
}

.tn-escala-inst .tn-ico-kbd-pad {
  fill: #b8c4da;
}

.tn-escala-inst .tn-ico-kbd-white {
  fill: #fff;
  stroke: #c5cede;
  stroke-width: 0.35;
}

.tn-escala-inst .tn-ico-kbd-black {
  fill: var(--tn-blue);
  stroke: none;
}

.tn-escala-inst .tn-ico-violao-body {
  fill: var(--tn-orange);
}

.tn-escala-inst .tn-ico-violao-detail {
  fill: #fff;
}

.tn-escala-inst .tn-ico-violao-hole {
  stroke: #fff;
}

.tn-escala-inst[title="Voz"] .tn-pastoral-ico--inst,
.tn-escala-inst--voz .tn-pastoral-ico--inst {
  fill: var(--tn-wine);
}

.tn-escala-inst-legend-item .tn-ico-kbd-body {
  fill: #dfe6f2;
  stroke: var(--tn-blue);
  stroke-width: 0.65;
}

.tn-escala-inst-legend-item .tn-ico-kbd-pad {
  fill: #b8c4da;
}

.tn-escala-inst-legend-item .tn-ico-kbd-white {
  fill: #fff;
  stroke: #c5cede;
  stroke-width: 0.35;
}

.tn-escala-inst-legend-item .tn-ico-kbd-black {
  fill: var(--tn-blue);
}

.tn-escala-inst-legend-item .tn-ico-violao-body {
  fill: var(--tn-orange);
}

.tn-escala-inst-legend-item .tn-ico-violao-detail {
  fill: #fff;
}

.tn-escala-inst-legend-item .tn-ico-violao-hole {
  stroke: #fff;
}

.tn-escala-inst-legend-item:nth-child(3) .tn-pastoral-ico--inst {
  fill: var(--tn-wine);
}

.tn-escala-slot--row .tn-escala-pessoas {
  width: 100%;
}

.tn-escala-slot--row .tn-escala-slot-body {
  align-items: stretch;
  text-align: left;
}

.tn-escala-animador {
  display: none;
}

.tn-escala-legenda {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--tn-muted);
  background: var(--tn-paper2);
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.tn-escala-legenda .tn-pastoral-ico {
  color: var(--tn-orange);
  margin-top: 2px;
}

.tn-escala-domingos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.tn-escala-domingo {
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: var(--tn-paper);
  overflow: hidden;
  transition:
    border-color 0.22s,
    box-shadow 0.22s;
}

.tn-escala-domingo.tn-escala--hoje {
  border-color: rgba(246, 183, 60, 0.55);
  box-shadow: 0 0 0 2px rgba(246, 183, 60, 0.2);
}

.tn-escala-domingo-head {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 16px 10px 14px;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.tn-escala-domingo-head::before {
  content: "";
  position: absolute;
  top: -18px;
  right: -18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.tn-escala-domingo-head::after {
  content: "";
  position: absolute;
  bottom: -24px;
  left: -10px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.tn-escala-domingo--blue .tn-escala-domingo-head {
  background: linear-gradient(
    145deg,
    var(--tn-blue) 0%,
    #3a5fad 55%,
    #2d5099 100%
  );
}

.tn-escala-domingo--wine .tn-escala-domingo-head {
  background: linear-gradient(
    145deg,
    var(--tn-wine) 0%,
    #b83258 55%,
    #9a2a4a 100%
  );
}

.tn-escala-domingo--gold .tn-escala-domingo-head {
  background: linear-gradient(
    145deg,
    #d4a017 0%,
    var(--tn-gold) 55%,
    #f0c04a 100%
  );
  color: #3d2e08;
}

.tn-escala-domingo--gold .tn-escala-domingo-num,
.tn-escala-domingo--gold .tn-escala-domingo-label {
  text-shadow: none;
}

.tn-escala-domingo--green .tn-escala-domingo-head {
  background: linear-gradient(
    145deg,
    #2f7a47 0%,
    var(--tn-green) 55%,
    #52a86a 100%
  );
}

.tn-escala-domingo--orange .tn-escala-domingo-head {
  background: linear-gradient(
    145deg,
    #c96512 0%,
    var(--tn-orange) 55%,
    #f09030 100%
  );
}

.tn-escala-domingo.tn-escala--hoje .tn-escala-domingo-head {
  background: linear-gradient(
    145deg,
    #1f356e 0%,
    var(--tn-blue) 40%,
    var(--tn-gold) 100%
  );
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.tn-escala-domingo-num {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.tn-escala-domingo-label {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.92;
}

.tn-escala-slots {
  margin: 0;
  padding: 10px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--tn-paper2);
}

.tn-escala-slot {
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.07);
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}

.tn-escala-slot-hora {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--tn-blue);
}

.tn-escala-slot-hora .tn-pastoral-ico {
  width: 14px;
  height: 14px;
}

.tn-escala-slot-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tn-escala-tipo {
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tn-escala-tipo--missa {
  color: var(--tn-blue);
  background: rgba(33, 59, 128, 0.1);
}

.tn-escala-tipo--celebracao {
  color: var(--tn-wine);
  background: rgba(141, 39, 76, 0.1);
}

.tn-escala-semana {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tn-escala-dia {
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
  overflow: hidden;
  transition:
    border-color 0.22s,
    box-shadow 0.22s;
}

.tn-escala-dia.tn-escala--hoje {
  border-color: rgba(246, 183, 60, 0.55);
  box-shadow: 0 0 0 2px rgba(246, 183, 60, 0.2);
}

.tn-escala-dia-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: #fff;
  overflow: hidden;
}

.tn-escala-dia-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.16) 0%,
    transparent 42%
  );
  pointer-events: none;
}

.tn-escala-dia-head::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -28px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.tn-escala-dia-head > div {
  position: relative;
  z-index: 1;
}

.tn-escala-dia-head strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.tn-escala-dia-head small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

.tn-escala-dia-head .tn-pastoral-ico {
  position: relative;
  z-index: 1;
  flex: none;
  width: 22px;
  height: 22px;
  padding: 7px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  box-sizing: content-box;
  fill: rgba(255, 255, 255, 0.95);
}

.tn-escala-dia--blue .tn-escala-dia-head {
  background: linear-gradient(
    135deg,
    #1a3270 0%,
    var(--tn-blue) 45%,
    var(--tn-blue2) 100%
  );
}

.tn-escala-dia--wine .tn-escala-dia-head {
  background: linear-gradient(
    135deg,
    #6b1f3d 0%,
    var(--tn-wine) 45%,
    #c04068 100%
  );
}

.tn-escala-dia--gold .tn-escala-dia-head {
  background: linear-gradient(
    135deg,
    #a87410 0%,
    var(--tn-gold) 45%,
    #ffd56a 100%
  );
  color: #3d2e08;
}

.tn-escala-dia--gold .tn-escala-dia-head .tn-pastoral-ico {
  fill: #3d2e08;
  background: rgba(61, 46, 8, 0.12);
}

.tn-escala-dia--green .tn-escala-dia-head {
  background: linear-gradient(
    135deg,
    #2a6b3f 0%,
    var(--tn-green) 45%,
    #5fbf7a 100%
  );
}

.tn-escala-dia--orange .tn-escala-dia-head {
  background: linear-gradient(
    135deg,
    #b85a0f 0%,
    var(--tn-orange) 45%,
    #f5a040 100%
  );
}

.tn-escala-dia-lista {
  margin: 0;
  padding: 12px;
  list-style: none;
  background: var(--tn-paper2);
}

.tn-escala-slot--row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.tn-escala-slot--row .tn-escala-slot-hora {
  margin-bottom: 0;
  align-self: flex-start;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(33, 59, 128, 0.08);
}

.tn-escala-slot--row .tn-escala-slot-body {
  align-items: stretch;
  text-align: left;
}

@media (max-width: 1100px) {
  .tn-escala-domingos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tn-escala-domingos .tn-escala-inst-tag {
    display: none;
  }

  .tn-escala-domingos .tn-escala-inst {
    padding: 3px;
    min-width: 24px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .tn-pastoral-hero {
    padding: 44px 5vw 38px;
  }
  .tn-pastoral-body {
    padding: 32px 5vw 64px;
  }
  .tn-pastoral-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .tn-pastoral-intro--lateral .tn-pastoral-coord {
    max-width: 220px;
    margin: 0 auto;
  }
  .tn-pastoral-foto-horizontal-cap {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px;
  }

  .tn-pastoral-card {
    padding: 22px 18px;
  }

  .tn-pastoral-card-bloco + .tn-pastoral-card-bloco {
    margin-top: 20px;
    padding-top: 20px;
  }
  .tn-galeria {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tn-escala-anim {
    padding: 20px 16px;
  }
  .tn-escala-domingos {
    grid-template-columns: 1fr 1fr;
  }

  .tn-escala-domingos .tn-escala-inst-tag {
    display: inline;
  }

  .tn-escala-domingos .tn-escala-inst {
    padding: 2px 7px 2px 4px;
    min-width: 0;
    justify-content: flex-start;
  }
  .tn-escala-semana {
    grid-template-columns: 1fr;
  }
  .tn-escala-tabs {
    flex-direction: column;
  }
  .tn-escala-tab {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .tn-galeria {
    grid-template-columns: 1fr 1fr;
  }
  .tn-escala-domingos {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   PRÓXIMOS EVENTOS (camada visual sobre galeria legada)
   ========================================================= */
.tn-eventos-page {
  background: var(--tn-paper);
}

.tn-eventos-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 7vw 44px;
  color: #fff;
}

.tn-eventos-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      145deg,
      rgba(33, 59, 128, 0.9) 0%,
      rgba(17, 24, 39, 0.85) 50%,
      rgba(141, 39, 76, 0.78) 100%
    ),
    url("../images/about-us/paroquia-Cristo-Ressuscitado-img-01.jpg")
      center/cover;
}

.tn-eventos-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.tn-eventos-hero .tn-kicker {
  color: var(--tn-gold);
}

.tn-eventos-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 5.8vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 10px 0 14px;
}

.tn-eventos-lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(15px, 2.1vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.tn-eventos-body {
  padding: 36px 7vw 80px;
}

.tn-eventos-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.tn-eventos-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.tn-eventos-toolbar-note {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--tn-muted);
}

.tn-eventos-search {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 280px);
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--tn-paper);
  border: 1px solid var(--tn-line);
}

.tn-eventos-search input {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--tn-ink);
  outline: none;
}

.tn-eventos-ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: var(--tn-wine);
}

.tn-eventos-empty {
  margin: 0 0 16px;
  padding: 18px;
  border-radius: 12px;
  text-align: center;
  background: #fff;
  border: 1px dashed rgba(17, 24, 39, 0.14);
  color: var(--tn-muted);
}

.tn-eventos-page #portfolio-section {
  padding: 0;
  margin: 0;
  background: transparent;
}

.tn-eventos-page #portfolio-section .container,
.tn-eventos-page #portfolio-section .row {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.tn-eventos-page #portfolio-section .title-wrap {
  display: none;
}

.tn-eventos-page #portfolio-section .owl-carousel {
  width: 100% !important;
}

.tn-eventos-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.tn-eventos-page .item {
  display: contents;
}

.tn-evento-cartaz {
  display: flex;
  flex-direction: column;
  margin: 0 !important;
  width: auto !important;
  border: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: 0 12px 32px rgba(17, 24, 39, 0.07);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.tn-evento-cartaz:hover,
.tn-evento-cartaz:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
  outline: none;
}

.tn-evento-cartaz--hidden {
  display: none !important;
}

.tn-evento-cartaz .portfolio-thumb {
  position: relative;
  border-radius: 0 !important;
  overflow: hidden;
  background: #f3f4f6;
}

.tn-evento-cartaz .portfolio-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.tn-evento-cartaz .portfolio-wrap,
.tn-evento-cartaz .portfolio-details-overlay,
.tn-evento-cartaz .portfolio-icons {
  display: none !important;
}

.tn-evento-cartaz-cap {
  margin: 0;
  padding: 14px 16px 16px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--tn-ink);
}

.tn-eventos-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.tn-eventos-reveal.tn-eventos-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .tn-eventos-hero {
    padding: 44px 5vw 40px;
  }
  .tn-eventos-body {
    padding: 28px 5vw 64px;
  }
  .tn-eventos-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  .tn-eventos-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .tn-eventos-search {
    min-width: 0;
    width: 100%;
  }

  .tn-eventos-search input {
    font-size: 16px;
  }

  .tn-eventos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .tn-evento-cartaz-cap {
    font-size: 12.5px;
    padding: 10px 12px 12px;
  }
}

@media (max-width: 420px) {
  .tn-eventos-grid {
    grid-template-columns: 1fr;
  }
}

.tn-evento-legado {
  margin-bottom: 32px;
  padding: 24px 26px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: 0 14px 40px rgba(17, 24, 39, 0.06);
}

.tn-evento-legado .title-section {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.25;
  color: var(--tn-ink);
  font-weight: 700;
}

.tn-evento-legado h3.title-section {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--tn-wine);
}

.tn-evento-legado .text-section {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--tn-muted);
}

.tn-evento-legado .text-section:last-child {
  margin-bottom: 0;
}

.tn-evento-legado br {
  display: none;
}

.tn-eventos-filtros-wrap {
  margin-bottom: 22px;
}

.tn-eventos-filtros-label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tn-muted);
}

.tn-eventos-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tn-eventos-filtro-tab {
  appearance: none;
  border: 1px solid rgba(141, 39, 76, 0.16);
  background: #fff;
  color: var(--tn-ink);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.tn-eventos-filtro-tab:hover,
.tn-eventos-filtro-tab:focus-visible {
  border-color: rgba(141, 39, 76, 0.34);
  box-shadow: 0 6px 16px rgba(141, 39, 76, 0.08);
  outline: none;
}

.tn-eventos-filtro-tab.is-active,
.tn-eventos-filtro-tab[aria-selected="true"] {
  background: var(--tn-wine);
  border-color: var(--tn-wine);
  color: #fff;
}

@media (max-width: 640px) {
  .tn-eventos-filtros-label {
    font-size: 12px;
  }
  .tn-eventos-filtro-tab {
    font-size: 12px;
    padding: 8px 13px;
  }
}

/* =========================================================
   CALENDÁRIO PAROQUIAL
   ========================================================= */
.tn-cal-page {
  background: var(--tn-paper);
}

.tn-cal-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 7vw 48px;
  color: #fff;
}

.tn-cal-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      145deg,
      rgba(33, 59, 128, 0.92) 0%,
      rgba(141, 39, 76, 0.88) 50%,
      rgba(17, 24, 39, 0.86) 100%
    ),
    url("../images/about-us/paroquia-Cristo-Ressuscitado-img-01.jpg")
      center/cover;
}

.tn-cal-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.tn-cal-hero .tn-kicker {
  color: var(--tn-gold);
}

.tn-cal-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 5.8vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 10px 0 14px;
}

.tn-cal-lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(15px, 2.1vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.tn-cal-body {
  padding: 36px 7vw 80px;
}

.tn-cal-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.tn-cal-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.tn-cal-mes-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--tn-ink);
}

.tn-cal-mes-badge strong {
  color: var(--tn-blue);
}

.tn-cal-toolbar-note {
  margin: 0;
  max-width: 560px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--tn-muted);
}

.tn-cal-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(100%, 320px);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.1);
  background: var(--tn-paper2);
}

.tn-cal-search input {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--tn-ink);
  outline: none;
}

.tn-cal-search input::placeholder {
  color: var(--tn-muted);
}

.tn-cal-ico {
  width: 18px;
  height: 18px;
  flex: none;
  fill: currentColor;
  color: var(--tn-blue);
}

.tn-cal-search .tn-cal-ico {
  color: var(--tn-wine);
}

.tn-cal-meses-wrap {
  margin-bottom: 18px;
}

.tn-cal-meses {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(17, 24, 39, 0.22) transparent;
  -webkit-overflow-scrolling: touch;
}

.tn-cal-meses::-webkit-scrollbar {
  height: 6px;
}
.tn-cal-meses::-webkit-scrollbar-thumb {
  background: rgba(17, 24, 39, 0.18);
  border-radius: 999px;
}

.tn-cal-mes-tab {
  appearance: none;
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: 1.5px solid var(--tn-line);
  background: #f4f5f7;
  color: var(--tn-muted);
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

/* Tom único: sem faixa colorida / sem multicor por mês */
.tn-cal-mes-tab--lit {
  position: relative;
}
.tn-cal-mes-tab--lit::after {
  display: none;
}

.tn-cal-mes-tab:hover,
.tn-cal-mes-tab:focus-visible {
  outline: none;
  color: var(--tn-ink);
  border-color: color-mix(in srgb, var(--tn-blue) 40%, #fff);
  background: #eef1f6;
  transform: translateY(-1px);
}

/* Mês sendo visualizado (selecionado) */
.tn-cal-mes-tab.is-active,
.tn-cal-mes-tab[aria-selected="true"] {
  background: var(--tn-blue);
  border-color: var(--tn-blue);
  color: #fff;
}

/* Mês atual (hoje): preenchimento de destaque, tem prioridade */
.tn-cal-mes-tab.is-mes-atual,
.tn-cal-mes-tab.is-mes-atual.is-active {
  background: var(--tn-green);
  border-color: var(--tn-green);
  color: #fff;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--tn-green) 30%, transparent);
}

.tn-cal-mes-tab.is-mes-atual:hover,
.tn-cal-mes-tab.is-mes-atual:focus-visible {
  background: color-mix(in srgb, var(--tn-green) 88%, #000);
  border-color: var(--tn-green);
  color: #fff;
}

.tn-cal-mes-select-wrap {
  display: none;
}

.tn-cal-mes-select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--tn-line);
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  color: var(--tn-ink);
}

.tn-cal-legenda {
  margin-bottom: 22px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--tn-line);
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.tn-cal-legenda:hover {
  border-color: color-mix(in srgb, var(--tn-blue) 40%, #fff);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.tn-cal-legenda[open] {
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.07);
}

.tn-cal-legenda summary,
.tn-cal-legenda-summary {
  cursor: pointer;
  list-style: none;
}

.tn-cal-legenda summary::-webkit-details-marker,
.tn-cal-legenda-summary::-webkit-details-marker {
  display: none;
}

.tn-cal-legenda-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
}

.tn-cal-legenda-summary-ico {
  width: 40px;
  height: 40px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--tn-blue), #5f77d4);
  color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--tn-blue) 26%, transparent);
}

.tn-cal-legenda-summary-ico svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.tn-cal-legenda-summary-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-right: auto;
  min-width: 0;
}

.tn-cal-legenda-summary-main strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--tn-ink);
}

.tn-cal-legenda-summary-main small {
  font-size: 12.5px;
  color: var(--tn-muted);
}

.tn-cal-legenda-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
}

.tn-cal-legenda-dots .tn-cal-legenda-swatch {
  width: 14px;
  height: 14px;
  margin: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.tn-cal-legenda-chevron {
  width: 30px;
  height: 30px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef1f8;
  color: var(--tn-blue);
  transition:
    transform 0.24s ease,
    background 0.18s ease;
}

.tn-cal-legenda-chevron svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.tn-cal-legenda[open] .tn-cal-legenda-chevron {
  transform: rotate(180deg);
}

.tn-cal-legenda-summary:hover .tn-cal-legenda-chevron,
.tn-cal-legenda-summary:focus-visible .tn-cal-legenda-chevron {
  background: color-mix(in srgb, var(--tn-blue) 18%, #fff);
}

.tn-cal-legenda-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 4px 18px 18px;
  list-style: none;
  font-size: 13px;
  color: var(--tn-muted);
}

@media (max-width: 560px) {
  .tn-cal-legenda-dots {
    display: none;
  }
}

.tn-cal-legenda-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tn-cal-legenda-texto {
  line-height: 1.5;
}

.tn-cal-legenda-texto strong {
  display: block;
  margin-bottom: 2px;
  color: var(--tn-ink);
  font-size: 14px;
}

.tn-cal-legenda-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
  border-radius: 4px;
  vertical-align: top;
}

.tn-cal-mes-panel[hidden] {
  display: none !important;
}

.tn-cal-faixa-wrap {
  grid-column: 1 / -1;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--tn-line);
}

.tn-cal-faixa-titulo {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--tn-ink);
}

.tn-cal-faixa-sub {
  font-weight: 500;
  color: var(--tn-muted);
}

.tn-cal-faixa {
  display: flex;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.tn-cal-faixa-seg {
  min-width: 3px;
}

.tn-cal-faixa-seg.cor-1 {
  background: #ececec;
}
.tn-cal-faixa-seg.cor-2 {
  background: #dc2626;
}
.tn-cal-faixa-seg.cor-3 {
  background: #15803d;
}
.tn-cal-faixa-seg.cor-4 {
  background: #7e22ce;
}
.tn-cal-faixa-seg.cor-5 {
  background: #ec4899;
}
.tn-cal-faixa-seg.cor-6 {
  background: #1e293b;
}
.tn-cal-faixa-seg.cor-7 {
  background: #ca8a04;
}

.tn-cal-faixa-nota {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--tn-muted);
}

.tn-cal-panels--busca .tn-cal-mes-panel--busca,
.tn-cal-panels--busca .tn-cal-extra.tn-cal-mes-panel--busca {
  margin-bottom: 28px;
}

.tn-cal-mes-panel-titulo {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--tn-blue);
  border-bottom: 1px solid rgba(33, 59, 128, 0.12);
}

.tn-cal-meses--busca {
  opacity: 0.75;
}

.tn-cal-grid.event-cards-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.tn-cal-page .event.event-card.tn-cal-card {
  display: flex;
  align-items: stretch;
  width: auto;
  float: none;
  margin: 0;
  padding: 0;
  color: var(--tn-ink);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-left-width: 5px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(17, 24, 39, 0.05);
  overflow: hidden;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.tn-cal-page .tn-cal-card.cor-1 {
  border-left-color: #d4d4d4;
}

.tn-cal-legenda-swatch.cor-1 {
  background: #fff;
  box-shadow: inset 0 0 0 1px #c4c4c4;
}
.tn-cal-page .tn-cal-card.cor-2 {
  border-left-color: #dc2626;
}
.tn-cal-page .tn-cal-card.cor-3 {
  border-left-color: #15803d;
}
.tn-cal-page .tn-cal-card.cor-4 {
  border-left-color: #7e22ce;
}
.tn-cal-page .tn-cal-card.cor-5 {
  border-left-color: #ec4899;
}
.tn-cal-page .tn-cal-card.cor-6 {
  border-left-color: #1e293b;
}
.tn-cal-page .tn-cal-card.cor-7 {
  border-left-color: #ca8a04;
}

.tn-cal-legenda-swatch.cor-2 {
  background: #dc2626;
}
.tn-cal-legenda-swatch.cor-3 {
  background: #15803d;
}
.tn-cal-legenda-swatch.cor-4 {
  background: #7e22ce;
}
.tn-cal-legenda-swatch.cor-5 {
  background: #ec4899;
}
.tn-cal-legenda-swatch.cor-6 {
  background: #1e293b;
}
.tn-cal-legenda-swatch.cor-7 {
  background: #ca8a04;
}

.tn-cal-page .tn-cal-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1);
}

.tn-cal-page .tn-cal-card--hoje {
  box-shadow:
    0 0 0 2px rgba(246, 183, 60, 0.35),
    0 12px 30px rgba(33, 59, 128, 0.12);
}

.tn-cal-page .tn-cal-card--hidden {
  display: none !important;
}

.tn-cal-page .event-card-date {
  flex: none;
  width: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
}

.tn-cal-page .tn-cal-date-lit.cor-1 {
  background: linear-gradient(160deg, #f7f7f7 0%, #e8e8e8 100%);
}

.tn-cal-page .tn-cal-date-lit.cor-1 .event-start-date,
.tn-cal-page .tn-cal-date-lit.cor-1 .event-start-month small,
.tn-cal-page .tn-cal-date-lit.cor-1 .event-start-day small {
  color: #374151;
}

.tn-cal-page .tn-cal-date-lit.cor-2 {
  background: linear-gradient(160deg, #dc2626 0%, #991b1b 100%);
}

.tn-cal-page .tn-cal-date-lit.cor-3 {
  background: linear-gradient(160deg, #15803d 0%, #166534 100%);
}

.tn-cal-page .tn-cal-date-lit.cor-4 {
  background: linear-gradient(160deg, #7e22ce 0%, #6b21a8 100%);
}

.tn-cal-page .tn-cal-date-lit.cor-5 {
  background: linear-gradient(160deg, #ec4899 0%, #db2777 100%);
}

.tn-cal-page .tn-cal-date-lit.cor-6 {
  background: linear-gradient(160deg, #334155 0%, #1e293b 100%);
}

.tn-cal-page .tn-cal-date-lit.cor-7 {
  background: linear-gradient(160deg, #ca8a04 0%, #a16207 100%);
}

.tn-cal-page .tn-cal-date-lit:not(.cor-1) .event-start-date,
.tn-cal-page .tn-cal-date-lit:not(.cor-1) .event-start-month small,
.tn-cal-page .tn-cal-date-lit:not(.cor-1) .event-start-day small {
  color: #fff;
}

.tn-cal-page .tn-cal-date-lit.cor-7 .event-start-date,
.tn-cal-page .tn-cal-date-lit.cor-7 .event-start-month small,
.tn-cal-page .tn-cal-date-lit.cor-7 .event-start-day small {
  color: #fefce8;
}

.tn-cal-page .tn-cal-card--hoje .event-card-date {
  box-shadow: inset 0 0 0 2px rgba(246, 183, 60, 0.75);
}

.tn-cal-page .event-start {
  float: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #fff;
  text-transform: none;
}

.tn-cal-page .event-start-date {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.tn-cal-page .event-start-month,
.tn-cal-page .event-start-day {
  float: none;
  text-align: center;
}

.tn-cal-page .event-start-month small,
.tn-cal-page .event-start-day small {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
}

.tn-cal-page .event-card-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
}

.tn-cal-page .event-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--tn-ink);
}

.tn-cal-page .event-time {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--tn-muted);
}

.tn-cal-horario {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 4px;
}

.tn-cal-horario:last-child {
  margin-bottom: 0;
}

.tn-cal-local,
.tn-cal-hora {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tn-cal-local .tn-cal-ico {
  color: var(--tn-wine);
}
.tn-cal-hora .tn-cal-ico {
  color: var(--tn-blue);
}

.tn-cal-ico--relogio {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tn-cal-mes-vazio {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 20px;
  text-align: center;
  font-size: 15px;
  color: var(--tn-muted);
  background: #fff;
  border: 1px dashed rgba(17, 24, 39, 0.12);
  border-radius: 12px;
}

.tn-cal-mes-vazio--hidden {
  display: none !important;
}

.tn-cal-empty {
  margin-bottom: 20px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(141, 39, 76, 0.06);
  border: 1px solid rgba(141, 39, 76, 0.12);
  text-align: center;
  color: var(--tn-ink);
}

.tn-cal-extra {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid rgba(33, 59, 128, 0.1);
}

.tn-cal-extra-titulo {
  margin: 0 0 16px;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--tn-blue);
}

.tn-cal-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.tn-cal-reveal.tn-cal-visible {
  opacity: 1;
  transform: none;
}

.tn-cal-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .tn-cal-grid.event-cards-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .tn-cal-hero {
    padding: 44px 5vw 36px;
  }
  .tn-cal-body {
    padding: 28px 5vw 64px;
  }
  .tn-cal-meses {
    display: none;
  }
  .tn-cal-mes-select-wrap {
    display: block;
    margin-bottom: 8px;
  }
  .tn-cal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .tn-cal-search {
    min-width: 100%;
  }
  .tn-cal-search input {
    font-size: 16px;
  }
}

/* ============================================================
   Liturgia Diária (iframe CNBB)
   ============================================================ */

.tn-lit-page {
  background: var(--tn-paper);
}

.tn-lit-hero {
  position: relative;
  overflow: hidden;
  padding: 56px 7vw 48px;
  color: #fff;
}

.tn-lit-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      145deg,
      rgba(33, 59, 128, 0.93) 0%,
      rgba(141, 39, 76, 0.88) 48%,
      rgba(17, 24, 39, 0.88) 100%
    ),
    url("../images/about-us/paroquia-Cristo-Ressuscitado-img-01.jpg")
      center/cover;
}

.tn-lit-hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.tn-lit-hero .tn-kicker {
  color: var(--tn-gold);
}

.tn-lit-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 5.8vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 10px 0 14px;
}

.tn-lit-lead {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(15px, 2.1vw, 17px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.tn-lit-body {
  padding: 36px 7vw 72px;
}

.tn-lit-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.tn-lit-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--tn-line);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.05);
}

.tn-lit-data-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--tn-ink);
}

.tn-lit-data-badge strong {
  color: var(--tn-blue);
}

.tn-lit-toolbar-note {
  margin: 0;
  max-width: 560px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--tn-muted);
}

.tn-lit-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tn-lit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.tn-lit-btn:focus-visible {
  outline: 2px solid var(--tn-blue);
  outline-offset: 2px;
}

.tn-lit-btn--ghost {
  color: var(--tn-ink);
  background: #fff;
  border-color: rgba(17, 24, 39, 0.12);
}

.tn-lit-btn--ghost:hover {
  border-color: rgba(33, 59, 128, 0.28);
  box-shadow: 0 8px 20px rgba(33, 59, 128, 0.08);
}

.tn-lit-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--tn-wine) 0%, #a63358 100%);
  box-shadow: 0 8px 22px rgba(141, 39, 76, 0.22);
}

.tn-lit-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(141, 39, 76, 0.28);
}

.tn-lit-ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
}

.tn-lit-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.1);
  box-shadow:
    0 18px 48px rgba(17, 24, 39, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.tn-lit-frame.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  border-radius: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.tn-lit-frame.is-fullscreen .tn-lit-frame-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.tn-lit-frame.is-fullscreen .tn-lit-iframe {
  height: calc(100% + var(--tn-lit-crop-active, var(--tn-lit-crop, 0px)));
  min-height: 0;
  margin-top: calc(-1 * var(--tn-lit-crop-active, var(--tn-lit-crop, 0px)));
}

.tn-lit-frame-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--tn-blue) 0%, var(--tn-wine) 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.tn-lit-frame-dots {
  display: inline-flex;
  gap: 5px;
  flex: none;
}

.tn-lit-frame-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  font-style: normal;
}

.tn-lit-frame-dots i:first-child {
  background: rgba(255, 255, 255, 0.85);
}

.tn-lit-frame-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tn-lit-frame-brand {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tn-lit-frame-body {
  position: relative;
  min-height: var(--tn-lit-h, min(200vh, 2800px));
  overflow: hidden;
  background: #fff;
  --tn-lit-crop-active: var(--tn-lit-crop, 0px);
}

/* Máscara extra: cobre qualquer resíduo do banner azul da CNBB */
.tn-lit-frame-body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--tn-lit-mask, 24px);
  background: #fff;
  z-index: 1;
  pointer-events: none;
}

.tn-lit-iframe {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: calc(
    var(--tn-lit-h, min(200vh, 2800px)) + var(--tn-lit-crop-active, 0px)
  );
  min-height: calc(
    var(--tn-lit-h-min, 1400px) + var(--tn-lit-crop-active, 0px)
  );
  margin-top: calc(-1 * var(--tn-lit-crop-active, 0px));
  border: 0;
  background: #fff;
}

.tn-lit-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(180deg, #fff 0%, #f3f5fa 100%);
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

/* Mantém o spinner na área visível (o quadro do iframe é muito alto) */
.tn-lit-loader .tn-loader {
  position: sticky;
  top: clamp(24px, 8vh, 90px);
  margin-top: clamp(48px, 16vh, 180px);
}

.tn-lit-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.tn-lit-fonte {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--tn-muted);
}

.tn-lit-fonte a {
  color: var(--tn-blue);
  font-weight: 600;
  text-decoration: none;
}

.tn-lit-fonte a:hover {
  text-decoration: underline;
}

.tn-lit-reveal {
  animation: tn-lit-fade-up 0.55s ease both;
}

@keyframes tn-lit-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .tn-lit-frame-body {
    --tn-lit-crop-active: var(--tn-lit-crop-tablet, var(--tn-lit-crop, 0px));
    --tn-lit-mask: 22px;
  }
}

@media (max-width: 720px) {
  .tn-lit-hero {
    padding: 44px 5vw 36px;
  }
  .tn-lit-body {
    padding: 28px 5vw 56px;
  }
  .tn-lit-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .tn-lit-toolbar-actions {
    width: 100%;
  }
  .tn-lit-btn {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
  }
  .tn-lit-frame-body {
    min-height: var(--tn-lit-h-mobile, 175vh);
    --tn-lit-crop-active: var(
      --tn-lit-crop-mobile,
      var(--tn-lit-crop-tablet, var(--tn-lit-crop, 0px))
    );
    --tn-lit-mask: 20px;
  }
  .tn-lit-iframe {
    height: calc(
      var(--tn-lit-h-mobile, 175vh) + var(--tn-lit-crop-active, 0px)
    );
    min-height: calc(
      var(--tn-lit-h-min-mobile, 1000px) + var(--tn-lit-crop-active, 0px)
    );
  }
  .tn-lit-frame-brand {
    display: none;
  }
}
