/* ===========================================================
   Autolucida — Preview v0.1
   Voce: pratica, leggera, locale, energica.
   Palette: verde lime su base chiara, blu come colore di supporto.
   =========================================================== */

:root {
  --lime: #d6ff6b;
  --lime-strong: #8fd400;
  --lime-deep: #5b9200;
  --blue: #2952d1;
  --blue-deep: #1c3a99;
  --ink: #10201c;
  --ink-soft: #4a5a56;
  --bg: #ffffff;
  --bg-tint: #f5fce9;
  --bg-tint-2: #eefbe0;
  --border: #e3ecd8;

  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1180px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3 {
  font-family: var(--font-head);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

p { margin: 0; }

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 32px;
}

.section-inner--split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.section-inner--reverse { direction: rtl; }
.section-inner--reverse > * { direction: ltr; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--bg-tint-2);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.kicker--light {
  color: var(--ink);
  background: var(--bg-tint);
}

.body-lg {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease;
  will-change: transform;
}
.btn--primary {
  background: var(--lime-strong);
  color: var(--ink);
  box-shadow: 0 10px 24px -8px rgba(143, 212, 0, 0.55);
}
.btn--primary:hover {
  background: var(--lime);
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -8px rgba(143, 212, 0, 0.65);
}
.btn--primary svg { transition: transform 0.3s var(--ease); }
.btn--primary:hover svg { transform: translateX(3px); }

.btn--lg { padding: 18px 34px; font-size: 1.08rem; }

.btn--ghost {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 13px 24px;
}
.btn--ghost:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px -8px rgba(16, 32, 28, 0.12);
  padding: 12px 0;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
}
.nav__brand-mark { display: inline-flex; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 500;
  font-size: 0.96rem;
}
.nav__links a:not(.nav__cta) { position: relative; }
.nav__links a:not(.nav__cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--lime-strong);
  transition: width 0.3s var(--ease);
}
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  background: var(--ink);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.3s var(--ease);
}
.nav__cta:hover { background: var(--blue); transform: translateY(-2px); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), visibility 0.4s;
}
.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
}
.mobile-menu__foot {
  position: absolute;
  bottom: 32px;
  left: 32px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 150px 32px 80px;
  background: var(--bg-tint);
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  margin: 4px 0 20px;
}
.hero__title-accent { color: var(--blue); }
.hero__sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero__actions-note {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  z-index: 1;
}
.hero__blob--1 {
  width: 460px;
  height: 460px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle at 30% 30%, var(--lime) 0%, transparent 70%);
  opacity: 0.9;
}
.hero__blob--2 {
  width: 300px;
  height: 300px;
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle at 60% 60%, var(--bg-tint-2) 0%, transparent 70%);
}

.hero__art { position: relative; z-index: 2; }
.van { width: 100%; height: auto; }
.van__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  fill: #fff;
  letter-spacing: 0.04em;
}
.van__bubbles .bubble {
  fill: var(--lime);
  opacity: 0.9;
  animation: rise 4.5s ease-in-out infinite;
}
.b1 { animation-delay: 0s; }
.b2 { animation-delay: 0.6s; }
.b3 { animation-delay: 1.1s; }
.b4 { animation-delay: 1.7s; }
.b5 { animation-delay: 2.2s; }
.b6 { animation-delay: 2.8s; }

@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(-40px); opacity: 0; }
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--ink-soft);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--blue), transparent);
  animation: scrollpulse 2s ease-in-out infinite;
}
@keyframes scrollpulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ---------- Come funziona ---------- */
.funziona__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: start;
}
.step {
  background: var(--bg-tint);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px -16px rgba(16, 32, 28, 0.18);
}
.step__num {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blue);
  background: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); }
.step__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding-top: 46px;
}

/* ---------- Servizi ---------- */
.servizi { background: var(--ink); color: #fff; }
.servizi .kicker--light { background: rgba(255,255,255,0.1); color: #fff; }
.servizi h2 { color: #fff; margin-bottom: 48px; }
.servizi__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.35s var(--ease), background 0.35s ease, border-color 0.35s ease;
}
.card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.1);
  border-color: var(--lime);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--lime);
  margin-bottom: 20px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: rgba(255,255,255,0.72); }
.servizi__note {
  margin-top: 44px;
  color: rgba(255,255,255,0.72);
}
.servizi__note a {
  color: var(--lime);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Zona ---------- */
.zona__map { display: flex; justify-content: center; }
.zmap__ring {
  fill: none;
  stroke: var(--border);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
}
.zmap__ring--2 { stroke: var(--lime-strong); stroke-dasharray: none; opacity: 0.5; }
.zmap__label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  fill: var(--ink);
}

/* ---------- Plate placeholder ---------- */
.plate {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: var(--bg-tint);
  border: 2px dashed var(--border);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  overflow: hidden;
}
.plate__marks {
  position: absolute;
  inset: 0;
}
.plate__marks span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime-strong);
  opacity: 0.5;
}
.plate__marks span:nth-child(1) { top: 24px; left: 24px; }
.plate__marks span:nth-child(2) { top: 24px; right: 24px; }
.plate__marks span:nth-child(3) { bottom: 24px; left: 24px; }
.plate__marks span:nth-child(4) { bottom: 24px; right: 24px; }
.plate__tag {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.85);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--bg-tint-2);
  text-align: center;
}
.cta__blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lime) 0%, transparent 70%);
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.7;
}
.cta .section-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.cta__title {
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin: 6px 0 18px;
}
.cta .body-lg { max-width: 50ch; margin: 0 auto 34px; text-align: center; }
.cta__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta__note { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.75); }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 48px;
  padding-bottom: 48px;
}
.footer__brand { display: flex; flex-direction: column; gap: 4px; }
.footer__name { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.1rem; }
.footer__tagline { font-size: 0.9rem; }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 0.92rem; }
.footer__links a:hover { color: var(--lime); }
.footer__legal { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 0.85rem; }
.footer__preview-tag {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 1024px) {
  .section-inner--split { grid-template-columns: 1fr; }
  .section-inner--reverse { direction: ltr; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 420px; margin: 0 auto 20px; }
  .funziona__grid { grid-template-columns: 1fr; }
  .step__arrow { transform: rotate(90deg); padding: 0; margin: -8px auto; }
  .servizi__grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .section-inner { padding: 72px 24px; }
  .hero { padding-top: 130px; }
}

@media (max-width: 600px) {
  .hero__title { font-size: 2.1rem; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__legal { align-items: flex-start; }
  .cta__blob { width: 380px; height: 380px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .btn, .step, .card, .hero__scroll-line, .van__bubbles .bubble {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
