/********** Template CSS **********/
:root {
    --primary: #0051FF;
    --secondary: #34AD54;
    --light: #EEF9FF;
    --dark: #091E3E;
}

/*** Spinner ***/
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@keyframes sk-rotateplane {
    0% {
        transform: perspective(120px) rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg);
    }
    100% {
        transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg);
    }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    visibility: visible;
    opacity: 1;
}

/*** Heading ***/
h1,
h2,
.fw-bold {
    font-weight: 800 !important;
}

h3,
h4,
.fw-semi-bold {
    font-weight: 700 !important;
}

h5,
h6,
.fw-medium {
    font-weight: 600 !important;
}

/*** Button ***/
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary {
    color: #FFFFFF;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-primary:hover {
    box-shadow: inset 0 0 0 0 var(--primary);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 0 var(--secondary);
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

/*** Navbar ***/
.navbar-dark {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Borda mais suave */
    background: linear-gradient(90deg, #1b3a20 0%, #3f6f33 45%, #7fb85a 100%);
}

.navbar-dark .navbar-nav .nav-link {
    font-family: 'Montserrat', sans-serif;
    margin-left: 10px;
    padding: 30px 0;
    color: #fff; /* Cor dos links */
    font-size: 18px;
    font-weight: 600;
    transition: .5s;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary); /* Cor ao passar o mouse e ativo */
}

.site-montserrat,
.site-montserrat body {
    font-family: 'Montserrat', sans-serif;
}

.site-montserrat h1,
.site-montserrat h2,
.site-montserrat h3,
.site-montserrat h4,
.site-montserrat h5,
.site-montserrat h6 {
    font-family: 'Montserrat', sans-serif;
}

.navbar-dark .navbar-brand h1 {
    color: #f2f8ef; /* Cor do nome da marca */
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Sticky Navbar */
.sticky-top {
    position: fixed;
    top: 40px; /* Esta será a altura padrão quando não estiver na versão mobile */
    width: 100%;
    background: rgba(255, 255, 255, 0); /* Fundo transparente */
    z-index: 999;
    color: white; /* Texto branco */
    transition: top 0.3s ease, background 0.3s ease, color 0.3s ease; /* Transições suaves */
}

.sticky-top.scrolled {
    top: 0;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, #1b3a20 0%, #3f6f33 45%, #7fb85a 100%);
    color: #f2f8ef; /* Texto claro quando fixada no topo */
}

.sticky-top.scrolled .nav-link {
    color: #f2f8ef; /* Links claros no menu */
}


.sticky-top .nav-link {
    color: white; /* Links brancos quando transparentes */
}




@media (max-width: 991.98px) {
    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 3px;
        color:#fff;
    }
    
    .sticky-top {
        top: 0; /* Ajuste para ficar colada ao topo na versão mobile */
    }
}

/*** Carousel ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .7);
    z-index: 1;
}

/*** Hero Banner (Home) ***/
.hero-carousel {
    margin-top: 0;
}

@media (min-width: 992px) {
    .hero-carousel {
        margin-top: 36px;
    }
}
.hero-carousel .carousel-item {
    min-height: 78vh;
    height: 78vh;
}

.hero-carousel .carousel-item img {
    height: 78vh;
    object-fit: cover;
}

.hero-carousel .carousel-inner {
    height: 78vh;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(4, 12, 26, 0.85), rgba(4, 12, 26, 0.55));
    z-index: 1;
}

.hero-carousel .carousel-caption {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: transparent;
    inset: 0;
    width: 100%;
    padding: clamp(5.5rem, 12vh, 7.5rem) clamp(1.25rem, 4.5vw, 6rem) clamp(2rem, 6vh, 3.5rem);
}

.hero-carousel .carousel-caption .hero-caption {
    width: min(760px, 100%);
    max-width: 760px;
}

.hero-caption {
    width: min(760px, 100%);
    max-width: 760px;
    color: #ffffff;
    text-align: left;
    overflow-wrap: anywhere;
}

.hero-kicker {
    font-size: 0.78rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: clamp(2rem, 3.4vw, 3.1rem);
    line-height: 1.1;
    font-weight: 800;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    margin-bottom: 0.75rem;
    overflow-wrap: anywhere;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.75rem;
}

.hero-actions .btn {
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    font-weight: 700;
}

.hero-actions .hero-outline-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    color: #ffffff;
    box-shadow: none;
    backdrop-filter: blur(2px);
}

.hero-actions .hero-outline-btn:hover,
.hero-actions .hero-outline-btn:focus {
    background: transparent;
    border-color: #ffffff !important;
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}

.btn-premium {
    background: #1f58ff;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(31, 88, 255, 0.35);
}

.btn-premium:hover {
    background: #1140d6;
    color: #ffffff;
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    background: transparent;
}

