/* ===================================================
   AVVOCATO ZAGONEL — Stylesheet
   Design: contemporary editorial — notte ink / porcellana / ottone
   Type:   Fraunces (display serif) + Instrument Sans (body)
   =================================================== */

/* ---------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------- */
:root {
  /* Ink (deep night-navy scale) */
  --ink-950: #06090F;
  --ink-900: #0A101B;
  --ink-850: #0E1626;
  --ink-800: #131C30;
  --ink-700: #20304B;
  --ink-600: #3A4E6E;

  /* Text on light */
  --text-strong: #0E1524;
  --text-body:   #3B4557;
  --text-muted:  #5E6775;

  /* Light surfaces — porcelain + elevated white */
  --paper:    #F6F5F1;
  --paper-2:  #EFEDE5;
  --white:    #FFFFFF;

  /* Hairlines */
  --line:        #E6E2D7;
  --line-strong: #D5CFBF;
  --line-dark:   rgba(244, 241, 234, .10);

  /* Ottone / brass accent */
  --oro:       #B99356;                    /* decorative, large elements */
  --oro-ink:   #7D6128;                    /* small text on light bg */
  --oro-soft:  #D8BE8E;                    /* text on dark bg */
  --oro-line:  rgba(185, 147, 86, .35);
  --oro-grad:  linear-gradient(115deg, #DCC28A 0%, #B99356 55%, #96763A 100%);

  /* On-dark text */
  --dark-text:      rgba(244, 241, 234, .94);
  --dark-text-mute: rgba(230, 226, 215, .72);
  --dark-text-dim:  rgba(230, 226, 215, .55);

  /* Type */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale — larger, more contrast between levels */
  --fs-hero:    clamp(3rem, 7vw, 5.75rem);
  --fs-h2:      clamp(2.1rem, 4vw, 3.375rem);
  --fs-h3:      clamp(1.45rem, 2.2vw, 1.875rem);
  --fs-h4:      1.1875rem;
  --fs-lead:    clamp(1.0625rem, 1.5vw, 1.25rem);
  --fs-body:    1rem;
  --fs-sm:      .9375rem;
  --fs-xs:      .8438rem;
  --fs-label:   .75rem;

  /* Rhythm */
  --section-y:  clamp(5.5rem, 11vw, 9.5rem);
  --container:  1280px;
  --gutter:     clamp(1.25rem, 4vw, 2.5rem);

  /* Radii */
  --r-xs:   8px;
  --r-sm:   12px;
  --r-md:   18px;
  --r-lg:   24px;
  --r-pill: 999px;

  /* Elevation scale */
  --shadow-sm: 0 1px 2px rgba(14, 21, 36, .04), 0 4px 12px -2px rgba(14, 21, 36, .05);
  --shadow-md: 0 2px 6px rgba(14, 21, 36, .05), 0 16px 40px -14px rgba(14, 21, 36, .16);
  --shadow-lg: 0 4px 12px rgba(14, 21, 36, .05), 0 36px 80px -28px rgba(14, 21, 36, .28);
  --shadow-dark: 0 24px 64px -24px rgba(0, 0, 0, .6);

  /* Motion */
  --dur-fast:  .2s;
  --dur:       .35s;
  --dur-slow:  .7s;
  --ease-out:    cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --transition:  .25s cubic-bezier(.4, 0, .2, 1);

  /* Fine monochrome grain (inline SVG) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-body);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
a, button { touch-action: manipulation; }

::selection { background: var(--oro); color: var(--white); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .fade-in { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------
   3. LAYOUT UTILITIES
   --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-padding { padding: var(--section-y) 0; }

/* Section headers — editorial, left-aligned by default */
.section-header {
  margin-bottom: clamp(3.25rem, 7vw, 5.5rem);
  max-width: 760px;
}

.section-header--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.section-header--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-header--center .section-label::before { display: none; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--oro-ink);
  margin-bottom: 22px;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--oro-grad);
}

.section-label--light { color: var(--oro-soft); }
.section-label--light::before { background: var(--oro-grad); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 480;
  letter-spacing: -.022em;
  color: var(--text-strong);
  line-height: 1.06;
  text-wrap: balance;
}

.section-title--white { color: var(--dark-text); }

