/* ===================================================================
   G78 Advisory — stylesheet v3 · taste-skill
   Outfit (sans) + Playfair Display (serif)
   Palette: navy + oro · asymmetric · scroll-reveal · marquee
   =================================================================== */

:root {
  --navy:       #1f3a5f;
  --navy-deep:  #142540;
  --navy-soft:  #2c507f;
  --steel:      #6c7a89;
  --slate:      #4a5a6e;
  --gold:       #b08a4a;
  --gold-soft:  #c69955;
  --gold-dim:   rgba(176,138,74,.06);

  --bg:         #fbfaf7;
  --bg-soft:    #f3f0e8;
  --bg-dark:    #0f1c30;
  --bg-darker:  #0b1726;

  --text:             #1a2336;
  --text-muted:       #5d6a7e;
  --text-light:       #ffffff;
  --text-light-muted: #b9c4d4;

  --line:      #e4dfd4;
  --line-dark: #2a3a55;

  /* taste-skill: Outfit (ban Inter) */
  --ff-sans:  'Outfit', system-ui, -apple-system, sans-serif;
  --ff-serif: 'Playfair Display', 'Georgia', serif;

  --container: 1180px;
  --radius:    3px;
  --radius-lg: 12px;
  --pad:       28px;
  --header-h:  68px;

  /* taste-skill: cubic-bezier(0.16, 1, 0.3, 1) per tutto */
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold); }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(176,138,74,.22); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ── Scroll progress bar ─────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
  will-change: transform;
}

/* ── Tipografia ───────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  color: var(--navy-deep);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 .5em;
  line-height: 1.08;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); line-height: 1.12; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.22; }
h4 { font-size: .9rem; font-weight: 600; color: var(--text); letter-spacing: 0; }
p  { margin: 0 0 1em; color: var(--slate); line-height: 1.7; }
em { font-style: italic; color: var(--gold); font-weight: 700; }

.amp {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1em;
  color: inherit;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-sans);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 1.2em;
}
.eyebrow-line {
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Scroll reveal ────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .75s var(--spring),
    transform .75s var(--spring);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Hero load-in ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.hero-anim {
  animation: fadeUp .8s var(--spring) both;
  animation-delay: var(--d, 0s);
}

/* ── Bottoni ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  min-height: 48px;
  border-radius: var(--radius);
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: .02em;
  border: 1.5px solid transparent;
  transition: all .3s var(--spring);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
/* Directional hover fill (taste-skill rule) */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.08);
  opacity: 0;
  transition: opacity .25s;
}
.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--navy);
  color: var(--text-light);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--text-light);
  box-shadow: 0 8px 24px -8px rgba(20,37,64,.45);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--navy);
  color: var(--text-light);
}

/* ── Header ───────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,250,247,.88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand-img { height: 46px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav > a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--slate);
  padding: 6px 0;
  position: relative;
  letter-spacing: .01em;
}
.site-nav > a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--spring);
}
.site-nav > a:hover { color: var(--navy-deep); }
.site-nav > a:hover::after { transform: scaleX(1); }
.site-nav > a:hover { color: var(--navy-deep); }
.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 8px 18px !important;
  border-radius: var(--radius);
  transition: background .25s var(--spring) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--navy-deep) !important; color: #fff !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.bar {
  display: block;
  height: 1.5px; width: 20px;
  background: var(--navy-deep);
  border-radius: 2px;
  transition: transform .3s var(--spring), opacity .2s;
  transform-origin: center;
}
.nav-toggle.is-open .bar-1 { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open .bar-2 { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open .bar-3 { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  background: var(--bg);
  transition: max-height .38s var(--spring);
}
.mobile-nav.open { max-height: 440px; border-top-color: var(--line); }
.mobile-nav nav { display: flex; flex-direction: column; padding: 8px var(--pad) 28px; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--slate);
  font-size: 1.05rem;
  font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: none; }
.mob-cta-link {
  margin-top: 16px;
  text-align: center;
  background: var(--navy);
  color: #fff !important;
  padding: 14px 0 !important;
  border-radius: var(--radius);
  font-weight: 600;
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 96px;
  overflow: hidden;
  /* Mesh gradient sottile — taste-skill */
  background:
    radial-gradient(ellipse 70% 60% at 90% 10%, rgba(31,58,95,.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(176,138,74,.05) 0%, transparent 70%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 { max-width: 16ch; margin-bottom: 20px; }
.lede {
  font-size: clamp(.98rem, 1.6vw, 1.12rem);
  color: var(--slate);
  max-width: 52ch;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust {
  list-style: none;
  padding: 24px 0 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  max-width: 640px;
}
.hero-trust li { display: flex; flex-direction: column; gap: 3px; }
.hero-trust strong { font-family: var(--ff-serif); font-size: 1rem; color: var(--navy-deep); font-weight: 700; }
.hero-trust span { font-size: .82rem; color: var(--text-muted); line-height: 1.45; }

/* Hero panel (dark card, destra) */
.hero-panel {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  /* Liquid glass refraction — taste-skill */
  border: 1px solid rgba(255,255,255,.07);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.07),
    0 40px 80px -30px rgba(14,28,48,.6);
}
.hero-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--navy-soft), var(--gold));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.panel-label {
  font-family: var(--ff-sans);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 20px;
}
.panel-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: 20px 0;
}
.panel-quote {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255,255,255,.88);
  margin: 0;
  font-weight: 400;
}
.panel-services {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel-services li {
  font-size: .88rem;
  color: var(--text-light-muted);
  padding-left: 14px;
  position: relative;
  font-weight: 500;
}
.panel-services li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: .8rem;
}
.panel-geo {
  margin: 20px 0 0;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: rgba(255,255,255,.25);
  font-weight: 600;
}

