/*
Theme Name: critec
Theme URI: https://critec.pt/
Author: critec
Author URI: https://critec.pt/
Description: critec
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: critec
*/

:root {
    /* Primary brand colors */
    --color-primary: #145B98;
    /* Deep blue */
    --color-secondary: #1A811B;
    /* Deep green */

    /* Accent / variant colors */
    --color-primary-light: #2DAAE1;
    /* Light blue variant */
    --color-secondary-light: #96C11F;
    /* Light green variant */

    /* Backgrounds */
    --color-bg-default: #ffffff;
    /* Assuming white is your base */
    --color-bg-light: #E6EDF0;
    /* Lightest gray-blue bg */
    --color-bg-alt: #D5E8EF;
    /* Alternative section bg */
    --color-bg-accent: #E8EFD5;
    /* Accent/greenish bg */

    /* Text colors */
    --color-text-primary: var(--color-primary);
    /* Main body text */
    --color-text-accent: var(--color-secondary);
    /* Highlighted text, links, etc. */

    /* Primary Font */
    --font-primary: "DM Sans", sans-serif;
    --font-alt: "Oswald", sans-serif;

    --section-margin-top: 90px;
}

@media (max-width: 625px) {
    :root {
        --section-margin-top: 60px;
    }
}

@media (max-width: 576px) {
    :root {
        --section-margin-top: 30px;
    }
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

ol,
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    font-optical-sizing: none;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(1rem, 1.1vw, 1.25rem);
    line-height: clamp(21px, 1.3vw, 24px);
    color: var(--color-primary);
    background-color: var(--color-bg-default);
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--color-secondary);
}

svg {
    transition: all 0.2s ease-in-out;
}

/* ==========================================================================
   UTILS
   ========================================================================== */

.clr-primary-light {
    color: var(--color-primary-light);
}

.clr-secondary {
    color: var(--color-secondary);
}

.clr-secondary-light {
    color: var(--color-secondary-light);
}

.section-margin-top {
    margin-top: var(--section-margin-top);
    scroll-margin-top: var(--section-margin-top);
}

.border-radius-30 {
    border-radius: 30px;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

.fs-54 {
    font-size: clamp(1.35rem, 4.5vw, 3.375rem);
    line-height: clamp(28px, 5vw, 82px);
    font-weight: 300;
}

.fs-46 {
    font-size: clamp(1.175rem, 3.2vw, 2.875rem);
    line-height: clamp(36px, 3.2vw, 46px);
    font-weight: 300;
}

.fs-36 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    /* 24px → 36px */
    line-height: clamp(28px, 3.5vw, 44px);
    /* adjust to match */
}

.fs-34 {
    font-size: clamp(1.375rem, 1.8vw, 2.125rem);
    line-height: clamp(24px, 2vw, 32px);
}

.fs-32 {
    font-size: clamp(1.25rem, 1.7vw, 2rem);
    line-height: clamp(24px, 2.2vw, 38px);
}

.fs-24 {
    font-size: clamp(1.125rem, 1.5vw, 1.5rem);
    line-height: clamp(24px, 2vw, 30px);
}

.fs-20 {
    font-size: clamp(1rem, 1.1vw, 1.25rem);
    line-height: clamp(21px, 1.3vw, 24px);
}

.fs-18 {
    font-size: clamp(0.875rem, 1.1vw, 1.125rem);
    line-height: clamp(19px, 1.3vw, 22px);
}

.fs-16 {
    font-size: clamp(0.875rem, 1.1vw, 1rem);
    line-height: clamp(19px, 1.3vw, 21px);
}

h1.fs-54 {
    line-height: clamp(32px, 5vw, 72px) !important;
}

.font-alt {
    font-family: var(--font-alt);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.section-title.has-dot {
    display: flex;
    align-items: center;
    gap: 30px;
}

.section-title.has-dot::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    /* matches text color */
    border-radius: 50%;
}

