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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --bg: #0a0a14;
  --bg-card: #12121e;
  --bg-glass: rgba(18, 18, 30, 0.85);
  --text: #f0f0ff;
  --text-muted: #8888aa;
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ─── Container ─── */
.container { max-width: 1400px; margin: 0 auto; padding: 0 2.5rem; }

/* ─── Animated BG ─── */
.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero-bg::before {
  content: ''; position: absolute; width: 700px; height: 700px;
  top: -200px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
  border-radius: 50%; animation: pulse-bg 8s ease-in-out infinite alternate;
}
.hero-bg::after {
  content: ''; position: absolute; width: 500px; height: 500px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 70%);
  border-radius: 50%; animation: pulse-bg 10s ease-in-out 3s infinite alternate;
}
@keyframes pulse-bg { 0% { opacity: 0.6; transform: translateX(-50%) scale(1); } 100% { opacity: 1; transform: translateX(-50%) scale(1.15); } }

/* ─── Navbar ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 20, 0.85);
  transition: var(--transition);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2.5rem; max-width: 1400px; margin: 0 auto;
}
.nav-logo img { height: 36px; width: auto; display: block; }
.nav-logo-text {
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav-links { display: flex; align-items: center; gap: 0.25rem; position: relative; }
.nav-links a {
  padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted); transition: var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: #fff; }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0.1rem; left: 0.5rem; right: 0.5rem;
  height: 2px; background: #6366f1;
  transform: scaleX(0); transition: transform 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(99,102,241,0.5);
}
.nav-links a.active::after { transform: scaleX(1); }
.nav-ctas { display: flex; align-items: center; gap: 0.5rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.4rem; border-radius: 8px; font-weight: 600;
  font-size: 0.9rem; border: none; cursor: pointer; transition: var(--transition);
  font-family: inherit; white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.25);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover { 
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.4);
}
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.btn-outline {
  background: transparent; color: var(--primary-light);
  border: 1px solid rgba(99,102,241,0.4);
}
.btn-outline:hover { background: rgba(99,102,241,0.1); color: #fff; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 12px; }

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 0 6rem;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 860px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25);
  border-radius: 50px; padding: 0.4rem 1rem; font-size: 0.8rem; font-weight: 600;
  color: var(--primary-light); margin-bottom: 1.75rem; letter-spacing: 0.04em;
}
.hero-badge span { width: 6px; height: 6px; border-radius: 50%; background: var(--primary-light); display: inline-block; animation: blink 1.5s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 900; letter-spacing: -0.04em;
  line-height: 1.05; margin-bottom: 1.5rem;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem); color: var(--text-muted); max-width: 640px;
  margin: 0 auto 2.5rem; line-height: 1.7; font-weight: 400;
}
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.hero-stats {
  display: flex; align-items: center; justify-content: center; gap: 3rem; flex-wrap: wrap;
  padding: 2rem 2.5rem; background: var(--bg-glass); backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 20px; display: inline-flex;
}
.stat-item { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; color: var(--primary-light); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ─── Hero Wave ─── */
.hero-wave-container {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.4;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(circle, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle, black 30%, transparent 80%);
}
#hero-wave {
  width: 100%;
  height: 200px;
  max-width: 800px;
}

/* ─── Sections ─── */
section { padding: 6rem 0; }
.section-label {
  display: inline-block; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 50px; padding: 0.3rem 1rem; font-size: 0.78rem; font-weight: 700;
  color: var(--primary-light); letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; line-height: 1.1; }
.section-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.text-center { text-align: center; }