.section-desc {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 22px;
  max-width: 620px;
}

.section-header--split .section-desc { margin-top: 0; padding-bottom: 8px; }
.section-header--center .section-desc { margin-left: auto; margin-right: auto; }

.section-desc--white { color: var(--dark-text-mute); }

/* ---------------------------------------------------
   4. BUTTONS — pill, with sheen sweep
   --------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  overflow: hidden;
  isolation: isolate;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--dur) var(--ease-spring),
              box-shadow var(--dur) var(--ease-out);
}

/* sheen sweep */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
  pointer-events: none;
}

.btn:hover { transform: translateY(-2px); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(.98); }

/* Filled light — for dark surfaces */
.btn--primary {
  background: var(--paper);
  color: var(--ink-900);
  border-color: var(--paper);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
}
.btn--primary:hover {
  background: var(--white);
  border-color: var(--white);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .55);
}

/* Ghost light — for dark surfaces */
.btn--outline {
  background: rgba(244, 241, 234, .02);
  color: var(--dark-text);
  border-color: rgba(244, 241, 234, .32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.btn--outline:hover {
  border-color: var(--oro-soft);
  color: var(--oro-soft);
  background: rgba(185, 147, 86, .1);
}

/* Filled dark — for light surfaces */
.btn--blue {
  background: var(--ink-900);
  color: var(--paper);
  border-color: var(--ink-900);
  box-shadow: 0 12px 28px -14px rgba(14, 21, 36, .55);
}
.btn--blue:hover {
  background: var(--ink-700);
  border-color: var(--ink-700);
  box-shadow: 0 18px 38px -16px rgba(14, 21, 36, .55);
}

/* Ghost dark — for light surfaces */
.btn--blue-outline {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--line-strong);
}
.btn--blue-outline:hover {
  border-color: var(--oro-ink);
  color: var(--oro-ink);
}

/* Inline text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-strong);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: color var(--transition), border-color var(--transition);
}
.link-arrow::after {
  content: '→';
  font-family: var(--font-display);
  transition: transform var(--dur) var(--ease-spring);
}
.link-arrow:hover { color: var(--oro-ink); border-color: var(--oro-ink); }
.link-arrow:hover::after { transform: translateX(6px); }

/* ---------------------------------------------------
   5. FADE-IN (scroll animation hook — do not rename)
   --------------------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(36px) scale(.985);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  will-change: auto;
}

/* Scroll progress bar (element injected by JS) */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--oro-grad);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1001;
  pointer-events: none;
}

/* ---------------------------------------------------
   6. HEADER
   --------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: background var(--transition), padding var(--transition),
              box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(6, 9, 15, .82);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  padding: 13px 0;
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 32px -12px rgba(0, 0, 0, .4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header__logo { display: flex; flex-direction: column; flex-shrink: 0; }

.header__logo-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--paper);
  line-height: 1.15;
  letter-spacing: .01em;
  white-space: nowrap;
}

.header__logo-title {
  font-size: .6875rem;
  color: var(--oro-soft);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 4px;
  white-space: nowrap;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: nowrap;
}

.nav__link {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dark-text-mute);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--oro-grad);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease-out);
}

.nav__link:hover,
.nav__link.active { color: var(--paper); }
.nav__link:hover::after,
.nav__link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--paper);
  white-space: nowrap;
  transition: color var(--transition);
}
.header__phone:hover { color: var(--oro-soft); }
.header__phone svg { transition: transform var(--dur) var(--ease-spring); }
.header__phone:hover svg { transform: rotate(12deg) scale(1.1); }

.header__cta .btn { padding: 12px 22px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 10px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--paper);
  transition: transform var(--dur) var(--ease-spring), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile menu — staggered entrance */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 15, .96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 80px 32px 48px;
  opacity: 0;
  transition: opacity .28s ease;
}
.mobile-menu.open { display: flex; opacity: 1; }

