:root {
    --primary: #888b8d;
    --secondary: #181818;
    --tertiary: #c8a94f;
    --white: #ffffff;
    --black: #000000;
    --light-black: #1b1b1b;
    --grey: #8b8b8b;
    --light-grey: #eeeeee;
    --bar: #2c2c2c;
    --background: #ebebeb;
    --degrade: linear-gradient(-45deg, #01b439 0%, var(--primary) 35%, var(--primary) 65%, #01b439 100%);
}

html {
    font-size: clamp(14px, 1vw, 18px);
    scroll-behavior: smooth;
}

.section {
    scroll-margin-top: 150px;
}

/* TRADUTOR GOOGLE */
.skiptranslate, #goog-gt-tt, #lg-container-1 {
    display: none !important;
}

/* Fancybox */
.f-thumbs__viewport {
    padding-left: 90px;
}

/* Isotope width calc fix */
.isotope-item {
    width: 25%!important;
}

@media (max-width: 1199.99px) {
    .isotope-item {
        width: 33.3%!important;
    }
}

@media (max-width: 991.99px) {
    .isotope-item {
        width: 50%!important;
    }
}

@media (max-width: 767.99px) {
    .isotope-item {
        width: 100%!important;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: #333333;
}

::-webkit-scrollbar-thumb {
  background: var(--tertiary);
  border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tertiary);
}

/* Bootstrap container */
@media (min-width: 1500px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1420px;
    }
}

@media (min-width: 1600px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1520px;
    }
}

/* Colors */
.blue {
    background-color: #4285F4!important;
}
.green {
    background-color: #34A853!important;
}
.yellow {
    background-color: #FBBC05!important;
}
.red {
    background-color: #EA4335!important;
}
.purple {
    background-color: #AB47BC!important;
}
.teal {
    background-color: #26A69A!important;
}
.cyan {
    background-color: #00ACC1!important;
}
.orange {
    background-color: #FF7043!important;
}

/* Body */
body {
    a {
        text-decoration: none;

        &:focus-visible {
            outline: none;
            box-shadow: none;
        }
    }

    main {
        margin-top: 100px;
        
        .section {
            margin-top: 100px;
            margin-bottom: 100px;

            &:first-of-type {
                margin-top: 20px;
            }
        }
    }

    &.home {
        main {
            margin-top: unset;
        }
    }
}

@media (max-width: 767.99px) {
    body {
        main {
            .section {
                margin-top: 60px;
                margin-bottom: 60px;

                &:first-of-type {
                    margin-top: 20px!important;
                }
            }
        }
    }
}

@media (max-width: 575.99px) {
    body {
        main {
            .section {
                &:first-of-type {
                    margin-top: 20px!important;
                }
            }
        }
    }
}


/* Custom */
.phStickyWrap {
    min-height: 100px;
}
#pageHeader.headerDark {
    background-color: var(--light-black);
    padding: 10px 30px;
    height: 100px;

    .logo {
        margin: 0;
        max-height: 100%;
    }

    .container-fluid {
        display: flex;
        align-items: center;
        height: 100%;
    }

    #pageNav {
        margin-left: 30px;
    }

    .btnHd {
        background-color: transparent;
        color: var(--white);
        border-color: var(--white);

        span {
             background-color: transparent;
            color: var(--white);
            border-color: var(--white);
        }

        &:before {
            background-color: var(--white);
            color: var(--black);
            border-color: var(--white);
        }
    }
}

@media (max-width: 991.99px) {
    .phStickyWrap {
        min-height: 112px;
    }

    #pageHeader.headerDark {
        height: auto;
        padding: 0;

        .container-fluid {
            position: relative;
            padding: 52px 16px 10px 16px;
        }

        #pageNav {
            margin-left: auto;
            width: auto;
        }

        .logo {
            img {
                width: auto;
                object-fit: contain;
                height: 46px;
            }
        }
    }
}

/* Espaço inferior do slider reservado para a caixa de contacto (.contactWidget), que fica pendurada por baixo */
.introBlockWrap {
    margin-bottom: 150px!important;

    @media (min-width: 576px) and (max-width: 767.99px) {
        margin-bottom: 180px!important;
    }

    /* Em mobile a caixa de contacto está escondida - fica o espaçamento normal entre secções */
    @media (max-width: 575.99px) {
        margin-bottom: 60px!important;
    }

    &::before {
        background-color: transparent;
    }

    /* Navegador do slider (mobile) - activo branco, restantes com borda branca e fundo preto */
    .slickDotsv1 {
        button {
            box-sizing: border-box;
            background-color: var(--black);
            border: 2px solid var(--white);
            transition-property: background, border-color;
        }

        button:hover,
        li.slick-active button {
            background-color: var(--white);
        }
    }
}