/* ─── Features Grid ─── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem; margin-top: 4rem;
}
.feat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--gradient, linear-gradient(90deg, var(--primary), var(--secondary)));
}
.feat-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.feat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--primary-light);
}
.feat-icon svg { width: 22px; height: 22px; }
.feat-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feat-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Showcase / MacBook ─── */
.showcase-section { background: linear-gradient(180deg, var(--bg) 0%, rgba(99,102,241,0.04) 50%, var(--bg) 100%); }
.showcase-container { margin-top: 4rem; }
.showcase-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.tab-btn {
  padding: 0.55rem 1.25rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.tab-btn.active, .tab-btn:hover { background: rgba(99,102,241,0.15); color: var(--primary-light); border-color: rgba(99,102,241,0.4); }
.tab-btn.active { color: #fff; background: var(--primary); border-color: var(--primary); }

.macbook-wrap { 
  display: flex; justify-content: center; padding: 4rem 0; 
  perspective: 1200px;
}
.macbook {
  width: 100%; max-width: 1300px;
  background: #2c2c2e; /* Space Gray base */
  border-radius: 24px 24px 0 0; position: relative; 
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 60px 120px -20px rgba(0,0,0,0.8);
  z-index: 1;
}
.macbook-bar {
  background: #1c1c1e; padding: 0.6rem 1.2rem; display: flex; align-items: center; gap: 0.6rem;
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mac-dot { width: 12px; height: 12px; border-radius: 50%; }
.mac-url {
  flex: 1; text-align: center; font-size: 0.75rem; color: #a1a1a6;
  background: rgba(255,255,255,0.05); border-radius: 6px; padding: 0.3rem 1rem;
  margin-left: 1rem; margin-right: 1rem;
}
.macbook-screen {
  overflow-y: scroll;
  overflow-x: hidden;
  aspect-ratio: 16/10;
  background: #0a0a14;
  border-radius: 0 0 4px 4px;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.05);
  /* Scrollbar sottile e discreta */
  scrollbar-width: thin;
  scrollbar-color: rgba(99,102,241,0.4) transparent;
}
.macbook-screen::-webkit-scrollbar { width: 4px; }
.macbook-screen::-webkit-scrollbar-track { background: transparent; }
.macbook-screen::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.5); border-radius: 4px; }
.macbook-screen::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.8); }

/* Screenshot a piena larghezza e altezza naturale */
#showcase-img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s ease;
}

/* Glass Reflection sovrapposta — pointer-events none per non bloccare lo scroll */
.macbook-screen::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 200px;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none; z-index: 1;
}

.macbook-base {
  height: 22px; width: 106%; margin-left: -3%; 
  background: linear-gradient(180deg, #3a3a3c 0%, #1c1c1e 100%);
  border-radius: 4px 4px 30px 30px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  border-top: 1px solid rgba(255,255,255,0.1);
  z-index: 2;
}
/* Hinge shadow */
.macbook-base::before {
  content: ''; position: absolute; top: -2px; left: 0; width: 100%; height: 4px;
  background: rgba(0,0,0,0.8); blur: 2px;
}
/* Trackpad cutout */
.macbook-base::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 140px; height: 8px; background: rgba(0,0,0,0.3);
  border-radius: 0 0 16px 16px;
  border: 1px solid rgba(255,255,255,0.05);
  border-top: none;
}
.macbook-foot { display: none; }
.img-fade-out { opacity: 0; }

/* ─── How It Works ─── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 4rem; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; text-align: center; transition: var(--transition);
}
.step-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-3px); }
.step-num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 800; box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.step-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ─── For Who ─── */
.forwho-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 4rem; }
.who-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem; transition: var(--transition); position: relative; overflow: hidden;
}
.who-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.who-card.mediatori::before { background: linear-gradient(90deg, var(--primary), var(--secondary)); }
.who-card.enti::before { background: linear-gradient(90deg, var(--accent), var(--primary)); }
.who-card:hover { border-color: rgba(99,102,241,0.25); transform: translateY(-3px); }
.who-tag {
  display: inline-block; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  border-radius: 50px; padding: 0.3rem 0.9rem; font-size: 0.75rem; font-weight: 700;
  color: var(--primary-light); margin-bottom: 1.25rem;
}
.who-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1.25rem; }
.who-list { list-style: none; padding: 0; }
.who-list li {
  padding: 0.5rem 0; font-size: 0.9rem; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 0.65rem; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.who-list li:last-child { border-bottom: none; }
.who-list li::before { content: '✓'; color: var(--primary-light); font-weight: 700; margin-top: 0.1rem; flex-shrink: 0; }

/* ─── Security ─── */
.security { background: rgba(99,102,241,0.03); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3.5rem; }
.sec-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; text-align: center; transition: var(--transition);
}
.sec-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-3px); }
.sec-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem; color: var(--primary-light);
}
.sec-icon svg { width: 24px; height: 24px; }
.sec-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; }
.sec-card p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Billing Toggle ─── */
.billing-toggle {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin-top: 2.5rem;
}
.billing-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.4rem; border-radius: 50px; font-size: 0.88rem; font-weight: 600;
  border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.billing-btn.active {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}
