/*
 * CSO v36 · Rifinitura editoriale sperimentale — NON produzione.
 * Preserva contenuti, navigazione e schede B2B. Solo elementi contrassegnati.
 * Va caricato DOPO cso-hero-finishing-v35.css e cso-nav-v33.css.
 */

/* Una sola grammatica per tutti i bordi sfumati.
   Radiale quasi pieno al centro, realmente trasparente sul perimetro:
   non espone la forma rettangolare di origine. */
body.cso-soft {
  --cso-v36-photo-mask: radial-gradient(
    ellipse 49% 49% at 50% 50%,
    #000 0%,
    #000 32%,
    rgba(0,0,0,.93) 44%,
    rgba(0,0,0,.67) 60%,
    rgba(0,0,0,.27) 80%,
    transparent 100%
  );
}
body.cso-soft.template-index .hero.cso-hero-blend .hero-figure .hero-image,
body.cso-soft .cso-page-hero.cso-hero-blend:not(.cso-choice-hero) .cso-page-hero__figure .cso-photo__image {
  -webkit-mask-image:var(--cso-v36-photo-mask)!important;
  mask-image:var(--cso-v36-photo-mask)!important;
}
body.cso-soft.template-index .hero.cso-hero-blend .hero-figure .hero-image {
  opacity:.72;
  object-position:66% 53%;
}
body.cso-soft .cso-hero-blend .hero-figure,
body.cso-soft .cso-hero-blend .cso-page-hero__figure {
  pointer-events:none;
}

/* COLLEZIONI · Apre con un'unica fotografia editoriale, come le altre pagine.
   Non tocca le fotografie e i collegamenti delle tre collezioni. */
