*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #c92d83;
  --primary-light: #cf5a9a;
  --primary-dark: #952f68;
  --primary-subtle: #fdf2f7;
  --primary-glow: rgba(182, 64, 128, 0.08);
  --primary-glow-strong: rgba(182, 64, 128, 0.14);
  --bg: #ffffff;
  --bg-elevated: #f8f6fa;
  --bg-card: #ffffff;
  --bg-warm: #fdfbfc;
  --text: #1a1225;
  --text-secondary: #4a3d58;
  --text-muted: #756882;
  --text-dim: #756a80;
  --border: #ede8f2;
  --border-hover: rgba(182, 64, 128, 0.25);
  --shadow-sm: 0 1px 3px rgba(26, 18, 37, 0.04);
  --shadow-md: 0 4px 16px rgba(26, 18, 37, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 18, 37, 0.08);
  --shadow-primary: 0 8px 30px rgba(182, 64, 128, 0.18);
  --success: #128055;
  --success-light: #e8f8f0;
  --font: 'Figtree', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 14px;
  --radius-lg: 20px;
  --focus-ring: #952f68;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }

/* ─── SVG Icon base ─── */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.icon-sm svg { width: 18px; height: 18px; }
.icon-lg svg { width: 28px; height: 28px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: all 0.4s;
}
nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
nav .nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: white;
  box-shadow: 0 2px 12px rgba(182, 64, 128, 0.25);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600 !important;
  transition: all 0.3s !important;
  box-shadow: 0 2px 12px rgba(182, 64, 128, 0.2);
}
.nav-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

/* ─── HERO ─── */
.hero {
  min-height: 0;
  display: flex;
  align-items: center;
  position: relative;
  padding: 88px 0 48px;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(182, 64, 128, 0.06) 0%, transparent 65%);
  border-radius: 50%;
  animation: float 12s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(182, 64, 128, 0.04) 0%, transparent 60%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { animation: fadeUp 0.8s ease both; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-subtle);
  border: 1px solid rgba(182, 64, 128, 0.15);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero h1 {
  font-size: clamp(2.6rem, 4.8vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 32px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(182, 64, 128, 0.25);
  font-family: var(--font);
  letter-spacing: -0.01em;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}
.btn-primary svg {
  width: 16px;
  height: 16px;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  padding: 15px 26px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--primary);
  background: var(--primary-subtle);
}

.hero-stats { display: flex; gap: 36px; }
.hero-stat { display: flex; flex-direction: column; }
.hero-stat .value {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}
.hero-stat .label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
  font-weight: 500;
}

.hero-visual { animation: fadeUp 0.8s 0.25s ease both; }
.chat-demo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(182, 64, 128, 0.05);
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-warm);
}
.chat-header-left {
  display: flex;
  align-items: center;
  gap: 11px;
}
.chat-avatar {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: white;
}
.chat-title { font-weight: 700; font-size: 0.88rem; letter-spacing: -0.01em; }
.chat-subtitle { font-size: 0.72rem; color: var(--text-dim); font-weight: 400; }
.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 600;
}
.chat-status .dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.chat-body {
  padding: 22px;
  height: 400px;
  overflow-y: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}
.chat-body::-webkit-scrollbar { width: 6px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
.chat-body::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }
.chat-msg { margin-bottom: 14px; }
.chat-msg-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}
.chat-msg-label.guest { color: var(--text-dim); }
.chat-msg-label.ai { color: var(--primary); }
.chat-msg-bubble {
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 0.86rem;
  line-height: 1.6;
}
.chat-msg.from-guest .chat-msg-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.chat-msg.from-ai .chat-msg-bubble {
  background: var(--primary-subtle);
  border: 1px solid rgba(182, 64, 128, 0.12);
  color: var(--text);
}
.chat-msg-bubble strong { color: var(--primary-dark); font-weight: 700; }
.chat-msg-bubble em { color: var(--success); font-style: normal; font-weight: 600; }

