/* LIF Lab — ajustes de responsividade */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

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

#buy-now {
  display: none !important;
}

/* Um único logo — nunca empilhar variantes */
#logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 220px;
  max-height: 56px;
}

header .logo-main,
header .logo-scroll,
header .logo-mobile {
  /* fallback se ainda existirem noutras páginas */
  max-width: 220px;
  max-height: 56px;
}

@media only screen and (max-width: 992px) {
  header.header-light,
  header.header-mobile.header-light {
    background: #ffffff !important;
  }

  header.header-light #mainmenu a.menu-item,
  header.header-mobile.header-light #mainmenu a.menu-item {
    color: #2f3d52 !important;
  }

  header.header-light #menu-btn,
  header.header-mobile.header-light #menu-btn {
    color: #2f3d52 !important;
    background: transparent !important;
  }

  #logo img {
    max-width: 170px;
    max-height: 48px;
  }

  .menu_side_area {
    width: auto !important;
    margin-left: 0 !important;
  }

  #section-intro .abs.abs-centered {
    padding-top: 110px;
    padding-bottom: 40px;
  }

  #section-intro h1 {
    font-size: clamp(28px, 7vw, 48px) !important;
    line-height: 1.15 !important;
  }

  .mh-800 {
    min-height: 520px !important;
  }

  #subheader {
    padding-top: 40px !important;
    padding-bottom: 30px !important;
  }

  #subheader h1 {
    font-size: 28px !important;
  }

  #subheader .crumb {
    justify-content: center;
  }
}

@media only screen and (max-width: 767px) {
  #logo img {
    max-width: 140px !important;
    max-height: 42px !important;
  }

  /* No mobile só um logo visível */
  header #logo img + img {
    display: none !important;
  }

  header .btn-main {
    display: none !important;
  }

  #section-intro .abs.abs-centered {
    padding-left: 15px;
    padding-right: 15px;
  }

  #section-intro h1 {
    font-size: 30px !important;
  }

  .hero-meta {
    font-size: 13px;
  }

  .mh-800 {
    min-height: 440px !important;
  }

  .fs-32 {
    font-size: 24px !important;
  }

  .p-40 {
    padding: 24px !important;
  }

  footer .col-lg-4,
  footer .col-lg-6 {
    margin-bottom: 30px;
  }

  .subfooter .de-flex {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .subfooter .menu-simple {
    justify-content: center;
  }

  .ul-check.cols-2 {
    columns: 1 !important;
  }

  /* Evitar altura absurda do body por plugins */
  body {
    height: auto !important;
    min-height: 100% !important;
  }

  header.header-mobile:not(.menu-open) {
    height: auto !important;
  }

  footer.section-dark {
    display: block !important;
    position: relative !important;
    z-index: 2;
    clear: both;
  }
}

@media only screen and (max-width: 480px) {
  #logo img {
    max-width: 120px !important;
    max-height: 38px !important;
  }

  #section-intro h1 {
    font-size: 26px !important;
  }

  .mh-800 {
    min-height: 400px !important;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Banner / intro — proporção 16:9 (imagem 1920×1080 visível por inteiro) */
#section-intro .banner-altura {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: none;
  overflow: hidden;
}

#section-intro .banner-altura.mh-800 {
  min-height: 0 !important;
  height: auto !important;
}

#section-intro .swiper-inner > .abs.abs-centered {
  pointer-events: none;
}

#section-intro .swiper-inner > .abs.abs-centered a {
  pointer-events: auto;
}

#section-intro .swiper-inner h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem) !important;
  line-height: 1.2 !important;
  margin-bottom: 0.75rem;
}

#section-intro .swiper-inner .lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  line-height: 1.45;
  max-width: 32rem;
  margin-bottom: 1.25rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#section-intro .banner-altura .swiper,
#section-intro .banner-altura .swiper-wrapper,
#section-intro .banner-altura .swiper-slide {
  height: 100% !important;
  width: 100%;
}

#section-intro .banner-altura .swiper-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

#section-intro .gradient-edge-left {
  width: 38%;
  background: linear-gradient(90deg, rgba(var(--bg-dark-1-rgb), .92) 0%, rgba(var(--bg-dark-1-rgb), .45) 58%, rgba(var(--bg-dark-1-rgb), 0) 100%);
}

#section-galeria .galeria-formacao-link {
  text-decoration: none;
}

#section-galeria .galeria-formacao-frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  width: 100%;
  background: #eef1f4;
  overflow: hidden;
}

#section-galeria .galeria-formacao-img,
#section-galeria img.galeria-formacao-img {
  position: absolute !important;
  inset: 0;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
}

/* Equipa — fotos com o mesmo tamanho (lightbox = tamanho real) */
.equipa-foto-link {
  text-decoration: none;
  display: block;
}

.equipa-foto-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  background: #eef1f4;
  overflow: hidden;
}

.equipa-foto-frame--card {
  aspect-ratio: 3 / 4;
}

.equipa-foto-img,
img.equipa-foto-img {
  position: absolute !important;
  inset: 0;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center top;
  display: block;
}

#section-equipa .equipa-card {
  background: #eef1f4;
}

/* Início — Sobre nós (resumo): imagens com tamanho fixo */
#section-sobre-resumo .sobre-resumo-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #eef1f4;
  overflow: hidden;
}

#section-sobre-resumo .sobre-resumo-img,
#section-sobre-resumo img.sobre-resumo-img {
  position: absolute !important;
  inset: 0;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
}

/* Início — Sinónimo de: imagens com tamanho fixo */
#section-sinonimo .sinonimo-frame {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 4;
  background: #eef1f4;
  overflow: hidden;
  vertical-align: top;
}

#section-sinonimo .sinonimo-frame.w-80 {
  width: 80%;
}

#section-sinonimo .sinonimo-frame--tall {
  aspect-ratio: 3 / 4.6;
}

#section-sinonimo .sinonimo-img,
#section-sinonimo img.sinonimo-img {
  position: absolute !important;
  inset: 0;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
}

/* Notícias — cartões com imagem no mesmo tamanho */
.noticia-foto-link {
  text-decoration: none;
  display: block;
}

.noticia-foto-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #eef1f4;
  overflow: hidden;
}

.noticia-foto-img,
img.noticia-foto-img {
  position: absolute !important;
  inset: 0;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}

.noticia-detalhe-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.menu_side_area .header-portal {
  margin-left: 36px !important;
}

.header-portal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-left: 36px;
  border-radius: 50%;
  border: 1px solid rgba(47, 61, 82, 0.25);
  color: #2f3d52;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.header-portal:hover {
  color: #fff;
  background: #2f3d52;
  border-color: #2f3d52;
}

.subfooter .menu-simple {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}

.subfooter .menu-simple li {
  display: flex;
  align-items: center;
}

.subfooter .livro-reclamacoes img {
  height: 44px;
  width: auto;
  display: block;
}

img.equipa-foto-grupo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 240px !important;
  object-fit: cover;
  object-position: center center;
}

@media (min-width: 768px) {
  img.equipa-foto-grupo {
    height: 320px !important;
  }
}

