/* --- 1. HERO SECTION IMERSIVA --- */
.hero-immersive {
    min-height: calc(100vh - 85px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--color-text-light);
    padding: 80px 24px;
    box-sizing: border-box;
    overflow: hidden;
}
.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 28, 46, 0.65), rgba(15, 28, 46, 0.82));
    z-index: 2;
    pointer-events: none;
}
.hero-immersive-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}
.hero-immersive-text {
    text-align: left;
}
.hero-immersive .hero-badge {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(5px);
    margin-bottom: 24px;
    width: fit-content;
}
.hero-immersive .hero-badge svg {
    fill: var(--color-accent);
}
.hero-immersive-title {
    font-size: 3.2rem;
    color: white;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.25;
}
.hero-immersive-title span {
    color: var(--color-accent);
}
.hero-immersive-description {
    font-size: 1.15rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.6;
}
.hero-immersive-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.hero-immersive .btn-primary {
    background-color: var(--color-accent);
    color: #0f1c2e;
    box-shadow: 0 6px 20px rgba(197, 155, 39, 0.25);
}
.hero-immersive .btn-primary:hover {
    background-color: white;
    color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
}
.hero-immersive .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}
.hero-immersive .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Moldura Arqueada de Nossa Senhora com Destaque Dourado */
.hero-immersive-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}
.hero-immersive-image-bg-glow {
    position: absolute;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(197, 155, 39, 0.3) 0%, rgba(197, 155, 39, 0.05) 50%, rgba(255, 255, 255, 0) 72%);
    z-index: 1;
    border-radius: 50%;
    filter: blur(25px);
    animation: pulseGlow 8s infinite alternate;
}
.hero-immersive-image-frame {
    position: relative;
    z-index: 2;
    background: rgba(15, 28, 46, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 12px;
    border-radius: 220px 220px 20px 20px; /* Arco românico/gótico majestoso */
    border: 4px solid #C59B27; /* Dourado litúrgico */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 35px rgba(197, 155, 39, 0.4);
    overflow: hidden;
    width: 100%;
    max-width: 330px;
    aspect-ratio: 1 / 1.45;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.hero-immersive-image-frame::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 208px 208px 8px 8px;
    border: 1px dashed rgba(197, 155, 39, 0.5);
    pointer-events: none;
}
.hero-immersive-image-frame:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 50px rgba(197, 155, 39, 0.6);
    border-color: #ffffff;
}
.hero-immersive-image-frame picture {
    display: block;
    width: 100%;
    height: 100%;
}
.hero-immersive-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 208px 208px 8px 8px;
    transition: var(--transition);
}
.hero-immersive-image-frame:hover img {
    transform: scale(1.04);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #a0aec0;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: bounce 2.5s infinite;
    z-index: 5;
}

.scroll-down svg {
    animation: bounceArrow 2.5s infinite;
}

@keyframes bounceArrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* --- 1.5. SECÇÃO HISTÓRIA E LEGADO (MADRE ISABEL) --- */
.historia-grid-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: center;
}

.historia-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.historia-image-frame {
    position: relative;
    z-index: 2;
    background-color: var(--color-bg-card);
    padding: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(197, 155, 39, 0.25);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1.25;
    transition: var(--transition);
}

.historia-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.historia-image-frame:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    transform: translateY(-4px);
}

.historia-image-frame:hover img {
    transform: scale(1.03);
}

.historia-image-glow {
    position: absolute;
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(197, 155, 39, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
    border-radius: 50%;
    filter: blur(20px);
}

.historia-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.historia-badge {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--color-accent-contrast);
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--color-accent-contrast);
    padding-bottom: 4px;
}

.historia-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: 700;
}

.historia-paragraph {
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 16px;
    color: var(--color-text-dark);
}

/* --- 2. CARDS VISUAIS DE SERVIÇOS & 4 COLUNAS --- */
.servico-img-container {
    position: relative;
}
.servico-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.servico-card:hover .servico-img {
    transform: scale(1.08);
}

/* Ajuste do grid de serviços para acomodar 4 colunas em desktops e 2x2 em tablets */
@media (min-width: 768px) {
    .servicos-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (min-width: 1024px) {
    .servicos-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Parquinho Card Estilos Verdes Dedicados */
:root {
    --color-parquinho: #2E7D32; /* Verde suave contemplativo de lazer */
    --color-parquinho-bg: #F1F8E9;
}
.servico-card.parquinho-card {
    border-top: 5px solid var(--color-parquinho);
}
.parquinho-card .servico-title {
    color: var(--color-parquinho);
}
.parquinho-card .servico-icon-badge {
    background-color: var(--color-parquinho);
}
.parquinho-card .servico-features svg {
    fill: var(--color-parquinho);
}
.parquinho-card .btn-servico {
    background-color: var(--color-parquinho);
}
.parquinho-card .btn-servico:hover {
    background-color: #1B5E20;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

/* --- 3. SECÇÃO GALERIA CONTEMPLATIVA --- */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.galeria-item {
    grid-column: span 3;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: var(--transition);
}
.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.galeria-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 28, 46, 0.95) 0%, rgba(15, 28, 46, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(1px);
}
.galeria-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-accent);
}
.galeria-item:hover img {
    transform: scale(1.08);
}
.galeria-item:hover .galeria-overlay {
    opacity: 1;
    backdrop-filter: blur(2px);
}
.galeria-tag {
    font-size: 0.75rem;
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.galeria-caption-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: white;
    margin-bottom: 4px;
}
.galeria-caption-desc {
    font-size: 0.85rem;
    color: #cbd5e0;
    line-height: 1.4;
}

