/* ============================================
   RIGHI SISTEMI INTEGRATI — Design System
   Qonto-inspired premium B2B aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --bg-main:       #FAFAFC;
  --bg-white:      #FFFFFF;
  --bg-alt:        #F0F0F5;
  --bg-dark:       #1A1A2E;
  --bg-dark-hover: #2D2D44;

  --text-primary:   #1A1A2E;
  --text-secondary: #5A5D6E;
  --text-muted:     #8E91A4;
  --text-white:     #FFFFFF;

  --border-subtle:  #E8E8EC;
  --border-dark:    rgba(255,255,255,0.1);

  --shadow-card:    0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-hover:   0 8px 32px rgba(0,0,0,0.1);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Spacing */
  --section-padding: 120px;
  --container-max:   1200px;
  --container-pad:   clamp(20px, 5vw, 80px);

  /* Border radius */
  --radius-sm:  12px;
  --radius-md:  16px;
  --radius-lg:  20px;
  --radius-xl:  24px;
  --radius-pill: 100px;

  /* Transitions */
  --transition: 0.3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-main);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(38px, 5vw, 56px); font-weight: 700; line-height: 1.1; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.2; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.3; }
p  { color: var(--text-secondary); line-height: 1.7; }

.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-block;
  margin-bottom: 16px;
}

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--bg-dark);
  color: var(--text-white);
}
.btn-primary:hover {
  background: var(--bg-dark-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26,26,46,0.2);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--text-primary);
}
.btn-secondary:hover {
  background: var(--bg-dark);
  color: var(--text-white);
  border-color: var(--bg-dark);
  transform: translateY(-1px);
}
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ── */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

/* ── Section base ── */
.section {
  padding: var(--section-padding) 0;
}
.section-center {
  text-align: center;
}
.section-header {
  margin-bottom: 64px;
}
.section-header h2 {
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Scroll animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Hero elements visible immediately */
.hero .fade-up {
  opacity: 0;
  animation: fadeUpHero 0.7s ease forwards;
}
.hero .fade-up:nth-child(1) { animation-delay: 0.05s; }
.hero .fade-up:nth-child(2) { animation-delay: 0.15s; }
.hero .fade-up:nth-child(3) { animation-delay: 0.25s; }
.hero .fade-up:nth-child(4) { animation-delay: 0.35s; }
.hero .fade-up:nth-child(5) { animation-delay: 0.5s; }
@keyframes fadeUpHero {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======================================
   HEADER
   ====================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: var(--bg-dark);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark span {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.02em;
}
.logo-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-nav a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
}
.header-nav a:hover {
  color: var(--text-primary);
  background: rgba(26,26,46,0.05);
}

/* ── Dropdown ── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-dropdown-trigger:hover {
  color: var(--text-primary);
  background: rgba(26,26,46,0.05);
}
.nav-dropdown-trigger svg {
  transition: transform var(--transition);
}
.nav-dropdown.open .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 110;
}
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-menu a:hover {
  background: var(--bg-alt);
  color: var(--text-primary);
}
.header-cta .btn {
  padding: 11px 24px;
  font-size: 14px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px var(--container-pad) 24px;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover {
  background: var(--bg-alt);
  color: var(--text-primary);
}
.mobile-nav .btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}
.mobile-nav-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 8px 0;
}
.mobile-nav-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 16px 4px;
}

/* ======================================
   SECTION 1: HERO
   ====================================== */
.hero {
  padding-top: calc(72px + 100px);
  padding-bottom: 100px;
  background: var(--bg-main);
  text-align: center;
  overflow: hidden;
}
.hero-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.hero h1 {
  max-width: 760px;
  margin: 0 auto 28px;
}
.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 48px;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}
.hero-illustration {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(26,26,46,0.08));
}
.puzzle-desktop { display: block; margin: 0 auto; }
.puzzle-mobile  { display: none !important; }

/* ======================================
   SECTION 2: NUMERI
   ====================================== */
.numeri {
  padding: 0 0 0 0;
  margin: 0;
}
.numeri-inner {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 48px 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  box-shadow: var(--shadow-card);
}
.numeri-item {
  padding: 0 32px;
  text-align: center;
  position: relative;
}
.numeri-item + .numeri-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 48px;
  background: var(--border-subtle);
}
.numeri-value {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.numeri-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ======================================
   SECTION 3: CHI SIAMO
   ====================================== */
.chi-siamo {
  background: var(--bg-main);
}
.chi-siamo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.chi-siamo-text p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.75;
}
.chi-siamo-quote {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 48px;
  color: var(--text-white);
  position: relative;
}
.chi-siamo-quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 80px;
  line-height: 1;
  color: rgba(255,255,255,0.15);
  position: absolute;
  top: 24px;
  left: 40px;
}
.chi-siamo-quote blockquote {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.9);
  font-weight: 400;
  margin-top: 24px;
  margin-bottom: 32px;
}
.chi-siamo-quote cite {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  font-style: normal;
  letter-spacing: 0.02em;
}

