/* Smooth scroll animations */
html {
    scroll-behavior: smooth;
}

section, .card, .card-comoFunciona {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.animate-in, .card.animate-in, .card-comoFunciona.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for multiple elements */
.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.3s; }

.card-comoFunciona:nth-child(1) { transition-delay: 0.1s; }
.card-comoFunciona:nth-child(2) { transition-delay: 0.2s; }
.card-comoFunciona:nth-child(3) { transition-delay: 0.3s; }

/* navbar styles */
.navbar {
    background-color: #00488b;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.logo {
    width: 40px;
    height: 40px;
}
.navbar-brand {
    z-index: 2;
}
.navbar-toggler {
    border: none;
    color: #fff !important;
    z-index: 2;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}
.nav-link {
    color: #fff !important;
    padding: 0.3rem 1rem;
    font-weight: 490;
}
.nav-link:hover {
    color: #d8a602 !important;
    background-color: #013d75;
    font-weight: 500;
}
#navbarDropdown {
    background-color: #d8a602;
    color: #000 !important;
    font-weight: 500;
    border-radius: 20px;
    text-align: center;
}
#navbarDropdown i {
    color: #00488b;
    margin-right: 7px;
}
.dropdown-menu {
    background-color: #013d75;
    min-width: 200px;
    border: #d8a602 1px solid;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    margin: 0.7rem;
}
.dropdown-item {
    padding: 0.2rem 1rem;
    font-weight: 500;
    color: #fff;
}
.dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;
}
.dropdown-menu .dropdown-item i {
    margin-right: 10px;
    color: #d8a602;
}
.btn-navbar {
    border-radius: 20px;
    min-width: 150px;
    background-color: #d8a602;
}
.btn-navbar:hover {
    background-color: #00488b;
    border: 2px solid #d8a602;
    color: #fff;
}
.entrar:hover {
    border: 2px solid #fff;
}
/* main-content styles */

.main-content {
    height: 100%;
    padding: 1rem;
}
.offcanvas-body {
    background-color: #00488b;
}
.offcanvas button {
    color:#fff !important;
    border: #fff 2px solid;
}
.offcanvas-header {
    background-color: #00488b;
}

/* Responsividade */
@media (max-width: 580px) {
    body.menu-open {
        overflow: hidden;
    }
    /* reduzir offcanvas para metade da tela em dispositivos pequenos */
    .offcanvas.offcanvas-end {
        width: 50vw !important;
        max-width: 50vw !important;
        box-sizing: border-box;      /* include padding in width calculation */
        overflow-x: hidden;         /* never allow horizontal scroll */
        padding: 0;                 /* avoid extra space pushing width */
    }
    .offcanvas .offcanvas-body {
        box-sizing: border-box;
        overflow-x: hidden;
        padding: 0.5rem 1rem; /* smaller padding to reduce overflow potential */
    }
    /* make dropdown submenu items behave on small screens */
    .dropdown-menu {
        width: 100% !important;
        position: static !important;
        float: none !important;
        background-color: #00488b;
        border: none;
        box-shadow: none;
        margin: 0;
        padding: 0;               /* remove default padding that could overflow */
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .dropdown-item {
        padding: 0.5rem 1rem;
        white-space: normal;
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: anywhere;
        word-break: break-word;
        display: flex;           /* flex container so icon and text can wrap */
        align-items: center;
        flex-wrap: wrap;
    }
    .dropdown-item .icon {
        flex: 0 0 auto;
        margin-right: 0.5rem;
    }
    .dropdown-item .description {
        flex: 1 1 100%;          /* allow stretching and wrapping */
    }
    /* ensure all text inside offcanvas wraps */
    .offcanvas * {
        max-width: 100%;
        box-sizing: border-box;
    }
    .offcanvas .nav-link,
    .offcanvas .dropdown-item,
    .offcanvas .dropdown-item .description,
    .offcanvas .navbar-brand {
        white-space: normal !important;
        word-break: break-word;
        word-break: break-all; /* break anywhere if needed */
        overflow-wrap: break-word;
    }
    .dropdown-item .description {
        display: inline-block;
        max-width: 100%;
        white-space: normal;
    }
    .navbar-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: #00488b;
        padding-top: 60px;
        transition: right 0.3s ease-in-out;
        z-index: 1;
        overflow-y: auto;
    }
    /* ensure offcanvas nav items stack and do not overflow */
    .offcanvas .navbar-nav {
        display: block !important;
        width: 100% !important;
    }
    .offcanvas .navbar-nav .nav-item {
        width: 100% !important;
    }
    .offcanvas .nav-link {
        display: block !important;
        width: 100% !important;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .navbar-collapse.show {
        right: 0;
    }
    .btn-navbar {
        width: 100%;
        margin: 0.6rem 0;
    }
    .nav-item {
        margin: 0.5rem 0;
    }
    .dropdown-item:hover {
    background-color: #d8a602;
    color: #fff;
    }
    .nav-link:hover {
    color: #fff !important;
    background-color: #d8a602;
    }
    .card-perguntas {
        margin: 1rem 0 1rem 0;
    }
    .services h5 {
    text-align: justify;
    font-size: 8px;
    margin: 5px;
    }
}

@media (max-width: 600px) {
    .card-perguntas {
        margin: 2rem 0 2rem 0;

    }
    .services h5 {
    margin: 5px;
    }
}


/*main styles */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;

    background: 
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url("../Imagens/fundo.png") no-repeat center center;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content-onImg {
    position: absolute;
    top: 50%;
    left: 40%;
    transform: translate(-50%, -50%);
    color: #fff;
    max-width: 900px;
}
.hero-content-onImg h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #d8a602;
}
.hero-content-onImg p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: justify;
    margin-bottom: 0;
}

