/* ===============
   Reset Básico
   =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #f9f9f9;
    padding-top: 0px;
}


/* ===============
   Navbar
   =============== */
.navbar {
    width: 100%;
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px 20px;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.00);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.5s ease, color 0.5s ease, backdrop-filter 0.5s ease, border-color 0.5s ease;
}

.logo {
    position: relative;
    width: 150px;
    height: auto;
}

.logo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    transition: opacity 0.6s ease;
}

.logo-branco {
    opacity: 1;
    z-index: 2;
}

.logo-preto {
    opacity: 0;
    z-index: 1;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .logo-branco {
    opacity: 0;
}

.navbar.scrolled .logo-preto {
    opacity: 1;
}


/* ===============
   Links de Navegação (Desktop)
   =============== */
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.2px;
    padding: 12px 0;
    position: relative;
    transition: all 0.4s ease;
    display: block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #e5c535;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-links a:hover::after,
.nav-links .active::after {
    opacity: 1;
    visibility: visible;
}

.navbar.scrolled .nav-links a {
    color: #333;
}

.nav-links a:hover {
    color: #e5c535;
    font-weight: 600;
}

.nav-links .active {
    color: #e5c535;
    font-weight: 600;
}

.navbar.scrolled .nav-links a:hover {
    color: #e5c535;
}


/* ===============
   Hamburger Menu (Mobile)
   =============== */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease;
}

.navbar.scrolled .hamburger {
    color: #333;
}


/* ===============
   Overlay e Menu Mobile
   =============== */
.overlay {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    display: none;
    z-index: 1000;
}

.nav-links.show+.close-menu {
    display: block;
}


/* ===============
   Media Queries – Menu (Mobile)
   =============== */
/* ===============
   Media Queries – Menu (Mobile)
   =============== */
/* ===============
   Media Queries – Menu (Mobile)
   =============== */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        flex-direction: column;
        background-color: white;
        padding: 0;
        list-style: none;
        visibility: hidden;
        transition: right 0.4s ease;
        z-index: 999;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-links li {
        margin: 0;
        border-bottom: 1px solid #eee;
    }

    /* Overlay corrigido */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s;
        z-index: 998;
        pointer-events: none;
        /* ← essencial! */
    }

    .overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links a {
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        display: block;
        padding: 16px 20px;
        transition: color 0.3s ease;
    }

    .nav-links a:hover {
        color: #007BFF;
    }

    /* Link ativo (página atual) */
    .nav-links .active {
        color: #e5c535 !important;
    }

    .navbar {
        padding: 16px 20px;
        position: fixed;
        top: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(6px);
        z-index: 1000;
    }



    .logo {
        height: 36px;
        display: flex;
        align-items: center;
    }

    body.no-scroll {
        overflow: hidden;
    }
}


/* ===============
   Hero Section
   =============== */
.hero {

    min-height: 85vh;
    background-image: url('Imagem/Sem-Título-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    padding: 20px 20px 0 20px;

    position: relative;
    z-index: 2;
    overflow: visible;
}

.hero-text {
    flex: 1;
    padding-right: 40px;
    position: relative;
}

.subtitle {
    font-size: 19px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 60px;
    opacity: 0.9;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 50px;
    margin-top: 30px;
    color: white;
    word-break: break-word;
    /* quebra automática se precisar */
}

.arrow-btn {
    background: #E8AD21;
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    margin-left: 20px;
}

.arrow-btn:hover {
    background: #005b9c;
}

.arrow-btn i {
    font-size: 20px;
    color: #fff !important;
    font-size: 18px;
    pointer-events: none;
}

.full-width-divider {
    position: absolute;
    top: 69%;
    left: 30px;
    width: 50vw;
    height: 1px;
    background-color: rgba(13, 69, 254, 0.2);
    border-top: 1px solid rgba(31, 130, 170);
    z-index: -1;
}

.options {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    justify-content: flex-start;
}

.option a {
    text-decoration: none;
}

.option-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    flex: 1;
    cursor: pointer;
    max-width: 300px;
    text-decoration: none;
    color: #333;
}

.option-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.option-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.option-card span {
    font-size: 16px;
    font-weight: 800;
    color: #000000;
    line-height: 1.4;
}

