/* MAIKER HUB · Webinar Second Brain (Black Friday): /black-friday-webinar e /grazie.
   Si appoggia a one-to-one.css (modulo, barra fissa, chiusura) ed eventi.css (biglietto, scaletta, badge):
   qui solo le sezioni proprie della pagina. Area Eventi (blu), azione principale arancio. */

/* biglietto: la seconda battuta del titolo in blu scuro, leggibile sulla carta */
.wb-page .tk h1 em { color: #1d4ed8; font-style: normal; display: block; }
.wb-page .evt-intro { max-width: 62ch; font-size: clamp(18px, 1.5vw, 21px); }
.wb-page .ot-book { background: linear-gradient(180deg, transparent, #60a5fa14 25%, #60a5fa14 75%, transparent); }

/* video di presentazione a destra del biglietto: parte muto e in loop quando si vede, «Attiva l'audio» lo riporta
   all'inizio con l'audio (resta in loop) e mostra i controlli. Sotto i 1100px scende sotto il biglietto */
.wb-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: clamp(36px, 4vw, 70px); align-items: center; }
.wb-hero .wrap > :not(.tk, .wb-vsl) { grid-column: 1 / -1; }
.wb-hero .tk-big { width: 100%; }
.wb-hero .tk-big h1 { font-size: clamp(34px, 3.7vw, 64px); }
.wb-vsl { position: relative; min-width: 0; }
.wb-vsl-frame { position: relative; border: 2px solid var(--carbon); background: #000; aspect-ratio: 16 / 9; box-shadow: 12px 12px 0 var(--eventi), 12px 12px 0 2px var(--white); rotate: 1.2deg; }
.wb-vsl-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-vsl-sound { position: absolute; left: 12px; bottom: 12px; display: grid; justify-items: start; gap: 3px; padding: 12px 18px; background: var(--orange); color: var(--carbon); border: 2px solid var(--carbon); box-shadow: 5px 5px 0 var(--white); font: 800 16px/1.1 "DM Sans", sans-serif; cursor: pointer; transition: box-shadow .25s var(--ease); animation: wbNudge 2.4s ease-in-out infinite; }
.wb-vsl-sound small { font-size: 12px; font-weight: 600; }
.wb-vsl-sound:focus-visible { box-shadow: 8px 8px 0 var(--white); }
@media (hover: hover) and (pointer: fine) { .wb-vsl-sound:hover { box-shadow: 8px 8px 0 var(--white); } }
.wb-vsl-sound[hidden] { display: none; }
@keyframes wbNudge { 50% { scale: 1.05; } }
@media (prefers-reduced-motion: reduce) { .wb-vsl-sound { animation: none; } }
.wb-vsl-tag { position: absolute; top: -18px; left: 18px; padding: 8px 12px; background: var(--eventi); color: var(--carbon); border: 2px solid var(--carbon); box-shadow: 4px 4px 0 var(--white); font: 800 13px/1 "DM Sans", sans-serif; letter-spacing: .04em; rotate: -3deg; pointer-events: none; }
@media (max-width: 1100px) {
  .wb-hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .wb-hero .tk-big { width: min(100%, 940px); }
  .wb-hero .tk-big h1 { font-size: clamp(38px, 5.2vw, 84px); }
  .wb-vsl { width: min(100% - 14px, 760px); margin-top: clamp(44px, 6vw, 64px); }
}
@media (max-width: 600px) {
  .wb-vsl-frame { rotate: 0deg; box-shadow: 8px 8px 0 var(--eventi), 8px 8px 0 2px var(--white); }
  .wb-vsl-sound { left: 8px; bottom: 8px; display: flex; align-items: center; gap: 6px; padding: 7px 11px; font-size: 13px; box-shadow: 3px 3px 0 var(--white); }
  .wb-vsl-sound small { display: none; }
}

/* testo di accompagnamento */
.wb-lead { margin-top: 24px; max-width: 62ch; color: var(--soft); font-size: clamp(17px, 1.4vw, 20px); }
.wb-note { margin-top: clamp(28px, 4vw, 46px); max-width: 70ch; color: var(--soft); font-size: 16px; }
.wb-note a { color: var(--white); }

/* piani numerati (problema e «cosa succede adesso») */
.wb-pain-grid, .wb-next-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); margin-top: clamp(46px, 6vw, 80px); align-items: stretch; }
.wb-pain-grid .plate, .wb-next-list .plate { padding: clamp(24px, 2.6vw, 36px); display: grid; align-content: start; gap: 12px; rotate: var(--r, 0deg); }
/* pagina di grazie: quattro passaggi (il terzo è il gruppo WhatsApp), in fila sul desktop e due per riga sotto i 1200px */
.wb-next-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* gruppo WhatsApp «Eventi MAIKER HUB»: verde come la community, nella hero e sul piano del terzo passaggio */
.btn.wb-wa { background: var(--community); }
.wb-next-list .btn.wb-wa-go { justify-self: start; margin-top: 6px; background: var(--carbon); color: var(--white); box-shadow: 5px 5px 0 var(--white); }
@media (hover: hover) and (pointer: fine) { .wb-next-list .btn.wb-wa-go:hover { box-shadow: 8px 8px 0 var(--white); } }
.wb-page .plate .n { font: 800 clamp(40px, 4vw, 60px)/.9 "Syne", sans-serif; letter-spacing: -.04em; }
.wb-page .plate h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.08; }
.wb-page .plate p { font-size: 17px; line-height: 1.5; }
.wb-page .plate.dark p { color: var(--soft); }

