/* ============================================
   VARIABILI
   ============================================ */
:root {
  --primary:     #1B2F6E;
  --accent:      #6D28D9;
  --accent-light:#EDE9FE;
  --bg:          #F8FAFC;
  --bg-alt:      #EEF2FF;
  --text:        #1A1A2E;
  --text-muted:  #64748B;
  --border:      #E2E8F0;
  --white:       #FFFFFF;

  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(27, 47, 110, 0.08);
  --shadow-lg: 0 8px 40px rgba(27, 47, 110, 0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ============================================
   CONTAINER
   ============================================ */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section--narrow {
  max-width: 720px;
  margin: 0 auto;
}

/* ============================================
   BOTTONI
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-align: center;
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: #5B21B6;
  border-color: #5B21B6;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
}

.btn--nav {
  background: var(--accent);
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.875rem;
}
.btn--nav:hover { background: #5B21B6; }

.btn--full { width: 100%; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(27, 47, 110, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-family: var(--font-head);
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); }

/* ============================================
   HERO
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0F1E4A 100%);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,40,217,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 64px;
  align-items: center;
}

.hero__label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__avatar {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #4C1D95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(109,40,217,0.3), 0 0 0 8px rgba(109,40,217,0.1);
}

/* ============================================
   SEZIONI
   ============================================ */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.section__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin-bottom: 32px;
}

.section__intro {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.75;
}

/* ============================================
   STORIA
   ============================================ */
.story {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.story p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}

.story p:first-child {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary);
}

/* ============================================
   CARDS
   ============================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card--accent {
  background: var(--primary);
  border-color: var(--primary);
}

.card--accent .card__title,
.card--accent .card__text {
  color: var(--white);
}

.card--accent .card__link {
  color: var(--accent-light);
}

.card__icon {
  font-size: 2rem;
}

.card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}

.card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.card__link {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.2s;
}
.card__link:hover { opacity: 0.75; }

/* ============================================
   FEATURES
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.feature__icon {
  font-size: 2.5rem;
}

.feature h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ============================================
   PER CHI
   ============================================ */
.forchi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.forchi__box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.forchi__box--accent {
  background: var(--primary);
  border-color: var(--primary);
}

.forchi__box h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.forchi__box--accent h3,
.forchi__box--accent p,
.forchi__box--accent li {
  color: var(--white);
}

.forchi__box p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.forchi__box ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.forchi__box li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.forchi__box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.forchi__box--accent li::before {
  color: var(--accent-light);
}

/* ============================================
   STATS
   ============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat {
  background: var(--primary);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat:last-child { border-right: none; }

.stat:nth-child(2) { background: #162459; }
.stat:nth-child(3) { background: var(--accent); }
.stat:nth-child(4) { background: #162459; }

.stat__number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat__label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* ============================================
   FORM
   ============================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__group label {
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

.form__group input,
.form__group select,
.form__group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--accent);
}

.form__group input::placeholder,
.form__group textarea::placeholder {
  color: #CBD5E1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--text);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
}

.footer__copy {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

.footer__legal {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer__legal a {
  color: rgba(255,255,255,0.5);
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle { margin: 0 auto 40px; }

  .hero__cta { justify-content: center; }

  .hero__image { display: none; }

  .cards {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .forchi {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }

  .form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }

  .hero { padding: 120px 0 80px; }

  .stats { grid-template-columns: 1fr; }

  .nav__links {
    gap: 16px;
  }

  .nav__links li:first-child,
  .nav__links li:nth-child(2) {
    display: none;
  }
}
