/* ===== ProntoImpiantoOK – Design System v4 ===== */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700;800;900&family=DM+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
  --brand:     #056EB9;
  --brand-d:   #044f87;
  --brand-l:   #1a85ce;
  --navy:      #0d1f3c;
  --navy-m:    #162b4d;
  --green:     #22C55E;
  --green-d:   #16a34a;
  --orange:    #F97316;
  --orange-d:  #ea6c0a;
  --bg:        #F0F5FA;
  --bg2:       #E5EEF7;
  --white:     #FFFFFF;
  --text:      #1A2D5A;
  --text-body: #374151;
  --muted:     #64748B;
  --border:    #CBD8E8;
  --border-l:  #E2EBF4;

  --shadow-xs: 0 1px 3px rgba(13,31,60,.07);
  --shadow-sm: 0 2px 8px rgba(13,31,60,.09);
  --shadow:    0 4px 20px rgba(13,31,60,.12);
  --shadow-lg: 0 12px 40px rgba(13,31,60,.15);

  --radius:    12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --font: 'Raleway', system-ui, -apple-system, sans-serif;
  --font-num: 'DM Sans', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,.55,.45,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font); }

/* ── Typography ── */
h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--text);
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  color: var(--text);
  text-wrap: balance;
}
h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); }
h4 { font-size: .95rem; font-weight: 700; color: var(--text); }
p  { font-size: .95rem; color: var(--muted); line-height: 1.7; }
.lead { font-size: 1.1rem; color: var(--text-body); line-height: 1.7; max-width: 60ch; }

/* ── Layout ── */
.container  { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section    { padding: 88px 0; }
.section--bg  { background: var(--bg); }
.section--dark { background: var(--navy); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; }
.impianto-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.impianto-icon img { height: 56px; width: auto; object-fit: contain; display: block; }
.text-center { text-align: center; }
.mt-8  { margin-top:  8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }

/* ── SVG Icon helper ── */
.icon-wrap {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  background: var(--bg2); border: 1px solid var(--border-l);
  display: grid; place-items: center; flex-shrink: 0;
}
.icon-wrap svg { width: 22px; height: 22px; stroke: var(--brand); stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.icon-wrap.blue  { background: rgba(5,110,185,.08); border-color: rgba(5,110,185,.18); }
.icon-wrap.green { background: rgba(34,197,94,.08);  border-color: rgba(34,197,94,.2);  }
.icon-wrap.blue  svg { stroke: var(--brand); }
.icon-wrap.green svg { stroke: var(--green-d); }
.icon-wrap.lg { width: 56px; height: 56px; border-radius: 12px; }
.icon-wrap.lg svg { width: 26px; height: 26px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-size: .9rem;
  font-weight: 700; cursor: pointer; border: none;
  transition: background .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
  white-space: nowrap; letter-spacing: -.01em;
}
.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 2px 10px rgba(5,110,185,.3); }
.btn-primary:hover { background: var(--brand-d); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(5,110,185,.4); }
.btn-cta { background: var(--orange); color: var(--white); box-shadow: 0 2px 10px rgba(249,115,22,.3); }
.btn-cta:hover { background: var(--orange-d); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,115,22,.4); }
.btn-secondary { background: var(--white); color: var(--brand); border: 2px solid var(--brand); }
.btn-secondary:hover { background: var(--brand); color: var(--white); }
.btn-ghost { background: rgba(255,255,255,.1); color: var(--white); border: 1.5px solid rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-ghost-blue { background: transparent; color: var(--brand); border: 1.5px solid rgba(5,110,185,.35); }
.btn-ghost-blue:hover { background: rgba(5,110,185,.08); border-color: var(--brand); }
.btn-lg { padding: 15px 34px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: .82rem; }

/* ── Top bar ── */
.top-bar { background: var(--navy); padding: 8px 0; }
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a, .top-bar span { font-size: .78rem; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 6px; transition: color .15s; }
.top-bar a:hover { color: rgba(255,255,255,.95); }
.top-bar .divider { color: rgba(255,255,255,.2); }
.top-bar-links { display: flex; gap: 18px; align-items: center; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px) saturate(1.5);
  border-bottom: 1px solid var(--border-l);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; object-fit: contain; }
