:root {
  --primary: #7a0820;
  --primary-light: #E8200F;
  --bg: #030001;
  --surface: rgba(122, 8, 32, 0.05);
  --surface-hover: rgba(122, 8, 32, 0.12);
  --border: rgba(232, 32, 15, 0.15);
  --text: #F3F3F3;
  --text-muted: #A0A0A0;
  --glass-bg: rgba(3, 0, 1, 0.7);
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 15%, rgba(232, 32, 15, 0.13) 0%, transparent 38%),
    radial-gradient(circle at 88% 78%, rgba(122, 8, 32, 0.18) 0%, transparent 42%),
    radial-gradient(circle at 55% 50%, rgba(122, 8, 32, 0.07) 0%, transparent 55%),
    radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px;
  background-attachment: fixed;
}

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

@keyframes glowPulse {
  0%   { box-shadow: 0 0 20px rgba(122, 8, 32, 0.2); }
  50%  { box-shadow: 0 0 40px rgba(232, 32, 15, 0.35); }
  100% { box-shadow: 0 0 20px rgba(122, 8, 32, 0.2); }
}

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

/* ── Navbar ── */
.navbar-wrapper {
  position: fixed;
  top: 14px;
  left: 20px;
  right: 20px;
  z-index: 1000;
  border-radius: 20px;
  background: rgba(6, 1, 0, 0.65);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.4s ease;
}

.navbar-wrapper.scrolled {
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

header {
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--primary-light);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.contact-btn {
  background: linear-gradient(135deg, #b01428, #e8200f);
  color: var(--text) !important;
  padding: 10px 24px;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 16px rgba(232, 32, 15, 0.2);
}

.contact-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 24px rgba(232, 32, 15, 0.38);
}

/* ── Hero ── */
.hero {
  padding: 140px 0 60px;
  animation: fadeIn 0.8s ease-out;
  text-align: center;
}

.hero-card {
  max-width: 980px;
  margin: 0 auto;
  background: rgba(122, 8, 32, 0.14);
  border: 1px solid rgba(232, 32, 15, 0.45);
  border-radius: 16px;
  padding: 64px 80px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 80px rgba(122, 8, 32, 0.18),
    0 0 32px rgba(122, 8, 32, 0.08),
    inset 0 1px 0 rgba(232, 32, 15, 0.18);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.hero-card:hover {
  border-color: rgba(232, 32, 15, 0.6);
  box-shadow:
    0 0 120px rgba(122, 8, 32, 0.28),
    0 0 60px rgba(232, 32, 15, 0.12),
    inset 0 1px 0 rgba(232, 32, 15, 0.25);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
}

.hero-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 32, 15, 0.3), transparent);
}

@media (max-width: 768px) {
  .hero-card {
    padding: 32px 24px;
  }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-light);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero h1 span {
  background: linear-gradient(135deg, #E8200F, #ff6b4a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #b01428, #e8200f);
  color: white;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 20px rgba(232, 32, 15, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 32px rgba(232, 32, 15, 0.38);
}

.btn-ghost {
  border: 1px solid rgba(232, 32, 15, 0.25);
  color: var(--text-muted);
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  background: rgba(122, 8, 32, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.btn-ghost:hover {
  border-color: rgba(232, 32, 15, 0.5);
  color: var(--text);
  background: rgba(122, 8, 32, 0.12);
}

/* ── Products ── */
.products-section {
  padding: 48px 0 100px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 60px;
  line-height: 1.7;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .product-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover {
  background: var(--surface-hover);
  border-color: rgba(232, 32, 15, 0.3);
  transform: translateY(-4px);
}

.product-card:hover::before { opacity: 1; }

.product-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 768px) {
  .product-card.featured {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }
}

/* Tag prodotto — senza dot colorato */
.product-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-family: 'Space Grotesk', sans-serif;
}

.product-tag.attivo {
  color: var(--primary-light);
  border-color: rgba(232, 32, 15, 0.25);
}

.product-tag.presto {
  color: rgba(255, 255, 255, 0.45);
  border-color: rgba(255, 255, 255, 0.08);
}

.product-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.product-card p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-list li::before {
  content: '›';
  color: rgba(232, 32, 15, 0.6);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 0;
  font-size: 16px;
}

.product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-light);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s;
}

.product-link:hover { gap: 12px; }

/* ── Come lavoriamo ── */
.capacita-section {
  padding: 80px 0 100px;
  border-top: 1px solid var(--border);
}

.capacita-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 768px) {
  .capacita-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.capacita-text h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 20px;
  line-height: 1.15;
}

.capacita-text p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.capacita-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step-item {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.step-item:last-child {
  border-bottom: none;
}

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(232, 32, 15, 0.4);
  letter-spacing: 1px;
  flex-shrink: 0;
  padding-top: 3px;
  width: 28px;
}

.step-content h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.step-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── CTA finale ── */
.cta-section {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-section h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 420px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ── Footer ── */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer-content span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-content strong { color: var(--text); }

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary-light); }

.footer-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.footer-copy {
  font-size: 12px;
  color: rgba(160, 160, 160, 0.4);
}