.billing-btn:not(.active):hover { border-color: rgba(99,102,241,0.4); color: var(--text); }
.billing-badge {
  background: rgba(16,185,129,0.15); color: #34d399;
  border: 1px solid rgba(16,185,129,0.3); border-radius: 50px;
  font-size: 0.7rem; font-weight: 700; padding: 0.1rem 0.5rem;
}
.billing-btn.active .billing-badge {
  background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.3);
}

/* ─── Pricing ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }

/* Monthly/Annual price blocks */
.price-annual-block { display: none; }
.pricing-grid.show-annual .price-monthly-block { display: none; }
.pricing-grid.show-annual .price-annual-block { display: block; }
.price-annual-detail {
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.25rem;
}
.price-annual-detail s {
  text-decoration: line-through; opacity: 0.5; margin-right: 0.2rem;
}
.price-annual-detail strong { color: var(--text); }
.price-annual-detail em { color: #34d399; font-style: normal; font-weight: 600; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; transition: var(--transition); position: relative;
  display: flex; flex-direction: column;
}
.price-card .btn { margin-top: auto; }
.price-card.featured {
  background: linear-gradient(145deg, rgba(99,102,241,0.15), rgba(139,92,246,0.1));
  border-color: rgba(99,102,241,0.4);
  box-shadow: 0 0 60px rgba(99,102,241,0.15);
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-size: 0.72rem; font-weight: 700; padding: 0.3rem 1rem;
  border-radius: 50px; white-space: nowrap;
}
.price-badge--soon {
  background: linear-gradient(135deg, #6b7280, #9ca3af);
}
.price-card--coming-soon { opacity: 0.7; }
.price-name { font-size: 1rem; font-weight: 700; color: var(--text-muted); margin-bottom: 1rem; }
.price-amount { font-size: 2.8rem; font-weight: 900; letter-spacing: -0.04em; margin-bottom: 0.25rem; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.price-period { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.75rem; }
.price-features { list-style: none; padding: 0; margin-bottom: 2rem; }
.price-features li {
  padding: 0.5rem 0; font-size: 0.88rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 0.6rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before { content: '✓'; color: var(--primary-light); font-weight: 700; flex-shrink: 0; }
.price-features li.disabled { opacity: 0.4; }
.price-features li.disabled::before { content: '✕'; color: var(--text-muted); }

/* ─── Contact ─── */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
.contact-info h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }
/* ─── Register CTA block ─── */
.register-cta-block {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.3); border-radius: 20px;
  padding: 3rem; margin-bottom: 0;
}
.register-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap;
}
.register-cta-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800;
  letter-spacing: -0.03em; margin-bottom: 0.6rem;
}
.register-cta-text p { font-size: 0.95rem; color: var(--text-muted); max-width: 500px; line-height: 1.7; }

/* ─── Contact separator ─── */
.contact-separator {
  display: flex; align-items: center; gap: 1rem;
  margin: 3rem 0; color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
}
.contact-separator::before, .contact-separator::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.contact-separator span { white-space: nowrap; padding: 0 0.5rem; }

/* ─── Contact details ─── */
.contact-detail { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.contact-detail-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--primary-light);
}
.contact-detail-icon svg { width: 18px; height: 18px; }
.contact-detail-text { font-size: 0.9rem; color: var(--text-muted); }

.form-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem; }
.form-card .form-group { margin-bottom: 1.25rem; }
.form-card label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.75rem 1rem; color: var(--text); font-family: inherit;
  font-size: 0.9rem; transition: var(--transition);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.form-card textarea { min-height: 110px; resize: vertical; }
