/********** Template CSS **********/
:root {
    --primary: #1E60AA;
    --secondary: #FF4917;
    --light: #EDF1FC;
    --dark: #17224D;
}

.fw-medium {
    font-weight: 600 !important;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.top-bar {
    height: 75px;
    padding: 0 4rem;
}

.nav-bar {
    position: relative;
    padding: 0 4.75rem;
    transition: .5s;
    z-index: 9999;
}

.nav-bar.sticky-top {
    position: sticky;
    padding: 0;
    z-index: 9999;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .nav-bar {
        padding: 0;
    }

    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #EEEEEE;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header / Carousel ***/

.header-carousel {
    position: relative;
    width: 100%;
}

/* Todos os slides terão exactamente a mesma altura */
.header-carousel .owl-carousel-item {
    position: relative;
    height: 650px;
    overflow: hidden;
}

/* Todas as imagens ocupam exactamente o mesmo espaço */
.header-carousel .owl-carousel-item img {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
}


/* Conteúdo do carousel */
.header-carousel .container,
.page-header .container {
    position: relative;
    padding: 45px 0 45px 35px;
    border-left: 15px solid #FFFFFF;
    z-index: 2;
}


/* Elementos decorativos laterais */
.header-carousel .container::before,
.header-carousel .container::after,
.page-header .container::before,
.page-header .container::after {
    position: absolute;
    content: "";
    top: 0;
    left: 0;

    width: 100px;
    height: 15px;

    background: #FFFFFF;
}


.header-carousel .container::after,
.page-header .container::after {
    top: 100%;
    margin-top: -15px;
}


/* Overlay do carousel */
.header-carousel .owl-carousel-item > div.position-absolute {
    z-index: 1;
}


/*** Navegação ***/

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;

    transform: translateY(-50%);

    display: flex;
    flex-direction: column;

    z-index: 5;
}


.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #FFFFFF;

    background: transparent;

    border: 1px solid #FFFFFF;
    border-radius: 45px;

    font-size: 22px;

    transition: .5s;
}


.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}


/*** Mobile ***/

@media (max-width: 768px) {

    .header-carousel .owl-carousel-item {
        height: 550px;
        min-height: 550px;
    }

    .header-carousel .owl-carousel-item img {
        position: absolute;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center;
    }


    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }


    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
        line-height: 1.2;
    }


    .header-carousel .container {
        padding: 30px 0 30px 20px;
        border-left: 8px solid #FFFFFF;
    }


    .header-carousel .container::before,
    .header-carousel .container::after {
        width: 70px;
        height: 8px;
    }


    .header-carousel .container::after {
        margin-top: -8px;
    }


    /* Esconder navegação lateral no telemóvel */
    .header-carousel .owl-nav {
        display: none;
    }

}


/*** Tablets ***/

@media (min-width: 769px) and (max-width: 1200px) {

    .header-carousel .owl-carousel-item {
        height: 600px;
    }

}


/*** Page Header ***/

.page-header {
    background:
        linear-gradient(
            rgba(0, 0, 0, .4),
            rgba(0, 0, 0, .4)
        ),
        url(../img/bg.jpg)
        center center
        no-repeat;

    background-size: cover;
}


.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** Facts ***/
.fact {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../img/bg.jpg) center center no-repeat;
    background-size: cover;
}

