/*
Theme Name: Waves Engineering 2026
Theme URI: https://waveseng.it
Author: Waves Engineering
Description: Prototipo custom per il nuovo sito Waves Engineering.
Version: 0.1.1
Text Domain: waves-2026
*/

/*
 * Design system globale.
 * Le variabili qui sotto controllano palette, contenitore e raggio condivisi.
 * Gli stili specifici delle pagine si trovano nei file assets/*.css; mobile.css
 * viene caricato per ultimo e contiene gli override responsivi comuni.
 */
:root {
  --waves-green: #059444;
  --waves-green-dark: #059444;
  --waves-ink: #111111;
  --waves-muted: #3C3C3C;
  --waves-line: #EAEAEA;
  --waves-surface: #F7F9FA;
  --waves-white: #FFFFFF;
  --waves-green-rgb: 5, 148, 68;
  --waves-ink-rgb: 17, 17, 17;
  --waves-white-rgb: 255, 255, 255;
  --container: 1480px;
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--waves-ink);
  background: var(--waves-white);
  font-family: Manrope, Inter, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--waves-ink); outline-offset: 4px; }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.eyebrow { margin: 0 0 18px; color: var(--waves-green-dark); font-size: 12px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 24px; height: 1px; margin: 0 10px 3px 0; background: currentColor; }
.section-title { max-width: 780px; margin: 0; font-size: clamp(40px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.042em; text-wrap: balance; }
.section-copy { max-width: 690px; margin: 22px 0 0; color: var(--waves-muted); font-size: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 0 24px; border: 1px solid transparent; border-radius: 7px; font-weight: 750; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--waves-white); background: var(--waves-green); }
.btn-primary:hover { background: var(--waves-green); box-shadow: 0 10px 28px rgba(var(--waves-green-rgb),.20); }
.btn-secondary { border-color: var(--waves-line); background: rgba(var(--waves-white-rgb),.8); }

.site-header { position: fixed; z-index: 50; inset: 0 0 auto; padding: 14px 0; border-bottom: 1px solid rgba(var(--waves-ink-rgb),.05); background: rgba(var(--waves-white-rgb),.92); backdrop-filter: saturate(180%) blur(18px); }
.header-inner { display: grid; grid-template-columns: 180px minmax(0,1fr) auto auto auto; align-items: center; gap: 16px; }
.wordmark { display: inline-flex; flex-direction: column; width: max-content; font-weight: 850; line-height: .86; letter-spacing: -.04em; }
.wordmark strong { color: var(--waves-green-dark); font-size: 25px; }
.wordmark small { margin-top: 7px; color: var(--waves-muted); font-size: 8px; letter-spacing: .28em; }
.brand-logo { display: flex; flex-direction: column; align-items: center; width: 86px; }
.brand-logo img { display: block; width: 72px; height: 54px; object-fit: contain; object-position: center; }
.main-nav { display: flex; justify-content: center; gap: clamp(20px, 2.5vw, 42px); font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.main-nav a { position: relative; padding: 9px 0; }
.main-nav a::after { position: absolute; content: ""; inset: auto 100% 0 0; height: 2px; background: var(--waves-green); transition: inset .25s ease; }
.main-nav a:hover::after { inset-right: 0; }
.header-cta { min-height: 46px; padding-inline: 20px; font-size: 13px; }
.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 18px;
  color: rgba(17,17,17,.82);
  background: rgba(255,255,255,.82);
  box-shadow: 0 14px 34px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  cursor: pointer;
  transition: transform 220ms cubic-bezier(.22,.61,.36,1), box-shadow 220ms cubic-bezier(.22,.61,.36,1), border-color 220ms cubic-bezier(.22,.61,.36,1), background-color 220ms cubic-bezier(.22,.61,.36,1), color 220ms cubic-bezier(.22,.61,.36,1);
}
.search-trigger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.search-trigger:hover { transform: translateY(-1px); color: var(--waves-green); background: rgba(255,255,255,.96); border-color: rgba(5,148,68,.24); box-shadow: 0 18px 42px rgba(15,23,42,.11), 0 0 0 4px rgba(5,148,68,.045), inset 0 1px 0 rgba(255,255,255,.95); }
.search-trigger:focus-visible { outline: 2px solid rgba(5,148,68,.45); outline-offset: 3px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 11px 9px; border: 0; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; border-radius: 2px; background: var(--waves-ink); transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero { position: relative; min-height: 720px; padding: 112px 0 24px; overflow: hidden; background: var(--waves-surface); }
.hero::before { position: absolute; content: ""; inset: 0; opacity: .65; pointer-events: none; background-image: linear-gradient(var(--waves-line) 1px,transparent 1px), linear-gradient(90deg,var(--waves-line) 1px,transparent 1px); background-size: 96px 96px; mask-image: linear-gradient(90deg,transparent 8%,black 82%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(330px,.68fr) minmax(690px,1.42fr); gap: clamp(30px,3vw,58px); align-items: center; min-height: 580px; }
.hero-copy { position: relative; z-index: 8; padding-bottom: 12px; }
.hero-eyebrow::before { display: none; }.hero-eyebrow span { padding-inline: 7px; color: var(--waves-green); }
.hero h1 { max-width: 560px; margin: 0; font-size: clamp(56px,5vw,72px); line-height: .98; letter-spacing: -.058em; text-wrap: balance; }
.hero h1 span { color: var(--waves-green-dark); }
.hero-lead { max-width: 460px; margin: 30px 0 34px; color: var(--waves-muted); font-size: clamp(17px,1.22vw,19px); line-height: 1.62; letter-spacing: -.015em; text-align: justify; text-align-last: left; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; width: 100%; min-height: 580px; overflow: hidden; }
.hero-visual::after { display: none; }
.hero-visual img { position: absolute; z-index: 0; inset: 50% auto auto 50%; display: block; width: 116.6%; max-width: none; height: auto; opacity: .96; filter: brightness(1.20) contrast(.94) saturate(.94); transform: translate(-50%,-48%); mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 78% 74% at 52% 52%,var(--waves-ink) 56%,rgba(var(--waves-ink-rgb),.82) 70%,transparent 100%); mask-image: radial-gradient(ellipse 78% 74% at 52% 52%,var(--waves-ink) 56%,rgba(var(--waves-ink-rgb),.82) 70%,transparent 100%); }
.hotspot-group { position: absolute; z-index: 4; top: var(--hotspot-y); left: var(--hotspot-x); margin: -13px 0 0 -13px; }
.hotspot-group.is-hovered,.hotspot-group.is-pinned { z-index: 40; }
.hotspot { position: relative; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid rgba(255,255,255,.75); border-radius: 50%; color: var(--waves-white); background: rgba(5,148,68,.72); box-shadow: 0 0 0 1px rgba(5,148,68,.25),0 8px 24px rgba(5,148,68,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; transform: translateZ(0); animation: hotspot-soft-breathe 7.6s ease-out infinite; transition: background .22s ease-out, box-shadow .22s ease-out, transform .22s ease-out; }
.screen-reader-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.hotspot > span[aria-hidden] { display: block; color: var(--waves-white); font-size: 16px; font-weight: 600; line-height: 1; transform: translateY(-1px); }
.hotspot::after { position: absolute; content: ""; inset: -6px; border: 1px solid rgba(5,148,68,.25); border-radius: 50%; opacity: .25; transform: scale(1); animation: hotspot-soft-ring 7.6s ease-out infinite; pointer-events: none; }
.hotspot:hover,.hotspot:focus-visible,.hotspot-group.is-pinned .hotspot { background: rgba(5,148,68,.90); box-shadow: 0 0 0 1px rgba(5,148,68,.36),0 12px 34px rgba(5,148,68,.24); outline: none; transform: scale(1.12); animation-play-state: paused; }
.hotspot:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.92),0 0 0 6px rgba(5,148,68,.42),0 12px 34px rgba(5,148,68,.24); }
.hotspot:hover::after,.hotspot:focus-visible::after,.hotspot-group.is-pinned .hotspot::after { opacity: 0; animation-play-state: paused; }
.hotspot-banner { position: fixed; z-index: 80; top: 0; left: 0; width: 320px; padding: 22px; border: 1px solid rgba(17,17,17,.08); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 20px 60px rgba(0,0,0,.12),0 4px 16px rgba(0,0,0,.06); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; transform: translate3d(var(--tooltip-x,0),calc(var(--tooltip-y,0) + 8px),0) scale(.96); visibility: hidden; pointer-events: none; transition: opacity .22s ease-out, transform .22s ease-out, visibility .22s ease-out; }
.hotspot-banner.is-open { opacity: 1; transform: translate3d(var(--tooltip-x,0),var(--tooltip-y,0),0) scale(1); visibility: visible; pointer-events: auto; }
.hotspot-eyebrow { display: block; margin-bottom: 9px; color: var(--waves-green); font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.1; text-transform: uppercase; }
.hotspot-banner strong { display: block; margin-bottom: 8px; color: #111111; font-size: 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.hotspot-banner p { margin: 0; color: #555555; font-size: 15px; line-height: 1.5; letter-spacing: -.01em; }
.hotspot-banner a { display: inline-flex; margin-top: 16px; color: var(--waves-green); font-size: 14px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: transform .22s ease-out, color .22s ease-out; }
.hotspot-banner a:hover { color: var(--waves-green-dark); transform: translateX(3px); }
.hero-hotspot-mobile { display: none; }
@keyframes hotspot-soft-breathe { 0%,82%,100% { transform: scale(1); } 91% { transform: scale(1.08); } }
@keyframes hotspot-soft-ring { 0%,81% { opacity: 0; transform: scale(1); } 82% { opacity: .25; transform: scale(1); } 100% { opacity: 0; transform: scale(1.65); } }

.proofbar { position: relative; z-index: 7; margin-top: -55px; }
.proofbar-inner { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--waves-line); background: rgba(var(--waves-white-rgb),.96); box-shadow: 0 15px 50px rgba(var(--waves-ink-rgb),.07); }
.proof { min-height: 145px; padding: 30px; border-right: 1px solid var(--waves-line); }
.proof:last-child { border: 0; }
.proof strong { display: block; margin-bottom: 6px; color: var(--waves-green-dark); font-size: 28px; letter-spacing: -.04em; }
.proof span { color: var(--waves-muted); font-size: 14px; }

.standards { padding: 0 0 28px; background: var(--waves-surface); }
.standards-inner { position: relative; display: grid; grid-template-columns: repeat(5,1fr) 1.55fr; align-items: stretch; min-height: 182px; padding: 42px 12px 10px; overflow: hidden; border: 1px solid var(--waves-line); border-radius: 24px; background: var(--waves-white); box-shadow: 0 14px 42px rgba(var(--waves-ink-rgb),.055); }
.standards-label { position: absolute; top: 17px; left: 28px; }
.standards-label span { display: block; color: var(--waves-green); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.standards-label span::after { display: inline-block; width: 28px; height: 1px; margin: 0 0 3px 10px; background: var(--waves-green); content: ""; }
.standard { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; padding: 16px 8px; text-align: center; }.standard picture { display: contents; }.standard img { width: auto; max-width: 82px; height: 46px; object-fit: contain; }.standard-ul img { max-width: 96px; height: 56px; }.standard small { margin-top: 10px; color: var(--waves-muted); font-size: 9px; text-transform: uppercase; }
.home-market-badge { display:grid; place-items:center; min-width:68px; height:42px; padding:0 10px; border:1px solid rgba(17,17,17,.18); border-radius:12px; color:var(--waves-ink); background:rgba(255,255,255,.72); font-size:14px; font-weight:800; letter-spacing:.06em; line-height:1; }
.home-market-badge-wide { min-width:82px; font-size:12px; }
.standards-link { display: flex; align-items: center; justify-content: space-between; align-self: center; min-height: 54px; margin: 25px 12px; padding: 0 24px; border: 1px solid var(--waves-green); border-radius: 7px; color: var(--waves-green); background: var(--waves-white); font-size: 12px; font-weight: 800; text-transform: uppercase; transition: color .25s ease, background .25s ease, box-shadow .25s ease, transform .25s ease; }.standards-link b { display: block; margin-left: 18px; color: var(--waves-green); font-size: 22px; font-weight: 500; line-height: 1; }.standards-link:hover { color: var(--waves-white); background: var(--waves-green); box-shadow: 0 10px 28px rgba(var(--waves-green-rgb),.20); transform: translateY(-2px); }.standards-link:hover b { color: var(--waves-white); }

.machine-regulation { position: relative; overflow: hidden; background: var(--waves-white); }
.machine-regulation-inner { display: grid; grid-template-columns: minmax(540px,.95fr) minmax(600px,1.05fr); min-height: 820px; }
.machine-regulation-copy { position: relative; z-index: 2; align-self: center; padding: 86px 0 92px 28px; }
.machine-regulation-eyebrow { margin: 0 0 48px; color: var(--waves-green); font-size: clamp(15px,1.35vw,21px); font-weight: 800; letter-spacing: -.015em; text-transform: uppercase; }
.machine-regulation-eyebrow::before { display: inline-block; width: 3px; height: 20px; margin: 0 9px -3px 0; background: rgba(var(--waves-green-rgb),.26); content: ""; }
.machine-regulation h2 { margin: 0; font-size: clamp(44px,4.15vw,67px); line-height: 1.08; letter-spacing: -.047em; }
.machine-regulation h2 span { color: var(--waves-green); }
.machine-regulation-text { margin: 42px 0 0; color: var(--waves-muted); font-size: clamp(17px,1.38vw,22px); line-height: 1.63; }
.machine-regulation-strong { margin: 32px 0 0; font-size: clamp(17px,1.35vw,21px); font-weight: 800; line-height: 1.55; }
.machine-regulation-actions { display: flex; gap: 30px; margin-top: 50px; }
.regulation-button { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; padding: 18px 27px 18px 34px; border: 1px solid var(--waves-green); border-radius: 9px; color: var(--waves-green); font-size: 16px; font-weight: 800; line-height: 1.35; text-transform: uppercase; transition: transform .25s ease, box-shadow .25s ease; }
.regulation-button:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(var(--waves-green-rgb),.14); }
.regulation-button b { font-size: 30px; font-weight: 300; line-height: 1; }
.regulation-button-primary { min-width: 315px; color: var(--waves-white); background: var(--waves-green); }
.regulation-button-secondary { min-width: 335px; background: var(--waves-white); }
.machine-regulation-visual { position: relative; min-width: 0; overflow: hidden; }
.machine-regulation-visual img { position: absolute; top: 0; right: 0; width: 200%; max-width: none; height: 100%; object-fit: cover; object-position: right center; }

