/* ============================================
   TalentFlow — Dark Premium Landing Page
   ============================================ */

/* ─── Inter (self-hosted, variable font) ─────────────────────────────────
   I file servono dal nostro dominio: niente Google Fonts CDN, niente
   trasferimento dati USA (rilevante GDPR — caso LG München 2022), nessun
   DNS lookup esterno, LCP migliore. Inter v20 è una variable font: lo
   stesso file copre tutti i pesi 100-900. Sottoinsieme limitato a latin
   + latin-ext (sufficiente per italiano e principali lingue europee). */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  --color-bg: #0b0b0f;
  --color-bg-alt: #121218;
  --color-surface: #17171d;
  --color-surface-soft: #1c1c24;
  --color-text: #f5f5f7;
  --color-text-secondary: #b8bcc8;
  --color-text-muted: #6e7280;
  --color-accent: #01b6b1;
  --color-accent-hover: #29cec9;
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.16);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --section-padding: clamp(28px, 5vh, 56px) 0;
  --transition-base: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* overflow-x: hidden anche su <html> oltre che <body>: su iOS Safari
   in alcune configurazioni (sticky positioning, transforms) il solo
   body non basta e l'orizzontale "scappa" — serve la doppia barriera. */
@media (max-width: 1024px) {
  html { overflow-x: hidden; }
}

.shield-text, .shield-visual { min-width: 0; }
.shield-description, .shield-title { overflow-wrap: anywhere; }

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--color-text-secondary);
  margin-bottom: 72px;
  line-height: 1.6;
}

.section-hold {
  position: relative;
  display: block;
  width: 100%;
}