.mobile-menu .nav__link {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 480;
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--dark-text);
  padding: 10px 0;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), color var(--transition);
}
.mobile-menu.open .nav__link {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open .nav__link:nth-child(1) { transition-delay: .05s; }
.mobile-menu.open .nav__link:nth-child(2) { transition-delay: .1s; }
.mobile-menu.open .nav__link:nth-child(3) { transition-delay: .15s; }
.mobile-menu.open .nav__link:nth-child(4) { transition-delay: .2s; }
.mobile-menu.open .nav__link:nth-child(5) { transition-delay: .25s; }
.mobile-menu.open .nav__link:nth-child(6) { transition-delay: .3s; }
.mobile-menu .nav__link::after { display: none; }
.mobile-menu .nav__link:hover { color: var(--oro-soft); }

.mobile-menu .btn {
  margin-top: 28px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s var(--ease-out) .36s, transform .5s var(--ease-out) .36s,
              background var(--transition), color var(--transition), border-color var(--transition);
}
.mobile-menu.open .btn { opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------
   7. HERO
   --------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(130% 100% at 72% -10%, var(--ink-800) 0%, var(--ink-900) 42%, var(--ink-950) 78%);
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(8rem, 14vh, 11rem) 0 clamp(4rem, 8vh, 6rem);
  overflow: hidden;
}

/* Aurora layer — slow-drifting gradient orbs, GPU-composited (transform only) */
.hero__aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__aurora span {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

/* brass breath, upper right */
.hero__aurora span:nth-child(1) {
  width: clamp(480px, 58vw, 900px);
  height: clamp(480px, 58vw, 900px);
  top: -22%; right: -14%;
  background: radial-gradient(closest-side, rgba(185, 147, 86, .22), rgba(185, 147, 86, .07) 46%, transparent 72%);
  animation: aurora-drift-a 26s ease-in-out infinite alternate;
}

/* cold steel counterweight, lower left */
.hero__aurora span:nth-child(2) {
  width: clamp(420px, 52vw, 820px);
  height: clamp(420px, 52vw, 820px);
  bottom: -30%; left: -16%;
  background: radial-gradient(closest-side, rgba(58, 78, 110, .4), rgba(32, 48, 75, .16) 50%, transparent 74%);
  animation: aurora-drift-b 32s ease-in-out infinite alternate;
}

/* faint warm ember, center-left */
.hero__aurora span:nth-child(3) {
  width: clamp(320px, 36vw, 560px);
  height: clamp(320px, 36vw, 560px);
  top: 34%; left: 26%;
  background: radial-gradient(closest-side, rgba(216, 190, 142, .09), transparent 70%);
  animation: aurora-drift-c 22s ease-in-out infinite alternate;
}

@keyframes aurora-drift-a {
  from { transform: translate3d(-4%, 3%, 0) scale(1); }
  to   { transform: translate3d(5%, -4%, 0) scale(1.14); }
}
@keyframes aurora-drift-b {
  from { transform: translate3d(3%, -3%, 0) scale(1.08); }
  to   { transform: translate3d(-5%, 4%, 0) scale(1); }
}
@keyframes aurora-drift-c {
  from { transform: translate3d(-6%, -4%, 0) scale(1); }
  to   { transform: translate3d(6%, 5%, 0) scale(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__aurora span { animation: none; }
}

/* faint vertical hairline grid + fine grain */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(90deg, rgba(244, 241, 234, .04) 1px, transparent 1px),
    var(--grain);
  background-size: 25% 100%, 180px 180px;
  pointer-events: none;
}

/* depth vignette — keeps type legible over the aurora */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(6, 9, 15, .35), transparent 30%, transparent 72%, rgba(6, 9, 15, .5)),
    radial-gradient(90% 70% at 50% 50%, transparent 55%, rgba(6, 9, 15, .38) 100%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 2; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

/* entrance choreography — hero only, on load */
.hero__badge,
.hero__title,
.hero__subtitle,
.hero__services,
.hero__cta {
  animation: hero-rise .9s var(--ease-out) both;
}
.hero__title    { animation-delay: .08s; }
.hero__subtitle { animation-delay: .18s; }
.hero__services { animation-delay: .28s; }
.hero__cta      { animation-delay: .38s; }

.hero__panel { animation: hero-rise 1s var(--ease-out) .3s both; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--oro-soft);
  margin-bottom: 30px;
  padding: 9px 18px;
  border: 1px solid rgba(216, 190, 142, .28);
  border-radius: var(--r-pill);
  background: rgba(185, 147, 86, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--oro-soft);
  box-shadow: 0 0 0 0 rgba(216, 190, 142, .5);
  animation: badge-pulse 2.6s ease-out infinite;
}
@keyframes badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(216, 190, 142, .45); }
  70%  { box-shadow: 0 0 0 9px rgba(216, 190, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 190, 142, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 460;
  color: var(--paper);
  line-height: 1.02;
  letter-spacing: -.028em;
  margin-bottom: 30px;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
  background: var(--oro-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: var(--fs-lead);
  color: var(--dark-text-mute);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 38px;
}

.hero__services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 32px;
  margin-bottom: 46px;
  padding: 26px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.hero__service-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--dark-text);
}
.hero__service-item::before {
  content: '—';
  color: var(--oro);
  flex-shrink: 0;
  font-weight: 400;
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Hero panel — "dossier" card, frosted glass */
.hero__panel {
  border: 1px solid rgba(244, 241, 234, .12);
  border-top-color: rgba(244, 241, 234, .2);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 3vw, 2.75rem);
  position: relative;
  background: linear-gradient(160deg, rgba(19, 28, 48, .5), rgba(6, 9, 15, .36));
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .07),
    var(--shadow-dark);
  overflow: hidden;
}