nav { display: flex; align-items: center; gap: 2px; }
nav > a, nav .nav-item > a { padding: 7px 12px; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; color: var(--muted); transition: color .15s, background .15s; }
nav > a:hover, nav .nav-item > a:hover { color: var(--brand); background: var(--bg); }
nav a.active { color: var(--brand); background: var(--bg2); }

/* Dropdown menu desktop */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-item > a .nav-caret { width: 12px; height: 12px; transition: transform .18s; }
.nav-item:hover > a .nav-caret, .nav-item:focus-within > a .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 180px;
  background: #fff; border: 1px solid var(--border-l); border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(10,31,68,.12);
  padding: 6px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s, transform .16s, visibility .16s; z-index: 60;
}
.nav-item:hover .nav-dropdown, .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a { padding: 9px 12px; border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600; color: var(--text-body); white-space: nowrap; }
.nav-dropdown a:hover { color: var(--brand); background: var(--bg); }

/* Megamenu Pratiche (desktop) */
.nav-item.has-mega { position: static; }
.nav-mega {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  width: min(720px, calc(100vw - 48px));
  background: #fff; border: 1px solid var(--border-l); border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(10,31,68,.16);
  padding: 14px; z-index: 60;
  opacity: 0; visibility: hidden;
  transition: opacity .16s, transform .16s, visibility .16s;
}
.nav-item.has-mega:hover .nav-mega, .nav-item.has-mega:focus-within .nav-mega {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
}
.nav-mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.nav-mega-item {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 12px; border-radius: var(--radius-sm);
  transition: background .15s; white-space: normal;
}
.nav-mega-item:hover { background: var(--bg); }
.nav-mega-ico {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); color: var(--brand);
}
.nav-mega-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.nav-mega-item:hover .nav-mega-ico { background: var(--brand); color: #fff; }
.nav-mega-txt { display: flex; flex-direction: column; gap: 2px; }
.nav-mega-txt b { font-size: .86rem; font-weight: 700; color: var(--ink); line-height: 1.2; }
.nav-mega-txt span { font-size: .76rem; font-weight: 500; color: var(--muted); line-height: 1.3; }
.nav-mega-foot {
  margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border-l);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.nav-mega-foot a.nav-mega-all { font-size: .82rem; font-weight: 700; color: var(--brand); padding: 0; }
.nav-mega-foot .btn { padding: 9px 16px; font-size: .82rem; }

.header-right { display: flex; align-items: center; gap: 10px; }
.header-phone {
  display: flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 700;
  color: var(--text); padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border-l); transition: border-color .15s, color .15s;
}
.header-phone:hover { border-color: var(--brand); color: var(--brand); }
.header-phone svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; border-radius: var(--radius-sm); }
.burger:hover { background: var(--bg); }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: all .2s; }
.mobile-nav { display: none; flex-direction: column; padding: 12px 28px 24px; border-top: 1px solid var(--border-l); background: rgba(255,255,255,.97); }
.mobile-nav a { padding: 12px 0; border-bottom: 1px solid var(--border-l); font-weight: 600; color: var(--text-body); font-size: .95rem; }
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open { display: flex; }