.arrow-down img {
    width: 0.9rem;
    height: 0.9rem;
    vertical-align: middle;
    margin-top: 60px;
}

.arrow-down {
    margin-left: auto;
    color: #0084d5;
    font-size: 18px;
}

.arrow-down i {
    font-size: 16px;
}

.hero-image {
    flex: 1;
    text-align: right;
    margin-left: 40px;
}

.hero-image img {
    width: 800px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    margin-top: 40px;
}

.hero-text,
.hero-image {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 0.6s ease;
}

.hero-text.visible,
.hero-image.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ===============
   Media Queries – Hero
   =============== */
@media (max-width: 992px) and (min-width: 769px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 100px;
    }

    .hero-text {
        padding-right: 0;
    }

    .hero-image img {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 0px;
        padding: 0px 0px;
    }

    .hero-text {
        padding-right: 0;
        order: 1;
    }

    .subtitle {
        font-size: 10px;
        margin-top: 90px;
    }

    .hero-text h1 {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .arrow-btn {
        order: 2;
        margin-left: 0;
        display: none;
    }

    .full-width-divider {
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        z-index: 0;
        display: none;
    }

    .options {
        display: none;
    }

    .hero-image {
        order: 4;
        text-align: center;
    }

    .hero-image img {
        max-width: 386px;
        margin-top: 90px;
    }
}

/* Secção de experiência */

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 0px 0px;

}

.experience-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.experience-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.experience-content h2 {
    font-size: 34px;
    font-weight: 600;
    color: #333;
    width: 100%;
    margin-bottom: 10px;
    margin: 0 auto;
}

.subtitle-container {
    display: flex;
    align-items: flex-start;
    /* mantém o alinhamento no topo */
    justify-content: flex-start;
    /* joga tudo para a esquerda */
    max-width: 600px;
    width: 100%;
    margin-top: 5px;
    /* um espacinho opcional abaixo do h2 */
}

.subtitle2 {
    font-size: 20px;
    color: #E8AD21;
    font-weight: 600;
    padding: 0;
    /* remove o padding que empurrava */
    text-transform: none;
}

.arrow-down2 {
    width: 40px;
    height: 40px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;

}

.arrow-down2 i {
    color: #E8AD21;
    font-size: 16px;
}

.arrow-down2:hover {
    background-color: #ccc;
}

@media (max-width: 768px) {
    .experience-content {
        text-align: center;
        padding: 0 20px;
        align-items: center;
        /* Centraliza conteúdo */
    }

    .experience-header {
        flex-direction: column;
        /* Coloca h2 e seta em coluna */
        align-items: center;
        gap: 15px;
        /* Espaço entre o h2 e a seta */
    }

    .subtitle-container {
        display: none;
        /* Some com o subtítulo no mobile */
    }

    .arrow-down2 {
        margin: 0;
        /* Remove margens extras */
    }

    .experience-content h2 {
        font-size: 1.8rem;
        text-align: center;
    }
}

/* Seção de serviços */
.services-section {
    padding: 10px 10px;
    background-color: #f9f9f9;
    margin-top: 0;
}

/* Container dos cards */
.services-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(341px, 1fr));
    gap: 40px;
    justify-items: center;
    /* Centraliza os cards horizontalmente dentro da coluna */
}

/* Card individual */
.service-card {
    width: 100%;
    /* Ocupa toda a largura da coluna */
    height: 360px;
    /* Altura fixa para manter alinhamento */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Alinha conteúdo à esquerda */
    justify-content: flex-start;
    /* Alinha conteúdo ao topo */
    text-align: left;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0091BA, #00607B);
    transition: all 0.3s ease;
    color: #fff;
    box-sizing: border-box;
    overflow: hidden;
    /* Evita que conteúdo ultrapasse o card */
}

.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #007BFF;
}

/* Ícone */
.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: block;
    margin-left: 0;
}

/* Título */
.service-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

/* Texto */
.service-description {
    font-size: 15px;
    color: #ffffff;
    line-height: 1.7;
    margin-bottom: 20px;
}

.arrow-right {
    width: 20px;
    height: 20px;
    color: #E88031;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.arrow-right:hover {
    color: #0056b3;
}

