/* ==========================================================================
   Theme base. Bootstrap 5 comes from the platform (CDN): this file never
   restyles Bootstrap's own selectors (html, body, .vi_row, .col-*, .container*),
   so the platform header keeps its look. The theme markup uses its own grid
   classes (.vi_container / .vi_row / .vi_col-N) and every element reset is
   scoped to the theme sections with :where(.vi_container, .detail_page) (zero specificity).
   ========================================================================== */

/* the theme was designed on a 10px rem (13px up to 820px); --vi-rem keeps those
   sizes without touching the root font-size Bootstrap and the platform use */
:root {
  --vi-rem: 10px;
}

/* body text the theme was built on (the font comes from the platform body) */
:where(section.vi_container, .detail_page) {
  font-size: 14px;
  line-height: 1.42857143;
}

:where(section.vi_container:not(.detail_page *)) {
  color: #111111;
}

:where(.vi_container, .detail_page) :is(h1, h2, h3, h4, h5, h6) {
  font-weight: 500 !important;
  line-height: 1.1;
  margin-top: 20px;
  margin-bottom: 10px;
}

:where(.vi_container, .detail_page) p {
  margin: 0 0 10px;
}

:where(.vi_container, .detail_page) a {
  color: #337ab7;
  text-decoration: none;
  background-color: transparent;
}

:where(.vi_container, .detail_page) a:hover,
:where(.vi_container, .detail_page) a:focus {
  color: #23527c;
  text-decoration: underline;
}

:where(.vi_container, .detail_page) img {
  border: 0;
  vertical-align: middle;
}

/* grid: clearfix pseudo-elements + .vi_col-N widths.
   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. */
.vi_container::before,
.vi_container::after,
.vi_row::before,
.vi_row::after {
  content: " ";
  display: table;
}

.vi_container::after,
.vi_row::after {
  clear: both;
}

.vi_row > * {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  padding-left: 7.5px;
  padding-right: 7.5px;
}

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

@media (min-width: 576px) {
  [class*="vi_col-"] { flex: 0 0 auto; }
  .vi_col-3 { width: 25%; }
  .vi_col-4 { width: 33.33333333%; }
  .vi_col-6 { width: 50%; }
  .vi_col-8 { width: 66.66666667%; }
}

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

/* ============================ end of theme base =========================== */

@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;
}

:where(.vi_container, .detail_page) img {
  display: block;
  max-width: 100%;
}

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

:where(.vi_container, .detail_page) h1 {
  font-size: 64px !important;
}

:where(.vi_container, .detail_page) h2 {
  font-size: 48px !important;
}

:where(.vi_container, .detail_page) h3 {
  font-family: "Source Sans 3", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: calc(1.5 * var(--vi-rem)) !important;
  line-height: 1.2;
  letter-spacing: 0;
  margin: 0 0 calc(1 * var(--vi-rem));
}

:where(.vi_container, .detail_page) 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%;

}

:where(.vi_container, .detail_page) p:last-child {
  margin-bottom: 0;
}
/* platform header: its .row sits in a .container-lg.p-0, so Bootstrap's negative
   row margins push it 12px past the screen (horizontal scroll on phones) */
.evolutio-events-frontoffice header .header-content {
  margin-left: 0;
  margin-right: 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: calc(1.125 * var(--vi-rem))!important;
  line-height: 1.4 !important;
}

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

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

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

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

.nav_bar .vi_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  min-height: 100px;
  margin: 0;
  padding: calc(1 * var(--vi-rem)) calc(3 * var(--vi-rem)) 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: calc(0.5 * var(--vi-rem));
  margin-top: calc(15 * var(--vi-rem));
}

.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: calc(0.7 * var(--vi-rem)) calc(4 * var(--vi-rem));
  border: 1px solid #ffffff;
  margin: calc(1 * var(--vi-rem)) 0;
  color: #ffffff;
  font-family: "Source Sans 3", Arial, sans-serif !important;
  font-weight: 300 !important;
  font-size: 24px !important;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.4s ease,
    color 0.4s ease;
}

button.btn_top_Banner {
  background: transparent;
  border-radius: 0;
  line-height: inherit;
}