/* ── Hero ── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #061427 0%, #081d3d 45%, #062f56 100%);
  padding: 96px 0 88px;
}
.hero-bg-img {
  position: absolute; inset: 0; z-index: 0;
  background-image: url('../img/hero-home.jpg');
  background-size: cover; background-position: center top;
  opacity: .62;
}
/* Velatura scura ai lati per leggibilità testo, centro più libero per il soggetto */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,16,34,.86) 0%, rgba(6,16,34,.55) 22%, rgba(6,16,34,.18) 42%, rgba(6,16,34,.18) 58%, rgba(6,16,34,.55) 78%, rgba(6,16,34,.86) 100%),
    linear-gradient(180deg, rgba(6,16,34,.30) 0%, transparent 28%, transparent 72%, rgba(6,16,34,.45) 100%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0,440px) 1fr minmax(0,380px); gap: 40px;
  align-items: center; position: relative; z-index: 2;
}
.hero-inner > .animate:first-child { grid-column: 1; }
.hero-inner > .hero-card { grid-column: 3; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
  color: rgba(255,255,255,.5); text-transform: uppercase;
}
.hero-eyebrow::before {
  content: ''; display: inline-block; width: 20px; height: 1.5px;
  background: var(--brand-l); border-radius: 2px;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: #7ec8f5; }
.hero .lead { color: rgba(255,255,255,.75); margin-bottom: 36px; }
.hero .lead strong { color: var(--white); font-weight: 700; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-trust {
  display: flex; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 28px;
}
.trust-pill {
  display: flex; align-items: center; gap: 7px;
  font-size: .82rem; color: rgba(255,255,255,.7); font-weight: 500;
}
.trust-pill svg { flex-shrink: 0; stroke: var(--green); }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 28px; backdrop-filter: blur(10px);
}
.hero-card-title {
  font-size: .7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.4); margin-bottom: 16px;
}
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quick-btn {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 16px 14px; cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s var(--ease-out);
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  color: var(--white); font-size: .85rem; font-weight: 600;
}
.quick-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(5,110,185,.5); transform: translateY(-2px); }
.qb-icon { display: flex; align-items: center; }
.qb-icon svg { width: 22px; height: 22px; stroke: #7ec8f5; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.qb-arrow { stroke: rgba(255,255,255,.3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: auto; transition: transform .15s; }
.quick-btn:hover .qb-arrow { transform: translateX(3px); stroke: rgba(255,255,255,.7); }
.hero-price-note {
  margin-top: 16px; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.2);
  border-radius: 10px; padding: 12px 16px; display: flex; gap: 10px; align-items: center;
}
.hero-price-note svg { width: 16px; height: 16px; flex-shrink: 0; }
.hero-price-note span { font-size: .82rem; color: rgba(255,255,255,.8); }
.hero-price-note strong { color: #86efac; font-weight: 700; }

/* ── Stats bar ── */
.stats-bar { background: var(--white); border-bottom: 1px solid var(--border-l); }
.stats-row {
  display: grid; grid-template-columns: repeat(5,1fr);
  divide-line: var(--border-l);
}
.stat-item {
  padding: 28px 20px; text-align: center;
  border-right: 1px solid var(--border-l);
}
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 2rem; font-weight: 900; color: var(--brand); line-height: 1; letter-spacing: -.04em; font-family: var(--font-num); }
.stat-label { font-size: .78rem; color: var(--muted); margin-top: 4px; font-weight: 500; }

/* ── How it works (dark) ── */
.how-dark {
  background: var(--navy);
  padding: 88px 0;
}

/* ── Sezione processo (3 passi, sfondo chiaro) ── */
.process-section { background: var(--bg); padding: 88px 0; }
.proc-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.proc-logo { height: 46px; width: auto; display: block; margin: 0 auto 20px; }
.proc-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.proc-accent { color: var(--brand); }
.proc-step-img {
  width: calc(100% + 52px); max-width: none; margin: -28px -26px 18px;
  height: 150px; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: block; flex-shrink: 0;
}
.proc-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.proc-step {
  background: var(--white); border: 1.5px solid var(--border-l); border-radius: var(--radius-lg);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; position: relative;
}
.proc-step::after {
  content: ''; position: absolute; top: 50%; right: -16px; width: 24px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--green-d) 0 6px, transparent 6px 11px);
}
.proc-steps .proc-step:last-child::after { display: none; }
.proc-step-head { display: flex; align-items: center; gap: 14px; }
.proc-num {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--brand), var(--brand-d)); color: #fff;
  font-family: var(--font-num); font-weight: 800; font-size: 1.3rem;
  display: grid; place-items: center; box-shadow: 0 6px 16px rgba(5,110,185,.28);
}
.proc-step-head h3 { font-size: 1.12rem; line-height: 1.2; flex: 1; }
.proc-ico {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: rgba(34,197,94,.1); display: grid; place-items: center;
}
.proc-ico svg { width: 24px; height: 24px; stroke: var(--green-d); fill: none; }
.proc-step p { font-size: .92rem; color: var(--text-body); line-height: 1.6; flex: 1; }
.proc-tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.25); border-radius: 50px;
  padding: 6px 14px; font-size: .8rem; font-weight: 700; color: var(--green-d);
}
.proc-tag svg { width: 14px; height: 14px; stroke: var(--green-d); fill: none; flex-shrink: 0; }
.proc-reassure {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px;
  background: var(--white); border: 1.5px solid var(--border-l); border-radius: var(--radius-lg); padding: 26px 28px;
}
.proc-rea { display: flex; align-items: flex-start; gap: 12px; }
.proc-rea svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; flex-shrink: 0; margin-top: 2px; }
.proc-rea h4 { font-size: .92rem; margin-bottom: 2px; }
.proc-rea p { font-size: .82rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 900px) {
  .proc-steps { grid-template-columns: 1fr; }
  .proc-step::after { display: none; }
  .proc-reassure { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .proc-reassure { grid-template-columns: 1fr; }
}
.how-steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 2px; background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg); overflow: hidden; margin-top: 48px;
}
.how-step {
  padding: 36px 28px; background: rgba(255,255,255,.03);
  transition: background .2s;
  border-right: 1px solid rgba(255,255,255,.06);
}
.how-step:last-child { border-right: none; }
.how-step:hover { background: rgba(255,255,255,.07); }
.how-step-num {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand); color: var(--white);
  font-family: var(--font-num); font-weight: 900; font-size: 1.05rem;
  display: grid; place-items: center; margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(5,110,185,.45);
}
.how-step h3 { color: var(--white); font-size: 1rem; margin-bottom: 10px; }
.how-step p  { font-size: .85rem; color: rgba(255,255,255,.5); line-height: 1.65; }
.step-tag {
  display: inline-block; background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.22); color: #86efac;
  font-size: .7rem; font-weight: 700; padding: 3px 10px;
  border-radius: 50px; margin-top: 14px;
}
.how-dark .section-header h2 { color: var(--white); }
.how-dark .section-header p  { color: rgba(255,255,255,.55); }

