/* ==========================================================================
   HOME MODERNA — solo la home (body.home-moderna). Caricato dopo styles.css.
   Componenti in src/components/home/, menu a pillola in Header.astro (variant "pill").
   Colori:
   - --hm-red #BC162F: il rosso del sito (styles.css --red) per i fondi. Bianco su rosso 6,4:1.
   - --hm-red-text = rosso del sito #BC162F (scelta del titolare: un solo rosso). Su nero solo testo GRANDE o icone (3,1:1).
     il rosso del sito su nero si ferma a 3,1:1 e non basta sui grigi delle card.
   ========================================================================== */

@font-face { font-family:"JetBrains Mono"; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD }
@font-face { font-family:"JetBrains Mono"; font-style:normal; font-weight:600; font-display:swap; src:url("../fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD }

.home-moderna {
  --hm-ink:#0A0A0A;
  --hm-paper:#F5F3EF;
  --hm-soft:#E4E0D8;
  --hm-muted:#CFCAC0;
  --hm-dim:#A8A298;
  --hm-card:#151515;
  --hm-card-2:#1A1A1A;
  --hm-band:#111;
  --hm-line:rgba(255,255,255,.08);
  --hm-red:#BC162F;
  --hm-red-hover:#8a0f22;
  --hm-red-text:#BC162F;
  --hm-radius:28px;
  --hm-radius-lg:36px;
  --hm-wrap:1840px;
  --hm-gutter:clamp(24px,3.5vw,72px);
  --hm-display:"Anton","Anton Fallback",Impact,sans-serif;
  --hm-body:"Barlow","Barlow Fallback",system-ui,sans-serif;
  --hm-mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --hm-ease:cubic-bezier(.2,.7,.2,1);
  margin:0;
  background:var(--hm-ink);
  color:var(--hm-paper);
  font-family:var(--hm-body);
}
.home-moderna .hm-main { display:block; background:var(--hm-ink) }

/* ---------- Elementi comuni ---------- */
.hm-section {
  box-sizing:border-box;
  width:100%;
  max-width:calc(var(--hm-wrap) + 2 * var(--hm-gutter));
  margin-inline:auto;
  padding-inline:var(--hm-gutter);
}
.hm-h2 {
  margin:0;
  font:400 clamp(48px,6vw,104px)/.95 var(--hm-display);
  text-transform:uppercase;
  letter-spacing:0;
}
.hm-accent { color:var(--hm-red-text) }
.hm-label {
  margin:0;
  font:400 12px/1.3 var(--hm-mono);
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--hm-muted);
}
.hm-label--muted { color:var(--hm-dim); font-size:13px; letter-spacing:.08em }
.hm-label--on-red { color:#fff; font-size:13px }

.hm-btn {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:16px 24px;
  border-radius:999px;
  border:1px solid transparent;
  font:700 15px/1.15 var(--hm-body);
  letter-spacing:.04em;
  text-transform:uppercase;
  text-align:center;
  text-decoration:none;
  transition:background-color .2s ease,color .2s ease,border-color .2s ease,transform .2s var(--hm-ease);
}
.hm-btn--primary { background:var(--hm-red); color:#fff }
.hm-btn--primary:hover { background:var(--hm-red-hover); color:#fff }
.hm-btn--ghost {
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.25);
  color:var(--hm-paper);
  font-weight:600;
  text-transform:none;
  letter-spacing:0;
}
.hm-btn--ghost:hover { background:rgba(255,255,255,.16); color:#fff }
.hm-btn--dark { background:var(--hm-ink); color:#fff }
.hm-btn--dark:hover { background:#262626; color:#fff }
.hm-btn--lg { padding:22px 32px; font-size:18px }
.hm-btn:active { transform:translateY(1px) }

/* Focus: anello lime del sito su fondi scuri, nero su chiaro e sul rosso un doppio anello */
.home-moderna :where(a,button,video):focus-visible { outline:3px solid #C6FF00; outline-offset:3px }
.home-moderna .hm-card--offer :focus-visible,
.home-moderna .hm-closing__box :focus-visible { outline:3px solid #fff; outline-offset:3px; box-shadow:0 0 0 6px var(--hm-ink) }

.hm-br-desktop { display:none }
@media (max-width:767px) { .hm-hide-mobile { display:none } }
@media (min-width:900px) { .hm-br-desktop { display:inline } }

/* ---------- Menu a pillola (Header variant "pill") ---------- */
nav#nav.pill-nav {
  position:fixed;
  top:20px;
  left:0;
  right:0;
  z-index:300;
  display:block;
  padding:0 var(--hm-gutter);
  background:none;
  border:0;
  box-shadow:none;
  pointer-events:none; /* solo la pillola riceve i clic, non la fascia trasparente */
  transition:none;
}
.pill-nav__bar {
  position:relative;
  box-sizing:border-box;
  max-width:var(--hm-wrap);
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:8px 8px 8px 24px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(20,20,20,.92); /* fallback opaco senza backdrop-filter */
  pointer-events:auto;
}
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))) {
  .pill-nav__bar {
    background:rgba(20,20,20,.55);
    -webkit-backdrop-filter:blur(16px) saturate(140%);
    backdrop-filter:blur(16px) saturate(140%);
  }
}
.pill-nav__brand { display:inline-flex; align-items:center; min-height:44px; line-height:0 }
.pill-nav__logo { display:block; width:auto; height:34px }
nav#nav.pill-nav .pill-nav__links {
  position:static;
  display:flex;
  align-items:center;
  gap:clamp(16px,2vw,26px);
  padding:0;
  margin:0;
  background:none;
  border:0;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:none;
  max-height:none;
  overflow:visible;
}
nav#nav.pill-nav .pill-nav__link {
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0;
  border:0;
  color:var(--hm-paper);
  font:600 14px/1 var(--hm-body);
  letter-spacing:.06em;
  text-transform:uppercase;
  text-decoration:none;
  opacity:1;
  transition:color .2s ease;
}
nav#nav.pill-nav .pill-nav__link:hover { color:#fff; text-decoration:underline; text-underline-offset:6px; text-decoration-thickness:2px }
nav#nav.pill-nav .pill-nav__link[aria-current="page"] { text-decoration:underline; text-underline-offset:6px }
.pill-nav__cta {
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:13px 22px;
  border-radius:999px;
  background:var(--hm-red);
  color:#fff;
  font:700 14px/1 var(--hm-body);
  letter-spacing:.04em;
  text-transform:uppercase;
  text-decoration:none;
  white-space:nowrap;
  transition:background-color .2s ease;
}
.pill-nav__cta:hover { background:var(--hm-red-hover); color:#fff }
nav#nav.pill-nav .pill-nav__cta--in-menu { display:none }
nav#nav.pill-nav .pill-nav__toggle { display:none }

@media (max-width:899px) {
  nav#nav.pill-nav { top:14px; padding:0 14px }
  .pill-nav__bar { padding:6px 6px 6px 18px }
  .pill-nav__logo { height:26px }
  .pill-nav__cta--bar { display:none }
  nav#nav.pill-nav .pill-nav__toggle {
    position:relative;
    display:flex!important;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    width:44px;
    height:44px;
    padding:0;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.1);
    cursor:pointer;
  }
  nav#nav.pill-nav .pill-nav__toggle span {
    display:block;
    width:18px;
    height:2px;
    background:var(--hm-paper);
    transition:transform .22s ease;
  }
  nav#nav.pill-nav.nav-open .pill-nav__toggle span:nth-child(1) { transform:translateY(3.5px) rotate(45deg) }
  nav#nav.pill-nav.nav-open .pill-nav__toggle span:nth-child(2) { transform:translateY(-3.5px) rotate(-45deg); opacity:1 }
  nav#nav.pill-nav .pill-nav__links {
    position:absolute;
    top:calc(100% + 8px);
    left:0;
    right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:8px 18px 18px;
    border:1px solid rgba(255,255,255,.12);
    border-radius:24px;
    background:rgba(14,14,14,.97);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-6px);
    transition:opacity .2s ease,visibility .2s ease,transform .2s ease;
    max-height:calc(100svh - 100px);
    overflow-y:auto;
    overscroll-behavior:contain;
  }
  nav#nav.pill-nav.nav-open .pill-nav__links { opacity:1; visibility:visible; pointer-events:auto; transform:none }
  nav#nav.pill-nav .pill-nav__link {
    display:flex;
    min-height:52px;
    font-size:15px;
    border-bottom:1px solid rgba(255,255,255,.1);
  }
  nav#nav.pill-nav .pill-nav__link:focus-visible { outline-offset:-3px }
  nav#nav.pill-nav .pill-nav__cta--in-menu { display:flex; min-height:52px; margin-top:16px; font-size:15px }
}