@media (max-width: 768px) {
    .section-title.has-dot {
        gap: 24px;
    }

    .section-title.has-dot::before {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

/* ---------- Ícones Contactos ----------   */
.icon-outer-circle {
    width: 30px;
    height: 30px;
    aspect-ratio: 1 / 1;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: grid;
    place-content: center;
    transition: border 0.2s ease-in-out;
}

.icon-outer-circle i {
    font-size: 12px;
    line-height: 15px;
}

a:hover>.icon-outer-circle {
    border-color: var(--color-secondary);
}

/* ---------- Ícones Setas ---------- */
.icon-arrow {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .icon-arrow {
        width: 30px;
        height: 30px;
    }
}

.icon-arrow.right {
    transform: rotate(0deg);
}

.icon-arrow.left {
    transform: rotate(180deg);
}

.icon-arrow.top-right {
    transform: rotate(-45deg);
}

/* ---------- Link com seta ---------- */
.link-arrow {
    width: fit-content;
    display: flex !important;
    align-items: center;
    gap: 16px;
    font-size: clamp(1rem, 1.5vw, 1.5rem) !important;
    line-height: clamp(24px, 2vw, 30px) !important;
    text-decoration: none;
    color: var(--color-primary) !important;
    transition: color 0.2s ease-in-out;
}

.link-arrow:hover {
    color: var(--color-secondary) !important;
}

.link-arrow.white {
    color: #fff !important;
}

.link-arrow.white:hover,
.link-arrow.white:hover svg {
    color: var(--color-primary-light) !important;
}

button.link-arrow {
    background: none;
    border: none;
    padding: 0;
}

/* ---------- Gradientes ---------- */
.section-gradient {
    overflow-x: clip;
    overflow-y: visible;
    --x: 0px;
    --y: 0px;
}

.gradient-bg-primary {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: transparent radial-gradient(closest-side at 50% 50%, #D5E8EF 0%, #D5E8EF00 100%) 0% 0% no-repeat padding-box;
    opacity: 1;
    pointer-events: none;
}

.gradient-bg-secondary {
    content: '';
    position: absolute;
    width: 900px;
    height: 900px;
    background: transparent radial-gradient(closest-side at 50% 50%, #96C11F 0%, #96C11F00 100%) 0% 0% no-repeat padding-box;
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 625px) {
    .gradient-bg-primary {
        width: 450px;
        height: 450px;
    }

    .gradient-bg-secondary {
        width: 550px;
        height: 550px;
    }
}

/* Subtle Floating Motion */
/* Make sure gradients are layered correctly */
.gradient-bg-primary,
.gradient-bg-secondary {
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

.gradient-bg-primary {
    background: radial-gradient(closest-side at 50% 50%, rgb(192, 223, 234) 0%, #D5E8EF00 100%);
    animation: float-primary 6s ease-in-out infinite;
}

.gradient-bg-secondary {
    background: radial-gradient(closest-side at 50% 50%, #96C11F 0%, #96C11F00 100%);
    animation: float-secondary 4s ease-in-out infinite;
}

@keyframes float-primary {

    0%,
    100% {
        transform: translate(0, 0) scale(0.8);
    }

    25% {
        transform: translate(80px, -40px) scale(1.15);
    }

    50% {
        transform: translate(150px, 40px) scale(1.05);
    }

    75% {
        transform: translate(-60px, 80px) scale(1.1);
    }
}

@keyframes float-secondary {

    0%,
    100% {
        transform: translate(0, 0) scale(0.8);
    }

    25% {
        transform: translate(-100px, 40px) scale(1.2);
    }

    50% {
        transform: translate(80px, -80px) scale(1.1);
    }

    75% {
        transform: translate(-40px, -100px) scale(1.15);
    }
}

.gradient-bg-primary.homepage {
    top: -60px;
    left: -100px;
    transform: translateX(-50%);
}

.gradient-bg-primary.empresa {
    top: calc(-1 * var(--section-margin-top));
    right: 200px;
}

.gradient-bg-primary.servicos {
    top: calc(-1 * var(--section-margin-top));
    right: 200px;
}

.gradient-bg-secondary.homepage {
    top: -60px;
    left: -100px;
}

.gradient-bg-secondary.empresa {
    top: calc(-1 * var(--section-margin-top));
    right: -192px;
}

.gradient-bg-secondary.servicos {
    top: calc(-1 * var(--section-margin-top));
    right: -192px;
}

/* ---------- Banner (Conteúdo Centrado) ---------- */
.banner-content-center:not(#banner-ifs) img {
    width: 100%;
    min-height: 300px;
    max-height: 850px;
    object-fit: cover;
    border-radius: 30px;
}

@media (max-width: 1920px) {
    .banner-content-center:not(#banner-ifs) img {
        max-height: 700px;
    }
}

@media (max-width: 1400px) {
    .banner-content-center:not(#banner-ifs) img {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .banner-content-center:not(#banner-ifs) img {
        min-height: 250px;
    }
}

.banner-content-center .content {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
}

@media (max-width: 768px) {
    .banner-content-center .banner-parallax {
        padding-inline: 32px;
    }
}

.banner-content-center span {
    max-width: 34ch;
}

.banner-content-center:not(#contactos-banner-social) a {
    display: inline-block;
    margin-top: 64px;
}

@media (max-width: 625px) {
    .banner-content-center a {
        margin-top: 32px;
    }
}

@media (max-width: 576px) {
    .banner-content-center span {
        max-width: 22ch;
    }
}

/* ---------- Banner Parallax ---------- */
.banner-parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@supports (background: -webkit-named-image(i)) {
    .banner-parallax {
        background-attachment: scroll !important;
    }
}

#clientes-banner-clientes .banner-parallax,
#contactos-banner-social .banner-parallax {
    min-height: 700px;
}

@media (max-width: 1400px) {

    #clientes-banner-clientes .banner-parallax,
    #contactos-banner-social .banner-parallax {
        min-height: 500px;
    }
}

@media (max-width: 1024px) {

    #clientes-banner-clientes .banner-parallax,
    #contactos-banner-social .banner-parallax {
        min-height: 350px;
    }
}

@media (max-width: 625px) {

    #clientes-banner-clientes .banner-parallax,
    #contactos-banner-social .banner-parallax {
        min-height: 250px;
    }
}

/* ---------- Secção Serviços ("O QUE NÓS OFEREÇEMOS") ---------- */
.grelha-servicos .servico-item {
    padding-block: 60px 55px;
    border-bottom: 1px solid var(--color-bg-alt);
}

@media (max-width: 625px) {
    .grelha-servicos .servico-item {
        padding-block: 40px 35px;
    }
}

/* ---------- Card Artigo Blog ---------- */
.blog-item {
    padding: 24px;
    border-radius: 30px;
    background-color: var(--color-bg-light);
    transition: background-color 0.2s ease-in-out;
}

.blog-item:hover {
    background-color: var(--color-bg-accent);
}

.blog-item .blog-thumbnail img {
    width: 100%;
    /* aspect-ratio: 77 / 100;
    object-fit: cover; */
}

.blog-item .blog-excerpt {
    max-width: 30ch;
}

@media (max-width: 576px) {
    .blog-item .blog-excerpt {
        max-width: unset;
    }
}

.blog-item .blog-content {
    padding-block: 36px;
}

/* ------------ Zoom Image Hover ---------- */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.5s ease-in-out;
}

.hover-zoom:hover img {
    transform: scale(1.04);
}

/* ---------- Banner Scroll Zoom ---------- */
.banner-zoom {
    transform-origin: center center;
    transition: transform 0.1s linear;
}

/* ---------- Page Loader ---------- */
loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

loader.active {
    visibility: visible;
    opacity: 1;
}

.loader {
    width: 48px;
    height: 64px;
    position: relative;
    animation: split-vertical 1s ease-in infinite alternate;
}

.loader::before,
.loader::after {
    content: '';
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    left: 0;
    top: 0;
    transform: translateY(-10px);
    background: var(--color-secondary-light);
    opacity: 0.75;
    backdrop-filter: blur(20px);
}

.loader::after {
    top: auto;
    bottom: 0;
    background: var(--color-primary-light);
    transform: translateY(10px);
}

@keyframes split-vertical {

    0%,
    25% {
        height: 55px;
    }

    100% {
        height: 100px;
    }
}

/* ==========================================================================
   LAYOUT → HEADER
   ========================================================================== */
header {
    border-bottom: 1px solid var(--color-bg-alt);
}

header .menu-item.current-menu-item>a {
    color: var(--color-secondary);
}

.menu-item.contacts-link {
    margin-left: auto;
}

.nav-menu-gap {
    gap: 60px;
}

@media (max-width: 1600px) {
    .nav-menu-gap {
        gap: 40px;
    }
}

.contacts-link {
    background-color: var(--color-primary);
    border-radius: 100px;
    transition: background-color 0.2s ease-in-out;
}

.contacts-link>a {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #ffffff !important;
    padding: 14px 20px 14px 28px;
    transition: color 0.2s ease-in-out;
}

.contacts-link>a::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: currentColor;

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Retângulo_225' data-name='Retângulo 225' width='32' height='32' fill='none'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Grupo_311' data-name='Grupo 311' transform='translate(32) rotate(90)'%3E%3Cline id='Linha_40' data-name='Linha 40' y1='13.788' transform='translate(16 8.547)' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3Cg id='Grupo_307' data-name='Grupo 307'%3E%3Cg id='Grupo_306' data-name='Grupo 306' clip-path='url(%23clip-path)'%3E%3Cline id='Linha_41' data-name='Linha 41' y1='6.303' transform='translate(16 24.697)' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3C/g%3E%3C/g%3E%3Cpath id='Caminho_458' data-name='Caminho 458' d='M10.538,14.009,16,8.547l5.462,5.462' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3Cg id='Grupo_309' data-name='Grupo 309'%3E%3Cg id='Grupo_308' data-name='Grupo 308' clip-path='url(%23clip-path)'%3E%3Ccircle id='Elipse_29' data-name='Elipse 29' cx='15' cy='15' r='15' transform='translate(1 1)' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Retângulo_225' data-name='Retângulo 225' width='32' height='32' fill='none'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Grupo_311' data-name='Grupo 311' transform='translate(32) rotate(90)'%3E%3Cline id='Linha_40' data-name='Linha 40' y1='13.788' transform='translate(16 8.547)' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3Cg id='Grupo_307' data-name='Grupo 307'%3E%3Cg id='Grupo_306' data-name='Grupo 306' clip-path='url(%23clip-path)'%3E%3Cline id='Linha_41' data-name='Linha 41' y1='6.303' transform='translate(16 24.697)' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3C/g%3E%3C/g%3E%3Cpath id='Caminho_458' data-name='Caminho 458' d='M10.538,14.009,16,8.547l5.462,5.462' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3Cg id='Grupo_309' data-name='Grupo 309'%3E%3Cg id='Grupo_308' data-name='Grupo 308' clip-path='url(%23clip-path)'%3E%3Ccircle id='Elipse_29' data-name='Elipse 29' cx='15' cy='15' r='15' transform='translate(1 1)' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    transform: rotate(-45deg);
    transition: all 0.2s ease-in-out;
}

.contacts-link:hover {
    background-color: var(--color-bg-light);
}

.contacts-link:hover>a,
.contacts-link:hover>a::after {
    color: var(--color-primary) !important;
}

a.linkedin:hover {
    color: var(--color-bg-light) !important;
}

/* --- Hamburger --- */
.menu-toggle {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    height: 22px;
    cursor: pointer;
    z-index: 1001;
}

.menu-line {
    width: 30px;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
}

/* Morph to X */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 8px);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -8px);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-height, 80px);
    /* adjust to your header height */
    height: calc(100vh - var(--header-height, 80px));
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s 0.4s;
    z-index: 998;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-nav-list a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-nav-list a:hover {
    color: var(--color-primary);
}

