@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
    --gold: #c9a646;
    --gold-soft: rgba(201, 166, 70, 0.22);
    --gold-dark: #a8842f;
    --brown: #241912;
    --brown-mid: #3d2a1f;
    --bg: #f7f4ee;
    --text: #1f1c18;
    --text-muted: #5c564d;
    --header-h: 76px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --shadow-soft: 0 20px 50px rgba(36, 25, 18, 0.08);
}

* { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* Páginas internas (pagina.php): rodapé colado ao fundo da janela com pouco conteúdo */
body.site-layout-sticky {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}
/* align-self: center evita o flex esticar o main na largura total (conteúdo colado nas laterais) */
body.site-layout-sticky > main.page-wrap,
body.site-layout-sticky > main.blog-wrap,
body.site-layout-sticky > main.post-wrap {
    flex: 1 1 auto;
    width: 100%;
    align-self: center;
}
body.site-layout-sticky > .site-footer {
    flex-shrink: 0;
}
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    margin: 0 0 12px;
    line-height: 1.15;
    font-weight: 600;
    letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.85rem); font-weight: 700; }
h2 {
    font-size: clamp(1.85rem, 3.2vw, 2.75rem);
    position: relative;
    padding-bottom: 14px;
}
h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), rgba(201, 166, 70, 0.15));
}
.band-dark h2::after {
    background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, 0.12));
}
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1rem; color: var(--text-muted); }
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease-out), opacity 0.2s;
}
img { width: 100%; display: block; }

.container {
    box-sizing: border-box;
    width: 100%;
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    /* respiro nas laterais (telas estreitas e flex column no body) */
    padding-left: clamp(1.125rem, 4vw, 2rem);
    padding-right: clamp(1.125rem, 4vw, 2rem);
}
.fullwidth { width: 100%; }

[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--header-h);
    background: rgba(19, 14, 11, 0.58);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(201, 166, 70, 0.28);
    transition: background 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.site-header.is-scrolled {
    background: rgba(19, 14, 11, 0.88);
    border-bottom-color: rgba(201, 166, 70, 0.4);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.nav-wrap {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.brand {
    /* Usada como wrapper da logo no menu */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 0;
    font-size: 0; /* evita altura extra quando a âncora contém apenas a imagem */
    gap: 10px;
}

.site-logo {
    height: 44px;
    width: auto;
    display: block;
    max-width: 100%;
}

@media (max-width: 768px) {
    .site-logo {
        height: 38px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        height: 34px;
    }
}
.main-menu {
    display: flex;
    gap: 6px 18px;
    align-items: center;
    flex-wrap: wrap;
}
.main-menu a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
}
.main-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s var(--ease-out);
}
.main-menu a:hover,
.main-menu a:focus-visible {
    color: #fff;
}
.main-menu a:hover::after,
.main-menu a:focus-visible::after {
    width: 100%;
}
.menu-toggle {
    display: none;
    border: 1px solid rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}
.menu-toggle:hover { background: rgba(255,255,255,0.12); }

/* Hero */
.hero {
    position: relative;
    min-height: 88vh;
    background-size: cover;
    background-position: center;
    padding-top: var(--header-h);
}
.overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(165deg, rgba(18, 12, 9, 0.82) 0%, rgba(36, 25, 18, 0.55) 45%, rgba(82, 58, 38, 0.42) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding: clamp(2.25rem, 7vw, 5rem) 0 88px;
    color: #fff;
    max-width: 720px;
}
.hero-content p {
    max-width: 100%;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.1rem;
    font-size: 1.08rem;
    line-height: 1.7;
}
.hero-content .hero-lead,
.hero-content .hero-lead p,
.hero-content .hero-lead li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.08rem;
    line-height: 1.7;
}
.hero-content .hero-lead {
    max-width: 100%;
    margin: 0 0 1.1rem;
}
.hero-content .hero-lead a {
    color: #f0d78a;
    text-decoration: underline;
}
.kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #f0d78a;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(201, 166, 70, 0.18);
    border: 1px solid rgba(240, 215, 138, 0.25);
}
/* Localização no hero: manter “Lajinha/MG” como digitado */
.hero-content .kicker {
    text-transform: none;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
}
.hero-content h1 {
    color: #fff;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.btn {
    background: linear-gradient(145deg, #d4ae4f, var(--gold-dark));
    color: #fff;
    border-radius: 10px;
    padding: 12px 22px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(168, 132, 47, 0.35);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s, filter 0.2s;
}
.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 12px 28px rgba(168, 132, 47, 0.4);
}
.btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.btn-light {
    background: rgba(255, 255, 255, 0.95);
    color: var(--brown);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.btn-light:hover {
    background: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

/* Bands — textura sutil entre seções */
.band {
    position: relative;
    padding: 76px 0;
}
.band::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 166, 70, 0.35), transparent);
    opacity: 0.85;
    pointer-events: none;
}
/* Sem linha dourada colada ao hero */
.hero + .band::before { display: none; }

