* { margin: 0; padding: 0; box-sizing: border-box; }
svg { stroke-linecap: round; stroke-linejoin: round; }
.blur-fake { filter: blur(4px); user-select: none; }

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

:root {
  /* Surfaces */
  --bg: #ffffff;
  --surface: #dcdcde;        /* the hero's own ending-frame grey — the one extra neutral, used for alternating section bands */
  --card-bg: #ffffff;
  --border: #e4e4e4;
  --muted: #6b6b6b;

  /* Text */
  --fg: #272727;

  /* Brand */
  --green: #3fae29;          /* fills / icons / borders */
  --green-text: #2f8a1f;     /* accessible on-light text variant */
  --green-soft-dark: #8fd66f;/* for text on dark (footer) surfaces only */
  --grey-card: #55565a;

  /* Type */
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
}

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

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: #0e0e0d;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-bar {
  width: 220px;
  height: 2px;
  background: rgba(244,243,239,0.15);
}
.loader-fill {
  width: 0%;
  height: 100%;
  background: var(--green);
  transition: width 0.15s ease;
}
.loader-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #f4f3ef;
  opacity: 0.6;
  text-transform: uppercase;
}

/* ---------- Top navigation ---------- */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 5vw;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.topnav .logo {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.topnav .navlinks {
  display: flex;
  gap: 32px;
  list-style: none;
}
.topnav .navlinks a {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Solid state: once the user has scrolled past the hero scene */
.topnav.nav-solid {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
  padding: 16px 5vw;
}
.topnav.nav-solid .logo,
.topnav.nav-solid .navlinks a {
  color: var(--fg);
  text-shadow: none;
}
.topnav.nav-solid .navlinks a:hover { color: var(--green-text); }
.topnav.nav-solid .navtoggle span { background: var(--fg); }

/* ---------- Scroll-driven scene ---------- */
#scroll-wrapper { position: relative; }

.scene { position: relative; height: 600vh; }

.stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #0e0e0d;
}

#frameCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: block;
}

/* Permanent scrim so hero text stays legible regardless of what the underlying frame looks like */
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.12) 22%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0.65) 100%);
}

.overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.text-block {
  position: absolute;
  left: 5vw;
  right: 5vw;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.12s linear, transform 0.12s linear, filter 0.12s linear;
  color: #ffffff;
  will-change: transform, opacity, filter;
}

.block-1 { top: 38%; }
.block-2 { top: 40%; right: 5vw; text-align: right; }
.block-3 { top: 40%; text-align: left; }
.block-4 { top: 42%; text-align: center; }

.text-block h1 {
  font-size: clamp(40px, 6.5vw, 90px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.95),
    0 8px 20px rgba(0,0,0,0.85),
    0 18px 40px rgba(0,0,0,0.7),
    0 6px 80px rgba(0,0,0,0.65);
}
.text-block h2 {
  font-size: clamp(30px, 4.5vw, 58px);
  font-weight: 500;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.95),
    0 8px 20px rgba(0,0,0,0.85),
    0 18px 40px rgba(0,0,0,0.7),
    0 6px 80px rgba(0,0,0,0.65);
}
.text-block p {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.95;
  text-shadow:
    0 2px 6px rgba(0,0,0,0.9),
    0 8px 22px rgba(0,0,0,0.7);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.scroll-cue svg {
  width: 14px;
  height: 14px;
  animation: scroll-cue-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}

.progress-track {
  position: absolute;
  bottom: 32px;
  left: 5vw;
  right: 5vw;
  height: 2px;
  background: rgba(255,255,255,0.25);
  border-radius: 2px;
}
.progress-fill { height: 100%; width: 0%; background: var(--green); border-radius: 2px; }

/* ---------- Mobile nav toggle ---------- */
.navtoggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 600;
}
.navtoggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #ffffff;
  box-shadow: 0 1px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}
.navtoggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navtoggle.open span:nth-child(2) { opacity: 0; }
.navtoggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .navtoggle { display: flex; }
  .topnav .navlinks {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(70vw, 300px);
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    isolation: isolate;
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 40px rgba(0,0,0,0.08);
    z-index: 600;
  }
  .topnav .navlinks.open { transform: translateX(0); }
  .topnav .navlinks a {
    font-size: 16px;
    color: var(--fg);
    text-shadow: none;
  }
}

