/* HF09-R1 — una sola tela geometrica, protezioni limitate alla lettura.
   La Home e i suoi moltiplicatori .90 restano invariati.
   Nessun filtro cromatico o cambiamento al PNG originale. */
body.hf06-site.hf06-site::before {
  content:"";
  display:block;
  position:fixed;
  inset:0;
  background-image:url("geometria-home.png");
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  opacity:1;
  mask-image:none;
  filter:none;
  mix-blend-mode:normal;
}
/* Rimuove le vecchie coltri di sezione, senza toccare i contenuti. */
body.hf06-site:not(.hf06-home) .editorial-surface::before,
body.hf06-site.hf06-servizi .service-feature::before,
body.hf06-site.hf06-quaderni .quaderni-demo-section::before {
  content:none;
  display:none;
}
/* Un solo livello protettivo, con lo stesso avorio della Home.
   Le dissolvenze esterne si adattano al viewport e non cambiano le misure dei contenuti.
   ::after preserva le etichette mobili Servizi già in ::before. */
body.hf06-site:not(.hf06-home) {
  --fausto-reading-alpha:.74;
  --fausto-soft-x:120px;
  --fausto-soft-y:56px;
}
body.hf06-site:not(.hf06-home) :where(
  .inner-page-hero:not(.contact-opening) > .container,
  .services-reading > .container,
  .feature-caption,
  .identity-intro .reading-copy,
  .identity-chapter .chapter-copy,
  .disciplines-grid > .section-heading,
  .disciplines-grid > .reading-copy,
  .credentials-reading,
  .contact-opening-grid > :first-child,
  .contact-information,
  .contact-form-section
) {
  position:relative;
  isolation:isolate;
}
body.hf06-site:not(.hf06-home) :where(
  .inner-page-hero:not(.contact-opening) > .container,
  .services-reading > .container,
  .feature-caption,
  .identity-intro .reading-copy,
  .identity-chapter .chapter-copy,
  .disciplines-grid > .section-heading,
  .disciplines-grid > .reading-copy,
  .credentials-reading,
  .contact-opening-grid > :first-child,
  .contact-information,
  .contact-form-section
)::after {
  content:"";
  position:absolute;
  inset:calc(-1 * var(--fausto-soft-y)) calc(-1 * var(--fausto-soft-x));
  z-index:-1;
  pointer-events:none;
  opacity:1;
  background:linear-gradient(90deg,transparent,
    rgba(var(--ivory),var(--fausto-reading-alpha)) var(--fausto-soft-x),
    rgba(var(--ivory),var(--fausto-reading-alpha)) calc(100% - var(--fausto-soft-x)),
    transparent);
  mask-image:linear-gradient(180deg,transparent,
    #000 var(--fausto-soft-y),#000 calc(100% - var(--fausto-soft-y)),transparent);
}
/* Aperture: la protezione segue il testo, non tutta la larghezza pagina. */
body.hf06-site:not(.hf06-home) .inner-page-hero:not(.contact-opening) > .container::after,
body.hf06-site.hf06-contatti .contact-opening-grid > :first-child::after {
  right:auto;
  width:min(1250px,calc(100% + 2 * var(--fausto-soft-x)));
  inset-block:-80px;
  background:radial-gradient(ellipse closest-side at 40% 50%,
    rgba(var(--ivory),.70) 0%,rgba(var(--ivory),.62) 55%,rgba(var(--ivory),.28) 80%,transparent 100%);
  mask-image:none;
}
/* Le card esistenti costituiscono già la loro protezione: niente doppio velo. */
body.hf06-site.hf06-quaderni .quaderno-card {
  background:rgba(var(--ivory),.77);
}
@media(max-width:820px) {
  body.hf06-site:not(.hf06-home) { --fausto-soft-x:32px; }
}
@media(max-width:560px) {
  body.hf06-site:not(.hf06-home) {
    --fausto-soft-x:24px;
    --fausto-soft-y:36px;
  }
  body.hf06-site.hf06-identita .identity-opening-title::before {
    content:none;
    display:none;
  }
  body.hf06-site.hf06-identita .identity-opening-title {
    position:relative;
    isolation:isolate;
  }
  body.hf06-site.hf06-identita .identity-opening-title::after {
    content:"";position:absolute;
    inset:0 calc(-1 * var(--fausto-soft-x));
    z-index:-1;pointer-events:none;
    background:linear-gradient(90deg,transparent,
      rgba(var(--ivory),var(--fausto-reading-alpha)) var(--fausto-soft-x),
      rgba(var(--ivory),var(--fausto-reading-alpha)) calc(100% - var(--fausto-soft-x)),transparent);
    mask-image:linear-gradient(180deg,transparent,#000 24px,#000);
  }
}

/* Raccordo delle didascalie: nessuna sfumatura invade la foto precedente. */
body.hf06-site.hf06-servizi .feature-caption::after {
  inset-block:0 -44px;
  mask-image:linear-gradient(180deg,transparent,#000 25px,#000 calc(100% - 44px),transparent);
}

/* Taglio di pittura delle sole sfumature fuori dal viewport.
   clip non crea un contenitore di scroll e non modifica le misure interne. */
body.hf06-site:not(.hf06-home) .hf06-main { overflow-x:clip; }

/* Unica eccezione minuta: il testo a 12 px dell'occhiello Quaderni. */
body.hf06-site.hf06-quaderni .demo-eyebrow::before {
  background:radial-gradient(ellipse closest-side at 40% 50%,
    rgba(var(--ivory),.84),rgba(var(--ivory),.82) 55%,
    rgba(var(--ivory),.32) 82%,transparent 100%);
}

/* Le superfici di lettura restano dietro le foto originali anche quando
   la dissolvenza oltrepassa la colonna. Solo ordine di pittura, nessuna misura. */
body.hf06-site:not(.hf06-home) .portrait-photo,
body.hf06-site:not(.hf06-home) .contact-books {
  position:relative;
  z-index:1;
}
