/* ════════════════════════════════════════════════════════════
   B4b Executive Theme — main.css
   Design System + Full Layout
════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────────────────────────────────────── */
:root {
  /* Brand Colors */
  --navy:            #1B3354;
  --navy-dark:       #0F2238;
  --navy-darker:     #0A1A2E;
  --amber:           #C17B2A;
  --amber-dark:      #A36520;
  --amber-darker:    #8A5218;
  --teal:            #2A7D8C;

  /* Backgrounds */
  --bg-main:         #F8F7F4;
  --bg-section:      #EEF2F7;
  --bg-white:        #FFFFFF;

  /* Text */
  --text-primary:    #1A1A1A;
  --text-secondary:  #5A6070;
  --text-tertiary:   #9098A8;

  /* Borders */
  --border:          #E2E5EA;
  --border-strong:   #C8D0DB;

  /* Status */
  --success:         #2D7D4E;
  --error:           #C13333;
  --warning:         #E8900A;

  /* Typography */
  --font-heading:    'Lora', Georgia, serif;
  --font-body:       'Inter', system-ui, -apple-system, sans-serif;

  /* Radii */
  --radius-sm:       4px;
  --radius:          6px;
  --radius-md:       10px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition:      200ms ease;
  --transition-slow: 300ms ease;

  /* Layout */
  --container-max:   1200px;
  --container-text:  720px;
  --section-py:      96px;
  --section-py-mob:  64px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  background: none;
  border: none;
}

textarea {
  resize: vertical;
}

/* ─────────────────────────────────────────────────────────────
   SKIP LINK (Accessibilità)
───────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1.5rem;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--transition);
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Focus state globale WCAG */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ─────────────────────────────────────────────────────────────
   LAYOUT UTILITIES
───────────────────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 80px;
}

@media (max-width: 1280px) {
  .container { padding: 0 40px; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
}

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

.section--alt {
  background-color: var(--bg-section);
}

.section--white {
  background-color: var(--bg-white);
}

.section--metrics {
  background-color: var(--bg-section);
  padding: var(--section-py) 0;
}

@media (max-width: 768px) {
  .section,
  .section--alt,
  .section--white,
  .section--metrics {
    padding: var(--section-py-mob) 0;
  }
}

/* ─────────────────────────────────────────────────────────────
   TYPOGRAPHY SCALE
───────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

h1 { font-size: 3.25rem;  letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: 2.375rem; letter-spacing: -0.015em; line-height: 1.20; }
h3 { font-size: 1.75rem;  letter-spacing: -0.005em; line-height: 1.30; font-weight: 600; }
h4 { font-size: 1.375rem; letter-spacing: 0;         line-height: 1.35; font-weight: 600; font-family: var(--font-body); }

p { line-height: 1.65; }

.section-title {
  font-family: var(--font-heading);
  font-size: 2.375rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.20;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.005em;
  margin-bottom: 2.5rem;
}

.section-sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: var(--container-text);
  margin: 0;
}

.section-header {
  margin-bottom: 4rem;
  max-width: var(--container-text);
}

@media (max-width: 1280px) {
  h1 { font-size: 2.375rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2, .section-title { font-size: 1.75rem; }
  h3 { font-size: 1.375rem; }
  .section-subtitle { font-size: 1.375rem; }
  .section-sub { font-size: 1rem; }
  .section-header { margin-bottom: 2.5rem; }
}

/* ─────────────────────────────────────────────────────────────
   TAGS & BADGES
───────────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  line-height: 1;
}

.tag--amber {
  color: var(--amber);
  border: 1px solid var(--amber);
  background: transparent;
}

.tag--teal {
  color: var(--teal);
  border: 1px solid var(--teal);
  background: transparent;
}

.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.4;
}

.badge--navy  { background: rgba(27,51,84,0.1);  color: var(--navy); }
.badge--amber { background: rgba(193,123,42,0.12); color: var(--amber-dark); }
.badge--teal  { background: rgba(42,125,140,0.1); color: var(--teal); }

/* ─────────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  height: 48px;
  padding: 0 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn svg, .btn [data-lucide] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background-color: var(--navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(27,51,84,0.35), 0 1px 3px rgba(0,0,0,0.15);
}
.btn-primary:hover  {
  background-color: var(--navy-dark);
  box-shadow: 0 6px 20px rgba(27,51,84,0.45), 0 2px 6px rgba(0,0,0,0.18);
  transform: translateY(-1px);
}
.btn-primary:active {
  background-color: var(--navy-darker);
  box-shadow: 0 2px 8px rgba(27,51,84,0.25);
  transform: translateY(0);
}
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

.btn-secondary {
  background-color: var(--amber);
  color: #fff;
  box-shadow: 0 4px 14px rgba(193,123,42,0.40), 0 1px 3px rgba(0,0,0,0.12);
}
.btn-secondary:hover  {
  background-color: var(--amber-dark);
  box-shadow: 0 6px 20px rgba(193,123,42,0.50), 0 2px 6px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.btn-secondary:active {
  background-color: var(--amber-darker);
  box-shadow: 0 2px 8px rgba(193,123,42,0.25);
  transform: translateY(0);
}
.btn-secondary:disabled { opacity: 0.4; pointer-events: none; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  box-shadow: 0 2px 8px rgba(27,51,84,0.12), 0 1px 2px rgba(0,0,0,0.06);
}
.btn-ghost:hover  {
  background-color: var(--bg-section);
  box-shadow: 0 4px 14px rgba(27,51,84,0.18), 0 1px 4px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.btn-ghost:active {
  background-color: #E0E7F0;
  box-shadow: 0 1px 4px rgba(27,51,84,0.10);
  transform: translateY(0);
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.btn-link:hover { color: var(--amber); }
.btn-link svg, .btn-link [data-lucide] { width: 16px; height: 16px; }

/* ─────────────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  height: 96px;       /* logo 64px + 16px padding × 2 */
  display: flex;
  align-items: center;
  transition: background-color var(--transition), height var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  height: 88px;       /* logo 64px + 12px padding × 2 */
  background: var(--bg-white);
  box-shadow: 0 1px 0 var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
}

