:root {
  --bg: #0b0b10;
  --surface: #14141c;
  --surface-2: #1c1c27;
  --line: rgba(255, 255, 255, .09);
  --text: #f5f2ea;
  --muted: #a3a1ad;
  --lime: #c8ff3e;
  --coral: #ff5d7c;
  --violet: #7b5cff;
  --grad: linear-gradient(100deg, var(--lime), var(--coral) 55%, var(--violet));
  --r: 22px;
  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 40px); }
.section { padding: clamp(72px, 10vw, 130px) 0 0; }

.eyebrow { color: var(--lime); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.display { font-size: clamp(54px, 10vw, 128px); line-height: .92; letter-spacing: -.045em; font-weight: 800; }
.display em, .total { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.02; letter-spacing: -.035em; font-weight: 750; max-width: 16ch; }
h3 { font-size: 22px; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: clamp(18px, 2vw, 21px); max-width: 50ch; margin-top: 26px; }
.sub { color: var(--muted); margin-top: 14px; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 26px; border-radius: 999px; font-weight: 700; font-size: 16px;
  background: var(--lime); color: #0b0b10; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(200, 255, 62, .28); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { display: flex; width: 100%; margin-top: 12px; }

/* Navigazione */
.nav {
  position: sticky; top: 14px; z-index: 20; width: min(1160px, 100% - 28px); margin: 14px auto 0;
  display: flex; align-items: center; gap: 28px; padding: 10px 10px 10px 22px;
  background: rgba(20, 20, 28, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px;
}
.nav nav { display: flex; gap: 26px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -.05em; }
.logo span { color: var(--lime); }

/* Hero */
.hero { position: relative; overflow: clip;padding-top: clamp(50px, 8vw, 100px); }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 30px; position: relative; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 54px; }
.facts b { display: block; font-size: 28px; letter-spacing: -.03em; }
.facts span { color: var(--muted); font-size: 14px; }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .34; pointer-events: none; }
.glow-a { width: 520px; height: 520px; background: var(--violet); right: -140px; top: -80px; }
.glow-b { width: 380px; height: 380px; background: var(--coral); right: 16%; top: 260px; opacity: .22; }
.hero-photo { margin: 0; position: relative; rotate: 2.5deg; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 62%; border-radius: 30px; border: 1px solid var(--line); box-shadow: 0 40px 90px rgba(123, 92, 255, .38); }
.hero-photo figcaption { position: absolute; left: -22px; bottom: 34px; rotate: -6deg; padding: 10px 18px; border-radius: 999px; background: var(--lime); color: #0b0b10; font-weight: 700; font-size: 14px; white-space: nowrap; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }

.marquee { margin-top: clamp(56px, 8vw, 96px); border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; }
.marquee div { display: flex; gap: 46px; width: max-content; animation: slide 38s linear infinite; }
.marquee span { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--muted); white-space: nowrap; }
.marquee span:nth-child(3n+1) { color: var(--text); }
.marquee span::after { content: "✦"; margin-left: 46px; color: var(--lime); font-size: 14px; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Servizi */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-5px); border-color: rgba(200, 255, 62, .45); }
.card .num { display: block; color: var(--lime); font-weight: 700; font-size: 14px; margin-bottom: 46px; }
.card p { color: var(--muted); margin-top: 10px; }
.incl { margin-top: 16px; padding: 30px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(120deg, rgba(123, 92, 255, .16), rgba(255, 93, 124, .08)); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.incl ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.incl li { padding-left: 26px; position: relative; }
.incl li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 8px; border-left: 2.5px solid var(--lime); border-bottom: 2.5px solid var(--lime); transform: rotate(-45deg); }

/* Galleria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 14px; margin-top: 48px; }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery figure:hover img { transform: scale(1.05); }
.gallery .g-team { grid-column: span 2; grid-row: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: span 2; }

/* Recensione */
.quote { margin: 0; text-align: center; }
.stars { color: var(--lime); font-size: 22px; letter-spacing: 6px; }
.quote blockquote { margin: 18px 0; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.08; letter-spacing: -.035em; font-weight: 750; }
.quote figcaption { color: var(--muted); }
.quote a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* Zone */
.zone { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; align-items: start; }
.zone p { color: var(--muted); font-size: 18px; }
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas li { padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.areas li:first-child { background: var(--lime); color: #0b0b10; border-color: transparent; }

/* Passi */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--line); padding-top: 24px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; margin-bottom: 22px; }
.steps b { font-size: 24px; letter-spacing: -.02em; }
.steps p { color: var(--muted); margin-top: 8px; }