/* Responsive visibility */
@media (min-width: 1200px) {
    .menu-toggle {
        display: none;
    }

    .mobile-menu {
        display: none;
    }
}

/* ==========================================================================
   LAYOUT → FOOTER
   ========================================================================== */

footer {
    padding-top: 90px;
}

@media (max-width: 625px) {
    footer {
        padding-top: 60px;
    }
}

footer .ifs-link {
    display: block;
    background-color: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    padding: 18px 32px;
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
    transition: all 0.15s ease-in-out;
}

footer .ifs-link:hover {
    background-color: var(--color-secondary-light);
    color: #fff !important;
    border-color: var(--color-secondary-light);
}

footer .company-link {
    display: flex;
    justify-content: space-between;
    padding: 18px 30px;
    border-radius: 10px;
    color: var(--color-primary);
    background-color: var(--color-bg-light);
    margin-bottom: 8px;
    transition: all 0.15s ease-in-out;
}

footer .company-link:hover {
    color: #fff !important;
    background-color: var(--color-primary);
}

.footer-border-row {
    padding-block: 32px;
    border-block: 1px solid var(--color-primary);
}

#menu-footer-menu>li:not(:first-child)>a {
    display: flex;
    align-items: center;
    gap: 16px;
}

#menu-footer-menu>li:not(:first-child)>a::before {
    content: "";
    display: block;
    width: 16px;
    height: 1px;
    background-color: var(--color-primary);
}

