/*
Theme Name: Blocksy Child
Template: blocksy
*/

/* flaia-equal-amate */
@media (min-width: 768px) {
  .elementor-3023 .elementor-element-24e26a0 > .e-con-inner {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    width: 100% !important;
    max-width: var(--content-width, 1400px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 0 !important;
    box-sizing: border-box !important;
  }
  .elementor-3023 .colonna-destra {
    position: relative !important;
    width: 55% !important;
    max-width: 55% !important;
    flex: 0 0 55% !important;
    margin: 0 !important;
    padding: 0 !important;
    background-image: none !important;
    align-self: flex-start !important;
  }
  .elementor-3023 .colonna-destra .elementor-widget-image,
  .elementor-3023 .colonna-destra .elementor-hidden-desktop,
  .elementor-3023 .colonna-destra .elementor-hidden-tablet,
  .elementor-3023 .colonna-destra .elementor-hidden-mobile {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .elementor-3023 .colonna-destra .elementor-widget-image .elementor-widget-container,
  .elementor-3023 .colonna-destra .elementor-widget-image a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .elementor-3023 .colonna-destra .elementor-widget-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
  }
  .elementor-3023 .colonna-sinistra {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 41% !important;
    max-width: 41% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    overflow: hidden !important;
    height: auto !important;
  }
  .elementor-3023 .colonna-sinistra > .blocco1 {
    flex: 0 1 auto !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: hidden;
  }
  .elementor-3023 .colonna-sinistra > .blocco2 {
    flex: 1 1 auto !important;
    margin: 0 !important;
    min-height: 140px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .elementor-3023 .colonna-sinistra > .blocco2 .elementor-widget,
  .elementor-3023 .colonna-sinistra > .blocco2 .elementor-widget-container,
  .elementor-3023 .colonna-sinistra > .blocco2 .elementor-shortcode {
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    width: 100% !important;
  }
  .elementor-3023 .colonna-sinistra > .blocco2 a {
    display: block !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    width: 100% !important;
    min-height: 0 !important;
  }
  .elementor-3023 .colonna-sinistra > .blocco2 img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  .elementor-3023 .elementor-element-24e26a0 > .e-con-inner > .elementor-widget-html {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Mostra solo il primo paragrafo nelle descrizioni loop */
.limit-2-paragrafi p:not(:first-of-type) {
  display: none !important;
}

/* Related strutture cards: equal image height (3:2 like large gallery crops) */
.flaia-related-card-img a,
.flaia-related-card-img {
  display: block;
  width: 100%;
}
.flaia-related-card-img img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* NO line-clamp on HTML excerpt (causes overlapping lines) */
  .flaia-articolo-blog-excerpt .elementor-widget-container,
  .flaia-articolo-blog-excerpt .elementor-shortcode {
    max-height: 100%;
    overflow: hidden;
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
  }
  .flaia-articolo-blog-excerpt p,
  .flaia-articolo-blog-excerpt li,
  .flaia-articolo-blog-excerpt blockquote {
    line-height: 1.45 !important;
    margin-top: 0.4em !important;
    margin-bottom: 0.4em !important;
  }
  .flaia-articolo-blog-excerpt figure,
  .flaia-articolo-blog-excerpt .wp-block-image {
    display: none !important;
  }
  .flaia-articolo-blog-btn {
    flex: 0 0 auto !important;
    margin-top: 8px !important;
  }
}
@media (max-width: 767px) {
  .flaia-articolo-blog-content {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
}

/* Articolo blog correlato in scheda struttura: testo+CTA non superano altezza foto (desktop) */
@media (min-width: 768px) {
  .flaia-articolo-blog-row {
    position: relative !important;
    align-items: flex-start !important;
  }
  .flaia-articolo-blog-media {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
  }
  .flaia-articolo-blog-media img,
  .flaia-articolo-blog-img img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }
  .flaia-articolo-blog-content {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 50% !important;
    max-width: 50% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    overflow: hidden !important;
    padding-left: 20px !important;
    height: 100% !important;
    max-height: 100% !important;
  }
  .flaia-articolo-blog-title {
    flex: 0 0 auto !important;
    max-height: 32% !important;
    overflow: hidden !important;
  }
  .flaia-articolo-blog-title .elementor-heading-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
  /* L'excerpt si accorcia per lasciare sempre posto al pulsante */
  .flaia-articolo-blog-excerpt {
    flex: 0 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .flaia-articolo-blog-excerpt .elementor-widget-container {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }
  .flaia-articolo-blog-excerpt .elementor-shortcode {
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
    display: block !important;
  }
  .flaia-articolo-blog-excerpt p,
  .flaia-articolo-blog-excerpt li,
  .flaia-articolo-blog-excerpt blockquote {
    line-height: 1.45 !important;
    margin-top: 0.35em !important;
    margin-bottom: 0.35em !important;
  }
  .flaia-articolo-blog-excerpt p:first-child { margin-top: 0 !important; }
  .flaia-articolo-blog-excerpt p:last-child { margin-bottom: 0 !important; }
  .flaia-articolo-blog-excerpt figure,
  .flaia-articolo-blog-excerpt .wp-block-image {
    display: none !important;
  }
  .flaia-articolo-blog-btn {
    flex: 0 0 auto !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    align-self: flex-start !important;
  }
  .flaia-articolo-blog-btn .elementor-widget-container {
    margin-top: 0 !important;
  }
}
@media (max-width: 767px) {
  .flaia-articolo-blog-content {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Copertina articolo correlato: quadrata max 1024 */
.flaia-articolo-blog-media img,
.flaia-articolo-blog-img img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* Ellipsis excerpt: niente spazio extra prima dei puntini */
.flaia-articolo-blog-excerpt p:last-child {
  margin-bottom: 0 !important;
}

/* Fluent Forms newsletter: meno distanza tra i 2 checkbox privacy */
.fluentform .ff-el-group:has(.ff_gdpr_field),
.fluentform .ff-el-group.ff-gdpr-tight,
.fluentform .ff-el-form-group:has(.ff_gdpr_field),
.frm-fluent-form .ff-el-group:has(.ff_gdpr_field) {
  margin-bottom: 2px !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.fluentform .ff-el-group:has(.ff_gdpr_field) .ff-el-input--label,
.fluentform .ff-el-group:has(.ff_gdpr_field) .ff-el-form-check,
.fluentform .ff-el-group.ff-gdpr-tight .ff-el-form-check {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}
.fluentform .ff-el-group:has(.ff_gdpr_field) + .ff-el-group:has(.ff_gdpr_field),
.frm-fluent-form .ff-el-group:has(.ff_gdpr_field) + .ff-el-group:has(.ff_gdpr_field),
.fluentform .ff-el-group.ff-gdpr-tight + .ff-el-group.ff-gdpr-tight {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.fluentform .ff-el-group.ff-gdpr-tight .ff-el-form-check-label,
.fluentform .ff-el-group.ff-gdpr-tight .ff_tc_label {
  line-height: 1.25 !important;
}

/* Fluent Forms: link informativa come gli altri link del sito (fuori footer restano marroni) */
.fluentform .ff-el-form-check a,
.fluentform a[href*="privacy-policy"],
.frm-fluent-form .ff-el-form-check a,
.frm-fluent-form a[href*="privacy-policy"] {
  color: #6C5445 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.fluentform .ff-el-form-check a:hover,
.fluentform a[href*="privacy-policy"]:hover,
.frm-fluent-form .ff-el-form-check a:hover,
.frm-fluent-form a[href*="privacy-policy"]:hover {
  color: #B46F49 !important;
  text-decoration: underline !important;
  opacity: 1;
}

/* Footer ONLY (non pagina NL, non popup): privacy, obbligatori, errori validazione in bianco */
.elementor-location-footer .fluentform .ff-el-form-check,
.elementor-location-footer .fluentform .ff-el-form-check-label,
.elementor-location-footer .fluentform .ff_tc_label,
.elementor-location-footer .fluentform .ff_t_c,
.elementor-location-footer .fluentform .ff-el-form-check a,
.elementor-location-footer .fluentform a[href*="privacy-policy"],
.elementor-location-footer .fluentform .ff-el-group label,
.elementor-location-footer .fluentform .ff-custom_html,
.elementor-location-footer .fluentform .ff-custom_html p,
.elementor-location-footer .fluentform .ff-custom_html span,
.elementor-location-footer .fluentform .error,
.elementor-location-footer .fluentform .text-danger,
.elementor-location-footer .fluentform .ff-el-is-error .error,
.elementor-location-footer .fluentform .ff-el-is-error .text-danger,
.elementor-location-footer .fluentform .ff-errors-in-stack,
.elementor-location-footer .fluentform .ff-errors-in-stack *,
.elementor-location-footer .fluentform .ff_error,
.elementor-location-footer .fluentform .ff-el-help,
.elementor-location-footer .fluentform .ff-el-is-error label,
.elementor-location-footer .fluentform [role="alert"],
.elementor-location-footer .fluentform .ff-message-success,
.elementor-location-footer .fluentform .ff-message-success *,
.elementor-location-footer .fluentform .ff_success,
.elementor-location-footer .fluentform .ff_success *,
.elementor-location-footer .fluentform .ff-message-success p,
.elementor-location-footer .fluentform_wrapper_5 .ff-message-success,
.elementor-location-footer .fluentform_wrapper_5 .ff-message-success * {
  color: #ffffff !important;
}
.elementor-location-footer .fluentform .ff-el-form-check a,
.elementor-location-footer .fluentform a[href*="privacy-policy"] {
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.elementor-location-footer .fluentform .ff-el-form-check a:hover,
.elementor-location-footer .fluentform a[href*="privacy-policy"]:hover {
  color: #B46F49 !important;
  opacity: 1;
}


/* Flaia: obbligatori stesso colore delle label */
.fluentform .ff-custom_html,
.fluentform .ff-custom_html p,
.fluentform .ff-custom_html span {
  color: #6C5445 !important;
}


/* Flaia: privacy label form commenti come Contatti */
.comment-form-gdpr-privacy,
.comment-form-flaia-privacy,
.comment-form-gdpr-privacy label,
.comment-form-flaia-privacy label {
  color: #6C5445 !important;
  font-size: 0.9em;
  line-height: 1.35;
}
.comment-form-gdpr-privacy a,
.comment-form-flaia-privacy a,
.comment-form-gdpr-privacy label a,
.comment-form-flaia-privacy label a {
  color: #6C5445 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.comment-form-gdpr-privacy a:hover,
.comment-form-flaia-privacy a:hover {
  color: #6C5445 !important;
  opacity: 0.85;
}


/* Flaia: hover informativa privacy #B46F49 su tutte le checkbox */
.fluentform .ff-el-form-check a[href*="privacy-policy"]:hover,
.fluentform .ff_tc_label a[href*="privacy-policy"]:hover,
.fluentform .ff_t_c a[href*="privacy-policy"]:hover,
.frm-fluent-form .ff-el-form-check a[href*="privacy-policy"]:hover,
.elementor-location-footer .fluentform .ff-el-form-check a[href*="privacy-policy"]:hover,
.elementor-location-footer .fluentform a[href*="privacy-policy"]:hover,
.comment-form-gdpr-privacy a[href*="privacy-policy"]:hover,
.comment-form-flaia-privacy a[href*="privacy-policy"]:hover,
.comment-form a[href*="privacy-policy"]:hover {
  color: #B46F49 !important;
  opacity: 1 !important;
  text-decoration: underline !important;
}


/* Flaia: padding orizzontale Iscriviti popup NL */
#fluentform_2 .ff-btn-submit,
.fluentform_wrapper_2 .ff-btn-submit,
.elementor-popup-modal #fluentform_2 .ff-btn-submit {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
@media (max-width: 1024px) {
  #fluentform_2 .ff_submit_btn_wrapper,
  .fluentform_wrapper_2 .ff_submit_btn_wrapper,
  .elementor-popup-modal #fluentform_2 .ff_submit_btn_wrapper,
  .elementor-popup-modal .fluentform_wrapper_2 .ff_submit_btn_wrapper {
    width: 100% !important;
    max-width: 100% !important;
  }
  #fluentform_2 .ff-btn-submit,
  .fluentform_wrapper_2 .ff-btn-submit,
  .elementor-popup-modal #fluentform_2 .ff-btn-submit,
  .elementor-popup-modal .fluentform_wrapper_2 .ff-btn-submit,
  .elementor-popup-modal .ff-btn-submit {
    padding-left: 28px !important;
    padding-right: 28px !important;
    box-sizing: border-box !important;
  }
}


/* Flaia: titolo popup avvento più grande su mobile */
@media (max-width: 767px) {
  .elementor-25020 .elementor-element-f91f018 .elementor-heading-title,
  #elementor-popup-modal-25020 .elementor-element-f91f018 .elementor-heading-title,
  .elementor-popup-modal .elementor-element-f91f018 .elementor-heading-title {
    font-size: 40px !important;
    line-height: 1.15 !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-25020 .elementor-element-f91f018 .elementor-heading-title,
  #elementor-popup-modal-25020 .elementor-element-f91f018 .elementor-heading-title {
    font-size: 32px !important;
    line-height: 1.15 !important;
  }
}