.section { padding: 130px 0; }
.method { padding: 112px 0; color: var(--waves-white); background: #111111; }
.method .container { max-width: 1400px; }
.method-grid { display: grid; grid-template-columns: 45fr 55fr; gap: clamp(64px,6vw,104px); align-items: center; }
.method-intro { align-self: center; }
.method .eyebrow { margin-bottom: 34px; color: var(--waves-green); }
.method .eyebrow::before { width: 26px; }
.method h2 { max-width: 620px; margin: 0; font-size: clamp(56px,4.7vw,72px); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; }
.method-description { max-width: 620px; margin: 40px 0 0; color: rgba(var(--waves-white-rgb),.72); font-size: clamp(21px,1.7vw,26px); line-height: 1.6; letter-spacing: -.018em; }
.method-cta { display: inline-flex; min-width: 330px; margin-top: 46px; padding: 18px 26px; border: 1px solid var(--waves-green); border-radius: 14px; background: transparent; transition: background .25s ease, box-shadow .25s ease, transform .25s ease; }
.method-cta span { display: grid; gap: 3px; }.method-cta strong { color: var(--waves-white); font-size: 17px; font-weight: 700; }.method-cta small { color: rgba(var(--waves-white-rgb),.58); font-size: 12px; letter-spacing: .01em; transition: color .25s ease; }
.method-cta:hover { background: var(--waves-green); box-shadow: 0 14px 34px rgba(var(--waves-green-rgb),.18); transform: translateY(-2px); }.method-cta:hover small { color: rgba(var(--waves-white-rgb),.82); }
.method-timeline { position: relative; display: grid; gap: 18px; }
.method-timeline::before { position: absolute; z-index: 0; top: 34px; bottom: 34px; left: 68px; width: 1px; background: rgba(var(--waves-white-rgb),.08); content: ""; }
.method-card { position: relative; z-index: 1; display: grid; grid-template-columns: 76px minmax(0,1fr); gap: 24px; align-items: start; padding: 32px 34px; border: 1px solid rgba(var(--waves-white-rgb),.05); border-radius: 22px; background: #17181B; box-shadow: 0 10px 30px rgba(var(--waves-ink-rgb),.12); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.method-card:hover { border-color: rgba(var(--waves-white-rgb),.14); box-shadow: 0 20px 50px rgba(var(--waves-ink-rgb),.25); transform: translateY(-6px); }
.method-icon { display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(var(--waves-white-rgb),.10); border-radius: 50%; transition: border-color .25s ease, filter .25s ease, transform .25s ease; }
.method-icon svg { width: 42px; height: 42px; stroke: var(--waves-green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.method-card:hover .method-icon { border-color: rgba(var(--waves-green-rgb),.38); filter: brightness(1.16); transform: scale(1.025); }
.method-card-copy h3 { margin: 2px 0 16px; font-size: 30px; line-height: 1.1; letter-spacing: -.035em; }
.method-card-copy p { margin: 0; color: rgba(var(--waves-white-rgb),.70); font-size: 16px; line-height: 1.55; }.method-card-copy p + p { margin-top: 12px; }
.method-timeline.is-animated .method-card { opacity: 0; transform: translateY(24px); }
.method-timeline.is-animated .method-card.is-visible { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease, border-color .25s ease, box-shadow .25s ease; }
.method-timeline.is-animated .method-card.is-visible:hover { transform: translateY(-6px); }

.services-head { display: flex; justify-content: space-between; gap: 40px; align-items: end; margin-bottom: 55px; }
.services-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--waves-line); border-left: 1px solid var(--waves-line); }
.service-card { min-height: 280px; padding: 34px; border-right: 1px solid var(--waves-line); border-bottom: 1px solid var(--waves-line); transition: background .25s ease; }
.service-card:hover { background: var(--waves-surface); }
.service-no { color: var(--waves-green-dark); font-size: 12px; font-weight: 800; }.service-card h3 { margin: 60px 0 10px; font-size: 25px; letter-spacing: -.03em; }.service-card p { margin: 0; color: var(--waves-muted); font-size: 15px; }
.service-card-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--waves-green-dark); font-size: 14px; font-weight: 750; text-decoration: none; }
.service-card-link:hover, .service-card-link:focus-visible { color: var(--waves-green); text-decoration: underline; text-underline-offset: 4px; }

.evidence { padding: 120px 0; background: var(--waves-surface); }
.evidence-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.evidence-list { border-top: 1px solid var(--waves-line); }.evidence-list > div { display: grid; grid-template-columns: 50px 1fr 1.35fr; gap: 24px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--waves-line); }.evidence-list span { color: var(--waves-green); font-size: 11px; font-weight: 800; }.evidence-list strong { font-size: 17px; }.evidence-list p { margin: 0; color: var(--waves-muted); font-size: 14px; }

.cta-section { padding: 90px 0; }
.cta-panel { display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 50px; padding: 68px; color: var(--waves-white); background: var(--waves-green); }
.cta-panel h2 { max-width: 800px; margin: 0; font-size: clamp(40px,3.4vw,48px); line-height: 1.05; letter-spacing: -.045em; }.cta-panel p { margin: 18px 0 0; color: rgba(var(--waves-white-rgb),.82); }
.cta-panel .btn { color: var(--waves-ink); background: var(--waves-white); }
.site-footer { padding: 78px 0 24px; border-top: 1px solid var(--waves-line); color: var(--waves-muted); background: var(--waves-surface); font-size: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .72fr 1fr 1.08fr 1.18fr; gap: clamp(34px,4vw,78px); padding-bottom: 62px; }
.footer-brand { max-width: 270px; }.footer-logo { width: 98px; margin-bottom: 24px; }.footer-logo img { width: 88px; height: 66px; }.footer-brand > p { max-width: 245px; margin: 0; color: var(--waves-muted); font-size: 12px; line-height: 1.75; }
.footer-social { display: flex; gap: 11px; margin-top: 30px; }.footer-social a { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--waves-line); border-radius: 50%; color: var(--waves-ink); font-size: 12px; font-weight: 800; transition: .2s ease; }.footer-social a:hover { color: var(--waves-white); border-color: var(--waves-green); background: var(--waves-green); }.youtube-mark { font-size: 9px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }.footer-column h2 { margin: 1px 0 17px; color: var(--waves-ink); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }.footer-column a { color: var(--waves-muted); line-height: 1.5; transition: color .2s ease; }.footer-column a:hover { color: var(--waves-green); }.footer-column p { margin: 0 0 8px; color: var(--waves-muted); line-height: 1.65; }.footer-contact strong { color: var(--waves-ink); font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; padding-top: 22px; border-top: 1px solid var(--waves-line); color: var(--waves-muted); font-size: 10px; }.footer-bottom nav { display: flex; gap: 28px; }.footer-bottom a:hover { color: var(--waves-green); }