.btn_top_Banner:focus,
.btn_top_Banner:active,
.btn_top_Banner:visited {
  background: transparent;
  color: #d5d6d9;
  text-decoration: none;
}

.btn_top_Banner:hover {
  background: #ffffff;
  color: #111111;
  text-decoration: none;
}
.cta_parceiros {
  margin: calc(4 * var(--vi-rem)) 0 calc(3 * var(--vi-rem)) 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 calc(12 * var(--vi-rem));
}

.btn_topo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: calc(0.35 * var(--vi-rem));
  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 {
  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;
  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: calc(3 * var(--vi-rem));
  height: calc(10 * var(--vi-rem));
  display: block;

}

.footer_parceiros {
  margin-top: calc(1.5 * var(--vi-rem));
  margin-bottom: calc(2 * var(--vi-rem));
}

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

.footer_logoscontainer-fluid {
  width: 100%;
  margin-top: calc(8 * var(--vi-rem));
}

.footer_logoscontainer-fluid .vi_row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  min-height: 100px;
  margin: 0;
  padding: calc(1 * var(--vi-rem)) calc(3 * var(--vi-rem)) 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: calc(0.25 * var(--vi-rem));
  padding-right: calc(0.25 * var(--vi-rem));
}

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

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

/* full width, no padding: overrides the section paddings declared above */
.vi_container {
  width: 100%;
  padding: 0;
}

/* theme grid row: flex, equal-height columns, no gutters */
.vi_row {
  display: flex;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;
}

.vi_row > [class*="vi_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: calc(6.25 * var(--vi-rem)) calc(14 * var(--vi-rem)) calc(14 * var(--vi-rem)) calc(4 * var(--vi-rem));
}

.antonio_bk2 h2,
.susana_bk2 h2,
.alexandre_bk2 h2,
.arturo_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: calc(1.5 * var(--vi-rem));
}

