/*
 * Stile di appunti.associazionesud.com.
 * Ripreso dal sito principale (associazionesud.com): stesso header sticky, stessa striscia
 * "Torna a...", stesso hero, stesse schede arrotondate con bordo sottile, stessi form e footer scuro.
 * Palette SUD: #005687 (primario), #00466f (hover), #1B6FA8 (accento), #e3eefa / #f1f6fc (tinte),
 * bordi #d6dbe2. Font: Poppins (titoli grandi), Lexend (titoli piccoli), Roboto (testo).
 * Tutte le classi hanno prefisso "ap-" e non dipendono da Tailwind.
 */
:root {
  --ap-blu: #005687;
  --ap-blu-s: #00466f;
  --ap-blu-c: #1b6fa8;
  --ap-tinta: #e3eefa;
  --ap-tinta2: #f1f6fc;
  --ap-bordo: #d6dbe2;
  --ap-testo: #1a1c1e;
  --ap-testo2: #41474f;
  --ap-muto: #576066;
  --ap-err: #b3261e;
  --ap-ombra: 0 2px 10px rgba(0, 40, 80, 0.06);
  --ap-z-header: 50;
  --ap-z-toast: 200;
  --ap-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

body.ap {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f8f9ff;
  color: #0d1c2e;
  font-family: "Roboto", sans-serif;
  -webkit-font-smoothing: antialiased;
}
html { scroll-padding-top: 110px; scroll-behavior: smooth; }
.ap > main { flex: 1; }
.ap h1, .ap h2, .ap h3 { text-wrap: balance; }
.ap p { text-wrap: pretty; }
/* L'attributo hidden deve vincere sui display delle classi (es. .ap-form { display: grid }). */
.ap [hidden] { display: none !important; }
:where(.ap) a { color: inherit; }
:where(.ap) button { font-family: inherit; }

/* ---------- header e footer: stili del sito in assets/sito.css; qui restano solo i pezzi propri di Appunti ---------- */
.sud-brand { margin-left: 0.28em; }
.ap-utente { display: none; align-items: center; gap: 8px; margin: 0 4px 0 8px; font-weight: 600; font-size: 14.5px; color: var(--ap-testo); }
@media (min-width: 640px) { .ap-utente { display: inline-flex; } }
.ap-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: var(--ap-tinta); color: var(--ap-blu); font-family: "Lexend", sans-serif; font-weight: 700; font-size: 14px; }

/* ---------- striscia "torna a" ---------- */
.ap-strip { background: #fff; border-bottom: 1px solid #e4e8ed; }
.ap-brc { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; max-width: 1200px; margin: 0 auto; padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--ap-muto); }
@media (min-width: 768px) { .ap-brc { padding: 12px 32px; } }
.ap-brc a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 14px 4px 10px; border-radius: 9999px; background: var(--ap-tinta); color: var(--ap-blu); font-weight: 700; text-decoration: none; }
.ap-brc a:hover { background: #d3e5f8; }
.ap-brc .ap-sep { width: 1px; height: 20px; background: var(--ap-bordo); margin: 0 10px; }
.ap-brc [aria-current] { color: var(--ap-testo); font-weight: 700; }

/* ---------- contenuto ---------- */
.ap-main { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 28px 16px 56px; box-sizing: border-box; }
@media (min-width: 768px) { .ap-main { padding: 40px 32px 72px; } }
.ap-stretta { max-width: 760px; margin-left: auto; margin-right: auto; }

.ap-nota-cta { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ap-muto); }
.ap-nota-cta a { color: var(--ap-blu); font-weight: 700; text-decoration: underline; }
.ap-nota-cta { max-width: 34rem; }
.ap-lead { margin: 0; line-height: 1.5; color: #0d1c2e; }
.ap-cta-riga { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }

.ap-titolo { margin: 0 0 8px; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 32px; line-height: 1.12; letter-spacing: -0.015em; color: var(--ap-blu); overflow-wrap: anywhere; }
@media (min-width: 768px) { .ap-titolo { font-size: 44px; } }
.ap-sottotit { margin: 0 0 22px; max-width: 46rem; font-size: 17px; line-height: 1.5; color: var(--ap-testo2); }
.ap-sez { margin: 40px 0 14px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 24px; color: var(--ap-blu); }
.ap-sez-sm { margin: 0 0 6px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 20px; color: var(--ap-blu); }

/* ---------- bottoni ---------- */
.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 30px; border: 2px solid var(--ap-blu); border-radius: 9999px; background: var(--ap-blu); color: #fff; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 86, 135, 0.28); transition: transform 150ms ease, background 150ms ease; }
.ap-btn:hover { background: var(--ap-blu-s); border-color: var(--ap-blu-s); transform: translateY(-1px); }
.ap-btn:active { transform: translateY(0); }
.ap-btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.ap-btn .material-symbols-outlined { font-size: 22px; }
.ap-btn-sec { background: #fff; color: var(--ap-blu); box-shadow: none; }
.ap-btn-sec:hover { background: var(--ap-tinta2); color: var(--ap-blu-s); }
.ap-btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; box-shadow: none; }
.ap-btn-blocco { width: 100%; }
.ap-testolink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px; border: 0; background: none; color: var(--ap-blu); font-weight: 700; font-size: 15px; text-decoration: underline; cursor: pointer; }
.ap-testolink[disabled] { color: var(--ap-muto); text-decoration: none; cursor: default; }
.ap a:focus-visible, .ap button:focus-visible, .ap summary:focus-visible, .ap input:focus-visible, .ap select:focus-visible, .ap textarea:focus-visible { outline: 3px solid var(--ap-blu); outline-offset: 2px; }

