/* School-to-school invitation: arrival, « Come funziona » in four screens, activation.
   The school desk language: navy band, mint accents, ruled lines, no shadows. */
.invite { margin: 0; padding-bottom: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--bg, #faf9f6); color: var(--ink, #0d2137); font-size: 17px; line-height: 1.45; }
.invite-wrap { box-sizing: border-box; width: min(100% - 2.5rem, 64rem); margin-inline: auto; }
.invite-head { background: var(--navy, #0d2137); color: var(--hero-text, #f8fbfa); }
.invite-head .invite-wrap { padding: 26px 0 24px; border-left: 8px solid var(--foam, #bce8da); padding-left: 16px; }
.invite-brand { margin: 0 0 8px; font: 650 14px/1.2 var(--font-display), sans-serif; letter-spacing: .04em; color: var(--foam, #bce8da); }
.invite-head h1 { margin: 0; font-size: clamp(30px, 6.4vw, 54px); font-weight: 760; letter-spacing: -0.03em; line-height: 1; color: var(--hero-text, #f8fbfa); overflow-wrap: anywhere; }
.invite-lead { margin: 12px 0 0; font-size: 17px; opacity: .9; }
.invite main { flex: 1; }
.invite-arrival, .invite-step { display: grid; gap: 28px; padding: 26px 0 32px; align-items: start; }
.invite-text { display: grid; gap: 14px; align-content: start; }
.invite-promise { margin: 0; font: 700 clamp(21px, 4.6vw, 28px)/1.22 var(--font-display), sans-serif; letter-spacing: -0.01em; }
.invite-free { margin: 0; display: flex; align-items: baseline; gap: 10px; padding: 10px 0 12px 14px; border-left: 6px solid var(--accent, #20614f); border-block: 1px solid var(--line, #d7dedb); background: var(--surface, #fff); }
.invite-free strong { font: 800 54px/.9 var(--font-display), sans-serif; letter-spacing: -0.04em; color: var(--accent, #20614f); font-variant-numeric: tabular-nums; }
.invite-free span { font: 650 17px/1.2 var(--font-display), sans-serif; }
.invite-go, .invite-how, .invite-back { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: .35em; min-height: 56px; padding: 10px 18px; border-radius: var(--radius-xs, 3px); text-align: center; text-decoration: none; font: 750 18px/1.2 var(--font-display), sans-serif; cursor: pointer; }
.invite-go { background: var(--navy, #0d2137); color: var(--hero-text, #fff); border: 0; }
.invite-go small, .invite-how small { font-weight: 600; opacity: .8; font-size: 16px; }
.invite-how, .invite-back { min-height: 48px; color: var(--ink, #0d2137); background: transparent; border: 1px solid var(--ink, #0d2137); }
.invite-go:focus-visible, .invite-how:focus-visible, .invite-back:focus-visible, .invite-skip:focus-visible { outline: 3px solid var(--accent, #20614f); outline-offset: 2px; }
.invite-shot { margin: 0; justify-self: center; width: min(100%, 320px); border: 1px solid var(--ink, #0d2137); background: var(--surface, #fff); overflow: hidden; }
.invite-shot img { display: block; width: 100%; height: auto; }
.invite-arrival .invite-shot { max-height: 46vh; max-height: 46svh; }
.invite-foot { border-top: 1px solid var(--line, #d7dedb); font-size: 14px; color: var(--muted, #536770); }
.invite-foot .invite-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding: 14px 0 22px; }
.invite-foot a { color: var(--accent, #20614f); font-weight: 650; }
.invite-foot .foot-languages { display: flex; flex-wrap: wrap; gap: .25rem .5rem; }
.invite-foot .foot-languages a { color: inherit; font-weight: 500; text-decoration: none; }
.invite-foot .foot-languages a[aria-current="page"] { font-weight: 700; text-decoration: underline; color: var(--ink, #0d2137); }

/* « Come funziona »: a thin bar, « Salta » always in reach. */
.invite-bar { background: var(--navy, #0d2137); color: var(--hero-text, #fff); position: sticky; top: 0; z-index: 2; }
.invite-bar .invite-wrap { display: flex; align-items: center; gap: 14px; min-height: 56px; }
.invite-bar .invite-brand { margin: 0; margin-right: auto; }
.invite-count { margin: 0; font: 650 15px/1 var(--font-display), sans-serif; opacity: .85; font-variant-numeric: tabular-nums; }
.invite-skip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius-xs, 3px); background: var(--foam, #bce8da); color: var(--navy, #0d2137); text-decoration: none; font: 750 16px/1 var(--font-display), sans-serif; }
.invite-dots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-block: 0; padding: 0 0 10px; list-style: none; }
.invite-dots li { height: 4px; background: rgba(255, 255, 255, .25); }
.invite-dots li.done { background: var(--foam, #bce8da); }
.invite-step h1 { margin: 0; font-size: clamp(30px, 7vw, 48px); font-weight: 760; letter-spacing: -0.03em; line-height: 1; color: var(--ink, #0d2137); }
.invite-sentence { margin: 0; font: 600 clamp(19px, 4.4vw, 24px)/1.3 var(--font-display), sans-serif; }
.invite-nav { display: grid; gap: 10px; margin-top: 4px; }
.invite-step .invite-shot { max-height: 44vh; max-height: 44svh; }

/* Screens 2 and 4 show the demo's own components (scuola.css is served to everyone for them), inert and at their own size:
   the phone layout of the dashboard, whatever the window: the four figures two by two, the partner table in short rows. */
.invite .invite-shot.invite-live { width: min(100%, 360px); max-height: none; height: auto; overflow: visible; background: var(--bg, #faf9f6); }
.invite-live-frame { box-sizing: border-box; width: 100%; padding: 14px; pointer-events: none; }
.invite-live h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.15; letter-spacing: -.02em; }
.invite-live .figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--ink, #0d2137); }
.invite-live .figure { display: grid; align-content: start; gap: 4px; min-width: 0; padding: 12px; border-radius: 0; font-size: 14px; }
.invite-live .figure + .figure { border-left: 1px solid var(--line, #d7dedb); }
.invite-live .figure:nth-child(3) { border-left: 0; }
.invite-live .figure:nth-child(n+3) { border-top: 1px solid var(--line, #d7dedb); }
.invite-live .figure strong { font-size: 40px; line-height: .96; }
.invite-live .figure small { font-size: 13px; }
.invite-live .invite-cards { grid-template-columns: 1fr; gap: 18px; }
.invite-live .card-acts .share { display: none; }
.invite-live .partners-block { margin-top: 18px; }
.invite-live .partners-block h2 { padding-bottom: 6px; border-bottom: 2px solid var(--ink, #0d2137); }
.invite-live .partners { width: 100%; border-collapse: collapse; font-size: 14px; }
.invite-live .partners th, .invite-live .partners td { padding: 8px 6px; text-align: start; border-bottom: 1px solid var(--line, #d7dedb); }
.invite-live .partners thead th { font-size: 12px; color: var(--muted, #536770); }
.invite-live .partners tbody th { font-size: 15px; line-height: 1.2; }
.invite-live .partners td:nth-child(n+3), .invite-live .partners thead th:nth-child(n+3) { text-align: end; }
.invite-live .partners tfoot th, .invite-live .partners tfoot td { font-weight: 750; border-bottom: 0; border-top: 1px solid var(--ink, #0d2137); }
.invite-live .rule, .invite-live .earned-block { display: none; }


/* Activation of a prepared school. */
.invite-form { padding: 24px 0 40px; }
.invite-form form { display: grid; gap: 10px; max-width: 32rem; }
.invite-form p { margin: 0 0 6px; }
.invite-form label { font: 650 15px/1.3 var(--font-display), sans-serif; }
.invite-form input[type=email] { box-sizing: border-box; width: 100%; height: 50px; padding: 0 12px; font: 600 17px/1.2 var(--font-display), sans-serif; color: var(--ink, #0d2137); background: var(--surface, #fff); border: 1px solid var(--ink, #0d2137); border-radius: var(--radius-xs, 3px); }
.invite-form input[aria-invalid] { border: 2px solid #a3291d; }
.invite-terms { display: flex; align-items: flex-start; gap: 10px; font-weight: 500 !important; font-family: inherit !important; font-size: 16px !important; }
.invite-terms input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent, #20614f); flex: none; }
.invite-terms a { color: var(--accent, #20614f); font-weight: 650; }
.invite-err { margin: 0; color: #a3291d; font-weight: 600; font-size: 15px; }
.invite-summary { padding: 12px 14px; border-left: 6px solid #a3291d; background: #f8e3df; color: #6e1b12; font-weight: 600; }
.invite-form .invite-go { margin-top: 8px; }

@media (min-width: 900px) {
  .invite-arrival, .invite-step { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; padding-top: 44px; align-items: center; }
  .invite-text { max-width: 34rem; }
  .invite-go, .invite-how, .invite-back { justify-self: start; min-width: 22rem; }
  .invite-arrival .invite-shot, .invite-step .invite-shot { max-height: 62vh; }
  .invite-head .invite-wrap { padding-block: 40px 36px; }
}
@media (max-width: 420px) {
  .invite-arrival, .invite-step { gap: 20px; padding-top: 20px; }
  .invite-free strong { font-size: 44px; }
}

/* Without a Pass in the link: the kinds of school, one tap each; the sign-up stays one step below. */
.invite-types { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.invite-type { box-sizing: border-box; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--ink, #0d2137); border-left: 6px solid var(--foam, #bce8da); border-radius: var(--radius-xs, 3px); background: var(--surface, #fff); color: var(--ink, #0d2137); text-decoration: none; font: 700 18px/1.2 var(--font-display), sans-serif; }
.invite-type small { flex: none; font: 650 15px/1.2 var(--font-display), sans-serif; color: var(--accent, #20614f); }
.invite-type:hover, .invite-type:focus-visible { background: var(--foam, #bce8da); outline: 3px solid var(--accent, #20614f); outline-offset: 2px; }
.invite-choice .invite-go { background: transparent; color: var(--ink, #0d2137); border: 1px solid var(--ink, #0d2137); min-height: 48px; }
.invite-kind { margin: 0; font: 650 16px/1.3 var(--font-display), sans-serif; color: var(--accent, #20614f); }
.invite-kind strong { font-weight: 800; }