/* ==========================================================================
   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, .arturo_foto_bk2, .arturo_bk2 {
  position: relative;
  color: #ffffff;
  height: 520px;
  padding: 0;
  overflow: hidden;
}

.susana_foto_bk2 img, .susana_bk2 img, .alexandre_bk2 img, .arturo_foto_bk2 img, .arturo_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, .arturo_foto_bk2__content, .arturo_bk2__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(6 * var(--vi-rem)) calc(7 * var(--vi-rem)) calc(2.5 * var(--vi-rem)) calc(5 * var(--vi-rem));
}

.susana_bk2__content,
.alexandre_bk2__content,
.arturo_bk2__content {
  padding: calc(3 * var(--vi-rem)) calc(20 * var(--vi-rem)) calc(2.5 * var(--vi-rem)) calc(7 * var(--vi-rem));
}

.imagesignature {
  position: absolute;
  top: calc(5 * var(--vi-rem));
  left: calc(5 * var(--vi-rem));
  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, .arturo_foto_bk2 .imagesignature img {
  object-fit: contain;
}

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

@media (max-width: 820px) {
  .antonio .vi_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: calc(2.5 * var(--vi-rem)) calc(2 * var(--vi-rem)) calc(1.5 * var(--vi-rem)) calc(2 * var(--vi-rem));
  }

  .antonio_bk2__content h2 {
    font-size: calc(3.2 * var(--vi-rem)) !important;
  }

  .antonio_bk2__content p {
    font-size: calc(1.3 * var(--vi-rem)) !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: calc(1.5 * var(--vi-rem));
  }

  .susana_bk2__content,
  .alexandre_bk2__content,
  .arturo_bk2__content {
    padding: calc(2.5 * var(--vi-rem)) calc(2 * var(--vi-rem)) calc(1.5 * var(--vi-rem)) calc(2 * var(--vi-rem));
  }

  .susana_bk2 h2,
  .alexandre_bk2 h2,
  .arturo_bk2 h2 {
    font-size: calc(3.2 * var(--vi-rem)) !important;
  }
}

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

  .vi_row > [class*="vi_col-"] {
    max-width: 100%;
    flex-basis: 100%;
  }

  /* Bootstrap gives .col-sm-* a % width + float from 768px; undo it so columns stack */
  .antonio > .vi_row > [class*="vi_col-"],
  .alexandre > .vi_row > [class*="vi_col-"],
  .susana > .vi_row > [class*="vi_col-"],
  .arturo > .vi_row > [class*="vi_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: calc(3 * var(--vi-rem)) calc(1.5 * var(--vi-rem)) !important;
    justify-content: flex-end;
  }

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

  p.signature,
  [class^="imagesignature"] {
    position: static;
    margin-top: calc(2 * var(--vi-rem));
  }

  /* 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 .vi_row {
    display: flex;
    flex-wrap: nowrap;
    padding: calc(1 * var(--vi-rem)) calc(1.5 * var(--vi-rem)) 0;
  }

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

  .top_Banner .hero {
    margin-top: calc(8 * var(--vi-rem));
  }

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

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

  .btn_top_Banner {
    padding: calc(0.7 * var(--vi-rem)) calc(2 * var(--vi-rem));
    font-size: 18px !important;
  }

  .btn_topo_wrap {
    margin-bottom: calc(5 * var(--vi-rem));
  }

  .footer_parceiros_row {
    display: flex;
    gap: calc(2 * var(--vi-rem)) calc(3 * var(--vi-rem));
  }

  .footer_logoscontainer-fluid .vi_row {
    display: flex;
    flex-wrap: nowrap;
    padding: calc(1 * var(--vi-rem)) 0 0;
  }

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

  .antonio .vi_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: calc(2.5 * var(--vi-rem)) calc(1.25 * var(--vi-rem)) calc(2 * var(--vi-rem));
  }

  :root {
    --vi-rem: 13px;
  }

  .top_Banner {
    min-height: calc(24 * var(--vi-rem));
  }

  :where(.vi_container, .detail_page) h1,
  .top_Banner h1 {
    font-size: 42px !important;
  }

  :where(.vi_container, .detail_page) 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: calc(2 * var(--vi-rem)) 0;
  margin-bottom: calc(4 * var(--vi-rem));
}

#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 .vi_row > col padding reset) */
.footer_parceiros_row > .footer_logo_item {
  padding-left: calc(1 * var(--vi-rem));
  padding-right: calc(1 * var(--vi-rem));
}

#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: calc(2 * var(--vi-rem));
    margin-bottom: calc(2 * var(--vi-rem));
  }

  #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: calc(2 * var(--vi-rem));
  font-size: calc(2 * var(--vi-rem)) !important;
  color: #F26724;

}
/* remove the extra closing brace */

/* desktop: room for the widest wordmarks (Avila Spaces, Civilria) */
@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: 175px;
  }
}

/* optical balance: per-logo heights so every partner covers a similar visible
   area (~3400px2 of ink, 16-40px tall); wide wordmarks shorter, square marks taller */