/* brass top hairline gradient */
.hero__panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--oro-grad);
  opacity: .85;
}

.hero__panel-title {
  font-size: var(--fs-label);
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oro-soft);
  margin-bottom: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-dark);
}

.hero__feature-list { display: flex; flex-direction: column; }

.hero__feature {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 13px 10px;
  margin: 0 -10px;
  border-bottom: 1px solid rgba(244, 241, 234, .07);
  border-radius: var(--r-xs);
  transition: background var(--transition);
}
.hero__feature:last-child { border-bottom: none; }
.hero__feature:hover { background: rgba(244, 241, 234, .045); }

.hero__feature-icon {
  font-family: var(--font-display);
  font-size: .8125rem;
  font-style: italic;
  color: var(--oro);
  flex-shrink: 0;
  min-width: 22px;
}

.hero__feature-text {
  font-size: var(--fs-sm);
  color: var(--dark-text);
  line-height: 1.5;
}

.hero__contact-strip {
  margin-top: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .875rem;
  color: var(--oro-soft);
}
.hero__contact-item strong {
  color: var(--paper);
  font-weight: 500;
  letter-spacing: .02em;
}

/* ---------------------------------------------------
   8. SERVIZI — editorial index rows with hover card wash
   --------------------------------------------------- */
.services {
  background:
    var(--grain) top left / 180px 180px repeat,
    radial-gradient(1000px 560px at 88% -6%, rgba(185, 147, 86, .08), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.services__grid {
  border-top: 1px solid var(--line-strong);
}

.service-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 0;
}

/* elevated card wash on hover */
.service-row::before {
  content: '';
  position: absolute;
  inset: 12px clamp(-28px, -2vw, -16px);
  z-index: -1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: scale(.99);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  pointer-events: none;
}
.service-row:hover::before { opacity: 1; transform: scale(1); }

.service-row__index {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1;
  color: var(--line-strong);
  padding-top: .35rem;
  transition: color var(--dur) var(--ease-out), transform var(--dur) var(--ease-spring);
}

.service-row:hover .service-row__index {
  color: var(--oro);
  transform: translateX(4px);
}

.service-row__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--text-strong);
  line-height: 1.15;
  margin-bottom: 18px;
  transition: transform var(--dur) var(--ease-out);
}
.service-row:hover .service-row__title { transform: translateX(6px); }

.service-row__desc {
  font-size: var(--fs-body);
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 54ch;
}

.service-row__footer {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.service-row__contact {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.5;
}
.service-row__contact strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: .02em;
}

.service-row__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--line);
  padding-left: clamp(1.5rem, 3vw, 2.5rem);
  align-self: center;
}

.service-row__list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--fs-sm);
  color: var(--text-body);
  padding: 9px 0;
}
.service-row__list li::before {
  content: '·';
  font-family: var(--font-display);
  font-size: 1.4em;
  line-height: 1;
  color: var(--oro);
  flex-shrink: 0;
}

/* ---------------------------------------------------
   9. CHI SONO
   --------------------------------------------------- */
.about { background: var(--white); }