.navbar-logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.logo-title {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.navbar-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--amber);
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1.5rem;
}

.navbar-cta {
  flex-shrink: 0;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  border-radius: var(--radius);
  transition: background-color var(--transition-fast);
}

.hamburger:hover {
  background-color: var(--bg-section);
}

.hamburger svg, .hamburger [data-lucide] {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-cta  { display: none; }
  .hamburger   { display: flex; }
  .site-header { background: var(--bg-main); height: 76px; } /* logo 52px + 12px × 2 */
  .site-header.scrolled { background: var(--bg-white); height: 68px; } /* logo 52px + 8px × 2 */
}

/* ─────────────────────────────────────────────────────────────
   MOBILE MENU
───────────────────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 0 24px 40px;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  transition: opacity var(--transition);
}

.mobile-menu-overlay.open {
  display: block;
  opacity: 1;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.8);
  border-radius: var(--radius);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.mobile-menu-close:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.mobile-menu-close [data-lucide] { width: 24px; height: 24px; }

.mobile-nav-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 2rem 0;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.875rem 0;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: #fff;
}

.mobile-menu-cta {
  padding-top: 2rem;
}

/* ─────────────────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────────────────── */
.section-hero {
  background-color: var(--bg-main);
  padding: 96px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 5rem;
  align-items: center;
  min-height: 600px;
}

.hero-text {
  max-width: 620px;
}

.hero-h1 {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  margin: 1.25rem 0 1.5rem;
}

