/* ================================================
   FLUXARI – style.css
   Stili principali con CSS Custom Properties
   ================================================ */

/* -----------------------------------------------
   1. CUSTOM PROPERTIES (Design Tokens)
   ----------------------------------------------- */
:root {
  /* Palette brand */
  --amber:    #EF9F27;
  --amber-d:  #BA7517;
  --amber-l:  #FAC775;
  --amber-xl: #FAEEDA;
  --ink:      #1C1C1A;
  --ink-2:    #2C2C2A;
  --mid:      #888780;
  --dust:     #D3D1C7;
  --paper:    #F7F5EF;
  --white:    #FFFFFF;

  /* Tipografia */
  --font-sans:  'DM Sans', system-ui, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  /* Spaziatura */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2rem;
  --space-xl:  3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 999px;

  /* Transizioni */
  --t-fast: 0.15s ease;
  --t-base: 0.3s ease;
  --t-slow: 0.5s ease;

  /* Ombre */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Focus accessibile (WCAG AA) */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -----------------------------------------------
   3. TIPOGRAFIA
   ----------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--ink);
}

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
}

h3 {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
}

h4 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

/* em globale: corsivo serif con colore ambra scuro */
em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--amber-d);
}

/* -----------------------------------------------
   4. LAYOUT UTILITIES
   ----------------------------------------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
}

.section-header p {
  color: var(--mid);
  font-size: 1.0625rem;
  margin-top: 0.75rem;
}

/* Tag pillola sezione */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-d);
  background: var(--amber-xl);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.875rem;
}

.section-tag--light {
  color: var(--amber-l);
  background: rgba(239, 159, 39, 0.15);
}

/* -----------------------------------------------
   5. COMPONENTI: BOTTONI
   ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-full);
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-sm  { font-size: 0.875rem;  padding: 0.6rem 1.1rem;  }
.btn-lg  { font-size: 1rem;      padding: 0.9rem 1.75rem; }

/* Primario: ambra su carta */
.btn-primary {
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(239, 159, 39, 0.3);
}
.btn-primary:hover {
  background: var(--amber-d);
  box-shadow: 0 4px 20px rgba(239, 159, 39, 0.45);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

/* Ghost: bordo su fondo chiaro */
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--dust);
}
.btn-ghost:hover {
  border-color: var(--amber);
  color: var(--amber-d);
  background: var(--amber-xl);
}

/* Amber: per sezioni scure */
.btn-amber {
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(239, 159, 39, 0.4);
}
.btn-amber:hover {
  background: var(--amber-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(239, 159, 39, 0.55);
}

/* Outline light: per sezioni scure */
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.55);
}

/* -----------------------------------------------
   6. COMPONENTI: BADGE & TAG
   ----------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}

.badge-available {
  background: rgba(239, 159, 39, 0.08);
  color: var(--amber-d);
  border: 1px solid rgba(239, 159, 39, 0.22);
  margin-bottom: 1.5rem;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--mid);
  background: var(--paper);
  border: 1px solid var(--dust);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
}

/* Pulse dot generico */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}
.pulse-dot--sm { width: 6px; height: 6px; }

/* -----------------------------------------------
   7. NAVBAR
   ----------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

/* Stato scrollato: blur backdrop */
.navbar.scrolled {
  background: rgba(247, 245, 239, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(211, 209, 199, 0.45);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem 1.5rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-wordmark {
  font-size: 1.125rem;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.nav-wordmark strong { font-weight: 700; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--mid);
  transition: color var(--t-fast);
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

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

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--t-base);
}

/* Stato X */
.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  background: rgba(247, 245, 239, 0.97);
  backdrop-filter: blur(14px);
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--dust);
}
.mobile-menu.open { display: block; }
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  display: block;
  padding: 0.5rem 0;
}

/* -----------------------------------------------
   8. HERO
   ----------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: var(--space-2xl);
  overflow: hidden;
  background: var(--paper);
}

/* Sfondo: griglia + glow ambra */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(28, 28, 26, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 28, 26, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 85% 75% at 65% 45%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 65% 45%, black 20%, transparent 75%);
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 55%;
  height: 85%;
  background: radial-gradient(
    ellipse at center,
    rgba(239, 159, 39, 0.13) 0%,
    rgba(250, 199, 117, 0.06) 40%,
    transparent 70%
  );
}

/* Layout 2 colonne */
.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Contenuto sinistra */
.hero-content { max-width: 560px; }

.hero-title { margin-bottom: 1.25rem; }
.hero-title em { display: block; }

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Colonna destra: dashboard */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Card mockup dashboard */
.dashboard-card {
  width: 100%;
  max-width: 390px;
  background: var(--ink-2);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid rgba(239, 159, 39, 0.18);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 24px 64px rgba(0, 0, 0, 0.42),
    0 0 80px rgba(239, 159, 39, 0.07);
  position: relative;
  z-index: 1;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.dashboard-title {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  flex: 1;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.dashboard-section { margin-bottom: 1rem; }

.dashboard-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--mid);
  margin-bottom: 0.75rem;
}

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

.ds-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
}
.ds-item span:nth-child(2) { flex: 1; }

