/* ==========================================================================
   BOOTSTRAP 3 REPLACEMENT — only the Bootstrap rules this page relied on.
   To go back to Bootstrap: delete this block and add
   https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css
   to the {% block head %} of the templates.
   ========================================================================== */

html {
  font-size: 10px !important; /* 1rem = 10px across the site, as with Bootstrap */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  font-size: 14px !important;
  line-height: 1.42857143;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 500 !important;
  line-height: 1.1;
  margin-top: 20px;
  margin-bottom: 10px;
}

p {
  margin: 0 0 10px;
}

a {
  color: #337ab7;
  text-decoration: none;
  background-color: transparent;
}

a:hover,
a:focus {
  color: #23527c;
  text-decoration: underline;
}

img {
  border: 0;
  vertical-align: middle;
}

svg:not(:root) {
  overflow: hidden;
}

/* grid: .row / .container-fluid clearfix + .col-sm-* widths from 768px.
   Note: in flex containers these pseudo-elements act as (empty) flex items,
   e.g. they add the 1.5rem gap above/below the hero content. */
.container-fluid::before,
.container-fluid::after,
.row::before,
.row::after {
  content: " ";
  display: table;
}

.container-fluid::after,
.row::after {
  clear: both;
}

[class*="col-sm-"] {
  position: relative;
  min-height: 1px;
}

@media (min-width: 768px) {
  [class*="col-sm-"] {
    float: left;
  }

  .col-sm-3 { width: 25%; }
  .col-sm-4 { width: 33.33333333%; }
  .col-sm-6 { width: 50%; }
  .col-sm-8 { width: 66.66666667%; }
}

/* ======================= end of Bootstrap replacement ===================== */

@font-face {
  font-family: "Prime Brand";
  src: url("fonts/Prime Brand.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/SourceSans3-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif !important;
  background: #ffffff;
  color: #111111;
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2 {
  font-family: "Prime Brand", "Source Sans 3", Arial, sans-serif !important;
  line-height: 1;
  margin: 0;
}

h1 {
  font-size: 64px !important;
}

h2 {
  font-size: 48px !important;
}

h3 {
  font-family: "Source Sans 3", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 1.5rem !important;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 1rem;
}

p {
 font-family: "Source Sans 3", Arial, sans-serif !important;
font-weight: 300 !important;
font-style: Light !important;
font-size: 18px !important;

letter-spacing: 0%;

}

p:last-child {
  margin-bottom: 0;
}
/* remove header e footer iberinmo */
.evolutio-events-frontoffice footer {
   
    display: none;
    height:auto
}

.evolutio-events-frontoffice header {
 
  display: none;
}

.signature {
 
  font-family: "Prime Brand", "Source Sans 3", Arial, sans-serif !important;
  font-size: 1.125rem!important;
  line-height: 1.4 !important;
}

.signature span {
  font-family: "Source Sans 3", Arial, sans-serif !important;
  display: inline-block;
  margin-top: 0.5rem;
}
p.signature {
  position: absolute;
  top: 40rem;
}

/* ==========================================================================
   Hero / top banner
   ========================================================================== */

.top_Banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-height: 32rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: url("imgs/hero_black.png") center/cover no-repeat;
  
  color: #ffffff;
}

.nav_bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
}

.nav_bar .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  min-height: 100px;
  margin: 0;
  padding: 1rem 3rem 0;
}

.logo_1 {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 100px;
  justify-content: flex-start;
}

.logo_1 img {
  width: 176px;
  height: 34px;
  object-fit: contain;
  opacity: 1;
  transform: rotate(0deg);
 
}

.logo_2 {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
  min-height: 100px;
}

.logo_2 img {
  width: 112px;
  object-fit: contain;
  opacity: 1;
  transform: rotate(0deg);
  
  margin-left: auto;
}

.top_Banner .hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 15rem;
}

.top_Banner h1 {
  font-family: "Prime Brand", "Source Sans 3", Arial, sans-serif !important;
  font-size: 64px !important;
}
.top_Banner h1 span{
font-family: "Prime Brand", "Source Sans 3", Arial, sans-serif !important;
font-weight: 500 !important;
color: #F26724;
font-size: 64px !important;

line-height: 100%;
letter-spacing: 0%;
text-align: center;
}