@media (min-width: 1025px) {
  .section-hold {
    position: sticky;
    top: 68px;
  }

  .transition-section::after,
  .soluzione::after,
  .come-funziona::after,
  .features::after,
  .content-shield::after,
  .costi::after,
  .screenshot-section::after,
  .personalizzazione::after {
    content: '';
    display: block;
    height: 100px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 15px 34px;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(1, 182, 177, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

.btn-large {
  font-size: 1.15rem;
  padding: 18px 52px;
  border-radius: 14px;
}

.placeholder {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(1, 182, 177, 0.04), transparent 60%);
  pointer-events: none;
}

.placeholder-hero {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-width: 560px;
}

.placeholder-large {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.placeholder-screenshot {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.slide-up {
  transform: translateY(60px);
}

.reveal.slide-right {
  transform: translateX(60px);
}

.reveal.scale-in {
  transform: scale(0.92) translateY(20px);
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.reveal.delay-0 { transition-delay: 0s; }
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }
.reveal.delay-4 { transition-delay: 0.48s; }
.reveal.delay-5 { transition-delay: 0.6s; }

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 11, 15, 0.8);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.navbar.scrolled {
  border-bottom-color: var(--color-border);
  background: rgba(11, 11, 15, 0.92);
}

.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(32px, 5vw, 80px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 48px;
  width: auto;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-cta {
  background: var(--color-accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 10px;
  transition: all var(--transition-base);
}

.nav-cta:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(1, 182, 177, 0.25);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  padding: 16px 24px 28px;
  background: rgba(11, 11, 15, 0.96);
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nav-mobile a {
  color: var(--color-text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.nav-cta-mobile {
  display: inline-block;
  background: var(--color-accent);
  color: #fff !important;
  padding: 12px 24px;
  border-radius: 10px;
  text-align: center;
  margin-top: 8px;
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 0;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 120%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(1, 182, 177, 0.06), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-bottom: 28px;
}

.hero-line-small {
  display: block;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--color-accent);
  margin-bottom: 0.28em;
}

.hero-line-big {
  display: block;
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
}

.hero-subtitle {
  font-size: clamp(1.08rem, 1.6vw, 1.35rem);
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 44px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-trust {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  white-space: nowrap;
  transition: border-color var(--transition-base), color var(--transition-base);
}

.hero-trust-item:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

.hero-trust-icon {
  flex-shrink: 0;
  color: var(--color-accent);
}

.video-player {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.video-thumbnail {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  /* Overlay trasparente sopra al video preview muto. Un sottile gradient
     scuro dal basso migliora la leggibilità del bottone play sul video. */
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.25) 100%);
  transition: background 0.3s ease, opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-thumbnail:hover {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.video-thumbnail.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Preview video del hero: occupa tutto il container e fa da sfondo al
   bottone play. Object-fit cover per riempire l'aspect-ratio 16:10. */
.video-hero-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-play-btn {
  position: absolute;
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.video-play-btn:hover {
  background: var(--color-accent);
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(1, 182, 177, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- VIDEO LIGHTBOX ---------- */
.video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.video-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.video-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.video-lightbox-content {
  position: relative;
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-lightbox.active .video-lightbox-content {
  transform: scale(1) translateY(0);
}

.video-lightbox-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.video-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.transition-section {
  background: var(--color-bg);
  position: sticky;
  z-index: 2;
  /* top set by JS */
}

.transition-section > .section-hold {
  padding: clamp(28px, 5vh, 56px) 0 220px;
  text-align: center;
  background: var(--color-bg);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -1px 0 var(--color-border), 0 -24px 60px rgba(0, 0, 0, 0.18);
}

.transition-logo {
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto 28px;
}

.transition-text {
  font-size: clamp(1.7rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--color-text-secondary);
  max-width: 820px;
  margin: 0 auto;
}

.transition-text strong {
  color: var(--color-accent);
}

.problema {
  padding: 0;
  background: var(--color-bg-alt);
  position: relative;
  z-index: 3;
}

.problema-scroll-scene {
  position: relative;
  min-height: 300svh;
}

.problema-sticky {
  position: sticky;
  top: 68px;
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: stretch;
  width: 100%;
}

.problema-shell {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-height: calc(100svh - 68px);
  padding: clamp(28px, 5vh, 56px) clamp(24px, 5vw, 80px) 0;
}

.problema-inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  gap: 40px;
  width: 100%;
  min-height: 100%;
  padding-bottom: 20px;
}

.problema-header {
  display: flex;
  justify-content: center;
}

.problema-text {
  max-width: 720px;
  text-align: center;
}

.problema-text h2 {
  font-size: clamp(2.1rem, 3.4vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.problema-text p {
  color: var(--color-text-secondary);
  font-size: 1.08rem;
  line-height: 1.8;
}

.problema-footer {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  justify-content: flex-start;
  width: 100vw;
  margin-left: 0;
}

.problema-progress {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: visible;
}

.problema-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), rgba(1, 182, 177, 0.45));
  border-radius: inherit;
}

.problema-track-viewport {
  overflow: hidden;
  width: 100%;
  align-self: center;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.problema-bullets {
  display: flex;
  gap: 28px;
  width: max-content;
  padding-left: 10vw;
  padding-right: 24vw;
  will-change: transform;
}

.problema-bullet {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: stretch;
  width: min(52vw, 620px);
  min-width: 460px;
  min-height: 420px;
  padding: 38px 36px 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, rgba(1, 182, 177, 0.06), transparent 28%),
    rgba(20, 20, 26, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 28px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.problema-bullet::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(1, 182, 177, 0.08), transparent 40%);
  pointer-events: none;
}

.problema-bullet::after {
  content: '';
  position: absolute;
  top: 0;
  left: 36px;
  right: 36px;
  height: 1px;
  background: linear-gradient(90deg, rgba(1, 182, 177, 0), rgba(1, 182, 177, 0.55), rgba(1, 182, 177, 0));
  opacity: 0.8;
}

.problema-bullet:hover {
  border-color: rgba(1, 182, 177, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 38%),
    linear-gradient(135deg, rgba(1, 182, 177, 0.08), transparent 28%),
    rgba(24, 24, 31, 0.98);
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(1, 182, 177, 0.06) inset;
}

.problema.is-transitioning .problema-bullet:hover {
  transform: none;
}

.bullet-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(1, 182, 177, 0.18), rgba(1, 182, 177, 0.08));
  border: 1px solid rgba(1, 182, 177, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(1, 182, 177, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.problema-bullet-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.problema-bullet-content {
  position: relative;
  z-index: 1;
  max-width: 30ch;
}

.problema-bullet h3 {
  font-size: 1.48rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 10px;
}

.problema-bullet-content p {
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.problema-bullet-media {
  position: relative;
  z-index: 1;
  margin-top: auto;
  min-height: 230px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 44%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(255, 255, 255, 0.02);
  background-size: auto, 28px 28px, 28px 28px, auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.problema-bullet-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(1, 182, 177, 0.13), transparent 35%),
    linear-gradient(135deg, rgba(1, 182, 177, 0.08), transparent 45%);
  pointer-events: none;
}

.problema-bullet-media::after {
  content: '';
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-top: 1px solid rgba(1, 182, 177, 0.22);
  border-right: 1px solid rgba(1, 182, 177, 0.22);
  border-top-right-radius: 12px;
  pointer-events: none;
}

.problema-bullet-media span {
  position: relative;
  z-index: 1;
  color: rgba(245, 245, 247, 0.5);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(11, 11, 15, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.soluzione {
  background: var(--color-bg);
  position: relative;
  z-index: 3;
}

.soluzione > .section-hold {
  padding: clamp(28px, 5vh, 56px) 0 160px;
  background: var(--color-bg);
}

@media (min-width: 1025px) {
  body.problema-transition-active .soluzione {
    z-index: 6;
  }

  body.problema-transition-active .soluzione > .section-hold {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    width: 100%;
    min-height: calc(100svh - 68px);
    opacity: var(--soluzione-preview-opacity, 0);
    transform: translate3d(0, var(--soluzione-preview-y, 72px), 0) scale(var(--soluzione-preview-scale, 0.985));
    pointer-events: none;
    will-change: opacity, transform;
    overflow: hidden;
    box-shadow: 0 -24px 80px rgba(0, 0, 0, 0.34);
  }
}

.soluzione-sticky-wrapper {
  text-align: center;
}

.soluzione-text {
  max-width: 860px;
  margin: 0 auto 72px;
}

.soluzione-text h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin-bottom: 22px;
}

.soluzione-text p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--color-text-secondary);
  font-size: 1.12rem;
  line-height: 1.75;
}

.soluzione-image {
  max-width: 960px;
  margin: 0 auto;
}

.soluzione-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
  object-fit: contain;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  pointer-events: none;
}

/* ========================================
   COME FUNZIONA — Serpentine flow
   ======================================== */

.come-funziona {
  background: var(--color-bg-alt);
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.flow-intro {
  padding: clamp(56px, 8vh, 100px) 0 clamp(32px, 4vh, 56px);
  text-align: center;
  background: var(--color-bg-alt);
}

.flow-stage {
  position: relative;
  padding-bottom: clamp(80px, 10vh, 140px);
}

/* SVG canvas — full overlay */

.flow-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

/* Ghost line (background track) */
.flow-line-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.03);
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Animated draw line */
.flow-line-draw {
  fill: none;
  stroke: url(#flow-grad);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: url(#flow-glow-soft);
}

/* Trailing glow dot */
.flow-glow-dot {
  fill: url(#dot-glow-grad);
  opacity: 0;
}

/* Phase grid — 2 columns, no center node */

.flow-phases {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(120px, 16vh, 200px);
}

.flow-phase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  /* GSAP will handle opacity/transform — start visible for no-JS */
}

/* Phase content — alternating */

.flow-phase--right .flow-phase-content { text-align: left; }
.flow-phase--left  .flow-phase-content { text-align: left; }

/* Badge */

.flow-phase-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.flow-phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: rgba(1, 182, 177, 0.08);
  border: 1px solid rgba(1, 182, 177, 0.15);
}

.flow-phase-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  padding: 5px 12px;
  border-radius: 100px;
}

.flow-phase-content h3 {
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.flow-phase-content p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 440px;
}

.flow-phase--left .flow-phase-content p {
  margin-left: auto;
}

/* Visual placeholder */

.placeholder-flow {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
}

.flow-phase-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

/* Mobile — single column, hide SVG */

@media (max-width: 768px) {
  .flow-svg { display: none; }

  .flow-phases {
    gap: clamp(56px, 8vh, 100px);
  }

  .flow-phase {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* On mobile, always content first, visual second */
  .flow-phase--left .flow-phase-visual  { order: 2; }
  .flow-phase--left .flow-phase-content { order: 1; }

  .flow-phase--left .flow-phase-content p {
    margin-left: 0;
  }
}

.features {
  background: var(--color-bg);
  position: relative;
  z-index: 3;
}

.features > .section-hold {
  padding: var(--section-padding);
  background: var(--color-bg);
  text-align: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 40px 32px;
  text-align: left;
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(1, 182, 177, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(1, 182, 177, 0.08) inset;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(1, 182, 177, 0.08);
  border: 1px solid rgba(1, 182, 177, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--color-accent);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--color-text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ========== CONTENT SHIELD ========== */

.content-shield {
  background: var(--color-bg-alt);
  position: relative;
  z-index: 3;
}

.content-shield > .section-hold {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.shield-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.shield-badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.shield-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(1, 182, 177, 0.08);
  border: 1px solid rgba(1, 182, 177, 0.15);
}

.shield-title {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.shield-description {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.shield-description:last-of-type {
  margin-bottom: 28px;
}

.shield-bottom-line {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(1, 182, 177, 0.06);
  border: 1px solid rgba(1, 182, 177, 0.12);
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
}

.shield-result-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(1, 182, 177, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

/* Shield visual card */

.shield-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.shield-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
}

.shield-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.shield-card-dot--red { background: #ff5f57; }
.shield-card-dot--yellow { background: #febc2e; }
.shield-card-dot--green { background: #28c840; }

.shield-card-title {
  margin-left: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.shield-card-body {
  padding: 8px 0;
}

.shield-scan-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  transition: background 0.2s ease;
}

.shield-scan-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.shield-scan-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-scan-icon--ok {
  background: rgba(40, 200, 64, 0.1);
  color: #28c840;
}

.shield-scan-icon--blocked {
  background: rgba(255, 95, 87, 0.1);
  color: #ff5f57;
}

.shield-scan-file {
  flex: 1;
  /* min-width: 0 fa shrinkare il flex item sotto la sua min-content
     width — necessario perché i filenames monospace sono token unici
     non spezzabili (es. "curriculum_marco_r.pdf"), e senza questo
     spingerebbero la riga oltre il viewport mobile (~414px iPhone)
     e l'intera sezione andrebbe in overflow X. */
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  letter-spacing: -0.01em;
}

.shield-scan-label {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
}

.shield-scan-label--ok {
  color: #28c840;
  background: rgba(40, 200, 64, 0.08);
}

.shield-scan-label--blocked {
  color: #ff5f57;
  background: rgba(255, 95, 87, 0.08);
}

.shield-card-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--color-border);
}

.shield-card-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  letter-spacing: 0.01em;
}

/* ========== COSTI ========== */

.costi {
  background: var(--color-bg-alt);
  position: relative;
  z-index: 1;
}

.costi > .section-hold {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.costi-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.costi-text h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.costi-text p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  line-height: 1.75;
}

.costi-meter {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 44px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.meter-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.meter-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meter-stat-limit {
  text-align: right;
}

.meter-stat-label {
  color: var(--color-text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meter-stat-value {
  color: var(--color-text);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}

.meter-bar {
  position: relative;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 14px;
}

.meter-fill {
  width: 62%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  border-radius: 5px;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.meter-labels {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.screenshot-section {
  background: var(--color-bg);
  position: relative;
  z-index: 2;
}

.screenshot-section > .section-hold {
  padding: var(--section-padding);
  background: var(--color-bg);
  text-align: center;
}

/* ---- Showcase Grid (Bento 7-5 / 5-7) ---- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  text-align: left;
}

.showcase-card:nth-child(1) { grid-column: span 7; }
.showcase-card:nth-child(2) { grid-column: span 5; }
.showcase-card:nth-child(3) { grid-column: span 5; }
.showcase-card:nth-child(4) { grid-column: span 7; }

.showcase-card {
  cursor: pointer;
  border-radius: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
}

.showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(1, 182, 177, 0.18);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(1, 182, 177, 0.06);
}

/* ---- Window Chrome (macOS dots) ---- */
.showcase-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.showcase-chrome span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.showcase-chrome span:nth-child(1) { background: #ff5f57; }
.showcase-chrome span:nth-child(2) { background: #febc2e; }
.showcase-chrome span:nth-child(3) { background: #28c840; }

/* ---- Screenshot Area ---- */
.showcase-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  overflow: hidden;
}

.showcase-card:nth-child(1) .showcase-screen { min-height: 320px; }

.showcase-card:nth-child(1) .showcase-screen {
  background:
    radial-gradient(ellipse at 25% 20%, rgba(1, 182, 177, 0.09), transparent 55%),
    #111116;
}
.showcase-card:nth-child(2) .showcase-screen {
  background:
    radial-gradient(ellipse at 70% 35%, rgba(88, 110, 255, 0.08), transparent 55%),
    #111116;
}
.showcase-card:nth-child(3) .showcase-screen {
  background:
    radial-gradient(ellipse at 35% 65%, rgba(180, 90, 255, 0.07), transparent 55%),
    #111116;
}
.showcase-card:nth-child(4) .showcase-screen {
  background:
    radial-gradient(ellipse at 65% 25%, rgba(1, 182, 177, 0.07), transparent 55%),
    #111116;
}

/* Subtle dot-grid overlay */
.showcase-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.showcase-label {
  position: relative;
  z-index: 1;
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- Meta (titolo + descrizione sotto la card) ---- */
.showcase-meta {
  padding: 20px 22px 24px;
}

.showcase-meta h3 {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 6px;
}

.showcase-meta p {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 38ch;
}

/* ---- Lightbox ---- */
.showcase-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.showcase-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.showcase-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.showcase-lightbox-body {
  position: relative;
  z-index: 1;
  width: 90vw;
  max-width: 960px;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-lightbox.open .showcase-lightbox-body {
  transform: scale(1) translateY(0);
}

.showcase-lightbox-window {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--color-surface);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
}

.showcase-lightbox-screen {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(1, 182, 177, 0.07), transparent 55%),
    #111116;
}

.showcase-lightbox-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.showcase-lightbox-caption {
  text-align: center;
  padding: 24px 24px 8px;
}

.showcase-lightbox-caption h3 {
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.showcase-lightbox-caption p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.showcase-lightbox-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 0 6px;
}

.showcase-lightbox-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.15);
  transition: background 0.25s, transform 0.25s;
}

.showcase-lightbox-dot.active {
  background: var(--color-accent);
  transform: scale(1.25);
}

/* Close */
.showcase-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.showcase-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Arrows */
.showcase-lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--color-text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.showcase-lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.14);
}

.showcase-lightbox-prev { left: 18px; }
.showcase-lightbox-next { right: 18px; }

/* ============================================
   BOOKING MODAL
   ============================================ */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.booking-overlay.open {
  opacity: 1;
  visibility: visible;
}

.booking-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.booking-modal {
  position: relative;
  z-index: 1;
  width: 95vw;
  max-width: 960px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 44px 40px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  transform: scale(0.95) translateY(16px);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.booking-overlay.open .booking-modal {
  transform: scale(1) translateY(0);
}

.booking-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.booking-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.booking-logo {
  display: block;
  height: 32px;
  width: auto;
  margin: 0 auto 8px;
  opacity: 0.85;
}

.booking-title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.booking-subtitle {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
  line-height: 1.5;
}

/* Steps */
.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
}

/* Loading */
.booking-loading {
  text-align: center;
  color: var(--color-text-muted);
  padding: 40px 0;
  font-size: 0.9rem;
}

/* ─── Calendar grid ─── */
.booking-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.booking-day {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 14px 10px 16px;
  text-align: center;
}

.booking-day-header {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.booking-day-name {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.booking-day-number {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.booking-day-month {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.booking-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-slot {
  display: block;
  width: 100%;
  padding: 9px 6px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.booking-slot:hover {
  background: rgba(1, 182, 177, 0.1);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.booking-slot.selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.booking-slot.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.booking-slot-label {
  display: block;
  font-size: 0.6rem;
  text-decoration: none;
  opacity: 0.8;
  letter-spacing: 0.01em;
}

.booking-slot.disabled:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.04);
  color: var(--color-text-muted);
}

.booking-no-slots {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  padding: 12px 0;
}

/* ─── Form ─── */
.booking-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.booking-field {
  margin-bottom: 0;
}

.booking-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.booking-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

.booking-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font-family: var(--font-family);
  font-size: 0.92rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  outline: none;
}

.booking-field input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.booking-field input:focus {
  border-color: var(--color-accent);
  background: rgba(1, 182, 177, 0.04);
  box-shadow: 0 0 0 3px rgba(1, 182, 177, 0.1);
}

.booking-form-back {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}

.booking-form-back:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}

.booking-form-actions {
  margin-top: 24px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.booking-privacy {
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

.booking-privacy a {
  color: var(--color-text-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.15);
  text-underline-offset: 2px;
}

.booking-privacy a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

/* Hide reCAPTCHA badge (allowed when text attribution is shown) */
.grecaptcha-badge {
  visibility: hidden !important;
}

/* ─── Done ─── */
.booking-step-done {
  text-align: center;
  padding: 40px 20px 20px;
}

.booking-done-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: rgba(1, 182, 177, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.booking-step-done .booking-title {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.booking-done-text {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
}

.booking-done-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
  margin-bottom: 28px;
}

.booking-done-info svg {
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.booking-done-info span {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.booking-done-close {
  margin-top: 0;
}

/* ─── Booking error ─── */
.booking-error {
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.2);
  border-radius: 10px;
  color: #ff6b6b;
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-align: center;
}

.booking-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: booking-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

@keyframes booking-spin {
  to { transform: rotate(360deg); }
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .booking-modal {
    width: 97vw;
    padding: 32px 22px;
    border-radius: 18px;
  }

  .booking-days {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 8px;
    padding-bottom: 8px;
  }

  .booking-day {
    flex: 0 0 120px;
    min-width: 120px;
    scroll-snap-align: start;
    padding: 12px 6px 14px;
  }

  .booking-fields-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .booking-form-back {
    top: 12px;
    left: 12px;
  }
}

/* ============================================
   PERSONALIZZAZIONE
   ============================================ */
.personalizzazione {
  background: var(--color-bg-alt);
  position: sticky;
  z-index: 3;
  /* top set by JS */
}

.personalizzazione > .section-hold {
  padding: var(--section-padding);
  background: var(--color-bg-alt);
}

.personalizzazione-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.personalizzazione-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(1, 182, 177, 0.08);
  border: 1px solid rgba(1, 182, 177, 0.15);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.personalizzazione-text {
  max-width: 720px;
  margin-left: auto;
  text-align: right;
}

.personalizzazione-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.personalizzazione-desc {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.personalizzazione-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.personalizzazione-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 36px 32px;
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease,
    box-shadow 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.personalizzazione-card:hover {
  transform: translateY(-4px);
  border-color: rgba(1, 182, 177, 0.18);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(1, 182, 177, 0.06);
}

.personalizzazione-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(1, 182, 177, 0.08);
  color: var(--color-accent);
  margin-bottom: 20px;
}

.personalizzazione-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.personalizzazione-card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .personalizzazione-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   CTA FINALE
   ============================================ */
.cta-finale {
  background: var(--color-bg-alt);
  position: relative;
  z-index: 4;
}

.cta-finale > .section-hold {
  padding: clamp(120px, 18vh, 220px) 0;
  text-align: center;
  background: var(--color-bg-alt);
  overflow: hidden;
}

.cta-finale > .section-hold::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 70%;
  background: radial-gradient(ellipse at center bottom, rgba(1, 182, 177, 0.08), transparent 60%);
}

.cta-finale h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 44px;
}

.cta-finale .btn-primary {
  position: relative;
  z-index: 1;
}

.footer {
  padding: 72px 0 36px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  position: relative;
  z-index: 4;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 52px;
}

.footer-logo-img {
  height: 42px;
  width: auto;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-contact a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--color-text);
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
}

.footer-bottom p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ─── Footer brand: logo + info legali strutturate sotto ─── */
.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-legal {
  margin-top: 28px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.footer-legal-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin: 0 0 10px;
}

.footer-legal-name a {
  color: inherit;
  transition: color var(--transition-base);
}

.footer-legal-name a:hover {
  color: var(--color-text);
}

.footer-legal-address {
  margin: 0 0 18px;
  color: var(--color-text-muted);
}

.footer-legal-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-legal-meta li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.footer-legal-key {
  flex-shrink: 0;
  width: 72px;
  font-weight: 600;
  color: var(--color-text-secondary);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-legal-meta a {
  color: var(--color-text-muted);
  word-break: break-all;
  transition: color var(--transition-base);
}

.footer-legal-meta a:hover {
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  :root {
    --section-padding: clamp(28px, 5vh, 56px) 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .video-player {
    max-width: 100%;
    margin: 0 auto;
  }

  .problema {
    padding: var(--section-padding);
  }

  .problema-scroll-scene {
    min-height: auto;
  }

  .problema-sticky {
    position: static;
    min-height: auto;
    display: block;
  }

  .problema-shell {
    position: static;
    min-height: auto;
    padding: 0 24px;
  }

  .problema-inner {
    gap: 48px;
    min-height: auto;
  }

  .problema-text {
    max-width: none;
  }

  .problema-header,
  .problema-footer {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
    transform: none;
  }

  .problema-footer {
    position: static;
  }

  .problema-progress {
    width: 100%;
    max-width: 320px;
  }

  .problema-track-viewport {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .problema-bullets {
    flex-direction: column;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    transform: none !important;
    gap: 24px;
  }

  .problema-bullet {
    width: 100%;
    min-width: 0;
    min-height: auto;
    padding: 28px 26px;
  }

  .problema-bullet-content {
    max-width: none;
  }

  .problema-bullet-media {
    min-height: 180px;
  }

  .costi-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .shield-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .showcase-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 1550px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-mobile.open {
    display: block;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: clamp(28px, 5vh, 56px) 0;
  }

  .hero {
    min-height: auto;
    padding-top: 100px;
  }

  /* CRITICAL: stack su mobile.
     Il default .hero-inner usa grid 1fr/1fr che su <768px causa
     (a) titolo che spezza ogni parola in colonna stretta,
     (b) video schiacciato a ~150px,
     (c) overflow orizzontale perché min-content del titolo > colonna.
     Stack verticale risolve tutti e tre i problemi in un colpo. */
  .hero-inner {
    padding: 32px 20px 56px;
    grid-template-columns: 1fr;
    gap: 32px;
  }
  /* min-width: 0 sui grid item evita che min-content forzi overflow
     se in futuro torniamo a 2 colonne in qualche breakpoint intermedio. */
  .hero-text, .hero-image { min-width: 0; }

  /* I font del titolo: i <span> interni hanno il loro clamp() che
     vince sull'override di .hero h1 — devo targettarli direttamente. */
  .hero-line-small { font-size: 1.05rem; margin-bottom: 0.4em; }
  .hero-line-big { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  .hero-subtitle { font-size: 1rem; margin-bottom: 28px; }
  .hero h1 { margin-bottom: 20px; }
  .hero-trust { margin-top: 24px; }

  /* Su mobile mettiamo il video tra le CTA e i badge di trust.
     display: contents su .hero-text fa sì che i suoi figli (h1, subtitle,
     CTAs, trust) diventino direttamente grid item di .hero-inner: a quel
     punto basta dare a .hero-image un order < di .hero-trust per inserirla
     prima dei badge senza toccare il DOM. */
  .hero-text { display: contents; }
  .hero-image { order: 1; }
  .hero-trust { order: 2; }

  .hero-subtitle br {
    display: none;
  }

  .transition-section {
    padding: 80px 0 120px;
  }

  .transition-logo {
    width: min(100%, 280px);
    margin-bottom: 22px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .showcase-card:nth-child(1),
  .showcase-card:nth-child(2),
  .showcase-card:nth-child(3),
  .showcase-card:nth-child(4) {
    grid-column: span 1;
  }

  .showcase-card:nth-child(1) .showcase-screen {
    min-height: 240px;
  }

  .showcase-screen {
    min-height: 200px;
  }

  .showcase-lightbox-body {
    width: 95vw;
  }

  .showcase-lightbox-screen {
    min-height: 260px;
  }

  .showcase-lightbox-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .showcase-lightbox-prev { left: 10px; }
  .showcase-lightbox-next { right: 10px; }
}

@media (max-width: 480px) {
  /* La vecchia regola .hero h1 { font-size: 2rem } non aveva effetto
     perché .hero-line-big (figlio span) ha il proprio clamp() e
     vince per cascata. Ora targetto direttamente i figli. */
  .hero-line-small { font-size: 0.95rem; }
  .hero-line-big { font-size: clamp(1.7rem, 9vw, 2.2rem); }
  .hero-subtitle { font-size: 0.95rem; margin-bottom: 24px; }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .transition-section {
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
  }

  .transition-logo {
    width: min(100%, 220px);
    margin-bottom: 18px;
  }

  .cta-finale {
    padding: 120px 0;
  }

  .problema-shell {
    padding: 0 20px;
  }

  .problema-bullet {
    padding: 16px 18px;
  }

  .problema-bullet-header {
    gap: 16px;
  }

  .bullet-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .problema-bullet-media {
    min-height: 150px;
    border-radius: 16px;
  }

  .problema-bullet h3 {
    font-size: 1.18rem;
  }

  .problema-bullet p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .shield-badge-row {
    gap: 8px;
  }

  .shield-badge {
    font-size: 0.65rem;
    padding: 5px 10px;
  }

  .shield-scan-file {
    font-size: 0.76rem;
  }

  .shield-scan-label {
    font-size: 0.65rem;
    padding: 3px 7px;
  }

  .shield-scan-row {
    padding: 10px 14px;
    gap: 8px;
  }

  .shield-card-header {
    padding: 12px 14px;
  }

  .shield-card-footer {
    padding: 12px 14px;
  }

  .shield-bottom-line {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 14px 16px;
  }
}

/* ============================================
   Cancel Page (cancelled.php)
   ============================================ */

.cancel-page {
  padding: calc(68px + 80px) 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cancel-wrapper {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.cancel-icon {
  margin: 0 auto 32px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cancel-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-heading);
  margin: 0 0 16px;
}

.cancel-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.cancel-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0 0 40px;
  opacity: 0.8;
}

.cancel-text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cancel-cta {
  display: inline-flex;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .cancel-page {
    padding: calc(68px + 48px) 20px 60px;
  }
}

/* ============================================
   Legal Pages (terms.php / privacy.php)
   ============================================ */

.legal-page {
  padding: calc(68px + 64px) 0 80px;
  min-height: 100vh;
}

.legal-breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.legal-breadcrumb a {
  color: var(--color-accent);
  transition: color var(--transition-base);
}

.legal-breadcrumb a:hover {
  color: var(--color-accent-hover);
}

.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-update {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.legal-intro {
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.legal-body {
  max-width: 800px;
}

.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.legal-body p {
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-body a {
  color: var(--color-accent);
  transition: color var(--transition-base);
}

.legal-body a:hover {
  color: var(--color-accent-hover);
}

.legal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.legal-body ul li {
  position: relative;
  padding-left: 20px;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 6px;
}

.legal-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.legal-body strong {
  color: var(--color-text);
  font-weight: 600;
}

.legal-body code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.88em;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2px 7px;
  color: var(--color-accent);
}

.legal-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 16px 0 24px;
}

.legal-card p {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.92rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.legal-table th {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  .legal-page {
    padding: calc(68px + 32px) 0 48px;
  }

  .legal-body h2 {
    margin-top: 36px;
    font-size: 1.15rem;
  }

  .legal-table {
    font-size: 0.82rem;
  }

  .legal-table th,
  .legal-table td {
    padding: 10px 10px;
  }

  .legal-card {
    padding: 16px 18px;
  }
}

/* ============================================
   Cookie Banner
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 24px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner-text {
  flex: 1;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
  color: var(--color-accent-hover);
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--color-accent);
  color: #050507;
}

.cookie-btn-accept:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.cookie-btn-reject:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
}

@media (max-width: 600px) {
  .cookie-banner {
    padding: 16px 18px;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cookie-banner-actions {
    justify-content: stretch;
  }

  .cookie-btn {
    flex: 1;
    text-align: center;
  }
}

/* ========================================================================
   CV DEMO SECTION — Full-width premium layout
   ======================================================================== */

.cv-demo {
  position: relative;
  z-index: 3;
  padding: clamp(64px, 10vh, 120px) 0;
  background: var(--color-bg);
  overflow: hidden;
  --color-accent: #fe494e;
  --color-accent-hover: #ff6b6f;
  --color-accent-rgb: 254, 73, 78;
}

/* ─── Decorative background ─── */
.cv-demo-bg-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(100px);
}

.cv-demo-bg-glow--1 {
  width: 600px;
  height: 600px;
  top: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(254,73,78,0.1) 0%, transparent 70%);
}

.cv-demo-bg-glow--2 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(139,92,246,0.07) 0%, transparent 70%);
}

.cv-demo-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

/* Subtle top/bottom gradient lines */
.cv-demo::before,
.cv-demo::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(254,73,78,0.18) 30%, rgba(254,73,78,0.18) 70%, transparent);
  z-index: 1;
}

.cv-demo::before { top: 0; }
.cv-demo::after  { bottom: 0; }

/* ─── Two-column stage ─── */
.cv-demo-stage {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* ─── Left: value proposition ─── */
.cv-demo-value {
  display: flex;
  flex-direction: column;
}

.cv-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  background: rgba(254,73,78,0.08);
  border: 1px solid rgba(254,73,78,0.18);
  border-radius: 100px;
  margin-bottom: 24px;
}

.cv-demo-headline {
  font-size: clamp(2rem, 3.2vw, 3rem);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.cv-demo-desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
}

/* Feature list */
.cv-demo-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cv-demo-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.cv-demo-feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(254,73,78,0.07);
  border: 1px solid rgba(254,73,78,0.14);
  border-radius: 12px;
  color: var(--color-accent);
  flex-shrink: 0;
}

.cv-demo-feature div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cv-demo-feature strong {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
}

.cv-demo-feature span {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

/* ─── Right: form card ─── */
.cv-demo-form-wrap {
  position: relative;
}

/* Card glow behind */
.cv-demo-form-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(254,73,78,0.2), transparent 40%, transparent 60%, rgba(139,92,246,0.12));
  z-index: -1;
  opacity: 0.6;
}

.cv-demo-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.2),
    0 0 0 1px rgba(255,255,255,0.03) inset;
}

/* Shimmer line on top of card */
.cv-demo-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.4;
  transition: opacity 0.4s;
}

/* ─── Apple Intelligence–style animated border ─── */
/* Applied to .cv-demo-form-wrap, not the card */
.cv-demo-form-wrap--loading {
  padding: 4px;
  border-radius: 24px;
  position: relative;
  isolation: isolate;
}

/* The spinning glow — wide diffuse mist layer */
.cv-demo-form-wrap--loading::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 32px;
  background:
    conic-gradient(
      from var(--ai-angle, 0deg),
      rgba(254, 73, 78, 0.65),
      rgba(255, 138, 76, 0.48),
      rgba(255, 213, 107, 0.34),
      rgba(254, 73, 78, 0.6),
      rgba(180, 70, 200, 0.42),
      rgba(120, 80, 200, 0.34),
      rgba(254, 73, 78, 0.65)
    );
  animation: aiGlowSpin 4s linear infinite, aiGlowPulse 6s ease-in-out infinite;
  filter: blur(22px);
  opacity: 0.65;
  z-index: -1;
  pointer-events: none;
}

/* A softer inner ring for subtle definition */
.cv-demo-form-wrap--loading::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 25px;
  background:
    conic-gradient(
      from var(--ai-angle, 0deg),
      rgba(254, 73, 78, 0.78),
      rgba(255, 138, 76, 0.58),
      rgba(255, 213, 107, 0.36),
      rgba(254, 73, 78, 0.72),
      rgba(180, 70, 200, 0.52),
      rgba(120, 80, 200, 0.36),
      rgba(254, 73, 78, 0.78)
    );
  animation: aiGlowSpin 4s linear infinite;
  filter: blur(5px);
  opacity: 0.75;
  z-index: -1;
  pointer-events: none;
}

.cv-demo-form-wrap--loading .cv-demo-card {
  border-color: transparent;
  position: relative;
  z-index: 1;
}

.cv-demo-form-wrap--loading .cv-demo-card::before {
  opacity: 0;
}

@keyframes aiGlowSpin {
  to { --ai-angle: 360deg; }
}

@keyframes aiGlowPulse {
  0%, 100% { filter: blur(22px); opacity: 0.6; }
  33%      { filter: blur(28px); opacity: 0.7; }
  66%      { filter: blur(18px); opacity: 0.55; }
}

@property --ai-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* ─── Dropzone ─── */
.cv-demo-dropzone {
  border: 2px dashed var(--color-border);
  border-radius: 14px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  margin-bottom: 24px;
}

.cv-demo-dropzone:hover,
.cv-demo-dropzone.dragover {
  border-color: var(--color-accent);
  background: rgba(254, 73, 78, 0.04);
}

.cv-demo-dropzone-icon {
  color: var(--color-text-muted);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.cv-demo-dropzone:hover .cv-demo-dropzone-icon,
.cv-demo-dropzone.dragover .cv-demo-dropzone-icon {
  color: var(--color-accent);
}

.cv-demo-dropzone-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
}

.cv-demo-dropzone-link {
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
}

.cv-demo-dropzone-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.cv-demo-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ─── File preview ─── */
.cv-demo-file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.cv-demo-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  min-width: 0;
}

.cv-demo-file-info svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.cv-demo-file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cv-demo-file-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}

.cv-demo-file-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

/* ─── Form field ─── */
.cv-demo-field {
  margin-bottom: 24px;
}

.cv-demo-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.cv-demo-field input {
  width: 100%;
  padding: 13px 16px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-sizing: border-box;
}

.cv-demo-field input::placeholder {
  color: var(--color-text-muted);
}

.cv-demo-field input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(254, 73, 78, 0.12);
}

/* ─── Submit button ─── */
.cv-demo-submit {
  width: 100%;
  font-size: 1rem;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fe494e;
  border-color: #fe494e;
}

.cv-demo-submit:hover:not(:disabled) {
  background: #ff6b6f;
  border-color: #ff6b6f;
  box-shadow: 0 8px 32px rgba(254, 73, 78, 0.3);
}

.cv-demo .btn-primary:hover {
  box-shadow: 0 8px 32px rgba(254, 73, 78, 0.3);
}

.cv-demo-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cv-demo-submit-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cv-demo-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cvDemoSpin 0.7s linear infinite;
  display: inline-block;
}

@keyframes cvDemoSpin {
  to { transform: rotate(360deg); }
}

/* ─── Loading state ─── */
.cv-demo-loading {
  text-align: center;
  padding: 56px 32px 48px;
}

.cv-demo-loading-inner h3 {
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.cv-demo-loading-inner p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.cv-demo-loading-spinner {
  width: 56px;
  height: 56px;
  border: 3px solid rgba(254, 73, 78, 0.12);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: cvDemoSpin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  margin: 0 auto 28px;
  box-shadow: 0 0 24px rgba(254, 73, 78, 0.08);
}

.cv-demo-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  box-sizing: border-box;
}

.cv-demo-loading-step {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  transition: color 0.4s, background 0.4s;
  text-align: left;
}

.cv-demo-loading-step:last-child {
  border-bottom: none;
}

.cv-demo-loading-step.active {
  color: var(--color-accent);
  background: rgba(254, 73, 78, 0.04);
}

.cv-demo-loading-step.done {
  color: var(--color-text-secondary);
}

.cv-demo-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  flex-shrink: 0;
  transition: background 0.4s, box-shadow 0.4s, transform 0.4s;
}

.cv-demo-loading-step.active .cv-demo-loading-dot {
  background: var(--color-accent);
  box-shadow: 0 0 10px rgba(254, 73, 78, 0.6);
  animation: cvDemoPulse 1.6s ease-in-out infinite;
}

.cv-demo-loading-step.done .cv-demo-loading-dot {
  background: var(--color-accent);
  opacity: 0.5;
}

@keyframes cvDemoPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(254, 73, 78, 0.6); }
  50% { transform: scale(1.3); box-shadow: 0 0 16px rgba(254, 73, 78, 0.8); }
}

/* ─── Error state ─── */
.cv-demo-error {
  text-align: center;
  padding: 48px 24px;
}

.cv-demo-error-icon {
  color: #ef4444;
  margin-bottom: 16px;
}

.cv-demo-error-inner h3 {
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.cv-demo-error-inner p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.cv-demo-error-icon {
  animation: cvErrorPulse 2s ease-in-out infinite;
}

@keyframes cvErrorPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.cv-demo-error-hint {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  opacity: 0.7;
  margin-bottom: 20px;
}

.cv-demo-error-hint a {
  color: var(--color-accent);
  text-decoration: underline;
  cursor: pointer;
}

/* ========================================================================
   CV DEMO — RESULTS (full-width premium)
   ======================================================================== */

.cv-demo-results {
  width: 100%;
  background: transparent;
  padding: 0;
  animation: cvResultsFadeIn 0.6s ease-out both;
}

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

.cv-demo-results-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

/* ─── Profile hero bar ─── */
.cv-demo-profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 32px 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient shimmer on profile card */
.cv-demo-profile-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.5;
}

.cv-demo-profile-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  flex: 1;
}

.cv-demo-profile-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--color-surface-soft);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  box-shadow: 0 0 0 4px rgba(254,73,78,0.08);
}

.cv-demo-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-demo-profile-photo .cv-demo-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-surface-soft), var(--color-surface));
}