/* ── Sezioni base ─────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section.about            { background: var(--bg-soft); }
.section.services-section { background: var(--bg); }
.section.approach         { background: var(--bg-soft); }
.section.sectors          { background: var(--bg); padding-bottom: 80px; }
.section.cta              { background: var(--bg-dark); color: var(--text-light); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: 0; }
.section-lede { font-size: 1.02rem; color: var(--text-muted); margin-top: 16px; }

/* ── Steps (Metodo) ───────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  position: relative;
  padding: 40px 32px 40px 0;
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.step:last-child { border-right: none; padding-right: 0; }
.step:not(:first-child) { padding-left: 32px; }

/* Numero decorativo in background — taste-skill */
.step-bg-num {
  position: absolute;
  top: -0.1em; right: -0.05em;
  font-family: var(--ff-serif);
  font-size: 7rem;
  font-weight: 700;
  color: rgba(176,138,74,.06);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}
.step-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-num {
  font-family: var(--ff-sans);
  font-size: .68rem;
  letter-spacing: .28em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}
.step h3 { font-size: 1.25rem; font-weight: 700; margin: 0; color: var(--navy-deep); }
.step p  { font-size: .92rem; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ── Servizi — layout editoriale a righe ─────────────────────────── */
.svc-list { border-top: 1px solid var(--line); }

.svc-row {
  display: grid;
  grid-template-columns: 64px 240px 1fr;
  align-items: baseline;
  gap: 0 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: default;
  transition: background .3s var(--spring);
}
/* Spotlight spotlight border — taste-skill */
.svc-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--sx, 50%) var(--sy, 50%),
    rgba(176,138,74,.07),
    transparent 60%
  );
  opacity: 0;
  transition: opacity .35s var(--spring);
  pointer-events: none;
}
.svc-row:hover::before { opacity: 1; }
.svc-row:hover .svc-idx { color: var(--gold); }
.svc-row:hover h3 { color: var(--navy); }

.svc-idx {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(176,138,74,.5);
  font-weight: 700;
  transition: color .25s var(--spring);
  line-height: 1.3;
}
.svc-head h3 {
  font-family: var(--ff-serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--navy-deep);
  margin: 0;
  line-height: 1.2;
  transition: color .25s var(--spring);
}
.svc-desc {
  font-size: .95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
  max-width: 56ch;
}

/* ── Principi ─────────────────────────────────────────────────────── */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  border: 1px solid var(--line);
}
.principle {
  position: relative;
  padding: 44px 48px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-soft);
  transition: background .3s var(--spring);
}
.principle:hover { background: var(--bg); }

/* Numeri romani decorativi — taste-skill */
.p-bg-num {
  position: absolute;
  bottom: -0.15em; right: 0.1em;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 9rem;
  font-weight: 700;
  color: rgba(176,138,74,.055);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  letter-spacing: -0.05em;
}
.p-body { position: relative; z-index: 1; }
.p-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 12px;
}
.p-body p {
  font-size: .95rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.68;
  max-width: 46ch;
}

/* ── Settori — marquee cinetico ───────────────────────────────────── */
.sectors-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.sectors-intro {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
  align-self: end;
  padding-bottom: 4px;
}

.marquee-wrap {
  width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--ff-serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--navy-deep);
  padding: 0 22px;
  letter-spacing: -0.01em;
}
.marquee-track em { font-style: italic; color: var(--gold); }
.marquee-track .sep {
  color: var(--gold);
  font-family: var(--ff-sans);
  font-size: 1rem;
  padding: 0 4px;
  font-weight: 400;
}

.sectors-note {
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: 28px;
  font-style: italic;
}

/* ── CTA / Contatti ───────────────────────────────────────────────── */
.section.cta h2  { color: var(--text-light); }
.section.cta p   { color: var(--text-light-muted); }
.section.cta .eyebrow { color: var(--gold-soft); }
.section.cta .eyebrow-line { background: var(--gold-soft); }

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.cta-copy h2 { margin-bottom: 14px; }
.cta-copy > p { font-size: 1.02rem; margin-bottom: 28px; color: var(--text-light-muted); }
.cta-meta {
  list-style: none; padding: 22px 0 0; margin: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-direction: column; gap: 12px;
}
.cta-meta li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  font-size: .92rem;
  color: var(--text-light-muted);
}
.cta-meta li > span {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .68rem;
  color: var(--gold-soft);
  font-weight: 700;
}

