/*
 * CSO v35 — finitura fotografica di tutte le HERO v34 + doppia foto
 * in "Scegliere un diamante". Non modifica immagini originali o testi.
 * Caricare DOPO cso-hero-blend-v34.css.
 */

/* La maschera arriva a trasparenza zero su TUTTI i quattro lati.
   Evita la linea rettangolare prima visibile a sinistra e a destra,
   senza cambiare intensità al soggetto nel centro della foto. */
body.cso-soft {
  --cso-v35-edge-fade: radial-gradient(
    ellipse 48% 48% at 50% 50%,
    #000 0%,
    #000 27%,
    rgba(0,0,0,.89) 42%,
    rgba(0,0,0,.56) 60%,
    rgba(0,0,0,.24) 78%,
    transparent 100%
  );
}

body.cso-soft.template-index .hero.cso-hero-blend .hero-figure .hero-image,
body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure .cso-photo__image {
  -webkit-mask-image: var(--cso-v35-edge-fade) !important;
  mask-image: var(--cso-v35-edge-fade) !important;
}

/* Gli pseudo-elementi dei vecchi riquadri non devono disegnare cornici
   sopra la fotografia ormai libera. */
body.cso-soft.template-index .hero.cso-hero-blend .hero-figure .image-frame::before,
body.cso-soft.template-index .hero.cso-hero-blend .hero-figure .image-frame::after {
  content:none !important;
  display:none !important;
}
body.cso-soft.template-index .hero.cso-hero-blend .hero-figure,
body.cso-soft.template-index .hero.cso-hero-blend .hero-figure .image-frame,
body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure,
body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure > .cso-photo {
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}

/* Didascalie: tolte dalla composizione visiva, ma conservate per chi usa
   uno screen reader e per mantenere intatto il contenuto originale. */
body.cso-soft.template-index .hero.cso-hero-blend .hero-figure figcaption,
body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure figcaption {
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  min-width:0 !important;
  min-height:0 !important;
  margin:-1px !important;
  padding:0 !important;
  border:0 !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  clip-path:inset(50%) !important;
  white-space:nowrap !important;
  pointer-events:none !important;
}

/* SCELTA DIAMANTE — due foto già presenti nell'archivio CSO:
   pietre sciolte con strumenti gemmologici + anello con pietra.
   Composizione fotografica, non 3D; il resto della pagina resta intatto. */
body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend {
  background:
    radial-gradient(ellipse 64% 95% at 81% 45%, rgba(226,232,237,.56),transparent 82%),
    linear-gradient(120deg,#fff 36%,#f8fafc 100%) !important;
}

body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-page-hero__grid--text {
  min-height:clamp(440px,37vw,540px);
  padding:clamp(36px,4vw,62px) 0 68px;
  overflow:hidden;
}

body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-page-hero__grid--text::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:linear-gradient(
    90deg,
    rgba(255,255,255,.98) 0%,
    rgba(255,255,255,.93) 24%,
    rgba(255,255,255,.67) 43%,
    rgba(255,255,255,.16) 62%,
    transparent 77%
  );
}

body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-page-hero__grid--text .cso-page-hero__copy {
  display:block;
  position:relative;
  z-index:3;
  width:min(52%,600px);
  max-width:600px;
}

body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-page-hero__grid--text .cso-page-intro {
  margin-top:22px;
  max-width:520px;
}

body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-page-hero__figure.cso-choice-figure {
  position:absolute;
  inset:-30px -28px -26px 34%;
  display:block;
  width:auto;
  height:auto;
  min-height:0;
  margin:0;
  isolation:isolate;
  background:transparent !important;
}

body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-page-hero__figure.cso-choice-figure > .cso-photo {
  position:absolute;
  display:block;
  inset:auto;
  width:auto !important;
  height:auto !important;
  margin:0 !important;
  aspect-ratio:auto !important;
  border:0 !important;
  border-radius:0 !important;
  overflow:visible !important;
  background:transparent !important;
}

body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-choice-figure > .cso-choice-photo--loose {
  z-index:1;
  top:-6%;
  right:10%;
  bottom:4%;
  left:-5%;
}

body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-choice-figure > .cso-choice-photo--ring {
  z-index:2;
  top:38%;
  right:-5%;
  bottom:-8%;
  left:43%;
}

body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-choice-figure .cso-photo__image {
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  object-fit:cover !important;
  box-shadow:none !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  filter:saturate(.88) contrast(.97);
  scale:1 !important;
  translate:none !important;
  transform:none !important;
  -webkit-mask-image: var(--cso-v35-edge-fade) !important;
  mask-image: var(--cso-v35-edge-fade) !important;
}

body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-choice-photo--loose .cso-photo__image {
  opacity:.76;
  object-position:47% 48%;
}

body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-choice-photo--ring .cso-photo__image {
  opacity:.64;
  object-position:69% 47%;
}

@media(max-width:850px){
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
  .cso-page-hero__grid--text {
    min-height:0;
    padding:16px 0 320px;
  }
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
  .cso-page-hero__grid--text::before {
    background:linear-gradient(to bottom,rgba(255,255,255,.72),transparent 38%);
  }
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
  .cso-page-hero__grid--text .cso-page-hero__copy {
    width:100%;
    max-width:640px;
  }
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
  .cso-page-hero__figure.cso-choice-figure {
    inset:auto -12px -4px -12px;
    height:318px;
  }
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
  .cso-choice-figure > .cso-choice-photo--loose {
    top:-5%;right:16%;bottom:-2%;left:1%;
  }
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
  .cso-choice-figure > .cso-choice-photo--ring {
    top:31%;right:-5%;bottom:-9%;left:43%;
  }
}
@media(max-width:600px){
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
  .cso-page-hero__grid--text {
    padding:14px 0 263px;
  }
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
  .cso-page-hero__figure.cso-choice-figure {
    inset:auto -10px -3px -10px;
    height:258px;
  }
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
  .cso-choice-figure > .cso-choice-photo--loose {
    top:-4%;right:12%;bottom:0;left:-6%;
  }
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
  .cso-choice-figure > .cso-choice-photo--ring {
    top:38%;right:-7%;bottom:-9%;left:42%;
  }
}
@media(prefers-reduced-motion:reduce){
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
  .cso-choice-figure .cso-photo__image {
    animation:none !important;
    transition:none !important;
    transform:none !important;
  }
}