.hero-sub {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.proof-sep {
  color: var(--border-strong);
  margin: 0 0.25rem;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hero-microcopy {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Dashboard stilizzata */
.hero-visual {
  width: 100%;
}

.dashboard-card {
  background: var(--bg-white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(27,51,84,0.08), 0 1px 4px rgba(0,0,0,0.04);
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--success);
  padding: 3px 8px;
  background: rgba(45,125,78,0.1);
  border-radius: var(--radius-sm);
}

.dashboard-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dashboard-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.dashboard-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem;
  background: var(--bg-main);
  border-radius: var(--radius);
}

.dashboard-kpi-value {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
}

.dashboard-kpi-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.dashboard-chart-area {
  margin-bottom: 1.25rem;
}

.dashboard-chart-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.dashboard-chart {
  width: 100%;
  height: auto;
}

.dashboard-processes {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.process-row {
  display: grid;
  grid-template-columns: 110px 1fr 36px;
  align-items: center;
  gap: 0.625rem;
}

.process-name {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.process-bar-wrap {
  height: 6px;
  background: var(--bg-section);
  border-radius: 3px;
  overflow: hidden;
}

.process-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

.process-pct {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
}

@media (max-width: 1280px) {
  .hero-inner {
    gap: 3rem;
  }
  .hero-h1 {
    font-size: 2.375rem;
  }
}

@media (max-width: 768px) {
  .section-hero {
    padding: var(--section-py-mob) 0;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
  }
  .hero-h1 {
    font-size: 1.875rem;
  }
  .hero-text {
    max-width: 100%;
  }
  .hero-proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .proof-sep { display: none; }
  .hero-cta-group {
    flex-direction: column;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .dashboard-kpi-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─────────────────────────────────────────────────────────────
   SEZIONE VALORE
───────────────────────────────────────────────────────────── */
.valore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.valore-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.valore-item:hover {
  border-color: var(--border-strong);
  box-shadow: 0 2px 12px rgba(27,51,84,0.06);
}

.valore-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(193,123,42,0.08);
  border-radius: var(--radius);
  color: var(--amber);
}

.valore-icon [data-lucide] {
  width: 24px;
  height: 24px;
}

.valore-title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.625rem;
  line-height: 1.35;
}

.valore-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .valore-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   SOCIAL PROOF — METRICHE
───────────────────────────────────────────────────────────── */
.metrics-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 4rem;
}

.metric-separator {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 0 3rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  padding: 0 1rem;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.625rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}

.metric-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Testimonianze */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--bg-white);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.5rem;
  position: relative;
}

.testimonial-quote {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.75rem;
  color: var(--amber);
  line-height: 0;
  padding-top: 1rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.testimonial-body {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.testimonial-footer {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.testimonial-name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.125rem;
}

.testimonial-role {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .metric-separator { display: none; }
}

@media (max-width: 768px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    border: none;
    gap: 1.5rem;
    padding: 0;
    margin-bottom: 2.5rem;
  }
  .metric-item {
    text-align: left;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
  }
  .metric-separator { display: none; }
  .metric-number { font-size: 2rem; }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   CHI SONO
───────────────────────────────────────────────────────────── */
.chi-sono-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 5rem;
}

.bio-text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.75rem 0 2rem;
}

.bio-text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.5rem;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.credential-item [data-lucide] {
  width: 18px;
  height: 18px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--border), var(--navy), var(--amber));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -1.875rem;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid var(--bg-white);
  box-shadow: 0 0 0 2px var(--navy);
}

.timeline-marker--accent {
  background: var(--amber);
  box-shadow: 0 0 0 2px var(--amber);
}

.timeline-year {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Tech Stack */
.tech-stack {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-section);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.tech-stack-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.875rem;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Come lavoro 4 punti */
.come-lavoro-preview {
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.come-lavoro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.come-lavoro-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.come-lavoro-item:hover {
  border-color: var(--amber);
  box-shadow: 0 2px 12px rgba(193,123,42,0.08);
}

.come-lavoro-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--amber);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 1rem;
}

.come-lavoro-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.come-lavoro-text {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .come-lavoro-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .chi-sono-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }
  .come-lavoro-grid { grid-template-columns: 1fr; }
  .come-lavoro-preview { padding-top: 2.5rem; }
}

/* ─────────────────────────────────────────────────────────────
   SERVIZI
───────────────────────────────────────────────────────────── */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.servizio-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.servizio-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 20px rgba(27,51,84,0.08);
}

.servizio-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(193,123,42,0.08);
  border-radius: var(--radius);
  color: var(--amber);
}

.servizio-title {
  font-family: var(--font-body);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
}

.servizio-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.servizio-problema p,
.servizio-sistema p,
.servizio-target p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.servizio-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.servizio-risultato {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--success);
  font-weight: 500;
  padding: 0.875rem 1rem;
  background: rgba(45,125,78,0.06);
  border-radius: var(--radius);
}