/* Form */
.contact-form {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  /* Liquid glass */
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-light-muted);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text-light);
  padding: 12px 14px;
  border-radius: var(--radius);
  font: inherit;
  font-family: var(--ff-sans);
  font-size: .94rem;
  outline: none;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .25s var(--spring), background .25s var(--spring), box-shadow .25s var(--spring);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.3); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.08);
  box-shadow: 0 0 0 3px rgba(176,138,74,.14);
}
.field select option { color: var(--text); background: #fff; }
.field-invalid { border-color: #e0786a !important; background: rgba(224,120,106,.07) !important; }

.req { color: var(--gold-soft); font-size: .85em; margin-left: 2px; }
.field-opt { color: rgba(255,255,255,.3); font-size: .85em; font-weight: 400; letter-spacing: 0; text-transform: none; margin-left: 4px; }

/* Garantisce che [hidden] non venga sovrascritto dal display:flex del feedback */
[hidden] { display: none !important; }

.form-feedback {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: .9rem; line-height: 1.5;
  background: rgba(176,138,74,.1);
  border: 1px solid rgba(176,138,74,.25);
  color: var(--gold-soft);
}
.form-feedback--err { background: rgba(224,120,106,.1); border-color: rgba(224,120,106,.25); color: #f0a090; }
.form-feedback--err a { color: #f0a090; text-decoration: underline; }

.btn-form {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 4px;
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  min-height: 52px;
  font-size: .98rem;
}
.btn-form:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: #fff; }
.form-note { grid-column: 1 / -1; font-size: .74rem; color: rgba(255,255,255,.35); margin: 2px 0 0; line-height: 1.55; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-darker); padding: 64px 0 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-logo { height: 50px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1) opacity(.85); }
.footer-brand p { font-size: .88rem; color: var(--text-light-muted); max-width: 36ch; line-height: 1.65; }
.footer-col h4 { color: #fff; margin-bottom: 14px; font-family: var(--ff-sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { color: var(--text-light-muted); font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; display: flex; justify-content: center; }
.footer-bottom small { color: rgba(255,255,255,.32); font-size: .78rem; }

/* ── Mobile sticky CTA ────────────────────────────────────────────── */
.mob-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(251,250,247,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transition: transform .3s var(--spring), opacity .3s var(--spring);
}
.mob-sticky-cta .btn { width: 100%; justify-content: center; min-height: 52px; }
.mob-sticky-cta.hidden { transform: translateY(100%); opacity: 0; pointer-events: none; }

/* ── Responsive ───────────────────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-panel { max-width: 480px; }
  .steps { grid-template-columns: repeat(2,1fr); border-bottom: 1px solid var(--line); }
  .step { border-bottom: 1px solid var(--line); }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(3) { border-right: 1px solid var(--line); border-bottom: none; }
  .step:nth-child(4) { border-bottom: none; }
  .svc-row { grid-template-columns: 48px 200px 1fr; gap: 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* Tablet portrait */
@media (max-width: 860px) {
  .sectors-header { grid-template-columns: 1fr; gap: 20px; }
  .cta-grid { grid-template-columns: 1fr; gap: 44px; }
  .principles { grid-template-columns: 1fr; }
  .svc-row { grid-template-columns: 48px 1fr; grid-template-rows: auto auto; gap: 0 20px; }
  .svc-desc { grid-column: 2; margin-top: 10px; }
  .cta-meta li { grid-template-columns: 1fr; gap: 2px; }
}

/* Mobile */
@media (max-width: 720px) {
  :root { --pad: 20px; --header-h: 62px; }

  .site-nav   { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 52px 0 60px; }
  .hero-grid { gap: 32px; }
  .hero-panel { display: none; } /* Nascosto su mobile — sostituito da trust bar */
  .lede { font-size: .98rem; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-trust { grid-template-columns: 1fr 1fr; gap: 14px; }

  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }

  .steps {
    grid-template-columns: 1fr;
    border-bottom: none;
  }
  .step {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
    padding: 28px 0 !important;
  }
  .step:last-child { border-bottom: none; }
  .step-bg-num { font-size: 5rem; }

  .svc-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 0;
  }
  .svc-idx { display: none; }
  .svc-desc { margin-top: 0; }

  .principles { gap: 0; }
  .principle { padding: 32px 24px; }
  .p-bg-num { font-size: 6rem; }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 14px;
  }
  .field.full { grid-column: 1; }
  .btn-form { justify-self: stretch; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-bottom: 28px; }
  .footer-logo { height: 42px; }

  .mob-sticky-cta { display: block; }
  .site-footer { padding-bottom: calc(32px + 80px); }
}

@media (max-width: 380px) {
  :root { --pad: 16px; }
  .hero-trust { grid-template-columns: 1fr; }
}

/* ── Accessibilità: rispetta prefers-reduced-motion ──────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-anim, .reveal { animation: none; transition: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .scroll-progress { display: none; }
}