.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: start;
}

.about__text h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--text-strong);
  margin-bottom: 28px;
  letter-spacing: -.015em;
}

.about__text p {
  font-size: var(--fs-body);
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 22px;
}

.about__text > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.4em;
  font-weight: 500;
  float: left;
  line-height: .82;
  padding: .08em .12em 0 0;
  color: var(--text-strong);
}

.about__quote {
  position: relative;
  margin: 40px 0;
  padding: 26px 30px 26px 34px;
  border-left: 2px solid var(--oro);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background:
    url('../assets/images/scales-emblem.png') right -10px top -10px / 240px auto no-repeat,
    linear-gradient(120deg, var(--paper), var(--white) 70%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  color: var(--text-strong);
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
}

.about__quote::before {
  content: '“';
  position: absolute;
  left: -14px; top: -24px;
  font-size: 3.5rem;
  color: var(--oro);
  background: var(--white);
  line-height: 1;
  padding: 2px 6px;
  border-radius: 50%;
}

.about__text .btn { margin-top: 12px; }

/* Figura editoriale — studio */
.about__figure {
  position: relative;
  margin-bottom: 28px;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 72%;
  transition: transform 1.1s var(--ease-out);
}
.about__figure:hover img { transform: scale(1.045); }

/* brass baseline */
.about__figure::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--oro-grad);
}

/* Timeline — formazione */
.timeline {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(2rem, 3.5vw, 3rem);
  position: sticky;
  top: 110px;
  box-shadow: var(--shadow-sm);
}

.timeline__title {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oro-ink);
  margin-bottom: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.timeline__list { position: relative; }

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.timeline__item:last-child { border-bottom: none; padding-bottom: 4px; }

.timeline__dot {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.375rem;
  font-weight: 420;
  color: var(--oro);
  line-height: 1.2;
  grid-row: span 2;
}

.timeline__item-title {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-strong);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

.timeline__item-desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.65;
  grid-column: 2;
}

/* ---------------------------------------------------
   10. VALORI — dark band, glass cards
   --------------------------------------------------- */
.values {
  background:
    radial-gradient(120% 90% at 50% -20%, var(--ink-900) 0%, var(--ink-950) 62%);
  position: relative;
  overflow: hidden;
}
.values::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    var(--grain) top left / 180px 180px repeat,
    url('../assets/images/colonnade-line.png') center 100% / min(1100px, 92%) auto no-repeat;
  pointer-events: none;
}
/* drifting brass glow — same aurora language as the hero */
.values::after {
  content: '';
  position: absolute;
  top: -34%; left: 50%;
  width: clamp(520px, 60vw, 940px);
  height: clamp(420px, 46vw, 720px);
  margin-left: calc(clamp(520px, 60vw, 940px) / -2);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(185, 147, 86, .15), rgba(185, 147, 86, .05) 48%, transparent 72%);
  animation: aurora-drift-a 30s ease-in-out infinite alternate;
  will-change: transform;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .values::after { animation: none; }
}
.values .container { position: relative; z-index: 1; }

.values__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.value-card {
  padding: clamp(2rem, 3.5vw, 2.75rem);
  background: rgba(244, 241, 234, .035);
  border: 1px solid rgba(244, 241, 234, .09);
  border-radius: var(--r-md);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.value-card:hover {
  transform: translateY(-6px);
  background: rgba(244, 241, 234, .055);
  border-color: rgba(216, 190, 142, .3);
  box-shadow: var(--shadow-dark);
}

.value-card__icon {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  font-weight: 420;
  color: var(--oro);
  margin-bottom: 22px;
  transition: transform var(--dur) var(--ease-spring);
}
.value-card:hover .value-card__icon { transform: translateX(4px); }

.value-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--dark-text);
  margin-bottom: 14px;
  letter-spacing: -.01em;
}

.value-card__desc {
  font-size: var(--fs-sm);
  color: var(--dark-text-mute);
  line-height: 1.75;
}

/* ---------------------------------------------------
   11. COMPETENZE — elevated cards
   --------------------------------------------------- */
.competenze { background: var(--paper-2); }

.competenze__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2vw, 1.5rem);
}

.competenza-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out);
}
.competenza-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--oro-line);
}