.ibsColumn {
    min-height: 80dvh;
    height: 80dvh;

    .content {
        padding: 50px;
    }
}

.slickArrowv1 {
    text-decoration: none;

    &::before {
        display: none;
    }

    i {
        font-size: 2rem;
    }
}

.introBlock .ibsBgWrap {
    &:before {
        background-color: var(--light-black);
    }
}

.introBlockWrap .contactWidget {
    background-color: var(--light-black)!important;
    padding: 20px;

    .icnWrap {
        i {
            color: var(--white);
            font-size: 1.8rem;
        }
    }

    .decWrap {
        margin-left: 10px;

        a {
            color: var(--primary)!important;
            text-decoration: none;
            transition: all 0.3s ease-in-out;

            &:hover {
                color: var(--white)!important;
            }
        }        
    }

    li {
        &:last-of-type {

            .decWrap {
                strong {
                    &:last-of-type {
                        color: var(--primary)!important;
                    }
                }
            }
        }
    }
}

.imgHolderv1:before {
    background-color: var(--light-black);
}

h2 {
    color: var(--black);
}

h3 {
    color: var(--black);
}

h4 {
    color: var(--black);
}

.hTitle {
    color: var(--primary);
}

.abtServiceColumn .imgWrap:before {
    background-color: var(--light-black);
    opacity: 0.5;
}

.service-item {
    margin-bottom: 24px;
}

.abtServiceColumn {
    height: 100%;

    .imgWrap {
        height: 100%;

        img {
            height: 100%;
            object-fit: cover;
        }
    }
}

.ftAreaWrap {
    background-color: var(--light-black)!important;

    .ftConnectAside {
        background-color: var(--black)!important;
        color: var(--white)!important;
    }

    .footerAsideInnerWrap {
        background-color: var(--light-black)!important;
        color: var(--white)!important;

        .bgImg {
            display: none;
        }
    }

    h5 {
        text-transform: uppercase;
    }

    a {
        color: var(--white)!important;
        text-decoration: none;
        transition: all 0.3s ease-in-out;

        i {
            color: var(--black)!important;
            transition: all 0.3s ease-in-out;
        }

        &:hover {
            color: var(--primary)!important;

            i {
                color: var(--primary)!important;
            }
        }
    }

    .disclaimer {
        color: var(--grey)!important;
        font-size: 0.7rem;
        margin-bottom: 12px;
    }

    .ftcaNav {
        li {
            margin-left: 6px;
        }
    }
}

.footerAside {
    padding: 24px!important;
}

@media (max-width: 991.98px) {
    .footerAside {
        padding: 10px 24px!important;

        .ftCol {
            padding-top: 24px;
            padding-bottom: 24px;

            & + .ftCol {
                border-top: 1px solid rgba(255, 255, 255, 0.1);
            }
        }

        .disclaimer {
            margin-bottom: 10px;
        }
    }
}

#pageFooter {
    padding: 24px!important;

    p {
        margin-bottom: 0!important;

        a {
            transition: all 0.3s ease-in-out;

            &:hover {
                color: var(--primary)!important;
            }
        }
    }
}