section,
.service-card,
.team-content,
.experience-content h2,
.subtitle2,
.feature-img-card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section,
.service-card,
.team-content,
.experience-content h2,
.subtitle2,
.feature-img-card {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Força o h2 a aparecer quando tiver .animate */
.experience-content h2.animate {
    opacity: 1;
    transform: translateY(0);
}

.animate {
    opacity: 1;
    transform: translateY(0);
}





@media (max-width: 768px) {
    .services-content {
        flex-direction: column;
        gap: 20px;
        /* Espaço entre os cards */
        align-items: center;
        /* Centraliza os cards */
    }

    .service-card {
        max-width: 90%;
        /* Faz os cards ocuparem quase toda a largura */
    }
}

/* ===============================
   SEÇÃO DE EQUIPA - PREMIUM
=================================*/

/* 🔹 Container Principal */
.team-section {
    padding: 120px 125px;
    /* maior espaçamento vertical */
    background-color: var(--section-bg);
    font-family: 'Inter', sans-serif;
}

/* 🔹 Layout da Secção */
.team-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
    /* 🔥 aqui está 80px */
}

/* ===============================
   IMAGEM
=================================*/
.team-image {
    width: 441px;
    /* 🔥 largura fixa */
    height: 308px;
    /* 🔥 altura fixa */
    overflow: hidden;
    transition: transform 0.3s ease;

    /* 🔥 corte diagonal no container */
    clip-path: polygon(0 0,
            /* canto superior esquerdo */
            100% 0,
            /* canto superior direito */
            100% 80%,
            /* desce um pouco antes do canto */
            80% 100%,
            /* corte diagonal */
            0 100%
            /* canto inferior esquerdo */
        );
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* mantém proporção sem distorcer */
    clip-path: inherit;
    /* aplica o mesmo corte diagonal */
}

/* efeito hover na imagem */
.team-image:hover {
    transform: scale(1.03);
    /* leve zoom */
}

/* ===============================
   TEXTO
=================================*/
.team-text {
    flex: 1;
    padding: 30px 0;
    max-width: 577px;
    min-height: 262px;
    /* 🔥 garante no mínimo a altura do Figma */
}

/* Título */
.team-text h2 {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
}

/* Subtítulo */
.team-text .subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
    font-weight: 500;
    text-transform: none;
    display: block;
    display: none;
}

/* Parágrafo */
.team-text p {
    font-size: 16px;
    line-height: 23px;
    /* não usa 1.9, usa em px igual ao Figma */
    font-weight: 400;
    /* regular */
    color: #666;
    margin-bottom: 30px;
}

.team-text span {
    color: #E8AD21;
    /* mantém azul */
    font-weight: 700;
    /* se queres dar mais destaque */
}

.learn-more-btn {
    width: 145px;
    height: 46px;
    font-size: 15px;
    font-weight: 600;
    color: #E8AD21;
    background-color: transparent;
    border: 2px solid #E8AD21;
    border-radius: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    /* garante posição pra hover */
    overflow: hidden;
    /* se fores usar efeitos */
}

/* efeito hover elegante */
.learn-more-btn:hover {
    background-color: #E8AD21;
    /* fundo dourado */
    color: #fff;
    /* texto branco */
    border-color: #E8AD21;
    /* borda dourada */
}


/* efeito hover */
.learn-more-btn:hover {
    background-color: #E8AD21;
    color: #fff;
    border-color: #E8AD21;
}

/* efeito ripple suave ao clicar */
.learn-more-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 8px;
}




.learn-more-btn:active::after {
    opacity: 1;
    transition: 0s;
}

/* ===============================
   RESPONSIVIDADE
=================================*/
@media (max-width: 1200px) {
    .team-content {
        gap: 50px;
    }

    .team-image {
        width: 420px;
        height: 300px;
    }
}

@media (max-width: 992px) {
    .team-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .team-image {
        width: 80%;
        height: auto;
        border-radius: var(--border-radius);
    }

    .team-text {
        padding-top: 1px;
        text-align: left;
        /* garante que todo o conteúdo fica à esquerda */
    }
}