.top_Banner h2 {
  font-family: "Prime Brand", "Source Sans 3", Arial, sans-serif !important;
  font-weight: 100 !important;
  font-size: 48px !important;
  letter-spacing: 0;
margin-bottom: 0;
}

.top_Banner h3 {
  font-family: "Source Sans 3", Arial, sans-serif !important;
  font-weight: 300 !important;
  font-size: 48px !important;
  margin: 0;
  font-style: normal !important;
  letter-spacing: 0;
}

.btn_top_Banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 4rem;
  border: 1px solid #ffffff;
  margin: 1rem 0;
  color: #ffffff;
  font-family: "Source Sans 3", Arial, sans-serif !important;
  font-weight: 300 !important;
  font-size: 24px !important;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.btn_top_Banner:hover {
  background: #ffffff;
  color: #111111;
}
.cta_parceiros {
  margin: 4rem 0 3rem 0 !important;
  color: #ffffff !important;
  font-family: "Source Sans 3", Arial, sans-serif !important;
  font-size: 18px !important;
  line-height: 1.4 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 300 !important;
}

.cta_parceiros:hover,
.cta_parceiros:focus,
.cta_parceiros:visited,
.cta_parceiros:active {
  color: #ffffff !important;
  text-decoration: underline !important;
  background: transparent !important;
}

.btn_topo_wrap {
  display: flex;
  justify-content: center;
  margin: 0 auto 12rem;
}

.btn_topo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
  height: auto;
  padding: 0;
  color: #ffffff;
  text-decoration: none;
  font-family: "Source Sans 3", Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 300 !important;
}

.btn_topo:hover,
.btn_topo:focus,
.btn_topo:active,
.btn_topo:visited {
  color: #ffffff;
  text-decoration: none;
}

.btn_topo_text {
  white-space: nowrap;
}

.btn_topo_arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  
  color: #ffffff;
  flex-shrink: 0;
}

.btn_topo_arrow svg {
  width: 3rem;
  height: 10rem;
  display: block;

}

.footer_parceiros {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.footer_parceiros_row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem clamp(2rem, 10vw, 18rem);
}

.footer_logoscontainer-fluid {
  width: 100%;
  margin-top: 8rem;
}

.footer_logoscontainer-fluid .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  min-height: 100px;
  margin: 0;
  padding: 1rem 3rem 0;
}

.footer_logoscontainer-fluid .logo_1,
.footer_logoscontainer-fluid .logo_2 {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
  min-height: 100px;
}

.footer_logoscontainer-fluid .logo_1 {
  justify-content: flex-start;
}

.footer_logoscontainer-fluid .logo_2 {
  justify-content: flex-end;
}

.footer_logo_item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  flex: 0 0 auto;
  width: auto !important;
  float: none !important;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.footer_logo_item img {
  display: block;
  max-width: none;
  filter: brightness(0) invert(1);
  width: auto;
  height: 36px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container-fluid {
  width: 100%;
  padding: 0;
}

/* Rely on Bootstrap 3's own .row / .col-sm-* grid and gutters;
   only add vertical rhythm and equal-height columns here. */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;
}

.row > [class^="col-"],
.row > [class*="col-"] {
  padding-left: 0;
  padding-right: 0;
}

/* ==========================================================================
   Section 1 — image + copy (30% / 70%)
   ========================================================================== */
.antonio {
 height: auto;
}

.antonio_bk1 {
  position: relative;
  width: 42%;
  flex: 0 0 42%;
  padding: 0 !important;
}

.antonio_bk1 img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
}

.antonio_bk2 {
  position: relative;
  width: 58%;
  flex: 0 0 58%;
  color: #ffffff;
  height: 520px;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.antonio_bk2 img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

.antonio_bk2__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 6.25rem 14rem 14rem 4rem;
}

.antonio_bk2 h2,
.susana_bk2 h2,
.alexandre_bk2 h2 {
  font-family: "Prime Brand", "Source Sans 3", Arial, sans-serif !important;
  font-weight: 500 !important;
  font-size: 48px !important;
  line-height: 100%;
  letter-spacing: 0%;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Sections 2–9 — image column (_bk1) + background/text column (_bk2)
   ========================================================================== */

.alexandre_bk1 {
  height: 520px;
  padding: 0 !important;
}

.alexandre_bk1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.susana_foto_bk2, .susana_bk2, .alexandre_bk2 {
  position: relative;
  color: #ffffff;
  height: 520px;
  padding: 0;
  overflow: hidden;
}

.susana_foto_bk2 img, .susana_bk2 img, .alexandre_bk2 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.susana_foto_bk2__content, .susana_bk2__content, .alexandre_bk2__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 7rem 2.5rem 5rem;
}

