
/* ================================================
   EDILT.ECNO — Design System
   Blu Navy (dal logo) + Arancione pennellata
   Fraunces display + Inter Tight body
================================================ */

:root {
  /* Brand colors estratti dal logo */
  --navy: #1a3a5c;
  --navy-deep: #0f2540;
  --navy-soft: #2a4f78;
  --orange: #e8631a;
  --orange-bright: #ff6b1f;
  --orange-soft: #fff1e6;
  --cream: #faf7f2;
  --cream-warm: #f5efe5;
  --ink: #0a1628;
  --ink-soft: #4a5568;
  --ink-muted: #8a96a8;
  --line: #e6ded0;
  --white: #ffffff;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter Tight', -apple-system, sans-serif;

  /* Spacing */
  --container: 1240px;
  --radius: 4px;
  --radius-lg: 18px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 12px 40px rgba(10, 22, 40, 0.10);
  --shadow-lg: 0 30px 80px rgba(10, 22, 40, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--navy-deep);
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); font-variation-settings: "opsz" 144, "SOFT" 50; }
h2 { font-size: clamp(2rem, 4.5vw, 3.8rem); font-variation-settings: "opsz" 100; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-variation-settings: "opsz" 72; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--orange);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}
.nav.scrolled {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-weight: 500; }
.logo-text span {
  font-family: var(--font-body);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  margin-top: 4px;
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav-menu a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color 0.3s;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--orange);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-menu a:hover { color: var(--orange); }
.nav-menu a:hover::after { width: 100%; }

/* ===== DROPDOWN DESKTOP ===== */
.nav-item-dropdown {
  position: relative;
}
.nav-item-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-item-dropdown > a::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  margin-left: 2px;
  transition: transform 0.3s ease;
  opacity: 0.7;
}
.nav-item-dropdown:hover > a::before {
  transform: rotate(225deg) translateX(-2px);
  opacity: 1;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  background: var(--white);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 12px 40px rgba(15, 37, 64, 0.12), 0 2px 8px rgba(15, 37, 64, 0.06);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}
.nav-dropdown::before {
  /* Triangolo connettore in alto */
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--white);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.nav-dropdown::after {
  /* "Ponte invisibile" tra il link e il dropdown per non perdere hover */
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy-deep);
  transition: all 0.2s ease;
}
.nav-dropdown a::after { display: none; } /* rimuovo underline ereditato */
.nav-dropdown a:hover {
  background: var(--cream);
  color: var(--orange);
  padding-left: 18px;
}
.nav-dropdown a .nd-icon {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
  opacity: 0.85;
}
.nav-dropdown a:hover .nd-icon {
  opacity: 1;
  transform: scale(1.1);
}
.nav-dropdown a .nd-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown a .nd-title {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--navy-deep);
  letter-spacing: -0.005em;
}
.nav-dropdown a:hover .nd-title { color: var(--orange); }
.nav-dropdown a .nd-sub {
  font-size: 0.74rem;
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.nav-dropdown .nd-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 8px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--orange);
  color: var(--cream) !important;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(232, 99, 26, 0.28);
}
.nav-cta:hover {
  background: var(--navy-deep);
  color: var(--cream) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(10, 22, 40, 0.25);
}
.nav-cta svg { width: 14px; height: 14px; stroke: var(--cream); }

