/* ============================================================
   Connection Gym — Tandem Workout
   Design system Royaletiger · dark carbon + azzurro brand
   ============================================================ */

/* ---------- Font self-hosted (GDPR-friendly, zero terzi) ---------- */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-var-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-var-latin.woff2') format('woff2');
}

:root {
  /* palette brand — dal logo (swoosh azzurro) + carbone tecnico */
  --brand: #5fa8c7;
  --brand-strong: #2f7ea6;
  --brand-soft: #a8d2e4;
  --ink: #0b0f14;
  --carbon: #10161d;
  --carbon-2: #161e27;
  --text: #2a3440;
  --muted: #5c6a78;
  --text-inv: #e8eef3;
  --muted-inv: #93a3b1;
  --bg: #ffffff;
  --bg-alt: #f2f5f8;
  --line: #e2e8ee;
  --line-inv: rgba(255, 255, 255, 0.09);
  /* tipografia */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  /* sistema */
  --shadow-sm: 0 1px 3px rgba(11, 15, 20, 0.08);
  --shadow-md: 0 8px 28px rgba(11, 15, 20, 0.12);
  --shadow-lg: 0 22px 60px rgba(11, 15, 20, 0.22);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1240px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--brand); }
ul { list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.28rem; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--carbon); }
.section-dark h2, .section-dark h3 { color: var(--text-inv); }
.section-dark p { color: var(--muted-inv); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-strong);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.eyebrow.is-centered { justify-content: center; }
.eyebrow.is-centered::after {
  content: '';
  width: 34px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}
.section-dark .eyebrow { color: var(--brand); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.is-centered { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: var(--muted-inv); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s, border-color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--brand);
  color: #06222f;
  box-shadow: 0 10px 26px rgba(95, 168, 199, 0.35);
}
.btn-primary:hover { background: var(--brand-soft); color: #06222f; }
.btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-strong); }
.btn-outline-inv { border-color: rgba(255, 255, 255, 0.28); color: var(--text-inv); background: transparent; }
.btn-outline-inv:hover { border-color: var(--brand); color: var(--brand-soft); }
.btn-whatsapp { background: #1fae54; color: #fff; box-shadow: 0 10px 26px rgba(31, 174, 84, 0.3); }
.btn-whatsapp:hover { background: #26c260; color: #fff; }
.btn svg { flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(11, 15, 20, 0.72), rgba(11, 15, 20, 0));
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(13, 18, 24, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-inv);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.nav-brand img { width: auto; height: 58px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-inv);
  position: relative;
  padding: 6px 0;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current='page']::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--brand-soft); }
.nav-links .nav-cta { padding: 11px 24px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 110;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--text-inv);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero home ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 120px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85);
  transform: scale(1.06);
  animation: hero-zoom 14s var(--ease) forwards;
}
@keyframes hero-zoom { to { transform: scale(1); } }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(9, 13, 18, 0.94) 0%, rgba(9, 13, 18, 0.78) 42%, rgba(9, 13, 18, 0.35) 100%),
    linear-gradient(rgba(9, 13, 18, 0.1) 60%, rgba(16, 22, 29, 1) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-soft);
  border: 1px solid rgba(126, 190, 216, 0.35);
  background: rgba(95, 168, 199, 0.1);
  padding: 9px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-kicker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(95, 168, 199, 0.25);
}
.hero h1 { color: #fff; max-width: 13ch; }
.hero h1 .accent { color: var(--brand); }
.hero .lead {
  margin-top: 24px;
  max-width: 54ch;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--muted-inv);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 64px);
  margin-top: clamp(48px, 7vw, 84px);
  padding-top: 34px;
  border-top: 1px solid var(--line-inv);
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stat .num em { font-style: normal; color: var(--brand); }
.hero-stat .lbl {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-inv);
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
}
.hero-scroll::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--brand);
  animation: scroll-hint 1.8s ease-in-out infinite;
}
@keyframes scroll-hint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--brand);
  overflow: hidden;
  padding: 14px 0;
  transform: rotate(0.001deg);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #08222e;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}
