/* ============================================================
   YoGym — home (index.php), dal design di Alberto fatto con Stitch
   ("Kinetic Obsidian"): scuro, arancione #FF6B00, schede e anteprime
   del prodotto. Carattere Barlow (marchio), icone Remix in locale.
   Caricato dopo site.css; tutto sotto .yh per non toccare le altre pagine.
   ============================================================ */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/barlow/barlow-latin-800-normal.woff2") format("woff2"); }

.yg-page .yh,
.yg-page[data-theme="dark"] .yh {
  --yh-base: #0a0a0c;
  --yh-low: #0e0e11;
  --yh-card: #141519;
  --yh-elev: #1c1d22;
  --yh-over: #26272f;
  --yh-line: #25272f;
  --yh-line-2: #383b46;
  --yh-ink: #f9fafb;
  --yh-ink-2: #9ca3af;
  --yh-ink-3: #7b8494;
  --yh-accent: #ff6b00;
  --yh-accent-hv: #ff7a00;
  --yh-accent-ink: #ff8a3d;
  --yh-on-accent: #0a0a0c;
  --yh-good: #10b981;
  --yh-good-ink: #34d399;
  --yh-warn: #f59e0b;
  --yh-bad: #f87171;
  --yh-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.yg-page[data-theme="light"] .yh {
  --yh-base: #f6f5f2;
  --yh-low: #efeee9;
  --yh-card: #ffffff;
  --yh-elev: #f4f3ef;
  --yh-over: #ebe9e3;
  --yh-line: #e4e2dc;
  --yh-line-2: #cfccc4;
  --yh-ink: #141517;
  --yh-ink-2: #555a63;
  --yh-ink-3: #6b707a;
  --yh-accent: #ff6b00;
  --yh-accent-hv: #f26500;
  --yh-accent-ink: #c2410c;
  --yh-on-accent: #140800;
  --yh-good: #059669;
  --yh-good-ink: #047857;
  --yh-warn: #b45309;
  --yh-bad: #dc2626;
  --yh-shadow: 0 18px 48px rgba(20, 20, 20, 0.10);
}

.yh { background: var(--yh-base); color: var(--yh-ink); font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.yh * { box-sizing: border-box; }
.yh h1, .yh h2, .yh h3, .yh h4 { font-family: "Barlow", sans-serif !important; color: var(--yh-ink); margin: 0; }
.yh p { margin: 0; }
.yg-page .yi { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }
#ygHamIco .yi-shut, #ygHamIco.is-open .yi-open { display: none; }
#ygHamIco.is-open .yi-shut { display: inline-block; }
.yg-nb-ham .yi, .yg-theme-toggle .yi, .yg-mob-theme-toggle .yi { font-size: 1.25rem; }

.yh-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 1024px) { .yh-wrap { padding: 0 48px; } }
.yh-sec { padding: 96px 0; }
.yh-sec.is-low { background: var(--yh-low); border-top: 1px solid var(--yh-line); border-bottom: 1px solid var(--yh-line); }
@media (max-width: 767px) { .yh-sec { padding: 64px 0; } }

.yh-kicker { display: block; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--yh-accent-ink); margin-bottom: 10px; }
.yh-h2 { text-wrap: balance; font-size: clamp(1.875rem, 3.6vw, 2.625rem); font-weight: 800 !important; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px !important; }
.yh-lead { font-size: 1.1875rem; line-height: 1.6; color: var(--yh-ink-2); }
.yh-head { max-width: 760px; margin-bottom: 56px; }
.yh-head.is-center { text-align: center; margin-left: auto; margin-right: auto; }
.yh-sample { margin-top: 10px !important; font-size: 0.8125rem; color: var(--yh-ink-3); text-align: right; }

/* Pulsanti */
.yh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border-radius: 999px; font-weight: 600; font-size: 1.0625rem; text-decoration: none; transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease; }
.yh-btn .yi { font-size: 1.25rem; }
.yh-btn-primary { background: var(--yh-accent); color: var(--yh-on-accent); }
.yh-btn-primary:hover { background: var(--yh-accent-hv); color: var(--yh-on-accent); transform: translateY(-1px); }
.yh-btn-ghost { background: var(--yh-elev); color: var(--yh-ink); border: 1px solid var(--yh-line-2); }
.yh-btn-ghost:hover { background: var(--yh-over); color: var(--yh-ink); }
.yh-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.yh-trust { display: flex; align-items: center; gap: 8px; margin-top: 20px !important; color: var(--yh-ink-2); font-size: 0.9375rem; font-weight: 500; }
.yh-trust .yi { color: var(--yh-good-ink); font-size: 1.125rem; }
.yh-link { display: inline-flex; align-items: center; gap: 6px; color: var(--yh-accent-ink); font-weight: 600; text-decoration: none; }
.yh-link:hover { color: var(--yh-accent-hv); text-decoration: underline; text-underline-offset: 3px; }
.yh :focus-visible { outline: 3px solid var(--yh-accent); outline-offset: 2px; }