/*** Service ***/
/* Card completo com a mesma altura */
 .service-item-top {
     height: 100%;
     display: flex;
     flex-direction: column;
}
/* Área das imagens com altura uniforme */
 .service-image {
     width: 100%;
     height: 280px;
     flex-shrink: 0;
}
/* Todas as imagens ocupam exactamente o mesmo espaço */
 .service-image img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     object-position: center;
     transition: .5s;
}
/* Efeito ao passar o rato */
 .service-item-top:hover .service-image img {
     transform: scale(1.1);
}
/* Área do texto */
 .service-content {
     min-height: 90px;
     flex: 1;
}
/* Evita que títulos muito grandes alterem o layout */
 .service-content h5 {
     line-height: 1.4;
}
/*** Service Carousel ***/
 .service-carousel .owl-dots {
     margin-top: 24px;
     display: flex;
     align-items: flex-end;
     justify-content: center;
}
 .service-carousel .owl-dot {
     position: relative;
     display: inline-block;
     margin: 0 5px;
     width: 15px;
     height: 15px;
     background: var(--primary);
     border: 5px solid var(--light);
     transition: .5s;
}
 .service-carousel .owl-dot.active {
     background: var(--light);
     border-color: var(--primary);
}
/*** Mobile ***/
 @media (max-width: 767.98px) {
     .service-image {
         height: 240px;
    }
}


/*** Booking ***/
.video {
    position: relative;
    padding: 8rem 0 12rem 0;
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, .4)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video .btn-play {
    position: relative;
    box-sizing: content-box;
    display: block;
    width: 32px;
    height: 44px;
    border-radius: 50%;
    border: none;
    outline: none;
    padding: 18px 20px 18px 28px;
    margin-bottom: 4rem;
}

.video .btn-play:before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: pulse-border 1500ms ease-out infinite;
}

.video .btn-play:after {
    content: "";
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: block;
    width: 100px;
    height: 100px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: all 200ms;
}

.video .btn-play img {
    position: relative;
    z-index: 3;
    max-width: 100%;
    width: auto;
    height: auto;
}

.video .btn-play span {
    display: block;
    position: relative;
    z-index: 3;
    width: 0;
    height: 0;
    border-left: 32px solid var(--primary);
    border-top: 22px solid transparent;
    border-bottom: 22px solid transparent;
}

@keyframes pulse-border {
    0% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0;
    }
}

#videoModal {
    z-index: 99999;
}

#videoModal .modal-dialog {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0 auto;
}

#videoModal .modal-body {
    position: relative;
    padding: 0px;
}

#videoModal .close {
    position: absolute;
    width: 30px;
    height: 30px;
    right: 0px;
    top: -30px;
    z-index: 999;
    font-size: 30px;
    font-weight: normal;
    color: #FFFFFF;
    background: #000000;
    opacity: 1;
}

.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}


/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-item .team-text {
    height: 90px;
    overflow: hidden;
}

.team-item .team-text .bg-light,
.team-item .team-text .bg-primary {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: .5s;
}

.team-item .team-text .bg-primary {
    flex-direction: row;
}

.team-item:hover .team-text .bg-light {
    margin-top: -90px;
}

.team-item .team-text .bg-primary .btn {
    color: var(--primary);
    background: #FFFFFF;
}

.team-item .team-text .bg-primary .btn:hover {
    color: #FFFFFF;
    background: var(--secondary)
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-text,
.testimonial-carousel .owl-item.center .testimonial-text * {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background: var(--primary) !important;
}

.testimonial-carousel .owl-item.center .testimonial-text * {
    color: #FFFFFF !important;
}

.testimonial-carousel .owl-item .testimonial-text::after {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
    border: 15px solid;
    border-color: var(--light) transparent transparent transparent;
    transition: .5s;

}

.testimonial-carousel .owl-item.center .testimonial-text::after {
    border-color: var(--primary) transparent transparent transparent;
}

.testimonial-carousel .owl-nav {
    position: absolute;
    width: 350px;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
    z-index: 1;
}

.testimonial-carousel:hover .owl-nav {
    width: 300px;
    opacity: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    font-size: 30px;
    color: var(--primary);
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    color: var(--dark);
}


/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}


