/* ===== Home formazioneaiact.it (convertita da home.scss della vecchia home Moodle) ===== */
.ah {
	--ah-navy: #0b1030; --ah-navy2: #141a4a; --ah-ink: #1b2140; --ah-muted: #5b6382;
	--ah-cyan: #22d3ee; --ah-violet: #8b5cf6; --ah-pink: #ec4899; --ah-line: #e6e8f2; --ah-soft: #f5f6fb;
	color: var(--ah-ink); font-size: 1.05rem; line-height: 1.65; overflow-x: clip;
}
.ah *, .ah *::before, .ah *::after { box-sizing: border-box; }
.ah p { margin: 0 0 .9rem; }
.ah h1, .ah h2, .ah h3 { margin-top: 0; }
.ah a:not(.ah-btn) { color: #4f46e5; }
.ah-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ah-narrow { max-width: 820px; }
.ah-white { color: #fff !important; }
.ah-muted { color: var(--ah-muted); }
.ah [id] { scroll-margin-top: 16px; }

/* Hero */
.ah-hero {
	position: relative; overflow: hidden; color: #dfe3ff; padding: 96px 0 140px;
	background:
		radial-gradient(600px 400px at 85% 20%, rgba(139,92,246,.45), transparent 60%),
		radial-gradient(500px 380px at 10% 90%, rgba(34,211,238,.28), transparent 60%),
		linear-gradient(160deg, #0b1030 0%, #141a4a 55%, #1d1660 100%);
}
.ah-hero::before {
	content: ""; position: absolute; inset: 0; opacity: .5;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.ah-hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.ah-pill { display: inline-flex; gap: 8px; align-items: center; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: #c7f9ff; background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.35); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
.ah-h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; margin-bottom: 22px; }
.ah-grad { background: linear-gradient(90deg, #22d3ee, #a78bfa 55%, #f472b6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ah-lead { font-size: 1.2rem; color: #c9cdf0; max-width: 620px; }
.ah-lead strong { color: #fff; }
.ah-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.ah-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; padding: 14px 26px; border-radius: 12px; text-decoration: none !important; line-height: 1.3; transition: transform .15s, box-shadow .15s, background .15s; }
.ah-btn:hover { transform: translateY(-2px); }
.ah-btn-primary { color: #0b1030 !important; background: linear-gradient(90deg, #22d3ee, #67e8f9); box-shadow: 0 10px 30px -8px rgba(34,211,238,.6); }
.ah-btn-ghost { color: #fff !important; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.ah-btn-ghost:hover { background: rgba(255,255,255,.14); }
.ah-btn-light { color: #3b1d8f !important; background: #fff; box-shadow: 0 12px 30px -10px rgba(0,0,0,.4); }
.ah-btn-outline-light { color: #fff !important; border: 1px solid rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.ah-btn-outline-light:hover { background: rgba(255,255,255,.18); }
.ah-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: #aab0dd; }
.ah-trust li { list-style: none; }
.ah-trust li::marker { content: none; }
.ah-trust i { color: var(--ah-cyan); margin-right: 6px; }

/* Certificate mock */
.ah-hero-visual { position: relative; padding: 20px 10px; }
.ah-cert {
	position: relative; background: #fffdf8; color: #2a2f4a; border-radius: 14px; padding: 26px 28px; transform: rotate(2.5deg);
	box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 0 0 8px rgba(255,255,255,.06);
	border: 2px solid #d9c38f; outline: 1px solid #e9dcb8; outline-offset: -10px; text-align: center;
}
.ah-cert-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ah-cert-top i { color: #c49a2c; font-size: 1.8rem; }
.ah-cert-logo { font-size: .65rem; font-weight: 700; letter-spacing: .08em; color: #8a8fb0; border: 1px dashed #b9bdd6; border-radius: 6px; padding: 6px 10px; }
.ah-cert-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; color: #1d2a6b; letter-spacing: .02em; }
.ah-cert-name { font-family: Georgia, serif; font-style: italic; font-size: 1.7rem; margin: 10px 0 2px; color: #111; }
.ah-cert-sub { font-size: .85rem; color: #555b7a; }
.ah-cert-course { margin: 14px 0 18px; font-size: .92rem; font-weight: 600; }
.ah-cert-course small { font-weight: 400; color: #6b7090; }
.ah-cert-foot { display: flex; justify-content: space-between; align-items: flex-end; font-size: .72rem; color: #6b7090; }
.ah-sign { display: block; width: 90px; height: 22px; border-bottom: 1px solid #9aa0bf; margin-bottom: 4px; background: radial-gradient(ellipse 40px 8px at 40% 60%, transparent 70%, #3b4a9a 72%, transparent 76%); }
.ah-code { font-family: ui-monospace, Menlo, Consolas, monospace; background: #eef0fa; padding: 3px 8px; border-radius: 4px; }
.ah-float { position: absolute; display: flex; gap: 8px; align-items: center; font-size: .85rem; font-weight: 600; color: #fff; padding: 10px 16px; border-radius: 12px; background: rgba(20,26,74,.75); border: 1px solid rgba(255,255,255,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); }
.ah-float-1 { left: -24px; bottom: -6px; }
.ah-float-1 i { color: #4ade80; }
.ah-float-2 { right: -10px; top: -8px; }
.ah-float-2 i { color: var(--ah-cyan); }

/* Stats */
.ah-stats { position: relative; margin-top: -70px; z-index: 2; padding: 0 24px; }
.ah-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px -24px rgba(20,26,74,.35); border: 1px solid var(--ah-line); padding: 8px 0; max-width: 1152px; }
.ah-stat { text-align: center; padding: 22px 12px; border-right: 1px solid var(--ah-line); display: flex; flex-direction: column; }
.ah-stat:last-child { border-right: 0; }
.ah-stat-n { font-size: 2.4rem; font-weight: 800; line-height: 1.1; background: linear-gradient(90deg, #4f46e5, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ah-stat-l { font-size: .9rem; color: var(--ah-muted); }

/* Sections */
.ah-sec { padding: 96px 0; background: #fff; }
.ah-sec-alt { background: var(--ah-soft); }
.ah-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.ah-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6d28d9; margin-bottom: 10px; }
.ah-eyebrow-l { color: var(--ah-cyan); }
.ah-h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; color: var(--ah-navy); margin-bottom: 18px; }
.ah-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }

/* Timeline */
.ah-timeline { background: linear-gradient(180deg, #f7f5ff, #fff); border: 1px solid #e7e2fb; border-radius: 20px; padding: 30px; box-shadow: 0 20px 50px -30px rgba(109,40,217,.4); }
.ah-tl-title { font-weight: 800; color: var(--ah-navy); margin-bottom: 18px; }
.ah-tl-title i { color: #7c3aed; margin-right: 6px; }
.ah-tl-item { position: relative; display: flex; flex-direction: column; padding: 0 0 20px 28px; border-left: 2px solid #ddd6fe; margin-left: 6px; font-size: .95rem; }
.ah-tl-item:last-child { padding-bottom: 0; }
.ah-tl-item::before { content: ""; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid #a78bfa; }
.ah-tl-date { font-size: .8rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #7c3aed; }
.ah-tl-hot span:last-child { background: #ede9fe; border-radius: 10px; padding: 8px 12px; margin-top: 4px; }
.ah-tl-hot::before { background: #7c3aed; border-color: #c4b5fd; box-shadow: 0 0 0 6px rgba(124,58,237,.15); }

/* Cards */
.ah-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ah-card { background: #fff; border: 1px solid var(--ah-line); border-radius: 20px; padding: 32px 28px; transition: transform .2s, box-shadow .2s; }
.ah-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(20,26,74,.45); }
.ah-card h3, .ah-law h3, .ah-step h3, .ah-mod h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.3; letter-spacing: 0; color: var(--ah-navy); margin: 0 0 8px; }
.ah-card p { color: var(--ah-muted); margin: 0; }
.ah-ico { display: inline-flex; width: 56px; height: 56px; border-radius: 16px; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; margin-bottom: 18px; }
.ah-ico-a { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.ah-ico-b { background: linear-gradient(135deg, #8b5cf6, #6366f1); }
.ah-ico-c { background: linear-gradient(135deg, #ec4899, #f97316); }

/* Programma */
.ah-mods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.ah-mod { border: 1px solid var(--ah-line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px -30px rgba(20,26,74,.5); }
.ah-mod-h { padding: 22px 24px; color: #fff; }
.ah-mod-h span { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.ah-mod .ah-mod-h h3 { color: #fff; margin: 4px 0 0; font-size: 1.3rem; }
.ah-mod-a { background: linear-gradient(135deg, #0891b2, #3b82f6); }
.ah-mod-b { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.ah-mod-c { background: linear-gradient(135deg, #db2777, #ea580c); }
.ah-les { list-style: none; margin: 0; padding: 8px 0; }
.ah-les li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 24px; font-size: .96rem; border-bottom: 1px solid #f0f1f7; margin: 0; }
.ah-les li:last-child { border-bottom: 0; }
.ah-les b { flex: 0 0 auto; font-size: .78rem; font-weight: 800; color: #6d28d9; background: #f1ecff; border-radius: 8px; padding: 3px 7px; margin-top: 2px; }

/* Steps */
.ah-dark { background: radial-gradient(700px 300px at 50% 0%, rgba(139,92,246,.35), transparent 70%), linear-gradient(180deg, #0b1030, #141a4a); color: #c9cdf0; }
.ah-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.ah-step { position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: 30px 24px; }
.ah-step > i { font-size: 1.6rem; color: var(--ah-cyan); margin-bottom: 14px; display: block; }
.ah-step h3 { color: #fff; }
.ah-step p { margin: 0; font-size: .95rem; }
.ah-step-n { position: absolute; top: 18px; right: 20px; font-size: 2.6rem; font-weight: 800; line-height: 1; color: rgba(255,255,255,.12); }

/* Leggi */
.ah-laws { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ah-law { display: flex; gap: 18px; align-items: flex-start; border: 1px solid var(--ah-line); border-radius: 18px; padding: 24px; background: #fff; }
.ah-law > i { flex: 0 0 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #6d28d9; background: #f1ecff; }
.ah-law p { margin: 0; color: var(--ah-muted); font-size: .95rem; }
.ah-law-main { grid-column: 1 / -1; background: linear-gradient(135deg, #f5f3ff, #ecfeff); border-color: #ddd6fe; }
.ah-law-main > i { color: #fff; background: linear-gradient(135deg, #7c3aed, #06b6d4); }

/* FAQ */
.ah-faq { background: #fff; border: 1px solid var(--ah-line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; }
.ah-faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 700; color: var(--ah-navy); position: relative; }
.ah-faq summary::-webkit-details-marker { display: none; }
.ah-faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: #f1ecff; color: #6d28d9; display: flex; align-items: center; justify-content: center; font-weight: 800; }
.ah-faq[open] summary::after { content: "–"; }
.ah-faq p { padding: 0 24px 20px; margin: 0; color: var(--ah-muted); }

/* Final */
.ah-final { text-align: center; padding: 90px 0; color: #ede9fe; background: radial-gradient(500px 260px at 20% 0%, rgba(34,211,238,.35), transparent 70%), linear-gradient(120deg, #4f46e5, #7c3aed 50%, #c026d3); }
.ah-final p { font-size: 1.15rem; margin-bottom: 28px; }
.ah-final .ah-cta { justify-content: center; margin: 0; }

/* Responsive */
@media (max-width: 991.98px) {
	.ah-hero { padding: 64px 0 120px; }
	.ah-hero-grid, .ah-two { grid-template-columns: 1fr; gap: 48px; }
	.ah-hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
	.ah-cards3, .ah-mods { grid-template-columns: 1fr; }
	.ah-steps { grid-template-columns: repeat(2, 1fr); }
	.ah-stats-grid { grid-template-columns: repeat(2, 1fr); }
	.ah-stat:nth-child(2) { border-right: 0; }
	.ah-stat:nth-child(-n+2) { border-bottom: 1px solid var(--ah-line); }
}
@media (max-width: 575.98px) {
	.ah-wrap { padding: 0 16px; }
	.ah-stats { padding: 0 16px; }
	.ah-cert { transform: rotate(1.5deg); padding: 22px 18px; }
	.ah-sec { padding: 64px 0; }
	.ah-steps, .ah-laws { grid-template-columns: 1fr; }
	.ah-float-1 { left: 0; }
	.ah-float-2 { right: 0; }
	.ah-cta .ah-btn { width: 100%; justify-content: center; }
	.ah-law { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
	.ah-btn:hover, .ah-card:hover { transform: none; }
}
.ah .ah-trust a { color: #c7f9ff; text-decoration: underline; text-underline-offset: 3px; }
.ah .ah-trust a i { color: inherit; margin: 0 0 0 4px; }
