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

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

:root {
  --green: #10B981;
  --green-dark: #059669;
  --green-darker: #047857;
  --green-light: #D1FAE5;
  --green-mid: #6EE7B7;
  --slate: #1E293B;
  --slate-dark: #0F172A;
  --slate-mid: #334155;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-400: #94A3B8;
  --gray-600: #475569;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --radius: 12px;
  --radius-lg: 20px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #fff;
  color: var(--slate);
  line-height: 1.6;
}

/* ─── LANGUAGE ─────────────────────────────────────── */
html.lang-it .t-en { display: none !important; }
html.lang-en .t-it { display: none !important; }

/* ─── NAV ─────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--gray-200);
  height: 68px; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { width: 38px; height: 38px; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; }
.nav-brand { font-size: 17px; font-weight: 800; color: var(--slate); line-height: 1.1; }
.nav-brand em { color: var(--green); font-style: normal; }
.nav-sub { font-size: 11px; font-weight: 600; color: var(--gray-400); letter-spacing: .5px; text-transform: uppercase; }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: flex; align-items: center; gap: 2px;
  background: var(--gray-100); border-radius: 8px; padding: 3px;
}
.lang-btn {
  border: none; background: transparent; padding: 4px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 700; cursor: pointer; color: var(--gray-600);
  transition: all .15s; font-family: inherit;
}
.lang-btn.active { background: #fff; color: var(--slate); box-shadow: var(--shadow-sm); }

.btn-nav-cta {
  background: var(--green); color: #fff;
  padding: 9px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: background .15s;
  white-space: nowrap;
}
.btn-nav-cta:hover { background: var(--green-dark); }

/* ─── HERO ────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate) 60%, #1a3a2a 100%);
  padding: 96px 24px 88px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(16,185,129,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 760px; margin: 0 auto; position: relative; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(16,185,129,.15); border: 1px solid rgba(16,185,129,.3);
  color: var(--green-mid); font-size: 13px; font-weight: 600;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 52px); font-weight: 800;
  color: #fff; line-height: 1.1; letter-spacing: -1px; margin-bottom: 22px;
}
.hero h1 em { color: var(--green); font-style: normal; }

.hero-sub {
  font-size: 17px; color: rgba(255,255,255,.75); margin-bottom: 38px; line-height: 1.7;
}

.btn-hero {
  display: inline-flex; align-items: center;
  background: var(--green); color: #fff;
  padding: 15px 32px; border-radius: 12px; font-size: 16px; font-weight: 700;
  text-decoration: none; transition: all .2s; box-shadow: 0 4px 20px rgba(16,185,129,.4);
}
.btn-hero:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(16,185,129,.5); }

.hero-stats {
  display: flex; justify-content: center; gap: 48px; margin-top: 52px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,.1);
}
.stat { text-align: center; }
.stat-val { display: block; font-size: 28px; font-weight: 800; color: var(--green); }
.stat-label { display: block; font-size: 12px; color: rgba(255,255,255,.55); font-weight: 500; margin-top: 2px; }

/* ─── SECTIONS ────────────────────────────────────── */
.section { padding: 72px 24px; }
.section-gray { background: var(--gray-50); }
.container { max-width: 1100px; margin: 0 auto; }
.section-title {
  text-align: center; font-size: clamp(24px, 3vw, 36px); font-weight: 800;
  color: var(--slate); margin-bottom: 48px; line-height: 1.15;
}
.section-title em { color: var(--green); font-style: normal; }