.susana_bk2__content,
.alexandre_bk2__content {
  padding: 3rem 20rem 2.5rem 7rem;
}

.imagesignature {
  position: absolute;
  top: 5rem;
  left: 5rem;
  z-index: 2;
  width: auto;
  height: 39px;
}

.imagesignature img {
  position: static !important;
  width: 100%;
  height: 100%;
  display: block;
  filter: brightness(0) invert(1);
}

/* logo blocks use contain; the other signature logos inherit cover from _bk2 img */
.susana_foto_bk2 .imagesignature img {
  object-fit: contain;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 820px) {
  .antonio .row {
    display: flex !important;
    flex-wrap: nowrap;
    margin: 0;
  }

  .antonio_bk1 {
    width: 42% !important;
    flex: 0 0 42% !important;
    min-height: 420px;
    height: 420px;
    background: #ececec;
  }

  .antonio_bk1 img {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .antonio_bk2 {
    width: 58% !important;
    flex: 0 0 58% !important;
    min-height: 420px;
    height: 420px;
  }

  .antonio_bk2__content {
    padding: 2.5rem 2rem 1.5rem 2rem;
  }

  .antonio_bk2__content h2 {
    font-size: 3.2rem !important;
  }

  .antonio_bk2__content p {
    font-size: 1.3rem !important;
    line-height: 1.45;
  }

  /* antonio is only 420px tall here: pin the signature to the bottom instead of top: 40rem */
  .antonio_bk2__content {
    height: 100%;
  }

  .antonio_bk2 p.signature {
    top: auto;
    bottom: 1.5rem;
  }

  .susana_bk2__content,
  .alexandre_bk2__content {
    padding: 2.5rem 2rem 1.5rem 2rem;
  }

  .susana_bk2 h2,
  .alexandre_bk2 h2 {
    font-size: 3.2rem !important;
  }
}

/* up to 820px (phones + portrait tablets) the sections stack vertically */
@media (max-width: 820px) {
  .row {
    display: block;
  }

  .row > [class^="col-"] {
    max-width: 100%;
    flex-basis: 100%;
  }

  /* Bootstrap gives .col-sm-* a % width + float from 768px; undo it so columns stack */
  .antonio > .row > [class*="col-"],
  .alexandre > .row > [class*="col-"],
  .susana > .row > [class*="col-"] {
    width: 100% !important;
    float: none !important;
  }

  /* stacked sections: image columns keep a fixed height, text columns grow */
  /* image heights grow with the screen width so portraits are not cropped too hard */
  [class*="_bk1"] {
    height: clamp(320px, 80vw, 640px) !important;
  }

  [class*="_bk2"] {
    height: auto !important;
    min-height: clamp(360px, 80vw, 640px);
  }

  /* anchor photos to the top so heads are never cut off */
  [class*="_bk1"] img,
  [class*="_bk2"] > img {
    object-position: center top;
  }

  /* content sits at the bottom of the photo so logos/signatures don't cover faces */
  [class*="_bk2__content"] {
    padding: 3rem 1.5rem !important;
    justify-content: flex-end;
  }

  [class*="_bk2"] h2 {
    font-size: 32px !important;
  }

  p.signature,
  [class^="imagesignature"] {
    position: static;
    margin-top: 2rem;
  }

  /* signature logos keep their own proportions instead of stretching to the column width */
  [class*="_bk2"] [class^="imagesignature"] img {
    width: auto;
    max-width: 100%;
    height: 39px;
    object-fit: contain;
  }

  .nav_bar .row {
    display: flex;
    flex-wrap: nowrap;
    padding: 1rem 1.5rem 0;
  }

  /* Bootstrap's clearfix pseudo-elements become flex items and push the logos apart */
  .nav_bar .row::before,
  .nav_bar .row::after,
  .footer_logoscontainer-fluid .row::before,
  .footer_logoscontainer-fluid .row::after {
    display: none;
  }

  .top_Banner .hero {
    margin-top: 8rem;
  }

  .top_Banner h1 span {
    font-size: inherit !important;
  }

  .top_Banner h2,
  .top_Banner h3 {
    font-size: 28px !important;
  }

  .btn_top_Banner {
    padding: 0.7rem 2rem;
    font-size: 18px !important;
  }

  .btn_topo_wrap {
    margin-bottom: 5rem;
  }

  .footer_parceiros_row {
    display: flex;
    gap: 2rem 3rem;
  }

  .footer_logoscontainer-fluid .row {
    display: flex;
    flex-wrap: nowrap;
    padding: 1rem 0 0;
  }

  /* undo the full-width column rule above for logo rows */
  .footer_parceiros_row > [class*="col-"],
  .footer_logoscontainer-fluid .row > [class*="col-"] {
    flex-basis: auto;
  }

  .antonio .row {
    display: block !important;
    margin: 0;
  }

  .antonio_bk1 {
    display: block;
    min-height: 280px;
    height: 38vh;
    max-height: 420px;
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  .antonio_bk2 {
    display: block;
    min-height: 320px;
    height: auto;
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  .antonio_bk2__content {
    padding: 2.5rem 1.25rem 2rem;
  }

  html {
    font-size: 13px !important;
  }

  .top_Banner {
    min-height: 24rem;
  }

  h1,
  .top_Banner h1 {
    font-size: 42px !important;
  }

  h2 {
    font-size: 32px !important;
  }
}
/* Legacy + Visionary + Insider: equal-width columns so logos line up across rows */
#footer-parceiros_visionary .footer_parceiros_row,
#footer-parceiros_insider .footer_parceiros_row,
#footer-parceiros_legacy .footer_parceiros_row {
  gap: 2rem 0;
  margin-bottom: 4rem;
}

#footer-parceiros_visionary .footer_logo_item,
#footer-parceiros_insider .footer_logo_item,
#footer-parceiros_legacy .footer_logo_item {
  flex: 0 0 20%;
  width: 20% !important;
}

/* side padding so wide logos never touch (beats the .row > col padding reset) */
.footer_parceiros_row > .footer_logo_item {
  padding-left: 1rem;
  padding-right: 1rem;
}

#footer-parceiros_visionary .footer_logo_item img,
#footer-parceiros_insider .footer_logo_item img,
#footer-parceiros_legacy .footer_logo_item img {
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  #footer-parceiros_visionary .footer_logo_item,
  #footer-parceiros_insider .footer_logo_item,
  #footer-parceiros_legacy .footer_logo_item {
    flex: 0 0 50%;
    width: 50% !important;
  }
}