/* Conteúdo dinâmico: garantir visibilidade dentro de #contentArea
   (anula a regra global que define sections com opacity:0 para animação) */

/* Torna visível o section que contém o contentArea e seus filhos */
#contentSection,
#contentSection *,
#contentArea,
#contentArea > *,
#contentArea .service-card,
#contentArea .service-card * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    color: inherit !important;
}
.btn-primary {
    background-color: #00488b !important;
    margin: 5px;
}
.btn-onImg-container {
    margin: 10px;
}
.btn-onImg {
    background-color: #fff !important;
    color: #000 !important;
    margin: 5px;
}
.btn-onImg:hover {
    border: 2px solid #d8a602 !important;
    color: #d8a602 !important;
    font-weight: 500;
}
.btn-primary:hover {
    background-color: #d8a602 !important;
    border: 2px solid #00488b !important;
    color: #fff !important;
}

@media (max-width: 600px) {
    .hero-content-onImg h1 {
        font-size: 2rem;
        margin-top: 2rem;
    }
    .hero-content-onImg p {
        font-size: 1rem;
    }
    .btn-onImg {
        width: 100%;
        margin: 0.5rem 0;
        font-size: small;
    }
}
.services {
    padding: 2rem 1rem;
    background-color: #d3d6da;
}
.services h1 {
    text-align: center;
    margin: -1rem 0 0.2rem 0;
    color: #00488b;
}
.services h5 {
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    margin: 15px;
}
.services p {
    text-align: justify;
    margin: 0.4rem 0 0rem 0;
    color: #000;   
}
.card-body {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
}
.card-body p {
    text-align: justify;
}
.card-title {
    color: #00488b;
}
.card-title i {
    color: #d8a602;
    margin: 15px;
}
.card-body a {
    text-decoration: none;
}
.card-body a:hover {
    color: #d8a602;
}
.btn-secondary {
    background-color: #00488b !important;
    margin: 5px;
    width: calc(100% - 10px);
    align-self: center;
}
.btn-secondary:hover {
    background-color: #d8a602 !important;
    border: 2px solid #00488b !important;
    color: #fff !important;
}
.price {
    border: #d8a602 2px solid;
    border-radius: 10px;
    padding: 10px;
    margin-bottom:0;
}   
.bi-currency-exchange {
    color: #d8a602;
    margin-right: 5px;
}
.conteiner {
    padding: 2rem 1rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.card-comoFunciona {
    
    margin: 1rem;
}
.card-comoFunciona p {
    padding: 1rem;
    border: 1px solid #00488b;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.card-comoFunciona i {
    font-size: 2.5rem;
}
.perguntas-frequentes i {
    margin-right: 15px;
}
.perguntas-frequentes h5 {
    text-decoration: none;
    text-align: center;
    font-size: 16px;
    margin: 15px;
}
.accordion-body {
    background-color: #d3d6da; 
    border-bottom-right-radius: 20px;
    border-bottom-left-radius: 20px;
}
.accordion-button:hover {
    background-color: #d3d6da;
}
.img-depoimento {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
    object-position: top;
}

/* Owl Carousel Customization */
.owl-carousel {
    width: 100%;
}

.owl-theme .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.owl-theme .owl-dots .owl-dot {
    background: #00488b;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.owl-theme .owl-dots .owl-dot.active {
    background: #d8a602;
    opacity: 1;
}

.owl-carousel .owl-item {
    display: flex;
    align-items: stretch;
}

.owl-carousel .card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.owl-carousel .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* Paused state indicator */
.owl-carousel.paused .card {
    opacity: 0.9;
}

.owl-carousel.paused .owl-dot.active {
    background: #d8a602;
    box-shadow: 0 0 8px rgba(216, 166, 2, 0.5);
}

/* Mobile responsividade */
@media (max-width: 768px) {
    .owl-carousel .card {
        margin: 0 7.5px;
    }
}

@media (max-width: 500px) {
    .owl-carousel .card p {
        font-size: 0.95rem;
    }
    
    .owl-carousel .card h3 {
        font-size: 1rem;
    }
}

#contatos {
    background-color: #00488b;
}   
.logo-footer {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}
.conteiner-footer {
    padding: 1rem 1rem;
}
.small {
    color: #fff;
    font-style: italic;
    font-size: 10px;
}
.conteiner-footer i {
    color: #d8a602;
    margin: 0 10px;
}
.conteiner-footer i:hover {
    color: #000;
}
.redes-sociais a {
    margin-right: -20px;
}

.small-copyright {
    color: #fff;
    font-style: italic;
    font-size: 20px;
    text-align: center;
}
.linha-footer {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* BOTÃO WHATSAPP FIXO */
.whatsapp-fixo {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  z-index: 9999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fixo:hover {
    border: #fff 2px solid;
    margin: .1rem;
}