/* Schede */
.yh-card { background: var(--yh-card); border: 1px solid var(--yh-line); border-radius: 20px; }
.yh-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.yh-badge.is-good { color: var(--yh-good-ink); background: color-mix(in srgb, var(--yh-good) 14%, transparent); border: 1px solid color-mix(in srgb, var(--yh-good) 30%, transparent); }
.yh-badge.is-warn { color: var(--yh-warn); background: color-mix(in srgb, var(--yh-warn) 14%, transparent); border: 1px solid color-mix(in srgb, var(--yh-warn) 30%, transparent); }
.yh-badge.is-accent { color: var(--yh-accent-ink); background: color-mix(in srgb, var(--yh-accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--yh-accent) 30%, transparent); }
.yh-ico { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; color: var(--yh-accent-ink); background: color-mix(in srgb, var(--yh-accent) 13%, transparent); border: 1px solid color-mix(in srgb, var(--yh-accent) 22%, transparent); }

/* 1. Apertura */
.yh-hero { position: relative; overflow: hidden; padding: 56px 0 96px; background: linear-gradient(180deg, var(--yh-base) 0%, var(--yh-low) 100%); }
@media (min-width: 1024px) { .yh-hero { padding: 80px 0 120px; } }
.yh-hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .yh-hero-grid { grid-template-columns: 7fr 5fr; gap: 40px; } }
.yh-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--yh-elev); border: 1px solid color-mix(in srgb, var(--yh-accent) 30%, transparent); margin-bottom: 24px !important; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--yh-accent-ink); }
.yh-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--yh-accent); }
.yh-h1 { text-wrap: balance; font-size: clamp(2.5rem, 5.6vw, 4.25rem); font-weight: 800 !important; line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 24px !important; max-width: 15ch; }
.yh-h1 em { font-style: normal; color: var(--yh-accent); }
.yh-hero .yh-lead { max-width: 36rem; margin-bottom: 32px; font-size: 1.25rem; }

.yh-hero-media { position: relative; width: 100%; max-width: 520px; justify-self: center; border-radius: 28px; overflow: hidden; border: 1px solid var(--yh-line-2); box-shadow: var(--yh-shadow); background: var(--yh-card); }
@media (min-width: 1024px) { .yh-hero-media { justify-self: end; } }
.yh-hero-media > img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 42% 30%; }
.yh-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 12, 0.85) 0%, rgba(10, 10, 12, 0.2) 45%, transparent 70%); pointer-events: none; }

/* 2. Prima / con YoGym */
.yh-grid-3 { display: grid; gap: 24px; }
@media (min-width: 768px) { .yh-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.yh-cmp { display: flex; flex-direction: column; gap: 12px; }
.yh-cmp-box { padding: 16px; border-radius: 14px; }
.yh-cmp-box.is-before { background: var(--yh-elev); border: 1px solid color-mix(in srgb, var(--yh-bad) 22%, transparent); }
.yh-cmp-box.is-after { background: var(--yh-over); border: 1px solid color-mix(in srgb, var(--yh-good) 26%, transparent); }
.yh-cmp-box small { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.yh-cmp-box.is-before small { color: var(--yh-bad); }
.yh-cmp-box.is-after small { color: var(--yh-good-ink); }
.yh-cmp-box p { font-size: 1rem; line-height: 1.5; color: var(--yh-ink-2); }
.yh-cmp-box.is-after p { color: var(--yh-ink); font-weight: 600; }

/* 3. Vista cliente / palestre / pagamenti: due colonne */
.yh-split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .yh-split { grid-template-columns: 1fr 1fr; gap: 56px; } .yh-split.is-5-7 { grid-template-columns: 5fr 7fr; } }
.yh-photo { position: relative; border-radius: 28px; overflow: hidden; border: 1px solid var(--yh-line-2); box-shadow: var(--yh-shadow); background: var(--yh-card); }
.yh-photo > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.yh-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 12, 0.8) 0%, transparent 55%); pointer-events: none; }