/* ======================================
   SECTION 4: SERVIZI
   ====================================== */
.servizi {
  background: var(--bg-alt);
}
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: all var(--transition);
  cursor: default;
}
.service-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.service-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}
.service-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ======================================
   SECTION 5: IL NOSTRO APPROCCIO
   ====================================== */
.approccio {
  background: var(--bg-white);
}
.approccio-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.approccio-steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(10% + 24px);
  right: calc(10% + 24px);
  height: 1px;
  background: linear-gradient(to right, var(--border-subtle), var(--text-muted) 20%, var(--text-muted) 80%, var(--border-subtle));
  z-index: 0;
}
.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}
.step-number-bg {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}
.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-white);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
  box-shadow: 0 0 0 6px var(--bg-white);
}
.step-item:hover .step-circle {
  border-color: var(--text-primary);
  background: var(--bg-dark);
}
.step-item:hover .step-circle svg {
  stroke: white;
}
.step-circle svg {
  width: 22px;
  height: 22px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.8;
  transition: stroke var(--transition);
}
.step-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ======================================
   SECTION 6: TAPPE (Timeline)
   ====================================== */
.tappe {
  background: var(--bg-dark);
  overflow: hidden;
}
.tappe .section-label {
  color: rgba(255,255,255,0.4);
}
.tappe h2 {
  color: var(--text-white);
  text-align: center;
  margin-bottom: 64px;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.timeline-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--transition);
}
.timeline-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.timeline-date {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.timeline-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 8px;
}
.timeline-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ======================================
   SECTION 7: PARTNERSHIP
   ====================================== */
.partnership {
  background: var(--bg-main);
}
.partnership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.partnership-text h2 {
  margin-bottom: 32px;
}
.partnership-text p {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.75;
}
.partnership-graphic {
  display: flex;
  justify-content: center;
}

/* ======================================
   SECTION 8: CONTATTI
   ====================================== */
.contatti {
  background: var(--bg-alt);
}
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contatti-info h3 {
  font-size: 20px;
  margin-bottom: 32px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.contact-item-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 1.8;
}
.contact-item-text {
  padding-top: 6px;
}
.contact-item-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-item-value {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.5;
}
.contact-item-value a {
  color: var(--text-primary);
  transition: color var(--transition);
}
.contact-item-value a:hover { color: var(--text-secondary); }

.contatti-cta-card {
  background: var(--bg-dark);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.contatti-cta-card .cta-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.contatti-cta-card .cta-icon svg {
  width: 28px;
  height: 28px;
}
.contatti-cta-card h3 {
  font-size: 22px;
  color: var(--text-white);
  margin-bottom: 12px;
}
.contatti-cta-card p {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 380px;
  margin-bottom: 28px;
}
.contatti-cta-card .btn-primary {
  background: var(--bg-white);
  color: var(--bg-dark);
  font-size: 16px;
  padding: 16px 40px;
}
.contatti-cta-card .btn-primary:hover {
  background: var(--bg-alt);
  box-shadow: 0 6px 24px rgba(255,255,255,0.15);
}
.cta-email-hint {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin-top: 16px;
  letter-spacing: 0.02em;
}

/* ======================================
   FOOTER
   ====================================== */
.site-footer {
  background: var(--bg-dark);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-mark {
  background: rgba(255,255,255,0.1);
  margin-bottom: 16px;
}
.footer-brand .logo-name {
  color: white;
}
.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  margin-top: 12px;
  line-height: 1.65;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 20px;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col ul a,
.footer-col ul span {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  line-height: 1.5;
}
.footer-col ul a:hover {
  color: white;
}
.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

/* ======================================
   BACK TO TOP
   ====================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--text-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(26,26,46,0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.3s ease;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--bg-dark-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,26,46,0.25);
}

/* ======================================
   MOBILE ACCESSO (header dropdown)
   ====================================== */
.mobile-accesso {
  display: none;
}

/* ======================================
   VENDOR LOGOS SECTION
   ====================================== */
.vendor-logos {
  background: var(--bg-base);
}
.vendor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.vendor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  /* 5 items per row: (100% - 4*12px gap) / 5 */
  flex: 0 0 calc((100% - 48px) / 5);
  max-width: calc((100% - 48px) / 5);
  padding: 20px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-white);
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.vendor-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(26,26,46,0.08);
  border-color: rgba(26,26,46,0.12);
}
.vendor-item img {
  width: 100%;
  max-width: 120px;
  height: 48px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.45);
  opacity: 0.6;
  transition: filter 0.4s ease, opacity 0.4s ease;
}
.vendor-item:hover img {
  filter: grayscale(0%) brightness(1);
  opacity: 1;
}

