/* CSO v34 — Hero fotografiche editoriali.
   Solo la prima immagine e la relativa didascalia dei riquadri d'apertura.
   Fotografie originali inalterate, sfumatura CSS non distruttiva.
   Nessun cambiamento a navigazione, moduli, B2B, sezioni successive o testi.
   Attiva soltanto sulle sezioni marcate .cso-hero-blend. */

/* Base: il contenitore trattiene le fotografie sotto il testo,
   il colore di sfondo originale resta visibile dove la foto sfuma. */
body.cso-soft .cso-hero-blend {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
body.cso-soft .cso-hero-blend .hero-grid,
body.cso-soft .cso-hero-blend .cso-page-hero__grid {
  position: relative;
  isolation: isolate;
  display: block;
  overflow: hidden;
}
body.cso-soft .cso-hero-blend .hero-copy,
body.cso-soft .cso-hero-blend .cso-page-hero__copy {
  position: relative;
  z-index: 3;
  width: min(55%, 620px);
  max-width: 620px;
  min-width: 0;
}

/* HOME: foto grande dietro al testo, senza cornice rettangolare.
   La maschera radiale si fonde con gli stessi gradienti silver della hero. */
body.cso-soft.template-index .hero.cso-hero-blend .hero-grid {
  min-height: clamp(510px, 40vw, 600px);
  padding-top: clamp(28px, 3.5vw, 62px);
  padding-bottom: 76px;
}
body.cso-soft.template-index .hero.cso-hero-blend .hero-figure {
  position: absolute;
  z-index: 0;
  inset: -48px -36px -24px 26%;
  min-width: 0;
  margin: 0;
  border: 0;
  overflow: visible;
  box-shadow: none !important;
  border-radius: 0 !important;
}
body.cso-soft.template-index .hero.cso-hero-blend .image-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.cso-soft.template-index .hero.cso-hero-blend .hero-image {
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 0 !important;
  background: transparent !important;
  object-fit: cover;
  object-position: 62% 54%;
  opacity: .64;
  filter: saturate(.89) contrast(.96);
  -webkit-mask-image: radial-gradient(
    ellipse 78% 77% at 64% 50%,
    #000 20%,
    rgba(0,0,0,.9) 42%,
    rgba(0,0,0,.47) 72%,
    transparent 99%
  ) !important;
  mask-image: radial-gradient(
    ellipse 78% 77% at 64% 50%,
    #000 20%,
    rgba(0,0,0,.9) 42%,
    rgba(0,0,0,.47) 72%,
    transparent 99%
  ) !important;
  /* Evita che l'effetto parallax precedentemente configurato muova la foto
     fuori dalla sua sfumatura. Nessuna animazione nuova viene introdotta. */
  scale: 1 !important;
  translate: none !important;
  transform: none !important;
  will-change: auto;
}
body.cso-soft.template-index .hero.cso-hero-blend .hero-figure figcaption {
  position: absolute;
  z-index: 2;
  right: 34px;
  bottom: 33px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px 17px;
  max-width: 68%;
  padding: 0;
  border: 0;
  color: #45515b;
  background: transparent;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  text-align: right;
  text-shadow: 0 0 10px rgba(255,255,255,.94);
}

/* PAGINE: stessa logica senza alterare testi, link o didascalie. */
body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__grid {
  min-height: clamp(435px, 36vw, 550px);
  padding: clamp(35px, 4vw, 64px) 0 76px;
  background: transparent;
}
body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure {
  position: absolute;
  z-index: 0;
  inset: -32px -34px -26px 28%;
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: visible !important;
  border: 0;
  border-radius: 0 !important;
  align-self: auto;
  background: transparent !important;
  box-shadow: none !important;
}
body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure > .cso-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  margin: 0 !important;
  padding: 0;
  aspect-ratio: auto !important;
  border: 0;
  border-radius: 0 !important;
  overflow: visible;
  background: transparent !important;
}
body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure .cso-photo__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: 62% 50%;
  background: transparent !important;
  box-shadow: none !important;
  opacity: .62;
  filter: saturate(.92) contrast(.97);
  -webkit-mask-image: radial-gradient(
    ellipse 80% 76% at 65% 50%,
    #000 18%,
    rgba(0,0,0,.87) 43%,
    rgba(0,0,0,.44) 73%,
    transparent 99%
  ) !important;
  mask-image: radial-gradient(
    ellipse 80% 76% at 65% 50%,
    #000 18%,
    rgba(0,0,0,.87) 43%,
    rgba(0,0,0,.44) 73%,
    transparent 99%
  ) !important;
  scale: 1 !important;
  translate: none !important;
  transform: none !important;
}
body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure--contain .cso-photo__image {
  object-fit: contain !important;
  object-position: 70% center;
}
body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure figcaption {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  right: 34px;
  max-width: 63%;
  margin: 0;
  padding: 0;
  color: #45515b;
  background: transparent;
  font-size: 11px;
  line-height: 1.55;
  font-weight: 500;
  text-align: right;
  text-shadow: 0 0 10px rgba(255,255,255,.96);
}