.nav-toggle { display: none; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 140px 0 100px;
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60vh;
  background:
    radial-gradient(ellipse at top right, rgba(232, 99, 26, 0.07), transparent 50%),
    radial-gradient(ellipse at 20% 30%, rgba(26, 58, 92, 0.05), transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

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

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.hero-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

h1.hero-title {
  margin-bottom: 28px;
  font-weight: 300;
}
.hero-title .accent {
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
  position: relative;
  display: inline-block;
}
.hero-title .accent::after {
  content: '';
  position: absolute;
  left: -4px; right: -4px;
  bottom: 8px;
  height: 14px;
  background: rgba(232, 99, 26, 0.15);
  z-index: -1;
  transform: skewX(-8deg);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--navy-deep);
  color: var(--cream);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 0;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary span, .btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary svg { width: 16px; height: 16px; transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 8px;
  color: var(--navy-deep);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 12px; left: 8px; right: 8px;
  height: 1px;
  background: var(--navy-deep);
  transform-origin: left;
  transition: transform 0.3s;
}
.btn-ghost:hover::after { transform: scaleX(1.05); }

/* Hero visual: pennellata animata */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.1;
  max-width: 520px;
  margin-left: auto;
}
.visual-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f4468 0%, #0f2540 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.visual-circle::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 50%);
}
.visual-img {
  position: absolute;
  top: 8%; left: 8%; right: 8%; bottom: 8%;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(250, 247, 242, 0.1);
}
.visual-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}

/* Orange brush stroke decoration */
.brush-stroke {
  position: absolute;
  bottom: -20px; left: -30px;
  width: 180px; height: 60px;
  z-index: 2;
}

/* Floating card */
.float-card {
  position: absolute;
  background: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
}
.float-card-1 {
  top: 8%; right: -10%;
  animation: float 6s ease-in-out infinite;
}
.float-card-2 {
  bottom: 12%; left: -8%;
  animation: float 6s ease-in-out infinite 3s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-card .num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--orange);
  line-height: 1;
}
.float-card .lbl {
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.scroll-hint::after {
  content: '';
  width: 1px; height: 40px;
  background: var(--ink-muted);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== MARQUEE ===== */
.marquee {
  background: var(--navy-deep);
  color: var(--cream);
  padding: 22px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  font-variation-settings: "opsz" 100;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 60px;
}
.marquee-track .sep {
  color: var(--orange);
  font-size: 1rem;
  font-style: normal;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SECTION base ===== */
section {
  padding: 120px 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 0; }
.section-head .lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ===== ABOUT ===== */
.about { background: var(--white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-visual video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.about-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.15) 0%, transparent 30%, transparent 60%, rgba(10, 22, 40, 0.75) 100%),
    radial-gradient(circle at 70% 30%, rgba(232, 99, 26, 0.12), transparent 60%);
  z-index: 2;
  pointer-events: none;
}
.about-visual .deco-circle {
  position: absolute;
  border: 1px solid rgba(250, 247, 242, 0.18);
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}
.deco-circle.c1 {
  width: 80%; aspect-ratio: 1;
  top: 10%; left: -30%;
}
.deco-circle.c2 {
  width: 60%; aspect-ratio: 1;
  bottom: -20%; right: -20%;
}
.about-visual .signature {
  position: absolute;
  bottom: 30px; left: 30px;
  right: 30px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--cream);
  z-index: 4;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.about-visual .signature::before {
  content: '';
  display: block;
  width: 30px; height: 1px;
  background: var(--orange);
  margin-bottom: 10px;
}
.about-visual .signature .role {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.75);
  margin-top: 6px;
}

.about-content h2 { margin-bottom: 28px; }
.about-content h2 em {
  font-style: italic;
  color: var(--orange);
  font-weight: 500;
}
.about-text p {
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.about-text p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 500;
  float: left;
  line-height: 0.9;
  margin: 6px 12px 0 0;
  color: var(--navy-deep);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--navy-deep);
  line-height: 1;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 144;
}
.stat .num .plus { color: var(--orange); }
.stat .lbl {
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ===== SERVICES ===== */
.services { background: var(--cream-warm); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service {
  background: var(--white);
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  cursor: pointer;
}
.service::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.service:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--line);
}
.service:hover::before { transform: scaleX(1); }

