/* =====================================================================
   Componentes partilhados das páginas Áreas de Negócios, Empreendimentos
   e Investidores. Usa apenas os tokens de :root (style.css) para manter
   a identidade: vermelho #C33622, vermelho escuro #912B1C, dourado
   #F7A600, cantos de 50px e o painel que "sobe" sobre o hero.
   ===================================================================== */

/* Alturas-padrão das imagens (iguais em todos os cartões, qualquer que seja
   o formato ou o tamanho da foto: a imagem é recortada com object-fit). */
:root {
    --gu-img-card: 240px;
    --gu-img-area: 420px;
}

@media (max-width: 768px) {
    :root {
        --gu-img-card: 200px;
        --gu-img-area: 240px;
    }
}

.gu-page {
    width: 100%;
    display: block;
}

/* A barra de chips precisa de position: sticky, que não funciona com
   overflow-x: hidden no html/body. Só nas páginas que a têm (Áreas de
   Negócios, Empreendimentos) se troca por "clip", que corta da mesma forma
   sem criar um contentor de scroll. Não aplicar globalmente: a home tem
   secções sticky que dependem do comportamento antigo. */
html:has(.gu-chipbar),
html:has(.gu-chipbar) body {
    overflow-x: clip;
}

.gu-page section {
    display: block;
}

/* ---------- Hero ---------- */
.gu-hero {
    position: relative;
    min-height: 72vh;
    padding: 180px 8% 130px;
    display: flex !important;
    align-items: flex-end;
    color: var(--white);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.gu-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(20, 12, 10, 0.85) 0%, rgba(20, 12, 10, 0.55) 45%, rgba(20, 12, 10, 0.15) 100%),
        linear-gradient(0deg, rgba(20, 12, 10, 0.6) 0%, rgba(20, 12, 10, 0) 40%);
}

.gu-hero__inner {
    max-width: 760px;
}

.gu-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-size: 0.9rem;
    margin-bottom: 28px;
    opacity: 0.85;
}

.gu-breadcrumb li + li::before {
    content: '›';
    margin-right: 8px;
}

.gu-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.gu-breadcrumb a:hover {
    color: var(--text-color4);
}

.gu-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-color4);
    margin-bottom: 16px;
}

.gu-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--white);
}

.gu-hero p {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.55;
    font-weight: 300;
    max-width: 640px;
}

.gu-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

/* ---------- Botões ---------- */
.gu-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    cursor: pointer;
}

.gu-btn--primary {
    background: var(--gradient);
    color: var(--white);
}

.gu-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(195, 54, 34, 0.35);
}

.gu-btn--ghost {
    border-color: rgba(255, 255, 255, 0.75);
    color: var(--white);
}

.gu-btn--ghost:hover {
    background: var(--white);
    color: var(--text-color);
}

.gu-btn--outline {
    border-color: var(--text-color);
    color: var(--text-color);
    background: transparent;
}

.gu-btn--outline:hover {
    background: var(--text-color);
    color: var(--white);
}

.gu-btn:focus-visible,
.gu-chip:focus-visible,
.gu-card a:focus-visible {
    outline: 3px solid var(--text-color4);
    outline-offset: 3px;
}

/* ---------- Painel que sobe sobre o hero (assinatura do site) ---------- */
.gu-panel {
    position: relative;
    z-index: 2;
    margin-top: calc(var(--border2) * -1);
    background: var(--bg-body);
    border-top-left-radius: var(--border2);
    border-top-right-radius: var(--border2);
    padding: 70px 8% 40px;
}

.gu-section {
    padding: 70px 8%;
}

.gu-section--white {
    background: var(--white);
}

.gu-section--dark {
    background: var(--text-color2);
    color: var(--white);
}

.gu-head {
    max-width: 780px;
    margin-bottom: 44px;
}

.gu-head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.gu-head h2 {
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: 16px;
}

.gu-section--dark .gu-head h2 {
    color: var(--white);
}

.gu-head p {
    font-size: 1.1rem;
    line-height: 1.65;
    color: #555;
}

.gu-section--dark .gu-head p {
    color: rgba(255, 255, 255, 0.78);
}

/* ---------- Números ---------- */
.gu-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1px;
    background: var(--gray);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.gu-stat {
    background: var(--white);
    padding: 30px 26px;
}

.gu-stat strong {
    display: block;
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}

.gu-stat span {
    color: #555;
    font-size: 0.98rem;
    line-height: 1.4;
}

