/* NOSTOP. RUNNING — stile ripreso da footballnostop.it
   nero + verde lime #97D700, Inter 900 minuscolo, foto in bianco e nero */

:root {
  --lime: #97d700;
  --lime-dark: #7fb500;
  --black: #000;
  --ink: #141414;
  --text: #404040;
  --muted: #aeafb5;
  --line: #d6d6d6;
  --soft: #f4f4f4;
  --white: #fff;
  --radius: 12px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 900; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: 1.35rem; font-weight: 800; }
.tag { color: var(--lime-dark); font-weight: 900; font-size: 1.05rem; display: block; margin-bottom: 10px; }
.lead { font-size: 1.2rem; max-width: 720px; }

/* ---------- bottoni (box nero, testo lime come "iscriviti ora!") ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 800; font-size: 1.05rem;
  padding: 14px 28px; border-radius: 10px; border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease;
  cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-black { background: var(--black); color: var(--lime); }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--white);
  border-bottom: 1px solid #eaeaea;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand span { font-weight: 900; color: var(--ink); letter-spacing: .28em; font-size: .8rem; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink); font-size: .98rem; }
.nav a:hover, .nav a.active { color: var(--lime-dark); }
.nav .btn { padding: 10px 18px; font-size: .95rem; color: var(--lime); }
.nav .btn:hover { color: var(--lime); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; background: var(--ink); color: var(--white); overflow: hidden;
  padding: 120px 0 110px;
}
.hero .track { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero .wrap { position: relative; }
.hero h1 { color: var(--white); max-width: 900px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { color: #d6d6d6; font-size: 1.25rem; max-width: 620px; margin: 24px 0 36px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .badge {
  display: inline-block; background: var(--black); color: var(--lime); font-weight: 800;
  border-radius: 8px; padding: 6px 12px; font-size: .9rem; margin-bottom: 22px;
}

/* ---------- sezioni ---------- */
section { padding: 96px 0; }
section.soft { background: var(--soft); }
section.dark { background: var(--black); color: #d6d6d6; }
section.dark h2, section.dark h3 { color: var(--white); }
section.dark .tag { color: var(--lime); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin: 16px auto 0; }
.section-head .lead { margin-top: 16px; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border-radius: var(--radius); padding: 30px;
  border: 1px solid #eaeaea;
}
.card h3 { margin-bottom: 10px; }

/* intro due colonne con "foto" in bianco e nero */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.photo {
  border-radius: 20px; aspect-ratio: 4/3; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 30% 30%, #5a5a5a 0, #262626 55%, #0e0e0e 100%);
  filter: grayscale(1);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px;
  color: #9a9a9a; font-size: .85rem;
}
.photo svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* steps "come funziona" */
.step { position: relative; }
.step .n {
  width: 52px; height: 52px; border-radius: 12px; background: var(--black); color: var(--lime);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.3rem;
  margin-bottom: 18px;
}

/* obiettivi */
.goal {
  background: var(--black); color: var(--white); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; min-height: 210px;
}
.goal .km { color: var(--lime); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.goal h3 { color: var(--white); margin: 14px 0 8px; }
.goal p { color: #bdbdbd; font-size: .95rem; }

/* prezzi */
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2.6rem; font-weight: 900; color: var(--ink); margin: 14px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; margin: 20px 0 28px; flex: 1; }
.plan li { padding: 8px 0 8px 28px; position: relative; border-bottom: 1px solid #f0f0f0; font-size: .97rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 8px;
  border-left: 3px solid var(--lime-dark); border-bottom: 3px solid var(--lime-dark); transform: rotate(-45deg);
}
.plan.featured { background: var(--black); color: #d6d6d6; border-color: var(--black); }
.plan.featured h3, .plan.featured .price { color: var(--white); }
.plan.featured li { border-color: #262626; }
.plan.featured li::before { border-color: var(--lime); }
.plan .pill {
  align-self: flex-start; background: var(--lime); color: var(--black); font-weight: 800;
  font-size: .8rem; padding: 4px 10px; border-radius: 6px; margin-bottom: 12px;
}
.note { font-size: .85rem; color: var(--muted); margin-top: 22px; text-align: center; }

/* coach */
.coach .avatar {
  aspect-ratio: 1; border-radius: 16px; margin-bottom: 18px; background: #1d1d1d;
  display: flex; align-items: center; justify-content: center; color: var(--lime);
  font-weight: 900; font-size: 3rem; filter: grayscale(1);
}
.coach .role { color: var(--lime-dark); font-weight: 700; font-size: .92rem; margin-bottom: 10px; }

/* mockup telefono app */
.phone {
  width: 300px; max-width: 100%; margin: 0 auto; background: var(--black); border-radius: 40px;
  padding: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.screen { background: #0f0f0f; border-radius: 28px; padding: 22px 18px; color: #d6d6d6; min-height: 560px; }
.screen .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.screen .top img { height: 22px; }
.screen .day { color: var(--muted); font-size: .8rem; }
.screen h4 { color: var(--white); font-size: 1.3rem; margin-bottom: 4px; }
.screen .sub { color: var(--lime); font-weight: 700; font-size: .85rem; margin-bottom: 16px; }
.wk { background: #1b1b1b; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; display: flex; justify-content: space-between; font-size: .85rem; }
.wk b { color: var(--white); font-weight: 700; }
.wk .p { color: var(--lime); font-weight: 800; }
.wk.main { border-left: 4px solid var(--lime); }
.screen .send { margin-top: 14px; width: 100%; text-align: center; background: var(--lime); color: var(--black); border-radius: 12px; padding: 12px; font-weight: 800; font-size: .9rem; }
.bars { display: flex; gap: 6px; align-items: flex-end; height: 70px; margin-top: 18px; }
.bars i { flex: 1; background: #2a2a2a; border-radius: 4px; }
.bars i.on { background: var(--lime); }
.app-list { list-style: none; margin-top: 28px; }
.app-list li { padding: 14px 0; border-bottom: 1px solid #262626; }
.app-list b { color: var(--white); display: block; }

/* articoli */
.post { text-decoration: none; display: flex; flex-direction: column; }
.post .thumb { aspect-ratio: 16/10; border-radius: var(--radius); background: #1d1d1d; margin-bottom: 18px; position: relative; overflow: hidden; }
.post .thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.post .cat { color: var(--lime-dark); font-weight: 800; font-size: .85rem; }
.post h3 { margin: 6px 0 8px; }
.post p { font-size: .95rem; }
.post.soon { opacity: .55; pointer-events: none; }
.post:hover h3 { text-decoration: underline; text-decoration-color: var(--lime); text-underline-offset: 4px; }

/* testimonianze */
.quote { background: var(--white); border-radius: var(--radius); padding: 30px; border: 1px solid #eaeaea; }
.quote p { font-style: italic; }
.quote .who { margin-top: 16px; font-weight: 800; color: var(--ink); }
.quote .who small { display: block; font-weight: 600; color: var(--muted); }

/* form lista d'attesa */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 700; color: var(--white); font-size: .92rem; margin-bottom: 6px; }
.form input, .form select {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid #333; background: #141414;
  color: var(--white); font-family: inherit; font-size: 1rem;
}
.form input:focus, .form select:focus { outline: 2px solid var(--lime); border-color: transparent; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: #bdbdbd; font-weight: 400; }
.form .check input { width: auto; margin-top: 4px; accent-color: var(--lime); }
.form-ok { display: none; background: var(--lime); color: var(--black); border-radius: 12px; padding: 20px; font-weight: 700; }

/* calcolatore */
.calc { display: grid; grid-template-columns: 380px 1fr; gap: 32px; align-items: start; }
.calc .card label { display: block; font-weight: 700; color: var(--ink); margin: 14px 0 6px; font-size: .95rem; }
.calc select, .calc input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  font-family: inherit; font-size: 1rem; background: var(--white); color: var(--ink);
}
.time-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.time-row small { display: block; color: var(--muted); font-size: .75rem; text-align: center; margin-top: 2px; }
.calc .btn { width: 100%; margin-top: 22px; }
.metodi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 6px; }
.metodi button { font: inherit; font-size: .8rem; font-weight: 800; line-height: 1.15; padding: 10px 6px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.metodi button[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--lime); }
.calc .prova { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px; align-items: center; margin-top: 8px; }
.calc .prova b small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; }
.calc .prova.testa { margin-top: 14px; font-size: .75rem; color: var(--muted); font-weight: 700; }
.calc .check { display: flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 14px; }
.calc .check input { width: auto; }
.calc .proto { font-size: .86rem; color: var(--muted); margin-top: 6px; }
.calc .proto ol { padding-left: 18px; margin: 6px 0 0; }
.calc [hidden] { display: none !important; }
.flag-box { background: #fff8e1; border-left: 4px solid #e0a800; border-radius: 10px; padding: 10px 14px; margin: 0 0 20px; font-size: .88rem; }
.flag-box p + p { margin-top: 6px; }
.vdot { background: var(--black); color: var(--white); border-radius: var(--radius); padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.vdot .v { color: var(--lime); font-size: 3.4rem; font-weight: 900; line-height: 1; }
.vdot p { color: #bdbdbd; font-size: .92rem; max-width: 420px; }
table.zones { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid #eaeaea; }
table.zones th, table.zones td { padding: 14px 16px; text-align: left; border-bottom: 1px solid #f0f0f0; font-size: .96rem; }
table.zones th { background: var(--soft); color: var(--ink); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
table.zones td.pace { font-weight: 800; color: var(--ink); white-space: nowrap; }
.zdot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.empty { color: var(--muted); text-align: center; padding: 60px 20px; border: 2px dashed var(--line); border-radius: var(--radius); }

/* articolo */
.article { max-width: 760px; margin: 0 auto; }
.article h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 10px 0 18px; }
.article .meta { color: var(--muted); font-size: .92rem; margin-bottom: 34px; }
.article h2 { font-size: 1.7rem; margin: 40px 0 14px; }
.article p { margin-bottom: 18px; }
.article ul { margin: 0 0 18px 22px; }
.article li { margin-bottom: 8px; }
.article .box { background: var(--black); color: #d6d6d6; border-radius: var(--radius); padding: 24px 28px; margin: 30px 0; }
.article .box b { color: var(--lime); }

/* footer */
.site-footer { background: var(--black); color: var(--muted); padding: 64px 0 30px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer img { height: 44px; margin-bottom: 16px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.site-footer a { display: block; text-decoration: none; padding: 3px 0; }
.site-footer a:hover { color: var(--lime); }
.site-footer .legal { border-top: 1px solid #222; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.hashtag { color: var(--lime); font-weight: 900; font-size: 1.3rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
  .split, .calc { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 24px 24px; border-bottom: 1px solid #eaeaea;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; }
  .nav .btn { margin-top: 10px; width: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 80px 0 72px; }
  .g2, .g4, .form { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .vdot { flex-direction: column; align-items: flex-start; }
  table.zones th:nth-child(3), table.zones td:nth-child(3) { display: none; }
}

/* ---------- run club ---------- */
.ev-meta { color: var(--lime); font-weight: 700; font-size: .88rem; margin-top: auto; padding-top: 12px; }
.goal .ev-meta { color: var(--lime); }
.goal .km.small { font-size: 2rem; }
.events { display: grid; gap: 14px; }
.event {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 24px; align-items: center;
  background: var(--white); border: 1px solid #eaeaea; border-radius: var(--radius); padding: 20px 24px;
}
.event .ev-meta { color: var(--lime-dark); padding-top: 6px; }
.event h3 { margin: 4px 0 4px; }
.event .cat { color: var(--lime-dark); font-weight: 800; font-size: .82rem; }
.ev-date {
  background: var(--black); color: var(--white); border-radius: 12px; text-align: center; padding: 10px 0;
  line-height: 1.1;
}
.ev-date b { display: block; color: var(--lime); font-size: 2rem; font-weight: 900; }
.ev-date span { display: block; font-weight: 800; text-transform: uppercase; font-size: .85rem; }
.ev-date small { color: var(--muted); font-size: .75rem; }

.pace-groups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.pg { border-radius: var(--radius); padding: 20px; background: #141414; color: #d6d6d6; }
.pg b { display: block; color: var(--lime); font-size: 1.6rem; font-weight: 900; }
.pg span { color: var(--white); font-weight: 800; display: block; margin: 4px 0; }
.pg small { font-size: .85rem; }

.feed .post-run { background: #1b1b1b; border-radius: 12px; padding: 12px; margin-bottom: 10px; font-size: .82rem; }
.feed .who { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; color: var(--white); font-weight: 700; }
.feed .av { width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--black); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: .7rem; }
.feed .stats { display: flex; gap: 14px; color: var(--muted); }
.feed .stats b { color: var(--white); }
.feed .pic { height: 74px; border-radius: 8px; margin: 8px 0; background: radial-gradient(circle at 30% 40%, #555 0, #222 60%, #111 100%); }
.feed .kudos { color: var(--lime); font-weight: 700; margin-top: 6px; }

.form-err { display: none; grid-column: 1 / -1; background: #3a0d0d; color: #ffb4b4; border-radius: 10px; padding: 12px 14px; font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form textarea {
  width: 100%; padding: 14px 16px; border-radius: 10px; border: 1px solid #333; background: #141414;
  color: var(--white); font-family: inherit; font-size: 1rem; min-height: 90px; resize: vertical;
}

@media (max-width: 980px) { .pace-groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .event { grid-template-columns: 64px 1fr; gap: 16px; padding: 16px; }
  .event .btn { grid-column: 1 / -1; text-align: center; }
  .ev-date b { font-size: 1.6rem; }
  .pace-groups { grid-template-columns: 1fr 1fr; }
}

/* accesso all'area riservata (app) */
.nav a.accedi { border: 2px solid var(--ink); border-radius: 10px; padding: 8px 16px; font-weight: 800; }
.nav a.accedi:hover { background: var(--ink); color: var(--lime); }
@media (max-width: 860px) { .nav a.accedi { width: auto; margin-top: 6px; } }
