﻿#preloader {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    background: #fff;
    opacity: 1;
    z-index: 9999;
    transition: all .3s;
}

    #preloader .spinner-border {
        width: 4rem;
        height: 4rem;
        border: var(--bs-spinner-border-width) solid var(--bs-primary);
        border-right-color: transparent;
    }

.preloader-done {
    opacity: 0 !important;
    visibility: hidden;
    /* Mesmo invisível, o overlay (z-index 9999) estava a intercetar todos os cliques.
       pointer-events: none garante que os cliques passam para o conteúdo por baixo. */
    pointer-events: none !important;
}

/* NAVBAR */
.navbar {
    transition: background 0s, box-shadow .3s;
}

    .navbar.affix {
        background-color: #fff;
        box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    }

    .navbar .navbar-brand img {
        height: 70px;
    }

/* --- Botão do menu (hamburger) mobile --- */
.navbar-toggler {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    transition: background-color .2s ease;
}

    .navbar-toggler:focus,
    .navbar-toggler:active {
        box-shadow: none;
        outline: none;
    }

    .navbar-toggler:hover {
        background-color: rgba(31, 41, 107, .08);
    }

    .navbar-toggler .icon-menu {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 4px;
        width: 26px;
        height: 20px;
    }

    .navbar-toggler .icon-bar {
        display: block;
        width: 100%;
        height: 2.5px;
        border-radius: 2px;
        background-color: var(--bs-secondary);
        transition: transform .3s ease, opacity .2s ease;
    }

    /* Anima as barras para um "X" quando o menu está aberto */
    .navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggler[aria-expanded="true"] .icon-bar:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    /* Texto "MENU" visível na cor da marca (override do text-white) */
    .navbar-toggler .menu-text {
        color: var(--bs-secondary) !important;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 1.5px;
    }

.navbar .nav-item {
    margin-right: 3px;
}

    .navbar .nav-item:last-child {
        margin-right: 0;
    }

    .navbar .nav-item.dropdown {
        display: flex;
        align-items: center;
    }

        .navbar .nav-item.dropdown .nav-link {
            padding-right: 4px;
        }

.navbar .nav-link {
    font-size: 15px;
    font-weight: 700;
    /*letter-spacing: .9px;*/
}

    .navbar .nav-link:hover svg {
        color: var(--bs-primary);
    }

.navbar .dropdown-toggle::after {
    margin-bottom: -1px;
    margin-left: 8px;
    border-top: 0;
    border-bottom: 1px solid currentColor;
    border-left: 0;
    border-right: 1px solid currentColor;
    height: 6px;
    width: 6px;
    transform: rotate(45deg);
}

.navbar .dropdown-menu {
    border: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    font-size: 14px;
    box-shadow: inset 0px 4px 0 -2px var(--bs-primary), 0 4px 10px rgba(0, 0, 0, 0.25);
}


    .navbar .dropdown-menu li {
        margin-bottom: 7px;
    }

        .navbar .dropdown-menu li:last-child {
            margin-bottom: 0;
        }

.navbar .dropdown-item {
    position: relative;
}

    .navbar .dropdown-item.active,
    .navbar .dropdown-item:active {
        color: var(--bs-dropdown-link-hover-color);
        font-weight: 600;
        background-color: var(--bs-dropdown-link-hover-bg);
    }

    .navbar .dropdown-item:before,
    .navbar .dropdown-item:before {
        content: "";
        position: absolute;
        left: 0;
        top: 20%;
        width: 1px;
        height: 40%;
        background: transparent;
        transition: height 0.7s ease, top 0.7s ease, background 0.3s ease;
    }

    .navbar .dropdown-item.active:before,
    .navbar .dropdown-item:active:before,
    .navbar .dropdown-item:hover:before,
    .navbar .dropdown-item:hover:before {
        height: 100%;
        top: 0;
        background: var(--bs-primary);
    }

.navbar .navbar-top .btn {
    font-size: 12px;
    font-weight: 500;
}

    .navbar .navbar-top .btn:hover {
        box-shadow: none;
        transform: none;
    }