.menu-mobile {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: var(--secondary);
    padding: 30px;
    transition: all 0.5s ease;
    transform: translate(100%);
    overflow-y: auto;
    width: 400px;
    z-index: 9999;

    &.active {
        transform: translate(0);
    }

    .close-menu {
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 2rem;
        color: var(--white);
        cursor: pointer;
    }

    .top-bar {
        margin-bottom: 50px;

        a {
            .logo-wrapper {
                margin: 0;
                height: 60px;

                .logo-img {
                    width: auto;
                    height: 100%;
                    object-fit: contain;
                    max-width: 200px;
                    object-position: top;
                }
            }
        }
    }

    .nav-mobile {
        margin-bottom: 20px;

        ul {
            margin: 0;
            padding: 0;
            list-style: none;

            li {
                a {
                    color: var(--white)!important;
                    text-decoration: none;
                    text-transform: uppercase;
                    font-size: 1.3rem!important;
                    line-height: 150%;
                    transition: all 0.3s ease;
                    width: 100%;
                    display: flex;
                    padding-top: 10px;
                    padding-bottom: 10px;
                    align-items: center;

                    i {
                        margin-left: auto;
                    }

                    &.active {
                        color: var(--primary)!important;
                    }

                    &:hover {
                        color: var(--primary)!important;
                    }
                }

                span {
                    color: var(--white)!important;
                    text-decoration: none;
                    text-transform: uppercase;
                    font-size: 1.3rem!important;
                    line-height: 150%;
                    width: 100%;
                    display: flex;
                    padding-top: 10px;
                    padding-bottom: 10px;
                    align-items: center;

                    i {
                        margin-left: auto;
                    }
                }

                ul {
                    margin: 0;
                    padding: 0;
                    list-style: none;

                    li {
                        a {
                            font-size: 1rem;
                        }
                    }
                }
            }

            .menu-social {
                margin-top: 30px;

                ul {
                    display: flex;
                    align-items: start;

                    li {
                        margin-right: 10px;
                        
                        a {
                            display: flex;
                            align-items: center;
                            justify-content: start;
                            width: 30px;
                            height: 30px;

                            i {
                                font-size: 1.5rem;
                            }
                        }
                    }
                }
            }

            .languages {
                margin-top: 30px;

                ul {
                    display: flex;
                    align-items: start;

                    li {
                        margin-right: 10px;
                        font-size: 1rem;
                        color: var(--white);
                        cursor: pointer;
                        
                        &.current-lang {
                            color: var(--primary);
                        }
                    }
                }
            }
        }
    }

    .contacts-container {
        flex-direction: column;

        .content {                    
            .card {
                padding-top: 15px;
                padding-bottom: 15px;
                border-bottom: 1px solid var(--white);
                background-color: var(--secondary);
                border-radius: 0;

                a {
                    display: flex;
                    align-items: center;
                    text-decoration: none;
                    color: var(--white);
                    transition: all 0.3s ease;

                    img {
                        height: 40px;
                        width: 40px;
                        object-fit: contain;
                        margin-right: 10px;
                    }

                    i {
                        height: 40px;
                        width: 40px;
                        font-size: 20px;
                        margin-right: 10px;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                    }

                    h6 {
                        margin-bottom: 0;
                        line-height: 150%;
                        color: var(--white)!important;
                        transition: all 0.3s ease;
                    }

                    span {
                        font-size: 0.7rem;
                        color: var(--grey)!important;
                        line-height: 100%;
                    }

                    .card-content {
                        display: flex;
                        flex-direction: column;
                        justify-content: center;
                    }

                    &:hover {
                        color: var(--grey)!important;

                        h6 {
                            color: var(--grey)!important;
                        }
                    }
                }
            }

            &:first-of-type {
                .card {
                    border-top: 1px solid var(--white);
                }
            }
        }
    }
}

@media (max-width: 767.99px) {
    .menu-mobile {
        width: 100%;
    }
}

.slickDotsv2 button {
    background-color: var(--secondary);
}

.slickDotsv2 li.slick-active button {
    background-color: var(--secondary);
}

.success-box {
    display: none;
}

.error-box {
    display: none;
}

/* Testemunhos */
.seccao-testemunhos {
    &.seccao-testemunhos-v1 {
        position: relative;
        overflow: hidden;

        .title {
            text-align: center;
            margin-bottom: 50px;

            /* h2 {
                font-size: 2.5rem;
                font-weight: 400;
                margin-bottom: 20px;
            } */

            /* p {
                font-size: 1.2rem;
                color: var(--grey);
                margin-bottom: 10px;
            } */
        }

        .testemunhos-container {
            position: relative;

            .testemunhos-arrows {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                background-color: var(--secondary);
                border: none;
                width: 40px;
                height: 40px;
                display: flex;
                justify-content: center;
                align-items: center;
                color: var(--white);

                &.testemunhos-prev {
                    left: -55px;
                    right: unset;
                }

                &.testemunhos-next {
                    right: -55px;
                    left: unset;
                }
            }

            .slick-slide {
                margin: 0 10px;
            }

            .slick-list {
                margin: 0 -10px;
            }

            .bloco-testemunho {
                padding: 30px;
                border: 1px solid var(--secondary);
                border-radius: 24px;
                margin-bottom: 10px;

                .top {
                    display: flex;
                    align-items: center;
                    margin-bottom: 15px;

                    .imagem {
                        height: 32px;
                        width: 32px;
                        margin-bottom: 0;
                        margin-right: 12px;
                        border-radius: 50%;
                        overflow: hidden;

                        img {
                            height: 100%;
                            width: 100%;
                            object-fit: cover;
                        }

                        span {
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            text-transform: uppercase;
                            background-color: var(--grey);
                            height: 100%;
                            width: 100%;
                            color: var(--white);
                            font-weight: 600;
                            line-height: 100%;
                        }
                    }

                    .top-content {
                        display: flex;
                        flex-direction: column;
                        justify-content: start;

                        .titulo {
                            font-size: 0.9rem;
                            line-height: 120%;
                            font-weight: 400;
                        }

                        .estrelas {
                            img {
                                object-fit: contain;
                                height: 12px;
                                width: auto;
                                margin-top: -5px;
                            }
                        }
                    }
                }

                .bottom {
                    .texto {
                        font-size: 0.9rem;
                        line-height: 130%;
                        font-weight: 400;

                        .aspas {
                            height: 1rem;
                            width: auto;
                            object-fit: contain;
                            margin-right: 6px;
                            margin-top: -10px;
                            filter: grayscale(1) brightness(0);
                        }
                    }
                }
            }
        }
    }
}

