@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800&display=swap');

:root {
  /* Brand */
  --primary: #f97316;
  /* Backgrounds */
  --dark: #1a1a1a;
  --dark2: #252525;
  --bg-warm: #f0efed;
  --bg-light: #f0efed;      /* alias backward-compat */
  /* Text */
  --text: #333333;
  --text-main: #555555;     /* alias backward-compat */
  --text-dark: #1a1a1a;    /* alias backward-compat */
  --text-muted: #888888;
  /* Legacy aliases */
  --secondary: #1a1a1a;    /* was #0f172a */
  --accent: #f97316;
  --white: #ffffff;
  /* UI */
  --radius: 2px;
  --shadow: 0 4px 30px rgba(0,0,0,0.08);
  --transition: all 0.28s ease;
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===========================
   NAV
=========================== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 0 6%;
  height: 72px;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.09);
  box-shadow: none;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img { display: block; height: 36px; width: auto; }


.nav-links {
  display: flex;
  gap: 2.5rem;
  margin-left: auto;
  margin-right: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #444;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--primary);
  transition: width 0.22s ease;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after { width: 100%; }
body.hero-page nav .nav-links a.active { color: var(--primary); }
body.hero-page nav.nav-scrolled .nav-links a.active { color: var(--primary); }

.cta-btn {
  padding: 0.68rem 1.5rem;
  background: var(--dark);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: var(--transition);
  border-radius: 2px;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.cta-btn:hover {
  background: var(--primary);
  transform: none;
}

/* ===========================
   NAV — trasparente sul hero, bianca dopo scroll
=========================== */
body.hero-page nav {
  position: absolute;
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

body.hero-page nav:not(.nav-scrolled) .logo img { filter: drop-shadow(0 0 6px rgba(255,255,255,0.85)) drop-shadow(0 0 2px rgba(255,255,255,0.9)); }
body.hero-page nav .nav-links a { color: rgba(255,255,255,0.88); }
body.hero-page nav .nav-links a::after { background: var(--primary); }
body.hero-page nav .cta-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.45);
  color: white;
}

body.hero-page nav.nav-scrolled {
  position: fixed;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.09);
}

body.hero-page nav.nav-scrolled .logo img { filter: none; }
body.hero-page nav.nav-scrolled .nav-links a { color: #444; }
body.hero-page nav.nav-scrolled .cta-btn {
  background: var(--dark);
  border: none;
  color: white;
}

/* ===========================
   HERO — slider fullscreen stile LEHA
=========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background: var(--dark);
}

/* Slides */
.hero-slides {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 90px 120px 80px; /* top=nav, sides=arrows, bottom */
}

.slide.active { opacity: 1; }

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.44);
}

.slide-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slide-eyebrow {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.4rem;
}

.slide-content h1 {
  font-size: clamp(3rem, 6.5vw, 8rem);
  font-weight: 300;
  line-height: 1;
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

/* CTA stile LEHA "VAI AL PRODOTTO" — dark charcoal */
.slide-cta {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  background: rgba(18,18,18,0.78);
  backdrop-filter: blur(4px);
  color: white;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.22);
  transition: var(--transition);
  border-radius: 1px;
}

.slide-cta:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* Frecce laterali — cerchi arancio come LEHA */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease;
  outline: none;
}

.slider-prev { left: 32px; }
.slider-next { right: 32px; }
.slider-btn:hover { background: white; color: var(--primary); }

/* Indicatori slide in basso */
.slide-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.35);
}

/* btn-ghost usato in altre sezioni */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0,0,0,0.2);
  padding-bottom: 2px;
}

.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }

/* ===========================
   SECTIONS
=========================== */
section { padding: 90px 8%; }

.section-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.9rem;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.18;
  margin-bottom: 3rem;
  letter-spacing: -0.015em;
}

.section-title strong { font-weight: 800; }

/* ===========================
   GRID + CARDS
=========================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  outline: 1px solid rgba(0,0,0,0.08);
  gap: 0;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: white;
  padding: 44px 36px;
  outline: 1px solid rgba(0,0,0,0.08);
  transition: background 0.28s ease;
}

.card:hover { background: var(--dark); }
.card:hover h3 { color: white; }
.card:hover p { color: rgba(255,255,255,0.55); }
.card:hover .card-icon { color: var(--primary); }

.card-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  display: block;
  transition: color 0.28s ease;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.65rem;
  transition: color 0.28s ease;
}

.card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  transition: color 0.28s ease;
}

/* ===========================
   STATS BAR
=========================== */
.stats-bar {
  background: var(--dark);
  padding: 0 8%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,0.07);
}

.stat-item {
  padding: 48px 24px;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-align: center;
}

.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}

/* ===========================
   DARK STATEMENT / MARKETING BANNER
=========================== */
.marketing-banner {
  background: var(--dark);
  color: white;
  padding: 100px 8%;
  text-align: center;
}

.marketing-banner h2 {
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 300;
  line-height: 1.25;
  max-width: 860px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.01em;
}

.marketing-banner h2 span { color: var(--primary); font-weight: 800; }
.marketing-banner h2 strong { color: var(--primary); font-weight: 800; }

.marketing-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.52);
  max-width: 640px;
  margin: 0 auto 2.75rem;
  line-height: 1.85;
}

.marketing-banner .cta-btn {
  background: var(--primary);
  color: white;
}

.marketing-banner .cta-btn:hover {
  background: white;
  color: var(--dark);
}

/* ===========================
   FOOTER
=========================== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.42);
  padding: 70px 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  border-top: 1px solid rgba(255,255,255,0.05);
}


footer a { color: var(--primary); text-decoration: none; }
footer a:hover { opacity: 0.8; }
footer p { line-height: 1.8; font-size: 0.88rem; margin-top: 0.25rem; }

.footer-right { text-align: right; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  nav { padding: 0 5%; }
  .nav-links { display: none; }
  section { padding: 70px 5%; }
  .marketing-banner { padding: 80px 5%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr; gap: 30px; }
  .footer-right { text-align: left; }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-content h1 { font-size: clamp(2.4rem, 10vw, 3.8rem); }
  .hero-content > p { font-size: 0.9rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