@media (max-width: 576px) {
    .team-section {
        padding: 60px 0px;
    }

    .team-text h2 {
        font-size: 20px;
        text-align: left;
        /* Alinha o texto à esquerda */
    }

    .team-text .subtitle {
        font-size: 14px;
    }

    .team-text p {
        font-size: 13px;
        line-height: 1.7;
        text-align: left;
    }

    .learn-more-btn {
        width: 100%;
        /* ocupa largura total em mobile */
        max-width: 250px;
        /* mas não fica gigante demais */
        margin: 0 auto;
        /* centraliza */
        padding: 12px 20px;
        font-size: 14px;
    }

    @media (max-width: 992px) {
        .learn-more-btn {
            width: auto;
            /* não força 145px em telas pequenas */
            height: auto;
            /* altura acompanha o padding */
            padding: 12px 24px;
            /* ajusta o respiro */
            font-size: 14px;
        }
    }
}



/* ===============================
   SEÇÃO DE ESTATÍSTICAS
=============================== */
.stats-section {
    position: relative;
    min-height: 600px;
    padding: 170px 20px;
    color: white;
    overflow: hidden;
    /* Mantém a imagem dentro dos limites da seção */
}

.stats-bg {
    position: absolute !important;
    top: -30%;
    height: 160%;
    /* CORREÇÃO: Aumenta a largura para cobrir a área visível em qualquer rolagem/zoom */
    width: 110%;
    left: -5%;
    /* CORREÇÃO: Centraliza o elemento extra-largo */

    background: url('Imagem/es.png') center center no-repeat;
    background-size: cover;

    /* Adicione estas linhas para performance */
    z-index: 1;
    will-change: background-position, transform;

}


/* Conteúdo */
.stats-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;

    /* Grid de 2 colunas */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    padding: 0 20px;
    box-sizing: border-box;
    overflow: visible;

}

.stats-content>.stat-card:nth-child(1) {
    grid-row: 1 / span 2;
}

/* Cards */
.stat-card {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    border-radius: 15px;
    /* Manter o arredondamento */

    transition: all 0.3s ease;
    min-height: 180px;
    word-wrap: break-word;
    overflow: hidden;
    color: white;
}

.stat-card.animate-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.4s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.6s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.8s;
}