@media (max-width: 1100px) {
  .header-inner { position: relative; grid-template-columns: 1fr auto auto; }.header-cta { display:none; }.menu-toggle { display: block; }.main-nav { position: fixed; z-index: 49; inset: 83px 0 auto; display: flex; flex-direction: column; gap: 0; padding: 18px 24px 28px; border-bottom: 1px solid var(--waves-line); background: rgba(var(--waves-white-rgb),.98); opacity: 0; transform: translateY(-18px); visibility: hidden; transition: .25s ease; }.main-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }.main-nav a { padding: 16px 0; border-bottom: 1px solid var(--waves-line); font-size: 17px; }.main-nav a:last-child { border-bottom: 0; }
  .hero { min-height: auto; }.hero-grid { grid-template-columns: 1fr; padding-top: 35px; }.hero-copy { max-width: 780px; }.hero-visual { width: 100%; min-height: 700px; margin: 25px 0 0; }
  .hotspot-group { margin: -12px 0 0 -12px; }.hotspot { width: 24px; height: 24px; }.hotspot > span[aria-hidden] { font-size: 15px; }
  .standards-inner { grid-template-columns: repeat(4,1fr); }.standards-link { grid-column: span 1; }.machine-regulation-inner { grid-template-columns: 1fr; }.machine-regulation-copy { padding-inline: 24px; }.machine-regulation-visual { min-height: 630px; }.machine-regulation-visual img { width: 100%; }.evidence-grid { grid-template-columns: 1fr; gap: 55px; }
  .method-grid { grid-template-columns: 1fr; gap: 80px; }.method-intro { max-width: 760px; }.services-grid { grid-template-columns: repeat(2,1fr); }.footer-grid { grid-template-columns: 1.4fr repeat(2,1fr); }.footer-contact { grid-column: 2 / -1; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 36px), var(--container)); }
  .site-header { padding: 10px 0; }.header-cta { display: none; }.brand-logo { width: 74px; }.brand-logo img { width: 62px; height: 48px; }.header-inner { grid-template-columns: 1fr auto auto; }.main-nav { top: 69px; }.menu-toggle { grid-column: 3; }
  .hero { padding: 120px 0 70px; }.hero h1 { font-size: clamp(40px,12vw,48px); }.hero-lead { margin-top: 22px; }.hero-actions .btn { width: 100%; }
  .hero-visual { display: none; }
  .hero-hotspot-mobile { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
  .hero-hotspot-mobile-card { display: grid; gap: 7px; padding: 20px; border: 1px solid rgba(var(--waves-ink-rgb),.08); border-radius: 18px; color: var(--waves-ink); background: rgba(var(--waves-white-rgb),.86); box-shadow: 0 14px 36px rgba(var(--waves-ink-rgb),.055); text-decoration: none; }
  .hero-hotspot-mobile-card span { color: var(--waves-green); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  .hero-hotspot-mobile-card strong { font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
  .hero-hotspot-mobile-card small { color: var(--waves-muted); font-size: 14px; line-height: 1.45; }
  .proofbar { margin-top: -15px; }.proofbar-inner { grid-template-columns: 1fr 1fr; }.proof { min-height: 125px; padding: 22px; border-bottom: 1px solid var(--waves-line); }.proof:nth-child(2) { border-right: 0; }
  .section { padding: 88px 0; }.section-title { font-size: clamp(32px,9vw,38px); }.method { padding: 96px 0; }.method-grid { gap: 58px; }.method h2 { font-size: 42px; }.method-description { margin-top: 28px; font-size: 18px; }.method-cta { width: 100%; min-width: 0; margin-top: 34px; }.method-card { grid-template-columns: 56px minmax(0,1fr); gap: 18px; min-height: 0; padding: 32px; }.method-icon { width: 56px; height: 56px; }.method-icon svg { width: 32px; height: 32px; }.method-timeline::before { left: 60px; }.method-card-copy h3 { font-size: 27px; }.method-card-copy p { font-size: 15px; }
  .services-head { display: block; }.services-head .btn { margin-top: 28px; }.services-grid { grid-template-columns: 1fr; }
  .standards { padding-top: 8px; }.standards-inner { grid-template-columns: 1fr 1fr; padding: 48px 8px 12px; }.standard { min-height: 105px; padding: 16px 10px; }.standards-link { grid-column: 1 / -1; margin: 10px 12px; }.machine-regulation-inner { min-height: auto; }.machine-regulation-copy { padding: 72px 0 55px; }.machine-regulation-eyebrow { margin-bottom: 30px; font-size: 13px; }.machine-regulation h2 { font-size: clamp(40px,11vw,53px); }.machine-regulation-text br,.machine-regulation-strong br { display: none; }.machine-regulation-actions { display: grid; gap: 14px; margin-top: 38px; }.regulation-button,.regulation-button-primary,.regulation-button-secondary { width: 100%; min-width: 0; min-height: 78px; padding-inline: 22px; font-size: 14px; }.machine-regulation-visual { min-height: 440px; }.machine-regulation-visual img { width: 150%; }.evidence { padding: 85px 0; }.evidence-list > div { grid-template-columns: 34px 1fr; }.evidence-list p { grid-column: 2; }
  .cta-section { padding: 55px 0; }.cta-panel { grid-template-columns: 1fr; padding: 40px 26px; }.cta-panel .btn { width: 100%; }
  .site-footer { padding-top: 58px; }.footer-grid { grid-template-columns: 1fr 1fr; gap: 42px 28px; padding-bottom: 46px; }.footer-brand { grid-column: 1 / -1; max-width: none; }.footer-brand > p { max-width: 300px; }.footer-contact { grid-column: 1 / -1; }.footer-bottom { display: block; line-height: 1.6; }.footer-bottom nav { margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }

/* Sistema componenti globale: pulsanti, card, spaziature e transizioni condivise. */
:root {
  --container: 1400px;
  --content: 1280px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-14: 112px;
  --space-section: 140px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 16px 44px rgba(var(--waves-ink-rgb),.055);
  --shadow-card-hover: 0 22px 58px rgba(var(--waves-ink-rgb),.085);
  --ease-premium: ease-out;
}

.container { width: min(calc(100% - 64px), var(--container)); }
.eyebrow { margin-bottom: var(--space-3); font-size: 14px; font-weight: 700; letter-spacing: .11em; }
.section-title { max-width: 760px; font-size: 56px; font-weight: 700; line-height: 1.08; letter-spacing: -.045em; }
.section-copy { margin-top: var(--space-5); color: var(--waves-muted); font-size: 22px; line-height: 1.6; }
.section { padding: var(--space-section) 0; }

.btn,
.regulation-button,
.method-cta,
.standards-link {
  min-height: 64px;
  padding: 0 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: color .25s var(--ease-premium), background .25s var(--ease-premium), border-color .25s var(--ease-premium), box-shadow .25s var(--ease-premium), transform .25s var(--ease-premium);
}
.btn:hover,
.regulation-button:hover,
.method-cta:hover,
.standards-link:hover { transform: translateY(-2px); }
.header-cta { min-width: 236px; white-space: nowrap; }
.btn-primary,
.regulation-button-primary { color: var(--waves-white); border-color: var(--waves-green); background: var(--waves-green); box-shadow: 0 10px 28px rgba(var(--waves-green-rgb),.14); }
.btn-primary:hover,
.regulation-button-primary:hover { color: var(--waves-white); background: #047F3A; box-shadow: 0 14px 34px rgba(var(--waves-green-rgb),.22); }
.btn-secondary,
.regulation-button-secondary,
.method-cta,
.standards-link { color: var(--waves-green); border: 1px solid var(--waves-green); background: transparent; box-shadow: none; }
.btn-secondary:hover,
.regulation-button-secondary:hover,
.method-cta:hover,
.standards-link:hover { color: var(--waves-white); background: var(--waves-green); box-shadow: 0 12px 30px rgba(var(--waves-green-rgb),.18); }
.btn [aria-hidden="true"],
.regulation-button b,
.standards-link b { transition: color .25s var(--ease-premium), transform .25s var(--ease-premium); }
.btn:hover [aria-hidden="true"],
.regulation-button:hover b,
.standards-link:hover b { transform: translateX(4px); }

.hero h1 { font-size: clamp(72px,5.5vw,80px); font-weight: 700; line-height: .98; }
.hero-lead { margin: var(--space-5) 0 var(--space-6); font-size: 22px; line-height: 1.6; }
.hero-actions { gap: var(--space-2); }

.standards-inner { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.standards-link { min-height: 64px; margin: 24px 12px; background: var(--waves-white); }
.standards-link b { color: var(--waves-green); }
.standards-link:hover b { color: var(--waves-white); }

.machine-regulation { padding: var(--space-section) 0; }
.machine-regulation-inner { min-height: 720px; border-radius: var(--radius-lg); background: var(--waves-white); }
.machine-regulation-copy { padding: var(--space-10) 0 var(--space-10) var(--space-5); }
.machine-regulation-eyebrow { margin-bottom: var(--space-5); font-size: 14px; }
.machine-regulation h2 { font-size: 56px; font-weight: 700; line-height: 1.08; }
.machine-regulation-text { margin-top: var(--space-5); font-size: 22px; line-height: 1.6; }
.machine-regulation-strong { margin-top: var(--space-4); font-size: 18px; }
.machine-regulation-actions { gap: var(--space-4); margin-top: var(--space-6); }
.regulation-button { min-width: 0; font-size: 14px; }
.machine-regulation-visual { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.machine-regulation-visual img { transition: transform .45s var(--ease-premium); will-change: transform; }

.method { padding: var(--space-section) 0; }
.method-grid { gap: var(--space-10); }
.method .eyebrow { margin-bottom: var(--space-4); }
.method h2 { font-size: 56px; line-height: 1.08; }
.method-description { margin-top: var(--space-5); font-size: 22px; line-height: 1.6; }
.method-cta { min-width: 330px; margin-top: var(--space-6); padding: 14px 28px; }
.method-cta strong { font-weight: 700; }
.method-cta:hover strong,.method-cta:hover small { color: var(--waves-white); }
.method-timeline { gap: var(--space-4); }

.method-card,
.service-card {
  padding: var(--space-5);
  border: 1px solid rgba(var(--waves-ink-rgb),.07);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color .25s var(--ease-premium), box-shadow .25s var(--ease-premium), transform .25s var(--ease-premium);
}
.method-card { grid-template-columns: 76px minmax(0,1fr); gap: var(--space-4); border-color: rgba(var(--waves-white-rgb),.06); box-shadow: 0 16px 44px rgba(var(--waves-ink-rgb),.10); }
.method-card:hover { border-color: rgba(var(--waves-white-rgb),.14); box-shadow: 0 22px 58px rgba(var(--waves-ink-rgb),.18); transform: translateY(-6px); }
.method-icon { border-radius: 50%; }
.method-icon svg { stroke-width: 2; }
.method-card-copy h3 { margin: 0 0 var(--space-2); font-size: 36px; font-weight: 700; }
.method-card-copy p { font-size: 18px; line-height: 1.6; }

.services-head { margin-bottom: var(--space-8); }
.services-grid { grid-template-columns: repeat(3,1fr); gap: var(--space-4); border: 0; background: transparent; }
.service-card { position: relative; min-height: 320px; overflow: hidden; background: var(--waves-white); }
.service-card::before { position: absolute; top: 0; left: var(--space-5); width: 32px; height: 2px; background: var(--waves-green); content: ""; transition: width .35s var(--ease-premium); }
.service-card::after { position: absolute; right: var(--space-5); bottom: var(--space-4); color: var(--waves-green); font-size: 26px; content: "→"; opacity: 0; transform: translateX(-8px); transition: opacity .25s var(--ease-premium), transform .25s var(--ease-premium); }
.service-card:hover { border-color: rgba(var(--waves-green-rgb),.20); background: var(--waves-white); box-shadow: var(--shadow-card-hover); transform: translateY(-6px); }
.service-card:hover::before { width: 72px; }.service-card:hover::after { opacity: 1; transform: translateX(0); }
.service-no { font-weight: 700; }.service-card h3 { margin: var(--space-10) 0 var(--space-2); font-size: 36px; font-weight: 700; line-height: 1.12; }.service-card p { max-width: 34ch; font-size: 18px; line-height: 1.6; }

.evidence { padding: var(--space-section) 0; }
.evidence-grid { gap: var(--space-10); }
.evidence-list > div { gap: var(--space-4); padding: var(--space-4) 0; }
.evidence-list strong { font-size: 18px; font-weight: 700; }.evidence-list p { font-size: 18px; line-height: 1.6; }

.cta-section { padding: var(--space-section) 0; }
.cta-panel { padding: var(--space-10); border: 1px solid rgba(var(--waves-white-rgb),.06); border-radius: var(--radius-lg); background: var(--waves-ink); box-shadow: var(--shadow-card); }
.cta-panel h2 { font-size: 56px; font-weight: 700; }.cta-panel p { font-size: 22px; line-height: 1.6; }
.cta-panel .btn { color: var(--waves-green); border: 1px solid var(--waves-green); background: transparent; }
.cta-panel .btn:hover { color: var(--waves-white); background: var(--waves-green); }

.site-footer { padding-top: var(--space-10); }
.footer-grid { gap: var(--space-6); padding-bottom: var(--space-8); }

body.motion-ready .reveal-section,
body.motion-ready .reveal-card { opacity: 0; }
body.motion-ready .reveal-section { transform: translateY(40px); }
body.motion-ready .reveal-card { transform: translateY(20px); }
body.motion-ready .reveal-section.is-revealed,
body.motion-ready .reveal-card.is-revealed { opacity: 1; transform: translateY(0); transition: opacity .45s var(--ease-premium), transform .45s var(--ease-premium); transition-delay: var(--reveal-delay,0ms); }

@media (max-width: 1100px) {
  .container { width: min(calc(100% - 64px), var(--container)); }
  .section,.method,.machine-regulation,.evidence,.cta-section { padding: var(--space-14) 0; }
  .hero h1 { font-size: clamp(60px,7vw,72px); }
  .machine-regulation-inner { min-height: auto; }.machine-regulation-copy { padding: var(--space-8) var(--space-4); }
  .method-grid { gap: var(--space-10); }
  .services-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 40px), var(--container)); }
  .section,.method,.machine-regulation,.evidence,.cta-section { padding: var(--space-10) 0; }
  .section-title,.machine-regulation h2,.cta-panel h2 { font-size: 38px; }
  .hero h1 { font-size: 48px; }.hero-lead,.section-copy,.machine-regulation-text,.method-description,.cta-panel p { font-size: 18px; }
  .btn,.regulation-button,.method-cta,.standards-link { width: 100%; min-height: 60px; border-radius: var(--radius-md); }
  .machine-regulation-actions { gap: var(--space-2); }.machine-regulation-visual { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .method h2 { font-size: 42px; }.method-card { grid-template-columns: 56px minmax(0,1fr); gap: var(--space-3); padding: var(--space-4); }.method-card-copy h3 { font-size: 30px; }.method-card-copy p { font-size: 18px; }
  .services-grid { grid-template-columns: 1fr; gap: var(--space-3); }.service-card { min-height: 0; padding: var(--space-4); }.service-card::before { left: var(--space-4); }.service-card h3 { margin-top: var(--space-8); font-size: 30px; }
  .cta-panel { padding: var(--space-5); }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot { animation: none; }
  body.motion-ready .reveal-section,body.motion-ready .reveal-card { opacity: 1; transform: none; }
}

/* Revision 04 — shared visual language */
.eyebrow::before { display: none; }
.main-nav { font-size: 14px; }
.footer-column h2 { font-size: 14px; }
.footer-grid { align-items: start; }
.footer-bottom { align-items: center; gap: 28px; }
.footer-bottom nav { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.hero h1,.company-hero h1,.technical-hero h1,.training-hero h1,.sim-hero h1,.market-hero h1,.contact-hero h1,.blog-hero h1 { font-size: clamp(68px,6vw,88px); font-weight: 720; line-height: .93; letter-spacing: -.058em; }
.btn,.company-button,.technical-button,.market-button { min-height: 54px; border: 1px solid var(--waves-green); border-radius: 16px; color: var(--waves-green); background: transparent; box-shadow: none; }
.btn:hover,.company-button:hover,.technical-button:hover,.market-button:hover { border-color: var(--waves-green); color: #fff; background: var(--waves-green); box-shadow: 0 12px 28px rgba(5,148,68,.16); transform: translateY(-2px); }
.btn-primary,.company-button-primary,.technical-button-primary,.market-button-primary { color: var(--waves-green); background: transparent; }
.section,.company-section,.technical-section { padding-block: 96px; }
.method h2 span,.section-title span { color: var(--waves-green); }
.method-description { text-align: left; }
.cta-section { padding: 64px 0; }
.cta-panel { border-radius: 28px; }
#servizi .service-card::before { display: none; }
#servizi .services-head { align-items: center; }
#servizi .services-head .btn { margin-left: 0; }
.home-service-icon svg { stroke-width: 1.7; }
.service-drawer-layer { display: grid; place-items: center; }
.service-drawer { position: relative; inset: auto; width: min(720px,calc(100vw - 48px)); max-height: min(760px,calc(100svh - 64px)); padding: 54px; overflow-y: auto; border-radius: 28px; opacity: 0; transform: translateY(16px) scale(.98); }
.service-drawer-layer.is-open .service-drawer { opacity: 1; transform: none; }
.service-drawer-close { top: 22px; right: auto; left: 22px; width: 16px; height: 16px; padding: 0; border: 1px solid rgba(134,30,18,.22); border-radius: 50%; background: #ff5f57; box-shadow: inset 0 -1px 1px rgba(0,0,0,.12); }
.service-drawer-cta { border: 1px solid var(--waves-green); border-radius: 16px; color: var(--waves-green); background: transparent; }
.service-drawer-cta:hover { color: #fff; background: var(--waves-green); }
@media (max-width:767px) { .hero h1,.company-hero h1,.technical-hero h1,.training-hero h1,.sim-hero h1,.market-hero h1,.contact-hero h1,.blog-hero h1 { font-size: clamp(42px,12vw,52px); line-height: 1.02; }.section,.company-section,.technical-section { padding-block: 76px; }.footer-bottom,.footer-bottom nav { align-items: flex-start; flex-direction: column; gap: 14px; } }

/* Hero homepage con barra delle normative integrata nella prima schermata. */
@media (min-width: 1101px) {
  .hero { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding: 84px 0 0; }
  .hero-grid { flex: 1 0 auto; grid-template-columns: minmax(0,2fr) minmax(0,3fr); width: min(calc(100% - 64px),var(--container)); min-height: clamp(430px,calc(100svh - 220px),560px); }
  .hero-visual { min-height: clamp(430px,calc(100svh - 220px),560px); }
}

@media (min-width: 1101px) and (max-height: 820px) {
  .hero-copy { padding-bottom: 0; }
  .hero h1 { font-size: clamp(60px,5vw,68px); }
  .hero-lead { margin: 24px 0 28px; font-size: 18px; line-height: 1.55; }
}

.hero > .standards { position: relative; z-index: 9; flex: 0 0 auto; width: 100%; padding: 0; background: transparent; }
.hero > .standards .standards-inner { min-height: 136px; padding: 38px 0 14px; overflow: visible; border: 0; border-top: 1px solid rgba(17,17,17,.08); border-bottom: 1px solid rgba(17,17,17,.08); border-radius: 0; background: rgba(255,255,255,.22); box-shadow: none; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hero > .standards .standards-label { top: 13px; left: 0; }
.hero > .standards .standards-label span { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.hero > .standards .standards-label span::after { display: none; }
.hero > .standards .standard { min-height: 82px; padding: 8px; }
.hero > .standards .standard img { max-width: 76px; height: 38px; filter: grayscale(1) contrast(1.15); }
.hero > .standards .standard-ul img { max-width: 82px; height: 42px; }
.hero > .standards .standard small { margin-top: 7px; color: rgba(17,17,17,.62); font-size: 9px; font-weight: 600; letter-spacing: .04em; }
.hero > .standards .standards-link { min-height: 58px; margin: 10px 0 10px 18px; padding: 0 22px; border-radius: 16px; background: transparent; font-size: 12px; }
.hero > .standards .standards-link b { transition: color .25s ease-out,transform .25s ease-out; }

@keyframes hero-content-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-visual-in { from { opacity: 0; } to { opacity: 1; } }
.hero-copy { animation: hero-content-in .45s ease-out both; }
.hero-visual { animation: hero-visual-in .5s .1s ease-out both; }
.hero > .standards .standard,.hero > .standards .standards-link { animation: hero-content-in .4s ease-out both; }
.hero > .standards .standard:nth-of-type(1) { animation-delay: .18s; }
.hero > .standards .standard:nth-of-type(2) { animation-delay: .22s; }
.hero > .standards .standard:nth-of-type(3) { animation-delay: .26s; }
.hero > .standards .standard:nth-of-type(4) { animation-delay: .30s; }
.hero > .standards .standard:nth-of-type(5) { animation-delay: .34s; }
.hero > .standards .standards-link { animation-delay: .38s; }

@media (max-width: 1100px) {
  .hero { padding-bottom: 0; }
  .hero > .standards { margin-top: 40px; }
  .hero > .standards .standards-inner { grid-template-columns: repeat(5,1fr) 1.55fr; min-height: 132px; }
}

@media (max-width: 700px) {
  .hero > .standards { margin-top: 48px; }
  .hero > .standards .standards-inner { grid-template-columns: 1fr 1fr; min-height: 0; padding: 52px 0 18px; }
  .hero > .standards .standards-label { top: 18px; }
  .hero > .standards .standard { min-height: 92px; }
  .hero > .standards .standards-link { grid-column: 1 / -1; width: 100%; margin: 12px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,.hero-visual,.hero > .standards .standard,.hero > .standards .standards-link { animation: none; }
}

/* Premium hero refinement */
@media (min-width: 1101px) {
  .hero-grid { min-height: clamp(450px,calc(100svh - 196px),590px); }
  .hero-visual { min-height: clamp(450px,calc(100svh - 196px),590px); }
  .hero-visual img { left: 53%; width: 137%; transform: translate(-50%,-48%); }
}

.hotspot-group { margin: -18px 0 0 -18px; }
.hotspot { width: 36px; height: 36px; box-shadow: 0 0 0 1px rgba(5,148,68,.18),0 8px 24px rgba(5,148,68,.17); animation: hotspot-vision-breathe 4.8s ease-in-out infinite; transition: background .28s ease-in-out,box-shadow .28s ease-in-out,filter .28s ease-in-out,transform .28s ease-in-out; }
.hotspot > span[aria-hidden] { font-size: 17px; font-weight: 600; }
.hotspot::after { inset: -5px; opacity: 0; transform: scale(.9); animation: none; transition: opacity .28s ease-in-out,transform .28s ease-in-out; }
.hotspot:hover,.hotspot:focus-visible,.hotspot-group.is-pinned .hotspot { background: rgba(5,148,68,.90); box-shadow: 0 0 0 1px rgba(5,148,68,.28),0 13px 34px rgba(5,148,68,.22); filter: brightness(1.08); transform: scale(1.32); animation-play-state: paused; }
.hotspot:hover::after,.hotspot:focus-visible::after,.hotspot-group.is-pinned .hotspot::after { opacity: .34; transform: scale(1.24); }
@keyframes hotspot-vision-breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.hotspot-banner { width: min(320px,calc(100vw - 36px)); padding: 24px; border-radius: 20px; background: #fff; transition: opacity .25s ease-in-out,transform .25s ease-in-out,visibility .25s ease-in-out; }
.hotspot-banner::before { position: absolute; width: 12px; height: 12px; border: solid rgba(17,17,17,.08); background: #fff; content: ""; transform: rotate(45deg); }
.hotspot-banner[data-placement="right"]::before { top: calc(var(--arrow-y) - 6px); left: -7px; border-width: 0 0 1px 1px; }
.hotspot-banner[data-placement="left"]::before { top: calc(var(--arrow-y) - 6px); right: -7px; border-width: 1px 1px 0 0; }
.hotspot-banner[data-placement="top"]::before { bottom: -7px; left: calc(var(--arrow-x) - 6px); border-width: 0 1px 1px 0; }
.hotspot-banner[data-placement="bottom"]::before { top: -7px; left: calc(var(--arrow-x) - 6px); border-width: 1px 0 0 1px; }
.hotspot-banner-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border: 1px solid rgba(5,148,68,.20); border-radius: 50%; color: var(--waves-green); background: rgba(5,148,68,.07); font-size: 18px; font-weight: 600; }
.hotspot-banner a { min-height: 42px; margin-top: 18px; padding: 0 16px; align-items: center; border: 1px solid var(--waves-green); border-radius: 12px; transition: color .28s ease-in-out,background .28s ease-in-out,transform .28s ease-in-out; }
.hotspot-banner a:hover { color: var(--waves-white); background: var(--waves-green); transform: translateY(-1px); }

.hero > .standards .standards-inner { min-height: 112px; padding: 14px 0; }
.hero > .standards .standard { min-height: 82px; }
.hero > .standards .standard img { width: 68px; max-width: 68px; height: 38px; object-fit: contain; }
.hero > .standards .standard:nth-of-type(2) img { width: 60px; }
.hero > .standards .standard-ul img { width: 54px; max-width: 54px; height: 38px; }
.hero > .standards .standard:nth-of-type(4) img { width: 76px; max-width: 76px; filter: grayscale(1) contrast(1.38); }
.hero > .standards .standard:nth-of-type(5) img { width: 70px; max-width: 70px; }
.hero > .standards .standards-link { margin-block: 12px; }

@media (max-width: 1100px) {
  .hotspot-group { margin: -17px 0 0 -17px; }
  .hotspot { width: 34px; height: 34px; }
  .hero > .standards .standards-inner { min-height: 112px; padding-block: 14px; }
}

@media (max-width: 700px) {
  .hero > .standards .standards-inner { padding: 20px 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot { animation: none; }
}

/* Final hero polish: machine scale, glass hotspots and CTA contrast */
.hero-copy,
.hero-eyebrow,
.hero h1,
.hero-lead,
.hero-actions { text-align: left; }
.hero-lead {
  max-width: 560px;
  line-height: 1.55;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: justify;
  text-align-last: left;
}

@media (min-width: 1101px) {
  .hero-visual { overflow: visible; }
  .hero-visual img {
    left: 55%;
    width: 170%;
    transform: translate(-50%,-48%);
  }
}

.hotspot-group { margin: -17px 0 0 -17px; }
.hotspot {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(5,148,68,.38);
  box-shadow: 0 8px 24px rgba(5,148,68,.18),inset 0 1px 1px rgba(255,255,255,.45),inset 0 -1px 1px rgba(0,0,0,.08);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  animation: hotspot-glass-breathe 5s ease-in-out infinite;
  transition: background .3s ease-in-out,box-shadow .3s ease-in-out,filter .3s ease-in-out,transform .3s ease-in-out;
}
.hotspot::before {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(5,148,68,.22);
  border-radius: inherit;
  content: "";
  opacity: .55;
  pointer-events: none;
  transform: scale(1.45);
  animation: hotspot-glass-ring 5s ease-in-out infinite;
  transition: border-color .3s ease-in-out,opacity .3s ease-in-out,transform .3s ease-in-out;
}
.hotspot::after { display: none; }
.hotspot > span[aria-hidden] {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,.12);
}
.hotspot:hover,
.hotspot:focus-visible,
.hotspot-group.is-pinned .hotspot {
  background: rgba(5,148,68,.62);
  box-shadow: 0 10px 30px rgba(5,148,68,.26),inset 0 1px 1px rgba(255,255,255,.58),inset 0 -1px 1px rgba(0,0,0,.06);
  filter: brightness(1.06);
  transform: scale(1.12);
  animation-play-state: paused;
}
.hotspot:hover::before,
.hotspot:focus-visible::before,
.hotspot-group.is-pinned .hotspot::before {
  border-color: rgba(5,148,68,.34);
  opacity: .78;
  transform: scale(1.5);
  animation-play-state: paused;
}
@keyframes hotspot-glass-breathe {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
@keyframes hotspot-glass-ring {
  0%,100% { opacity: .55; }
  50% { opacity: .25; }
}

.hero > .standards .standards-link:hover,
.hero > .standards .standards-link:focus-visible {
  border-color: #059444;
  color: #fff;
  background: #059444;
}
.hero > .standards .standards-link:hover span,
.hero > .standards .standards-link:hover b,
.hero > .standards .standards-link:focus-visible span,
.hero > .standards .standards-link:focus-visible b { color: #fff; }

@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  .hotspot,
  .hotspot::before { animation: none; }
}

/* Sezione Regolamento Macchine armonizzata con la griglia della homepage. */
.machine-regulation {
  position: relative;
  padding: 0;
  background: var(--waves-surface);
}
.machine-regulation::before {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--waves-line) 1px,transparent 1px),linear-gradient(90deg,var(--waves-line) 1px,transparent 1px);
  background-size: 96px 96px;
  content: "";
  opacity: .28;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg,transparent 4%,#000 66%,transparent 100%);
  mask-image: linear-gradient(90deg,transparent 4%,#000 66%,transparent 100%);
}
.machine-regulation-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,42fr) minmax(0,58fr);
  gap: 80px;
  align-items: center;
  min-height: 0;
  border-radius: 0;
  background: transparent;
}
.machine-regulation-copy {
  align-self: center;
  padding: 0;
}
.machine-regulation-eyebrow {
  margin: 0 0 32px;
  color: var(--waves-green);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .08em;
}
.machine-regulation-eyebrow::before { display: none; }
.machine-regulation h2 {
  width: 640px;
  max-width: calc(100% + 160px);
  color: #111;
  font-size: clamp(56px,4.6vw,64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
}
.machine-regulation-text {
  max-width: 560px;
  margin: 40px 0 0;
  color: #3c3c3c;
  font-size: clamp(20px,1.55vw,22px);
  line-height: 1.55;
  letter-spacing: normal;
  text-align: left;
}
.machine-regulation-strong {
  max-width: 560px;
  margin: 28px 0 0;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}
.machine-regulation-actions {
  display: flex;
  gap: 16px;
  margin-top: 48px;
}
.regulation-button {
  flex: 1 1 0;
  gap: 14px;
  min-width: 0;
  min-height: 64px;
  padding: 10px 18px 10px 20px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.regulation-button b { font-size: 22px; }
.machine-regulation-visual {
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}
.machine-regulation-visual img {
  top: 0;
  right: -2%;
  width: 145%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: .94;
  clip-path: polygon(48% 0,100% 0,100% 100%,58% 100%,58% 68%,48% 68%);
  mix-blend-mode: multiply;
}

@media (min-width: 1101px) {
  .machine-regulation { min-height: 100vh; min-height: 100svh; }
  .machine-regulation-inner { box-sizing: border-box; height: 100vh; height: 100svh; min-height: 680px; max-height: 900px; padding-top: 48px; }
}

@media (max-width: 1100px) {
  .machine-regulation { padding: 88px 0; }
  .machine-regulation-inner { grid-template-columns: 1fr; gap: 48px; }
  .machine-regulation-copy { max-width: 760px; padding: 0; }
  .machine-regulation-visual { min-height: 560px; }
  .machine-regulation-visual img { right: 0; width: 115%; }
}

@media (max-width: 700px) {
  .machine-regulation { padding: 72px 0; }
  .machine-regulation-inner { gap: 40px; }
  .machine-regulation-eyebrow { margin-bottom: 24px; font-size: 12px; }
  .machine-regulation h2 { width: auto; max-width: 100%; font-size: clamp(38px,10.5vw,48px); line-height: 1.02; }
  .machine-regulation-text { margin-top: 32px; font-size: 18px; }
  .machine-regulation-strong { margin-top: 24px; font-size: 17px; }
  .machine-regulation-actions { display: grid; gap: 12px; margin-top: 36px; }
  .regulation-button { width: 100%; min-height: 64px; padding-inline: 20px; }
  .machine-regulation-visual { min-height: 360px; }
  .machine-regulation-visual img { width: 140%; clip-path: inset(0 0 0 40%); }
}

/* Regulation render: preserve the complete artwork at every viewport. */
.machine-regulation-visual img {
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  clip-path: none;
}
@media (max-width: 1100px) {
  .machine-regulation-visual img { width: 100%; max-width: 100%; clip-path: none; }
}

/* Sezione Metodo SIM: riferimento visuale scuro dell'intero design system. */
.method {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
}
.method-grid {
  grid-template-columns: minmax(0,42fr) minmax(0,58fr);
  gap: 80px;
  align-items: center;
}
.method-intro { align-self: center; }
.method .eyebrow {
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
}
.method h2 {
  width: 640px;
  max-width: calc(100% + 160px);
  font-size: clamp(58px,4.7vw,64px);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.052em;
}
.method-description {
  max-width: 620px;
  margin-top: 32px;
  color: rgba(255,255,255,.68);
  font-size: clamp(21px,1.6vw,22px);
  line-height: 1.55;
  letter-spacing: normal;
}
.method-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 350px;
  min-height: 76px;
  margin-top: 40px;
  padding: 14px 22px 14px 28px;
  border: 1px solid #059444;
  border-radius: 18px;
  color: #fff;
  background: transparent;
  transition: color .28s ease-out,background .28s ease-out,box-shadow .28s ease-out,transform .28s ease-out;
}
.method-cta b {
  color: #fff;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform .28s ease-out;
}
.method-cta:hover {
  color: #fff;
  background: #059444;
  box-shadow: 0 14px 34px rgba(5,148,68,.18);
  transform: translateY(-2px);
}
.method-cta:hover b { transform: translateX(4px); }

.method-timeline {
  gap: 16px;
}
.method-timeline::before {
  top: 40px;
  bottom: 40px;
  left: 68px;
  width: 1px;
  background: rgba(255,255,255,.08);
}
.method-card {
  grid-template-columns: 72px minmax(0,1fr);
  gap: 24px;
  align-items: center;
  min-height: 0;
  padding: 24px 36px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background: rgba(255,255,255,.035);
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .28s ease-out,border-color .28s ease-out,background .28s ease-out,box-shadow .28s ease-out;
}
.method-card:hover,
.method-timeline.is-animated .method-card.is-visible:hover {
  border-color: rgba(5,148,68,.35);
  background: rgba(255,255,255,.052);
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
  transform: translateY(-4px);
}
.method-icon {
  width: 72px;
  height: 72px;
  border: 1px solid rgba(5,148,68,.35);
  background: rgba(5,148,68,.06);
}
.method-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 2;
}
.method-phase {
  display: block;
  margin-bottom: 7px;
  color: var(--waves-green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.method-card-copy h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(30px,2.3vw,34px);
  font-weight: 700;
  line-height: 1.05;
}
.method-card-copy p {
  color: rgba(255,255,255,.66);
  font-size: 18px;
  line-height: 1.5;
}

@media (min-width: 1101px) {
  .method-grid {
    box-sizing: border-box;
    height: 100vh;
    height: 100svh;
    min-height: 680px;
    max-height: 900px;
    padding-top: 92px;
  }
}

@media (max-width: 1100px) {
  .method { min-height: auto; padding: 96px 0; overflow: visible; }
  .method-grid { grid-template-columns: 1fr; gap: 64px; }
  .method h2 { width: auto; max-width: 640px; }
  .method-description { max-width: 720px; }
  .method-timeline { width: 100%; }
}

@media (max-width: 700px) {
  .method { padding: 80px 0; }
  .method-grid { gap: 48px; }
  .method .eyebrow { margin-bottom: 24px; font-size: 12px; }
  .method h2 { font-size: clamp(40px,11vw,44px); line-height: 1; }
  .method-description { margin-top: 28px; font-size: 18px; }
  .method-cta { width: 100%; min-width: 0; min-height: 72px; margin-top: 32px; }
  .method-card { grid-template-columns: 56px minmax(0,1fr); gap: 18px; padding: 28px 24px; }
  .method-icon { width: 56px; height: 56px; }
  .method-icon svg { width: 32px; height: 32px; }
  .method-timeline::before { left: 52px; }
  .method-card-copy h3 { font-size: 28px; }
  .method-card-copy p { font-size: 17px; }
}

/* Subtle desktop motion and dark-section header */
@keyframes method-card-breathe {
  0%,100% {
    border-color: rgba(255,255,255,.08);
    transform: scale(1);
  }
  50% {
    border-color: rgba(255,255,255,.14);
    transform: scale(1.012);
  }
}

@media (min-width: 1024px) {
  body:not(.motion-ready) .method-card,
  body.motion-ready .method-card.is-revealed {
    animation: method-card-breathe 7.2s ease-in-out infinite;
  }
  body:not(.motion-ready) .method-card:nth-child(2),
  body.motion-ready .method-card.is-revealed:nth-child(2) { animation-delay: 1.4s; }
  body:not(.motion-ready) .method-card:nth-child(3),
  body.motion-ready .method-card.is-revealed:nth-child(3) { animation-delay: 2.8s; }
  body:not(.motion-ready) .method-card:hover,
  body.motion-ready .method-card.is-revealed:hover { animation: none; }
}

.site-header,
.site-header .main-nav a,
.site-header .brand-logo img,
.site-header .menu-toggle span {
  transition: background-color .28s ease-out,border-color .28s ease-out,color .28s ease-out,filter .28s ease-out,box-shadow .28s ease-out;
}
.site-header.is-dark {
  border-bottom-color: rgba(255,255,255,.08);
  background: rgba(15,16,18,.72);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}
.site-header.is-dark .main-nav a { color: rgba(255,255,255,.88); }
.site-header.is-dark .main-nav a:hover { color: #059444; }
.site-header.is-dark .brand-logo img { filter: brightness(0) invert(1); }
.site-header.is-dark .header-cta {
  border-color: #059444;
  color: #fff;
  background: #059444;
}
.site-header.is-dark .header-cta:hover { color: #fff; background: #047f3a; }
.site-header.is-dark .menu-toggle span { background: #fff; }
.site-header.is-dark .search-trigger,
.method-sim-page .search-trigger {
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 12px 30px rgba(0,0,0,.12);
}
.site-header.is-dark .search-trigger:hover,
.method-sim-page .search-trigger:hover {
  color: #fff;
  background: rgba(255,255,255,.16);
  border-color: rgba(5,148,68,.34);
}
.site-header.is-dark .search-trigger:focus-visible,
.method-sim-page .search-trigger:focus-visible { outline-color: rgba(255,255,255,.82); }

@media (max-width: 1100px) {
  .site-header.is-dark .main-nav { border-bottom-color: rgba(255,255,255,.08); background: rgba(15,16,18,.96); }
  .site-header.is-dark .main-nav a { border-bottom-color: rgba(255,255,255,.08); }
}

@media (prefers-reduced-motion: reduce) {
  .method-card { animation: none !important; }
}

/* Integrated competencies: ultra-glass engineering system */
#servizi {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%,rgba(5,148,68,.055),transparent 30%),
    radial-gradient(circle at 86% 72%,rgba(17,17,17,.035),transparent 34%),
    #f8fafb;
}
#servizi::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    radial-gradient(circle,rgba(5,148,68,.18) 0 1px,transparent 1.5px),
    linear-gradient(30deg,transparent 49.85%,rgba(17,17,17,.035) 50%,transparent 50.15%),
    linear-gradient(150deg,transparent 49.85%,rgba(5,148,68,.03) 50%,transparent 50.15%);
  background-position: 0 0,0 0,48px 0;
  background-size: 96px 96px,192px 166px,192px 166px;
  content: "";
  opacity: .48;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 88% 82% at 50% 48%,#000 35%,transparent 100%);
  mask-image: radial-gradient(ellipse 88% 82% at 50% 48%,#000 35%,transparent 100%);
}
#servizi::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  content: "";
  opacity: .035;
  pointer-events: none;
}
#servizi > .container {
  position: relative;
  z-index: 1;
}
#servizi .services-head {
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
}
#servizi .services-head .btn {
  flex: 0 0 auto;
  margin-left: 24px;
}
#servizi .services-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
  grid-template-rows: repeat(2,minmax(0,1fr));
  gap: 16px;
}
#servizi .service-card {
  --service-x: 0px;
  --service-y: 0px;
  position: relative;
  min-height: 0;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 24px;
  background:
    linear-gradient(145deg,rgba(255,255,255,.76),rgba(255,255,255,.46)),
    rgba(255,255,255,.50);
  box-shadow: 0 24px 64px rgba(26,43,35,.085),0 5px 18px rgba(26,43,35,.045),inset 0 1px 0 rgba(255,255,255,.88);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  transform: translate3d(var(--service-x),var(--service-y),0);
  transition: border-color .3s ease-out,background .3s ease-out,box-shadow .3s ease-out,transform .3s ease-out;
  will-change: transform;
}
#servizi .service-card::before {
  position: absolute;
  top: 0;
  left: 1px;
  width: calc(100% - 2px);
  height: 1px;
  border-radius: 24px 24px 0 0;
  background-image: linear-gradient(90deg,var(--waves-green),rgba(5,148,68,.24)),linear-gradient(90deg,transparent,rgba(255,255,255,.95),transparent);
  background-position: 24px 0,0 0;
  background-repeat: no-repeat;
  background-size: 34px 1px,100% 1px;
  content: "";
  opacity: .82;
  transition: background-size .4s ease-out,opacity .3s ease-out;
}
#servizi .service-card:hover {
  border-color: rgba(5,148,68,.22);
  background: linear-gradient(145deg,rgba(255,255,255,.86),rgba(255,255,255,.55));
  box-shadow: 0 30px 76px rgba(26,43,35,.11),0 8px 22px rgba(26,43,35,.055),inset 0 1px 0 rgba(255,255,255,.96);
  transform: translate3d(var(--service-x),calc(var(--service-y) - 4px),0);
}
#servizi .service-card:hover::before { width: calc(100% - 2px); background-size: 68px 1px,100% 1px; opacity: 1; }
#servizi .service-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 38px;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(5,148,68,.16);
  border-radius: 999px;
  color: #047f3a;
  background: rgba(5,148,68,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
}
#servizi .service-card h3 {
  margin: 28px 0 8px;
  color: #111;
  font-size: clamp(27px,2.25vw,32px);
  font-weight: 750;
  line-height: 1.08;
}
#servizi .service-card p {
  max-width: 36ch;
  color: rgba(17,17,17,.58);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

@keyframes service-card-breathe {
  0%,100% {
    border-color: rgba(255,255,255,.72);
    transform: translate3d(var(--service-x),var(--service-y),0) scale(1);
  }
  50% {
    border-color: rgba(255,255,255,.92);
    transform: translate3d(var(--service-x),var(--service-y),0) scale(1.006);
  }
}

@media (min-width: 1101px) {
  #servizi {
    box-sizing: border-box;
    height: 100vh;
    height: 100svh;
    padding: 92px 0 34px;
  }
  #servizi > .container {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  #servizi .services-grid { flex: 1 1 auto; min-height: 0; }
  body:not(.motion-ready) #servizi .service-card,
  body.motion-ready #servizi .service-card.is-settled {
    animation: service-card-breathe 11s ease-in-out infinite;
  }
  body:not(.motion-ready) #servizi .service-card:nth-child(2),
  body.motion-ready #servizi .service-card.is-settled:nth-child(2) { animation-delay: 1.2s; }
  body:not(.motion-ready) #servizi .service-card:nth-child(3),
  body.motion-ready #servizi .service-card.is-settled:nth-child(3) { animation-delay: 2.4s; }
  body:not(.motion-ready) #servizi .service-card:nth-child(4),
  body.motion-ready #servizi .service-card.is-settled:nth-child(4) { animation-delay: 3.6s; }
  body:not(.motion-ready) #servizi .service-card:nth-child(5),
  body.motion-ready #servizi .service-card.is-settled:nth-child(5) { animation-delay: 4.8s; }
  body:not(.motion-ready) #servizi .service-card:nth-child(6),
  body.motion-ready #servizi .service-card.is-settled:nth-child(6) { animation-delay: 6s; }
  body:not(.motion-ready) #servizi .service-card:hover,
  body.motion-ready #servizi .service-card.is-settled:hover { animation: none; }
}

@media (max-width: 1100px) {
  #servizi { min-height: auto; padding: 96px 0; }
  #servizi .services-grid { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; }
  #servizi .service-card { min-height: 230px; }
}

@media (max-width: 700px) {
  #servizi { padding: 80px 0; }
  #servizi .services-head { display: block; margin-bottom: 32px; }
  #servizi .services-head .btn { margin: 24px 0 0; }
  #servizi .services-grid { grid-template-columns: 1fr; }
  #servizi .service-card { min-height: 0; padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  #servizi .service-card { animation: none !important; transform: none !important; }
}

/* Services overview refinement */
#servizi .services-head {
  justify-content: space-between;
}
#servizi .services-head .btn {
  margin-left: auto;
}
#servizi .services-grid {
  position: relative;
}
#servizi .services-grid::before {
  position: absolute;
  z-index: -1;
  top: -80px;
  left: 8%;
  width: 84%;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(ellipse,rgba(255,255,255,.05),transparent 72%);
  content: "";
  pointer-events: none;
}
#servizi .service-card {
  padding: 50px 52px;
  border-color: rgba(0,0,0,.05);
  background: rgba(255,255,255,.78);
  box-shadow: 0 30px 70px rgba(0,0,0,.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  transition: border-color .45s cubic-bezier(.22,.61,.36,1),background .45s cubic-bezier(.22,.61,.36,1),box-shadow .45s cubic-bezier(.22,.61,.36,1),transform .45s cubic-bezier(.22,.61,.36,1);
}
#servizi .service-card::before {
  left: 0;
  width: 44px;
  height: 2px;
  border-radius: 24px 0 0;
  background: var(--waves-green);
  opacity: .72;
  transition: width .4s cubic-bezier(.22,.61,.36,1),opacity .4s cubic-bezier(.22,.61,.36,1);
}
#servizi .service-card:hover {
  border-color: rgba(0,0,0,.06);
  background: rgba(255,255,255,.84);
  box-shadow: 0 38px 82px rgba(0,0,0,.075);
  transform: translate3d(var(--service-x),calc(var(--service-y) - 8px),0) scale(1.012);
}
#servizi .service-card:hover::before {
  width: 100%;
  opacity: 1;
}
#servizi .service-card:focus-visible {
  outline: 2px solid rgba(5,148,68,.55);
  outline-offset: 4px;
}
#servizi .service-no {
  min-width: 34px;
  min-height: 22px;
  padding: 0 9px;
  border-color: rgba(5,148,68,.12);
  color: rgba(4,127,58,.78);
  background: rgba(5,148,68,.045);
  box-shadow: none;
  font-size: 10px;
  font-weight: 650;
}
#servizi .service-card h3 {
  margin-top: 30px;
  font-size: clamp(26px,2vw,30px);
  font-weight: 650;
  transition: color .35s ease;
}
#servizi .service-card:hover h3 { color: var(--waves-green); }