/* Destaque Estátua de Nossa Senhora */
.galeria-item-featured {
    grid-column: span 6;
    border: 3px solid #C59B27 !important;
    box-shadow: 0 15px 35px rgba(197, 155, 39, 0.25) !important;
}
.galeria-item-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(197, 155, 39, 0.18) 0%, transparent 75%);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition);
}
.galeria-item-featured:hover::before {
    background: radial-gradient(circle at center, rgba(197, 155, 39, 0.28) 0%, transparent 80%);
}

.galeria-item-featured .galeria-tag {
    color: var(--color-primary);
    background-color: #C59B27;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    width: fit-content;
}

/* Item Panorama Murmúrio */
.galeria-item-wide {
    grid-column: span 12;
    aspect-ratio: 21 / 9;
}

/* --- 3.5. TRANSPORTE EXTERNO (FOTO REAL DEDICADA) --- */
.transporte-image-frame {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(197, 155, 39, 0.25);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.transporte-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.transporte-block:hover .transporte-img {
    transform: scale(1.06);
}
.transporte-block:hover .transporte-image-frame {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

/* --- 4. SECÇÃO INTEGRADA COM PARALLAX & GLASSMORPHISM --- */
.parallax-technical-section {
    background-image: linear-gradient(rgba(15, 28, 46, 0.85), rgba(15, 28, 46, 0.92)), url('../assets/img/horarios-bg.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

/* Contraste e remoção das cores de fundo originais */
.parallax-technical-section .horarios-section {
    background: transparent !important;
    border: none;
    padding-bottom: 30px;
}

.parallax-technical-section .transparencia-section {
    background: transparent !important;
    border: none;
    padding-top: 30px;
}

/* Override das cores de texto no parallax */
.parallax-technical-section .section-title {
    color: white !important;
}
.parallax-technical-section .section-subtitle {
    color: #cbd5e0 !important;
}

/* Estilos Glassmorphism nos Cartões */
.parallax-technical-section .horario-card {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
}

.parallax-technical-section .horario-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--color-accent) !important;
    box-shadow: var(--shadow-glow), 0 20px 45px rgba(0, 0, 0, 0.35) !important;
}

.parallax-technical-section .transparencia-card {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25) !important;
    color: white !important;
}

.parallax-technical-section .transparencia-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(197, 155, 39, 0.5) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
    transform: translateY(-5px);
}

.parallax-technical-section .doc-info-title {
    color: white !important;
}

.parallax-technical-section .doc-info-desc {
    color: #a0aec0 !important;
}

.parallax-technical-section .pdf-icon-box {
    background-color: rgba(197, 155, 39, 0.15) !important;
    border: 1px solid rgba(197, 155, 39, 0.25);
}

