/* semplice.ai — funnel VSL */

:root {
  --paper: #ffffff;
  --sand: #f5f1e8;
  --ink: #111110;
  --ink-soft: #46443f;
  --muted: #7d7a72;
  --line: #ddd8cc;

  --red: #e02b1d;
  --red-dark: #a81409;
  --yellow: #ffd84a;
  --green: #1f7a4d;

  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1020px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(1.95rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.12rem; letter-spacing: -0.02em; line-height: 1.2; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 94%, transparent 94%);
  color: inherit;
  padding: 0 2px;
}

.hot { color: var(--red); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.measure { max-width: 660px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.93rem; }
.tiny { font-size: 0.79rem; line-height: 1.5; }

.label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---------- barra alta ---------- */

.alert {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 10px 18px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: var(--display);
}

/* ---------- hero ---------- */

.hero { padding: 46px 0 34px; text-align: center; }

.badge {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  margin-bottom: 24px;
}

.hero h1 { max-width: 940px; margin: 0 auto 22px; }

.lede {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
  font-size: clamp(1rem, 2vw, 1.12rem);
}
.lede b { color: var(--ink); font-weight: 600; }
.band-video .lede { margin-top: 24px; }

.ticks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin-top: 26px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.ticks span { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { width: 15px; height: 15px; color: var(--red); flex: none; }

/* ---------- video ---------- */

.band-video { background: var(--sand); padding: 46px 0 54px; border-top: 1px solid var(--line); }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--ink);
}
.video-frame iframe,
.video-frame video { width: 100%; height: 100%; border: 0; display: block; }

/* player esterno che si porta dietro la propria proporzione (Vidalytics, Wistia...) */
.video-frame.has-embed { aspect-ratio: auto; }
.video-frame.has-embed > div { display: block; }

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  cursor: pointer;
  color: #fff;
}
.video-placeholder .play {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-content: center;
  transition: transform 0.16s ease;
}
.video-placeholder:hover .play { transform: scale(1.06); }
.video-placeholder .play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-placeholder .txt { font-size: 0.85rem; letter-spacing: 0.04em; opacity: 0.75; }

.video-note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

/* ---------- cta ---------- */

.cta-zone { max-width: 620px; margin: 30px auto 0; text-align: center; }

.lock { border: 2px solid var(--ink); background: var(--paper); padding: 22px 20px; }
.lock .label { color: var(--red); }
.lock .clock {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 8px 0 16px;
}
.bar { height: 6px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0%; background: var(--red); transition: width 1s linear; }

.unlocked { display: none; }
.unlocked.show { display: block; animation: pop 0.4s cubic-bezier(.2,.8,.3,1.2) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(10px); } to { opacity: 1; transform: none; } }

.btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.02rem, 2.6vw, 1.2rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding: 22px 24px;
  border: 2px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}
.btn:hover { background: var(--red-dark); }
.btn:active { transform: translateY(6px); box-shadow: 0 0 0 var(--ink); }