/* Menu colapsado (hamburger, abaixo de xxl): o Bootstrap põe o submenu em
   position: static, logo ele entra no fluxo do li — que é flex. Em linha ficava
   ao lado do nome do pai (centrado). Em coluna fica por baixo, como esperado. */
@media (max-width: 1399.98px) {
    .navbar .nav-item.dropdown {
        flex-direction: column;
        align-items: stretch;
    }

        /* Submenu ocupa a largura toda e alinha-se com o pai */
        .navbar .nav-item.dropdown .dropdown-menu {
            width: 100%;
            box-shadow: none;
        }
}

.search-container {
    position: relative;
}

.search-input {
    border-radius: 30px;
    padding-left: 40px;
    border: none;
    background: var(--bs-light);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
}
/* END NAVBAR */

/* SWIPER BANNER */
.swiper-button-next svg,
.swiper-button-prev svg {
    color: var(--bs-primary);
}
/* END SWIPER BANNER */

/* CONTENT */
.container-fluid {
    max-width: 1905px;
}

img {
    max-width: 100%;
    height: auto;
}

.ls-1 {
    letter-spacing: 1px;
}

/* Só usada na homepage: 6rem fixos eram demasiado espaço em mobile */
.mt-10 {
    margin-top: clamp(2.5rem, 7vw, 6rem);
}

a .shape {
    position: absolute;
    width: 12px;
    height: 12px;
    margin-top: 0;
    margin-left: 5px;
    content: '';
    background-image: url(img/spp-shape.svg);
    opacity: 0;
    transition: all .15s ease;
}

a .display-4 .shape {
    width: 20px;
    height: 20px;
    margin-top: 10px;
    margin-left: 5px;
}

a:hover .shape {
    opacity: 1;
}

.title-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Recorta o excesso de 30px da máscara branca do título (.title::before) para
       não provocar scroll horizontal quando o título ocupa a largura toda (mobile). */
    overflow: hidden;
}

    .title-bar::before {
        content: " ";
        width: 100%;
        position: absolute;
        top: 57%;
        z-index: -1;
        border-bottom: 2px solid #d8d8d8;
    }

    .title-bar > .title {
        display: inline-block;
        position: relative;
        margin: 0;
    }

        .title-bar > .title::before {
            content: " ";
            z-index: -1;
            height: 100%;
            width: 100%;
            padding-right: 30px;
            display: block;
            position: absolute;
            left: 0;
            top: 0;
            background: #fff;
            box-sizing: content-box;
        }

.title-btn {
    position: relative;
    margin-top: 7px;
    border: 5px solid #f5f5f5;
    border-radius: 99px;
    padding: 0 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    line-height: 1;
    text-decoration: none;
    font-weight: 500;
    color: #cbcbcb;
    transition: all .3s;
}

    .title-btn:hover {
        background: #00aa98;
        border: 5px solid #00aa98;
        color: #fff;
    }

    .title-btn::after {
        content: " ";
        z-index: -1;
        height: 100%;
        width: 100%;
        padding-left: 30px;
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        background: #fff;
        box-sizing: content-box;
    }
/* END CONTENT */

/* SIDEBAR */
/* Barra vertical divisória entre o conteúdo e o menu lateral (altura toda da coluna). */
.sidebar-border::after {
    content: "";
    position: absolute;
    top: 0;
    left: -7px;
    height: 100%;
    width: 3px;
    background-color: #f4f4f7;
}