.ds-check {
  color: var(--amber);
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ds-status {
  font-size: 0.45rem;
  letter-spacing: 0.15em;
}
.ds-status--green { color: #4ade80; }
.ds-status--amber { color: var(--amber); }
.ds-status--blue  { color: #60a5fa; }

.dashboard-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 1rem 0;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.375rem;
}

.metric-row {
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--amber-l);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.metric-suffix {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber-l);
}

.metric-label {
  font-size: 0.6rem;
  color: var(--mid);
  text-align: center;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Badge flottanti nel hero */
.float-badge {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  z-index: 2;
}

.float-arrow { color: #22c55e; }
.float-badge--1 { top: -1.5rem; right: -0.75rem; }
.float-badge--2 { bottom: 1.5rem; left: -1.5rem; }

/* -----------------------------------------------
   9. STATS BAR
   ----------------------------------------------- */
.stats-bar {
  background: var(--ink-2);
  padding: 3.25rem 0 !important;
}

.stats-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  text-align: center;
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--amber-l);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--mid);
  font-weight: 400;
}

.stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(255, 255, 255, 0.09);
}

/* -----------------------------------------------
   10. SERVIZI
   ----------------------------------------------- */
.services { background: var(--paper); }

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

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--dust);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Barra ambra superiore (hover) */
.service-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), var(--amber-l));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px 3px 0 0;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(239, 159, 39, 0.25);
}
.service-card:hover .service-top-bar { transform: scaleX(1); }

/* Card evidenziata (AI) */
.service-card--featured {
  background: linear-gradient(155deg, var(--ink) 0%, var(--ink-2) 100%);
  border-color: rgba(239, 159, 39, 0.28);
}
.service-card--featured .tag {
  background: rgba(239, 159, 39, 0.1);
  border-color: rgba(239, 159, 39, 0.2);
  color: var(--amber-l);
}
.service-card--featured h3 { color: var(--white); }
.service-card--featured p,
.service-card--featured .service-list li { color: rgba(255, 255, 255, 0.65); }
.service-card--featured .service-link { color: var(--amber-l); }
.service-card--featured .service-icon {
  background: rgba(239, 159, 39, 0.1);
  border-color: rgba(239, 159, 39, 0.18);
  color: var(--amber);
}
.service-card--featured:hover {
  border-color: rgba(239, 159, 39, 0.45);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 48px rgba(239, 159, 39, 0.1);
}

/* Icona servizio */
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--paper);
  border: 1px solid var(--dust);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--amber-d);
  flex-shrink: 0;
}
.service-icon svg { width: 24px; height: 24px; }

.service-tag-row {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-bottom: 0.875rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.service-list li {
  font-size: 0.875rem;
  color: var(--mid);
  padding-left: 1.25rem;
  position: relative;
}
.service-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
}

.service-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--amber-d);
  transition: color var(--t-fast), letter-spacing var(--t-fast);
  display: inline-flex;
  align-items: center;
  margin-top: auto;
}
.service-link:hover {
  color: var(--amber);
  letter-spacing: 0.01em;
}

/* -----------------------------------------------
   11. COME FUNZIONA
   ----------------------------------------------- */
.how-it-works { background: var(--white); }

.steps-container { position: relative; padding-top: 2.5rem; }

/* Linea gradient orizzontale che connette i cerchi */
.steps-line {
  position: absolute;
  top: 2.5rem;
  left: calc(12.5% + 27px);
  right: calc(12.5% + 27px);
  height: 2px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber-l) 50%, var(--dust) 100%);
  transform: translateY(-50%);
  z-index: 0;
}

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

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--amber-d);
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  transition: background var(--t-base), color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  font-family: var(--font-sans);
}
.step:hover .step-number {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(239, 159, 39, 0.38);
  transform: scale(1.06);
}

.step h4 { margin-bottom: 0.5rem; }
.step p { font-size: 0.875rem; color: var(--mid); line-height: 1.6; }

/* -----------------------------------------------
   11b. SOLUZIONI
   ----------------------------------------------- */
.solutions { background: var(--paper); }

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.solution-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--dust);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(239, 159, 39, 0.25);
}

.solution-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.solution-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--amber-xl);
  border: 1px solid rgba(239, 159, 39, 0.18);
  color: var(--amber-d);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.solution-icon svg { width: 22px; height: 22px; }

.solution-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}
.solution-category--amber {
  background: var(--amber-xl);
  color: var(--amber-d);
  border-color: rgba(239, 159, 39, 0.25);
}
.solution-category--purple {
  background: #f0ebff;
  color: #6b3fcf;
  border-color: rgba(107, 63, 207, 0.2);
}
.solution-category--blue {
  background: #e8f1ff;
  color: #2563bc;
  border-color: rgba(37, 99, 188, 0.2);
}
.solution-category--green {
  background: #e8f8ee;
  color: #1a7a44;
  border-color: rgba(26, 122, 68, 0.2);
}

.solution-card h3 {
  margin-bottom: 0.625rem;
  line-height: 1.25;
}