.marquee span::after { content: '✦'; font-size: 0.8em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Feature cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(95, 168, 199, 0.5);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(95, 168, 199, 0.14);
  color: var(--brand-strong);
  margin-bottom: 24px;
}
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { color: var(--muted); font-size: 1rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; }
.split-media::before {
  content: '';
  position: absolute;
  inset: 26px -26px -26px 26px;
  border: 1.5px solid rgba(95, 168, 199, 0.4);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.split-media .media-tag {
  position: absolute;
  left: 24px;
  bottom: 24px;
  background: rgba(13, 18, 24, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-inv);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-inv);
}
.split-body h2 { margin-bottom: 20px; }
.split-body p { color: var(--muted); margin-bottom: 16px; }
.section-dark .split-body p { color: var(--muted-inv); }
.split-body .btn { margin-top: 14px; }
.check-list { margin: 22px 0 6px; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text); }
.section-dark .check-list li { color: var(--text-inv); }
.check-list svg { flex: none; margin-top: 4px; color: var(--brand-strong); }
.section-dark .check-list svg { color: var(--brand); }

/* ---------- Come funziona (steps) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step {
  position: relative;
  background: var(--carbon-2);
  border: 1px solid var(--line-inv);
  border-radius: var(--radius-lg);
  padding: 40px 32px 34px;
  overflow: hidden;
}
.step .step-num {
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(126, 190, 216, 0.5);
  display: block;
  margin-bottom: 18px;
}
.step h3 { color: var(--text-inv); margin-bottom: 10px; }
.step p { color: var(--muted-inv); font-size: 1rem; }

/* ---------- Product showcase ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card img { width: 100%; background: #fff; }
.product-card figcaption { padding: 20px 24px 24px; border-top: 1px solid var(--line); }
.product-card figcaption strong { font-family: var(--font-display); color: var(--ink); display: block; }
.product-card figcaption span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Timeline brevetti ---------- */
.timeline { position: relative; display: grid; gap: 34px; max-width: 780px; margin: 0 auto; }
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--brand), rgba(95, 168, 199, 0.12));
}
.timeline-item { position: relative; padding-left: 52px; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--carbon);
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 5px rgba(95, 168, 199, 0.15);
}
.timeline-item .t-year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand);
  display: block;
}
.timeline-item h3 { color: var(--text-inv); margin: 6px 0 8px; }
.timeline-item p { color: var(--muted-inv); font-size: 1rem; }

/* ---------- Galleria ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery-grid a {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-alt);
}
.gallery-grid a.is-wide { grid-column: span 2; aspect-ratio: auto; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid a::after {
  content: '⤢';
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(13, 18, 24, 0.72);
  color: #fff;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-grid a:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 11, 15, 0.94);
  padding: 4vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1000px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-inv);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(95, 168, 199, 0.35); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Numeri ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.number-item .num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.number-item .num .suffix { color: var(--brand); }
.section-dark .number-item .num { color: #fff; }
.number-item .lbl { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.section-dark .number-item .lbl { color: var(--muted-inv); }

/* ---------- Quote ---------- */
.quote-band { position: relative; text-align: center; max-width: 880px; margin: 0 auto; }
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-inv);
}
.quote-band blockquote .accent { color: var(--brand); }
.quote-band cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--muted-inv);
}

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card .blog-thumb { aspect-ratio: 16/9; overflow: hidden; }
.blog-card .blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .blog-body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card .blog-meta {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-strong);
}
.blog-card h3 { font-size: 1.35rem; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--brand-strong); }
.blog-card p { color: var(--muted); font-size: 1rem; flex: 1; }
.blog-card .blog-more { font-family: var(--font-display); font-weight: 500; }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  background: var(--carbon);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 88px);
  overflow: hidden;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 150%;
  background: radial-gradient(ellipse at 30% 0%, rgba(95, 168, 199, 0.28), transparent 55%),
              radial-gradient(ellipse at 80% 100%, rgba(95, 168, 199, 0.12), transparent 60%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: #fff; max-width: 22ch; margin: 0 auto 18px; }
.cta-banner p { color: var(--muted-inv); max-width: 56ch; margin: 0 auto 34px; }
.cta-banner .hero-cta { justify-content: center; margin-top: 0; }

/* ---------- Pagine interne ---------- */
.page-hero {
  position: relative;
  background: var(--ink);
  padding: calc(var(--nav-h) + clamp(56px, 9vw, 110px)) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% -10%, rgba(95, 168, 199, 0.22), transparent 55%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 18ch; }
.page-hero .lead { margin-top: 18px; max-width: 60ch; color: var(--muted-inv); font-size: 1.15rem; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted-inv);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--brand-soft); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact-cards { display: grid; gap: 18px; }
.contact-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.contact-card .feature-icon { width: 48px; height: 48px; margin: 0; border-radius: 12px; flex: none; }
.contact-card strong { font-family: var(--font-display); color: var(--ink); display: block; margin-bottom: 3px; }
.contact-card a, .contact-card span { color: var(--muted); font-size: 1rem; word-break: break-word; }
.contact-card a:hover { color: var(--brand-strong); }

