/* Gutenberg adaptation only: preserve full-bleed geometry of the approved HTML V4.8.2 */
html :where(.wp-site-blocks,.fc-page-content,.wp-block-post-content){max-width:none;width:100%;}
body .wp-site-blocks,body .fc-page-content,body .wp-block-post-content{margin:0;padding:0;}
body :where(.fc-page-content,.wp-block-post-content) > :where(.wp-block-group,main,section,div){max-width:none;width:100%;margin-block-start:0;margin-block-end:0;}
.fc-page-content .wp-block-post-content > .wp-block-group{max-width:none!important;margin:0!important;padding:0!important;}
.fc-page-content .wp-block-post-content > .wp-block-group > :where(section,div,main,article){max-width:none!important;}
body .wp-block-group:has(>.lp45-hero),body .wp-block-group.lp45{width:100%;max-width:none;}
/* Gutenberg adds an outer wrapper; retain original section paddings and avoid block gaps. */
.fc-page-content .wp-block-post-content{--wp--style--block-gap:0;}
.fc-page-content .wp-block-post-content > *{margin-block-start:0;margin-block-end:0;}
/* Accessibility of the native Gutenberg preview and existing interactive components. */
.skip-link{position:absolute;top:-100px;left:12px;z-index:99999;padding:12px 18px;background:#fff;color:#0b1d3a;}
.skip-link:focus{top:12px;}
/* Do not force white on the WP admin/editor: this file is front-end only. */


/* FC Staging v0.7 — harmonizacao do Gutenberg com grids originais da V4.8.2.
   WordPress adiciona margem vertical aos filhos de containers "is-layout-flow".
   Em grids isso deslocava 2o/3o cards e o retrato da 2a socia. */
:where(.fc-page-content,.wp-block-post-content) :is(
  .areas-grid,
  .team-profiles-v42,
  .situations-v41 .situation-grid,
  .trust-inner,
  .faq-contact-v42,
  .all-topics-grid,
  .related-grid,
  .steps-grid,
  .contact-layout,
  .interior-grid,
  .method-grid,
  .faq-grid,
  .team-layout-v42,
  .footer-grid-v42,
  .lp45-hero-grid,
  .lp45-two-col,
  .lp45-choice-grid,
  .lp45-head-split,
  .lp45-reason-grid,
  .lp45-steps-grid,
  .lp45-process-grid,
  .lp45-docs-grid,
  .lp45-faq-grid,
  .lp45-final-grid,
  .lp45-related-links
) > * {
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
/* Mesma geometria para os tres cards de areas, sem alterar seus conteudos. */
:where(.fc-page-content,.wp-block-post-content) .areas-grid {
  align-items: stretch;
}
:where(.fc-page-content,.wp-block-post-content) .areas-grid > .area-card {
  align-self: stretch;
  height: 100%;
  box-sizing: border-box;
}
/* Igualar topos e bases dos dois cartoes e retratos de socios no desktop. */
@media (min-width: 821px) {
  :where(.fc-page-content,.wp-block-post-content) .team-profiles-v42 {
    align-items: stretch;
    grid-auto-rows: 1fr;
  }
  :where(.fc-page-content,.wp-block-post-content) .team-profiles-v42 > .person-v42 {
    margin: 0 !important;
    align-self: stretch;
    height: 100%;
  }
  :where(.fc-page-content,.wp-block-post-content) .person-v42 > .person-image-wrap {
    margin: 0 !important;
    height: 100%;
    align-self: stretch;
    min-height: 0;
  }
  :where(.fc-page-content,.wp-block-post-content) .person-v42 .person-image-wrap > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/* Mobile: os cartoes continuam em coluna, sem altura compartilhada artificial. */
@media (max-width: 820px) {
  :where(.fc-page-content,.wp-block-post-content) .team-profiles-v42 {
    grid-auto-rows: auto;
  }
}

/* FC V0.8.0 — alvos de toque no menu responsivo, inclusive iPhone em paisagem e iPad. */
@media (max-width:1100px) {
  #menuToggle { min-width:44px; min-height:44px; }
  #mainNav.open { max-height:calc(100dvh - 76px); overflow-y:auto; -webkit-overflow-scrolling:touch; }
}
@media (max-width:740px) {
  #mainNav.open { max-height:calc(100dvh - 70px); }
}