/* ========================================= */
/* BOTÕES FLUTUANTES */
/* ========================================= */
 .floating-contact {
     position: fixed;
     right: 25px;
     bottom: 25px;
     z-index: 9999;
     display: flex;
     flex-direction: column;
     gap: 15px;
}
/* Botão */
 .floating-btn {
     position: relative;
     width: 58px;
     height: 58px;
     border: 0;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     text-decoration: none;
     font-size: 24px;
     color: #fff;
     cursor: pointer;
     box-shadow: 0 5px 20px rgba(0,0,0,.25);
     transition: transform .3s ease, box-shadow .3s ease;
}
/* Chatbot */
 .chatbot-btn {
     background: var(--primary);
}
/* WhatsApp */
 .whatsapp-btn {
     background: #25D366;
}
/* Hover */
 .floating-btn:hover {
     color: #fff;
     transform: scale(1.1);
     box-shadow: 0 8px 25px rgba(0,0,0,.35);
}
/* ========================================= */
/* PULSE */
/* ========================================= */
 .floating-btn::before {
     content: "";
     position: absolute;
     width: 100%;
     height: 100%;
     border-radius: 50%;
     border: 2px solid currentColor;
     animation: ddtmPulse 2s infinite;
}
 @keyframes ddtmPulse {
     0% {
         transform: scale(1);
         opacity: .7;
    }
     70% {
         transform: scale(1.5);
         opacity: 0;
    }
     100% {
         transform: scale(1.5);
         opacity: 0;
    }
}
/* ========================================= */
/* TOOLTIP */
/* ========================================= */
 .floating-tooltip {
     position: absolute;
     right: 70px;
     top: 50%;
     transform: translateY(-50%) translateX(10px);
     background: #222;
     color: #fff;
     font-size: 13px;
     padding: 7px 12px;
     border-radius: 5px;
     white-space: nowrap;
     opacity: 0;
     visibility: hidden;
     transition: .3s;
}
 .floating-btn:hover .floating-tooltip {
     opacity: 1;
     visibility: visible;
     transform: translateY(-50%) translateX(0);
}
/* ========================================= */
/* CHATBOT */
/* ========================================= */
 .ddtm-chatbot {
     position: fixed;
     right: 25px;
     bottom: 100px;
     width: 370px;
     max-width: calc(100vw - 30px);
     height: 550px;
     max-height: calc(100vh - 130px);
     background: #fff;
     border-radius: 15px;
     overflow: hidden;
     z-index: 9998;
     box-shadow: 0 15px 50px rgba(0,0,0,.25);
     display: flex;
     flex-direction: column;
     opacity: 0;
     visibility: hidden;
     transform: translateY(20px) scale(.95);
     transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
/* Aberto */
 .ddtm-chatbot.active {
     opacity: 1;
     visibility: visible;
     transform: translateY(0) scale(1);
}
/* ========================================= */
/* HEADER */
/* ========================================= */
 .chatbot-header {
     background: var(--primary);
     color: #fff;
     padding: 15px;
     display: flex;
     align-items: center;
     justify-content: space-between;
}
 .chatbot-header-info {
     display: flex;
     align-items: center;
     gap: 10px;
}
 .chatbot-avatar {
     width: 42px;
     height: 42px;
     border-radius: 50%;
     background: #fff;
     color: var(--primary);
     display: flex;
     align-items: center;
     justify-content: center;
}
 .chatbot-header h6 {
     margin: 0;
     color: #fff;
     font-weight: 600;
}
 .chatbot-header span {
     font-size: 12px;
     opacity: .9;
}
 .online-dot {
     display: inline-block;
     width: 7px;
     height: 7px;
     border-radius: 50%;
     background: #25D366;
     margin-right: 4px;
}
/* Fechar */
 .chatbot-close {
     background: transparent;
     border: 0;
     color: #fff;
     font-size: 18px;
     cursor: pointer;
     width: 35px;
     height: 35px;
     border-radius: 50%;
}
 .chatbot-close:hover {
     background: rgba(255,255,255,.15);
}
/* ========================================= */
/* MENSAGENS */
/* ========================================= */
 .chatbot-messages {
     flex: 1;
     overflow-y: auto;
     padding: 18px;
     background: #f8f9fa;
}
/* Mensagem */
 .chat-message {
     display: flex;
     margin-bottom: 15px;
     gap: 8px;
}
/* Bot */
 .chat-message.bot {
     justify-content: flex-start;
}
/* Utilizador */
 .chat-message.user {
     justify-content: flex-end;
}
/* Avatar */
 .message-avatar {
     width: 30px;
     height: 30px;
     flex-shrink: 0;
     border-radius: 50%;
     background: var(--primary);
     color: #fff;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 12px;
}
/* Conteúdo */
 .message-content {
     max-width: 78%;
     padding: 11px 13px;
     border-radius: 12px;
     font-size: 14px;
     line-height: 1.5;
}
/* Bot */
 .chat-message.bot .message-content {
     background: #fff;
     color: #333;
     border-top-left-radius: 3px;
     box-shadow: 0 2px 5px rgba(0,0,0,.05);
}
/* User */
 .chat-message.user .message-content {
     background: var(--primary);
     color: #fff;
     border-top-right-radius: 3px;
}
/* ========================================= */
/* OPÇÕES */
/* ========================================= */
 .chat-options {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 8px;
     margin-top: 10px;
}
 .chat-options button {
     background: #fff;
     border: 1px solid #e5e5e5;
     border-radius: 8px;
     padding: 10px 8px;
     font-size: 12px;
     color: #333;
     cursor: pointer;
     transition: .2s;
}
 .chat-options button i {
     display: block;
     color: var(--primary);
     margin-bottom: 5px;
}
 .chat-options button:hover {
     background: var(--primary);
     color: #fff;
}
 .chat-options button:hover i {
     color: #fff;
}
/* ========================================= */
/* BOTÕES DENTRO DO CHAT */
/* ========================================= */
 .chat-action {
     border: 0;
     background: var(--primary);
     color: #fff;
     border-radius: 6px;
     padding: 9px 12px;
     font-size: 12px;
     cursor: pointer;
     margin: 3px 2px;
     transition: .2s;
}
 .chat-action:hover {
     opacity: .85;
     color: #fff;
}
 .whatsapp-action {
     background: #25D366;
}
/* ========================================= */
/* DIGITAÇÃO */
/* ========================================= */
 .typing {
     background: #fff;
     border-radius: 12px;
     padding: 12px 15px;
     display: flex;
     gap: 4px;
}
 .typing span {
     width: 6px;
     height: 6px;
     background: #999;
     border-radius: 50%;
     animation: typing 1.2s infinite;
}
 .typing span:nth-child(2) {
     animation-delay: .15s;
}
 .typing span:nth-child(3) {
     animation-delay: .3s;
}
 @keyframes typing {
     0%, 60%, 100% {
         transform: translateY(0);
    }
     30% {
         transform: translateY(-5px);
    }
}
/* ========================================= */
/* INPUT */
/* ========================================= */
 .chatbot-input-area {
     display: flex;
     align-items: center;
     padding: 10px;
     background: #fff;
     border-top: 1px solid #eee;
}
 .chatbot-input-area input {
     flex: 1;
     border: 0;
     outline: 0;
     padding: 10px;
     font-size: 13px;
     background: #f5f5f5;
     border-radius: 20px;
}
 .chatbot-input-area button {
     width: 42px;
     height: 42px;
     margin-left: 8px;
     border: 0;
     border-radius: 50%;
     background: var(--primary);
     color: #fff;
     cursor: pointer;
}
/* ========================================= */
/* MOBILE */
/* ========================================= */
 @media (max-width: 575px) {
     .floating-contact {
         right: 15px;
         bottom: 15px;
         gap: 10px;
    }
     .floating-btn {
         width: 52px;
         height: 52px;
         font-size: 21px;
    }
     .floating-tooltip {
         display: none;
    }
     .ddtm-chatbot {
         right: 10px;
         bottom: 80px;
         width: calc(100vw - 20px);
         height: min(560px, calc(100vh - 100px));
         border-radius: 14px;
    }
     .chatbot-messages {
         padding: 14px;
    }
     .message-content {
         max-width: 85%;
    }
}