.servizio-risultato [data-lucide] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.servizio-card .btn-link {
  margin-top: auto;
}

@media (max-width: 1024px) {
  .servizi-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .servizio-card { flex-direction: column; }
}

@media (max-width: 768px) {
  .servizi-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   CASI STUDIO
───────────────────────────────────────────────────────────── */
.casi-studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.caso-card {
  background: var(--bg-section);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow var(--transition);
}

.caso-card:hover {
  box-shadow: 0 4px 20px rgba(27,51,84,0.1);
}

.caso-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.caso-metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.caso-number {
  font-family: var(--font-heading);
  font-size: 2.625rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1;
}

.caso-metric-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.caso-title {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  margin: 0;
}

.caso-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.caso-risultato {
  border-top: 1px solid var(--border-strong);
  padding-top: 1.25rem;
}

.caso-risultato-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
  margin-bottom: 0.5rem;
}

.caso-risultato p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .casi-studio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .casi-studio-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────
   CTA FINALE
───────────────────────────────────────────────────────────── */
.section-cta-finale {
  background-color: var(--navy);
  padding: var(--section-py) 0;
}

.cta-finale-title {
  font-family: var(--font-heading);
  font-size: 2.375rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.cta-finale-sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.cta-finale-btn {
  margin-bottom: 1.5rem;
}

.cta-finale-micro {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .cta-finale-title { font-size: 1.75rem; }
  .cta-finale-sub { font-size: 1rem; }
  .cta-finale-btn { width: 100%; }
}

/* ─────────────────────────────────────────────────────────────
   CONTATTI
───────────────────────────────────────────────────────────── */
.contatti-grid {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: 5rem;
  align-items: start;
}

.contatti-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 1.5rem 0 2rem;
}

.contatti-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contatti-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.contatti-info-item [data-lucide] {
  width: 18px;
  height: 18px;
  color: var(--navy);
  flex-shrink: 0;
}

.contatti-info-item a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}
.contatti-info-item a:hover { color: var(--amber); }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
}

.required {
  color: var(--amber);
  margin-left: 2px;
}

.form-input {
  height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-white);
  padding: 0 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

.form-input:focus {
  border-color: var(--navy);
  border-width: 2px;
  box-shadow: 0 0 0 3px rgba(27,51,84,0.08);
}

.form-input.has-error {
  border-color: var(--error);
  border-width: 2px;
}

.form-textarea {
  height: auto;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  resize: vertical;
  min-height: 130px;
}

.select-wrap {
  position: relative;
}

.form-select {
  width: 100%;
  cursor: pointer;
  padding-right: 2.5rem;
}

.select-icon {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  pointer-events: none;
}

.form-error {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--error);
  line-height: 1.4;
}

.form-footer {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.form-submit {
  align-self: flex-start;
  min-width: 200px;
}

.form-microcopy {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

/* Loading spinner */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Form success/error messages */
.form-success {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(45,125,78,0.08);
  border: 1px solid rgba(45,125,78,0.25);
  border-radius: var(--radius-md);
}

.form-success [data-lucide] {
  width: 24px;
  height: 24px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 1px;
}

.form-success-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--success);
  margin-bottom: 0.375rem;
}

.form-success-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.form-error-msg {
  padding: 1rem 1.25rem;
  background: rgba(193,51,51,0.08);
  border: 1px solid rgba(193,51,51,0.25);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--error);
  line-height: 1.5;
}

