/*
Theme Name: Visit South Garda Hills
Description: child theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE. ***************/

/* ==========================================================================
   FORCE EQUAL HEIGHT CARDS (UX BUILDER & FLATSOME GRID)
   ========================================================================== */

/* 1. Forza la riga ad estendersi in Flex */
.row.equal-heights,
.row.equal-heights > .col,
.row.equal-heights > [class*="col-"] {
  display: flex !important;
  flex-direction: column !important;
}

.row.equal-heights {
  flex-direction: row !important;
  flex-wrap: wrap !important;
}

/* 2. Forza tutti i box interni al 100% dell'altezza */
.row.equal-heights .col-inner,
.row.equal-heights .box,
.row.equal-heights .box-blog-post,
.row.equal-heights .box-blog-type-post,
.row.equal-heights .ux-box {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  width: 100% !important;
  flex: 1 1 auto !important;
}

/* 3. Mantiene il contenuto in alto e spinge il pulsante/footer in fondo */
.row.equal-heights .box-text,
.row.equal-heights .entry-content,
.row.equal-heights .card-body {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  justify-content: space-between !important;
}

/* 4. Arrotondamento angoli coerente (14px) */
.row.equal-heights .box,
.row.equal-heights .box-image img,
.row.equal-heights .box-blog-post {
  border-radius: 14px !important;
  overflow: hidden !important;
}


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE ***************/

  .row.equal-heights {
    display: block !important;
  }

}