/* =========================================================
   HUROOS — HA · Accounting landing
   File: website_huroos/static/src/css/ha_accounting.css
   Prefisso classi: .ha-   (sostituisce ha_tailwind.css per questa pagina)
   Palette: gold HA #FFD901 / #F0C134 · verde HUROOS #21a085 · neutri
   ========================================================= */

.ha-page {
    --ha-gold: #FFD901;
    --ha-gold-deep: #F0C134;
    --ha-gold-ink: #c9a800;
    --ha-gold-soft: #fffdf2;
    --ha-green: #21a085;
    --ha-green-dark: #1a8068;
    --ha-green-soft: #e9f6f3;
    --ha-ink: #0d1117;
    --ha-muted: #5a6672;
    --ha-meta: #8b95a1;
    --ha-border: #e8edf5;
    --ha-line: #f1f4f8;
    --ha-bg: #f8f9fb;
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--ha-ink);
    background: #fff;
    overflow-x: hidden;
}
.ha-page * { box-sizing: border-box; }

/* ---------- keyframes ---------- */
@keyframes haFloat  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes haFloatS { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes haRise   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes haGrow   { from { transform: scaleY(.2); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }
@keyframes haDraw   { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .ha-page * { animation: none !important; transition: none !important; } }

/* ---------- reveal on scroll (JS) ---------- */
.ha-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.ha-reveal.is-in { opacity: 1; transform: none; }

/* ---------- struttura ---------- */
.ha-page section { position: relative; }
.ha-sec        { padding: 112px 32px; }
.ha-sec--muted { background: var(--ha-bg); border-top: 1px solid var(--ha-border); border-bottom: 1px solid var(--ha-border); }
.ha-wrap       { max-width: 1250px; margin: 0 auto; }
.ha-wrap--md   { max-width: 1080px; margin: 0 auto; }
.ha-wrap--sm   { max-width: 900px;  margin: 0 auto; }

.ha-head        { max-width: 680px; margin-bottom: 52px; }
.ha-head--center{ margin-left: auto; margin-right: auto; text-align: center; }
.ha-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ha-gold-ink); margin-bottom: 14px; }
.ha-h2   { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; margin: 0 0 16px; text-wrap: pretty; }
.ha-lead { font-size: 17px; line-height: 1.65; color: var(--ha-muted); margin: 0; }