/* ---------- Reveal-on-scroll (generic, used by every section below) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section shell / typography system ---------- */
.content-section {
  padding: 110px 5vw;
  position: relative;
  overflow: hidden;
}
.content-section.alt-surface {
  background: linear-gradient(180deg, #ffffff 0%, var(--surface) 16%, var(--surface) 84%, #ffffff 100%);
}
.content-section.tone-soft {
  background: linear-gradient(180deg, #ffffff 0%, #f2f9ee 18%, #f2f9ee 82%, #ffffff 100%);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: 18px;
}

.heading-xl {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--fg);
}
.heading-lg {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.02;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--fg);
}

.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--fg);
  margin-bottom: 18px;
}
.body-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 60ch;
  margin-top: 18px;
}
.center-text { margin-left: auto; margin-right: auto; }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

/* Decorative dot-grid pattern, callback to the brand's original deck motif */
.dotted::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 320px;
  height: 320px;
  background-image: radial-gradient(rgba(63,174,41,0.28) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, black 0%, transparent 70%);
  mask-image: radial-gradient(circle at 70% 30%, black 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Scroll-parallax background decor: subtle green digital shapes that drift as you scroll ---------- */
.bg-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.decor-shape {
  position: absolute;
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 0.7s ease;
}
.decor-shape.decor-visible { opacity: 1; }
.decor-blob {
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, rgba(63,174,41,0.30), rgba(63,174,41,0) 72%);
  filter: blur(6px);
}
.decor-ring {
  border-radius: 50%;
  border: 1.5px solid rgba(63,174,41,0.22);
}
.decor-ring.dashed { border-style: dashed; }
.decor-grid {
  background-image:
    linear-gradient(rgba(63,174,41,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,174,41,0.16) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(circle, black 0%, transparent 75%);
  mask-image: radial-gradient(circle, black 0%, transparent 75%);
}
.decor-plus {
  color: rgba(63,174,41,0.35);
}
.decor-plus svg { width: 100%; height: 100%; }
.decor-diamond::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(63,174,41,0.24);
  border-radius: 6px;
  transform: rotate(45deg);
}
.decor-dots {
  background-image: radial-gradient(rgba(63,174,41,0.4) 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(circle, black 0%, transparent 75%);
  mask-image: radial-gradient(circle, black 0%, transparent 75%);
}

@media (max-width: 720px), (prefers-reduced-motion: reduce) {
  .bg-decor .decor-shape { transform: none !important; opacity: 1; transition: none; }
}

/* Split two-column layout, reused across several sections */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .split-reverse > *:first-child { order: 2; }
  .split-text-wide { grid-template-columns: 1.3fr 1fr; }
}

/* Pills / badges */
.pill {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 8px;
}
.pill-green { background: var(--green); color: #0d2a08; }
.pill-grey { background: var(--grey-card); color: #ffffff; }

/* Check list (used in card panels + security) */
.check-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--fg);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/10px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/10px no-repeat;
}