.competenza-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--oro-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.competenza-card:hover::after { transform: scaleX(1); }

.competenza-card__icon {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--oro-ink);
  margin-bottom: 38px;
  transition: transform var(--dur) var(--ease-spring);
}
.competenza-card:hover .competenza-card__icon { transform: translateX(4px); }

.competenza-card__title {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 500;
  color: var(--text-strong);
  margin-bottom: 12px;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.competenza-card__desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------------------------------------------------
   12. ASSISTENZA — vertical tab rail
   --------------------------------------------------- */
.assistenza { background: var(--white); }

.assistenza__layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.assistenza__tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 110px;
}

.tab-btn {
  position: relative;
  text-align: left;
  padding: 15px 22px;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text-muted);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  transition: color var(--transition), border-color var(--transition),
              background var(--transition), transform var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}
.tab-btn:hover {
  color: var(--text-strong);
  background: var(--paper);
  transform: translateX(4px);
}
.tab-btn.active {
  color: var(--paper);
  font-weight: 600;
  background: var(--ink-900);
  border-color: var(--ink-900);
  box-shadow: var(--shadow-md);
  transform: translateX(6px);
}
.tab-btn.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 55%;
  transform: translateY(-50%);
  background: var(--oro-grad);
  border-radius: var(--r-pill);
}

.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  animation: panelIn .5s var(--ease-out);
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.assistenza__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.assistenza__panel-title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--text-strong);
  margin-bottom: 18px;
  line-height: 1.15;
}

.assistenza__panel-desc {
  font-size: var(--fs-body);
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 36px;
}

.step-list {
  display: flex;
  flex-direction: column;
  counter-reset: steps;
}

.step-item {
  display: flex;
  gap: 22px;
  align-items: baseline;
  padding: 18px 12px;
  margin: 0 -12px;
  border-top: 1px solid var(--line);
  border-radius: var(--r-xs);
  transition: background var(--transition);
}
.step-item:hover { background: var(--paper); }

.step-item__num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--oro-ink);
  flex-shrink: 0;
  min-width: 30px;
}

.step-item__title {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--text-strong);
  margin-bottom: 5px;
  letter-spacing: .01em;
}

.step-item__desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.65;
}

/* Aside card in panels */
.feature-list-alt {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: sticky;
  top: 110px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.feature-list-alt::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--oro-grad);
}

.feature-list-alt__title {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--oro-ink);
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.feature-item-alt {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--fs-xs);
  color: var(--text-body);
  line-height: 1.55;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.feature-item-alt:last-child { border-bottom: none; }

.feature-item-alt__icon {
  color: var(--oro-ink);
  flex-shrink: 0;
  font-size: .8125rem;
}

/* ---------------------------------------------------
   13. PROCEDIMENTO — ghost-number grid
   --------------------------------------------------- */
.procedimento { background: var(--paper); }

.procedimento__timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  counter-reset: fase;
}

.proc-step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
  transition: transform var(--dur) var(--ease-out);
}
.proc-step::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 48px; height: 2px;
  background: var(--oro-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.proc-step:hover::before { transform: scaleX(1); }
.proc-step:hover { transform: translateY(-4px); }

.proc-step__num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  font-size: clamp(2.75rem, 4.5vw, 3.75rem);
  line-height: 1;
  color: var(--oro);
  margin-bottom: 20px;
  transition: color var(--dur) var(--ease-out);
}

@supports (-webkit-text-stroke: 1px black) {
  .proc-step__num {
    color: transparent;
    -webkit-text-stroke: 1px var(--oro);
  }
  .proc-step:hover .proc-step__num { color: var(--oro); }
}