.cv-demo-profile-info {
  min-width: 0;
}

.cv-demo-profile-info h3 {
  color: var(--color-text);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.015em;
}

.cv-demo-candidate-title {
  color: var(--color-accent);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.cv-demo-candidate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.cv-demo-candidate-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ─── Score ring (large) ─── */
.cv-demo-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cv-demo-score-ring {
  width: 104px;
  height: 104px;
  position: relative;
  filter: drop-shadow(0 0 18px rgba(254,73,78,0.15));
}

.cv-demo-score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.cv-demo-score-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 5;
}

.cv-demo-score-fill {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s;
}

.cv-demo-score-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.cv-demo-score-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* ─── Analysis box ─── */
.cv-demo-analysis-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 28px;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ─── Two-column grid ─── */
.cv-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cv-demo-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ─── Panels (glassmorphism cards) ─── */
.cv-demo-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 28px;
}

.cv-demo-panel h5 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.cv-demo-panel > p {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── Tags (skills, languages) ─── */
.cv-demo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-demo-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(254, 73, 78, 0.07);
  color: var(--color-accent);
  border: 1px solid rgba(254, 73, 78, 0.16);
  border-radius: 9px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}

.cv-demo-tag:hover {
  background: rgba(254, 73, 78, 0.13);
  border-color: rgba(254, 73, 78, 0.3);
}