/* ---------- 1. Hero ---------- */
.hm-hero {
  position:relative;
  isolation:isolate;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  min-height:100vh;
  min-height:100svh;
  padding:120px var(--hm-gutter) 56px;
  overflow:hidden;
  background:var(--hm-ink);
}
.hm-hero__img {
  position:absolute;
  inset:0;
  z-index:-2;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 35%;
}
.hm-hero__shade {
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(180deg,rgba(10,10,10,.6) 0%,rgba(10,10,10,.42) 35%,rgba(10,10,10,.72) 60%,rgba(10,10,10,.96) 100%);
}
.hm-hero__content {
  width:100%;
  max-width:var(--hm-wrap);
  margin:auto auto 0;
  display:flex;
  flex-direction:column;
  gap:24px;
}
.hm-hero__next {
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin:0;
  padding:9px 16px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:999px;
  background:rgba(20,20,20,.85);
  font:400 13px/1.3 var(--hm-mono);
  color:var(--hm-paper);
  animation:hm-fade-in .5s var(--hm-ease) both;
}
.hm-hero__next[hidden] { display:none }
@supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))) {
  .hm-hero__next { background:rgba(20,20,20,.6); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px) }
}
.hm-hero__dot {
  flex:none;
  width:8px;
  height:8px;
  border-radius:50%;
  background:#3DDC84;
  box-shadow:0 0 0 4px rgba(61,220,132,.2);
}
.hm-hero__title {
  margin:0;
  font:400 clamp(60px,9.45vw,176px)/.9 var(--hm-display);
  letter-spacing:-.01em;
  text-transform:uppercase;
  text-wrap:balance;
}
.hm-hero__row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"lead ." "trust actions";
  align-items:end;
  gap:24px 32px;
}
.hm-hero__lead { grid-area:lead }
.hm-hero__trust { grid-area:trust }
.hm-hero__actions { grid-area:actions; justify-content:flex-end }
.hm-hero__title, .hm-hero__lead { text-shadow:0 2px 18px rgba(0,0,0,.55) }
.hm-hero__lead {
  max-width:40ch;
  margin:0;
  font-size:clamp(17px,1.5vw,21px);
  line-height:1.45;
  color:var(--hm-paper);
}
.hm-hero__actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px }
.hm-hero__actions .hm-btn { min-height:60px; padding:19px 28px; font-size:17px }
.hm-hero__trust,
.hm-blocks__stats,
.hm-steps__list,
.hm-stories__list,
.hm-coach__list { list-style:none; margin:0; padding:0 }
.hm-hero__trust { display:flex; flex-wrap:wrap; gap:10px }
.hm-pill {
  padding:7px 14px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:999px;
  background:rgba(10,10,10,.75);
  font:400 12px/1.3 var(--hm-mono);
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--hm-soft);
}