/* <=600px: Legacy, Visionary and Insider logos stack one per line */
@media (max-width: 600px) {
  .footer_parceiros_row,
  #footer-parceiros_visionary .footer_parceiros_row,
  #footer-parceiros_insider .footer_parceiros_row,
  #footer-parceiros_legacy .footer_parceiros_row {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  #footer-parceiros_visionary .footer_logo_item,
  #footer-parceiros_insider .footer_logo_item,
  #footer-parceiros_legacy .footer_logo_item {
    flex: 0 0 auto;
    width: 100% !important;
  }
}

.titulos_logos_footer {
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-size: 2rem !important;
  color: #F26724;

}
/* remove the extra closing brace */

/* desktop: cap the width of very wide logos so all partners read at a similar size */
@media (min-width: 1024px) {
  #footer-parceiros_legacy .footer_logo_item img,
  #footer-parceiros_visionary .footer_logo_item img,
  #footer-parceiros_insider .footer_logo_item img {
    max-width: 150px;
  }

  /* optical tweaks: CBRE is a heavy wordmark, Schmitt's PNG has a lot of empty space */
  #footer-parceiros_legacy img[src$="CBRE.svg"] {
    height: 28px;
  }

  #footer-parceiros_legacy img[src$="schmitt_logo.png"] {
    height: 52px;
  }
}

/* optical balance: these logos read small at the default 36px */
#footer-parceiros_visionary img[src$="savills.png"],
#footer-parceiros_visionary img[src$="nos.png"],
#footer-parceiros_visionary img[src$="ML.png"],
#footer-parceiros_visionary img[src$="lg.png"],
#footer-parceiros_visionary img[src$="ecociaf.png"],
#footer-parceiros_insider img[src$="finangeste.png"],
#footer-parceiros_insider img[src$="wider_property.png"] {
  height: 46px;
}

