/* =========================================================================
   Pagina HGRC (tema blu sanitario). Si appoggia a apps.css.
   ========================================================================= */
.apx-hgrc { --a1: #0058b8; --a2: #38bdf8; }
.hg-stage { background: linear-gradient(150deg, #0b63c9 0%, #0058b8 45%, #073f8c 100%); color: #fff; border: 0; box-shadow: 0 40px 90px rgba(0, 88, 184, .35); }
.hg-pattern { position: absolute; inset: 0; z-index: -1; background: url(/img/apps/hgrc/pattern.webp) center / 760px; opacity: .13; mix-blend-mode: soft-light; filter: invert(1) brightness(1.6); }
.hg-stage .apx-aurora i:nth-child(1) { background: #38bdf8; opacity: .45; }
.hg-stage .apx-aurora i:nth-child(2) { background: #22d3ee; opacity: .3; }
.hg-stage .apx-aurora i:nth-child(3) { background: #7c5ce6; opacity: .3; }
.hg-pill { color: #e6f3ff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
.hg-logo-title { margin: 0 0 6px; }
.hg-logo-title img { display: block; width: min(380px, 80%); height: auto; filter: drop-shadow(0 12px 30px rgba(0, 20, 60, .35)); }
.hg-name { margin: 0 0 18px; font-size: 14px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: #bfe3ff; }
.hg-lead { margin: 0 0 14px; font-size: clamp(22px, 2.8vw, 34px); font-weight: 650; line-height: 1.2; letter-spacing: -.03em; color: #fff; }
.hg-sub { max-width: 560px; margin: 0 0 28px; font-size: 16.5px; line-height: 1.65; color: #cfe6fb; }
.hg-btn-white { color: #0a3f8f !important; background: #fff; box-shadow: 0 14px 34px rgba(0, 20, 60, .3); }
.hg-btn-white:hover { background: #e6f3ff; }
.hg-btn-outline { color: #fff !important; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); }
.hg-btn-outline:hover { background: rgba(255, 255, 255, .18); }

.hg-visual { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; min-height: 420px; align-content: center; }
.hg-card { padding: 16px 18px; color: #0b2447; background: rgba(255, 255, 255, .94); border-radius: 22px; box-shadow: 0 22px 50px rgba(0, 20, 60, .3); backdrop-filter: blur(14px); animation: apx-float 6s ease-in-out infinite; }
.hg-card header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13px; }
.hg-card b { font-weight: 700; }
.hg-card-patient { grid-column: 1 / 6; display: flex; align-items: center; gap: 14px; }
.hg-card-patient > div:nth-child(2) { display: grid; flex: 1; }
.hg-card-patient span { font-size: 12.5px; color: #5b7390; }
.hg-avatar { display: grid; place-items: center; width: 46px; height: 46px; font-size: 24px; color: #fff; background: linear-gradient(140deg, #0058b8, #38bdf8); border-radius: 50%; }
.hg-tag { font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; color: #b42318; background: #fde7e7; border-radius: 999px; }
.hg-card-vitals { grid-column: 2 / 7; animation-delay: -2s; }
.hg-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #1f9d6e; }
.hg-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: apx-pulse 1.4s infinite; }
.hg-card-vitals svg { display: block; width: 100%; height: 64px; }
.hg-ecg { fill: none; stroke: #e5484d; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: hg-ecg 3s linear infinite; }
@keyframes hg-ecg { to { stroke-dashoffset: 0; } }
.hg-vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 6px; }
.hg-vitals small { display: block; font-size: 11px; color: #5b7390; }
.hg-vitals b { font-size: 18px; letter-spacing: -.02em; }
.hg-card-beds { grid-column: 1 / 4; animation-delay: -3.5s; }
.hg-bedgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.hg-bedgrid i { aspect-ratio: 1; border-radius: 6px; background: #cfe3f8; }
.hg-bedgrid i.is-busy { background: #0058b8; }
.hg-bedgrid i.is-alert { background: #e5484d; animation: apx-pulse 1.6s infinite; }
.hg-bedgrid i.is-free { background: #bff0d6; }
.hg-card-lab { grid-column: 4 / 7; display: flex; align-items: center; gap: 14px; animation-delay: -1s; }
.hg-card-lab > i { display: grid; place-items: center; width: 44px; height: 44px; font-size: 24px; color: #fff; background: linear-gradient(140deg, #7c5ce6, #a78bfa); border-radius: 14px; }
.hg-card-lab div { display: grid; }
.hg-card-lab span { font-size: 12.5px; color: #5b7390; }

.hg-journey { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; position: relative; }
.hg-journey::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: linear-gradient(90deg, transparent, var(--a1), var(--a2), transparent); opacity: .35; }
.hg-journey li { position: relative; display: grid; justify-items: center; gap: 12px; text-align: center; }
.hg-journey li span { display: grid; place-items: center; width: 68px; height: 68px; font-size: 30px; color: #fff; background: linear-gradient(145deg, var(--a1), var(--a2)); border-radius: 22px; box-shadow: 0 14px 30px color-mix(in srgb, var(--a1) 40%, transparent); }
.hg-journey li b { font-size: 14px; font-weight: 650; }
html.apx-js .hg-journey li { opacity: 0; transform: translateY(14px); transition: opacity .6s ease var(--d), transform .6s ease var(--d); }
html.apx-js [data-reveal].is-in .hg-journey li { opacity: 1; transform: none; }

.hg-modules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hg-module { padding: 24px; background: radial-gradient(360px circle at var(--sx, -200px) var(--sy, -200px), color-mix(in srgb, var(--c1) 12%, transparent), transparent 62%), var(--ds-glass-strong); border: 1px solid var(--ds-line); border-radius: 24px; box-shadow: 0 6px 20px rgba(11, 13, 18, .05); transition: transform .3s, box-shadow .3s; }
.hg-module:hover { transform: translateY(-4px); box-shadow: var(--ds-shadow-lift); }
.hg-module .syn-hl-ic { margin-bottom: 16px; }
.hg-module h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.hg-module p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ds-ink-2); }

.hg-integrations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hg-int { padding: 24px; background: var(--ds-glass-strong); border: 1px solid var(--ds-line); border-radius: 22px; }
.hg-int b { display: block; margin-bottom: 6px; font-size: 20px; font-weight: 750; letter-spacing: -.03em; background: linear-gradient(110deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hg-int span { font-size: 14.5px; line-height: 1.55; color: var(--ds-ink-2); }

.hg-arch { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; padding: 28px; background: linear-gradient(160deg, #f1f7ff, #eaf3fd); border: 1px solid var(--ds-line); border-radius: 32px; }
.hg-arch-top { display: flex; align-items: baseline; gap: 12px; justify-content: center; }
.hg-arch-top span { font-size: 22px; font-weight: 750; letter-spacing: -.03em; color: var(--a1); }
.hg-arch-top em { font-style: normal; font-size: 13.5px; color: var(--ds-muted); }
.hg-arch-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hg-arch-mid, .hg-arch-row:last-child { grid-template-columns: 1fr; }
.hg-node { display: grid; justify-items: center; gap: 4px; padding: 20px 14px; text-align: center; background: #fff; border: 1px solid #cfe0f4; border-radius: 20px; box-shadow: 0 8px 22px rgba(0, 88, 184, .08); }
.hg-node i { font-size: 30px; color: var(--a1); }
.hg-node b { font-size: 16px; }
.hg-node span { font-size: 12.5px; color: var(--ds-muted); }
.hg-node.is-db { background: linear-gradient(140deg, #0b63c9, #0a3f8f); border-color: transparent; }
.hg-node.is-db i, .hg-node.is-db b { color: #fff; }
.hg-node.is-db span { color: #bfe3ff; }

.hg-final { color: #fff; text-align: center; grid-template-columns: 1fr; background: linear-gradient(150deg, #0b63c9, #073f8c); border: 0; justify-items: center; }
.hg-final h2, .hg-final p { color: #fff; }
.hg-final p { color: #cfe6fb; }
.hg-final-logo { width: 220px; height: auto; margin-bottom: 18px; }
.hg-final .apx-cta { justify-content: center; }

@media (max-width: 1100px) {
    .hg-modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hg-journey { grid-template-columns: repeat(4, 1fr); row-gap: 24px; }
    .hg-journey::before { display: none; }
}
@media (max-width: 767.98px) {
    .hg-modules, .hg-integrations { grid-template-columns: 1fr; }
    .hg-journey { grid-template-columns: repeat(2, 1fr); }
    .hg-arch-row { grid-template-columns: repeat(2, 1fr); }
    .hg-arch { padding: 16px; }
    .hg-visual { grid-template-columns: 1fr; min-height: 0; }
    .hg-card-patient, .hg-card-vitals, .hg-card-beds, .hg-card-lab { grid-column: auto; }
    .hg-logo-title img { width: min(300px, 80%); }
}

.hg-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.hg-shot { margin: 0; background: #fff; border: 1px solid var(--ds-line, rgba(11,13,18,.1)); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px -30px rgba(0,40,100,.35); transition: transform .35s ease, box-shadow .35s ease; }
.hg-shot:hover { transform: translateY(-4px); box-shadow: 0 34px 70px -30px rgba(0,40,100,.45); }
.hg-shot-bar { display: flex; gap: 6px; padding: 10px 14px; background: #f1f4f9; border-bottom: 1px solid rgba(11,13,18,.08); }
.hg-shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfd6e2; }
.hg-shot img { display: block; width: 100%; height: auto; }
.hg-shot figcaption { padding: 14px 18px 18px; font-size: 14px; line-height: 1.5; color: #0b0d12; }
.hg-shot figcaption b { display: block; font-size: 15px; margin-bottom: 2px; }
@media (max-width: 767.98px) { .hg-shots { grid-template-columns: 1fr; } }

.hg-shot-wide { grid-column: 1 / -1; }

.hg-monitor { background: #0b1220; border-radius: 22px; padding: 18px; box-shadow: 0 30px 70px -34px rgba(0,30,90,.55); }
.hg-monitor-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 16px; flex-wrap: wrap; }
.hg-monitor-bar b { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: #e8edf5; }
.hg-monitor-bar b i { color: #fb7185; margin-right: 4px; }
.hg-monitor-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #4ade80; background: rgba(74,222,128,.12); padding: 6px 12px; border-radius: 999px; }
.hg-monitor-status i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; animation: hgLivePulse 1.4s infinite; }
.hg-monitor-status em { font-style: normal; color: #b8f5cf; font-variant-numeric: tabular-nums; }
@keyframes hgLivePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.hg-monitor-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hg-vcard { background: #111827; border: 1px solid rgba(255,255,255,.06); border-left: 4px solid #22c55e; border-radius: 12px; padding: 14px; transition: border-color .4s, background .4s; }
.hg-vcard h4 { margin: 0; font-size: 14px; font-weight: 600; color: #f1f5f9; }
.hg-vcard small { display: block; margin: 2px 0 12px; font-size: 11px; color: #8b95a7; }
.hg-vrow { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 10px; }
.hg-vrow span { display: block; font-size: 10px; letter-spacing: .08em; color: #8b95a7; }
.hg-vrow b { font-family: "Courier New", monospace; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: #4ade80; }
.hg-vrow > div:nth-child(2) b { color: #facc15; }
.hg-vrow > div:nth-child(3) b { color: #fb7185; }
.hg-vcard.is-warn { border-left-color: #facc15; }
.hg-vcard.is-alert { border-left-color: #ef4444; background: #1a1117; animation: hgAlert 1.6s infinite; }
@keyframes hgAlert { 0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } 50% { box-shadow: 0 0 0 4px rgba(239,68,68,.25); } }
@media (max-width: 1199.98px) { .hg-monitor-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .hg-monitor-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hg-vrow b { font-size: 15px; } }
@media (max-width: 420px) { .hg-monitor-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .hg-vcard.is-alert, .hg-monitor-status i { animation: none; } }

.hg-follow-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: none; }
.hg-follow-step { background: var(--ds-glass-strong, #fff); border: 1px solid var(--ds-line, rgba(11,13,18,.1)); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 24px 60px -34px rgba(0,40,100,.35); }
.hg-follow-step h3 { margin: 0; font-size: 20px; color: #0b0d12; }
.hg-follow-step p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.55; color: #3a4252; }
.hg-follow-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--a1, #0058b8), var(--a2, #38bdf8)); color: #fff; font-weight: 700; }
.hg-follow-step .hg-shot { margin-top: auto; box-shadow: none; }
.hg-shot-strip { border-radius: 14px; }
.hg-shot-strip img { background: #0e2a6b; }
.hg-follow-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(0,88,184,.1); color: #0b4a9a; font-size: 12px; font-weight: 600; }
.hg-follow-chip i { font-size: 15px; }
@media (max-width: 991.98px) { .hg-follow-flow { grid-template-columns: 1fr; } }

.hg-selected-chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 999px; background: linear-gradient(135deg, #17409a, #1f6fd1); color: #fff; margin-top: auto; flex-wrap: wrap; }
.hg-selected-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #ff3d86; font-size: 22px; }
.hg-selected-chip b { display: block; font-size: 15px; }
.hg-selected-chip em { display: block; font-style: normal; font-size: 13px; opacity: .9; }
.hg-selected-chip small { flex-basis: 100%; font-size: 12px; opacity: .8; padding-left: 54px; }

.hg-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 22px; position: relative; }
.hg-tier { position: relative; background: #fff; border: 1px solid rgba(11,13,18,.1); border-radius: 20px; padding: 22px; text-align: left; box-shadow: 0 24px 60px -36px rgba(0,60,40,.4); }
.hg-tier + .hg-tier { margin-left: 28px; }
.hg-tier + .hg-tier::before { content: "\2192"; position: absolute; left: -26px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #1f9d6e; }
.hg-tier i.la { font-size: 30px; color: #1f9d6e; display: block; margin-bottom: 8px; }
.hg-tier b { display: block; font-size: 17px; color: #0b0d12; }
.hg-tier p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: #3a4252; }
.hg-tier-n { position: absolute; top: 14px; right: 16px; font-weight: 700; color: #1f9d6e; opacity: .5; }

.hg-feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hg-feat-grid-3 { margin-bottom: 22px; }
.hg-feat { background: #fff; border: 1px solid rgba(11,13,18,.1); border-radius: 18px; padding: 20px; box-shadow: 0 20px 50px -36px rgba(0,40,100,.4); }
.hg-feat-ic { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(0,88,184,.1); color: #0b4a9a; font-size: 22px; margin-bottom: 10px; }
.hg-feat h3 { margin: 0 0 6px; font-size: 16.5px; color: #0b0d12; }
.hg-feat p { margin: 0; font-size: 14px; line-height: 1.55; color: #3a4252; }

.hg-5g { background: #07162f; border-radius: 22px; padding: 24px; color: #e8f1ff; }
.hg-5g h3 { margin: 0 0 14px; font-size: 18px; color: #fff; }
.hg-5g ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hg-5g li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px; }
.hg-5g li span { display: inline-block; font-weight: 800; font-size: 20px; color: #4ade80; }
.hg-5g li b { display: block; margin-top: 4px; font-size: 14.5px; color: #fff; }
.hg-5g li small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.4; color: #aebfdc; }

.hg-ai-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 24px; }
.hg-ai-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #07162f; color: #e8f1ff; font-size: 13.5px; font-weight: 600; }
.hg-ai-badges i { color: #4ade80; font-size: 17px; }
.hg-ai-note { margin: 20px auto 0; max-width: 760px; text-align: center; font-size: 13.5px; line-height: 1.6; color: #3a4252; }

@media (max-width: 991.98px) {
  .hg-tiers { grid-template-columns: 1fr; gap: 26px; }
  .hg-tier + .hg-tier { margin-left: 0; }
  .hg-tier + .hg-tier::before { content: "\2193"; left: 50%; top: -24px; transform: translateX(-50%); }
  .hg-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hg-5g ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) { .hg-feat-grid { grid-template-columns: 1fr; } .hg-5g ol { grid-template-columns: 1fr; } }

.apx-hgrc .hg-pill { color: #0b0d12; background: rgba(255, 255, 255, .6); border-color: rgba(11, 13, 18, .18); }
body.ds-app-dark .apx-hgrc .hg-pill { color: #ffffff; background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); }