.service-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 24px;
  font-weight: 400;
  letter-spacing: 0.1em;
}
.service-icon {
  width: 48px; height: 48px;
  margin-bottom: 20px;
  color: var(--navy-deep);
  transition: color 0.3s;
}
.service:hover .service-icon { color: var(--orange); }
.service h3 {
  margin-bottom: 14px;
  font-size: 1.55rem;
}
.service p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 24px;
}
.service-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}
.service-features span {
  font-size: 0.74rem;
  padding: 4px 10px;
  background: var(--cream-warm);
  border-radius: 100px;
  color: var(--ink-soft);
  font-weight: 500;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--navy-deep);
  font-weight: 500;
  transition: color 0.3s, gap 0.3s;
}
.service:hover .service-link {
  color: var(--orange);
  gap: 12px;
}

/* === Service "feature" card (con immagine di sfondo) === */
.service.service--feature {
  background: var(--navy-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(250, 247, 242, 0.1);
}
.service.service--feature .service-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service.service--feature:hover .service-bg {
  transform: scale(1.06);
}
.service.service--feature::after {
  /* gradient overlay scuro per leggibilità */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(15, 37, 64, 0.55) 0%, rgba(15, 37, 64, 0.85) 60%, rgba(15, 37, 64, 0.95) 100%);
  pointer-events: none;
  transition: background 0.5s ease;
}
.service.service--feature:hover::after {
  background:
    linear-gradient(180deg, rgba(15, 37, 64, 0.45) 0%, rgba(15, 37, 64, 0.80) 60%, rgba(15, 37, 64, 0.92) 100%);
}
/* Ripristino z-index del contenuto sopra l'overlay */
.service.service--feature > *:not(.service-bg) {
  position: relative;
  z-index: 2;
}
/* Top border arancione (sostituisce ::before standard) */
.service.service--feature::before {
  background: var(--orange);
  z-index: 3;
}
.service.service--feature .service-num {
  color: rgba(250, 247, 242, 0.55);
}
.service.service--feature .service-icon {
  color: var(--orange);
}
.service.service--feature:hover .service-icon { color: var(--orange); }
.service.service--feature h3 { color: var(--cream); }
.service.service--feature p {
  color: rgba(250, 247, 242, 0.78);
}
/* Tag "esclusivo" che identifica il servizio di nicchia */
.service.service--feature .service-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  padding: 5px 11px;
  background: var(--orange);
  color: var(--cream);
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(232, 99, 26, 0.35);
}
.service.service--feature .service-features span {
  background: rgba(250, 247, 242, 0.1);
  color: var(--cream);
  border: 1px solid rgba(250, 247, 242, 0.15);
}
.service.service--feature .service-link {
  color: var(--cream);
}
.service.service--feature:hover .service-link {
  color: var(--orange);
}
.service.service--feature:hover {
  border-color: rgba(232, 99, 26, 0.4);
}

/* La card feature occupa 2 colonne nella griglia (più impattante) */
.service.service--feature.service--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  padding: 0;
  align-items: stretch;
  min-height: 380px;
}
.service.service--feature.service--wide .service-bg {
  position: relative;
  inset: auto;
}
.service.service--feature.service--wide::after {
  /* overlay solo sul lato sinistro (immagine), non sul testo */
  inset: 0 auto 0 0;
  width: 60%;
  background: linear-gradient(90deg, rgba(15, 37, 64, 0.25) 0%, rgba(15, 37, 64, 0.45) 60%, rgba(15, 37, 64, 0.85) 100%);
}
.service.service--feature.service--wide .service-content {
  position: relative;
  z-index: 2;
  padding: 40px 36px;
  background: var(--navy-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.service.service--feature.service--wide .service-badge {
  top: 24px;
  right: 24px;
}

/* ===== PROCESS ===== */
.process { background: var(--navy-deep); color: var(--cream); }
.process h2, .process h3 { color: var(--cream); }
.process .eyebrow { color: var(--orange-bright); }
.process .section-head .lead { color: rgba(250, 247, 242, 0.7); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 40px; left: 6%; right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(250, 247, 242, 0.2), transparent);
}
.step {
  padding: 0 20px;
  position: relative;
  text-align: center;
}
.step-num {
  width: 80px; height: 80px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: var(--navy-deep);
  border: 1px solid rgba(250, 247, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--orange-bright);
  position: relative;
  z-index: 2;
  transition: all 0.4s;
}
.step:hover .step-num {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--cream);
  transform: scale(1.08);
}
.step h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.step p {
  color: rgba(250, 247, 242, 0.65);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ===== WORK ===== */
.work { background: var(--white); }

.work-showcase {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}

.work-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}
.work-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.work-img:hover img { transform: scale(1.05); }
.work-img-tag {
  position: absolute;
  top: 24px; left: 24px;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--navy-deep);
  letter-spacing: 0.05em;
}