/* per chi è / cosa porti a casa */
.wb-fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(46px, 6vw, 80px); }
.wb-fit-grid .plate { padding: clamp(26px, 3vw, 42px); rotate: var(--r, 0deg); }
.wb-yes, .wb-get { list-style: none; display: grid; gap: 14px; }
.wb-yes li, .wb-get li { position: relative; padding-left: 34px; font-size: 18px; line-height: 1.45; }
.wb-yes li::before { content: "✓"; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; background: var(--carbon); color: var(--community); font: 800 13px/1 "DM Sans", sans-serif; }
.wb-get li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 800; }

/* quiz: cinque situazioni (strategia Black Friday, approvato il 15 novembre). Scene affiancate: testo a sinistra,
   carta a spessore a destra in blu Eventi; risposte come piani selezionabili; senza JavaScript la sezione non c'è */
html:not(.js) .wb-quiz { display: none; }
.wb-quiz { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.wb-quiz-copy { display: grid; gap: 22px; position: sticky; top: 130px; }
@media (max-height: 760px) { .wb-quiz-copy { position: static; } }
.wb-quiz-copy .wb-lead { margin-top: 0; }
.wb-quiz-skip { justify-self: start; color: var(--white); font-weight: 700; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
.wb-quiz-card { position: relative; display: grid; min-width: 0; scroll-margin-top: 96px; }
.wb-quiz-card > .sheet { position: absolute; inset: 0; border: 2px solid var(--carbon); }
.wb-quiz-card > .sheet.a { background: var(--white); transform: translate(10px, 10px); }
.wb-quiz-card > .sheet.b { background: var(--eventi); transform: translate(20px, 20px); }
.wb-quiz-face { position: relative; display: grid; gap: 16px; min-width: 0; padding: clamp(24px, 3vw, 44px); background: #f2efe7; color: var(--carbon); border: 2px solid var(--carbon); }
.wb-quiz-face [hidden] { display: none !important; }
.wb-quiz-face > div { display: grid; gap: 16px; min-width: 0; }
.wb-quiz-face .lbl { margin: 0; color: var(--carbon); }
.wb-quiz-face p { font-size: 17px; line-height: 1.5; }
.wb-quiz-face h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; }
.wb-quiz-face h3:focus { outline: none; }
.wb-quiz-face .btn { justify-self: start; }
.wb-quiz-face .btn:disabled { opacity: .6; cursor: wait; }
/* sulla carta il bottone secondario è scuro (quello del sito è pensato per i fondi scuri) */
.wb-quiz-face .btn.ghost { color: var(--carbon); border-color: var(--carbon); box-shadow: 4px 4px 0 var(--carbon); }
.wb-quiz-big { font: 700 clamp(22px, 2vw, 28px)/1.2 "Syne", sans-serif !important; letter-spacing: -.01em; }
.wb-quiz-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.wb-quiz-progress i { height: 10px; border: 2px solid var(--carbon); background: var(--white); }
.wb-quiz-progress i.done { background: var(--carbon); }
.wb-quiz-progress i.now { background: var(--eventi); }
.wb-quiz-step { display: grid; gap: 14px; }
.wb-quiz-step fieldset { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.wb-quiz-step legend { margin-bottom: 10px; padding: 0; font-size: 15px; font-weight: 700; }
.wb-quiz-opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 2px solid var(--carbon); background: var(--white); font-size: 16px; line-height: 1.45; cursor: pointer; transition: transform .25s var(--pop), box-shadow .25s var(--pop), background .2s; }
.wb-quiz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wb-quiz-opt .k { display: grid; place-items: center; width: 30px; height: 30px; background: var(--carbon); color: var(--white); font: 800 14px/1 "Syne", sans-serif; }
.wb-quiz-opt.is-on { background: #dbeafe; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--carbon); }
.wb-quiz-opt.is-on .k { background: var(--eventi); color: var(--carbon); }
.wb-quiz-opt:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
/* il contorno serve a chi usa la tastiera: con il clic basta la risposta evidenziata */
@supports selector(:has(*)) {
  .wb-quiz-opt:focus-within { outline: none; }
  .wb-quiz-opt:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 2px; }
}
@media (hover: hover) and (pointer: fine) { .wb-quiz-opt:hover { background: #eef5ff; } }
.wb-quiz-msg { padding: 10px 12px; background: #fde2e2; border: 2px solid #b91c1c; color: #7f1d1d; font-weight: 700; font-size: 16px !important; }
.wb-quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.wb-quiz-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.wb-quiz-score b { font: 800 clamp(64px, 8vw, 112px)/.9 "Syne", sans-serif; letter-spacing: -.05em; }
.wb-quiz-score span { font-size: 18px; font-weight: 700; }
.wb-quiz-study { display: grid; gap: 10px; padding: 16px 18px; background: var(--white); border: 2px solid var(--carbon); }
.wb-quiz-study ul { list-style: none; display: grid; gap: 8px; }
.wb-quiz-study li { position: relative; padding-left: 26px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.wb-quiz-study li::before { content: "→"; position: absolute; left: 0; top: 0; font-weight: 800; }
.wb-quiz-review { display: grid; }
.wb-quiz-review details { padding: 12px 0; border-top: 2px dashed #0b0f1440; }
.wb-quiz-review summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; list-style: none; cursor: pointer; font-size: 17px; font-weight: 800; line-height: 1.25; }
.wb-quiz-review summary::-webkit-details-marker { display: none; }
.wb-quiz-review summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wb-quiz-review .n { display: grid; place-items: center; width: 28px; height: 28px; border: 2px solid var(--carbon); font: 800 13px/1 "Syne", sans-serif; }
.wb-quiz-review .tag { padding: 5px 10px; border: 2px solid var(--carbon); font: 800 12px/1 "DM Sans", sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.wb-quiz-review .ok .tag { background: var(--community); }
.wb-quiz-review .ko .tag { background: var(--orange); }
.wb-quiz-review details > p { margin-top: 10px; font-size: 16px; }
.wb-quiz-review .lesson { font-weight: 700; }
.wb-quiz-invite { display: grid; gap: 14px; padding-top: 20px; border-top: 2px solid var(--carbon); }

/* grazie: biglietto obliterato, Draco accoglie, tre passi */
.wb-thanks-page main > .wb-thanks { min-height: 88vh; min-height: 88svh; }
.wb-thanks-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 70px); align-items: center; }
.wb-thanks-copy { display: grid; gap: 26px; min-width: 0; }
.wb-thanks .evt-intro a { color: var(--white); }
.wb-draco { margin: 0; }
.wb-draco img { display: block; width: clamp(200px, 22vw, 340px); height: auto; }
.wb-next h2 { max-width: 16ch; }

/* grazie: qualifica in tre domande dopo l'iscrizione (riusa .ot-book, .ot-form, .ot-opts, .ot-done di one-to-one.css) */
.wb-qual .ot-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wb-qual .ot-opts label { min-width: 0; }
.wb-qual .ot-opts span { height: 100%; font-size: 16px; line-height: 1.35; }
.wb-qual .ot-form[hidden], .wb-page .btn[hidden] { display: none; }
.wb-qual .ot-done p { font-size: 17px; }
.wb-qual .ot-done:focus { outline: none; }

@media (max-width: 1200px) {
  .wb-next-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .wb-quiz { grid-template-columns: 1fr; }
  .wb-quiz-copy { position: static; }
  .wb-quiz-card { margin-right: 20px; }
  .wb-pain-grid, .wb-next-list, .wb-fit-grid { grid-template-columns: 1fr; }
  .wb-pain-grid .plate, .wb-next-list .plate, .wb-fit-grid .plate { rotate: 0deg; }
  .wb-thanks-in { grid-template-columns: 1fr; }
  .wb-draco { justify-self: center; order: -1; }
  .wb-draco img { width: 150px; }
  .wb-thanks-page main > .wb-thanks { min-height: 0; }
}
@media (max-width: 600px) {
  .wb-yes li, .wb-get li { font-size: 17px; }
  .wb-qual .ot-opts { grid-template-columns: 1fr; }
  .wb-quiz-face .btn, .wb-quiz-actions .btn { flex: 1 1 100%; justify-self: stretch; justify-content: center; text-align: center; white-space: normal; }
  .wb-quiz-review summary { grid-template-columns: auto minmax(0, 1fr); }
  .wb-quiz-review .tag { grid-column: 2; justify-self: start; }
}

/* pagina di grazie: la diretta YouTube sotto il biglietto. Nel player incorporato YouTube mostra solo il conto alla
   rovescia: «Ricordamelo» c'è sulla pagina della diretta, a cui porta il pulsante */
.wb-live { position: relative; margin-top: clamp(48px, 6vw, 72px); max-width: 760px; }
.wb-live-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.wb-live-cta { display: grid; justify-items: start; gap: 14px; margin-top: 34px; }
.wb-live-note { max-width: 62ch; color: var(--soft); font-size: 16px; line-height: 1.5; }
@media (max-width: 600px) {
  .wb-live { margin-right: 10px; }
  .wb-live-cta .btn { justify-self: stretch; justify-content: center; text-align: center; white-space: normal; }
  .wb-live-frame { rotate: 0deg; box-shadow: 8px 8px 0 var(--eventi), 8px 8px 0 2px var(--white); }
}
