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;
}


html {
    scroll-behavior: smooth;
}

/* === SCROLL FADE EFFECT LOGIC === */
.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column; /* keep items stacked vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.page-section {
    min-height: 50vh;
    padding: 0px 0px;
    scroll-margin-top: 170px; /* keeps the header visible */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;

    opacity: 0.2; /* Faded when out */
    transition: opacity 0.8s ease-in-out; /* Smooth transaction */
}

/* 100% visible when active */
.page-section.in-focus {
    opacity: 1;
}

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

/* Laptops and phones */
@media (max-height: 900px) {
    :root {
        --observer-margin-y: -100px;
        --observer-threshold: 0.02;
    }
}

/* Phones in landscape */
@media (max-height: 600px) {
    :root {
        --observer-margin-y: -60px;
        --observer-threshold: 0.01;
    }
}

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

.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;
}

/* Base styling for the floating button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    padding: 6px 14px 6px 10px;
    border-radius: 50px; /* Makes it a pill */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Ensure the text stays white and remove underline */
.whatsapp-float .whatsapp-text {
    font-weight: 500;
    color: white;
    font-family: inherit; /* Inherits your Bootstrap font */
    font-size: 14px;
}

/* Add a subtle pop effect on hover */
.whatsapp-float:hover {
    background-color: #1EBE57; /* Slightly darker green */
    color: white;
    transform: translateY(-3px);
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.3);
}

/* 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;
}

.picture {
    max-width: 200px;
    margin-top: 0px;
}

/* 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: 150px;
    }
    .picture {
        max-width: 180px;
        margin-top: -30px;
    }
}