/* Home pubblica di Nutrigym (utente non autenticato). Usa le variabili colore di app.css. */
.home { min-height: 100dvh; overflow-x: hidden;
  background: radial-gradient(circle at 12% 0%, var(--sage-soft), transparent 42%), radial-gradient(circle at 100% 30%, var(--clay-soft), transparent 35%), var(--bg); }
.home .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home .small { font-size: 13px; }
.home a:focus-visible, .home summary:focus-visible, .home button:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 8px; }

/* Barra in alto */
.h-top { max-width: 1120px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; gap: 24px; }
.h-brand { display: flex; line-height: 0; }
.h-brand img { height: 44px; width: auto; }
.h-nav { display: flex; gap: 22px; margin-left: auto; }
.h-nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.h-nav a:hover { color: var(--ink); }

/* Hero */
.h-hero { max-width: 1120px; margin: 0 auto; padding: 48px 24px 72px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; }
.h-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--sage); }
.h-hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -.025em; }
.h-lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 560px; margin: 20px 0 0; }
.h-pills { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.h-pills li { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.h-pills svg { width: 18px; height: 18px; color: var(--sage); }
.h-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.h-cta .btn { padding: 13px 22px; font-size: 15px; }
.h-hero-side { scroll-margin-top: 24px; }
.h-card { max-width: none; padding: 32px 28px; }
.h-mascot { width: 96px; height: 96px; display: block; margin: 0 auto 10px; }
.h-card h2 { font-size: 24px; }
.h-card .muted { margin: 4px 0 0; }
.h-card .auth-form { margin-top: 20px; }

/* Sezioni */
.h-sec { max-width: 1120px; margin: 0 auto; padding: 72px 24px; scroll-margin-top: 12px; }
.h-band { max-width: none; background: var(--surface); border-block: 1px solid var(--line); }
.h-band > * { max-width: 1072px; margin-left: auto; margin-right: auto; }
.h-title { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; max-width: 640px; }
.h-band .h-title, .h-band .h-kicker { max-width: 1072px; }

.h-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.h-feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.h-feat h3 { font-size: 22px; margin: 16px 0 8px; }
.h-feat p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.h-feat ul { margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: 8px; font-size: 14px; }
.h-feat li { padding-left: 20px; position: relative; }
.h-feat li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

.h-ico { width: 48px; height: 48px; border-radius: 14px; display: inline-grid; place-items: center; flex: none; }
.h-ico svg { width: 24px; height: 24px; }
.h-ico.big { width: 64px; height: 64px; border-radius: 18px; }
.h-ico.big svg { width: 30px; height: 30px; }
.h-ico.sage { background: var(--sage-soft); color: var(--ink); }
.h-ico.clay { background: var(--clay-soft); color: var(--ink); }
.h-ico.sky { background: var(--sky-soft); color: var(--ink); }

.h-steps { list-style: none; padding: 0; margin: 36px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: none; }
.h-steps li { position: relative; }
.h-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 600 18px var(--serif); }
.h-steps h3 { font-size: 20px; margin: 16px 0 6px; }
.h-steps p { margin: 0; color: var(--ink-2); line-height: 1.6; }

.h-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin-top: 32px; }
.h-mini { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.h-mini h3 { font-size: 17px; margin: 2px 0 4px; }
.h-mini p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }

.h-privacy { display: flex; gap: 28px; align-items: flex-start; }
.h-checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; max-width: 760px; }
.h-checks li { padding-left: 30px; position: relative; line-height: 1.6; }
.h-checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 18px; height: 18px; border-radius: 50%; background: var(--sage-soft);
  box-shadow: inset 0 0 0 1px var(--sage); }
.h-checks li::after { content: ""; position: absolute; left: 6px; top: calc(.25em + 4px); width: 5px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.h-faq { margin-top: 28px; display: grid; gap: 10px; max-width: 800px; }
.h-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.h-faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--ink-2); }
.h-faq details[open] summary::after { content: "−"; }
.h-faq details p { margin: 0 0 18px; color: var(--ink-2); line-height: 1.6; }
.h-faq a, .h-feat a { color: var(--ink); font-weight: 600; }

.h-foot { max-width: 1120px; margin: 0 auto; padding: 32px 24px 48px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.h-foot p { margin: 0; }
.h-foot a { margin-left: auto; color: var(--ink); font-weight: 600; }

@media (max-width: 960px) {
  .h-hero { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; }
  .h-hero-side { max-width: 420px; width: 100%; justify-self: center; }
  .h-grid3, .h-steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .h-top { padding: 14px 16px; gap: 12px; }
  .h-nav { display: none; }
  .h-top .btn { margin-left: auto; }
  .h-brand img { height: 36px; }
  .h-hero, .h-sec, .h-foot { padding-left: 16px; padding-right: 16px; }
  .h-sec { padding-top: 56px; padding-bottom: 56px; }
  .h-lead { font-size: 16px; }
  .h-grid2 { grid-template-columns: 1fr; }
  .h-privacy { flex-direction: column; gap: 16px; }
  .h-feat { padding: 22px; }
}
