/* REGISTEC Fênix Core 1.8 — alinhamento reforçado independente do cache do tema */
.rf-feature-grid,
.rf-system-gallery,
.rf-segment-index-grid,
.rf-solution-index-grid,
.rf-usecase-grid,
.rf-solution-grid,
.wp-block-post-template.is-flex-container {
  align-items: stretch !important;
  grid-auto-rows: 1fr !important;
}

.rf-feature-grid > *,
.rf-system-gallery > *,
.rf-segment-index-grid > *,
.rf-solution-index-grid > *,
.rf-usecase-grid > *,
.rf-solution-grid > *,
.wp-block-post-template.is-flex-container > * {
  height: 100% !important;
  min-height: 100% !important;
}

.rf-feature-card,
.rf-usecase-card,
.rf-segment-index-card,
.rf-solution-index-card,
.rf-solution-card,
.rf-post-card,
.rf-system-shot {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.rf-system-gallery .rf-system-shot,
.rf-segment-index-card,
.rf-solution-index-card {
  overflow: hidden !important;
}

.rf-system-gallery .rf-system-shot img {
  width: 100% !important;
  height: 360px !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #f4f6f8 !important;
  display: block !important;
}

.rf-system-gallery .rf-system-shot figcaption {
  display: flex !important;
  align-items: center !important;
  min-height: 112px !important;
  padding: 1rem 1.1rem !important;
  margin: 0 !important;
  flex: 1 !important;
}

.rf-segment-index-card figure,
.rf-solution-index-card figure {
  margin: 0 !important;
  height: 220px !important;
  min-height: 220px !important;
  background: #f4f6f8 !important;
}

.rf-segment-index-card figure img,
.rf-solution-index-card figure img {
  width: 100% !important;
  height: 220px !important;
  aspect-ratio: 16 / 10 !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.rf-segment-index-card__body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}

.rf-segment-index-card__links,
.rf-solution-index-card .rf-segment-index-card__links,
.rf-solution-card .rf-card-link {
  margin-top: auto !important;
}

.rf-feature-card p,
.rf-usecase-card p,
.rf-solution-card p {
  flex: 1 !important;
}

@media (max-width: 1180px) {
  .rf-system-gallery .rf-system-shot img { height: 300px !important; }
}

@media (max-width: 782px) {
  .rf-system-gallery .rf-system-shot img { height: 280px !important; }
  .rf-system-gallery .rf-system-shot figcaption { min-height: 0 !important; }
  .rf-segment-index-card figure,
  .rf-solution-index-card figure,
  .rf-segment-index-card figure img,
  .rf-solution-index-card figure img { height: 210px !important; min-height: 210px !important; }
}


/* REGISTEC Fênix Core 2.1.1 — fallback para cards de Conteúdos */
.rf-content-page .wp-block-post-template,
.rf-content-page-query .wp-block-post-template,
.rf-content-query .wp-block-post-template{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:1.35rem!important;
  align-items:stretch!important;
  padding:0!important;
  list-style:none!important;
}
.rf-content-page .wp-block-post-template>li,
.rf-content-page-query .wp-block-post-template>li,
.rf-content-query .wp-block-post-template>li{display:flex!important;height:100%!important;min-width:0!important}
.rf-content-page .rf-post-card,
.rf-content-page-query .rf-post-card,
.rf-content-query .rf-post-card{display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;min-height:470px!important;overflow:hidden!important;border-radius:16px!important}
.rf-content-page .rf-post-card .wp-block-post-featured-image,
.rf-content-page-query .rf-post-card .wp-block-post-featured-image,
.rf-content-query .rf-post-card .wp-block-post-featured-image,
.rf-content-page .rf-post-card .wp-block-post-featured-image img,
.rf-content-page-query .rf-post-card .wp-block-post-featured-image img,
.rf-content-query .rf-post-card .wp-block-post-featured-image img{width:100%!important;height:220px!important;min-height:220px!important;object-fit:cover!important;object-position:center!important;margin:0!important;border-radius:0!important}
.rf-content-page .rf-post-card .wp-block-post-title,
.rf-content-page-query .rf-post-card .wp-block-post-title,
.rf-content-query .rf-post-card .wp-block-post-title{min-height:3.05em!important;margin:1.1rem 1.25rem .75rem!important;line-height:1.28!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
.rf-content-page .rf-post-card .wp-block-post-excerpt,
.rf-content-page-query .rf-post-card .wp-block-post-excerpt,
.rf-content-query .rf-post-card .wp-block-post-excerpt{display:flex!important;flex-direction:column!important;flex:1!important;margin:0 1.25rem 1.25rem!important}
.rf-content-page .rf-post-card .wp-block-post-excerpt__more-text,
.rf-content-page-query .rf-post-card .wp-block-post-excerpt__more-text,
.rf-content-query .rf-post-card .wp-block-post-excerpt__more-text{margin-top:auto!important;padding-top:1rem!important}
@media(max-width:1050px){.rf-content-page .wp-block-post-template,.rf-content-page-query .wp-block-post-template,.rf-content-query .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:680px){.rf-content-page .wp-block-post-template,.rf-content-page-query .wp-block-post-template,.rf-content-query .wp-block-post-template{grid-template-columns:1fr!important}.rf-content-page .rf-post-card,.rf-content-page-query .rf-post-card,.rf-content-query .rf-post-card{min-height:0!important}}
