/* HERO */

body:not(.home) .titlebar-inner {
    background-color: rgba(76, 66, 65, 1) !important;
}

.breadcrumbs>.active, .breadcrumb>.active {
    color: #ffffff;
}

.titlebar-inner .row h1 {
    font-size: 40px;
    line-height: 45px;
}

@media screen and (min-width: 992px) {
    .titlebar-inner .titlebar-col:last-of-type {
        text-align: end;
    }
}

.home-front.vc_row {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: hidden;
}
.home-front.vc_row .row-bg-wrap,
.home-front.vc_row .row-bg-inner {
  height: 100%;
}
.home-front.vc_row .row-bg {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  height: 100% !important;
  top: 0 !important;
}
.home-front.vc_row .ld-container {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
}
.home-front.vc_row .ld-container > .row {
  width: 100%;
}
.home-front.vc_row .vc_column-inner {
  padding-top: 0 !important;
}

.home-front.vc_row {
  aspect-ratio: 1920/1080;
}

#home-front.home-front {
  aspect-ratio: 737/1070;
}

/* Hero responsive – solo sotto desktop (≥992px resta il tema) */
@media (max-width: 991.98px) {
  .home-front.vc_row .ld-container {
    align-items: flex-end;
    padding-bottom: 8%;
    padding-left: clamp(16px, 4vw, 32px);
    padding-right: clamp(16px, 4vw, 32px);
  }

  .home-front.vc_row .ld-fancy-heading h1,
  .home-front.vc_row .ld-fancy-heading h1.ld-fh-element,
  #lqd-site-content .home-front.vc_row .ld-fancy-heading h1,
  #lqd-site-content .home-front.vc_row .ld-fancy-heading h1.ld-fh-element {
    font-size: clamp(19px, 4.2vw, 30px) !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em !important;
    margin-bottom: 0 !important;
  }

  .home-front.vc_row .ld-fancy-heading h6,
  .home-front.vc_row .ld-fancy-heading h6.ld-fh-element,
  #lqd-site-content .home-front.vc_row .ld-fancy-heading h6,
  #lqd-site-content .home-front.vc_row .ld-fancy-heading h6.ld-fh-element {
    font-size: clamp(15px, 2.8vw, 18px) !important;
    line-height: 1.25 !important;
    margin-bottom: 0.35em !important;
  }

  .home-front.vc_row a.btn,
  .home-front.vc_row a.btn.btn-sm,
  .home-front.vc_row a.btn[class*="ld_button"],
  .home-front.vc_row a.btn[class*="vc_custom"] {
    font-size: 14px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.08em !important;
    margin-top: 10px !important;
    padding: 0.65em 0.95em !important;
  }

  /* split-text Liquid: span wrapper + tutti i discendenti */
  .home-front.vc_row a.btn > span {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block;
  }

  .home-front.vc_row a.btn .btn-txt,
  .home-front.vc_row a.btn .btn-txt * {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
  }
}

/* END HERO */

/* PULSANTI MOBILE – tutte le pagine (desktop invariato) */
@media (max-width: 991.98px) {
  #lqd-site-content a.btn,
  #lqd-site-content a.btn.btn-sm,
  #lqd-site-content a.btn[class*="ld_button"],
  #lqd-site-content a.btn[class*="vc_custom"] {
    font-size: 14px !important;
    line-height: 1.2 !important;
    letter-spacing: 0.08em !important;
    padding: 0.65em 0.95em !important;
  }

  #lqd-site-content a.btn > span {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block;
  }

  #lqd-site-content a.btn .btn-txt,
  #lqd-site-content a.btn .btn-txt * {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
  }
}

/* END PULSANTI MOBILE */

