/* DigiDentale 3.8.44 - Mobile hero is a responsive WebP, same original reception photograph. */
.dd-cinematic-photo picture { display:block; width:100%; height:100%; }
.dd-cinematic-photo picture img { width:100%;height:100%;object-fit:cover;object-position:var(--dd-hero-focus,center); }
@media (max-width:760px) {
  /* The inline homepage style uses the desktop image: override it only on mobile. */
  body.home .dd-hero-photo {background-image:url('../img/studio-mobile.webp') !important;}
  .dd-blog-page-hero,.dd-blog-article-hero,.dd-page-hero {
    background-image:linear-gradient(90deg,rgba(8,40,44,.95),rgba(10,45,47,.80)),url('../img/studio-mobile.webp') !important;
  }
  /* Never obscure the largest contentful element with a full-screen loading overlay on smartphones. */
  html.dd-preloader-enabled .dd-preloader {display:none!important;pointer-events:none!important;}
}


/* DigiDentale 3.8.46 — Hero homepage: centra verticalmente il contenuto
   nell'area fotografica su mobile, escludendo la barra dei quattro link.
   Mantiene invariati l'allineamento orizzontale e gli stili desktop. */
@media (max-width: 760px) {
  body.home .dd-hero .dd-hero-main {
    top: calc((100% - var(--dd-hero-traits-height, 184px)) / 2);
    bottom: auto;
    transform: translateY(-50%);
  }
}

/* DigiDentale 3.8.47: tre dati reali nella sezione «DigiDentale in numeri». */
body.home .dd-trust-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Sui dispositivi medi e piccoli il terzo dato chiude la composizione al centro. */
@media (max-width: 1140px) {
  body.home .dd-trust-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.home .dd-trust-stats > div:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
    padding-left: 0;
    border-left: 0;
  }
}