.footer_parceiros img[src$="avila_spaces.png"] {
  height: 19px;
}
.footer_parceiros img[src$="civilria.png"] {
  height: 15px;
}
.footer_parceiros img[src$="KREST.svg"],
.footer_parceiros img[src$="citymover.png"] {
  height: 22px;
}
.footer_parceiros img[src$="Teixeira_Duarte.png"],
.footer_parceiros img[src$="openbook.png"] {
  height: 25px;
}
.footer_parceiros img[src$="vizta.png"],
.footer_parceiros img[src$="adriparte.png"],
.footer_parceiros img[src$="electrolux.png"] {
  height: 26px;
}
.footer_parceiros img[src$="CW.png"],
.footer_parceiros img[src$="avenue.png"] {
  height: 28px;
}
.footer_parceiros img[src$="finangeste.png"] {
  height: 27px;
}
.footer_parceiros img[src$="CBRE.svg"],
.footer_parceiros img[src$="c21.png"],
.footer_parceiros img[src$="c21_arts.png"],
.footer_parceiros img[src$="c21_portugal.png"] {
  height: 29px;
}
.footer_parceiros img[src$="ids.png"],
.footer_parceiros img[src$="garen.png"] {
  height: 30px;
}
.footer_parceiros img[src$="gesvalt.png"],
.footer_parceiros img[src$="east_bank.png"],
.footer_parceiros img[src$="zome.png"] {
  height: 31px;
}
.footer_parceiros img[src$="dils.png"],
.footer_parceiros img[src$="pvw.png"],
.footer_parceiros img[src$="vogue_homes.png"],
.footer_parceiros img[src$="castro_group.png"],
.footer_parceiros img[src$="wecity.png"] {
  height: 32px;
}
.footer_parceiros img[src$="mapei2.png"] {
  height: 33px;
}
.footer_parceiros img[src$="Edivisa.png"] {
  height: 34px;
}
.footer_parceiros img[src$="uria.png"] {
  height: 35px;
}
.footer_parceiros img[src$="sonae_sierra.png"] {
  height: 37px;
}
.footer_parceiros img[src$="saint_gobain.png"],
.footer_parceiros img[src$="abreu.png"] {
  height: 38px;
}
.footer_parceiros img[src$="jll.png"],
.footer_parceiros img[src$="nhood.png"] {
  height: 39px;
}
.footer_parceiros img[src$="vitoria_logo.png"] {
  height: 40px;
}
.footer_parceiros img[src$="nos.png"] {
  height: 48px;
}
.footer_parceiros img[src$="savills.png"] {
  height: 56px;
}
.footer_parceiros img[src$="wider_property.png"] {
  height: 37px;
}
.footer_parceiros img[src$="fides.png"] {
  height: 54px;
}
.footer_parceiros img[src$="CGD.png"] {
  height: 38px;
}
.footer_parceiros img[src$="engexpor.png"] {
  height: 20px;
}
.footer_parceiros img[src$="/ecofiac.png"] {
  height: 50px;
}
.footer_parceiros img[src$="kw.png"] {
  height: 38px;
}
.footer_parceiros img[src$="geo.png"] {
  height: 34px;
}
.footer_parceiros img[src$="basalto.png"] {
  height: 42px;
}
.footer_parceiros img[src$="ageas.png"] {
  height: 41px;
}
.footer_parceiros img[src$="square_am.png"] {
  height: 62px;
}
.footer_parceiros img[src$="saraiva_associados.png"] {
  height: 46px;
}
.footer_parceiros img[src$="Bprime.png"] {
  height: 44px;
}
.footer_parceiros img[src$="status_capital.png"] {
  height: 66px;
}
.footer_parceiros img[src$="siimGroup.png"] {
  height: 31px;
}
.footer_parceiros img[src$="BMA.png"] {
  height: 33px;
}
.footer_parceiros img[src$="lg.png"] {
  height: 41px;
}
.footer_parceiros img[src$="horwath.png"] {
  height: 23px;
}
.footer_parceiros img[src$="alma.png"] {
  height: 54px;
}
.footer_parceiros img[src$="rock_Building.png"] {
  height: 27px;
}
.footer_parceiros img[src$="srs_legal.png"] {
  height: 50px;
}
.footer_parceiros img[src$="agreen.png"] {
  height: 46px;
}
.footer_parceiros img[src$="/or.png"] {
  height: 41px;
}
.footer_parceiros img[src$="schmitt_logo.png"] {
  height: 56px;
}

/* 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: calc(2.5 * var(--vi-rem));
}

@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: calc(1.5 * var(--vi-rem));
    left: calc(1.5 * var(--vi-rem));
    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: calc(1.5 * var(--vi-rem));
    bottom: calc(3 * var(--vi-rem));
    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: calc(4.5 * var(--vi-rem));
    height: calc(100% - calc(4.5 * var(--vi-rem)));
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 calc(2 * var(--vi-rem)));
    mask-image: linear-gradient(to bottom, transparent, #000 calc(2 * var(--vi-rem)));
  }
}

/* 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: calc(14 * var(--vi-rem));
}

.detail_main {
  max-width: calc(144 * var(--vi-rem));
  margin: 0 auto;
  padding: calc(4 * var(--vi-rem)) calc(5 * var(--vi-rem)) calc(8 * var(--vi-rem));
}

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

.detail_back--bottom {
  margin-top: calc(3 * var(--vi-rem));
}

.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: calc(4.8 * var(--vi-rem)) !important;
  line-height: 1.1;
  margin: calc(3 * var(--vi-rem)) 0 calc(6 * var(--vi-rem));
}

.detail_intro {
  display: flex;
  flex-wrap: nowrap;
  gap: calc(5 * var(--vi-rem));
}

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

.vi_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);
}

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

.detail_quote {
  font-size: calc(2.2 * var(--vi-rem)) !important;
  line-height: 1.45;
  margin: 0 0 calc(3 * var(--vi-rem));
}

/* same size as the index signatures (px: the rem base is only 10px) */
p.signature.detail_signature,
p.signature.detail_signature span {
  font-size: 18px !important;
  line-height: 1.3 !important;
}

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