/* Calendly section */
.calendly-section {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.calendly-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.calendly-header [data-lucide] {
  width: 24px;
  height: 24px;
  color: var(--navy);
}

.calendly-header h3 {
  font-family: var(--font-body);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.calendly-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.calendly-placeholder {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 3rem;
  background: var(--bg-white);
}

.calendly-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (max-width: 1024px) {
  .contatti-grid { gap: 3rem; }
}

@media (max-width: 768px) {
  .contatti-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .form-row { grid-template-columns: 1fr; }
  .form-submit { width: 100%; }
}

/* ─────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 64px 0 0;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 40fr 30fr 30fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.625rem;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-linkedin:hover { color: #fff; }
.footer-linkedin svg { width: 20px; height: 20px; }

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-list a {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-nav-list a:hover { color: #fff; }

.footer-cta-link {
  color: var(--amber) !important;
  font-weight: 600;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
}

.footer-contact-list [data-lucide] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-contact-list a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer-contact-list a:hover { color: #fff; }

.footer-piva {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  margin-top: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.footer-privacy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}
.footer-privacy:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   ANIMAZIONI SCROLL (Intersection Observer)
───────────────────────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in--delayed {
  transition-delay: 150ms;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
  .dashboard-badge::before { animation: none; }
  .spin { animation: none; }
}

/* ─────────────────────────────────────────────────────────────
   UTILITY CLASSES
───────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─────────────────────────────────────────────────────────────
   LOGO IMMAGINE (navbar + footer)
───────────────────────────────────────────────────────────── */
.navbar-logo-img {
  display: block;
  height: 64px;       /* 53px × 1.2 */
  width: auto;
  max-width: 260px;   /* 216px × 1.2 */
  object-fit: contain;
}

.footer-logo-wrap {
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;   /* lo sfondo segue esattamente i bordi dell'immagine */
  margin-bottom: 1rem;
  line-height: 0;     /* elimina gap sotto l'img */
  transition: opacity var(--transition-fast), box-shadow var(--transition-fast);
}

.footer-logo-wrap:hover {
  opacity: 0.88;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.footer-logo {
  display: block;
  height: 55px;       /* 46px × 1.2 */
  width: auto;
  max-width: 216px;   /* 180px × 1.2 */
  object-fit: contain;
  /* nessun filtro: Logo_blu.webp ha già i propri colori */
}

/* ─────────────────────────────────────────────────────────────
   FOTO PERSONALE — Sezione Chi Sono
───────────────────────────────────────────────────────────── */
.chi-sono-photo-wrap {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(27,51,84,0.18), 0 2px 8px rgba(0,0,0,0.10);
  overflow: hidden;
  line-height: 0; /* elimina gap sotto img */
}

.chi-sono-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* ─────────────────────────────────────────────────────────────
   MOBILE — Leggibilità, contrasto, touch targets
───────────────────────────────────────────────────────────── */

/* Touch target minimo 44x44px per link e bottoni su mobile */
@media (max-width: 768px) {
  .btn {
    min-height: 52px;
    font-size: 1rem;
    padding: 0 20px;
  }

  .nav-link,
  .footer-nav-list a,
  .footer-contact-list a,
  .contatti-info-item a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  /* Testo corpo più leggibile */
  body {
    font-size: 1rem;
    line-height: 1.7;
  }

  .bio-text p,
  .servizio-problema p,
  .servizio-sistema p,
  .servizio-target p,
  .caso-text,
  .valore-text,
  .come-lavoro-text {
    font-size: 1rem;
    line-height: 1.75;
  }

  /* Contrasto migliorato per testi secondari */
  .text-secondary-mobile {
    color: var(--text-primary);
  }

  /* Contatti info: aumenta spaziatura per facilità tap */
  .contatti-info {
    gap: 1.25rem;
  }

  .contatti-info-item {
    font-size: 1rem;
    gap: 0.875rem;
  }

  /* Form più usabile su mobile */
  .form-input {
    height: 52px;
    font-size: 1rem;
  }

  .form-textarea {
    min-height: 140px;
    font-size: 1rem;
  }

  /* Navbar logo dimensione mobile */
  .navbar-logo-img {
    height: 52px;     /* 43px × 1.2 */
    max-width: 202px; /* 168px × 1.2 */
  }

  /* Footer: logo visibile */
  .footer-logo {
    height: 46px;     /* 38px × 1.2 */
  }

  /* Hero CTA bottoni full-width su mobile già gestiti,
     ma assicuriamo che siano sempre cliccabili */
  .hero-cta-group .btn {
    justify-content: center;
    min-height: 52px;
  }

  /* Padding sezioni su mobile */
  .section-hero { padding: 56px 0 48px; }
}

/* Miglioramento leggibilità generale testo secondario */
.text-secondary,
.contatti-text,
.hero-sub,
.section-sub {
  color: #4A5260; /* leggermente più scuro di --text-secondary (#5A6070) */
}

/* Cliccabili con ombra: nav-link attivo, card hover */
.valore-item,
.come-lavoro-item,
.servizio-card,
.caso-card {
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.valore-item:hover,
.come-lavoro-item:hover,
.servizio-card:hover {
  transform: translateY(-2px);
}

/* Hamburger touch target */
.hamburger {
  min-width: 44px;
  min-height: 44px;
}

/* Link contatti info con ombra lieve al hover */
.contatti-info-item a:hover {
  text-decoration-color: var(--amber);
}

/* Rimuovi stili Calendly non più usati senza rompere il parse */
.calendly-section,
.calendly-header,
.calendly-text,
.calendly-placeholder,
.calendly-placeholder-inner {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   BLOG — Archive, Single Post, Post Card
═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────────
   BLOG HERO (archive.php)
───────────────────────────────────────────────────────────── */
.blog-hero {
  background-color: var(--bg-main);
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--border);
}

.blog-hero-inner {
  max-width: 720px;
}

.blog-hero-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 1rem 0 1.25rem;
}

.blog-hero-sub {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

@media (max-width: 768px) {
  .blog-hero { padding: 72px 0 48px; }
  .blog-hero-title { font-size: 2rem; }
  .blog-hero-sub { font-size: 1rem; }
}

/* ─────────────────────────────────────────────────────────────
   BLOG SECTION + GRID
───────────────────────────────────────────────────────────── */
.blog-section {
  padding: 64px 0 96px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ─────────────────────────────────────────────────────────────
   POST CARD
───────────────────────────────────────────────────────────── */
.post-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.post-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 28px rgba(27,51,84,0.10), 0 2px 6px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}

.post-card-img-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg-section);
}

.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
  display: block;
}

.post-card:hover .post-card-img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.post-card-cat {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--amber);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.post-card-cat:hover { color: var(--amber-dark); }

.post-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
  margin: 0;
}

