/* ==========================================================================
   Sky Arrow – Homepage (proposta B approvata), portata dal prototipo
   proposte/assets/css/base.css + home-b.css → regole identiche, isolate sotto .sa-home.
   File generato: modificare con criterio (o rigenerare dal prototipo).
   ========================================================================== */
.sa-home {
  
  --ink: #080137;          
  --ink-2: #0B0B54;        
  --ink-3: #1C035F;
  --blue: #1504FB;         
  --blue-2: #544CFC;
  --lilac: #776FFB;
  --sky: #A0BDFF;
  --mist: #D9E5FF;
  --paper: #F4F5FF;        
  --paper-2: #EBF0FD;
  --grey-300: #C2C9CC;
  --grey-500: #7B8285;
  --grey-700: #383B3D;
  --white: #fff;

  
  --f-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-text: "Be Vietnam Pro", system-ui, sans-serif;

  
  --t-mega: clamp(3.5rem, 9.8vw, 8.8rem);   
  --t-h1: clamp(2.6rem, 5.6vw, 5rem);        
  --t-h2: clamp(2rem, 3.4vw, 3rem);          
  --t-h3: clamp(1.25rem, 1.7vw, 1.5rem);     
  --t-lead: clamp(1.0625rem, 1.25vw, 1.125rem); 
  --t-body: 1rem;
  --t-ui: .875rem;                           
  --t-label: .75rem;                         

  
  --gutter: clamp(16px, 2.2vw, 32px);
  --section: clamp(96px, 11vw, 176px);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 80px;

  
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}
.sa-home *, .sa-home *::before, .sa-home *::after { box-sizing: border-box; }
.sa-home img, .sa-home video, .sa-home canvas, .sa-home svg { display: block; max-width: 100%; }
.sa-home img { height: auto; }
.sa-home a { color: inherit; text-decoration: none; }
.sa-home button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.sa-home ul, .sa-home ol { margin: 0; padding: 0; list-style: none; }
.sa-home h1, .sa-home h2, .sa-home h3, .sa-home h4, .sa-home p, .sa-home figure, .sa-home blockquote { margin: 0; }
.sa-home :focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 4px; }
.sa-home ::selection { background: var(--blue); color: var(--white); }
.sa-home .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sa-home .display, .sa-home .h1, .sa-home .h2, .sa-home .h3 {
  font-family: var(--f-display);
  font-weight: 550;
  letter-spacing: -.03em;
  line-height: 1.08;
  font-kerning: normal;
}
.sa-home .display { font-size: var(--t-mega); }
.sa-home .h1 { font-size: var(--t-h1); }
.sa-home .h2 { font-size: var(--t-h2); line-height: 1.12; }
.sa-home .h3 { font-size: var(--t-h3); line-height: 1.25; letter-spacing: -.02em; }
.sa-home .lead { font-size: var(--t-lead); line-height: 1.4; letter-spacing: -.02em; }
.sa-home .label {
  font-size: var(--t-label); font-weight: 500; letter-spacing: -.01em;
  line-height: 1.2; opacity: .72;
}
.sa-home .muted { opacity: .68; }
.sa-home .wrap { padding-inline: var(--gutter); }
.sa-home .section { padding-block: var(--section); }
.sa-home .grid-12 {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.sa-home [data-theme="dark"] { background: var(--ink); color: var(--paper); }
.sa-home [data-theme="blue"] { background: var(--blue); color: var(--paper); }
.sa-home .btn {
  --bg: var(--ink); --fg: var(--paper); --bg-h: var(--blue); --fg-h: var(--white);
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; overflow: hidden;
  background: var(--bg); color: var(--fg);
  font-size: 1rem; font-weight: 500; letter-spacing: -.02em; line-height: 1;
  isolation: isolate; white-space: nowrap;
  transition: color .5s var(--ease-out);
}
.sa-home .btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg-h); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.sa-home .btn__roll { position: relative; display: block; overflow: hidden; height: 1.1em; }
.sa-home .btn__roll span { display: block; transition: transform .5s var(--ease-out); }
.sa-home .btn__roll span + span { position: absolute; inset: 100% 0 auto; }
.sa-home .btn:hover, .sa-home .btn:focus-visible { color: var(--fg-h); }
.sa-home .btn:hover::before, .sa-home .btn:focus-visible::before { transform: translateY(0); }
.sa-home .btn:hover .btn__roll span, .sa-home .btn:focus-visible .btn__roll span { transform: translateY(-100%); }
.sa-home .btn--light { --bg: var(--paper); --fg: var(--ink); --bg-h: var(--blue); --fg-h: var(--white); }
.sa-home .btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.sa-home .btn--blue { --bg: var(--blue); --fg: var(--white); --bg-h: var(--ink); }
.sa-home .btn--sm { height: 40px; padding: 0 18px; }
.sa-home .btn .arrow { width: 14px; height: 14px; transition: transform .5s var(--ease-out); }
.sa-home .btn:hover .arrow { transform: translateX(3px); }
.sa-home .link-u {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease-out);
  padding-bottom: 2px;
}
.sa-home .link-u:hover { background-size: 0 1px; background-position: 100% 100%; }
.sa-home .link-h {
  background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
  padding-bottom: 2px;
}
.sa-home .link-h:hover, .sa-home .link-h:focus-visible { background-size: 100% 1px; background-position: 0 100%; }
.sa-home .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .2em; margin-bottom: -.2em; }
.sa-home .split .w > span { display: inline-block; will-change: transform; }
.sa-home .fill .c { opacity: .2; }
.sa-home [data-theme="dark"] .fill .c, .sa-home .fill--dark .c { opacity: .22; }
.sa-home .media-reveal { overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.sa-home [data-theme="dark"] .media-reveal { background: var(--ink-2); }
.sa-home .media-reveal img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.yt-modal {
  position: fixed; inset: 0; z-index: 180; display: grid; place-items: center;
  background: rgba(8,1,55,.92); padding: var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.yt-modal.is-open { opacity: 1; visibility: visible; }
.yt-modal__frame { width: min(1200px, 100%); aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.yt-modal__frame iframe { width: 100%; height: 100%; border: 0; }
.yt-modal__close { position: absolute; top: 20px; right: var(--gutter); color: var(--paper); }
.sa-home .curtain {
  position: fixed; inset: 0; z-index: 300; background: var(--blue); color: var(--paper);
  display: grid; place-items: center; pointer-events: none;
}
.sa-home .curtain__logo {
  width: min(280px, 50vw); aspect-ratio: 2856 / 588; background: currentColor;
  -webkit-mask: url("../img/skyarrow-logo.svg") center / contain no-repeat;
  mask: url("../img/skyarrow-logo.svg") center / contain no-repeat;
  clip-path: inset(0 100% 0 0);
}
.sa-home .curtain__pct { position: absolute; bottom: 28px; left: var(--gutter); font-size: var(--t-label); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
.sa-home *, .sa-home *::before, .sa-home *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
.sa-home .curtain { display: none; }
}

/* ---------- home-b.css ---------- */
.sa-home .hb { position: relative; height: 480vh; background: var(--ink); }
.sa-home .hb__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  perspective: 1200px; perspective-origin: 50% 46%;
}
.sa-home .hb__scene { position: absolute; inset: 0; transform-style: preserve-3d; }
.sa-home .hb__sky {
  position: absolute; inset: -5%;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(84, 76, 252, .45), transparent 70%),
    radial-gradient(80% 60% at 50% 0%, rgba(11, 11, 84, .9), transparent 70%),
    linear-gradient(180deg, #080137 0%, #0B0B54 55%, #1C035F 100%);
}
.sa-home .hb__sky::after { 
  content: ""; position: absolute; inset: 0; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.sa-home .hb__window {
  position: absolute; inset: 0;
  transform: translateZ(-280px) rotateX(14deg) rotateY(-16deg) rotateZ(2deg);
  filter: drop-shadow(0 40px 60px rgba(2, 0, 77, .55)) drop-shadow(0 0 1px rgba(160, 189, 255, .9));
  will-change: transform;
}
.sa-home .hb__clip {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(24% 29% 24% 29% round 28px);
  will-change: clip-path;
  background: var(--ink-2);
}
.sa-home .hb__video { width: 100%; height: 100%; object-fit: cover; }
.sa-home .hb__veil { position: absolute; inset: 0; background: rgba(8, 1, 55, .45); pointer-events: none; }
.sa-home .hb__shade {
  position: absolute; inset: 0; opacity: 0;
  background:
    linear-gradient(0deg, rgba(8, 1, 55, .78) 0%, rgba(8, 1, 55, 0) 46%),
    linear-gradient(180deg, rgba(8, 1, 55, .45) 0%, rgba(8, 1, 55, 0) 22%);
}
.sa-home .hb__cloud {
  position: absolute; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(217, 229, 255, .5), rgba(217, 229, 255, 0));
  filter: blur(24px); will-change: transform, opacity;
}
.sa-home .hb__cloud--1 { width: 70vw; height: 30vw; left: -20vw; top: 8vh; }
.sa-home .hb__cloud--2 { width: 60vw; height: 26vw; right: -18vw; bottom: 4vh; }
.sa-home .hb__cloud--3 { width: 90vw; height: 36vw; left: 5vw; top: 30vh; }
.sa-home .hb__title {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 550;
  font-size: clamp(3.6rem, 13vw, 13rem); line-height: .94; letter-spacing: -.055em; word-spacing: .08em;
  color: var(--paper); text-align: center; pointer-events: none;
  transform-style: preserve-3d;
}
.sa-home .hb__l1, .sa-home .hb__l2 { display: block; overflow: hidden; padding: .02em .06em .24em; margin-bottom: -.14em; will-change: transform, opacity, filter; }
.sa-home .hb__t { display: inline-block; white-space: nowrap; }
.sa-home .hb__l2 { padding-left: .9em; }
.sa-home .hb__kicker {
  position: absolute; z-index: 3; left: var(--gutter); top: calc(var(--header-h) + 8px);
  display: flex; align-items: center; gap: 10px; color: var(--paper); opacity: .85;
}
.sa-home .hb__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(160, 189, 255, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(160, 189, 255, .55); } 70% { box-shadow: 0 0 0 12px rgba(160, 189, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(160, 189, 255, 0); } }
.sa-home .hb__cue {
  position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 12px; color: var(--paper);
  font-size: var(--t-label); font-weight: 500; opacity: .8;
}
.sa-home .hb__cue i { width: 1px; height: 44px; background: rgba(244, 245, 255, .25); position: relative; overflow: hidden; }
.sa-home .hb__cue i::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: translateY(-100%); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.sa-home .hb__copy {
  position: absolute; z-index: 3; left: var(--gutter); bottom: clamp(28px, 6vh, 56px);
  max-width: 30ch; color: var(--paper);
}
.sa-home .hb__lead {
  font-family: var(--f-display); font-weight: 500; letter-spacing: -.03em;
  font-size: clamp(1.5rem, 2.4vw, 2.25rem); line-height: 1.14; margin-bottom: 14px;
}
.sa-home .hb__specs {
  position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(28px, 6vh, 56px);
  display: grid; grid-template-columns: repeat(4, minmax(118px, 1fr)); margin: 0; color: var(--paper);
}
.sa-home .hb__specs > div { padding: 4px 22px 0; border-left: 1px solid rgba(244, 245, 255, .22); }
.sa-home .hb__specs dt { font-size: var(--t-label); font-weight: 500; opacity: .7; }
.sa-home .hb__specs dd { margin: 10px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.sa-home .hb__specs b { font-family: var(--f-display); font-weight: 550; letter-spacing: -.04em; font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1; font-variant-numeric: tabular-nums; }
.sa-home .hb__specs small { font-size: var(--t-label); font-weight: 500; opacity: .85; }
.sa-home .hb__specs span { font-size: var(--t-label); opacity: .55; }
.sa-home .hb__alt {
  position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%);
  height: 36vh; width: 96px; color: var(--paper); white-space: nowrap; display: grid; justify-items: end; align-content: center; gap: 6px;
  font-variant-numeric: tabular-nums;
}
.sa-home .hb__tape {
  position: absolute; right: 0; top: 0; bottom: 0; width: 18px; opacity: .45;
  background-image:
    repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 12px),
    repeating-linear-gradient(180deg, currentColor 0 1px, transparent 1px 60px);
  background-size: 8px 100%, 18px 100%; background-position: right 0 top 0, right 0 top 0; background-repeat: repeat-y;
  -webkit-mask: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.sa-home .hb__altv { position: relative; margin-right: 28px; font-family: var(--f-display); font-weight: 550; font-size: 1.125rem; letter-spacing: -.02em; }
.sa-home .hb__alt small { position: relative; margin-right: 28px; font-size: 10px; font-weight: 500; opacity: .6; letter-spacing: .04em; }
@media (max-width: 900px) {
.sa-home .hb { height: 460vh; }
.sa-home .hb__alt { display: none; }
.sa-home .hb__clip { clip-path: inset(30% 8% 30% 8% round 20px); }
.sa-home .hb__copy { bottom: auto; top: calc(var(--header-h) + 48px); }
.sa-home .hb__specs { left: var(--gutter); right: var(--gutter); grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
.sa-home .hb__specs > div { padding: 2px 14px 0; }
.sa-home .hb__l2 { padding-left: .4em; }
}
.sa-home .hs { position: relative; background: var(--paper); overflow: clip; }
.sa-home .hs__zone { position: relative; height: 230vh; }
.sa-home .hs__collage { position: absolute; inset: 0; pointer-events: none; }
.sa-home .hs__img { position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); will-change: transform; }
.sa-home .hs__img img { width: 100%; height: 100%; object-fit: cover; }
.sa-home .hs__img--1 { left: 5%; top: 14%; width: clamp(150px, 17vw, 260px); aspect-ratio: 4 / 5; }
.sa-home .hs__img--2 { right: 4%; top: 22%; width: clamp(220px, 27vw, 420px); aspect-ratio: 16 / 10; }
.sa-home .hs__img--3 { left: 14%; top: 58%; width: clamp(180px, 21vw, 320px); aspect-ratio: 4 / 5; }
.sa-home .hs__img--4 { right: 18%; top: 64%; width: clamp(130px, 13vw, 200px); aspect-ratio: 3 / 4; }
.sa-home .hs__img--5 { left: 56%; top: 4%; width: clamp(140px, 14vw, 220px); aspect-ratio: 1; }
.sa-home .hs__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; z-index: 2; pointer-events: none; }
.sa-home .hs__title { text-align: center; color: var(--ink); padding-inline: var(--gutter); font-size: clamp(3rem, 8.4vw, 7.6rem); }
@media (max-width: 700px) {
.sa-home .hs__title br { display: none; }
}
.sa-home .hs__after { position: relative; z-index: 2; display: grid; justify-items: center; gap: 40px; padding-bottom: var(--section); margin-top: -6vh; }
.sa-home .hs__fill {
  max-width: 24ch; text-align: center;
  font-family: var(--f-display); font-weight: 550; letter-spacing: -.035em;
  font-size: clamp(1.75rem, 3.4vw, 3rem); line-height: 1.14;
}
@media (max-width: 900px) {
.sa-home .hs__zone { height: 190vh; }
.sa-home .hs__img--2 { top: 30%; }
.sa-home .hs__img--5 { display: none; }
}
.sa-home .hf { padding-top: 0; }
.sa-home .hf__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 24px; }
.sa-home .hf__big { grid-column: 1 / span 8; position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); margin: 0; }
.sa-home .hf__big figcaption { position: absolute; left: 24px; bottom: 20px; color: var(--paper); opacity: 1; }
.sa-home .hf__big video { width: 100%; height: 100%; object-fit: cover; }
.sa-home .hf__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s ease; }
.sa-home .hf__big.is-playing .hf__poster { opacity: 0; }
.sa-home .hf__side { grid-column: 9 / span 4; display: grid; gap: 20px; align-content: start; }
.sa-home .hf__small { aspect-ratio: 4 / 3; margin: 0; }
.sa-home .hf__side p { max-width: 30ch; font-size: var(--t-body); opacity: .8; }
.sa-home .hf__title {
  margin-top: clamp(56px, 7vw, 112px); max-width: 20ch;
  font-family: var(--f-display); font-weight: 550; letter-spacing: -.04em;
  font-size: clamp(2.25rem, 5vw, 4.6rem); line-height: 1.08;
}
@media (max-width: 900px) {
.sa-home .hf__big, .sa-home .hf__side { grid-column: 1 / -1; }
.sa-home .hf__side { grid-template-columns: 1fr 1fr; align-items: end; }
}
.sa-home .ht { position: relative; min-height: 112vh; display: flex; align-items: flex-end; overflow: hidden; clip-path: inset(0 round 0); }
.sa-home .ht__media { position: absolute; inset: -8% 0; }
.sa-home .ht__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.sa-home .ht__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 1, 55, .72) 0%, rgba(8, 1, 55, .15) 62%), linear-gradient(0deg, rgba(8, 1, 55, .6) 0%, transparent 40%); }
.sa-home .ht__inner { position: relative; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding-block: var(--section) clamp(48px, 7vw, 96px); }
.sa-home .ht__head h2 { margin-bottom: 32px; }
.sa-home .ht__list { width: min(360px, 100%); border-top: 1px solid rgba(244, 245, 255, .28); }
.sa-home .ht__list li { padding: 16px 0; border-bottom: 1px solid rgba(244, 245, 255, .28); display: grid; gap: 4px; }
.sa-home .ht__list b { font-family: var(--f-display); font-weight: 550; letter-spacing: -.02em; font-size: 1.125rem; }
.sa-home .ht__list span { font-size: var(--t-ui); opacity: .7; }
@media (max-width: 900px) {
.sa-home .ht__inner { flex-direction: column; align-items: flex-start; }
}
.sa-home .hm { padding-top: var(--section); }
.sa-home .hm__intro { margin-bottom: clamp(24px, 4vw, 56px); }
.sa-home .hm__intro .label { margin-bottom: 18px; }
.sa-home .hm__pin { position: relative; height: 100vh; height: 100svh; }
.sa-home .hm__stage {
  height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
  align-items: center; padding-top: calc(var(--header-h) + 8px); padding-bottom: 64px;
}
.sa-home .hm__nav { grid-column: 1 / span 3; display: grid; gap: 4px; }
.sa-home .hm__nav button {
  position: relative; text-align: left; padding: 2px 0 2px 22px;
  font-family: var(--f-display); font-weight: 550; letter-spacing: -.03em;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem); line-height: 1.25;
  color: rgba(8, 1, 55, .28); transition: color .5s var(--ease-out);
}
.sa-home .hm__nav button::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: var(--blue); transform: scale(0); transition: transform .5s var(--ease-out);
}
.sa-home .hm__nav .is-on button { color: var(--ink); }
.sa-home .hm__nav .is-on button::before { transform: scale(1); }
.sa-home .hm__nav button:hover { color: var(--ink); }
.sa-home .hm__media {
  grid-column: 4 / span 5; position: relative; height: min(70vh, 660px);
  border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-2);
}
.sa-home .hm__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0); transform: scale(1.15);
  transition: clip-path 1.1s var(--ease-io), transform 1.6s var(--ease-out);
}
.sa-home .hm__media img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 2; }
.sa-home .hm__media img.was-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; transition: none; }
.sa-home .hm__panels { grid-column: 9 / span 4; position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.sa-home .hm__panel { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-40%); opacity: 0; visibility: hidden; transition: opacity .6s ease, transform .9s var(--ease-out), visibility .6s; }
.sa-home .hm__panel.is-on { opacity: 1; visibility: visible; transform: translateY(-50%); }
.sa-home .hm__panel .h3 { margin: 12px 0 16px; font-size: clamp(1.75rem, 2.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; }
.sa-home .hm__panel p:not(.label) { opacity: .8; max-width: 36ch; }
.sa-home .hm__panel dl { margin: 24px 0 0; border-top: 1px solid rgba(8, 1, 55, .14); }
.sa-home .hm__panel dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(8, 1, 55, .14); font-size: var(--t-ui); }
.sa-home .hm__panel dt { opacity: .6; }
.sa-home .hm__panel dd { margin: 0; font-weight: 500; text-align: right; }
.sa-home .hm__panels .btn { position: absolute; bottom: 0; left: 0; }
.sa-home .hm__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 1px; background: rgba(8, 1, 55, .12); }
.sa-home .hm__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 900px) {
.sa-home .hm__stage { grid-template-rows: auto 1fr auto; row-gap: 16px; align-items: stretch; padding-bottom: 48px; }
.sa-home .hm__nav { grid-column: 1 / -1; display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; }
.sa-home .hm__nav button { white-space: nowrap; font-size: 1rem; padding-left: 14px; }
.sa-home .hm__nav button::before { width: 6px; height: 6px; margin-top: -3px; }
.sa-home .hm__media { grid-column: 1 / -1; height: auto; min-height: 30vh; }
.sa-home .hm__panels { grid-column: 1 / -1; min-height: 300px; }
.sa-home .hm__panel { top: 0; transform: translateY(12px); }
.sa-home .hm__panel.is-on { transform: none; }
.sa-home .hm__panel dl { display: none; }
.sa-home .hm__panels .btn { display: none; }
}
.sa-home .hn__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(40px, 5vw, 72px); }
.sa-home .hn__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sa-home .hn__item { position: relative; display: flex; flex-direction: column; padding: 0 var(--gutter); border-left: 1px solid rgba(8, 1, 55, .14); }
.sa-home .hn__item:first-child { padding-left: 0; border-left: 0; }
.sa-home .hn__item:last-child { padding-right: 0; }
.sa-home .hn__item .h3 { margin: 14px 0 40px; max-width: 22ch; flex: 1; }
.sa-home .hn__link::after { content: ""; position: absolute; inset: 0; }
.sa-home .hn__img { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--paper-2); }
.sa-home .hn__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.sa-home .hn__item:hover .hn__img img { transform: scale(1.05); }
.sa-home .play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(244, 245, 255, .92); transition: transform .6s var(--ease-out);
}
.sa-home .play::after { content: ""; position: absolute; left: 26px; top: 22px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--ink); }
.sa-home .hn__item:hover .play { transform: scale(1.12); }
@media (max-width: 900px) {
.sa-home .hn__cols { grid-template-columns: 1fr; row-gap: 40px; }
.sa-home .hn__item, .sa-home .hn__item:first-child { padding: 0; border: 0; }
.sa-home .hn__item .h3 { margin-bottom: 20px; }
}
.sa-home .hh { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; }
.sa-home .hh__media { position: absolute; inset: -10% 0; }
.sa-home .hh__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.sa-home .hh__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 1, 55, .85), rgba(8, 1, 55, .1) 70%); }
.sa-home .hh__inner { position: relative; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-block: var(--section) clamp(48px, 6vw, 80px); }
.sa-home .hh__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.sa-home .hh__text { max-width: 36ch; font-size: var(--t-lead); line-height: 1.45; opacity: .85; }
@media (max-width: 900px) {
.sa-home .hh__inner { flex-direction: column; align-items: flex-start; }
}
.sa-home .ac__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 56px; align-items: end; }
.sa-home .ac__title {
  grid-column: 1 / span 8;
  font-family: var(--f-display); font-weight: 550; letter-spacing: -.045em;
  font-size: clamp(2.6rem, 6.4vw, 6rem); line-height: 1.06;
}
.sa-home .ac__img { grid-column: 9 / span 4; aspect-ratio: 4 / 5; margin: 0; border-radius: var(--radius-lg); }
.sa-home .ac__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; border-top: 1px solid rgba(8, 1, 55, .14); }
.sa-home .ac__foot p { opacity: .75; }
@media (max-width: 900px) {
.sa-home .ac__title, .sa-home .ac__img { grid-column: 1 / -1; }
.sa-home .ac__img { aspect-ratio: 4 / 3; }
.sa-home .ac__foot { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Aggiunte per WordPress (non nel prototipo)
   ========================================================================== */
/* il "body" del prototipo, ma solo per la home */
.sa-home {
  display: block; background: var(--paper); color: var(--ink);
  font-family: var(--f-text); font-size: var(--t-body); line-height: 1.5; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* il tema base (Hello) colora di rosso i <button> in hover/focus: nella home no */
.sa-home button[type="button"]:is(:hover, :focus, :active) { background-color: transparent; color: inherit; border: 0; }
.sa-home .hm__nav button[type="button"]:is(:hover, :focus-visible) { color: var(--ink); }
.sa-home .hm__nav .is-on button[type="button"] { color: var(--ink); }

/* ---------- Carousel accanto al video: una foto alla volta, in loop ---------- */
.sa-home .hf-car { position: relative; aspect-ratio: 4 / 3; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.sa-home .hf-car__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(0 0 0 100%); transform: scale(1.12);
  transition: clip-path 1.2s var(--ease-io), transform 1.8s var(--ease-out);
}
.sa-home .hf-car__img.is-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 2; }
.sa-home .hf-car__img.was-on { clip-path: inset(0 0 0 0); transform: scale(1); z-index: 1; transition: none; }
.sa-home .hf-car__bars { position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 14px; display: flex; gap: 6px; pointer-events: none; }
.sa-home .hf-car__bars i { position: relative; flex: 1 1 0; height: 2px; border-radius: 2px; background: rgba(244, 245, 255, .35); overflow: hidden; }
.sa-home .hf-car__bars i::after { content: ""; position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: 0 50%; }
.sa-home .hf-car__bars i.is-done::after { transform: scaleX(1); }
.sa-home .hf-car__bars i.is-on::after { animation: sa-car-bar var(--car-ms, 4000ms) linear forwards; }
.sa-home .hf-car.is-paused .hf-car__bars i.is-on::after { animation-play-state: paused; }
@keyframes sa-car-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .sa-home .hf-car__img { transition: opacity .6s ease; clip-path: none; transform: none; opacity: 0; }
  .sa-home .hf-car__img.is-on, .sa-home .hf-car__img.was-on { opacity: 1; }
}
/* immagini di WordPress (srcset) nei riquadri del prototipo */
.sa-home .hs__img img, .sa-home .hm__media img, .sa-home .hn__img img, .sa-home .ht__media img, .sa-home .hh__media img, .sa-home .ac__img img { max-width: none; }

/* finestra dei video YouTube: è fuori da .sa-home (aggiunta a <body>), il bottone ha il suo stile */
.yt-modal .yt-modal__close {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 0; border-radius: 999px;
  background: #F4F5FF; color: #080137; font: 500 1rem/1 "Be Vietnam Pro", system-ui, sans-serif; letter-spacing: -.02em; cursor: pointer;
}
.yt-modal .yt-modal__close:is(:hover, :focus-visible) { background: #1504FB; color: #fff; }
.yt-modal .yt-modal__close:focus:not(:focus-visible):not(:hover) { background: #F4F5FF; color: #080137; }

/* modifiche richieste dopo la pubblicazione (2026-11-09) */
/* titolo dell'hero circa 10 px più piccolo (in italiano le frasi sono più lunghe) */
.sa-home .hb__title { font-size: clamp(3.3rem, 12.3vw, 12.4rem); }
/* barre del carousel: piccole e al centro */
.sa-home .hf-car__bars { left: 50%; right: auto; transform: translateX(-50%); gap: 6px; }
.sa-home .hf-car__bars i { flex: none; width: 22px; }

/* News su mobile: carousel, una news per volta (scroll-snap nativo) + barre come nel carousel dell'hero */
.sa-home .hn__bars { display: none; }
@media (max-width: 900px) {
  .sa-home .hn__cols {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .sa-home .hn__cols::-webkit-scrollbar { display: none; }
  .sa-home .hn__item, .sa-home .hn__item:first-child { flex: 0 0 100%; scroll-snap-align: start; }
  .sa-home .hn__bars { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
  .sa-home .hn__bars i { width: 22px; height: 2px; background: rgba(8, 1, 55, .18); transition: background var(--sa-hover, .4s) ease; }
  .sa-home .hn__bars i.is-on { background: #080137; }
}

/* carousel accanto al video: cambio più rapido, trascinabile (mouse) e scorrevole (dito) */
.sa-home .hf-car { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sa-home .hf-car.is-dragging { cursor: grabbing; }
.sa-home .hf-car__img { transition: clip-path .9s var(--ease-io), transform 1.3s var(--ease-out); -webkit-user-drag: none; }
.sa-home .hf-car.is-back .hf-car__img:not(.is-on):not(.was-on) { clip-path: inset(0 100% 0 0); }
.sa-home .hf-car__img.was-on { transition: none; }
@media (prefers-reduced-motion: reduce) { .sa-home .hf-car__img { transition: opacity .6s ease; } }

/* spazio sopra "Ultime news": misurato come nel resto del sito (56 px desktop / 40 px mobile) */
.sa-home .hn { padding-top: clamp(40px, 3.9vw, 56px); }

/* HERO MOBILE: video a tutto schermo come sfondo, niente finestra 3D né nuvole, sezione corta (scroll fluido) */
@media (max-width: 767px) {
  .sa-home .hb.hb--m { height: 200vh; height: 200svh; }
  .sa-home .hb--m .hb__stage { perspective: none; }
  .sa-home .hb--m .hb__window { transform: none; filter: none; will-change: auto; }
  .sa-home .hb--m .hb__clip { clip-path: none; will-change: auto; }
  .sa-home .hb--m .hb__cloud { display: none; }
  .sa-home .hb--m .hb__l1, .sa-home .hb--m .hb__l2 { will-change: transform, opacity; }
  .sa-home .hb--m .hb__copy { top: auto; bottom: auto; top: calc(var(--header-h) + 32px); }
  .sa-home .hb--m .hb__specs { bottom: clamp(28px, 5svh, 48px); }
}

/* SEZIONE MODELLI: foto gestite da GSAP (entrano subito, nessuno scatto se si scorre veloce) */
.sa-home .hm--js .hm__media img, .sa-home .hm--js .hm__media img.is-on, .sa-home .hm--js .hm__media img.was-on { transition: none; }
/* testi del pannello: entrano insieme alla foto */
.sa-home .hm--js .hm__panel { transition: opacity .45s ease, transform .6s var(--ease-out), visibility .45s; }

/* MOBILE: niente sezione bloccata; pillole sempre visibili, foto da scorrere con il dito, testo sotto */
@media (max-width: 767px) {
  .sa-home .hm--m .hm__pin { height: auto; }
  .sa-home .hm--m .hm__stage { height: auto; display: flex; flex-direction: column; gap: 16px; padding-top: 0; padding-bottom: 0; }
  .sa-home .hm--m .hm__nav { display: flex; gap: 6px; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; list-style: none; }
  .sa-home .hm--m .hm__nav::-webkit-scrollbar { display: none; }
  .sa-home .hm--m .hm__nav li { flex: none; }
  .sa-home .hm--m .hm__nav button,
  .sa-home .hm--m .hm__nav button[type="button"] {
    height: 38px; padding: 0 16px; border-radius: 999px; background: var(--paper-2); color: var(--ink);
    font-size: .9375rem; letter-spacing: -.01em; white-space: nowrap; transition: background-color .3s ease, color .3s ease;
  }
  .sa-home .hm--m .hm__nav button::before { display: none; }
  .sa-home .hm--m .hm__nav .is-on button,
  .sa-home .hm--m .hm__nav .is-on button[type="button"] { background: var(--ink); color: var(--paper); }
  .sa-home .hm--m .hm__media { min-height: 0; height: auto; aspect-ratio: 4 / 3; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
  .sa-home .hm--m .hm__media img { -webkit-user-drag: none; }
  .sa-home .hm--m .hm__panels { display: grid; min-height: 0; }
  .sa-home .hm--m .hm__panel { position: relative; grid-area: 1 / 1; top: auto; transform: translateY(10px); }
  .sa-home .hm--m .hm__panel.is-on { transform: none; }
  .sa-home .hm--m .hm__bar { display: none; }
}

/* carousel accanto al video, su mobile: a tutta larghezza, sopra il testo */
@media (max-width: 767px) {
  .sa-home .hf__side { grid-template-columns: 1fr; align-items: start; gap: 16px; }
  .sa-home .hf__side p { max-width: none; }
}

/* collage "Designed and manufactured in Italy", mobile: titolo in alto, foto sotto in griglia (nessuna sovrapposizione) */
@media (max-width: 767px) {
  .sa-home .hs__zone { height: auto; display: flex; flex-direction: column; padding-top: var(--section); }
  .sa-home .hs__sticky { position: relative; height: auto; order: 0; display: block; }
  .sa-home .hs__collage {
    position: relative; inset: auto; order: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    grid-template-areas: "a b" "c c"; align-items: start; padding: 40px var(--gutter) 0;
  }
  .sa-home .hs__img { position: relative; left: auto; right: auto; top: auto; width: auto; will-change: auto; }
  .sa-home .hs__img--1 { grid-area: a; aspect-ratio: 4 / 5; }
  .sa-home .hs__img--3 { grid-area: b; aspect-ratio: 4 / 5; margin-top: 48px; }
  .sa-home .hs__img--2 { grid-area: c; aspect-ratio: 16 / 10; top: auto; }
  .sa-home .hs__img--4, .sa-home .hs__img--5 { display: none; }
  .sa-home .hs__after { margin-top: 0; padding-top: 40px; }
}

/* i bottoni non si stringono mai (con il testo ingrandito di Android "Tutte le news" veniva tagliato) */
.sa-home .btn { flex-shrink: 0; }
@media (max-width: 767px) {
  .sa-home .hn__head { gap: 16px; }
  .sa-home .hn__head .h1 { min-width: 0; }
  /* anteprima news su telefono: solo la data, senza categoria */
  .sa-home .hn__type { display: none; }
}