.cv-demo-tag--tool {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text-secondary);
  border-color: var(--color-border);
}

.cv-demo-tag--tool:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cv-demo-tag--lang {
  background: rgba(254, 73, 78, 0.07);
  color: var(--color-accent);
  border-color: rgba(254, 73, 78, 0.16);
}

.cv-demo-tag--lang:hover {
  background: rgba(254, 73, 78, 0.14);
}

/* ─── Timeline (experience) ─── */
.cv-demo-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cv-demo-exp-item {
  padding: 18px 22px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  transition: border-color 0.25s;
  position: relative;
}

.cv-demo-exp-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 2px;
  background: var(--color-accent);
  opacity: 0.35;
}

.cv-demo-exp-item:hover {
  border-color: rgba(254,73,78,0.2);
}

.cv-demo-exp-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.cv-demo-exp-role {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.cv-demo-exp-years {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  background: rgba(255,255,255,0.04);
  padding: 2px 10px;
  border-radius: 6px;
}

.cv-demo-exp-company {
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.cv-demo-exp-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ─── Education ─── */
.cv-demo-education-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cv-demo-edu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  flex-wrap: wrap;
}

.cv-demo-edu-degree {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9rem;
}

.cv-demo-edu-institution {
  font-size: 0.83rem;
  color: var(--color-text-secondary);
}

.cv-demo-edu-grade {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* ─── Map ─── */
.cv-demo-map-panel {
  margin-top: 24px;
  margin-bottom: 28px;
}

.cv-demo-map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 12px;
}

#cv-demo-map {
  width: 100%;
  height: 320px;
  background: var(--color-bg);
}