.btn-ghost:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.hero-carousel .carousel-indicators {
    gap: 10px;
    bottom: 24px;
}

.hero-carousel .carousel-indicators [data-bs-target] {
    width: 60px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.6;
    background: transparent;
    margin: 0;
}

.hero-carousel .carousel-indicators .active {
    opacity: 1;
    border-color: #ffffff;
}

.hero-carousel .carousel-indicators img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(8, 15, 30, 0.8);
    border: 10px solid rgba(8, 15, 30, 0.8);
}

.hero-carousel .carousel-control-prev {
    left: 12px;
}

.hero-carousel .carousel-control-next {
    right: 12px;
}

@media (max-width: 991.98px) {
    .hero-carousel .carousel-item,
    .hero-carousel .carousel-item img {
        min-height: 60vh;
        height: 60vh;
    }

    .hero-carousel .carousel-inner {
        height: 60vh;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel .carousel-item,
    .hero-carousel .carousel-item img {
        min-height: 50vh;
        height: 50vh;
    }

    .hero-carousel .carousel-inner {
        height: 50vh;
    }

    .hero-carousel .carousel-caption {
        justify-content: flex-start;
        align-items: flex-start;
        padding: clamp(4.25rem, 10vh, 5.5rem) 24px 1.25rem;
    }

    .hero-caption {
        text-align: left;
        width: min(100%, 560px);
    }

    .hero-carousel .carousel-indicators {
        display: none;
    }

    .hero-kicker {
        letter-spacing: 0.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions .btn {
        padding: 0.65rem 1.4rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 991.98px) and (max-height: 480px) {
    .hero-carousel .carousel-item,
    .hero-carousel .carousel-item img {
        min-height: 52vh;
        height: 52vh;
    }

    .hero-carousel .carousel-inner {
        height: 52vh;
    }

    .hero-carousel .carousel-caption {
        padding: clamp(3.5rem, 9vh, 4.5rem) 22px 1rem;
        align-items: flex-start;
    }

    .hero-caption {
        max-width: 560px;
    }

    .hero-kicker {
        letter-spacing: 0.2rem;
        margin-bottom: 0.4rem;
        font-size: 0.72rem;
    }

    .hero-title {
        font-size: clamp(1.45rem, 2.9vw, 1.95rem);
        line-height: 1.15;
    }

    .hero-actions .btn {
        padding: 0.55rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero-carousel .carousel-indicators {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-carousel .carousel-item,
    .hero-carousel .carousel-item img {
        min-height: 60vh;
        height: 60vh;
    }

    .hero-carousel .carousel-inner {
        height: 60vh;
    }
}

@media (max-width: 375px) {
    .hero-carousel .carousel-item,
    .hero-carousel .carousel-item img {
        min-height: 72vh;
        height: 72vh;
    }

    .hero-carousel .carousel-inner {
        height: 72vh;
    }

    .hero-carousel .carousel-caption {
        padding: clamp(3.25rem, 10vh, 4.25rem) 18px 1rem;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 1.7rem;
        line-height: 1.05;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-actions {
        margin-bottom: 8px;
    }

    .hero-actions .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

.hero-carousel.sobre-hero,
.hero-carousel.equipa-hero,
.hero-carousel.galeria-hero,
.hero-carousel.contacto-hero {
    margin-top: 0;
}

.hero-carousel.sobre-hero .carousel-item,
.hero-carousel.sobre-hero .carousel-item img,
.hero-carousel.equipa-hero .carousel-item,
.hero-carousel.equipa-hero .carousel-item img,
.hero-carousel.galeria-hero .carousel-item,
.hero-carousel.galeria-hero .carousel-item img,
.hero-carousel.contacto-hero .carousel-item,
.hero-carousel.contacto-hero .carousel-item img {
    min-height: 78vh;
    height: 78vh;
}

.hero-carousel.sobre-hero .carousel-inner,
.hero-carousel.equipa-hero .carousel-inner,
.hero-carousel.galeria-hero .carousel-inner,
.hero-carousel.contacto-hero .carousel-inner {
    height: 78vh;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .hero-carousel.sobre-hero .carousel-item,
    .hero-carousel.sobre-hero .carousel-item img,
    .hero-carousel.equipa-hero .carousel-item,
    .hero-carousel.equipa-hero .carousel-item img,
    .hero-carousel.galeria-hero .carousel-item,
    .hero-carousel.galeria-hero .carousel-item img,
    .hero-carousel.contacto-hero .carousel-item,
    .hero-carousel.contacto-hero .carousel-item img {
        min-height: 60vh;
        height: 60vh;
    }

    .hero-carousel.sobre-hero .carousel-inner,
    .hero-carousel.equipa-hero .carousel-inner,
    .hero-carousel.galeria-hero .carousel-inner,
    .hero-carousel.contacto-hero .carousel-inner {
        height: 60vh;
    }
}

@media (max-width: 767.98px) {
    .hero-carousel.sobre-hero .carousel-caption,
    .hero-carousel.equipa-hero .carousel-caption,
    .hero-carousel.galeria-hero .carousel-caption,
    .hero-carousel.contacto-hero .carousel-caption {
        justify-content: flex-start;
        align-items: flex-start;
        padding: clamp(4.25rem, 10vh, 5.5rem) 24px 1.25rem;
    }
}

@media (max-width: 991.98px) and (max-height: 480px) {
    .hero-carousel.sobre-hero .carousel-item,
    .hero-carousel.sobre-hero .carousel-item img,
    .hero-carousel.equipa-hero .carousel-item,
    .hero-carousel.equipa-hero .carousel-item img,
    .hero-carousel.galeria-hero .carousel-item,
    .hero-carousel.galeria-hero .carousel-item img,
    .hero-carousel.contacto-hero .carousel-item,
    .hero-carousel.contacto-hero .carousel-item img {
        min-height: 52vh;
        height: 52vh;
    }

    .hero-carousel.sobre-hero .carousel-inner,
    .hero-carousel.equipa-hero .carousel-inner,
    .hero-carousel.galeria-hero .carousel-inner,
    .hero-carousel.contacto-hero .carousel-inner {
        height: 52vh;
    }

    .hero-carousel.sobre-hero .carousel-caption,
    .hero-carousel.equipa-hero .carousel-caption,
    .hero-carousel.galeria-hero .carousel-caption,
    .hero-carousel.contacto-hero .carousel-caption {
        padding: clamp(3.5rem, 9vh, 4.5rem) 22px 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-carousel.sobre-hero .carousel-item,
    .hero-carousel.sobre-hero .carousel-item img,
    .hero-carousel.equipa-hero .carousel-item,
    .hero-carousel.equipa-hero .carousel-item img,
    .hero-carousel.galeria-hero .carousel-item,
    .hero-carousel.galeria-hero .carousel-item img,
    .hero-carousel.contacto-hero .carousel-item,
    .hero-carousel.contacto-hero .carousel-item img {
        min-height: 60vh;
        height: 60vh;
    }

    .hero-carousel.sobre-hero .carousel-inner,
    .hero-carousel.equipa-hero .carousel-inner,
    .hero-carousel.galeria-hero .carousel-inner,
    .hero-carousel.contacto-hero .carousel-inner {
        height: 60vh;
    }
}

@media (max-width: 375px) {
    .hero-carousel.sobre-hero .carousel-item,
    .hero-carousel.sobre-hero .carousel-item img,
    .hero-carousel.equipa-hero .carousel-item,
    .hero-carousel.equipa-hero .carousel-item img,
    .hero-carousel.galeria-hero .carousel-item,
    .hero-carousel.galeria-hero .carousel-item img,
    .hero-carousel.contacto-hero .carousel-item,
    .hero-carousel.contacto-hero .carousel-item img {
        min-height: 72vh;
        height: 72vh;
    }

    .hero-carousel.sobre-hero .carousel-inner,
    .hero-carousel.equipa-hero .carousel-inner,
    .hero-carousel.galeria-hero .carousel-inner,
    .hero-carousel.contacto-hero .carousel-inner {
        height: 72vh;
    }

    .hero-carousel.sobre-hero .carousel-caption,
    .hero-carousel.equipa-hero .carousel-caption,
    .hero-carousel.galeria-hero .carousel-caption,
    .hero-carousel.contacto-hero .carousel-caption {
        padding: clamp(3.25rem, 10vh, 4.25rem) 18px 1rem;
        align-items: flex-start;
    }
}

/*** Section Title ***/
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    animation: section-title-run-sm 5s infinite linear;
}

@keyframes section-title-run {
    0% { left: 0; }
    50% { left: 145px; }
    100% { left: 0; }
}

@keyframes section-title-run-center {
    0% { left: 50%; margin-left: -75px; }
    50% { left: 50%; margin-left: 45px; }
    100% { left: 50%; margin-left: -75px; }
}

@keyframes section-title-run-sm {
    0% { left: 0; }
    50% { left: 85px; }
    100% { left: 0; }
}

/*** Service ***/
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

/*** Miscellaneous ***/
@media (min-width: 991.98px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
        color:#fff;
    }
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.bg-header {
    background: linear-gradient(rgba(9, 30, 62, .7), rgba(9, 30, 62, .7)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.link-animated a {
    transition: .5s;
}

.link-animated a:hover {
    padding-left: 10px;
}

@media (min-width: 767.98px) {
    .footer-about {
        margin-bottom: -75px;
    }
}