footer .linkedin-button {
    max-width: 300px;
    padding-right: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-primary);
    background-color: var(--color-bg-light);
    border-radius: 100px;
    transition: all 0.2s ease-in-out;
}

footer .linkedin-button>span {
    display: grid;
    place-content: center;
    height: 60px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background-color: var(--color-primary);
    color: #fff;
    transition: all 0.2s ease-in-out;
}

footer .linkedin-button:hover {
    color: #fff !important;
    background-color: var(--color-primary);
    border-radius: 100px;
}

footer .linkedin-button:hover svg {
    color: #fff;
}

footer .linkedin-button:hover>span {
    color: var(--color-primary);
    background-color: var(--color-bg-light);
}

#scrollToTop {
    background: none;
    border: none;
    padding: 0;
    color: var(--color-primary);
    transition: color 0.2s ease-in-out;
}

#scrollToTop:hover,
#scrollToTop:hover svg {
    color: var(--color-secondary);
}

/* ----- Secção Serviços ----- */
.service-item {
    border-radius: 30px;
    color: var(--color-primary) !important;
    transition: background-color 0.2s ease-in-out;
}

.service-item:hover {
    background-color: var(--color-bg-light);
}

@media (max-width: 1024px) {
    .service-item:hover {
        background: none;
    }
}

.service-item:hover .link-arrow {
    color: var(--color-secondary) !important;
}

.service-inner {
    padding-block: 60px 80px;
    border-bottom: 1px solid var(--color-bg-alt);
}

@media (max-width: 625px) {
    .service-inner {
        padding-block: 48px 60px;
    }
}

/* ----- Banner "Confiança..." ----- */
#home-confianca {
    width: 100%;
    min-height: 800px;
}

#home-confianca .content {
    position: absolute;
    inset: 200px 0 0 0;
    display: grid;
    justify-items: center;
}

#home-confianca .content span::before {
    content: '';
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-inline: auto;
    margin-bottom: 32px;
    background-color: #fff;
    display: block;
}

@media (max-width: 1400px) {
    #home-confianca {
        min-height: 500px;
    }

    #home-confianca .content {
        inset: 140px 0 0 0 !important;
    }
}

@media (max-width: 625px) {
    #home-confianca {
        min-height: 400px;
    }

    #home-confianca .content {
        inset: 100px 0 0 0 !important;
    }

    #home-confianca .content span::before {
        margin-bottom: 20px;
    }
}

