/* =========================================================
   HydroPro — design system
   Palette del marchio (blu / rosso), impaginazione editoriale,
   tipografia display + etichette monospazio, bordi a filo.
   ========================================================= */

:root {
  /* --- colore --- */
  --ink:        #0B1A33;   /* testo e superfici scure */
  --ink-soft:   #4A5A75;   /* testo secondario */
  --ink-faint:  #8494AC;
  --paper:      #FBFAF8;   /* fondo pagina, bianco caldo */
  --surface:    #FFFFFF;
  --tint:       #EDF1FC;   /* azzurro del marchio */
  --blu:        #355BA7;
  --blu-deep:   #0E2249;
  --rosso:      #FF0000;
  --rosso-deep: #DC0000;

  --line:        rgba(11, 26, 51, .11);
  --line-strong: rgba(11, 26, 51, .22);
  --line-light:  rgba(255, 255, 255, .16);

  /* --- forma --- */
  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --maxw: 1280px;
  --pad:  clamp(20px, 5vw, 56px);
  --gap:  clamp(12px, 1.2vw, 18px);

  /* --- tipografia --- */
  --display: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink-soft);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern" 1;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--rosso);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.02;
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7vw, 6rem); line-height: 1.03; letter-spacing: -.035em; }
h2 { font-size: clamp(1.95rem, 3.9vw, 3.3rem); line-height: 1.06; }
h3 { font-size: clamp(1.3rem, 2vw, 1.9rem); letter-spacing: -.022em; }
h4 { font-size: 1.1rem; letter-spacing: -.02em; }
p  { margin: 0 0 1.05em; }

strong { color: var(--ink); font-weight: 700; }
::selection { background: var(--ink); color: #fff; }

/* grana leggera sulle superfici scure */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding: clamp(76px, 9.5vw, 150px) 0; position: relative; }
.section--tight { padding: clamp(56px, 6.5vw, 96px) 0; }
.section--azzurro { background: var(--tint); }
.section--blu { background: var(--ink); color: rgba(255, 255, 255, .72); }
.section--blu h2, .section--blu h3, .section--blu h4 { color: #fff; }

.grid { display: grid; gap: clamp(30px, 4.5vw, 72px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }

/* ---------- etichette e titoli ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .78rem; font-weight: 800;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; background: var(--rosso);
  border-radius: 1px; transform: rotate(45deg); flex: 0 0 7px;
}
.section--blu .eyebrow, .diag .eyebrow, .page-hero .eyebrow { color: rgba(255, 255, 255, .62); }

.lead {
  font-size: clamp(1.05rem, 1.35vw, 1.22rem); line-height: 1.55;
  color: var(--ink-soft); max-width: 58ch; font-weight: 450;
}
.section--blu .lead { color: rgba(255, 255, 255, .72); }

.sec-head {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 30px 60px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(24px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
}
.sec-head h2 { margin: 0; }
.sec-head .gscore { justify-self: end; }
.sec-head .lead { margin: 0; }
.section--blu .sec-head, .diag .sec-head { border-bottom-color: var(--line-light); }

/* ---------- bottoni ---------- */
.btn {
  --bg: var(--rosso); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-weight: 700; font-size: .94rem; letter-spacing: -.01em;
  line-height: 1; white-space: nowrap;
  transition: transform .35s var(--ease), background .3s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 1px 2px rgba(11, 26, 51, .18);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(11, 26, 51, .5); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:hover { background: var(--rosso-deep); }

.btn--blu { --bg: var(--ink); }
.btn--blu:hover { background: var(--blu); }

.btn--ghost {
  --bg: transparent; --fg: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px currentColor; }

.btn--sm { padding: 11px 20px; font-size: .86rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  padding-bottom: 3px; border-bottom: 1px solid var(--line-strong);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--rosso); border-color: var(--rosso); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- barra di avanzamento ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: var(--rosso); z-index: 200;
}

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h); display: flex; align-items: center;
  transition: height .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 26, 51, .5), transparent);
  transition: opacity .4s var(--ease);
}
.header.is-stuck {
  height: 68px;
  background: rgba(11, 26, 51, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line-light);
}
.header.is-stuck::before { opacity: 0; }

.header__inner {
  position: relative; width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: var(--pad);
  display: flex; align-items: center; gap: 22px;
}
.logo { margin-right: auto; }
.logo img { height: 44px; width: auto; transition: height .4s var(--ease); }
.header.is-stuck .logo img { height: 34px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative; display: block; padding: 9px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .78);
  transition: color .3s var(--ease), background .3s var(--ease);
}
.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav__link.is-active { color: #fff; background: rgba(255, 255, 255, .12); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--rosso);
}