/* Leaflet dark tile adjustments */
.cv-demo-map-wrap .leaflet-control-attribution {
  background: rgba(11, 11, 15, 0.75) !important;
  color: var(--color-text-muted) !important;
  font-size: 0.65rem;
}

.cv-demo-map-wrap .leaflet-control-attribution a {
  color: var(--color-accent) !important;
}

.cv-demo-map-address {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 2px;
}

.cv-demo-map-coords {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
  letter-spacing: 0.02em;
}

/* ─── CTA in results ─── */
.cv-demo-results-cta {
  margin-top: 36px;
  padding: 36px 40px;
  background:
    linear-gradient(135deg, rgba(254,73,78,0.08), rgba(254,73,78,0.02) 60%, rgba(139,92,246,0.04));
  border: 1px solid rgba(254, 73, 78, 0.15);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cv-demo-results-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0.35;
}

.cv-demo-results-cta p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cv-demo-results-cta .btn-large {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* ─── CTA grid (CTA principale + cattura email lead caldo) ─── */
.cv-demo-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: left;
  align-items: stretch;
}

.cv-demo-cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 32px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.02);
}

.cv-demo-cta-card--primary {
  background: linear-gradient(135deg, rgba(1, 182, 177, 0.10), rgba(1, 182, 177, 0.02));
  border-color: rgba(1, 182, 177, 0.25);
}