/* ---------- Chips (navegação / filtros) ---------- */
.gu-chipbar {
    position: sticky;
    top: 110px;
    z-index: 5;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px 8%;
    margin: 0 -8% 10px;
    background: var(--bg-body);
    scrollbar-width: none;
}

.gu-chipbar::-webkit-scrollbar {
    display: none;
}

.gu-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #d9d9d9;
    background: var(--white);
    color: var(--text-color2);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.gu-chip:hover {
    border-color: var(--text-color);
    color: var(--text-color);
}

.gu-chip.is-active {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
}

.gu-chip small {
    font-size: 0.78rem;
    opacity: 0.75;
}

/* ---------- Áreas de negócio ---------- */
.gu-area {
    display: grid !important;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
    padding: 70px 0;
    border-bottom: 1px solid #e3e3e3;
    scroll-margin-top: 190px;
}

.gu-area:last-of-type {
    border-bottom: 0;
}

.gu-area:nth-of-type(even) .gu-area__media {
    order: -1;
}

.gu-area__num {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-color4);
    margin-bottom: 10px;
}

.gu-area h2 {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    line-height: 1.1;
    color: var(--text-color);
    margin-bottom: 16px;
}

.gu-area__lead {
    font-size: 1.08rem;
    line-height: 1.65;
    color: #444;
    margin-bottom: 24px;
}

.gu-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 24px;
    margin-bottom: 28px;
}

.gu-checklist li {
    position: relative;
    padding-left: 30px;
    font-size: 0.97rem;
    line-height: 1.45;
    color: var(--text-color2);
}

.gu-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(195, 54, 34, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C33622' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.gu-area__companies {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.gu-area__companies > span {
    font-size: 0.85rem;
    color: var(--light-gray);
    margin-right: 4px;
}

.gu-company-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid #e0e0e0;
    color: var(--text-color2);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gu-company-link::after {
    content: '→';
    color: var(--text-color);
    transition: transform 0.2s ease;
}

.gu-company-link:hover {
    border-color: var(--text-color);
}

.gu-company-link:hover::after {
    transform: translateX(3px);
}

.gu-area__media {
    position: relative;
}

.gu-area__media::before {
    content: '';
    position: absolute;
    inset: 18px -18px -18px 18px;
    border-radius: 28px;
    background: var(--gradient);
    opacity: 0.14;
    z-index: 0;
}

.gu-area__media img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: var(--gu-img-area);
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* ---------- Cards (projetos / oportunidades / pilares) ---------- */
.gu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

.gu-grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gu-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.gu-card[hidden] {
    display: none;
}

.gu-card__media {
    position: relative;
    height: var(--gu-img-card);
    overflow: hidden;
    background: var(--gray);
}

.gu-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.gu-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--white);
    color: var(--text-color2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.gu-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 7px;
    background: currentColor;
    vertical-align: 1px;
}

.gu-badge--live { color: #2b8440; }
.gu-badge--soon { color: #d98a00; }
.gu-badge--plan { color: var(--text-color); }

.gu-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 26px 26px;
}

.gu-card__tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-color4);
    margin-bottom: 8px;
}

.gu-card h3 {
    font-size: 1.3rem;
    line-height: 1.25;
    color: var(--text-color2);
    margin-bottom: 10px;
}

.gu-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.97rem;
    margin-bottom: 16px;
}

.gu-meta {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: #666;
}

.gu-meta i {
    width: 18px;
    color: var(--text-color);
    margin-right: 6px;
}

.gu-card__link {
    margin-top: auto;
    align-self: flex-start;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
}

.gu-card__link::after {
    content: ' →';
}

.gu-card__link:hover {
    text-decoration: underline;
}

/* Pilar (ícone + texto, sem imagem) */
.gu-pillar {
    padding: 32px 28px;
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.gu-pillar__icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--gradient);
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.gu-pillar h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color2);
}

.gu-pillar p {
    color: #555;
    line-height: 1.6;
    font-size: 0.97rem;
}

/* ---------- Destaque (POLIS) ---------- */
.gu-feature {
    display: grid !important;
    grid-template-columns: 1.1fr 1fr;
    /* style.css centra o conteúdo de todas as <section>; aqui a imagem tem de
       ocupar a altura total do cartão. */
    align-items: stretch !important;
    border-radius: 32px;
    overflow: hidden;
    background: var(--text-color2);
    color: var(--white);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.gu-feature__media {
    position: relative;
    min-height: 380px;
}

.gu-feature__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gu-feature__body {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gu-feature__body h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 16px;
}

.gu-feature__body p {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    margin-bottom: 14px;
}

.gu-feature__logo {
    width: 150px;
    max-width: 60%;
    height: auto;
    margin-bottom: 18px;
}

/* ---------- Cadeia de valor (ecossistema) ---------- */
.gu-chain {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
    counter-reset: chain;
}

.gu-chain li {
    position: relative;
    padding: 26px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    counter-increment: chain;
}

.gu-chain li::before {
    content: counter(chain, decimal-leading-zero);
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color4);
    margin-bottom: 10px;
}

