/* Public portal (M1-D Task 1), Confcommercio Brand Book v1.8. Colours come from the tokens of tp-theme.css (--tp-*, --cc-*),
   so dark mode and tenant branding apply. White pages, Blu surfaces, Celeste accents; generous vertical rhythm. No inline styles (CSP). */

/* Portal pages sit on white, like the brand book pages. */
.tp-portal { --tblr-body-bg: var(--tp-paper); background: var(--tp-paper); }
.tp-portal .page-body { margin-block: var(--tp-s6) var(--tp-s8); }

/* Header: brand row (logo, event name, call to action) and a navigation row below it. */
.tp-public-header { flex-wrap: wrap; align-items: stretch; height: auto; padding: 0; }
.tp-public-header > .tp-ph-top { flex-wrap: nowrap; }
.tp-ph-top { display: flex; align-items: center; justify-content: space-between; gap: var(--tp-s5); min-height: var(--tp-header-h); flex-wrap: nowrap; }
.tp-ph-actions { display: flex; align-items: center; gap: var(--tp-s3); flex: none; }
.tp-ph-top .tp-brand { flex: 0 1 auto; }
.tp-ph-top .tp-wordmark { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tp-ph-nav { flex-basis: 100%; border-top: 1px solid var(--tp-line); }
.tp-ph-nav .navbar-nav { flex-wrap: wrap; gap: 0 var(--tp-s2); padding-block: var(--tp-s2); margin-inline: calc(-1 * var(--tp-s3)); }
[data-bs-theme=dark] .tp-ph-nav { border-top-color: rgba(255, 255, 255, .18); }
@media (max-width: 991.98px) {
  .tp-ph-nav .navbar-nav { margin-inline: 0; padding-block: var(--tp-s3) var(--tp-s4); }
  .tp-ph-actions .btn-cta, .tp-ph-actions .tp-ph-reserved { display: none; }
  .tp-ph-nav .tp-ph-cta { display: flex; flex-wrap: wrap; gap: var(--tp-s3); margin-top: var(--tp-s3); }
}
@media (min-width: 992px) { .tp-ph-cta { display: none; } }

/* Hero: full width, flush with the header. Indaco surface with the pattern tipografico (tav. 3, 37) of the six areas
   of representation; a solid Indaco veil on the left keeps the white text readable (tav. 26: white on Indaco AAA). */
.tp-hero {
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, #0050B5 0%, #0050B5 34%, rgba(0, 80, 181, .82) 52%, rgba(0, 80, 181, .25) 78%, rgba(0, 80, 181, 0) 100%),
    url("../img/brand/pattern-aree.svg") right center / cover no-repeat,
    #0050B5;
}
.tp-hero-inner { padding-block: 104px 88px; }
.tp-eyebrow, .tp-eyebrow-dark {
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.3;
}
.tp-eyebrow { display: flex; align-items: center; gap: var(--tp-s3); color: #fff; margin-bottom: var(--tp-s5); }
.tp-eyebrow::before { content: ""; flex: none; width: 40px; height: 3px; background: #56B7E6; }
.tp-eyebrow-dark { color: var(--tp-label); margin-bottom: var(--tp-s2); }
.tp-eyebrow-dark a { color: inherit; }
.tp-hero h1 {
  font-family: var(--tp-font-display);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -.015em;
  color: #fff;
  margin: 0 0 var(--tp-s5);
  max-width: 13ch;
}
.tp-hero-lead { max-width: 46ch; font-size: clamp(19px, 2vw, 23px); font-weight: 300; line-height: 1.45; color: #fff; margin-bottom: 0; }
.tp-hero-actions { display: flex; gap: var(--tp-s3); flex-wrap: wrap; margin-top: var(--tp-s6); }
/* White call to action on blue surfaces. */
.btn-light-cta { background: #fff; color: #003B75; border: 1px solid #fff; }
.btn-light-cta:hover, .btn-light-cta:focus-visible, .btn-light-cta:active { background: #56B7E6; border-color: #56B7E6; color: #041E42; }
/* Key figures on a Blu scuro band at the foot of the hero (Celeste chiaro on Blu scuro: AAA). */
.tp-hero-band { background: rgba(4, 30, 66, .88); }
.tp-counters { display: grid; grid-template-columns: repeat(4, 1fr); }
.tp-counter { padding: var(--tp-s5) var(--tp-s5) var(--tp-s5) 0; }
.tp-counter + .tp-counter { padding-left: var(--tp-s5); border-left: 1px solid rgba(255, 255, 255, .14); }
.tp-counter b { display: block; font-family: var(--tp-font-display); font-weight: 700; font-size: 48px; line-height: 1; color: #56B7E6; margin-bottom: var(--tp-s1); }
.tp-counter span { font-size: 15px; color: rgba(255, 255, 255, .88); }
@media (max-width: 767.98px) {
  .tp-hero { background: linear-gradient(180deg, rgba(0, 80, 181, .92), rgba(0, 80, 181, .8)), url("../img/brand/pattern-aree.svg") center / cover no-repeat, #0050B5; }
  .tp-hero-inner { padding-block: var(--tp-s7) var(--tp-s7); }
  .tp-counters { grid-template-columns: repeat(2, 1fr); }
  .tp-counter, .tp-counter + .tp-counter { padding: var(--tp-s4) var(--tp-s3); border-left: 0; }
  .tp-counter:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .14); }
}

/* Full-width bands (home). */
.tp-band { padding-block: 88px; }
@media (max-width: 767.98px) { .tp-band { padding-block: var(--tp-s7); } }
.tp-band-title { font-size: clamp(30px, 4vw, 42px); margin-bottom: var(--tp-s6); max-width: 24ch; }
.tp-band-more { margin: var(--tp-s6) 0 0; }
.tp-band-tint { background: var(--tp-soft); }
.tp-band-tint .tp-eyebrow-dark { color: #0050B5; }
[data-bs-theme=dark] .tp-band-tint .tp-eyebrow-dark { color: #56B7E6; }
.tp-band-blu { background: #003B75; color: #fff; }
.tp-band-blu .tp-band-title { color: #fff; }
/* Registration strip: Celeste Confcom with white text (tav. 26: AA). */
.tp-band-celeste { background: #007ACC; color: #fff; padding-block: var(--tp-s6); }
.tp-reg-strip { display: flex; align-items: center; justify-content: space-between; gap: var(--tp-s5); flex-wrap: wrap; }
.tp-reg-strip h2 { color: #fff; font-size: 26px; margin: 0 0 var(--tp-s1); display: flex; align-items: center; flex-wrap: wrap; gap: var(--tp-s3); }
.tp-reg-strip p { margin: 0; font-size: 17px; color: #fff; }
.tp-reg-strip .tp-pill-ok { background: #fff; color: #007ACC; margin: 0; }
/* The portal links band ends with the community illustration (tav. 38), resting on the footer. */
.tp-band-community { padding-bottom: 260px; background: url("../img/brand/community.svg") center bottom / auto 200px repeat-x, #003B75; }
@media (max-width: 767.98px) { .tp-band-community { padding-bottom: 180px; background-size: auto 140px, auto; } }

/* Inner pages: eyebrow and title on a full-width Blu Confcom band under the header. */
.tp-portal .page-body:has(> .container-xl > .tp-section:first-child > .tp-eyebrow-dark:first-child) { margin-top: 0; }
.tp-portal .page-body > .container-xl > .tp-section:first-child > .tp-eyebrow-dark:first-child,
.tp-portal .page-body > .container-xl > .tp-section:first-child > .tp-eyebrow-dark:first-child + h1 {
  background: #003B75;
  box-shadow: 0 0 0 100vmax #003B75;
  clip-path: inset(0 -100vmax);
  margin: 0;
}
.tp-portal .page-body > .container-xl > .tp-section:first-child > .tp-eyebrow-dark:first-child { color: #56B7E6; padding-top: var(--tp-s7); padding-bottom: var(--tp-s3); }
.tp-portal .page-body > .container-xl > .tp-section:first-child > .tp-eyebrow-dark:first-child + h1 {
  color: #fff; padding-bottom: var(--tp-s7); margin-bottom: var(--tp-s6); font-size: clamp(34px, 5vw, 56px); line-height: 1.05;
}

/* Sections */
.tp-section { margin-bottom: var(--tp-s8); }
.tp-section h1 { font-family: var(--tp-font-display); color: var(--tp-heading); font-size: clamp(32px, 4.5vw, 44px); margin-bottom: var(--tp-s5); }
.tp-section h2 { color: var(--tp-heading); }
.tp-pretext { white-space: pre-line; max-width: 72ch; }
.tp-portal-list { padding-left: 1.2rem; max-width: 72ch; }
.tp-portal-list li { margin-bottom: var(--tp-s1); }
.tp-pill { display: inline-block; margin-left: var(--tp-s2); padding: 3px 10px; border-radius: var(--tp-radius); font-size: 13px; font-weight: 700; }
.tp-pill-ok { background: #007ACC; color: #fff; }

/* Category cards: one Celeste rule for every sport; the sport is named in the label, not coded by colour. */
.tp-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tp-s5); margin: var(--tp-s5) 0; }
@media (max-width: 991.98px) { .tp-cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639.98px) { .tp-cat-grid { grid-template-columns: 1fr; } }
.tp-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--tp-paper);
  border-radius: var(--tp-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(4, 30, 66, .06), 0 8px 24px rgba(4, 30, 66, .06);
}
/* Card head on Blu Confcom (calcio a 5) or Blu scuro (tennis); the sport is named in the label, the colour only varies the tone. */
.tp-cat-head { position: relative; overflow: hidden; background: #003B75; color: #fff; padding: var(--tp-s5) var(--tp-s5) var(--tp-s5); min-height: 128px; }
.tp-cat-tn .tp-cat-head { background: #041E42; }
.tp-cat-icon { position: absolute; right: -14px; bottom: -22px; font-size: 112px; line-height: 1; color: rgba(86, 183, 230, .22); }
.tp-cat-card h3 { position: relative; font-family: var(--tp-font-display); font-size: 26px; color: #fff; margin: var(--tp-s2) 0 0; }
.tp-cat-sport { position: relative; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #56B7E6; }
.tp-cat-card .tp-portal-list { padding: var(--tp-s5) var(--tp-s5) var(--tp-s5) calc(var(--tp-s5) + 1.1rem); }
.tp-cat-card .tp-portal-list li::marker { color: var(--tp-secondary); }
.tp-cat-card .tp-portal-list { margin: 0; font-size: 15.5px; }
.tp-note-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--tp-s5); }
.tp-note { background: var(--tp-soft); border-radius: var(--tp-radius); padding: var(--tp-s5); }
.tp-note h3 { font-size: 18px; }

/* Quick links: 3 x 2 tiles. On the Blu band they are translucent white panels turning Celeste on hover. */
.tp-quick-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tp-s4); }
@media (max-width: 991.98px) { .tp-quick-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .tp-quick-links { grid-template-columns: 1fr; } }
.tp-quick-links a {
  position: relative;
  display: block;
  background: var(--tp-paper);
  border: 1px solid var(--tp-line);
  border-radius: var(--tp-radius);
  padding: var(--tp-s5) var(--tp-s7) var(--tp-s5) var(--tp-s5);
  color: var(--tp-ink);
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.tp-quick-links a::after { content: "\2192" / ""; position: absolute; right: var(--tp-s5); top: var(--tp-s5); font-size: 20px; font-weight: 700; color: var(--tp-secondary); transition: transform .15s; }
.tp-quick-links a:hover::after, .tp-quick-links a:focus-visible::after { transform: translateX(4px); }
.tp-quick-links a:hover, .tp-quick-links a:focus-visible { border-color: var(--tp-secondary); }
.tp-quick-links .ti { display: block; font-size: 30px; line-height: 1; color: var(--tp-secondary); margin-bottom: var(--tp-s4); }
.tp-quick-links strong { display: block; color: var(--tp-heading); font-size: 20px; margin-bottom: var(--tp-s1); }
.tp-quick-links span { color: var(--tp-muted); font-size: 15px; }
.tp-band-blu .tp-quick-links a { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; }
.tp-band-blu .tp-quick-links a:hover, .tp-band-blu .tp-quick-links a:focus-visible { background: #007ACC; border-color: #007ACC; }
.tp-band-blu .tp-quick-links .ti, .tp-band-blu .tp-quick-links a::after { color: #56B7E6; }
.tp-band-blu .tp-quick-links a:hover .ti, .tp-band-blu .tp-quick-links a:hover::after { color: #fff; }
.tp-band-blu .tp-quick-links strong { color: #fff; }
.tp-band-blu .tp-quick-links span { color: rgba(255, 255, 255, .85); }

/* Chi gioca */
.tp-steps { display: grid; gap: var(--tp-s4); margin: var(--tp-s5) 0; }
.tp-step { display: grid; grid-template-columns: 48px 1fr; gap: var(--tp-s5); background: var(--tp-paper); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: var(--tp-s5); }
.tp-step-n {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--tp-navy-surface); color: #56B7E6;
  display: grid; place-items: center;
  font-family: var(--tp-font-display); font-weight: 700; font-size: 22px;
}
.tp-step h2 { font-size: 22px; }
.tp-excluded { background: var(--tp-soft); border-left: 4px solid var(--tp-deep-surface); border-radius: 0 var(--tp-radius) var(--tp-radius) 0; padding: var(--tp-s5); }
.tp-excluded h2 { color: var(--tp-heading); font-size: 22px; }
[data-bs-theme=dark] .tp-excluded { border-left-color: #56B7E6; }

/* Calendar timeline */
.tp-timeline { list-style: none; margin: var(--tp-s6) 0; padding: 0; border-left: 2px solid var(--tp-line); }
.tp-timeline li { position: relative; padding: 0 0 var(--tp-s6) var(--tp-s6); }
.tp-timeline li:last-child { padding-bottom: 0; }
.tp-timeline li::before {
  content: ""; position: absolute; left: -8px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--tp-secondary); border: 3px solid var(--tp-paper);
}
.tp-timeline-date { font-family: var(--tp-font-display); font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--tp-label); margin-bottom: var(--tp-s1); }
.tp-timeline h2 { font-size: 22px; margin: 0 0 var(--tp-s2); }

/* Prizes */
.tp-prize-money, .tp-prize-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--tp-s5); margin: var(--tp-s5) 0; }
.tp-prize-card, .tp-prize-item { display: grid; grid-template-columns: 48px 1fr; gap: var(--tp-s4); background: var(--tp-paper); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: var(--tp-s5); }
.tp-prize-card { border-top: 4px solid var(--tp-secondary); }
.tp-marker {
  width: 48px; height: 48px; border-radius: var(--tp-radius); background: var(--tp-soft); color: var(--tp-heading);
  display: grid; place-items: center; font-family: var(--tp-font-display); font-weight: 700; font-size: 20px;
}
.tp-prize-card .tp-marker { background: var(--tp-navy-surface); color: #fff; }
.tp-prize-card h2, .tp-prize-item h3 { font-size: 20px; margin: 0 0 var(--tp-s1); }

/* Regulation boxes and accordions (details/summary: no JavaScript needed) */
.tp-box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--tp-s5); margin: var(--tp-s5) 0; }
.tp-box { background: var(--tp-paper); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: var(--tp-s5); }
.tp-box h2 { font-size: 20px; }
.tp-accordion details { background: var(--tp-paper); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); margin-bottom: var(--tp-s2); }
.tp-accordion details[open] { border-color: var(--tp-secondary); }
.tp-accordion summary { cursor: pointer; padding: var(--tp-s4) var(--tp-s5); font-weight: 700; color: var(--tp-heading); }
.tp-accordion summary::marker { color: var(--tp-secondary); }
.tp-accordion summary:focus-visible { outline: 3px solid var(--tp-focus); outline-offset: 2px; }
.tp-accordion-body { padding: 0 var(--tp-s5) var(--tp-s5); }

/* Filters, tables, team page */
.tp-filters { display: flex; flex-wrap: wrap; gap: var(--tp-s4); align-items: flex-end; margin: var(--tp-s5) 0; }
.tp-filters label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--tp-heading); min-width: 200px; }
.tp-table th { white-space: nowrap; }
.tp-score { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.tp-next-match { background: var(--tp-soft); border-left: 4px solid var(--tp-secondary); border-radius: 0 var(--tp-radius) var(--tp-radius) 0; padding: var(--tp-s4) var(--tp-s5); margin: var(--tp-s5) 0; }
.tp-next-match h2 { font-size: 18px; margin: 0 0 var(--tp-s1); }
.tp-legal { max-width: 72ch; }

/* Footer: Blu scuro Confcom, negative logo (tav. 21), three columns. */
.tp-footer { background: #041E42; color: rgba(255, 255, 255, .85); padding: var(--tp-s8) 0 var(--tp-s6); margin-top: 0; }
.tp-footer-logo { display: block; height: auto; max-height: 72px; width: auto; max-width: 100%; margin-bottom: var(--tp-s7); }
.tp-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--tp-s6); }
@media (max-width: 800px) { .tp-footer-cols { grid-template-columns: 1fr; } }
.tp-footer h2 { font-family: var(--tp-font-display); font-weight: 700; font-size: 18px; color: #56B7E6; margin-bottom: var(--tp-s3); }
.tp-footer .tp-pretext { font-size: 15px; }
.tp-footer a { color: #fff; }
.tp-footer-links { display: flex; flex-wrap: wrap; gap: var(--tp-s5); margin-top: var(--tp-s7); padding-top: var(--tp-s5); border-top: 1px solid rgba(255, 255, 255, .16); font-size: 14.5px; }
.tp-footer-links a { color: #fff; text-decoration: none; }
.tp-footer-links a:hover { text-decoration: underline; color: #56B7E6; }
.tp-footer-note { font-size: 13.5px; color: rgba(255, 255, 255, .65); margin: var(--tp-s3) 0 0; }

/* "Area riservata": two doors on one page (Ente by e-mail link, Segreteria by password), cards overlapping the Blu band. */
.ra-hero { text-align: center; }
.ra-kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #56B7E6; margin: 0 0 var(--tp-s3); }
.ra-hero .wiz-lead { margin-inline: auto; max-width: 60ch; }
.ra-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--tp-s5); margin-top: calc(-1 * var(--tp-s8)); }
.ra-card {
  display: flex; flex-direction: column; padding: var(--tp-s6); background: var(--tp-paper); border-radius: var(--tp-radius);
  border: 1px solid transparent; box-shadow: 0 1px 2px rgba(0, 30, 66, .06), 0 12px 32px rgba(0, 30, 66, .10);
}
.ra-card.is-active { border-color: var(--tp-secondary); }
.ra-icon { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--tp-soft); color: var(--tp-secondary); font-size: 30px; margin-bottom: var(--tp-s4); }
.ra-card-admin .ra-icon { background: #041E42; color: #fff; }
.ra-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tp-muted); margin: 0 0 var(--tp-s1); }
.ra-card h2 { font-family: var(--tp-font-display); color: var(--tp-heading); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; margin: 0 0 var(--tp-s3); }
.ra-text { color: var(--tp-muted); font-size: 16px; line-height: 1.55; margin: 0 0 var(--tp-s4); }
.ra-steps { list-style: none; counter-reset: ra; padding: 0; margin: 0 0 var(--tp-s5); display: grid; gap: var(--tp-s2); }
.ra-steps li { counter-increment: ra; display: flex; align-items: center; gap: var(--tp-s3); font-size: 14.5px; color: var(--tp-heading); }
.ra-steps li::before { content: counter(ra); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--tp-navy); color: #fff; font-size: 12px; font-weight: 700; }
.ra-steps li i { color: var(--tp-secondary); font-size: 18px; }
.ra-form { display: grid; gap: var(--tp-s3); margin-top: auto; }
.ra-form .form-label { margin: 0; font-weight: 600; color: var(--tp-heading); }
.ra-form .btn { margin-top: var(--tp-s2); }
.ra-form .wiz-errors { margin: 0; }
.ra-foot { margin: var(--tp-s4) 0 0; font-size: 14px; color: var(--tp-muted); }
.ra-foot a { font-weight: 600; }
@media (max-width: 575.98px) { .ra-card { padding: var(--tp-s5) var(--tp-s4); } }

/* Registration wizard (M1-D Task 3). Same tokens as the portal; no inline styles (CSP). */
/* Wizard: title, intro and stepper on a full-width Blu Confcom band; the form card overlaps it on a light ground. */
.tp-portal:has(.wiz-hero) { --tblr-body-bg: var(--tp-ground); background: var(--tp-ground); }
.tp-portal .page-body:has(.wiz-hero) { margin-top: 0; }
.wiz-hero {
  background: #003B75; box-shadow: 0 0 0 100vmax #003B75; clip-path: inset(0 -100vmax);
  color: #fff; padding: var(--tp-s7) 0 calc(var(--tp-s8) + var(--tp-s5));
}
.wiz-hero h1 { font-family: var(--tp-font-display); font-weight: 700; color: #fff; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 0 0 var(--tp-s3); }
.wiz-lead { color: rgba(255, 255, 255, .88); font-size: 18px; line-height: 1.5; max-width: 72ch; margin: 0 0 var(--tp-s6); }
.wiz-hero h1:last-child { margin-bottom: 0; }
.wiz-hero .wiz-steps { margin-bottom: 0; }
.wiz-hero .wiz-step { color: rgba(255, 255, 255, .72); border-bottom-color: rgba(255, 255, 255, .25); }
.wiz-hero a.wiz-step:hover { color: #fff; }
.wiz-hero .wiz-step.is-done { color: #fff; border-bottom-color: rgba(255, 255, 255, .7); }
.wiz-hero .wiz-step[aria-current="step"] { color: #fff; border-bottom-color: #56B7E6; }
.wiz-hero + .wiz-pane { position: relative; margin-top: calc(-1 * var(--tp-s8)); border-color: transparent; box-shadow: 0 1px 2px rgba(0, 30, 66, .06), 0 12px 32px rgba(0, 30, 66, .10); }
.wiz-pane > h2:first-child, .wiz-pane > .validation-summary-valid:first-child + h2 { margin-top: 0; }
.wiz-steps { display: flex; flex-wrap: wrap; gap: var(--tp-s2); list-style: none; padding: 0; margin: 0 0 var(--tp-s6); counter-reset: wiz; }
.wiz-steps li { flex: 1 1 140px; }
.wiz-step {
  display: block; padding: var(--tp-s3) var(--tp-s4); border: 0; border-bottom: 3px solid var(--tp-line);
  background: transparent; color: var(--tp-muted); font-weight: 500; font-size: 14.5px; text-decoration: none; text-align: left;
}
.wiz-step[aria-current="step"] { color: var(--tp-heading); font-weight: 700; border-bottom-color: var(--tp-secondary); }
.wiz-step.is-done { color: var(--tp-link); border-bottom-color: var(--tp-navy); }
.wiz-pane { background: var(--tp-paper); border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: var(--tp-s6); }
@media (max-width: 575.98px) { .wiz-pane { padding: var(--tp-s5) var(--tp-s4); } }
.wiz-pane h1 { font-family: var(--tp-font-display); color: var(--tp-heading); font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; margin: 0 0 var(--tp-s2); }
.wiz-pane h2 { font-family: var(--tp-font-display); color: var(--tp-heading); font-size: 22px; margin: var(--tp-s6) 0 var(--tp-s1); }
.wiz-pane h1 + .wiz-hint { font-size: 17px; }
.wiz-hint { color: var(--tp-muted); margin-bottom: var(--tp-s5); }
.wiz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--tp-s5) var(--tp-s5); }
.wiz-grid .wiz-full { grid-column: 1 / -1; }
.wiz-grid .mb-3 { margin-bottom: 0 !important; }
.wiz-radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--tp-s3); }
.wiz-radio {
  display: flex; align-items: center; justify-content: space-between; gap: var(--tp-s3); padding: var(--tp-s4) var(--tp-s5);
  border: 1px solid var(--tp-line); border-radius: var(--tp-radius); background: var(--tp-paper); cursor: pointer;
}
.wiz-radio:has(input:checked) { border-color: var(--tp-secondary); box-shadow: inset 0 0 0 1px var(--tp-secondary); background: var(--tp-soft); }
.wiz-radio:focus-within { outline: 3px solid var(--tp-focus); outline-offset: 2px; }
.wiz-fee { font-weight: 700; padding: 3px 10px; border-radius: var(--tp-radius); background: var(--tp-soft); color: var(--tp-heading); white-space: nowrap; display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.25; flex: 0 0 auto; }
.wiz-fee small { font-size: 12px; font-weight: 600; color: var(--tp-muted, #5c6670); }
.wiz-radio-name { flex: 1 1 auto; min-width: 0; }
.wiz-roster { display: grid; gap: var(--tp-s4); }
.wiz-row { border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: var(--tp-s5); background: var(--tp-ground); }
.wiz-row-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--tp-s4); font-weight: 700; color: var(--tp-heading); }
.wiz-row.has-error { border-color: var(--tp-err); }
.wiz-row-locked { background: #F4F6F9; border-style: dashed; }
.wiz-row-lock { font-size: 13px; font-weight: 600; color: var(--tp-muted, #5c6670); display: inline-flex; align-items: center; gap: 4px; }
.wiz-locked-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--tp-s3) var(--tp-s5); margin: 0; }
.wiz-locked-grid dt { font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--tp-muted, #5c6670); font-weight: 600; }
.wiz-locked-grid dd { margin: 0; font-weight: 600; color: var(--tp-heading); }
.wiz-errors { background: var(--tp-errbg); color: var(--tp-err); border-left: 4px solid var(--tp-err); border-radius: 0 var(--tp-radius) var(--tp-radius) 0; padding: var(--tp-s4) var(--tp-s5); margin: var(--tp-s5) 0; }
.wiz-errors ul { margin: 0; padding-left: 18px; }
.wiz-errors.validation-summary-valid { display: none; }
.wiz-quote { display: flex; justify-content: space-between; align-items: baseline; gap: var(--tp-s4); padding: var(--tp-s5); border-radius: var(--tp-radius); background: var(--tp-navy-surface); color: #fff; margin: var(--tp-s5) 0; }
.wiz-quote b { font-size: 30px; color: #56B7E6; }
.wiz-check { display: flex; gap: var(--tp-s3); align-items: flex-start; margin: var(--tp-s3) 0; }
.wiz-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--tp-s3); margin-top: var(--tp-s6); padding-top: var(--tp-s5); border-top: 1px solid var(--tp-line); }
.wiz-summary { display: grid; grid-template-columns: max-content 1fr; gap: var(--tp-s2) var(--tp-s5); margin: 0 0 var(--tp-s5); }
.wiz-summary dt { color: var(--tp-muted); font-weight: 500; }
.wiz-summary dd { margin: 0; }
.wiz-note { border-left: 4px solid var(--tp-secondary); background: var(--tp-soft); padding: var(--tp-s4) var(--tp-s5); border-radius: 0 var(--tp-radius) var(--tp-radius) 0; margin: var(--tp-s5) 0; }

/* Referent account menu (public header, signed-in Referent) */
.tp-account-btn {
  display: flex; align-items: center; gap: var(--tp-s3); max-width: 320px; padding: 6px var(--tp-s3) 6px 6px;
  background: transparent; border: 1px solid var(--tp-line); border-radius: 999px; color: var(--tp-heading); text-align: left; cursor: pointer;
}
.tp-account-btn:hover, .tp-account-btn[aria-expanded="true"] { background: var(--tp-soft); border-color: var(--tp-secondary); }
.tp-account-btn:focus-visible { outline: 3px solid var(--tp-focus); outline-offset: 2px; }
.tp-account-avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #003B75; color: #fff; font-size: 18px; }
.tp-account-text { display: grid; min-width: 0; line-height: 1.2; }
.tp-account-name { font-family: var(--tp-font-display); font-weight: 700; font-size: 14px; max-width: 260px; overflow: hidden; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; }
.tp-account-menu .dropdown-header { white-space: normal; max-width: 320px; }
.tp-account-sub { font-size: 12.5px; color: var(--tp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-account-caret { flex: none; color: var(--tp-muted); }
.tp-account-menu { min-width: 280px; padding: var(--tp-s2) 0; border-color: var(--tp-line); box-shadow: 0 12px 32px rgba(0, 30, 66, .14); }
.tp-account-menu .dropdown-item { display: flex; align-items: center; gap: var(--tp-s3); padding: var(--tp-s2) var(--tp-s4); }
.tp-account-menu .dropdown-item i { font-size: 18px; color: var(--tp-muted); }
.tp-account-menu .dropdown-header { padding: var(--tp-s2) var(--tp-s4) var(--tp-s1); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--tp-muted); }
.tp-account-head { display: grid; padding: var(--tp-s2) var(--tp-s4) var(--tp-s3); }
.tp-account-label { font-size: 12px; color: var(--tp-muted); }
.tp-account-email { font-weight: 600; color: var(--tp-ink); word-break: break-all; }
.tp-account-logout { width: 100%; border: 0; background: none; text-align: left; }
@media (max-width: 575.98px) { .tp-account-text, .tp-account-caret { display: none; } .tp-account-btn { padding: 4px; } }

/* Referent home: one card per Ente */
.wiz-hero + .wiz-pane-stack { position: relative; margin-top: calc(-1 * var(--tp-s8)); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--tp-s6); }
.wiz-pane-stack > .wiz-pane { min-width: 0; }
.wiz-pane-stack > .wiz-pane { border-color: transparent; box-shadow: 0 1px 2px rgba(0, 30, 66, .06), 0 12px 32px rgba(0, 30, 66, .10); padding: var(--tp-s7); }
@media (max-width: 767.98px) { .wiz-pane-stack > .wiz-pane { padding: var(--tp-s5) var(--tp-s4); } }
.rh-head > div { min-width: 0; }
.rh-head h2 { overflow-wrap: anywhere; }
.rh-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--tp-s4); flex-wrap: wrap; padding-bottom: var(--tp-s5); border-bottom: 1px solid var(--tp-line); }
.rh-eyebrow { margin: 0 0 var(--tp-s1); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--tp-secondary); }
.wiz-pane .rh-head h2 { margin: 0; font-size: clamp(26px, 3vw, 32px); line-height: 1.1; }
.rh-head .btn i, .rh-teams .btn i { margin-right: var(--tp-s2); font-size: 18px; }
.rh-data { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--tp-s7); padding: var(--tp-s6) 0; border-bottom: 1px solid var(--tp-line); }
@media (max-width: 991.98px) { .rh-data { grid-template-columns: minmax(0, 1fr); gap: var(--tp-s6); } }
.rh-block h3, .rh-teams h3 { font-family: var(--tp-font-display); font-size: 18px; color: var(--tp-heading); margin: 0 0 var(--tp-s4); }
.rh-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--tp-s3); }
.rh-link { font-weight: 600; font-size: 14.5px; }
.rh-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: var(--tp-s4) var(--tp-s5); margin: 0; }
.rh-block:last-child .rh-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 575.98px) { .rh-block:last-child .rh-facts { grid-template-columns: 1fr; } }
.rh-facts dt { font-size: 12.5px; font-weight: 500; color: var(--tp-muted); margin-bottom: 2px; }
.rh-facts dd { margin: 0; color: var(--tp-ink); font-weight: 500; overflow-wrap: anywhere; }
.rh-teams { padding-top: var(--tp-s6); }
.rh-teams-head { display: flex; justify-content: space-between; align-items: center; gap: var(--tp-s4); flex-wrap: wrap; margin-bottom: var(--tp-s4); }
.rh-teams-head h3 { margin: 0; display: flex; align-items: center; gap: var(--tp-s2); }
.rh-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--tp-soft); color: var(--tp-heading); font-size: 13px; }
.rh-empty { display: grid; justify-items: center; text-align: center; gap: var(--tp-s2); padding: var(--tp-s7) var(--tp-s5); border: 1px dashed var(--tp-line); border-radius: var(--tp-radius); background: var(--tp-ground); }
.rh-empty > i { font-size: 36px; color: var(--tp-secondary); }
.rh-empty-title { margin: 0; font-weight: 700; color: var(--tp-heading); font-size: 17px; }
.rh-empty-text { margin: 0 0 var(--tp-s3); color: var(--tp-muted); max-width: 52ch; }
.rh-table { margin: 0; }
.rh-table th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--tp-muted); font-weight: 600; }
.rh-table td { vertical-align: middle; overflow-wrap: anywhere; }
/* Registrations table: fixed column widths, every cell wraps — nothing may overflow the pane (no horizontal scroll). */
.rh-table-wrap { max-width: 100%; }
.rh-table { table-layout: fixed; width: 100%; }
.rh-col-team { width: 28%; } .rh-col-cat { width: 17%; } .rh-col-status { width: 22%; } .rh-col-actions { width: 33%; }
.rh-table td, .rh-table th { white-space: normal; }
.rh-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--tp-s2); }
.rh-actions .btn { white-space: nowrap; margin: 0; }
@media (max-width: 991.98px) {
  /* Below lg the table becomes stacked cards: one registration per block, label + value per row. */
  .rh-table, .rh-table tbody, .rh-table tr, .rh-table td { display: block; width: 100%; }
  .rh-table colgroup, .rh-table thead { display: none; }
  .rh-table tr { border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: var(--tp-s3) var(--tp-s4); margin-bottom: var(--tp-s3); }
  .rh-table td { border: 0; padding: var(--tp-s1) 0; }
  .rh-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--tp-muted); }
  .rh-actions { justify-content: flex-start; padding-top: var(--tp-s2); }
}
.rh-status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--tp-soft); color: var(--tp-heading); }
.rh-status-submitted { background: var(--tp-soft); color: var(--tp-heading); }
.rh-status-confirmed { background: #DDF3E4; color: #1F7A40; }
.rh-status-awaitingpayment { background: #FFF1D6; color: #8A5A00; }
.rh-status-paymentunderreview { background: #E1EEFA; color: #0050B5; }
.rh-status-withdrawn { background: var(--tp-errbg); color: var(--tp-err); }

/* Documenti (Screen 14): progress, one card per upload point; the upload field only while the voice is empty */
.doc-progress { margin: var(--tp-s5) 0 var(--tp-s6); padding: var(--tp-s4) var(--tp-s5); border-radius: var(--tp-radius); background: var(--tp-soft); }
.doc-progress-text { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--tp-s2) var(--tp-s4); margin-bottom: var(--tp-s3); color: var(--tp-heading); }
.doc-progress-text span { color: var(--tp-muted); }
.doc-progress-bar { height: 8px; border-radius: 999px; background: rgba(0, 59, 117, .12); overflow: hidden; }
.doc-progress-bar span { display: block; height: 100%; background: var(--tp-ok); border-radius: 999px; transition: width .3s ease; }
.doc-group { margin-top: var(--tp-s6); }
.doc-group h2 { margin-top: 0; }
.doc-group > .wiz-hint { margin-bottom: var(--tp-s4); }
.doc-list { display: grid; gap: var(--tp-s4); }
.doc-card { display: grid; grid-template-columns: 56px 1fr; gap: var(--tp-s4); padding: var(--tp-s5); border: 1px solid rgba(4, 30, 66, .12); border-radius: var(--tp-radius); background: #fff; box-shadow: 0 1px 2px rgba(4, 30, 66, .04); }
.doc-card.is-done { border-color: rgba(31, 122, 64, .35); background: linear-gradient(90deg, rgba(31, 122, 64, .06), #fff 40%); }
.doc-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--tp-soft); color: var(--tp-secondary); font-size: 28px; }
.doc-card.is-done .doc-icon { background: var(--tp-okbg); color: var(--tp-ok); }
.doc-body { min-width: 0; }
.doc-title { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tp-s2) var(--tp-s3); margin-bottom: var(--tp-s3); }
.doc-title h3 { font-family: var(--tp-font-display); font-size: 18px; line-height: 1.25; margin: 0; color: var(--tp-heading); }
.doc-person { font-weight: 600; color: var(--tp-secondary); }
.doc-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; background: var(--tp-soft); color: var(--tp-muted); }
.doc-chip.is-required { background: #fff4d6; color: #8a5a00; }
.doc-chip.is-ok { background: var(--tp-okbg); color: var(--tp-ok); }
.doc-file { display: flex; align-items: center; gap: var(--tp-s3); padding: var(--tp-s3) var(--tp-s4); border-radius: var(--tp-radius); background: var(--tp-soft); margin-bottom: var(--tp-s3); }
.doc-file > .ti { font-size: 26px; color: var(--tp-secondary); flex: none; }
.doc-file.is-rejected > .ti { color: var(--tp-err); }
.doc-file-info { display: flex; flex-direction: column; min-width: 0; }
.doc-file-name { font-weight: 600; color: var(--tp-heading); overflow-wrap: anywhere; }
.doc-file-meta { font-size: 13px; color: var(--tp-muted); }
.doc-file-actions { margin-left: auto; display: flex; gap: var(--tp-s2); flex: none; }
.doc-file-actions .ti { margin-right: 4px; }
.doc-upload { display: grid; grid-template-columns: 1fr auto; gap: var(--tp-s2) var(--tp-s3); align-items: center; padding: var(--tp-s4); border: 1px dashed rgba(4, 30, 66, .25); border-radius: var(--tp-radius); background: #fafcff; }
.doc-upload-label { grid-column: 1 / -1; font-weight: 600; color: var(--tp-heading); }
.doc-upload .btn .ti { margin-right: 4px; }
.doc-replace { margin: 0; font-size: 14px; color: var(--tp-muted); }
.doc-privacy { margin-top: var(--tp-s6); display: flex; gap: var(--tp-s2); align-items: flex-start; }
@media (max-width: 575px) {
  .doc-card { grid-template-columns: 1fr; }
  .doc-icon { display: none; }
  .doc-upload { grid-template-columns: 1fr; }
  .doc-file { flex-wrap: wrap; }
  .doc-file-actions { margin-left: 0; width: 100%; }
}

/* Pagamento: checkout (order summary + method choice, CSS-only toggle) */
.co-steps { display: flex; flex-wrap: wrap; gap: var(--tp-s3); list-style: none; margin: var(--tp-s5) 0 0; padding: 0; counter-reset: step; }
.co-steps li { counter-increment: step; display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.co-steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .5); font-weight: 700; font-size: 13px; }
.co-steps li.is-done { color: #fff; }
.co-steps li.is-done::before { content: "✓"; background: #56B7E6; border-color: #56B7E6; color: var(--tp-navy-surface, #041E42); }
.co-steps li.is-current { color: #fff; font-weight: 700; }
.co-steps li.is-current::before { background: #fff; border-color: #fff; color: var(--tp-navy-surface, #041E42); }
.co-layout { display: grid; grid-template-columns: 320px 1fr; gap: var(--tp-s5); align-items: start; }
.co-summary { background: #fff; border-radius: var(--tp-radius); box-shadow: 0 10px 30px rgba(4, 30, 66, .08); padding: var(--tp-s5); position: sticky; top: 90px; }
.co-summary h2 { font-family: var(--tp-font-display); font-size: 20px; margin: 0 0 var(--tp-s4); color: var(--tp-heading); }
.co-summary dl { margin: 0; display: grid; gap: var(--tp-s3); }
.co-summary dl div { display: flex; justify-content: space-between; gap: var(--tp-s3); }
.co-summary dt { color: var(--tp-muted); font-weight: 500; }
.co-summary dd { margin: 0; text-align: right; font-weight: 600; color: var(--tp-heading); }
.co-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: var(--tp-s5); padding-top: var(--tp-s4); border-top: 2px solid var(--tp-soft); color: var(--tp-heading); font-weight: 600; }
.co-total b { font-family: var(--tp-font-display); font-size: 30px; color: var(--tp-primary, #003B75); }
.co-fine { font-size: 13px; color: var(--tp-muted); margin: var(--tp-s3) 0 0; }
.co-main { background: #fff; border-radius: var(--tp-radius); box-shadow: 0 10px 30px rgba(4, 30, 66, .08); padding: var(--tp-s6); }
.co-title { font-family: var(--tp-font-display); font-size: 22px; margin: 0 0 var(--tp-s4); color: var(--tp-heading); }
.co-methods { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tp-s4); }
.co-radio { position: absolute; opacity: 0; width: 0; height: 0; }
.co-method { display: flex; gap: var(--tp-s3); align-items: center; padding: var(--tp-s4); border: 2px solid rgba(4, 30, 66, .15); border-radius: var(--tp-radius); cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s; }
.co-method:hover { border-color: var(--tp-secondary); }
.co-radio:focus-visible + .co-method { outline: 3px solid #56B7E6; outline-offset: 2px; }
.co-radio:checked + .co-method { border-color: var(--tp-primary, #003B75); box-shadow: 0 0 0 3px rgba(0, 59, 117, .12); background: #f4f8fc; }
.co-method-icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--tp-soft); color: var(--tp-primary, #003B75); font-size: 24px; flex: none; }
.co-method-text { display: flex; flex-direction: column; line-height: 1.3; }
.co-method-text strong { color: var(--tp-heading); }
.co-method-text small { color: var(--tp-muted); }
.co-panel { grid-column: 1 / -1; display: none; padding: var(--tp-s5); border: 1px solid rgba(4, 30, 66, .12); border-radius: var(--tp-radius); background: #fafcff; }
#co-transfer:checked ~ .co-panel[data-for="transfer"], #co-paypal:checked ~ .co-panel[data-for="paypal"] { display: block; }
.co-bank { display: grid; gap: var(--tp-s2); margin: 0 0 var(--tp-s5); }
.co-bank div { display: grid; grid-template-columns: 180px 1fr; gap: var(--tp-s3); padding: var(--tp-s2) 0; border-bottom: 1px dashed rgba(4, 30, 66, .12); }
.co-bank dt { color: var(--tp-muted); font-weight: 500; }
.co-bank dd { margin: 0; font-weight: 600; color: var(--tp-heading); }
.co-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .04em; }
.co-upload { display: grid; gap: var(--tp-s3); }
.co-upload label { display: flex; flex-direction: column; }
.co-upload label small { color: var(--tp-muted); }
.co-upload .btn { justify-self: start; }
.co-main .btn .ti { margin-right: 6px; }
.btn-paypal { background: #FFC439; border-color: #FFC439; color: #003087; font-weight: 700; }
.btn-paypal:hover { background: #f2b52a; border-color: #f2b52a; color: #003087; }
.co-state { text-align: center; padding: var(--tp-s6) var(--tp-s4); }
.co-state > .ti { font-size: 56px; color: var(--tp-secondary); }
.co-state.is-ok > .ti { color: var(--tp-ok); }
.co-state h2 { font-family: var(--tp-font-display); font-size: 24px; margin: var(--tp-s3) 0; color: var(--tp-heading); }
.co-state p { max-width: 560px; margin: 0 auto var(--tp-s3); color: var(--tp-muted); }
.co-history { margin-top: var(--tp-s6); border-top: 1px solid rgba(4, 30, 66, .12); padding-top: var(--tp-s4); }
.co-history summary { cursor: pointer; font-weight: 600; color: var(--tp-heading); }
.co-history ul { list-style: none; margin: var(--tp-s3) 0 0; padding: 0; display: grid; gap: var(--tp-s2); }
.co-history li { display: flex; flex-wrap: wrap; gap: var(--tp-s2) var(--tp-s4); align-items: center; font-size: 14px; padding: var(--tp-s2) var(--tp-s3); background: var(--tp-soft); border-radius: var(--tp-radius); }
.co-state-pill { padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; background: #fff; }
.co-state-pill.is-succeeded { color: var(--tp-ok); }
.co-state-pill.is-failed { color: var(--tp-err); }
@media (max-width: 991px) {
  .co-layout { grid-template-columns: 1fr; }
  .co-summary { position: static; }
  .co-methods { grid-template-columns: 1fr; }
  .co-bank div { grid-template-columns: 1fr; }
}

/* Rosa: completeness after submit (saving is always allowed, the rules are warnings) */
.roster-progress { margin: var(--tp-s4) 0 var(--tp-s5); padding: var(--tp-s4) var(--tp-s5); border-radius: var(--tp-radius); background: #FFF8E6; border: 1px solid #F1DDA8; }
.roster-progress.is-complete { background: #EAF7EE; border-color: #BFE3CA; }
.roster-progress-text { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--tp-s2) var(--tp-s4); margin-bottom: var(--tp-s3); color: var(--tp-heading); }
.roster-progress-text span { color: var(--tp-muted); }
.roster-progress-bar { height: 8px; border-radius: 999px; background: rgba(4, 30, 66, .1); overflow: hidden; }
.roster-progress-bar span { display: block; height: 100%; background: #E0A526; border-radius: 999px; }
.roster-progress.is-complete .roster-progress-bar span { background: #1F7A40; }
.roster-issues { list-style: none; margin: var(--tp-s3) 0 0; padding: 0; display: grid; gap: 4px; color: #8A5A00; }
.roster-issues .ti { margin-right: 4px; }
.roster-ok { margin: var(--tp-s3) 0 0; color: #1F7A40; font-weight: 600; }

/* Start page: the directory entry found by the e-mail lookup */
.wiz-authorized { display: flex; flex-wrap: wrap; align-items: center; gap: var(--tp-s3); padding: var(--tp-s4); margin-bottom: var(--tp-s5); border-radius: 10px; background: color-mix(in srgb, var(--tp-cta, #007ACC) 10%, transparent); font-weight: 600; }
.wiz-authorized i { font-size: 1.3em; }
.wiz-authorized a { margin-left: auto; font-weight: 400; }

/* Info icons on the dark hero: light, not primary blue on navy */
.wiz-hero .tp-hint > summary { color: rgba(255, 255, 255, .8); }
.wiz-hero .tp-hint > summary:hover { color: #fff; }
.wiz-hero .tp-hint-body { color: var(--tp-ink, #1b2a3a); }

/* Facts box at the top of a wizard form (Roster): one line per rule, icon + text */
.wiz-facts { list-style: none; margin: 0 0 var(--tp-s5); padding: var(--tp-s4) var(--tp-s5); background: var(--tp-soft); border-radius: var(--tp-radius); display: grid; gap: var(--tp-s2); }
.wiz-facts li { display: flex; gap: var(--tp-s3); align-items: flex-start; color: var(--tp-heading); font-size: 15px; line-height: 1.45; }
.wiz-facts .ti { flex: none; font-size: 1.15rem; color: var(--tp-secondary); margin-top: .1rem; }
.wiz-facts + .wiz-note { margin-top: 0; }

/* Preadesione (team step): days and time slots as chips, squadra di sede box */
.wiz-pre { border: 0; padding: 0; margin: var(--tp-s4) 0 0; }
.wiz-seat { border: 1px solid var(--bs-border-color); border-radius: .5rem; padding: var(--tp-s3); margin: var(--tp-s3) 0 0; }
.wiz-chips { display: flex; flex-wrap: wrap; gap: var(--tp-s2); }
.wiz-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border: 1px solid var(--bs-border-color); border-radius: 999px; cursor: pointer; }
.wiz-chip:has(input:checked) { border-color: var(--bs-primary); background: var(--bs-primary-bg-subtle); }