.sidebar-navigation {
    /* position vem da classe .sticky-top (position: sticky) — não sobrepor, senão perde o sticky.
       sticky já é posicionado, por isso o ::before absoluto funciona na mesma. */
    font-size: 14px;
    color: #575757;
    top: 120px;
    padding: 8px 0;
}

    /* Fundo arredondado que envolve APENAS o menu (não a altura toda da coluna) e
   acompanha o scroll com o menu sticky. */
    .sidebar-navigation::before {
        content: "";
        position: absolute;
        inset: 0;
        background-color: #f8f9fa;
        border-radius: 12px;
        z-index: -1;
    }

    .sidebar-navigation .list-group-item {
        color: #575757;
        background-color: transparent;
        border-color: #f5f5f5;
    }

        .sidebar-navigation .list-group-item img {
            transform: rotate(270deg);
            transition: transform .3s;
        }

        .sidebar-navigation .list-group-item.collapsed img {
            transform: rotate(90deg);
        }

        .sidebar-navigation .list-group-item:hover {
            color: #2b2b2b;
            background-color: rgb(var(--bs-primary-rgb), .1);
        }

        .sidebar-navigation .list-group-item.active {
            color: #2b2b2b;
            font-weight: 600;
            background-color: transparent;
            border-color: #f5f5f5;
        }

    .sidebar-navigation .list-group-flush > .list-group-item {
        border-bottom: 1px solid #f5f5f5;
    }

        .sidebar-navigation .list-group-flush > .list-group-item:last-child {
            border-bottom: 1px solid #f5f5f5;
        }

    .sidebar-navigation > .list-group-item:last-child {
        border-bottom: 0;
    }
/* END SIDEBAR */

/* INTRO */
/* Esta margem existe para reservar espaço ao bloco .shortcuts, que sobe por cima
   do banner. Em mobile não há sobreposição, logo a reserva grande deixava um
   buraco enorme — passa a escalar com a largura e só a partir de lg. */
.intro-content {
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .intro-content {
        margin-bottom: clamp(80px, 11vw, 165px);
    }
}

.intro-section .swiper-button-next,
.intro-section .swiper-button-prev {
    transform: scale(.8);
    transition: all .1s
}

    .intro-section .swiper-button-next:hover,
    .intro-section .swiper-button-prev:hover {
        transform: scale(1);
    }

    .intro-section .swiper-button-next.swiper-button-disabled,
    .intro-section .swiper-button-prev.swiper-button-disabled {
        opacity: 0;
    }
/* END INTRO */

/* SHORTCUTS */
/* Sobreposição sobre o banner: desligada em mobile (cartões a full width,
   empilhados) e a escalar com a largura a partir de lg. */
.shortcuts-overlap {
    margin-top: 1.5rem;
}

@media (min-width: 992px) {
    .shortcuts-overlap {
        margin-top: clamp(-80px, -5.5vw, -40px);
    }
}

.shortcuts .content {
    padding: clamp(14px, 2.2vw, 20px) clamp(18px, 3.5vw, 35px);
}

/* Em mobile o cartão é estreito: 60% deixava o texto num funil */
.newsletter .content {
    width: 100%;
}

@media (min-width: 992px) {
    .newsletter .content {
        width: 60%;
    }
}

/* Os aspect-ratios vêm inline do banner (51.5% / 25%), pensados para os cartões
   lado a lado. Empilhados a full width, 25% dava uma tira baixa demais para o
   texto — daí o !important, necessário para vencer a custom property inline. */
@media (max-width: 991.98px) {
    .shortcuts .ratio {
        --bs-aspect-ratio: 56% !important;
    }
}