.lang-wrap { position: relative; }
.lang {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .8); padding: 8px 12px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line-light);
  transition: color .3s var(--ease), border-color .3s var(--ease); cursor: pointer;
}
.lang:hover { color: #fff; border-color: rgba(255, 255, 255, .45); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 140px; padding: 6px;
  background: rgba(11, 26, 51, .95); backdrop-filter: blur(16px);
  border: 1px solid var(--line-light); border-radius: var(--r-sm);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .3s var(--ease);
}
.lang-wrap:hover .lang-menu, .lang-wrap:focus-within .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a {
  display: block; padding: 9px 12px; border-radius: var(--r-xs); color: rgba(255, 255, 255, .8);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .06em;
  transition: background .25s, color .25s;
}
.lang-menu a:hover, .lang-menu a.is-active { background: rgba(255, 255, 255, .12); color: #fff; }

.header__cta { display: inline-flex; }
.header__cta .btn { padding: 11px 20px; font-size: .86rem; }

.burger {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .1); border: 1px solid var(--line-light);
  position: relative;
}
.burger span {
  position: absolute; left: 12px; width: 20px; height: 1.5px; border-radius: 2px;
  background: #fff; transition: transform .4s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21.5px; }
.burger span:nth-child(3) { top: 27px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* menu mobile */
.drawer {
  position: fixed; inset: 0; z-index: 99; background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px var(--pad) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .65s var(--ease);
  pointer-events: none;
}
body.menu-open .drawer { clip-path: inset(0 0 0 0); pointer-events: auto; }
.drawer a {
  font-family: var(--display); color: #fff;
  font-size: clamp(2.2rem, 9vw, 3.4rem); font-weight: 700; letter-spacing: -.04em;
  padding: 8px 0; border-bottom: 1px solid var(--line-light);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
body.menu-open .drawer a { opacity: 1; transform: none; }
body.menu-open .drawer a:nth-child(1) { transition-delay: .1s; }
body.menu-open .drawer a:nth-child(2) { transition-delay: .16s; }
body.menu-open .drawer a:nth-child(3) { transition-delay: .22s; }
body.menu-open .drawer a:nth-child(4) { transition-delay: .28s; }
.drawer a:hover { color: var(--rosso); }
.drawer__foot {
  margin-top: 40px; display: flex; flex-direction: column; gap: 6px;
  font-family: var(--mono); font-size: .88rem; color: rgba(255, 255, 255, .6);
}
.drawer__foot a { font-size: .95rem; opacity: 1; transform: none; border: 0; padding: 2px 0; color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 clamp(40px, 6vw, 72px);
  background: var(--ink); overflow: hidden; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 20%;
  filter: grayscale(.35) contrast(1.06); will-change: transform;
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(96deg, rgba(11, 26, 51, .95) 0%, rgba(11, 26, 51, .82) 38%, rgba(11, 26, 51, .25) 66%, rgba(14, 34, 73, .5) 100%),
    linear-gradient(0deg, rgba(11, 26, 51, .9) 0%, transparent 52%);
}
.hero__glow {
  position: absolute; z-index: 1; border-radius: 50%; filter: blur(110px); opacity: .5;
  animation: float 18s ease-in-out infinite;
}
.hero__glow--a { width: 520px; height: 520px; background: rgba(53, 91, 167, .7); left: -140px; top: 8%; }
.hero__glow--b { width: 340px; height: 340px; background: rgba(255, 0, 0, .28); right: 18%; bottom: 2%; animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(26px, -34px, 0) scale(1.1); }
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 15px 8px 11px; border-radius: 999px; margin-bottom: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line-light);
  backdrop-filter: blur(10px); color: rgba(255, 255, 255, .88);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em;
}
.hero__badge b { color: #fff; font-weight: 500; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #35D07F; position: relative; }
.dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid rgba(53, 208, 127, .5); animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

.hero h1 { color: #fff; max-width: 13ch; margin-bottom: clamp(20px, 2.5vw, 28px); }
.hero h1 .accent {
  background: linear-gradient(100deg, #FFFFFF 15%, #A8C6FF 55%, #FFFFFF 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  color: rgba(255, 255, 255, .8); font-size: clamp(1.05rem, 1.4vw, 1.28rem);
  max-width: 44ch; font-weight: 450; margin-bottom: clamp(26px, 3.2vw, 38px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__actions .btn--ghost { color: #fff; }

.hero__stats {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  margin-top: clamp(44px, 6vw, 80px); padding-top: 24px;
  border-top: 1px solid var(--line-light);
}
.stat b, .stat b span {
  display: block; font-family: var(--display); font-size: clamp(2.1rem, 3.6vw, 3.2rem);
  font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.stat > span {
  display: block; margin-top: 8px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255, 255, 255, .5);
}

.hero__scroll {
  position: absolute; z-index: 3; right: var(--pad); bottom: clamp(40px, 6vw, 72px);
  color: rgba(255, 255, 255, .45); font-family: var(--mono); font-size: .66rem;
  letter-spacing: .2em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.hero__scroll i { width: 44px; height: 1px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: -100%; top: 0; width: 100%; height: 1px;
  background: var(--rosso); animation: drop 2.4s ease-in-out infinite;
}
@keyframes drop { 0% { left: -100%; } 60%, 100% { left: 110%; } }

.wave { display: none; }

/* ---------- fascia emergenza ---------- */
.emergency { position: relative; background: var(--rosso); color: #fff; overflow: hidden; }
.emergency::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(0, 0, 0, .07) 0 12px, transparent 12px 34px);
}
.emergency__inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 20px 0;
}
.emergency__icon {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28);
}
.emergency__icon svg { width: 23px; height: 23px; }
.emergency__txt { flex: 1 1 320px; }
.emergency__txt b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.1rem, 1.7vw, 1.4rem); letter-spacing: -.03em;
}
.emergency__txt span { font-size: .93rem; color: rgba(255, 255, 255, .85); }
.emergency .btn { --bg: #fff; --fg: var(--rosso); }
.emergency .btn:hover { background: var(--ink); color: #fff; }

/* ---------- schede ---------- */
.card {
  position: relative; padding: 30px 28px 28px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
  display: flex; flex-direction: column;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--rosso); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .5s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(53, 91, 167, .07), transparent 70%);
  transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 24px 50px -34px rgba(11, 26, 51, .5); }
.card:hover::before { transform: scaleX(1); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card__num {
  position: absolute; top: 26px; right: 28px; z-index: 2;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--ink-faint);
}
.card__icon {
  width: 52px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--tint); color: var(--blu); margin-bottom: 20px;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.card:hover .card__icon { background: var(--ink); color: #fff; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.24rem; margin-bottom: 8px; }
.card p { font-size: .94rem; color: var(--ink-soft); margin-bottom: 22px; }
.card .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- servizi: elenco editoriale ---------- */
.svclist { border-top: 1px solid var(--line); }
.svcrow {
  position: relative; display: grid; align-items: center;
  grid-template-columns: 64px 46px minmax(0, 1fr) minmax(0, 1.15fr) 44px;
  gap: 0 24px; padding: 30px 8px; border-bottom: 1px solid var(--line);
  transition: background .45s var(--ease), padding-left .45s var(--ease);
}
.svcrow::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--rosso); transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .45s var(--ease);
}
.svcrow:hover { background: rgba(11, 26, 51, .03); padding-left: 22px; }
.svcrow:hover::before { transform: scaleY(1); transform-origin: 50% 0; }

.svcrow__n {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em;
  color: var(--ink-faint); transition: color .4s var(--ease);
}
.svcrow:hover .svcrow__n { color: var(--rosso); }

.svcrow__ico {
  width: 46px; height: 46px; display: grid; place-items: center;
  color: var(--blu); transition: color .4s var(--ease), transform .5s var(--ease);
}
.svcrow__ico svg { width: 26px; height: 26px; }
.svcrow:hover .svcrow__ico { color: var(--ink); transform: scale(1.1); }

.svcrow__t {
  margin: 0; font-size: clamp(1.3rem, 2.1vw, 1.85rem); letter-spacing: -.03em;
  transition: color .4s var(--ease);
}
.svcrow:hover .svcrow__t { color: var(--rosso); }
.svcrow__d { margin: 0; font-size: .95rem; color: var(--ink-soft); }

.svcrow__a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink);
  opacity: 0; transform: translateX(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), background .4s, color .4s;
}
.svcrow__a svg { width: 17px; height: 17px; }
.svcrow:hover .svcrow__a { opacity: 1; transform: none; background: var(--ink); color: #fff; border-color: var(--ink); }

.svclist__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin: 30px 0 0; color: var(--ink-soft); font-size: .98rem;
}