.post-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.post-card-title a:hover { color: var(--amber-dark); }

.post-card-excerpt {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.post-card-meta-sep { color: var(--border-strong); }

.post-card-link {
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   BLOG EMPTY STATE
───────────────────────────────────────────────────────────── */
.blog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 5rem 1rem;
}

.blog-empty [data-lucide] {
  width: 48px;
  height: 48px;
  color: var(--text-tertiary);
}

.blog-empty-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 600;
}

.blog-empty-sub {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* ─────────────────────────────────────────────────────────────
   BLOG PAGINAZIONE
───────────────────────────────────────────────────────────── */
.blog-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  background: var(--bg-white);
}

.blog-pagination .page-numbers:hover {
  border-color: var(--navy);
  background: var(--bg-section);
  box-shadow: 0 2px 8px rgba(27,51,84,0.10);
}

.blog-pagination .page-numbers.current {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(27,51,84,0.30);
}

.blog-pagination .page-numbers.dots {
  border: none;
  background: none;
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────────
   BLOG CTA STRIP (archive.php in fondo)
───────────────────────────────────────────────────────────── */
.blog-cta-strip {
  padding: 48px 0;
}

.blog-cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.blog-cta-strip-title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.blog-cta-strip-sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .blog-cta-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-cta-strip-inner .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ─────────────────────────────────────────────────────────────
   SINGLE POST — HEADER
───────────────────────────────────────────────────────────── */
.post-header {
  background-color: var(--bg-main);
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--border);
}

.post-header-inner {
  max-width: 800px;
}

.post-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.post-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.post-breadcrumb a:hover { color: var(--amber); }
.post-breadcrumb a [data-lucide] { width: 16px; height: 16px; }

.post-breadcrumb-sep { color: var(--border-strong); }

.post-cat-tag { margin-bottom: 1rem; }

.post-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0.5rem 0 1.5rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.post-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.post-meta-item [data-lucide] { width: 15px; height: 15px; }
.post-meta-sep { color: var(--border-strong); }

@media (max-width: 768px) {
  .post-header { padding: 72px 0 48px; }
  .post-title { font-size: 1.875rem; }
}

/* ─────────────────────────────────────────────────────────────
   SINGLE POST — IMMAGINE IN EVIDENZA
───────────────────────────────────────────────────────────── */
.post-featured-img-wrap {
  padding: 2.5rem 0 0;
  background: var(--bg-main);
}

