﻿:root {
  --brand-gold: #baa360;
  --brand-red: #7f1810;
  --text-dark: #212529;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* O overflow-x: hidden; foi removido daqui para não "cegar" o botão Home no telemóvel */
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.quem-somos-page {
  flex: 1 0 auto;
  width: min(1200px, 90%);
  margin: 0 auto;
  padding: 150px 0 100px;
  background-color: var(--white);
  /* Proteção local do scroll horizontal aplicada diretamente à página */
  overflow-x: hidden;
  box-sizing: border-box;
}

.quem-somos-page .section-mosaico {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.quem-somos-page .lado-texto {
  flex: 1.2;
  min-width: 320px;
}

.quem-somos-page .lado-texto h1 {
  margin: 0 0 25px;
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--text-dark);
  font-family: "Montserrat", sans-serif;
}

.quem-somos-page .lado-texto h1::after {
  content: "";
  display: block;
  width: 70px;
  height: 4px;
  border-radius: 2px;
  background: var(--brand-red);
  margin-top: 20px;
}

.quem-somos-page .lado-texto p {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 25px;
  text-align: justify;
}

.quem-somos-page .lado-texto strong,
.quem-somos-page .lado-texto b {
  color: var(--text-dark);
  font-weight: 700;
}

.quem-somos-page .lado-imagens {
  flex: 1;
  position: relative;
  min-width: 400px;
  height: 500px;
}

.quem-somos-page .img-box {
  position: absolute;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  transition: none;
}

.quem-somos-page .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quem-somos-page .principal {
  width: 80%;
  height: 80%;
  top: 0;
  left: 0;
  z-index: 1;
}

.quem-somos-page .superior {
  width: 45%;
  height: 40%;
  top: -20px;
  right: 0;
  z-index: 2;
  border: 6px solid var(--white);
}

.quem-somos-page .inferior {
  width: 50%;
  height: 35%;
  bottom: 20px;
  right: -10px;
  z-index: 3;
  border: 6px solid var(--white);
}

/* ==============================================
   TABLET (≤ 992px)
   ============================================== */
@media (max-width: 992px) {
  .quem-somos-page {
    padding-top: 130px;
  }

  .quem-somos-page .section-mosaico {
    flex-direction: column;
    gap: 70px;
  }

  .quem-somos-page .lado-texto h1 {
    text-align: center;
  }

  .quem-somos-page .lado-texto h1::after {
    margin: 20px auto 0;
  }

  .quem-somos-page .lado-imagens {
    width: 100%;
    height: 450px;
    min-width: unset;
  }

  .quem-somos-page .superior {
    right: 5%;
  }

  .quem-somos-page .inferior {
    right: 0;
  }
}

/* ==============================================
   MOBILE PORTRAIT E LANDSCAPE (≤ 768px)
   ============================================== */
@media (max-width: 768px) {
  .quem-somos-page {
    width: 100%;
    padding: 80px 0 60px;
    margin: 0;
  }

  .quem-somos-page .section-mosaico {
    gap: 32px;
  }

  .quem-somos-page .lado-imagens {
    display: block;
    order: -1;
    width: calc(100% - 40px);
    max-width: 420px;
    min-width: 0;
    height: 320px;
    margin: 0 auto 8px;
  }

  .quem-somos-page .lado-texto {
    min-width: unset;
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .quem-somos-page .lado-texto::before {
    content: none;
    display: none;
  }

  .quem-somos-page .lado-texto h1 {
    font-size: 2rem;

    width: 100%;
    margin: 0 0 25px;
    padding: 0 20px;
    box-sizing: border-box;

    text-align: left;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    position: static;
  }

  .quem-somos-page .lado-texto h1::after {
    width: 50px;
    height: 3px;
    margin: 15px 0 0;
  }

  .quem-somos-page .lado-texto .notranslate p {
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;

    padding: 0 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
  }

  .quem-somos-page .principal {
    width: 82%;
    height: 82%;
  }

  .quem-somos-page .superior {
    width: 46%;
    height: 38%;
    top: 10px;
    right: 0;
  }
}