/* ── Section intro (no eyebrow default) ── */
.section-intro { margin-bottom: 52px; }
.section-intro h2 { margin-bottom: 10px; }
.section-intro p { max-width: 540px; }
.section-intro.centered { text-align: center; }
.section-intro.centered p { margin: 10px auto 0; }

/* ── Section label (use sparingly) ── */
.section-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(5,110,185,.07); color: var(--brand);
  font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 50px; margin-bottom: 12px;
  border: 1px solid rgba(5,110,185,.15);
}
.section-label.light { background: rgba(5,110,185,.18); color: #7ec8f5; border-color: rgba(5,110,185,.3); }
.section-header { margin-bottom: 48px; }
.section-header h2 { margin-bottom: 10px; max-width: 560px; }
.section-header p { max-width: 560px; }
.section-header.text-center h2, .section-header.text-center p { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ── Service Cards ── */
.service-card {
  background: var(--white); border: 1.5px solid var(--border-l); border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .22s;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.service-card-img {
  width: calc(100% + 48px); max-width: none; margin: -28px -24px 20px;
  height: 180px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0;
  display: block; flex-shrink: 0;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(5,110,185,.22); }
/* Banner immagine in cima alle card pratica (padding card = 28px) */
.pratica-card-img {
  width: calc(100% + 56px); max-width: none; margin: -28px -28px 18px;
  height: 170px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0;
  display: block; flex-shrink: 0;
}
.service-card h3 { font-size: 1rem; }
.service-card p  { font-size: .87rem; }
.service-card .card-price { font-family: var(--font-num); font-weight: 900; font-size: 1rem; color: var(--brand); padding-top: 10px; border-top: 1px solid var(--border-l); margin-top: auto; }
.service-card .card-price span { font-size: .78rem; font-weight: 500; color: var(--muted); }
.card-cta { display: flex; align-items: center; gap: 5px; font-size: .82rem; font-weight: 700; color: var(--brand); margin-top: auto; }
.card-arrow { width: 14px; height: 14px; stroke: var(--brand); fill: none; stroke-width: 2.5; transition: transform .15s; }
.service-card:hover .card-arrow { transform: translateX(3px); }

/* ── Problem/use-case strip ── */
.problem-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
  gap: 16px;
}
.problem-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1.5px solid var(--border-l);
  border-radius: var(--radius); padding: 22px 20px;
  transition: border-color .2s, box-shadow .2s;
}
.problem-card:hover { border-color: rgba(5,110,185,.25); box-shadow: var(--shadow-sm); }
.problem-card h3 { font-size: .95rem; margin-bottom: 4px; }
.problem-card p  { font-size: .83rem; }

/* ── Badge strip ── */
.badge-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.badge {
  display: flex; align-items: center; gap: 9px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 50px; padding: 10px 18px; font-size: .84rem; font-weight: 700;
  color: var(--text); box-shadow: var(--shadow-xs); transition: border-color .18s, box-shadow .18s;
}
.badge:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.badge svg { width: 17px; height: 17px; stroke: var(--brand); fill: none; stroke-width: 2; flex-shrink: 0; }
.badge.green svg { stroke: var(--green-d); }

/* ── Testimonials ── */
.review-card {
  background: var(--white); border: 1.5px solid var(--border-l); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.review-stars { display: flex; gap: 3px; }
.review-stars svg { width: 14px; height: 14px; fill: #FBBF24; stroke: none; }
.review-text { font-size: .88rem; color: var(--text-body); line-height: 1.65; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.review-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #22C55E); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.review-name { font-weight: 700; font-size: .85rem; color: var(--text); }
.review-meta { font-size: .75rem; color: var(--muted); }

/* ── FAQ ── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-l); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 20px 0; font-size: .95rem; font-weight: 700; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  color: var(--text); transition: color .15s;
}
.faq-q:hover { color: var(--brand); }
.faq-icon { width: 26px; height: 26px; border-radius: 7px; background: var(--bg); display: grid; place-items: center; flex-shrink: 0; transition: background .2s; }
.faq-icon svg { width: 12px; height: 12px; stroke: var(--brand); fill: none; stroke-width: 2.5; transition: transform .25s; }
.faq-item.open .faq-icon { background: var(--brand); }
.faq-item.open .faq-icon svg { stroke: white; transform: rotate(180deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: 20px; font-size: .9rem; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.price-pill { display: inline-block; background: var(--bg2); border: 1px solid var(--border); border-radius: 7px; padding: 8px 14px; font-family: var(--font-num); font-weight: 800; color: var(--brand); font-size: .88rem; margin-top: 6px; }

/* ── CTA Banner ── */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, #0e3060 60%, #056EB9 130%);
  padding: 80px 0;
}
.cta-banner::before { content:''; position:absolute; inset:0; background:radial-gradient(circle at 70% 50%, rgba(5,110,185,.25) 0%, transparent 60%); pointer-events:none; }
.cta-banner h2 { color: var(--white); margin-bottom: 10px; }
.cta-banner .sub { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: 32px; }
.cta-banner .ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Forms ── */
.form-wrap { background: var(--white); border: 1.5px solid var(--border-l); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 6px; color: var(--text); letter-spacing: .01em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .9rem; font-family: var(--font);
  color: var(--text-body); background: var(--white); transition: border-color .15s, box-shadow .15s; outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(5,110,185,.1); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { padding: 7px 15px; border-radius: 50px; border: 1.5px solid var(--border); font-size: .83rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s; background: var(--white); color: var(--muted); }
.chip:hover  { border-color: var(--brand); color: var(--brand); }
.chip.selected { border-color: var(--brand); background: var(--brand); color: var(--white); }
.wizard-track { display: flex; gap: 6px; margin-bottom: 8px; }
.wizard-dot { flex: 1; height: 3px; background: var(--border); border-radius: 3px; transition: background .25s; }
.wizard-dot.active { background: var(--brand); }
.wizard-dot.done   { background: var(--green-d); }
.wizard-meta { font-size: .75rem; color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.wizard-step-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: -14px 0 20px; letter-spacing: -.01em; line-height: 1.25; }

/* ── Page hero ── */
.page-hero {
  background: linear-gradient(145deg, #050f20 0%, #0a1838 100%);
  padding: 60px 0; position: relative; overflow: hidden;
}
/* Desktop: hero pagine interne più alte (+150px totali) */
@media (min-width: 769px) {
  .page-hero { padding: 135px 0; }
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: .42;
}
.page-hero::before { content:''; position:absolute; inset:0; z-index:1; background:radial-gradient(circle at 80% 50%, rgba(5,110,185,.18) 0%, transparent 55%); pointer-events:none; }
.page-hero .container { position: relative; z-index: 2; }

/* ── Section visual (photo + text side by side) ── */
.section-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.section-visual.reverse { direction: rtl; }
.section-visual.reverse > * { direction: ltr; }
.section-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
}
.section-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s var(--ease);
}
.section-photo:hover img { transform: scale(1.03); }

@media (max-width: 768px) {
  .section-visual { grid-template-columns: 1fr; direction: ltr; }
  .section-visual.reverse { direction: ltr; }
}
.page-hero h1 { color: var(--white); font-size: clamp(1.6rem,3.5vw,2.4rem); margin-top: 12px; }
.page-hero p  { color: rgba(255,255,255,.65); font-size: 1rem; margin-top: 10px; max-width: 600px; line-height: 1.7; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: rgba(255,255,255,.35); }
.breadcrumb a { color: rgba(255,255,255,.35); transition: color .15s; }
.breadcrumb a:hover { color: rgba(255,255,255,.75); }

/* ── Feature items ── */
.feature-list { display: flex; flex-direction: column; gap: 20px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item h4 { font-size: .9rem; margin-bottom: 3px; }
.feature-item p  { font-size: .85rem; }

/* ── Info box ── */
.info-box { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border: 1px solid var(--border-l); border-radius: 10px; padding: 16px 18px; }
.info-box svg { width: 18px; height: 18px; stroke: var(--brand); fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 1px; }
.info-box p { font-size: .86rem; color: var(--text-body); }
.info-box.warn { background: #FFF7ED; border-color: #FED7AA; }
.info-box.warn svg { stroke: var(--orange); }

/* ── Pratica card ── */
.pratica-card {
  background: var(--white); border: 1.5px solid var(--border-l); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.pratica-card:hover { box-shadow: var(--shadow); border-color: rgba(5,110,185,.28); transform: translateY(-3px); }
.pratica-card .pc-tag { display: inline-block; background: var(--bg); color: var(--muted); font-size: .7rem; font-weight: 800; padding: 3px 10px; border-radius: 50px; letter-spacing: .05em; text-transform: uppercase; }
.pratica-card h3 { font-size: 1rem; }
.pratica-card p  { font-size: .86rem; }
.pratica-card .pc-price { font-weight: 900; color: var(--brand); font-size: 1.1rem; border-top: 1px solid var(--border-l); padding-top: 12px; margin-top: 4px; }
.pratica-card .pc-price small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.pratica-card details summary { cursor: pointer; font-size: .83rem; color: var(--brand); font-weight: 600; list-style: none; }
.pratica-card details p { font-size: .83rem; color: var(--muted); margin-top: 8px; }

/* ── Filter buttons ── */
.filter-row { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { padding: 8px 16px; border-radius: 50px; border: 1.5px solid var(--border); background: var(--white); font-size: .83rem; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s, color .15s; color: var(--muted); }
.filter-btn:hover  { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { border-color: var(--brand); background: var(--brand); color: var(--white); }

/* ── Timeline ── */
.tl-wrap { position: relative; }
.tl-wrap::before { content:''; position:absolute; left:19px; top:0; bottom:0; width:2px; background:linear-gradient(to bottom, var(--brand), rgba(5,110,185,.1)); }
.tl-item { position: relative; padding-left: 56px; padding-bottom: 40px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position:absolute; left:0; top:0; width:40px; height:40px; border-radius:10px; background:var(--brand); color:var(--white); font-family:var(--font-num); font-weight:900; display:grid; place-items:center; z-index:1; font-size:.95rem; box-shadow:0 3px 10px rgba(5,110,185,.35); }
.tl-item h3 { margin-bottom: 5px; }
.tl-tag { display:inline-block; background:var(--bg); border:1px solid var(--border-l); border-radius:50px; padding:3px 11px; font-size:.73rem; font-weight:600; color:var(--muted); margin-top:8px; }

/* ── Price box ── */
.price-box { background: var(--bg); border: 1.5px solid var(--border-l); border-radius: var(--radius-lg); padding: 32px; }
.price-box .big { font-family: var(--font-num); font-size: 3.2rem; font-weight: 900; color: var(--brand); line-height: 1; letter-spacing: -.04em; }

/* ── Modulo card ── */
.modulo-card { background: var(--white); border: 1.5px solid var(--border-l); border-radius: var(--radius); padding: 20px; display: flex; gap: 14px; align-items: flex-start; transition: border-color .18s, box-shadow .18s; }
.modulo-card:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.modulo-card h4 { font-size: .88rem; margin-bottom: 2px; }
.modulo-card p  { font-size: .78rem; }

/* ── Contact card ── */
.contact-card { background: var(--white); border: 1.5px solid var(--border-l); border-radius: var(--radius); padding: 30px 24px; text-align: center; transition: box-shadow .2s, border-color .2s, transform .2s; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.contact-card:hover { box-shadow: var(--shadow); border-color: rgba(5,110,185,.3); transform: translateY(-3px); }
.contact-card .cc-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--border-l); display: grid; place-items: center; margin-bottom: 4px; }
.contact-card .cc-icon svg { width: 26px; height: 26px; stroke: var(--brand); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ── Impianti type list ── */
.impianto-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px; margin-top: 0;
}
.impianto-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1.5px solid var(--border-l);
  border-radius: var(--radius-sm); padding: 16px;
  font-size: .88rem; font-weight: 600; color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.impianto-item:hover { border-color: rgba(5,110,185,.3); box-shadow: var(--shadow-xs); }
.impianto-item svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; stroke-width: 1.75; flex-shrink: 0; }

/* ── Footer ── */
.site-footer { background: var(--navy); color: rgba(255,255,255,.55); padding: 64px 0 28px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 48px;
}
.footer-brand img { height: 36px; width: auto; object-fit: contain; margin-bottom: 14px; }
.footer-brand p { font-size: .85rem; line-height: 1.8; }
.footer-col h4 { color: rgba(255,255,255,.9); font-size: .72rem; font-weight: 800; margin-bottom: 14px; letter-spacing: .07em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: .85rem; transition: color .15s; }
.footer-col ul li a:hover { color: rgba(255,255,255,.9); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .78rem; }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* Legacy aliases */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 48px; }
.footer-logo img { height: 36px; }
.footer-brand { }

/* ── Mobile sticky CTA bar ── */
.mobile-cta-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px) saturate(1.5);
  border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
  box-shadow: 0 -4px 20px rgba(13,31,60,.1);
}
.mobile-cta-bar .btn { flex: 1; justify-content: center; padding: 13px 10px; font-size: .9rem; }
.mobile-cta-bar .btn-call {
  flex: 0 0 52px; padding: 13px 0; background: var(--white);
  color: var(--brand); border: 1.5px solid var(--brand);
}
.mobile-cta-bar .btn-call svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.2; }

/* ── Scroll animations ── */
.fade-up {
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: none; }

/* Stagger for grids */
.grid-3 .fade-up:nth-child(2),
.grid-4 .fade-up:nth-child(2),
.problem-grid .fade-up:nth-child(2) { transition-delay: .08s; }
.grid-3 .fade-up:nth-child(3),
.grid-4 .fade-up:nth-child(3),
.problem-grid .fade-up:nth-child(3) { transition-delay: .16s; }
.grid-4 .fade-up:nth-child(4),
.problem-grid .fade-up:nth-child(4) { transition-delay: .24s; }
.grid-3 .fade-up:nth-child(4),
.problem-grid .fade-up:nth-child(5) { transition-delay: .24s; }
.grid-3 .fade-up:nth-child(5),
.problem-grid .fade-up:nth-child(6) { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .btn, .service-card, .pratica-card, .quick-btn { transition: none; }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  nav { gap: 0; }
  nav > a, nav .nav-item > a { padding: 7px 9px; font-size: .82rem; }
  .header-right { gap: 8px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-inner > .animate:first-child { grid-column: auto; }
  .hero-inner > .hero-card { grid-column: auto; }
  .hero-card { display: none; }
  .footer-top, .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(3,1fr); }
  .how-dark .container > div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .how-dark .container > div > div:last-child { display: none; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .burger { display: block; }
  .section { padding: 60px 0; }
  .form-row { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .mobile-cta-bar { display: flex; }
  body { padding-bottom: 72px; }
  .header-right .header-phone { display: none; }
}
@media (max-width: 1024px) {
  /* In colonna singola la foto fa solo da sfondo: velatura uniforme per leggibilità */
  .hero::before { background: linear-gradient(180deg, rgba(6,16,34,.72) 0%, rgba(6,16,34,.58) 100%); }
  .hero-bg-img { opacity: .45; background-position: center top; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero { padding: 64px 0 52px; }
  .footer-top, .footer-grid { grid-template-columns: 1fr; }
  .badge-strip { flex-direction: column; align-items: stretch; }
  .badge { justify-content: center; }
  .cta-banner .ctas { flex-direction: column; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .form-wrap { padding: 22px; }
  .how-steps { grid-template-columns: 1fr; }
}

/* Co-branding Tecnomat: logo inline nelle pagine non-Tecnomat */
.tecnomat-inline {
  height: 1em;
  width: auto;
  vertical-align: -0.18em;
  margin: 0 .12em;
  display: inline-block;
}
.tecnomat-logo-card {
  height: 30px;
  width: auto;
  display: block;
  margin-top: 10px;
}