.work-content h2 { margin-bottom: 20px; }
.work-content h2 em { font-style: italic; color: var(--orange); font-weight: 500; }
.work-content p {
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.work-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 36px;
  padding: 32px;
  background: var(--cream);
  border-radius: var(--radius-lg);
}
.work-detail .k {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.work-detail .v {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy-deep);
  font-weight: 400;
}

/* ===== PROJECTS GRID — Lavori recenti (foto singole) ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Layout speciale quando c'è un solo progetto: centrato e più largo */
.projects-grid--single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}
.projects-grid--single .project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.projects-grid--single .project-img {
  aspect-ratio: 4/5;
}
.projects-grid--single .project-meta {
  padding: 0;
}
.projects-grid--single .project-meta h4 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.projects-grid--single .project-meta p {
  font-size: 1rem;
}

/* Layout per 2 progetti: griglia 2 colonne più larga e centrata */
.projects-grid--two {
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
  gap: 40px;
}

.project-card {
  display: flex;
  flex-direction: column;
}

.project-img {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--navy-deep);
}
.project-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-card:hover .project-img img {
  transform: scale(1.04);
}
.project-img::after {
  /* gradient overlay sottile per leggibilità tag */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 22, 40, 0.18) 0%, transparent 25%, transparent 75%, rgba(10, 22, 40, 0.25) 100%);
  pointer-events: none;
}
.project-img .project-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px 14px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-deep);
  z-index: 2;
}

.project-meta {
  padding: 22px 6px 0;
}
.project-meta .pm-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.project-meta h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.project-meta p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 16px;
}
.project-meta .pm-stats {
  display: flex;
  gap: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.project-meta .pm-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.project-meta .pm-stat .k {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-weight: 600;
}
.project-meta .pm-stat .v {
  color: var(--navy-deep);
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 1rem;
}

/* Nota onesta sotto i progetti */
.projects-note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.6;
}
.projects-note a {
  color: var(--orange);
  font-weight: 500;
  text-decoration: none;
  font-style: normal;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.2s ease;
}
.projects-note a:hover { opacity: 0.7; }

/* ===== BEFORE/AFTER GALLERY ===== */
.gallery-divider {
  margin: 100px 0 60px;
  text-align: center;
  position: relative;
}
.gallery-divider::before,
.gallery-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: var(--line);
}
.gallery-divider::before { left: calc(50% - 200px); }
.gallery-divider::after { right: calc(50% - 200px); }
.gallery-divider .label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange);
}

.gallery-intro {
  text-align: center;
  margin-bottom: 60px;
}
.gallery-intro h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 400;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.gallery-intro h3 em {
  font-style: italic;
  color: var(--orange);
  font-weight: 500;
}
.gallery-intro p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
}

/* Slider before/after wrapper */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  user-select: none;
  cursor: ew-resize;
  background: var(--navy-deep);
  box-shadow: var(--shadow-md);
  touch-action: none; /* per supporto pan touch */
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.ba-slider .ba-after {
  /* "dopo" sta sotto */
  z-index: 1;
}
.ba-slider .ba-before-wrap {
  /* "prima" sta sopra ma viene tagliato dal clip-path */
  position: absolute;
  inset: 0;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  will-change: clip-path;
}
.ba-slider .ba-before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Etichette PRIMA / DOPO */
.ba-slider .ba-label {
  position: absolute;
  top: 18px;
  padding: 7px 14px;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 4;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ba-slider .ba-label.before {
  left: 18px;
  background: rgba(15, 37, 64, 0.78);
  color: var(--cream);
}
.ba-slider .ba-label.after {
  right: 18px;
  background: rgba(232, 99, 26, 0.92);
  color: var(--cream);
}

/* Linea divisoria */
.ba-slider .ba-divider {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--cream);
  z-index: 3;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
  will-change: left;
}