.parallax-technical-section .btn-download {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.parallax-technical-section .btn-download:hover {
    background-color: var(--color-accent) !important;
    color: #0f1c2e !important;
    border-color: var(--color-accent) !important;
    transform: translateY(-2px);
}

/* --- RESPONSIVIDADE ADICIONAL --- */
@media (max-width: 1024px) {
    .hero-immersive-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .hero-immersive-text {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-immersive-buttons {
        justify-content: center;
    }
    .hero-immersive-image-frame {
        max-width: 280px;
    }
    .hero-immersive-title {
        font-size: 2.6rem;
    }
    .galeria-grid {
        grid-template-columns: repeat(12, 1fr);
    }
    .galeria-item {
        grid-column: span 6;
    }
    .galeria-item-featured {
        grid-column: span 12;
    }
    .galeria-item-wide {
        grid-column: span 12;
        aspect-ratio: 16 / 9;
    }
    .transporte-image-frame {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .parallax-technical-section {
        background-attachment: scroll; /* Desativa parallax em mobile para performance */
    }
    .hero-immersive-title {
        font-size: 2.2rem;
    }
    .hero-immersive-description {
        font-size: 1.05rem;
    }
}

@media (max-width: 576px) {
    .galeria-item, .galeria-item-featured, .galeria-item-wide {
        grid-column: span 12;
        aspect-ratio: 4 / 5;
    }
    .galeria-item-wide {
        aspect-ratio: 16 / 10;
    }
    .hero-immersive {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* --- 5. SECÇÃO DE RESERVAS & CONTACTOS (REESTRUTURAÇÃO PREMIUM) --- */
.contactos-section {
    background: linear-gradient(180deg, var(--color-bg-page) 0%, var(--color-primary-soft) 100%);
    padding: 90px 0;
    position: relative;
}
.contactos-grid {
    display: flex;
    justify-content: center;
    align-items: start;
}

/* Glassmorphic Info Card */
.contactos-info-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(15, 28, 46, 0.05);
    transition: var(--transition);
    box-sizing: border-box;
    width: 100%;
    max-width: 600px;
}
.contactos-info-card:hover {
    box-shadow: 0 20px 40px rgba(15, 28, 46, 0.1);
    transform: translateY(-4px);
    border-color: rgba(197, 155, 39, 0.3);
}

/* Traditional Contacts Info Card */
.info-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
}
.info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #C59B27;
    border-radius: var(--radius-full);
}
.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
    margin: 20px 0 0 0;
}
.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.info-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background-color: rgba(30, 58, 95, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #1e3a5f;
    border: 1px solid rgba(30, 58, 95, 0.10);
    transition: var(--transition);
}
.info-item:hover .info-icon-box {
    background-color: #1e3a5f;
    color: #ffffff;
    border-color: #1e3a5f;
    transform: scale(1.05);
}
.info-icon-box svg {
    fill: currentColor;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
.info-text-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-accent-contrast);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-value {
    font-size: 1.05rem;
    color: #1e3a5f;
    font-weight: 600;
    line-height: 1.5;
}
.info-value a {
    color: #1e3a5f;
    text-decoration: none;
    transition: var(--transition);
}
.info-value a:hover {
    color: #C59B27;
}
.info-maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e3a5f;
    background-color: rgba(30, 58, 95, 0.06);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(30, 58, 95, 0.15);
    margin-top: 8px;
    width: fit-content;
    text-decoration: none;
    transition: var(--transition);
}
.info-maps-btn:hover {
    background-color: #1e3a5f;
    color: white;
    border-color: #1e3a5f;
}
.info-maps-btn svg {
    fill: currentColor;
}

/* --- 6. FOOTER MINIMALISTA ESCURO --- */
.footer-dark {
    background-color: #080f18;
    color: #94a3b8;
    padding: 70px 0 30px 0;
    border-top: 3px solid #C59B27;
}
.footer-dark-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.footer-dark-main {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    margin-bottom: 40px;
}
.footer-dark-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}
.footer-dark-brand h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
}
.footer-dark-brand p {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}
.footer-dark-devocao {
    font-size: 0.82rem;
    color: #C59B27;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.5;
}
.footer-dark-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}
.footer-section-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.footer-dark-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-dark-links a {
    color: #94a3b8;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}
.footer-dark-links a:hover {
    color: #C59B27;
    padding-left: 5px;
}
.footer-dark-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-dark-bottom p {
    margin: 0;
}
.footer-dark-bottom-links {
    display: flex;
    gap: 20px;
}
.footer-dark-bottom-links a {
    color: #718096;
    text-decoration: none;
    transition: var(--transition);
}
.footer-dark-bottom-links a:hover {
    color: #C59B27;
}

.developer-credit {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.65;
    letter-spacing: 0.02em;
}

.developer-credit a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.developer-credit a:hover {
    opacity: 1;
    text-decoration: underline;
}

.developer-credit .heart {
    font-size: 0.85rem;
}

@media (max-width: 1024px) {
    .contactos-grid {
        gap: 40px;
    }
    .footer-dark-main {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-dark-left, .footer-dark-right {
        text-align: center;
        align-items: center;
    }
    .footer-dark-links {
        align-items: center;
    }
    .footer-dark-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}
@media (max-width: 576px) {
    .contactos-info-card {
        padding: 24px;
    }
}

/* --- OTIMIZAÇÃO DE PERFORMANCE DE ANIMAÇÕES E RENDERIZAÇÃO (Fase 7, 8, 11) --- */

/* 1. Scroll Reveal sem estilos inline JS */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.85s cubic-bezier(0.25, 1, 0.5, 1), transform 0.85s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Atrasos escalonados controlados por CSS puro para evitar forced reflows */
.servico-card:nth-child(3n+1) { transition-delay: 0s; }
.servico-card:nth-child(3n+2) { transition-delay: 0.1s; }
.servico-card:nth-child(3n+3) { transition-delay: 0.2s; }

.horario-card:nth-child(3n+1) { transition-delay: 0s; }
.horario-card:nth-child(3n+2) { transition-delay: 0.1s; }
.horario-card:nth-child(3n+3) { transition-delay: 0.2s; }

.transparencia-card:nth-child(3n+1) { transition-delay: 0s; }
.transparencia-card:nth-child(3n+2) { transition-delay: 0.1s; }
.transparencia-card:nth-child(3n+3) { transition-delay: 0.2s; }

/* 2. Keyframes de animação otimizados */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-6px);
    }
    60% {
        transform: translateX(-50%) translateY(-3px);
    }
}

/* 3. Content Visibility para reduzir tamanho da árvore do DOM e otimizar tempo de rendering */
#historia, #espacos, #galeria, #transporte, #horarios, #transparencia, #contactos {
    content-visibility: auto;
    contain-intrinsic-size: 600px;
}