body.motion-ready #servizi .service-card.reveal-card {
  opacity: 0;
  transform: translateY(30px);
}
body.motion-ready #servizi .service-card.reveal-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1),transform .6s cubic-bezier(.22,.61,.36,1),border-color .45s cubic-bezier(.22,.61,.36,1),background .45s cubic-bezier(.22,.61,.36,1),box-shadow .45s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay,0ms);
}
body.motion-ready #servizi .service-card.reveal-card.is-revealed:hover {
  transform: translate3d(var(--service-x),calc(var(--service-y) - 8px),0) scale(1.012);
}
body.motion-ready #servizi .service-card.is-settled { transition-delay: 0ms; }

@media (min-width: 1101px) and (max-height: 820px) {
  #servizi .service-card { padding: 30px 36px; }
  #servizi .service-card h3 { margin-top: 24px; }
}

@media (max-width: 1100px) {
  #servizi .service-card { padding: 42px; }
}

@media (max-width: 700px) {
  #servizi .service-card { padding: 30px 26px; }
  #servizi .service-card:hover { transform: translateY(-3px); }
}

/* Fix viewport bassi homepage: la sezione Servizi non deve mai comprimere o tagliare le card.
   Manteniamo l'estetica premium, ma riportiamo contenuti e griglia nel flusso naturale. */
