/*
 * ANDI Hub — componenti pubblici (elenco dentisti, schede, corsi, area soci, bacheca, biglietti).
 * Usa i token del tema ANDI Latina (--al-*) con valori di riserva identici: funziona anche con altri temi
 * e nelle pagine autonome (biglietto, verifica, disiscrizione) che caricano solo questo file.
 */

/* ==========================================================================
   1. Token
   ========================================================================== */
:root {
	--ah-navy: var(--al-navy, #0B1F44);
	--ah-navy-2: var(--al-navy-2, #12295A);
	--ah-blue: var(--al-blue, #2F5BA7);
	--ah-blue-600: var(--al-blue-600, #234A8F);
	--ah-blue-700: var(--al-blue-700, #1B3B75);
	--ah-blue-100: var(--al-blue-100, #DCE6F7);
	--ah-blue-50: var(--al-blue-50, #EEF3FB);
	--ah-coral: var(--al-coral, #E2483A);
	--ah-coral-600: var(--al-coral-600, #C93A2D);
	--ah-coral-700: #B42318;
	--ah-coral-50: var(--al-coral-50, #FDEDEB);
	--ah-green: var(--al-green, #16A06A);
	--ah-green-700: var(--al-green-700, #0E7A50);
	--ah-green-50: var(--al-green-50, #E7F6EF);
	--ah-amber: var(--al-amber, #C98000);
	--ah-amber-700: #8A5600;
	--ah-amber-50: var(--al-amber-50, #FDF4E3);
	--ah-ink: var(--al-ink, #0F172A);
	--ah-ink-2: var(--al-ink-2, #334155);
	--ah-muted: var(--al-muted, #5B6B82);
	--ah-line: var(--al-line, #E3E8F0);
	--ah-line-2: var(--al-line-2, #EDF1F6);
	--ah-bg: var(--al-bg, #F6F8FB);
	--ah-card: var(--al-card, #FFFFFF);
	--ah-radius: var(--al-radius, 18px);
	--ah-radius-sm: var(--al-radius-sm, 12px);
	--ah-radius-xs: var(--al-radius-xs, 8px);
	--ah-shadow: var(--al-shadow, 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06));
	--ah-shadow-lg: var(--al-shadow-lg, 0 2px 4px rgba(15, 23, 42, .05), 0 24px 48px -12px rgba(15, 23, 42, .18));
	--ah-font: var(--al-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif);
	--ah-mono: var(--al-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
	--ah-ease: var(--al-ease, cubic-bezier(.2, .7, .2, 1));
	--ah-top: calc(var(--al-header-h, 72px) + 16px);
	--ah-wa: #0C7D43;
	--ah-wa-600: #096B39;
	--ah-ring: 0 0 0 4px rgba(47, 91, 167, .16);
}

/* ==========================================================================
   2. Base comune
   ========================================================================== */
[class*="ah-"], [class*="ah-"]::before, [class*="ah-"]::after { box-sizing: border-box; }
[hidden][class*="ah-"], [class*="ah-"] [hidden] { display: none !important; }

.ah-sr {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
	overflow: hidden; padding: 0; position: absolute !important; width: 1px; white-space: nowrap;
}
.ah-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ah-muted { color: var(--ah-muted); }
.ah-small { font-size: .86rem; line-height: 1.5; }
.ah-center { text-align: center; }
.ah-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ah-stack { display: grid; gap: 16px; align-content: start; }
.ah-stack > * { margin: 0; }
.ah-i { flex: none; vertical-align: middle; }
.ah-warn-text { display: block; color: var(--ah-amber-700); font-weight: 600; }
.ah-k { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ah-muted); }

:is(.ah-area, .ah-dir, .ah-cbox, .ah-actions, .ah-modal, .ah-join, .ah-board, .ah-verify, .ah-nl, .ah-ticket-wrap, .ah-courses, .ah-fallback) {
	font-family: var(--ah-font);
	line-height: 1.5;
	color: var(--ah-ink);
}
/* Il contenuto delle pagine del tema (.al-prose) dà margini e liste: qui li neutralizziamo. */
html :is(.ah-area, .ah-dir, .ah-cbox, .ah-modal, .ah-join, .ah-board, .ah-verify, .ah-nl, .ah-ticket-wrap, .ah-courses) :is(h1, h2, h3, h4) { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; }
html :is(.ah-area, .ah-dir, .ah-cbox, .ah-modal, .ah-join, .ah-board, .ah-verify, .ah-ticket-wrap) :is(ul, ol):is(.ah-list, .ah-prices, .ah-timeline) { list-style: none; padding: 0; margin: 0; }
html :is(.ah-list, .ah-prices, .ah-timeline, .ah-app-nav ul) > li { margin: 0; }
html .ah-app-nav ul { list-style: none; padding: 0; margin: 0; }

:is(.ah-area, .ah-dir, .ah-cbox, .ah-actions, .ah-modal, .ah-join, .ah-board, .ah-verify, .ah-nl, .ah-ticket-wrap) :focus-visible {
	outline: 3px solid rgba(47, 91, 167, .5);
	outline-offset: 2px;
}

/* ==========================================================================
   3. Pulsanti
   ========================================================================== */
.ah-btn {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 46px; padding: .65em 1.2em;
	border: 1px solid transparent; border-radius: 999px;
	background: var(--ah-blue); color: #fff;
	font: 650 .98rem/1.15 var(--ah-font); letter-spacing: -.005em;
	text-decoration: none; text-align: center; cursor: pointer;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .12), inset 0 1px 0 rgba(255, 255, 255, .16);
	transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s var(--ah-ease);
	-webkit-tap-highlight-color: transparent;
}
.ah-btn:hover { background: var(--ah-blue-600); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(47, 91, 167, .6); }
.ah-btn:active { transform: translateY(0); }
.ah-btn:disabled, .ah-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.ah-btn-block { display: flex; width: 100%; }
.ah-btn-sm { min-height: 36px; padding: .45em .95em; font-size: .86rem; }
.ah-btn-ghost { background: #fff; color: var(--ah-ink); border-color: var(--ah-line); box-shadow: 0 1px 2px rgba(15, 23, 42, .05); }
.ah-btn-ghost:hover { background: #fff; color: var(--ah-blue); border-color: var(--ah-blue-100); box-shadow: 0 8px 18px -10px rgba(15, 23, 42, .25); }
.ah-btn-wa { background: var(--ah-wa); }
.ah-btn-wa:hover { background: var(--ah-wa-600); box-shadow: 0 8px 18px -8px rgba(12, 125, 67, .55); }
.ah-btn-danger { background: var(--ah-coral-600); }
.ah-btn-danger:hover { background: var(--ah-coral-700); box-shadow: 0 8px 18px -8px rgba(201, 58, 45, .55); }
.ah-btn.is-loading { color: transparent !important; pointer-events: none; }
.ah-btn.is-loading > * { visibility: hidden; }
.ah-btn.is-loading::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
	border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
	animation: ah-spin .7s linear infinite;
}
.ah-btn-ghost.is-loading::after { border-color: var(--ah-line); border-top-color: var(--ah-blue); }

.ah-icon-btn {
	display: inline-grid; place-items: center; flex: none;
	width: 42px; height: 42px; padding: 0;
	border: 1px solid var(--ah-line); border-radius: 50%;
	background: #fff; color: var(--ah-ink-2); cursor: pointer; text-decoration: none;
	transition: background .2s, color .2s, border-color .2s, transform .2s var(--ah-ease);
}
.ah-icon-btn:hover { color: var(--ah-blue); border-color: var(--ah-blue-100); background: var(--ah-blue-50); transform: translateY(-1px); }
.ah-icon-btn.ah-wa { color: var(--ah-wa); }
.ah-icon-btn.ah-wa:hover { color: #fff; background: var(--ah-wa); border-color: var(--ah-wa); }

.ah-linkbtn {
	display: inline; padding: 0; border: 0; background: none; cursor: pointer;
	color: var(--ah-blue); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.ah-linkbtn:hover { color: var(--ah-blue-600); }

.ah-copy {
	flex: none; padding: .3em .75em; border: 1px solid var(--ah-line); border-radius: 999px;
	background: #fff; color: var(--ah-blue); font: 650 .78rem/1.4 var(--ah-font); cursor: pointer;
	transition: background .2s, color .2s, border-color .2s;
}
.ah-copy:hover { background: var(--ah-blue-50); border-color: var(--ah-blue-100); }
.ah-copy.is-done { background: var(--ah-green-50); border-color: #BFE6D2; color: var(--ah-green-700); }

.ah-kbd {
	font-family: var(--ah-mono); font-size: .75rem; line-height: 1; padding: .3em .5em;
	border: 1px solid var(--ah-line); border-bottom-width: 2px; border-radius: 6px; background: #fff; color: var(--ah-muted);
}

/* ==========================================================================
   4. Badge, chip, interruttori
   ========================================================================== */
.ah-badge {
	display: inline-flex; align-items: center; gap: 6px;
	padding: .3em .75em; border-radius: 999px;
	font: 700 .74rem/1.3 var(--ah-font); letter-spacing: .01em; white-space: nowrap;
	background: var(--ah-line-2); color: var(--ah-ink-2);
}
.ah-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.ah-badge-ok { background: var(--ah-green-50); color: var(--ah-green-700); }
.ah-badge-warn { background: var(--ah-amber-50); color: var(--ah-amber-700); }
.ah-badge-ko { background: var(--ah-coral-50); color: var(--ah-coral-700); }
.ah-badge-info { background: var(--ah-blue-50); color: var(--ah-blue-700); }
.ah-badge-muted { background: var(--ah-line-2); color: var(--ah-muted); }

.ah-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ah-chips-scroll {
	flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px;
	-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
	mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent);
}
.ah-chips-scroll::-webkit-scrollbar { display: none; }
.ah-chip {
	flex: none; display: inline-flex; align-items: center; gap: 6px;
	min-height: 36px; padding: .4em .95em; border-radius: 999px;
	border: 1px solid var(--ah-line); background: #fff; color: var(--ah-ink-2);
	font: 600 .86rem/1.2 var(--ah-font); cursor: pointer; white-space: nowrap;
	transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.ah-chip:hover { border-color: var(--ah-blue-100); color: var(--ah-blue); }
.ah-chip.is-on { background: var(--ah-navy); border-color: var(--ah-navy); color: #fff; box-shadow: 0 6px 14px -8px rgba(11, 31, 68, .6); }

/* Interruttore iOS: .ah-switch (area soci) e .ah-toggle (filtri dell'elenco). */
.ah-switch, .ah-toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.ah-toggle {
	flex: none; gap: 8px; min-height: 36px; padding: .3em .8em .3em .45em; border-radius: 999px;
	border: 1px solid var(--ah-line); background: #fff; font-size: .86rem; color: var(--ah-ink-2);
	transition: border-color .2s, background .2s;
}
.ah-toggle:has(input:checked) { border-color: var(--ah-green); background: var(--ah-green-50); color: var(--ah-green-700); }
.ah-switch input[type="checkbox"], .ah-toggle input[type="checkbox"] {
	-webkit-appearance: none; appearance: none; position: relative; flex: none; margin: 0; cursor: pointer;
	width: 44px; height: 26px; border-radius: 999px; background: #CBD5E1;
	transition: background .2s;
}
.ah-toggle input[type="checkbox"] { width: 34px; height: 20px; }
.ah-switch input[type="checkbox"]::before, .ah-toggle input[type="checkbox"]::before {
	content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
	background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .3); transition: transform .22s var(--ah-ease);
}
.ah-toggle input[type="checkbox"]::before { width: 14px; height: 14px; }
.ah-switch input[type="checkbox"]:checked, .ah-toggle input[type="checkbox"]:checked { background: var(--ah-green); }
.ah-switch input[type="checkbox"]:checked::before { transform: translateX(18px); }
.ah-toggle input[type="checkbox"]:checked::before { transform: translateX(14px); }
.ah-switch + .ah-switch { margin-top: 12px; }

/* ==========================================================================
   5. Moduli
   ========================================================================== */
.ah-form { display: grid; gap: 14px; margin: 0; }
.ah-form > * { margin: 0; }
:is(.ah-form, .ah-calc) label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ah-ink); }
:is(.ah-form, .ah-calc) label small, :is(.ah-form, .ah-calc) label .ah-muted { font-weight: 500; }
:is(.ah-form, .ah-calc, .ah-nl, .ah-modal, .ah-dir) :where(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"], [type="range"]), select, textarea) {
	display: block; width: 100%; min-height: 48px; margin: 0; padding: .7em .95em;
	border: 1px solid var(--ah-line); border-radius: var(--ah-radius-sm);
	background: #fff; color: var(--ah-ink);
	font: 400 1rem/1.4 var(--ah-font);
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, .04);
	transition: border-color .2s, box-shadow .2s;
}
:is(.ah-form, .ah-calc, .ah-nl, .ah-modal, .ah-dir) :where(textarea) { min-height: 110px; resize: vertical; }
:is(.ah-form, .ah-calc, .ah-nl, .ah-modal, .ah-dir) :where(input, select, textarea):focus { outline: none; border-color: var(--ah-blue); box-shadow: var(--ah-ring); }
:is(.ah-form, .ah-calc) :where(input, select, textarea)[aria-invalid="true"] { border-color: var(--ah-coral); box-shadow: 0 0 0 4px rgba(226, 72, 58, .14); }
:is(.ah-form, .ah-calc) ::placeholder { color: #94A3B8; }
.ah-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ah-form legend { padding: 0; margin: 0 0 8px; font-weight: 700; font-size: .92rem; }
.ah-form h3 { font-size: 1.15rem; }

.ah-grid2, .ah-grid3 { display: grid; gap: 14px; }
@media (min-width: 640px) {
	.ah-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ah-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.ah-check, .ah-form .ah-check {
	display: flex; align-items: flex-start; gap: 10px;
	font-weight: 500; font-size: .9rem; line-height: 1.45; color: var(--ah-ink-2); cursor: pointer;
}
.ah-check input { flex: none; width: 18px; height: 18px; margin: .12em 0 0; accent-color: var(--ah-blue); }
.ah-form .ah-switch { display: flex; font-weight: 600; font-size: .95rem; }

.ah-form-msg {
	display: block; padding: 11px 14px; border-radius: var(--ah-radius-sm);
	background: var(--ah-coral-50); color: var(--ah-coral-700);
	font-size: .92rem; font-weight: 600; line-height: 1.45;
	animation: ah-fade .25s var(--ah-ease);
}
.ah-form-msg.is-ok { background: var(--ah-green-50); color: var(--ah-green-700); }
.ah-form-msg.is-info { background: var(--ah-blue-50); color: var(--ah-blue-700); }

/* Segmentato (offro / cerco). */
.ah-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--ah-line-2); justify-self: start; }
.ah-seg label, .ah-form .ah-seg label { display: block; position: relative; margin: 0; cursor: pointer; }
.ah-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ah-seg span { display: block; padding: .5em 1.1em; border-radius: 10px; font-weight: 650; font-size: .9rem; color: var(--ah-ink-2); transition: background .2s, color .2s, box-shadow .2s; }
.ah-seg input:checked + span { background: #fff; color: var(--ah-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.ah-seg input:focus-visible + span { outline: 3px solid rgba(47, 91, 167, .5); outline-offset: 1px; }

/* Caselle a pillola (specialità, servizi). */
.ah-checks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.ah-chipcheck, .ah-form .ah-chipcheck { display: inline-flex; position: relative; cursor: pointer; font-weight: 600; }
.ah-chipcheck input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ah-chipcheck span {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: .4em .95em; border-radius: 999px;
	border: 1px solid var(--ah-line); background: #fff; color: var(--ah-ink-2); font-size: .86rem;
	transition: background .2s, color .2s, border-color .2s;
}
.ah-chipcheck span::before { content: "+"; font-weight: 700; color: var(--ah-muted); }
.ah-chipcheck input:checked + span { background: var(--ah-navy); border-color: var(--ah-navy); color: #fff; }
.ah-chipcheck input:checked + span::before { content: "✓"; color: #fff; }
.ah-chipcheck input:focus-visible + span { outline: 3px solid rgba(47, 91, 167, .5); outline-offset: 2px; }

/* Scelta della tariffa del corso. */
.ah-radio, .ah-form .ah-radio {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
	padding: 12px 14px; margin: 0 0 8px; border-radius: var(--ah-radius-sm);
	border: 1px solid var(--ah-line); background: #fff; cursor: pointer; font-weight: 500;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.ah-radio:hover { border-color: var(--ah-blue-100); }
.ah-radio:has(input:checked) { border-color: var(--ah-blue); background: var(--ah-blue-50); box-shadow: 0 0 0 1px var(--ah-blue) inset; }
.ah-radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--ah-blue); }
.ah-radio span { font-size: .92rem; line-height: 1.35; }
.ah-radio strong { font-size: .95rem; color: var(--ah-navy); white-space: nowrap; }
.ah-radio em { font-style: normal; font-size: .82rem; }

.ah-file, .ah-form .ah-file { display: inline-flex; cursor: pointer; }
.ah-code, .ah-form .ah-code {
	text-align: center; font-family: var(--ah-mono) !important; font-size: 1.7rem !important;
	letter-spacing: .5em; padding-left: 1em !important; font-weight: 700 !important; min-height: 60px !important;
}

/* ==========================================================================
   6. Card, note, misuratori, KPI
   ========================================================================== */
.ah-card {
	background: var(--ah-card); border: 1px solid var(--ah-line); border-radius: var(--ah-radius);
	padding: 22px; box-shadow: var(--ah-shadow);
}
.ah-card > :last-child { margin-bottom: 0; }
html .ah-card h3 { margin: 0 0 12px; font-size: 1.15rem; }
.ah-note {
	padding: 12px 16px; margin: 0 0 14px; border-radius: var(--ah-radius-sm);
	background: var(--ah-blue-50); color: var(--ah-ink-2); font-size: .93rem; line-height: 1.5;
	border: 1px solid var(--ah-blue-100);
}
.ah-note-ok { background: var(--ah-green-50); border-color: #BFE6D2; color: var(--ah-green-700); font-weight: 600; }
.ah-note-warn { background: var(--ah-amber-50); border-color: #F3DDB0; color: var(--ah-amber-700); font-weight: 600; }
.ah-note a { font-weight: 650; }

.ah-cta { position: relative; overflow: hidden; display: grid; gap: 8px; border-color: var(--ah-blue-100); background: linear-gradient(135deg, #fff 40%, var(--ah-blue-50)); }
.ah-cta::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ah-blue); }
.ah-cta strong { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.ah-cta p { margin: 0; color: var(--ah-ink-2); }
.ah-cta .ah-btn { justify-self: start; margin-top: 4px; }
.ah-cta-ok { border-color: #BFE6D2; background: linear-gradient(135deg, #fff 40%, var(--ah-green-50)); }
.ah-cta-ok::before { background: var(--ah-green); }
.ah-cta-ok strong { color: var(--ah-green-700); }
.ah-cta-warn { border-color: #F3DDB0; background: linear-gradient(135deg, #fff 40%, var(--ah-amber-50)); }
.ah-cta-warn::before { background: var(--ah-amber); }
.ah-cta-warn strong { color: var(--ah-amber-700); }

.ah-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ah-meter-head span { font-weight: 800; font-size: 1.2rem; color: var(--ah-blue); font-variant-numeric: tabular-nums; }
.ah-meter { height: 10px; border-radius: 99px; background: var(--ah-line-2); overflow: hidden; margin-bottom: 12px; }
.ah-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ah-blue), #5B8DEF, var(--ah-green)); background-size: 300% 100%; animation: ah-grow 1s var(--ah-ease) both; }

.ah-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; overflow: hidden; }
.ah-kpis > div { display: grid; gap: 2px; padding: 18px 16px; text-align: center; border-left: 1px solid var(--ah-line-2); }
.ah-kpis > div:first-child { border-left: 0; }
.ah-kpis b { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--ah-navy); font-variant-numeric: tabular-nums; }
.ah-kpis span { font-size: .8rem; color: var(--ah-muted); line-height: 1.3; }
.ah-kpis-wide { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.ah-kpis-wide > div { border-left: 0; border-top: 1px solid var(--ah-line-2); margin-top: -1px; }

/* ==========================================================================
   7. Avatar
   ========================================================================== */
.ah-avatar {
	position: relative; flex: none; display: inline-grid; place-items: center; overflow: hidden;
	width: 56px; height: 56px; border-radius: 50%;
	background: var(--ah-blue-50); color: #fff; font-weight: 750; letter-spacing: .02em;
	box-shadow: 0 0 0 3px #fff, 0 4px 12px -4px rgba(15, 23, 42, .25);
}
.ah-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 0 !important; display: block; }
.ah-avatar-sm { width: 40px; height: 40px; font-size: .85rem; box-shadow: 0 0 0 2px #fff; }
.ah-avatar-md { width: 56px; height: 56px; font-size: 1.05rem; }
.ah-avatar-lg { width: 96px; height: 96px; font-size: 1.7rem; }
.ah-avatar-g0 { background: linear-gradient(135deg, #2F5BA7, #4F7FD6); }
.ah-avatar-g1 { background: linear-gradient(135deg, #0B1F44, #2B4C8C); }
.ah-avatar-g2 { background: linear-gradient(135deg, #B42318, #E2483A); }
.ah-avatar-g3 { background: linear-gradient(135deg, #0E7A50, #1E9E6B); }

/* ==========================================================================
   8. Elenco dei dentisti
   ========================================================================== */
.ah-dir { display: grid; gap: 16px; }
.ah-dir-bar { display: flex; gap: 10px; align-items: stretch; }
.ah-dir-search { position: relative; flex: 1; min-width: 0; }
.ah-dir-search > .ah-i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ah-muted); pointer-events: none; }
.ah-dir .ah-dir-search input {
	min-height: 56px; padding: .8em 3.4em .8em 3.1em; border-radius: 999px; font-size: 1.04rem;
	box-shadow: var(--ah-shadow);
}
.ah-dir .ah-dir-search input::-webkit-search-cancel-button { cursor: pointer; }
.ah-dir-search .ah-kbd { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.ah-dir-search input:focus ~ .ah-kbd, .ah-dir-search input:not(:placeholder-shown) ~ .ah-kbd { opacity: 0; }
.ah-dir-near { flex: none; min-height: 56px; }
.ah-dir-near[aria-pressed="true"] { background: var(--ah-navy); border-color: var(--ah-navy); color: #fff; }
@media (max-width: 560px) {
	.ah-dir-near span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ah-dir-near { width: 56px; padding: 0; }
	.ah-dir-search .ah-kbd { display: none; }
}
.ah-dir-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ah-dir .ah-dir-filters select {
	width: auto; min-width: 190px; max-width: 100%; min-height: 40px; padding: .45em 2em .45em .9em;
	border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.ah-dir-filters .ah-chips-scroll { flex: 1 1 260px; min-width: 0; }
@media (max-width: 640px) {
	.ah-dir .ah-dir-filters select { flex: 1 1 100%; }
	.ah-dir-filters .ah-chips-scroll { flex-basis: 100%; }
}
.ah-dir-body { display: grid; gap: 22px; align-items: start; }
.ah-dir-results { order: 1; min-width: 0; }
.ah-dir-map { order: 2; }
@media (min-width: 1040px) {
	.ah-dir-body { grid-template-columns: minmax(0, 1fr) 380px; }
	.ah-dir-map { position: sticky; top: var(--ah-top); }
}
.ah-dir-count { margin: 0 0 12px; font-size: .9rem; font-weight: 650; color: var(--ah-muted); }
.ah-dir-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }

.ah-doc {
	position: relative; display: flex; align-items: center; gap: 8px;
	padding: 14px 14px 14px 16px; border-radius: var(--ah-radius);
	border: 1px solid var(--ah-line); background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	transition: border-color .2s, box-shadow .25s, transform .25s var(--ah-ease);
	animation: ah-rise .35s var(--ah-ease) both;
}
.ah-doc:hover, .ah-doc:focus-within { border-color: var(--ah-blue-100); box-shadow: var(--ah-shadow-lg); transform: translateY(-2px); }
.ah-doc.is-flash { animation: ah-flash 1.6s var(--ah-ease); }
.ah-doc-link { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.ah-doc-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ah-doc-main { display: grid; gap: 2px; min-width: 0; }
.ah-doc-name { font-weight: 750; font-size: 1rem; letter-spacing: -.01em; color: var(--ah-ink); line-height: 1.25; }
.ah-doc-link:hover .ah-doc-name { color: var(--ah-blue); }
.ah-doc-sub { font-size: .86rem; color: var(--ah-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-doc-tags { font-size: .8rem; color: var(--ah-blue-700); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-doc-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ah-doc-meta > span { display: inline-flex; align-items: center; gap: 5px; padding: .15em .6em; border-radius: 99px; font-size: .72rem; font-weight: 700; }
.ah-open-badge { background: var(--ah-green-50); color: var(--ah-green-700); }
.ah-open-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ah-green); animation: ah-pulse-g 2s infinite; }
.ah-dist { background: var(--ah-blue-50); color: var(--ah-blue-700); }
.ah-since { background: var(--ah-line-2); color: var(--ah-ink-2); }
.ah-doc-act { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 6px; }
.ah-empty {
	display: grid; justify-items: center; gap: 4px; padding: 40px 20px; text-align: center;
	border: 1px dashed var(--ah-line); border-radius: var(--ah-radius); background: #fff;
}
.ah-empty p { margin: 0; }
.ah-empty .ah-btn { margin-top: 12px; }

.ah-dir-map {
	padding: 14px; border-radius: var(--ah-radius); border: 1px solid var(--ah-line);
	background: linear-gradient(180deg, #F3F7FD, #EAF1FB);
}
.ah-dir-legend { display: flex; gap: 8px; align-items: flex-start; margin: 10px 4px 0; font-size: .78rem; color: var(--ah-muted); line-height: 1.4; }
.ah-dot { flex: none; width: 10px; height: 10px; margin-top: .25em; border-radius: 50%; background: var(--ah-blue); box-shadow: 0 0 0 3px rgba(47, 91, 167, .18); }
@media (max-width: 1039px) { .ah-dir-map { display: none; } }

.ah-dir-quick { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--ah-line); box-shadow: var(--ah-shadow); }
.ah-dir-quick > .ah-i { color: var(--ah-muted); }
.ah-dir-quick input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent; font: inherit; font-size: 1rem; outline: none; }

/* ==========================================================================
   9. Mappa a punti
   ========================================================================== */
.ah-map { display: block; width: 100%; height: auto; }
.ah-map-label { font: 600 13px var(--ah-font); fill: var(--ah-muted); paint-order: stroke; stroke: rgba(243, 247, 253, .9); stroke-width: 3px; }
.ah-map-dot { fill: var(--ah-blue); stroke: #fff; stroke-width: 2; transform-box: fill-box; transform-origin: center; transition: transform .25s var(--ah-ease), fill .2s; }
.ah-map-halo { transform-box: fill-box; transform-origin: center; animation: ah-halo 3s var(--ah-ease) infinite; }
.ah-map-pt:nth-child(3n) .ah-map-halo { animation-delay: -1s; }
.ah-map-pt:nth-child(3n+1) .ah-map-halo { animation-delay: -2s; }
.ah-map-pt { transition: opacity .3s; cursor: pointer; }
.ah-map-pt.is-off { opacity: .1; }
.ah-map-pt.is-hot .ah-map-dot, .ah-map a:hover .ah-map-dot, .ah-map a:focus .ah-map-dot { fill: var(--ah-coral); transform: scale(1.7); }
.ah-map a:focus { outline: none; }

/* ==========================================================================
   10. Azioni della scheda del dentista
   ========================================================================== */
.ah-actions { display: grid; gap: 10px; }
.ah-actions-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 8px; margin-top: 4px; }
.ah-mini {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	min-height: 72px; padding: 10px 6px; border-radius: 14px; border: 1px solid transparent;
	background: var(--ah-bg); color: var(--ah-ink-2); font: 650 .78rem/1.2 var(--ah-font); text-align: center;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ah-ease);
}
.ah-mini:hover { background: var(--ah-blue-50); border-color: var(--ah-blue-100); color: var(--ah-blue); transform: translateY(-1px); }
.ah-mini .ah-i { color: var(--ah-blue); }
.ah-verified { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 0; font-size: .8rem; line-height: 1.45; color: var(--ah-green-700); }
.ah-verified .ah-i { margin-top: 1px; }
.ah-fallback { margin-top: 24px; padding: 20px; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); background: #fff; }

/* ==========================================================================
   11. Finestre modali
   ========================================================================== */
dialog.ah-modal {
	width: min(560px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 32px);
	margin: auto; padding: 0; border: 0; border-radius: 24px; overflow: auto; overscroll-behavior: contain;
	background: #fff; color: var(--ah-ink);
	box-shadow: 0 40px 100px -24px rgba(11, 31, 68, .5), 0 0 0 1px rgba(15, 23, 42, .04);
}
dialog.ah-modal[open] { animation: ah-pop .3s var(--ah-ease); }
dialog.ah-modal::backdrop { background: rgba(11, 31, 68, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ah-modal.is-open { display: block; position: fixed; inset: 0; z-index: 100000; }
.ah-modal .ah-form { padding: 22px 24px 24px; }
.ah-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
html .ah-modal-head h2 { margin: 0; font-size: 1.28rem; letter-spacing: -.02em; }
.ah-modal-head .ah-icon-btn { width: 38px; height: 38px; }
.ah-modal .ah-form > p.ah-muted { font-size: .92rem; margin-top: -4px; }
.ah-sent { display: grid; justify-items: center; gap: 10px; padding: 18px 4px 6px; text-align: center; animation: ah-fade .3s var(--ah-ease); }
.ah-sent p { margin: 0; font-weight: 600; color: var(--ah-ink-2); max-width: 40ch; }
.ah-sent .ah-done-icon { margin-bottom: 4px; }
body.ah-modal-on { overflow: hidden; }
@media (max-width: 600px) {
	dialog.ah-modal { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
	dialog.ah-modal[open] { animation: ah-sheet .35s var(--ah-ease); }
	.ah-modal .ah-form { padding: 18px 18px calc(20px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   12. Corsi: elenco, riquadro di iscrizione
   ========================================================================== */
.ah-courses { display: grid; gap: 12px; }
.ah-course {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
	padding: 14px 16px; border-radius: var(--ah-radius); border: 1px solid var(--ah-line); background: #fff;
	color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	transition: border-color .2s, box-shadow .25s, transform .25s var(--ah-ease);
}
.ah-course:hover { border-color: var(--ah-blue-100); box-shadow: var(--ah-shadow-lg); transform: translateY(-2px); color: inherit; }
.ah-course-main { display: grid; gap: 4px; min-width: 0; }
.ah-course-title { font-weight: 750; line-height: 1.3; color: var(--ah-ink); }
.ah-course:hover .ah-course-title { color: var(--ah-blue); }
.ah-course-meta { font-size: .85rem; color: var(--ah-muted); }
.ah-course .ah-seats-bar { max-width: 220px; height: 5px; margin-top: 4px; }
@media (max-width: 520px) {
	.ah-course { grid-template-columns: auto minmax(0, 1fr); }
	.ah-course > .ah-badge { grid-column: 2; justify-self: start; }
}
.ah-cal {
	flex: none; display: grid; place-content: center; text-align: center;
	width: 58px; height: 62px; border-radius: 14px; background: var(--ah-navy); color: #fff; line-height: 1;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.ah-cal b { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; }
.ah-cal i { display: block; margin-top: 4px; font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.ah-cal-sm { width: 46px; height: 50px; border-radius: 12px; }
.ah-cal-sm b { font-size: 1.15rem; }

.ah-cbox { display: grid; gap: 16px; }
.ah-cbox > * { margin: 0; }
.ah-cbox-head { display: flex; flex-wrap: wrap; gap: 8px; }
html .ah-prices { display: grid; gap: 8px; }
html .ah-prices > li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 14px; border-radius: var(--ah-radius-sm); background: var(--ah-bg); }
.ah-prices span { font-size: .9rem; color: var(--ah-ink-2); line-height: 1.35; }
.ah-prices strong { font-size: 1.02rem; color: var(--ah-navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
html .ah-prices > li.is-soci { background: var(--ah-green-50); box-shadow: inset 0 0 0 1px #BFE6D2; }
.ah-prices li.is-soci span::before { content: "Soci · "; font-weight: 700; color: var(--ah-green-700); }
.ah-prices li.is-soci strong { color: var(--ah-green-700); }
.ah-seats p { margin: 8px 0 0; font-size: .86rem; color: var(--ah-muted); }
.ah-seats strong { color: var(--ah-coral-700); }
.ah-seats-bar { display: block; height: 8px; border-radius: 99px; background: var(--ah-line-2); overflow: hidden; }
.ah-seats-bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ah-green), var(--ah-amber), var(--ah-coral)); background-size: 300% 100%; animation: ah-grow 1.1s var(--ah-ease) both; }
.ah-reg { gap: 0; }
.ah-step { display: grid; gap: 14px; animation: ah-fade .3s var(--ah-ease); }
.ah-step > * { margin: 0; }
.ah-hello {
	display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--ah-radius-sm);
	background: var(--ah-green-50); color: var(--ah-green-700); font-size: .92rem; font-weight: 500; line-height: 1.45;
	animation: ah-pop .35s var(--ah-ease);
}
.ah-hello strong { color: inherit; }
.ah-hello.is-warn { background: var(--ah-amber-50); color: var(--ah-amber-700); }
.ah-hello .ah-i { margin-top: 1px; }
.ah-tariffe legend { font-size: .92rem; }
.ah-done { display: grid; gap: 12px; justify-items: stretch; text-align: center; animation: ah-fade .35s var(--ah-ease); }
.ah-done-icon {
	justify-self: center; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
	background: var(--ah-green); color: #fff; box-shadow: 0 0 0 8px var(--ah-green-50), 0 12px 24px -10px rgba(22, 160, 106, .7);
	animation: ah-bounce .6s var(--ah-ease) both;
}
.ah-done-text { margin: 0; font-weight: 650; font-size: 1.02rem; color: var(--ah-ink); }
.ah-cbox-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 14px; border-top: 1px solid var(--ah-line-2); }
.ah-cbox-foot a, .ah-cbox-foot button {
	display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer;
	font: 600 .85rem/1.6 var(--ah-font); color: var(--ah-muted); text-decoration: none;
}
.ah-cbox-foot a:hover, .ah-cbox-foot button:hover { color: var(--ah-blue); }
.ah-solo-soci { padding: 10px 12px; border-radius: var(--ah-radius-sm); background: var(--ah-blue-50); }

/* ==========================================================================
   13. Verifica della tessera
   ========================================================================== */
.ah-verify {
	position: relative; overflow: hidden; display: grid; justify-items: center; gap: 6px;
	max-width: 520px; margin: 0 auto; padding: 34px 24px 28px; text-align: center;
	border-radius: 26px; color: #fff; box-shadow: var(--ah-shadow-lg);
}
.ah-verify p { margin: 0; }
.ah-verify-ok { background: radial-gradient(120% 90% at 50% 0%, #1FB27A 0%, #0E7A50 60%, #0A5E3E 100%); }
.ah-verify-ko { background: radial-gradient(120% 90% at 50% 0%, #E2483A 0%, #B42318 70%); }
.ah-verify::after { content: ""; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, .12), transparent 30%); animation: ah-spin 8s linear infinite; pointer-events: none; }
.ah-verify > * { position: relative; z-index: 1; }
.ah-verify-icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); box-shadow: 0 0 0 10px rgba(255, 255, 255, .08); animation: ah-bounce .6s var(--ah-ease) both; }
.ah-verify-name { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.ah-verify-state { font-weight: 650; opacity: .95; }
.ah-verify-live { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px !important; padding: .35em .9em; border-radius: 99px; background: rgba(0, 0, 0, .18); font: 600 .86rem/1.4 var(--ah-mono); font-variant-numeric: tabular-nums; }
.ah-verify-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: ah-blink 1s steps(2) infinite; }
.ah-verify .ah-small { opacity: .9; }
.ah-verify .ah-btn-ghost { margin-top: 10px; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; box-shadow: none; }
.ah-verify .ah-btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }

/* ==========================================================================
   14. Newsletter
   ========================================================================== */
.ah-nl { display: grid; gap: 12px; margin: 0; }
.ah-nl-text { display: grid; gap: 2px; }
.ah-nl-text strong { font-size: 1.05rem; }
.ah-nl-text span { color: var(--ah-muted); font-size: .92rem; }
.ah-nl-fields { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: #fff; border: 1px solid var(--ah-line); box-shadow: var(--ah-shadow); }
.ah-nl .ah-nl-fields input { flex: 1; min-width: 0; min-height: 46px; border: 0; box-shadow: none; border-radius: 999px; padding-left: 1em; background: transparent; }
.ah-nl .ah-nl-fields input:focus { box-shadow: none; }
.ah-nl-fields:focus-within { border-color: var(--ah-blue); box-shadow: var(--ah-ring); }
.ah-nl-fields .ah-btn { flex: none; }
.ah-nl.is-done .ah-nl-fields { opacity: .5; pointer-events: none; }
.al-newsletter .ah-nl-text { display: none; }
@media (max-width: 420px) {
	.ah-nl-fields { flex-direction: column; border-radius: 22px; }
	.ah-nl-fields .ah-btn { width: 100%; }
}

/* ==========================================================================
   15. Iscrizione dei nuovi soci e calcolatore della quota
   ========================================================================== */
.ah-join { display: grid; gap: 22px; }
.ah-join-cards { display: grid; gap: 14px; }
@media (min-width: 720px) { .ah-join-cards { grid-template-columns: 1fr 1fr; } }
.ah-join-card {
	position: relative; display: grid; gap: 8px; align-content: start; padding: 24px;
	border-radius: 22px; border: 1px solid var(--ah-line); background: #fff; box-shadow: var(--ah-shadow);
	color: var(--ah-ink-2); text-decoration: none; overflow: hidden;
	transition: transform .25s var(--ah-ease), box-shadow .25s, border-color .2s;
}
.ah-join-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--ah-blue-50), transparent 70%); }
.ah-join-card:hover { transform: translateY(-3px); box-shadow: var(--ah-shadow-lg); border-color: var(--ah-blue-100); color: var(--ah-ink-2); }
.ah-join-card > .ah-i { color: var(--ah-blue); width: 46px; height: 46px; padding: 10px; border-radius: 14px; background: var(--ah-blue-50); }
.ah-join-card strong { font-size: 1.2rem; color: var(--ah-ink); }
.ah-join-card span { font-size: .95rem; line-height: 1.5; }
.ah-join-card em { font-style: normal; font-weight: 700; color: var(--ah-blue); margin-top: 4px; }
.ah-calc { display: grid; gap: 14px; }
.ah-calc > * { margin: 0; }
.ah-calc .ah-check { align-self: end; padding-bottom: 12px; }
.ah-calc-out { display: block; }
.ah-calc-res {
	display: grid; gap: 4px; padding: 20px 22px; border-radius: 20px; color: #fff;
	background: linear-gradient(135deg, var(--ah-navy), var(--ah-blue)); box-shadow: 0 18px 40px -20px rgba(11, 31, 68, .7);
	animation: ah-pop .35s var(--ah-ease);
}
.ah-calc-res .ah-k { color: rgba(255, 255, 255, .75); }
.ah-calc-res b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ah-calc-res span { font-weight: 650; }
.ah-calc-res small { color: rgba(255, 255, 255, .85); font-size: .88rem; line-height: 1.45; }
.ah-calc-res a { justify-self: start; margin-top: 10px; color: #fff; font-weight: 700; }
.ah-calc-hint { padding: 14px 16px; border-radius: 14px; background: var(--ah-bg); color: var(--ah-muted); font-size: .92rem; }
.ah-join .ah-form.ah-card { scroll-margin-top: var(--ah-top); }
.ah-done-card { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 36px 22px; }
.ah-done-card p { margin: 0; max-width: 48ch; font-weight: 600; color: var(--ah-ink-2); }

/* ==========================================================================
   16. Area soci
   ========================================================================== */
.ah-area { display: grid; gap: 20px; }
.ah-login { max-width: 480px; width: 100%; margin: 0 auto; display: grid; gap: 14px; text-align: center; padding: 32px 28px; }
.ah-login > * { margin: 0; }
.ah-login-icon {
	justify-self: center; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px;
	background: linear-gradient(135deg, var(--ah-navy), var(--ah-blue)); color: #fff; box-shadow: 0 14px 28px -14px rgba(11, 31, 68, .8);
}
html .ah-login h2 { margin: 0; font-size: 1.6rem; }
.ah-login .ah-form { text-align: left; }
.ah-login [data-step] { display: grid; gap: 14px; animation: ah-fade .3s var(--ah-ease); }
.ah-login [data-step] > * { margin: 0; }
.ah-login .ah-linkbtn { justify-self: center; font-size: .9rem; }

.ah-app { display: grid; gap: 22px; align-items: start; }
@media (min-width: 960px) { .ah-app { grid-template-columns: 250px minmax(0, 1fr); gap: 32px; } }
.ah-app-nav { display: grid; gap: 14px; }
@media (min-width: 960px) {
	.ah-app-nav { position: sticky; top: var(--ah-top); padding: 14px; border-radius: var(--ah-radius); border: 1px solid var(--ah-line); background: #fff; box-shadow: var(--ah-shadow); }
}
.ah-app-me { display: flex; align-items: center; gap: 12px; padding: 4px 4px 8px; }
.ah-app-me > span:last-child { display: grid; min-width: 0; line-height: 1.3; }
.ah-app-me strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ah-app-me small { color: var(--ah-muted); font-size: .78rem; }
.ah-app-nav ul { display: grid; gap: 2px; }
.ah-app-nav a {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
	color: var(--ah-ink-2); font-weight: 600; font-size: .94rem; text-decoration: none;
	transition: background .2s, color .2s;
}
.ah-app-nav a:hover { background: var(--ah-bg); color: var(--ah-ink); }
.ah-app-nav a[aria-current="page"] { background: var(--ah-blue-50); color: var(--ah-blue-700); }
.ah-app-nav a[aria-current="page"] .ah-i { color: var(--ah-blue); }
.ah-app-nav .ah-i { color: var(--ah-muted); }
.ah-app-nav li:last-child { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--ah-line-2); }
@media (max-width: 959px) {
	.ah-app-nav { position: sticky; top: 0; z-index: 20; margin: 0 -4px; padding: 8px 4px; background: rgba(246, 248, 251, .86); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); }
	.ah-app-me { display: none; }
	.ah-app-nav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
	.ah-app-nav ul::-webkit-scrollbar { display: none; }
	.ah-app-nav li { flex: none; scroll-snap-align: start; }
	.ah-app-nav li:last-child { margin: 0; padding: 0; border: 0; }
	.ah-app-nav a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--ah-line); font-size: .88rem; white-space: nowrap; }
	.ah-app-nav a[aria-current="page"] { background: var(--ah-navy); border-color: var(--ah-navy); color: #fff; }
	.ah-app-nav a[aria-current="page"] .ah-i { color: #fff; }
}
.ah-app-main { display: grid; gap: 18px; min-width: 0; }
.ah-app-main > * { margin: 0; }
.ah-app-head { display: grid; gap: 4px; }
html .ah-app-head h2 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.ah-app-head p { margin: 0; }
.ah-app-grid { display: grid; gap: 18px; align-items: start; }
.ah-app-grid > div > p { margin: 10px 2px 0; }
@media (min-width: 760px) { .ah-app-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ah-app-sec { display: grid; gap: 12px; }
html .ah-app-sec h3 { margin: 6px 0 0; font-size: 1.2rem; }
.ah-app-sec > p { margin: 0; }

html .ah-list { display: grid; background: #fff; border: 1px solid var(--ah-line); border-radius: var(--ah-radius); overflow: hidden; }
html .ah-list > li { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--ah-line-2); }
html .ah-list > li:first-child { border-top: 0; }
.ah-list-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.ah-list-main a, .ah-list-main strong { font-weight: 700; color: var(--ah-ink); text-decoration: none; line-height: 1.35; }
.ah-list-main a:hover { color: var(--ah-blue); }
.ah-list-main small { color: var(--ah-muted); font-size: .82rem; }

/* Tessera digitale. */
.ah-wallet {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "top top" "name name" "row qr";
	gap: 14px 16px; align-items: end; padding: 22px 22px 20px; min-height: 220px;
	border-radius: 24px; color: #fff; background: linear-gradient(140deg, #0B1F44 0%, #1B3B75 55%, #2F5BA7 100%);
	box-shadow: 0 24px 50px -24px rgba(11, 31, 68, .8), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.ah-wallet::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background: radial-gradient(90% 70% at 100% 0%, rgba(255, 255, 255, .22), transparent 60%), repeating-linear-gradient(115deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 14px);
}
.ah-wallet::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #1A9A4B 0 33.3%, #fff 33.3% 66.6%, #E2483A 66.6% 100%); }
.ah-wallet-top { grid-area: top; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-right: 44px; }
.ah-wallet-org { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.ah-wallet-year { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ah-wallet-name { grid-area: name; font-size: 1.35rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.ah-wallet-row { grid-area: row; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ah-wallet-row > div { display: grid; gap: 2px; }
.ah-wallet-row span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.ah-wallet-row strong { font-size: .92rem; color: #fff; }
.ah-wallet-qr { grid-area: qr; padding: 6px; border-radius: 12px; background: #fff; line-height: 0; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6); }
.ah-wallet-qr svg { width: 88px; height: 88px; display: block; }
.ah-wallet-full {
	position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
	border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
	transition: background .2s;
}
.ah-wallet-full:hover { background: rgba(255, 255, 255, .24); }
.ah-wallet-ok .ah-wallet-row > div:first-child strong { color: #7CF0BE; }
.ah-wallet-warn .ah-wallet-row > div:first-child strong { color: #FFD27A; }
.ah-wallet-ko .ah-wallet-row > div:first-child strong { color: #FFB4AB; }
.ah-wallet-ko, .ah-wallet-muted { background: linear-gradient(140deg, #1F2937, #374151 60%, #4B5563); }
@media (max-width: 420px) {
	.ah-wallet { grid-template-areas: "top top" "name name" "row row" "qr qr"; }
	.ah-wallet-qr { justify-self: start; }
}
.ah-wallet-fs {
	position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; align-content: center; gap: 18px;
	padding: 24px; background: radial-gradient(120% 80% at 50% 0%, #1B3B75, #0B1F44 70%); color: #fff;
	animation: ah-fade .25s var(--ah-ease);
}
.ah-wallet-fs .ah-wallet { width: min(440px, 100%); grid-template-areas: "top top" "name name" "qr qr" "row row"; justify-items: start; }
.ah-wallet-fs .ah-wallet-qr { justify-self: center; padding: 12px; border-radius: 18px; }
.ah-wallet-fs .ah-wallet-qr svg { width: min(64vw, 280px); height: auto; }
.ah-wallet-fs .ah-wallet-full { display: none; }
.ah-wallet-fs .ah-wallet-name { font-size: 1.6rem; }
.ah-wallet-fs-clock { font: 600 .95rem/1.4 var(--ah-mono); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 8px; opacity: .9; }
.ah-wallet-fs-clock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #7CF0BE; animation: ah-blink 1s steps(2) infinite; }
.ah-wallet-fs .ah-btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; box-shadow: none; }

/* Quota. */
.ah-quote-box { display: grid; gap: 14px; }
.ah-quote-box > * { margin: 0; }
.ah-quote-amount {
	display: grid; gap: 4px; padding: 22px; border-radius: 20px; color: #fff;
	background: linear-gradient(135deg, var(--ah-navy), var(--ah-blue)); box-shadow: 0 18px 40px -22px rgba(11, 31, 68, .8);
}
.ah-quote-amount > span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.ah-quote-amount b { font-size: clamp(2.2rem, 1.8rem + 2vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ah-quote-amount small { font-size: .9rem; opacity: .9; }
.ah-quote-amount .ah-warn-text { color: #FFD27A; }
.ah-pay { display: grid; gap: 12px; }
.ah-pay > * { margin: 0; }
details.ah-bonifico { border: 1px solid var(--ah-line); border-radius: var(--ah-radius-sm); background: #fff; overflow: hidden; }
details.ah-bonifico > summary {
	display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
	font-weight: 700; cursor: pointer; list-style: none; transition: background .2s;
}
details.ah-bonifico > summary::-webkit-details-marker { display: none; }
details.ah-bonifico > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ah-muted); border-bottom: 2px solid var(--ah-muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ah-ease); }
details.ah-bonifico[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details.ah-bonifico > summary:hover { background: var(--ah-bg); }
details.ah-bonifico > :not(summary) { margin: 0 16px 16px; }
details.ah-bonifico dl { display: grid; gap: 2px; margin: 0 16px 14px; padding: 6px 0; }
details.ah-bonifico dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--ah-line-2); }
details.ah-bonifico dl > div:first-child { border-top: 0; }
details.ah-bonifico dt { font-size: .8rem; font-weight: 700; color: var(--ah-muted); text-transform: uppercase; letter-spacing: .05em; }
details.ah-bonifico dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; min-width: 0; }
details.ah-bonifico dd span { font-family: var(--ah-mono); font-size: .92rem; word-break: break-all; }
@media (max-width: 480px) { details.ah-bonifico dl > div { grid-template-columns: 1fr; gap: 2px; } }
.ah-years { display: flex; flex-wrap: wrap; gap: 10px; }
.ah-year {
	display: grid; gap: 1px; min-width: 104px; padding: 12px 14px; border-radius: 14px;
	border: 1px solid var(--ah-line); background: #fff; position: relative; overflow: hidden;
}
.ah-year::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ah-line); }
.ah-year b { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ah-year span { font-size: .78rem; font-weight: 700; }
.ah-year small { font-size: .74rem; color: var(--ah-muted); }
.ah-year-ok::before { background: var(--ah-green); }
.ah-year-ok span { color: var(--ah-green-700); }
.ah-year-warn::before { background: var(--ah-amber); }
.ah-year-warn span { color: var(--ah-amber-700); }
.ah-year-ko::before { background: var(--ah-coral); }
.ah-year-ko span { color: var(--ah-coral-700); }

/* Scheda pubblica. */
.ah-profile-form { gap: 18px; }
.ah-profile-form > .ah-card { display: grid; gap: 14px; }
.ah-profile-form > .ah-card > * { margin: 0; }
.ah-photo-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ah-photo-row > div { display: grid; gap: 6px; }
.ah-photo-row p { margin: 0; }
.ah-photo-row .ah-avatar.is-loading::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232F5BA7' stroke-width='3' stroke-linecap='round' d='M12 3a9 9 0 1 0 9 9'/%3E%3C/svg%3E") center/28px no-repeat; animation: ah-spin .8s linear infinite; }
.ah-hours { display: grid; gap: 6px; }
.ah-hours-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--ah-line-2); }
.ah-hours-row:first-child { border-top: 0; }
.ah-hours-row > span:first-child { font-weight: 650; font-size: .9rem; }
.ah-hours-slot { display: flex; align-items: center; gap: 6px; }
.ah-hours-slot i { font-style: normal; color: var(--ah-muted); }
.ah-form .ah-hours-slot input { min-height: 42px; padding: .45em .5em; font-size: .92rem; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
	.ah-hours-row { grid-template-columns: 1fr 1fr; }
	.ah-hours-row > span:first-child { grid-column: 1 / -1; }
}
.ah-sticky-save {
	position: sticky; bottom: 12px; z-index: 10; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px;
	padding: 10px 10px 10px 18px; border-radius: 999px; border: 1px solid var(--ah-line);
	background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
	box-shadow: 0 14px 34px -18px rgba(15, 23, 42, .45);
}
.ah-sticky-save .ah-form-msg { flex: 1; padding: 6px 12px; border-radius: 999px; }
.ah-sticky-save .ah-dirty { flex: 1; font-size: .86rem; font-weight: 650; color: var(--ah-amber-700); display: inline-flex; align-items: center; gap: 8px; }
.ah-sticky-save .ah-dirty::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ah-amber); }

/* Formazione. */
html .ah-timeline { position: relative; display: grid; gap: 4px; padding-left: 26px; }
.ah-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--ah-line); border-radius: 2px; }
html .ah-timeline > .ah-timeline-year { margin: 14px 0 4px -26px; padding-left: 26px; font-weight: 800; font-size: 1.05rem; color: var(--ah-navy); }
html .ah-timeline > .ah-timeline-year:first-child { margin-top: 0; }
html .ah-timeline > .ah-timeline-item { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--ah-line); }
.ah-timeline-item > div { flex: 1; display: grid; gap: 2px; min-width: 0; }
.ah-timeline-item a:not(.ah-btn) { font-weight: 700; color: var(--ah-ink); text-decoration: none; }
.ah-timeline-item a:not(.ah-btn):hover { color: var(--ah-blue); }
.ah-timeline-item small { color: var(--ah-muted); font-size: .82rem; }
.ah-timeline-dot { position: absolute; left: -25px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--ah-line); }
.ah-timeline-dot.is-done { border-color: var(--ah-green); background: var(--ah-green); box-shadow: 0 0 0 3px var(--ah-green-50); }

/* Statistiche. */
.ah-spark { display: block; width: 100%; height: 140px; overflow: visible; }
.ah-spark-area { fill: rgba(47, 91, 167, .1); }
.ah-spark-line { fill: none; stroke: var(--ah-blue); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: ah-draw 1.6s var(--ah-ease) forwards; }

/* ==========================================================================
   17. Bacheca lavoro
   ========================================================================== */
.ah-board { display: grid; gap: 16px; }
.ah-board-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.ah-ad { display: grid; gap: 8px; align-content: start; transition: transform .25s var(--ah-ease), box-shadow .25s, border-color .2s; animation: ah-rise .35s var(--ah-ease) both; }
.ah-ad:hover { transform: translateY(-2px); box-shadow: var(--ah-shadow-lg); border-color: var(--ah-blue-100); }
.ah-ad > * { margin: 0; }
.ah-ad .ah-badge { justify-self: start; }
html .ah-ad h3 { margin: 2px 0 0; font-size: 1.1rem; line-height: 1.3; }
.ah-ad h3 a { color: var(--ah-ink); text-decoration: none; }
.ah-ad h3 a::after { content: ""; position: absolute; inset: 0; }
.ah-ad { position: relative; }
.ah-ad h3 a:hover { color: var(--ah-blue); }
.ah-ad p:last-child { color: var(--ah-ink-2); font-size: .94rem; }

/* ==========================================================================
   18. Pagine autonome: biglietto del corso, disiscrizione
   ========================================================================== */
body.ah-solo {
	margin: 0; min-height: 100vh; min-height: 100dvh; font-family: var(--ah-font); font-size: 16px; line-height: 1.5; color: var(--ah-ink);
	background: radial-gradient(140% 60% at 50% 0%, #1B3B75 0%, #0B1F44 55%, #081631 100%) fixed;
	-webkit-font-smoothing: antialiased;
}
body.ah-solo a { color: var(--ah-blue); }
.ah-ticket-wrap { display: grid; gap: 16px; width: 100%; max-width: 480px; margin: 0 auto; padding: 28px 16px 48px; }
.ah-ticket-wrap > * { margin: 0; }
.ah-ticket-wrap > .ah-card { text-align: center; }
html .ah-ticket-wrap > .ah-card h1 { font-size: 1.8rem; margin-bottom: .4em; }
.ah-ticket-wrap > .ah-center { color: rgba(255, 255, 255, .85); }
.ah-ticket-wrap > .ah-center a:not(.ah-btn) { color: #fff; }
.ah-checkin {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 22px; border-radius: 20px;
	color: #fff; font-size: 1.35rem; line-height: 1.25; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
	animation: ah-bounce .5s var(--ah-ease) both;
}
.ah-checkin strong { font-weight: 800; letter-spacing: -.02em; }
.ah-checkin a { flex: none; padding: .4em .9em; border-radius: 99px; background: rgba(255, 255, 255, .18); color: #fff !important; font-size: .9rem; font-weight: 700; text-decoration: none; }
.ah-checkin-ok { background: var(--ah-green-700); }
.ah-checkin-warn { background: #A15F00; }
.ah-checkin-ko { background: var(--ah-coral-600); }
.ah-ticket { position: relative; border-radius: 26px; background: #fff; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); overflow: hidden; }
.ah-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; background: linear-gradient(90deg, #1A9A4B 0 4px, transparent 4px), var(--ah-blue-50); }
.ah-ticket-org { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ah-navy); }
html .ah-ticket h1 { margin: 0; padding: 20px 22px 8px; font-size: 1.45rem; line-height: 1.25; letter-spacing: -.02em; }
.ah-ticket-when { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 2px 22px; color: var(--ah-ink-2); font-size: .94rem; }
.ah-ticket-when .ah-i { margin-top: 3px; color: var(--ah-blue); }
.ah-ticket-cut { position: relative; height: 28px; margin-top: 12px; }
.ah-ticket-cut::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 2px dashed var(--ah-line); }
.ah-ticket-cut::after { content: ""; position: absolute; left: -14px; right: -14px; top: 0; height: 28px; background: radial-gradient(circle at 14px 50%, #0B1F44 13px, transparent 14px), radial-gradient(circle at calc(100% - 14px) 50%, #0B1F44 13px, transparent 14px); }
body:not(.ah-solo) .ah-ticket-cut::after { display: none; }
.ah-ticket-body { display: grid; gap: 18px; padding: 8px 22px 20px; }
.ah-ticket-body > div:first-child { display: grid; gap: 2px; }
.ah-ticket-body > div:first-child strong { margin-bottom: 8px; font-size: 1.02rem; }
.ah-ticket-qr { justify-self: center; padding: 10px; border-radius: 18px; border: 1px solid var(--ah-line); line-height: 0; }
.ah-ticket-qr svg { width: min(220px, 60vw); height: auto; display: block; }
@media (min-width: 440px) {
	.ah-ticket-body { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
	.ah-ticket-qr svg { width: 150px; }
}
.ah-ticket-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 22px 20px; border-top: 1px solid var(--ah-line-2); background: var(--ah-bg); }
.ah-ticket-foot .ah-btn { flex: 1 1 auto; min-height: 40px; font-size: .86rem; }
.ah-ticket-cancel { display: grid; gap: 12px; }
.ah-ticket-cancel > * { margin: 0; }
.ah-ticket-cancel label { font-weight: 650; }
.ah-ticket-cancel textarea { width: 100%; min-height: 90px; padding: .7em .9em; border: 1px solid var(--ah-line); border-radius: var(--ah-radius-sm); font: inherit; }
.ah-wc-thanks { margin: 1em 0; }

/* ==========================================================================
   19. Notifiche (toast)
   ========================================================================== */
.ah-toasts { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 100002; display: grid; gap: 8px; transform: translateX(-50%); pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.ah-toast {
	display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px;
	background: var(--ah-navy); color: #fff; font: 600 .92rem/1.4 var(--ah-font);
	box-shadow: 0 18px 40px -16px rgba(11, 31, 68, .7); animation: ah-toast .35s var(--ah-ease) both;
}
.ah-toast.is-err { background: var(--ah-coral-600); }
.ah-toast.is-out { animation: ah-toast-out .3s var(--ah-ease) forwards; }

/* ==========================================================================
   20. Animazioni
   ========================================================================== */
@keyframes ah-spin { to { transform: rotate(360deg); } }
@keyframes ah-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes ah-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ah-pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ah-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes ah-bounce { 0% { opacity: 0; transform: scale(.6); } 60% { opacity: 1; transform: scale(1.06); } 100% { transform: none; } }
@keyframes ah-grow { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }
@keyframes ah-draw { to { stroke-dashoffset: 0; } }
@keyframes ah-blink { 50% { opacity: .25; } }
@keyframes ah-halo { 0%, 100% { transform: scale(.7); opacity: .2; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes ah-pulse-g { 0% { box-shadow: 0 0 0 0 rgba(22, 160, 106, .5); } 70% { box-shadow: 0 0 0 6px rgba(22, 160, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 160, 106, 0); } }
@keyframes ah-flash { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 91, 167, 0); } 20% { box-shadow: 0 0 0 4px rgba(47, 91, 167, .35); border-color: var(--ah-blue); } }
@keyframes ah-toast { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ah-toast-out { to { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
	[class*="ah-"], [class*="ah-"]::before, [class*="ah-"]::after, dialog.ah-modal[open] {
		animation-duration: .01ms !important; animation-iteration-count: 1 !important;
		transition-duration: .01ms !important; scroll-behavior: auto !important;
	}
	.ah-spark-line { stroke-dashoffset: 0; }
}

@media print {
	body.ah-solo { background: #fff; }
	.ah-checkin, .ah-ticket-foot, .ah-ticket-cancel, .ah-ticket-wrap > .ah-center, .ah-wallet-full, .ah-toasts { display: none !important; }
	.ah-ticket { box-shadow: none; border: 1px solid #ccc; }
	.ah-ticket-cut::after { display: none; }
}
