:root {
  --ink: #14212b;
  --ink-soft: #3a4a57;
  --paper: #f3f7fa;
  --surface: #ffffff;
  --coral: #e53935;
  --coral-deep: #c62828;
  --aqua: #29b6d8;
  --aqua-deep: #0288d1;
  --line: rgba(20, 33, 43, 0.1);
  --jz-orange: #ef801f;
  --jz-black: #111111;
  --shadow: 0 24px 60px rgba(20, 33, 43, 0.12);
  --radius: 18px;
  --font-display: "Nunito", sans-serif;
  --font-body: "Mulish", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Top nav — minimal, brand not competing with hero */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  padding: 1.25rem 0;
  color: #fff;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.topbar nav a {
  color: #fff;
  opacity: 0.95;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.topbar nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.topbar .btn-sm {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  backdrop-filter: blur(8px);
  text-shadow: none;
}

.topbar .btn-sm:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* HERO — one composition */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(10, 24, 36, 0.88) 0%, rgba(10, 24, 36, 0.55) 42%, rgba(10, 24, 36, 0.2) 68%, rgba(10, 24, 36, 0.35) 100%),
    url("demo/hero-composed.png") right center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 80%, rgba(41, 182, 216, 0.25), transparent 60%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(229, 57, 53, 0.2), transparent 55%);
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 7rem 0 4.5rem;
  max-width: 40rem;
  animation: riseIn 0.9s ease-out both;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.brand-lockup img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}

.brand-lockup .wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-lockup .wordmark span {
  display: block;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 0.35rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 34rem;
  opacity: 0.92;
  margin: 0 0 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 12px 30px rgba(229, 57, 53, 0.35);
}

.btn-primary:hover { background: var(--coral-deep); }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

/* Cos'è */
.about {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.about-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  opacity: 0;
  animation: riseIn 0.8s ease 0.15s both;
}

.about-visual img {
  width: 100%;
  height: auto;
}

.about-points {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.about-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.about-points .mark {
  width: 10px;
  height: 10px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--coral));
}

/* Features — no cards; editorial rows */
.features {
  background:
    linear-gradient(180deg, #e8f3f7 0%, var(--paper) 100%);
}

.feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.feature-item .tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--aqua-deep);
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.feature-item p {
  margin: 0;
  color: var(--ink-soft);
}

/* Pricing boxes */
.pricing {
  background: var(--surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.price-card.featured {
  background: linear-gradient(180deg, #fff 0%, #eef8fb 100%);
  border-color: rgba(41, 182, 216, 0.45);
  box-shadow: var(--shadow);
  transform: scale(1.03);
}

.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }

.price-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--coral);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0.4rem 0 0.25rem;
  text-align: center;
}

.price-card .price {
  text-align: center;
  margin: 0.75rem 0 1rem;
}

.price-card .price strong {
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-card .price span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.price-card .price small {
  color: var(--aqua-deep);
  font-weight: 700;
  font-size: 0.82rem;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.price-card li {
  padding: 0.55rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.45rem;
}

.price-card li::before {
  content: "✓";
  color: var(--aqua-deep);
  font-weight: 800;
}

.price-card li.no::before {
  content: "–";
  color: #9aa5ae;
}

.price-card li.no { opacity: 0.55; }

.price-card .btn {
  width: 100%;
}

.price-card .btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.price-card .btn-outline:hover {
  border-color: var(--ink);
  background: #fff;
}

/* highlight custom modules */
#moduli-custom .section-head strong {
  color: var(--coral-deep);
}

#moduli-custom .custom-panel:first-child h3 {
  color: var(--coral-deep);
}

.price-note {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.price-note a { color: var(--coral); font-weight: 700; text-decoration: underline; }

/* Strengths */
.strengths {
  background: var(--ink);
  color: #fff;
}

.strengths .section-head p { color: rgba(255,255,255,0.72); }

.strength-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.strength-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.strength-item p {
  margin: 0;
  color: rgba(255,255,255,0.72);
}

.strength-item::before {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--coral), var(--aqua));
  border-radius: 2px;
}

/* Personalization */
.custom {
  background: var(--surface);
}

.custom-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.custom-panel {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.custom-panel h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.custom-panel p {
  margin: 0;
  color: var(--ink-soft);
}

.custom-shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Case study JoyZone */
.casestudy {
  background:
    linear-gradient(180deg, #1a1a1a 0%, #2a1a0f 45%, #1a120c 100%);
  color: #fff;
  overflow: hidden;
}

.casestudy .section-head {
  max-width: 44rem;
}

.casestudy .section-head p { color: rgba(255,255,255,0.7); }

.jz-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.jz-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 16px;
  padding: 0.4rem;
}

.jz-brand .name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.jz-brand .name small {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jz-orange);
  margin-top: 0.25rem;
}

.jz-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 2rem;
}

.jz-pills span {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 128, 31, 0.45);
  color: #ffd3a8;
  font-size: 0.85rem;
  font-weight: 600;
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

.gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.gallery figure.tall { grid-row: span 2; min-height: 100%; }

.gallery figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.45);
}

.gallery-side {
  display: grid;
  gap: 1rem;
}

/* CTA finale */
.finale {
  background:
    linear-gradient(135deg, var(--aqua-deep), #1565a8 40%, var(--coral-deep));
  color: #fff;
  text-align: center;
}

.finale h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.finale p {
  margin: 0 auto 1.75rem;
  max-width: 34rem;
  opacity: 0.92;
}

.finale .cta-row { justify-content: center; }

.finale .btn-primary {
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.finale .btn-ghost { border-color: rgba(255,255,255,0.55); }

footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.65);
  padding: 1.5rem 0;
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.site-footer a { color: #fff; font-weight: 600; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .topbar nav { display: none; }
  .about-grid,
  .custom-layout,
  .gallery,
  .strength-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .feature-item { grid-template-columns: 1fr; gap: 0.35rem; }
  .gallery figure.tall { grid-row: auto; }
  .hero-content { padding-bottom: 3.5rem; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 1.5rem, var(--max)); }
  .brand-lockup img { width: 52px; height: 52px; }
  .lightbox-prev,
  .lightbox-next { display: none; }
}

/* Lightbox screenshots */
.lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: inherit;
  overflow: hidden;
}

.lightbox-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.lightbox-trigger:hover img,
.lightbox-trigger:focus-visible img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.lightbox-trigger:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

.about-visual .lightbox-trigger,
.custom-shot .lightbox-trigger {
  border-radius: var(--radius);
}

.gallery figure .lightbox-trigger {
  border-radius: 14px 14px 0 0;
  display: block;
  line-height: 0;
}

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 14, 20, 0.88);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.lightbox-frame {
  margin: 0;
  max-width: min(1200px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-frame img {
  max-width: 100%;
  max-height: calc(90vh - 3rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #111;
}

.lightbox-frame figcaption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
}

.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }

