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

:root {
  --bg:          #F5F7FA;
  --bg-alt:      #FFFFFF;
  --dark:        #0F1E35;
  --dark-lt:     #142440;
  --accent:      #1D52D9;
  --accent-dk:   #1340B8;
  --accent-lt:   #4A7AEE;
  --green:       #3DAA5A;
  --green-dk:    #2E8C49;
  --black:       #142038;
  --text:        #334155;
  --text-sec:    #64748B;
  --text-muted:  #94A3B8;
  --border:      #E2E8F0;
  --card-bg:     #FFFFFF;
  --white:       #FFFFFF;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-pill: 980px;
  --shadow:      0 2px 20px rgba(0,0,0,0.04);
  --shadow-hover:0 8px 32px rgba(0,0,0,0.08);
  --font:        'Manrope', 'Inter', -apple-system, sans-serif;
  --transition:  0.3s ease;
  --gradient:    linear-gradient(135deg, var(--accent) 0%, var(--green) 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: 80px;
  background: rgba(245,247,250,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.4s ease;
}
.navbar.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
}
.logo-sys { color: var(--black); }
.logo-more { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sec);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-links a:hover {
  color: var(--black);
  background: rgba(0,0,0,0.04);
}
.nav-active:not(.btn-nav) {
  color: var(--black) !important;
  font-weight: 600 !important;
}

.btn-nav {
  background: var(--gradient) !important;
  color: var(--white) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  border-color: transparent !important;
}
.btn-nav:hover {
  background: linear-gradient(135deg, var(--accent-dk) 0%, var(--green-dk) 100%) !important;
  transform: scale(1.02);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-dk) 0%, var(--green-dk) 100%);
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29,82,217,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-full { width: 100%; justify-content: center; }

/* ===========================
   HERO
=========================== */
.hero {
  padding: 140px 0 100px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text { z-index: 1; }

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease both;
}
.hero-label::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-title {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--black);
  margin-bottom: 24px;
  animation: fadeUp 0.6s ease 0.08s both;
}

.hero-sub {
  font-size: 19px;
  color: var(--text-sec);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
  animation: fadeUp 0.6s ease 0.16s both;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeUp 0.6s ease 0.24s both;
}

.hero-tags {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.32s both;
}
.hero-tags span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.hero-illustration {
  animation: fadeUp 0.8s ease 0.2s both;
}
.hero-illustration img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.06));
}

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

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

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

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-header h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: -1.5px;
  line-height: 1.15;
}
.section-header p {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   CARDS GRID (3 col - legacy)
=========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 52px; height: 52px;
  background: rgba(37,99,235,0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.card:hover .card-icon { transform: scale(1.06); }

.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.card p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ===========================
   CARDS GRID 4 COL (centered)
=========================== */
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card-center {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  text-align: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.card-center:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-center-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-center-icon svg {
  transition: transform 0.3s ease;
}
.card-center:hover .card-center-icon svg {
  transform: scale(1.1);
}

.card-center h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}
.card-center p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ===========================
   SPLIT SECTIONS (alternating)
=========================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-reverse {
  direction: rtl;
}
.split-reverse > * {
  direction: ltr;
}

.split-text h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.15;
}
.split-text p {
  font-size: 17px;
  color: var(--text-sec);
  line-height: 1.65;
  margin-bottom: 24px;
}
.split-text .split-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.split-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.split-feature-dot {
  width: 8px; height: 8px;
  min-width: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 7px;
}
.split-feature span {
  font-size: 16px;
  color: var(--text-sec);
  line-height: 1.55;
}

.split-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===========================
   FLOW SECTION
=========================== */
.flow-wrapper {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 64px;
  align-items: start;
}
.flow-divider {
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  align-self: stretch;
  opacity: 0.2;
}
.flow-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 36px;
  letter-spacing: -0.5px;
  color: var(--black);
}
.accent-text { color: var(--accent); }

.flow-steps { display: flex; flex-direction: column; gap: 6px; }

.flow-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.flow-step:hover { background: rgba(37,99,235,0.04); }

.step-num {
  width: 36px; height: 36px;
  min-width: 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.step-content strong {
  display: block;
  font-size: 16px;
  color: var(--black);
  font-weight: 700;
  margin-bottom: 4px;
}
.step-content p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.55;
}