p.signature.detail_signature span {
  margin-top: 0;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  p.signature.detail_signature,
  p.signature.detail_signature span {
    font-size: 17px !important;
    line-height: 1.35 !important;
  }
}

.detail_highlight {
  color: #F26724;
  font-size: calc(1.6 * var(--vi-rem)) !important;
  line-height: 1.5;
  margin: 0 0 calc(3 * var(--vi-rem));
}

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

.detail_video iframe,
.detail_video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

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

  .detail_title {
    font-size: calc(3.4 * var(--vi-rem)) !important;
    margin: calc(2 * var(--vi-rem)) 0 calc(3 * var(--vi-rem));
  }

  .detail_intro {
    display: block;
  }

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

  .detail_photo {
    margin-bottom: calc(3 * var(--vi-rem));
  }

  .detail_quote {
    font-size: calc(1.6 * var(--vi-rem)) !important;
  }

  .detail_highlight {
    font-size: calc(1.3 * var(--vi-rem)) !important;
  }

  .detail_video {
    margin-top: calc(5 * var(--vi-rem));
  }
}

/* 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/fundos/hero_black.png") center/cover no-repeat;
  color: #ffffff;
  padding: calc(4 * var(--vi-rem)) calc(2 * var(--vi-rem));
}

.detail_header {
  background: url("imgs/fundos/hero_black_pages.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,
.arturo_bk2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(8, 13, 27, 0.9) 0%, rgba(8, 13, 27, 0) 100%);
}

/* Francisco / Bernardo photos: no gradient */
.francisco_bk2::before {
  display: none;
}

/* speaker blocks: signature on the same left margin as the logo (45px) */
.francisco_bk2 > .alexandre_bk2__content {
  padding-left: 45px !important;
}

/* speaker company logos: per-logo heights so they read the same size as the Iberinmo mark */
.francisco .francisco_bk2 > .imagesignature {
  height: auto;
}
.francisco .francisco_bk2 > .imagesignature img {
  height: 51px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="CBRE.svg"] {
  height: 30px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="portoBay.png"] {
  height: 56px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="square_am.png"] {
  height: 66px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="vanguard.png"] {
  height: 48px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="KREST.svg"] {
  height: 24px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="east_bank.png"] {
  height: 34px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="vogue_homes.png"] {
  height: 34px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="wire.png"] {
  height: 45px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="solid.png"] {
  height: 60px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="ageas.png"] {
  height: 45px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="saraiva_associados.png"] {
  height: 50px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="mapei2.png"] {
  height: 36px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="schmitt_logo.png"] {
  height: 62px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="vizta.png"] {
  height: 29px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="nhood.png"] {
  height: 48px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="vitoria_logo.png"] {
  height: 50px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="uria.png"] {
  height: 44px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="horwath.png"] {
  height: 30px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="jll.png"] {
  height: 32px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="openbook.png"] {
  height: 30px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="dils.png"] {
  height: 30px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="Broadway_Malyan.png"] {
  width: 145px;
  height: auto;
}
.francisco .francisco_bk2 > .imagesignature img[src$="siimGroup.png"] {
  height: 32px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="sonae_sierra.png"] {
  height: 32px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="merlin_properties.png"] {
  height: 56px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="arrow.png"] {
  height: 30px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="MLeitao.png"] {
  height: 44px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="CW.png"] {
  height: 30px;
}
.francisco .francisco_bk2 > .imagesignature img[src$="apemip.png"] {
  height: 34px;
}