.gu-chain h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.gu-chain a {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.93rem;
    line-height: 1.7;
}

.gu-chain a:hover {
    color: var(--text-color4);
}

/* ---------- Documentos ---------- */
.gu-doc {
    display: flex !important;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: var(--text-color2);
    transition: transform 0.25s ease;
}

.gu-doc:hover {
    transform: translateY(-3px);
}

.gu-doc i.fa-file-pdf {
    font-size: 2rem;
    color: var(--text-color);
}

.gu-doc strong {
    display: block;
    margin-bottom: 4px;
}

.gu-doc span {
    font-size: 0.88rem;
    color: var(--light-gray);
}

.gu-doc .fa-download {
    margin-left: auto;
    color: var(--text-color);
}

/* ---------- Faixa CTA ---------- */
.gu-cta {
    /* style.css dá width:100% a todas as <section>; com margens laterais isso
       empurrava a faixa para fora do ecrã. */
    width: auto !important;
    max-width: 100%;
    margin: 30px 8% 80px;
    padding: 56px 48px;
    border-radius: var(--border2);
    background: var(--gradient);
    color: var(--white);
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.gu-cta h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 8px;
}

.gu-cta p {
    opacity: 0.88;
    max-width: 560px;
    line-height: 1.6;
}

.gu-cta > div:first-child {
    flex: 1 1 420px;
    min-width: 0;
}

.gu-cta .gu-actions {
    flex: 0 0 auto;
    margin-top: 0 !important;
}

.gu-cta .gu-btn--ghost:hover {
    color: var(--text-color-black);
}

.gu-empty {
    display: none;
    padding: 40px;
    text-align: center;
    color: #777;
}

.gu-empty.is-visible {
    display: block;
}

/* ---------- Animação de entrada ---------- */
.gu-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.gu-reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .gu-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .gu-card,
    .gu-card__media img,
    .gu-btn {
        transition: none;
    }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    .gu-area {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 50px 0;
    }

    .gu-area:nth-of-type(even) .gu-area__media {
        order: 0;
    }

    .gu-area__media {
        order: -1;
    }

    .gu-feature {
        grid-template-columns: 1fr;
    }

    .gu-feature__media {
        min-height: 260px;
    }
}

@media (max-width: 768px) {
    .gu-hero {
        min-height: 64vh;
        padding: 140px 20px 100px;
    }

    .gu-panel {
        margin-top: -30px;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
        padding: 44px 16px 20px;
    }

    .gu-section {
        padding: 50px 16px;
    }

    .gu-chipbar {
        top: 80px;
        padding: 12px 16px;
        margin: 0 -16px 10px;
    }

    .gu-area {
        scroll-margin-top: 150px;
    }

    .gu-checklist {
        grid-template-columns: 1fr;
    }

    .gu-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gu-stat {
        padding: 22px 18px;
    }

    .gu-stat span {
        font-size: 0.88rem;
    }

    .gu-area__media::before {
        inset: 10px -10px -10px 10px;
    }

    .gu-grid {
        grid-template-columns: 1fr;
    }

    .gu-feature__body {
        padding: 32px 24px;
    }

    .gu-cta {
        margin: 20px 16px 50px;
        padding: 40px 24px;
        border-radius: 30px;
    }

    .gu-cta > div:first-child {
        flex-basis: 100%;
    }

    .gu-cta .gu-actions {
        flex: 1 1 100%;
        flex-direction: column;
    }

    .gu-cta .gu-btn {
        justify-content: center;
        width: 100%;
    }

    .gu-doc {
        flex-wrap: wrap;
    }
}

/* =====================================================================
   Nossa História (grupo.html) — carrossel de marcos com trilho de anos
   ===================================================================== */
.hx {
    display: block !important;
    width: 100%;
    padding: 90px 8% 100px;
}

.hx__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 44px;
}

.hx__head h2 {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    line-height: 1.05;
    color: var(--text-color);
    margin-bottom: 14px;
}

.hx__head p {
    max-width: 620px;
    font-size: 1.1rem;
    line-height: 1.65;
    color: #555;
}