/* ---------- HERO ---------- */
.ha-hero { padding: 130px 32px 150px; overflow: hidden; }
.ha-hero__glow-a { position: absolute; top: -160px; right: -140px; width: 620px; height: 620px; border-radius: 50%; background: #fffbe6; z-index: 0; }
.ha-hero__glow-b { position: absolute; bottom: -120px; left: -120px; width: 380px; height: 380px; border-radius: 50%; background: #f4f6f9; z-index: 0; }
.ha-hero__grid {
    position: relative; z-index: 1; max-width: 1250px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 72px; align-items: center; animation: haRise 560ms ease both;
}
.ha-hero__logo {
    position: absolute; top: 64px; right: -26px; left: auto; z-index: 5;
    width: 118px; height: 118px; display: block;
    animation: haFloat 7s ease-in-out infinite;
}
.ha-hero__title { font-size: clamp(36px, 4vw, 56px); line-height: 1.06; text-wrap: nowrap; font-weight: 800; letter-spacing: -.02em; margin: 0 0 22px; text-wrap: pretty; }
.ha-grad {
    background: linear-gradient(100deg, #FFD901 0%, #f5cb00 45%, #ffe14d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.ha-hero__lead { font-size: 18px; line-height: 1.65; color: var(--ha-muted); margin: 0 0 34px; max-width: 520px; text-wrap: pretty; }
.ha-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.ha-hero__kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 28px; max-width: 560px; }
.ha-kpi__value { font-size: 30px; font-weight: 800; line-height: 1; }
.ha-kpi__value--green { color: var(--ha-green); }
.ha-kpi__label { font-size: 12px; font-weight: 600; color: var(--ha-meta); margin-top: 6px; }

/* bolle hero */
.ha-hero__media { position: relative; }
.ha-dot { position: absolute; border-radius: 50%; z-index: 3; }
.ha-dot--gold  { top: -26px; left: -22px; width: 34px; height: 34px; background: var(--ha-gold); animation: haFloat 6s ease-in-out infinite; }
.ha-dot--green { bottom: -18px; right: -14px; width: 20px; height: 20px; background: var(--ha-green); animation: haFloatS 5.4s ease-in-out infinite .5s; }

/* ---------- mockup browser ---------- */
.ha-shot { border: 1px solid var(--ha-border); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 28px 60px -18px rgba(13,17,23,.16); }
.ha-shot--float { animation: haFloatS 9s ease-in-out infinite; }
.ha-shot__bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #f4f6f9; border-bottom: 1px solid var(--ha-border); }
.ha-shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #e0e5ec; display: inline-block; }
.ha-shot__url { flex: 1; background: #fff; border: 1px solid var(--ha-border); border-radius: 7px; height: 26px; display: flex; align-items: center; padding: 0 10px; font-size: 10px; color: var(--ha-meta); font-weight: 500; margin-left: 6px; }
.ha-shot__url .fa-lock { width: auto; height: auto; background: none; color: var(--ha-green); margin-right: 7px; font-size: 9px; }
.ha-shot__nav { display: flex; align-items: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--ha-border); font-size: 11px; color: var(--ha-meta); font-weight: 600; }
.ha-shot__app { width: 18px; height: 18px; border-radius: 6px; background: var(--ha-gold); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--ha-ink); }
.ha-shot__title { color: var(--ha-ink); font-weight: 700; margin-right: 12px; }
.ha-shot__body { padding: 20px; background: var(--ha-bg); display: grid; gap: 16px; }

.ha-mini { background: #fff; border: 1px solid var(--ha-border); border-radius: 16px; padding: 16px; }
.ha-mini__label { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ha-meta); margin-bottom: 8px; }
.ha-mini__value { font-size: 22px; font-weight: 800; line-height: 1; }
.ha-mini__value--green { color: var(--ha-green); }
.ha-mini__delta { font-size: 10px; font-weight: 600; color: var(--ha-green); margin-top: 6px; }
.ha-mini__delta--flat { color: var(--ha-meta); }
.ha-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.ha-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; padding-right: 104px; }

.ha-chart { background: #fff; border: 1px solid var(--ha-border); border-radius: 16px; padding: 18px; }
.ha-chart__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ha-chart__name { font-size: 13px; font-weight: 700; }
.ha-chart__sub  { font-size: 10px; color: var(--ha-meta); margin-top: 2px; }
.ha-legend { display: flex; gap: 14px; font-size: 9.5px; font-weight: 600; color: var(--ha-meta); }
.ha-legend b { display: inline-block; width: 10px; height: 5px; border-radius: 3px; margin-right: 5px; }
.ha-legend b.is-green { background: var(--ha-green); }
.ha-legend b.is-gold  { background: var(--ha-gold); }
.ha-line { width: 100%; height: 84px; display: block; }
.ha-line__path { stroke-dasharray: 640; stroke-dashoffset: 640; animation: haDraw 1.6s ease .3s forwards; }
.ha-bars { display: flex; align-items: flex-end; gap: 5px; height: 56px; margin-top: 14px; }
.ha-bars > span { flex: 1; background: #e9edf2; border-radius: 4px 4px 0 0; animation: haGrow .7s ease both; }
.ha-bars > span.is-green { background: var(--ha-green); }
.ha-bars > span.is-green-soft { background: #bfe4da; }
.ha-bars > span.is-gold { background: var(--ha-gold); }
.ha-bars > span.is-gold-soft { background: #fff0a8; }

.ha-toast {
    position: absolute; right: -22px; bottom: 56px; z-index: 4;
    background: #fff; border: 1px solid var(--ha-border); border-radius: 16px;
    box-shadow: 0 18px 40px -12px rgba(13,17,23,.18);
    padding: 14px 18px; display: flex; align-items: center; gap: 12px;
    animation: haFloat 7s ease-in-out infinite 1s;
}
.ha-toast__icon { width: 38px; height: 38px; border-radius: 12px; background: var(--ha-gold); display: flex; align-items: center; justify-content: center; }
.ha-toast__title { font-size: 12px; font-weight: 700; line-height: 1.2; }
.ha-toast__sub { font-size: 10.5px; color: var(--ha-meta); margin-top: 2px; }

/* ---------- illustrazione animata ---------- */
@keyframes haMorph { 0%,100% { border-radius: 58% 42% 63% 37% / 45% 58% 42% 55%; } 50% { border-radius: 44% 56% 42% 58% / 58% 42% 58% 42%; } }
@keyframes haFloatCenter { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-12px); } }
@keyframes haTiltA { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-8px); } }
@keyframes haTiltB { 0%,100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-10px); } }