/* Quote card embedded in AI message */
.chat-msg.from-ai .chat-msg-quote {
  background: var(--bg-card);
  border: 1px solid rgba(182, 64, 128, 0.18);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(182, 64, 128, 0.08);
  font-size: 0.82rem;
  animation: msgAppear 0.4s ease both;
}
.chat-quote-img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: linear-gradient(135deg, #f5d4e3 0%, #fbeaf2 50%, #f5d4e3 100%);
  color: transparent;
  font-size: 0;
}
.chat-quote-top {
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.chat-quote-top-title { font-weight: 700; font-size: 0.82rem; letter-spacing: -0.01em; display: inline-flex; align-items: center; gap: 7px; }
.chat-quote-top-title svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chat-quote-top-badge {
  font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  background: rgba(255,255,255,0.22); padding: 3px 9px; border-radius: 100px;
}
.chat-quote-room {
  padding: 12px 14px 10px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px dashed var(--border);
}
.chat-quote-room-name { font-weight: 700; font-size: 0.88rem; color: var(--text); letter-spacing: -0.01em; }
.chat-quote-room-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.chat-quote-room-meta span + span::before { content: '·'; margin: 0 5px; color: var(--text-dim); }
.chat-quote-rows { padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.chat-quote-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem;
}
.chat-quote-row .label { color: var(--text-muted); }
.chat-quote-row .value { font-weight: 600; color: var(--text-secondary); }
.chat-quote-row.discount .value { color: var(--success); font-weight: 700; }
.chat-quote-total {
  padding: 10px 14px;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  display: flex; align-items: baseline; justify-content: space-between;
}
.chat-quote-total-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600; }
.chat-quote-total-value { font-size: 1.15rem; font-weight: 800; color: var(--primary-dark); letter-spacing: -0.02em; }
.chat-quote-cta {
  display: block; text-align: center;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  font-weight: 600; font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.25s;
}
.chat-quote-cta:hover { background: var(--primary-dark); }

/* Typing effect */
.chat-msg.typing-in {
  animation: msgAppear 0.3s ease both;
}
@keyframes msgAppear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.typing-indicator.ai-typing {
  background: var(--primary-subtle);
  border-color: rgba(182, 64, 128, 0.12);
}
.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.ai-typing .typing-dot { background: var(--primary-light); }
.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}
.chat-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--primary);
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 0.6s step-end infinite;
}
.guest-cursor {
  background: var(--text-secondary);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.chat-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-warm);
}
.chat-footer-info {
  font-size: 0.72rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.chat-footer-info svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-dim);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.chat-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chat-btn svg {
  width: 14px;
  height: 14px;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}
.chat-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ─── SECTION HEADERS ─── */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 14px;
  font-family: var(--mono);
}
.section-header h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.02rem;
  font-weight: 400;
}

/* ─── FEATURES ─── */
#funzioni { padding: 56px 0; background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  border-radius: var(--radius) var(--radius) 0 0;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-card:hover::after { transform: scaleX(1); }
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-subtle);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  font-weight: 400;
}

/* ─── HOW IT WORKS ─── */
#come-funziona { padding: 56px 0; background: var(--bg-elevated); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-glow-strong), var(--primary), var(--primary-glow-strong), transparent);
  opacity: 0.35;
}
.step-card { text-align: center; padding: 28px 18px; position: relative; }
.step-number {
  width: 48px;
  height: 48px;
  margin: 0 auto 18px;
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg-elevated);
}
.step-icon-wrap {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  background: var(--primary-subtle);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step-card p {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.65;
}

/* ─── TESTIMONIAL ─── */
.testimonial-section { padding: 56px 0; background: var(--bg); }
.testimonial-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.quote-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  opacity: 0.15;
}
.quote-mark svg {
  width: 48px;
  height: 48px;
  fill: var(--primary);
}
.testimonial-quote {
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.01em;
}
.testimonial-author {
  font-size: 0.88rem;
  color: var(--text-dim);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.testimonial-author svg {
  width: 14px;
  height: 14px;
  fill: var(--primary);
  stroke: none;
}
.testimonial-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 680px;
  margin: 32px auto 0;
}
.t-stat {
  text-align: center;
  padding: 22px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}
.t-stat:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.t-stat .val {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  display: block;
}
.t-stat .lbl {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  display: block;
  font-weight: 600;
}