.cv-demo-cta-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text);
  margin: 0 0 10px;
  line-height: 1.25;
}

.cv-demo-cta-card p {
  font-size: 0.97rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 0 0 20px;
  max-width: none;
}

.cv-demo-cta-card .btn {
  align-self: flex-start;
}

/* Lead capture form */
.cv-demo-lead-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.cv-demo-lead-row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  outline: none;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.cv-demo-lead-row input[type="email"]::placeholder {
  color: var(--color-text-muted);
}

.cv-demo-lead-row input[type="email"]:focus {
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.06);
}

.cv-demo-lead-row .btn {
  align-self: stretch;
  padding: 12px 22px;
  white-space: nowrap;
}

.cv-demo-lead-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cv-demo-lead-privacy {
  font-size: 0.78rem !important;
  color: var(--color-text-muted) !important;
  margin: 0 !important;
  line-height: 1.5 !important;
}

.cv-demo-lead-privacy a {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

.cv-demo-lead-error {
  font-size: 0.85rem !important;
  color: #ff6b6b !important;
  margin: 8px 0 0 !important;
}

.cv-demo-lead-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.cv-demo-lead-success-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(1, 182, 177, 0.12);
  color: var(--color-accent);
  margin-bottom: 6px;
}

.cv-demo-lead-success h3 {
  margin: 0;
}