/* Ethica: resta una hero scura, il diamante si fonde nel fondo grafite. */
body.cso-soft .cso-page-hero--ink.cso-hero-blend .cso-page-hero__grid {
  min-height: clamp(430px, 36vw, 525px);
  padding: clamp(28px, 4vw, 60px);
  background-color: #1e242b;
  background-image: linear-gradient(115deg, #171d24, #26313b);
}
body.cso-soft .cso-page-hero--ink.cso-hero-blend .cso-page-hero__copy {
  width: min(57%, 620px);
}
body.cso-soft .cso-page-hero--ink.cso-hero-blend .cso-page-hero__figure {
  inset: 0 0 0 32%;
}
body.cso-soft .cso-page-hero--ink.cso-hero-blend .cso-page-hero__figure .cso-photo__image {
  opacity: .72;
  filter: none;
}
body.cso-soft .cso-page-hero--ink.cso-hero-blend .cso-page-hero__figure figcaption {
  color: #f4f7fb;
  text-shadow: 0 0 10px rgba(16,22,29,.95);
}

/* Tablet/mobile: il testo rimane libero e la fotografia sfumata scende sotto,
   senza coprire pulsanti, paragrafi e didascalie. */
@media (max-width: 850px) {
  body.cso-soft .cso-hero-blend .hero-copy,
  body.cso-soft .cso-hero-blend .cso-page-hero__copy,
  body.cso-soft .cso-page-hero--ink.cso-hero-blend .cso-page-hero__copy {
    width: 100%;
    max-width: 100%;
  }
  body.cso-soft.template-index .hero.cso-hero-blend .hero-grid {
    min-height: 0;
    padding-top: 4px;
    padding-bottom: 290px;
  }
  body.cso-soft.template-index .hero.cso-hero-blend .hero-figure {
    inset: auto -20px -2px 0;
    height: 290px;
  }
  body.cso-soft.template-index .hero.cso-hero-blend .hero-image {
    object-position: 67% 50%;
    opacity: .74;
  }
  body.cso-soft.template-index .hero.cso-hero-blend .hero-figure figcaption {
    max-width: 78%;
    right: 23px;
    bottom: 19px;
  }

  body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__grid,
  body.cso-soft .cso-page-hero--ink.cso-hero-blend .cso-page-hero__grid {
    min-height: 0;
    padding: 14px 0 290px;
  }
  body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure,
  body.cso-soft .cso-page-hero--ink.cso-hero-blend .cso-page-hero__figure {
    inset: auto -10px -10px 0;
    height: 290px;
  }
  body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure figcaption {
    right: 24px;
    bottom: 24px;
    max-width: 80%;
  }
  body.cso-soft .cso-page-hero--ink.cso-hero-blend .cso-page-hero__grid {
    padding: 30px 24px 290px;
  }
  body.cso-soft .cso-page-hero--ink.cso-hero-blend .cso-page-hero__figure {
    inset: auto 0 0 0;
    height: 280px;
  }
}
@media (max-width: 600px) {
  body.cso-soft.template-index .hero.cso-hero-blend .hero-grid {
    padding-bottom: 240px;
  }
  body.cso-soft.template-index .hero.cso-hero-blend .hero-figure {
    inset: auto -16px 0 -8px;
    height: 246px;
  }
  body.cso-soft.template-index .hero.cso-hero-blend .hero-figure figcaption {
    right: 16px;
    bottom: 14px;
    max-width: 90%;
    gap: 2px 11px;
    font-size: 10px;
  }
  body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__grid {
    padding-bottom: 235px;
  }
  body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure {
    inset: auto -14px -8px -8px;
    height: 244px;
  }
  body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure figcaption {
    right: 17px;
    bottom: 17px;
    max-width: 88%;
    font-size: 10px;
  }
  body.cso-soft .cso-page-hero--ink.cso-hero-blend .cso-page-hero__grid {
    padding: 28px 20px 248px;
  }
  body.cso-soft .cso-page-hero--ink.cso-hero-blend .cso-page-hero__figure {
    inset: auto 0 0 0;
    height: 242px;
  }
}

/* Nessuna animazione nuova; rispetto delle impostazioni di accessibilità. */
@media (prefers-reduced-motion: reduce) {
  body.cso-soft .cso-hero-blend .hero-figure,
  body.cso-soft .cso-hero-blend .cso-page-hero__figure,
  body.cso-soft .cso-hero-blend .hero-image,
  body.cso-soft .cso-hero-blend .cso-photo__image {
    animation: none !important;
    transition: none !important;
    scale: 1 !important;
    translate: none !important;
    transform: none !important;
  }
}