@media (max-width: 900px) {
  .svcrow {
    grid-template-columns: 46px 1fr; grid-template-areas: "n t" ". d";
    gap: 6px 16px; padding: 24px 4px;
  }
  .svcrow__n   { grid-area: n; }
  .svcrow__ico { display: none; }
  .svcrow__t   { grid-area: t; }
  .svcrow__d   { grid-area: d; }
  .svcrow__a   { display: none; }
  .svcrow:hover { padding-left: 4px; }
}

/* ---------- elenchi con spunta ---------- */
.checks { list-style: none; margin: 0; padding: 0; display: grid; }
.checks li {
  display: flex; gap: 16px; align-items: flex-start; font-size: .98rem;
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.checks li:first-child { padding-top: 0; }
.checks li::before {
  content: ""; flex: 0 0 18px; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%;
  border: 1.5px solid var(--rosso);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF0000' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.section--blu .checks li { color: rgba(255, 255, 255, .88); border-bottom-color: var(--line-light); }

/* ---------- immagini con cornice ---------- */
.framed { position: relative; }
.framed::after {
  content: ""; position: absolute; right: -14px; bottom: -14px; left: 44px; top: 44px;
  border: 1px solid var(--rosso); border-radius: var(--r-lg); z-index: 0;
}
.framed--left::after { right: 44px; left: -14px; }
.framed img {
  position: relative; z-index: 1; width: 100%; border-radius: var(--r-lg);
  will-change: transform;
}

/* ---------- banda claim ---------- */
.claim { text-align: center; }
.claim h2 { max-width: 20ch; margin-inline: auto; }
.claim p { max-width: 62ch; margin-inline: auto; color: var(--ink-soft); }
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 32px; }
.brands span {
  padding: 9px 18px; border-radius: 999px; background: transparent; border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--ink);
  transition: background .35s var(--ease), color .35s, border-color .35s;
}
.brands span:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- come funziona ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; }
.step {
  position: relative; padding: 34px 32px 34px 0; border-top: 2px solid var(--ink);
  margin-right: 32px;
}
.step:last-child { margin-right: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em;
  color: var(--rosso); margin-bottom: 18px;
}
.step h4 { font-size: 1.3rem; margin-bottom: 10px; font-family: var(--display); }
.step p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ---------- galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.gallery__item {
  position: relative; border: 0; padding: 0; overflow: hidden; border-radius: var(--r-lg);
  aspect-ratio: 4 / 5; background: var(--tint); display: block; width: 100%;
}
.gallery__item:nth-child(2) { aspect-ratio: 4 / 5; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.25); transition: transform .9s var(--ease), filter .6s var(--ease);
}
.gallery__item::after {
  content: ""; position: absolute; inset: 0; opacity: .55;
  background: linear-gradient(0deg, rgba(11, 26, 51, .92), transparent 58%);
  transition: opacity .45s var(--ease);
}
.gallery__item:hover img { transform: scale(1.05); filter: none; }
.gallery__item:hover::after { opacity: .8; }
.gallery__cap {
  position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; text-align: left;
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em;
  transform: translateY(8px); opacity: .9; transition: transform .45s var(--ease), opacity .45s;
}
.gallery__cap small {
  display: block; font-family: var(--mono); font-weight: 400; font-size: .72rem;
  letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); margin-top: 6px;
}
.gallery__item:hover .gallery__cap { transform: none; opacity: 1; }
.gallery__zoom {
  position: absolute; z-index: 2; top: 18px; right: 18px; width: 38px; height: 38px;
  border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: #fff;
  opacity: 0; transform: scale(.7); transition: all .4s var(--ease);
}
.gallery__item:hover .gallery__zoom { opacity: 1; transform: none; }
.gallery__zoom svg { width: 17px; height: 17px; }

