#top *, #top *::before, #top *::after {
  all: revert;
  box-sizing: border-box;
}

#top [hidden] {
  display: none !important;
}

/* Restore the shared H watermark after this page's scoped CSS reset. */
#top .hubgrade-section-watermark { position: relative; isolation: isolate; overflow: hidden; }
#top .hubgrade-section-watermark::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../media/hubgrade-h-mark-fb047b.svg');
  background-repeat: no-repeat;
  background-position: right -6rem center;
  background-size: min(40vw, 30rem);
  opacity: .1;
}
#top .hubgrade-section-watermark > * { position: relative; z-index: 1; }
#top .hubgrade-section-watermark--left::before { background-position: left -8rem bottom -5rem; }
:root[data-theme="light"] #top .hubgrade-section-watermark::before { opacity: .055; }
@media (max-width: 640px) {
  #top .hubgrade-section-watermark::before { background-position: right -5rem center; background-size: min(65vw, 21rem); }
  #top .hubgrade-section-watermark--left::before { background-position: left -5rem bottom -3rem; }
}

body[data-hubgrade-page="innovazione"],
body[data-hubgrade-page="innovazione"] * {
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-weight: 700 !important;
}

:root{
  color-scheme: dark;
  --bg:#0a0914;
  --surface:#131022;
  --surface-2:#1b1731;
  --line:#2b2647;
  --fg:#f5f3fc;
  --muted:#a6a1c0;
  --pink:#ff2e93;
  --violet:#b04cf0;
  --pink-text:#ff5aa9;
  --ok:#2be3a6;
  --warn:#ffb547;
  --dev:#bfa9ff;
  --on-accent:#ffffff;
  --grid:rgba(255,255,255,.035);
  --glow:rgba(255,46,147,.17);
  --glow-2:rgba(176,76,240,.12);
  --font-display:'IBM Plex Sans',sans-serif;
  --font-mono:var(--font-display);
}
@media (prefers-color-scheme: light){
  :root:not([data-theme="dark"]){
    color-scheme: light;
    --bg:#faf8fd; --surface:#ffffff; --surface-2:#f2eefb; --line:#ddd5f0; --fg:#1b1633; --muted:#5f5a7a;
    --pink:#d6007a; --violet:#8b2fd0; --pink-text:#c4006c; --ok:#0a8f66; --warn:#a96300; --dev:#6d3fd1;
    --grid:rgba(27,22,51,.045); --glow:rgba(214,0,122,.10); --glow-2:rgba(139,47,208,.09);
  }
}
:root[data-theme="light"]{
  color-scheme: light;
  --bg:#faf8fd; --surface:#ffffff; --surface-2:#f2eefb; --line:#ddd5f0; --fg:#1b1633; --muted:#5f5a7a;
  --pink:#d6007a; --violet:#8b2fd0; --pink-text:#c4006c; --ok:#0a8f66; --warn:#a96300; --dev:#6d3fd1;
  --grid:rgba(27,22,51,.045); --glow:rgba(214,0,122,.10); --glow-2:rgba(139,47,208,.09);
}
#top *{box-sizing:border-box}
html{scroll-behavior:smooth}
main#top{
  margin:0; padding-inline:0;
  color:var(--fg);
  font-family:var(--font-display); font-size:16px; line-height:1.6; font-weight:400;
}
#top a{color:inherit}
#top h1, #top h2, #top h3, #top h4, #top p{margin:0}
#top h1, #top h2, #top h3{text-wrap:balance}
#top .mono{font-family:var(--font-mono); font-size:.72rem; letter-spacing:.14em; text-transform:uppercase; font-weight:700}
#top :focus-visible{outline:2px solid var(--pink); outline-offset:3px; border-radius:6px}
#top .btn{display:inline-flex; align-items:center; justify-content:center; gap:10px; font-family:var(--font-display); font-weight:800; font-size:.8rem; letter-spacing:.06em; text-transform:uppercase; color:var(--on-accent); background:linear-gradient(90deg,var(--pink),var(--violet)); border:0; border-radius:999px; padding:12px 22px; text-decoration:none; cursor:pointer}
#top .btn:hover{filter:brightness(1.1)}
#top .hero{padding-bottom:40px}
#top .eyebrow{display:inline-flex; gap:10px; align-items:center; padding:7px 14px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--fg); font-weight:700}
#top .dots{display:inline-flex; gap:4px}
#top .dots i{width:6px; height:6px; border-radius:2px; background:var(--pink)}
#top .dots i:nth-child(2n){background:var(--violet)}
#top h1{font-size:clamp(2.4rem,6.2vw,4.6rem); line-height:1.02; letter-spacing:-.035em; font-weight:800; margin-top:26px}
#top h1 span{background:linear-gradient(90deg,var(--pink),var(--violet)); -webkit-background-clip:text; background-clip:text; color:transparent}
#top .lead{max-width:62ch; font-size:1.2rem; color:var(--muted); margin-top:26px}
#top .lead b{color:var(--fg)}
#top .strip{display:flex; flex-wrap:wrap; gap:14px 36px; margin-top:38px; padding-top:22px; border-top:1px solid var(--line)}
#top .strip div{display:flex; align-items:baseline; gap:10px}
#top .strip strong{font-family:var(--font-mono); font-size:1.8rem; line-height:1; font-variant-numeric:tabular-nums}
#top .strip span{color:var(--muted); font-size:.9rem}
#top .strip .ok strong{color:var(--ok)}
#top .strip .warn strong{color:var(--warn)}
#top .strip .dev strong{color:var(--dev)}
#top section{padding-block:56px}
#top .sec-head{display:flex; flex-wrap:wrap; gap:18px 40px; justify-content:space-between; align-items:flex-end; margin-bottom:30px}
#top .sec-head .eyebrow{margin-bottom:16px}
#top h2{font-size:clamp(1.7rem,3.6vw,2.6rem); line-height:1.12; letter-spacing:-.03em; font-weight:800}
#top .sub{color:var(--muted); max-width:60ch; margin-top:12px; font-size:1.05rem}
#top .principle{display:grid; grid-template-columns:1fr auto 1.15fr auto 1fr; gap:18px; align-items:stretch}
#top .pbox{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:24px; min-width:0}
#top .pbox.core{border-color:color-mix(in srgb, var(--pink) 55%, var(--line)); background:linear-gradient(180deg, color-mix(in srgb, var(--pink) 8%, var(--surface)), var(--surface))}
#top .pbox h3{font-size:1.15rem; letter-spacing:-.02em; margin:10px 0 12px}
#top .pbox ul{margin:0; padding:0; list-style:none; display:grid; gap:8px; color:var(--muted); font-size:.95rem}
#top .pbox li{display:flex; gap:10px}
#top .pbox li::before{content:""; width:6px; height:6px; margin-top:.6em; border-radius:2px; background:var(--violet); flex:none}
#top .verbs{display:flex; flex-wrap:wrap; gap:8px; margin-top:14px}
#top .verbs span{padding:6px 12px; border-radius:999px; background:var(--surface-2); border:1px solid var(--line); font-weight:700; font-size:.88rem}
#top .arrow{align-self:center; color:var(--pink-text); font-size:1.6rem}
#top .facts{display:flex; flex-wrap:wrap; gap:10px 28px; margin-top:22px; color:var(--muted); font-size:.92rem}
#top .facts span::before{content:"→ "; color:var(--pink-text); font-weight:800}
@media (max-width:980px){
#top .principle{grid-template-columns:1fr}
#top .arrow{transform:rotate(90deg); justify-self:center} }
#top .filters{display:flex; flex-wrap:wrap; gap:8px}
#top .chip{font-family:var(--font-display); font-weight:700; font-size:.88rem; color:var(--fg); background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:9px 16px; cursor:pointer; display:inline-flex; gap:8px; align-items:center}
#top .chip small{font-family:var(--font-mono); color:var(--muted); font-size:.75rem}
#top .chip[aria-pressed="true"]{background:var(--surface-2); border-color:var(--pink)}
#top .chip[aria-pressed="true"] small{color:var(--pink-text)}
/* Keep audience tabs and their section headings in matching, readable colours. */
#top [data-audience="clienti"]{--audience-color:#facc15}
#top [data-audience="operatori"]{--audience-color:#34d399}
#top [data-audience="back-office"]{--audience-color:#60a5fa}
body.hg-light #top [data-audience="clienti"]{--audience-color:#854d0e}
body.hg-light #top [data-audience="operatori"]{--audience-color:#047857}
body.hg-light #top [data-audience="back-office"]{--audience-color:#1d4ed8}
#top .chip[data-audience]:not([data-audience="all"]){color:var(--audience-color); border-color:color-mix(in srgb,var(--audience-color) 55%,var(--line)); background:color-mix(in srgb,var(--audience-color) 10%,var(--surface))}
#top .chip[data-audience]:not([data-audience="all"]):hover{border-color:var(--audience-color)}
#top .chip[data-audience]:not([data-audience="all"])[aria-pressed="true"]{border-color:var(--audience-color); background:color-mix(in srgb,var(--audience-color) 22%,var(--surface)); box-shadow:0 0 0 1px var(--audience-color)}
#top .group[data-audience] .group-head h3{color:var(--audience-color)}
#top .group[data-audience] .group-head{border-bottom-color:color-mix(in srgb,var(--audience-color) 45%,var(--line))}
#top .group{margin-top:44px}
#top .group-head{display:flex; flex-wrap:wrap; gap:6px 24px; align-items:baseline; justify-content:space-between; padding-bottom:14px; border-bottom:1px solid var(--line); margin-bottom:18px}
#top .group-head h3{font-size:1.35rem; letter-spacing:-.02em}
#top .group-head p{color:var(--muted); font-size:.95rem}
#top .cards{display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); gap:18px}
#top .card{background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:22px; display:flex; flex-direction:column; gap:12px; min-width:0}
#top .card-top{display:flex; justify-content:space-between; gap:10px; align-items:center; flex-wrap:wrap}
#top .card-top .mono{color:var(--muted); font-size:.66rem}
#top .card h4{font-size:1.2rem; letter-spacing:-.02em; line-height:1.25}
#top .card p{color:var(--muted); font-size:.96rem}
#top .card dl{margin:auto 0 0; padding-top:14px; border-top:1px solid var(--line); display:grid; gap:10px; font-size:.86rem}
#top .card dt{font-family:var(--font-mono); font-size:.64rem; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:2px}
#top .card dd{margin:0}
#top .card[hidden], #top .group[hidden]{display:none}
#top .tabs{display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px}
#top .tab{font-family:var(--font-display); font-weight:700; font-size:.92rem; color:var(--muted); background:transparent; border:1px solid var(--line); border-radius:10px; padding:10px 16px; cursor:pointer}
#top .tab[aria-selected="true"]{color:var(--on-accent); background:linear-gradient(90deg,var(--pink),var(--violet)); border-color:transparent}
#top .flow{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:26px}
#top .flow h3{font-size:1.4rem; letter-spacing:-.02em}
#top .flow > p{color:var(--muted); margin-top:6px; max-width:70ch}
#top .steps{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:14px; margin-top:22px}
#top .step{background:var(--surface-2); border:1px solid var(--line); border-radius:12px; padding:18px; min-width:0}
#top .step.human{border-color:color-mix(in srgb, var(--ok) 50%, var(--line))}
#top .step .mono{color:var(--pink-text); font-size:.64rem}
#top .step.human .mono{color:var(--ok)}
#top .step h4{font-size:1.02rem; margin:8px 0 6px; letter-spacing:-.01em}
#top .step p{font-size:.9rem; color:var(--muted)}
#top .example{margin-top:18px; padding:14px 18px; border:1px dashed var(--line); border-radius:12px; display:flex; flex-wrap:wrap; gap:8px 22px; align-items:center; font-size:.9rem}
#top .example .mono{color:var(--muted); font-size:.64rem}
#top .example span b{color:var(--fg)}
#top .example span{color:var(--muted)}
#top .gov{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:30px}
#top .gov div{border-top:2px solid var(--line); padding-top:16px}
#top .gov div:hover{border-top-color:var(--pink)}
#top .gov h3{font-size:1.1rem; letter-spacing:-.02em; margin-bottom:8px}
#top .gov p{color:var(--muted); font-size:.95rem}
#top .next{display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); gap:20px}
#top .big{background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:28px; display:flex; flex-direction:column; gap:14px; min-width:0}
#top .big h3{font-size:1.5rem; letter-spacing:-.025em}
#top .big p{color:var(--muted)}
#top .quote{border:1px dashed var(--line); border-radius:12px; padding:14px 18px; font-size:.92rem; color:var(--muted)}
#top .quote b{color:var(--fg)}
#top .pipeline{margin-top:20px; display:flex; flex-wrap:wrap; gap:10px 14px; align-items:center; color:var(--muted); font-size:.95rem}
#top .cta{border:1px solid color-mix(in srgb, var(--pink) 45%, var(--line)); border-radius:20px; padding:clamp(28px,5vw,52px); background:linear-gradient(135deg, color-mix(in srgb, var(--pink) 12%, var(--surface)), color-mix(in srgb, var(--violet) 14%, var(--surface))); display:flex; flex-wrap:wrap; gap:24px 48px; justify-content:space-between; align-items:center}
#top .cta h2{max-width:20ch}
#top .cta p{color:var(--muted); max-width:52ch; margin-top:12px}
#top .cta .btn{padding:16px 30px; font-size:.9rem}
#top .cta small{display:block; margin-top:10px; color:var(--muted); font-size:.82rem}


#top > .section-reveal {
  opacity:0;
  transform:translate3d(0,28px,0);
  transition:none;
  will-change:opacity,transform;
}
#top > .section-reveal.is-visible {
  opacity:1;
  transform:translate3d(0,0,0);
  transition:opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
  will-change:auto;
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  #top > .section-reveal,
  #top > .section-reveal.is-visible{opacity:1; transform:none; transition:none; will-change:auto}
}

html[data-theme] body {
  background:var(--bg);
  background-image:
    radial-gradient(60rem 28rem at 8% -4%, var(--glow), transparent 70%),
    radial-gradient(48rem 26rem at 100% 18%, var(--glow-2), transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size:auto, auto, 44px 44px, 44px 44px;
  background-repeat:no-repeat, no-repeat, repeat, repeat;
}