@media (max-width: 767.99px) {
    .seccao-testemunhos {
        &.seccao-testemunhos-v1 {
            .slider-container {
                .testemunhos-arrows {
                    z-index: 9;
                    border: 1px solid var(--white);
                    width: 30px;
                    height: 30px;

                    &.testemunhos-prev {
                        left: 5px;
                        right: unset;
                    }

                    &.testemunhos-next {
                        right: 5px;
                        left: unset;
                    }
                }
            }
        }
    }
}

/* Formulario */
.seccao-formulario {
    &.seccao-formulario-v1 {
        .title {
            margin-bottom: 30px;
            text-align: center;
            max-width: 70%;
            margin-left: auto;
            margin-right: auto;

            /* h2 {
                font-size: 1.8rem;
                line-height: 120%;
                font-weight: 400;
                color: var(--secondary);
            } */
            
            h3 {
                font-size: 1.2rem;
                line-height: 120%;
                color: var(--grey);
            }
        }

        .form-container {
            .form-title {
                h2 {
                    font-size: 1.5rem;
                    line-height: 100%;
                    font-weight: 400;
                    margin-bottom: 20px;
                }
            }

            form {
                > div {
                    > div {
                        margin-bottom: 24px;
                    }
                }

                p {
                    font-size: 0.9rem;
                    line-height: 100%;
                    text-transform: uppercase;
                    font-weight: 400;
                    color: var(--black);
                    margin-bottom: 5px;
                }          

                input, textarea {
                    padding: 14px 20px;
                    border-radius: 6px;
                    border: 2px solid var(--grey);
                    width: 100%;
                    font-size: 1.2rem;
                    line-height: 100%;

                    &:focus, &:active {
                        border-color: var(--secondary);
                        background-color: var(--light-grey);
                    }
                }

                .form-checkbox {
                    display: flex;

                    input {
                        width: fit-content;
                        margin-right: 10px;
                    }
                }

                button {
                    background-color: var(--black);
                    border: 2px solid var(--black);
                    color: #ffffff;
                    transition: all 0.3s ease;
                    padding: 14px 20px;
                    font-weight: 400;
                    border-radius: 99px;
                    text-transform: uppercase;

                    &:hover {
                        background-color: var(--white)!important;
                        color: var(--black);
                    }
                }

                .upload-fotos-input {
                    position: absolute;
                    width: 1px;
                    height: 1px;
                    min-height: 0;
                    padding: 0;
                    margin: -1px;
                    border: 0;
                    overflow: hidden;
                    clip: rect(0, 0, 0, 0);
                    opacity: 0;
                }
            }
        }
    }
}

@media (max-width: 767.99px) {
    .seccao-formulario {
        &.seccao-formulario-v1 {
            .title {
                max-width: 100%;
                margin-bottom: 25px;
            }
        }
    }
}