/* ---------- Banner "Conhecimento Aplicado ---------- */
.banner-servicos .banner-parallax {
    min-height: 700px;
}

@media (max-width: 1400px) {
    .banner-servicos .banner-parallax {
        min-height: 500px;
    }
}

@media (max-width: 1024px) {
    .banner-servicos .banner-parallax {
        min-height: 400px;
    }
}

@media (max-width: 625px) {
    .banner-servicos .banner-parallax {
        min-height: 300px;
    }
}

/* ==========================================================================
   HOMEPAGE
   ========================================================================== */

/* ----- Slideshow ----- */
#slideshow {
    display: grid;
}

#slideshow .floating-images {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
}

#slideshow .floating-images .hover-zoom {
    border-radius: 30px;
    box-shadow: 0px 30px 30px #145B984D;
}

#slideshow .swiper-button-prev,
#slideshow .swiper-button-next {
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    color: var(--color-primary);
}

#slideshow .swiper-button-prev:hover,
#slideshow .swiper-button-next:hover {
    color: var(--color-secondary);
}

.swiper-pagination {
    gap: 12px;
}

.swiper-pagination .swiper-pagination-bullet {
    width: 30px;
    height: 2px;
    border-radius: 0;
    opacity: 1 !important;
    background-color: var(--color-primary) !important;
}

.swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: var(--color-secondary-light) !important;
}

.swiper-pagination .swiper-pagination-bullet:not(.swiper-pagination-bullet-active):hover {
    background-color: var(--color-secondary) !important;
}

.el-left-top {
    top: -7%;
    left: -45%;
    z-index: 2;
}

.el-left-bottom {
    top: -15%;
    left: -63%;
    z-index: 1;
}

.el-right-top {
    bottom: -15%;
    right: -20%;
    z-index: 3;
}

.el-right-bottom {
    bottom: -25%;
    right: -15%;
    z-index: 1;
}

@media (max-width: 1280px) {
    .el-left-top {
        width: 150px;
        top: -15%;
        left: -45%;
    }

    .el-left-bottom {
        top: -10%;
        left: -63%;
    }

    .el-right-top {
        width: 250px;
        bottom: -15%;
        right: -25%;
    }

    .el-right-bottom {
        width: 150px;
        bottom: -25%;
        right: -15%;
    }
}

@media (max-width: 992px) {

    #slideshow .floating-images {
        top: 32px;
    }
}

@media (max-width: 768px) {
    #slideshow {
        max-height: 650px !important;
        min-height: 500px !important;
    }

    .el-left-top {
        width: 100px;
    }

    .el-right-bottom {
        width: 100px;
    }

    .el-right-top {
        width: 170px;
    }
}

@media (max-width: 576px) {
    #slideshow {
        min-height: 100vh !important;
        max-height: unset !important;
    }

    #slideshow .navigation {
        top: 40% !important;
    }
}

.parallax-item {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* ----- Secção "DESDE 2017" ------ */
.image-in-text img {
    display: inline;
    margin-right: 6px;
    max-width: 284px;
    max-height: 50px;
    object-fit: contain;
    width: fit-content;
}

.image-in-text strong {
    font-weight: 700 !important;
}

@media (max-width: 768px) {
    .image-in-text img {
        display: block;
    }
}

/* ----- Secção Objetivos -----  */
.imagem-objetivos {
    max-height: 360px;
    border-radius: 30px;
}

@media (max-width: 991px) {
    .imagem-objetivos {
        max-height: 240px;
    }
}

.bloco-objetivo {
    --dot-width: 24px;
    --dot-spacing: 30px;
    padding: 95px calc(100px + var(--dot-width) + var(--dot-spacing));
    border-radius: 30px;
    background-color: var(--color-bg-light);
}

@media (max-width: 1600px) {
    .bloco-objetivo {
        padding: 78px calc(80px + var(--dot-width) + var(--dot-spacing));
    }

    #slideshow .floating-images {
        top: 40px;
    }
}

@media (max-width: 1400px) {
    .bloco-objetivo {
        padding: 64px calc(70px + var(--dot-width) + var(--dot-spacing));
    }
}

@media (max-width: 1200px) {
    .bloco-objetivo {
        padding: 48px 48px 48px calc(70px + var(--dot-width) + var(--dot-spacing));
    }
}

@media (max-width: 625px) {
    .bloco-objetivo {
        padding: 48px;
    }
}

@media (max-width: 425px) {
    .bloco-objetivo {
        padding: 32px 38px;
    }
}

.bloco-objetivo>p::before {
    content: '';
    display: block;
    width: var(--dot-width);
    height: var(--dot-width);
    position: absolute;
    left: calc(-1 * var(--dot-width) - var(--dot-spacing));
    top: 0;
    background-color: var(--color-primary);
    border-radius: 50%;
}

@media (max-width: 625px) {
    .bloco-objetivo>p::before {
        position: relative;
        left: 0;
        margin-bottom: 16px;
    }
}