/* Handle (pallino centrale) */
.ba-slider .ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  z-index: 4;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  will-change: left;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.ba-slider:hover .ba-handle,
.ba-slider.dragging .ba-handle {
  transform: translate(-50%, -50%) scale(1.1);
}
.ba-slider .ba-handle svg {
  width: 22px;
  height: 22px;
  color: var(--navy-deep);
}

/* Hint animato (fa muovere il pallino al primo caricamento) */
@keyframes baHintPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(0,0,0,0.3), 0 0 0 0 rgba(232, 99, 26, 0.5); }
  50% { box-shadow: 0 4px 18px rgba(0,0,0,0.3), 0 0 0 16px rgba(232, 99, 26, 0); }
}
.ba-slider .ba-handle.hinting {
  animation: baHintPulse 2s ease-in-out 2;
}

/* Card meta sotto lo slider */
.gallery-item-meta {
  padding: 22px 6px 0;
}
.gallery-item-meta .gi-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.gallery-item-meta h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.gallery-item-meta p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 16px;
}
.gallery-item-meta .gi-stats {
  display: flex;
  gap: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}
.gallery-item-meta .gi-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gallery-item-meta .gi-stat .k {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  font-weight: 600;
}
.gallery-item-meta .gi-stat .v {
  color: var(--navy-deep);
  font-weight: 500;
  font-family: var(--font-display);
  font-size: 1rem;
}

/* ===== TESTIMONIALS — CAROUSEL ===== */
.testimonials {
  background: var(--cream-warm);
  overflow: hidden;
}

.testimonials-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* fade laterali eleganti */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.testimonials-lane {
  display: flex;
  width: 100%;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
  padding: 8px 0;
}
.lane-1 .testimonials-track {
  animation: scrollReviewsLeft 70s linear infinite;
}
.lane-2 .testimonials-track {
  animation: scrollReviewsRight 60s linear infinite;
}
.testimonials-carousel:hover .testimonials-track {
  animation-play-state: paused;
}

@keyframes scrollReviewsLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes scrollReviewsRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.testimonial {
  background: var(--white);
  padding: 26px 28px;
  border-radius: 14px;
  position: relative;
  transition: transform 0.4s, box-shadow 0.4s;
  flex-shrink: 0;
  width: 320px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(10, 22, 40, 0.04);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
/* Varianti di dimensione per spezzare il ritmo — compatte */
.testimonial.size-sm { width: 260px; padding: 24px 26px; }
.testimonial.size-lg { width: 380px; }

.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.5;
  color: var(--orange);
  margin-bottom: 4px;
  font-weight: 500;
  font-style: italic;
}
.testimonial p {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 400;
  font-variation-settings: "opsz" 24;
  flex-grow: 1;
}
.testimonial.size-sm p { font-size: 0.94rem; margin-bottom: 18px; }
.testimonial.size-lg p { font-size: 1.02rem; }

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  flex-shrink: 0;
}
.testimonial-author .name { font-weight: 500; font-size: 0.86rem; }
.testimonial-author .role {
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin-top: 1px;
}
.stars {
  display: flex;
  gap: 2px;
  color: var(--orange);
  font-size: 0.72rem;
  margin-bottom: 10px;
}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .testimonials-track { animation: none; }
}

@media (max-width: 540px) {
  .testimonial { width: 280px; padding: 22px 24px; }
  .testimonial.size-sm { width: 240px; }
  .testimonial.size-lg { width: 320px; }
}

