:root {
  --bg: #0c0c10;
  --bg-alt: #13131a;
  --line: #24242e;
  --text: #f2efe9;
  --muted: #a8a6b0;
  --accent: #7c3aed;
  --accent-text: #a78bfa;
  --accent-2: #c4b5fd;
  --radius: 16px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px max(20px, calc((100% - 1120px) / 2));
  background: rgba(12, 12, 16, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: .08em; font-size: 14px; line-height: 1.15; }
.brand small { display: block; font-weight: 500; letter-spacing: .18em; font-size: 10px; color: var(--muted); margin-top: 3px; }
.brand-mark { display: inline-flex; align-items: center; gap: 3px; height: 28px; }
.brand-mark i { width: 4px; border-radius: 2px; background: var(--accent); }
.brand-mark i:nth-child(1) { height: 10px; }
.brand-mark i:nth-child(2) { height: 22px; }
.brand-mark i:nth-child(3) { height: 28px; }
.brand-mark i:nth-child(4) { height: 16px; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav nav a.btn { color: #fff; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid var(--accent);
  transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); background: #8b5cf6; border-color: #8b5cf6; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: transparent; border-color: var(--text); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.center-row { justify-content: center; }

/* ---------- TYPE ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 700; color: var(--accent-text); margin: 0 0 16px; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(40px, 8vw, 84px); font-weight: 900; }
h1 em { font-style: normal; color: var(--accent-text); }
h2 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 620px; margin: 24px 0 0; }
.lead strong { color: var(--text); font-weight: 600; }
.lead.mid { margin-inline: auto; }
.small { color: var(--muted); font-size: 14px; margin-top: 36px; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 12vw, 130px) 0 56px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 90%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, .30), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.wave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  display: flex; align-items: flex-end; gap: 6px; padding: 0 6px;
  opacity: .22; pointer-events: none;
}
.wave i {
  flex: 1; height: var(--h); border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--accent), var(--accent-2));
  transform-origin: bottom; animation: pulse 2.4s ease-in-out infinite; animation-delay: var(--d);
}
@keyframes pulse { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }

.stats { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats li { background: rgba(12, 12, 16, .92); padding: 20px 18px; }
.stats b { display: block; font-size: clamp(24px, 3.4vw, 34px); font-weight: 900; letter-spacing: -.02em; }
.stats span { color: var(--muted); font-size: 14px; }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.prose p { margin: 0 0 18px; color: var(--muted); font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card .num { font-size: 13px; font-weight: 800; letter-spacing: .2em; color: var(--accent-text); }
.card h3 { margin: 18px 0 12px; }
.card p { margin: 0; color: var(--muted); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; position: relative; padding-top: 74px; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent-text);
}
.steps h3 { margin-bottom: 10px; }
.steps p { margin: 0; color: var(--muted); }
.steps strong { color: var(--text); font-weight: 600; }

.stars { font-size: 34px; letter-spacing: 8px; color: var(--accent-2); margin-bottom: 18px; }
.center h2 { margin-inline: auto; }
.center .btn { margin-top: 30px; }

.gallery { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.05); }

details { border-bottom: 1px solid var(--line); padding: 20px 0; }
details:first-of-type { margin-top: 36px; border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-text); font-size: 26px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 14px 0 0; color: var(--muted); }

.contact { background: linear-gradient(180deg, var(--bg), #150e26); border-top: 1px solid var(--line); }

footer { border-top: 1px solid var(--line); padding: 26px 0 90px; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { text-decoration: none; }

/* ---------- WHATSAPP FLOATING ---------- */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 999px;
  background: #25d366; color: #06280f; font-weight: 800; font-size: 15px; text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .45);
  transition: transform .15s;
}
.fab:hover { transform: translateY(-2px); }

/* ---------- FOTO IN EVIDENZA ---------- */
.banner { margin-top: clamp(40px, 6vw, 72px); margin-bottom: 0; padding: 0; }
.banner img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 38%; border-radius: 20px; border: 1px solid var(--line); }
@media (max-width: 480px) { .banner img { aspect-ratio: 4 / 3; object-position: 40% 40%; } }

/* ---------- RECENSIONI ---------- */
.reviews { columns: 3 300px; column-gap: 20px; margin-top: 48px; }
.review {
  break-inside: avoid; margin: 0 0 20px; padding: 24px 24px 22px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s;
}
.review:hover { border-color: #3b2a66; }
.review header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; color: #fff;
  background: linear-gradient(135deg, var(--accent), #4c1d95);
}
.who { min-width: 0; line-height: 1.25; }
.who b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.who small { color: var(--muted); font-size: 12px; }
.rev-stars { margin-left: auto; flex: none; color: var(--accent-2); font-size: 13px; letter-spacing: 2px; }
.review blockquote { margin: 0; }
.review blockquote p { margin: 0 0 12px; color: #d8d5de; font-size: 16px; line-height: 1.6; }
.review blockquote p:last-child { margin-bottom: 0; }
.reviews-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 12px; }
.reviews-actions .btn { margin-top: 0; }
.js-only { display: none; }
.js .js-only { display: inline-flex; }
.js .reviews .more { display: none; }
.js .reviews.open .more { display: block; }

/* galleria con una sola foto */
.gallery[data-count="1"] { grid-template-columns: minmax(0, 1000px); justify-content: center; }
.gallery[data-count="1"] figure { aspect-ratio: 3 / 2; }
.gallery[data-count="2"] { grid-template-columns: repeat(2, 1fr); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .nav nav a:not(.btn) { display: none; }
  .split, .cards, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .steps li { padding-top: 66px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand small { display: none; }
  .btn { width: 100%; }
  .btn-small { width: auto; }
  .review { padding: 20px; }
  .fab span { display: none; }
  .fab { padding: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave i { animation: none; }
  * { transition: none !important; }
}