/* ======================================
   FOOTER SOCIAL ICONS
   ====================================== */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.45);
  transition: background 0.3s ease, color 0.3s ease;
}
.footer-social a:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}
.footer-social svg {
  width: 18px;
  height: 18px;
}

/* ======================================
   RESPONSIVE
   ====================================== */
@media (max-width: 1024px) {
  :root { --section-padding: 80px; }
  .servizi-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .chi-siamo-grid { grid-template-columns: 1fr; gap: 40px; }
  .approccio-steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .approccio-steps::before { display: none; }
  .partnership-grid { grid-template-columns: 1fr; gap: 48px; }
  .numeri-inner { grid-template-columns: repeat(2, 1fr); padding: 40px; gap: 32px; }
  .numeri-item + .numeri-item::before { display: none; }
  .vendor-grid { max-width: 720px; }
}

@media (max-width: 768px) {
  :root { --section-padding: 64px; }
  .header-nav, .header-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-accesso { display: block; margin-left: auto; margin-right: 8px; }
  .mobile-accesso .nav-dropdown-trigger {
    font-size: 13px;
    padding: 6px 14px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    background: var(--bg-white);
  }
  .mobile-accesso .nav-dropdown-menu {
    right: -40px;
  }
  .hero { padding-top: calc(72px + 60px); padding-bottom: 60px; }
  .hero h1 { font-size: 34px; }
  .hero-subtitle { font-size: 16px; }
  .servizi-grid { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr; }
  .approccio-steps { grid-template-columns: 1fr 1fr; gap: 24px; }
  .contatti-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .numeri-inner { grid-template-columns: repeat(2, 1fr); padding: 32px 24px; }
  .contatti-cta-card { padding: 40px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .puzzle-desktop { display: none !important; }
  .puzzle-mobile  { display: block !important; margin: 0 auto; }
  /* Lighten "Prenota una consulenza" in mobile nav */
  .mobile-nav .btn-primary {
    background: var(--bg-white);
    color: var(--bg-dark);
    border: 1.5px solid var(--border-subtle);
  }
  .mobile-nav .btn-primary:hover {
    background: var(--bg-alt);
    border-color: var(--bg-dark);
    color: var(--bg-dark);
    box-shadow: none;
  }
  .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
  .vendor-grid { gap: 10px; }
  /* 3 items per row: (100% - 2*10px gap) / 3 */
  .vendor-item { flex: 0 0 calc((100% - 20px) / 3); max-width: calc((100% - 20px) / 3); padding: 16px 12px; }
  .vendor-item img { max-width: 100px; height: 40px; }
}

@media (max-width: 480px) {
  .approccio-steps { grid-template-columns: 1fr; }
  .vendor-grid { gap: 8px; }
  /* 2 items per row: (100% - 1*8px gap) / 2 */
  .vendor-item { flex: 0 0 calc((100% - 8px) / 2); max-width: calc((100% - 8px) / 2); padding: 14px 10px; }
  .vendor-item img { max-width: 80px; height: 36px; }
  .numeri-inner { grid-template-columns: 1fr; }
  .numeri-item + .numeri-item { padding-top: 24px; border-top: 1px solid var(--border-subtle); }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* ======================================
   PRIVACY BANNER (no-cookie notice)
   ====================================== */
.privacy-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 20px 24px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
}
.privacy-banner.visible {
  transform: translateY(0);
  opacity: 1;
}
.privacy-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.privacy-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.privacy-banner-text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}
.privacy-banner-text strong {
  color: #fff;
  font-weight: 600;
}
.privacy-banner-btn {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.privacy-banner-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}
@media (max-width: 768px) {
  .privacy-banner { padding: 16px 20px; }
  .privacy-banner-inner { flex-direction: column; text-align: center; gap: 16px; }
  .privacy-banner-text { font-size: 13px; }
}