.band-light {
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(201, 166, 70, 0.06), transparent 55%),
        #f0ebe2;
}
.band-white {
    background:
        radial-gradient(ellipse 70% 40% at 100% 0%, rgba(201, 166, 70, 0.05), transparent 50%),
        #fff;
}
.band-alt {
    background:
        linear-gradient(180deg, #faf7f1 0%, #f5f0e6 100%);
}
.band-dark {
    background: linear-gradient(180deg, #2a1e16 0%, var(--brown) 55%, #1c1410 100%);
    color: #eee2cf;
    margin-bottom: 0;
    padding-bottom: 76px;
}
.band-dark h2,
.band-dark h3,
.band-dark p,
.band-dark li { color: #ebe3d4; }
.band-dark p { color: rgba(235, 227, 212, 0.88); }
.band-dark .content-html,
.band-dark .content-html p,
.band-dark .content-html li {
    color: rgba(235, 227, 212, 0.88);
}
.band-dark .content-html a {
    color: #f0d78a;
    text-decoration: underline;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.kicker-dark {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8a6830;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.image-block {
    position: relative;
}
.image-block::after {
    content: '';
    position: absolute;
    inset: 10px -10px -10px 10px;
    border: 1px solid var(--gold-soft);
    border-radius: 2px;
    pointer-events: none;
    z-index: -1;
}
.image-block img {
    border-radius: 2px;
    min-height: 340px;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
    transition: transform 0.5s var(--ease-out);
}
.split:hover .image-block img { transform: scale(1.02); }

/* Blocos com HTML do editor (home) */
.split .content-html {
    margin-bottom: 1rem;
}
.split .content-html:last-child {
    margin-bottom: 0;
}
.split .content-html p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}
.split .content-html > *:last-child {
    margin-bottom: 0;
}

.section-head {
    margin-bottom: 36px;
    max-width: 640px;
}
.section-head p { margin-bottom: 6px; }

/* Título de bloco na home (nome do padre, pastoral, comunidade) → página */
a.home-title-link {
    color: var(--brown);
    text-decoration: none;
    border-bottom: 2px solid rgba(201, 166, 70, 0.5);
    transition: color 0.2s, border-color 0.2s;
}
a.home-title-link:hover,
a.home-title-link:focus-visible {
    color: #8a6830;
    border-bottom-color: #8a6830;
    outline: none;
}

.leader-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.leader-item {
    display: grid;
    grid-template-columns: min(240px, 38%) 1fr;
    gap: 22px;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(201, 166, 70, 0.2);
}
.leader-item:last-child { border-bottom: none; padding-bottom: 0; }
.leader-item img {
    height: 240px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.leader-item:hover img {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(36, 25, 18, 0.12);
}
.leader-content h3 { color: var(--brown); margin-bottom: 4px; }
.leader-content p { margin: 0 0 8px; }
.leader-content .leader-bio { margin: 0; }
.leader-content .leader-bio p { margin: 0 0 8px; color: var(--text-muted); }
.leader-content .leader-bio > *:last-child { margin-bottom: 0; }

.three-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
}
.three-cols article {
    border-top: 3px solid var(--gold);
    padding-top: 18px;
    transition: transform 0.25s var(--ease-out);
}
.three-cols article:hover { transform: translateY(-4px); }
.three-cols h3 { color: var(--brown); }
.three-cols .content-html p { color: var(--text-muted); margin: 0 0 0.75rem; }
.three-cols .content-html > *:last-child { margin-bottom: 0; }

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.community-grid article {
    transition: transform 0.3s var(--ease-out);
}
.community-grid article:hover { transform: translateY(-6px); }
.community-grid img {
    height: 200px;
    object-fit: cover;
    margin-bottom: 14px;
    border-radius: 2px;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s;
}
.community-grid article:hover img {
    box-shadow: 0 20px 44px rgba(36, 25, 18, 0.14);
}
.community-grid h3 { color: var(--brown); }
.community-grid .content-html p { color: var(--text-muted); margin: 0 0 0.75rem; }
.community-grid .content-html > *:last-child { margin-bottom: 0; }

.event-list {
    display: grid;
    gap: 14px;
}
.event-list article {
    padding: 0;
    border-bottom: 1px solid rgba(90, 78, 64, 0.15);
    font-size: 1.02rem;
}
.event-list article:not(.event-list-item--linked) {
    padding: 14px 0 14px 4px;
    transition: padding-left 0.2s var(--ease-out);
}
.event-list article:not(.event-list-item--linked):hover {
    padding-left: 10px;
}
.event-list-link {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 14px 8px 14px 4px;
    margin: 0 -8px 0 -4px;
    border-radius: 6px;
    transition: padding-left 0.2s var(--ease-out), background 0.2s;
}
.event-list-item--linked .event-list-link:hover {
    padding-left: 12px;
    background: rgba(201, 166, 70, 0.1);
}
.event-list-item--linked .event-list-link:focus-visible {
    outline: 2px solid #8a6830;
    outline-offset: 2px;
}
.event-list .event-data,
.event-list strong.event-data {
    color: #8a6830;
    font-variant-numeric: tabular-nums;
    min-width: 4.5rem;
    display: inline-block;
}
.event-list article:not(.event-list-item--linked) strong {
    color: #8a6830;
    font-variant-numeric: tabular-nums;
    min-width: 4.5rem;
    display: inline-block;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-grid .content-html {
    margin-bottom: 1rem;
}
.contact-grid .content-html p:last-child {
    margin-bottom: 0;
}
.contact-grid h2 { margin-bottom: 16px; }
.contact-grid ul {
    margin: 0;
    padding-left: 20px;
}
.contact-grid li { margin-bottom: 8px; }

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-hero {
    transition-delay: 0.08s;
}
.reveal-hero.is-visible { transition-delay: 0s; }

/* Footer */
.site-footer {
    margin-top: 0;
    background: #140e0b;
    color: #d4c4a8;
    border-top: 2px solid rgba(201, 166, 70, 0.45);
}
.site-footer .container {
    padding-top: 22px;
    padding-bottom: 26px;
    /* mantém padding horizontal herdado de .container */
    text-align: center;
}
.site-footer p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(212, 196, 168, 0.85);
    letter-spacing: 0.02em;
}
.site-footer .footer-text {
    font-size: 0.92rem;
    color: rgba(212, 196, 168, 0.85);
    letter-spacing: 0.02em;
}
.site-footer .footer-text p {
    margin: 0 0 0.5rem;
    color: inherit;
}
.site-footer .footer-text > *:last-child { margin-bottom: 0; }
.site-footer .footer-text a { color: #f0d78a; }
.site-footer .footer-admin {
    margin-top: 20px;
}
.site-footer .footer-admin .btn {
    padding: 10px 20px;
    font-size: 0.88rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Blog */
.blog-wrap {
    padding: calc(var(--header-h) + 2rem) 1rem 4rem;
}
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}
.blog-main {
    min-width: 0;
}
.blog-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 18px);
}
.blog-sidebar-block {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(201, 166, 70, 0.25);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 18px;
}
.blog-sidebar-title {
    margin: 0 0 12px;
    font-size: 1rem;
    color: var(--brown);
}
.blog-search-form {
    margin: 0;
}
.blog-search-bar {
    display: flex;
    gap: 10px;
    align-items: center;
}
.blog-search-bar input[type=text] {
    width: 100%;
    flex: 1 1 auto;
    max-width: none;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(201, 166, 70, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    outline: none;
}
.blog-search-bar input[type=text]:focus-visible {
    border-color: rgba(201, 166, 70, 0.95);
    box-shadow: 0 0 0 3px rgba(201, 166, 70, 0.18);
}
.blog-search-btn {
    white-space: nowrap;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #d4ae4f, var(--gold-dark));
    box-shadow: 0 8px 24px rgba(168, 132, 47, 0.25);
    transition: transform 0.15s var(--ease-out), filter 0.2s, box-shadow 0.2s;
}
.blog-search-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 12px 30px rgba(168, 132, 47, 0.35);
}
.blog-side-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.blog-side-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(201, 166, 70, 0.22);
    background: rgba(255, 255, 255, 0.65);
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.blog-side-item:hover {
    border-color: rgba(201, 166, 70, 0.55);
    box-shadow: 0 10px 24px rgba(36, 25, 18, 0.08);
    transform: translateY(-2px);
}
.blog-side-img {
    width: 70px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    background: rgba(0,0,0,0.04);
    flex-shrink: 0;
}
.blog-side-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.blog-side-date {
    font-size: 0.82rem;
    color: var(--text-muted);
}
.blog-side-title {
    font-weight: 600;
    color: var(--brown);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.blog-top {
    margin-bottom: 1.25rem;
}
.blog-title {
    margin-bottom: 0.75rem;
}
.blog-search {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 1.25rem;
}
.blog-search input[type=text] {
    width: 100%;
    max-width: 520px;
}
.blog-empty {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(201, 166, 70, 0.25);
    border-radius: 12px;
    padding: 18px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.blog-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(201, 166, 70, 0.25);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.blog-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 166, 70, 0.55);
    box-shadow: 0 14px 34px rgba(36, 25, 18, 0.10);
}
.blog-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.blog-card-img {
    height: 210px;
    width: 100%;
    object-fit: cover;
    background: rgba(0,0,0,0.04);
}
.blog-card-body {
    padding: 16px 16px 18px;
}
.blog-card-title {
    margin-bottom: 8px;
}
.blog-card-meta {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 10px;
}
.blog-card-excerpt {
    margin: 0;
    color: var(--text-muted);
}
.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
}
.blog-page-link {
    color: #8a6830;
    text-decoration: underline;
    font-weight: 600;
}
.blog-page-current {
    color: var(--text-muted);
}

/* Últimos posts na home */
.latest-posts-band .latest-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.latest-posts-band .blog-card-img {
    height: 160px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .btn:hover,
    .leader-item:hover img,
    .community-grid article:hover,
    .three-cols article:hover {
        transform: none;
    }
}

@media (max-width: 980px) {
    .split,
    .leader-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .three-cols,
    .community-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .blog-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .blog-side-img { width: 58px; height: 46px; }
    .blog-search { flex-direction: column; align-items: stretch; }
    .blog-search input[type=text] { max-width: none; }
    .image-block::after { display: none; }
    .latest-posts-band .latest-posts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 72px; }
    .menu-toggle { display: inline-block; }
    .main-menu {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(23, 16, 12, 0.97);
        border-bottom: 1px solid rgba(201,166,70,.35);
        padding: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    }
    .main-menu.open { display: flex; }
    .main-menu a { padding: 10px 8px; border-radius: 8px; }
    .main-menu a:hover { background: rgba(255,255,255,0.06); }
    .main-menu a::after { display: none; }
    .hero { min-height: 78vh; }
    .hero-content { padding-bottom: 64px; max-width: 100%; }
    .three-cols,
    .community-grid { grid-template-columns: 1fr; }
    .leader-item { grid-template-columns: 1fr; }
    .leader-item img { height: 220px; width: 100%; }
    .band { padding: 56px 0; }
}

@media (max-width: 480px) {
    :root { --header-h: 64px; }

    .blog-wrap {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .hero-content { padding-bottom: 56px; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-actions .btn,
    .hero-actions .btn-light {
        width: 100%;
        text-align: center;
    }

    .band { padding: 44px 0; }
    .section-head { margin-bottom: 24px; }

    /* Evita corte do rosto: no celular deixamos a imagem "caber" sem recortar */
    .leader-item img {
        height: auto;
        max-height: 260px;
        object-fit: contain;
    }
    .community-grid img { height: 150px; }

    /* Imagens grandes em seções "split" (ex.: Paróquia) */
    .split .image-block img {
        height: auto;
        max-height: 280px;
        object-fit: contain;
    }

    .event-list { gap: 10px; }
    .event-list article { font-size: 1rem; }

    .contact-grid { gap: 26px; }

    .blog-grid { gap: 14px; }
    .blog-card-img { height: 180px; }
    .blog-pagination { flex-wrap: wrap; }

    .blog-layout { gap: 16px; }
    .blog-sidebar-block { padding: 12px; }
    .blog-side-img { width: 54px; height: 42px; }
    .latest-posts-band .latest-posts-grid { grid-template-columns: 1fr; }
    .latest-posts-band .blog-card-img { height: 160px; }
}

/* Cards clicáveis → página do grupo (comunidade / pastoral) */
a.grupo-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: inherit;
}
a.grupo-card-link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* Página do grupo + feed */
.grupo-hero {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}
.grupo-hero-img {
    width: 100%;
    max-height: 320px;
    object-fit: cover;
    display: block;
}
.grupo-hero-body { padding: 1.5rem 1.75rem; }
.grupo-hero-body h1 { margin: 0 0 0.5rem; color: var(--brown); }
.grupo-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-dark);
    margin-bottom: 0.75rem;
}
.grupo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    align-items: center;
}
.grupo-actions a.btn-outline,
.grupo-actions .btn-outline {
    display: inline-block;
    padding: 0.45rem 1rem;
    border: 2px solid var(--gold);
    border-radius: 999px;
    font-weight: 600;
    color: var(--brown);
    text-decoration: none;
    font-size: 0.92rem;
}
.grupo-actions a.btn-outline:hover { background: var(--gold-soft); }
.grupo-actions .muted { color: var(--text-muted); font-size: 0.95rem; }

