/* Hora da Missa · nova home (/home). Folha própria: não depende de styles.css nem de brand.css. */
:root {
  --ink: var(--hdm-marinho);
  --line: #E3DED3;
  --shadow: 0 1px 2px rgba(0, 28, 67, .06), 0 8px 24px rgba(0, 28, 67, .07);
  --hm-navy-2: #0A2A5C;
  --hm-gold-dark: #9A6E00; /* texto dourado sobre claro com contraste AA */
  --hm-wrap: 1200px;
  --hm-header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hm-header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body.hm { margin: 0; font-family: var(--hdm-font-ui); color: var(--hdm-texto); background: var(--hdm-creme); line-height: 1.55; font-size: 16px; overflow-x: hidden; }
.hm h1, .hm h2, .hm h3 { font-family: var(--hdm-font-display); color: var(--hdm-marinho); line-height: 1.15; margin: 0; font-weight: 600; }
.hm img { max-width: 100%; display: block; }
.hm a { color: inherit; }
.hm button, .hm input, .hm select { font: inherit; }
.hm :focus-visible { outline: 3px solid var(--hdm-focus); outline-offset: 2px; border-radius: 4px; }
.hm-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.hm-ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hm-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--hdm-marinho); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.hm-skip:focus { top: 12px; }
.hm-wrap { width: 100%; max-width: var(--hm-wrap); margin: 0 auto; padding: 0 20px; }

/* Botões */
.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--hdm-touch-target); padding: 10px 20px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.hm-btn:disabled { opacity: .6; cursor: progress; }
.hm-btn-sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.hm-btn-block { width: 100%; }
.hm-btn-gold { background: var(--hdm-ouro); color: var(--hdm-marinho); }
.hm-btn-gold:hover { background: var(--hdm-ouro-suave); }
.hm-btn-navy { background: var(--hdm-marinho); color: #fff; }
.hm-btn-navy:hover { background: var(--hm-navy-2); }
.hm-btn-outline { background: #fff; color: var(--hdm-marinho); border-color: #C9CFD9; }
.hm-btn-outline:hover { border-color: var(--hdm-marinho); }
.hm-btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); }
.hm-btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.hm-link, .hm-link-light { background: none; border: 0; padding: 6px 2px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; min-height: var(--hdm-touch-target); }
.hm-link { color: var(--hdm-marinho); }
.hm-link-light { color: #fff; }

/* Cabeçalho */
.hm-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.hm-header-bar { display: flex; align-items: center; gap: 12px; min-height: var(--hm-header-h); }
.hm-brand img { width: 112px; height: auto; }
.hm-header-tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.hm-loc-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 46vw; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid #D5D9E0; background: #fff; color: var(--hdm-marinho); font-weight: 700; font-size: 13px; cursor: pointer; }
.hm-loc-chip .hm-ico { color: var(--hdm-ouro); }
.hm-loc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-menu-toggle { display: inline-grid; place-items: center; width: var(--hdm-touch-target); height: var(--hdm-touch-target); border: 0; background: none; color: var(--hdm-marinho); border-radius: 10px; cursor: pointer; }
.hm-menu-toggle .hm-ico { width: 26px; height: 26px; }
.hm-nav { position: fixed; inset: var(--hm-header-h) 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0, 28, 67, .12); display: none; }
.hm-nav.is-open { display: block; }
.hm-nav ul { list-style: none; margin: 0; padding: 8px 20px 16px; }
.hm-nav a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-weight: 700; color: var(--hdm-marinho); border-bottom: 1px solid #F0EDE6; }
.hm-nav .hm-nav-apoie { color: var(--hm-gold-dark); }

