/* Homepage media layer. */
.hero-real-card{position:relative;min-height:565px;border-radius:38px;overflow:hidden;background:#0a43bd;box-shadow:var(--shadow)}
.hero-real-card>img{width:100%;height:100%;min-height:565px;object-fit:cover}
.hero-real-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,21,47,.04) 20%,rgba(7,21,47,.72) 100%)}
.demo-badge{position:absolute;top:22px;left:22px;z-index:4;padding:8px 11px;border-radius:999px;background:rgba(7,21,47,.78);color:#fff;font-size:9px;font-weight:900;letter-spacing:.14em;backdrop-filter:blur(10px)}
.hero-real-content{position:absolute;left:36px;right:36px;bottom:36px;z-index:3;color:#fff;display:flex;flex-direction:column;align-items:flex-start;max-width:520px}
.hero-real-content>span{font-size:10px;letter-spacing:.16em;font-weight:900;color:#b9d1ff}
.hero-real-content strong{font-size:clamp(28px,4vw,48px);line-height:1.02;letter-spacing:-.045em;margin:8px 0 12px}
.hero-real-content small{font-size:11px;line-height:1.55;color:rgba(255,255,255,.78);max-width:360px}
.machine-photo,.machine-video{position:relative;overflow:hidden}
.machine-photo{background-size:cover;background-position:center}
.machine-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,21,47,.05) 25%,rgba(7,21,47,.58) 100%)}
.machine-video{background:#07152f}
.machine-video{aspect-ratio:16/9}
.machine-video video{display:block;width:100%;height:100%;min-height:0;object-fit:cover;object-position:center;transform:none!important}
.machine-video:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,21,47,.02) 25%,rgba(7,21,47,.34) 100%);pointer-events:none}
.machine-photo .machine-badge,.machine-photo .image-credit-note,.machine-photo .visual-play,.machine-video .machine-badge{z-index:2}
.machine-badge{position:absolute;top:18px;left:18px;padding:7px 9px;border-radius:999px;background:rgba(7,21,47,.74);color:#fff;font-size:8px;font-weight:900;letter-spacing:.12em;backdrop-filter:blur(8px)}
.image-credit-note{position:absolute;right:18px;bottom:18px;font-size:9px;color:#fff;padding:6px 8px;border-radius:8px;background:rgba(7,21,47,.58);backdrop-filter:blur(8px)}
.visual-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:64px;height:64px;border:0;border-radius:50%;background:#fff;color:var(--blue);display:grid;place-items:center;font-size:19px;padding-left:3px;box-shadow:0 15px 42px rgba(0,0,0,.2);cursor:default}
.tech-showcase-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:32px;padding-top:24px;border-top:1px solid #e6ebf2}
.tech-showcase-footer p{margin:0;color:var(--muted);font-size:14px}
.real-photo{background-size:cover!important;background-position:center!important}
.real-photo:after{background:linear-gradient(to top,rgba(7,21,47,.62),rgba(7,21,47,.04) 62%)}
.home-gallery .gallery-tile{min-height:100%}
.brand{gap:12px}
.brand::after{content:'CENTRO MEDICO SPECIALISTICO';display:block;align-self:center;max-width:150px;font-size:9px;line-height:1.18;letter-spacing:.11em;font-weight:900;color:#707a89;white-space:normal;text-transform:uppercase}

/* Perché Bruniano */
.why-bruniano{padding:86px 0;background:#fff}
.why-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:end}
.why-lead h2{font-size:clamp(42px,5vw,68px);line-height:1;letter-spacing:-.055em;margin:0}
.why-lead h2 span{color:#9aa5b5}
.why-lead p:not(.eyebrow){max-width:650px;font-size:17px;line-height:1.7;color:#67748a;margin-top:22px}
.why-cards{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.why-card{padding:24px;border:1px solid #e1e7ef;border-radius:22px;background:#f8fbff;box-shadow:0 1px 0 rgba(16,24,40,.02)}
.why-card b{display:block;font-size:12px;letter-spacing:.14em;color:#155cff;margin-bottom:11px}
.why-card strong{display:block;font-size:18px;line-height:1.25;color:#111a2c}
.why-card p{margin:8px 0 0;font-size:13px;line-height:1.6;color:#6f7d90}

body:has(.hero-media-home) .container{width:min(92vw,1480px)}
body:has(.hero-media-home) .site-header .container{min-height:76px}
body:has(.hero-media-home) .offer-ribbon .container{width:min(92vw,1480px)}
body:has(.hero-media-home) .hero-media-home{position:relative;min-height:clamp(620px,calc(100svh - 148px),840px);display:flex;align-items:center;padding:0;overflow:hidden;background:#07152f}
body:has(.hero-media-home) .hero-media-home .hero-orb{display:none}
body:has(.hero-media-home) .hero-media-home .hero-grid{position:relative;width:min(92vw,1480px);min-height:clamp(620px,calc(100svh - 148px),840px);display:flex;align-items:center;grid-template-columns:none;gap:0;z-index:2}
body:has(.hero-media-home) .hero-media-home .hero-visual{position:absolute;inset:0;width:100%;height:100%;z-index:-1}
body:has(.hero-media-home) .hero-media-home .hero-real-card{position:absolute;inset:0;width:100%;height:100%;min-height:0;border-radius:0;box-shadow:none;background:#07152f}
body:has(.hero-media-home) .hero-media-home .hero-real-card>img{position:absolute;inset:0;width:100%;height:100%;min-height:0;object-fit:cover;object-position:center 50%;filter:saturate(.9) contrast(1.02)}
body:has(.hero-media-home) .hero-media-home .hero-real-overlay{background:linear-gradient(90deg,rgba(6,20,45,.97) 0%,rgba(6,20,45,.84) 31%,rgba(6,20,45,.42) 53%,rgba(6,20,45,.05) 76%),linear-gradient(180deg,rgba(6,20,45,.08),rgba(6,20,45,.42))}
body:has(.hero-media-home) .hero-media-home .hero-real-content{left:auto;right:6vw;bottom:7%;max-width:340px;text-align:right;align-items:flex-end}
body:has(.hero-media-home) .hero-media-home .hero-real-content strong{font-size:clamp(23px,2.4vw,36px);text-shadow:0 8px 30px rgba(0,0,0,.25)}
body:has(.hero-media-home) .hero-media-home .hero-real-content small{max-width:280px}
body:has(.hero-media-home) .hero-media-home .demo-badge{display:none}
body:has(.hero-media-home) .hero-media-home .hero-copy{position:relative;z-index:3;max-width:760px;padding:0;transform:translateY(-2%)}
body:has(.hero-media-home) .hero-media-home .hero-copy .eyebrow{color:#b9d1ff}
body:has(.hero-media-home) .hero-media-home .hero-copy h1{font-size:clamp(62px,6.8vw,108px);line-height:.88;letter-spacing:-.07em;margin:0 0 24px;color:#fff;max-width:790px}
body:has(.hero-media-home) .hero-media-home .hero-copy h1 em{color:#5e91ff;font-style:normal}
body:has(.hero-media-home) .hero-media-home .hero-text{font-size:clamp(17px,1.3vw,20px);line-height:1.62;max-width:620px;color:rgba(255,255,255,.78)}
body:has(.hero-media-home) .hero-media-home .hero-actions{margin-top:28px}
body:has(.hero-media-home) .hero-media-home .hero-actions .button-ghost{border-color:rgba(255,255,255,.3);color:#fff;background:rgba(255,255,255,.05);backdrop-filter:blur(10px)}
body:has(.hero-media-home) .hero-media-home .hero-note{margin-top:20px;color:rgba(255,255,255,.86)}
body:has(.hero-media-home) .hero-media-home .hero-note .pulse-dot{background:#5e91ff;box-shadow:0 0 0 6px rgba(94,145,255,.12)}
body:has(.hero-media-home) .hero-media-home .floating-card{z-index:4;backdrop-filter:blur(14px);background:rgba(255,255,255,.92);box-shadow:0 18px 45px rgba(0,0,0,.18)}
body:has(.hero-media-home) .hero-media-home .floating-card-top{top:56px;right:6vw}
body:has(.hero-media-home) .hero-media-home .floating-card-bottom{bottom:54px;left:50%;transform:translateX(-15%)}

@media(max-width:1180px){
  body:has(.hero-media-home) .container,body:has(.hero-media-home) .hero-media-home .hero-grid,body:has(.hero-media-home) .offer-ribbon .container{width:min(94vw,1160px)}
  body:has(.hero-media-home) .hero-copy h1{font-size:clamp(54px,6vw,82px)}
  body:has(.hero-media-home) .hero-media-home .hero-real-overlay{background:linear-gradient(90deg,rgba(6,20,45,.96) 0%,rgba(6,20,45,.8) 38%,rgba(6,20,45,.34) 65%,rgba(6,20,45,.04) 100%)}
}
@media(max-width:900px){
  .why-grid{grid-template-columns:1fr;gap:34px}
  .why-cards{grid-template-columns:1fr 1fr}
  body:has(.hero-media-home) .site-header{height:70px!important;min-height:70px!important;padding:0!important}
  body:has(.hero-media-home) .site-header .container{height:70px!important;min-height:70px!important;padding-top:0!important;padding-bottom:0!important}
  body:has(.hero-media-home) .hero-media-home{min-height:auto;padding:72px 0 56px;display:block}
  body:has(.hero-media-home) .hero-media-home .hero-grid{width:min(92vw,760px);min-height:0;display:block}
  body:has(.hero-media-home) .hero-media-home .hero-visual{position:absolute;inset:0;height:100%;min-height:100%}
  body:has(.hero-media-home) .hero-media-home .hero-real-card>img{object-position:60% center}
  body:has(.hero-media-home) .hero-media-home .hero-copy{padding-top:26px;transform:none}
  body:has(.hero-media-home) .hero-media-home .hero-copy h1{font-size:clamp(52px,10vw,78px);max-width:700px}
  body:has(.hero-media-home) .hero-media-home .hero-real-overlay{background:linear-gradient(180deg,rgba(6,20,45,.68) 0%,rgba(6,20,45,.82) 56%,rgba(6,20,45,.94) 100%)}
  body:has(.hero-media-home) .hero-media-home .hero-real-content{right:24px;bottom:24px;max-width:280px}
  body:has(.hero-media-home) .hero-media-home .floating-card-top{top:24px;right:18px}
  body:has(.hero-media-home) .hero-media-home .floating-card-bottom{bottom:18px;left:18px;transform:none}
}
@media(max-width:600px){
  .why-bruniano{padding:68px 0}
  .why-lead h2{font-size:clamp(38px,10.5vw,56px)}
  .why-cards{grid-template-columns:1fr}
  .why-card{padding:22px}
  body:has(.hero-media-home) .container,body:has(.hero-media-home) .hero-media-home .hero-grid,body:has(.hero-media-home) .offer-ribbon .container{width:min(92vw,560px)}
  body:has(.hero-media-home) .hero-media-home{padding:64px 0 54px;min-height:720px}
  body:has(.hero-media-home) .hero-media-home .hero-copy{padding-top:0;max-width:none}
  body:has(.hero-media-home) .hero-media-home .hero-copy h1{font-size:clamp(46px,13vw,64px);line-height:.94;letter-spacing:-.065em;margin-bottom:22px;max-width:100%}
  body:has(.hero-media-home) .hero-media-home .hero-text{font-size:16px;line-height:1.58;max-width:100%;margin-bottom:0}
  body:has(.hero-media-home) .hero-media-home .hero-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;margin-top:24px}
  body:has(.hero-media-home) .hero-media-home .hero-actions .button{width:100%;min-height:56px}
  body:has(.hero-media-home) .hero-media-home .hero-note{margin-top:20px;font-size:13px;line-height:1.45;display:flex;align-items:flex-start;gap:9px;max-width:100%}
  body:has(.hero-media-home) .hero-media-home .hero-real-content{display:none}
  body:has(.hero-media-home) .hero-media-home .floating-card{display:none!important}
  body:has(.hero-media-home) .hero-media-home .hero-real-overlay{background:linear-gradient(180deg,rgba(6,20,45,.74) 0%,rgba(6,20,45,.82) 48%,rgba(6,20,45,.95) 100%)}
  body:has(.hero-media-home) .hero-media-home .hero-real-card>img{object-position:62% center}
}
@media(max-width:650px){
  body:has(.hero-media-home) .offer-ribbon{height:auto;min-height:0;overflow:visible}
  body:has(.hero-media-home) .offer-ribbon-inner{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;padding:16px 0 18px!important}
  body:has(.hero-media-home) .offer-ribbon-inner>div{width:100%;display:flex;flex-direction:column;gap:5px}
  body:has(.hero-media-home) .offer-kicker{font-size:9px;line-height:1.2}
  body:has(.hero-media-home) .offer-ribbon strong{font-size:17px;line-height:1.25;white-space:normal}
  body:has(.hero-media-home) .offer-ribbon small{display:block;white-space:normal;font-size:12px;line-height:1.45}
  body:has(.hero-media-home) .offer-link{margin:0!important;font-size:14px;line-height:1.2}
}

/* Home stability fixes: keep the hero content below the promo strip and avoid duplicated header copy. */
body:has(.hero-media-home) .brand::after{content:none!important;display:none!important}
body:has(.hero-media-home) .offer-ribbon small{display:none!important}
@media(min-width:951px){
  body:has(.hero-media-home) .hero-media-home .hero-grid{padding-top:28px;padding-bottom:24px;box-sizing:border-box}
  body:has(.hero-media-home) .hero-media-home .hero-copy{transform:none}
  body:has(.hero-media-home) .offer-ribbon{position:relative;z-index:70}
}

/* Keep Laser as-is; crop only Tecar to its left source half without changing the file. */
.machine-video video{transform:none!important}


/* Tecar source is a split-frame recording: show the intended half without touching the original asset. */


/* Tecar: zoom the source in place to show only the intended left half, with no exposed side bar. */
.machine-card:nth-child(1) .machine-video video{width:100%;max-width:none;height:100%;transform:scale(2)!important;transform-origin:left center!important}