@media (max-width:767px) {
  .hm-hero { padding:96px 18px 32px }
  .hm-hero__img { object-position:38% 20% }
  .hm-hero__shade { background:linear-gradient(180deg,rgba(10,10,10,.55) 0%,rgba(10,10,10,.35) 28%,rgba(10,10,10,.97) 68%) }
  .hm-hero__row { grid-template-columns:minmax(0,1fr); grid-template-areas:"lead" "actions" "trust" }
  .hm-hero__content { gap:16px }
  .hm-hero__next { padding:7px 13px; font-size:11px; gap:8px }
  .hm-hero__dot { width:7px; height:7px }
  .hm-hero__title { font-size:clamp(52px,16.4vw,72px) }
  .hm-hero__row { gap:16px }
  .hm-hero__lead { font-size:16px }
  .hm-hero__actions { width:100%; flex-direction:column; align-items:stretch; gap:8px }
  .hm-hero__actions .hm-btn { min-height:54px; padding:15px 18px; font-size:14px; letter-spacing:.02em }
  .hm-hero__trust { gap:8px }
  .hm-pill { padding:5px 10px; font-size:10px; letter-spacing:.06em }
}

/* Badge affiliazioni ufficiali (hero) */
.hm-hero__trust { align-items:center }
.hm-cred {
  display:flex; align-items:center; gap:10px;
  box-sizing:border-box; min-height:60px;
  padding:10px 18px 10px 12px;
  border:1px solid rgba(188,22,47,.9);
  border-radius:16px;
  background:rgba(10,10,10,.78);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
}
.hm-cred__icon { color:var(--hm-red); flex:none }
.hm-cred__text { display:flex; flex-direction:column; line-height:1.15 }
.hm-cred__text strong { font-family:var(--hm-display); font-weight:400; font-size:18px; letter-spacing:.03em; text-transform:uppercase; color:#F5F3EF }
.hm-cred__text span { font:400 11px/1.3 var(--hm-mono); letter-spacing:.08em; text-transform:uppercase; color:#CFCAC0 }
@media (max-width:767px){
  .hm-cred { padding:8px 14px 8px 10px; border-radius:14px }
  .hm-cred__text strong { font-size:15px }
  .hm-cred__text span { font-size:10px }
}
/* Blocchi numeri delle affiliazioni */
.hm-stat--official { border-color:rgba(188,22,47,.85) !important }
.hm-official { align-self:flex-start; font:600 11px/1 var(--hm-mono); letter-spacing:.08em; text-transform:uppercase; color:#FFFFFF; background:var(--hm-red); border-radius:999px; padding:5px 9px }

/* ---------- 2. Griglia a blocchi ---------- */
.hm-blocks { padding-top:96px; padding-bottom:48px }
.hm-blocks__main,
.hm-blocks__stats {
  display:grid;
  gap:16px;
}
.hm-blocks__main { grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:440px }
.hm-blocks__stats { grid-template-columns:repeat(4,minmax(0,1fr)); grid-auto-rows:1fr; margin-top:16px }

.hm-card {
  position:relative;
  box-sizing:border-box;
  display:flex;
  overflow:hidden;
  border-radius:var(--hm-radius);
  background:var(--hm-card);
  color:var(--hm-paper);
  text-decoration:none;
}
.hm-card--photo img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .6s var(--hm-ease);
}
.hm-card--photo::after {
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,0) 35%,rgba(0,0,0,.88));
}
.hm-card__body {
  position:relative;
  z-index:1;
  align-self:flex-end;
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  padding:26px 28px;
}
.hm-card__text { display:flex; flex-direction:column; gap:4px }
.hm-card__title { font:400 clamp(48px,4.4vw,64px)/1 var(--hm-display); text-transform:uppercase }
.hm-card__desc { font-size:16px; line-height:1.4; color:var(--hm-soft) }
.hm-card__arrow {
  flex:none;
  display:flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  border-radius:50%;
  background:var(--hm-paper);
  color:var(--hm-ink);
  font-size:24px;
  transition:transform .3s var(--hm-ease),background-color .2s ease,color .2s ease;
}
.hm-card--photo:hover img { transform:scale(1.04) }
.hm-card--photo:hover .hm-card__arrow { transform:translateX(4px); background:var(--hm-red); color:#fff }
.hm-card--photo:focus-visible { outline-offset:4px }

.hm-card--offer {
  flex-direction:column;
  justify-content:space-between;
  gap:16px;
  padding:32px;
  background:var(--hm-red);
  color:#fff;
}
.hm-offer__price { margin:0; font:400 clamp(96px,8.9vw,128px)/.9 var(--hm-display) }
.hm-offer__text { margin:10px 0 0; font-size:18px; line-height:1.4; max-width:30ch }
.hm-offer__text strong { font-weight:700 }
.hm-card--offer .hm-btn { align-self:flex-start }

.hm-stat {
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
  min-height:200px;
  padding:28px;
  border:1px solid var(--hm-line);
  border-radius:var(--hm-radius);
  background:var(--hm-card);
}
.hm-stat .hm-label { color:var(--hm-dim) }
.hm-stat__value { font:400 clamp(44px,5vw,72px)/1 var(--hm-display); text-transform:uppercase; white-space:nowrap }
.hm-stat__text { font-size:16px; line-height:1.4; color:var(--hm-muted) }
.hm-stat--light { background:var(--hm-paper); border-color:transparent; color:var(--hm-ink) }
.hm-stat--light .hm-label { color:#5E594F }
.hm-stat--light .hm-stat__text { color:#2B2924 }

/* Tablet: 2 per riga, schede tutte uguali (la terza scheda resta larga metà, centrata) */
@media (max-width:1100px) {
  .hm-blocks__main { grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:420px }
  .hm-blocks__main > :last-child:nth-child(odd) {
    grid-column:1 / -1;
    justify-self:center;
    width:calc(50% - 8px);
  }
  .hm-blocks__stats { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
/* Mobile: schede 1 per riga, numeri 2 per riga */
@media (max-width:767px) {
  .hm-blocks { padding:64px 16px 32px }
  .hm-blocks__main { grid-template-columns:minmax(0,1fr); grid-auto-rows:400px; gap:12px }
  .hm-blocks__main > :last-child:nth-child(odd) { grid-column:auto; width:auto; justify-self:stretch }
  .hm-blocks__stats { gap:12px; margin-top:12px }
  .hm-card__body { padding:22px 22px }
  .hm-card--offer { padding:26px 22px }
  .hm-offer__text { font-size:17px }
  .hm-stat { min-height:0; padding:18px 16px; border-radius:22px; gap:10px }
  .hm-stat__value { font-size:clamp(30px,9vw,40px) }
  .hm-stat__text { font-size:14px }
  .hm-stat .hm-label { font-size:11px; letter-spacing:.06em }
}

/* ---------- 3. Come iniziare ---------- */
.hm-steps { padding-top:48px; padding-bottom:96px }
.hm-section__head {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px 24px;
  margin-bottom:36px;
}
.hm-steps__list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px }
.hm-step {
  padding:32px;
  border:1px solid var(--hm-line);
  border-radius:var(--hm-radius);
  background:var(--hm-card);
}
.hm-step__num { display:block; font:400 96px/1 var(--hm-display); color:var(--hm-red-text) }
.hm-step__title { margin:14px 0 8px; font:400 30px/1.1 var(--hm-display); text-transform:uppercase }
.hm-step__text { margin:0; font-size:17px; line-height:1.5; color:var(--hm-muted) }
@media (max-width:767px) {
  .hm-steps { padding:32px 16px 64px }
  .hm-section__head { margin-bottom:24px }
  .hm-steps__list { grid-template-columns:minmax(0,1fr); gap:12px }
  .hm-step { padding:24px 22px; display:grid; grid-template-columns:auto 1fr; column-gap:18px; align-items:start }
  .hm-step__num { grid-row:span 2; font-size:64px }
  .hm-step__title { margin:4px 0 6px; font-size:26px }
}

/* ---------- 4. Le loro storie ---------- */
.hm-stories { background:var(--hm-band) }
.hm-stories > .hm-section { padding-top:96px; padding-bottom:96px }
.hm-stories .hm-h2 { margin-bottom:36px }
.hm-stories__list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px }
.hm-story {
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid var(--hm-line);
  border-radius:var(--hm-radius);
  background:var(--hm-card-2);
}
.hm-story__media { position:relative; aspect-ratio:16 / 9; background:#000 }
.hm-story__video { display:block; width:100%; height:100%; object-fit:cover; background:#000 }
.hm-story__play {
  position:absolute;
  left:20px;
  bottom:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  padding:0 0 0 3px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  color:var(--hm-ink);
  box-shadow:0 8px 24px rgba(0,0,0,.35);
  cursor:pointer;
  transition:transform .2s var(--hm-ease),background-color .2s ease;
}
.hm-story__play[hidden] { display:none }
.hm-story__play:hover { transform:scale(1.06); background:#fff }
.hm-story__body { padding:22px 24px 26px }
.hm-story__name { margin:0; font:400 24px/1.1 var(--hm-display); text-transform:uppercase }
.hm-story__quote { margin:8px 0 0 }
.hm-story__quote p { margin:0; font-size:17px; line-height:1.5; color:var(--hm-muted) }
@media (max-width:1100px) {
  .hm-stories__list { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media (max-width:767px) {
  .hm-stories > .hm-section { padding:64px 16px }
  .hm-stories .hm-h2 { margin-bottom:24px }
  .hm-stories__list { grid-template-columns:minmax(0,1fr); gap:12px }
}

/* ---------- 5. Coach (disattivata, vedi src/data/coach.ts) ---------- */
.hm-coach { padding-top:96px; padding-bottom:96px }
.hm-coach .hm-h2 { margin-bottom:36px }
.hm-coach__list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px }
.hm-coach__card { overflow:hidden; border:1px solid var(--hm-line); border-radius:var(--hm-radius); background:var(--hm-card) }
.hm-coach__card img { display:block; width:100%; height:auto; aspect-ratio:4 / 5; object-fit:cover }
.hm-coach__body { padding:18px 20px 22px }
.hm-coach__name { margin:0; font:400 24px/1.1 var(--hm-display); text-transform:uppercase }
.hm-coach__role,
.hm-coach__certs { margin:4px 0 0; font-size:15px; color:var(--hm-dim) }
@media (max-width:1100px) { .hm-coach__list { grid-template-columns:repeat(2,minmax(0,1fr)) } }

/* ---------- 6. Chiusura ---------- */
.hm-closing { padding-top:96px; padding-bottom:96px }
.hm-closing__box {
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:32px;
  padding:64px 56px;
  border-radius:var(--hm-radius-lg);
  background:var(--hm-red);
  color:#fff;
}
.hm-closing__title { margin:0; font:400 clamp(44px,5.6vw,80px)/.92 var(--hm-display); text-transform:uppercase }
.hm-closing__text { margin:16px 0 0; font-size:19px; line-height:1.4 }
@media (max-width:767px) {
  .hm-closing { padding:16px 16px 64px }
  .hm-closing__box { padding:40px 24px; border-radius:var(--hm-radius); gap:24px }
  .hm-closing__text { font-size:17px }
  .hm-closing__box .hm-btn { width:100% }
}

/* ---------- 7. Barra fissa mobile ---------- */
.hm-sticky { display:none }
@media (max-width:767px) {
  .hm-sticky {
    position:fixed;
    left:12px;
    right:12px;
    bottom:calc(12px + env(safe-area-inset-bottom, 0px));
    z-index:250;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:8px 8px 8px 20px;
    border:1px solid rgba(255,255,255,.14);
    border-radius:999px;
    background:rgba(20,20,20,.94);
    box-shadow:0 10px 30px rgba(0,0,0,.4);
    visibility:hidden;
    opacity:0;
    transform:translateY(calc(100% + 24px));
    transition:transform .3s var(--hm-ease),opacity .3s ease,visibility 0s linear .3s;
  }
  @supports ((-webkit-backdrop-filter:blur(1px)) or (backdrop-filter:blur(1px))) {
    .hm-sticky { background:rgba(20,20,20,.75); -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px) }
  }
  .hm-sticky.is-visible {
    visibility:visible;
    opacity:1;
    transform:none;
    transition:transform .3s var(--hm-ease),opacity .3s ease,visibility 0s;
  }
  .hm-sticky__info { margin:0; display:flex; flex-direction:column; gap:2px }
  .hm-sticky__label { font:400 10px/1.2 var(--hm-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--hm-muted) }
  .hm-sticky__price { font:400 24px/1 var(--hm-display) }
  .hm-sticky__btn { min-height:48px; padding:14px 20px; font-size:14px }
}

/* ---------- Movimento ---------- */
@keyframes hm-fade-in { from { opacity:0; transform:translateY(6px) } to { opacity:1; transform:none } }
/* Le classi is-pending le mette solo home.js, e solo a elementi sotto la piega:
   senza JS (o con movimento ridotto) il contenuto è sempre visibile. */
@media (prefers-reduced-motion:no-preference) {
  .hm-reveal { transition:opacity .7s var(--hm-ease),transform .7s var(--hm-ease) }
  .hm-reveal.is-pending { opacity:0; transform:translateY(28px) }
  .hm-reveal--d1 { transition-delay:.08s }
  .hm-reveal--d2 { transition-delay:.16s }
  .hm-reveal--d3 { transition-delay:.24s }
}
@media (prefers-reduced-motion:reduce) {
  .hm-reveal.is-pending { opacity:1; transform:none }
  .hm-hero__next { animation:none }
  .hm-card--photo:hover img,
  .hm-card--photo:hover .hm-card__arrow,
  .hm-story__play:hover { transform:none }
}

/* Header: sulla home il bottone "Prenota la prova" compare solo dopo il bottone dell'hero (niente doppia CTA) */
html.hm-hero-cta-visibile nav#nav .pill-nav__cta--bar { opacity:0; visibility:hidden; pointer-events:none }
nav#nav .pill-nav__cta--bar { transition:opacity .25s ease, visibility .25s ease }
@media (max-width:767px){ .hm-cred { min-height:0 } }
@media (min-width:768px) and (max-width:1100px){
  .hm-hero__row { grid-template-columns:minmax(0,1fr); grid-template-areas:"lead" "actions" "trust" }
  .hm-hero__actions { justify-content:flex-start }
}
/* "CASO." nel titolo: bianco su rettangolo smussato rosso trasparente */
.hm-hero__title .hm-accent {
  color:#fff;
  background:rgba(188,22,47,.82);
  display:inline-block;
  line-height:.86;
  border-radius:.1em;
  padding:.07em .12em .05em;
  margin-top:.08em;
  text-shadow:none;
}