.proc-step__title {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 500;
  color: var(--text-strong);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.proc-step__desc {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------------------------------------------------
   14. CTA BANNER
   --------------------------------------------------- */
.cta-banner {
  background: var(--ink-950) url('../assets/images/cta-colonnade.jpg') center / cover no-repeat;
  padding: clamp(5.5rem, 11vw, 9rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    var(--grain) top left / 180px 180px repeat,
    radial-gradient(720px 480px at 50% 120%, rgba(185, 147, 86, .2), transparent 65%),
    linear-gradient(180deg, rgba(6, 9, 15, .64), rgba(6, 9, 15, .34) 45%, rgba(6, 9, 15, .68)),
    radial-gradient(ellipse 80% 100% at 50% 50%, rgba(6, 9, 15, .3), rgba(6, 9, 15, .55) 100%);
  pointer-events: none;
}

.cta-banner .container { position: relative; max-width: 880px; }

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 460;
  font-style: italic;
  color: var(--paper);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  text-wrap: balance;
}

.cta-banner p {
  font-size: var(--fs-lead);
  color: var(--dark-text-mute);
  margin: 0 auto 46px;
  max-width: 580px;
  line-height: 1.7;
}

.cta-banner__btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------
   15. FAQ — card list
   --------------------------------------------------- */
.faq { background: var(--white); }

.faq__list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item.open {
  border-color: var(--oro-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 24px 28px;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--text-strong);
  line-height: 1.35;
  transition: color var(--transition);
}
.faq-item__question:hover { color: var(--oro-ink); }

.faq-item__icon {
  font-family: var(--font-body);
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1;
  color: var(--oro-ink);
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform .4s var(--ease-spring), background var(--transition),
              color var(--transition), border-color var(--transition);
}

.faq-item.open .faq-item__icon {
  transform: rotate(45deg);
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--paper);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease-out);
}

.faq-item__answer-inner {
  padding: 0 60px 28px 28px;
  font-size: var(--fs-sm);
  color: var(--text-body);
  line-height: 1.8;
}

/* ---------------------------------------------------
   16. CONTATTI
   --------------------------------------------------- */
.contatti { background: var(--paper-2); }

.contatti__inner {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.contatti__info h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--text-strong);
  margin-bottom: 16px;
  letter-spacing: -.015em;
}

.contatti__info > p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-top: 1px solid var(--line-strong);
}

.contact-item__label {
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--oro-ink);
  font-weight: 600;
}

.contact-item__value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--text-strong);
  letter-spacing: -.01em;
}

.contact-item__value a {
  transition: color var(--transition);
  border-bottom: 1px solid transparent;
}
.contact-item__value a:hover {
  color: var(--oro-ink);
  border-bottom-color: var(--oro-line);
}

.contatti__hours {
  margin-top: 36px;
  padding: 24px 28px;
  border-left: 2px solid var(--oro);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.contatti__hours h4 {
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--text-strong);
  margin-bottom: 10px;
}

.contatti__hours p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.7;
}

/* Form — elevated card */
.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4vw, 3.25rem);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--oro-grad);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  color: var(--text-strong);
  margin-bottom: 10px;
  letter-spacing: -.015em;
}

.contact-form > form > p {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 38px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-strong);
  margin-bottom: 10px;
}

.form-group label span { color: var(--oro-ink); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-strong);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}

.form-group input:hover,
.form-group textarea:hover { border-color: var(--line-strong); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--oro-ink);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(185, 147, 86, .16);
}

.form-group textarea {
  height: 130px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #9AA1AD; }

.form-privacy {
  font-size: var(--fs-label);
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.form-submit {
  position: relative;
  width: 100%;
  padding: 19px;
  background: var(--ink-900);
  color: var(--paper);
  border: 1px solid var(--ink-900);
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: background var(--transition), transform var(--dur) var(--ease-spring),
              box-shadow var(--dur) var(--ease-out);
}
.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
  pointer-events: none;
}
.form-submit:hover {
  background: var(--ink-700);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -16px rgba(14, 21, 36, .55);
}
.form-submit:hover::before { transform: translateX(120%); }
.form-submit:disabled { opacity: .75; cursor: wait; transform: none; }

/* ---------------------------------------------------
   17. FOOTER
   --------------------------------------------------- */
.footer {
  background: var(--ink-950);
  color: var(--dark-text-mute);
  padding: clamp(4rem, 8vw, 6rem) 0 0;
  border-top: 1px solid var(--oro-line);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 190, 142, .55), transparent);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line-dark);
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--paper);
  margin-bottom: 6px;
}