.bloco-objetivo>p {
    max-width: 35ch;
    margin-bottom: 38px;
}

@media (max-width: 768px) {
    .bloco-objetivo>p {
        max-width: 42ch;
    }
}

/* ==========================================================================
   EMPRESA
   ========================================================================== */

/* ---------- Secção Sobre Nós ("EMPRESA") ---------- */
.empresa-texto {
    max-width: 66ch;
}

.empresa-texto strong {
    font-size: clamp(1.125rem, 1.2vw, 1.375rem);
    line-height: clamp(26px, 1.8vw, 29px);
}

.anchors-fixed-wrapper {
    position: fixed;
    top: calc(var(--section-margin-top) + 100px);
    left: 0;
    width: 100%;
    z-index: 100;
    pointer-events: none;
}

.anchors {
    width: fit-content;
    padding: 20px 32px;
    pointer-events: all;
}

.anchors a.active {
    color: var(--color-secondary-light);
}

.anchors a:not(.active) {
    text-decoration: underline;
}


.empresa-banner {
    display: flex;
    align-items: center;
    height: 600px;
    max-height: 600px;
    margin-block: 150px 35px;
    background-size: cover;
    background-position: center;
}

@media (max-width: 1400px) {
    .empresa-banner {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .empresa-banner {
        margin-block: 90px 0px;
    }
}

@media (max-width: 625px) {
    .empresa-banner {
        max-height: 300px;
    }
}

.empresa-banner span {
    line-height: clamp(36px, 5vw, 64px);
}

/* ---------- Secção Equipa ("EQUIPA") ---------- */
.equipa-membro img {
    object-fit: cover;
}

#empresa-equipa h2 {
    color: var(--color-secondary);
    margin-bottom: 90px;
}

@media (max-width: 1024px) {
    #empresa-equipa h2 {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {
    #empresa-equipa h2 {
        margin-bottom: 48px;
    }
}

@media (min-width: 1921px) {
    .equipa-membro.ceo img {
        max-height: 500px;
    }

    .equipa-membro img {
        max-height: 500px;
    }
}

@media (max-width: 1920px) {
    .equipa-membro img {
        height: 450px;
    }
}

@media (max-width: 1400px) {
    .equipa-membro img {
        height: 400px;
    }

    .equipa-membro.ceo img {
        max-height: 275px;
    }
}

@media (max-width: 768px) {
    .equipa-membro:not(.ceo) img {
        width: 230px !important;
        margin-inline: auto;
    }

    .equipa-membro.ceo img {
        max-height: 275px;
    }
}

@media (max-width: 625px) {
    .equipa-membro img {
        max-height: 320px;
    }
}

.equipa-membro .hover-zoom {
    margin-bottom: 32px;
}

.grelha-membros {
    row-gap: 65px;
}

.modal-body {
    font-size: 16px !important;
    color: #000 !important;
}

.logo-item {
    width: 100%;
    aspect-ratio: 1 / 1;
    padding: 16px;
    display: grid;
    place-content: center;
    border-radius: 30px;
    background-color: #fff;
    max-height: 160px;
    margin: 20px 0px;
}

#banner-ifs {
    height: 600px;
    max-height: 600px;
    background-color: var(--color-bg-alt);
}

#banner-ifs .content {
    padding-inline: 32px;
}

@media (max-width: 768px) {
    #banner-ifs {
        max-height: 450px;
    }
}

.reconhecimento-texto {
    max-width: 86ch;
}

/* ---------- Secção Testemunhos ---------- */
.testemunho-texto {
    max-width: 85ch;
    margin-inline: auto;
}

.swiper-testimonials-container {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    min-height: 800px;
    background-repeat: no-repeat;
    background-size: 100%;
}

@media (max-width: 1920px) {
    .swiper-testimonials-container {
        min-height: 650px;
    }
}

@media (max-width: 768px) {
    .swiper-testimonials-container {
        min-height: 400px;
        background-size: cover !important;
        padding: 32px !important;

    }
}

@media (max-width: 576px) {
    .swiper-testimonials-container {
        background-position: center !important;
    }
}

/* ==========================================================================
   AUDITORIA
   ========================================================================== */


/* ==========================================================================
   FORMAÇÃO
   ========================================================================== */

.formacao-item {
    padding-block: 30px;
    border-bottom: 1px solid var(--color-bg-alt);
}

.formacao-item.last-of-month {
    border-color: var(--color-secondary);
}

.formacao-item .duration {
    width: fit-content;
    padding: 10px 28px;
    border: 2px solid var(--color-bg-alt);
    border-radius: 15px;
}

.modalInscricao .modal-content {
    padding: 30px;
    border-radius: 30px;
    background-color: var(--color-bg-light);
}

#plano-de-formacao .plano-background {
    background-color: var(--color-bg-light);
    border-radius: 30px;
    padding: 60px 40px;
    overflow: hidden;
}

#plano-de-formacao .content {
    position: static;
}