.teste::before {
    display: block;
    width: 100%;
    height: 100%;
    content: '';
    opacity: .4;
    background-image: linear-gradient(131deg, #00cfb9, #000000);
}
/* END SHORTCUTS */

/* NEWS */
.card-news img {
    object-fit: cover;
    object-position: left top;
}

.card-news .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-news .resume {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-news .date {
    font-size: 13px;
}
/* END NEWS */

/* EVENT */
.card-event .location {
    font-size: 14px;
}
/* END EVENT */

/* FILES LIST */
.files-list .list-group-item {
    border: 0;
    border-bottom: 1px solid #e8e8e8;
    padding: 15px 10px;
}

    .files-list .list-group-item:nth-child(odd) {
        background-color: #f7f7f7;
    }

    /*.files-list .list-group-item:not(:first-child) {
        border: 0;
    }*/

    .files-list .list-group-item:hover {
        background: #efefef;
        color: #1d1d1d;
    }

.files-list .procedure + .list-group-item {
    margin-top: 10px;
}

.files-list .list-group-item .file-title {
    color: var(--bs-body-color);
    font-weight: 500;
    font-size: 16px;
}

.files-list .list-group-item .badge {
    color: #959595;
    font-size: 11px;
    height: fit-content;
    padding-bottom: 6px;
}

.files-list .list-group-item .icon {
    width: 30px;
    height: 20px;
}

    .files-list .list-group-item .icon:before {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        background-image: url(img/content/files/file.svg);
        background-size: contain;
        background-repeat: no-repeat;
    }

.files-list .list-group-item.external-link .icon:before {
    background-image: url(img/content/files/external-link.svg);
}

.files-list a.list-group-item[href$=".pdf"] .icon:before,
.files-list a.list-group-item[href$=".PDF"] .icon:before,
.grid-layout ul li .icon a[href$=".pdf"]:before,
.grid-layout ul li .icon a[href$=".PDF"]:before {
    background-image: url(img/content/files/file-pdf.svg);
}

.files-list a.list-group-item[href$=".DOC"] .icon:before,
.files-list a.list-group-item[href$=".DOCX"] .icon:before,
.files-list a.list-group-item[href$=".doc"] .icon:before,
.files-list a.list-group-item[href$=".docx"] .icon:before,
.grid-layout ul li .icon a[href$=".DOC"]:before,
.grid-layout ul li .icon a[href$=".DOCX"]:before,
.grid-layout ul li .icon a[href$=".doc"]:before,
.grid-layout ul li .icon a[href$=".docx"]:before {
    background-image: url(img/content/files/file-word.svg);
}

.files-list a.list-group-item[href$=".xls"] .icon:before,
.files-list a.list-group-item[href$=".XLS"] .icon:before,
.files-list a.list-group-item[href$=".xlsx"] .icon:before,
.files-list a.list-group-item[href$=".XLSX"] .icon:before,
.grid-layout ul li .icon a[href$=".xls"]:before,
.grid-layout ul li .icon a[href$=".XLS"]:before,
.grid-layout ul li .icon a[href$=".xlsx"]:before,
.grid-layout ul li .icon a[href$=".XLSX"]:before {
    background-image: url(img/content/files/file-excel.svg);
}

.files-list a.list-group-item[href$=".zip"] .icon:before,
.files-list a.list-group-item[href$=".ZIP"] .icon:before,
.files-list a.list-group-item[href$=".rar"] .icon:before,
.files-list a.list-group-item[href$=".RAR"] .icon:before,
.grid-layout ul li .icon a[href$=".zip"]:before,
.grid-layout ul li .icon a[href$=".ZIP"]:before,
.grid-layout ul li .icon a[href$=".rar"]:before,
.grid-layout ul li .icon a[href$=".RAR"]:before {
    background-image: url(img/content/files/file-zip.svg);
}
/* END FILES LIST */

/* FORMATIONS */
.card-formation img {
    max-width: 100px;
    max-height: 100px;
}

.card-formation .resume {
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* EnD FORMATIONS */

/* CALENDAR */
.title-btn svg {
    color: var(--bs-secondary);
}

.title-btn span {
    color: var(--bs-dark);
    font-size: 15px;
    margin-left: 5px;
    padding: 8px 2px;
}

.title-btn:hover svg,
.title-btn:hover span {
    color: #fff;
}

.applied-filters .btn {
    background-color: rgba(var(--bs-primary-rgb), .1);
}

    .applied-filters .btn:hover {
        background-color: rgba(var(--bs-primary-rgb), .2);
    }

    .applied-filters .btn svg {
        margin-top: 2px;
    }

.applied-filters .reset-filters .btn {
    background-color: transparent;
    color: var(--bs-secondary);
}

    .applied-filters .reset-filters .btn:hover svg {
        color: var(--bs-danger);
    }

.event-badge {
    background: var(--bs-secondary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 99px;
    padding: 2px 6px;
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.has-events:hover .fc-daygrid-day-frame,
.has-events.active-day .fc-daygrid-day-frame {
    box-shadow: 0 0 0 2px var(--bs-primary);
    transition: all 0.2s ease;
}

.fc .fc-toolbar-title {
    font-size: 20px;
}

.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 20px;
}

.fc .fc-button-group .fc-button-primary {
    background: transparent;
    border-color: transparent;
    color: #646464;
}

    .fc .fc-button-group .fc-button-primary:hover {
        background: transparent;
        border-color: transparent;
        color: #000;
    }

.fc-theme-standard th {
    border: 1px solid var(--bs-primary);
    background: var(--bs-primary);
}

.fc .fc-col-header-cell-cushion {
    color: #fff;
    padding: 12px 6px;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: rgb(var(--bs-primary-rgb), .15);
}

.fc .fc-daygrid-day-number {
    color: var(--bs-dark);
}

.fc .fc-button {
    padding: 5px 10px;
    font-size: 14px;
}

    .fc .fc-button .icon {
        line-height: 1;
    }

.fc .fc-button-primary:disabled {
    opacity: .2;
    cursor: no-drop;
}

.fc-daygrid-day.fc-day-today {
    background: rgba(13,110,253,.1);
}

.fc-daygrid-event-harness {
    display: none;
}
/* END CALENDAR */

/* FOOTER */
footer {
    background: linear-gradient(180deg, var(--bs-light), transparent);
    border-top: 4px solid #f0f4f8;
    color: #525252;
}

    footer .logo-footer {
        /* filter: brightness(0) invert(1); */
    }

    footer a,
    .nav .nav-link {
        font-size: 15.75px;
        color: var(--bs-secondary) !important;
    }

        footer a:hover,
        .nav .nav-link:hover {
            color: var(--bs-primary) !important;
        }

    footer .social-media .icon {
        width: 44px;
        height: 44px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: var(--bs-dark);
        border-radius: 99px;
        transition: all .3s;
    }

        footer .social-media .icon:hover {
            background-color: var(--bs-primary);
        }

        footer .social-media .icon img {
            filter: brightness(0) invert(1);
        }

    footer .nav .nav-item {
        margin-bottom: 10px;
    }

    footer .copyright {
        font-size: 14px;
    }
/* END FOOTER */


/* Fechado e aberto */
.accordion-green,
.accordion-button:not(.collapsed).accordion-green {
    background-color: rgb(70, 185, 172);
    color: #fff;
}

/* Remove a sombra azul quando abre */
.accordion-button:not(.collapsed).accordion-green {
    box-shadow: none;
}

/* Seta sempre branca */
.accordion-green::after {
    filter: brightness(0) invert(1);
}

.accordion-body .list-group-item a {
    color: rgb(70, 185, 172);
    text-decoration: none;
}

    .accordion-body .list-group-item a:hover {
        color: rgb(55, 150, 140);
        text-decoration: underline;
    }

.card-img-top {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background-color: #fff;
}

.content-grid .card:not(.image-card-badge-fill) .card-body {
    padding: 0.15rem 0.75rem;
}

.content-grid .row > div:has(> .card:not(.image-card-badge-fill)) {
    align-self: start;
}

.content-grid .card:not(.image-card-badge-fill) .card-body p:not(:last-child) {
    margin-bottom: 0.25rem;
}

.content-grid .card:not(.image-card-badge-fill) .card-img-top {
    height: 170px;
}

/* Badge do cargo nos cartões - altura mínima uniforme para nomes curtos e compridos */
.role-badge {
    min-height: 2.5rem;
    padding: 0.4rem 0.6rem;
    line-height: 1.35;
    font-size: 13px;
}

    .role-badge.role-badge-nobg {
        min-height: 0;
        padding: 0.1rem 0;
        font-size: 14px;
    }

/* Ícones de ficheiro por tipo (ver WebsiteHelper.GetFileIconClass).
   Cores de marca do Office; não se usam as utilities do Bootstrap porque neste
   site o --bs-primary é teal. O PDF continua com o text-danger do Bootstrap. */
.icon-file-word {
    color: #2b579a;
}

.icon-file-excel {
    color: #217346;
}

.icon-file-zip {
    color: #d9a406;
}

/* Cartão de imagem clicável (ElementListImage com embedLink) */
.image-card-clickable {
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .image-card-clickable:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
    }

/* Tabelas inseridas via Rich Text (RTE) - dar bordas e espaçamento (o site não as tinha) */
.rich-text table,
.accordion-body table,
.grid-layout table,
.rte-description table {
    /* !important para vencer o width inline que o Tiptap põe na tabela */
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

    /* Ignora as larguras fixas do colgroup para as colunas distribuírem pela largura toda */
    .rich-text table col,
    .accordion-body table col,
    .grid-layout table col,
    .rte-description table col {
        width: auto !important;
    }

    .rich-text table th, .rich-text table td,
    .accordion-body table th, .accordion-body table td,
    .grid-layout table th, .grid-layout table td,
    .rte-description table th, .rte-description table td {
        border: 1px solid #dee2e6;
        padding: 0.5rem 0.75rem;
        vertical-align: top;
    }

/* Headers do accordion: quebrar texto longo para nova linha em vez de transbordar */
.accordion-button {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Sidebar de conteúdo: submenu em collapse (abre no ramo ativo; seta faz toggle) */
.sidebar-navigation .sidebar-link {
    display: block;
    flex: 1 1 auto;
    padding: 0.5rem 1rem;
    color: inherit;
    text-decoration: none;
}

.sidebar-navigation .sidebar-toggle {
    border: 0;
    border-left: 1px solid #dee2e6; /* divisão: clicar no nome vs clicar na seta */
    background: transparent;
    box-shadow: none;
    padding: 0.5rem 0.85rem;
    color: inherit;
    cursor: pointer;
    align-self: stretch; /* a divisão ocupa toda a altura da linha */
    display: flex;
    align-items: center;
}

    .sidebar-navigation .sidebar-toggle:hover {
        background-color: rgba(0, 0, 0, .04);
    }

.sidebar-navigation .sidebar-caret {
    width: 16px;
    height: 16px;
    transform: rotate(90deg);
    transition: transform .3s ease;
}

.sidebar-navigation .sidebar-toggle[aria-expanded="true"] .sidebar-caret {
    transform: rotate(0deg);
}

.card-caret {
    transform: rotate(45deg);
}

/* Item atual: shade da cor principal */
.sidebar-navigation .sidebar-current {
    background-color: rgba(var(--bs-primary-rgb), 0.12);
    color: var(--bs-primary);
    font-weight: 600;
}

    .sidebar-navigation .sidebar-current .sidebar-link {
        color: var(--bs-primary);
    }

/* Galeria dentro do accordion (ElementAccordionItemGallery) - thumbnails uniformes */
.gallery-thumb {
    height: 160px;
    object-fit: cover;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .gallery-thumb:hover {
        transform: scale(1.03);
        box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    }

/* Item de accordion com imagem + link (bloco todo clicável) */
.accordion-image-link {
    border-bottom: 1px solid #e9ecef;
    transition: background-color .15s ease;
    color: inherit;
}

    .accordion-image-link:hover {
        background-color: rgba(0, 0, 0, .03);
    }

.accordion-image-link__img {
    width: 70px;
    height: auto;
    object-fit: contain;
}

.accordion-image-link__title {
    font-size: 1rem;
    letter-spacing: .02em;
}

.logo-img-top {
    width: 100%;
    height: 150px;
    object-fit: contain;
    background-color: #f8f9fa;
}

.list-files {
    color: var(--bs-body-color);
}

    .list-files a,
    .list-files a:link,
    .list-files a:visited {
        color: inherit; /* inherit the list-files color */
        font-weight: 400; /* regular */
        text-decoration: none;
    }

        .list-files a:hover,
        .list-files a:focus {
            color: var(--bs-primary);
            text-decoration: none;
        }

.accordion-body .list-files a,
.list-group-item .list-files a {
    color: inherit;
    font-weight: 400;
}

    .accordion-body .list-files a:hover,
    .list-group-item .list-files a:hover {
        color: var(--bs-primary);
    }

.list-files .documento-info,
.list-files .file-size {
    font-size: 0.75rem;
}

.collapse-icon {
    transition: transform 0.25s ease;
}

/* quando está aberto */
a[aria-expanded="true"] .collapse-icon {
    transform: rotate(135deg); /* aponta para baixo */
}

.sociedade-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px; /* mesma altura para todos */
    padding: 8px 12px;
    margin-bottom: 0;
    border-radius: .375rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    /* Permite partir palavras grandes */
    white-space: normal;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Esconde apenas a seta destes dois botões */
.accordion-button-custom::after {
    display: none;
}

/* Animação do teu SVG */
.accordion-button-custom .collapse-icon {
    transition: transform .3s ease;
}

.accordion-button-custom:not(.collapsed) .collapse-icon {
    transform: rotate(90deg);
}

.collapse-icon {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform .3s ease;
}

.list-links-arrow .card-with-link:hover {
    background-color: #fafafa;
    transition: all .3s;
}



@media (max-width: 991.98px) {
    h2 {
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }
}

/* ── Área reservada: dashboard ───────────────────────────────────────────────
   Do mockup "Gestao de Socios". As cores, tipografia e botões em pílula já
   vêm do styles-editor.css; aqui ficam só as classes que o dashboard usa e
   que o Bootstrap não traz. */

/* Cartão de indicador clicável: levanta-se ao passar o rato. */
.kpi-card {
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12) !important;
}

/* Link em forma de texto dentro de cabeçalhos de cartão ("Ver todos"). */
.lnk {
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 14px;
    color: #292929;
    text-decoration: none;
}

.lnk:hover {
    color: #048c7e;
    text-decoration: underline;
}

/* Linha de tabela escolhida numa listagem com seleção múltipla. As células também
   levam a cor: no Bootstrap 5.3 o fundo de cada <td> tapa o da <tr>. */
.row-sel,
.row-sel > td {
    background-color: rgba(var(--bs-primary-rgb), .08) !important;
}

/* Separadores do detalhe do sócio: sublinhado em vez das "abas" do Bootstrap. */
.tabs-detalhe .nav-tabs .nav-link {
    color: #575757 !important;
    border: 0;
    border-bottom: 2px solid #f5f5f5;
    font-weight: 600;
    display: flex;
    align-items: center;
}

    .tabs-detalhe .nav-tabs .nav-link:hover {
        color: var(--bs-secondary) !important;
        border-bottom-color: rgba(var(--bs-secondary-rgb), .3);
    }

    .tabs-detalhe .nav-tabs .nav-link.active {
        color: var(--bs-secondary) !important;
        background: transparent;
        border-bottom-color: var(--bs-secondary);
    }

/* Botões empilhados da ficha do sócio.

   O conteúdo fica centrado no botão, mas o par ícone+texto ocupa sempre a mesma largura:
   duas colunas, uma fixa para o ícone e outra de largura fixa para a etiqueta. Sem a
   segunda ser fixa, etiquetas de comprimentos diferentes davam blocos de larguras
   diferentes e, mesmo centrados, começavam em sítios diferentes. */
.btn-acao {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 11rem);
    justify-content: center;
    column-gap: 0.5rem;
    align-items: center;
    text-align: left;
}

    .btn-acao > i {
        text-align: center;
    }

    /* Variante encostada à esquerda, para os botões empilhados que acompanham uma lista de
       ações. Mantém a coluna fixa do ícone, por isso o texto continua a começar no mesmo x. */
    .btn-acao.btn-acao-start {
        justify-content: start;
    }


/* Tabelas da área reservada a 16px. A regra vive no contentor e não em cada tabela, para
   valer também para as que vierem a ser acrescentadas. Fica no table e não nas células,
   de propósito: assim as classes relativas do Bootstrap (.small, .fs-*) continuam a
   calcular-se a partir deste tamanho em vez de o ignorarem. */
.area-reservada .table {
    font-size: 16px;
}
