/* =========================================================
   ENICIALE — CUSTOM.CSS (Organizado)
   ========================================================= */

/* =========================================================
   1) HEADER / NAV
   ========================================================= */

/* Logo */
header .navbar-brand img {
    max-height: 44px;
}
header .navbar-brand,
header.sticky .navbar-brand {
    padding: 12px 0;
}

/* Active / hover link
   Nota: o teu HTML usa .nav-link active em alguns sítios (ex: parceiros)
   mas aqui só estás a tratar .nav-item.active. Se quiseres cobrir ambos,
   adiciona também ".nav-link.active" (ver abaixo). */
.navbar .navbar-nav .nav-item:hover .nav-link,
.navbar .navbar-nav .nav-item.active .nav-link,
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary-color);
}

/* Social icons (header + geral) */
.social-icons {
    height: 20px;
    width: 20px;
    opacity: 0.7;
}
.social-icons:hover {
    opacity: 1;
}

/* =========================================================
   2) FOOTER
   ========================================================= */

footer .footer-logo img {
    max-height: 80px;
    height: 100%;
    width: auto;
}

/* barra apoios */
footer .footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    padding: 20px;
}
footer .footer-bottom-container a {
    height: 40px;
}
footer .footer-bottom-container .img-apoios {
    height: 40px;
    width: auto;
}

/* Social icons no footer */
footer .social-icons {
    margin-right: 6px;
}

/* =========================================================
   3) LANDING — HERO / SLIDER VIDEO (texto por cima do vídeo)
   ========================================================= */

/* Estrutura base do slide */
.swiper-slide {
    position: relative;
}

/* Vídeo de fundo */
.slider-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Overlay por cima do vídeo (para legibilidade) */
.slider-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
    pointer-events: none;
}

/* Conteúdo por cima do overlay */
.swiper-slide > .container,
.swiper-slide > .container-fluid {
    position: relative;
    z-index: 2;
}

/* Garantia extra: texto e CTAs no topo (se algum estilo herdar opacidades/z-index) */
.swiper-slide h1,
.swiper-slide .fs-20,
.swiper-slide a,
.swiper-slide span {
    position: relative;
    z-index: 2;
}

/* =========================================================
   4) LANDING — "OS NOSSOS SERVIÇOS" (Swiper) — equal height
   ========================================================= */

.services-swiper .swiper-wrapper {
    align-items: stretch;
}

.services-swiper .swiper-slide {
    display: flex;
    height: auto;
}

@media (max-width: 575px) {
    .services-swiper .swiper-slide {
        display: block;
    }
}

.services-swiper .services-box-style-02 {
    width: 100%;
}

.services-swiper .services-box {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Empurra o conteúdo para alinhar ações */
.services-swiper .services-box-content {
    margin-top: auto;
}

/* =========================================================
   5) PÁGINA SOBRE — cards / vídeo
   ========================================================= */

/* Cards "feature-box" com mesma altura (se realmente estiver dentro de .about-section) */
.about-section .feature-box {
    height: 100%;
}

/* Vídeo da secção Sobre (landing) */
.about-video-box {
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 8px;
}

.about-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Responsivo */
@media (max-width: 991.98px) {
    .about-video-box {
        height: 400px;
    }
}
@media (max-width: 575.98px) {
    .about-video-box {
        height: 260px;
    }
}

/* Vídeo na página sobre.html (classe usada noutro contexto) */
.video-max-height {
    max-height: 600px;
    overflow: hidden;
    border-radius: 8px !important;
    width: auto !important;
    margin: auto;
    max-width: 100%;
}

/* =========================================================
   6) SERVIÇOS PAGE — equal height (cards style-03)
   ========================================================= */

.services-box-style-03 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.services-box-style-03 > div {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.services-box-style-03 .p-30px {
    display: flex;
    flex-direction: column;
}

.services-box-style-03 .p-30px p {
    margin-bottom: 0;
}

.services-box-style-03 .border-top {
    margin-top: auto;
}

/* =========================================================
   7) PARCEIROS — grid de logos
   ========================================================= */

.parceiros-grid .portfolio-image {
    aspect-ratio: 1 / 1;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parceiros-grid .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    display: block;
}

/* =========================================================
   8) UTILITÁRIOS
   ========================================================= */

.word-break {
    word-break: normal;
}