/* portrait photos: crop from the bottom so heads are never cut */
.francisco_bk2 > img {
  object-position: center top;
}

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

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

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

/* "ver vídeo →": the only link from a home photo block to the detail page */
.ver_video {
  position: absolute;
  right: 45px;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-family: "Source Sans 3", Arial, sans-serif !important;
  font-size: 14px !important;
  line-height: 1;
  transform-origin: center;
  transition: transform 0.3s ease;

    letter-spacing: 0.02em;
    font-weight: 300 !important;
}

/* a.* beats the photo rules (.antonio_bk1 img, .susana_foto_bk2 img...) that make imgs absolute and full-size */
a.ver_video img {
  position: static;
  inset: auto;
  z-index: auto;
  display: block;
  width: 56px;
  height: 29px;
  object-fit: contain;
}

.ver_video:hover,
.ver_video:focus {
  color: #ffffff;
  text-decoration: none;
  transform: scale(1.1);
}

/* touch: bigger text and a ~44px tap area (padding, offsets compensated) */
@media (max-width: 820px) {
  .ver_video {
    right: 12px;
    padding: 12px 12px;
    font-size: 17px !important;
  }


}

/* 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;
  }

  /* photo-only blocks (Francisco, Bernardo): same signature size as António */
  .francisco_bk2 p.signature {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }

  .francisco_bk2 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"],
  .arturo_bk2 {
    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,
  .arturo_foto_bk2,
  .francisco .francisco_bk2 {
    height: clamp(320px, 62vw, 480px) !important;
    min-height: 0 !important;
    flex: 0 0 auto;
  }

  /* speaker blocks: signature pinned to the bottom of the photo, clear of the logo */
  .francisco .francisco_bk2 > .alexandre_bk2__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    padding-bottom: calc(2 * var(--vi-rem)) !important;
  }

  /* stacked: photo (col-sm-4) always above its text (col-sm-8) */
  .alexandre > .vi_row {
    display: flex !important;
    flex-direction: column;
  }

  .alexandre > .vi_row::before,
  .alexandre > .vi_row::after {
    display: none;
  }

  .alexandre_bk1 {
    order: -1;
  }
}

/* <=820px: every speaker photo block has the same height and framing (head to
   waist, like António), whatever the source photo's proportions */