/* ─── PRICING ─── */
#prezzi { padding: 56px 0; background: var(--bg-elevated); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}
.price-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.price-badge {
  position: absolute;
  top: -11px;
  right: 22px;
  background: var(--primary);
  color: white;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.price-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 22px;
}
.price-amount .currency { font-size: 1.15rem; color: var(--text-muted); font-weight: 500; }
.price-amount .number {
  font-family: var(--mono);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.price-amount .period { font-size: 0.84rem; color: var(--text-dim); font-weight: 400; }
.price-features { list-style: none; margin-bottom: 28px; }
.price-features li {
  padding: 7px 0;
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.price-features li svg {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}
.price-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 13px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}
.price-btn.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 3px 14px rgba(182, 64, 128, 0.22);
}
.price-btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}
.price-btn.outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.price-btn.outline:hover {
  border-color: var(--border-hover);
  color: var(--primary);
  background: var(--primary-subtle);
}
.pricing-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* ─── CTA ─── */
#cta { padding: 56px 0; background: var(--bg-elevated); overflow: hidden; }
.cta-card {
  background: var(--primary-subtle);
  border: 1px solid rgba(182, 64, 128, 0.12);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -40%; left: -30%;
  width: 160%; height: 160%;
  background: radial-gradient(circle at 30% 40%, rgba(182, 64, 128, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.cta-card h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  margin-bottom: 14px;
  position: relative;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.cta-card p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  position: relative;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  position: relative;
}

/* ─── FAQ ─── */
#faq { padding: 56px 0; background: var(--bg-elevated); }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 22px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.3s;
  letter-spacing: -0.01em;
}
.faq-question:hover { color: var(--primary); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-chevron svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-dim);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  transition: stroke 0.3s;
}
.faq-item.open .faq-chevron { transform: rotate(45deg); }
.faq-item.open .faq-chevron svg { stroke: var(--primary); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer-inner {
  padding: 0 0 22px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 400;
}

/* ─── INTEGRATIONS ─── */
#integrazioni {
  padding: 56px 0;
  background: var(--bg);
}
.integrations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.integration-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.integration-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.integration-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-subtle);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.integration-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.integration-name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}
.integration-vendor {
  font-size: 0.74rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: -6px;
}
@media (max-width: 1024px) {
  .integrations-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── MCP / AI PROTOCOL ─── */
#mcp {
  padding: 72px 0;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}