/* Calcolatore */
.calc { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 44px; align-items: start; }
.calc-form, .calc-out { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 3vw, 36px); }
.calc-out { position: sticky; top: 96px; background: linear-gradient(160deg, #1b1b29, #121219); }
.field + .field, fieldset, fieldset + .field { margin-top: 32px; }
fieldset { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
label, legend { font-weight: 600; }
.field label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
legend { margin-bottom: 14px; padding: 0; }
output { font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hint { color: var(--muted); font-size: 13.5px; margin-top: 10px; }
.center { text-align: center; }

input[type=range] { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--lime) var(--p), var(--surface-2) var(--p)); cursor: pointer; margin: 8px 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 5px solid var(--lime); box-shadow: 0 4px 14px rgba(0, 0, 0, .5); transition: transform .15s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 5px solid var(--lime); }

.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opt, .chip { position: relative; cursor: pointer; font-weight: 400; }
.opt input, .chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt-body { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 18px; border-radius: 18px; background: var(--surface-2); border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.opt-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 18px; }
.tag { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--lime); color: #0b0b10; }
.opt-note { color: var(--muted); font-size: 13.5px; line-height: 1.4; display: block; }
.opt-price { margin-top: auto; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.opt input:checked + .opt-body, .chip input:checked ~ .chip-body, .chip:has(input:checked) { border-color: var(--lime); }
.opt input:checked + .opt-body { background: rgba(200, 255, 62, .08); }
.opt input:focus-visible + .opt-body, .chip:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: 3px; }

.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1.5px solid transparent; transition: border-color .2s, background .2s; }
.chip::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .25); transition: .2s; }
.chip:has(input:checked) { background: rgba(200, 255, 62, .08); }
.chip:has(input:checked)::before { background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6 11.5 3.5 3.5L16 8' fill='none' stroke='%230b0b10' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100%; border-color: var(--lime); }
.chip-body { flex: 1; min-width: 0; }
.chip-price { font-weight: 700; white-space: nowrap; }

.out-label { color: var(--muted); font-size: 14px; }
.total { font-size: clamp(54px, 7vw, 84px); line-height: 1; font-weight: 800; letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin-top: 6px; width: fit-content; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 26px 0; }
.kpis li { background: rgba(255, 255, 255, .05); border-radius: 14px; padding: 12px 14px; }
.kpis b { display: block; font-size: 19px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpis span { color: var(--muted); font-size: 12.5px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--lime); transition: transform .2s; }
details[open] > summary::after { transform: rotate(45deg); }
.rows { margin-top: 12px; font-size: 14.5px; }
.rows li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rows li > span:last-child { white-space: nowrap; }
.rows b { display: block; font-weight: 600; }
.rows .neg > span:last-child { color: var(--lime); }
.sums { margin: 0 0 14px; color: var(--muted); }

/* Promozione */
[hidden] { display: none !important; }
s { color: var(--muted); font-weight: 500; text-decoration-thickness: 1.5px; }
.opt-price s { font-size: 15px; display: block; }
.chip-price { text-align: right; line-height: 1.2; }
.chip-price s { font-size: 12.5px; display: block; }
.promo { position: relative; display: flex; align-items: center; gap: 22px; margin-top: 36px; padding: 18px 26px; border-radius: 24px; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; overflow: hidden; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .09) 50%, transparent 70%); translate: -100% 0; animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 55%, 100% { translate: 100% 0; } }
.promo-perc { font-size: clamp(40px, 6vw, 64px); line-height: 1; font-weight: 800; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.promo p { color: var(--muted); font-size: 17px; }
.promo strong { color: var(--text); font-size: 20px; letter-spacing: -.01em; display: block; }
.promo + .calc { margin-top: 16px; }
.was { margin-top: 10px; font-size: 20px; font-variant-numeric: tabular-nums; }
.was b { margin-left: 8px; padding: 3px 10px; border-radius: 99px; background: var(--lime); color: #0b0b10; font-size: 13px; vertical-align: 2px; }
.was + .total { margin-top: 2px; }
.save { margin-top: 10px; color: var(--lime); font-weight: 600; font-size: 15px; }
.sticker { position: absolute; top: -26px; right: -18px; width: 132px; height: 132px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--lime); color: #0b0b10; rotate: 12deg; box-shadow: 0 14px 34px rgba(0, 0, 0, .5); outline: 2px dashed rgba(11, 11, 16, .45); outline-offset: -9px; animation: wobble 5s ease-in-out infinite; transition: scale .2s; }
.sticker:hover { scale: 1.07; }
.sticker b { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.05em; }
.sticker span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; max-width: 9ch; margin: 3px auto 0; line-height: 1.15; }
@keyframes wobble { 50% { rotate: 6deg; } }
@media (max-width: 920px) { .sticker { right: -8px; width: 112px; height: 112px; } .sticker b { font-size: 33px; } }
@media (max-width: 560px) { .promo { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* FAQ */
.faq { margin-top: 36px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-size: 19px; }
.faq p { color: var(--muted); margin-top: 12px; max-width: 62ch; }

/* CTA + footer */
.center-row { justify-content: center; margin-top: 0; }
.btn-ghost-dark { background: transparent; color: #0b0b10; border-color: rgba(11, 11, 16, .45); }
.btn-ghost-dark:hover { background: rgba(11, 11, 16, .1); box-shadow: none; }
.foot a:not(.logo):hover { color: var(--text); }
.cta { margin-top: clamp(72px, 10vw, 130px); padding: clamp(40px, 7vw, 84px) 24px; border-radius: 32px; text-align: center; background: var(--grad); color: #0b0b10; }
.cta h2 { max-width: none; }
.cta p { margin: 12px 0 28px; font-weight: 500; }
.cta .btn { background: #0b0b10; color: var(--text); }
.cta .btn:hover { box-shadow: 0 12px 34px rgba(0, 0, 0, .35); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 44px 0; color: var(--muted); font-size: 14px; }
.foot .logo { color: var(--text); margin-right: auto; }

/* Comparsa */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .hero-grid, .calc, .incl, .zone { grid-template-columns: 1fr; }
  .zone { gap: 24px; }
  .hero-photo { max-width: 420px; margin: 16px auto 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery .g-team { grid-column: span 2; }
  .cards, .steps { grid-template-columns: 1fr; }
  .incl ul { grid-template-columns: 1fr 1fr; }
  .calc-out { position: static; }
  .nav nav { display: none; } .nav .btn { margin-left: auto; }
}
@media (max-width: 560px) {
  .opts, .chips, .incl ul { grid-template-columns: 1fr; }
  .card .num { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