/* Seccao Galeria */
.seccao-galeria {
    &.seccao-galeria-v1 {
        margin-bottom: 0!important;
        
        figure {
            height: 100%;
            margin: 0;

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        .galleryPhotoSlider .slick-track {
            display: flex;
        }

        .galleryPhotoSlider .slick-slide {
            height: auto;
            display: flex;
        }

        .galleryPhotoSlider .slick-slide > div {
            display: flex;
            width: 100%;
        }
    }
}

.counterAsideBlockAlt {
    padding-top: 50px;
    padding-bottom: 50px;

    li {
        margin-bottom: 0;
    }

    .cabCounterList .cclColumnWrap {
        flex-direction: column;

        .subtitle {
            margin-top: 10px;
            color: var(--secondary)!important;
        }

        .dataCount {
            color: var(--black);
        }
    }
}

@media (max-width: 767.99px) {
    .counterAsideBlockAlt {
        padding-top: 30px;
        padding-bottom: 30px;

        .cabCounterList {
            max-width: 400px;

            li {
                margin-bottom: 0;
                padding: 20px 10px;
                text-align: center;

                &:nth-child(odd) {
                    border-right: 1px solid rgba(0, 0, 0, 0.1);
                }

                &:nth-child(-n+2) {
                    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
                }
            }

            .cclColumnWrap {
                align-items: center !important;

                .textCount {
                    margin-right: 0 !important;
                    font-size: 34px;
                }

                .subtitle {
                    margin-top: 12px;
                    font-size: 11px;
                    letter-spacing: 0.5px;
                }
            }
        }
    }
}

#backToTop {
    background-color: var(--tertiary);

    &:hover {
        background-color: var(--secondary)!important;
    }
}

.aboutBlock {
    .btn {
        background-color: var(--white);
        border-color: var(--white);
        color: var(--black);

        &:hover {
            background-color: var(--secondary);
            border-color: var(--white);
            color: var(--white);
        }
    }
}

.sponsorsAside {
    .slick-track {
        display: flex;
    }

    .slick-slide > div {
        display: flex;
        width: 100%;
    }

    .slick-slide {
        display: flex;
        height: auto;

        .logoWrap {
            height: 100%;
            padding: 20px;
            opacity: 1;

            img {
                height: 100%;
                object-fit: contain;
            }
        }
    }
}

.seeAdvantageSection {
    .ftColumnClassic .icnWrap {
        background-color: var(--secondary);

        i {
            color: var(--white);
        }
    }

    h5 {
        color: var(--secondary);
    }
}

@media (max-width: 575.98px) {
    .seeAdvantageSection {
        .ftColumnClassic {
            padding-top: 12px !important;
            padding-bottom: 12px !important;
            margin-bottom: 12px !important;

            .icnWrap {
                width: 56px;
                height: 56px;
                font-size: 30px;
                margin-right: 16px !important;
            }

            h5 {
                margin-bottom: 6px !important;
            }

            p {
                margin-bottom: 0;
            }
        }
    }
}

#pageHeader.headerDark .mainNavigation .nav-link:hover, #pageHeader.headerDark .mainNavigation.navbar-nav .nav-link:hover {
    color: var(--tertiary)!important;
}

.servicesBlock {
    .slick-track {
        display: flex;
    }

    .slick-slide > div {
        display: flex;
        width: 100%;
    }

    .slick-slide div {
        height: 100%;

        .onHover {
            overflow-y: auto;
            height: calc(100% - 15px);
        }

        ul {
            margin-top: 15px!important;
            
            li {
                color: var(--secondary);

                &::before {
                    content: "\f111";
                    font-family: "Font Awesome 7 Free" !important;
                    font-size: 8px !important;
                    top: 10px;
                    color: var(--black);
                }
            }
        }
    }

    .slick-slide {
        display: flex;
        height: auto;
        margin: 0 10px;

        .imgHolder {
            height: 100%;

            img {
                height: 100%;
                object-fit: cover;
            }
        }
    }

    .esColumn .imgHolder:before {
        background-color: var(--secondary);
    }

    .esCaption {
        padding: 30px;
    }

    .esColumn {
        h3 {
            a {
                color: var(--white)!important;
            }
        }

        &:hover {
            h3 {
                a {
                    color: var(--secondary)!important;
                }
            }
        }
    }
}

.cabCounterList .textCount {
    color: var(--black);
}

.seccao-servicos-v1 {
    .slick-list {
        padding-top: 0;
    }
}

.seccao-contactos-v1 {
    h2 {
        margin-bottom: 40px;
    }

    .ardcColumn {
        padding: 20px;
        margin-bottom: 12px;

        i {
            color: var(--secondary);
        }

        a {
            color: var(--secondary);

            &:hover {
                color: var(--tertiary);
            }
        }

        h5 {
            color: var(--black);
        }
    }
}

@media (max-width: 767.98px) {
    .seccao-contactos-v1 {
        .ardcColumn {
            display: grid;
            grid-template-columns: 40px 1fr;
            column-gap: 16px;
            align-items: start;
            padding: 16px 20px;

            .icnWrap {
                grid-row: 1 / span 20;
                justify-content: center;
                margin-bottom: 0 !important;
                padding-top: 2px;
            }

            > * {
                grid-column: 2;
            }

            > .icnWrap {
                grid-column: 1;
            }

            h5 {
                margin-bottom: 6px !important;
            }

            address:last-child,
            p:last-child {
                margin-bottom: 0 !important;
            }
        }
    }
}