/* Hero */
.hm-hero { position: relative; isolation: isolate; color: #fff; background: var(--hdm-marinho); overflow: hidden; }
.hm-hero-media { position: absolute; inset: 0; margin: 0; z-index: -1; }
.hm-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; color: transparent; }
.hm-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 28, 67, .78) 0%, rgba(0, 28, 67, .86) 55%, rgba(0, 28, 67, .95) 100%); }
.hm-hero-media figcaption { position: absolute; right: 12px; bottom: 8px; z-index: 1; font-size: 11px; color: rgba(255, 255, 255, .75); max-width: 90%; text-align: right; }
.hm-hero-media figcaption a { color: inherit; }
.hm-hero-inner { padding-top: 40px; padding-bottom: 48px; }
.hm-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hdm-ouro-suave); }
.hm-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--hdm-ouro); }
.hm-hero h1 { color: #fff; font-size: clamp(34px, 8vw, 62px); max-width: 18ch; letter-spacing: -.01em; }
.hm-hero h1 em { font-style: italic; color: var(--hdm-ouro-suave); }
.hm-hero-lead { font-size: clamp(17px, 2.4vw, 20px); max-width: 52ch; margin: 16px 0 28px; color: rgba(255, 255, 255, .9); }

.hm-search { background: #fff; color: var(--hdm-texto); border-radius: var(--hdm-radius-lg); padding: 18px; box-shadow: 0 24px 50px rgba(0, 10, 30, .3); }
.hm-search-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hm-field > span:first-child { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--hdm-cinza); }
.hm-field input, .hm-field select { width: 100%; min-height: 48px; border: 1px solid #CDD3DC; border-radius: 10px; padding: 10px 12px; background: #fff; color: var(--hdm-texto); font-size: 16px; }
.hm-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--hdm-marinho) 50%), linear-gradient(135deg, var(--hdm-marinho) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
.hm-field input:focus, .hm-field select:focus { border-color: var(--hdm-marinho); outline: 2px solid rgba(32, 92, 198, .35); outline-offset: 0; }
.hm-field-q, .hm-search-submit { grid-column: 1 / -1; }
.hm-input-ico { position: relative; display: block; }
.hm-input-ico .hm-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--hdm-cinza); pointer-events: none; }
.hm-input-ico input { padding-left: 38px; }
.hm-search-submit { min-height: 52px; font-size: 16px; border-radius: 12px; }
.hm-hero-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 18px; }

/* Atalhos */
.hm-atalhos { margin-top: 28px; }
.hm-atalhos ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hm-atalhos a, .hm-atalhos button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--hdm-radius-md); text-decoration: none; color: var(--hdm-marinho); font-weight: 700; font-size: 14px; line-height: 1.25; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.hm-atalhos a:hover, .hm-atalhos button:hover { border-color: var(--hdm-ouro); box-shadow: var(--shadow); transform: translateY(-1px); }
.hm-atalho-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #FBF3DE; color: var(--hm-gold-dark); flex: none; }
.hm-atalho-ico .hm-ico { width: 20px; height: 20px; }

