/* ============================================================
   LANDING PAGE
   ============================================================ */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1180px, calc(100% - 32px));
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-solid) 76%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 44px -28px rgba(0, 0, 0, .8);
}

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: .875rem; font-weight: 500; color: var(--text-muted); transition: color .2s ease; }
.nav-links a:hover { color: var(--text); }
.nav-act { display: flex; align-items: center; gap: 8px; }

/* ---------- hero ---------- */
.hero {
  padding: 172px 0 90px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 56px;
  align-items: center;
}

/* La dimensione del titolo segue la larghezza della colonna, non del viewport:
   così su schermi larghi non sborda dalla sua metà di pagina. */
.hero-l { container-type: inline-size; }
.hero-l > * { animation: nz-rise .8s cubic-bezier(.16, .84, .28, 1) both; }
.hero-l > *:nth-child(2) { animation-delay: .07s; }
.hero-l > *:nth-child(3) { animation-delay: .14s; }
.hero-l > *:nth-child(4) { animation-delay: .21s; }
.hero-l > *:nth-child(5) { animation-delay: .28s; }

@keyframes nz-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero h1 {
  font-size: clamp(2.15rem, 9.4cqi, 3.9rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1;
  margin: 22px 0 0;
}

.hero-sub { font-size: 1.125rem; color: var(--text-muted); max-width: 47ch; margin: 24px 0 34px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 26px;
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.hero-meta div b {
  font-family: var(--f-mono);
  font-size: 1.3rem;
  font-weight: 500;
  display: block;
  letter-spacing: -.03em;
}

.hero-meta div span { font-size: .75rem; color: var(--text-soft); letter-spacing: .02em; }

.hero-r { position: relative; animation: nz-rise .9s .18s cubic-bezier(.16, .84, .28, 1) both; perspective: 1400px; }

.deck {
  border-radius: var(--r-xl);
  padding: 20px;
  background: linear-gradient(160deg,
              color-mix(in srgb, var(--panel-solid) 96%, transparent),
              color-mix(in srgb, var(--panel-solid) 82%, transparent));
  border: 1px solid var(--line-2);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow), 0 0 90px -40px color-mix(in srgb, var(--accent) 70%, transparent);
  transform: rotateY(-9deg) rotateX(4deg) translateZ(0);
  transition: transform .6s cubic-bezier(.2, .8, .3, 1);
}

.hero-r:hover .deck { transform: rotateY(-3deg) rotateX(1deg); }

.deck-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.deck-top strong { font-family: var(--f-display); font-size: .9375rem; font-weight: 600; }
.deck-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }

.deck-cell { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); padding: 13px 15px; }
.deck-cell b { display: block; font-family: var(--f-mono); font-size: 1.45rem; font-weight: 500; letter-spacing: -.03em; }
.deck-cell span { font-size: .6875rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: .08em; }

.deck-chart { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px 15px; }
.deck-chart-h {
  display: flex;
  justify-content: space-between;
  font-size: .6875rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel-solid) 90%, transparent);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(18px);
  font-size: .8125rem;
  font-weight: 600;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .8);
}

.chip .ico { color: var(--accent-text); }
.chip-a { top: -20px; right: 6px; animation: nz-float 6s ease-in-out infinite; }
.chip-b { bottom: 8px; left: -26px; animation: nz-float 6s .8s ease-in-out infinite; }