/* Modal */
.modal-backdrop.show {
    z-index: 9999;
    opacity: 0.7;
}

.modal {
    z-index: 99999;

    .modal-dialog {
        height: 100vh;
        margin-bottom: 0;
        margin-top: 0;

        .modal-content {
            top: 50%;
            transform: translateY(-50%);
            border-radius: 0;

            .modal-header {
                display: flex;
                align-items: center;
                padding: 16px 30px;

                .title {
                    margin: 0;
                    font-weight: 400;
                    font-size: 1.25rem;
                    line-height: 120%;
                }

                .btn-close {
                    i {
                        &:before {
                            display: none;
                        }
                    }
                }
            }

            .modal-body {
                padding: 30px;

                .content {
                }

                .viatura {
                    display: flex;
                    margin-bottom: 24px;

                    figure {
                        width: 30%;
                        margin: 0;
                        height: 150px;

                        img {
                            width: 100%;
                            height: 100%;
                            object-fit: cover;
                        }
                    }

                    .info {
                        width: 70%;
                        padding: 0 24px;

                        .titulo {
                            font-size: 1.125rem;
                            line-height: 130%;
                            font-weight: 400;
                            color: var(--secondary);
                            margin-bottom: 4px;

                            b {
                                font-weight: 400;
                            }
                        }

                        .info-tec {
                            display: flex;
                            align-items: center;
                            margin-bottom: 5px;

                            .divider {
                                font-size: 0.9rem;
                                color: var(--bar);
                                margin: 0px 5px;
                            }

                            span {
                                font-size: 1rem;
                                color: var(--secondary);
                                line-height: 100%;
                            }
                        }

                        .preco {
                            font-size: 1rem;
                            line-height: 100%;
                            color: var(--secondary);
                        }
                    }
                }

                .menu {
                    margin: 0;
                    padding: 0;
                    list-style: none;
                    display: flex;
                    flex-wrap: wrap;
                    justify-content: center;
                    gap: 12px;

                    .menu-item {
                        cursor: pointer;

                        span {
                            background-color: var(--secondary);
                            color: var(--white);
                            font-size: 1rem;
                            line-height: 100%;
                            display: flex;
                            align-items: center;
                            box-shadow: none;
                            padding: 14px 20px;
                            border: 1px solid var(--secondary);
                            border-radius: 0px;
                            outline: none;
                            white-space: nowrap;
                            text-transform: uppercase;
                            transition: all 0.3s ease;
                        }

                        &:hover {
                            span {
                                background-color: var(--white);
                                color: var(--secondary);
                            }
                        }
                    }
                }
            }

            .title {
                font-weight: 400;
                font-size: 1.25rem;
                line-height: 120%;
                margin-bottom: 8px;
                text-transform: none;
            }

            form {
                .form-group {
                    margin-bottom: 24px;

                    &:last-of-type {
                        margin-bottom: 0;
                    }
                }

                p {
                    font-size: 0.9rem;
                    line-height: 100%;
                    text-transform: uppercase;
                    font-weight: 300;
                    color: var(--black);
                }          

                input, textarea {
                    padding: 14px 20px;
                    border-radius: 0;
                    border: 2px solid var(--grey);
                    width: 100%;
                    font-size: 1.2rem;
                    line-height: 100%;
                    outline: none;
                    box-shadow: none;
                    min-height: 56px;

                    &:focus, &:active {
                        border-color: var(--secondary);
                    }
                }

                .nice-select {
                    padding: 6px 25px 6px 15px;
                    background-color: var(--white);
                    border: 1px solid var(--secondary);
                    border-radius: 0;
                    color: var(--secondary);
                    font-size: 1rem;
                    line-height: 100%;
                    display: flex;
                    align-items: center;
                    outline: none;
                    box-shadow: none;
                    width: 100%;
                    min-height: 54px;

                    .list {
                        min-width: 100%;
                        background-color: var(--white);
                        color: var(--secondary);
                        font-weight: 400;
                        font-size: 1rem;
                        line-height: 100%;
                        border-radius: 0;
                        border: 1px solid var(--secondary);
                    }
                }

                .form-checkbox {
                    display: flex;

                    input {
                        width: fit-content;
                        margin-right: 10px;
                    }
                }

                .input-checkbox {
                    display: flex;

                    input {
                        width: fit-content;
                        margin-right: 5px;
                    }
                }
            }

            .modal-footer {
                padding: 16px 30px;

                .btn-cancel {
                    border: 1px solid transparent;
                    color: var(--secondary);
                    font-size: 1rem;
                    line-height: 100%;
                    display: flex;
                    align-items: center;
                    box-shadow: none;
                    padding: 14px 20px;
                    border-radius: 0px;
                    outline: none;
                    white-space: nowrap;
                    text-transform: uppercase;
                    transition: all 0.3s ease;

                    &:hover {
                        border-color: var(--secondary);
                    }

                    &::before {
                        display: none;
                    }
                }

                .btn-submit {
                    background-color: var(--secondary);
                    color: var(--white);
                    font-size: 1rem;
                    line-height: 100%;
                    display: flex;
                    align-items: center;
                    box-shadow: none;
                    padding: 14px 20px;
                    border: 1px solid var(--secondary);
                    border-radius: 0px;
                    outline: none;
                    white-space: nowrap;
                    text-transform: uppercase;
                    transition: all 0.3s ease;

                    &:hover {
                        background-color: var(--white);
                        color: var(--secondary);
                    }

                    &::before {
                        display: none;
                    }
                }
            }
        }
    }
}

