/* Home Health-X: marchio Omnia-X nel layer chiaro del laboratorio. */
.page-index .home-hero {
  position: relative;
  isolation: isolate;
  min-height: 690px;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(30px, 4vw, 66px);
  padding-top: 54px;
  padding-bottom: 54px;
  overflow: hidden;
  color: #142c43;
  background:
    radial-gradient(ellipse at 77% 50%, #bdeeff82 0, transparent 32%),
    linear-gradient(110deg, #fbfdff 0%, #f2f9fd 50%, #eaf6fb 100%);
}
.page-index .home-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/lab-research-layer.svg") center / cover no-repeat;
  opacity: .66;
  pointer-events: none;
}
.page-index .home-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #fbfdfff2 0%, #f7fbfce8 31%, #f5fbfccc 54%, #f1f9fb4d 100%),
    radial-gradient(circle at 74% 58%, #ffffffb8, transparent 38%);
  pointer-events: none;
}
.page-index .hero-field { z-index: 0; opacity: .3; }
.page-index .hero-copy { z-index: 2; max-width: 580px; }
.page-index .hero-copy h1 { max-width: 600px; font-size: clamp(48px, 5.6vw, 72px); }
.page-index .hero-copy .hero-lead { max-width: 470px; }
.page-index .hero-copy .hero-scroll { color: #356782; }
.page-index .hero-copy .hero-scroll span { color: #0879c7; }

.page-index .hero-emblem {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 610px;
  align-self: center;
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 900px;
}
.page-index .brand-emblem-stage {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: block;
  overflow: hidden;
}
.brand-emblem-stage::before,
.brand-emblem-stage::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 43%;
  left: 50%;
  width: min(82%, 400px);
  aspect-ratio: 1;
  height: auto;
  border: 1px solid #58abd747;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-28deg) scaleY(.48);
  pointer-events: none;
}
.brand-emblem-stage::after {
  width: min(91%, 448px);
  border-color: #6bb8dc2b;
  transform: translate(-50%, -50%) rotate(38deg) scaleY(.63);
  animation: brand-orbit-slow 30s linear infinite;
}
.brand-emblem-stage .emblem-halo {
  position: absolute;
  z-index: 0;
  top: 43%;
  left: 50%;
  width: min(69%, 335px);
  aspect-ratio: 1;
  height: auto;
  border-color: #68bfe972;
  background: radial-gradient(circle, #ffffffdf 0%, #bce9ff9c 43%, #d8f4ff42 61%, transparent 73%);
  box-shadow: 0 0 0 25px #3caafa0b, 0 0 0 62px #3caafa07, 0 0 86px #3ebcff32;
  transform: translate(-50%, -50%);
  animation: halo-light 6s ease-in-out infinite alternate;
}
.brand-emblem-stage .orbit-particle {
  z-index: 3;
  top: 43%;
  left: 50%;
  width: min(82%, 390px);
  height: auto;
  aspect-ratio: 1;
  translate: -50% -50%;
  transform-origin: center;
  animation-duration: 19s;
}
.brand-emblem-stage .brand-emblem-mark {
  position: absolute;
  z-index: 4;
  top: 43%;
  left: 50%;
  width: min(46%, 285px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  max-width: none;
  filter: drop-shadow(0 18px 27px #17649a35) drop-shadow(0 0 31px #6bcaff66);
  transform: translate(-50%, -50%);
  animation: brand-mark-float 7s ease-in-out infinite;
}
.brand-scan {
  position: absolute;
  z-index: 5;
  top: 25%;
  left: 50%;
  width: min(47%, 275px);
  height: 2px;
  opacity: 0;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #44c9ef, #f9ffff, #44c9ef, transparent);
  box-shadow: 0 0 12px #45c9ed99;
  animation: brand-scan-pass 6.8s ease-in-out infinite;
  pointer-events: none;
}
.brand-emblem-caption {
  position: relative;
  z-index: 7;
  flex: 0 0 auto;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: -78px auto 0 !important;
  padding: 8px 14px;
  border: 1px solid #c8e1ed;
  border-radius: 999px;
  background: linear-gradient(120deg, #ffffffdf, #f7fcffdf);
  box-shadow: 0 6px 22px #2c668b14;
  color: #426987 !important;
  text-align: center;
  font-size: 10px !important;
  letter-spacing: .075em !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
@keyframes brand-mark-float { 0%,100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes brand-orbit-slow { to { transform: translate(-50%, -50%) rotate(398deg) scaleY(.63); } }
@keyframes brand-scan-pass { 0%,100% { top: 27%; opacity: 0; } 17%,75% { opacity: .6; } 86% { top: 60%; opacity: .18; } }

/* Spazio editoriale e sfondo chiaro del laboratorio. */
.page-index .home-direction { padding-top: 72px; padding-bottom: 72px; }
.page-index .home-benefit { padding-top: 52px; padding-bottom: 52px; }
.page-index .home-product { min-height: 255px; }
.page-index .home-featured { padding-top: 65px; padding-bottom: 68px; }

@media (max-width: 1080px) {
  .page-index .home-hero { min-height: 640px; grid-template-columns: minmax(0,.82fr) minmax(0,1.18fr); gap: 24px; }
}
@media (max-width: 900px) {
  .page-index .home-hero { display: flex; flex-direction: column; align-items: stretch; gap: 30px; min-height: 0; padding: 54px 22px 45px; }
  .page-index .home-hero::before { background-position: 65% center; opacity: .48; }
  .page-index .home-hero::after { background: linear-gradient(180deg,#fbfdfff4 0%,#f4fafce0 58%,#f1f9fbd1 100%); }
  .page-index .hero-copy { width: 100%; min-width: 0; max-width: 640px; }
  .page-index .hero-copy .hero-lead { width: 100%; max-width: 50ch; overflow-wrap: anywhere; }
  .page-index .hero-actions { width: 100%; min-width: 0; }
  .page-index .hero-copy h1 { max-width: 620px; font-size: clamp(46px,10vw,66px); }
  .page-index .hero-emblem { align-self: center; justify-self: center; max-width: 620px; width: 100%; }
  .page-index .brand-emblem-stage { min-height: 505px; }
  .brand-emblem-stage::before { width: min(80%, 385px); }
  .brand-emblem-stage::after { width: min(90%, 432px); }
  .brand-emblem-stage .emblem-halo { width: min(68%, 325px); }
  .brand-emblem-stage .brand-emblem-mark { width: min(44%, 270px); }
  .brand-emblem-stage .orbit-particle { width: min(80%, 380px); }
}
@media (max-width: 560px) {
  .page-index .home-hero { padding: 48px 16px 39px; gap: 24px; }
  .page-index .hero-copy h1 { font-size: clamp(42px,11vw,56px); }
  .page-index .hero-copy .hero-lead { font-size: 16px; line-height: 1.62; }
  .page-index .brand-emblem-stage { min-height: 468px; }
  .brand-emblem-stage .brand-emblem-mark { width: min(46%, 235px); }
  .brand-emblem-stage .emblem-halo { width: min(68%, 290px); }
  .brand-emblem-stage .orbit-particle { width: min(82%, 345px); }
  .brand-emblem-caption { margin-top: -68px !important; padding: 7px 11px; font-size: 8.5px !important; }
}
@media (max-width: 360px) {
  .page-index .brand-emblem-stage { min-height: 448px; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-emblem-stage *,
  .brand-emblem-stage::before,
  .brand-emblem-stage::after { animation: none !important; }
}
html[data-motion="reduced"] .brand-emblem-stage *,
html[data-motion="reduced"] .brand-emblem-stage::before,
html[data-motion="reduced"] .brand-emblem-stage::after { animation: none !important; }

/* Reduced motion removes the floating animation, but must not remove centering. */
@media (prefers-reduced-motion: reduce) {
  .page-index .brand-emblem-stage .brand-emblem-mark { transform: translate(-50%, -50%) !important; }
}
html[data-motion="reduced"] .page-index .brand-emblem-stage .brand-emblem-mark { transform: translate(-50%, -50%) !important; }