body.cso-soft.cso-collections-page .cso-page-hero.cso-collections-hero {
  background:
    radial-gradient(ellipse 57% 85% at 88% 45%,rgba(225,224,221,.54),transparent 80%),
    linear-gradient(116deg,#fff 31%,#f8f8f7 100%)!important;
}
body.cso-soft.cso-collections-page .cso-page-hero.cso-collections-hero
.cso-page-hero__grid--text {
  display:block;
  min-height:clamp(460px,38vw,555px);
  padding:clamp(38px,4.2vw,68px) 0 70px;
}
body.cso-soft.cso-collections-page .cso-page-hero.cso-collections-hero
.cso-page-hero__grid--text .cso-page-hero__copy {
  display:block;
  position:relative;
  z-index:3;
  width:min(53%,600px);
  max-width:600px;
}
body.cso-soft.cso-collections-page .cso-page-hero.cso-collections-hero
.cso-page-hero__copy .cso-page-intro {
  margin-top:22px;
  max-width:520px;
}
body.cso-soft.cso-collections-page .cso-page-hero.cso-collections-hero
.cso-page-hero__figure.cso-collections-figure {
  inset:-38px -46px -24px 25%;
}
body.cso-soft.cso-collections-page .cso-page-hero.cso-collections-hero
.cso-collections-figure .cso-photo__image {
  opacity:.77;
  object-fit:cover!important;
  object-position:66% 54%;
  filter:saturate(.93) contrast(.96);
}
/* Foto delle tre linee: nessun crop artificiale né nuovi sfondi quadrati. */
body.cso-soft.cso-collections-page .cso-line-card__image {
  position:relative;
  isolation:isolate;
  background:transparent!important;
}
body.cso-soft.cso-collections-page .cso-line-card__image > .cso-photo {
  box-shadow:0 14px 38px -30px rgba(31,37,42,.27);
}
body.cso-soft.cso-collections-page .cso-line-card__image .cso-photo__image {
  filter:saturate(.95) contrast(1.01);
}
body.cso-soft.cso-collections-page .cso-line-card h2 a {
  text-decoration-color:transparent;
  text-underline-offset:5px;
}

/* GUIDA AI DIAMANTI · Correzione causale:
   prima le due fotografie erano assolute e si sovrapponevano (v35).
   Ora occupano due aree distinte della stessa composizione, senza cornici,
   su uno sfondo uniforme. Restano due foto vere del catalogo CSO. */
body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-page-hero__grid--text {
  min-height:clamp(445px,37vw,535px);
}
body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-page-hero__grid--text::before {
  background:linear-gradient(
    90deg,
    #fff 0%,
    rgba(255,255,255,.98) 19%,
    rgba(255,255,255,.84) 33%,
    rgba(255,255,255,.40) 51%,
    rgba(255,255,255,0) 68%
  );
}
body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-page-hero__figure.cso-choice-figure {
  position:absolute;
  inset:-18px -38px -22px 39%;
  display:grid!important;
  grid-template-columns:1.1fr .9fr;
  gap:0;
  align-items:stretch;
  width:auto!important;
  height:auto!important;
  isolation:isolate;
  background:transparent!important;
  border:0!important;
  pointer-events:none;
}
body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-choice-figure > .cso-choice-photo--loose,
body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-choice-figure > .cso-choice-photo--ring {
  position:relative!important;
  inset:auto!important;
  top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  width:100%!important;
  height:100%!important;
  min-width:0;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  aspect-ratio:auto!important;
  isolation:isolate;
  background:transparent!important;
}
body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-choice-figure .cso-photo__image {
  -webkit-mask-image:var(--cso-v36-photo-mask)!important;
  mask-image:var(--cso-v36-photo-mask)!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  transition:none!important;
}
body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-choice-photo--loose .cso-photo__image {
  opacity:.83;
  object-position:45% 54%;
}
body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
.cso-choice-photo--ring .cso-photo__image {
  opacity:.84;
  object-position:59% 53%;
}
/* Le due immagini non si muovono su scroll: mantengono separazione e fusione. */

/* BRAND · Il v33 è un SVG contenente un PNG 357x204.
   Il logo non viene mai ingrandito oltre la sua larghezza nativa durante
   l'ingresso; lo spettacolo nasce da elementi CSS vettoriali intorno.
   Nessun blur animato, nessun effetto pesante continuo. */
body.cso-soft.template-index .cso-brand-stage__logo {
  width:min(357px,78vw);
  height:auto;
  image-rendering:auto;
  transform:none;
}
.cso-brand-intro__strapline {
  display:none;
}
@media(prefers-reduced-motion:no-preference) {
  html.cso-logo-entry body.cso-soft.template-index[data-motion="true"]
  .cso-brand-intro {
    display:grid;
    overflow:hidden;
    isolation:isolate;
    pointer-events:none;
    background:
      radial-gradient(ellipse 58% 70% at 50% 46%,#f8f4ec 0%,#fff 76%);
    animation:cso-v36-intro-screen 1900ms ease-out both!important;
  }
  html.cso-logo-entry body.cso-soft.template-index[data-motion="true"]
  .cso-brand-intro::before {
    content:"";
    position:absolute;
    width:min(96vw,840px);
    aspect-ratio:1;
    border-radius:50%;
    border:1px solid rgba(150,116,60,.28);
    box-shadow:0 0 0 65px rgba(169,139,88,.045),0 0 0 165px rgba(169,139,88,.025);
    animation:cso-v36-outer-ring 1700ms cubic-bezier(.16,1,.3,1) both;
  }
  html.cso-logo-entry body.cso-soft.template-index[data-motion="true"]
  .cso-brand-intro__crest {
    width:min(79vw,615px);
    border-color:rgba(146,119,71,.3);
    box-shadow:none;
    animation:cso-v36-crest 1350ms cubic-bezier(.16,1,.3,1) both!important;
  }
  .cso-brand-intro__crest::before,
  .cso-brand-intro__crest::after {
    content:"";
    position:absolute;
    inset:12%;
    border:1px solid rgba(150,116,60,.27);
    border-radius:50%;
  }
  .cso-brand-intro__crest::after {
    inset:27%;
    border-color:rgba(150,116,60,.38);
  }
  html.cso-logo-entry body.cso-soft.template-index[data-motion="true"]
  .cso-brand-intro__logo {
    width:min(357px,77vw)!important;
    max-width:357px!important;
    height:auto;
    mix-blend-mode:normal;
    filter:none;
    image-rendering:auto;
    animation:cso-v36-logo 1300ms cubic-bezier(.16,1,.3,1) 80ms both!important;
  }
  html.cso-logo-entry body.cso-soft.template-index[data-motion="true"]
  .cso-brand-intro__line {
    bottom:22%;
    width:min(58vw,480px);
    background:linear-gradient(90deg,transparent,rgba(148,112,56,.8),transparent);
    animation:cso-v36-line 1450ms cubic-bezier(.16,1,.3,1) 100ms both!important;
  }
  html.cso-logo-entry body.cso-soft.template-index[data-motion="true"]
  .cso-brand-intro__strapline {
    display:block;
    position:absolute;
    z-index:2;
    bottom:17%;
    left:50%;
    width:min(90vw,610px);
    margin:0;
    color:#7d6847;
    font:600 11px/1.5 Arial,Helvetica,sans-serif;
    letter-spacing:.23em;
    text-align:center;
    text-transform:uppercase;
    animation:cso-v36-strapline 1500ms ease-out 150ms both;
  }
}
@keyframes cso-v36-intro-screen {
  0%,76% { opacity:1;visibility:visible }
  99% { opacity:0;visibility:visible }
  100% { opacity:0;visibility:hidden }
}
@keyframes cso-v36-outer-ring {
  0% { opacity:0; transform:scale(.42) }
  45% { opacity:.9 }
  100% { opacity:.28;transform:scale(1.14) }
}
@keyframes cso-v36-crest {
  0% {opacity:0;transform:scale(.55)}
  55% {opacity:1}
  100% {opacity:.55;transform:scale(1)}
}
@keyframes cso-v36-logo {
  0% {opacity:0;transform:translate3d(0,14px,0) scale(.955)}
  30% {opacity:1}
  100% {opacity:1;transform:translate3d(0,0,0) scale(1)}
}
@keyframes cso-v36-line {
  0% {opacity:0;transform:translateX(-50%) scaleX(0)}
  65% {opacity:1;transform:translateX(-50%) scaleX(1)}
  100% {opacity:.65;transform:translateX(-50%) scaleX(1)}
}
@keyframes cso-v36-strapline {
  0% {opacity:0;transform:translateX(-50%) translateY(13px)}
  40% {opacity:0}
  100% {opacity:1;transform:translateX(-50%)}
}

/* Le vecchie animazioni di zoom/crop della v31 sulle immagini hero
   sono volutamente disattivate per evitare flash rettangolari durante la
   dissolvenza. I testi mantengono la loro entrata progressiva. */
@media(prefers-reduced-motion:no-preference) {
  html.cso-logo-entry body.cso-soft .cso-hero-blend .hero-figure,
  html.cso-logo-entry body.cso-soft .cso-hero-blend .cso-page-hero__figure,
  html.cso-logo-entry body.cso-soft .cso-hero-blend .hero-image {
    animation:none!important;
  }
}

/* PERFORMANCE · Le sfumature statiche non necessitano di animazioni su scroll.
   Hover discreto SOLO dove c'è un mouse (nessun repaint continuativo mobile). */
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  body.cso-soft.cso-collections-page .cso-line-card__image > .cso-photo {
    transition:transform .58s cubic-bezier(.2,.75,.2,1),box-shadow .58s ease;
  }
  body.cso-soft.cso-collections-page .cso-line-card:hover .cso-line-card__image > .cso-photo {
    transform:translate(-50%,-50%) scale(1.015);
    box-shadow:0 24px 42px -30px rgba(31,37,42,.28);
  }
}
@media(max-width:850px) {
  body.cso-soft.cso-collections-page .cso-page-hero.cso-collections-hero
  .cso-page-hero__grid--text {
    min-height:0;
    padding:16px 0 290px;
  }
  body.cso-soft.cso-collections-page .cso-page-hero.cso-collections-hero
  .cso-page-hero__grid--text .cso-page-hero__copy {
    width:100%;
    max-width:100%;
  }
  body.cso-soft.cso-collections-page .cso-page-hero.cso-collections-hero
  .cso-collections-figure.cso-page-hero__figure {
    inset:auto -10px -6px -10px;
    height:294px;
  }
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
  .cso-choice-figure.cso-page-hero__figure {
    inset:auto -8px -3px -8px;
    height:310px!important;
  }
  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,.34),transparent 35%);
  }
}
@media(max-width:600px) {
  body.cso-soft.cso-collections-page .cso-page-hero.cso-collections-hero
  .cso-page-hero__grid--text { padding:14px 0 242px; }
  body.cso-soft.cso-collections-page .cso-page-hero.cso-collections-hero
  .cso-collections-figure.cso-page-hero__figure {
    height:246px;inset:auto -7px -6px -7px;
  }
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend
  .cso-choice-figure.cso-page-hero__figure {
    height:254px!important;inset:auto -8px -3px -8px;
  }
  /* iOS: vetro più leggero, niente filtri sovrapposti sulla fascia mobile. */
  body.cso-soft.template-index .cso-header-wrapper {
    -webkit-backdrop-filter:saturate(1.02) blur(5px);
    backdrop-filter:saturate(1.02) blur(5px);
  }
  .cso-brand-intro__strapline {font-size:9px;letter-spacing:.15em}
}
@media(prefers-reduced-motion:reduce) {
  .cso-brand-intro {display:none!important}
  .cso-brand-intro__crest,
  .cso-brand-intro__logo,
  .cso-brand-intro__line,
  .cso-brand-intro__strapline,
  body.cso-soft.cso-collections-page .cso-line-card__image > .cso-photo {
    animation:none!important;
    transition:none!important;
    transform:none;
  }
}