/* ---------- Chi siamo (photo section) ---------- */
.chi-siamo {
  color: #ffffff;
  isolation: isolate;
}
.chi-siamo-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(180deg, transparent 0%, transparent 82%, #ffffff 100%),
    linear-gradient(160deg, rgba(6,20,4,0.72) 0%, rgba(8,24,5,0.45) 45%, rgba(6,20,4,0.78) 100%),
    url('../assets/chi-siamo-bg.webp');
  background-size: cover;
  background-position: center 65%;
}
.chi-siamo .eyebrow { color: #c9f0b8; }
.chi-siamo .heading-xl { color: #ffffff; }
.chi-siamo .lead { color: #ffffff; }
.chi-siamo .body-text { color: rgba(255,255,255,0.78); }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-card {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}
.stat-num {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  color: var(--green-text);
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------- Digital rail: persistent green element that evolves as you scroll ---------- */
.circuit-rail {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: min(46vh, 400px);
  z-index: 400;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.circuit-rail.visible { opacity: 1; }
.circuit-track {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(63,174,41,0.18);
  border-radius: 2px;
}
.circuit-fill {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 0%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--green), #7fd35f);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(63,174,41,0.6);
  transition: height 0.1s linear;
}
.circuit-pulse {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #eafff0;
  box-shadow: 0 0 14px 4px rgba(63,174,41,0.85);
  transform: translate(-50%, -50%);
  transition: top 0.1s linear;
}
.circuit-nodes {
  position: absolute;
  inset: 0;
}
.circuit-node {
  position: absolute;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8d8d8;
  border: 2px solid #ffffff;
  transform: translate(-50%, -50%);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.circuit-node.active {
  background: var(--green);
  box-shadow: 0 0 12px 2px rgba(63,174,41,0.7);
  transform: translate(-50%, -50%) scale(1.25);
}
@media (max-width: 1100px), (prefers-reduced-motion: reduce) {
  .circuit-rail { display: none; }
}

/* ---------- Tipologie di carta ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 800px) {
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.fuel-card-panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.06);
}
.fuel-card-photo {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 16/10;
  transform: rotate(-1.5deg);
  box-shadow: 0 24px 48px rgba(0,0,0,0.22);
  transition: transform 0.4s ease;
}
.fuel-card-panel:nth-child(2) .fuel-card-photo { transform: rotate(1.5deg); }
.fuel-card-panel:hover .fuel-card-photo { transform: rotate(0deg) scale(1.02); }
.fuel-card-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Come funziona ---------- */
.steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}
@media (min-width: 800px) {
  .steps-row { grid-template-columns: 1fr auto 1fr auto 1fr; }
}
.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0,0,0,0.05);
}
.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: var(--green);
}
.step-icon svg { width: 100%; height: 100%; }
.step-no {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--green-text);
  margin-bottom: 6px;
}
.step h3 {
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--fg);
}
.step-line {
  display: none;
}
@media (min-width: 800px) {
  .step-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--border);
    align-self: center;
    margin-top: 48px;
  }
}
.steps-footnote {
  text-align: center;
  margin-top: 40px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Vantaggi comparison ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) {
  .compare-grid { grid-template-columns: 1fr 1fr; }
}
.compare-card {
  border-radius: 20px;
  padding: 36px 32px;
  border: 1px solid var(--border);
}
.compare-good { background: linear-gradient(160deg, rgba(63,174,41,0.10), rgba(63,174,41,0.02)); border-color: rgba(63,174,41,0.35); }
.compare-bad { background: var(--card-bg); box-shadow: 0 16px 36px rgba(0,0,0,0.05); }
.compare-card h3 {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: var(--fg);
}
.compare-good h3 span { color: var(--green-text); }
.compare-bad h3 span { color: #c14545; }
.mark-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mark-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.5;
}
.mark-good li { color: var(--fg); }
.mark-bad li { color: var(--muted); }
.mark-good li::before, .mark-bad li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-size: 10px;
  background-position: center;
  background-repeat: no-repeat;
}
.mark-good li::before {
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
.mark-bad li::before {
  background-color: #c1494c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
}

/* ---------- Chip stack (sconti) ---------- */
.chip-stack { display: flex; flex-direction: column; gap: 16px; }
.chip-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.05);
}
.chip-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(63,174,41,0.12);
  color: var(--green-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.chip-icon svg { width: 22px; height: 22px; }
.chip-card h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--fg); }
.chip-card p { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* ---------- Invoice visual (fatturazione) ---------- */
.invoice-visual { display: flex; justify-content: center; }
.invoice-card {
  width: min(360px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.10);
}
.invoice-row.invoice-head {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--green-text);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 18px;
}
.invoice-row.invoice-head svg { width: 22px; height: 22px; }
.invoice-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.invoice-line span:last-child { color: var(--fg); }
.invoice-line.total {
  border-bottom: none;
  padding-top: 16px;
  font-size: 17px;
  font-weight: 700;
}
.invoice-line.total span:last-child { color: var(--green-text); }
.tag-detraibile {
  background: rgba(63,174,41,0.14);
  color: var(--green-text) !important;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

/* ---------- Timeline (dilazione pagamento) ---------- */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 28px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}
.timeline-item { position: relative; }
.timeline-dot {
  position: absolute;
  left: -28px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px solid var(--border);
}
.timeline-dot.active { background: var(--green); border-color: var(--green); }
.timeline-item h4 { font-size: 15px; font-weight: 600; margin-bottom: 4px; color: var(--fg); }
.timeline-item p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Phone mock (dashboard e app) ---------- */
.phone-visual { display: flex; justify-content: center; }
.phone-mock {
  width: min(280px, 100%);
  background: #111;
  border: 6px solid #1a1a1a;
  border-radius: 36px;
  padding: 14px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.25);
}
.phone-notch {
  width: 60px;
  height: 6px;
  border-radius: 4px;
  background: #2a2a2a;
  margin: 0 auto 14px;
}
.phone-screen {
  background: #1c1c1a;
  border-radius: 22px;
  padding: 18px;
}
.phone-balance {
  background: linear-gradient(135deg, #2a5c9c, #1c3e6b);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
  color: #fff;
}
.phone-balance span { display: block; font-size: 11px; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.05em; }
.phone-balance strong { display: block; font-size: 22px; margin-top: 6px; }
.phone-list { display: flex; flex-direction: column; gap: 10px; }
.phone-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #242422;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
}
.phone-list-item span { color: #f4f3ef; }
.phone-list-item em { color: #99c24d; font-style: normal; font-size: 11px; }

/* ---------- Feature grid (dashboard e app) ---------- */
.feature-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}
@media (min-width: 560px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
.feature-grid li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--fg);
}
.feature-grid svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; }

