/* =============================================================================
   EVENTI — elenco pubblico, Area Eventi, modulo di iscrizione.
   L'idea è una sola: ogni evento è un biglietto. Il tagliando porta il giorno
   sulle cinque righe del pentagramma; tutto il resto resta sobrio.
   Colori dal tema della scuola (partials/eventi-testa.ejs). Caricato per ultimo.
   ============================================================================= */
body.ev, body.ev-modulo {
  --ev-ink: var(--pg-ink);
  --ev-muted: var(--pg-muted);
  --ev-stub: var(--pg-accent-ink);
  --ev-line: var(--pg-line-soft);
  --ev-card: var(--pg-card);
  background: var(--ev-paper);
  color: var(--ev-ink);
  font-family: var(--pg-body);
  line-height: 1.5;
  min-height: 100vh;
  margin: 0;
  padding-bottom: 48px;
}
body.ev *, body.ev *::before, body.ev *::after { box-sizing: border-box; }
body.ev a:focus-visible, body.ev button:focus-visible, body.ev summary:focus-visible,
body.ev input:focus-visible, .ev-dialog button:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ev-stub) 45%, transparent);
  outline-offset: 2px;
}

.ev-wrap { max-width: 1060px; margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------- barra ------ */
.ev-bar { background: var(--ev-card); border-bottom: 1px solid var(--ev-line); }
.ev-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.ev-brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--pg-display); font-weight: 600; font-size: 1.05rem; color: var(--ev-ink); text-decoration: none; }
.ev-brand img { height: 34px; width: auto; flex: none; }
.ev-brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-nav { display: flex; align-items: center; gap: 4px; flex: none; }
.ev-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--ev-ink); font-weight: 500; font-size: .95rem; text-decoration: none; }
.ev-nav a:hover { background: var(--pg-accent-wash); }
.ev-user { color: var(--ev-muted); font-size: .92rem; }
.ev-logout { min-height: 44px; padding: 0 14px; background: none; border: 1px solid var(--pg-line); border-radius: 8px; color: var(--ev-ink); font: inherit; font-weight: 500; cursor: pointer; }
.ev-logout:hover { background: var(--pg-accent-wash); }