@media (min-width: 1024px) {
  #footer-parceiros_visionary img[src$="savills.png"],
  #footer-parceiros_visionary img[src$="nos.png"],
  #footer-parceiros_visionary img[src$="ML.png"],
  #footer-parceiros_visionary img[src$="lg.png"],
  #footer-parceiros_visionary img[src$="ecociaf.png"],
  #footer-parceiros_insider img[src$="finangeste.png"],
  #footer-parceiros_insider img[src$="wider_property.png"] {
    max-width: 180px;
  }
}

/* every _bk2 column: signature pinned bottom-left at the same height, so
   signatures in side-by-side columns line up (logo blocks keep the logo top-left) */
[class*="_bk2__content"] {
  height: 100%;
}

[class*="_bk2__content"] > p.signature {
  top: auto;
  bottom: 2.5rem;
}

@media (max-width: 820px) {
  /* small logo tucked in the top-left corner, clear of the faces (photos are centred) */
  [class*="_bk2__content"] > [class^="imagesignature"] {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    margin: 0;
    max-width: 40%;
    height: auto;
  }

  [class*="_bk2__content"] > [class^="imagesignature"] img {
    height: 26px;
  }

  [class*="_bk2__content"]:has([class^="imagesignature"]) > p.signature {
    position: absolute;
    left: 1.5rem;
    bottom: 3rem;
    margin: 0;
  }

  /* blocks where the head touches the top of the photo: drop the photo below a
     band in the photo's own grey so the logo never sits on anyone's head */
  .susana_foto_bk2:has(.imagesignature) {
    background: linear-gradient(to right, #565658, #363638);
  }

  .susana_foto_bk2:has(.imagesignature) > img {
    top: 4.5rem;
    height: calc(100% - 4.5rem);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 2rem);
    mask-image: linear-gradient(to bottom, transparent, #000 2rem);
  }
}

/* all widths: anchor section photos to the top so any crop (when a photo is
   scaled to cover its column) is taken from the bottom, never from heads */
[class*="_bk1"] img,
[class*="_bk2"] > img {
  object-position: center top;
}

/* stacked layout: antonio text starts at the top of its block, not the bottom */
@media (max-width: 820px) {
  .antonio_bk2 .antonio_bk2__content {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Detail page (pages/*.html) — person page reached from the home
   ========================================================================== */

.detail_page {
  background: #1b1b1b;
  color: #ffffff;
}

.detail_header {
  position: relative;
  min-height: 14rem;
}

.detail_main {
  max-width: 144rem;
  margin: 0 auto;
  padding: 4rem 5rem 8rem;
}

.detail_back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  font-size: 1.3rem !important;
  font-weight: 300 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail_back:hover,
.detail_back:focus {
  color: #F26724;
  text-decoration: none;
}

.detail_title {
  font-family: "Prime Brand", "Source Sans 3", Arial, sans-serif !important;
  font-weight: 500 !important;
  font-size: 4.8rem !important;
  line-height: 1.1;
  margin: 3rem 0 6rem;
}

.detail_intro {
  display: flex;
  flex-wrap: nowrap;
  gap: 5rem;
}

/* the .row clearfix pseudo-elements would count as flex items and add a gap */
.detail_intro::before,
.detail_intro::after {
  display: none;
}

.row > .detail_photo {
  flex: 0 0 34%;
  width: 34%;
}

.detail_photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1404 / 1120;
  object-fit: cover;
  /* per-photo framing: set --photo-pos on the <img> when the person is off-centre */
  object-position: var(--photo-pos, center top);
}

.row > .detail_text {
  flex: 1 1 auto;
  width: auto;
}

.detail_quote {
  font-size: 2.2rem !important;
  line-height: 1.45;
  margin: 0 0 3rem;
}

p.signature.detail_signature {
  position: static;
  margin: 0;
}

.detail_highlight {
  color: #F26724;
  font-size: 1.6rem !important;
  line-height: 1.5;
  margin: 0 0 3rem;
}

/* video: Vimeo player in a 16:9 box */
.detail_video {
  position: relative;
  margin-top: 8rem;
  scroll-margin-top: 6rem; /* #video anchor: leave room above so the top isn't cut */
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.detail_video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* stacked: photo above the text */
@media (max-width: 820px) {
  .detail_main {
    padding: 3rem 1.5rem 6rem;
  }

  .detail_title {
    font-size: 3.4rem !important;
    margin: 2rem 0 3rem;
  }

  .detail_intro {
    display: block;
  }

  .row > .detail_photo,
  .row > .detail_text {
    width: 100%;
    float: none;
  }

  .detail_photo {
    margin-bottom: 3rem;
  }

  .detail_quote {
    font-size: 1.6rem !important;
  }

  .detail_highlight {
    font-size: 1.3rem !important;
  }

  .detail_video {
    margin-top: 5rem;
  }
}

/* home: a photo column that links to the person's detail page */
[class*="_bk1"] > a {
  display: block;
  height: 100%;
}

/* home: a column whose whole area links to a person's detail page */
.bk_link {
  position: absolute;
  inset: 0;
  z-index: 4;
}

/* small phones: VI / Iberinmo logos a little smaller so both fit side by side */
@media (max-width: 600px) {
  .logo_1 img {
    width: 140px;
    height: 27px;
  }

  .logo_2 img {
    width: 90px;
  }
}

/* section backgrounds (kept here, not inline, so the HTML templates hold no CSS
   with template tags; paths are relative to this file in the static folder) */
.footer {
  background: url("imgs/hero_black.png") center/cover no-repeat;
  color: #ffffff;
  padding: 4rem 2rem;
}

.detail_header {
  background: url("imgs/imgs-pages/hero_black.png") center/cover no-repeat;
}

/* text columns (sections 1, 4, 6, 9): vertical #080D1B gradient over the photo,
   under the text, for legibility */
.antonio_bk2::before,
.susana_bk2::before,
.alexandre_bk2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 13, 27, 0.9) 0%, rgba(8, 13, 27, 0) 100%);
}

/* Iberinmo logo over the António, Alexandre and Susana photos: top-left, 45px in */
.alexandre_bk1 {
  position: relative;
}

.antonio_bk1 > .imagesignature,
.alexandre_bk1 > .imagesignature,
.susana_foto_bk2 > .imagesignature {
  position: absolute;
  top: 0;
  left: 0;
  margin: 45px 0 0 45px;
  z-index: 3;
  height: 39px;
}

.antonio_bk1 > .imagesignature img,
.alexandre_bk1 > .imagesignature img,
.susana_foto_bk2 > .imagesignature img {
  position: static !important;
  width: auto;
  height: 100%;
  object-fit: contain;
}

/* desktop text blocks (any _bk2__content with an h2): title, text and signature
   stacked from the top, signature right after the text (reference layout) */
@media (min-width: 821px) {
  [class*="_bk2__content"]:has(> h2) {
    justify-content: flex-start;
    padding: 100px 64px 48px 88px;
  }

  [class*="_bk2__content"]:has(> h2) > h2 {
    font-size: 44px !important;
    font-weight: 400 !important;
    line-height: 1.1;
    margin: 0 0 28px;
  }

  [class*="_bk2__content"]:has(> h2) > p {
    max-width: 720px;
    font-size: 20px !important;
    line-height: 1.35;
    margin: 0;
  }

  [class*="_bk2__content"]:has(> h2) > p.signature {
    position: static;
    margin-top: 44px;
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  [class*="_bk2__content"]:has(> h2) > p.signature span {
    margin-top: 0;
    font-size: 18px !important;
    text-transform: uppercase;
  }
}

/* <=820px stacked: shorter blocks. Text columns follow their content; photo
   columns are capped lower. antonio_bk1 keeps its original height. */
@media (max-width: 820px) {
  .antonio_bk2,
  .alexandre_bk2,
  .susana_bk2,
  [class*="_bk2__content"] {
    min-height: 0 !important;
  }

  /* readable text, in px because the root font-size changes per breakpoint */
  [class*="_bk2__content"] > p {
    font-size: 18px !important;
    line-height: 1.45;
  }

  [class*="_bk2__content"] > p.signature,
  [class*="_bk2__content"] > p.signature span {
    font-size: 17px !important;
    line-height: 1.35 !important;
  }

  .alexandre_bk1,
  .susana_foto_bk2 {
    height: clamp(320px, 62vw, 480px) !important;
    min-height: 0 !important;
  }
}