/* ---------- Sicurezza shield visual ---------- */
.shield-visual { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: left; }
.shield-badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(63,174,41,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.shield-badge svg { width: 48px; height: 48px; }

/* ---------- Coverage / mappa punti vendita ---------- */
.coverage {
  background:
    linear-gradient(180deg, #ffffff 0%, transparent 12%, transparent 88%, #ffffff 100%),
    linear-gradient(160deg, #eef7ea 0%, #ffffff 65%);
}

.map-shell {
  max-width: 980px;
  margin: 0 auto 32px;
}
#salesMap {
  height: 480px;
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -12px rgba(20,60,10,0.35), 0 12px 30px rgba(0,0,0,0.12);
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.map-attribution {
  text-align: center;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
}
.map-attribution a { color: inherit; }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1px var(--border);
  display: inline-block;
}
.legend-dot-main { background: var(--green); }
.legend-dot-adblue { background: #2f80ed; }
.legend-dot-hvo { background: #c9962c; }

.map-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-top: 6px;
  margin-right: 6px;
  background: rgba(63,174,41,0.14);
  color: var(--green-text);
}
.map-badge-adblue { background: rgba(47,128,237,0.14); color: #2f80ed; }
.map-badge-hvo { background: rgba(201,150,44,0.16); color: #a97c1f; }
.map-popup-badges { margin-top: 2px; }

.province-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
}
.province-chip {
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 500;
  color: var(--fg);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.province-chip:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--green);
  color: var(--green-text);
  box-shadow: 0 10px 22px rgba(63,174,41,0.18);
}
.province-chip:active { transform: translateY(-1px) scale(1.01); }
.province-chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(63,174,41,0.3);
}
.province-chip.active:hover { color: #ffffff; transform: translateY(-3px) scale(1.04); }
.coverage-cta { text-align: center; }
.btn-outline {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-outline:hover { background: var(--green); color: #ffffff; }

.btn-solid {
  display: inline-block;
  padding: 14px 30px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 26px rgba(63,174,41,0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-solid:hover {
  transform: translateY(-2px);
  background: var(--green-text);
  box-shadow: 0 16px 32px rgba(63,174,41,0.35);
}

/* ---------- Assistenza headset visual ---------- */
.headset-visual { display: flex; justify-content: center; }
.headset-ring {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--card-bg);
}
.headset-ring svg { width: 56px; height: 56px; z-index: 1; }
.headset-ring-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--green);
  animation: pulse-ring 2.4s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .headset-ring-pulse { animation: none; opacity: 0; }
  .reveal { transition: none; }
}

/* ---------- Footer / contact ---------- */
.footer {
  background:
    linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0) 14%),
    linear-gradient(180deg, rgba(8,20,7,0.55) 0%, rgba(6,15,5,0.85) 100%),
    url('../assets/stazione-economy.jpg');
  background-size: 100% 100%, cover, cover;
  background-position: center;
  padding: 120px 5vw;
  min-height: 90vh;
  display: flex;
  align-items: center;
  color: #f4f3ef;
}
.footer .eyebrow { color: var(--green-soft-dark); }

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 68px;
  align-items: center;
  width: 100%;
}
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.3fr 1fr; }
}

.footer h2 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 0.9;
  margin-bottom: 28px;
  color: #f4f3ef;
}
.footer-cta { margin-bottom: 40px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-top: 41px;
  border-top: 1px dashed rgba(244,243,239,0.25);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
.footer-grid .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-soft-dark);
  margin-bottom: 8px;
}
.footer-grid a, .footer-grid span {
  font-size: 16px;
  line-height: 1.5;
  color: #f4f3ef;
  text-decoration: none;
}
.footer-grid a:hover { color: var(--green-soft-dark); }

.footer-credit {
  margin-top: 45px;
  font-size: 12px;
  color: var(--green-soft-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.footer-credit a { color: var(--green-soft-dark); }

.footer-qr {
  background: #ffffff;
  border-radius: 12px;
  padding: 24px;
  justify-self: center;
  width: min(280px, 100%);
}
.footer-qr img {
  width: 100%;
  height: auto;
  display: block;
}