@media (max-width: 767.99px) {
    .modal {
        .modal-dialog {
            .modal-content {
                .modal-header {
                    padding: 14px 20px;
                }

                .modal-body {
                    padding: 20px;

                    .viatura {
                        figure {
                            width: 40%;
                        }

                        .info {
                            width: 60%;
                            padding: 0 12px;

                            .info-tec {
                                display: none;
                            }
                        }
                    }
                }

                .modal-footer {
                    padding: 14px 20px;
                }
            }
        }
    }
}
/* Anexar fotografias (modal de pedido de orçamento) */
#modal-form-solicita-orcamento .modal-dialog .modal-content {
    max-height: calc(100vh - 32px);

    /* o form envolve header/body/footer: tem de ser ele o contentor flex para o body ter scroll */
    form {
        display: flex;
        flex-direction: column;
        min-height: 0;
        overflow: hidden;
    }

    .modal-body {
        min-height: 0;
        overflow-y: auto;
    }

    /* campo de ficheiros invisível mas presente (com display:none alguns browsers, ex. Safari, não abrem o seletor pelo label) */
    .upload-fotos-input {
        position: absolute;
        width: 1px;
        height: 1px;
        min-height: 0;
        padding: 0;
        margin: -1px;
        border: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        opacity: 0;
    }
}

.upload-fotos {
    .upload-fotos-titulo {
        display: block;
        font-size: 1.125rem;
        line-height: 130%;
        color: var(--secondary);
        margin-bottom: 4px;

        span {
            font-size: 0.95rem;
            color: var(--grey);
        }
    }

    .upload-fotos-ajuda {
        font-size: 0.95rem;
        line-height: 130%;
        color: var(--primary);
        margin-bottom: 12px;
    }

    /* caixa tracejada: zona clicável + miniaturas + contador */
    .upload-fotos-caixa {
        background-color: var(--white);
        border: 2px dashed var(--grey);
        cursor: pointer;
        transition: all 0.3s ease;

        &:hover, &.arrastar {
            border-color: var(--secondary);
            background-color: var(--light-grey);
        }

        /* limite de fotos atingido: deixa de abrir o seletor */
        &.cheia {
            cursor: default;

            .upload-fotos-zona {
                cursor: default;
                opacity: 0.5;
            }
        }
    }

    .upload-fotos-zona {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 0;
        padding: 24px 16px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;

        i {
            font-size: 1.75rem;
            color: var(--tertiary);
        }

        strong {
            font-weight: 500;
            color: var(--secondary);
        }
    }

    .upload-fotos-limites {
        font-size: 0.9rem;
        line-height: 130%;
        color: var(--secondary);

        b {
            font-weight: 600;
        }
    }

    .upload-fotos-contador {
        padding: 0 16px 12px;
        text-align: center;
        font-size: 0.9rem;
        color: var(--grey);
    }

    .upload-fotos-lista {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
        margin: 0;
        padding: 0 16px 12px;
        list-style: none;

        &:empty {
            display: none;
        }

        li {
            position: relative;
            aspect-ratio: 1;
            cursor: default;
            overflow: hidden;
            background-color: var(--light-grey);

            img {
                display: block;
                width: 100%;
                height: 100%;
                object-fit: cover;
            }

            &.a-preparar::after {
                content: 'A preparar…';
                position: absolute;
                inset: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 0.8rem;
                color: var(--grey);
            }

            .upload-fotos-remover {
                position: absolute;
                top: 4px;
                right: 4px;
                width: 28px;
                height: 28px;
                padding: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 0.9rem;
                color: var(--white);
                background-color: rgba(0, 0, 0, 0.65);
                border: 0;
                border-radius: 50%;
                cursor: pointer;

                &:hover {
                    background-color: var(--black);
                }
            }
        }
    }

    .upload-fotos-erro {
        margin: 12px 0 0;
        font-size: 0.95rem;
    }
}