#mcp::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-glow-strong) 0%, transparent 70%);
  pointer-events: none;
}
#mcp::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
}
.mcp-inner {
  position: relative;
  z-index: 1;
}
.mcp-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 18px;
  font-family: var(--mono);
  box-shadow: var(--shadow-sm);
}
.mcp-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(22, 160, 106, 0.18);
  animation: pulse 2s infinite;
}
.mcp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 32px;
}
.mcp-text h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}
.mcp-text h2 .accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mcp-text > p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.mcp-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.mcp-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.mcp-feature-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mcp-feature-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.mcp-feature-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.mcp-feature-text span {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* MCP Visual / Card with connected clients */
.mcp-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.mcp-visual-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.mcp-visual-dots {
  display: flex;
  gap: 6px;
}
.mcp-visual-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.mcp-visual-dots span:nth-child(1) { background: #ff5f57; }
.mcp-visual-dots span:nth-child(2) { background: #febc2e; }
.mcp-visual-dots span:nth-child(3) { background: #28c840; }
.mcp-visual-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.mcp-server {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-primary);
  position: relative;
}
.mcp-server-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mcp-server-icon svg {
  width: 22px;
  height: 22px;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.mcp-server-info strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mcp-server-info span {
  font-family: var(--mono);
  font-size: 0.74rem;
  opacity: 0.85;
  letter-spacing: 0.02em;
}
.mcp-connectors-label {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  margin-bottom: 14px;
  position: relative;
}
.mcp-connectors-label::before,
.mcp-connectors-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: var(--border);
}
.mcp-connectors-label::before { left: 0; }
.mcp-connectors-label::after { right: 0; }
.mcp-clients {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.mcp-client {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  transition: all 0.3s;
}
.mcp-client:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.mcp-client-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: white;
}
.mcp-client-logo.claude { background: #cc785c; }
.mcp-client-logo.openai { background: #10a37f; }
.mcp-client-logo.cursor { background: #1a1225; }
.mcp-client-logo.custom {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px dashed var(--primary-light);
}
.mcp-client-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .mcp-layout { grid-template-columns: 1fr; gap: 36px; }
  .mcp-visual { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .mcp-clients { grid-template-columns: 1fr; }
}

/* ─── CONTACT FORM ─── */
#contattaci {
  padding: 56px 0;
  background: var(--bg);
}
.form-wrapper {
  max-width: 560px;
  margin: 0 auto;
}
.form-wrapper .section-header {
  margin-bottom: 32px;
}
.nonVisibile {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text);
  background: var(--bg-card);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  -webkit-appearance: none;
}
.form-control::placeholder {
  color: var(--text-dim);
  font-weight: 400;
}
.form-control:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(182, 64, 128, 0.1);
}
textarea.form-control {
  resize: vertical;
  min-height: 90px;
}
.form-submit-btn {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(182, 64, 128, 0.25);
  margin-top: 8px;
  letter-spacing: -0.01em;
}
.form-submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-primary);
}

/* ─── FOOTER ─── */
footer { padding: 44px 0; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 0.8rem; color: var(--text-dim); font-weight: 400; }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  transition: color 0.3s;
  font-weight: 500;
}
.footer-links a:hover { color: var(--primary); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid .price-card:last-child { grid-column: span 2; max-width: 380px; margin: 0 auto; }
  .testimonial-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .hero { padding: 80px 0 40px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .chat-body { height: 340px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-grid .price-card:last-child { grid-column: auto; max-width: none; }
  .testimonial-stats { grid-template-columns: repeat(2, 1fr); }
  .testimonial-quote { font-size: 1.15rem; }
  .cta-card { padding: 36px 20px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .hero-actions { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 14px; text-align: center; }
}

/* ════════════════════════════════════════════════════════════
   ACCESSIBILITÀ — Conformità WCAG 2.1 AA / UNI CEI EN 301549
   ════════════════════════════════════════════════════════════ */

/* Skip link: salta la navigazione e va al contenuto (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 2000;
  background: var(--primary-dark);
  color: #ffffff;
  padding: 11px 20px;
  border-radius: 0 0 10px 10px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.92rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Indicatore di focus sempre visibile da tastiera (WCAG 2.4.7 / 1.4.11) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Campi form: focus visibile anche con il box-shadow esistente */
.form-control:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 1px;
  border-color: var(--primary-dark);
}

/* Testo solo per screen reader */
.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;
}

/* Comando Pausa/Riproduci dell'animazione demo (WCAG 2.2.2) */
.chat-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-anim-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chat-anim-toggle:hover {
  color: var(--primary);
  border-color: var(--border-hover);
}
.chat-anim-icon {
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
}
/* Stato di riproduzione: mostra l'icona "pausa" (due barre) */
.chat-anim-icon::before,
.chat-anim-icon::after {
  content: '';
  position: absolute;
  top: 0;
  width: 3px;
  height: 10px;
  background: currentColor;
  border-radius: 1px;
}
.chat-anim-icon::before { left: 1px; }
.chat-anim-icon::after { right: 1px; }
/* Stato in pausa: mostra l'icona "play" (triangolo) */
.chat-anim-toggle.is-paused .chat-anim-icon::before {
  left: 2px;
  width: 0;
  height: 0;
  background: transparent;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
  border-radius: 0;
}
.chat-anim-toggle.is-paused .chat-anim-icon::after { display: none; }
/* Congela le animazioni interne quando la demo è in pausa */
.chat-demo.anim-paused .typing-dot,
.chat-demo.anim-paused .chat-cursor,
.chat-demo.anim-paused .chat-status .dot {
  animation-play-state: paused;
}

/* Menu mobile: regola di apertura (mancante nel codice originale) */
@media (max-width: 768px) {
  .nav-links.show {
    display: flex;
    position: absolute;
    top: 62px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.show li { width: 100%; }
  .nav-links.show a { display: block; padding: 9px 8px; }
  .nav-links.show .nav-cta { text-align: center; }
}

/* Riduzione del movimento su richiesta del sistema (WCAG 2.3.3 / 2.2.2) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Classi sostitutive degli stili inline (resa invariata) */
.video-preview { padding: 80px 0; background-color: #ffffff; }
.video-wrapper { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.video-embed {
  padding: 56.25% 0 0 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.mcp-header-center { text-align: center; }
.accent-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
