/* =========================================================================
   SOLARNET® — design system condiviso (redesign 2026)
   Tipo di sito: software (servizio di monitoraggio + hardware datalogger)
   Palette: carbone + arancio sole del logo, fondo carta calda.
   Font: Archivo (titoli, larghezza estesa) · Instrument Sans (testo) · JetBrains Mono (dati)
   ========================================================================= */

:root {
  /* colore */
  --ink: #15171a;
  --ink-2: #2b2f35;
  --muted: #5b616a;
  --line: #e4dfd5;
  --line-strong: #cfc8bb;
  --paper: #f6f3ee;
  --surface: #ffffff;
  --night: #101215;
  --night-2: #1a1d22;
  --night-3: #252a31;
  --night-line: #2f343c;
  --night-text: #c9ccd2;
  --sun: #ff4e00;
  --sun-deep: #d93a06;
  --sun-ink: #b83000;
  --sun-soft: #fff0e6;
  --ok: #1f9d6b;
  --warn: #e3a008;
  --err: #c2410c;

  /* tipografia */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  --fs-2xl: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --fs-3xl: clamp(2.4rem, 1.4rem + 3.6vw, 4.5rem);

  /* spazi */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem;
  --gutter: 24px;
  --container: 1240px;

  /* raggi */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;

  /* altezze */
  --strip: 44px;
  --hdr: 72px;

  --shadow-1: 0 1px 2px rgba(21,23,26,.06), 0 2px 8px rgba(21,23,26,.05);
  --shadow-2: 0 2px 4px rgba(21,23,26,.06), 0 12px 32px rgba(21,23,26,.10);
  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (max-width: 640px) {
  :root { --gutter: 16px; --hdr: 64px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-stretch: 112%;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 var(--s-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); letter-spacing: -.01em; }
h4 { font-size: var(--fs-lg); letter-spacing: -.005em; }
p { margin: 0 0 var(--s-4); text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--hdr) + 12px); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--sun-ink);
  margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 60ch; }
.mono { font-family: var(--f-mono); }