.lightbox {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(11, 26, 51, .95); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  padding: 5vh 5vw;
}
.lightbox.is-on { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: var(--r); }
.lightbox__cap {
  color: #fff; text-align: center; margin-top: 18px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--rosso); border-color: var(--rosso); transform: scale(1.06); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav svg, .lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: 22px; top: 50%; margin-top: -24px; }
.lightbox__nav--next { right: 22px; top: 50%; margin-top: -24px; }

/* ---------- timeline ---------- */
.timeline { position: relative; margin-top: 28px; }
.timeline__fill { display: none; }
.tl-item {
  position: relative; padding: 22px 0 22px 0; border-top: 1px solid var(--line-light);
  display: grid; grid-template-columns: 130px 1fr; gap: 8px 28px; align-items: start;
  transition: border-color .4s var(--ease);
}
.tl-item.is-on { border-top-color: rgba(255, 255, 255, .38); }
.tl-item b {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .1em;
  color: rgba(255, 255, 255, .5); font-weight: 400; padding-top: 4px;
  transition: color .4s var(--ease);
}
.tl-item.is-on b { color: var(--rosso); }
.tl-item h4 { color: #fff; margin: 0 0 6px; font-size: 1.2rem; grid-column: 2; }
.tl-item p { color: rgba(255, 255, 255, .66); font-size: .95rem; margin: 0; grid-column: 2; }

/* ---------- perché sceglierci ---------- */
.why { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin-top: 36px; }
.why__item {
  padding: 24px 0; border-top: 1px solid var(--line);
  display: flex; gap: 16px; align-items: flex-start;
}
.why__item svg { width: 22px; height: 22px; color: var(--rosso); flex: 0 0 22px; margin-top: 2px; }
.why__item h4 { margin: 0; font-size: 1rem; line-height: 1.4; font-family: var(--sans); font-weight: 700; }

/* ---------- recensioni ---------- */
.reviews { columns: 3; column-gap: var(--gap); }
.review {
  break-inside: avoid; -webkit-column-break-inside: avoid;
  display: block; margin: 0 0 var(--gap);
  padding: 26px 26px 22px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .4s var(--ease), box-shadow .45s var(--ease);
}
.review:hover {
  transform: translateY(-4px); border-color: var(--line-strong);
  box-shadow: 0 22px 44px -32px rgba(11, 26, 51, .55);
}
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.review__src { width: 18px; height: 18px; flex: 0 0 18px; }
.review__src svg { width: 100%; height: 100%; display: block; }
.stars { display: flex; gap: 2px; color: #F5B400; }
.stars svg { width: 15px; height: 15px; }
.review p { margin: 0 0 18px; font-size: .99rem; line-height: 1.6; color: var(--ink); }
.review footer {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--line);
}
.review .avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--tint); color: var(--blu); font-weight: 800; font-size: .95rem; flex: 0 0 38px;
}
.review b { display: block; color: var(--ink); font-size: .93rem; }
.review small { font-size: .74rem; color: var(--ink-faint); letter-spacing: .06em; font-weight: 700; }

.reviews__cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  margin: clamp(20px, 2.5vw, 30px) 0 0;
}
.reviews__note { font-size: .82rem; color: var(--ink-faint); }