/* Primeiro card: fundo branco */
.stat-card:first-child {
    display: flex;
    /* transforma em flex container */
    flex-direction: column;
    /* organiza o conteúdo verticalmente */
    justify-content: center;
    /* centraliza verticalmente */
    align-items: flex-start;
    /* mantém o texto à esquerda */

    background: linear-gradient(135deg, #0091BA, #00607B);
    color: white;
    text-align: left;
    box-shadow: none;
    padding: 40px;
    border-radius: 15px 0 0 15px;

}

/* Outros cards: fundo transparente */
.stat-card:not(:first-child) {
    /* Cor de fundo transparente/clara (ajuste o valor de 0.2 para o tom da imagem) */
    background: rgba(0, 0, 0, 0.2);
    color: white;
    text-align: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Efeito de vidro fosco (opcional, mas moderno) */

    /* Arredondamento específico para os cards de dados */
    /* Card superior-direito (2º filho) */
    &:nth-child(2) {
        border-radius: 0 15px 0 0;
    }

    /* Card inferior-direito (4º filho) - o 3º é o de Faturas */
    &:nth-child(4) {
        border-radius: 0 0 15px 0;
    }

    /* Garante que o texto seja centralizado para os dados */
    justify-content: center;
}

/* Hover para os cards transparentes */
.stat-card:not(:first-child):hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Números e texto */
.stat-number {
    font-size: 3rem;
    /* Aumenta o tamanho da fonte para os números */
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-text {
    font-size: 18px;
    /* Texto dos dados um pouco maior */
    line-height: 1.5;
    font-weight: 300;
}

/* animação que estava faltando */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* garante que começa escondido */
.stat-card {
    opacity: 0;
}

.stat-card.animate-in {
    opacity: 1;
    animation: fadeInUp 0.8s ease-out forwards;
}


/* ===============================
   RESPONSIVIDADE
===============================*/
@media (max-width: 992px) {
    .stats-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .stats-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card:first-child,
    .stat-card:not(:first-child) {
        text-align: center;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-text {
        font-size: 14px;
    }
}




/* seção soçução */

.solucao-header2 {
    display: flex;
    justify-content: space-between;
    /* botão continua à direita */
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;

}

.solucao {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.solucao-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.solucao-content h2 {
    font-size: 30px;
    font-weight: 600;
    color: #333;
    width: 35%;
    /* limita a largura do H2 */
    margin: 0;
    word-wrap: break-word;
    /* garante que quebre linhas */
}


.botao {
    width: 40px;
    height: 40px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;

}

.botao i {
    color: #0084d5;
    font-size: 16px;
}

.botao:hover {
    background-color: #ccc;
}


/* =====================
   Responsivo para mobile
===================== */
@media (max-width: 768px) {
    .solucao-header2 {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 10px;
        /* espaço entre h2 e botão */
    }

    .solucao-content h2 {
        font-size: 24px;
        flex: 1;
        /* ocupa todo o espaço disponível */
        margin: 0;
    }

    .botao {
        /* fica na direita naturalmente */
        flex-shrink: 0;
        /* impede que o botão encolha */
    }
}


/* ==========================
   Seção de Serviços Profissional
========================== */
.section-features-img {
    flex: 1;
    text-align: left;
    /* Borda mais leve */
    padding: 10px 30px;
    /* Mais espaço interno */
    /* Fundo branco puro */
    box-shadow: none;
    /* Sem sombra */
    transition: all 0.3s ease;
    position: relative;
    /* Para futuros elementos decorativos */
}


.features-img-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, 354px);
    /* largura fixa dos cards */
    gap: 50px;
    /* distância entre cards */
    justify-content: center;
    /* centraliza os cards na grid */

}

.feature-img-card {
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: linear-gradient(135deg, #0091BA, #00607B);
    display: flex;
    flex-direction: column;
    width: 354px;
    height: 495px;
    /* altura fixa */
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    border-radius: 8px;


}

.feature-img-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    border: 1px solid #ddd;
}

.feature-img-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.feature-img-card:hover {
    transform: translateY(-5px) scale(1.02);

    /* Realce da borda */
    box-shadow:
        0 8px 25px rgba(0, 123, 255, 0.1),
        /* Sombra azul vibrante */
        0 0 15px rgba(0, 0, 0, 0.1),
        /* Sombra escura para profundidade */
        inset 0 0 10px rgba(0, 0, 0, 0.1);
    /* Mantém a sombra interna */
    /* sombra sutil azul */
}

.feature-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.feature-img-card:hover .feature-img {
    transform: scale(1.05);
}

.feature-img-card::before {
    content: '';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 12px;
    height: 12px;
    background-color: #007BFF;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
    /* garante que fique acima do card */
}

.feature-img-card:hover::before {
    opacity: 1;
    transform: scale(1.5);
    /* efeito de crescimento sutil */
}

.feature-img-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    flex: 1;
    /* garante que o conteúdo use toda altura disponível */
}

.feature-img-title {
    font-size: 26px;
    /* Um pouco maior para mais impacto */
    font-weight: 700;

    /* MUDANÇA: Use um branco mais claro ou um tom levemente azulado para o título */
    color: #FFFFFF;

    margin-bottom: 8px;
    /* Reduza o espaçamento para aproximar do texto */

}

.feature-img-desc {
    font-size: 18px;
    /* Um pouco menor para melhor leitura */
    font-weight: 300;

    /* MUDANÇA: Use um branco suave para a descrição (melhora a legibilidade no escuro) */
    color: #E0E0E0;
    line-height: 1.6;
    /* Ajuste sutil no espaçamento entre linhas */
    margin-bottom: 20px;
}

.arrow-img-icon {
    /* Mantenha a cor primária (amarelo/laranja) */
    color: #E8AD21;
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: block;
    margin-right: auto;
    margin-left: 0;

    /* NOVO: Adiciona uma transição para a cor para suavizar o hover */
    transition: transform 0.3s ease, color 0.3s ease;
}

.arrow-img-icon a {
    /* HERDA A COR DO PAI OU DEFINE A COR INICIAL */
    color: #E8AD21;
    /* Cor inicial: Amarelo/Laranja */
    display: block;
    /* O link ocupa o espaço total do div pai */
    transition: transform 0.3s ease, color 0.3s ease;
}

.arrow-img-icon a:hover {
    /* MUDANÇA DE COR: Use a cor primária azul no hover */
    color: #007BFF;

    /* MOVIMENTO: A seta se move para a direita */
    transform: translateX(8px);
}

.arrow-img-icon:hover {
    /* MUDANÇA: Use um tom de cor mais próximo do card, como o azul primário */
    color: #007BFF;
    transform: translateX(8px);
    /* Aumente um pouco o movimento */
}


@media (max-width: 768px) {

    /* ------------------------------------- */
    /* 1. Grade: Uma única coluna vertical */
    /* ------------------------------------- */
    .features-img-grid {
        /* Muda para 1 coluna */
        grid-template-columns: 1fr;
        /* Diminui a distância entre cards em mobile */
        gap: 25px;
        /* Remove o justify-content: center, mas o 1fr já centraliza */
        padding: 0 20px;
        /* Adiciona padding lateral para não colar nas bordas */
    }

    /* ------------------------------------- */
    /* 2. Cards: Largura 100% e Altura Flexível */
    /* ------------------------------------- */
    .feature-img-card {
        /* Ocupa a largura total da coluna */
        width: 100%;
        /* Remove a altura fixa para o conteúdo fluir */
        height: auto;
    }

    /* ------------------------------------- */
    /* 3. Imagem: Garante que a imagem continue responsiva */
    /* ------------------------------------- */
    .feature-img {
        /* Garante que a altura da imagem seja mantida ou ajustada se necessário */
        height: 180px;
    }

    /* ------------------------------------- */
    /* 4. Alinhamento: Texto à ESQUERDA (como solicitado) */
    /* ------------------------------------- */
    .feature-img-content {
        /* Garante que o alinhamento de todo o conteúdo interno seja à esquerda */
        text-align: left;
    }

    .feature-img-title,
    .feature-img-desc {
        /* Garante alinhamento à esquerda para os textos principais */
        text-align: left;
    }

    /* ------------------------------------- */
    /* 5. Ícone: Alinhamento da Seta à Esquerda */
    /* ------------------------------------- */
    .arrow-img-icon {
        /* Alinha o ícone à esquerda no mobile */
        margin-left: 0;
        margin-right: auto;
    }
}


/* Seção de equipa com fundo de imagem */
.section-experts-bg {
    margin-top: 120px;
    padding: 150px 0;
    background-image: url('Imagem/Sem-Título-1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
    /* Importante para o layout */
}

.section-experts-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.1);
    /* 40% de escurecimento */
    z-index: 1;
    flex-wrap: wrap;
    /* permite quebrar em telas menores */

}