.solution-card > p {
  font-size: 0.9375rem;
  color: var(--mid);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.solution-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.solution-list li {
  font-size: 0.875rem;
  color: var(--ink);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}
.solution-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 600;
}

.solution-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  border: 1px solid var(--dust);
  margin-top: auto;
}
.result-label {
  font-size: 0.8125rem;
  color: var(--mid);
}
.result-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--amber-d);
  font-family: var(--font-sans);
}

.solutions-cta {
  text-align: center;
  margin-top: var(--space-2xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.solutions-cta p {
  color: var(--mid);
  font-size: 1.0625rem;
}

/* -----------------------------------------------
   12. TESTIMONIANZE
   ----------------------------------------------- */
.testimonials { background: var(--paper); }

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

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--dust);
  transition: box-shadow var(--t-base), transform var(--t-base), border-color var(--t-base);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(239, 159, 39, 0.2);
}

.stars {
  color: var(--amber);
  font-size: 0.9375rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.testimonial-card p em {
  /* Override em globale per le citazioni */
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-2);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-d));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-sans);
}
.author-avatar--2 { background: linear-gradient(135deg, #e8a4c8, #c06090); }
.author-avatar--3 { background: linear-gradient(135deg, #7eb8f7, #3a7fd5); }

.testimonial-author cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink);
  display: block;
}
.testimonial-author span {
  font-size: 0.8rem;
  color: var(--mid);
}

/* -----------------------------------------------
   13. CTA FINALE
   ----------------------------------------------- */
.cta-final {
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

/* Radial glow ambra centrato */
.cta-glow {
  position: absolute;
  width: 700px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(239, 159, 39, 0.18) 0%,
    rgba(239, 159, 39, 0.06) 40%,
    transparent 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-container {
  position: relative;
  text-align: center;
  z-index: 1;
}

.cta-title {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 1rem 0 1.25rem;
}
.cta-title em { color: var(--amber-l); }

/* Screen-reader only utility */
.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;
}

/* Form preventivo nella CTA */
.cta-form {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.cta-form-group { display: flex; flex-direction: column; }

.cta-form input,
.cta-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: var(--white);
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}

.cta-form input::placeholder { color: rgba(255,255,255,0.4); }

.cta-form select {
  appearance: none;
  cursor: pointer;
  color: rgba(255,255,255,0.55);
}
.cta-form select option { background: var(--ink); color: var(--white); }
.cta-form select.has-value { color: var(--white); }

.cta-form input:focus,
.cta-form select:focus {
  border-color: var(--amber);
  background: rgba(255,255,255,0.11);
}

.cta-form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}
.cta-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cta-form-feedback {
  font-size: 0.9rem;
  min-height: 1.4em;
  text-align: center;
}

.cta-divider {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.5rem;
}

.cta-subtitle {
  color: var(--mid);
  font-size: 1.0625rem;
  margin-bottom: 2.5rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* -----------------------------------------------
   14. FOOTER
   ----------------------------------------------- */
.footer {
  background: var(--ink-2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 0;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-brand p {
  font-size: 0.8125rem;
  color: var(--mid);
  line-height: 1.5;
}
.footer-brand .nav-wordmark { color: var(--white); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.8125rem;
  color: var(--mid);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(136, 135, 128, 0.55);
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  margin-top: 0.25rem;
}

/* -----------------------------------------------
   15. PORTFOLIO PAGE
   ----------------------------------------------- */

/* Nav link attivo (pagina corrente) */
.nav-current {
  color: var(--amber-d) !important;
  font-weight: 600;
}

/* Hero pagina portfolio */
.portfolio-hero {
  position: relative;
  background: var(--paper);
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
}

.portfolio-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.portfolio-hero-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.portfolio-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.75rem 0 1rem;
}

.portfolio-subtitle {
  font-size: 1.0625rem;
  color: var(--mid);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* Sezione case studies */
.case-studies {
  background: var(--white);
  padding: var(--space-3xl) 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.case-studies .container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Singola case study card */
.case-card {
  background: var(--paper);
  border-radius: var(--radius-xl);
  border: 1px solid var(--dust);
  overflow: hidden;
  transition: box-shadow var(--t-base), border-color var(--t-base);
}
.case-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(239, 159, 39, 0.22);
}

/* Griglia interna: contenuto + sidebar */
.case-card-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
}

/* Colonna sinistra: testo */
.case-content {
  padding: 2.5rem;
  border-right: 1px solid var(--dust);
}

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

.case-tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.case-title {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}

.case-sector {
  font-size: 0.875rem;
  color: var(--mid);
  margin-bottom: 1.75rem;
}

.case-block {
  margin-bottom: 1.5rem;
}
.case-block:last-child { margin-bottom: 0; }

.case-block-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-d);
  margin-bottom: 0.5rem;
}

.case-block p {
  font-size: 0.9375rem;
  color: var(--ink);
  line-height: 1.7;
}

/* Colonna destra: metriche + CTA */
.case-sidebar {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: var(--white);
}

.case-metrics {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
}

.case-metric {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--dust);
}
.case-metric:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-metric-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.case-metric-label {
  font-size: 0.8125rem;
  color: var(--mid);
  line-height: 1.4;
}