.footer__brand-title {
  font-size: .6875rem;
  color: var(--oro-soft);
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.footer__brand-desc {
  font-size: var(--fs-xs);
  line-height: 1.7;
  color: var(--dark-text-dim);
  max-width: 34ch;
}

.footer__col-title {
  font-size: var(--fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--oro-soft);
  margin-bottom: 22px;
}

.footer__col-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer__col-list a {
  font-size: var(--fs-xs);
  color: var(--dark-text-mute);
  display: inline-block;
  transition: color var(--transition), transform var(--dur) var(--ease-out);
}
.footer__col-list a:hover {
  color: var(--oro-soft);
  transform: translateX(4px);
}

.footer__contact-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 18px;
}

.footer__contact-label {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--dark-text-dim);
}

.footer__contact-item strong { font-weight: 500; }
.footer__contact-item a,
.footer__contact-item strong {
  font-size: var(--fs-sm);
  color: var(--dark-text);
  transition: color var(--transition);
}
.footer__contact-item a:hover { color: var(--oro-soft); }

.footer__bottom {
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-label);
  letter-spacing: .02em;
  color: var(--dark-text-dim);
}

/* ---------------------------------------------------
   17b. WHATSAPP WIDGET (floating)
   --------------------------------------------------- */
.whatsapp-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 1px solid var(--oro-line);
  color: #3CD371;
  box-shadow: 0 10px 30px -8px rgba(6, 9, 15, .5);
  transition: transform var(--dur) var(--ease-spring),
              box-shadow var(--dur) var(--ease-out),
              border-color var(--transition);
}
.whatsapp-widget:hover,
.whatsapp-widget:focus-visible {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--oro-line);
  box-shadow: 0 16px 36px -8px rgba(6, 9, 15, .6);
  color: #4EE585;
}

@media (max-width: 640px) {
  .whatsapp-widget {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
  }
}

/* ---------------------------------------------------
   18. RESPONSIVE
   --------------------------------------------------- */
@media (max-width: 1380px) {
  .header__phone { display: none; }
}

@media (max-width: 1140px) {
  .header__cta { display: none; }
}

@media (max-width: 1024px) {
  .nav__list { display: none; }
  .hamburger { display: flex; }

  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__panel { display: none; }
  .hero__subtitle { max-width: 60ch; }

  .section-header--split { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .section-header--split .section-desc { padding-bottom: 0; }

  .about__inner { grid-template-columns: 1fr; gap: 56px; }
  .timeline { position: static; }

  .service-row { grid-template-columns: 72px minmax(0, 1fr); }
  .service-row::before { inset: 8px -14px; }
  .service-row__list {
    grid-column: 2;
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 12px;
    margin-top: 8px;
  }

  .assistenza__layout { grid-template-columns: 1fr; gap: 40px; }
  .assistenza__tabs {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .assistenza__tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    flex-shrink: 0;
    padding: 12px 20px;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: var(--paper);
  }
  .tab-btn:hover { transform: none; }
  .tab-btn.active {
    transform: none;
    border-color: var(--ink-900);
  }
  .tab-btn.active::before { display: none; }

  .assistenza__panel { grid-template-columns: 1fr; gap: 36px; }
  .feature-list-alt { position: relative; top: auto; }

  .procedimento__timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .contatti__inner { grid-template-columns: 1fr; gap: 48px; }

  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header { padding: 18px 0; }
  .header.scrolled { padding: 12px 0; }

  .hero { min-height: 0; padding-top: 8.5rem; }
  .hero__services { grid-template-columns: 1fr; gap: 10px; }
  .hero__cta { flex-direction: column; align-items: stretch; }

  .service-row { grid-template-columns: 1fr; gap: 16px; }
  .service-row::before { display: none; }
  .service-row__index { padding-top: 0; }
  .service-row__list { grid-column: 1; }
  .service-row__footer { gap: 20px; }

  .values__grid { grid-template-columns: 1fr; }

  .competenze__grid { grid-template-columns: 1fr; }
  .competenza-card__icon { margin-bottom: 20px; }

  .procedimento__timeline { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .faq-item__question { padding: 20px 20px; }
  .faq-item__answer-inner { padding: 0 20px 24px 20px; }

  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.625rem; }
  .btn { width: 100%; }
  .header__logo-name { font-size: 1.0625rem; }
  .cta-banner__btns { flex-direction: column; }
  .contact-form { padding: 28px 22px; }
  .timeline { padding: 24px 20px; }
  .about__quote { padding: 20px 20px 20px 24px; }
}
