/* =========================================================================================== a stopped gym
   layout_fine.php and its pages (the owner's payment page, the pause of staff and members, the stop on the way to
   PayPal) in the look of «Tessera viva» (Tony, 19/10/2026: «sistema la grafica delle pagine di fine prova come la
   soluzione 7»): the gym's top bar of the management app without sections, and the gym's own card in the anatomy of the
   member's card of the prototype — its colour with the fine stripes, the accent corner, the chip, the state pill, the
   tiles — with the three steps beside it on white cards, as the card and its zones sit side by side in the prototype.
   Colours on the card are mixed from --on-brand, so a light gym colour reads as well as a dark one. */
.gx-fine .gx-top-in { max-width: 1040px }
.gx-fine .gx-chi { margin-left: auto }
.fp-chi span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px 0 11.2px; color: var(--on-brand); font-weight: 600; font-size: 14.1px; white-space: nowrap }
.fp-main { max-width: 1040px; margin: 0 auto; padding: 28px 16px 48px }
.fp { display: grid; gap: 24px; align-items: start }
.fp--due { grid-template-columns: minmax(0, 25rem) minmax(0, 1fr) }
.fp--una { max-width: 30rem; margin: 0 auto }
@media (max-width: 860px) { .fp--due { grid-template-columns: minmax(0, 1fr) } }
/* phone: one line of top bar, the gym and «Esci» (the greeting is in the card's title) */
@media (max-width: 560px) { .fp-main { padding: 16px 12px 40px } .fp { gap: 18px } .fp-chi span { display: none } .gx-fine .gx-top-in { flex-wrap: nowrap } }

/* ------------------------------------------------------------------------------------------------ the gym's card */
/* the prototype's .faccia: radius 20, the 115° sheen and the 9px stripes, the 64px accent corner */
.fp-tessera { position: relative; overflow: hidden; padding: 18px 18px 16px; border-radius: 20px; background-color: var(--brand); color: var(--on-brand);
  background-image: linear-gradient(115deg, color-mix(in srgb, var(--on-brand) 7%, transparent) 0 38%, transparent 38% 100%),
    repeating-linear-gradient(135deg, color-mix(in srgb, var(--on-brand) 3.5%, transparent) 0 2px, transparent 2px 9px);
  box-shadow: 0 18px 40px -22px rgba(10, 20, 30, .55) }
.fp-tessera::after { content: ""; position: absolute; top: 0; right: 0; width: 64px; height: 64px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%) }
.fp-t-testa { position: relative; z-index: 1; display: flex; align-items: center; gap: 9.6px; margin: 0 0 20px }
.fp-t-chip { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 13px; letter-spacing: .02em; object-fit: cover }
.fp-t-nome { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 15.2px; letter-spacing: .01em }
.fp-t-stato { margin: 0 41.6px 0 auto; flex: none; padding: 2.4px 10.4px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 95%, transparent); color: var(--brand);
  font-weight: 700; font-size: 13.6px; white-space: nowrap }
.gx .fp-t-titolo { margin: 0 0 8px; color: inherit; font-size: 26.4px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; text-wrap: balance }
.fp-t-testo { margin: 0 0 18px; font-size: 15.5px; line-height: 1.45; color: color-mix(in srgb, var(--on-brand) 90%, transparent); text-wrap: pretty }
.fp-t-numeri { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
.fp-t-numeri li { padding: 9.6px 11.2px 10.4px; border-radius: 12px; background: color-mix(in srgb, var(--on-brand) 8%, transparent); border: 1.5px solid color-mix(in srgb, var(--on-brand) 22%, transparent) }
.fp-t-numeri b { display: block; font-size: 26px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums }
.fp-t-numeri span { font-size: 13.5px; font-weight: 600; color: color-mix(in srgb, var(--on-brand) 85%, transparent) }
.fp-t-soci { display: flex; align-items: center; gap: 9px; margin: 0; padding: 9px 10px 9px 12px; border-radius: 12px; background: color-mix(in srgb, #000 16%, transparent);
  font-size: 14.5px; font-weight: 600; line-height: 1.35 }
.fp-t-soci b { font-weight: 700 }
.fp-t-punto { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .28) }
.fp-t-soci.is-ferma .fp-t-punto { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .28) }
.gx .fp-t-soci .aiuto { flex: none; margin-left: auto; border-color: color-mix(in srgb, var(--on-brand) 45%, transparent); background: transparent; color: var(--on-brand) }
.gx .fp-t-soci .aiuto:hover { border-color: var(--on-brand); color: var(--on-brand) }

/* ------------------------------------------------------------------------------------------------ the steps */
.fp-passi { min-width: 0 }
.gx .fp-h2 { margin: 4px 0 12px; font-size: 15px; font-weight: 700; color: var(--ink-2); letter-spacing: 0 }
.fp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px }
.fp-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow) }
.fp-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 15px }
.fp-step.is-done .fp-n { background: var(--ok-soft); color: var(--ok); font-size: 0 }
.fp-step.is-done .fp-n::after { content: "✓"; font-size: 16px }
.fp-what { min-width: 0 }
.fp-what > b { display: block; font-size: 16.5px; font-weight: 700 }
.fp-what > span { display: block; color: var(--ink-2); font-size: 14.5px; overflow-wrap: anywhere }
.gx .fp-what .aiuto { margin: 6px 0 0 }
.fp-step--paga { grid-template-columns: auto minmax(0, 1fr); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)) }
.fp-step--paga .fp-go-form, .fp-step--paga .fp-wait, .fp-inline { grid-column: 1 / -1 }
.fp-go-form { margin: 0 }
.fp-wait { margin: 2px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); color: var(--ink-2); font-size: 14.5px }
.gx .fp-check { display: flex; align-items: center; gap: 9px; min-height: 44px; margin: 2px 0 0; font-weight: 600; font-size: 15px }
.fp-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand) }
.gx .fp-go { width: 100%; min-height: 52px; margin-top: 8px; font-size: 16.5px }
.gx-fine .pp-box { max-width: none }
.fp-piede { margin: 14px 0 0 }
.fp-piede form { margin: 0 }
.fp-link { min-height: 44px; padding: 10px 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer }
.fp-link:hover { color: var(--brand) }
/* phone: the button of a step under its words, the whole width */
@media (max-width: 560px) {
  .fp-step { grid-template-columns: auto minmax(0, 1fr) }
  .fp-step > .btn { grid-column: 1 / -1; width: 100% }
  .gx .fp-t-titolo { font-size: 22.4px }
}

/* panels of a step (plan, invoice data): the layers' white sheet */
.gx .aiuto-pop.fp-pop { width: min(30rem, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; padding: 18px 18px 16px; border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-up); font-family: var(--font) }
.gx .aiuto-pop.fp-pop-larga { width: min(46rem, calc(100vw - 32px)) }
.fp-form { display: grid }
.fp-form .btn { margin-top: 16px }
.fp-nota { margin: 6px 0 0; color: var(--ink-3); font-size: 13.5px }

/* the pause of staff and members: the card alone, then what can still be done */
.fp-azioni { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow) }
.fp-azioni p { margin: 0 0 12px; color: var(--ink-2) }
.fp-azioni .btn { width: 100% }

/* the stop on the way to PayPal (grynta_vai.php) inside this layout */
.gx-fine .gv { margin-top: 6vh; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow) }