.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(95, 168, 199, 0.18);
}
.form-privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); margin: 6px 0 20px; }
.form-privacy input { margin-top: 5px; accent-color: var(--brand-strong); }
.form-status { margin-top: 14px; font-size: 0.95rem; color: var(--brand-strong); min-height: 1.4em; }

/* ---------- Articoli blog ---------- */
.article-body { max-width: 760px; margin: 0 auto; }
.article-body > * + * { margin-top: 1.35em; }
.article-body h2 { font-size: 1.75rem; margin-top: 1.8em; }
.article-body h3 { margin-top: 1.5em; }
.article-body ul { list-style: disc; padding-left: 1.3em; color: var(--text); }
.article-body li + li { margin-top: 0.5em; }
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
  color: var(--muted-inv);
  margin-top: 20px;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.article-cta {
  margin-top: 2.4em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.article-cta strong { font-family: var(--font-display); color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--brand-strong); transition: transform 0.3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-inv); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: clamp(56px, 7vw, 84px) 24px 44px;
}
.footer-col h4 {
  color: var(--text-inv);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: var(--muted-inv); font-size: 0.98rem; }
.footer-col a:hover { color: var(--brand-soft); }
.footer-logo { width: 190px; height: auto; margin-bottom: 18px; }
.footer-col > p { font-size: 0.98rem; max-width: 34ch; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex: none; margin-top: 5px; color: var(--brand); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  padding-bottom: 30px;
  border-top: 1px solid var(--line-inv);
  font-size: 0.9rem;
}
.footer-bottom a { color: var(--muted-inv); }
.footer-bottom a:hover { color: var(--brand-soft); }
.footer-credit a { color: var(--brand-soft); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

/* ---------- 404 ---------- */
.error-hero { min-height: 100svh; display: flex; align-items: center; background: var(--ink); text-align: center; }
.error-hero .code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 12rem);
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(126, 190, 216, 0.6);
}
.error-hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 14px 0 12px; }
.error-hero p { color: var(--muted-inv); max-width: 46ch; margin: 0 auto 30px; }

/* ---------- Policy ---------- */
.legal-body { max-width: 800px; margin: 0 auto; }
.legal-body h2 { font-size: 1.5rem; margin: 2em 0 0.6em; }
.legal-body p, .legal-body li { color: var(--text); }
.legal-body ul { list-style: disc; padding-left: 1.3em; margin: 0.8em 0; }
.legal-body p + p { margin-top: 0.9em; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards-3, .steps, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers { grid-template-columns: repeat(2, 1fr); gap: 40px 26px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split-media::before { display: none; }
  .split.is-reversed .split-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 19, 0.98);
    backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s var(--ease), opacity 0.35s;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.4rem; }
  .hero { min-height: 92svh; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards-3, .steps, .product-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
  .numbers { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta .btn { width: auto; flex: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .hero-bg { animation: none; transform: none; }
  .hero-scroll::after { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