body.home #servizi {
  height: auto;
  min-height: auto;
  overflow: visible;
  padding: clamp(88px,10vh,130px) 0;
}
body.home #servizi > .container {
  display: block;
  height: auto;
  min-height: 0;
  overflow: visible;
}
body.home #servizi .services-head {
  margin-bottom: clamp(28px,4.5vh,55px);
}
body.home #servizi .services-grid {
  grid-template-rows: none;
  align-items: stretch;
  height: auto;
  min-height: 0;
  overflow: visible;
}
body.home #servizi .service-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: clamp(260px,28vh,340px);
  height: auto;
  overflow: visible;
}
body.home #servizi .service-card p {
  max-height: none;
  overflow: visible;
  text-overflow: clip;
}

@media (min-width: 1101px) and (max-height: 800px) {
  body.home #servizi {
    padding-top: 72px;
    padding-bottom: 96px;
  }
  body.home #servizi .services-head {
    margin-bottom: 28px;
  }
  body.home #servizi .services-grid {
    gap: 24px;
  }
  body.home #servizi .service-card {
    min-height: 260px;
    padding: 34px 36px;
  }
  body.home #servizi .service-card h3 {
    margin-top: 24px;
  }
}

@media (min-width: 1101px) and (max-height: 680px) {
  body.home #servizi {
    padding-top: 56px;
    padding-bottom: 80px;
  }
  body.home #servizi .services-head {
    margin-bottom: 22px;
  }
  body.home #servizi .services-head .section-title {
    font-size: clamp(42px,4vw,56px);
  }
  body.home #servizi .service-card {
    min-height: 240px;
    padding: 28px 32px;
  }
  body.home #servizi .service-card h3 {
    margin-top: 20px;
  }
}

