/* HOME V4 (09/11/2026): under the AI search, four doors: Certify across the whole width, Verify, Manage and Sign below it.
   Only home-v4.html loads this file; every selector starts with .hv4- (icons reuse .hv3-ic from home-v3.css).
   Rules from design-system (09/11): card radius 16, surface.raised, 1px border.default and no shadow
   (only the hover shadow on a clickable card), padding 16, gap 24 between cards, card-title 16/24 600,
   text-default 14/20 text.secondary, title to text 8px, text to action 24px, one blue icon per card (#007afe). */

.i-certify { --m: url(assets/icons/notarize.svg); }
.i-verify { --m: url(assets/icons/shield-outlined.svg); }
.i-manage { --m: url(assets/icons/template.svg); }
.i-screenshot { --m: url(assets/icons/screenshot.svg); }

/* title: Welcome to TrueScreen, centred above the AI search (Fabio, 09/11) */
.hv4 .hv3-title-row { justify-content: center; }
.hv4 .hv3-title { flex: 0 1 auto; text-align: center; font: 700 28px/36px Raleway, sans-serif; letter-spacing: -0.01em; }

.hv4-blocks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
/* Certify takes the whole width (Fabio, 09/11): head with icon, text and the library button, then the certification options (Fabio, 09/11) */
.hv4-block.is-wide { grid-column: 1 / -1; padding: 24px; }
.hv4-wide-head { display: flex; align-items: center; gap: 16px; }
.hv4-wide-head .hv4-body { flex: 1; min-width: 0; }
.hv4-block.is-wide .hv4-title { font: 600 20px/28px Raleway, sans-serif; letter-spacing: -0.005em; }
.hv4-go.hv3-btn { margin-top: 0; color: var(--ts-text-on-accent, #fff); text-decoration: none; }
.hv4-go.hv3-btn .hv3-ic { color: currentColor; }
.hv4-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hv4-option { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--ts-border-default); font: 500 14px/20px "DM Sans", sans-serif; color: var(--ts-text-primary); text-decoration: none; }
.hv4-option:hover { background: var(--ts-interactive-row-hover); border-color: #007afe; color: var(--ts-text-primary); text-decoration: none; }
.hv4-option:focus-visible, .hv4-go:focus-visible { outline: 2px solid var(--ts-focus-ring); outline-offset: 2px; }
.hv4-option .hv3-ic { color: #007afe; }

.hv4-block { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: 16px; border-radius: var(--radius-card, 16px);
  background: var(--ts-surface-raised); border: 1px solid var(--ts-border-default); color: var(--ts-text-primary); text-decoration: none; }
a.hv4-block:hover { color: var(--ts-text-primary); text-decoration: none; }
a.hv4-block:focus-visible, .hv4-choice:focus-visible { outline: 2px solid var(--ts-focus-ring); outline-offset: 2px; }

.hv4-icon { display: grid; place-items: center; width: 32px; height: 32px; color: #007afe; } /* no background (Fabio, 09/11) */
.hv4-icon .hv3-ic { width: 32px; height: 32px; }
.hv4-body { display: flex; flex-direction: column; gap: 8px; }
.hv4-title { font: 600 16px/24px "DM Sans", sans-serif; color: var(--ts-text-primary); }
.hv4-text { font: 400 14px/20px "DM Sans", sans-serif; color: var(--ts-text-secondary); }

/* the door: a text link at the bottom of the card */
.hv4-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 14px/20px "DM Sans", sans-serif; color: var(--ts-text-link); }
a.hv4-block:hover .hv4-go { text-decoration: underline; }

/* Manage: two choices inside the card */
.hv4-choices { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.hv4-choice { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--ts-border-default); font: 500 14px/20px "DM Sans", sans-serif; color: var(--ts-text-primary); text-decoration: none; }
.hv4-choice:hover { background: var(--ts-interactive-row-hover); color: var(--ts-text-primary); text-decoration: none; }
.hv4-choice > .hv3-ic:first-child { color: #007afe; width: 24px; height: 24px; }
.hv4-choice .i-chev { margin-left: auto; color: var(--ts-text-muted); }

@media (max-width: 839px) {
  .hv4-blocks { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hv4-block.is-wide { padding: 16px; }
  .hv4-wide-head { flex-wrap: wrap; }
  .hv4-wide-head .hv4-body { flex: 1 1 calc(100% - 64px); }
  .hv4-wide-head .hv4-go { order: 3; }
  .hv4-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Get started in the topbar (Fabio, 09/11): pill next to the credits, same family as .topbar-credits, with a progress ring and the counter */
.topbar-welcome { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px 4px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer;
  font: 600 14px/20px "DM Sans", sans-serif; transition: background .15s ease, border-color .15s ease; }
.topbar-welcome:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.2); }
.topbar-welcome[aria-expanded="true"] { border-color: #007afe; }
.topbar-welcome:focus-visible { outline: 2px solid var(--ts-focus-ring, #0068d9); outline-offset: 2px; }
.tw-ring { width: 20px; height: 20px; transform: rotate(-90deg); flex: 0 0 auto; }
.tw-ring circle { fill: none; stroke-width: 2.5; }
.tw-ring-bg { stroke: rgba(255, 255, 255, 0.2); }
.tw-ring-fill { stroke: #007afe; stroke-linecap: round; transition: stroke-dasharray .3s ease; }
.tw-count { font-family: "JetBrains Mono", monospace; font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.7); }

/* the panel: a narrow checklist under the topbar item (floating layer, so the overlay shadow and no border) */
.hv4-gs { --hv4-brand: #007afe; position: fixed; z-index: 40; top: calc(var(--topbar-h, 56px) + 8px); width: min(400px, calc(100vw - 32px));
  max-height: calc(100vh - var(--topbar-h, 56px) - 24px); overflow: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px;
  border-radius: var(--radius-card, 16px); background: var(--ts-surface-raised); color: var(--ts-text-primary);
  box-shadow: 0 16px 40px rgba(8, 17, 34, 0.28); }
.hv4-gs[hidden] { display: none; }
.hv4-gs-head { display: flex; align-items: center; gap: 8px; }
.hv4-gs-head h2 { margin: 0; flex: 1; font: 600 16px/24px "DM Sans", sans-serif; color: var(--ts-text-primary); }
.hv4-gs-count { font: 500 12px/16px "DM Sans", sans-serif; color: var(--ts-text-secondary); font-variant-numeric: tabular-nums; }
.hv4-gs-x { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -8px; border: 0; border-radius: 8px; background: transparent; color: var(--ts-text-secondary); cursor: pointer; }
.hv4-gs-x:hover { background: var(--ts-interactive-row-hover); color: var(--ts-text-primary); }
.hv4-gs-x svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; fill: none; }
.hv4-gs-bar { display: block; height: 4px; border-radius: 999px; background: var(--ts-border-default); overflow: hidden; }
.hv4-gs-bar i { display: block; height: 100%; width: 20%; border-radius: inherit; background: var(--hv4-brand); transition: width .3s ease; }
.hv4-gs-credits { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 8px 12px; border-radius: 8px; background: rgba(0, 122, 254, 0.06); }
.hv4-gs-credits img { width: 20px; height: 20px; }
.hv4-gs-credits b { font: 600 14px/20px "DM Sans", sans-serif; color: var(--ts-text-primary); }
.hv4-gs-credits span:not(.hv3-mono) { font: 500 12px/16px "DM Sans", sans-serif; color: var(--ts-text-secondary); }

.hv4-gs-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.hv4-gs-step { border-radius: 8px; border: 1px solid transparent; }
.hv4-gs-step.is-open { border-color: var(--ts-border-default); background: var(--ts-surface-subtle); }
.hv4-gs-row { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 8px;
  background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.hv4-gs-row:hover { background: var(--ts-interactive-row-hover); }
.hv4-gs-row.is-static { cursor: default; }
.hv4-gs-row.is-static:hover { background: transparent; }
.hv4-gs-row:focus-visible, .hv4-gs-x:focus-visible, .hv4-gs-chip:focus-visible, .hv4-gs-stores a:focus-visible { outline: 2px solid var(--ts-focus-ring); outline-offset: 2px; }
.hv4-gs-row b { flex: 1; min-width: 0; font: 500 14px/20px "DM Sans", sans-serif; color: var(--ts-text-primary); }
.hv4-gs-row .i-chev { color: var(--ts-text-muted); transition: transform .2s ease; }
.hv4-gs-step.is-open .hv4-gs-row b { font-weight: 600; }
.hv4-gs-step.is-open .hv4-gs-row .i-chev { transform: rotate(90deg); color: var(--hv4-brand); }
.hv4-gs-dot { width: 20px; height: 20px; flex: 0 0 auto; border-radius: 999px; border: 1.5px solid var(--ts-border-input); display: grid; place-items: center; }
.hv4-gs-step.is-open .hv4-gs-dot { border: 2px solid var(--hv4-brand); }
.hv4-gs-step.is-done .hv4-gs-dot { border-color: var(--ts-state-success); background: var(--ts-state-success); }
.hv4-gs-step.is-done .hv4-gs-dot::after { content: ""; width: 12px; height: 12px; background: var(--ts-text-on-accent);
  -webkit-mask: url(assets/icons/check.svg) center / contain no-repeat; mask: url(assets/icons/check.svg) center / contain no-repeat; }
.hv4-gs-step.is-done .hv4-gs-row b { color: var(--ts-text-muted); text-decoration: line-through; text-decoration-color: var(--ts-border-input); }

.hv4-gs-more { display: none; padding: 0 12px 12px 44px; }
.hv4-gs-step.is-open .hv4-gs-more { display: block; }
.hv4-gs-more p { margin: 0; font: 400 14px/20px "DM Sans", sans-serif; color: var(--ts-text-secondary); }
.hv4-gs-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.hv4-gs-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 12px; border-radius: 8px;
  border: 1px solid var(--ts-border-default); background: var(--ts-surface-raised); font: 600 14px/20px "DM Sans", sans-serif; color: var(--ts-text-primary); text-decoration: none; }
.hv4-gs-chip:hover { border-color: var(--hv4-brand); color: var(--ts-text-primary); text-decoration: none; }
.hv4-gs-chip img { width: 16px; height: 16px; }
.hv4-gs-get { gap: 12px; }
.hv4-gs-qr { width: 72px; height: 72px; padding: 4px; border-radius: 8px; background: #fff; border: 1px solid var(--ts-border-default); }
.hv4-gs-stores { display: flex; flex-direction: column; gap: 8px; }
.hv4-gs-stores a { display: inline-flex; border-radius: 8px; }
.hv4-gs-stores img { display: block; height: 32px; width: auto; }
.hv4-gs-end { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; background: var(--ts-state-success-bg); }
.hv4-gs-end[hidden] { display: none; }
.hv4-gs-end p { margin: 0; flex: 1; font: 400 14px/20px "DM Sans", sans-serif; color: var(--ts-text-primary); }
.hv4-gs-end b { font-weight: 600; }

@media (max-width: 599px) {
  .topbar-welcome .tw-label { display: none; }
  .topbar-welcome { padding: 4px 8px; }
  .hv4-gs-qr { display: none; } /* on the phone the QR is useless: store badges only */
}

/* ===== Less flat (Fabio, 09/11): hero band, richer options, small product scenes, motion ===== */

/* head: title, AI search and the quick starts on the page (no dark band: Fabio, 09/11) */
.hv4-head { gap: 16px; }
/* AI search centred and not full width; suggestions as text links under it, more visible (Fabio, 09/11) */
.hv4-head .ai-prompt { width: 100%; max-width: 760px; margin: 0 auto; }
.hv4-head .ai-prompt + .hv4-quick { margin-top: -4px; }
.hv4-quick { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 20px; margin: 0 auto; padding: 0 16px; }
.hv4-quick-l { font: 500 12px/16px "DM Sans", sans-serif; color: var(--ts-text-secondary); }
.hv4-head .ai-chip { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer;
  font: 600 12px/16px "DM Sans", sans-serif; color: var(--ts-text-primary); }
.hv4-head .ai-chip:hover { background: none; color: var(--ts-text-link); text-decoration: underline; }
.hv4-head .ai-chip:focus-visible { outline: 2px solid var(--ts-focus-ring); outline-offset: 2px; border-radius: 4px; }

/* Certify options: one low row each, icon in a round tile (Fabio, 09/11: lower; no movement on hover) */
.hv4-options { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.hv4-option { min-height: 48px; padding: 4px 12px 4px 4px; gap: 10px; border-radius: 999px; }
.hv4-option:hover { background: var(--ts-surface-raised); border-color: #007afe; }
.hv4-opt-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 999px; background: rgba(0, 122, 254, 0.08); color: #007afe; }
.hv4-option .hv4-opt-ic .hv3-ic { color: currentColor; }
/* the library: the sixth tile, a little different (tinted, blue text, arrow) */
.hv4-option.is-library { justify-content: center; gap: 6px; padding: 4px 10px; white-space: nowrap; border: 1px solid transparent; background: rgba(0, 122, 254, 0.08);
  color: var(--ts-text-link); font-weight: 600; }
.hv4-option.is-library:hover { background: rgba(0, 122, 254, 0.12); border-color: transparent; color: var(--ts-text-link); text-decoration: underline; }
.hv4-option.is-library .hv3-ic { color: currentColor; }

/* the three cards: titles without icons */
.hv4-block .hv4-title { display: inline-flex; align-items: center; gap: 8px; }
a.hv4-block:hover .hv4-go { text-decoration: underline; }
.hv4-choice:hover .i-chev { color: #007afe; }

/* motion: only the entrance, blocks rising one after the other; nothing moves with the mouse (Fabio, 09/11) */
@media (prefers-reduced-motion: no-preference) {
  .hv4-rise { animation: hv4-rise .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 80ms); }
}
@keyframes hv4-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1199px) {
  .hv4-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 839px) {
  .hv4-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Blocks: a soft gradient from the top right corner with the icons of the block (Fabio, 09/11).
   One large icon cut by the corner and two smaller ones on a diagonal, upright and faded, all in the title band. Static. */
.i-fingerprint { --m: url(assets/icons/fingerprint.svg); }
.i-pdf { --m: url(assets/icons/pdf.svg); }
.i-fea { --m: url(assets/icons/fea-1.svg); }
.hv4-block.has-deco { --acc: 0, 122, 254; position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(ellipse 70% 170% at 100% 0%, rgba(var(--acc), 0.13) 0%, rgba(var(--acc), 0.05) 40%, rgba(var(--acc), 0.015) 70%, transparent 100%), var(--ts-surface-raised); }
/* one colour per card (Fabio, 09/11). Not the state colours (green, amber, red): those mean an outcome */
.hv4-block.c-certify { --acc: 0, 122, 254; }   /* blue   #007afe */
.hv4-block.c-manage  { --acc: 122, 90, 248; }  /* violet #7a5af8 */
.hv4-block.c-verify  { --acc: 11, 165, 199; }  /* cyan   #0ba5c7 */
.hv4-block.c-sign    { --acc: 232, 89, 12; }   /* orange #e8590c */
.has-deco .hv4-choice > .hv3-ic:first-child { color: rgb(var(--acc)); }
.has-deco .hv4-choice:hover { border-color: rgb(var(--acc)); }
.has-deco .hv4-choice:hover .i-chev { color: rgb(var(--acc)); }
.hv4-deco { position: absolute; z-index: -1; top: 0; right: 0; width: 140px; height: 56px; pointer-events: none; }
.hv4-block.is-wide .hv4-deco { width: 220px; height: 70px; }
.hv4-deco .hv3-ic { position: absolute; right: var(--x); top: var(--y); width: var(--s); height: var(--s); color: rgb(var(--acc)); opacity: calc(var(--o) * 1.25); }

/* Figures inside the cards (Fabio, 09/11). Sample values, the same as the old right column. Numbers in mono (web §17). */
.hv4-count { margin-left: auto; font: 500 12px/16px "DM Sans", sans-serif; color: var(--ts-text-secondary); }
.hv4-count b { font: 600 14px/20px "JetBrains Mono", monospace; color: var(--ts-text-primary); margin-right: 2px; }
.hv4-choice .hv4-count + .i-chev { margin-left: 8px; }
.hv4-figs { display: flex; gap: 24px; margin-top: auto; }
.hv4-figs + .hv4-go { margin-top: 0; }
.hv4-fig { display: flex; flex-direction: column; gap: 4px; }
.hv4-fig b { font: 600 24px/32px "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; color: var(--ts-text-primary); }
.hv4-fig > span { font: 500 12px/16px "DM Sans", sans-serif; color: var(--ts-text-secondary); }
/* status badge: pill, state colour on the same colour at 6% (base §4) */
.hv4-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; font: 500 12px/16px "DM Sans", sans-serif; }
.hv4-badge.warn { color: var(--ts-state-warning); background: var(--ts-state-warning-bg); }
.hv4-badge.warn::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }


/* ===== More character (Fabio, 10/11: "più home, più carattere, meno timida") =====
   A light hero band (never dark: Fabio, 09/11) with the canonical line pattern in both top corners, a greeting,
   a bigger title and a bigger search; cards with fuller colour (no coloured top edge: Fabio, 10/11), stronger titles and bigger figures. Static. */
.hv4-head { position: relative; isolation: isolate; overflow: hidden; gap: 20px; padding: 48px 32px 32px; border-radius: 24px;
  background: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(0, 122, 254, 0.10) 0%, rgba(0, 122, 254, 0.03) 60%, transparent 100%),
    linear-gradient(180deg, #f2f7ff 0%, var(--ts-surface-raised) 100%);
  border: 1px solid rgba(0, 122, 254, 0.14); }
.hv4-head::before, .hv4-head::after { content: ""; position: absolute; z-index: -1; top: 0; width: 360px; height: 340px; pointer-events: none;
  background: url(assets/pattern-lines-v2.webp) top left / 360px no-repeat; opacity: .55; }
.hv4-head::before { left: 0; }
.hv4-head::after { right: 0; transform: scaleX(-1); }
.hv4-hello { display: block; text-align: center; font: 600 12px/16px "DM Sans", sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: #007afe; }
.hv4 .hv3-title-row { flex-direction: column; gap: 8px; }
.hv4 .hv3-title { font: 700 44px/52px Raleway, sans-serif; letter-spacing: -0.02em; color: var(--ts-text-primary); }
.hv4-brandword { color: #007afe; }
.hv4-head .ai-prompt { max-width: 720px; min-height: 64px; padding: 10px 10px 10px 24px; border: 1.5px solid rgba(0, 122, 254, 0.35);
  background: var(--ts-surface-raised); box-shadow: 0 0 0 6px rgba(0, 122, 254, 0.06); }
.hv4-head .ai-prompt:hover { box-shadow: 0 0 0 6px rgba(0, 122, 254, 0.10); }
.hv4-head .ai-prompt:focus-within { border-color: #007afe; box-shadow: 0 0 0 6px rgba(0, 122, 254, 0.16); }
.hv4-head .ai-input { font-size: 16px; }
.hv4-head .ai-submit { width: 44px; height: 44px; }
.hv4-head .ai-prompt + .hv4-quick { margin-top: 0; }
.hv4-head .ai-chip { font-size: 14px; line-height: 20px; }
.hv4-quick-l { font-size: 14px; line-height: 20px; }

/* cards */
.hv4-blocks { gap: 20px; }
.hv4-block.has-deco { border-color: rgba(var(--acc), 0.22);
  background: radial-gradient(ellipse 75% 170% at 100% 0%, rgba(var(--acc), 0.20) 0%, rgba(var(--acc), 0.08) 40%, rgba(var(--acc), 0.02) 72%, transparent 100%), var(--ts-surface-raised); }
.hv4-block { padding: 24px; }
.hv4-block .hv4-title, .hv4-block.is-wide .hv4-title { font: 700 22px/28px Raleway, sans-serif; letter-spacing: -0.01em; }
.hv4-block.is-wide .hv4-title { font-size: 26px; line-height: 32px; }
.hv4-deco .hv3-ic { opacity: calc(var(--o) * 2); }
.hv4-option { min-height: 56px; border-color: rgba(0, 122, 254, 0.18); background: var(--ts-surface-raised); font-weight: 600; }
.hv4-opt-ic { width: 44px; height: 44px; background: rgba(0, 122, 254, 0.12); }
.hv4-option.is-library { background: #007afe; color: #fff; }
.hv4-option.is-library:hover { background: #0068d9; color: #fff; text-decoration: none; }
.hv4-choice { min-height: 52px; background: var(--ts-surface-raised); border-color: rgba(var(--acc, 0, 122, 254), 0.2); font-weight: 600; }
.hv4-count b { font-size: 16px; line-height: 24px; }
.hv4-fig b { font-size: 36px; line-height: 44px; }

@media (max-width: 839px) {
  .hv4-head { padding: 32px 16px 24px; border-radius: 16px; }
  .hv4-head::before, .hv4-head::after { width: 220px; height: 210px; background-size: 220px; }
  .hv4 .hv3-title { font-size: 32px; line-height: 40px; }
  .hv4-head .ai-prompt { min-height: 56px; padding: 6px 6px 6px 16px; }
  .hv4-block, .hv4-block.is-wide { padding: 20px 16px; }
  .hv4-block.is-wide .hv4-title { font-size: 22px; line-height: 28px; }
}

/* ===== Shorter home (Fabio, 10/11: "riduci in altezza l'intera home") ===== */
.hv4.hv3-main { gap: 20px; padding-top: 24px; }
.hv4-head { gap: 14px; padding: 28px 32px 22px; }
.hv4 .hv3-title-row { gap: 4px; }
.hv4 .hv3-title { font-size: 36px; line-height: 44px; }
.hv4-head .ai-prompt { min-height: 56px; padding: 6px 6px 6px 22px; }
.hv4-head .ai-submit { width: 40px; height: 40px; }
.hv4-blocks { gap: 16px; }
.hv4-block, .hv4-block.is-wide { padding: 20px 24px; gap: 16px; }
.hv4-block.is-wide .hv4-title { font-size: 24px; line-height: 30px; }
.hv4-block .hv4-body { gap: 4px; }
.hv4-option { min-height: 48px; }
.hv4-opt-ic { width: 38px; height: 38px; }
.hv4-choice { min-height: 44px; }
.hv4-fig b { font-size: 30px; line-height: 36px; }
.hv4-fig { gap: 2px; }
@media (max-width: 839px) {
  .hv4.hv3-main { padding-top: 16px; }
  .hv4-head { padding: 22px 16px 18px; }
  .hv4 .hv3-title { font-size: 28px; line-height: 34px; }
  .hv4-head .ai-prompt { min-height: 52px; }
  .hv4-block, .hv4-block.is-wide { padding: 16px; }
}

/* no line pattern in the hero band (Fabio, 10/11) */
.hv4-head::before, .hv4-head::after { content: none; }

/* ===== The search comes alive (Fabio, 10/11): every 10 s one thin light runs once around the bar (about 2.6 s), with a fading tail
   and a soft halo. Fine and modern, magic without being too much. An SVG pill sized to the bar (script in index.html):
   five stacked dashes of the same lap (a tail fading towards the head) plus a blurred copy for the halo. Off with prefers-reduced-motion and on focus. */
.hv4-head .ai-prompt { position: relative; }
.hv4-orbit { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; opacity: 0; }
.hv4-orbit rect { fill: none; stroke: url(#hv4-orbit-g); stroke-linecap: round; }
.hv4-orbit .o1 { stroke-dasharray: 20 80; stroke-dashoffset: 20; stroke-width: 1.25; stroke-opacity: 0.12; }
.hv4-orbit .o2 { stroke-dasharray: 14 86; stroke-dashoffset: 14; stroke-width: 1.5; stroke-opacity: 0.2; }
.hv4-orbit .o3 { stroke-dasharray: 9 91; stroke-dashoffset: 9; stroke-width: 1.75; stroke-opacity: 0.3; }
.hv4-orbit .o4 { stroke-dasharray: 5 95; stroke-dashoffset: 5; stroke-width: 2; stroke-opacity: 0.45; }
.hv4-orbit .o5 { stroke-dasharray: 2 98; stroke-dashoffset: 2; stroke-width: 2.5; stroke-opacity: 0.9; }
.hv4-orbit-blur { filter: blur(5px); opacity: .8; }
.hv4-orbit-blur rect { stroke-width: 6; }
@media (prefers-reduced-motion: no-preference) {
  .hv4-orbit { animation: hv4-orbit-a 10s linear 1.2s infinite; }
  .hv4-orbit rect { animation: 10s cubic-bezier(.5, 0, .3, 1) 1.2s infinite; }
  .hv4-orbit .o1 { animation-name: hv4-lap-20; }
  .hv4-orbit .o2 { animation-name: hv4-lap-14; }
  .hv4-orbit .o3 { animation-name: hv4-lap-9; }
  .hv4-orbit .o4 { animation-name: hv4-lap-5; }
  .hv4-orbit .o5 { animation-name: hv4-lap-2; }
  .hv4-head .ai-prompt:focus-within .hv4-orbit { animation: none; opacity: 0; }
}
@keyframes hv4-orbit-a { 0% { opacity: 0; } 3% { opacity: 1; } 22% { opacity: 1; } 27% { opacity: 0; } 100% { opacity: 0; } }
@keyframes hv4-lap-20 { 0% { stroke-dashoffset: 20; } 27%, 100% { stroke-dashoffset: -80; } }
@keyframes hv4-lap-14 { 0% { stroke-dashoffset: 14; } 27%, 100% { stroke-dashoffset: -86; } }
@keyframes hv4-lap-9 { 0% { stroke-dashoffset: 9; } 27%, 100% { stroke-dashoffset: -91; } }
@keyframes hv4-lap-5 { 0% { stroke-dashoffset: 5; } 27%, 100% { stroke-dashoffset: -95; } }
@keyframes hv4-lap-2 { 0% { stroke-dashoffset: 2; } 27%, 100% { stroke-dashoffset: -98; } }

/* one colour for every card (Fabio, 10/11: "fai tutto degli stessi colori"): TrueScreen blue everywhere, overrides the per-card colours above */
.hv4-block.c-certify, .hv4-block.c-manage, .hv4-block.c-verify, .hv4-block.c-sign { --acc: 0, 122, 254; }

/* smaller suggestions under the search (Fabio, 10/11): 12/16, the design system minimum */
.hv4-head .ai-chip { font: 500 12px/16px "DM Sans", sans-serif; }
.hv4-quick-l { font-size: 12px; line-height: 16px; }
.hv4-quick { gap: 4px 16px; }

.i-deepfake { --m: url(assets/icons/user-ai-feature.svg); }

/* ===== More modern, not flashy (Fabio, 10/11). Rules: TRUESCREEN-DESIGN.md BASE-07 (radius 8 buttons and inputs, 16 cards and
   inner elements, 32 outer bands, never 12), BASE-30 (border OR shadow), motion tokens 100/200/300/500 ms (BASE-21);
   curves from hyperframes-animation: smooth beats bouncy, power3-out for arrivals, glow peak <= 0.45. ===== */

/* 1. fewer lines: inner rows and options lose their outline and sit on a light blue fill; the outline comes back on hover only */
.hv4-option, .hv4-choice, .has-deco .hv4-choice { border: 1px solid transparent; background: rgba(0, 122, 254, 0.06);
  transition: background-color .2s cubic-bezier(.215, .61, .355, 1), border-color .2s cubic-bezier(.215, .61, .355, 1); }
.hv4-option:hover, .hv4-choice:hover, .has-deco .hv4-choice:hover { background: var(--ts-surface-raised); border-color: rgba(0, 122, 254, 0.5); }
.hv4-option:active, .hv4-choice:active { background: rgba(0, 122, 254, 0.1); }

/* 2. one shape: every clickable row is a button (radius 8), same height; icon tiles are inner elements on white */
.hv4-option, .hv4-choice { min-height: 48px; border-radius: 8px; }
.hv4-option { padding: 4px 12px 4px 4px; }
.hv4-choice { padding: 4px 12px 4px 4px; gap: 12px; }
.hv4-opt-ic, .hv4-choice > .hv3-ic:first-child { box-sizing: content-box; }
.hv4-opt-ic { width: 40px; height: 40px; border-radius: 8px; background: var(--ts-surface-raised); }
.hv4-choice > .hv3-ic:first-child { width: 20px; height: 20px; padding: 10px; border-radius: 8px; background-color: rgb(var(--acc, 0, 122, 254)); }
.hv4-choice > .hv3-ic:first-child { -webkit-mask: none; mask: none; background: var(--ts-surface-raised); position: relative; }
.hv4-choice > .hv3-ic:first-child::after { content: ""; position: absolute; inset: 10px; background: #007afe;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.hv4-option.is-library { border-radius: 8px; padding: 4px 16px; background: #0068d9; border-color: transparent; color: #fff; }
.hv4-option.is-library:hover { background: #0059b8; border-color: transparent; box-shadow: 0 4px 16px rgba(0, 122, 254, 0.25); }
.hv4-choice .i-chev { transition: transform .2s cubic-bezier(.215, .61, .355, 1); }
.hv4-choice:hover .i-chev { transform: translateX(2px); }

/* hero band = outer band (radius 32); cards keep 16 */
.hv4-head { border-radius: 32px; }

/* 4. drier decoration: one large icon per card, cut by the corner and very faint; the two small ones go */
.hv4-deco .hv3-ic:not(:first-child) { display: none; }
.hv4-deco .hv3-ic:first-child { right: -22px !important; top: -26px !important; width: 120px !important; height: 120px !important; opacity: .08 !important; }
.hv4-block.is-wide .hv4-deco .hv3-ic:first-child { width: 150px !important; height: 150px !important; right: -24px !important; top: -34px !important; }

/* 3. search: rotating example in place of the placeholder, Cmd K hint */
.hv4-head .ai-prompt { position: relative; }
.hv4-ph { position: absolute; left: 58px; right: 112px; top: 0; bottom: 0; pointer-events: none; overflow: hidden; }
.hv4-ph-t { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(calc(-50% + 6px)); opacity: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 400 16px/24px "DM Sans", sans-serif; color: var(--ts-text-muted, #6b7280); }
.hv4-ph-t.is-in { opacity: 1; transform: translateY(-50%); transition: opacity .5s cubic-bezier(.215, .61, .355, 1), transform .5s cubic-bezier(.215, .61, .355, 1); }
.hv4-ph-t.is-out { opacity: 0; transform: translateY(calc(-50% - 6px)); transition: opacity .2s cubic-bezier(.55, .085, .68, .53), transform .2s cubic-bezier(.55, .085, .68, .53); }
.hv4-kbd { flex: 0 0 auto; display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--ts-border-default); background: var(--ts-surface-subtle, #f7f9fd);
  font: 500 12px/16px "JetBrains Mono", monospace; color: var(--ts-text-secondary); }
@media (max-width: 839px) { .hv4-kbd { display: none; } .hv4-ph { left: 46px; right: 60px; } .hv4-ph-t { font-size: 15px; } }

/* the orbit halo stays under the 0.45 glow ceiling */
.hv4-orbit-blur { opacity: .45; }

/* 6. precision: same rhythm in every card (title to text 4, text to actions pushed to the bottom), rows aligned at the bottom */
.hv4-block:not(.is-wide) { min-height: 0; }
@media (min-width: 840px) { .hv4-blocks > .hv4-block:not(.is-wide) .hv4-body { min-height: 88px; } }

/* no box around the search (Fabio, 10/11): the head sits on the page, without band, border or fill */
.hv4-head { background: none; border: 0; border-radius: 0; padding: 16px 0 8px; overflow: visible; }
@media (max-width: 839px) { .hv4-head { padding: 8px 0 4px; } }

/* a little more air between the components (Fabio, 10/11) */
.hv4.hv3-main { gap: 32px; padding-top: 32px; }
.hv4-head { gap: 18px; }
.hv4-blocks { gap: 24px; }
.hv4-block, .hv4-block.is-wide { padding: 24px 28px; gap: 20px; }
.hv4-options { gap: 12px; }
.hv4-choices { gap: 8px; }
@media (max-width: 839px) {
  .hv4.hv3-main { gap: 24px; padding-top: 20px; }
  .hv4-blocks { gap: 20px; }
  .hv4-block, .hv4-block.is-wide { padding: 20px; }
}

/* ===== Nicer hover, gradual and modern (Fabio, 10/11). Never moves with the mouse position (Fabio, 09/11): it is a state.
   300 ms emphasized curve in, 200 ms out (BASE-21); the row lifts to white with the interactive shadow (elev.interactive,
   allowed in hover only, BASE-30), the icon tile fills with blue and the icon turns white, the chevron and the arrow slide 3px.
   The library button gets one soft sheen across it. Pressed: back down, no shadow. ===== */
.hv4-option, .hv4-choice {
  transition: background-color .2s cubic-bezier(.3, 0, .8, .15), border-color .2s cubic-bezier(.3, 0, .8, .15), box-shadow .2s cubic-bezier(.3, 0, .8, .15), transform .2s cubic-bezier(.3, 0, .8, .15); }
.hv4-option:hover, .hv4-choice:hover, .has-deco .hv4-choice:hover {
  background: var(--ts-surface-raised); border-color: rgba(0, 122, 254, 0.28); box-shadow: 0 4px 16px rgba(0, 122, 254, 0.18); transform: translateY(-1px);
  transition-duration: .3s; transition-timing-function: cubic-bezier(.05, .7, .1, 1); }
.hv4-option:active, .hv4-choice:active { transform: translateY(0); box-shadow: none; background: rgba(0, 122, 254, 0.1); transition-duration: .1s; }

/* icon tile: white to blue, icon blue to white */
.hv4-opt-ic, .hv4-choice > .hv3-ic:first-child { transition: background-color .3s cubic-bezier(.05, .7, .1, 1); }
.hv4-opt-ic .hv3-ic, .hv4-choice > .hv3-ic:first-child::after { transition: background-color .3s cubic-bezier(.05, .7, .1, 1); }
.hv4-option:hover .hv4-opt-ic, .hv4-choice:hover > .hv3-ic:first-child { background-color: #007afe; }
.hv4-option:hover .hv4-opt-ic .hv3-ic { color: #fff; }
.hv4-choice:hover > .hv3-ic:first-child::after { background: #fff; }

/* chevron and arrows: a short slide */
.hv4-choice .i-chev, .hv4-go .i-arrow, .hv4-option.is-library .i-arrow { transition: transform .3s cubic-bezier(.05, .7, .1, 1), color .3s cubic-bezier(.05, .7, .1, 1); }
.hv4-choice:hover .i-chev, .has-deco .hv4-choice:hover .i-chev { transform: translateX(3px); color: #007afe; }
a.hv4-block:hover .hv4-go .i-arrow, .hv4-go:hover .i-arrow, .hv4-option.is-library:hover .i-arrow { transform: translateX(3px); }

/* library button: one sheen across on hover (peak 0.35, under the 0.45 glow ceiling) */
.hv4-option.is-library { position: relative; overflow: hidden; isolation: isolate;
  transition: background-color .3s cubic-bezier(.05, .7, .1, 1), box-shadow .3s cubic-bezier(.05, .7, .1, 1), transform .3s cubic-bezier(.05, .7, .1, 1); }
.hv4-option.is-library::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 50%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: translateX(0); opacity: 0; }
.hv4-option.is-library:hover { transform: translateY(-1px); }
.hv4-option.is-library:active { transform: translateY(0); box-shadow: none; background: #004c9e; }
@media (prefers-reduced-motion: no-preference) {
  .hv4-option.is-library:hover::after { animation: hv4-sheen .7s cubic-bezier(.2, 0, 0, 1) both; }
}
@keyframes hv4-sheen { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateX(420%); } }

@media (prefers-reduced-motion: reduce) {
  .hv4-option, .hv4-choice, .hv4-option.is-library { transform: none !important; }
}

/* hover really gradual (Fabio, 10/11: "non è graduale così"): the decelerate curve did 70% of the change in the first 40 ms.
   Now 500 ms in (motion token 500) and 350 ms out, on an even ease-in-out curve, for every part of the button. */
.hv4-option, .hv4-choice, .hv4-option.is-library,
.hv4-opt-ic, .hv4-opt-ic .hv3-ic, .hv4-choice > .hv3-ic:first-child, .hv4-choice > .hv3-ic:first-child::after,
.hv4-choice .i-chev, .hv4-go .i-arrow, .hv4-option.is-library .i-arrow {
  transition-property: background-color, border-color, box-shadow, transform, color;
  transition-duration: .35s; transition-timing-function: cubic-bezier(.45, 0, .55, 1); }
.hv4-option:hover, .hv4-choice:hover, .has-deco .hv4-choice:hover, .hv4-option.is-library:hover,
.hv4-option:hover .hv4-opt-ic, .hv4-option:hover .hv4-opt-ic .hv3-ic, .hv4-choice:hover > .hv3-ic:first-child, .hv4-choice:hover > .hv3-ic:first-child::after,
.hv4-choice:hover .i-chev, .has-deco .hv4-choice:hover .i-chev, a.hv4-block:hover .hv4-go .i-arrow, .hv4-go:hover .i-arrow, .hv4-option.is-library:hover .i-arrow {
  transition-duration: .5s; transition-timing-function: cubic-bezier(.4, 0, .2, 1); }
.hv4-option:active, .hv4-choice:active, .hv4-option.is-library:active { transition-duration: .1s; }
@media (prefers-reduced-motion: no-preference) {
  .hv4-option.is-library:hover::after { animation-duration: 1.1s; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
}

/* ===== Mobile (Fabio, 10/11: "ottimizza per utilizzo mobile") =====
   Touch: no lift on devices without hover; targets at least 44px; suggestions in one swipeable row;
   the closed side menu no longer leaves its shadow on the left edge. */
@media (hover: none) {
  .hv4-option:hover, .hv4-choice:hover, .has-deco .hv4-choice:hover, .hv4-option.is-library:hover { transform: none; box-shadow: none; }
}
@media (max-width: 1023px) { .sidebar:not(.is-mobile-open) { box-shadow: none; } }
@media (max-width: 599px) {
  .hv4.hv3-main { gap: 20px; padding-top: 16px; }
  .hv4-head { gap: 12px; padding: 4px 0 0; }
  .hv4-hello { font-size: 11px; }
  .hv4 .hv3-title { font-size: 26px; line-height: 32px; }
  .hv4-head .ai-prompt { min-height: 52px; padding: 4px 4px 4px 14px; gap: 8px; }
  .hv4-ph { left: 42px; right: 56px; }
  .hv4-ph-t { font-size: 15px; }
  /* suggestions: one row of touch chips that scrolls sideways, edge to edge */
  .hv4-quick { flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
    margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    -webkit-mask: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
            mask: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%); }
  .hv4-quick::-webkit-scrollbar { display: none; }
  .hv4-quick-l { display: none; }
  .hv4-head .ai-chip { flex: 0 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; min-height: 36px; padding: 8px 14px;
    border-radius: 999px; background: rgba(0, 122, 254, 0.06); font: 500 13px/18px "DM Sans", sans-serif; white-space: nowrap; }
  .hv4-head .ai-chip:hover { text-decoration: none; }
  /* cards */
  .hv4-blocks { gap: 16px; }
  .hv4-block, .hv4-block.is-wide { padding: 16px; gap: 14px; }
  .hv4-block .hv4-title, .hv4-block.is-wide .hv4-title { font-size: 20px; line-height: 26px; }
  .hv4-options { gap: 8px; }
  .hv4-option { min-height: 52px; gap: 10px; }
  .hv4-option.is-library { justify-content: center; }
  .hv4-choices { gap: 8px; }
  .hv4-choice { min-height: 52px; }
  .hv4-count { white-space: nowrap; }
  .hv4-deco .hv3-ic:first-child { width: 96px !important; height: 96px !important; }
  /* text link: a full 44px touch target */
  .hv4-go { min-height: 44px; margin-bottom: -10px; }
  .hv4-figs { gap: 32px; }
}
.hv4.hv3-main, .hv4-head, .hv4-quick { min-width: 0; }

/* ===== Certify block with the shared tiles (cert-tiles.css, Fabio 10/11): quick certifications and conversations,
   the same component as the library; "Open the library" becomes a link in the head. Names from the TrueScreen Bible. ===== */
.hv4-wide-head { align-items: flex-end; }
.hv4-libmore { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font: 600 14px/20px "DM Sans", sans-serif; color: var(--ts-text-link); text-decoration: none; white-space: nowrap; }
.hv4-libmore:hover { color: var(--ts-text-link); text-decoration: underline; }
.hv4-libmore .hv3-ic { color: currentColor; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.hv4-libmore:hover .hv3-ic { transform: translateX(3px); }
.hv4-certs { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.25fr); gap: 24px; position: relative; z-index: 1; }
.hv4-ct-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hv4-ct-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.hv4-certs-conv { padding-left: 24px; border-left: 1px solid var(--ts-border-default); }
.hv4-certs .ct { min-height: 48px; }
@media (max-width: 1199px) { .hv4-certs { grid-template-columns: minmax(0, 1fr); gap: 16px; } .hv4-certs-conv { padding-left: 0; border-left: 0; }
  .hv4-ct-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .hv4-wide-head { flex-wrap: wrap; align-items: flex-start; }
  .hv4-libmore { order: 3; min-height: 44px; }
  .hv4-ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hv4-ct-list { grid-template-columns: minmax(0, 1fr); }
  .hv4-certs .ct { min-height: 52px; }
}
/* official names can be long (Online meeting certification): two lines instead of an ellipsis */
.hv4-certs .ct-name { white-space: normal; line-height: 18px; }
@media (min-width: 1200px) { .hv4-certs { grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr); } }
@media (max-width: 599px) {
  /* phone: room for the names in the two-column grid (no arrow, smaller icon tile) */
  .hv4-certs .ct { gap: 10px; padding: 8px 10px 8px 8px; }
  .hv4-certs .ct-go { display: none; }
  .hv4-certs .ct-ic { width: 32px; height: 32px; }
  .hv4-certs .ct-ic .hv3-ic { width: 18px; height: 18px; }
  .hv4-certs .ct-name { font-size: 13px; }
}
@media (max-width: 599px) { .hv4-certs .ct-ic, .hv4-certs .ct-ic .hv3-ic { width: 22px; height: 22px; background: none; } }

/* ===== Search animation: less evident, finer (Fabio, 10/11) =====
   Light around the bar: hairline strokes (1-1.5px), lower opacity, a faint halo; the static ring around the bar is thinner;
   the rotating example only fades with a 3px rise instead of 6px. */
.hv4-orbit .o1 { stroke-width: 1; stroke-opacity: .07; }
.hv4-orbit .o2 { stroke-width: 1; stroke-opacity: .12; }
.hv4-orbit .o3 { stroke-width: 1.25; stroke-opacity: .2; }
.hv4-orbit .o4 { stroke-width: 1.25; stroke-opacity: .32; }
.hv4-orbit .o5 { stroke-width: 1.5; stroke-opacity: .65; }
.hv4-orbit-blur { filter: blur(4px); opacity: .18; }
.hv4-orbit-blur rect { stroke-width: 3; }
.hv4-head .ai-prompt { border-width: 1px; border-color: rgba(0, 122, 254, 0.28); box-shadow: 0 0 0 4px rgba(0, 122, 254, 0.04); }
.hv4-head .ai-prompt:hover { box-shadow: 0 0 0 4px rgba(0, 122, 254, 0.07); }
.hv4-head .ai-prompt:focus-within { border-color: #007afe; box-shadow: 0 0 0 4px rgba(0, 122, 254, 0.12); }
.hv4-ph-t { transform: translateY(calc(-50% + 3px)); }
.hv4-ph-t.is-in { transform: translateY(-50%); transition-duration: .6s; }
.hv4-ph-t.is-out { transform: translateY(calc(-50% - 3px)); transition-duration: .3s; }

/* search light more matte (Fabio, 10/11: "più opaca"): no glow, lower opacity on every stroke */
.hv4-orbit-blur { display: none; }
.hv4-orbit .o1 { stroke-opacity: .04; }
.hv4-orbit .o2 { stroke-opacity: .07; }
.hv4-orbit .o3 { stroke-opacity: .12; }
.hv4-orbit .o4 { stroke-opacity: .2; }
.hv4-orbit .o5 { stroke-opacity: .4; }
@media (min-width: 840px) { .hv4-blocks > .hv4-block:not(.is-wide) .hv4-body { min-height: 0; } } /* texts are one line now (Fabio, 10/11): no reserved height */

/* ===== One grid under Certify (Fabio, 11/11): quick certifications and conversations together, no group labels ===== */
.hv4-certs.is-one { display: block; }
.hv4-certs.is-one .hv4-ct-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1023px) { .hv4-certs.is-one .hv4-ct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .hv4-certs.is-one .hv4-ct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* fix: on the phone the icon itself is painted by its background (mask), so only the tile loses the background */
@media (max-width: 599px) { .hv4-certs .ct-ic .hv3-ic { background: currentColor; } }

/* ===== Finer hover on the choices (Fabio, 11/11: "hover molto brutto, non colorare lo sfondo di blu, più fine") =====
   Archive, Data Room, Deepfake detection, Verify certification: no blue icon tile, no lift, no shadow.
   On hover only a thin blue border and the chevron sliding 2px; the icon tile stays white with the blue icon. */
.hv4-option:hover, .hv4-choice:hover, .has-deco .hv4-choice:hover { transform: none; box-shadow: none; border-color: rgba(0, 122, 254, 0.35); }
.hv4-option:hover .hv4-opt-ic, .hv4-choice:hover > .hv3-ic:first-child { background-color: var(--ts-surface-raised, #fff); }
.hv4-option:hover .hv4-opt-ic .hv3-ic { color: #007afe; }
.hv4-choice:hover > .hv3-ic:first-child::after { background: #007afe; }
.hv4-choice:hover .i-chev, .has-deco .hv4-choice:hover .i-chev { transform: translateX(2px); }
.hv4-certs .ct:hover { border-color: rgba(0, 122, 254, 0.35); background: var(--ts-surface-raised, #fff); }

/* artwork in the top right corner of the cards (Fabio, 11/11): a darker blue, more transparent */
.hv4-deco .hv3-ic:first-child { color: #0a2a5c; opacity: .03 !important; }

/* Cards without the gradient (Fabio, 11/11: "togli gradiente dalle card e lascia solo l'icona"):
   flat white surface and a neutral border; the large faded icon in the corner stays, a little more visible. */
.hv4-blocks .hv4-block.has-deco { background: var(--ts-surface-raised, #fff); border-color: var(--ts-border-default, #e2e8ee); }
.hv4-blocks .hv4-deco .hv3-ic:first-child { opacity: .06 !important; }

/* "Open the library" on the line of the Certify title (Fabio, 11/11): title 32px line, link 20px line, centred on it */
@media (min-width: 600px) {
  .hv4-blocks .hv4-wide-head { align-items: flex-start; flex-wrap: nowrap; }
  .hv4-blocks .hv4-wide-head .hv4-body { flex: 1 1 auto; }
  .hv4-blocks .hv4-libmore { margin-top: 6px; }
}

/* ===== Get started, nicer (Fabio, 11/11: "facciamolo più bello") =====
   Title with the progress written under it and one segment per step; the credits as a small card with the coin;
   the steps joined by a line, because they are a sequence; done steps quiet (no strikethrough); the open step on a soft field
   with its text aligned under the title. Radii 16 panel, 8 inside; power3-out, 500 ms in / 350 ms out. */
.hv4-gs { gap: 16px; padding: 20px; width: min(392px, calc(100vw - 32px)); box-shadow: 0 20px 48px rgba(8, 17, 34, 0.22); }
.hv4-gs-head { align-items: flex-start; }
.hv4-gs-ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hv4-gs-head h2 { flex: none; font: 700 19px/24px Raleway, "DM Sans", sans-serif; letter-spacing: -0.01em; }
.hv4-gs-sub { font: 400 13px/18px "DM Sans", sans-serif; color: var(--ts-text-secondary); }
.hv4-gs-sub .hv4-gs-count { font: 600 13px/18px "DM Sans", sans-serif; color: var(--ts-text-primary); font-variant-numeric: tabular-nums; }
.hv4-gs-x { margin: -4px -8px 0 0; }

.hv4-gs-bar { height: auto; background: none; border-radius: 0; overflow: visible; }
.hv4-gs-bar > #hv4-gs-fill { display: none; }
.hv4-gs-segs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.hv4-gs-bar .hv4-gs-segs i { width: auto; height: 4px; border-radius: 999px; background: #e6ebf1; transition: background-color .5s cubic-bezier(.215, .61, .355, 1); }
.hv4-gs-bar .hv4-gs-segs i.is-on { background: var(--hv4-brand); }

.hv4-gs-credits { flex-wrap: nowrap; gap: 12px; padding: 12px 14px; border-radius: 8px; background: #f5f8fc; }
.hv4-gs-credits img { width: 28px; height: 28px; flex: 0 0 auto; }
.hv4-gs-credits-t { display: flex; flex-direction: column; min-width: 0; }
.hv4-gs-credits-t b { font: 600 14px/20px "DM Sans", sans-serif; color: var(--ts-text-primary); }
.hv4-gs-credits-t span { font: 400 13px/18px "DM Sans", sans-serif; color: var(--ts-text-secondary); }

.hv4-gs-steps { gap: 2px; margin: 0 -8px; }
.hv4-gs-step { position: relative; border: 0; border-radius: 8px; transition: background-color .35s cubic-bezier(.215, .61, .355, 1); }
.hv4-gs-step.is-open { border: 0; background: #f5f8fc; }
/* the line that joins the steps, from under one dot to the next */
.hv4-gs-step:not(:last-child)::before { content: ""; position: absolute; left: 20px; top: 34px; bottom: -12px; width: 2px; border-radius: 2px; background: #e6ebf1; }
.hv4-gs-step.is-done:not(:last-child)::before { background: #b9e2c8; }
.hv4-gs-row { position: relative; z-index: 1; min-height: 46px; padding: 10px 10px; gap: 12px; }
.hv4-gs-row:hover { background: transparent; }
.hv4-gs-row:hover b { color: var(--hv4-brand); }
.hv4-gs-step.is-open .hv4-gs-row:hover b { color: var(--ts-text-primary); }
.hv4-gs-row b { font: 500 14px/20px "DM Sans", sans-serif; transition: color .35s cubic-bezier(.215, .61, .355, 1); }
.hv4-gs-dot { width: 22px; height: 22px; border: 2px solid #cfd7e2; background: var(--ts-surface-raised, #fff); }
.hv4-gs-step.is-open .hv4-gs-dot { border-color: var(--hv4-brand); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 11px var(--hv4-brand); }
.hv4-gs-step.is-done .hv4-gs-dot { border-color: var(--ts-state-success, #157f3b); background: var(--ts-state-success, #157f3b); box-shadow: none; }
.hv4-gs-step.is-done .hv4-gs-row b { color: var(--ts-text-secondary); text-decoration: none; }
.hv4-gs-row .i-chev { color: #9aa6b5; transition: transform .35s cubic-bezier(.215, .61, .355, 1), color .35s cubic-bezier(.215, .61, .355, 1); }
.hv4-gs-row:hover .i-chev { color: var(--hv4-brand); transform: translateX(2px); transition-duration: .5s; }
.hv4-gs-step.is-open .hv4-gs-row .i-chev { transform: rotate(90deg); }
.hv4-gs-step.is-open .hv4-gs-more { animation: hv4-gs-in .35s cubic-bezier(.215, .61, .355, 1) both; }
@keyframes hv4-gs-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.hv4-gs-more { position: relative; z-index: 1; padding: 0 14px 14px 44px; }
.hv4-gs-more p { font-size: 13px; line-height: 19px; }
.hv4-gs-actions { margin-top: 12px; gap: 10px; }
.hv4-gs-actions .hv3-btn.c.sm { min-height: 36px; padding: 0 14px; border-radius: 8px; }
.hv4-gs-chip { min-height: 36px; padding: 0 12px; transition: border-color .35s cubic-bezier(.215, .61, .355, 1); }
.hv4-gs-qr { width: 76px; height: 76px; border: 0; }
.hv4-gs-end { border-radius: 8px; }
@media (prefers-reduced-motion: reduce) {
  .hv4-gs-segs i, .hv4-gs-step, .hv4-gs-row b, .hv4-gs-row .i-chev { transition: none; }
  .hv4-gs-step.is-open .hv4-gs-more { animation: none; }
}

/* ===== Get started as a side panel, opened by a banner in the home (Fabio, 11/11) =====
   The banner is low (one row) and sits between the search and the Certify card; the whole banner is the button.
   The panel slides in from the right at full height over a dimmed page; the scrim, Esc and the X close it. */
.hv4-gsb { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 64px; padding: 12px 16px 12px 14px; border: 1px solid rgba(0, 122, 254, 0.18);
  border-radius: 16px; background: #f5f9ff; color: var(--ts-text-primary); text-align: left; font: inherit; cursor: pointer;
  transition: border-color .35s cubic-bezier(.215, .61, .355, 1), background-color .35s cubic-bezier(.215, .61, .355, 1); }
.hv4-gsb[hidden] { display: none; }
.hv4-gsb:focus-visible { outline: 2px solid var(--ts-focus-ring, #0068d9); outline-offset: 2px; }
.hv4-gsb-ring { flex: 0 0 auto; width: 40px; height: 40px; transform: rotate(-90deg); }
.hv4-gsb-ring circle { fill: none; stroke-width: 4; }
.hv4-gsb-ring .bg { stroke: rgba(0, 122, 254, 0.14); }
.hv4-gsb-ring .fg { stroke: #007afe; stroke-linecap: round; stroke-dasharray: 0 107; transition: stroke-dasharray .6s cubic-bezier(.215, .61, .355, 1); }
.hv4-gsb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hv4-gsb-t b { font: 600 15px/20px "DM Sans", sans-serif; color: var(--ts-text-primary); }
.hv4-gsb-t > span { font: 400 13px/18px "DM Sans", sans-serif; color: var(--ts-text-secondary); }
.hv4-gsb-t #hv4-gsb-n { font-weight: 600; color: var(--ts-text-primary); font-variant-numeric: tabular-nums; }
.hv4-gsb-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font: 600 14px/20px "DM Sans", sans-serif; color: var(--ts-text-link, #0068d9); }
.hv4-gsb-go .hv3-ic { transition: transform .35s cubic-bezier(.215, .61, .355, 1); }
.hv4-gsb:hover .hv4-gsb-go .hv3-ic { transform: translateX(3px); transition-duration: .5s; }
@media (max-width: 599px) {
  .hv4-gsb { gap: 12px; padding: 10px 12px; }
  .hv4-gsb-ring { width: 34px; height: 34px; }
  .hv4-gsb-go { font-size: 0; gap: 0; }
  .hv4-gsb-t > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* the side panel */
.hv4-gs-scrim { position: fixed; inset: 0; z-index: 1190; background: rgba(8, 17, 34, 0.48); animation: hv4-gs-fade .3s cubic-bezier(.215, .61, .355, 1) both; }
.hv4-gs-scrim[hidden] { display: none; }
.hv4-gs-scrim.is-closing { animation: hv4-gs-fade-out .26s cubic-bezier(.55, .055, .675, .19) both; }
.hv4-gs { z-index: 1200; top: 0 !important; right: 0 !important; bottom: 0; left: auto; width: min(440px, 100vw); max-height: none; height: 100vh; height: 100dvh;
  padding: 24px 24px 28px; gap: 18px; border-radius: 16px 0 0 16px; box-shadow: -24px 0 64px rgba(8, 17, 34, 0.24); outline: 0;
  overflow-y: auto; overscroll-behavior: contain; animation: hv4-gs-slide .4s cubic-bezier(.215, .61, .355, 1) both; }
.hv4-gs.is-closing { animation: hv4-gs-slide-out .26s cubic-bezier(.55, .055, .675, .19) both; }
.hv4-gs-head h2 { font-size: 22px; line-height: 28px; }
@keyframes hv4-gs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hv4-gs-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes hv4-gs-slide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes hv4-gs-slide-out { from { transform: none; } to { transform: translateX(100%); } }
body.hv4-gs-open { overflow: hidden; }
@media (max-width: 599px) { .hv4-gs { width: 100vw; border-radius: 0; padding: 20px 16px 24px; } }
@media (prefers-reduced-motion: reduce) {
  .hv4-gs, .hv4-gs.is-closing, .hv4-gs-scrim, .hv4-gs-scrim.is-closing { animation: none; }
  .hv4-gsb, .hv4-gsb-ring .fg, .hv4-gsb-go .hv3-ic { transition: none; }
}

/* Get started banner: the only element of the home with the gradient (Fabio, 11/11: "usa il gradiente solo per lui";
   "un po' più aggressivo, meno timido", then back to that after a softer try): the full brand-blue gradient with white text,
   a white button. It is hidden from "Don't show again" at the foot of the side panel.
   "Fai una sfumatura meno banale" (11/11): layered glows (deep navy at the start, brand blue rising from below, a cyan light
   in the bottom right, a pale highlight in the top right) and the TrueScreen line pattern, faint, on the right. */
.hv4-gsb { display: flex; align-items: center; gap: 0; padding: 0; border: 0; border-radius: 16px; overflow: hidden; color: #fff;
  position: relative; isolation: isolate;
  --gsb-bg:
    radial-gradient(40% 160% at 86% 130%, rgba(46, 214, 255, 0.7) 0%, rgba(46, 214, 255, 0) 70%),
    radial-gradient(30% 120% at 100% -20%, rgba(160, 210, 255, 0.7) 0%, rgba(160, 210, 255, 0) 70%),
    radial-gradient(45% 170% at 52% 140%, rgba(0, 122, 254, 0.75) 0%, rgba(0, 122, 254, 0) 70%),
    radial-gradient(55% 190% at 0% 0%, #082a66 0%, rgba(8, 42, 102, 0) 75%),
    linear-gradient(100deg, #063a8c 0%, #0058d0 48%, #1386ff 100%);
  background: var(--gsb-bg);
  box-shadow: 0 10px 28px rgba(0, 98, 230, 0.28);
  transition: opacity .3s cubic-bezier(.215, .61, .355, 1), transform .3s cubic-bezier(.215, .61, .355, 1), box-shadow .35s cubic-bezier(.215, .61, .355, 1), filter .35s cubic-bezier(.215, .61, .355, 1); }
/* hover: the same gradient, a little brighter, the shadow grows and the lines come up (no change of ground) */
.hv4-gsb:hover { background: var(--gsb-bg); box-shadow: 0 14px 34px rgba(0, 98, 230, 0.36); filter: brightness(1.06) saturate(1.05); transition-duration: .5s; }
.hv4-gsb:active { filter: brightness(.97); transition-duration: .1s; }
/* the canonical TrueScreen line pattern, faint, on the right half: less generic than a plain blend */
.hv4-gsb::after { content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 460px; height: 100%; pointer-events: none;
  background: #fff; -webkit-mask: url(assets/pattern-lines-v2.webp) top left / 460px auto no-repeat; mask: url(assets/pattern-lines-v2.webp) top left / 460px auto no-repeat;
  transform: scaleX(-1); opacity: .2; transition: opacity .35s cubic-bezier(.215, .61, .355, 1); }
.hv4-gsb:hover::after { opacity: .3; transition-duration: .5s; }
.hv4-gsb-main { position: relative; z-index: 1; }
.hv4-gsb.is-leaving { opacity: 0; transform: translateY(-6px); }
.hv4-gsb-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 12px 14px 12px 14px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 16px; }
.hv4-gsb-main:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.hv4-gsb .hv4-gsb-t b { font-size: 16px; line-height: 22px; color: #fff; }
.hv4-gsb .hv4-gsb-t > span { color: rgba(255, 255, 255, 0.84); }
.hv4-gsb #hv4-gsb-n { color: #fff; }
.hv4-gsb .hv4-gsb-ring .bg { stroke: rgba(255, 255, 255, 0.26); }
.hv4-gsb .hv4-gsb-ring .fg { stroke: #fff; }
.hv4-gsb .hv4-gsb-go { min-height: 38px; padding: 0 10px 0 16px; border-radius: 8px; background: #fff; color: #0047b3;
  transition: transform .35s cubic-bezier(.215, .61, .355, 1); }
.hv4-gsb-main:hover .hv4-gsb-go { transform: translateX(-2px); transition-duration: .5s; }
@media (max-width: 599px) {
  .hv4-gsb-main { gap: 12px; padding: 10px 8px 10px 12px; }
  .hv4-gsb .hv4-gsb-go { min-height: 32px; padding: 0 6px; }
}
@media (prefers-reduced-motion: reduce) { .hv4-gsb, .hv4-gsb .hv4-gsb-go, .hv4-gsb::after { transition: none; }  }

/* foot of the side panel: "Don't show again" (Fabio, 11/11) */
.hv4-gs-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--ts-border-default, #e2e8ee); display: flex; justify-content: center; }
.hv4-gs-never { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font: 500 14px/20px "DM Sans", sans-serif; color: var(--ts-text-secondary); transition: background-color .35s cubic-bezier(.215, .61, .355, 1), color .35s cubic-bezier(.215, .61, .355, 1); }
.hv4-gs-never:hover { background: #f1f4f8; color: var(--ts-text-primary); transition-duration: .5s; }
.hv4-gs-never:focus-visible { outline: 2px solid var(--ts-focus-ring, #0068d9); outline-offset: 2px; }

/* Sign: coming soon (Fabio, 11/11). The card stays in the grid, quiet and not clickable, with a "Coming soon" label. */
.hv4-block.is-soon { cursor: default; }
.hv4-block.is-soon:hover { transform: none; box-shadow: none; }
.hv4-block.is-soon .hv4-title { color: var(--ts-text-primary); }
.hv4-soon { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px;
  background: #eef2f7; font: 600 13px/18px "DM Sans", sans-serif; color: var(--ts-text-secondary); }
.hv4-soon::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: #9aa6b5; }