/* ---------- schede ---------- */
.ap-card { position: relative; background: #fff; border: 1px solid var(--ap-bordo); border-radius: 20px; padding: 22px 20px; box-shadow: var(--ap-ombra); }
@media (min-width: 768px) { .ap-card { padding: 26px 28px; } }
.ap-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ap-blu-c); color: #fff; margin-bottom: 12px; }
.ap-card h3 { margin: 0 0 6px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 20px; color: var(--ap-testo); }
.ap-card p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ap-testo2); }
.ap-vuoto { grid-column: 1 / -1; padding: 28px 20px; border-radius: 20px; background: #fff; border: 1px dashed #b9c2cc; text-align: center; color: var(--ap-testo2); font-size: 16px; line-height: 1.5; }
.ap-vuoto[hidden] { display: none; }
.ap-vuoto strong { display: block; margin-bottom: 4px; font-family: "Lexend", sans-serif; font-size: 18px; color: var(--ap-testo); }
.ap-vuoto a, .ap-vuoto button { color: var(--ap-blu); font-weight: 700; text-decoration: underline; background: none; border: 0; cursor: pointer; font-size: inherit; padding: 0; }

/* ---------- form ---------- */
.ap-form { display: grid; gap: 20px; }
.ap-campo > label, .ap-campo > .ap-et, .ap-campo > legend { display: block; margin: 0 0 8px; padding: 0; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 16px; color: var(--ap-testo); }
fieldset.ap-campo { border: 0; margin: 0; padding: 0; min-width: 0; }
.ap-opz { font-weight: 400; color: var(--ap-muto); font-family: "Roboto", sans-serif; }
.ap-aiuto { margin: -2px 0 8px; font-size: 13.5px; line-height: 1.4; color: var(--ap-muto); }
.ap-in { display: block; width: 100%; box-sizing: border-box; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid #858f9b; background-color: #fff; font-family: "Roboto", sans-serif; font-size: 16px; color: var(--ap-testo); box-shadow: none; }
select.ap-in { padding-right: 40px; }
textarea.ap-in { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.ap-in::placeholder { color: #5f6870; }
.ap-in:focus { outline: none; border-color: var(--ap-blu); box-shadow: 0 0 0 3px rgba(0, 86, 135, 0.18); }
.ap-in:disabled, .ap-in[readonly] { background-color: #eef1f5; color: #4b545c; }
.ap-in[aria-invalid="true"] { border-color: var(--ap-err); box-shadow: 0 0 0 1px var(--ap-err); }
input[type="file"].ap-in { height: auto; min-height: 50px; padding: 10px 12px; }
.ap-err { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; font-size: 14px; line-height: 1.4; color: var(--ap-err); }
.ap-err[hidden] { display: none; }
.ap-err .material-symbols-outlined { font-size: 18px; flex: none; margin-top: 1px; }
.ap-pill { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-pill label { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 8px 18px; border-radius: 9999px; border: 1px solid #858f9b; background: #fff; font-weight: 700; font-size: 14.5px; color: var(--ap-testo); cursor: pointer; margin: 0; font-family: "Roboto", sans-serif; transition: background 150ms ease, border-color 150ms ease; }
.ap-pill label:hover { border-color: var(--ap-blu); }
.ap-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-pill label:has(input:checked) { background: var(--ap-blu); border-color: var(--ap-blu); color: #fff; }
.ap-pill label:has(input:focus-visible) { outline: 3px solid var(--ap-blu); outline-offset: 2px; }
.ap-spunta { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--ap-bordo); font-size: 14.5px; line-height: 1.5; color: var(--ap-testo); cursor: pointer; }
.ap-spunta input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--ap-blu); color: var(--ap-blu); cursor: pointer; }
.ap-spunta a, .ap-link-testo { color: var(--ap-blu); font-weight: 700; text-decoration: underline; }
.ap-spunta strong { color: var(--ap-blu); }
.ap-msg { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--ap-tinta); border: 1px solid #b9d3ea; color: #00324f; font-size: 15px; line-height: 1.45; }
.ap-msg[hidden] { display: none; }
.ap-msg.ap-no { background: #fdeaea; border-color: #e6a3a3; color: #6d1414; }
.ap-msg.ap-ok { background: #e6f5ea; border-color: #8cc79a; color: #124d22; }
.ap-riepilogo { padding: 14px 16px; border-radius: 16px; background: #fdeaea; border: 1px solid #e6a3a3; color: #6d1414; }
.ap-riepilogo[hidden] { display: none; }
.ap-riepilogo h2 { margin: 0 0 6px; font-family: "Lexend", sans-serif; font-size: 16px; font-weight: 700; color: #6d1414; }
.ap-riepilogo ul { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.6; }
.ap-riepilogo a { color: #6d1414; font-weight: 700; text-decoration: underline; }
.ap-riepilogo:focus { outline: 3px solid var(--ap-err); outline-offset: 2px; }
.ap-trappola { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* passi di registrazione */

/* codice OTP */
.ap-otp-box { text-align: center; }
.ap-otp-ico { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 10px; border-radius: 9999px; background: var(--ap-tinta); color: var(--ap-blu); }
.ap-otp-ico .material-symbols-outlined { font-size: 32px; }
.ap-otp-box h2 { margin: 0 0 8px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 24px; color: var(--ap-testo); }
.ap-otp-box > p { margin: 0 auto 18px; max-width: 460px; font-size: 16px; line-height: 1.55; color: var(--ap-testo2); overflow-wrap: anywhere; }
.ap-otp-box > p strong { color: var(--ap-testo); }
.ap-otp { display: block; width: 100%; max-width: 320px; box-sizing: border-box; height: 68px; margin: 0 auto; padding: 0 0 0 0.5em; border-radius: 16px; border: 2px solid #858f9b; background: #fff; text-align: center; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 32px; letter-spacing: 0.5em; color: var(--ap-testo); }
.ap-otp:focus { outline: none; border-color: var(--ap-blu); box-shadow: 0 0 0 3px rgba(0, 86, 135, 0.18); }
.ap-otp[aria-invalid="true"] { border-color: var(--ap-err); box-shadow: 0 0 0 1px var(--ap-err); }
.ap-otp-box .ap-err { justify-content: center; }
.ap-otp-az { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 14px; }
.ap-mail { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--ap-tinta2); border: 1px solid var(--ap-bordo); font-size: 15px; color: var(--ap-testo); overflow-wrap: anywhere; }
.ap-mail .material-symbols-outlined { color: #1b7a34; font-size: 22px; }

/* ---------- elenco materie ---------- */
@media (min-width: 900px) { .ap-testa-lista { grid-template-columns: 1fr minmax(280px, 380px); align-items: end; } }
.ap-cerca { position: relative; }
.ap-cerca .material-symbols-outlined { position: absolute; left: 16px; top: 14px; color: var(--ap-muto); pointer-events: none; }
.ap-cerca input { width: 100%; box-sizing: border-box; height: 54px; padding: 0 16px 0 48px; border-radius: 9999px; border: 1px solid #858f9b; background: #fff; font-size: 16px; color: var(--ap-testo); box-shadow: var(--ap-ombra); }
.ap-cerca input:focus { outline: none; border-color: var(--ap-blu); box-shadow: 0 0 0 3px rgba(0, 86, 135, 0.18); }
.ap-chips { display: flex; gap: 8px; margin: 0 -16px 22px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 40px), transparent 100%); }
.ap-chips::-webkit-scrollbar { display: none; }
.ap-chips.ap-trascina-chips { cursor: grabbing; user-select: none; }
@media (min-width: 768px) { .ap-chips { margin: 0 0 22px; padding: 2px 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent 100%); } }
.ap-chip { flex: none; min-height: 44px; padding: 8px 18px; border-radius: 9999px; border: 1px solid transparent; background: #e9f0f8; font-weight: 700; font-size: 14.5px; color: var(--ap-blu); cursor: pointer; white-space: nowrap; transition: background 150ms ease, border-color 150ms ease, color 150ms ease; }
.ap-chip:hover { background: #d9e7f6; }
.ap-chip[aria-pressed="true"]:hover { background: var(--ap-blu-s); }
.ap-chip[aria-pressed="true"] { background: var(--ap-blu); border-color: var(--ap-blu); color: #fff; }
.ap-griglia { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ap-griglia { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1024px) { .ap-griglia { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ap-sk { border-radius: 20px; min-height: 124px; background: linear-gradient(90deg, #eef1f5, #f8fafc, #eef1f5); background-size: 200% 100%; animation: ap-sk 1.4s linear infinite; border: 1px solid #e4e8ed; }
@keyframes ap-sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.ap-nuova { max-width: 560px; margin-top: 36px; }

/* ---------- pagina materia ---------- */
.ap-meta { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ap-muto); }
.ap-meta .material-symbols-outlined { font-size: 18px; color: var(--ap-blu-c); }
.ap-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 8px; background: #e6f5ea; border: 1px solid #8cc79a; color: #124d22; font-size: 12.5px; font-weight: 700; }
.ap-badge .material-symbols-outlined { font-size: 16px; }

/* dialogo segnalazione e avvisi */
.ap-dlg { width: min(520px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--ap-bordo); border-radius: 20px; box-shadow: 0 18px 40px rgba(0, 30, 55, 0.3); color: var(--ap-testo); }
.ap-dlg::backdrop { background: rgba(13, 28, 46, 0.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ap-dlg form { display: grid; gap: 14px; padding: 22px 20px 20px; }
.ap-dlg h2 { margin: 0; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 22px; color: var(--ap-blu); }
.ap-dlg p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ap-testo2); }
.ap-dlg-az { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.ap-toast { position: fixed; left: 50%; bottom: 24px; z-index: var(--ap-z-toast); max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 16px; background: #233144; color: #eaf1ff; font-size: 15px; line-height: 1.4; box-shadow: 0 10px 28px rgba(0, 30, 55, 0.35); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity 200ms ease, transform 200ms ease; }
.ap-toast.ap-su { opacity: 1; transform: translate(-50%, 0); }
.ap-toast.ap-no { background: #6d1414; color: #fff; }

/*
 * Scala dei raggi (regola unica per tutte le pagine):
 * bottoni, chip e segmenti = pillola; campi = 12px; contenitori e foto = 20px; etichette = 8px.
 */
.ap-contenitore { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
@media (min-width: 768px) { .ap-contenitore { padding: 0 32px; } }
.ap-coda { padding-bottom: 72px; }
.ap-clip { overflow-x: clip; }
.ap-centrato { text-align: center; max-width: none; }
.ap-su-di-se { justify-self: start; }
.ap-spazio-su { margin-top: 18px; }
.ap-stretta-md { max-width: 820px; margin-left: auto; margin-right: auto; }
.ap-cerca-largo { max-width: 520px; margin-bottom: 16px; }
.ap-stato-lista { margin: -8px 0 14px; }
.ap-card .ap-aiuto-su { margin: 0 0 14px; }
.ap-et-blocco { display: block; margin: 0 0 8px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 16px; color: var(--ap-testo); }
.ap-icona-sm { font-size: 18px; }
.ap-gruppo { display: grid; gap: 12px; }

/* ---------- home: fascia iniziale ---------- */
.ap-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; font-weight: 700; font-size: 15px; color: var(--ap-blu); }
.ap-eyebrow .material-symbols-outlined { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ap-tinta); font-size: 20px; }
/* fondo con righe da quaderno che sfumano verso il basso e due aloni di colore */
.ap-fascia { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid #e4e8ed; background: radial-gradient(900px 420px at 88% -10%, rgba(27, 111, 168, 0.16), transparent 70%), radial-gradient(700px 380px at -5% 0%, rgba(0, 86, 135, 0.07), transparent 70%), #f8f9ff; }
.ap-fascia::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(0, 86, 135, 0.09) 31px 32px); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 92%); mask-image: linear-gradient(to bottom, #000 0%, transparent 92%); }
.ap-hero2 { display: grid; gap: 36px; padding: 36px 0 44px; align-items: center; }
@media (min-width: 900px) { .ap-hero2 { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; padding: 72px 0 84px; } }
.ap-hero2 h1 { margin: 0 0 18px; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 40px; line-height: 1.08; letter-spacing: -0.02em; color: var(--ap-blu); }
@media (min-width: 900px) { .ap-hero2 h1 { font-size: 54px; } }
@media (min-width: 1100px) { .ap-hero2 h1 { font-size: 62px; } }
.ap-hero2 .ap-lead { max-width: 34rem; font-size: 18px; }
@media (min-width: 768px) { .ap-hero2 .ap-lead { font-size: 20px; } }
.ap-lead strong { color: var(--ap-blu); font-weight: 500; }
.ap-hero2 .ap-cta-riga { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; }

/* anteprima: due appunti di esempio, appena inclinati */
.ap-anteprima { position: relative; width: 100%; max-width: 460px; min-height: 372px; margin: 0 auto; }
.ap-mock { position: absolute; width: 88%; box-sizing: border-box; padding: 18px 18px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--ap-bordo); box-shadow: 0 16px 36px rgba(0, 60, 100, 0.16); }
.ap-mock-1 { top: 0; left: 0; transform: rotate(-3deg); }
.ap-mock-2 { top: 178px; right: 0; transform: rotate(2.5deg); }
.ap-mock .ap-dip { display: inline-flex; padding: 3px 10px; border-radius: 8px; background: #eef3f9; font-size: 12.5px; font-weight: 700; color: var(--ap-blu); }
.ap-mock h3 { margin: 10px 0 6px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--ap-testo); }
.ap-mock p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ap-testo2); }
.ap-mock .ap-meta { margin-top: 12px; }
.ap-mock-testa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ap-didascalia { margin: 12px 0 0; font-size: 13px; color: var(--ap-muto); text-align: center; }
@media (max-width: 899px) {
  .ap-anteprima { min-height: 0; display: grid; }
  .ap-mock { position: relative; top: auto; width: 94%; }
  .ap-mock-2 { margin: -10px 0 0 auto; }
}

/* come funziona: titolo a sinistra, fasi a destra */
.ap-come { display: grid; gap: 28px; padding: 52px 0 12px; }
@media (min-width: 900px) { .ap-come { grid-template-columns: 340px minmax(0, 1fr); gap: 64px; padding: 80px 0 20px; } }
.ap-come h2 { margin: 0 0 10px; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 32px; line-height: 1.12; letter-spacing: -0.015em; color: var(--ap-blu); }
.ap-come > div > p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--ap-testo2); }
.ap-fasi { list-style: none; margin: 0; padding: 0; counter-reset: fase; }
.ap-fase { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding-bottom: 30px; }
.ap-fase::before { counter-increment: fase; content: counter(fase); display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--ap-blu-c); color: #fff; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 22px; }
.ap-fase::after { content: ""; position: absolute; left: 27px; top: 62px; bottom: 6px; width: 2px; border-radius: 2px; background: #cfdcea; }
.ap-fase:last-child { padding-bottom: 0; }
.ap-fase:last-child::after { display: none; }
.ap-fase h3 { margin: 6px 0 4px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 20px; color: var(--ap-testo); }
.ap-fase p { margin: 0; max-width: 40rem; font-size: 16px; line-height: 1.55; color: var(--ap-testo2); }

/* riquadro delle regole */
.ap-avviso { margin: 44px 0 0; max-width: 900px; padding: 24px 22px; border-radius: 20px; background: var(--ap-tinta); border: 1px solid #b9d3ea; }
@media (min-width: 900px) { .ap-avviso { margin-top: 56px; } }
.ap-avviso h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 20px; color: #00324f; }
.ap-avviso p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.6; color: #1a1c1e; }
.ap-avviso p:last-child { margin-bottom: 0; }
.ap-avviso strong { color: var(--ap-blu); }


/* ---------- stati vuoti ---------- */
.ap-vuoto-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 10px; border-radius: 16px; background: var(--ap-tinta); color: var(--ap-blu); }
.ap-vuoto-ico .material-symbols-outlined { font-size: 28px; }

/* ---------- pagina non trovata ---------- */
.ap-404 { max-width: 560px; margin: 0 auto; padding: 24px 0; text-align: left; }
.ap-404 .ap-codice { margin: 0 0 6px; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 88px; line-height: 1; letter-spacing: -0.03em; color: var(--ap-blu-c); }

/* ---------- movimento (ogni animazione ha un motivo: gerarchia all'ingresso, feedback al tocco) ---------- */
@keyframes ap-su { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ap-griglia > *, .ap-elenco > *, .ap-hero2 > div:first-child > * { animation: ap-su 400ms var(--ap-ease) both; }
.ap-griglia > :nth-child(2), .ap-elenco > :nth-child(2), .ap-hero2 > div:first-child > :nth-child(2) { animation-delay: 60ms; }
.ap-griglia > :nth-child(3), .ap-elenco > :nth-child(3), .ap-hero2 > div:first-child > :nth-child(3) { animation-delay: 120ms; }
.ap-griglia > :nth-child(4), .ap-elenco > :nth-child(4), .ap-hero2 > div:first-child > :nth-child(4) { animation-delay: 180ms; }
.ap-griglia > :nth-child(n+5), .ap-elenco > :nth-child(n+5) { animation-delay: 220ms; }
.ap-btn:active { transform: scale(0.98); }
.ap-chip:active, .ap-az:active, .ap-link:active, .ap-pill label:active, .ap-segm a:active { transform: scale(0.97); }
.ap-meta, .ap-nota-cta, .ap-passi { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  .ap-btn, .ap-materia, .ap-chip, .ap-az, .ap-link, .ap-toast, .ap-carica .ap-chev, .ap-vai, .ap-segm a, .ap-indietro { transition: none; }
  .ap-sk { animation: none; }
  .ap-griglia > *, .ap-elenco > *, .ap-hero2 > div:first-child > * { animation: none; }
  .ap-btn:active, .ap-chip:active, .ap-az:active, .ap-link:active, .ap-pill label:active, .ap-segm a:active { transform: none; }
  html { scroll-behavior: auto; }
}

/* campo password con pulsante Mostra/Nascondi */
.ap-pwd { position: relative; }
.ap-pwd .ap-in { padding-right: 96px; }
.ap-mostra { position: absolute; top: 3px; right: 4px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 9999px; background: none; color: var(--ap-blu); font-weight: 700; font-size: 14px; cursor: pointer; transition: background 150ms ease; }
.ap-mostra:hover { background: var(--ap-tinta); }

/* ---------- registrazione: scheda al centro su sfondo con la foto in blu SUD ---------- */
.ap-auth { position: relative; isolation: isolate; overflow: hidden; display: flex; justify-content: center; align-items: flex-start; min-height: calc(100dvh - 72px); box-sizing: border-box; padding: 24px 16px 64px; background: #002036; }
/* fondo animato in blu SUD: quattro aloni di colore che si spostano piano. Ancorato alla finestra (identico in registrazione e accesso).
   Si muove solo con transform (leggero per la GPU) e resta fermo con "riduci animazioni". */
.ap-fondo { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #00324f; }
.ap-fondo span { position: absolute; border-radius: 50%; will-change: transform; }
.ap-fondo span:nth-child(1) { width: 85vmax; height: 85vmax; top: -30vmax; left: -25vmax; background: radial-gradient(circle, rgba(0, 86, 135, 0.95) 0%, rgba(0, 86, 135, 0) 66%); animation: ap-onda-1 15s ease-in-out infinite alternate; }
.ap-fondo span:nth-child(2) { width: 75vmax; height: 75vmax; top: 5vh; right: -28vmax; background: radial-gradient(circle, rgba(27, 111, 168, 1) 0%, rgba(27, 111, 168, 0) 66%); animation: ap-onda-2 19s ease-in-out infinite alternate; }
.ap-fondo span:nth-child(3) { width: 90vmax; height: 90vmax; bottom: -42vmax; left: 8vw; background: radial-gradient(circle, rgba(0, 70, 111, 0.95) 0%, rgba(0, 70, 111, 0) 66%); animation: ap-onda-3 17s ease-in-out infinite alternate; }
.ap-fondo span:nth-child(4) { width: 42vmax; height: 42vmax; top: 28vh; left: 30vw; background: radial-gradient(circle, rgba(79, 163, 220, 0.8) 0%, rgba(79, 163, 220, 0) 68%); animation: ap-onda-4 22s ease-in-out infinite alternate; }
@keyframes ap-onda-1 { from { transform: translate3d(-12%, -8%, 0) scale(0.95); } to { transform: translate3d(38%, 30%, 0) scale(1.3); } }
@keyframes ap-onda-2 { from { transform: translate3d(14%, 8%, 0) scale(1.15); } to { transform: translate3d(-40%, -26%, 0) scale(0.85); } }
@keyframes ap-onda-3 { from { transform: translate3d(-20%, 10%, 0) scale(0.9); } to { transform: translate3d(32%, -22%, 0) scale(1.25); } }
@keyframes ap-onda-4 { from { transform: translate3d(-60%, -40%, 0) scale(0.9); } to { transform: translate3d(80%, 60%, 0) scale(1.5); } }
@media (prefers-reduced-motion: reduce) { .ap-fondo span { animation: none; } }
@media (min-width: 768px) { .ap-auth { padding: 40px 24px 80px; } }
.ap-auth-colonna { width: 100%; max-width: 680px; }
.ap-auth-form { box-sizing: border-box; padding: 28px 20px 32px; border-radius: 20px; background: #fff; box-shadow: 0 30px 70px rgba(0, 20, 34, 0.55), 0 10px 28px rgba(0, 20, 34, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06); }
@media (min-width: 768px) { .ap-auth-form { padding: 44px 52px 48px; } }
.ap-auth-form .ap-titolo { margin: 0 0 8px; text-align: center; font-size: 30px; }
@media (min-width: 768px) { .ap-auth-form .ap-titolo { font-size: 34px; } }
.ap-auth-form .ap-sottotit { margin: 0 auto 22px; max-width: 34rem; text-align: center; font-size: 16px; }
.ap-nowrap { white-space: nowrap; }

/* due colonne quando c'e' posto; un campo solo occupa tutta la riga (anche se l'altro e' nascosto) */
.ap-due { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ap-due > .ap-campo .ap-aiuto { margin: 6px 0 0; }

/* interruttore a tutta larghezza */
.ap-segm { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0 0 20px; padding: 4px; border-radius: 9999px; background: #eef3f9; border: 1px solid var(--ap-bordo); }
.ap-segm[hidden] { display: none; }
.ap-segm a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 12px; border-radius: 9999px; font-weight: 700; font-size: 14.5px; color: var(--ap-blu); text-align: center; text-decoration: none; transition: background 150ms ease; }
.ap-segm a:hover { background: #e3eefa; }
.ap-segm a[aria-current="page"] { background: #fff; box-shadow: 0 1px 4px rgba(0, 60, 100, 0.18); }


/* spunte senza riquadro: piu' leggere */
.ap-auth-form .ap-spunta { padding: 2px 0; border: 0; border-radius: 12px; background: none; font-size: 14px; }
.ap-auth-form .ap-spunta[data-errore="true"] { margin: -8px -12px; padding: 10px 12px; box-shadow: 0 0 0 2px var(--ap-err); }

/* avanzamento: testo "Passo X di N" + una barra per ogni passo */
.ap-avanzamento { margin: 0 0 24px; }
.ap-avanzamento[hidden] { display: none; }
.ap-passo-testo { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; color: var(--ap-blu); font-variant-numeric: tabular-nums; }
.ap-passi { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ap-passi li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--ap-bordo); transition: background 250ms ease; }
.ap-passi li[aria-current="step"]::before, .ap-passi li.ap-fatto::before { background: var(--ap-blu); }

/* passi del modulo: uno alla volta, ognuno entra da destra */
.ap-step { display: grid; gap: 20px; }
.ap-step[hidden] { display: none; }
.ap-step:not([hidden]) { animation: ap-passo-in 320ms var(--ap-ease) both; }
@keyframes ap-passo-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.ap-step-t { margin: 0; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 20px; color: var(--ap-testo); }
.ap-step-sub { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: var(--ap-muto); }
.ap-azioni-form { display: flex; gap: 10px; }
.ap-azioni-form .ap-btn { flex: 0 0 auto; }
.ap-azioni-form .ap-btn[type="submit"] { flex: 1 1 auto; }
@media (prefers-reduced-motion: reduce) { .ap-step:not([hidden]) { animation: none; } .ap-passi li::before { transition: none; } }

/* ---------- materie: vista "il mio corso / tutte" e gruppi per anno ---------- */
.ap-vista { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 0 0 14px; padding: 4px; border-radius: 9999px; background: #eef3f9; border: 1px solid var(--ap-bordo); max-width: 100%; }
.ap-vista[hidden] { display: none; }
.ap-vista button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 9999px; background: transparent; font-weight: 700; font-size: 14.5px; color: var(--ap-blu); cursor: pointer; transition: background 150ms ease; }
.ap-vista button:hover { background: #e3eefa; }
.ap-vista button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px rgba(0, 60, 100, 0.18); }
.ap-vista button:active { transform: scale(0.98); }
.ap-anno { margin: 0 0 28px; }
.ap-anno-t { margin: 0 0 12px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 20px; color: var(--ap-blu); }
.ap-altre { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- pagina materia ---------- */
.ap-mat-testa { background: #fff; border-bottom: 1px solid #e4e8ed; }
.ap-mat-testa-in { padding-top: 14px; padding-bottom: 30px; }
.ap-mat-brc { display: flex; align-items: center; margin: 0 0 16px -10px; }
.ap-mat-brc a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 9999px; font-weight: 700; font-size: 14.5px; color: var(--ap-blu); text-decoration: none; transition: background 150ms ease; }
.ap-mat-brc a:hover { background: var(--ap-tinta); }
.ap-mat-riga { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; }
.ap-mat-dip { display: inline-flex; margin: 0 0 12px; padding: 3px 10px; border-radius: 8px; background: var(--ap-tinta); color: var(--ap-blu); font-weight: 700; font-size: 13px; }
.ap-mat-titolo { margin: 0; font-family: "Poppins", sans-serif; font-weight: 800; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.06; letter-spacing: -0.02em; color: var(--ap-blu); overflow-wrap: anywhere; }
.ap-mat-stat { margin: 12px 0 0; min-height: 24px; font-size: 16px; color: var(--ap-testo2); font-variant-numeric: tabular-nums; }
.ap-mat-corpo { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 72px; }
@media (min-width: 1000px) { .ap-mat-corpo { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; } }
.ap-mat-elenco-testa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; }
.ap-mat-elenco-testa .ap-sez-sm { margin: 0; }
.ap-filtri { display: flex; gap: 8px; }
.ap-filtri[hidden] { display: none; }

/* elenco: una sola scheda contenitore, righe separate da una linea */
.ap-lista { list-style: none; margin: 0; padding: 0 22px; border-radius: 20px; background: #fff; border: 1px solid var(--ap-bordo); box-shadow: var(--ap-ombra); }
.ap-lista:empty { display: none; }
.ap-lista > .ap-sk { min-height: 92px; margin: 16px 0; border-radius: 12px; border: 0; }
.ap-riga { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; padding: 20px 0; }
.ap-riga + .ap-riga { border-top: 1px solid #e4e8ed; }
.ap-riga-vuota { padding: 22px 0; font-size: 15.5px; line-height: 1.5; color: var(--ap-testo2); }
.ap-tipo { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: var(--ap-tinta); color: var(--ap-blu); }
.ap-tipo .material-symbols-outlined { font-size: 28px; }
.ap-riga-testa { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ap-riga h3 { margin: 0; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--ap-testo); overflow-wrap: anywhere; }
.ap-riga-desc { margin: 6px 0 0; font-size: 15.5px; line-height: 1.55; color: #2c3238; overflow-wrap: anywhere; }
.ap-riga-meta { margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ap-muto); font-variant-numeric: tabular-nums; }
.ap-riga-az { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
@media (min-width: 720px) {
  .ap-riga { grid-template-columns: 52px minmax(0, 1fr) auto; align-items: start; }
  .ap-riga-az { grid-column: 3; grid-row: 1; margin-top: 0; }
}
.ap-icona-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 9999px; border: 1px solid var(--ap-bordo); background: #fff; color: var(--ap-testo2); cursor: pointer; transition: background 150ms ease, border-color 150ms ease, color 150ms ease; }
.ap-icona-btn:hover { background: var(--ap-tinta2); border-color: var(--ap-blu-c); color: var(--ap-blu); }
.ap-icona-btn:active { transform: scale(0.95); }
.ap-icona-btn .material-symbols-outlined { font-size: 22px; }

/* pannello di caricamento: sempre visibile accanto all'elenco su desktop; su telefono si apre con il pulsante */
.ap-carica-lato { display: none; }
.ap-carica-lato.ap-aperto { display: block; }
@media (min-width: 1000px) { .ap-carica-lato { display: block; position: sticky; top: 116px; } }
.ap-carica-card { padding: 22px 20px 24px; border-radius: 20px; background: #fff; border: 1px solid var(--ap-bordo); box-shadow: var(--ap-ombra); }
.ap-carica-card .ap-aiuto { margin: 0 0 16px; }
.ap-campo > label.ap-zona { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 20px 14px; font-family: "Roboto", sans-serif; font-weight: 400; font-size: 16px; border: 2px dashed #858f9b; border-radius: 12px; background: #f8fbff; text-align: center; cursor: pointer; transition: background 150ms ease, border-color 150ms ease; }
.ap-campo > label.ap-zona:hover, .ap-campo > label.ap-zona.ap-trascina { border-color: var(--ap-blu); background: var(--ap-tinta); }
.ap-zona:focus-within { outline: 3px solid var(--ap-blu); outline-offset: 2px; }
.ap-zona input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ap-zona-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 4px; border-radius: 12px; background: var(--ap-tinta); color: var(--ap-blu); }
.ap-zona.ap-pieno .ap-zona-ico { background: #fff; }
.ap-zona-testo { font-family: "Lexend", sans-serif; font-weight: 700; font-size: 16px; color: var(--ap-testo); overflow-wrap: anywhere; }
.ap-zona-sub { font-size: 13.5px; color: var(--ap-muto); }
.ap-campo > label.ap-zona.ap-pieno { border-style: solid; border-color: var(--ap-blu); background: var(--ap-tinta); }

/* movimento: le righe entrano in sequenza (gerarchia), l'icona e il pulsante rispondono al tocco */
.ap-lista > li { animation: ap-su 400ms var(--ap-ease) both; }
.ap-lista > li:nth-child(2) { animation-delay: 60ms; }
.ap-lista > li:nth-child(3) { animation-delay: 120ms; }
.ap-lista > li:nth-child(4) { animation-delay: 180ms; }
.ap-lista > li:nth-child(n+5) { animation-delay: 220ms; }
.ap-carica-lato.ap-aperto .ap-carica-card { animation: ap-su 320ms var(--ap-ease) both; }
@media (prefers-reduced-motion: reduce) {
  .ap-lista > li, .ap-carica-lato.ap-aperto .ap-carica-card { animation: none; }
  .ap-icona-btn, .ap-zona, .ap-mat-brc a { transition: none; }
  .ap-icona-btn:active { transform: none; }
}

/* ---------- materie: testata di benvenuto, schede morbide, "il tuo anno" ---------- */
.ap-mh { position: relative; isolation: isolate; color: #fff; background: #002036 url("https://www.associazionesud.com/images/tuttiquanti-m.webp") center 46% / cover no-repeat; }
@media (min-width: 701px) { .ap-mh { background-image: url("https://www.associazionesud.com/images/tuttiquanti.webp"); background-position: center 46%; } }
/* velo blu notte come quello della home di associazionesud.com, un po' piu' scuro perche' qui c'e' del testo sopra */
.ap-mh::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 32, 54, 0.72) 0%, rgba(0, 32, 54, 0.58) 50%, rgba(0, 20, 34, 0.9) 100%); }
.ap-mh-in { padding-top: 36px; padding-bottom: 40px; }
@media (min-width: 768px) { .ap-mh-in { padding-top: 60px; padding-bottom: 64px; } }
.ap-mh-titolo { margin: 0; font-family: "Poppins", sans-serif; font-weight: 800; font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; color: #fff; overflow-wrap: anywhere; }
.ap-mh-sub { margin: 10px 0 0; max-width: 34rem; font-size: 19px; line-height: 1.45; color: #e6f1fb; }
.ap-mh-profilo { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: #bcd9f2; }
.ap-mh-profilo[hidden] { display: none; }
.ap-mh-cerca { max-width: 640px; margin-top: 24px; }
.ap-mh-cerca input { height: 58px; border: 0; box-shadow: 0 12px 32px rgba(0, 20, 34, 0.4); font-size: 17px; }
.ap-mh-cerca input:focus { box-shadow: 0 12px 32px rgba(0, 20, 34, 0.4), 0 0 0 3px #fff; }
.ap-mh-cerca .material-symbols-outlined { top: 17px; }

.ap-lt-corpo { padding-top: 26px; padding-bottom: 72px; }
.ap-lt-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 16px; }
.ap-lt-barra .ap-vista { margin: 0; }
.ap-chip-solo { display: inline-flex; align-items: center; gap: 6px; }
.ap-chip-solo .material-symbols-outlined { font-size: 20px; }

.ap-mgriglia { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ap-mgriglia { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ap-mgriglia { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ap-mgriglia-grande { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ap-anno { margin: 0 0 34px; }
.ap-anno-mio { padding: 18px 16px 20px; margin-left: -16px; margin-right: -16px; border-radius: 20px; background: #eef4fb; }
@media (min-width: 768px) { .ap-anno-mio { padding: 22px 22px 24px; margin-left: -22px; margin-right: -22px; } }
.ap-tag-tuo { display: inline-block; margin-left: 10px; padding: 2px 10px; border-radius: 8px; background: var(--ap-blu); color: #fff; font-family: "Roboto", sans-serif; font-size: 12.5px; font-weight: 700; vertical-align: middle; }

.ap-mcard { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 16px 16px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--ap-bordo); box-shadow: var(--ap-ombra); text-decoration: none; color: inherit; transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease; }
.ap-mcard:hover { transform: translateY(-2px); border-color: var(--ap-blu-c); box-shadow: 0 10px 24px rgba(0, 60, 100, 0.14); }
.ap-mcard:active { transform: translateY(0); }
.ap-mcard-sigla { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; font-family: "Poppins", sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; background: var(--t, #e3eefa); color: var(--c, #005687); }
.ap-mcard-sigla[data-t="0"] { --t: #e3eefa; --c: #005687; }
.ap-mcard-sigla[data-t="1"] { --t: #d9ecfb; --c: #00466f; }
.ap-mcard-sigla[data-t="2"] { --t: #e8f0f7; --c: #1b6fa8; }
.ap-mcard-sigla[data-t="3"] { --t: #cee5ff; --c: #00324f; }
.ap-mcard-corpo { display: flex; flex-direction: column; min-width: 0; }
.ap-mcard-dip { font-size: 12.5px; font-weight: 700; color: var(--ap-muto); }
.ap-mcard h3 { margin: 2px 0 3px; font-family: "Lexend", sans-serif; font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--ap-testo); overflow-wrap: anywhere; }
.ap-mcard-note { font-size: 13.5px; color: var(--ap-muto); font-variant-numeric: tabular-nums; }
.ap-mcard-note.ap-ha-note { font-weight: 700; color: var(--ap-blu); }
.ap-mcard .ap-vai { color: var(--ap-blu-c); opacity: 0.7; transition: transform 150ms ease, opacity 150ms ease; }
.ap-mcard:hover .ap-vai { transform: translateX(3px); opacity: 1; }
.ap-mcard-grande { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; padding: 20px 20px 20px 18px; }
.ap-mcard-grande .ap-mcard-sigla { width: 64px; height: 64px; font-size: 22px; }
.ap-mcard-grande h3 { font-size: 20px; }
.ap-mgriglia > .ap-sk { min-height: 92px; }

.ap-mgriglia > * { animation: ap-su 400ms var(--ap-ease) both; }
.ap-mgriglia > :nth-child(2) { animation-delay: 50ms; }
.ap-mgriglia > :nth-child(3) { animation-delay: 100ms; }
.ap-mgriglia > :nth-child(4) { animation-delay: 150ms; }
.ap-mgriglia > :nth-child(n+5) { animation-delay: 200ms; }
@media (prefers-reduced-motion: reduce) {
  .ap-mgriglia > * { animation: none; }
  .ap-mcard, .ap-mcard .ap-vai { transition: none; }
}