.flow-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(37,99,235,0.05);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 8px;
}
.note-icon { font-size: 20px; flex-shrink: 0; }
.flow-note p { font-size: 14px; color: var(--text-sec); line-height: 1.55; }
.flow-note strong { color: var(--text); }

/* ===========================
   FEATURES GRID
=========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.feature-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.feature-block h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.feature-block ul { display: flex; flex-direction: column; gap: 10px; }
.feature-block li {
  font-size: 15px;
  color: var(--text-sec);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.feature-block li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ===========================
   VANTAGGI
=========================== */
.vantaggi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.vantaggio {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.vantaggio:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.vantaggio-icon {
  width: 52px; height: 52px;
  background: rgba(37,99,235,0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}
.vantaggio:hover .vantaggio-icon { transform: scale(1.06); }
.vantaggio h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.vantaggio p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ===========================
   PAGE HEADER
=========================== */
.page-header {
  padding: 140px 0 80px;
  background: var(--bg);
}
.page-header-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.page-header-text h1 {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  color: var(--black);
  margin-bottom: 16px;
}
.page-header-text p {
  font-size: 18px;
  color: var(--text-sec);
  line-height: 1.6;
}
.accent {
  color: var(--accent);
}
.page-header-illustration img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  filter: drop-shadow(0 16px 36px rgba(0,0,0,0.05));
}

/* ===========================
   CTA SECTION
=========================== */
.section-cta {
  background: var(--dark);
  text-align: center;
  border-radius: var(--radius);
  margin: 0 40px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}
.section-cta::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, transparent 60%);
  top: -200px; right: -100px;
  border-radius: 50%;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.15;
}
.cta-inner > p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.cta-inner strong { color: var(--accent-lt); }
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-cta .btn-primary {
  background: var(--gradient);
  color: var(--white);
  border-color: transparent;
}
.section-cta .btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-dk) 0%, var(--green-dk) 100%);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(29,82,217,0.35);
}
.section-cta .btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}
.section-cta .btn-outline:hover {
  border-color: var(--white);
}
.cta-info {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-info span {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* ===========================
   CONTACT FORM
=========================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sec);
  letter-spacing: 0.3px;
}
.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: all var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #CBD5E1; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.contact-info-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.contact-info-card ul { display: flex; flex-direction: column; gap: 14px; }
.contact-info-card li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.info-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.contact-info-card li div { display: flex; flex-direction: column; gap: 2px; }
.contact-info-card li strong {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-info-card li a,
.contact-info-card li span {
  font-size: 14px;
  color: var(--text-sec);
  transition: color var(--transition);
}
.contact-info-card li a:hover { color: var(--accent); }
.contact-info-highlights { display: flex; flex-direction: column; gap: 10px; }
.highlight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-sec);
}
.highlight-item span { color: var(--accent); font-weight: 700; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--dark);
  padding: 64px 0 0;
  margin-top: 100px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 60px;
  padding-bottom: 48px;
}
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.footer .logo-sys { color: var(--white); }
.footer .logo-more { color: var(--accent-lt); }
.footer .footer-logo img { filter: brightness(0) invert(1); }
.footer-claim {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-lt);
  margin-bottom: 14px;
  font-weight: 600;
}
.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 300px;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li,
.footer-col li a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}
.footer-col li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .hero-split { grid-template-columns: 1fr; text-align: center; }
  .hero-illustration { order: -1; }
  .hero-illustration img { max-width: 320px; }
  .hero-cta { justify-content: center; }
  .hero-tags { justify-content: center; }

  .page-header-inner { grid-template-columns: 1fr; text-align: center; }
  .page-header-illustration { order: -1; }
  .page-header-illustration img { max-width: 280px; }

  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse { direction: ltr; }

  .cards-grid,
  .cards-grid-4,
  .features-grid,
  .vantaggi-grid { grid-template-columns: repeat(2, 1fr); }

  .flow-wrapper { grid-template-columns: 1fr; }
  .flow-divider { display: none; }
  .contact-wrapper { grid-template-columns: 1fr; }

  .section-cta { margin: 0 24px; padding: 60px 32px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner .footer-col:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  }
  .hero { padding-top: 120px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-tags { flex-direction: column; gap: 8px; align-items: center; }

  .cards-grid,
  .cards-grid-4,
  .features-grid,
  .vantaggi-grid { grid-template-columns: 1fr; }

  .section-cta { margin: 0 16px; border-radius: var(--radius-sm); }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .footer { margin-top: 60px; }
}