.cv-demo-lead-success p {
  margin: 0 !important;
  text-align: center;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .cv-demo-stage {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cv-demo-value {
    text-align: center;
    align-items: center;
  }

  .cv-demo-desc {
    max-width: 560px;
  }

  .cv-demo-features {
    align-items: stretch;
    max-width: 360px;
    margin: 0 auto;
  }

  .cv-demo-feature {
    text-align: left;
    width: 100%;
  }

  .cv-demo-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cv-demo-headline {
    font-size: 1.8rem;
  }

  .cv-demo-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .cv-demo-dropzone {
    padding: 28px 16px;
  }

  .cv-demo-profile-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
  }

  .cv-demo-profile-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cv-demo-profile-photo {
    width: 72px;
    height: 72px;
  }

  .cv-demo-score {
    align-self: center;
  }

  .cv-demo-score-ring {
    width: 80px;
    height: 80px;
  }

  .cv-demo-panel {
    padding: 20px;
  }

  .cv-demo-exp-header {
    flex-direction: column;
    gap: 2px;
  }

  .cv-demo-edu-item {
    flex-direction: column;
    gap: 4px;
  }

  .cv-demo-results-cta {
    padding: 28px 20px;
  }

  .cv-demo-cta-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cv-demo-cta-card {
    padding: 24px 22px;
  }

  .cv-demo-lead-row {
    flex-direction: column;
  }

  .cv-demo-lead-row .btn {
    width: 100%;
  }

  /* Constrain form wrap + reduce AI glow on mobile */
  .cv-demo-form-wrap {
    max-width: 100%;
    box-sizing: border-box;
  }

  .cv-demo-form-wrap--loading {
    padding: 3px;
  }

  .cv-demo-form-wrap--loading::before {
    inset: -6px;
    border-radius: 22px;
    filter: blur(14px);
  }

  .cv-demo-form-wrap--loading::after {
    inset: -1px;
    border-radius: 20px;
    filter: blur(3px);
  }
}