.hx__controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hx__counter {
    font-size: 1rem;
    color: var(--light-gray);
    min-width: 64px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.hx__counter b {
    color: var(--text-color2);
    font-size: 1.4rem;
}

.hx__arrow {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid #d6d6d6;
    background: var(--white);
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hx__arrow:hover:not(:disabled) {
    background: var(--gradient);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-2px);
}

.hx__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.hx__arrow:focus-visible,
.hx__tab:focus-visible {
    outline: 3px solid var(--text-color4);
    outline-offset: 3px;
}

/* Palco: sem JS os marcos ficam empilhados; com JS só o activo é visível */
.hx__stage {
    display: grid;
    gap: 28px;
}

.hx--js .hx__stage {
    gap: 0;
}

.hx--js .hx__slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
}

.hx--js .hx__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s;
}

.hx--js .hx__slide.is-leaving-back {
    transform: translateX(-30px);
}

.hx__slide {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 460px;
    border-radius: 32px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.hx__media {
    position: relative;
    overflow: hidden;
}

.hx__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    transition: transform 1.2s ease;
}

.hx__slide.is-active .hx__media img {
    transform: scale(1);
}

.hx__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.12) 100%);
}

.hx__body {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 52px;
    overflow: hidden;
}

/* Ano gigante, em contorno, como marca d'água */
.hx__year {
    position: absolute;
    right: -10px;
    bottom: -40px;
    font-size: clamp(7rem, 13vw, 12rem);
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 2px rgba(195, 54, 34, 0.12);
    pointer-events: none;
    user-select: none;
}

.hx__step {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--text-color4);
    margin-bottom: 14px;
}

.hx__body h3 {
    position: relative;
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    line-height: 1.15;
    color: var(--text-color);
    margin-bottom: 18px;
}

.hx__body p {
    position: relative;
    font-size: 1.08rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 26px;
}

.hx__tags {
    position: relative;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hx__tags li {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(195, 54, 34, 0.08);
    color: var(--text-color-black);
    font-size: 0.88rem;
    font-weight: 500;
}

/* Trilho de anos */
.hx__rail {
    margin-top: 44px;
}

.hx__railin {
    position: relative;
}

.hx__track {
    position: absolute;
    left: calc(100% / 12);
    right: calc(100% / 12);
    top: 11px;
    height: 3px;
    border-radius: 3px;
    background: #e1e1e1;
}

.hx__progress {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: var(--gradient);
    transition: width 0.5s ease;
}

.hx__tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.hx__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 6px 6px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    color: var(--light-gray);
}

.hx__dot {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid #d0d0d0;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.hx__tab strong {
    font-size: 1.25rem;
    color: var(--text-color2);
    transition: color 0.3s ease;
}

.hx__tab small {
    font-size: 0.85rem;
}

.hx__tab:hover strong {
    color: var(--text-color);
}

.hx__tab.is-done .hx__dot {
    border-color: var(--text-color);
}

.hx__tab.is-active .hx__dot {
    border-color: transparent;
    background: var(--gradient);
    box-shadow: 0 0 0 6px rgba(195, 54, 34, 0.15);
    transform: scale(1.1);
}

.hx__tab.is-active strong {
    color: var(--text-color);
}

@media (prefers-reduced-motion: reduce) {
    .hx--js .hx__slide,
    .hx__media img,
    .hx__progress {
        transition: none;
    }
}

@media (max-width: 1024px) {
    .hx__slide {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hx__media {
        height: var(--gu-img-card);
    }

    .hx__body {
        padding: 36px 30px 44px;
    }
}

@media (max-width: 768px) {
    .hx {
        padding: 60px 16px 70px;
    }

    .hx__head {
        margin-bottom: 28px;
    }

    .hx__controls {
        width: 100%;
        justify-content: space-between;
    }

    .hx__arrow {
        width: 46px;
        height: 46px;
    }

    .hx__body {
        padding: 28px 22px 36px;
    }

    .hx__year {
        bottom: -24px;
    }

    /* No telemóvel o trilho desliza na horizontal */
    .hx__rail {
        overflow-x: auto;
        scrollbar-width: none;
        margin: 30px -16px 0;
        padding: 0 16px;
    }

    .hx__rail::-webkit-scrollbar {
        display: none;
    }

    .hx__railin {
        min-width: 600px;
    }
}

/* =====================================================================
   Missão, Visão e Valores (grupo.html)
   Fundo vermelho e cantos de 50px como antes; mais compacto e responsivo.
   ===================================================================== */
.mv {
    display: block !important;
    width: 100%;
    position: relative;
    margin-top: calc(var(--border2) * -1);
    padding: 90px 8% 110px;
    background: var(--gradient);
    border-top-left-radius: var(--border2);
    border-top-right-radius: var(--border2);
    color: var(--white);
}

.mv__head {
    margin-bottom: 44px;
}

.mv .gu-eyebrow {
    color: var(--text-color4);
}

.mv__head h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--white);
}

