@media (max-width:767px) {

  /* Schede: impedisce la compressione verticale */
  body.page-id-1053 .sc-pig-situation-card,
  body.page-id-1265 .sc-service-card,
  body.page-id-1265 .sc-process-card {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 125px !important;
    overflow: visible !important;
  }

  /* Icone: dimensioni regolari e niente sovrapposizioni */
  body.page-id-1053 .sc-pig-situation-icon,
  body.page-id-1053 .sc-benefit-icon,
  body.page-id-1265 .sc-service-icon,
  body.page-id-1265 .sc-process-icon {
    position: relative !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 44px !important;
    margin: 0 0 14px !important;
    text-align: center !important;
  }

  body.page-id-1053 .sc-pig-situation-icon .elementor-icon,
  body.page-id-1053 .sc-benefit-icon .elementor-icon,
  body.page-id-1265 .sc-service-icon .elementor-icon,
  body.page-id-1265 .sc-process-icon .elementor-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 38px !important;
    line-height: 1 !important;
  }

  body.page-id-1053 .sc-pig-situation-icon svg,
  body.page-id-1053 .sc-benefit-icon svg,
  body.page-id-1265 .sc-service-icon svg,
  body.page-id-1265 .sc-process-icon svg {
    width: 38px !important;
    height: 38px !important;
  }

  /* Titoli delle schede */
  body.page-id-1053 .sc-pig-situation-title,
  body.page-id-1265 .sc-process-title {
    position: relative !important;
    height: auto !important;
    margin: 0 !important;
  }
}

/* BENEFICI PIGNORAMENTO - SMARTPHONE */
@media (max-width:767px) {
  body.page-id-1053 .sc-benefits-grid > .elementor-container {
    display:flex!important;
    flex-direction:column!important;
    gap:16px!important;
  }

  body.page-id-1053 .sc-benefit-card {
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:150px!important;
    overflow:visible!important;
  }

  body.page-id-1053 .sc-benefit-card > .elementor-widget-wrap {
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    padding:24px 18px!important;
  }

  body.page-id-1053 .sc-benefit-icon {
    flex:0 0 auto!important;
    min-height:45px!important;
    margin:0 0 12px!important;
  }

  body.page-id-1053 .sc-benefit-card-title,
  body.page-id-1053 .sc-benefit-card-text {
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
    margin:0!important;
  }
}

/* STATISTICHE HOMEPAGE - SMARTPHONE */
@media (max-width:767px) {
  body.page-id-1265 .elementor-element-7fae526,
  body.page-id-1265 .elementor-element-dcbd6f8 {
    width:100%!important;
    height:auto!important;
    min-height:0!important;
  }

  body.page-id-1265 .elementor-element-7fae526
  > .elementor-widget-wrap,
  body.page-id-1265 .elementor-element-dcbd6f8
  > .elementor-widget-wrap {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
    height:auto!important;
  }

  body.page-id-1265 .sc-experience-stats-title,
  body.page-id-1265 .sc-experience-closing {
    position:relative!important;
    height:auto!important;
    margin:0!important;
  }
}

/* PULSANTI FINALI HOMEPAGE - SMARTPHONE */
@media (max-width:767px) {
  body.page-id-1265 .elementor-element-0968aed
  > .elementor-container {
    display:flex!important;
    flex-direction:column!important;
    gap:14px!important;
  }

  body.page-id-1265 .elementor-element-0716424,
  body.page-id-1265 .elementor-element-c1e77a6 {
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
  }

  body.page-id-1265 .sc-final-primary-button,
  body.page-id-1265 .sc-final-secondary-button {
    width:100%!important;
    height:auto!important;
    margin:0!important;
  }

  body.page-id-1265 .sc-final-primary-button .elementor-button,
  body.page-id-1265 .sc-final-secondary-button .elementor-button {
    display:block!important;
    width:100%!important;
    white-space:normal!important;
    line-height:1.4!important;
  }
}

/* BEGIN SC HOME VIDEO AND STATS MOBILE FIX */
@media screen and (max-width: 767px) {

  /* VIDEO: schede verticali senza compressione */
  body.page-id-1265 .sc-home-videos-2026
  .sc-videos-grid > .elementor-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 22px !important;
  }

  body.page-id-1265 .sc-home-videos-2026
  .sc-video-card {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.page-id-1265 .sc-home-videos-2026
  .sc-video-card > .elementor-widget-wrap {
    display: block !important;
    height: auto !important;
  }

  body.page-id-1265 .sc-home-videos-2026
  .sc-video-player,
  body.page-id-1265 .sc-home-videos-2026
  .sc-video-player .elementor-widget-container {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
  }

  /* Ripristina il formato panoramico 16:9 */
  body.page-id-1265 .sc-home-videos-2026
  .sc-video-player .elementor-wrapper {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    padding-bottom: 0 !important;
    overflow: hidden !important;
  }

  body.page-id-1265 .sc-home-videos-2026
  .sc-video-player .elementor-wrapper iframe,
  body.page-id-1265 .sc-home-videos-2026
  .sc-video-player .elementor-wrapper .elementor-custom-embed-image-overlay {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* STATISTICHE: due riquadri ad altezza naturale */
  body.page-id-1265 .sc-home-experience-2026
  .sc-experience-stats-grid > .elementor-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }

  body.page-id-1265 .sc-home-experience-2026
  .sc-experience-stat-card {
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 18px !important;
  }

  body.page-id-1265 .sc-home-experience-2026
  .sc-experience-stat-card > .elementor-widget-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    height: auto !important;
    gap: 8px !important;
  }

  body.page-id-1265 .sc-home-experience-2026
  .sc-experience-stat-card .elementor-widget-heading,
  body.page-id-1265 .sc-home-experience-2026
  .sc-experience-stat-card .elementor-widget-text-editor {
    position: static !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  body.page-id-1265 .sc-home-experience-2026
  .sc-experience-stat-card .elementor-heading-title {
    margin: 0 !important;
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
}
/* END SC HOME VIDEO AND STATS MOBILE FIX */