/* ===== CTA / CONTACT ===== */
.contact {
  background: var(--navy-deep);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -30%; right: -10%;
  width: 60%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(232, 99, 26, 0.18), transparent 60%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  position: relative;
  z-index: 2;
}

.contact-content .eyebrow { color: var(--orange-bright); margin-bottom: 24px; }
.contact-content h2 {
  color: var(--cream);
  margin-bottom: 28px;
}
.contact-content h2 em { font-style: italic; color: var(--orange-bright); font-weight: 500; }
.contact-content > p {
  font-size: 1.1rem;
  color: rgba(250, 247, 242, 0.75);
  margin-bottom: 40px;
  line-height: 1.65;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: rgba(250, 247, 242, 0.05);
  border: 1px solid rgba(250, 247, 242, 0.08);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
  color: var(--cream);
}
.contact-method:hover {
  background: rgba(232, 99, 26, 0.1);
  border-color: var(--orange);
  transform: translateX(6px);
}
.contact-method-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cream);
}
.contact-method-icon svg { width: 18px; height: 18px; }
.contact-method .k {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-bright);
  margin-bottom: 4px;
}
.contact-method .v {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
}

/* Contact form */
.contact-form {
  background: var(--cream);
  color: var(--ink);
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.contact-form h3 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--navy-deep);
}
.contact-form .form-sub {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 28px;
}

.form-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 28px;
}
.form-progress-bar {
  flex: 1;
  height: 3px;
  background: var(--line);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}
.form-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-progress-bar.done::after { transform: translateX(0); }
.form-progress-bar.active::after { transform: translateX(-50%); }

.form-step { display: none; }
.form-step.active { display: block; animation: stepIn 0.4s ease; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-deep);
  margin-bottom: 14px;
  display: block;
}

.form-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.form-option {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s;
  text-align: left;
  font-size: 0.92rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: inherit;
}
.form-option:hover {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.form-option.selected {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--cream);
}
.form-option-icon {
  font-size: 1.2rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s;
  margin-bottom: 12px;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--orange);
}
.form-textarea { min-height: 100px; resize: vertical; }

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

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 12px;
}
.form-btn {
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  cursor: pointer;
}
.form-btn.primary {
  background: var(--navy-deep);
  color: var(--cream);
  border: none;
}
.form-btn.primary:hover {
  background: var(--orange);
  transform: translateY(-1px);
}
.form-btn.ghost {
  background: transparent;
  color: var(--ink-soft);
  border: none;
}
.form-btn.ghost:hover { color: var(--navy-deep); }
.form-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px 20px;
}
.form-success.show { display: block; animation: stepIn 0.5s ease; }
.form-success-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.form-success h3 { margin-bottom: 12px; }
.form-success p { color: var(--ink-soft); }

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand .logo { color: var(--cream); margin-bottom: 20px; }
.footer-brand .logo-text span { color: rgba(250, 247, 242, 0.5); }
.footer-brand p {
  color: rgba(250, 247, 242, 0.6);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 320px;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--orange-bright);
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
  margin-bottom: 12px;
  font-size: 0.92rem;
}
.footer-col ul li a {
  color: rgba(250, 247, 242, 0.7);
  transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--orange-bright); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(250, 247, 242, 0.5);
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom a {
  color: inherit;
  transition: color 0.3s;
}
.footer-bottom a:hover { color: var(--orange-bright); }