/* CSO v37 · correzione dei bordi residui nelle aperture fotografiche.
   RCA: l'inset NEGATIVO delle foto usciva dal contenitore con overflow:hidden,
   quindi il browser tagliava la maschera PRIMA della sua trasparenza finale.
   Portando le immagini entro il perimetro visibile, tutti i quattro lati
   sfumano realmente e non resta una linea orizzontale in cima o in basso. */
body.cso-soft.template-index .hero.cso-hero-blend .hero-figure,
body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure {
  -webkit-mask-image:radial-gradient(
    ellipse 49% 49% at 50% 50%,
    #000 0%,
    #000 38%,
    rgba(0,0,0,.93) 55%,
    rgba(0,0,0,.65) 76%,
    transparent 100%);
  mask-image:radial-gradient(
    ellipse 49% 49% at 50% 50%,
    #000 0%,
    #000 38%,
    rgba(0,0,0,.93) 55%,
    rgba(0,0,0,.65) 76%,
    transparent 100%);
}
@media(min-width:851px) {
  body.cso-soft.template-index .hero.cso-hero-blend .hero-figure {
    inset:0 0 0 26% !important;
  }
  body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure {
    inset:0 0 0 29% !important;
  }
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend .cso-page-hero__figure.cso-choice-figure {
    inset:0 0 0 39% !important;
  }
  body.cso-soft.cso-collections-page .cso-page-hero.cso-collections-hero.cso-hero-blend .cso-page-hero__figure.cso-collections-figure {
    inset:0 0 0 26% !important;
  }
}
@media(max-width:850px) {
  body.cso-soft.template-index .hero.cso-hero-blend .hero-figure,
  body.cso-soft .cso-page-hero.cso-hero-blend .cso-page-hero__figure,
  body.cso-soft .cso-page-hero.cso-choice-hero.cso-hero-blend .cso-page-hero__figure.cso-choice-figure,
  body.cso-soft.cso-collections-page .cso-page-hero.cso-collections-hero.cso-hero-blend .cso-page-hero__figure.cso-collections-figure {
    inset:auto 0 0 0 !important;
  }
}
/* Le tavole delle 4C conservano le etichette integrate NELL'IMMAGINE.
   Vengono eliminati soltanto bordi/padding/caption del contenitore HTML. */