.yh-points { display: grid; gap: 14px; margin: 32px 0 0; padding: 0; list-style: none; }
.yh-point { display: flex; gap: 16px; align-items: flex-start; padding: 16px; transition: border-color 200ms ease; }
.yh-point:hover { border-color: color-mix(in srgb, var(--yh-accent) 40%, transparent); }
.yh-point h3 { font-size: 1.0625rem !important; font-weight: 600 !important; margin-bottom: 4px !important; }
.yh-point p { color: var(--yh-ink-2); font-size: 0.9375rem; line-height: 1.5; }

/* 4. Funzioni: lista a due colonne, senza riquadri */
.yh-feats { display: grid; gap: 0 56px; max-width: 1040px; margin: 0 auto; }
@media (min-width: 768px) { .yh-feats { grid-template-columns: 1fr 1fr; } }
.yh-feat { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 22px 0; border-top: 1px solid var(--yh-line); }
.yh-feat .yh-ico { grid-row: span 2; }
.yh-feat h3 { font-size: 1.1875rem !important; font-weight: 600 !important; align-self: end; }
.yh-feat p { color: var(--yh-ink-2); font-size: 1rem; line-height: 1.55; }

/* 5. Pannello palestra (anteprima) */
.yh-panel { overflow: hidden; border-radius: 28px; box-shadow: var(--yh-shadow); }
.yh-panel-top { position: relative; height: 176px; overflow: hidden; }
.yh-panel-top img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yh-panel-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--yh-card) 0%, color-mix(in srgb, var(--yh-card) 55%, transparent) 50%, transparent 100%); }
.yh-panel-id { position: absolute; left: 24px; bottom: 16px; z-index: 1; display: flex; align-items: center; gap: 12px; }
.yh-panel-id .yh-mono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--yh-accent); color: var(--yh-on-accent); font-weight: 800; font-size: 1.25rem; }
.yh-panel-id b { display: block; font-size: 1.125rem; font-weight: 600; }
.yh-panel-id span { font-size: 0.8125rem; color: var(--yh-ink-2); }
.yh-panel-body { padding: 24px; display: grid; gap: 12px; }
.yh-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--yh-elev); border: 1px solid var(--yh-line); }
.yh-row-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.yh-av { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: var(--yh-over); border: 1px solid var(--yh-line-2); font-size: 0.75rem; font-weight: 600; }
.yh-row b { display: block; font-size: 0.9375rem; font-weight: 600; }
.yh-row span { font-size: 0.8125rem; color: var(--yh-ink-3); }
.yh-row-r { text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.yh-row-r strong { display: block; font-size: 0.875rem; font-weight: 600; color: var(--yh-good-ink); }
.yh-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--yh-line); }
.yh-stats span { font-size: 0.8125rem; color: var(--yh-ink-3); }
.yh-stats b { display: block; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.yh-stats b.is-accent { color: var(--yh-accent-ink); }

/* 6. Incassi (anteprima) */
.yh-note { padding: 20px; margin-top: 24px; color: var(--yh-ink-2); line-height: 1.6; }
.yh-ledger { padding: 24px; border-radius: 28px; box-shadow: var(--yh-shadow); }
@media (min-width: 640px) { .yh-ledger { padding: 32px; } }
.yh-ledger-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--yh-line); }
.yh-ledger-head b { display: block; font-size: 1.125rem; font-weight: 600; }
.yh-ledger-head span:not(.yh-badge) { font-size: 0.8125rem; color: var(--yh-ink-3); }
.yh-ledger .yh-row-r { display: flex; align-items: center; gap: 12px; }
.yh-ledger .yh-row-r b { font-size: 1rem; }
.yh-ledger .yh-row-r span { display: block; }
.yh-ledger-list { display: grid; gap: 10px; }

