/* ──────────────────────────────────────────────────────────────────────────
   Lo stile delle pagine della prova di 15 giorni: notte prugna e oro, come la
   community. È lo stesso delle due pagine che stavano su systeme, portato qui
   dentro una volta sola invece che copiato in ognuna.
   ⚠️ «overflow-x: clip» e non «hidden»: su iPhone «hidden» su html e body fa
   scorrere la pagina da sola (ci è già successo con la ty-comm2).
   ────────────────────────────────────────────────────────────────────────── */
html, body { margin: 0; padding: 0; background: #140e1d; overflow-x: clip; }

.ovl {
  --notte: #140e1d; --carta: rgba(36, 26, 51, .94); --linea: #3a2d50;
  --oro: #e2b95c; --oro-chiaro: #f2d79a; --tenue: #bcb1ce; --testo: #f3ede9;
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --muro: min(52svh, 540px);
  --passo: clamp(10px, 1.5vw, 18px);
  position: relative; overflow: hidden;
  min-height: 100svh;
  background: var(--notte); color: var(--testo);
  font: 400 17.5px/1.6 var(--sans); text-align: center;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
.ovl *, .ovl *::before, .ovl *::after { box-sizing: border-box; }
.ovl h1, .ovl h2, .ovl p { margin: 0; padding: 0; }
.ovl a { text-decoration: none; }

/* ── il muro delle serate che scorrono: si guarda, non si tocca ─────────── */
.ovl-muro { position: absolute; top: 0; left: 0; right: 0; height: var(--muro); overflow: hidden; contain: paint;
  pointer-events: none; user-select: none; -webkit-user-select: none; }
.ovl-piano { position: absolute; left: 50%; top: 46%; width: max(175vw, 1500px); display: grid; gap: var(--passo);
  transform: translate(-50%, -50%) perspective(1300px) rotateX(22deg) rotateZ(-9deg); }
.ovl-nastro { display: flex; gap: var(--passo); padding-right: var(--passo); width: max-content;
  animation: ovl-scorri var(--giro, 150s) linear infinite; will-change: transform; }
.ovl-fila:nth-child(2) .ovl-nastro { --giro: 185s; animation-direction: reverse; }
.ovl-fila:nth-child(3) .ovl-nastro { --giro: 165s; }
.ovl-fila:nth-child(4) .ovl-nastro { --giro: 200s; animation-direction: reverse; }
.ovl-fila:nth-child(5) .ovl-nastro { --giro: 175s; }
.ovl-nastro img { display: block; flex: none; width: clamp(148px, 18.5vw, 270px); height: auto; aspect-ratio: 360 / 208;
  object-fit: cover; border-radius: clamp(10px, 1.1vw, 16px); background: #2a1f3a; box-shadow: 0 14px 30px -12px rgba(0,0,0,.85); }
@keyframes ovl-scorri { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
/* se le copertine non arrivano, il bosco di notte dell'app */
.ovl-muro:has(.ovl-piano:empty) { background: url('https://community.elisasoulmedium.com/img/bosco-verticale.webp') center top / cover no-repeat; }
.ovl-muro::after { content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,14,29,.62) 0%, rgba(20,14,29,.26) 18%, rgba(20,14,29,.4) 40%, rgba(20,14,29,.8) 60%, rgba(20,14,29,.93) 80%, var(--notte) 96%),
    radial-gradient(ellipse 95% 75% at 50% 38%, rgba(20,14,29,0) 45%, rgba(20,14,29,.5) 100%); }

/* ── la colonna ─────────────────────────────────────────────────────────── */
.ovl-colonna { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0 auto;
  padding: calc(var(--muro) - 185px) 18px calc(34px + env(safe-area-inset-bottom, 0px)); }

/* il marchio */
.ovl-anello { position: relative; display: inline-block; padding: 20px 38px 24px; }
.ovl-anello::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(226,185,92,.6);
  transform: rotate(-4deg) scale(1.04,.92); box-shadow: 0 0 40px rgba(226,185,92,.12), inset 0 0 30px rgba(226,185,92,.08); }
.ovl-marchio { font-family: var(--serif); line-height: .88; color: #f7ead0; text-shadow: 0 2px 22px rgba(0,0,0,.75); }
.ovl-marchio .uno { display: block; font-weight: 300; font-size: clamp(2.4rem, 10.5vw, 3.8rem); }
.ovl-marchio .due { display: block; font-weight: 600; font-size: clamp(3.1rem, 14vw, 5rem); }
.ovl-marchio .due em { font-style: normal; font-size: .45em; vertical-align: .55em; margin-right: .12em; font-weight: 300; }
.ovl-occhiello { margin-top: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .34em; text-indent: .34em;
  text-transform: uppercase; color: var(--oro); text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.ovl-filo { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; color: var(--oro); }
.ovl-filo::before, .ovl-filo::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(226,185,92,.55), transparent); }
.ovl-filo svg { width: 30px; height: 30px; flex: none; }

/* ── le schede ──────────────────────────────────────────────────────────── */
.ovl-scheda { position: relative; margin-top: 18px; padding: 26px 22px 24px; border-radius: 26px;
  background: var(--carta); border: 1px solid var(--linea);
  box-shadow: 0 34px 70px -34px rgba(0,0,0,.95), inset 0 1px 0 rgba(242,215,154,.07); }
.ovl-scheda:first-of-type { margin-top: 0; }
.ovl-tit { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 8vw, 2.9rem); line-height: 1.07; color: #fff; }
.ovl-tit2 { font-family: var(--serif); font-weight: 600; font-size: 1.85rem; line-height: 1.12; color: #fff; }
.ovl-sotto { margin-top: 8px; font-size: 1.04rem; color: var(--tenue); }
.ovl-unito { white-space: nowrap; }
.ovl-tit, .ovl-tit2, .ovl-sotto, .ovl-porte-intro { text-wrap: balance; }
.ovl-testo p { margin-top: 14px; color: #e9e1ea; text-align: left; }
.ovl-testo b { color: #fff; font-weight: 800; }
.ovl-icona { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(242,215,154,.28), rgba(226,185,92,.1));
  border: 1px solid rgba(226,185,92,.55); color: var(--oro-chiaro); box-shadow: 0 0 30px rgba(226,185,92,.18); }
.ovl-icona svg { width: 28px; height: 28px; }
.ovl-eti { display: inline-block; margin-bottom: 12px; padding: 6px 15px; border-radius: 999px;
  background: linear-gradient(135deg, #f3d898, #d6a444); color: #2b1a4a;
  font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 10px 26px -10px rgba(226,185,92,.9); }

/* ── il modulo: nome e mail ─────────────────────────────────────────────── */
.ovl-modulo { margin-top: 20px; display: grid; gap: 12px; }
.ovl-campo { width: 100%; height: 56px; padding: 0 18px; border-radius: 16px; border: 1px solid #4b3b64;
  background: rgba(255,255,255,.06); color: #fff; font: 600 1.05rem var(--sans); text-align: left;
  outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.ovl-campo::placeholder { color: #9b90ae; font-weight: 400; opacity: 1; }
.ovl-campo:focus { border-color: var(--oro); box-shadow: 0 0 0 4px rgba(226,185,92,.18); }
.ovl-campo:disabled { opacity: .55; }
.ovl-invia { display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 58px; padding: 0 22px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #f3d898, #d6a444); color: #2b1a4a;
  font: 800 1.08rem var(--sans); box-shadow: 0 16px 32px -16px rgba(226,185,92,.85);
  transition: transform .18s ease, filter .18s ease; cursor: pointer; }
.ovl-invia:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.ovl-invia:disabled { cursor: default; filter: saturate(.4); }
.ovl-avviso { margin-top: 10px; font-size: .95rem; color: #ffb4b4; text-align: left; min-height: 1px; }
.ovl-nota { margin-top: 14px; font-size: .95rem; line-height: 1.55; color: #a79cb9; text-align: left; }
.ovl-nota b { color: var(--oro-chiaro); font-weight: 700; }

/* ── cosa c'è dentro ────────────────────────────────────────────────────── */
.ovl-dentro { margin-top: 24px; display: grid; gap: 9px; text-align: left; }
.ovl-voce { display: flex; align-items: center; gap: 13px; padding: 14px 18px; border: 1px solid var(--linea);
  border-radius: 16px; background: rgba(36,26,51,.6); font-size: 1.02rem; font-weight: 700; color: #fff; }
.ovl-voce svg { width: 22px; height: 22px; flex: none; color: var(--oro); }

/* ── i pulsanti della pagina di benvenuto ───────────────────────────────── */
.ovl-porte-intro { margin: 34px 6px 14px; font-size: 1.05rem; color: #e9e1ea; }
.ovl-porte { display: grid; gap: 12px; }
.ovl-porta { display: flex; align-items: center; gap: 14px; padding: 15px 16px 15px 14px; border-radius: 20px; text-align: left;
  background: var(--carta); border: 1px solid var(--linea); color: #fff;
  transition: transform .2s ease, border-color .2s ease, filter .2s ease; }
.ovl-porta:hover { transform: translateY(-2px); border-color: rgba(226,185,92,.55); }
.ovl-porta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ovl-porta-icona { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; }
.ovl-porta-icona svg { width: 27px; height: 27px; }
.ovl-porta.wa .ovl-porta-icona { background: rgba(37,211,102,.14); color: #3ee27d; }
.ovl-porta-testo { flex: 1; min-width: 0; }
.ovl-porta-testo b { display: block; font-size: 1.08rem; font-weight: 800; line-height: 1.25; color: inherit; }
.ovl-porta-testo small { display: block; margin-top: 4px; font-size: .88rem; line-height: 1.4; color: var(--tenue); }
.ovl-porta-freccia { flex: none; width: 22px; height: 22px; color: var(--oro); }
.ovl-porta.app { padding-top: 18px; padding-bottom: 18px; border: 0;
  background: linear-gradient(135deg, #f3d898, #d6a444); color: #2b1a4a; box-shadow: 0 18px 36px -18px rgba(226,185,92,.9); }
.ovl-porta.app:hover { filter: brightness(1.05); }
.ovl-porta.app .ovl-porta-icona { background: rgba(43,26,74,.12); color: #2b1a4a; }
.ovl-porta.app .ovl-porta-testo b { font-size: 1.14rem; }
.ovl-porta.app .ovl-porta-testo small { color: #5a4431; }
.ovl-porta.app .ovl-porta-freccia { color: #2b1a4a; }

.ovl-abbraccio { margin-top: 26px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.55rem; line-height: 1.2; color: #f7ead0; }
.ovl-firma { margin-top: 4px; font-family: var(--serif); font-size: 1.15rem; color: var(--oro); letter-spacing: .06em; }

/* ── in fondo ───────────────────────────────────────────────────────────── */
.ovl-piede { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(226,185,92,.18);
  font-size: .84rem; line-height: 1.7; color: #9d92b0; }
.ovl-piede-nome { margin-bottom: 6px; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: #e9dcc4; letter-spacing: .04em; }

@media (min-width: 980px) {
  .ovl { --muro: min(58svh, 620px); font-size: 18px; }
  .ovl-colonna { max-width: 640px; padding-left: 36px; padding-right: 36px; }
  .ovl-piede { margin-top: 56px; }
}
@media (prefers-reduced-motion: reduce) { .ovl-nastro { animation: none; } }