@keyframes nz-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- striscia scorrevole ---------- */
.marq {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marq-track { display: flex; gap: 56px; width: max-content; animation: nz-slide 34s linear infinite; }

@keyframes nz-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marq-item { display: flex; align-items: center; gap: 11px; font-size: .875rem; color: var(--text-muted); white-space: nowrap; }
.marq-item b { font-family: var(--f-mono); color: var(--text); font-weight: 500; }
.marq-item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- sezioni ---------- */
.sec { padding: 104px 0; }
.sec-tight { padding-top: 0; }
.sec-cta { padding-bottom: 96px; }
.sec-head { max-width: 660px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(2rem, 1.6rem + 1.9vw, 3.1rem); margin: 18px 0 0; }
.sec-head p { color: var(--text-muted); margin-top: 16px; font-size: 1.0625rem; }

/* ---------- griglia bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bc { padding: 28px; display: flex; flex-direction: column; }
.bc h3 { font-size: 1.25rem; margin-bottom: 10px; }
.bc p { font-size: .9375rem; color: var(--text-muted); }

.bc-ico {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-wash);
  border: 1px solid var(--accent-line);
  color: var(--accent-text);
  margin-bottom: 20px;
}

.bc-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.bc-a { grid-column: span 4; }
.bc-b { grid-column: span 2; grid-row: span 2; }
.bc-c, .bc-d { grid-column: span 2; }
.bc-e, .bc-f { grid-column: span 3; }

.mock { margin-top: 22px; }

.meal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  margin-bottom: 8px;
}

.meal-t { font-size: .6875rem; font-family: var(--f-mono); color: var(--text-soft); width: 46px; flex: none; }
.meal-n { font-size: .8438rem; font-weight: 600; flex: 1; }
.macro { font-size: .6875rem; font-family: var(--f-mono); padding: 3px 9px; border-radius: 999px; background: var(--accent-wash); color: var(--accent-text); }

.ring-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 18px; margin-top: 8px; }
.ring { position: relative; width: 150px; height: 150px; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring-arc { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 55%, transparent)); }
.ring-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-val b { font-family: var(--f-mono); font-size: 1.9rem; font-weight: 500; letter-spacing: -.04em; }
.ring-val span { font-size: .6875rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: .09em; }

.mini-bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; width: 100%; }
.mini-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 18%, transparent)); }

.tl { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.tl-row { display: flex; gap: 13px; align-items: flex-start; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: none; box-shadow: 0 0 0 4px var(--accent-wash); }
.tl-row div strong { display: block; font-size: .8438rem; font-weight: 600; }
.tl-row div span { font-size: .75rem; color: var(--text-soft); }

.bubbles { display: flex; flex-direction: column; gap: 9px; margin-top: 20px; }
.bub { max-width: 80%; padding: 11px 15px; border-radius: 16px; font-size: .8438rem; background: var(--panel); border: 1px solid var(--line); }
.bub.me { align-self: flex-end; background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border: none; font-weight: 500; }

/* ---------- passaggi ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }

.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-line), var(--accent-line), transparent);
}

.step { position: relative; }

.step-n {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: .9375rem;
  font-weight: 500;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--panel-solid) 92%, transparent);
  border: 1px solid var(--accent-line);
  color: var(--accent-text);
  box-shadow: var(--glow-s);
}

.step h3 { font-size: 1.1875rem; margin-bottom: 10px; }
.step p { font-size: .9375rem; color: var(--text-muted); }

/* ---------- pannello temi ---------- */
.th-panel { padding: 44px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: center; }
.th-title { font-size: 1.9rem; margin-top: 18px; }
.th-copy { color: var(--text-muted); margin-top: 16px; font-size: .9375rem; }
.th-mode { margin-top: 22px; }

.th-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.th-card {
  padding: 18px 14px;
  border-radius: var(--r-m);
  cursor: pointer;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1), border-color .22s ease, box-shadow .22s ease;
}

.th-card:hover { transform: translateY(-4px); }
.th-card.on { border-color: var(--tc1); box-shadow: 0 0 0 1px var(--tc1), 0 16px 40px -22px var(--tc1); }
.th-orb { display: block; width: 100%; aspect-ratio: 1.5; border-radius: 12px; background: linear-gradient(135deg, var(--tc1), var(--tc2)); margin-bottom: 12px; }
.th-card small { font-size: .8125rem; font-weight: 600; display: block; }
.th-card em { font-style: normal; font-size: .6875rem; color: var(--text-soft); font-family: var(--f-mono); }

/* ---------- richiamo finale ---------- */
.cta {
  position: relative;
  padding: 66px 52px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(135deg,
              color-mix(in srgb, var(--accent) 16%, var(--bg-2)),
              color-mix(in srgb, var(--accent-2) 12%, var(--bg-2)));
  border: 1px solid var(--accent-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.cta::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -90px;
  top: -180px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 34%, transparent), transparent 68%);
}

.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(1.7rem, 1.4rem + 1.5vw, 2.6rem); }
.cta p { color: var(--text-muted); margin-top: 10px; }

/* ---------- piè di pagina ---------- */
footer { border-top: 1px solid var(--line); padding: 52px 0 60px; position: relative; z-index: 1; }
.foot { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; margin-bottom: 38px; }
.foot-claim { color: var(--text-soft); font-size: .8125rem; margin-top: 14px; max-width: 30ch; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-size: .6875rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-soft); margin: 0 0 14px; font-weight: 600; }
.foot-col a { display: block; font-size: .875rem; color: var(--text-muted); margin-bottom: 10px; transition: color .2s ease; }
.foot-col a:hover { color: var(--accent-text); }
.foot-b { border-top: 1px solid var(--line); padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8125rem; color: var(--text-soft); }

/* ---------- pagine di servizio ---------- */
.config-card { max-width: 620px; padding: 40px; }
.config-title { font-size: 2rem; margin: 20px 0 14px; }
.config-copy { color: var(--text-muted); font-size: .9375rem; margin-bottom: 14px; }
.config-steps { color: var(--text-muted); font-size: .9375rem; padding-left: 20px; margin: 22px 0 28px; display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 150px; }
  .bc-a, .bc-b, .bc-c, .bc-d, .bc-e, .bc-f { grid-column: span 3; grid-row: auto; }
  .th-panel { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .bc-a, .bc-b, .bc-c, .bc-d, .bc-e, .bc-f { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .th-grid { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 44px 28px; }
  .sec { padding: 76px 0; }
  .chip-b { left: -6px; }
  .th-panel { padding: 28px; }
}
