/* Braintech Portfolio X-Ray — lab V79. Editorial simplification aligned with Investments / Wealth.
   Only Portfolio X-Ray uses these overrides. All contents of other pages remain untouched. */
body.xray-page .hero{
  min-height:100svh;
  padding:clamp(140px,15vh,170px) 0 94px;
  align-items:center;
}
body.xray-page .xray-hero-grid-clean{display:block;max-width:min(860px,77vw)}
body.xray-page .xray-hero-copy h1{
  max-width:13ch;
  font-size:clamp(45px,4.5vw,70px);
  margin:0 0 clamp(25px,4vh,43px);
}
body.xray-page .xray-hero-copy .lead{max-width:745px;line-height:1.71;margin:0 0 26px}
body.xray-page .hero-rule{margin-top:25px}
/* Long-form, open chapter rhythm. No gratuitous horizontal divider between sections. */
body.xray-page .xray-section,
body.xray-page .xray-section.compact{
  min-height:96svh;
  padding:clamp(112px,14vh,155px) 0 clamp(105px,12vh,142px);
  display:flex;align-items:center;
  scroll-margin-top:74px;
}
body.xray-page .xray-section > .wide{
  position:relative;
  width:calc(100% - 10.8vw);
  max-width:1260px;
  margin:auto;
}
body.xray-page .xray-section + .xray-section > .wide:before{content:none!important;display:none!important}
body.xray-page .xray-intro{margin-bottom:clamp(35px,5vw,60px)}
body.xray-page #analisi .xray-intro{
  grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
  align-items:center;
  gap:clamp(35px,6vw,90px);
}
body.xray-page .xray-panel .section-heading,
body.xray-page #analisi .xray-panel .section-heading{
  font-size:clamp(39px,4.2vw,61px);
  line-height:1.075;
  max-width:20ch;
  margin-bottom:26px;
}
body.xray-page .xray-panel .section-subtitle{
  font-size:clamp(15px,1.25vw,18px);
  line-height:1.7;
}
/* Keep a subtle column layout, but no enclosing cards or thick rules. */
body.xray-page .xray-feature-grid,
body.xray-page .xray-steps,
body.xray-page .xray-audience-grid{
  border:0;
  background:none;
}
body.xray-page .xray-feature-card,
body.xray-page .xray-step,
body.xray-page .xray-audience-card{
  background:transparent;
  box-shadow:none;
  border-top:0;
  border-bottom:0;
}
body.xray-page .xray-feature-card,
body.xray-page .xray-step{padding-top:4px;padding-bottom:10px}
body.xray-page .xray-feature-card strong{font-size:18px;letter-spacing:-.018em}
body.xray-page .xray-feature-card p,
body.xray-page .xray-step p{font-size:14px;line-height:1.65}
body.xray-page #processo .section-subtitle{
  max-width:830px;
  margin-bottom:clamp(44px,5vw,70px);
}
body.xray-page #processo .xray-panel .section-heading{max-width:21ch}
body.xray-page #per-chi .section-subtitle{max-width:850px}
body.xray-page #contatto .section-heading{max-width:20ch}
body.xray-page #contatto .xray-cta > p{max-width:750px}
body.xray-page #contatto .xray-note{
  font-size:11px;
  max-width:900px;
  line-height:1.7;
  color:var(--bt-ivory-muted,#aaa497);
  margin-top:40px;
}
/* Contextual link inside lower-right corner of specific sections, no button styling. */
body.xray-page .xray-context-link{
  position:absolute;
  right:0;
  bottom:-92px;
  z-index:5;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  max-width:min(360px,80vw);
  padding:8px 0 2px;
  text-decoration:none;
  background:transparent;
  border:0;
  color:var(--bt-ivory,#f2efe7);
  transition:transform .2s ease,color .2s ease;
}
body.xray-page .xray-context-kicker{
  text-transform:uppercase;
  font-size:10px;
  letter-spacing:.16em;
  color:var(--bt-ivory-muted,#aaa497);
}
body.xray-page .xray-context-text{
  font-size:14px;
  font-weight:600;
  line-height:1.35;
  letter-spacing:.015em;
  text-align:right;
}
body.xray-page .xray-context-line{
  display:block;
  height:1px;
  margin-top:7px;
  width:95px;
  background:linear-gradient(90deg,rgba(255,106,31,0),rgba(255,106,31,.9));
}
body.xray-page .xray-context-link:hover,
body.xray-page .xray-context-link:focus-visible{
  color:#e99a6f;
  transform:translateX(-3px);
}
body.xray-page .xray-context-link:focus-visible{outline:2px solid #ff6a1f;outline-offset:7px}
@media(max-width:1100px){
  body.xray-page #analisi .xray-intro{gap:34px}
  body.xray-page .xray-context-link{bottom:-75px}
}
@media(max-width:790px){
  body.xray-page .hero{min-height:92svh;padding:130px 0 80px}
  body.xray-page .xray-hero-grid-clean{max-width:100%}
  body.xray-page .xray-hero-copy h1{font-size:clamp(39px,9vw,58px);line-height:1.08}
  body.xray-page .xray-section,
  body.xray-page .xray-section.compact{display:block;min-height:0;padding:85px 0 106px}
  body.xray-page .xray-section > .wide{width:calc(100% - 44px)}
  body.xray-page #analisi .xray-intro{grid-template-columns:1fr;gap:16px}
  body.xray-page .xray-feature-card,
  body.xray-page .xray-step{padding:18px 0;border:0!important}
  body.xray-page .xray-feature-grid,
  body.xray-page .xray-steps{display:grid;grid-template-columns:1fr;gap:3px}
  body.xray-page .xray-context-link{position:relative;right:auto;bottom:auto;margin:32px 0 0 auto;max-width:100%}
  body.xray-page #contatto .xray-note{margin-top:24px}
}
@media(max-width:520px){
  body.xray-page .hero{padding-top:116px}
  body.xray-page .xray-section,
  body.xray-page .xray-section.compact{padding:72px 0 96px}
  body.xray-page .xray-section > .wide{width:calc(100% - 36px)}
  body.xray-page .xray-context-text{font-size:13px}
}


/* V80 X-Ray refinement */
body.xray-page .xray-feature-card strong,
body.xray-page .xray-step h3,
body.xray-page .xray-audience-card h3{
  color:var(--bt-orange-soft,#e98a57);
}
body.xray-page .xray-feature-card strong,
body.xray-page .xray-step h3{font-weight:600;letter-spacing:-.01em}
body.xray-page .xray-audience-card h3{margin-bottom:12px}
body.xray-page .footer{padding-top:0}
body.xray-page .footer .wide{border-top:0}
body.xray-page .footer-base{padding-top:18px}
body.xray-page #per-chi.xray-section.compact{padding-bottom:clamp(92px,10vh,118px)}