.experts-bg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 60px;
    /* Aumente o espaço entre o texto e as imagens */
    align-items: center;
    position: relative;
    z-index: 2;
    /* Garante que fique acima do overlay */

}

.experts-bg-text {
    flex: 1;
    text-align: left;
    min-width: 300px;
    /* evita que fique muito estreito */
}

.experts-bg-text h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #E8AD21;
}

.experts-bg-subtitle {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
}

.btn-experts-bg {
    background: transparent;
    color: #E8AD21;
    border: 1px solid #E8AD21;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;

}

.btn-experts-bg:hover {
    color: white;
    background: #E8AD21;
}

.experts-bg-images {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    /* permite que as imagens empilhem */
    justify-content: center;

}

.expert-bg-img {
    width: 300px;
    /* fixa largura */
    height: 450px;
    /* fixa altura */
    object-fit: cover;
    /* mantém proporção, corta o excesso */
    flex-shrink: 0;
    margin-top: -220px;
    /* sobe a imagem */
    z-index: 2;
    border-radius: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.expert-bg-card {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    padding-top: 170px;
    /* espaço para a imagem “saltar” */
    padding-bottom: 0px;
    padding-left: 20px;
    padding-right: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    min-width: 300px;
    /* evita colapso em telas pequenas */

}


.expert-bg-img:hover {
    transform: translateY(-5px);
    /* efeito de “levantar” */

}


/* Responsividade */

/* Tablet (até 992px) */
@media (max-width: 992px) {
    .experts-bg-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .experts-bg-text {
        text-align: left;
        max-width: 600px;

    }

    .experts-bg-subtitle {
        font-size: 20px;
    }

    .experts-bg-text h2 {
        font-size: 32px;
    }

    .experts-bg-images {
        justify-content: center;
    }
}

/* Celular grande (até 768px) */
@media (max-width: 768px) {
    .experts-bg-text h2 {
        font-size: 28px;
    }

    .experts-bg-subtitle {
        font-size: 18px;
    }

    .expert-bg-img {
        width: 250px;
        height: 375px;
        margin-top: -180px;
    }

    .expert-bg-card {
        min-height: 350px;
        padding-top: 150px;
    }
}

/* Celular pequeno (até 480px) */
@media (max-width: 480px) {
    .experts-bg-text h2 {
        font-size: 24px;
    }

    .experts-bg-subtitle {
        font-size: 16px;
    }

    .btn-experts-bg {
        padding: 8px 16px;
        font-size: 13px;
    }

    .expert-bg-img {
        width: 220px;
        height: 330px;
        margin-top: -150px;
    }

    .expert-bg-card {
        min-height: 320px;
        padding-top: 130px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .experts-bg-images {
        gap: 20px;
    }
}








.contact-section {
    position: relative;
    padding: 120px 0;
    background-image: url('Imagem/es.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: #fff;
    overflow: hidden;
}


.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 13, 13, 0.7);
    /* imagem com 14% de visibilidade */
    z-index: -1;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 37%;
}

.contact-content h2 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 0;
    /* sem espaço embaixo */
}