/* ===== WHATSAPP FLOAT ===== */
.wa-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 99;
  background: #25D366;
  color: white;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transition: all 0.3s;
  animation: waPulse 3s infinite;
}
.wa-float:hover {
  transform: scale(1.1);
}
.wa-float svg { width: 28px; height: 28px; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7), 0 0 0 15px rgba(37, 211, 102, 0.1); }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid,
  .about-grid,
  .work-showcase,
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .section-head { grid-template-columns: 1fr; gap: 20px; margin-bottom: 60px; }
  .services-grid { grid-template-columns: 1fr; }
  .service.service--feature.service--wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .service.service--feature.service--wide .service-bg {
    min-height: 240px;
  }
  .service.service--feature.service--wide::after {
    inset: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(15, 37, 64, 0.35) 0%, rgba(15, 37, 64, 0.85) 100%);
  }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .process-steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .float-card-1 { right: -5%; }
  .float-card-2 { left: -5%; }
  section { padding: 80px 0; }
  .hero { padding: 120px 0 60px; }
  .about-stats { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
  .stat .num { font-size: 2.2rem; }
  .about-text p:first-of-type::first-letter {
    font-size: 2.6rem;
  }
  .contact-form { padding: 32px 24px; }
  .form-options { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .marquee-track { font-size: 1.3rem; gap: 30px; }
  .marquee-track span { gap: 30px; }
  .scroll-hint { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .projects-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .projects-grid--single .project-card { grid-template-columns: 1fr; gap: 30px; }
  .projects-grid--single .project-img { aspect-ratio: 3/4; max-width: 480px; margin: 0 auto; }
  .projects-grid--two { grid-template-columns: 1fr 1fr; gap: 24px; }
  .gallery-divider { margin: 70px 0 50px; }
  .gallery-divider::before, .gallery-divider::after { width: 50px; }
  .gallery-divider::before { left: calc(50% - 130px); }
  .gallery-divider::after { right: calc(50% - 130px); }
}

@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about-stats { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .work-details { grid-template-columns: 1fr; gap: 20px; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; right: 16px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 30px; }
  .projects-grid { grid-template-columns: 1fr; gap: 30px; }
  .projects-grid--two { grid-template-columns: 1fr; gap: 30px; }
  .ba-slider .ba-handle { width: 38px; height: 38px; }
  .ba-slider .ba-label { font-size: 0.62rem; padding: 5px 10px; top: 14px; }
  .ba-slider .ba-label.before { left: 14px; }
  .ba-slider .ba-label.after { right: 14px; }
  .gallery-item-meta .gi-stats { gap: 16px; flex-wrap: wrap; }
}

/* Hamburger menu mobile (sizing - display gestito da media queries) */
.nav-toggle {
  width: 46px;
  height: 46px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  z-index: 101;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(15, 37, 64, 0.06);
}
.nav-toggle:hover,
.nav-toggle.open {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.nav-toggle.open {
  background: var(--orange);
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy-deep);
  transition: all 0.3s;
  border-radius: 2px;
}
.nav-toggle.open span {
  background: var(--cream);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 99;
  padding: 100px 32px 32px;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--navy-deep);
  font-weight: 400;
}
.mobile-menu .nav-cta {
  margin-top: 20px;
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.9rem;
}

/* ===== MOBILE ACCORDION (Chi siamo / Servizi) ===== */
.mobile-accordion {
  display: flex;
  flex-direction: column;
}
.mobile-accordion-trigger {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  width: 100%;
  font-family: var(--font-display) !important;
  font-size: 2rem !important;
  color: var(--navy-deep);
  font-weight: 400;
}
.mobile-accordion-trigger .ma-arrow {
  width: 22px;
  height: 22px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--orange);
  opacity: 0.6;
  flex-shrink: 0;
}
.mobile-accordion.open .ma-arrow {
  transform: rotate(180deg);
  opacity: 1;
}
.mobile-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.mobile-accordion.open .mobile-accordion-content {
  max-height: 600px;
}
.mobile-accordion-content a {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  color: var(--ink-soft) !important;
  padding: 10px 0 10px 20px;
  border-left: 2px solid var(--line);
  margin-left: 4px;
  transition: all 0.2s ease;
}
.mobile-accordion-content a:first-child { margin-top: 14px; }
.mobile-accordion-content a:last-child { margin-bottom: 6px; }
.mobile-accordion-content a:hover,
.mobile-accordion-content a:active {
  color: var(--orange) !important;
  border-left-color: var(--orange);
  padding-left: 24px;
}