/* ============================================
   SCENARIO ILLUSTRATIVO — Apple-style billboard
   ============================================ */
.scenario {
  padding: clamp(96px, 14vh, 160px) 0;
  background: var(--color-bg);
  position: sticky;
  z-index: 1;
  /* top is set dynamically by JS so the section pins when its bottom hits viewport bottom */
}

.scenario .container {
  text-align: center;
}

.scenario-head {
  max-width: 880px;
  margin: 0 auto;
}

.scenario-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 28px;
}

.scenario-title {
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 28px;
  color: var(--color-text);
}

.scenario-title-accent {
  color: var(--color-text-secondary);
  font-weight: 700;
}

.scenario-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--color-text-secondary);
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto;
}

.scenario-shock {
  max-width: 780px;
  margin: clamp(48px, 8vh, 80px) auto 0;
  padding: 0 16px;
  text-align: center;
}

.scenario-shock p {
  font-size: clamp(1.3rem, 2.4vw, 1.95rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-text-secondary);
  margin: 0;
}

.scenario-shock strong {
  color: var(--color-text);
  font-weight: 700;
}

.scenario-bignum {
  margin: clamp(56px, 10vh, 110px) auto clamp(64px, 10vh, 120px);
  max-width: 720px;
}

.scenario-bignum-value {
  font-size: clamp(5rem, 14vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 0.95;
  color: var(--color-accent);
  font-feature-settings: "tnum" 1;
}

.scenario-bignum-unit {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--color-accent);
  margin-left: 0.05em;
  letter-spacing: -0.02em;
}

.scenario-bignum-caption {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin: 32px auto 0;
  max-width: 600px;
}

.scenario-bignum-caption strong {
  color: var(--color-text);
  font-weight: 600;
}

.scenario-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 880px;
  margin: 0 auto clamp(64px, 10vh, 120px);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.scenario-stat {
  padding: 44px 28px;
  border-right: 1px solid var(--color-border);
  text-align: center;
}

.scenario-stat:last-child {
  border-right: none;
}

.scenario-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.scenario-stat-from {
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(110, 114, 128, 0.45);
  letter-spacing: -0.015em;
}

.scenario-stat-arrow {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.scenario-stat-to {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.025em;
}

.scenario-stat-label {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.scenario-disclaimer {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-style: italic;
  max-width: 640px;
  margin: 0 auto 40px;
}

.scenario-cta {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .scenario {
    padding: clamp(72px, 10vh, 100px) 0;
  }

  .scenario-stats {
    grid-template-columns: 1fr;
  }

  .scenario-stat {
    padding: 36px 24px;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .scenario-stat:last-child {
    border-bottom: none;
  }

  .scenario-bignum {
    margin: 64px auto 56px;
  }
}

/* ============================================
   FAQ — Accordion (basato su <details> nativo)
   ============================================ */
.faq {
  padding: var(--section-padding);
  background: var(--color-bg);
  position: relative;
  z-index: 3;
}

.faq-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.faq-header h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
}

.faq-header p {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.faq-item[open] {
  border-color: rgba(1, 182, 177, 0.35);
  background: var(--color-surface-soft);
}

.faq-item:hover:not([open]) {
  border-color: var(--color-border-hover);
}

/* Reset default <summary> marker */
.faq-question {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.005em;
  transition: color var(--transition-base);
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { display: none; content: ''; }

.faq-question:hover {
  color: var(--color-accent-hover);
}

.faq-question span {
  flex: 1;
  line-height: 1.4;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--color-text-secondary);
  transition: transform var(--transition-base), color var(--transition-base);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: var(--color-accent);
}

/* Animazione apertura/chiusura: gestita da JS (scripts.js → FAQ ACCORDION).
   JS imposta max-height inline. CSS: forza display:block sempre per
   battere lo UA stylesheet di <details> che hide non-summary children
   quando manca [open]. La transizione max-height qui sotto deve combaciare
   con DURATION nel JS (380ms). */
.faq-item .faq-answer {
  display: block;
  overflow: hidden;
  max-height: 0;
  padding: 0 26px;
  color: var(--color-text-secondary);
  font-size: 0.97rem;
  line-height: 1.65;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
  margin: 0 0 12px;
}

.faq-answer p:first-child {
  padding-top: 4px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
  padding-bottom: 24px;
}

.faq-answer strong {
  color: var(--color-text);
  font-weight: 600;
}

@media (max-width: 720px) {
  .faq-header {
    margin-bottom: 36px;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 0.98rem;
    gap: 16px;
  }

  .faq-answer {
    padding: 0 20px 20px;
    font-size: 0.93rem;
  }
}

/* ─── FIX: footer logo crop ─────────────────────────────────────
   Il file talent-flow-color-light.svg contiene due lockup affiancati
   (icona standalone + icona+testo). Mostriamo solo quello a destra
   con un object-fit/object-position che taglia la prima ~30%. */
.footer-logo-img {
  height: 42px;
  width: 220px;         /* tweaked iteratively */
  object-fit: cover;
  object-position: right center;
}