/* selettore lingua */
.lang-selector { position: relative; display: inline-flex; }
.lang-current { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; cursor: pointer; border-radius: 8px; font-size: 1.1rem; user-select: none; }
.lang-current:hover { background: var(--pg-accent-wash); }
.lang-current .arrow { font-size: .6rem; transition: transform .2s; }
.lang-selector.open .lang-current .arrow { transform: rotate(180deg); }
.lang-dropdown { position: absolute; top: calc(100% + 4px); right: 0; z-index: 50; min-width: 170px; overflow: hidden; display: none; background: var(--ev-card); border: 1px solid var(--pg-line); border-radius: 10px; box-shadow: var(--pg-shadow-lift); }
.lang-selector.open .lang-dropdown { display: block; }
.lang-option { display: flex; align-items: center; gap: 10px; padding: 11px 16px; cursor: pointer; font-size: .95rem; }
.lang-option:hover { background: var(--pg-accent-wash); }
.lang-option.active { background: var(--ev-stub); color: #fff; font-weight: 600; }

/* ------------------------------------------------------------- testata ---- */
.ev-intro { padding: 48px 0 30px; }
.ev-intro h1 { margin: 0; font-family: var(--pg-display); font-weight: 800; font-size: clamp(2.3rem, 7vw, 4.2rem); line-height: 1.02; letter-spacing: -.035em; color: var(--ev-stub); }
.ev-intro p { max-width: 60ch; margin: 14px 0 0; color: var(--ev-muted); font-size: 1.05rem; }

/* ------------------------------------------------------------- biglietto -- */
.ev-list { display: flex; flex-direction: column; gap: 22px; }
.ev-ticket { display: flex; overflow: hidden; background: var(--ev-card); border-radius: 14px; }
.ev-stub { position: relative; flex: 0 0 208px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 26px 24px; background: var(--ev-stub); color: #fff; border-right: 2px dashed var(--ev-paper); }
.ev-stub::before, .ev-stub::after { content: ""; position: absolute; right: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--ev-paper); }
.ev-stub::before { top: -11px; }
.ev-stub::after { bottom: -11px; }
.ev-day-wrap { position: relative; display: flex; align-items: center; min-height: 86px; }
.ev-stave { position: absolute; left: -24px; right: -24px; top: 50%; height: 45px; transform: translateY(-50%); background: repeating-linear-gradient(to bottom, rgba(255,255,255,.34) 0 1px, transparent 1px 11px); }
.ev-day { position: relative; font-family: var(--pg-display); font-weight: 800; font-size: 5.4rem; line-height: 1; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.ev-stub-text { display: flex; flex-direction: column; }
.ev-dow { font-weight: 600; font-size: .98rem; }
.ev-dow::first-letter { text-transform: uppercase; }
.ev-month { font-size: .95rem; }
.ev-time { margin-top: 6px; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.ev-nodate { font-family: var(--pg-display); font-weight: 600; font-size: 1.15rem; line-height: 1.2; }

.ev-body { flex: 1 1 auto; min-width: 0; padding: 26px 28px; }
.ev-body h2 { margin: 0; font-family: var(--pg-display); font-weight: 600; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.15; letter-spacing: -.02em; }
.ev-place { margin: 8px 0 0; font-weight: 500; color: var(--ev-ink); }
.ev-desc { margin: 12px 0 0; max-width: 62ch; color: var(--ev-muted); white-space: pre-line; }
.ev-prices { list-style: none; margin: 16px 0 0; padding: 0; max-width: 420px; clear: both; }
.ev-prices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; padding: 8px 0; border-top: 1px solid var(--ev-line); }
.ev-prices b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ev-prices small { flex-basis: 100%; color: var(--ev-muted); font-size: .86rem; }

.ev-act { flex: 0 0 248px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 26px 24px; border-left: 1px solid var(--ev-line); }
.ev-deadline { margin: 0 0 4px; color: var(--ev-muted); font-size: .9rem; }
.ev-ticket.is-closed .ev-stub { background: color-mix(in srgb, var(--ev-stub) 45%, #8a8d96); }

.ev-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 0 18px; background: var(--ev-stub); color: #fff; border: 1px solid var(--ev-stub); border-radius: 10px; font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.ev-btn:hover { background: color-mix(in srgb, var(--ev-stub) 86%, black); }
.ev-btn--ghost { background: transparent; color: var(--ev-stub); }
.ev-btn--ghost:hover { background: var(--pg-accent-wash); }
.ev-btn[disabled] { background: var(--pg-line-soft); border-color: var(--pg-line-soft); color: var(--ev-muted); cursor: not-allowed; }

/* locandina: l'immagine dell'evento, intera e grande */
.ev-locandina { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--ev-stub) 12%, white); }
.ev-locandina[hidden] { display: none; }
.ev-locandina img { display: block; width: 100%; height: 100%; object-fit: contain; }
.has-poster .ev-day-wrap { min-height: 54px; }
.has-poster .ev-day { font-size: 3.4rem; }
.has-poster .ev-stave { height: 34px; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.34) 0 1px, transparent 1px 8px); }
.has-poster .ev-dow, .has-poster .ev-month, .has-poster .ev-time { font-size: .88rem; }
.has-poster .ev-time { margin-top: 2px; }
.has-poster .ev-body h2 { font-size: 1.25rem; }
@media (min-width: 821px) {
  .ev-ticket.has-poster { display: grid; grid-template-columns: 210px minmax(0, 1fr); grid-template-rows: auto 1fr auto; grid-template-areas: "poster stub" "poster body" "poster act"; }
  .has-poster .ev-locandina { grid-area: poster; }
  .has-poster .ev-locandina img { position: absolute; inset: 0; }
  .has-poster .ev-locandina { position: relative; min-height: 297px; }
  .has-poster .ev-stub { grid-area: stub; flex-direction: row; justify-content: flex-start; align-items: center; gap: 18px; padding: 8px 24px; border-right: 0; border-bottom: 2px dashed var(--ev-paper); }
  .has-poster .ev-stub::before, .has-poster .ev-stub::after { top: auto; bottom: -12px; }
  .has-poster .ev-stub::before { left: -11px; right: auto; }
  .has-poster .ev-stub::after { right: -11px; }
  .has-poster .ev-stub-text { flex-direction: row; flex-wrap: wrap; gap: 0 12px; }
  .has-poster .ev-stave { left: -24px; right: -10px; }
  .has-poster .ev-body { grid-area: body; padding: 16px 24px 8px; }
  .has-poster .ev-desc { margin-top: 6px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .has-poster .ev-prices { margin-top: 10px; }
  .has-poster .ev-prices li { padding: 6px 0; }
  .ev-list .has-poster .ev-act { grid-area: act; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 24px 16px; border-left: 0; }
  .ev-list .has-poster .ev-deadline { margin: 0; }
  .ev-list .has-poster .ev-btn { flex: none; width: auto; min-width: 150px; }
  .ev-reg .ev-ticket.has-poster { grid-template-columns: 200px minmax(0, 1fr) 248px; grid-template-rows: auto 1fr; grid-template-areas: "poster stub stub" "poster body act"; }
  .ev-reg .has-poster .ev-act { grid-area: act; }
}
@media (max-width: 820px) {
  /* prima il giorno dell'evento, poi la locandina */
  .has-poster .ev-locandina { order: 1; height: 240px; }
  .has-poster .ev-stub { order: 0; z-index: 2; padding: 8px 22px; gap: 14px; }
  .has-poster .ev-body { order: 2; }
  .has-poster .ev-act { order: 3; }
  .has-poster .ev-body { padding-top: 14px; }
  .has-poster .ev-desc { margin-top: 6px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
  .has-poster .ev-prices { margin-top: 10px; }
  .has-poster .ev-act { padding-top: 10px; }
}

.has-poster .ev-desc[onclick] { cursor: pointer; }
.has-poster .ev-desc.is-open { display: block; overflow: visible; }

/* stati vuoti e area iscritti */
.ev-state { padding: 44px 24px; background: var(--ev-card); border-radius: 14px; text-align: center; }
.ev-state h2, .ev-state h3 { margin: 0 0 6px; font-family: var(--pg-display); font-weight: 600; font-size: 1.3rem; }
.ev-state p { margin: 0 auto; max-width: 52ch; color: var(--ev-muted); }
.ev-state .ev-btn { display: inline-flex; width: auto; margin-top: 18px; }
.ev-enrolled { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--pg-line); }
.ev-enrolled p { margin: 0; color: var(--ev-muted); }
.ev-enrolled .ev-btn { flex: none; width: auto; }

/* ------------------------------------------------------------- informativa */
.modal { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.8); }
body.ev .modal-content { display: flex; flex-direction: column; width: 100vw; height: 100vh; overflow: hidden; background: var(--ev-card); border: 0; border-radius: 0; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--ev-stub); color: #fff; }
.modal-title { margin: 0; font-size: 1.1rem; font-weight: 600; }
.close { width: 44px; height: 44px; background: none; border: 0; border-radius: 50%; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.close:hover { background: rgba(255,255,255,.2); }
.modal-body { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 10px; background: #000; overflow: hidden; }
.informativa-image { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; }
.pdf-viewer-container { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; width: min(460px, 100%); padding: 32px 24px; background: var(--ev-card); border-radius: 14px; text-align: center; }
.pdf-icon { font-size: 3.4rem; }
.pdf-info h4 { margin: 0 0 4px; }
.pdf-info p { margin: 0; color: var(--ev-muted); }
.zoom-controls { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 10px; padding: 8px; background: rgba(0,0,0,.7); border-radius: 12px; }
.zoom-btn, .download-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); border-radius: 8px; color: #fff; font: inherit; font-size: .92rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.pdf-actions .download-btn { background: var(--ev-stub); border-color: var(--ev-stub); }

.ev-dialog { width: min(420px, calc(100vw - 32px)); padding: 24px; background: var(--pg-card); color: var(--pg-ink); border: 0; border-radius: 14px; font-family: var(--pg-body); box-shadow: var(--pg-shadow-lift); }
.ev-dialog::backdrop { background: rgba(0,0,0,.5); }
.ev-dialog p { margin: 0 0 18px; line-height: 1.5; white-space: pre-line; }

/* ------------------------------------------------------------- accesso ---- */
body.ev-login-page { display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; }
.ev-login { width: 100%; min-width: 0; max-width: 410px; }
.ev-login-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; text-align: center; }
.ev-login-brand img { display: block; max-width: 100%; max-height: 76px; width: auto; height: auto; object-fit: contain; }
.ev-login-brand h1 { margin: 0; font-family: var(--pg-display); font-weight: 800; font-size: 2rem; line-height: 1.05; letter-spacing: -.03em; color: var(--ev-stub); }
.ev-login-brand p { margin: 0; color: var(--ev-muted); }
.ev-panel { padding: 26px 24px; background: var(--ev-card); border-radius: 14px; }
.ev-field { margin-bottom: 16px; }
.ev-field label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .94rem; }
.ev-input { width: 100%; min-height: 48px; padding: 0 14px; background: #fff; border: 1px solid var(--pg-line); border-radius: 10px; color: var(--ev-ink); font: inherit; }
.ev-input:focus { outline: none; border-color: var(--ev-stub); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ev-stub) 20%, transparent); }
.ev-pass { position: relative; }
.ev-pass .ev-input { padding-right: 52px; }
.ev-eye { position: absolute; top: 2px; right: 2px; width: 44px; height: 44px; background: none; border: 0; font-size: 1.1rem; cursor: pointer; }
.ev-check { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px; font-size: .94rem; }
.ev-check input { width: 18px; height: 18px; accent-color: var(--ev-stub); }
.ev-check label { cursor: pointer; }
.ev-links { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.ev-link { min-height: 44px; background: none; border: 0; color: var(--ev-stub); font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ev-sub { margin-top: 12px; padding: 16px; background: var(--ev-paper); border-radius: 10px; }
.ev-sub h4 { margin: 0 0 8px; font-size: 1rem; }
.ev-sub p { margin: 0 0 12px; color: var(--ev-muted); font-size: .9rem; }
.ev-sub .ev-input { margin-bottom: 10px; }
.ev-sub .ev-code { text-align: center; font-size: 1.2rem; letter-spacing: 4px; }
.ev-row { display: flex; gap: 10px; }
.ev-row > * { flex: 1; }
.ev-help { margin: 18px 0 0; color: var(--ev-muted); font-size: .9rem; text-align: center; }
.ev-help strong { display: block; color: var(--ev-ink); }
.ev-back { display: block; margin-top: 12px; color: var(--ev-stub); font-weight: 500; text-align: center; }
.ev-flags { display: flex; justify-content: center; gap: 2px; margin-top: 22px; }
.ev-flag { min-width: 44px; min-height: 44px; background: none; border: 0; border-radius: 8px; font-size: 1.25rem; opacity: .55; cursor: pointer; }
.ev-flag:hover, .ev-flag.active { opacity: 1; background: var(--pg-accent-wash); }
.ev-login .error-message { margin-bottom: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--pg-danger) 9%, white); border-radius: 10px; color: var(--pg-danger); }
.login-btn { position: relative; }
.login-btn.loading::after { content: ""; position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: ev-spin 1s linear infinite; }
@keyframes ev-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .login-btn.loading::after { animation: none; } }