.feed-section h2 { margin: 2rem 0 1rem; color: var(--brown); }
.feed-alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.feed-alert.ok { background: #e8f5e9; color: #1b5e20; }
.feed-alert.err { background: #ffebee; color: #b71c1c; }
.feed-alert.info { background: var(--gold-soft); color: var(--brown-mid); }

.feed-form {
    background: #fff;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}
.feed-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--brown); }
.feed-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid rgba(36, 25, 18, 0.15);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}
.feed-form input[type="file"] { margin-bottom: 0.75rem; }
.feed-form button[type="submit"] {
    background: var(--gold);
    color: var(--brown);
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}
.feed-form button[type="submit"]:hover { filter: brightness(1.05); }
.feed-form small { color: var(--text-muted); display: block; margin-top: 0.5rem; }

.feed-post {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.25rem;
}
.feed-post-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.feed-post-meta strong { color: var(--brown); }
.feed-post-text { white-space: pre-wrap; word-break: break-word; margin-bottom: 0.75rem; }
.feed-post-img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
    display: block;
}
.feed-comments { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(36, 25, 18, 0.08); }
.feed-comments h4 { margin: 0 0 0.75rem; font-size: 1rem; color: var(--brown); }
.feed-comment {
    background: var(--bg);
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.feed-comment-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.feed-comment-meta strong { color: var(--brown); }
.feed-comment-form { margin-top: 0.75rem; }
.feed-comment-form textarea {
    width: 100%;
    min-height: 64px;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(36, 25, 18, 0.15);
    font-family: inherit;
    margin-bottom: 0.5rem;
}
.feed-comment-form button {
    background: var(--brown-mid);
    color: #fff;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9rem;
}
.feed-empty { color: var(--text-muted); font-style: italic; padding: 1rem 0; }

/* Cadastro / login membro */
.member-auth-wrap { max-width: 420px; margin: 0 auto; }
.member-auth-form .field { margin-bottom: 1rem; }
.member-auth-form label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.member-auth-form input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(36, 25, 18, 0.2);
    font-size: 1rem;
}
.member-auth-form button[type="submit"] {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--gold);
    color: var(--brown);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}
.member-auth-links { margin-top: 1rem; text-align: center; font-size: 0.95rem; }
.member-auth-links a { color: var(--gold-dark); font-weight: 600; }
