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

:root {
  --purple: #5b3fff;
  --purple-light: #7c5fff;
  --purple-pale: #f0ecff;
  --dark: #0f0f13;
  --gray: #374151;
  --gray-light: #6b7280;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  color: var(--gray);
  background: var(--white);
  line-height: 1.6;
}

/* NAV */
nav {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  z-index: 100;
}
nav .inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--dark);
  font-weight: 800; font-size: 17px; letter-spacing: -0.3px;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--dark); border-radius: 9px;
  overflow: hidden; flex-shrink: 0;
}
.logo-icon img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--gray-light);
  font-size: 15px; font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--dark); }
.nav-cta {
  background: var(--purple); color: var(--white) !important;
  padding: 9px 20px; border-radius: 9px;
  font-size: 14px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background .15s;
}
.nav-cta:hover { background: var(--purple-light) !important; }

/* HERO */
.hero {
  padding: 96px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--purple-pale) 0%, var(--white) 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 100px; padding: 5px 14px;
  font-size: 13px; font-weight: 600; color: var(--gray-light);
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900; letter-spacing: -2px; line-height: 1.05;
  color: var(--dark); margin-bottom: 20px;
  max-width: 820px; margin-left: auto; margin-right: auto;
}
.hero h1 em { font-style: normal; color: var(--purple); }
.hero p {
  font-size: 18px; color: var(--gray-light);
  max-width: 520px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--dark); color: var(--white);
  padding: 16px 32px; border-radius: 14px;
  font-size: 17px; font-weight: 700; text-decoration: none;
  letter-spacing: -0.3px; transition: background .15s;
}
.hero-cta:hover { background: #1e1e2e; }
.hero-sub {
  display: block; margin-top: 14px;
  color: var(--gray-light); font-size: 13px;
}

/* STATS */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 24px;
  background: var(--white);
}
.stats .inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 24px; text-align: center;
}
.stat-num {
  font-size: 34px; font-weight: 900;
  color: var(--dark); letter-spacing: -1px; line-height: 1;
  margin-bottom: 4px;
}
.stat-num span { color: var(--purple); }
.stat-label { font-size: 14px; color: var(--gray-light); }

/* SECTIONS */
section { padding: 80px 24px; }
.section-inner { max-width: 1040px; margin: 0 auto; }
.section-tag {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--purple); margin-bottom: 10px;
}
.section-title {
  font-size: clamp(26px, 4vw, 40px); font-weight: 900;
  color: var(--dark); letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px; color: var(--gray-light);
  max-width: 540px; margin-bottom: 48px; line-height: 1.7;
}

/* FEATURE GRID */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
}
.feature-icon { font-size: 30px; margin-bottom: 14px; }
.feature-title {
  font-size: 17px; font-weight: 700; color: var(--dark);
  margin-bottom: 8px;
}
.feature-desc { font-size: 14px; color: var(--gray-light); line-height: 1.65; }

/* BLOG */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 24px;
}
.blog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; text-decoration: none;
  color: inherit; transition: box-shadow .2s, border-color .2s;
  display: block;
}
.blog-card:hover { border-color: var(--purple); box-shadow: 0 4px 24px rgba(91,63,255,.1); }
.blog-tag {
  display: inline-block; background: var(--purple-pale);
  color: var(--purple); font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 100px;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px;
}
.blog-card h3 {
  font-size: 19px; font-weight: 800; color: var(--dark);
  letter-spacing: -0.4px; line-height: 1.3; margin-bottom: 10px;
}
.blog-card p { font-size: 14px; color: var(--gray-light); line-height: 1.6; }
.blog-card .read-more {
  display: inline-block; margin-top: 16px;
  color: var(--purple); font-size: 14px; font-weight: 600;
}

/* AUTOSCUOLE CTA BAND */
.autoscuole-band {
  background: var(--purple); color: var(--white);
  padding: 64px 24px; text-align: center;
}
.autoscuole-band h2 {
  font-size: clamp(24px,4vw,38px); font-weight: 900;
  letter-spacing: -1px; margin-bottom: 12px;
}
.autoscuole-band p {
  font-size: 17px; opacity: .8; max-width: 480px;
  margin: 0 auto 32px; line-height: 1.7;
}
.band-cta {
  display: inline-block; background: var(--white);
  color: var(--purple); padding: 14px 30px;
  border-radius: 12px; font-size: 16px; font-weight: 700;
  text-decoration: none; transition: opacity .15s;
}
.band-cta:hover { opacity: .9; }

/* FOOTER */
footer {
  background: var(--dark); color: rgba(255,255,255,.5);
  padding: 48px 24px;
}
footer .inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
footer .logo { color: rgba(255,255,255,.8); }
footer .logo-icon { background: rgba(255,255,255,.1); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,.4); text-decoration: none;
  font-size: 13px; transition: color .15s;
}
.footer-links a:hover { color: rgba(255,255,255,.8); }

/* BLOG ARTICLE */
.article-hero { padding: 64px 24px 48px; background: var(--purple-pale); }
.article-hero .inner { max-width: 720px; margin: 0 auto; }
.article-body { padding: 48px 24px 80px; }
.article-body .inner {
  max-width: 720px; margin: 0 auto;
  font-size: 17px; line-height: 1.8; color: var(--gray);
}
.article-body h2 {
  font-size: 24px; font-weight: 800; color: var(--dark);
  letter-spacing: -0.5px; margin: 40px 0 14px;
}
.article-body h3 {
  font-size: 19px; font-weight: 700; color: var(--dark);
  margin: 28px 0 10px;
}
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol {
  padding-left: 24px; margin-bottom: 18px;
}
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--dark); font-weight: 700; }
.article-cta-box {
  background: var(--purple-pale); border: 1px solid #d6ceff;
  border-radius: 16px; padding: 28px; margin: 40px 0;
  text-align: center;
}
.article-cta-box p { color: var(--gray); margin-bottom: 16px; }

/* RESPONSIVE */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 72px 20px 60px; }
  section { padding: 60px 20px; }
  footer .inner { flex-direction: column; align-items: flex-start; }
}