.post-featured-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

/* ─────────────────────────────────────────────────────────────
   SINGLE POST — LAYOUT (contenuto + sidebar)
───────────────────────────────────────────────────────────── */
.post-main {
  padding: 64px 0 96px;
  background: var(--bg-white);
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 1024px) {
  .post-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  /* Su mobile/tablet: contenuto prima, poi sidebar */
  .post-content-wrap { order: 1; }
  .post-sidebar       { order: 2; position: static; }
}

/* ─────────────────────────────────────────────────────────────
   SINGLE POST — TIPOGRAFIA CONTENUTO
───────────────────────────────────────────────────────────── */
.post-content {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-primary);
  max-width: 72ch;
}

.post-content h2 {
  font-size: 1.875rem;
  margin: 2.5rem 0 1rem;
  color: var(--navy);
}

.post-content h3 {
  font-size: 1.375rem;
  margin: 2rem 0 0.875rem;
  color: var(--navy);
}

.post-content h4 {
  font-size: 1.125rem;
  margin: 1.75rem 0 0.75rem;
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

.post-content blockquote {
  border-left: 3px solid var(--amber);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(193,123,42,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--navy);
}

.post-content a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.post-content a:hover { color: var(--amber); }

.post-content strong { font-weight: 700; color: var(--text-primary); }
.post-content em { font-style: italic; }

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-content img {
  border-radius: var(--radius-md);
  width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.post-content pre,
.post-content code {
  font-family: 'Courier New', Courier, monospace;
  background: var(--bg-section);
  border-radius: var(--radius);
  font-size: 0.9rem;
}

.post-content code {
  padding: 2px 6px;
  color: var(--navy);
}

.post-content pre {
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content pre code {
  background: none;
  padding: 0;
}

/* ─────────────────────────────────────────────────────────────
   SINGLE POST — TAG
───────────────────────────────────────────────────────────── */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.post-tag {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}
.post-tag:hover {
  border-color: var(--amber);
  color: var(--amber-dark);
}

/* ─────────────────────────────────────────────────────────────
   SINGLE POST — NAVIGAZIONE PREV/NEXT
───────────────────────────────────────────────────────────── */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.post-nav-item:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(27,51,84,0.10);
  transform: translateY(-2px);
}

.post-nav-item--next {
  text-align: right;
}

/* Forza next in colonna 2 solo se c'è anche prev */
.post-nav-item--prev ~ .post-nav-item--next {
  grid-column: 2;
}

/* Se next è l'unico elemento, resta in colonna 1 a sinistra */
.post-nav-item--next:only-child {
  grid-column: 1;
  text-align: left;
}
.post-nav-item--next:only-child .post-nav-label {
  justify-content: flex-start;
}

.post-nav-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.post-nav-item--next .post-nav-label {
  justify-content: flex-end;
}

.post-nav-label [data-lucide] { width: 14px; height: 14px; }

.post-nav-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav-item--next { grid-column: 1; text-align: left; }
  .post-nav-item--next .post-nav-label { justify-content: flex-start; }
}

/* ─────────────────────────────────────────────────────────────
   SINGLE POST — SIDEBAR
───────────────────────────────────────────────────────────── */
.post-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-sidebar-card {
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

/* Card autore */
.post-author-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-author-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border-strong);
}

.post-author-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}

.post-author-role {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--amber);
  margin-bottom: 0.625rem;
}

.post-author-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.post-author-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.post-author-linkedin:hover { color: var(--amber); }

/* Card CTA */
.post-sidebar-cta {
  background: var(--navy);
  border-color: var(--navy);
}

.post-sidebar-cta-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.post-sidebar-cta-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Card articoli recenti */
.post-sidebar-section-title {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
  margin-bottom: 1rem;
}

.post-sidebar-recent {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.post-sidebar-recent li {
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.875rem;
}

.post-sidebar-recent li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.post-sidebar-recent a {
  display: block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 0.25rem;
  transition: color var(--transition-fast);
}
.post-sidebar-recent a:hover { color: var(--amber); }

.post-sidebar-recent-date {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

@media (max-width: 1024px) {
  .post-sidebar {
    position: static;
  }
}
}
