/* ═══════════════════════════════════════════
   KIPY LANDING — style.css
   Modifica qui tutti gli stili
═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIABILI COLORI ── */
:root {
  --purple: #5D5C9E;
  --purple-dark: #4a4980;
  --purple-light: #7B78D4;
  --purple-tint: #EEEEF8;
  --green: #70C18E;
  --green-dark: #56a874;
  --green-tint: #EEF8F2;
  --black: #0a0a0a;
  --slate: #1E293B;
  --slate-mid: #475569;
  --ghost: #F1F5F9;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Baloo 2', sans-serif;
  background: var(--white);
  color: var(--slate);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════
   NAV
══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 56px; height: 70px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(93,92,158,0.1);
}

.nav-logo {
  display: flex; align-items: center;
  gap: 10px; text-decoration: none;
}

.nav-logo img { height: 38px; width: auto; }

.nav-logo-text {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 22px;
  color: #1E293B;
}

.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--slate-mid); font-size: 15px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--purple); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.btn-ghost {
  padding: 9px 22px; border-radius: 12px;
  border: 1.5px solid rgba(93,92,158,0.2);
  background: transparent; color: var(--slate);
  font-family: 'Baloo 2', sans-serif;
  font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }

.btn-primary {
  padding: 10px 24px; border-radius: 12px; border: none;
  background: var(--purple); color: white;
  font-family: 'Baloo 2', sans-serif;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(93,92,158,0.35); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero-wrap {
  background: #fafbff;
  border-bottom: 1px solid rgba(93,92,158,0.08);
  padding-top: 70px;
}

.hero {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 60px;
  padding: 80px 56px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; background: var(--purple-tint);
  border: 1px solid rgba(93,92,158,0.2); border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--purple);
  margin-bottom: 24px; animation: fadeUp 0.5s ease both;
}

.badge-dot {
  width: 7px; height: 7px; background: var(--green);
  border-radius: 50%; animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);}50%{opacity:0.5;transform:scale(0.7);} }

.hero-title {
  font-family: 'Baloo 2', sans-serif; font-weight: 800;
  font-size: clamp(36px, 4vw, 58px); line-height: 1.1;
  color: var(--black); letter-spacing: -0.5px;
  margin-bottom: 20px; animation: fadeUp 0.5s ease 0.1s both;
}
.hero-title .hl { color: var(--purple); }
.hero-title .hlg { color: var(--green-dark); }

.hero-sub {
  font-size: 17px; font-weight: 400; color: var(--slate-mid);
  line-height: 1.7; margin-bottom: 36px; max-width: 460px;
  animation: fadeUp 0.5s ease 0.2s both;
}

.hero-actions {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 40px; animation: fadeUp 0.5s ease 0.3s both;
}

.btn-hero {
  padding: 14px 32px; border-radius: 14px; border: none;
  background: var(--purple); color: white;
  font-family: 'Baloo 2', sans-serif; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.25s; text-decoration: none;
  box-shadow: 0 6px 24px rgba(93,92,158,0.4);
}
.btn-hero:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 12px 36px rgba(93,92,158,0.45); }

.btn-demo {
  padding: 14px 28px; border-radius: 14px; border: 1.5px solid #e2e8f0;
  background: transparent; color: var(--slate);
  font-family: 'Baloo 2', sans-serif; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.btn-demo:hover { border-color: var(--purple); color: var(--purple); }

.hero-trust { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; animation: fadeUp 0.5s ease 0.4s both; }
.trust-item { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--slate-mid); }
.trust-check { width: 20px; height: 20px; background: var(--green-tint); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--green-dark); font-size: 11px; font-weight: 700; }

/* ── HERO VISUAL ── */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; animation: fadeUp 0.6s ease 0.2s both; }

