/* Catedral Anglicana — V1.0.59 · Correção do slider da Home
   Isola a fotografia do ::after usado pelo tema para a linha inferior de 4px.
   Respeita as imagens configuradas no MySQL e não afeta páginas internas. */
.hero.cathedral-hero.cathedral-hero-instituto {
    background-image: none;
    background-color: #140f25;
    isolation: isolate;
}
/* Camada independente, sempre com a MESMA altura e largura do banner.
   Não reutilizar ::after: em catedral-theme.css ele possui height:4px. */
.hero.cathedral-hero.cathedral-hero-instituto .hero-image-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--hero-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center 48%;
    pointer-events: none;
    opacity: 1;
    transform: translate3d(0,0,0) scale(1.012);
    transform-origin: center center;
    animation: catedral-hero-pan-suave 22s ease-in-out infinite alternate;
    transition: opacity .85s ease;
    will-change: transform;
}
@keyframes catedral-hero-pan-suave {
    from { transform: translate3d(0,0,0) scale(1.012); }
    to { transform: translate3d(-.35%, .15%, 0) scale(1.048); }
}
/* Película contínua sobre toda a foto, sem cortes horizontais. */
.hero.cathedral-hero.cathedral-hero-instituto::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg,
        rgba(13,9,31,.74) 0%,
        rgba(13,9,31,.57) 36%,
        rgba(13,9,31,.30) 67%,
        rgba(13,9,31,.20) 100%);
}
/* ::after continua sendo apenas a linha fina original do tema. */
.hero.cathedral-hero.cathedral-hero-instituto .hero-content { z-index: 3; }
.hero.cathedral-hero.cathedral-hero-instituto .hero-caption { z-index: 3; }
.hero.cathedral-hero.cathedral-hero-instituto .hero-explorar-toggle { z-index: 4; }
.hero.cathedral-hero.cathedral-hero-instituto.hero-exploravel .hero-interior-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: var(--hero-interior-image);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0,0,0) scale(1.028);
    transition: opacity .95s ease, transform 1.35s cubic-bezier(.22,.61,.36,1);
}
.hero.cathedral-hero.cathedral-hero-instituto.hero-exploravel.mostrar-interior .hero-interior-layer {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
}
.hero.cathedral-hero.cathedral-hero-instituto.hero-exploravel.mostrar-interior .hero-image-layer {
    opacity: 0;
}
.hero.cathedral-hero.cathedral-hero-instituto .hero-copy {
    animation: catedral-hero-entrada .65s ease-out both;
}
.hero.cathedral-hero.cathedral-hero-instituto .hero-instituto-feature {
    animation: catedral-hero-card-entrada .7s ease-out .12s both;
}
@keyframes catedral-hero-card-entrada {
    from { opacity:0; }
    to { opacity:1; }
}
@keyframes catedral-hero-entrada {
    from {opacity:0;transform:translateY(9px);}
    to {opacity:1;transform:translateY(0);}
}
@media(max-width:800px) {
    .hero.cathedral-hero.cathedral-hero-instituto .hero-image-layer {
        background-position:center 45%;
        animation-duration:26s;
    }
    .hero.cathedral-hero.cathedral-hero-instituto.hero-exploravel .hero-interior-layer {
        background-image:var(--hero-interior-mobile-image, var(--hero-interior-image));
        background-position:center center;
    }
    .hero.cathedral-hero.cathedral-hero-instituto::before {
        background:linear-gradient(180deg,
            rgba(13,9,31,.64) 0%,rgba(13,9,31,.63) 54%,rgba(13,9,31,.77) 100%);
    }
}
@media(prefers-reduced-motion:reduce) {
    .hero.cathedral-hero.cathedral-hero-instituto .hero-image-layer,
    .hero.cathedral-hero.cathedral-hero-instituto .hero-copy,
    .hero.cathedral-hero.cathedral-hero-instituto .hero-instituto-feature,
    .hero.cathedral-hero.cathedral-hero-instituto.hero-exploravel .hero-interior-layer {
        animation:none;
        transition:none;
        transform:none;
    }
}