/* 7. Prezzi */
.yh-plans { display: grid; gap: 28px; max-width: 960px; margin: 0 auto; }
@media (min-width: 768px) { .yh-plans { grid-template-columns: 1fr 1fr; } }
.yh-plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 28px; }
.yh-plan.is-main { border-color: color-mix(in srgb, var(--yh-accent) 60%, transparent); }
.yh-plan .yh-badge { position: absolute; top: 24px; right: 24px; text-transform: uppercase; letter-spacing: 0.05em; }
.yh-plan h3 { font-size: 1.625rem !important; font-weight: 800 !important; margin-bottom: 4px !important; }
.yh-plan > p { color: var(--yh-ink-3); margin-bottom: 24px; }
.yh-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 28px !important; color: var(--yh-ink-2); font-weight: 600; }
.yh-price b { font-size: 3.25rem; font-weight: 800; letter-spacing: -0.03em; color: var(--yh-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.yh-plan ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; flex: 1; }
.yh-plan li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.yh-plan li .yi { color: var(--yh-accent-ink); font-size: 1.25rem; }
.yh-plan:not(.is-main) li .yi { color: var(--yh-good-ink); }
.yh-plan .yh-btn { width: 100%; border-radius: 16px; }

/* 8. Chiusura */
.yh-final { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 32px; padding: 40px 28px; border-radius: 28px; background: linear-gradient(90deg, var(--yh-card), var(--yh-elev) 50%, var(--yh-card)); border: 1px solid color-mix(in srgb, var(--yh-accent) 30%, transparent); box-shadow: var(--yh-shadow); }
@media (min-width: 768px) { .yh-final { flex-direction: row; align-items: center; justify-content: space-between; padding: 56px; } }
.yh-final .yh-h2 { margin-bottom: 12px !important; }
.yh-final .yh-actions { flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) { .yh * { transition: none !important; transform: none !important; } }

/* Stati premuto / disattivato */
.yh-btn:active { transform: translateY(1px) scale(0.98); }
.yh-btn-primary:active { background: #e85f00; }
.yh-btn-ghost:active { background: var(--yh-line-2); }
.yh-btn[aria-disabled="true"], .yh-btn:disabled { opacity: .5; pointer-events: none; }
.yh-link { min-height: 44px; }
.yh-link:active { color: var(--yh-accent); }

/* Telefono: la scheda dell'app subito sotto il titolo, in versione piccola */
@media (max-width: 1023px) {
  .yh-hero { padding-top: 72px; }
  .yh-hero-grid { gap: 0; }
  .yh-hero-grid > div:first-child { display: contents; }
  .yh-hero-grid > * { order: 10; }
  .yh-pill { order: 1; justify-self: start; }
  .yh-h1 { order: 2; margin-bottom: 16px !important; }
  .yh-hero-grid > div:last-child { order: 3; margin-bottom: 24px; }
  .yh-hero .yh-lead { order: 4; margin-bottom: 24px; }
  .yh-hero .yh-actions { order: 5; }
  .yh-hero .yh-trust { order: 6; }
  .yh-hero-media { max-width: none; border-radius: 0; box-shadow: none; background: transparent; border: 0; overflow: visible; display: flex; justify-content: center; }
  .yh-hero-media > img, .yh-hero-media::after { display: none; }
  .yh-shot.yh-shot-hero { position: relative; left: auto; bottom: auto; width: min(240px, 62vw); max-height: 360px; }
  .yh-shot.yh-shot-hero img { object-fit: cover; object-position: top; height: 100%; aspect-ratio: auto; }
  .yh-hero-grid .yh-sample { margin-top: 6px !important; }
}

/* Schermate vere dell'app dentro una cornice da telefono */
.yh-shot { margin: 0; border-radius: 30px; overflow: hidden; background: #0a0a0c; border: 6px solid #1c1d22; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45); }
.yh-shot img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; }
.yh-hero-media .yh-shot-hero { position: absolute; z-index: 2; left: -28px; bottom: -28px; width: 44%; }
@media (min-width: 1024px) { .yh-hero-media { overflow: visible; } .yh-hero-media > img { border-radius: 28px; } .yh-hero-media::after { border-radius: 28px; } }

.yh-stage-shots { position: relative; }
.yh-stage-shots .yh-photo > img { aspect-ratio: 4 / 3; }
.yh-shots-pair { display: flex; gap: 16px; justify-content: center; margin-top: -96px; position: relative; z-index: 2; padding: 0 16px; }
.yh-shots-pair .yh-shot { width: min(200px, 42vw); }
.yh-shots-pair .yh-shot:nth-child(2) { transform: translateY(32px); }
.yh-stage-shots .yh-sample { margin-top: 48px !important; text-align: center; }

.yh-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(260px, 62vw); gap: 24px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; justify-content: start; }
@media (min-width: 900px) { .yh-gallery { justify-content: center; overflow: visible; } }
.yh-gal-item { scroll-snap-align: center; }
.yh-gal-item p { margin-top: 16px !important; color: var(--yh-ink-2); line-height: 1.5; }
.yh-gal-item p b { display: block; color: var(--yh-ink); font-weight: 700; font-size: 1.0625rem; }
@media (max-width: 1023px) {
  .yh-hero .yh-hero-media .yh-shot-hero { position: relative; left: auto; bottom: auto; width: min(240px, 62vw); }
}
