:root {
    --observer-margin-y: -150px;
    --observer-threshold: 0.15;
}

body {
    background-color: #ffffff;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #121314;
}

/* Ativa o scroll suave nativo do navegador como precaução extra */
html {
    scroll-behavior: smooth;
}

/* =========================================
   SCROLL FADE EFFECT LOGIC
   ========================================= */

/* Content Area Wrapper */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column; /* Mantém os itens empilhados verticalmente */
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* Estado padrão: Opacidade baixa para seções fora de contexto */
.page-section {
    min-height: 70vh;
    padding: 0px 0px;
    scroll-margin-top: 170px; /* Mantém o respiro do seu header fixo */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Efeito de Fade */
    opacity: 0.2; /* Fica "apagado" quando não está na tela */
    transition: opacity 0.8s ease-in-out; /* Transição suave de 0.8s */
}

/* Estado ativo: Fica 100% visível quando o usuário rola até ela */
.page-section.in-focus {
    opacity: 1;
}

/* ========================================= */

.texto-justificado p.com-recuo {
    text-align: justify;
    text-indent: 2rem;
}
.texto-justificado p.sem-recuo {
    text-align: justify;
}

/* Header */
.custom-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: #1f0c3cff; /* Roxo escuro */
    border-bottom: 1px solid #220D41;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Desktop Header Row */
.header-top-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}

/* Desktop Logo */
.logo-img {
    display: block;
    width: 100%;
    max-height: 60px;
}

/* Menu Links */
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 500 !important;
    font-size: 16px;
    padding: 8px 22px !important;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

/* Mobile Toggler */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

footer {
    position: relative;
    bottom: 0;
    z-index: 1030;
    padding: 0px 0;
    text-align: center;
    font-size: 14px;
    color: #888;
    background-color: #f8f9fa;
    border-top: 1px solid #eee;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1040;
    transition: transform 0.2s;
    scale: 0.8;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Home Page Header Stacks */
.homemain h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #121314;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.homemain p {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.6rem;
    color: #666;
}

/* MOBILE */
@media (max-width: 767px) {
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .header-top-row {
        flex-direction: column;
        gap: 10px;
        padding: 1rem 0;
    }
    .logo-img {
        max-height: 60px;
    }
    .page-section {
        scroll-margin-top: 270px;
    }
}