/* ---------- zone servite ---------- */
.zones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.zones span {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-light);
  font-family: var(--mono); font-size: .76rem; color: rgba(255, 255, 255, .8);
  transition: background .3s var(--ease), color .3s, border-color .3s;
}
.zones span:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- FAQ ---------- */
.faq { display: grid; max-width: 920px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 56px 26px 0; position: relative;
  font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem); letter-spacing: -.025em; line-height: 1.3;
  transition: color .3s var(--ease);
}
.faq summary:hover { color: var(--rosso); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; margin-top: -9px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1A33' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/18px no-repeat;
  transition: transform .4s var(--ease);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details[open] summary { color: var(--rosso); }
.faq .faq__body { padding: 0 60px 28px 0; color: var(--ink-soft); font-size: 1rem; max-width: 68ch; }
.faq .faq__body p { margin: 0; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--ink); text-align: center; isolation: isolate; }
.cta__media { position: absolute; inset: 0; }
.cta__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%;
  filter: grayscale(.5) contrast(1.05); will-change: transform;
}
.cta__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 26, 51, .88), rgba(11, 26, 51, .92));
}
.cta .wrap { position: relative; z-index: 2; }
.cta h2 { color: #fff; max-width: 17ch; margin-inline: auto; }
.cta p { color: rgba(255, 255, 255, .74); max-width: 48ch; margin-inline: auto; margin-bottom: 30px; }

/* ---------- form ---------- */
.formcard {
  background: var(--surface); border-radius: var(--r-lg); padding: clamp(26px, 3.4vw, 44px);
  border: 1px solid var(--line);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input, .field textarea, .field select {
  width: 100%; padding: 22px 16px 9px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: inherit; font-size: .97rem;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; padding-top: 26px; }
.field label {
  position: absolute; left: 17px; top: 15px; font-size: .95rem; color: var(--ink-faint);
  pointer-events: none; transition: all .25s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink); background: #fff;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: 8px; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft);
}
.field select {
  appearance: none; cursor: pointer; padding-top: 24px; padding-bottom: 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A5A75' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 14px;
}
.field .label-fixed {
  position: absolute; left: 17px; top: 8px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); pointer-events: none;
}

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--ink-soft); margin: 18px 0 20px; }
.consent input {
  appearance: none; flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: var(--paper); margin-top: 1px;
  transition: all .25s; cursor: pointer;
}
.consent input:checked {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
  border-color: var(--ink);
}
.consent a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.form-msg { margin-top: 16px; font-size: .92rem; font-weight: 600; color: var(--blu); display: none; }
.form-msg.is-on { display: block; }
.form-msg.is-ko { color: var(--rosso); }

/* ---------- contatti ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.contact-card {
  display: flex; gap: 18px; align-items: flex-start; padding: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform .45s var(--ease), border-color .4s;
}
.contact-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.contact-card .ico {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: var(--tint); color: var(--rosso);
}
.contact-card .ico svg { width: 21px; height: 21px; }
.contact-card h4 {
  margin: 0 0 5px; font-family: var(--mono); font-size: .7rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.contact-card p {
  margin: 0; font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: 1.1rem; letter-spacing: -.025em; line-height: 1.3;
}

.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); height: 420px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); transition: filter .5s; }
.map:hover iframe { filter: grayscale(.2); }

.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: transparent; color: var(--ink); border: 1px solid var(--line-strong);
  transition: all .35s var(--ease);
}
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-4px); }
.socials svg { width: 19px; height: 19px; }

/* ---------- hero delle pagine interne ---------- */
.page-hero {
  position: relative; padding: calc(var(--header-h) + 76px) 0 clamp(56px, 7vw, 96px);
  background: var(--ink); overflow: hidden; color: rgba(255, 255, 255, .74); isolation: isolate;
}
.page-hero::after {
  content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 91, 167, .55), transparent 68%);
  right: -220px; top: -280px; filter: blur(40px); z-index: 0;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255, 255, 255, .74); }
.crumbs {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 255, 255, .45); margin-bottom: 22px;
}
.crumbs a:hover { color: #fff; }

/* ---------- pagina servizi ---------- */
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 64px); align-items: start;
  padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line);
}
.svc + .svc { margin-top: clamp(44px, 5.5vw, 76px); }
.svc__panel { position: relative; }
.svc__panel::after {
  content: attr(data-n); position: absolute; right: 0; top: -6px;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; color: var(--ink-faint);
}
.svc__panel .card__icon { width: 60px; height: 60px; }
.svc__panel .card__icon svg { width: 30px; height: 30px; }
.svc h2 { font-size: clamp(1.7rem, 2.9vw, 2.5rem); }
.svc__body > p { color: var(--ink-soft); }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.post {
  border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .5s var(--ease), border-color .4s;
}
.post:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.post__img { aspect-ratio: 16 / 10; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.25); transition: transform .9s var(--ease), filter .6s; }
.post:hover .post__img img { transform: scale(1.05); filter: none; }
.post__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.tag {
  align-self: flex-start; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--ink);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px;
}
.post h3 { font-size: 1.45rem; }
.post p { color: var(--ink-soft); font-size: .95rem; }
.post__meta { margin-top: auto; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--ink-faint); }