.mv__pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.mv__card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    color: var(--text-color2);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.mv__img {
    height: var(--gu-img-card);
    overflow: hidden;
}

.mv__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.mv__card:hover .mv__img img {
    transform: scale(1.04);
}

.mv__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 34px 38px 40px;
}

.mv__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 16px;
}

.mv__label i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--gradient);
    color: var(--white);
    font-size: 1rem;
}

/* Título acessível: lido por leitores de ecrã, a etiqueta faz o papel visual */
.mv__sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.mv__body p {
    font-size: 1.12rem;
    line-height: 1.75;
    color: #444;
}

.mv__body p strong {
    color: var(--text-color-black);
    font-weight: 600;
}

.mv__quote {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem) !important;
    line-height: 1.45 !important;
    color: var(--text-color2) !important;
    margin-top: auto;
    margin-bottom: auto;
}

/* Valores */
.mv__values-head {
    margin: 70px 0 30px;
    max-width: 640px;
}

.mv__values-head h3 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    color: var(--white);
    margin-bottom: 10px;
}

.mv__values-head p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
}

.mv__values {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.mv__value {
    position: relative;
    padding: 30px 28px 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
}

.mv__value:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
}

.mv__num {
    position: absolute;
    top: 24px;
    right: 26px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-color4);
}

.mv__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--white);
    color: var(--text-color);
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.mv__value h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.mv__value p {
    font-size: 0.97rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
    .mv__img img,
    .mv__value {
        transition: none;
    }
}

@media (max-width: 1024px) {
    .mv__values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .mv {
        margin-top: -30px;
        padding: 56px 16px 70px;
        border-top-left-radius: 30px;
        border-top-right-radius: 30px;
    }

    .mv__head {
        margin-bottom: 28px;
    }

    .mv__pair,
    .mv__values {
        grid-template-columns: 1fr;
    }

    .mv__body {
        padding: 26px 22px 30px;
    }

    .mv__values-head {
        margin-top: 50px;
    }
}

/* =====================================================================
   Página Empresas — cartões com foto, logótipo, área e descrição
   ===================================================================== */
.co-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.co {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 28px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.co[hidden] {
    display: none;
}

.co:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.co:focus-visible {
    outline: 3px solid var(--text-color4);
    outline-offset: 4px;
}

.co__media {
    position: relative;
    display: block;
    height: var(--gu-img-card);
    background: var(--gray);
}

.co__media > img {
    /* Absoluta: a foto preenche a caixa 16:9 e é recortada, seja qual for o
       seu formato (uma foto vertical já não estica o cartão nem a linha). */
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.co:hover .co__media > img {
    transform: scale(1.05);
}

/* Logótipo numa "pastilha" branca que sobrepõe a foto */
.co__logo {
    position: absolute;
    z-index: 2;
    left: 20px;
    bottom: -30px;
    display: grid;
    place-items: center;
    height: 64px;
    min-width: 120px;
    max-width: 70%;
    padding: 10px 18px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.co__logo img {
    max-height: 44px;
    max-width: 170px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.co__body {
    position: relative;
    z-index: 1;
    background: var(--white);
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 46px 26px 26px;
}

.co__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.co__meta .gu-card__tag {
    margin-bottom: 0;
}

.co__since {
    font-size: 0.8rem;
    color: var(--light-gray);
    white-space: nowrap;
}

.co__name {
    font-size: 1.35rem;
    line-height: 1.2;
    color: var(--text-color2);
    margin-bottom: 10px;
}

.co__desc {
    color: #555;
    font-size: 0.97rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.co__link {
    margin-top: auto;
    color: var(--text-color);
    font-weight: 600;
}

.co__link::after {
    content: ' →';
    display: inline-block;
    transition: transform 0.2s ease;
}

.co:hover .co__link::after {
    transform: translateX(4px);
}

@media (prefers-reduced-motion: reduce) {
    .co,
    .co__media > img,
    .co__link::after {
        transition: none;
    }
}

@media (max-width: 1024px) {
    .co-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .co-grid {
        grid-template-columns: 1fr;
    }
}