@media (max-width: 575.98px) {
    .upload-fotos .upload-fotos-lista {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Campo anti-spam (honeypot) - invisível para as pessoas */
.campo-hp {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Aviso de envio com sucesso (formulários em modais) */
.aviso-envio {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 32px);
    padding: 16px 24px;
    background-color: var(--secondary);
    color: var(--white);
    font-size: 1rem;
    line-height: 130%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translate(-50%, 20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;

    i {
        font-size: 1.25rem;
        color: var(--tertiary);
    }

    &.visivel {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Botões do cabeçalho - ícones e texto curto só aparecem em mobile */
.btnHd {
    .btnIcn,
    .txtCurto,
    .btnTextHover {
        display: none;
    }
}

@media (max-width: 991.99px) {
    #pageHeader.headerDark .hdActionsWrap {
        .btnHd {
            .btnText,
            .btnTextHover {
                display: flex !important;
                align-items: center;
                justify-content: center;
                gap: 7px;
                height: 100%;
                padding: 0 4px;
                font-size: 13px;
                white-space: nowrap;
                border: 0;
            }

            /* O :before do desktop só mostra texto; em mobile a face que roda é o .btnTextHover (ícone + texto) */
            &:before {
                display: none;
            }

            .btnTextHover {
                position: absolute;
                top: 0;
                right: 0;
                bottom: 0;
                left: 0;
                background-color: var(--white);
                opacity: 0;
                transform: translateY(50%) rotateX(90deg);
                transform-origin: right center 0;
                transform-style: preserve-3d;
                transition: transform .3s ease-in-out, opacity .3s ease-in-out;

                &,
                span,
                .btnIcn {
                    color: var(--black);
                }
            }

            &:hover .btnTextHover {
                opacity: 1;
                transform: translateY(0) rotateX(0deg);
            }

            .btnIcn {
                display: inline-block;
                font-size: 14px;
                color: var(--white);
            }

            .txtLongo {
                display: none;
            }

            .txtCurto {
                display: inline;
            }
        }

        /* Barra superior com 3 acções em colunas iguais */
        .btn-menu {
            position: absolute;
            top: 0;
            left: 0;
            right: auto;
            width: 33.333%;
            height: 40px;
            margin: 0 !important;
            background-color: var(--bar);
            border-right: 1px solid rgba(255, 255, 255, 0.08) !important;

            &:nth-of-type(2) {
                left: 33.333%;
            }

            &:last-of-type {
                left: 66.666%;
                border-right: 0 !important;
            }
        }

        /* Localização - botão-ícone redondo ao lado do menu */
        .location {
            position: relative;
            top: auto;
            left: auto;
            right: auto;
            order: 1;
            width: 44px;
            height: 44px;
            margin: 0 10px 0 0 !important;
            border: 1px solid rgba(255, 255, 255, 0.35) !important;
            border-radius: 50%;

            .btnText,
            .btnTextHover {
                padding: 0;
                border-radius: 50%;
            }

            .btnIcn {
                font-size: 17px;
            }
        }

        /* Menu - linhas brancas, sem fundo */
        .burger-menu {
            order: 2;
            width: 44px;
            height: 44px;
            margin: 0 !important;
            background-color: transparent;

            &:before,
            &:after,
            .navbar-toggler-icon {
                left: 10px;
                right: 10px;
                width: auto;
                height: 2px;
                background-color: var(--white);
            }

            /* Linhas espaçadas 8px (13/21/29) para ficarem iguais com zoom do Windows a 125%/150% */
            &:before {
                top: 13px;
            }

            &:after {
                bottom: 13px;
            }

            /* "background" (e não só a cor) para anular o SVG de linhas escuras do bootstrap (.navbar-light .navbar-toggler-icon) */
            .navbar-toggler-icon {
                top: 21px;
                background: var(--white);
            }
        }
    }
}

@media (min-width: 576px) and (max-width: 991.99px) {
    #pageHeader.headerDark .hdActionsWrap .btn-menu {
        .txtLongo {
            display: inline;
        }

        .txtCurto {
            display: none;
        }
    }
}