.phone-wrap {
  width: 268px; background: #111; border-radius: 42px; padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.06);
  position: relative; z-index: 2;
}
.phone-screen { background: #f8f9ff; border-radius: 32px; overflow: hidden; }
.phone-inner { padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.phone-topbar { display: flex; justify-content: space-between; align-items: center; }
.phone-kipy-logo { height: 22px; }
.phone-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: white; }
.phone-greeting { font-size: 14px; font-weight: 700; color: var(--black); }
.phone-date { font-size: 11px; color: #94a3b8; margin-top: 1px; }
.phone-card { background: white; border-radius: 16px; padding: 14px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.phone-card-title { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 10px; }
.appt { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid #f1f5f9; }
.appt:last-child { border-bottom: none; padding-bottom: 0; }
.appt-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.appt-name { font-size: 11px; font-weight: 700; color: var(--black); flex: 1; }
.appt-time { font-size: 10px; color: #94a3b8; }
.phone-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-stat { background: white; border-radius: 12px; padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.mini-stat-num { font-family: 'Baloo 2', sans-serif; font-size: 22px; font-weight: 800; line-height: 1; }
.mini-stat-label { font-size: 9px; color: #94a3b8; margin-top: 2px; }
.phone-wa { background: linear-gradient(135deg, #25D366, #128C7E); border-radius: 14px; padding: 11px 14px; display: flex; align-items: center; gap: 10px; }
.wa-ball { width: 30px; height: 30px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.wa-title { font-size: 11px; font-weight: 700; color: white; }
.wa-sub { font-size: 9px; color: rgba(255,255,255,0.75); margin-top: 1px; }

.mascotte-hero {
  position: absolute; bottom: -40px; right: -55px; width: 190px; z-index: 3;
  animation: float 3.5s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(93,92,158,0.25));
}
.mascotte-hero img { width: 100%; }

@keyframes float { 0%,100%{transform:translateY(0);}50%{transform:translateY(-14px);} }

.fbadge {
  position: absolute; background: white; border-radius: 14px; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600;
  color: var(--slate); box-shadow: 0 8px 32px rgba(0,0,0,0.1); white-space: nowrap; z-index: 4;
}
.fbadge-icon { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.fb1 { top: 30px; left: -90px; animation: float 3s ease-in-out infinite; }
.fb2 { top: 160px; right: -100px; animation: float 3s ease-in-out 0.6s infinite; }
.fb3 { bottom: 130px; left: -70px; animation: float 3s ease-in-out 1.2s infinite; }

@keyframes fadeUp { from{opacity:0;transform:translateY(20px);}to{opacity:1;transform:translateY(0);} }

/* ══════════════════════════════════════════
   SOCIAL PROOF
══════════════════════════════════════════ */
.proof-strip { background: var(--ghost); padding: 50px 56px; text-align: center; }
.proof-label { font-size: 13px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 28px; }
.proof-logos { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.proof-item { display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0.45; transition: opacity 0.2s; }
.proof-item:hover { opacity: 1; }
.proof-icon { width: 52px; height: 52px; background: white; border-radius: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.proof-name { font-size: 11px; font-weight: 600; color: var(--slate-mid); }

.stats-row {
  max-width: 900px; margin: 48px auto 0;
  display: grid; grid-template-columns: repeat(3,1fr);
  background: rgba(93,92,158,0.08); border-radius: 22px;
  overflow: hidden; gap: 1px;
}
.stat-box { background: white; padding: 36px; text-align: center; }
.stat-big { font-family: 'Baloo 2', sans-serif; font-size: 52px; font-weight: 800; color: var(--purple); line-height: 1; letter-spacing: -2px; }
.stat-desc { font-size: 14px; color: var(--slate-mid); margin-top: 6px; }

/* ══════════════════════════════════════════
   SEZIONI GENERALI
══════════════════════════════════════════ */
.section { max-width: 1200px; margin: 0 auto; padding: 100px 56px; }

.sec-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; color: var(--purple);
  text-transform: uppercase; letter-spacing: 2px; margin-bottom: 14px;
}
.sec-label::before { content:''; width:22px; height:3px; background:var(--green); border-radius:2px; }

.sec-title {
  font-family: 'Baloo 2', sans-serif; font-size: clamp(30px,3.5vw,50px);
  font-weight: 800; color: var(--black); line-height: 1.12;
  letter-spacing: -0.5px; max-width: 580px;
}
.sec-sub { font-size: 17px; color: var(--slate-mid); line-height: 1.7; max-width: 500px; margin-top: 14px; font-weight: 400; }

/* ══════════════════════════════════════════
   FEATURES
══════════════════════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 56px; }

.feat-card {
  background: white; border: 1.5px solid rgba(93,92,158,0.1);
  border-radius: 24px; padding: 28px; transition: all 0.3s;
  position: relative; overflow: hidden;
}
.feat-card::after { content:''; position:absolute; top:0;left:0;right:0; height:3px; background:linear-gradient(90deg,var(--purple),var(--green)); opacity:0; transition:opacity 0.3s; }
.feat-card:hover { transform:translateY(-5px); box-shadow:0 24px 60px rgba(93,92,158,0.12); border-color:rgba(93,92,158,0.2); }
.feat-card:hover::after { opacity:1; }

.feat-mascotte { width: 72px; margin-bottom: 14px; }

.feat-icon-wrap {
  width: 52px; height: 52px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex-shrink: 0;
}
.feat-title { font-family:'Baloo 2',sans-serif; font-size:18px; font-weight:800; color:var(--black); margin-bottom:8px; }
.feat-desc { font-size:14px; color:var(--slate-mid); line-height:1.65; }

/* ══════════════════════════════════════════
   HOW IT WORKS — sezione scura migliorata
══════════════════════════════════════════ */
.how-wrap {
  background: #1a1830;  /* ← viola scuro invece di nero puro */
  padding: 100px 56px;
}
.how-inner { max-width:1200px; margin:0 auto; }

.steps-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 2px; background: rgba(255,255,255,0.06);
  border-radius: 24px; overflow: hidden; margin-top: 56px;
}

.step {
  background: #221f3d;  /* ← card viola scuro */
  padding: 40px 28px; position: relative;
  border: 1px solid rgba(255,255,255,0.06);
}

.step-num {
  font-family: 'Baloo 2', sans-serif; font-size: 80px; font-weight: 800;
  color: rgba(255,255,255,0.08); line-height: 1;
  letter-spacing: -4px; margin-bottom: 16px;
}

.step-icon {
  width: 46px; height: 46px;
  background: rgba(112,193,142,0.15);  /* ← verde trasparente */
  border-radius: 14px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 16px;
}

.step-title { font-family:'Baloo 2',sans-serif; font-size:16px; font-weight:800; color:white; margin-bottom:8px; }
.step-desc { font-size:13px; color:rgba(255,255,255,0.6); line-height:1.6; }  /* ← più leggibile */

.step-divider {
  position: absolute; top: 40px; right: -1px;
  width: 2px; height: 46px;
  background: rgba(112,193,142,0.3);
}
.step:last-child .step-divider { display:none; }

/* ══════════════════════════════════════════
   WHATSAPP
══════════════════════════════════════════ */
.wa-wrap { background:linear-gradient(150deg,#f0faf4,#e6f5ee); padding:100px 56px; }
.wa-inner { max-width:1200px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:80px; align-items:center; }

.chat-box { background:#ECE5DD; border-radius:28px; padding:20px; box-shadow:0 24px 60px rgba(0,0,0,0.1); }
.chat-hd { background:#128C7E; border-radius:18px; padding:14px 18px; display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.chat-av { width:38px; height:38px; border-radius:50%; background:var(--purple); display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; color:white; }
.chat-name { font-size:14px; font-weight:700; color:white; }
.chat-online { font-size:11px; color:rgba(255,255,255,0.65); }
.chat-msgs { display:flex; flex-direction:column; gap:10px; }
.msg { max-width:82%; padding:11px 15px; border-radius:16px; font-size:13px; line-height:1.55; }
.msg-out { background:#DCF8C6; align-self:flex-end; color:var(--slate); border-bottom-right-radius:4px; }
.msg-in { background:white; align-self:flex-start; color:var(--slate); border-bottom-left-radius:4px; }
.msg-time { font-size:10px; color:#94a3b8; text-align:right; margin-top:5px; }

.wa-feats { display:flex; flex-direction:column; gap:22px; margin-top:36px; }
.wa-feat { display:flex; align-items:flex-start; gap:16px; }
.wa-feat-icon { width:46px; height:46px; background:white; border-radius:14px; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:0 4px 16px rgba(0,0,0,0.07); }
.wa-feat-title { font-family:'Baloo 2',sans-serif; font-size:15px; font-weight:800; color:var(--black); margin-bottom:4px; }
.wa-feat-desc { font-size:13px; color:var(--slate-mid); line-height:1.6; }

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
.testi-wrap { background:var(--ghost); padding:100px 56px; }
.testi-inner { max-width:1200px; margin:0 auto; }
.testi-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:56px; }
.testi-card { background:white; border-radius:24px; padding:32px; box-shadow:0 4px 24px rgba(0,0,0,0.06); transition:transform 0.3s; }
.testi-card:hover { transform:translateY(-4px); }
.testi-stars { color:#FFB347; font-size:14px; letter-spacing:2px; margin-bottom:14px; }
.testi-result { display:inline-block; padding:4px 14px; background:var(--green-tint); border-radius:100px; font-size:12px; font-weight:700; color:var(--green-dark); margin-bottom:16px; }
.testi-text { font-size:15px; color:var(--slate); line-height:1.7; font-style:italic; margin-bottom:24px; }
.testi-author { display:flex; align-items:center; gap:12px; border-top:1px solid var(--ghost); padding-top:20px; }
.author-av { width:42px; height:42px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-family:'Baloo 2',sans-serif; font-weight:800; font-size:15px; color:white; flex-shrink:0; }
.author-name { font-size:14px; font-weight:700; color:var(--black); }
.author-role { font-size:12px; color:#94a3b8; margin-top:1px; }

/* ══════════════════════════════════════════
   FINAL CTA
══════════════════════════════════════════ */
.cta-wrap { background:var(--purple); padding:120px 56px; text-align:center; position:relative; overflow:hidden; }
.cta-wrap::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 50% 120%,rgba(112,193,142,0.2) 0%,transparent 60%); pointer-events:none; }
.cta-mascotte { width:160px; margin:0 auto 24px; position:relative; z-index:1; animation:float 3.5s ease-in-out infinite; filter:drop-shadow(0 20px 40px rgba(0,0,0,0.2)); }
.cta-mascotte img { width:100%; }
.cta-inner { position:relative; z-index:1; max-width:700px; margin:0 auto; }
.cta-title { font-family:'Baloo 2',sans-serif; font-size:clamp(34px,5vw,60px); font-weight:800; color:white; letter-spacing:-1px; line-height:1.1; margin-bottom:18px; }
.cta-sub { font-size:17px; color:rgba(255,255,255,0.7); line-height:1.7; margin-bottom:40px; }
.btn-white { padding:16px 44px; border-radius:14px; border:none; background:white; color:var(--purple); font-family:'Baloo 2',sans-serif; font-size:17px; font-weight:800; cursor:pointer; transition:all 0.25s; text-decoration:none; display:inline-block; box-shadow:0 8px 32px rgba(0,0,0,0.2); }
.btn-white:hover { transform:translateY(-2px); box-shadow:0 16px 48px rgba(0,0,0,0.3); }
.cta-note { font-size:13px; color:rgba(255,255,255,0.4); margin-top:18px; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer { background:var(--black); padding:64px 56px 40px; }
.footer-inner { max-width:1200px; margin:0 auto; }
.footer-top { display:flex; justify-content:space-between; gap:48px; padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,0.06); margin-bottom:36px; }

.footer-logo {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 4px;
}
.footer-logo img { height: 36px; width: auto; }
.footer-logo-text {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800; font-size: 20px; color: white;
}

.footer-brand-desc { font-size:13px; color:rgba(255,255,255,0.35); margin-top:14px; max-width:220px; line-height:1.65; }
.footer-col-title { font-size:11px; font-weight:700; color:rgba(255,255,255,0.3); text-transform:uppercase; letter-spacing:1.5px; margin-bottom:16px; }
.footer-col a { display:block; font-size:13px; color:rgba(255,255,255,0.45); text-decoration:none; margin-bottom:10px; transition:color 0.2s; }
.footer-col a:hover { color:white; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; }
.footer-copy { font-size:12px; color:rgba(255,255,255,0.2); }
.footer-socials { display:flex; gap:10px; }
.soc-btn { width:38px; height:38px; background:rgba(255,255,255,0.06); border-radius:10px; display:flex; align-items:center; justify-content:center; text-decoration:none; transition:background 0.2s; }
.soc-btn:hover { background:rgba(255,255,255,0.12); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 960px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 60px 24px 100px; text-align: center; }
  .hero-sub { max-width: 100%; }
  .hero-trust { justify-content: center; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-visual { margin-top: 40px; }
  .fb1,.fb2,.fb3 { display: none; }
  .mascotte-hero { right: -20px; width: 140px; bottom: -30px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .wa-inner { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .section { padding: 60px 24px; }
  .proof-strip, .how-wrap, .wa-wrap, .testi-wrap, .cta-wrap { padding: 60px 24px; }
  footer { padding: 48px 24px 32px; }
  .footer-top { flex-direction: column; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ══════════════════════════════════════════
   SWITCHER LINGUA
══════════════════════════════════════════ */
.lang-switcher {
  display: flex; gap: 4px;
  background: #F1F5F9; padding: 3px;
  border-radius: 10px;
}
.lang-btn {
  border: none; background: transparent;
  border-radius: 8px; padding: 4px 10px;
  cursor: pointer; font-size: 16px;
  transition: all 0.2s; line-height: 1;
}
.lang-btn.active {
  background: white;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