@media (max-width: 820px) {
  .antonio_bk1,
  .alexandre_bk1,
  .susana_foto_bk2,
  .arturo_foto_bk2,
  .francisco .francisco_bk2 {
    height: clamp(360px, 110vw, 640px) !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  /* wide photos: keep the person in frame (x = where the person stands) */
  .francisco_bk2 > img[src$="francisco_horta.jpg"] {
    object-position: 30% top;
  }
  .francisco_bk2 > img[src$="bernardo_trindade.jpg"] {
    object-position: 76% top;
  }
  /* Arturo's photo has a lot of headroom: zoom in a little so he is framed like António */
  .arturo_foto_bk2 > img {
    top: -4%;
    height: 125%;
    object-position: 40% top;
  }
}

/* <=820px: the two logo columns (header and footer) share the row width.
   Without this each one took ~100% and the page grew wider than the phone,
   so the browser zoomed the whole page out and every text looked tiny. */
@media (max-width: 820px) {
  .nav_bar .vi_row > [class*="vi_col-"],
  .footer_logoscontainer-fluid .vi_row > [class*="vi_col-"] {
    flex: 1 1 0 !important;
    min-width: 0;
    width: auto !important;
    max-width: 50%;
  }

  .logo_1 img,
  .logo_2 img {
    max-width: 100%;
  }
}

/* <=600px: Bernardo's photo is a tight landscape crop, so his head filled the
   block and the logo sat on it. Shrink the photo to the bottom 70% of the block
   over a band in the photo's own grey, so he reads like the other speakers. */
@media (max-width: 600px) {
  .francisco_bk2:has(> img[src$="bernardo_trindade.jpg"]) {
    background: linear-gradient(to right, #5a5d62, #323232);
  }

  .francisco_bk2 > img[src$="bernardo_trindade.jpg"] {
    top: auto;
    bottom: 0;
    height: 70%;
    object-position: 76% top;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 calc(2 * var(--vi-rem)));
    mask-image: linear-gradient(to bottom, transparent, #000 calc(2 * var(--vi-rem)));
  }
}

/* >=821px: Claude Kandiyoti in the wide block: show the whole photo height (like
   Francisco Horta) instead of filling the width; the free space on the right
   takes the photo's own grey and the photo edge fades into it */
@media (min-width: 821px) {
  .francisco_bk2:has(> img[src$="claude_kandiyoti.jpg"]) {
    background: #3e3d3c;
  }

  .francisco_bk2 > img[src$="claude_kandiyoti.jpg"] {
    right: auto;
    width: auto;
    height: 100%;
    -webkit-mask-image: linear-gradient(to left, transparent, #000 15%);
    mask-image: linear-gradient(to left, transparent, #000 15%);
  }
}

/* Carla Santos: portrait photo shown at full block height (same framing as Miguel
   Franco) instead of filling the width; the sides take the photo's own grey and
   the photo edges fade into it */
.francisco .francisco_bk2:has(> img[src$="carla_santos.jpg"]) {
  background: linear-gradient(to bottom, #676767, #6e6e6f 30%, #626262 60%, #4e4e4d);
}

.francisco .francisco_bk2 > img[src$="carla_santos.jpg"] {
  top: 0;
  left: 50%;
  right: auto;
  width: auto;
  max-width: none;
  height: 100%;
  translate: -50% 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

/* Manuel Maria Gonçalves: photo framed tighter than the others, so show it a bit
   smaller, anchored to the bottom, edges faded into the photo's own dark grey */
.francisco .francisco_bk2:has(> img[src$="manuel_maria_goncalves.jpg"]) {
  background: linear-gradient(to right, #1d1c21, #222126 50%, #18181a);
}

.francisco .francisco_bk2 > img[src$="manuel_maria_goncalves.jpg"] {
  top: auto;
  bottom: 0;
  left: 50%;
  right: auto;
  width: auto;
  max-width: none;
  height: 93%;
  translate: -50% 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 12%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 12%);
  mask-composite: intersect;
}

/* >=821px: Francisco Campilho's near-square photo in the wide block: full block
   height, centred, sides in the photo's own grey with the edges faded into it */
@media (min-width: 821px) {
  .francisco .francisco_bk2:has(> img[src$="francisco_campilho.jpg"]) {
    background: #777779;
  }

  .francisco .francisco_bk2 > img[src$="francisco_campilho.jpg"] {
    top: 0;
    left: 50%;
    right: auto;
    width: auto;
    max-width: none;
    height: 100%;
    translate: -50% 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  }
}

/* Patrícia Barão: she sits right of centre in a wide photo, centre her in the column */
.francisco_bk2 > img[src$="patricia_barao.jpg"] {
  object-position: 64% top;
}

/* >=821px: Hugo Santos Ferreira's photo is small (954x450), so cover blurs it in the
   wide block: show it smaller, bottom-anchored, edges faded into the photo's grey */
@media (min-width: 821px) {
  .francisco .francisco_bk2:has(> img[src$="hugo_santos.jpg"]) {
    background: #2c2d31;
  }

  .francisco .francisco_bk2 > img[src$="hugo_santos.jpg"] {
    top: auto;
    bottom: 0;
    left: 50%;
    right: auto;
    width: auto;
    max-width: none;
    height: 90%;
    translate: -50% 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 12%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 12%);
    mask-composite: intersect;
  }
}

/* Cláudia Beirão Lopes: she sits closer to the camera than the others, so show her
   with less zoom: full width, anchored to the bottom, the space above in the photo's
   own dark blue-grey with the top edge faded into it */
.francisco .francisco_bk2:has(> img[src$="claudia_lopes.jpg"]) { background: linear-gradient(to right, #2b2f3a, #12151a); }

.francisco .francisco_bk2 > img[src$="claudia_lopes.jpg"] {
  top: auto;
  bottom: 0;
  left: 50%;
  right: auto;
  width: 100%;
  height: auto;
  translate: -50% 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 15%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 15%);
  mask-composite: intersect;
}

/* 821–1024px: a little narrower so she matches the speakers around her */
@media (min-width: 821px) and (max-width: 1024px) {
  .francisco .francisco_bk2 > img[src$="claudia_lopes.jpg"] {
    width: 92%;
  }
}

/* 768–820px (stacked, full-width block): narrower still */
@media (min-width: 768px) and (max-width: 820px) {
  .francisco .francisco_bk2 > img[src$="claudia_lopes.jpg"] {
    width: 82%;
  }
}

/* Sarmento / Torroaes Valente / Sottomayor / Bértolo / Caldeira / Cristina: framed
   tighter than the others, so the photo fills only the bottom 88% of the block (still
   cover); the band above takes the photo's own background with the top edge faded */
.francisco .francisco_bk2:has(> img[src$="pauloSarmento.jpg"]) { background: #64656b; }
.francisco .francisco_bk2:has(> img[src$="joao_Torroaes_Valente.jpg"]) { background: #78797f; }
.francisco .francisco_bk2:has(> img[src$="sottomaior.jpg"]) { background: #7a7b80; }
.francisco .francisco_bk2:has(> img[src$="sandra_bertolo.jpg"]) { background: linear-gradient(to right, #24272c, #131418); }
.francisco .francisco_bk2:has(> img[src$="margaridaCaldeira.jpg"]) { background: #67686d; }
.francisco .francisco_bk2:has(> img[src$="joao_cristina.jpg"]) { background: #0f0f11; }

.francisco .francisco_bk2 > img:is([src$="pauloSarmento.jpg"], [src$="joao_Torroaes_Valente.jpg"], [src$="sottomaior.jpg"], [src$="sandra_bertolo.jpg"], [src$="margaridaCaldeira.jpg"], [src$="joao_cristina.jpg"]) {
  top: auto;
  bottom: 0;
  height: 88%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%);
  mask-image: linear-gradient(to bottom, transparent, #000 12%);
}

/* Ricardo Guimarães: wide photo in the narrow column, keep him in frame */
.susana_foto_bk2 > img[src$="ricardo_guimaraes.jpg"] {
  object-position: 38% top;
}

/* >=821px: his head touches the top of the photo, so drop the photo below a band in
   the photo's own grey that holds the Confidencial Imobiliário logo */
@media (min-width: 821px) {
  .susana_foto_bk2:has(> img[src$="ricardo_guimaraes.jpg"]) {
    background: #636469;
  }

  .susana_foto_bk2 > img[src$="ricardo_guimaraes.jpg"] {
    top: 110px;
    height: calc(100% - 110px);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30px);
    mask-image: linear-gradient(to bottom, transparent, #000 30px);
  }
}

/* login lines under the hero buttons */
.top_Banner .login-p,
.top_Banner .login-p a {
  color: #F26724;
  font-size: 1.2rem !important;
}
.top_Banner .login-p a {
  font-family: inherit !important;
  font-weight: inherit !important;
  text-decoration: underline;
}

/* hero h4 */
.top_Banner h4 {
  color: #ffffff !important;
  font-size: 1.2rem !important;
  font-weight: 200 !important;
  max-width: 830px; /* same width as the h1 "30 anos. Antes de Acontecer." */
  margin-inline: auto;
}

/* Large screens (>1440px): the 520px blocks were designed for a 1440px-wide
   page; keep that proportion (520/1440 = 36.11vw) so wide screens don't get
   flat, stretched blocks */
@media (min-width: 1441px) {
  .antonio_bk2,
  .alexandre_bk1,
  .susana_foto_bk2, .susana_bk2, .alexandre_bk2, .arturo_foto_bk2, .arturo_bk2 {
    height: 36.111vw;
  }
}

/* Miguel Pinto Luz: subject sits right of centre in the photo */
.alexandre_bk1 > img[src$="pinto_luz.jpg"] {
  object-position: 72% top;
}