.contact-content .subtitle {
    font-size: 20px;
    color: #ffffff;
    margin-top: 5px;
    margin-bottom: 20px;
    text-transform: none;
    font-weight: 100;
    /* leve */
}

.highlight {
    color: #E8AD21;
    font-weight: 600;
}

.contact-btn {
    background: #E8AD21;
    color: #ffffff;
    border: 1px solid #E8AD21;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 520;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    border-color: #E8AD21;
    color: #E8AD21;
}

.contact-content .description {
    font-size: 14px;
    color: #999;
    margin: 20px auto;
    width: 70%;
    text-align: center;
    display: block;
}

/* ============================== */
/* RESPONSIVIDADE DA CONTACT SECTION */
/* ============================== */

/* Tablets e laptops pequenos */
@media (max-width: 992px) {
    .contact-section {
        padding: 80px 0;
        /* menos altura */
    }

    .contact-content {
        width: 70%;
        /* mais largo no centro */
    }

    .contact-content h2 {
        font-size: 32px;
    }

    .contact-content .subtitle {
        font-size: 18px;
    }

    .contact-content .description {
        width: 85%;
        font-size: 13px;
    }

    .contact-btn {
        padding: 12px 18px;
        font-size: 15px;
    }
}

/* Telemóveis */
@media (max-width: 576px) {
    .contact-section {
        padding: 60px 0;
        /* menos altura */
    }

    .contact-content {
        width: 90%;
        padding: 0 10px;
    }

    .contact-content h2 {
        font-size: 26px;
        line-height: 1.2;
    }

    .contact-content .subtitle {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .contact-content .description {
        width: 100%;
        font-size: 12px;
        margin: 15px auto;
    }

    .contact-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
}


/* ===========================
   RODAPÉ ESTILIZADO (Texto à esquerda)
=========================== */
.footer-section {
    padding: 150px 0 30px;
    background-color: white;
    color: #333;
    border-top: 0px solid #ddd;
    font-family: 'Inter', sans-serif;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    /* Responsivo */
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
    /* Força alinhamento à esquerda */
}

.footer-logo {
    flex: 1 1 250px;
}

.logo-img {
    width: 180px;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.company-info {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    max-width: 280px;
}

.footer-info {
    flex: 2 1 500px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: flex-start;
    text-align: left;
    /* Sempre à esquerda */
}

.footer-address,
.footer-hours {
    flex: 1 1 200px;
}

.footer-address h3,
.footer-hours h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-address p,
.footer-hours p {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 8px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 20px;
    text-align: center;
    /* Também à esquerda */
    border-top: 0px solid #ddd;
    padding-top: 20px;
}

.footer-bottom p {
    font-size: 13px;
    color: #888;
    margin: 5px 0;
}

/* Botão Scroll para Topo */
#scrollTopBtn {
    display: none;
    /* Esconde até rolar a página */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: #007698;
    color: #fff;
    border: none;
    outline: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    background-color: #333;
    transform: scale(1.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}