.form-card select option { background: #12121e; color: var(--text); }
.form-card input::placeholder, .form-card textarea::placeholder { color: rgba(255,255,255,0.2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ─── Toast ─── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  padding: 1rem 1.5rem; border-radius: 12px; font-weight: 600;
  display: flex; align-items: center; gap: 0.5rem;
  transform: translateY(6rem); opacity: 0; transition: var(--transition);
  box-shadow: 0 8px 32px rgba(16,185,129,0.3);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── Footer ─── */
footer { border-top: 1px solid var(--border); padding: 3rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-logo img { height: 32px; width: auto; display: block; }
.footer-logo-text {
  font-size: 1.1rem; font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.footer-copy { font-size: 0.82rem; opacity: 0.65; margin-top: 0.35rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--text); }

/* ─── Trust Bar ─── */
.trust-bar {
  background: rgba(255,255,255,0.015);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 1.75rem; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
}
.trust-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-light); flex-shrink: 0;
}
.trust-divider { width: 1px; height: 14px; background: var(--border); }

/* ─── Compliance ─── */
.compliance-section { background: linear-gradient(180deg, var(--bg) 0%, rgba(6,182,212,0.03) 50%, var(--bg) 100%); }
.compliance-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem; margin-top: 4rem;
}
.compliance-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
.compliance-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}
.compliance-card:hover { transform: translateY(-4px); border-color: rgba(6,182,212,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.compliance-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(6,182,212,0.1); border: 1px solid rgba(6,182,212,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; color: var(--accent);
}
.compliance-icon svg { width: 22px; height: 22px; }
.compliance-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.compliance-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* ─── Testimonials ─── */
.testimonials-section { background: var(--bg); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 4rem;
}
.testimonial-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.testimonial-stars { color: #f59e0b; font-size: 0.95rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.testimonial-text {
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.75;
  margin-bottom: 1.5rem; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.1rem; }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* ─── FAQ ─── */
.faq-section { background: rgba(99,102,241,0.02); border-top: 1px solid var(--border); }
.faq-list { max-width: 780px; margin: 4rem auto 0; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 0.75rem; overflow: hidden; background: var(--bg-card);
  transition: var(--transition);
}
.faq-item.open { border-color: rgba(99,102,241,0.35); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem; background: transparent; border: none;
  color: var(--text); font-family: inherit; font-size: 0.93rem; font-weight: 600;
  cursor: pointer; text-align: left; gap: 1rem; transition: var(--transition);
}
.faq-question:hover { color: var(--primary-light); }
.faq-icon {
  font-size: 1.3rem; color: var(--primary-light); flex-shrink: 0;
  transition: transform 0.3s ease; line-height: 1; font-weight: 300;
}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p {
  padding: 0 1.5rem 1.25rem; font-size: 0.88rem;
  color: var(--text-muted); line-height: 1.75;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ─── Hamburger ─── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: transparent; border: none; cursor: pointer;
  padding: 6px; border-radius: 8px; margin-left: 0.25rem;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── Responsive ─── */
/* ─── Show/hide per device ─── */
.mobile-only { display: none !important; }
.desktop-only { display: block; }

/* ─── iPhone 17 Pro Max mockup ─── */
.iphone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 0 1.5rem;
  width: 100%;
}
.iphone {
  position: relative;
  width: 300px;
  background: linear-gradient(160deg, #2a2a2e 0%, #1a1a1c 60%, #121214 100%);
  border-radius: 52px;
  padding: 6px;          /* bordi sottilissimi stile 17 Pro Max */
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.15),
    0 0 0 3px rgba(180,180,180,0.08),
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 40px 100px rgba(0,0,0,0.8),
    0 0 60px rgba(99,102,241,0.12);
}
/* Cornice in titanio scuro */
.iphone::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 52px;
  border: 2px solid transparent;
  background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04), rgba(255,255,255,0.1)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  pointer-events: none;
}
.iphone-inner {
  background: #000;
  border-radius: 47px;
  overflow: hidden;
  position: relative;
}
/* Dynamic Island */
.iphone-island {
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 30px;
  background: #000;
  border-radius: 20px;
  z-index: 10;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}