#plano-de-formacao .contact {
    padding: 58px 84px 46px 46px;
}

/* ==========================================================================
   CLIENTES
   ========================================================================== */

/* ---------- Secção Introdução ("CLIENTES") ---------- */
#clientes-breve-descricao .logo-item-wrapper {
    display: flex;
}

.logo-item.client {
    width: 100%;
    height: 160px;
    min-height: 160px;
    padding: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item.client img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 1400px) {
    .logo-item.client {
        height: 130px;
        min-height: 130px;
    }
}

/* ==========================================================================
   CONTACTOS
   ========================================================================== */

/* ---------- Secção Formulário ---------- */
.contact-form-wrapper {
    padding-block: 60px;
    background-color: var(--color-bg-light);
}

@media (max-width: 1199px) {
    #contactos-formulario {
        background-color: var(--color-bg-light);
    }

    .contact-form-wrapper {
        border-radius: 0px !important;
        background-color: transparent !important;
    }
}

#fluentform_1 {
    font-family: var(--font-primary) !important;
    font-size: clamp(0.875rem, 1.1vw, 1rem) !important;
    line-height: clamp(19px, 1.3vw, 21px) !important;
}

.form-text-input input,
.form-text-input textarea {
    position: relative;
    padding: 20px 38px 20px 90px !important;
    color: var(--color-primary) !important;
    background-color: #fff;
    border: none !important;
    border-radius: 30px !important;
}

.form-text-input .ff-el-input--content {
    position: relative;
}

.form-text-input .ff-el-input--content::before,
.form-text-input .ff-el-input--content::before {
    content: '';
    width: 24px;
    height: 14px;
    position: absolute;
    left: 38px;
    top: 22px;
    font: normal normal normal 14px/17px 'Font Awesome 6 Pro';
    color: var(--color-primary-light);
    z-index: 1;
}

.form-text-input.name .ff-el-input--content::before {
    content: '\f007';
}

.form-text-input.email .ff-el-input--content::before {
    content: '\40';
}

.form-text-input.message .ff-el-input--content::before {
    content: '\e212';
}

.form-text-input.phone .ff-el-input--content::before {
    content: '\f095';
}

.form-text-input.course .ff-el-input--content::before {
    content: '\f19d';
}

.form-text-input input::placeholder,
.form-text-input textarea::placeholder {
    color: var(--color-primary) !important;
}

.ff-el-group.form-subject {
    display: flex;
    align-items: center;
    justify-content: center;
    /* center the whole block horizontally */
    gap: 2rem;
    /* spacing between label and radio group */
    width: fit-content;
    margin: 0 auto;
    /* center within the form */
}

.ff-el-input--label {
    width: fit-content !important;
    white-space: nowrap;
    padding: 0 !important;
}

/* By default: make inputs stack vertically (input + error) */
.ff-el-input--content {
    display: flex;
    flex-direction: column;
}

/* EXCEPTION: for radio groups, keep them inline */
.ff-el-group.form-subject .ff-el-input--content,
.ff-el-group.ff_list_4col .ff-el-input--content {
    flex-direction: row;
    gap: 1rem;
    margin-left: 0px !important;
}

@media (min-width: 992px) and (max-width: 1400px) {

    .ff-el-group.form-subject .ff-el-input--content,
    .ff-el-group.ff_list_4col .ff-el-input--content {
        flex-wrap: wrap;
    }
}

@media (max-width: 625px) {

    .ff-el-group.form-subject .ff-el-input--content,
    .ff-el-group.ff_list_4col .ff-el-input--content {
        flex-wrap: wrap;
    }

    .form-text-input input,
    .form-text-input textarea {
        padding: 20px 38px 20px 64px !important;
    }

    .form-text-input .ff-el-input--content::before,
    .form-text-input .ff-el-input--content::before {
        top: 22px;
        left: 28px;
        ;
    }
}

/* Container styling (optional) */
.ff-el-form-check {
    position: relative;
    display: flex !important;
    align-items: center;
}

.ff-el-form-check-label {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 0 !important;
}

/* Base radio input - hide default styling */
.ff-el-form-check-input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    cursor: pointer;
    background-color: transparent;
    border: none;
    outline: none;
    top: 0px !important;
}