.ha-illu { position: relative; border-radius: 28px; background: var(--ha-gold-soft); padding: 70px 40px 118px; overflow: hidden; min-height: 470px; display: flex; align-items: center; justify-content: center; }
.ha-illu__blob { position: absolute; display: block; }
.ha-illu__blob--a { top: -90px; left: -70px; width: 360px; height: 340px; background: rgba(255,217,1,.22); border-radius: 58% 42% 63% 37% / 45% 58% 42% 55%; animation: haMorph 16s ease-in-out infinite; }
.ha-illu__blob--b { bottom: -110px; right: -60px; width: 320px; height: 300px; background: rgba(33,160,133,.10); border-radius: 42% 58% 38% 62% / 60% 40% 60% 40%; animation: haMorph 19s ease-in-out infinite 1.4s; }
.ha-illu__stage { position: relative; width: min(620px, 100%); height: 300px; }
.ha-illu__card { position: absolute; box-sizing: border-box; background: #fff; border-radius: 20px; padding: 18px; }
.ha-illu__card--left   { left: 0; top: 52px; width: 34%; border: 1px solid #f0e4b0; box-shadow: 0 18px 40px -22px rgba(13,17,23,.22); animation: haTiltA 8s ease-in-out infinite .3s; }
.ha-illu__card--center { left: 50%; top: 0; width: 34%; min-width: 200px; padding: 24px; border: 1.5px solid var(--ha-gold); border-radius: 22px; box-shadow: 0 26px 54px -20px rgba(201,168,0,.4); transform: translateX(-50%); animation: haFloatCenter 7.2s ease-in-out infinite; z-index: 3; }
.ha-illu__card--right  { right: 0; top: 44px; width: 34%; border: 1.5px solid var(--ha-green); box-shadow: 0 22px 46px -20px rgba(33,160,133,.3); animation: haTiltB 6.8s ease-in-out infinite .6s; }
.ha-illu__label { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ha-faint, #a3acb8); margin-bottom: 12px; }
.ha-illu__label.is-gold  { color: var(--ha-gold-ink); font-size: 11px; margin-bottom: 14px; }
.ha-illu__label.is-green { color: var(--ha-green-dark); }
.ha-illu__value { font-size: 20px; font-weight: 800; line-height: 1; }
.ha-illu__meta  { font-size: 11px; color: var(--ha-meta); margin-top: 7px; }
.ha-illu__lines { margin-top: 16px; display: grid; gap: 8px; }
.ha-illu__lines i { display: block; height: 7px; border-radius: 5px; background: #f6f7f9; }
.ha-illu__lines i.is-short { width: 70%; }
.ha-illu__icon { width: 54px; height: 54px; border-radius: 50%; background: var(--ha-gold); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 20px; color: #fff; }
.ha-illu__title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.ha-illu__bar { margin-top: 16px; height: 6px; border-radius: 4px; background: var(--ha-line); overflow: hidden; }
.ha-illu__bar span { display: block; height: 100%; width: 100%; background: var(--ha-green); transform-origin: left; animation: haGrowX .9s ease .3s both; }
.ha-illu__chip { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 20px; background: var(--ha-gold); color: #fff; font-size: 10.5px; font-weight: 700; }
.ha-illu__tag  { margin-top: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 20px; background: var(--ha-green-soft); color: var(--ha-green-dark); font-size: 10px; font-weight: 700; }
.ha-illu__toast { position: absolute; left: 0; bottom: -52px; background: #fff; border: 1px solid var(--ha-border); border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(13,17,23,.2); padding: 14px 18px; display: flex; align-items: center; gap: 12px; animation: haFloatS 6.4s ease-in-out infinite .8s; z-index: 4; }
.ha-illu__toast-ico { width: 34px; height: 34px; border-radius: 11px; background: var(--ha-gold-soft); display: flex; align-items: center; justify-content: center; color: var(--ha-gold-ink); font-size: 14px; }
.ha-illu__toast-title { font-size: 12px; font-weight: 700; line-height: 1.2; }
.ha-illu__toast-sub { font-size: 10.5px; color: var(--ha-meta); margin-top: 2px; }
.ha-illu__seal { position: absolute; right: 2%; bottom: -58px; width: 52px; height: 52px; border-radius: 50%; background: var(--ha-green); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 19px; animation: haFloat 6.9s ease-in-out infinite .2s; z-index: 4; }
@keyframes haGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 767.98px) {
    .ha-illu { padding: 40px 20px 130px; min-height: 0; }
    .ha-illu__stage { height: auto; display: grid; gap: 16px; }
    .ha-illu__card, .ha-illu__toast, .ha-illu__seal { position: static; width: auto; transform: none; animation: none; }
    .ha-illu__card--center { min-width: 0; }
}

/* ---------- griglie card ---------- */
.ha-cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 24px; }
.ha-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 80px; align-items: center; }

.ha-panel { background: #fff; border: 1px solid var(--ha-border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.ha-panel__head { padding: 16px 20px; border-bottom: 1px solid var(--ha-border); background: var(--ha-bg); display: flex; align-items: center; justify-content: space-between; }
.ha-panel__title { font-size: 13px; font-weight: 700; }
.ha-panel__meta  { font-size: 11px; font-weight: 600; color: var(--ha-meta); }
.ha-panel__meta--ok { color: var(--ha-green); }
.ha-panel__foot { padding: 18px 20px; border-top: 1px solid var(--ha-border); background: var(--ha-bg); display: flex; align-items: center; justify-content: space-between; margin-top: auto; }

/* tabella F24 */
.ha-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--ha-line); font-size: 12px; }
.ha-row--head { padding: 10px 20px; background: var(--ha-bg); font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ha-meta); border-bottom: 1px solid var(--ha-border); }
.ha-row--warn { background: var(--ha-gold-soft); }
.ha-row--off  { color: var(--ha-meta); }
.ha-row b { font-weight: 700; }
.ha-row span:last-child { text-align: right; }
.ha-tag { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 10px; font-weight: 700; }
.ha-tag--ok   { background: var(--ha-green-soft); color: var(--ha-green-dark); }
.ha-tag--todo { background: var(--ha-gold); color: #5c4c00; }
.ha-tag--wait { background: var(--ha-line); color: var(--ha-meta); }

/* storico F24 */
.ha-stack { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.ha-stack > div { flex: 1; display: flex; flex-direction: column-reverse; gap: 2px; }
.ha-stack i { display: block; background: var(--ha-green); border-radius: 3px 3px 0 0; }
.ha-stack u { display: block; background: var(--ha-gold); }
.ha-axis { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--ha-meta); margin-top: 10px; }
.ha-ytd { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--ha-line); }
.ha-ytd > div { border: 1px solid var(--ha-border); border-radius: 14px; padding: 14px; text-align: center; }
.ha-ytd small { display: block; font-size: 10px; color: var(--ha-meta); margin-bottom: 4px; }
.ha-ytd strong { font-size: 16px; font-weight: 800; }

/* scadenzario */
.ha-due { border: 1px solid var(--ha-border); border-radius: 16px; padding: 18px; }
.ha-due--urgent { border-color: var(--ha-gold); background: var(--ha-gold-soft); }
.ha-due__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ha-due__state { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; color: var(--ha-muted); }
.ha-due__state--urgent { color: #5c4c00; }
.ha-due__state--ok { color: var(--ha-green-dark); }
.ha-due__ico { width: 26px; height: 26px; border-radius: 50%; background: var(--ha-line); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ha-muted); }
.ha-due__ico--gold  { background: var(--ha-gold); color: var(--ha-ink); }
.ha-due__ico--green { background: var(--ha-green); color: #fff; }
.ha-due__date { font-size: 11px; font-weight: 700; color: var(--ha-meta); }
.ha-due__name { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.ha-due__foot { display: flex; align-items: center; justify-content: space-between; }
.ha-due__note { font-size: 12.5px; color: var(--ha-muted); }
.ha-due__amount { font-size: 15px; font-weight: 800; }
.ha-due__amount--green { color: var(--ha-green); }

/* ---------- feature list ---------- */
.ha-features { display: grid; gap: 22px; max-width: 540px; }
.ha-feature { display: flex; gap: 18px; align-items: flex-start; }
.ha-feature__ico { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; background: var(--ha-gold); display: flex; align-items: center; justify-content: center; color: var(--ha-ink); }
.ha-feature__ico--green { background: var(--ha-green); color: #fff; }
.ha-feature__title { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.ha-feature__text  { font-size: 14.5px; line-height: 1.6; color: var(--ha-muted); }

/* ---------- mockup AI / azioni massive ---------- */
.ha-ai { position: relative; }
.ha-ai__accent { position: absolute; top: 6%; right: 2%; width: 66%; height: 74%; border-radius: 28px; background: var(--ha-gold); z-index: 0; }
.ha-ai__card { position: relative; z-index: 1; width: 78%; background: #fff; border: 1px solid var(--ha-border); border-radius: 20px; box-shadow: 0 24px 50px -18px rgba(13,17,23,.18); overflow: hidden; }
.ha-ai__bar { padding: 14px 18px; border-bottom: 1px solid var(--ha-border); background: var(--ha-bg); display: flex; align-items: center; gap: 9px; }
.ha-ai__tools { padding: 14px 18px; border-bottom: 1px solid var(--ha-border); display: flex; gap: 8px; }
.ha-chip { padding: 7px 14px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.ha-chip--dark  { background: var(--ha-ink); color: #fff; }
.ha-chip--ghost { border: 1px solid var(--ha-border); color: var(--ha-muted); font-weight: 600; }
.ha-chip--green { background: var(--ha-green); color: #fff; }
.ha-chip--gold  { background: var(--ha-gold); color: #5c4c00; }
.ha-ai__hint { font-size: 11px; line-height: 1.6; padding: 12px 14px; border-radius: 12px; background: var(--ha-gold-soft); border: 1px solid var(--ha-gold); color: #5c4c00; margin-bottom: 16px; }
.ha-ai__num { font-size: 14px; font-weight: 800; margin-bottom: 18px; }
.ha-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; font-size: 11.5px; }
.ha-fields small { display: block; color: var(--ha-meta); margin-bottom: 3px; }
.ha-fields span { font-weight: 600; }
.ha-pdf { position: absolute; right: 0; bottom: 24px; z-index: 2; width: 44%; background: #fff; border: 1px solid var(--ha-border); border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(13,17,23,.2); overflow: hidden; animation: haFloatS 6.5s ease-in-out infinite 1s; }
.ha-pdf__head { padding: 9px 12px; background: var(--ha-bg); border-bottom: 1px solid var(--ha-border); display: flex; justify-content: space-between; font-size: 8.5px; color: var(--ha-meta); font-weight: 600; }
.ha-pdf__body { padding: 14px; display: grid; gap: 7px; }
.ha-pdf__body i { display: block; height: 6px; background: #eef1f5; border-radius: 3px; }
.ha-pdf__body i.is-short { width: 80%; }
.ha-pdf__body i.is-hl { height: 11px; background: #d7ede7; margin: 6px 0; }
.ha-pdf__total { display: flex; justify-content: space-between; border-top: 1px solid #eef1f5; padding-top: 9px; margin-top: 5px; font-size: 8.5px; font-weight: 800; }

.ha-list__row { padding: 15px 18px; border-bottom: 1px solid var(--ha-line); font-size: 13px; color: var(--ha-muted); }
.ha-list__row--active { font-weight: 700; color: var(--ha-ink); background: var(--ha-gold-soft); }
.ha-dropdown { position: absolute; right: -16px; top: 96px; width: 270px; background: #fff; border: 1px solid var(--ha-border); border-radius: 16px; box-shadow: 0 22px 46px -14px rgba(13,17,23,.2); overflow: hidden; animation: haFloatS 7s ease-in-out infinite .5s; }
.ha-dropdown div { padding: 12px 18px; border-bottom: 1px solid var(--ha-line); font-size: 13px; color: var(--ha-muted); }
.ha-dropdown div:last-child { border-bottom: 0; }
.ha-dropdown div.is-strong { font-weight: 600; color: var(--ha-ink); }
.ha-dropdown div.is-green  { font-weight: 700; color: var(--ha-green); }

/* ---------- video ---------- */
.ha-video { position: relative; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 64px -24px rgba(13,17,23,.28); aspect-ratio: 16 / 9; background: var(--ha-ink); }
.ha-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- bento ---------- */
.ha-bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); gap: 24px; align-items: stretch; }
.ha-bento__card { background: var(--ha-bg); border: 1px solid var(--ha-border); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; transition: border-color .18s ease; }
.ha-bento__card:hover { border-color: #d7dee8; }
.ha-bento__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--ha-gold); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; font-size: 19px; color: var(--ha-ink); }
.ha-bento__ico--green { background: var(--ha-green); color: #fff; }
.ha-bento__title { font-size: 23px; font-weight: 800; margin: 0 0 12px; letter-spacing: -.01em; }
.ha-bento__text  { font-size: 15.5px; line-height: 1.65; color: var(--ha-muted); margin: 0; }
.ha-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 26px; }
.ha-stats > div { background: #fff; border: 1px solid var(--ha-border); border-radius: 14px; padding: 16px; text-align: center; }
.ha-stats strong { display: block; font-size: 22px; font-weight: 800; }
.ha-stats strong.is-gold  { color: var(--ha-gold-ink); }
.ha-stats strong.is-green { color: var(--ha-green); }
.ha-stats small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ha-meta); margin-top: 5px; }
.ha-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ha-page .ha-pills > span {
    display: inline-flex; align-items: center;
    padding: 8px 16px; border-radius: 40px;
    background: #fff; border: 1px solid var(--ha-border);
    font-size: 12.5px; font-weight: 600; line-height: 1.2; color: var(--ha-ink);
    white-space: nowrap;
}

/* ---------- timeline ---------- */
.ha-flow { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; align-items: stretch; }
.ha-flow__line { position: absolute; top: 22px; left: 8%; right: 8%; height: 2px; background: #e2e7ee; }
.ha-step { position: relative; display: flex; flex-direction: column; min-width: 0; }
.ha-step__num { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 50%; background: var(--ha-gold); color: var(--ha-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 22px; }
.ha-step__num--green { background: var(--ha-green); color: #fff; }
.ha-step__card { background: #fff; border: 1px solid var(--ha-border); border-radius: 20px; padding: 26px; flex: 1; min-width: 0; }
.ha-step__card i { font-size: 22px; color: var(--ha-gold-ink); }
.ha-step__card i.is-green { color: var(--ha-green); }
.ha-step__card h4 { font-size: 17px; font-weight: 700; margin: 16px 0 8px; }
.ha-step__card p  { font-size: 14px; line-height: 1.6; color: var(--ha-muted); margin: 0; }

/* ---------- FAQ ---------- */
.ha-faq { display: grid; gap: 14px; }
.ha-faq details { background: var(--ha-bg); border: 1px solid var(--ha-border); border-radius: 18px; padding: 24px 28px; }
.ha-faq summary { font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ha-faq summary::-webkit-details-marker { display: none; }
.ha-faq summary::after { content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 13px; color: var(--ha-meta); transition: transform .2s ease; }
.ha-faq details[open] summary::after { transform: rotate(180deg); }
.ha-faq p { font-size: 15.5px; line-height: 1.7; color: var(--ha-muted); margin: 16px 0 0; }

/* ---------- CTA ---------- */
.ha-cta-section { padding: 0 32px 112px; background: #fff; }
.ha-cta { max-width: 1250px; margin: 0 auto; background: var(--ha-gold); border-radius: 32px; padding: 80px 56px; text-align: center; position: relative; overflow: hidden; }
.ha-cta__blob { position: absolute; border-radius: 50%; }
.ha-cta__blob--a { top: -90px; right: -70px; width: 320px; height: 320px; background: rgba(255,255,255,.30); animation: haFloat 12s ease-in-out infinite; }
.ha-cta__blob--b { bottom: -120px; left: -60px; width: 280px; height: 280px; background: rgba(255,255,255,.22); animation: haFloatS 14s ease-in-out infinite; }
.ha-cta__title { position: relative; font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; font-weight: 800; letter-spacing: -.015em; color: #fff; margin: 0 0 18px; text-wrap: pretty; }
.ha-cta__text  { position: relative; font-size: 17px; line-height: 1.65; color: rgba(255,255,255,.92); margin: 0 auto 36px; max-width: 560px; }
.ha-cta__actions { position: relative; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ha-cta__notes { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin-top: 36px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); }

/* ---------- bottoni ---------- */
.ha-btn {
    display: inline-flex; align-items: center; justify-content: center; height: 54px; padding: 0 30px;
    border-radius: 16px; font-weight: 700; font-size: 15px; text-decoration: none;
    transition: background-color .16s ease, color .16s ease, transform .12s ease; border: 0; cursor: pointer;
}
.ha-btn:hover  { text-decoration: none; }
.ha-btn:active { transform: translateY(1px); }
.ha-btn--gold  { background: var(--ha-gold); color: #fff; }
.ha-btn--gold:hover { background: #e9c500; color: #fff; }
.ha-btn--ghost { background: #fff; border: 1px solid var(--ha-border); color: var(--ha-ink); font-weight: 600; }
.ha-btn--ghost:hover { background: var(--ha-bg); color: var(--ha-ink); }
.ha-btn--dark  { background: #fff; color: var(--ha-gold-ink); height: 56px; padding: 0 32px; }
.ha-btn--dark:hover { background: var(--ha-gold-soft); color: #a8820a; }
.ha-btn--outline-dark { background: transparent; border: 1.5px solid rgba(255,255,255,.7); color: #fff; font-weight: 600; height: 56px; padding: 0 32px; }
.ha-btn--outline-dark:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
    .ha-sec { padding: 90px 24px; }
    .ha-hero { padding: 100px 24px 110px; }
    .ha-split { gap: 56px; }
    .ha-cta-section { padding: 0 24px 90px; }
}
@media (max-width: 991.98px) {
    .ha-hero__title { font-size: clamp(30px, 6vw, 42px); text-wrap: pretty; }
    .ha-hero__logo { width: 104px; height: 104px; top: 28px; right: -12px; }
    .ha-hero__grid { grid-template-columns: minmax(0,1fr); gap: 56px; }
    .ha-split { grid-template-columns: minmax(0,1fr); }
    .ha-toast { right: 8px; bottom: 16px; }
    .ha-ai__card { width: 100%; }
    .ha-ai__accent { display: none; }
    .ha-pdf { position: static; width: 100%; margin-top: 18px; animation: none; }
    .ha-dropdown { position: static; width: 100%; margin-top: 18px; animation: none; }
    .ha-flow__line { display: none; }
    .ha-cta { padding: 56px 28px; }
}
@media (max-width: 575.98px) {
    .ha-grid-2 { grid-template-columns: minmax(0,1fr); padding-right: 0; }
    .ha-hero { padding: 72px 20px 80px; }
    .ha-sec  { padding: 72px 20px; }
    .ha-grid-3 { grid-template-columns: minmax(0,1fr); }
    .ha-stats  { grid-template-columns: minmax(0,1fr); }
    .ha-hero__logo { width: 82px; height: 82px; top: 20px; right: -6px; }
    .ha-hero__title { text-wrap: pretty; }
}