.btn-dark { background: var(--ink); border-color: var(--ink); box-shadow: 0 6px 0 var(--red-dark); }
.btn-dark:hover { background: #000; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: none;
  text-transform: none;
  font-size: 1rem;
  padding: 15px 22px;
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.cta-sub { margin-top: 14px; font-size: 0.88rem; color: var(--ink-soft); }
.cta-sub b { font-weight: 700; }

.slots {
  margin-top: 16px;
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 13px 16px;
  text-align: left;
}
.slots .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.slots .top .label { color: var(--ink); }
.slots .top .when { font-size: 0.78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.slots .meter { height: 8px; background: var(--line); margin-top: 9px; }
.slots .meter span { display: block; height: 100%; background: var(--red); }

/* ---------- fascia numeri ---------- */

.band-stats { background: var(--ink); color: #fff; padding: 56px 0; }
.band-stats .kicker { color: var(--red); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 30px; }
.stats .n {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5.4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--yellow);
}
.stats p { margin-top: 10px; font-size: 0.93rem; color: #c9c5bb; }

.band-stats .after {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid #35342f;
  font-size: 1.05rem;
  max-width: 660px;
}

/* ---------- sezioni ---------- */

section { padding: 62px 0; }
.band-sand { background: var(--sand); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.sec-head { max-width: 680px; }
.sec-head p { margin-top: 16px; color: var(--ink-soft); }

.steps-list { margin-top: 34px; }
.step {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 2px solid var(--ink);
  align-items: start;
}
.step:last-child { border-bottom: 2px solid var(--ink); }
.step .n {
  font-family: var(--display);
  font-weight: 800;
  font-size: 2.1rem;
  line-height: 0.9;
  color: var(--red);
  letter-spacing: -0.04em;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.97rem; max-width: 620px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }

.col {
  border: 2px solid var(--ink);
  background: var(--paper);
  padding: 24px;
}
.col.no { border-color: var(--line); background: transparent; }
.col .head {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}
.col.no .head { border-color: var(--line); color: var(--muted); }

.col ul { list-style: none; margin: 0; padding: 0; }
.col li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.col li:last-child { margin-bottom: 0; }
.col li::before {
  position: absolute;
  left: 0;
  font-family: var(--display);
  font-weight: 800;
}
.col.yes li::before { content: "+"; color: var(--red); }
.col.no li::before { content: "×"; color: var(--muted); }
.col li b { color: var(--ink); font-weight: 700; }

.quote {
  border-left: 4px solid var(--red);
  padding: 4px 0 4px 18px;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 660px;
}
.quote b { color: var(--ink); font-weight: 700; }

/* ---------- autore ---------- */

.author { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.author .work { display: grid; gap: 14px; }
.author .work div {
  border-top: 1px solid #35342f;
  padding-top: 12px;
  font-size: 0.9rem;
  color: #c9c5bb;
}
.author .work b { display: block; color: #fff; font-weight: 700; margin-bottom: 2px; }

/* ---------- faq ---------- */

details { border-top: 2px solid var(--ink); padding: 18px 0; }
details:last-of-type { border-bottom: 2px solid var(--ink); }
details summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--red); font-family: var(--display); font-weight: 800; flex: none; }
details[open] summary::after { content: "\2212"; }
details p { margin: 12px 0 0; color: var(--ink-soft); font-size: 0.95rem; max-width: 68ch; }

/* ---------- fascia finale ---------- */

.band-red { background: var(--red); color: #fff; padding: 62px 0; text-align: center; }
.band-red h2 { max-width: 720px; margin: 0 auto 18px; }
.band-red p { max-width: 560px; margin: 0 auto 30px; color: #ffe3e0; }
.band-red .cta-zone { margin-top: 0; }
.band-red .lock { border-color: #fff; background: transparent; }
.band-red .lock .label { color: #ffe3e0; }
.band-red .bar { background: rgba(255,255,255,0.28); }
.band-red .bar span { background: #fff; }
.band-red .cta-sub { color: #ffe3e0; }
.band-red .btn-dark { box-shadow: 0 6px 0 rgba(0, 0, 0, 0.38); }
.band-red .btn-dark:active { box-shadow: 0 0 0 rgba(0, 0, 0, 0.38); }

/* ---------- sticky ---------- */

.sticky {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--paper);
  border-top: 2px solid var(--ink);
  padding: 12px 22px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(130%);
  transition: transform 0.28s ease;
}
.sticky.show { transform: none; }
.sticky .inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sticky .txt { font-size: 0.84rem; color: var(--ink-soft); }
.sticky .txt b { display: block; font-family: var(--display); font-weight: 800; color: var(--ink); font-size: 0.95rem; }
.sticky .btn { width: auto; padding: 15px 30px; font-size: 0.95rem; box-shadow: 0 4px 0 var(--ink); }
.sticky .btn:active { transform: translateY(4px); }

.pad-sticky { padding-bottom: 100px; }

/* ---------- passi pagine 2 e 3 ---------- */

.crumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 24px 0 0;
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  flex-wrap: wrap;
}
.crumbs .now { color: var(--red); }
.crumbs .sep { color: var(--line); }

/* ---------- booking ---------- */

.split { display: grid; grid-template-columns: 1.45fr 1fr; gap: 28px; align-items: start; }

.embed { border: 2px solid var(--ink); background: var(--paper); min-height: 640px; overflow: hidden; }
.embed iframe { width: 100%; min-height: 640px; border: 0; display: block; }
.embed-placeholder {
  min-height: 640px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
  padding: 40px;
  color: var(--muted);
}
.embed-placeholder code { font-family: ui-monospace, Menlo, monospace; font-size: 0.8rem; background: var(--sand); padding: 3px 7px; }

/* ---------- conferma ---------- */

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 9px 16px;
  margin-bottom: 22px;
}
.stamp svg { width: 15px; height: 15px; }

/* ---------- responsive ---------- */

@media (max-width: 880px) {
  .stats { grid-template-columns: 1fr; gap: 22px; }
  .cols, .author, .split { grid-template-columns: 1fr; }
  section, .band-stats, .band-red { padding: 44px 0; }
  .video-frame { box-shadow: 8px 8px 0 var(--ink); }
  .step { grid-template-columns: 52px 1fr; gap: 12px; }
  .step .n { font-size: 1.6rem; }
  .embed, .embed iframe, .embed-placeholder { min-height: 600px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .sticky .txt { display: none; }
  .sticky .btn { width: 100%; }
  .hero { padding: 34px 0 26px; }
  .band-video { padding: 32px 0 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- popup candidatura ---------- */

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 16, 0.8);
  animation: fade 0.2s ease both;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 12px 12px 0 var(--red-dark);
  animation: pop 0.3s cubic-bezier(.2, .8, .3, 1.15) both;
}

.modal-head {
  padding: 22px 24px 18px;
  border-bottom: 2px solid var(--ink);
  padding-right: 60px;
}
.modal-head .kicker { margin-bottom: 8px; }
.modal-head h3 { font-size: clamp(1.15rem, 3vw, 1.4rem); }
.modal-head p { margin-top: 8px; font-size: 0.88rem; color: var(--ink-soft); }

.modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* l'altezza la imposta form_embed.js di GoHighLevel, qui solo il valore iniziale */
.modal-body iframe { display: block; width: 100%; border: 0; }

.modal-x {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: #fff;
  border: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.modal-x:hover { background: var(--red); }

body.modal-open { overflow: hidden; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 620px) {
  .modal { padding: 10px; }
  .modal-card { max-height: 94vh; box-shadow: 7px 7px 0 var(--red-dark); }
  .modal-head { padding: 18px 20px 14px; padding-right: 54px; }
}