/* Bordi laterali sottili + riflesso */
.iphone-screen {
  width: 100%;
  height: 540px;
  overflow-y: scroll;
  overflow-x: hidden;
  background: #0a0a14;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.iphone-screen::-webkit-scrollbar { display: none; }
.iphone-screen img {
  width: 100%; height: auto; display: block;
  transition: opacity 0.3s ease;
}
/* Home indicator */
.iphone-home {
  height: 28px;
  background: #000;
  display: flex; align-items: center; justify-content: center;
}
.iphone-home::after {
  content: '';
  width: 110px; height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
}

/* ─── Tablet ─── */
@media (max-width: 1024px) {
  .container { padding: 0 1.5rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .mobile-only { display: flex !important; }   /* mantiene flex per iphone-wrap */
  .desktop-only { display: none !important; }
  /* Container */
  .container { padding: 0 1.25rem; }

  /* Nav */
  .nav-inner { padding: 0.85rem 1.25rem; }
  .nav-ctas .btn-primary { font-size: 0.78rem; padding: 0.5rem 0.85rem; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(10,10,20,0.97); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 1rem 1.25rem; gap: 0.1rem;
    transform: translateY(-110%); opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none; z-index: 99; display: flex;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { padding: 0.75rem 1rem; font-size: 0.95rem; border-radius: 10px; }

  /* Hero */
  .hero { padding: 6rem 0 3rem; min-height: auto; overflow: hidden; }
  .hero-inner { max-width: 100%; padding: 0 0.25rem; overflow: hidden; }
  .hero-sub { overflow-wrap: break-word; word-wrap: break-word; max-width: 100%; }
  /* Override the clamp minimum that is too large on mobile */
  .hero h1 { font-size: 1.55rem !important; letter-spacing: -0.02em; line-height: 1.15; }
  .hero-sub { font-size: 0.92rem; padding: 0; max-width: 100%; }
  .hero-badge { font-size: 0.7rem; padding: 0.3rem 0.75rem; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 0.75rem; margin-bottom: 2.5rem; }
  .hero-ctas .btn-lg { width: 100%; max-width: 320px; justify-content: center; }
  .hero-stats {
    display: grid !important; grid-template-columns: 1fr 1fr;
    gap: 0.75rem; padding: 1rem; width: 100% !important;
    box-sizing: border-box;
  }
  /* Bottoni: permetti wrap del testo su mobile */
  .btn { white-space: normal; }
  .btn-lg { white-space: normal; }
  /* Nav CTA: testo corto */
  .nav-ctas .btn { font-size: 0.78rem; padding: 0.5rem 0.85rem; }
  /* Contact separator senza nowrap */
  .contact-separator span { white-space: normal; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.68rem; }
  .hero-wave-container { display: none; }

  /* Trust bar */
  .trust-inner { gap: 0.85rem; flex-wrap: wrap; justify-content: center; }
  .trust-divider { display: none; }
  .trust-item { font-size: 0.75rem; }

  /* Sections */
  section { padding: 4rem 0; }
  .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }
  .section-sub { font-size: 0.9rem; padding: 0 0.5rem; }

  /* Features */
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .feat-card { padding: 1.25rem; }

  /* Showcase / MacBook */
  .showcase-tabs { gap: 0.3rem; }
  .tab-btn { padding: 0.4rem 0.75rem; font-size: 0.78rem; }
  .macbook-wrap { padding: 2rem 0; }

  /* How it works */
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Compliance */
  .compliance-grid { grid-template-columns: 1fr; gap: 1rem; }
  .compliance-card { padding: 1.25rem; }

  /* For who */
  .forwho-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .who-card { padding: 1.5rem; }

  /* Security */
  .sec-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .sec-card { padding: 1.25rem; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .testimonial-card { padding: 1.25rem; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; gap: 1.25rem; max-width: 100%; }
  .price-card { padding: 1.5rem; }
  .price-amount { font-size: 2rem; }
  .billing-toggle { flex-wrap: wrap; }

  /* FAQ */
  .faq-list { margin-top: 2.5rem; }
  .faq-question { font-size: 0.88rem; padding: 1rem 1.25rem; }

  /* Contact */
  .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
  .contact-info h2 { font-size: 1.5rem; }
  .form-card { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .register-cta-block { padding: 1.5rem; }
  .register-cta-inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .register-cta-text h2 { font-size: 1.35rem; }
  .contact-separator span { font-size: 0.75rem; }

  /* Footer */
  .footer-inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { justify-content: center; gap: 1rem; flex-wrap: wrap; }
}

/* ─── Small Mobile (≤ 430px) ─── */
@media (max-width: 430px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 1.45rem !important; }
  .nav-ctas .btn-primary { font-size: 0.72rem; padding: 0.45rem 0.7rem; }
  .sec-grid { grid-template-columns: 1fr; }
  .price-amount { font-size: 1.75rem; }
  .macbook-wrap { padding: 1.5rem 0; }
  .section-title { font-size: 1.5rem !important; }
}