/* TIPOGRAFIA RESPONSIVE – tutto il sito (desktop ≥992px invariato) */
@media (max-width: 991.98px) {
  /* Titlebar pagine interne */
  .titlebar-inner .row h1 {
    font-size: clamp(26px, 6vw, 40px) !important;
    line-height: 1.15 !important;
  }

  .titlebar-inner .breadcrumb,
  .titlebar-inner .breadcrumbs,
  .titlebar-inner .breadcrumb a,
  .titlebar-inner .breadcrumbs a {
    font-size: clamp(14px, 2vw, 19px) !important;
    line-height: 1.4 !important;
  }

  /* Titoli sezione – ld-fancy-heading (h1/h6 hero esclusi: regole più specifiche sopra) */
  #lqd-site-content .ld-fancy-heading h2,
  #lqd-site-content .ld-fancy-heading h2.ld-fh-element,
  #lqd-site-content h2.ld-fh-element {
    font-size: clamp(24px, 5.2vw, 41px) !important;
    line-height: 1.15 !important;
    letter-spacing: 0.01em !important;
  }

  #lqd-site-content .ld-fancy-heading h3,
  #lqd-site-content .ld-fancy-heading h3.ld-fh-element,
  #lqd-site-content h3.ld-fh-element,
  #lqd-site-content h3 {
    font-size: clamp(17px, 2.2vw, 20px) !important;
    line-height: 1.35 !important;
  }

  #lqd-site-content .ld-fancy-heading h4,
  #lqd-site-content .ld-fancy-heading h4.ld-fh-element,
  #lqd-site-content h4.ld-fh-element {
    font-size: clamp(18px, 4vw, 27px) !important;
    line-height: 1.25 !important;
  }

  #lqd-site-content .ld-fancy-heading h5,
  #lqd-site-content .ld-fancy-heading h5.ld-fh-element,
  #lqd-site-content h5.ld-fh-element,
  #lqd-site-content h5 {
    font-size: clamp(15px, 2.8vw, 21px) !important;
    line-height: 1.2 !important;
  }

  #lqd-site-content .ld-fancy-heading h6,
  #lqd-site-content .ld-fancy-heading h6.ld-fh-element,
  #lqd-site-content h6.ld-fh-element {
    font-size: clamp(15px, 2.8vw, 21px) !important;
    line-height: 1.2 !important;
  }

  /* Testi corpo */
  #lqd-site-content .wpb_text_column p,
  #lqd-site-content .wpb_wrapper > p,
  #lqd-site-content .lqd-post-content p,
  #lqd-site-content .lqd-post-content li {
    font-size: clamp(16px, 2.2vw, 19px) !important;
    line-height: 1.45 !important;
  }

  /* Portfolio, news, form */
  #lqd-site-content .lqd-pf-title,
  #lqd-site-content .lqd-lp-title,
  #lqd-site-content .lqd-lp-title a,
  #newsletter-form h3,
  #lqd-site-content .wpcf7 label,
  #lqd-site-content .wpcf7 p {
    font-size: clamp(15px, 2.2vw, 21px) !important;
    line-height: 1.4 !important;
  }

  /* Footer */
  #footer h3,
  #footer h6,
  #footer .ld-fancy-heading h6.ld-fh-element {
    font-size: clamp(17px, 2.8vw, 21px) !important;
    line-height: 1.2 !important;
  }

  #footer p,
  #footer a,
  #footer li {
    font-size: clamp(14px, 2vw, 18px) !important;
    line-height: 1.45 !important;
  }

  /* split-text Liquid sui titoli */
  #lqd-site-content .ld-fancy-heading .ld-fh-element *,
  #footer .ld-fancy-heading .ld-fh-element * {
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
  }
}

/* END TIPOGRAFIA RESPONSIVE */

/* NEWS */

.lqd-1768486074982-c0082795-74a2 .lqd-lp-img img,
.lqd-1716464575124-0e8db220-5c42 .lqd-lp-img img{
  	object-fit: contain !important;
	object-position: center bottom !important;
}

@media screen and (max-width: 767px) {
	.lqd-lp-column.news,
	.lqd-lp-column.news,
	.lqd-lp-column.eventi,
	.lqd-lp-column.eventi,
	.lqd-lp-column.newsletter,
	.lqd-lp-column.newsletter{
	  width: 100%;
	}
	
	.lqd-1768486074982-c0082795-74a2 .lqd-lp-img img,
	.lqd-1716464575124-0e8db220-5c42 .lqd-lp-img img{
		object-position: left bottom !important;
	}
}

/* END NEWS */

/* DIDASCALIE IMMAGINI – copyright più piccolo (richiede span da functions.php) */
.caption-copyright {
  font-size: 80% !important;
}

/* END DIDASCALIE */