/* ─── PAIN POINTS ─────────────────────────────────── */
.pain { background: linear-gradient(135deg, #FFF7ED 0%, #FEF3C7 100%); }
.pain-inner {
  max-width: 820px; margin: 0 auto;
  display: flex; align-items: flex-start; gap: 28px;
  background: #fff; border-radius: var(--radius-lg); padding: 36px 40px;
  box-shadow: var(--shadow-md); border-left: 4px solid #F59E0B;
}
.pain-icon { font-size: 36px; flex-shrink: 0; margin-top: 4px; }
.pain-inner h2 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 800; color: var(--slate); margin-bottom: 12px; }
.pain-inner p { font-size: 15px; color: var(--gray-600); line-height: 1.75; }

/* ─── SERVICES ────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px;
}
.service-card {
  background: #fff; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.service-card:hover {
  border-color: var(--green); box-shadow: 0 8px 28px rgba(16,185,129,.12);
  transform: translateY(-4px);
}
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--green-light); display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; color: var(--green-dark); }
.service-card h3 { font-size: 17px; font-weight: 700; color: var(--slate); margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--gray-600); line-height: 1.65; }

/* ─── PRICING ─────────────────────────────────────── */
.pricing-intro { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.pricing-intro p { font-size: 16px; color: var(--gray-600); line-height: 1.7; }

.pricing-tables { display: flex; flex-direction: column; gap: 32px; }

.pricing-group {
  background: #fff; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.pricing-group-header {
  background: var(--slate); padding: 14px 28px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--green-mid);
}
.pricing-row {
  display: grid; grid-template-columns: 1fr auto;
  padding: 18px 28px; border-bottom: 1px solid var(--gray-100);
  align-items: start; gap: 16px;
}
.pricing-row:last-child { border-bottom: none; }
.pricing-row:nth-child(even) { background: var(--gray-50); }
.pricing-name { font-size: 15px; font-weight: 600; color: var(--slate); margin-bottom: 3px; }
.pricing-desc { font-size: 12px; color: var(--gray-400); line-height: 1.5; }
.pricing-price {
  font-size: 15px; font-weight: 700; color: var(--green-dark);
  white-space: nowrap; text-align: right;
}

.pricing-notice {
  margin-top: 28px; background: var(--slate-dark); border-radius: var(--radius);
  padding: 28px 32px; color: rgba(255,255,255,.85);
}
.pricing-notice h4 {
  font-size: 13px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--green-mid); margin-bottom: 16px;
}
.pricing-notice ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pricing-notice li {
  font-size: 13px; padding-left: 20px; position: relative; line-height: 1.6;
}
.pricing-notice li::before {
  content: '→'; position: absolute; left: 0; color: var(--green); font-weight: 700;
}

/* ─── CONTACT ─────────────────────────────────────── */
.contact { background: var(--gray-50); }
.contact-wrap {
  max-width: 680px; margin: 0 auto;
  background: #fff; border-radius: var(--radius-lg); padding: 48px;
  box-shadow: var(--shadow-md);
}
.contact-wrap h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; color: var(--slate); margin-bottom: 8px; }
.contact-sub { font-size: 15px; color: var(--gray-600); margin-bottom: 32px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--slate-mid); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px; border: 1.5px solid var(--gray-200);
  border-radius: 8px; font-size: 14px; font-family: inherit;
  color: var(--slate); transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.btn-submit {
  width: 100%; padding: 15px; background: var(--green); color: #fff;
  border: none; border-radius: 10px; font-size: 16px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background .15s, transform .15s;
  margin-top: 8px;
}
.btn-submit:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.form-legal {
  font-size: 11px; color: var(--gray-400); margin-top: 12px;
  text-align: center; line-height: 1.6;
}
.form-legal a { color: var(--green-dark); text-decoration: none; }
.form-legal a:hover { text-decoration: underline; }

.form-success {
  display: none; text-align: center; padding: 32px;
  background: var(--green-light); border-radius: var(--radius);
  border: 1.5px solid var(--green);
}
.form-success.visible { display: block; }
.form-success h3 { color: var(--green-darker); font-size: 20px; margin-bottom: 8px; }
.form-success p { color: var(--green-dark); font-size: 14px; }

/* ─── FOOTER ──────────────────────────────────────── */
footer { background: var(--slate-dark); color: var(--gray-400); padding: 48px 32px 28px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 32px; margin-bottom: 36px;
}
.footer-brand .logo-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .logo-row img { width: 32px; height: 32px; object-fit: contain; }
.footer-brand .logo-row span { font-size: 17px; font-weight: 800; color: #fff; }
.footer-brand p { font-size: 13px; max-width: 220px; line-height: 1.65; }
.footer-brand address {
  font-style: normal; font-size: 12px; color: var(--gray-400);
  line-height: 1.7; margin-top: 10px;
}

.footer-links h5 {
  color: #fff; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px;
}
.footer-links a {
  display: block; color: var(--gray-400); text-decoration: none;
  font-size: 13px; margin-bottom: 8px; transition: color .15s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1E293B; padding-top: 20px;
  font-size: 12px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-sub { display: none; }
  .hero-stats { gap: 24px; }
  .pain-inner { flex-direction: column; padding: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-wrap { padding: 28px 24px; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero { padding: 64px 20px 60px; }
  .hero-stats { flex-wrap: wrap; }
  .section { padding: 52px 20px; }
  .btn-nav-cta { display: none; }
}