/* link con sottolineatura che si disegna */
.link {
  color: var(--ink); text-decoration: none; font-weight: 600;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--ease), color .2s;
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 2px; color: var(--sun-ink); }
.link--light { color: #fff; }
.link--light:hover { color: #ffd2bd; }

/* ---------- bottoni (pill) ---------- */
.btn {
  --bg: var(--sun); --fg: #fff; --bd: var(--sun);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-pill); border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font: 600 var(--fs-sm)/1 var(--f-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); --bg: var(--sun-deep); --bd: var(--sun-deep); box-shadow: 0 6px 18px rgba(217,58,6,.25); }
.btn:active { transform: translateY(1px) scale(.98); box-shadow: none; }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); --bd: var(--line-strong); }
.btn--ghost:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); box-shadow: none; }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.35); }
.btn--ghost-light:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; box-shadow: none; }
.btn--light { --bg: #fff; --fg: var(--sun-ink); --bd: #fff; }
.btn--light:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); box-shadow: none; }
.btn--sm { min-height: 44px; padding: 0 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- striscia CCI ---------- */
.strip {
  background: var(--sun-deep); color: #fff;
  min-height: var(--strip);
  display: flex; align-items: center;
  font-size: var(--fs-sm);
}
.strip .container { display: flex; align-items: center; justify-content: center; gap: 16px; padding-block: 6px; text-align: center; }
.strip p { margin: 0; }
.strip sup { font-size: .7em; }
.strip a { color: #fff; font-weight: 700; white-space: nowrap; }

/* ---------- header (nav centrata) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--hdr);
  background: rgba(246,243,238,.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: 4px; list-style: none; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  text-decoration: none; font-weight: 500; font-size: var(--fs-sm); color: var(--ink-2);
  border-radius: var(--r-pill); transition: background-color .2s, color .2s;
}
.nav a:hover { background: rgba(21,23,26,.06); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--sun-ink); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; }
.lang a { min-width: 44px; min-height: 40px; display: grid; place-items: center; font: 600 var(--fs-xs)/1 var(--f-mono); text-decoration: none; color: var(--muted); transition: background-color .2s, color .2s; }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.lang a:not([aria-current="true"]):hover { background: rgba(21,23,26,.06); color: var(--ink); }
.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .25s var(--ease), background-color .2s;
}
.menu-btn span::before { position: absolute; top: -6px; }
.menu-btn span::after { position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; }

@media (max-width: 1180px) {
  .site-header .container { grid-template-columns: auto 1fr auto; }
  .site-header .nav, .header-actions .btn, .header-actions .lang { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu {
    position: fixed; top: var(--hdr); right: 0; bottom: 0; left: 0; z-index: 99;
    background: var(--paper); padding: 24px var(--gutter) 40px;
    overflow-y: auto; display: none; flex-direction: column; gap: 24px;
  }
  .mobile-menu.is-open { display: flex; }
  .mobile-menu ul { list-style: none; display: grid; }
  .mobile-menu ul a {
    display: flex; align-items: center; min-height: 56px; text-decoration: none;
    font: 700 1.5rem/1.1 var(--f-display); font-stretch: 112%; border-bottom: 1px solid var(--line);
  }
  .mobile-menu .btn { width: 100%; }
  .mobile-menu .lang { display: inline-flex; align-self: flex-start; }
  html.menu-open, html.menu-open body { overflow: hidden; }
}

/* ---------- sezioni ---------- */
.section {
  min-height: calc(100svh - var(--hdr));
  padding-block: clamp(56px, 8vh, 96px);
  display: flex; flex-direction: column; justify-content: center;
}
.section--auto { min-height: 0; }
.section--white { background: var(--surface); }
.section--dark { background: var(--night); color: var(--night-text); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark .lead { color: #a3a8b0; }
.section--dark .eyebrow { color: #ff9a6b; }
.section--sun { background: var(--sun-deep); color: #fff; }
.section--sun .eyebrow { color: #fff; }
.section--sun .eyebrow::before { background: #fff; }
.section--sun .lead { color: rgba(255,255,255,.88); }
.section-head { display: grid; gap: 8px; margin-bottom: clamp(28px, 4vh, 48px); max-width: 760px; }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 0; }
.section-head--split { max-width: none; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 32px; }
@media (max-width: 900px) { .section-head--split { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: calc(100svh - var(--hdr) - var(--strip));
  background: var(--night); color: #fff;
  display: flex; align-items: center;
  padding-block: clamp(40px, 6vh, 72px);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(16,18,21,.96) 0%, rgba(16,18,21,.88) 38%, rgba(16,18,21,.55) 70%, rgba(16,18,21,.35) 100%),
    linear-gradient(0deg, rgba(16,18,21,.85) 0%, rgba(16,18,21,0) 40%);
}
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: var(--s-5); }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero .lead { color: #c3c7ce; margin-bottom: var(--s-6); }
.hero .eyebrow { color: #ff9a6b; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 28px; margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgba(255,255,255,.14); list-style: none; }
.hero-facts li { display: grid; gap: 2px; }
.hero-facts strong { font: 700 1.75rem/1 var(--f-display); font-stretch: 112%; color: #fff; letter-spacing: -.02em; }
.hero-facts span { font-size: var(--fs-xs); color: #9aa0a8; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }

/* entrata hero (una volta sola al caricamento) */
.enter { opacity: 0; transform: translateY(18px); animation: enter .9s var(--ease) forwards; }
.enter--2 { animation-delay: .12s; } .enter--3 { animation-delay: .24s; } .enter--4 { animation-delay: .36s; } .enter--5 { animation-delay: .5s; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---------- finestra app (mock UI portale) ---------- */
.app {
  background: #fbfaf8; color: var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden;
  font-size: 14px;
}
.app__bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #efece6; border-bottom: 1px solid var(--line); }
.app__dots { display: flex; gap: 6px; }
.app__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d6d0c5; display: block; }
.app__url { flex: 1; font: 500 12px/1 var(--f-mono); color: var(--muted); background: #fff; border-radius: var(--r-pill); padding: 7px 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.app__body { padding: 16px; display: grid; gap: 12px; }
.app__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.app__title { display: grid; gap: 2px; }
.app__title b { font: 700 16px/1.2 var(--f-display); font-stretch: 112%; }
.app__title span { font-size: 12px; color: var(--muted); }
.live { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--f-mono); color: var(--ok); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31,157,107,.5); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(31,157,107,.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(31,157,107,0); } }
.app__kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px; display: grid; gap: 2px; }
.kpi > span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kpi b { font: 600 20px/1.15 var(--f-mono); letter-spacing: -.02em; }
.kpi b small { font-size: 12px; color: var(--muted); font-weight: 500; }
.app__chart { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px 6px; }
.app__chart-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.app__chart svg { width: 100%; height: auto; }
.curve-line { fill: none; stroke: var(--sun); stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.2s .6s var(--ease) forwards; }
.curve-fill { fill: url(#gSun); opacity: 0; animation: fadein 1s 1.8s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.app__inv { display: grid; gap: 6px; list-style: none; }
.app__inv li { display: grid; grid-template-columns: auto minmax(0,1fr) minmax(60px,110px) 64px; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 10px; font-size: 13px; }
.app__inv .st { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.app__inv .st--err { background: var(--err); }
.app__inv .bar { height: 6px; border-radius: 3px; background: #eee9e1; overflow: hidden; }
.app__inv .bar i { display: block; height: 100%; background: var(--ink-2); border-radius: 3px; }
.app__inv .val { font-family: var(--f-mono); font-size: 12px; }
.app__inv .tag { font: 600 10px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; padding: 4px 6px; border-radius: 4px; background: #e8f6ef; color: #146a48; }
.app__inv .tag--err { background: #fde8de; color: var(--sun-ink); }
.app__alert {
  display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
  background: var(--ink); color: #fff; border-radius: var(--r-md); padding: 10px 12px; font-size: 13px;
}
.app__alert svg { width: 20px; height: 20px; color: var(--sun); }
.app__alert span { color: #a9aeb6; font-size: 12px; display: block; }

/* ---------- servizi (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 16px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; text-decoration: none; color: inherit; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
a.svc:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.svc h3 { font-size: 1.375rem; margin: 0; }
.svc p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.svc__more { margin-top: auto; padding-top: 8px; font-weight: 600; font-size: var(--fs-sm); color: var(--sun-ink); display: inline-flex; align-items: center; gap: 6px; }
.svc__more svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
a.svc:hover .svc__more svg { transform: translateX(4px); }
.svc__tag { font: 500 11px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.svc__vis { margin: 4px 0 6px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); padding: 14px; min-height: 120px; display: grid; place-items: center; }
.svc--a { grid-column: span 7; }
.svc--c { grid-column: span 5; background: var(--night); border-color: var(--night); color: var(--night-text); }
.svc--c h3 { color: #fff; } .svc--c p { color: #a3a8b0; } .svc--c .svc__tag { color: #ff9a6b; } .svc--c .svc__more { color: #ffb28c; }
.svc--c .svc__vis { background: var(--night-2); border-color: var(--night-line); }
.svc--b, .svc--d, .svc--e { grid-column: span 4; }
.svc--f, .svc--g { grid-column: span 6; }
@media (max-width: 1024px) {
  .svc--a, .svc--c { grid-column: span 12; }
  .svc--b, .svc--d, .svc--e { grid-column: span 6; }
  .svc--e { grid-column: span 12; }
}
@media (max-width: 640px) {
  .bento > * { grid-column: span 12 !important; }
}

/* mini-visual: curva */
.mini-curve { width: 100%; height: 120px; }
/* mini-visual: notifiche che si alternano (ciclo 3,6s) */
.notif-stack { position: relative; width: 100%; max-width: 280px; height: 112px; }
.notif {
  position: absolute; left: 0; right: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px;
  box-shadow: var(--shadow-1); opacity: 0; transform: translateY(10px);
  animation: notif 10.8s var(--ease) infinite;
}
.notif:nth-child(2) { animation-delay: 3.6s; }
.notif:nth-child(3) { animation-delay: 7.2s; }
.notif b { display: block; font-size: 13px; }
.notif small { color: var(--muted); font-size: 12px; }
.notif__ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--sun-soft); color: var(--sun-ink); }
.notif__ico svg { width: 16px; height: 16px; }
@keyframes notif { 0% { opacity: 0; transform: translateY(14px); } 6%, 30% { opacity: 1; transform: translateY(16px); } 36%, 100% { opacity: 0; transform: translateY(-6px); } }
/* mini-visual: hub CCI con impulsi */
.hub { width: 100%; height: 150px; }
.hub .wire { stroke: #3a4048; stroke-width: 1.5; fill: none; }
.hub .pulse { stroke: var(--sun); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 10 200; animation: pulse 2.8s linear infinite; }
.hub .pulse:nth-of-type(2) { animation-delay: .5s; } .hub .pulse:nth-of-type(3) { animation-delay: 1s; } .hub .pulse:nth-of-type(4) { animation-delay: 1.5s; }
@keyframes pulse { from { stroke-dashoffset: 210; } to { stroke-dashoffset: 0; } }
.hub text { font: 600 10px var(--f-mono); fill: #c9ccd2; letter-spacing: .04em; }
/* mini-visual: contatore */
.meter { display: grid; gap: 8px; justify-items: center; }
.meter__digits { display: flex; gap: 3px; }
.meter__digits span { font: 600 22px/1 var(--f-mono); background: var(--ink); color: #fff; padding: 8px 6px; border-radius: 5px; min-width: 26px; text-align: center; }
.meter__digits span.dec { background: var(--sun); }
.meter small { font: 500 11px var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
/* mini-visual: barre audit */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; width: 100%; max-width: 260px; }
.bars i { flex: 1; background: var(--line-strong); border-radius: 4px 4px 0 0; display: block; }
.bars i.hi { background: var(--sun); }
/* card app */
.store-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store-badges a { display: inline-block; border-radius: 8px; transition: transform .18s var(--ease); }
.store-badges a:hover { transform: translateY(-2px); }
.store-badges img { height: 48px; width: auto; }

/* ---------- come funziona (diagramma) ---------- */
.flow { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 0 clamp(64px, 9vw, 140px); align-items: center; position: relative; }
.flow__col { display: grid; gap: 12px; list-style: none; }
.flow__node {
  display: flex; align-items: center; gap: 12px;
  background: var(--night-2); border: 1px solid var(--night-line); border-radius: var(--r-md);
  padding: 14px 16px; color: #fff; font-weight: 600; font-size: var(--fs-sm);
}
.flow__node small { display: block; font: 500 11px/1.3 var(--f-mono); color: #8f959e; letter-spacing: .04em; margin-top: 2px; font-weight: 500; }
.flow__ico { width: 36px; height: 36px; border-radius: 8px; background: var(--night-3); display: grid; place-items: center; flex: none; color: #ff9a6b; }
.flow__ico svg { width: 20px; height: 20px; }
.flow__core {
  width: 220px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #2b2018 0%, var(--night-2) 70%);
  border: 1px solid #4a3426; display: grid; place-items: center; text-align: center; padding: 24px;
  box-shadow: 0 0 0 10px rgba(255,78,0,.06), 0 0 0 22px rgba(255,78,0,.035);
}
.flow__core b { display: block; font: 700 1.25rem/1.1 var(--f-display); font-stretch: 112%; color: #fff; }
.flow__core span { font: 500 11px/1.4 var(--f-mono); color: #ffb28c; letter-spacing: .05em; text-transform: uppercase; }
.flow__wires { position: absolute; inset: 0; pointer-events: none; width: 100%; height: 100%; z-index: 0; }
.flow__col, .flow__core { position: relative; z-index: 1; }
.flow__wires path { fill: none; stroke: #3d434c; stroke-width: 1.5; }
.flow__wires path.p { stroke: var(--sun); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 14 400; animation: flowpulse 3.2s linear infinite; }
@keyframes flowpulse { from { stroke-dashoffset: 414; } to { stroke-dashoffset: 0; } }
.flow-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--night-line); }
.protocols { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.protocols li { font: 500 12px/1 var(--f-mono); color: #c9ccd2; border: 1px solid var(--night-line); border-radius: var(--r-pill); padding: 8px 12px; }
@media (max-width: 960px) {
  .flow { grid-template-columns: 1fr; gap: 20px; }
  .flow__core { width: 180px; justify-self: center; }
  .flow__wires { display: none; }
  .flow__col { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px) { .flow__col { grid-template-columns: 1fr; } }

/* ---------- prodotti ---------- */
.products { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  display: grid; grid-template-rows: auto 1fr; overflow: hidden;
}
.product__media { position: relative; background: radial-gradient(120% 90% at 50% 35%, #faf8f4 0%, #ece7df 70%, #e4ded3 100%); height: clamp(340px, 50vh, 470px); overflow: hidden; }
.product__media img {
  position: absolute; inset: 44px 24px 22px; width: calc(100% - 48px); height: calc(100% - 66px);
  object-fit: contain; object-position: center;
  transition: transform .5s var(--ease); filter: drop-shadow(0 22px 26px rgba(21,23,26,.20));
}
.product:hover .product__media img { transform: scale(1.03); }
.product__name { position: absolute; left: 20px; top: 18px; font: 600 12px/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product__body { padding: 24px 28px 28px; display: grid; gap: 14px; align-content: start; }
.product__body h3 { margin: 0; }
.product__body p { margin: 0; color: var(--muted); }
.specs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 20px; border-top: 1px solid var(--line); }
.specs li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.specs li b { font-family: var(--f-mono); font-weight: 600; color: var(--sun-ink); min-width: 2.2em; }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .specs { grid-template-columns: 1fr; } .product__body { padding: 20px; } }
.products-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 24px; }
.products-foot p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- banda CCI ---------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--rev { grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); }
@media (max-width: 960px) { .split, .split--rev { grid-template-columns: 1fr; } }
.ticks { list-style: none; display: grid; gap: 12px; margin: 0 0 var(--s-6); }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.ticks svg { width: 22px; height: 22px; margin-top: 2px; }
.section--sun .ticks svg { color: #fff; }
.frame { background: #fff; border-radius: var(--r-xl); padding: clamp(12px, 2vw, 24px); overflow: hidden; box-shadow: 0 30px 60px rgba(80,20,0,.28); }
.frame img { width: 100%; transition: transform .5s var(--ease); }
.frame:hover img { transform: scale(1.02); }
.note { font-size: var(--fs-xs); opacity: .8; }

/* ---------- chi siamo ---------- */
.photo { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4/3.4; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; list-style: none; margin-top: var(--s-6); }
.facts li { border-top: 2px solid var(--ink); padding-top: 12px; display: grid; gap: 2px; }
.facts strong { font: 700 1.5rem/1.1 var(--f-display); font-stretch: 112%; letter-spacing: -.02em; }
.facts span { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }

/* ---------- installazioni + grafico crescita (momento) ---------- */
.growth { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
@media (max-width: 960px) { .growth { grid-template-columns: 1fr; } }
.growth__big { font: 800 clamp(4rem, 2rem + 8vw, 8.5rem)/.9 var(--f-display); font-stretch: 118%; letter-spacing: -.05em; color: var(--ink); margin: 8px 0 12px; }
.growth__big small { font-size: .38em; letter-spacing: -.02em; color: var(--sun); }
.chart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; }
.chart__head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); }
.chart__head b { color: var(--ink); }
.cols { display: grid; grid-template-columns: repeat(17, minmax(0,1fr)); align-items: end; gap: 6px; min-height: clamp(220px, 34vh, 340px); border-bottom: 1px solid var(--line-strong); }
.cols li { list-style: none; position: relative; height: 100%; display: flex; align-items: flex-end; }
.cols li i {
  display: block; width: 100%; height: var(--h); background: var(--ink-2); border-radius: 4px 4px 0 0;
  transform-origin: bottom; transform: scaleY(1);
  transition: background-color .2s;
}
.cols li:last-child i { background: var(--sun); }
.cols li:hover i { background: var(--sun-deep); }
.cols li .tip {
  position: absolute; left: 50%; bottom: calc(var(--h) + 6px); transform: translateX(-50%);
  font: 600 11px/1 var(--f-mono); color: var(--ink); white-space: nowrap; opacity: 0; transition: opacity .2s;
}
.cols li:hover .tip, .cols li:last-child .tip, .cols li:focus-within .tip { opacity: 1; }
.cols-x { display: grid; grid-template-columns: repeat(17, minmax(0,1fr)); gap: 6px; font: 500 10px/1 var(--f-mono); color: var(--muted); text-align: center; }
.cols-x span:nth-child(even) { visibility: hidden; }
.js .growth-anim .cols li i { transform: scaleY(0); }
.js .growth-anim.is-in .cols li i { transform: scaleY(1); transition: transform 1s var(--ease) calc(var(--i) * 55ms), background-color .2s; }
@media (max-width: 520px) { .cols { gap: 3px; } .cols-x { gap: 3px; } .cols-x span:nth-child(4n+2), .cols-x span:nth-child(4n+3), .cols-x span:nth-child(4n+4) { visibility: hidden; } .cols-x span:last-child { visibility: visible; } }
.map-cta { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 180px; display: flex; align-items: flex-end; padding: 24px; color: #fff; text-decoration: none; margin-top: 20px; isolation: isolate; }
.map-cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.map-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(16,18,21,.85), rgba(16,18,21,.15)); }
.map-cta:hover img { transform: scale(1.03); }
.map-cta b { font: 700 1.375rem/1.15 var(--f-display); font-stretch: 112%; display: block; }
.map-cta span { display: inline-flex; gap: 8px; align-items: center; margin-top: 6px; font-weight: 600; font-size: var(--fs-sm); color: #ffd2bd; }
.map-cta svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.map-cta:hover svg { transform: translateX(4px); }

/* ---------- dispositivi compatibili ---------- */
.dev-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface);
  font: 600 var(--fs-sm)/1 var(--f-body); color: var(--ink-2); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .15s;
}
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip span { font: 500 11px/1 var(--f-mono); opacity: .7; }
.search { display: grid; gap: 6px; min-width: min(280px, 100%); }
.search label { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.search input {
  min-height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface);
  padding: 0 18px; font: inherit; font-size: var(--fs-sm); color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,78,0,.25); }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; list-style: none; }
.dev { display: block; }
.dev > a, .dev > div {
  height: 100%; display: grid; grid-template-rows: 56px auto; gap: 8px; align-items: center; justify-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 12px 10px; text-decoration: none; color: var(--ink-2);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.dev > a:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); border-color: var(--line-strong); }
.dev img { max-height: 48px; max-width: 120px; width: auto; object-fit: contain; }
.dev span { font: 600 11px/1.2 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; text-align: center; }
.dev[hidden] { display: none; }
.dev-empty { padding: 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.dev-more { display: flex; justify-content: center; margin-top: 20px; }
@media (max-width: 520px) { .dev-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* ---------- partner ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logo-wall a, .logo-wall div { display: grid; place-items: center; height: 92px; padding: 14px; background: var(--surface); transition: background-color .2s; }
.logo-wall a:hover { background: var(--paper); }
.logo-wall img { max-height: 52px; max-width: 116px; width: auto; object-fit: contain; transition: transform .25s var(--ease); }
.logo-wall a:hover img { transform: scale(1.03); }

/* ---------- contatti / form ---------- */
.contact { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; gap: 0; margin: var(--s-6) 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.contact-list li > span:first-child { font: 500 11px/1.6 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 420px) { .contact-list li { grid-template-columns: 1fr; gap: 2px; } }
.assist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 10px; }
.assist h3 { font-size: 1.125rem; margin: 0; }
.assist p { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow-1); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.field__input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fdfcfa;
  font: inherit; font-size: var(--fs-md); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea.field__input { min-height: 150px; resize: vertical; }
.field__input:hover { border-color: #b9b1a2; }
.field__input:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(255,78,0,.22); }
.field__error { color: var(--err) !important; font-size: var(--fs-xs); font-weight: 600; }
.consent { font-size: var(--fs-xs); color: var(--muted); line-height: 1.55; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form-actions .g-recaptcha { min-height: 78px; }
.form-submit { min-width: 200px; }
.form-alert { display: block; color: var(--err) !important; font-weight: 600; font-size: var(--fs-sm); }
@media (max-width: 640px) { .form-submit { width: 100%; } .form-actions .g-recaptcha { transform: scale(.94); transform-origin: left top; } }

/* ---------- footer (scuro) ---------- */
.site-footer { background: var(--night); color: var(--night-text); padding: clamp(56px, 8vh, 88px) 0 28px; font-size: var(--fs-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.footer-top { display: grid; grid-template-columns: minmax(0,1.3fr) repeat(3, minmax(0,1fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--night-line); }
.footer-top img.logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer-top h2 { font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #8f959e; margin: 6px 0 16px; }
.footer-top ul { list-style: none; display: grid; gap: 4px; }
.footer-top ul a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-top ul a:hover { color: #ffb28c; }
.footer-top p { margin: 0 0 6px; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--night-line); transition: background-color .2s, transform .18s var(--ease); }
.social a:hover { background: var(--night-2); transform: translateY(-2px); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: var(--fs-xs); color: #8f959e; }
.footer-bottom a { color: #c9ccd2; }
.footer-word { font: 800 clamp(3.5rem, 1rem + 11vw, 11rem)/.85 var(--f-display); font-stretch: 125%; letter-spacing: -.05em; color: var(--night-2); margin: 40px 0 0; user-select: none; white-space: nowrap; overflow: hidden; }
.footer-word span { color: #2a1a12; }
@media (max-width: 900px) { .footer-top { grid-template-columns: repeat(2, minmax(0,1fr)); } .footer-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- pagine interne ---------- */
.page-hero { background: var(--night); color: #fff; padding-block: clamp(56px, 10vh, 120px) clamp(48px, 8vh, 96px); position: relative; overflow: hidden; isolation: isolate; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { color: #b9bdc4; }
.page-hero .eyebrow { color: #ff9a6b; }
.page-hero--split .container { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .page-hero--split .container { grid-template-columns: 1fr; } }
.page-hero--full { min-height: calc(100svh - var(--hdr) - var(--strip)); display: flex; align-items: center; }
.page-hero__media { border-radius: var(--r-xl); overflow: hidden; background: #fff; aspect-ratio: 1/0.9; display: grid; place-items: center; }
.page-hero__media img { width: 86%; height: auto; transition: transform .6s var(--ease); }
.page-hero__media:hover img { transform: scale(1.03); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; list-style: none; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 10px; align-content: start; counter-increment: step; }
.steps li::before { content: "0" counter(step); font: 600 12px/1 var(--f-mono); color: var(--sun-ink); letter-spacing: .08em; }
.steps h3 { font-size: 1.25rem; margin: 0; }
.steps p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.adv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; }
.adv li { border-top: 2px solid var(--sun); padding-top: 16px; display: grid; gap: 6px; align-content: start; }
.adv b { font: 700 1.125rem/1.2 var(--f-display); font-stretch: 112%; color: #fff; }
.adv span { font-size: var(--fs-sm); color: #a3a8b0; }
.schema { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(12px, 2.5vw, 32px); overflow: hidden; }
.schema img { width: 100%; transition: transform .5s var(--ease); }
.schema:hover img { transform: scale(1.02); }

.map-wrap { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: #e9e3d6; box-shadow: var(--shadow-2); }
.map-wrap iframe { display: block; width: 100%; height: clamp(460px, calc(100svh - var(--hdr) - 220px), 820px); border: 0; }

.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; padding-block: clamp(48px, 7vh, 88px); }
.legal nav { position: sticky; top: calc(var(--hdr) + 24px); }
.legal nav h2 { font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.legal nav ul { list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal nav a { display: block; padding: 6px 0 6px 14px; text-decoration: none; font-size: var(--fs-sm); color: var(--muted); margin-left: -1px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; }
.legal nav a:hover { color: var(--ink); border-left-color: var(--sun); }
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--fs-xl); margin: 2.4em 0 .6em; padding-top: 1em; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.25rem; margin: 1.8em 0 .5em; }
.prose h4 { font-size: 1.0625rem; margin: 1.5em 0 .4em; font-stretch: 100%; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 8px; }
.prose a { color: var(--sun-ink); font-weight: 600; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .legal nav { position: static; } }

.thanks { min-height: calc(100svh - var(--hdr) - var(--strip)); display: grid; align-items: center; background: var(--paper); padding-block: 64px; }
.thanks__inner { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.thanks__check { width: 64px; height: 64px; border-radius: 50%; background: var(--sun); color: #fff; display: grid; place-items: center; margin-bottom: 24px; animation: pop .6s var(--ease) both; }
.thanks__check svg { width: 30px; height: 30px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .35s var(--ease) forwards; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 900px) { .thanks__inner { grid-template-columns: 1fr; } }

/* ---------- responsive hero ---------- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero::before { background: linear-gradient(180deg, rgba(16,18,21,.94) 0%, rgba(16,18,21,.86) 60%, rgba(16,18,21,.94) 100%); }
  .hero-facts { margin-top: var(--s-6); }
}
@media (max-width: 640px) {
  .hero .btn-row .btn { width: 100%; }
  .hero-facts { gap: 18px; }
  .hero-facts strong { font-size: 1.4rem; }
  .app__kpis { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .kpi { padding: 8px; } .kpi b { font-size: 15px; }
  .app__inv li { grid-template-columns: auto 1fr auto; } .app__inv .bar { display: none; }
  .section .btn-row .btn { width: 100%; }
  .strip { font-size: var(--fs-xs); }
  .strip .container { gap: 10px; justify-content: space-between; text-align: left; }
  .strip .note-hide, .strip .strip-long { display: none; }
  .svc--b .svc__vis, .svc--d .svc__vis, .svc--e .svc__vis { display: none; }
  .svc { padding: 20px; }
  .product__media { height: 300px; }
  .logo-wall { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .logo-wall a, .logo-wall div { height: 64px; padding: 8px; }
  .logo-wall img { max-height: 36px; max-width: 100%; }
}

/* ---------- schermi stretti ---------- */
@media (max-width: 960px) {
  .contact, .split, .split--rev, .growth, .page-hero--split .container, .thanks__inner, .legal { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
  .form-card { padding: 16px; }
}
@media (max-width: 400px) {
  :root { --fs-3xl: 2.1rem; --fs-2xl: 1.8rem; }
  .form-actions .g-recaptcha { transform: scale(.86); transform-origin: left top; width: 262px; height: 68px; }
  .contact-list a { overflow-wrap: anywhere; }
}

/* ---------- movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .enter { opacity: 1; transform: none; }
  .curve-line { stroke-dashoffset: 0; } .curve-fill { opacity: 1; }
  .notif { animation: none !important; opacity: 0; } .notif:first-child { opacity: 1; transform: translateY(16px); }
  .hub .pulse, .flow__wires path.p { display: none; }
  .js .growth-anim .cols li i { transform: scaleY(1); }
}