/* ---------- footer ---------- */
.footer {
  position: relative; background: var(--ink); color: rgba(255, 255, 255, .6);
  overflow: hidden; padding: clamp(64px, 7vw, 100px) 0 0; isolation: isolate;
}
.footer__bg { position: absolute; inset: 0; opacity: .1; }
.footer__bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; filter: grayscale(1); }
.footer__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 38%, transparent); }
.footer .wrap { position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; }
.footer img.flogo { height: 56px; width: auto; margin-bottom: 20px; }
.footer h5 {
  color: rgba(255, 255, 255, .45); font-family: var(--mono); font-size: .7rem; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer li a, .footer li span {
  display: inline-flex; gap: 10px; align-items: flex-start; font-size: .95rem;
  transition: color .3s, transform .3s var(--ease);
}
.footer li a:hover { color: #fff; transform: translateX(3px); }
.footer li svg { width: 15px; height: 15px; color: var(--rosso); flex: 0 0 15px; margin-top: 4px; }
.footer__claim {
  font-family: var(--display); font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em;
  max-width: 22ch; margin-bottom: 24px; color: #fff; line-height: 1.25;
}
.footer__bottom {
  margin-top: clamp(44px, 5vw, 72px); border-top: 1px solid var(--line-light);
  padding: 22px 0 26px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: rgba(255, 255, 255, .42);
}
.footer__bottom a:hover { color: #fff; }
/* casella trappola per lo spam: invisibile alle persone, non ai robot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* dati societari: seconda riga, più piccola */
.footer__legale { display: inline-block; margin-top: 7px; font-size: .68rem; color: rgba(255, 255, 255, .3); }

/* ---------- barra contatti fissa ---------- */
.callbar {
  position: fixed; z-index: 95; display: none; gap: 8px;
  right: 24px; bottom: 24px; left: auto;
  padding: 8px; border-radius: 999px;
  background: rgba(11, 26, 51, .9);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid var(--line-light);
  transform: translateY(120%); opacity: 0;
  transition: transform .55s var(--ease), opacity .4s var(--ease);
}
body.scrolled .callbar { transform: none; opacity: 1; }
.callbar { display: flex; }
.callbar a {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: #fff;
  transition: transform .3s var(--ease), filter .3s;
}
.callbar a:hover { filter: brightness(1.1); }
.callbar a svg { width: 18px; height: 18px; }
.callbar__tel { background: var(--rosso); }
.callbar__wa  { background: #25D366; }

.wa { display: none; }

/* ---------- diagnosi rapida ---------- */
.diag {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: rgba(255, 255, 255, .74);
}
.diag::before {
  content: ""; position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
  width: 620px; height: 620px; background: rgba(53, 91, 167, .5); left: -180px; top: -180px;
}
.diag::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(120px); pointer-events: none;
  width: 420px; height: 420px; background: rgba(255, 0, 0, .18); right: -120px; bottom: -180px;
}
.diag .wrap { position: relative; z-index: 1; }
.diag h2 { color: #fff; }
.diag .lead { color: rgba(255, 255, 255, .74); }

.diag__card {
  margin-top: clamp(30px, 4vw, 48px);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line-light);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: clamp(24px, 3.2vw, 44px);
}
.diag__bar { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.diag__dots { display: flex; gap: 6px; }
.diag__dots i {
  width: 22px; height: 3px; background: rgba(255, 255, 255, .2);
  transition: background .4s var(--ease), width .4s var(--ease);
}
.diag__dots i.is-on { background: var(--rosso); width: 34px; }
.diag__back {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  background: none; border: 0; color: rgba(255, 255, 255, .6);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 2px; transition: color .3s var(--ease);
}
.diag__back:hover { color: #fff; }
.diag__back svg { width: 14px; height: 14px; }
.diag__back[hidden] { display: none; }

@keyframes diagIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.diag__q {
  font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2.1rem); font-weight: 700;
  color: #fff; letter-spacing: -.035em; line-height: 1.15; margin: 0 0 24px;
}

.diag__opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.diag__opt {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: var(--r);
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line-light);
  color: #fff; font-weight: 600; font-size: .98rem; line-height: 1.35;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.diag__opt:hover { background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .4); transform: translateX(4px); }
.diag__opt .ico {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .09); color: #9EC0FF;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.diag__opt:hover .ico { background: var(--rosso); color: #fff; }
.diag__opt .ico svg { width: 19px; height: 19px; }
.diag__opt .arr { margin-left: auto; opacity: .4; transition: transform .3s var(--ease), opacity .3s; }
.diag__opt .arr svg { width: 16px; height: 16px; display: block; }
.diag__opt:hover .arr { opacity: 1; transform: translateX(3px); }

.diag__badge {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
}
.diag__badge i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.diag__badge--alta  { background: rgba(255, 0, 0, .16);    color: #FF9A9A; border: 1px solid rgba(255, 0, 0, .45); }
.diag__badge--media { background: rgba(255, 170, 0, .14);  color: #FFC773; border: 1px solid rgba(255, 170, 0, .4); }
.diag__badge--bassa { background: rgba(53, 208, 127, .14); color: #7BE3AC; border: 1px solid rgba(53, 208, 127, .4); }

.diag__result p.diag__lead { color: rgba(255, 255, 255, .74); margin-bottom: 26px; max-width: 60ch; }
.diag__todo { list-style: none; margin: 0 0 28px; padding: 0; counter-reset: todo; display: grid; }
.diag__todo li {
  display: flex; gap: 16px; align-items: flex-start;
  color: rgba(255, 255, 255, .9); font-size: .97rem; line-height: 1.5;
  padding: 14px 0; border-top: 1px solid var(--line-light);
}
.diag__todo li::before {
  counter-increment: todo; content: counter(todo, decimal-leading-zero);
  font-family: var(--mono); font-size: .74rem; color: var(--rosso);
  flex: 0 0 26px; padding-top: 2px;
}
.diag__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.diag__actions .btn--wa { --bg: #25D366; }
.diag__actions .btn--wa:hover { background: #1FBA59; }
.diag__actions .btn--ghost { color: #fff; }
.diag__restart {
  background: none; border: 0; color: rgba(255, 255, 255, .55);
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px; padding: 10px 6px;
}
.diag__restart:hover { color: #fff; }

.diag__sos {
  border: 1px solid rgba(255, 0, 0, .5); background: rgba(255, 0, 0, .1);
  border-radius: var(--r); padding: 16px 18px; margin-bottom: 26px;
  display: flex; gap: 14px; align-items: center;
}
.diag__sos svg { width: 22px; height: 22px; color: #FF9A9A; flex: 0 0 22px; }
.diag__sos b { color: #fff; font-size: .96rem; }

.diag__note {
  margin-top: 22px; font-family: var(--mono); font-size: .74rem; line-height: 1.7;
  color: rgba(255, 255, 255, .42); max-width: 76ch;
}

/* ---------- animazioni di ingresso ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="zoom"]  { transform: scale(.96); }

/* il padding lascia spazio alle code delle lettere (g, p, q, y),
   il margine negativo lo riassorbe per non alterare l'interlinea */
.split-line { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; }
.split-line > span { display: block; transform: translateY(125%); transition: transform 1s var(--ease); }
.is-in .split-line > span, .split-line.is-in > span { transform: none; }
.split-line:nth-child(2) > span { transition-delay: .08s; }
.split-line:nth-child(3) > span { transition-delay: .16s; }

/* ---------- responsive ---------- */
@media (max-width: 1400px) {
  .hero__scroll { display: none; }
}

@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr; }
  .step { margin-right: 0; padding: 26px 0; }
  .reviews { columns: 2; }
  .contact-cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .sec-head { grid-template-columns: 1fr; align-items: start; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .nav, .header__cta { display: none; }
  .burger { display: block; }
  .grid--2 { grid-template-columns: 1fr; }
  .svc { grid-template-columns: 1fr; }
  .svc--flip .svc__body { order: 0; }
  .posts { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; gap: 0; }
  .reviews { columns: 1; }
  .hero { min-height: 94svh; }
  .hero__media img { object-position: 76% 16%; }
  .hero__scroll { display: none; }
  .tl-item { grid-template-columns: 1fr; }
  .tl-item h4, .tl-item p { grid-column: 1; }
  .diag__opts { grid-template-columns: 1fr; }
  .diag__actions .btn { width: 100%; }
  .emergency .btn { width: 100%; }
  .faq summary { padding-right: 44px; }
  .faq .faq__body { padding-right: 0; }
  .map { height: 320px; }

  body { padding-bottom: 76px; }
  .callbar {
    left: 12px; right: 12px; border-radius: var(--r);
    bottom: calc(12px + env(safe-area-inset-bottom));
    transform: none; opacity: 1;
  }
  .callbar a { flex: 1; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .framed::after { right: -8px; bottom: -8px; left: 28px; top: 28px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 20px; padding-top: 20px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .split-line > span { transform: none; }
  .callbar { transform: none; opacity: 1; }
}

/* ---------- articolo del blog ---------- */
.article__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.tag--light { border-color: rgba(255, 255, 255, .35); color: #fff; margin: 0; }

.article__cover {
  margin: 0 0 clamp(36px, 5vw, 60px); border-radius: var(--r-lg); overflow: hidden;
  max-width: 980px; margin-inline: auto; aspect-ratio: 16 / 9;
}
.article__cover img { width: 100%; height: 100%; object-fit: cover; }

.article { max-width: 720px; margin-inline: auto; font-size: 1.06rem; line-height: 1.72; }
.article > p { margin: 0 0 1.3em; }
.article__lead {
  font-size: clamp(1.14rem, 1.6vw, 1.34rem); line-height: 1.55; color: var(--ink);
  font-weight: 500; margin-bottom: 1.6em; padding-bottom: 1.4em; border-bottom: 1px solid var(--line);
}
.article h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.05rem); margin: 2.1em 0 .55em; letter-spacing: -.032em;
}
.article h2:first-of-type { margin-top: 1.2em; }
.article h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.28rem); margin: 1.7em 0 .4em;
  font-family: var(--sans); font-weight: 800; letter-spacing: -.015em; color: var(--ink);
}
.article ul { margin: 0 0 1.5em; padding: 0; list-style: none; display: grid; }
.article ul li {
  position: relative; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line);
}
.article ul li::before {
  content: ""; position: absolute; left: 2px; top: 23px;
  width: 7px; height: 7px; background: var(--rosso); transform: rotate(45deg);
}
.article__back { margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--line); }
.article__back .link-arrow svg { transition: transform .35s var(--ease); }
.article__back .link-arrow:hover svg { transform: translateX(-4px); }

@media (max-width: 620px) {
  .article__cover { aspect-ratio: 4 / 3; }
}

.post__more { margin: 0 0 14px; }
.post__more .link-arrow { pointer-events: none; }
.post:hover .post__more .link-arrow { color: var(--rosso); border-color: var(--rosso); }
.post:hover .post__more .link-arrow svg { transform: translateX(4px); }

/* ---------- recensioni Google ---------- */
.gscore {
  display: inline-flex; align-items: center; gap: 14px; align-self: end;
  padding: 14px 20px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.gscore:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.gscore__logo { width: 26px; height: 26px; flex: 0 0 26px; }
.gscore__logo svg { width: 100%; height: 100%; }
.gscore__txt b { display: block; color: var(--ink); font-size: .95rem; }
.gscore__txt small { font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--ink-faint); }

.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review__src { width: 18px; height: 18px; flex: 0 0 18px; }
.review__src svg { width: 100%; height: 100%; display: block; }
.review .stars { color: #F5B400; }
.reviews__cta { margin: clamp(28px, 3.5vw, 40px) 0 0; }

/* ---------- leggibilità delle etichette (un solo carattere: Manrope) ---------- */
.nav__link, .lang, .lang-menu a, .link-arrow, .crumbs, .card__num, .svcrow__n,
.svc__panel::after, .tag, .post__meta, .footer h5, .footer__bottom,
.contact-card h4, .article__meta, .review small, .gscore__txt small,
.zones span, .brands span, .diag__back, .diag__badge, .diag__restart,
.hero__badge, .hero__scroll, .stat > span, .step::before, .diag__todo li::before {
  font-weight: 700;
  letter-spacing: .07em;
}
.eyebrow { font-weight: 800; }
.hero__badge, .lang-menu a, .link-arrow { letter-spacing: .04em; }
.stat > span, .footer h5, .crumbs, .contact-card h4, .article__meta,
.card__num, .svcrow__n, .diag__badge { letter-spacing: .09em; }
.stat b, .article__meta, .footer__bottom, .post__meta,
.timeline b, .tl-item b { font-variant-numeric: tabular-nums; }
.tl-item b { font-weight: 800; letter-spacing: .08em; }
.step h4, .footer__claim, .contact-card p, .gallery__cap { font-family: var(--sans); }


/* ---------- alleggerimento sui telefoni ---------- */
@media (max-width: 860px) {
  /* effetti costosi: via su schermi piccoli */
  .grain::after { display: none; }
  .hero__glow { display: none; }
  .diag::before, .diag::after, .page-hero::after { filter: none; opacity: .5; }
  .header.is-stuck, .callbar, .lang-menu {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: rgba(11, 26, 51, .96);
  }
  .diag__card { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255, 255, 255, .07); }

  /* aree cliccabili comode per il dito */
  .footer li a, .footer li span { padding: 10px 0; }
  .footer__bottom a { display: inline-block; padding: 12px 4px; }
  .link-arrow { padding-top: 10px; padding-bottom: 10px; }
  .lang-menu a { padding: 13px 14px; }
  .drawer__foot a { padding: 9px 0; }
  .crumbs a { display: inline-block; padding: 10px 0; }
  .consent { gap: 14px; align-items: center; }
  .consent input { width: 26px; height: 26px; flex-basis: 26px; }
  .socials a { width: 52px; height: 52px; }
  .brands span, .zones span { padding: 11px 18px; }
  .btn { padding: 16px 26px; }
}

/* ---------- invito al preventivo dentro l'articolo ---------- */
.cta-inline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  margin: 2.6em 0; padding: 26px 28px;
  background: var(--tint); border-radius: var(--r-lg);
  border-left: 3px solid var(--rosso);
}
.cta-inline__txt { flex: 1 1 260px; }
.cta-inline b {
  display: block; font-family: var(--display); font-weight: 800;
  font-size: 1.18rem; line-height: 1.25; letter-spacing: -.025em;
  color: var(--ink); margin-bottom: 5px;
}
.cta-inline span { font-size: .95rem; line-height: 1.5; color: var(--ink-soft); }
.cta-inline .btn { flex: 0 0 auto; }

@media (max-width: 620px) {
  .cta-inline { padding: 22px; margin: 2.2em 0; }
  .cta-inline .btn { width: 100%; }
}

/* ---------- banner dei cookie ---------- */
.cookiebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--ink); color: rgba(255, 255, 255, .78);
  border-top: 1px solid var(--line-light);
  transform: translateY(110%); transition: transform .5s var(--ease);
  box-shadow: 0 -20px 50px -30px rgba(0, 0, 0, .9);
}
.cookiebar.is-on { transform: none; }
.cookiebar__in {
  max-width: var(--maxw); margin-inline: auto; padding: 22px var(--pad);
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px;
}
.cookiebar__txt { flex: 1 1 380px; }
.cookiebar__txt b {
  display: block; color: #fff; font-family: var(--display);
  font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 5px;
}
.cookiebar__txt span { font-size: .92rem; line-height: 1.55; }
.cookiebar__txt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.cookiebar__btn { display: flex; gap: 10px; flex: 0 0 auto; }
.cookiebar__btn .btn { padding: 14px 26px; }
.cookiebar__btn .btn--ghost { color: #fff; }

/* finché il banner dei cookie è aperto la barra Chiama/WhatsApp resta nascosta:
   sul telefono si sovrapponevano e i pulsanti finivano dietro la barra del browser */
body.cookie-aperta .callbar,
body.cookie-aperta .wa { display: none; }

@media (max-width: 700px) {
  .cookiebar__in {
    padding: 15px var(--pad) calc(15px + env(safe-area-inset-bottom));
    gap: 12px;
  }
  .cookiebar__txt b { font-size: .98rem; margin-bottom: 3px; }
  .cookiebar__txt span { font-size: .82rem; line-height: 1.45; }
  .cookiebar__btn { width: 100%; }
  .cookiebar__btn .btn { flex: 1; padding: 13px 16px; font-size: .88rem; }
}

/* ---------- mappa bloccata finché non c'è il consenso ---------- */
.map { position: relative; }
.map iframe { opacity: 0; transition: opacity .5s var(--ease); }
.map.is-on iframe { opacity: 1; }
.map__blocco {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 26px; text-align: center;
  background: var(--tint); border-radius: var(--r-lg);
}
.map__blocco p { margin: 0; max-width: 42ch; font-size: .92rem; color: var(--ink-soft); }
.map.is-on .map__blocco { display: none; }
