/* GENERATO da docs/mockup-sito-wp/tools/build-home.mjs a partire da docs/mockup-sito/css/home.css. NON modificare a mano. */
.valves-site .hs { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.valves-site .hl { fill: var(--line); }
.valves-site .hn { fill: var(--ink); }
.valves-site .ha { fill: var(--accent); }
.valves-site .h2 { fill: var(--surface-2); }
.valves-site .hw { fill: var(--bg); opacity: .75; }
.valves-site .hpath { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.valves-site .hck { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.valves-site .hck-w { stroke: var(--bg); }
.valves-site .h-label { display: block; font: 600 .78rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.valves-site .h-ico { width: 22px; height: 22px; flex: none; }
.valves-site .h-viz-wrap { display: grid; gap: 12px; min-width: 0; }
.valves-site .h-dgcard { border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .14); overflow: hidden; background: radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.4px) 0 0 / 20px 20px, #0d1a4a; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); }
.valves-site .h-dg { position: relative; aspect-ratio: 760 / 520; width: 100%; }
.valves-site .h-dm { display: none; }
.valves-site .h-frame { position: absolute; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); background: rgba(255, 255, 255, .03); }
.valves-site .h-fcap { position: absolute; font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); white-space: nowrap; }
.valves-site .h-dg-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.valves-site .h-path { fill: none; stroke: rgba(255, 255, 255, .38); stroke-width: 1.6; stroke-dasharray: 5 5; transition: opacity .2s var(--ease-state), stroke .2s var(--ease-state); }
.valves-site .h-pulse { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 7 93; stroke-dashoffset: 7; opacity: 0; }
.valves-site .h-pulse-in { stroke: #7cc8ff; }
.valves-site .h-pulse-out { stroke: #f08ad0; }
.valves-site .h-pill { position: absolute; z-index: 2; display: flex; align-items: center; gap: 6px; padding-inline: 8px; min-width: 0; border-radius: 4px; background: #16275f; border: 1px solid rgba(255, 255, 255, .22); color: #fff; text-decoration: none; font: 600 13px/1 var(--font-body); white-space: nowrap; overflow: hidden; transition: opacity .2s var(--ease-state), border-color .2s var(--ease-state); }
.valves-site .h-pill i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px rgba(255, 255, 255, .4); }
.valves-site .h-pill:hover, .valves-site .h-pill.is-hl { border-color: #fff; }
.valves-site .h-hub { position: absolute; z-index: 3; display: grid; place-content: center; gap: 2px; text-align: center; border-radius: var(--radius); color: #fff; text-decoration: none; background: linear-gradient(135deg, #1a2d8a 0%, #701858 100%); border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 0 40px rgba(112, 24, 88, .6), 0 0 80px rgba(16, 112, 184, .3); }
.valves-site .h-hub b { font: 700 1.9rem/1 var(--font-display); letter-spacing: .05em; }
.valves-site .h-hub span { font: 500 13px/1.1 var(--font-body); color: rgba(255, 255, 255, .88); }
.valves-site .h-hub::after { content: ""; position: absolute; inset: -5px; border: 2px solid rgba(255, 255, 255, .6); border-radius: var(--radius); opacity: 0; pointer-events: none; }
.valves-site .h-hub:hover, .valves-site .h-hub.is-hl { border-color: #fff; }
.valves-site .h-dgcard.has-hl .h-path:not(.is-hl) { opacity: .12; }
.valves-site .h-dgcard.has-hl .h-dg.is-playing .h-pulse, .valves-site .h-dgcard.has-hl .h-pulse { animation: none; opacity: 0; }
.valves-site .h-dgcard.has-hl .h-pill:not(.is-hl):not(.h-pill-m) { opacity: .45; }
.valves-site .h-path.is-hl { stroke: #fff; stroke-width: 2.4; }
.valves-site .h-dg-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, .14); background: rgba(0, 0, 0, .18); font-size: .98rem; color: rgba(255, 255, 255, .8); max-width: none; min-height: 3.4em; }
.valves-site .h-dg-info b { color: #fff; font: 700 1.2rem var(--font-display); letter-spacing: .03em; }
.valves-site .h-dg-info a { color: #9fc8ff; font-weight: 600; margin-left: auto; }
.valves-site .h-viz-note { font-size: .9rem; color: rgba(255, 255, 255, .66); max-width: 60ch; }
.valves-site .illu-note { margin-right: 6px; }
.valves-site .h-dg.has-played .h-pill, .valves-site .h-dg.has-played .h-frame, .valves-site .h-dg.has-played .h-path { animation: h-fade .7s var(--ease-in) backwards; animation-delay: calc(var(--k, 0) * 50ms + 100ms); }
@keyframes h-fade { from { opacity: 0; } }
.valves-site .h-dg.is-playing .h-pulse { animation: h-run 6s linear infinite; animation-delay: var(--d); }
.valves-site .h-dg.is-playing .h-hub::after { animation: h-ring 3.6s ease-out infinite; }
@keyframes h-run { 0% { stroke-dashoffset: 7; opacity: 1; } 28% { stroke-dashoffset: -100; opacity: 1; } 29%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes h-ring { from { transform: scale(1); opacity: .6; } to { transform: scale(1.18); opacity: 0; } }
.valves-site .h-mk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.valves-site .h-mt { position: relative; display: grid; align-content: start; gap: 8px; padding: 16px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: transform .2s var(--ease-state), box-shadow .2s var(--ease-state), border-color .2s var(--ease-state); }
.valves-site .h-mt:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.valves-site .h-mt:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); }
.valves-site .h-mt[aria-expanded="true"] { border-color: var(--ink-soft); box-shadow: 0 0 0 1px var(--ink-soft); }
.valves-site .h-mt-name { font: 600 1.2rem/1.1 var(--font-display); letter-spacing: .01em; }
.valves-site .h-mk-panel { grid-column: 1 / -1; display: grid; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: h-panel .3s var(--ease-in) backwards; }
.valves-site .h-mk-panel:focus-visible { outline-offset: 3px; }
.valves-site .h-mp-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.valves-site .h-mp-head h3 { font-size: 2rem; }
.valves-site .h-mp-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.valves-site .h-mp-x:hover { border-color: var(--blue); }
.valves-site .h-mp-x .h-ico { width: 20px; height: 20px; }
.valves-site .h-mp-sec { display: grid; gap: 8px; }
.valves-site .h-mp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.valves-site .h-mp-chips .chip.is-hit { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.valves-site .h-mp-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.valves-site .h-mp-card { display: grid; gap: 2px; padding: 12px 14px 12px 16px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; position: relative; }
.valves-site .h-mp-card i { display: none; }
.valves-site .h-mp-card b { font: 700 1.15rem var(--font-display); letter-spacing: .02em; }
.valves-site .h-mp-card span { font-size: .9rem; color: var(--muted); line-height: 1.3; }
.valves-site .h-mp-card:hover { border-color: var(--ink-soft); }
@keyframes h-panel { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .valves-site .h-pulse { opacity: 0; }
}
@media (max-width: 700px) {
  .valves-site .h-dg { display: none; }
  .valves-site .h-dm { display: grid; gap: 0; padding: 16px 14px 14px; }
  .valves-site .h-hub-m { position: relative; z-index: 1; padding: 18px 14px; min-height: 92px; }
  .valves-site .h-hub-m b { font-size: 2.3rem; }
  .valves-site .h-hub-m span { font-size: 15px; }
  .valves-site .h-stack { margin-left: 24px; padding: 14px 0 0 18px; border-left: 2px dashed rgba(255, 255, 255, .45); display: grid; gap: 14px; }
  .valves-site .h-mf { position: relative; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04); padding: 12px; display: grid; gap: 10px; }
  .valves-site .h-mf::before { content: ""; position: absolute; left: -20px; top: 24px; width: 18px; border-top: 2px dashed rgba(255, 255, 255, .45); }
  .valves-site .h-fcap-m { font: 600 13px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
  .valves-site .h-mp { display: flex; flex-wrap: wrap; gap: 8px; }
  .valves-site .h-pill-m { position: relative; min-height: 44px; padding: 10px 14px; font-size: 15px; white-space: normal; }
}
@media (max-width: 1100px) {
  .valves-site .h-mk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .valves-site .h-mk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .valves-site .h-mt { padding: 10px; gap: 6px; border-radius: var(--radius); }
  .valves-site .h-mt-name { font-size: 1.02rem; }
  .valves-site .h-mk-panel { padding: 16px; gap: 14px; }
  .valves-site .h-mp-head h3 { font-size: 1.6rem; }
}
.valves-site.h4 .section { padding-block: clamp(64px, 9vw, 128px); }
.valves-site .h4-kicker { font: 600 1rem var(--font-body); color: var(--blue); margin-bottom: 18px; }
.valves-site .h4-tone-m { color: var(--muted); }
.valves-site .h4-tone-d { color: rgba(255, 255, 255, .62); }
.valves-site .h4-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue); text-decoration: none; }
.valves-site .h4-head { max-width: 860px; margin-bottom: clamp(32px, 4vw, 56px); }
.valves-site .h4-head h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.06; }
.valves-site .h4-head-row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.valves-site .h4-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.valves-site .h4-tile { display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0, 8, 48, .05); min-width: 0; }
.valves-site .h4-tile h3 { font-size: 1.5rem; }
.valves-site .h4-tile p { font-size: 1rem; }
.valves-site .h4-tile-ui { margin: -8px -8px 6px; border-radius: var(--radius-sm); background: var(--surface-2); padding: 10px; }
.valves-site .h4-tile-ui { height: 132px; display: grid; place-items: center; }
.valves-site .h4-tile-ui svg { display: block; width: 100%; height: 100%; }
.valves-site .h4-tile-hub { grid-column: span 2; grid-row: span 2; background: #0a1238; border-color: #0a1238; color: #fff; gap: 18px; }
.valves-site .h4-tile-hub .muted { color: rgba(255, 255, 255, .72); }
.valves-site .h4-tile-hub .h-dgcard { box-shadow: none; }
.valves-site .h4-tile-hub .h-viz-note, .valves-site .h4-tile-hub .illu-note { color: rgba(255, 255, 255, .7); }
.valves-site .h4-tile-hub :focus-visible { outline-color: #9fc8ff; }
.valves-site .h4-links { list-style: none; margin: 4px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.valves-site .h4-links a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--blue); text-decoration: none; font-size: .98rem; }
.valves-site .h4-foot { max-width: none; margin-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.valves-site.h4 .h-mt { border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 8, 48, .05); }
.valves-site.h4 .h-mk-panel { border-radius: var(--radius); }
.valves-site .h4-dark { background: #0a1238; color: #fff; padding-block: clamp(64px, 9vw, 128px); }
.valves-site .h4-dark .h4-kicker { color: #9fc8ff; }
.valves-site .h4-dark h2 { color: #fff; }
.valves-site .h4-dark .src-ref, .valves-site .h4-dark a:not(.btn) { color: #9fc8ff; }
.valves-site .h4-dark :focus-visible { outline-color: #9fc8ff; }
.valves-site .h4-nums { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.valves-site .h4-nums > div { display: grid; gap: 6px; padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .18); }
.valves-site .h4-nums dd { margin: 0; font: 500 clamp(2.8rem, 5vw, 4.4rem)/1 var(--font-display); letter-spacing: -.02em; }
.valves-site .h4-nums dd small { font-size: .42em; letter-spacing: 0; color: rgba(255, 255, 255, .7); }
.valves-site .h4-nums dt { color: rgba(255, 255, 255, .72); font-size: 1rem; }
.valves-site .h4-sup { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); padding-top: clamp(40px, 5vw, 64px); }
.valves-site .h4-sup-head { display: grid; gap: 14px; align-content: start; }
.valves-site .h4-sup-head h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.valves-site .h4-sup-head p { color: rgba(255, 255, 255, .74); }
.valves-site .h4-sup-head .btn { justify-self: start; }
.valves-site .h4-call { display: grid; gap: 2px; font-size: 1rem; }
.valves-site .h4-call b { font: 600 1.6rem var(--font-display); color: #fff; }
.valves-site .h4-call span { font-size: .92rem; color: rgba(255, 255, 255, .62); }
.valves-site .h4-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.valves-site .h4-facts article { display: grid; gap: 6px; align-content: start; }
.valves-site .h4-facts .h-ico { color: #9fc8ff; }
.valves-site .h4-facts h4 { font-size: 1.2rem; color: #fff; }
.valves-site .h4-facts p { font-size: .98rem; color: rgba(255, 255, 255, .72); }
.valves-site .h4-sources { margin-top: 40px; font-size: .86rem; color: rgba(255, 255, 255, .6); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.valves-site .h4-sources ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: src; }
.valves-site .h4-sources li { counter-increment: src; }
.valves-site .h4-sources li::before { content: "[" counter(src) "] "; font-family: var(--font-mono); }
.valves-site .h4-method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.valves-site .h4-method li { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); }
.valves-site .h4-method .num { font: 600 .95rem var(--font-mono); color: var(--blue); }
.valves-site .h4-method h3 { font-size: 1.45rem; }
.valves-site .h4-cta-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.valves-site .h4-cta-main h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.valves-site .h4-cta-main .cta-row { margin-top: 26px; }
.valves-site .h4-cta-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.valves-site .h4-cta-side > div { display: grid; gap: 8px; align-content: start; }
.valves-site .h4-cta-side .h-ico { color: var(--blue); }
.valves-site .h4-cta-side h3 { font-size: 1.25rem; }
@media (max-width: 980px) {
  .valves-site .h4-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .valves-site .h4-tile-hub { grid-column: 1 / -1; grid-row: auto; }
  .valves-site .h4-sup, .valves-site .h4-cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .valves-site .h4-trust, .valves-site .h4-nums { grid-template-columns: 1fr; }
  .valves-site .h4-trust li, .valves-site .h4-nums > div { padding-left: 0; border-left: 0; }
  .valves-site .h4-nums > div + div { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
  .valves-site .h4-bento, .valves-site .h4-facts, .valves-site .h4-method, .valves-site .h4-cta-side { grid-template-columns: 1fr; }
  .valves-site .h4-tile-hub { padding: 16px; }
}
.valves-site .h5-hero { overflow: hidden; isolation: isolate; color: #fff; background: #0b0f2e; padding-block: clamp(56px, 8vw, 112px) clamp(56px, 6vw, 96px); display: grid; align-items: center; }
.valves-site .h5-wave { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.valves-site .h5-wave i { position: absolute; display: block; }
.valves-site .h5-wave i:nth-child(1) { left: 30%; top: -55%; width: 95%; height: 150%; transform: rotate(-28deg); background: linear-gradient(90deg, transparent 0%, #ff9900 18%, #f05a7e 36%, #c65f8f 50%, #7b3fe4 68%, #3b5bdb 84%, transparent 100%); -webkit-mask-image: radial-gradient(60% 45% at 50% 55%, #000 30%, transparent 75%); mask-image: radial-gradient(60% 45% at 50% 55%, #000 30%, transparent 75%); opacity: .95; animation: h5-flow 22s ease-in-out infinite alternate; }
.valves-site .h5-wave i:nth-child(2) { left: 30%; top: -55%; width: 95%; height: 150%; transform: rotate(-28deg); background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .13) 0 1px, transparent 1px 7px); -webkit-mask-image: radial-gradient(55% 40% at 50% 55%, #000 20%, transparent 70%); mask-image: radial-gradient(55% 40% at 50% 55%, #000 20%, transparent 70%); mix-blend-mode: overlay; animation: h5-flow 22s ease-in-out infinite alternate; }
.valves-site .h5-wave i:nth-child(3) { inset: 0; background: radial-gradient(60% 70% at 0% 0%, rgba(16, 112, 184, .25), transparent 60%), linear-gradient(90deg, #0b0f2e 30%, transparent 62%); }
@keyframes h5-flow { from { transform: rotate(-28deg) translate(-3%, -2%); } to { transform: rotate(-24deg) translate(4%, 3%); } }
.valves-site .h5-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(32px, 5vw, 80px); align-items: center; }
.valves-site .h5-kicker { font: 600 1rem var(--font-body); color: #9fc8ff; margin-bottom: 18px; }
.valves-site .h5-copy h1 { font-size: clamp(2.7rem, 5.6vw, 5rem); line-height: 1; color: #fff; max-width: 14ch; letter-spacing: -.02em; }
.valves-site .h5-grad { background: linear-gradient(90deg, #ffb35c, #f08ad0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.valves-site .h5-lead { margin-top: 24px; font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: rgba(255, 255, 255, .86); max-width: 46ch; }
.valves-site .h5-copy .cta-row { margin-top: 30px; }
.valves-site .h5-hero .btn-light { background: #fff; color: #0b0f2e; border-radius: 999px; padding-inline: 18px; }
.valves-site .h5-hero .btn-light:hover { background: #e6ecff; }
.valves-site .h5-btn-q { color: #fff; background: transparent; }
.valves-site .h5-btn-q:hover { background: rgba(255, 255, 255, .1); }
.valves-site .h5-hero .src-ref, .valves-site .h5-hero a.src-ref { color: #9fc8ff; }
.valves-site .h5-hero :focus-visible { outline-color: #9fc8ff; }
.valves-site .h5-card { display: grid; grid-template-rows: auto 1fr; background: var(--surface); color: var(--ink); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: 0 2px 6px rgba(0, 8, 48, .12), 0 24px 60px rgba(0, 8, 48, .22); }
.valves-site .h5-fig { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.valves-site .h5-fig svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.valves-site .h5-fig.mk-hero-dark { background: linear-gradient(150deg, #000830, #1b1040 58%, #3a1646); }
.valves-site .h5-body { display: grid; gap: 6px; align-content: start; padding: 20px 22px 22px; }
.valves-site .h5-body b { font: 600 1.6rem/1.1 var(--font-display); letter-spacing: -.01em; }
.valves-site .h5-who { color: var(--muted); font-size: .98rem; line-height: 1.4; }
.valves-site .h5-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--blue); font-weight: 600; }
.valves-site .h5-card:hover .h5-go .h4-chev-line, .valves-site .h5-card:focus-visible .h5-go .h4-chev-line { opacity: 1; }
.valves-site .h5-card:hover .h5-go .h4-chev path:not(.h4-chev-line), .valves-site .h5-card:focus-visible .h5-go .h4-chev path:not(.h4-chev-line) { transform: translateX(3px); }
.valves-site .h5-go .h4-chev { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.valves-site .h5-hero { position: sticky; top: 0; z-index: 0; min-height: min(calc(100vh - 150px), 760px); }
.valves-site .h5-deck { position: relative; height: clamp(440px, 40vw, 520px); }
.valves-site .h5-dcard { position: absolute; inset: 0 auto auto 0; width: 100%; transform-origin: 0 0; transition: transform .9s cubic-bezier(.65, 0, .35, 1), opacity .9s cubic-bezier(.65, 0, .35, 1); }
.valves-site .h5-deck.is-empty .h5-dcard { visibility: hidden; }
.valves-site .h5-ghost { position: absolute; z-index: 30; transform-origin: 0 0; pointer-events: none; transition: none !important; margin: 0; }
@media (max-width: 980px) {
  .valves-site .h5-grid { grid-template-columns: 1fr; }
  .valves-site .h5-deck { display: none; }
  .valves-site .h5-hero { position: relative; min-height: 0; }
  .valves-site .h5-wave i:nth-child(1), .valves-site .h5-wave i:nth-child(2) { left: 0; top: -30%; width: 160%; }
  .valves-site .h5-wave i:nth-child(3) { background: linear-gradient(180deg, #0b0f2e 25%, rgba(11, 15, 46, .55) 70%, transparent); }
}
@media (max-width: 640px) {
  .valves-site .h5-copy h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .valves-site .h5-wave i { animation: none !important; }
  .valves-site .h5-dcard { transition: none; }
}
.valves-site .h5-after { position: relative; z-index: 1; background: var(--bg); }
.valves-site .h5-copy { will-change: opacity, transform; }
.valves-site .h5-markets { position: relative; }
.valves-site.h4 .h5-grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.valves-site.h4 .h5-gcard.h-mt { padding: 0; gap: 0; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0, 8, 48, .06), 0 10px 28px rgba(0, 8, 48, .07); text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
.valves-site.h4 .h5-gcard .h-mt-name { font: 600 1.3rem/1.1 var(--font-display); }
.valves-site.h4 .h5-gcard .h5-body { padding: 16px 16px 18px; gap: 5px; }
.valves-site.h4 .h5-gcard .h5-who { font-size: .92rem; }
@media (max-width: 1180px) {
  .valves-site.h4 .h5-grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.valves-site.h4 .h5-gcard[aria-expanded="true"] { border-color: var(--ink-soft); box-shadow: 0 0 0 1px var(--ink-soft); }
.valves-site .h5-fly { position: fixed; inset: 0; z-index: 35; pointer-events: none; overflow: hidden; }
.valves-site .h5-fly[hidden] { display: none; }
.valves-site .h5-ghost { position: absolute; left: 0; top: 0; transform-origin: 0 0; margin: 0; will-change: transform, opacity; }
@media (max-width: 980px) {
  .valves-site.h4 .h5-grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .valves-site.h4 .h5-grid-cards { grid-template-columns: 1fr; }
  .valves-site .h5-gcard .h5-fig { aspect-ratio: 16 / 8; }
}
.valves-site .h5-side { display: grid; gap: 22px; justify-items: start; }
.valves-site .h5-side .h5-deck { width: 100%; }
@media (min-width: 981px) and (prefers-reduced-motion: no-preference) {
  .valves-site .h5-grid-cards.is-waiting:not(.is-landed) .h5-gcard { visibility: hidden; }
  .valves-site .h5-grid-cards.is-waiting:not(.is-landed) .h-mk-panel { display: none; }
}
@media (max-width: 980px) {
  .valves-site .h5-side { display: none; }
}
.valves-site .h5-bento-sec { background: #0a1238; color: #fff; }
.valves-site .h5-bento-sec .h4-head h2 { color: #fff; }
.valves-site .h5-bento-sec .h4-tone-m { color: rgba(255, 255, 255, .62); }
.valves-site .h5-bento-sec .src-ref, .valves-site .h5-bento-sec a.src-ref { color: #9fc8ff; }
.valves-site .h5-bento-sec :focus-visible { outline-color: #9fc8ff; }
.valves-site .h5-bento-sec .h4-foot .illu-note { color: rgba(255, 255, 255, .7); }
.valves-site .h5-bento-sec .h4-foot .h4-more { color: #9fc8ff; }
.valves-site .h5-bento-sec .h4-tile:not(.h4-tile-hub) { border-color: transparent; box-shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 18px 40px rgba(0, 0, 0, .25); }
.valves-site .h5-bento-sec .h4-tile-hub { background: transparent; border-color: transparent; box-shadow: none; padding-inline: 0; }
.valves-site .h5-bento-sec .h-dgcard { position: relative; background: transparent; border-color: transparent; box-shadow: none; overflow: visible; }
.valves-site .h5-bento-sec .h-dgcard::before { content: ""; position: absolute; inset: -40px; z-index: 0; pointer-events: none; background: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.5px) 0 0 / 20px 20px; -webkit-mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); mask-image: radial-gradient(closest-side, #000 45%, transparent 100%); }
.valves-site .h5-bento-sec .h-dg, .valves-site .h5-bento-sec .h-dm, .valves-site .h5-bento-sec .h-dg-info { position: relative; z-index: 1; }
.valves-site .h5-bento-sec .h-dg-info { background: transparent; border-top-color: rgba(255, 255, 255, .12); }
.valves-site .h4-dark { background: var(--surface); color: var(--ink); border-block: 1px solid var(--line); }
.valves-site .h4-dark .h4-kicker { color: var(--blue); }
.valves-site .h4-dark h2 { color: var(--ink); }
.valves-site .h4-dark .h4-tone-d { color: var(--muted); }
.valves-site .h4-dark .src-ref, .valves-site .h4-dark a:not(.btn) { color: var(--blue); }
.valves-site .h4-dark :focus-visible { outline-color: var(--focus); }
.valves-site .h4-dark .h4-nums { border-bottom-color: var(--line); }
.valves-site .h4-dark .h4-nums > div { border-left-color: var(--line); }
.valves-site .h4-dark .h4-nums dd { color: var(--ink); }
.valves-site .h4-dark .h4-nums dd small, .valves-site .h4-dark .h4-nums dt { color: var(--muted); }
.valves-site .h4-dark .h4-sup-head p { color: var(--ink-soft); }
.valves-site .h4-dark .h4-call b { color: var(--ink); }
.valves-site .h4-dark .h4-call span { color: var(--muted); }
.valves-site .h4-dark .btn-light { background: var(--plum); color: var(--on-plum); }
.valves-site .h4-dark .btn-light:hover { background: var(--plum-2); }
.valves-site .h4-dark .h4-facts .h-ico { color: var(--blue); }
.valves-site .h4-dark .h4-facts h4 { color: var(--ink); }
.valves-site .h4-dark .h4-facts p { color: var(--muted); }
.valves-site .h4-dark .h4-sources { color: var(--muted); }
@media (max-width: 640px) {
  .valves-site .h4-dark .h4-nums > div + div { border-top-color: var(--line); }
}
.valves-site .h5-bento-sec .h4-tile:not(.h4-tile-hub) { color: var(--ink); }
.valves-site .h-mp-card .h-mp-note { display: block; font-size: .8rem; color: var(--muted); margin-top: -2px; }

/* ---- adattamenti a Elementor (scritti a mano in tools/build-home.mjs) ---- */
.valves-site [class*="elementor-widget-valves_home_"] { width: 100%; max-width: 100%; }
/* l'hero resta fermo e le sezioni dopo ci scorrono sopra (come stripe.com/enterprise): si agganciano le sezioni di Elementor */
.valves-site.h4 .elementor-section.h5-hero-host { position: sticky; top: 0; z-index: 0; }
.valves-site.h4 .elementor-section.h5-after { position: relative; z-index: 1; background: var(--bg); }
.valves-site.h4 .h5-hero-host .h5-hero { position: relative; }
@media (max-width: 980px) { .valves-site.h4 .elementor-section.h5-hero-host { position: relative; } }
.valves-site .h5-fly { font-family: var(--font-body); }
/* widget Home · Mercati: card per riga su computer, spazi e ombra regolabili da Elementor (variabili; i predefiniti sono quelli di prima) */
@media (min-width: 1181px) { .valves-site.h4 .h5-grid-cards { grid-template-columns: repeat(var(--h5-cols, 4), minmax(0, 1fr)); } }
.valves-site.h4 .h5-grid-cards { gap: var(--h5-gap, 16px); }
.valves-site.h4 .h5-gcard .h5-body { padding: var(--h5-pad, 16px 16px 18px); }
.valves-site.h4 .h5-gcard.h-mt { box-shadow: 0 1px 3px rgba(0, 8, 48, .06), 0 10px var(--h5-blur, 28px) rgba(0, 8, 48, .07); }
.valves-site.h4 .h5-gcard.h-mt[aria-expanded="true"] { box-shadow: 0 0 0 1px var(--ink-soft); }
/* widget Home · Apertura: colori della parola evidenziata (sfumatura o tinta unita) */
.valves-site .h5-grad { background-image: linear-gradient(90deg, var(--hl-from, #ffb35c), var(--hl-to, #f08ad0)); }
.valves-site .h5-grad.is-solid { background: none; color: var(--hl-color, #ffb35c); -webkit-text-fill-color: currentColor; }
/* widget Home · Piattaforma, disposizione "schema al centro": schema a tutta larghezza, riquadri sotto (solo su schermi larghi) */
@media (min-width: 981px) {
  .valves-site .h4-bento--center .h4-tile-hub { grid-column: 1 / -1; grid-row: auto; }
  .valves-site .h4-bento--center .h4-tile-hub .h4-tile-top { text-align: center; max-width: 64ch; margin-inline: auto; }
  .valves-site .h4-bento--center .h4-tile-hub .h-viz-wrap { width: 100%; max-width: 880px; margin-inline: auto; }
}
@media (forced-colors: active) { .valves-site .h5-grad { background: none; color: CanvasText; -webkit-text-fill-color: currentColor; } }