/* Seções */
.hm-section { padding: 48px 0; }
.hm-section-sand { background: var(--hdm-areia); }
.hm-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 14px; }
.hm-section-head h2 { font-size: clamp(28px, 5vw, 40px); }
.hm-section-head h2:focus { outline: none; }
.hm-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hm-overline { margin: 0 0 6px; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--hm-gold-dark); }
.hm-overline-light { color: var(--hdm-ouro-suave); }
.hm-meta, .hm-status { margin: 0 0 20px; color: var(--hdm-cinza); font-size: 15px; max-width: 70ch; }
.hm-status { color: var(--hdm-texto); }
.hm-footnote { font-size: 13px; color: var(--hdm-cinza); margin: 18px 0 0; }
.hm-more { display: flex; justify-content: center; margin-top: 22px; }
.hm-more:has(> [hidden]:only-child) { display: none; }
.hm-empty { text-align: center; padding: 32px 16px; background: #fff; border: 1px dashed #CFC7B6; border-radius: var(--hdm-radius-md); }
.hm-empty h3 { font-size: 24px; margin-bottom: 6px; }
.hm-empty p { margin: 0; color: var(--hdm-cinza); }
.hm-resultados { background: #fff; border-bottom: 1px solid var(--line); }

/* Cards */
.hm-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.hm-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--hdm-radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.hm-card-media { position: relative; margin: 0; aspect-ratio: 16 / 10; background: var(--hm-navy-2); overflow: hidden; }
.hm-card-media img { width: 100%; height: 100%; object-fit: cover; color: transparent; }
.hm-card-media figcaption, .hm-media-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 6px; font-size: 11px; color: rgba(255, 255, 255, .88); background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.hm-card-media figcaption a { color: inherit; }
.hm-media-note { background: none; text-align: center; color: rgba(255, 255, 255, .7); }
.hm-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.hm-card-type { margin: 0; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--hm-gold-dark); }
.hm-card h3 { font-size: 23px; }
.hm-card-place, .hm-card-dist { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 14px; color: var(--hdm-cinza); }
.hm-card-place .hm-ico { margin-top: 2px; color: var(--hdm-marinho); }
.hm-card-dist { color: var(--hdm-marinho); font-weight: 700; }
.hm-card-dist .hm-ico { margin-top: 2px; color: var(--hdm-ouro); }
.hm-card-next { margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: var(--hdm-creme); border-left: 3px solid var(--hdm-ouro); }
.hm-card-next span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--hdm-cinza); }
.hm-card-next strong { display: block; font-size: 17px; color: var(--hdm-marinho); }
.hm-card-next em, .hm-tag { display: inline-block; margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: #7A4B00; background: #FFF1CC; padding: 2px 8px; border-radius: 999px; }
.hm-card-exceptions { margin-top: 4px; padding: 12px 14px; background: #FFF9E8; border: 1px solid #E8D7A8; border-radius: 12px; overflow-wrap: anywhere; }
.hm-card-exceptions strong { display: block; color: var(--hdm-marinho); font-size: 13px; margin-bottom: 6px; }
.hm-card-exceptions p { margin: 0 0 6px; color: var(--hdm-texto); font-size: 14px; line-height: 1.5; }
.hm-card-exceptions small { color: var(--hdm-cinza); font-size: 12px; }
.hm-card-next.is-missing { border-left-color: #C9CFD9; }
.hm-card-next.is-missing strong { font-size: 15px; color: var(--hdm-cinza); }
.hm-card-next.is-missing em { background: none; padding: 0; color: var(--hdm-cinza); font-weight: 400; }
.hm-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.hm-card-actions .hm-btn { flex: 1 1 auto; }
.hm-skeleton .hm-card-media, .hm-skeleton span { background: linear-gradient(90deg, #ECE8DF 0%, #F6F3EC 50%, #ECE8DF 100%); background-size: 200% 100%; animation: hm-shimmer 1.2s linear infinite; }
.hm-skeleton span { display: block; height: 14px; border-radius: 6px; }
.hm-skeleton span:nth-child(2) { width: 70%; height: 22px; }
.hm-skeleton span:nth-child(3) { width: 45%; }
@keyframes hm-shimmer { to { background-position: -200% 0; } }

/* Missas próximas de começar */
.hm-breve { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hm-breve-item { display: grid; grid-template-columns: 88px 1fr; gap: 6px 14px; align-items: center; background: #fff; border-radius: var(--hdm-radius-md); padding: 14px; border: 1px solid var(--line); }
.hm-breve-hora { text-align: center; border-right: 1px solid var(--line); padding-right: 10px; }
.hm-breve-hora strong { display: block; font-family: var(--hdm-font-display); font-size: 26px; color: var(--hdm-marinho); line-height: 1.1; }
.hm-breve-hora span { white-space: nowrap; font-size: 12px; font-weight: 700; color: var(--hm-gold-dark); }
.hm-breve-info h3 { font-size: 19px; }
.hm-breve-info p { margin: 2px 0 0; font-size: 14px; color: var(--hdm-cinza); }
.hm-breve-item .hm-btn { grid-column: 1 / -1; }
.hm-breve-vazio { background: #fff; border-radius: var(--hdm-radius-md); padding: 18px; color: var(--hdm-cinza); border: 1px dashed #CFC7B6; }

/* Liturgia (reaproveita assets/liturgia.css) */
.hm .liturgia-section { padding-top: 56px; padding-bottom: 40px; scroll-margin-top: calc(var(--hm-header-h) + 12px); }

/* Dioceses */
.hm-dioceses { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.hm-dioceses button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 64px; padding: 14px 16px; border-radius: var(--hdm-radius-md); border: 1px solid var(--line); background: #fff; color: var(--hdm-marinho); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.hm-dioceses button:hover { border-color: var(--hdm-ouro); box-shadow: var(--shadow); }
.hm-dioceses strong { font-family: var(--hdm-font-display); font-size: 19px; font-weight: 600; }
.hm-dioceses span { font-size: 13px; color: var(--hdm-cinza); }

/* Missão */
.hm-missao { background: var(--hdm-marinho); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.hm-missao::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 2px solid rgba(207, 147, 1, .25); pointer-events: none; }
.hm-missao-grid { display: grid; gap: 32px; position: relative; z-index: 1; }
.hm-missao h2 { color: #fff; font-size: clamp(30px, 5vw, 44px); margin-bottom: 14px; }
.hm-missao p { margin: 0 0 12px; color: rgba(255, 255, 255, .88); max-width: 60ch; font-size: 17px; }
.hm-missao .hm-missao-nota { font-size: 14px; color: rgba(255, 255, 255, .7); }
.hm-indicadores { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-self: center; }
.hm-indicadores div { border-top: 2px solid var(--hdm-ouro); padding-top: 12px; }
.hm-indicadores dd { margin: 0; font-family: var(--hdm-font-display); font-size: clamp(30px, 7vw, 48px); font-weight: 600; color: #fff; line-height: 1; order: -1; }
.hm-indicadores dt { font-size: 13px; color: rgba(255, 255, 255, .78); margin-top: 6px; }
.hm-indicadores div { display: flex; flex-direction: column; }

/* Apoie */
.hm-apoie { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding: 28px; border-radius: var(--hdm-radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); background-image: radial-gradient(circle at 100% 0, #FBF3DE 0, transparent 45%); }
.hm-apoie h2 { font-size: clamp(26px, 4.5vw, 36px); margin-bottom: 8px; }
.hm-apoie p { margin: 0; max-width: 60ch; color: var(--hdm-texto); }

/* Publicidade (reservado; desativado nesta etapa) */
/* /home: somente reservas visuais dos 3 formatos; nenhum script de anúncios ativo. */
.hm-ad-placement { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; width: 100%; max-width: var(--hm-wrap); margin: 28px auto; padding: 0 12px; text-align: center; }
.hm-ad-inline { margin-block: 20px 42px; }
.hm-ad-caption { display: block; font: 700 10px/1.4 var(--hdm-font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--hdm-cinza); }
.hm-ad-placeholder { display: grid; place-items: center; width: min(100%, 320px); min-width: 0; border: 1px dashed #B9C4D4; border-radius: 8px; background: #F4F6F9; color: #5E6876; font: 700 12px/1.4 var(--hdm-font-ui); letter-spacing: .02em; }
.hm-ad-placeholder-leaderboard { height: 50px; }
.hm-ad-placeholder-inline { width: min(100%, 300px); height: 250px; }
.hm-ad-desktop-label { display: none; }
.hm-ad-sticky[hidden] { display: none !important; }
.hm-ad-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 4px 0 calc(8px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #E1E5EB; box-shadow: 0 -4px 18px rgba(0, 28, 67, .12); }
.hm-ad-sticky .hm-ad-caption { display: flex; align-items: center; min-height: 44px; }
.hm-ad-placeholder-sticky { width: min(320px, 100%); height: 50px; }
.hm-ad-sticky-close { position: absolute; top: 4px; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #C9CFD9; border-radius: 50%; background: #fff; color: var(--hdm-marinho); font: 28px/1 Arial, sans-serif; cursor: pointer; }
.hm-ad-sticky-close:focus-visible { outline: 3px solid var(--hdm-focus); outline-offset: 1px; }
body.hm-has-sticky-preview { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 360px) { .hm-ad-placement { padding-inline: 0; } }
@media (min-width: 768px) {
  .hm-ad-placeholder-leaderboard { width: min(100%, 728px); height: 90px; }
  .hm-ad-desktop-label { display: inline; }
  .hm-ad-mobile-label { display: none; }
  .hm-ad-sticky { display: none !important; }
  body.hm-has-sticky-preview { padding-bottom: 0; }
}


/* Rodapé */
.hm-footer { background: #00142F; color: rgba(255, 255, 255, .82); padding: 48px 0 24px; font-size: 15px; }
.hm-footer-grid { display: grid; gap: 28px; }
.hm-footer-brand img { width: 150px; height: auto; margin-bottom: 12px; }
.hm-footer-brand p { margin: 0; max-width: 34ch; }
.hm-footer h2 { font-family: var(--hdm-font-ui); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; color: var(--hdm-ouro-suave); margin-bottom: 10px; }
.hm-footer ul { list-style: none; margin: 0; padding: 0; }
.hm-footer li a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.hm-footer li a:hover { color: #fff; text-decoration: underline; }
.hm-footer-bottom { margin-top: 28px; font-size: 13px; color: rgba(255, 255, 255, .6); }
.hm-footer-bottom p { margin: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* Diálogos */
.hm-dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: var(--hdm-radius-lg); padding: 22px; box-shadow: 0 30px 80px rgba(0, 10, 30, .35); color: var(--hdm-texto); }
.hm-dialog::backdrop { background: rgba(0, 20, 47, .55); }
.hm-dialog-wide { width: min(640px, calc(100vw - 24px)); padding: 0 0 22px; }
.hm-dialog-wide .hm-dialog-head { padding: 16px 22px 0; position: sticky; top: 0; background: #fff; z-index: 2; }
.hm-dialog-wide #igrejaCorpo { padding: 0 22px; }
.hm-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.hm-dialog-head h2 { font-size: 26px; }
.hm-icon-btn { display: grid; place-items: center; width: var(--hdm-touch-target); height: var(--hdm-touch-target); border: 0; background: var(--hdm-creme); border-radius: 50%; cursor: pointer; color: var(--hdm-marinho); flex: none; }
.hm-divider { display: flex; align-items: center; gap: 10px; color: var(--hdm-cinza); font-size: 13px; margin: 18px 0; }
.hm-divider::before, .hm-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hm-local-form { display: grid; gap: 12px; }
.hm-privacy { font-size: 12px; color: var(--hdm-cinza); margin: 14px 0 0; }
.hm-detail-media { position: relative; margin: 0 0 16px; aspect-ratio: 16 / 9; border-radius: var(--hdm-radius-md); overflow: hidden; background: var(--hm-navy-2); }
.hm-detail-media img { width: 100%; height: 100%; object-fit: cover; }
/* Fotos locais precisam mostrar o monumento completo, sem corte ou legenda. */
.hm-card-media.is-local img, .hm-detail-media.is-local img { object-fit: contain; object-position: center; background: #e8f1f9; }
.hm-detail-media figcaption, .hm-detail-media .hm-media-note { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 10px 6px; font-size: 11px; color: rgba(255, 255, 255, .88); background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.hm-detail-media figcaption a { color: inherit; }
.hm-detail-title { font-size: 30px; }
.hm-detail-place { margin: 6px 0 10px; color: var(--hdm-cinza); }
.hm-detail-meta { display: grid; gap: 8px; margin: 14px 0; padding: 14px; background: var(--hdm-creme); border-radius: var(--hdm-radius-md); }
.hm-detail-meta div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; font-size: 14px; }
.hm-detail-meta dt { color: var(--hdm-cinza); }
.hm-detail-meta dd { margin: 0; font-weight: 700; color: var(--hdm-marinho); }
.hm-detail-meta .hm-link { padding: 0; min-height: 0; text-align: left; }
.hm-detail-sub { font-size: 21px; margin: 18px 0 8px; }
.hm-week { width: 100%; border-collapse: collapse; font-size: 15px; }
.hm-week th, .hm-week td { padding: 8px 4px; border-bottom: 1px solid #EEEAE1; text-align: left; }
.hm-week th { font-weight: 400; color: var(--hdm-cinza); width: 45%; }
.hm-week td { font-weight: 700; color: var(--hdm-marinho); }
.hm-detail-note { font-size: 14px; color: var(--hdm-cinza); margin: 12px 0 0; }
.hm-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.hm-toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60; background: var(--hdm-marinho); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); max-width: calc(100vw - 32px); font-size: 14px; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .hm-wrap { padding: 0 28px; }
  .hm-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-atalhos ul { grid-template-columns: repeat(3, 1fr); }
  .hm-dioceses { grid-template-columns: repeat(2, 1fr); }
  .hm-search { padding: 22px; }
  .hm-search-grid { grid-template-columns: repeat(3, 1fr); }
  .hm-breve-item { grid-template-columns: 96px 1fr auto; }
  .hm-breve-item .hm-btn { grid-column: auto; }
  .hm-apoie { flex-direction: row; align-items: center; justify-content: space-between; padding: 36px 40px; }
  .hm-footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .hm-dialog { padding: 26px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  :root { --hm-header-h: 76px; }
  .hm-brand img { width: 128px; }
  .hm-menu-toggle { display: none; }
  .hm-nav { position: static; display: block; background: none; border: 0; box-shadow: none; margin-left: auto; }
  .hm-nav ul { display: flex; gap: 4px; padding: 0; }
  .hm-nav a { border: 0; min-height: 44px; padding: 0 10px; font-size: 14px; position: relative; }
  .hm-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: var(--hdm-ouro); transform: scaleX(0); transition: transform .2s; }
  .hm-nav a:hover::after, .hm-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .hm-header-tools { margin-left: 8px; }
  .hm-loc-chip { max-width: 220px; }
  .hm-hero-inner { padding-top: 72px; padding-bottom: 72px; }
  .hm-search-grid { grid-template-columns: 2.2fr 1.3fr 1.2fr 1fr; }
  .hm-field-q { grid-column: auto; }
  .hm-search-submit { grid-column: 3 / -1; align-self: end; }
  .hm-atalhos { margin-top: -34px; position: relative; z-index: 2; }
  .hm-hero-media figcaption { bottom: auto; top: 10px; }
  .hm-atalhos ul { grid-template-columns: repeat(6, 1fr); }
  .hm-atalhos a, .hm-atalhos button { flex-direction: column; text-align: center; justify-content: center; min-height: 112px; gap: 10px; }
  .hm-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .hm-section { padding: 72px 0; }
  .hm-dioceses { grid-template-columns: repeat(3, 1fr); }
  .hm-missao { padding: 80px 0; }
  .hm-missao-grid { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; }
  .hm-breve { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .hm-nav a { padding: 0 12px; font-size: 15px; }
}