/* Outer circle (always visible) */
.ff-el-form-check-input[type="radio"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

/* Checkmark when selected */
.ff-el-form-check-input[type="radio"]:checked::before {
    background-color: var(--color-primary);
}

.ff-el-form-check-input[type="radio"]:checked::after {
    content: '\f00c';
    /* Font Awesome checkmark */
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    color: #fff;
    position: absolute;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Checkbox base style */
.ff-el-form-check-input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    position: relative !important;
    width: 24px;
    height: 24px;
    margin-right: 10px !important;
    cursor: pointer;
    background-color: transparent;
    border: none;
    outline: none;
}

.fluentform .ff-el-group:before,
.fluentform .ff-el-group:after {
    content: none !important;
}

/* Unchecked state: white circle */
.ff-el-form-check-input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background-color: #fff;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

/* Checked state: filled circle + checkmark */
.ff-el-form-check-input[type="checkbox"]:checked::before {
    background-color: var(--color-primary);
}

.ff-el-form-check-input[type="checkbox"]:checked::after {
    content: '\f00c';
    /* Font Awesome checkmark */
    font-family: "Font Awesome 6 Pro";
    /* or "Font Awesome 6 Free" */
    font-weight: 900;
    color: #fff;
    position: absolute;
    font-size: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.ff-btn-submit {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: var(--color-primary) !important;
    margin-left: auto;
    transition: all 0.2s ease-in-out !important;
}

.ff-btn-submit::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    background-color: currentColor;

    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Retângulo_225' data-name='Retângulo 225' width='32' height='32' fill='none'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Grupo_311' data-name='Grupo 311' transform='translate(32) rotate(90)'%3E%3Cline id='Linha_40' data-name='Linha 40' y1='13.788' transform='translate(16 8.547)' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3Cg id='Grupo_307' data-name='Grupo 307'%3E%3Cg id='Grupo_306' data-name='Grupo 306' clip-path='url(%23clip-path)'%3E%3Cline id='Linha_41' data-name='Linha 41' y1='6.303' transform='translate(16 24.697)' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3C/g%3E%3C/g%3E%3Cpath id='Caminho_458' data-name='Caminho 458' d='M10.538,14.009,16,8.547l5.462,5.462' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3Cg id='Grupo_309' data-name='Grupo 309'%3E%3Cg id='Grupo_308' data-name='Grupo 308' clip-path='url(%23clip-path)'%3E%3Ccircle id='Elipse_29' data-name='Elipse 29' cx='15' cy='15' r='15' transform='translate(1 1)' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='32' height='32' viewBox='0 0 32 32'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Retângulo_225' data-name='Retângulo 225' width='32' height='32' fill='none'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Grupo_311' data-name='Grupo 311' transform='translate(32) rotate(90)'%3E%3Cline id='Linha_40' data-name='Linha 40' y1='13.788' transform='translate(16 8.547)' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3Cg id='Grupo_307' data-name='Grupo 307'%3E%3Cg id='Grupo_306' data-name='Grupo 306' clip-path='url(%23clip-path)'%3E%3Cline id='Linha_41' data-name='Linha 41' y1='6.303' transform='translate(16 24.697)' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3C/g%3E%3C/g%3E%3Cpath id='Caminho_458' data-name='Caminho 458' d='M10.538,14.009,16,8.547l5.462,5.462' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3Cg id='Grupo_309' data-name='Grupo 309'%3E%3Cg id='Grupo_308' data-name='Grupo 308' clip-path='url(%23clip-path)'%3E%3Ccircle id='Elipse_29' data-name='Elipse 29' cx='15' cy='15' r='15' transform='translate(1 1)' fill='none' stroke='currentColor' stroke-miterlimit='10' stroke-width='2'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    transform: rotate(-45deg);
    transition: color 0.2s ease-in-out;
}

@media (max-width: 1200px) {
    .ff-btn-submit::after {
        width: 28px;
        height: 28px;
    }
}

.ff-btn-submit:hover,
.ff-btn-submit:hover::after {
    color: var(--color-secondary) !important;
}

/* ---------- Banner LinkedIn ("Ligue-se mais") ---------- */
#contactos-banner-social span.linkedin {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: grid;
    place-content: center;
    background-color: var(--color-primary);
    color: #fff;
}

@media (max-width: 625px) {
    #contactos-banner-social span.linkedin {
        width: 90px;
        height: 90px
    }

    #contactos-banner-social span.linkedin i {
        font-size: 32px !important;
        line-height: 36px !important;
    }
}

.banner-social-descricao {
    max-width: 28ch;
}

.banner-social-descricao a {
    text-decoration: underline;
}

/* ==========================================================================
   BLOG
   ========================================================================== */

.blog-pagination .pagination {
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.blog-pagination .current {
    width: 30px;
    height: 30px;
    aspect-ratio: 1 / 1;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: grid;
    place-content: center;
    transition: border 0.2s ease-in-out;
}

.blog-pagination .next {
    margin-left: 60px;
}

.blog-pagination .previous {
    margin-right: 60px;
}

.blog-thumbnail {
    display: flex;
    align-items: flex-start;
    width: auto;
    height: 100%;
    max-height: 800px;
    margin-inline: auto;
    background: transparent;
    border-radius: 30px;
}

.single-blog-content img.aligncenter {
    display: block;
    float: none;
    margin: 0 auto 1em;
}

.single-blog-content img.alignleft {
    float: left;
    margin: 0 1.5em 1em 0;
}

.single-blog-content img.alignright {
    float: right;
    margin: 0 0 1em 1.5em;
}

/* clear the floats so content after doesn't wrap weirdly */
.single-blog-content::after {
    content: "";
    display: table;
    clear: both;
}