/* ------------------------------------------------------------- Area Eventi */
.ev-reg + .ev-reg { margin-top: 26px; }
.ev-number { margin: 4px 0 0; color: var(--ev-muted); font-size: .9rem; }
.ev-materials { margin-top: 12px; }
.ev-materials strong { display: block; }
.ev-materials a { color: var(--ev-stub); }
.ev-cert { display: inline-flex; width: auto; margin-top: 14px; }

.ev-sum { margin: 0; }
.ev-sum div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.ev-sum dt { color: var(--ev-muted); }
.ev-sum dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ev-sum .is-due { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--ev-line); }
.ev-sum .is-due dt { color: var(--ev-ink); font-weight: 600; }
.ev-sum .is-due dd { font-size: 1.25rem; color: var(--pg-warn); }
.ev-sum .is-paid dd { color: var(--pg-ok); }
.ev-paid { padding: 10px 12px; background: color-mix(in srgb, var(--pg-ok) 11%, white); border-radius: 10px; color: var(--pg-ok); font-weight: 600; text-align: center; }

.ev-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 24px; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--ev-line); }
.ev-details dt { color: var(--ev-muted); font-size: .86rem; }
.ev-details dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

.partecipanti-section { margin-top: 2px; padding: 18px 28px; background: var(--ev-card); border-radius: 14px; }
.partecipanti-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.partecipanti-title { font-family: var(--pg-display); font-weight: 600; font-size: 1.1rem; }
.partecipanti-badge { padding: 1px 9px; background: var(--ev-stub); border-radius: 20px; color: #fff; font-size: .8rem; font-weight: 600; }
.ev-strumento { margin: 14px 0 6px; font-weight: 600; font-size: .92rem; color: var(--ev-stub); }
.ev-strumento span { color: var(--ev-muted); font-weight: 400; }
.partecipanti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.partecipante-card { padding: 12px 14px; border: 1px solid var(--ev-line); border-radius: 10px; }
.partecipante-nome { margin-bottom: 4px; font-weight: 600; }
.partecipante-info { display: flex; flex-direction: column; gap: 2px; }
.partecipante-info-item { display: flex; gap: 6px; font-size: .88rem; }
.partecipante-info-label { min-width: 80px; color: var(--ev-muted); }
.view-toggle-btn { min-width: 36px; min-height: 36px; background: none; border: 1px solid var(--pg-line); border-radius: 6px; color: var(--ev-muted); cursor: pointer; }
.view-toggle-btn.active { background: var(--ev-stub); border-color: var(--ev-stub); color: #fff; }
.partecipanti-section.view-table .partecipanti-grid { display: table; width: 100%; border-collapse: separate; border-spacing: 0; }
.partecipanti-section.view-table .partecipante-card { display: table-row; }
.partecipanti-section.view-table .partecipante-nome { display: table-cell; padding: 8px 12px; border-bottom: 1px solid var(--ev-line); white-space: nowrap; }
.partecipanti-section.view-table .partecipante-info { display: table-cell; padding: 8px 12px; border-bottom: 1px solid var(--ev-line); }
.partecipanti-section.view-table .partecipante-info-item { display: inline-flex; margin-right: 16px; }
.partecipanti-section.view-table .partecipante-info-label { min-width: auto; }

.bank-modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; background: rgba(0,0,0,.5); }
.bank-modal-overlay.active { display: flex; }
.bank-modal { width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: var(--ev-card); border-radius: 14px; }
.bank-modal-header { padding: 20px 24px 0; }
.bank-modal-header h3 { margin: 0; font-family: var(--pg-display); font-weight: 600; font-size: 1.25rem; }
.bank-modal-amount { margin-top: 4px; font-family: var(--pg-display); font-weight: 800; font-size: 1.9rem; color: var(--ev-stub); }
.bank-modal-body { padding: 14px 24px; }
.bank-modal-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--ev-line); }
.bank-modal-row:last-child { border-bottom: 0; }
.bank-modal-label { flex: none; color: var(--ev-muted); font-size: .9rem; }
.bank-modal-value { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.bank-modal-value.iban { font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.bank-modal-footer { padding: 0 24px 22px; }
.ev-note { margin: 0 0 14px; color: var(--ev-muted); font-size: .92rem; }
.ev-payopts { display: flex; flex-direction: column; gap: 10px; }
.ev-payopt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 14px; border: 1px solid var(--pg-line); border-radius: 10px; font-weight: 600; cursor: pointer; }
.ev-payopt:has(input:checked) { border-color: var(--ev-stub); background: var(--pg-accent-wash); }
.ev-payopt span { display: flex; align-items: center; gap: 10px; }
.ev-payopt input { width: 18px; height: 18px; accent-color: var(--ev-stub); }
.ev-dash-title { padding: 34px 0 20px; }
.ev-dash-title h1 { margin: 0; font-family: var(--pg-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; letter-spacing: -.03em; color: var(--ev-stub); }
.ev-dash-title p { margin: 8px 0 0; color: var(--ev-muted); }

/* ------------------------------------------------------------- telefono --- */
@media (max-width: 820px) {
  .ev-ticket { flex-direction: column; }
  .ev-stub { flex: none; flex-direction: row; justify-content: flex-start; align-items: center; gap: 18px; padding: 16px 22px; border-right: 0; border-bottom: 2px dashed var(--ev-paper); }
  .ev-stub::before, .ev-stub::after { top: auto; bottom: -12px; }
  .ev-stub::before { left: -11px; right: auto; }
  .ev-stub::after { right: -11px; }
  .ev-day-wrap { min-height: 70px; }
  .ev-day { font-size: 4.5rem; }
  .ev-stave { left: -22px; right: -10px; }
  .ev-stub-text { position: relative; }
  .ev-body { padding: 20px 22px 4px; }
  .ev-act { flex: none; padding: 16px 22px 22px; border-left: 0; }
  .ev-details { padding: 14px 0 18px; }
  .partecipanti-section { padding: 16px 22px; }
  .ev-intro { padding: 30px 0 22px; }
  .ev-enrolled { flex-direction: column; align-items: stretch; }
  .ev-enrolled .ev-btn { width: 100%; }
  .ev-nav a { padding: 0 8px; font-size: .9rem; }
  .ev-user { display: none; }
  .view-toggle-btn.table-btn { display: none; }
  .ev-brand { font-size: .98rem; }
}

/* ------------------------------------------------- modulo di iscrizione ---- */
body.ev-modulo .header { background: var(--pg-card); backdrop-filter: none; box-shadow: none; border-bottom: 1px solid var(--pg-line-soft); }
body.ev-modulo .site-title { background: none; -webkit-text-fill-color: currentColor; color: var(--pg-ink); font-family: var(--pg-display); font-weight: 600; }
body.ev-modulo .back-link { color: var(--ev-stub); }
body.ev-modulo .event-hero { background: none; padding: 28px 0 8px; margin: 0; }
body.ev-modulo .event-logo-container { gap: 16px; color: var(--pg-ink); }
body.ev-modulo .event-logo { width: 120px; height: 64px; flex: none; font-size: 2rem; }
body.ev-modulo .event-logo img { object-fit: contain; mix-blend-mode: normal; filter: none; border-radius: 0; }
body.ev-modulo .event-logo-container h1 { color: var(--ev-stub); font-family: var(--pg-display); font-weight: 800; font-size: clamp(1.7rem, 5vw, 2.6rem); line-height: 1.08; letter-spacing: -.03em; text-shadow: none; }
body.ev-modulo .main-content { padding-top: 12px; }
body.ev-modulo .form-container { border-radius: 14px; box-shadow: none; margin-top: 8px; }
body.ev-modulo .form-header { background: none; color: var(--pg-ink); padding: 20px 28px 0; text-align: left; }
body.ev-modulo .form-header h1 { margin: 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
body.ev-modulo .steps-indicator { background: none; border-bottom: 1px solid var(--pg-line-soft); }
body.ev-modulo .btn-primary { background: var(--ev-stub); border-color: var(--ev-stub); color: #fff; border-radius: 10px; }
body.ev-modulo .btn-secondary { border-radius: 10px; }
body.ev-modulo .mobile-dot.active { animation: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ev-stub) 18%, transparent); }
@media (max-width: 767px) {
  body.ev-modulo .event-hero .container { padding: 0 20px; }
  body.ev-modulo .form-container { border-radius: 0; margin-top: 12px; }
  body.ev-modulo .form-header { padding: 18px 24px 0; }
}

@media (max-width: 820px) { .ev-nav a.ev-nav-home { display: none; } }