/* Drawer accessibile delle card servizi presenti nella homepage. */
body.service-panel-open { overflow: hidden; }
.service-drawer-layer {
  position: fixed;
  z-index: 90;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear .5s;
}
.service-drawer-layer.is-open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}
.service-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15,16,18,.18);
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition: opacity .5s cubic-bezier(.22,.61,.36,1),backdrop-filter .5s cubic-bezier(.22,.61,.36,1);
}
.service-drawer-layer.is-open .service-drawer-backdrop {
  opacity: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.service-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(520px,100%);
  height: 100%;
  padding: 44px 46px;
  overflow-y: auto;
  border-left: 1px solid rgba(17,17,17,.07);
  background: rgba(255,255,255,.94);
  box-shadow: -30px 0 80px rgba(0,0,0,.09);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}
.service-drawer-layer.is-open .service-drawer { transform: translateX(0); }
.service-drawer-close {
  align-self: flex-end;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(17,17,17,.09);
  border-radius: 50%;
  color: #111;
  background: rgba(255,255,255,.72);
  font-size: 24px;
  font-weight: 400;
  cursor: pointer;
}
.service-drawer-eyebrow {
  margin: 44px 0 14px;
  color: var(--waves-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.service-drawer h2 {
  margin: 0;
  color: #111;
  font-size: clamp(38px,4vw,52px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.service-drawer-intro {
  margin: 24px 0 0;
  color: rgba(17,17,17,.64);
  font-size: 18px;
  line-height: 1.55;
}
.service-drawer h3 {
  margin: 34px 0 12px;
  color: #111;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.service-drawer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-drawer li {
  position: relative;
  padding-left: 18px;
  color: rgba(17,17,17,.65);
  font-size: 16px;
  line-height: 1.45;
}
.service-drawer li::before {
  position: absolute;
  top: .65em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--waves-green);
  content: "";
}
.service-drawer-standards {
  color: rgba(17,17,17,.56);
  font-size: 15px;
  line-height: 1.55;
}
.service-drawer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  margin-top: 38px;
  padding: 0 22px;
  border-radius: 16px;
  color: #fff;
  background: var(--waves-green);
  font-weight: 700;
}
.service-drawer-cta span { transition: transform .3s ease; }
.service-drawer-cta:hover span { transform: translateX(4px); }

@media (max-width: 700px) {
  .service-drawer { padding: 28px 24px; }
  .service-drawer-eyebrow { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-drawer,
  .service-drawer-backdrop,
  body.motion-ready #servizi .service-card.reveal-card,
  body.motion-ready #servizi .service-card.reveal-card.is-revealed { transition: none !important; }
}

/* Navigazione desktop/mobile e sottomenu Servizi/Normative. */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger { position: relative; display: flex; align-items: center; }
.submenu-toggle { position: absolute; top: 50%; right: -11px; display: grid; place-items: center; width: 8px; height: 20px; padding: 0; border: 0; color: currentColor; background: transparent; cursor: pointer; transform: translateY(-50%); }
.submenu-toggle::before { width: 4px; height: 4px; border-radius: 50%; background: rgba(17,17,17,.34); content: ""; transition: background .25s ease-out,transform .25s ease-out; }
.submenu-toggle span { display: none; }
.nav-submenu { position: absolute; z-index: 70; top: calc(100% + 12px); left: 50%; display: none; min-width: 210px; padding: 9px; border: 1px solid rgba(17,17,17,.08); border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 20px 55px rgba(0,0,0,.10); opacity: 1; transform: translate(-50%,0); visibility: visible; pointer-events: auto; backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); }
.nav-submenu::before { position:absolute; right:0; bottom:100%; left:0; height:13px; content:""; }
.nav-submenu a { padding: 12px 14px; border-radius: 10px; color: var(--waves-ink); white-space: nowrap; transition: color .22s ease-out,background .22s ease-out; }
.nav-submenu a small { display: block; margin-top: 3px; color: var(--waves-muted); font-size: 9px; font-weight: 650; letter-spacing: .04em; }
.nav-submenu a::after { display: none; }
.nav-submenu a:hover,.nav-submenu a:focus-visible { color: var(--waves-green); background: rgba(5,148,68,.06); }
.nav-dropdown:hover .nav-submenu,.nav-dropdown:focus-within .nav-submenu,.nav-dropdown.is-open > .nav-submenu { display: grid; }
.nav-dropdown:hover .submenu-toggle::before,.nav-dropdown:focus-within .submenu-toggle::before,.nav-dropdown.is-open .submenu-toggle::before { background: var(--waves-green); transform: scale(1.35); }
.site-header.is-dark .submenu-toggle,.method-sim-page .submenu-toggle { color: rgba(255,255,255,.88); }
.site-header.is-dark .submenu-toggle::before,.method-sim-page .submenu-toggle::before { background: rgba(255,255,255,.42); }
.site-header.is-dark .nav-submenu,.method-sim-page .nav-submenu { border-color: rgba(255,255,255,.09); background: rgba(15,16,18,.96); }
.site-header.is-dark .nav-submenu a,.method-sim-page .nav-submenu a { color: rgba(255,255,255,.86); }
.site-header.is-dark .nav-submenu a:hover,.method-sim-page .nav-submenu a:hover { color: var(--waves-green); background: rgba(5,148,68,.10); }

@media (max-width:1100px) {
  .nav-dropdown { width: 100%; }
  .nav-dropdown-trigger { border-bottom: 1px solid var(--waves-line); }
  .nav-dropdown-trigger>a { flex: 1; border-bottom: 0; }
  .submenu-toggle { position: static; width: 48px; height: 52px; color: var(--waves-ink); transform: none; }
  .submenu-toggle::before { width: auto; height: auto; border-radius: 0; color: currentColor; background: transparent!important; content: "+"; font-size: 20px; font-weight: 400; line-height: 1; transform: none!important; }
  .nav-dropdown.is-open .submenu-toggle::before { content: "−"; }
  .nav-submenu { position: static; min-width: 0; padding: 0 0 8px 18px; border: 0; border-bottom: 1px solid var(--waves-line); border-radius: 0; background: transparent; box-shadow: none; opacity: 1; transform: none; visibility: visible; pointer-events: auto; backdrop-filter: none; -webkit-backdrop-filter: none; display: none; }
  .nav-submenu::before { display:none; }
  .nav-dropdown.is-open .nav-submenu { display: grid; transform: none; }
  .nav-submenu a { padding: 13px 14px; border-bottom: 0; font-size: 15px; }
  .nav-submenu a small { font-size: 10px; }
  .site-header.is-dark .nav-dropdown-trigger,.method-sim-page .nav-dropdown-trigger,.site-header.is-dark .nav-submenu,.method-sim-page .nav-submenu { border-color: rgba(255,255,255,.08); background: transparent; }
}

@media (prefers-reduced-motion:reduce) {
  .nav-submenu,.submenu-toggle::before { transition: none!important; }
}

/* Footer globale e icone dei canali di contatto. */
.footer-social a,
.method-sim-page .footer-social a {
  width: 36px;
  height: 36px;
  border-color: rgba(5,148,68,.42);
  color: var(--waves-green);
  background: transparent;
}
.footer-social a svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.footer-social a:hover,
.method-sim-page .footer-social a:hover {
  border-color: var(--waves-green);
  color: #047f3a;
  background: rgba(5,148,68,.08);
}

/* Homepage final visual revision */
body.home main { position:relative; overflow:hidden; background:radial-gradient(circle at 88% 8%,rgba(5,148,68,.065),transparent 25%),radial-gradient(circle at 8% 52%,rgba(5,148,68,.035),transparent 28%),linear-gradient(180deg,#fff 0%,#f8faf9 48%,#fff 100%); }
body.home .hero,body.home .standards,body.home .machine-regulation,body.home .method,body.home #servizi,body.home .evidence,body.home .cta-section { background-color:transparent; }
body.home .hero { background:linear-gradient(135deg,rgba(255,255,255,.94),rgba(247,250,249,.78)); }
body.home .hero::before { opacity:.34; }
body.home .hero-copy,body.home .hero-copy>* { box-sizing:border-box; }
body.home .hero h1,body.home .hero-lead,body.home .hero-actions,body.home .hero-eyebrow { width:100%; max-width:560px; }
body.home .hero-lead { text-align:left; text-align-last:auto; word-spacing:normal; }
body.home .machine-regulation-text { max-width:560px; text-align:justify; text-align-last:left; text-wrap:pretty; }

body.home .method { color:var(--waves-ink); background:radial-gradient(circle at 82% 30%,rgba(5,148,68,.07),transparent 28%),rgba(255,255,255,.36); }
body.home .method .eyebrow::before { display:none; }
body.home .method h2 { color:var(--waves-ink); }
body.home .method-description { color:rgba(17,17,17,.68); }
body.home .method-card { border-color:rgba(5,148,68,.10); background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(255,255,255,.60)); box-shadow:0 20px 70px rgba(17,17,17,.055),inset 0 1px 0 rgba(255,255,255,.90); backdrop-filter:blur(22px) saturate(145%); -webkit-backdrop-filter:blur(22px) saturate(145%); }
body.home .method-card:hover,body.home .method-timeline.is-animated .method-card.is-visible:hover { border-color:rgba(5,148,68,.24); background:rgba(255,255,255,.88); box-shadow:0 28px 75px rgba(17,17,17,.075),0 14px 40px rgba(5,148,68,.045); }
body.home .method-timeline::before { background:rgba(5,148,68,.12); }
body.home .method-card-copy h3 { color:var(--waves-ink); }
body.home .method-card-copy p { color:rgba(17,17,17,.64); text-align:justify; text-align-last:left; text-wrap:pretty; }
body.home .method-cta { color:var(--waves-ink); background:rgba(255,255,255,.58); }
body.home .method-cta strong { color:var(--waves-ink); }
body.home .method-cta small { color:rgba(17,17,17,.58); }
body.home .method-cta b { color:var(--waves-green); }
body.home .method-cta:hover strong,body.home .method-cta:hover small,body.home .method-cta:hover b { color:#fff; }
body.home .method-cta:hover,body.home .method-cta:focus-visible { color:#fff; background:var(--waves-green); }

body.home #servizi { background:radial-gradient(circle at 16% 12%,rgba(5,148,68,.05),transparent 30%),rgba(248,250,249,.54); }
body.home #servizi .service-card { border-color:rgba(5,148,68,.12); border-radius:26px; background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(255,255,255,.56)); box-shadow:0 20px 70px rgba(17,17,17,.06),inset 0 1px 0 rgba(255,255,255,.85); backdrop-filter:blur(22px) saturate(145%); -webkit-backdrop-filter:blur(22px) saturate(145%); }
body.home #servizi .service-card::after { position:absolute; right:13%; bottom:0; left:13%; height:3px; background:linear-gradient(90deg,transparent,var(--waves-green),transparent); content:""; opacity:.35; transition:right .45s cubic-bezier(.22,.61,.36,1),left .45s cubic-bezier(.22,.61,.36,1),opacity .45s ease-out,box-shadow .45s ease-out; }
body.home #servizi .service-card:hover::after { right:0; left:0; opacity:1; box-shadow:0 0 24px 7px rgba(5,148,68,.15); }
.home-service-icon { display:grid; place-items:center; width:62px; height:62px; border:1px solid rgba(5,148,68,.12); border-radius:17px; color:var(--waves-green); background:rgba(255,255,255,.68); box-shadow:0 12px 30px rgba(5,148,68,.08); }
.home-service-icon svg { width:34px; height:34px; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.home-service-icon img { width:36px; height:36px; object-fit:contain; filter:invert(43%) sepia(72%) saturate(922%) hue-rotate(102deg) brightness(86%) contrast(97%); }
body.home #servizi .service-card h3 { margin-top:30px; }

body.home .evidence { background:rgba(255,255,255,.34); }
body.home .evidence-list>div { border-color:rgba(5,148,68,.10); background:rgba(255,255,255,.72); box-shadow:0 20px 60px rgba(17,17,17,.045); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }

body.home .cta-panel { position:relative; overflow:hidden; border:1px solid rgba(5,148,68,.11); border-radius:28px; color:var(--waves-ink); background:linear-gradient(135deg,rgba(255,255,255,.88),rgba(246,251,248,.72)); box-shadow:0 30px 80px rgba(17,17,17,.06),inset 0 1px 0 rgba(255,255,255,.92); backdrop-filter:blur(24px) saturate(150%); -webkit-backdrop-filter:blur(24px) saturate(150%); }
body.home .cta-panel::before { position:absolute; inset:0; background-image:radial-gradient(circle at 82% 36%,rgba(5,148,68,.12),transparent 28%),repeating-radial-gradient(ellipse at 92% 120%,transparent 0 24px,rgba(5,148,68,.075) 25px,transparent 26px 48px); content:""; opacity:.72; pointer-events:none; }
body.home .cta-panel>* { position:relative; z-index:1; }
body.home .cta-panel p { color:rgba(17,17,17,.64); }
body.home .cta-panel .btn { color:#fff; border-color:var(--waves-green); background:var(--waves-green); }
body.home .cta-panel .btn:hover { color:#fff; background:#047f3a; }

@media (max-width:700px) {
  body.home .hero h1,body.home .hero-lead,body.home .hero-actions,body.home .hero-eyebrow { max-width:100%; }
  body.home .machine-regulation-text,body.home .method-card-copy p { text-align:left; text-align-last:auto; }
  body.home #servizi .service-card { padding:28px 24px; }
  .home-service-icon { width:56px; height:56px; }
  .home-service-icon svg { width:31px; height:31px; }
  body.home .cta-panel { border-radius:24px; }
}

@media (prefers-reduced-motion:reduce) {
  body.home #servizi .service-card,body.home .method-card { animation:none!important; }
}

/* Revision 04 final precedence */
.service-drawer-layer { display:grid; place-items:center; }
.service-drawer { position:relative; inset:auto; width:min(720px,calc(100vw - 48px)); height:auto; max-height:min(760px,calc(100svh - 64px)); padding:54px; border:1px solid rgba(255,255,255,.8); border-radius:28px; opacity:0; transform:translateY(16px) scale(.98); }
.service-drawer-layer.is-open .service-drawer { opacity:1; transform:none; }
.service-drawer-close { position:absolute; top:22px; right:auto; left:22px; align-self:auto; width:16px; height:16px; border:1px solid rgba(134,30,18,.22); background:#ff5f57; box-shadow:inset 0 -1px 1px rgba(0,0,0,.12); }
.service-drawer-eyebrow { margin-top:24px; }
.service-drawer-cta { border:1px solid var(--waves-green); border-radius:16px; color:var(--waves-green); background:transparent; }
.service-drawer-cta:hover { color:#fff; background:var(--waves-green); }

/* Hero statica 2026: gli hotspot sono intenzionalmente disattivati. */
.hero-grid { isolation:isolate; }
.hero-visual { position:absolute; z-index:0; inset:0; width:100%; min-height:0; overflow:hidden; pointer-events:none; }
.hero-visual::after { position:absolute; z-index:1; display:block; inset:0; background:linear-gradient(90deg,rgba(248,250,249,.98) 0%,rgba(248,250,249,.94) 31%,rgba(248,250,249,.48) 52%,rgba(248,250,249,.08) 76%,rgba(248,250,249,.02) 100%); content:""; }
.hero-visual img,.hero .hero-visual img { position:absolute; inset:0; width:100%; max-width:none; height:100%; opacity:.88; filter:brightness(1.04) contrast(.97) saturate(.86); object-fit:cover; object-position:center; transform:none; mix-blend-mode:normal; -webkit-mask-image:none; mask-image:none; }
.hero-copy { z-index:3; }
@media (max-width:700px) {
  .hero-visual::after { background:linear-gradient(180deg,rgba(248,250,249,.97) 0%,rgba(248,250,249,.92) 58%,rgba(248,250,249,.66) 100%); }
  .hero-visual img,.hero .hero-visual img { opacity:.58; object-position:64% center; }
}
@media (min-width:768px) { body.home .hero h1,.company-hero h1,.technical-hero h1,.training-hero h1,.sim-hero h1,.market-hero h1,.contact-hero h1,.blog-hero h1 { font-size:clamp(68px,6vw,88px)!important; line-height:.93!important; letter-spacing:-.058em!important; } }

/* Switch lingua condiviso: pill compatta, accessibile e coerente con ogni header. */
.language-switch-mobile { display:none; }
.language-switch {
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:2px;
  border:1px solid rgba(17,17,17,.075);
  border-radius:15px;
  background:rgba(255,255,255,.54);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.78),0 10px 28px rgba(17,17,17,.032);
  backdrop-filter:blur(18px) saturate(155%);
  -webkit-backdrop-filter:blur(18px) saturate(155%);
}
.language-switch a {
  position:relative;
  display:grid;
  place-items:center;
  min-width:42px;
  min-height:36px;
  padding:0 9px;
  border:0;
  border-radius:12px;
  color:rgba(17,17,17,.58);
  font-size:12px;
  font-weight:760;
  letter-spacing:.055em;
  line-height:1;
  text-decoration:none;
  transition:color .25s ease-out,background-color .25s ease-out,box-shadow .25s ease-out;
}
.language-switch a::after { display:none!important; }
.language-switch > span { width:1px; height:16px; background:rgba(17,17,17,.10); }
.language-switch a:hover,.language-switch a:focus-visible { color:var(--waves-green); background:rgba(5,148,68,.06); }
.language-switch a.is-active { color:var(--waves-green); background:rgba(5,148,68,.075); box-shadow:inset 0 0 0 1px rgba(5,148,68,.075); }
.language-switch a:focus-visible { outline:2px solid var(--waves-green); outline-offset:2px; }

.waves-search-overlay {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(92px,12vh,128px) 20px 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms cubic-bezier(.22,.61,.36,1);
}
body.search-open { overflow: hidden; }
.waves-search-overlay.is-open { opacity: 1; pointer-events: auto; }
.waves-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(248,250,249,.52);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
}
.waves-search-modal {
  position: relative;
  width: min(760px,100%);
  padding: 28px 32px 30px;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 28px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 30px 80px rgba(15,23,42,.13), inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  transform: translateY(16px) scale(.985);
  transition: transform 260ms cubic-bezier(.22,.61,.36,1);
}
.waves-search-overlay.is-open .waves-search-modal { transform: translateY(0) scale(1); }
.waves-search-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.waves-search-heading h2 { margin: 0; color: var(--waves-ink); font-size: 18px; letter-spacing: -.02em; }
.waves-search-shortcut { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid rgba(17,17,17,.08); border-radius: 9px; color: rgba(17,17,17,.46); background: rgba(255,255,255,.72); font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.waves-search-input-row {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) 42px;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 0 12px 0 22px;
  border: 1px solid rgba(17,17,17,.075);
  border-radius: 20px;
  background: rgba(255,255,255,.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88);
}
.waves-search-input-row svg { width: 23px; height: 23px; fill: none; stroke: rgba(17,17,17,.72); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.waves-search-input-row input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--waves-ink);
  background: transparent;
  font: 650 18px/1.2 inherit;
}
.waves-search-input-row input::placeholder { color: rgba(17,17,17,.38); }
.waves-search-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 14px;
  color: rgba(17,17,17,.64);
  background: rgba(255,255,255,.78);
  cursor: pointer;
  transition: color .22s ease, border-color .22s ease, background-color .22s ease, transform .22s ease;
}
.waves-search-close span { font-size: 26px; line-height: 1; transform: translateY(-1px); }
.waves-search-close:hover { color: var(--waves-green); border-color: rgba(5,148,68,.18); background: rgba(5,148,68,.05); transform: translateY(-1px); }
.waves-search-close:focus-visible,
.waves-search-input-row input:focus-visible,
.waves-search-suggestions button:focus-visible,
.waves-search-result:focus-visible { outline: 2px solid rgba(5,148,68,.45); outline-offset: 3px; }
.waves-search-suggestions { margin-top: 22px; }
.waves-search-suggestions p { margin: 0 0 12px; color: rgba(17,17,17,.46); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.waves-search-suggestions div { display: flex; flex-wrap: wrap; gap: 10px; }
.waves-search-suggestions button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(5,148,68,.12);
  border-radius: 999px;
  color: var(--waves-green);
  background: rgba(5,148,68,.045);
  font: 750 13px/1 inherit;
  cursor: pointer;
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease;
}
.waves-search-suggestions button:hover { transform: translateY(-1px); border-color: rgba(5,148,68,.24); background: rgba(5,148,68,.08); }
.waves-search-results { display: grid; gap: 10px; margin-top: 20px; }
.waves-search-result {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid rgba(17,17,17,.06);
  border-radius: 18px;
  color: var(--waves-ink);
  background: rgba(255,255,255,.70);
  text-decoration: none;
  transition: transform .22s cubic-bezier(.22,.61,.36,1), border-color .22s ease, box-shadow .22s ease;
}
.waves-search-result:hover { transform: translateY(-2px); border-color: rgba(5,148,68,.16); box-shadow: 0 18px 42px rgba(17,17,17,.07); }
.waves-search-result strong { font-size: 16px; letter-spacing: -.02em; }
.waves-search-result span { width: max-content; padding: 4px 9px; border-radius: 999px; color: var(--waves-green); background: rgba(5,148,68,.07); font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.waves-search-result small { color: rgba(17,17,17,.58); font-size: 13px; line-height: 1.45; }
.waves-search-empty { padding: 18px; border: 1px solid rgba(17,17,17,.06); border-radius: 18px; color: rgba(17,17,17,.58); background: rgba(255,255,255,.62); font-weight: 650; }

.site-header.is-dark .language-switch,
.method-sim-page .language-switch,
.training-body .language-switch,
.training-contact-body .language-switch {
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.11),0 14px 34px rgba(0,0,0,.08);
  backdrop-filter:blur(20px) saturate(145%);
  -webkit-backdrop-filter:blur(20px) saturate(145%);
}
.site-header.is-dark .language-switch a,
.method-sim-page .language-switch a,
.training-body .language-switch a,
.training-contact-body .language-switch a { color:rgba(255,255,255,.62); }
.site-header.is-dark .language-switch > span,
.method-sim-page .language-switch > span,
.training-body .language-switch > span,
.training-contact-body .language-switch > span { background:rgba(255,255,255,.13); }
.site-header.is-dark .language-switch a:hover,
.site-header.is-dark .language-switch a.is-active,
.method-sim-page .language-switch a:hover,
.method-sim-page .language-switch a.is-active,
.training-body .language-switch a:hover,
.training-body .language-switch a.is-active,
.training-contact-body .language-switch a:hover,
.training-contact-body .language-switch a.is-active { color:#fff; background:rgba(255,255,255,.095); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }

.training-body .search-trigger,
.training-contact-body .search-trigger {
  border-color: rgba(255,255,255,.32);
  color: #fff;
  background: rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 12px 30px rgba(184,58,13,.18);
}
.training-body .search-trigger:hover,
.training-contact-body .search-trigger:hover {
  color: #fff;
  background: rgba(255,255,255,.28);
  border-color: rgba(255,255,255,.44);
}
.training-body .search-trigger:focus-visible,
.training-contact-body .search-trigger:focus-visible { outline-color: rgba(255,255,255,.85); }

@media (max-width:1100px) {
  .language-switch-desktop { display:none; }
  .language-switch-mobile { display:block; width:100%; padding-top:16px; }
  .main-nav .language-switch { width:max-content; }
  .main-nav .language-switch a { padding:0 12px; border-bottom:0; font-size:13px; }
}

@media (prefers-reduced-motion:reduce) {
  .language-switch a,
  .search-trigger,
  .waves-search-overlay,
  .waves-search-modal,
  .waves-search-result,
  .waves-search-suggestions button,
  .waves-search-close { transition:none; }
  .waves-search-modal,
  .waves-search-overlay.is-open .waves-search-modal { transform:none; }
}

/**
 * Rifinitura desktop premium.
 * Override non distruttivi caricati nel CSS principale perché il live consente
 * l'aggiornamento sicuro dei file esistenti, non la creazione via editor tema.
 */
@media (min-width:1101px) {
  :root {
    --waves-header-desktop-height:82px;
    --waves-desktop-radius:22px;
    --waves-desktop-radius-sm:16px;
    --waves-desktop-shadow-hover:0 36px 92px rgba(17,17,17,.095),0 16px 44px rgba(5,148,68,.055);
  }

  html { text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased; }
  .container { width:min(calc(100% - 64px),var(--container)); }

  /* Header desktop: meno massiccio, più tecnico e allineato. */
  .site-header { padding:10px 0; border-bottom-color:rgba(17,17,17,.055); background:rgba(255,255,255,.86); }
  .header-inner { min-height:var(--waves-header-desktop-height); gap:clamp(18px,2vw,30px); }
  .brand-logo { width:108px; }
  .brand-logo img { width:98px; height:auto; max-height:64px; object-fit:contain; }
  .main-nav { gap:clamp(22px,1.9vw,34px); }
  .main-nav a,.nav-dropdown-trigger>a { font-size:16px; font-weight:650; letter-spacing:-.012em; }
  .nav-dropdown-trigger { gap:5px; }
  .submenu-toggle { display:inline-grid; place-items:center; width:14px; height:14px; color:transparent; }
  .submenu-toggle::before,.submenu-toggle span { display:block; width:4px; height:4px; border-radius:999px; background:rgba(17,17,17,.28); content:""; transition:background-color .24s ease-out,transform .24s ease-out; }
  .nav-dropdown:hover .submenu-toggle::before,.nav-dropdown:hover .submenu-toggle span,.nav-dropdown:focus-within .submenu-toggle::before,.nav-dropdown:focus-within .submenu-toggle span { background:var(--waves-green); transform:scale(1.15); }
  .nav-dropdown[data-submenu-label="Normative"] .submenu-toggle { display:none; }
  .nav-submenu { min-width:270px; padding:12px; border-color:rgba(17,17,17,.07); border-radius:20px; background:rgba(255,255,255,.90); box-shadow:0 28px 80px rgba(17,17,17,.12),inset 0 1px 0 rgba(255,255,255,.92); backdrop-filter:blur(24px) saturate(160%); -webkit-backdrop-filter:blur(24px) saturate(160%); }
  .nav-submenu a { min-height:48px; padding:10px 12px; border-radius:14px; font-size:14px; line-height:1.25; }
  .search-trigger { width:52px; height:52px; border-color:rgba(17,17,17,.075); border-radius:18px; background:rgba(255,255,255,.72); box-shadow:0 16px 40px rgba(17,17,17,.055),inset 0 1px 0 rgba(255,255,255,.92); }
  .search-trigger svg { width:23px; height:23px; stroke-width:1.8; }
  .language-switch-desktop .language-switch,.language-switch { min-height:48px; padding:3px; border-color:rgba(17,17,17,.06); border-radius:17px; background:rgba(255,255,255,.58); box-shadow:0 14px 34px rgba(17,17,17,.035),inset 0 1px 0 rgba(255,255,255,.88); }
  .language-switch a,.language-switch button { min-width:46px; height:40px; border-radius:13px; font-size:13px; font-weight:760; }
  .header-cta { min-height:56px; padding:0 28px; border-radius:18px; font-size:15.5px; font-weight:720; letter-spacing:-.01em; }
  .header-cta span { transition:transform .28s ease-out; }
  .header-cta:hover span,.header-cta:focus-visible span { transform:translateX(4px); }

  /* CTA globali: stesso respiro e movimento fra sezioni. */
  .btn,.company-button,.technical-button,.regulation-button,.method-cta,.standards-link { border-radius:var(--waves-desktop-radius-sm); transition-duration:.28s; transition-timing-function:cubic-bezier(.22,.61,.36,1); }
  .btn:hover,.company-button:hover,.technical-button:hover,.regulation-button:hover,.method-cta:hover { transform:translateY(-2px); }

  /* Homepage hero: griglia e typographic scale più controllate. */
  .hero { padding-top:86px; }
  .hero-grid { grid-template-columns:minmax(0,2fr) minmax(0,3fr); min-height:clamp(500px,calc(100svh - 220px),640px); }
  .hero-copy { max-width:780px; }
  .hero-eyebrow { margin-bottom:34px; font-size:13px; font-weight:820; letter-spacing:.12em; }
  .hero h1 { max-width:780px; font-size:clamp(78px,6.7vw,112px); line-height:.915; letter-spacing:-.068em; font-weight:800; }
  .hero-lead { max-width:560px; margin:32px 0 34px; color:#3e4541; font-size:21px; line-height:1.58; letter-spacing:-.012em; text-align:left; text-align-last:auto; word-spacing:normal; }
  .hero-actions .btn { min-height:58px; padding-inline:30px; font-size:16px; font-weight:720; }
  .hero-visual { overflow:visible; }
  .hero-visual img { filter:brightness(1.025) contrast(1.015) saturate(.96); }
  .hero>.standards { margin-top:34px; }
  .hero>.standards .standards-inner { min-height:116px; padding:26px 0 10px; border-top-color:rgba(17,17,17,.07); border-bottom-color:rgba(17,17,17,.07); background:rgba(255,255,255,.26); }
  .hero>.standards .standard { min-height:78px; }
  .hero>.standards .standard img { height:36px; max-width:72px; opacity:.92; }
  .hero>.standards .standard small { margin-top:6px; color:rgba(17,17,17,.56); font-size:9px; font-weight:680; letter-spacing:.055em; }
  .hero>.standards .standards-link { min-height:54px; margin-left:16px; padding-inline:22px; font-size:12px; font-weight:760; }

  /* Regolamento Macchine: card più compatta e visual non dominante. */
  .machine-regulation { padding:96px 0; }
  .machine-regulation-inner { grid-template-columns:minmax(0,.42fr) minmax(0,.58fr); gap:clamp(56px,5vw,78px); align-items:center; min-height:clamp(640px,86svh,780px); max-height:none; padding-top:0; border-radius:30px; }
  .machine-regulation-copy { max-width:620px; padding:0 0 0 clamp(42px,4.5vw,72px); }
  .machine-regulation-eyebrow { margin-bottom:28px; font-size:13px; font-weight:800; letter-spacing:.09em; }
  .machine-regulation h2 { max-width:620px; font-size:clamp(52px,4.55vw,68px); line-height:.99; letter-spacing:-.055em; font-weight:780; }
  .machine-regulation-text { max-width:580px; margin-top:34px; color:#3c423f; font-size:20px; line-height:1.58; }
  .machine-regulation-strong { max-width:560px; margin-top:24px; color:rgba(17,17,17,.82); font-size:18px; line-height:1.52; font-weight:650; }
  .machine-regulation-actions { margin-top:42px; gap:16px; }
  .machine-regulation-visual { min-height:0; border-radius:0 30px 30px 0; }
  .machine-regulation-visual img { width:106%; max-width:none; max-height:min(62vh,650px); object-fit:contain; object-position:center; }

  /* Metodo SIM e competenze integrate: card più leggere e ritmo più preciso. */
  .method { min-height:100svh; padding-block:96px; }
  .method-grid { grid-template-columns:minmax(0,.42fr) minmax(0,.58fr); gap:clamp(64px,5.5vw,86px); align-items:center; }
  .method h2 { max-width:650px; font-size:clamp(56px,4.8vw,72px); line-height:.965; letter-spacing:-.058em; font-weight:800; }
  .method-description { max-width:620px; color:rgba(255,255,255,.70); font-size:21px; line-height:1.56; }
  .method-card { min-height:0; padding:32px 36px; border-radius:24px; background:rgba(255,255,255,.035); box-shadow:0 20px 58px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.035); }
  .method-card-copy h3 { font-size:30px; line-height:1.08; font-weight:720; }
  .method-card-copy p { color:rgba(255,255,255,.66); font-size:18px; line-height:1.5; }
  #servizi .services-head { margin-bottom:42px; }
  #servizi .services-head .section-copy { max-width:690px; }
  #servizi .service-card { min-height:295px; padding:42px 46px; border:1px solid rgba(17,17,17,.05); border-radius:26px; background:rgba(255,255,255,.78); box-shadow:0 30px 70px rgba(0,0,0,.05),inset 0 1px 0 rgba(255,255,255,.90); backdrop-filter:blur(16px) saturate(140%); -webkit-backdrop-filter:blur(16px) saturate(140%); }
  #servizi .service-card::before { display:block; left:46px; width:44px; height:2px; opacity:.86; transition:width 400ms cubic-bezier(.22,.61,.36,1),opacity 400ms ease; }
  #servizi .service-card:hover { border-color:rgba(5,148,68,.16); box-shadow:var(--waves-desktop-shadow-hover); transform:translateY(-8px) scale(1.012); }
  #servizi .service-card:hover::before { width:calc(100% - 92px); }
  #servizi .service-no { display:inline-flex; min-height:28px; padding:0 10px; align-items:center; border:1px solid rgba(5,148,68,.14); border-radius:999px; background:rgba(5,148,68,.055); font-size:11px; font-weight:740; }
  #servizi .service-card h3 { margin-top:58px; color:#111; font-size:clamp(28px,2.2vw,34px); font-weight:680; letter-spacing:-.035em; }
  #servizi .service-card p { max-width:36ch; color:rgba(17,17,17,.58); font-size:17px; line-height:1.58; }

  /* Azienda: paragrafi naturali, niente effetto “testo Word”. */
  .company-hero h1 { max-width:670px; font-size:clamp(70px,5.6vw,90px); }
  .company-hero-copy>p:not(.company-eyebrow) { max-width:560px; color:rgba(17,17,17,.66); font-size:19px; line-height:1.62; text-align:left; text-align-last:auto; }
  .company-philosophy-card { min-height:300px; padding:46px 52px; box-shadow:0 32px 86px rgba(17,17,17,.055),inset 0 1px 0 rgba(255,255,255,.92); }
  .company-philosophy-copy p,.company-why-intro p,.company-final-card>div>p { color:rgba(17,17,17,.64); font-size:17px; line-height:1.62; }
  .company-values-grid { gap:16px; }
  .company-value-card { min-height:360px; padding:30px 26px; }
  .company-value-card h3 { font-size:21px; font-weight:720; }
  .company-value-card p,.company-reasons p,.company-future-overlay p { font-size:14px; line-height:1.58; }

  /* Servizi tecnici: card più leggibili nei viewport laptop. */
  .technical-hero h1 { font-size:clamp(64px,5vw,82px); font-weight:760; }
  .technical-hero-copy>p:not(.technical-eyebrow) { max-width:590px; font-size:19px; line-height:1.62; }
  .technical-services-stage { padding:102px 0 28px; }
  .technical-services-stage .technical-services-grid { gap:clamp(14px,1.25vw,20px); }
  .technical-services-stage .technical-service-card { padding:clamp(20px,1.9vw,30px); border-radius:26px; }
  .technical-services-stage .technical-card-icon { width:58px; height:58px; }
  .technical-services-stage .technical-service-card h3 { margin-top:22px; font-size:clamp(20px,1.65vw,26px); font-weight:720; }
  .technical-services-stage .technical-service-card p { font-size:clamp(13px,.96vw,15.5px); line-height:1.5; }

  /* Chiusura modali: pallino Apple nella posizione relativa corretta. */
  .technical-modal-close,.training-topic-close,.training-course-detail-close {
    width:14px; height:14px; align-self:start; justify-self:start; margin:13px 0 0;
    border:1px solid rgba(120,0,0,.22); background:#ff5f57;
    box-shadow:inset 0 -1px 1px rgba(0,0,0,.12),0 0 0 1px rgba(255,255,255,.35);
  }
  .technical-modal-header,.training-topic-header,.training-course-detail-header { min-height:48px; padding:0 24px; }

  /* Formazione: testi più leggibili e card tematiche più proporzionate. */
  .training-hero { min-height:calc(100svh - 0px); padding:118px 0 58px; }
  .training-hero-grid { min-height:clamp(500px,calc(100svh - 188px),650px); }
  .training-hero h1 { max-width:680px; font-size:clamp(64px,5.15vw,84px); }
  .training-lead { max-width:610px; font-size:18px; line-height:1.66; }
  .training-facts article { min-height:144px; padding:24px 26px 20px; }
  .training-facts svg { width:28px; height:28px; margin-bottom:12px; }
  .training-facts strong,.training-facts span { font-size:15px; }
  .training-category-grid { gap:18px; }
  .training-category-card { min-height:250px; padding:30px 26px 24px; }
  .training-category-card strong { font-size:16px; line-height:1.42; }
  .training-topic-intro p,.training-topic-modal.is-dense-topic .training-topic-intro p,.training-course-detail-copy>p { color:#4e4e4e; font-size:clamp(18px,1.15vw,22px); line-height:1.58; }
  .training-topic-course-copy h4 { font-size:clamp(18px,1.15vw,22px); line-height:1.22; }
  .training-topic-course-description { font-size:clamp(16px,.98vw,18px); line-height:1.46; }
  .training-course-detail-cards li { font-size:clamp(16px,.98vw,19px); line-height:1.5; }

  /* Blog e articoli: card più glass, articolo più editoriale. */
  .blog-hero { padding-top:140px; }
  .blog-hero h1 { font-size:clamp(62px,5.3vw,86px); font-weight:780; }
  .blog-hero-copy>p:not(.blog-kicker) { font-size:20px; line-height:1.62; }
  .blog-grid { gap:30px; }
  .article-card { border-color:rgba(255,255,255,.90); border-radius:26px; background:linear-gradient(155deg,rgba(255,255,255,.86),rgba(255,255,255,.62)); box-shadow:0 26px 70px rgba(17,17,17,.06),inset 0 1px 0 rgba(255,255,255,.96); }
  .article-body { min-height:315px; padding:24px; }
  .article-body h3 { font-size:20.5px; font-weight:720; }
  .article-body p { color:rgba(17,17,17,.60); }
  .single-hero h1 { max-width:1120px; font-size:clamp(60px,5.9vw,88px); }
  .single-excerpt { max-width:920px; font-size:22px; line-height:1.6; }
  .single-content { max-width:1180px; padding:72px clamp(56px,6vw,104px); font-size:20px; line-height:1.8; }
  .single-content h2 { font-size:clamp(38px,3.25vw,52px); }
  .single-content h3 { font-size:31px; }

  /* Footer: densità migliore e gerarchia più ordinata. */
  .site-footer { padding-top:72px; background:linear-gradient(180deg,#f8faf9,#f4f7f6); }
  .footer-grid { grid-template-columns:1.35fr .78fr 1.02fr 1.06fr 1.18fr; gap:clamp(34px,4vw,72px); padding-bottom:58px; }
  .footer-logo { width:102px; margin-bottom:22px; }
  .footer-brand>p,.footer-column p,.footer-column a { font-size:12.5px; line-height:1.7; }
  .footer-column h2 { margin-bottom:16px; font-size:11px; letter-spacing:.075em; }
  .footer-social a { width:34px; height:34px; border-color:rgba(5,148,68,.28); color:var(--waves-green); }
  .footer-bottom { padding-top:22px; font-size:10.5px; }
}

@media (min-width:1101px) and (max-width:1440px) {
  .hero h1 { max-width:700px; font-size:clamp(64px,5.8vw,88px); }
  .hero-lead { max-width:520px; font-size:19px; }
}

@media (min-width:1101px) and (max-height:760px) {
  .hero { padding-top:74px; }
  .hero-grid { min-height:clamp(390px,calc(100svh - 190px),520px); }
  .hero h1 { font-size:clamp(56px,5vw,74px); letter-spacing:-.06em; }
  .hero-lead { margin:22px 0 26px; font-size:18px; line-height:1.5; }
  .hero>.standards { margin-top:22px; }
  .hero>.standards .standards-inner { min-height:98px; padding:20px 0 8px; }
  .machine-regulation { padding:72px 0; }
  .machine-regulation-inner { min-height:600px; }
  .machine-regulation h2 { font-size:clamp(46px,4vw,58px); }
  .machine-regulation-text { margin-top:26px; font-size:18px; }
  .training-topic-modal,.training-course-detail-modal { max-height:calc(100svh - 28px); }
  .training-topic-content,.training-course-detail-content { min-height:0; }
}

@media (min-width:1101px) {
  .legal-content p,.policy-content p,.privacy-content p,.cookie-content p,.accessibility-content p,.legal-document p {
    text-align:justify;
    text-align-last:left;
    hyphens:auto;
    -webkit-hyphens:auto;
  }
}

/* Home image fit 2026: preserve the complete 16:9 artwork in every section. */
body.home .hero-visual {
  overflow:hidden;
}
body.home .hero-visual img,
body.home .hero .hero-visual img {
  inset:3% 2.5%!important;
  width:95%!important;
  height:94%!important;
  max-width:none;
  object-fit:contain!important;
  object-position:right center!important;
  transform:none!important;
}
body.home .hero-visual::after {
  background:linear-gradient(90deg,rgba(248,250,249,.99) 0%,rgba(248,250,249,.96) 29%,rgba(248,250,249,.52) 49%,rgba(248,250,249,.08) 72%,rgba(248,250,249,.18) 91%,rgba(248,250,249,.82) 100%);
}

body.home .machine-regulation-visual {
  --home-image-inset:24px;
  position:relative;
  overflow:hidden;
  background:linear-gradient(145deg,rgba(255,255,255,.72),rgba(244,247,245,.76));
}
body.home .machine-regulation-visual img {
  position:absolute!important;
  inset:var(--home-image-inset)!important;
  width:calc(100% - 48px)!important;
  max-width:calc(100% - 48px)!important;
  height:calc(100% - 48px)!important;
  max-height:none!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
  clip-path:none!important;
}

@media (max-width:1100px) {
  body.home .hero-visual {
    position:relative!important;
    inset:auto!important;
    display:block;
    width:100%;
    height:clamp(340px,52vw,560px);
    min-height:0;
    margin:32px 0 0;
    overflow:hidden;
  }
  body.home .hero-visual img,
  body.home .hero .hero-visual img {
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-position:center center!important;
  }
  body.home .hero-visual::after {
    background:linear-gradient(180deg,rgba(248,250,249,.72) 0%,rgba(248,250,249,.04) 28%,rgba(248,250,249,.08) 78%,rgba(248,250,249,.72) 100%);
  }
  body.home .machine-regulation-visual {
    --home-image-inset:20px;
  }
  body.home .machine-regulation-visual img {
    width:calc(100% - 40px)!important;
    max-width:calc(100% - 40px)!important;
    height:calc(100% - 40px)!important;
  }
}

@media (max-width:700px) {
  body.home .hero-visual {
    display:block!important;
    height:270px;
    margin-top:26px;
  }
  body.home .machine-regulation-visual {
    --home-image-inset:14px;
    min-height:300px;
  }
  body.home .machine-regulation-visual img {
    width:calc(100% - 28px)!important;
    max-width:calc(100% - 28px)!important;
    height:calc(100% - 28px)!important;
  }
}
