/* ============================================================
   Landing masterclass · Manager Indipendente
   Sistema A · Verde del brief grafiche di Alex (23/09/2026):
   solo i colori della palette, un accento per blocco, CTA sempre
   Accent Green con testo bianco. Font: Fraunces, Inter, JetBrains Mono.
   ============================================================ */
:root {
  --deep-forest: #081c15;
  --forest-dark: #1b4332;
  --forest-mid: #2d6a4f;
  --accent: #40916c;
  --mint: #52b788;
  --soft-mint: #74c69d;
  --pale-mint: #95d5b2;
  --ice-mint: #b7e4c7;
  --foam: #d8f3dc;
  --ink: #0A0B0D;
  --steel: #5B6170;
  --white: #FFFFFF;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  --wrap: 880px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--deep-forest);
  color: var(--white);
  padding: 22px 0 56px;
  text-align: center;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .01em;
  color: var(--white);
  margin-bottom: 36px;
}
.brand-in { color: var(--mint); }

.kicker {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ice-mint);
  margin: 0 0 14px;
}
.kicker--dark { color: var(--forest-dark); }

.headline {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 5.4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0 auto 18px;
  max-width: 820px;
}
.headline .hl { color: var(--mint); }

.sub {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.5;
  color: var(--ice-mint);
  max-width: 680px;
  margin: 0 auto 10px;
}
.qualifica {
  font-size: 14px;
  color: var(--pale-mint);
  opacity: .85;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ---------- Video ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0f2a20;
  border: 1px solid rgba(183, 228, 199, .18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.video { width: 100%; height: 100%; object-fit: cover; background: #000; }

.video-lock {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--white);
  font-family: var(--sans);
  background:
    radial-gradient(ellipse at center, rgba(64, 145, 108, .28) 0%, rgba(8, 28, 21, 0) 65%),
    linear-gradient(180deg, #123527 0%, var(--deep-forest) 100%);
}
.video-lock-play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  padding-left: 4px;
  box-shadow: 0 0 0 10px rgba(64, 145, 108, .22);
  transition: transform .2s ease, background .2s ease;
}
.video-lock:hover .video-lock-play,
.video-lock:focus-visible .video-lock-play { transform: scale(1.06); background: var(--forest-mid); }
.video-lock-label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.video-lock:focus-visible { outline: 3px solid var(--mint); outline-offset: -3px; }

.video-missing {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ice-mint);
  background: #0f2a20;
}
.video-missing p { margin: 4px 0; }

/* ---------- Bottoni ---------- */
.cta-block { margin-top: 28px; }
.cta-block--left { text-align: left; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  padding: 18px 30px;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
.btn:hover { background: var(--forest-mid); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn--full { width: 100%; }
.cta-note {
  font-size: 14px;
  color: var(--ice-mint);
  max-width: 460px;
  margin: 12px auto 0;
}

/* ---------- Chi parla ---------- */
.speaker { padding: 64px 0 72px; }
.speaker-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 44px;
  align-items: start;
}
.speaker-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: var(--foam);
  border: 1px dashed var(--pale-mint);
  display: grid;
  place-items: center;
  color: var(--forest-dark);
}
.section-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.15;
  color: var(--forest-dark);
  margin: 0 0 6px;
}
.speaker-name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 22px;
}
.speaker-text p { margin: 0 0 16px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--deep-forest);
  color: var(--pale-mint);
  font-size: 13px;
  padding: 26px 0;
  text-align: center;
}
.footer p { margin: 4px 0; }
.footer a { color: var(--ice-mint); }

/* ---------- Pop-up ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 28, 21, .78); }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--white);
  border-radius: 10px;
  padding: 30px 26px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .4);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--steel);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.modal-close:hover { background: var(--foam); color: var(--ink); }
.modal-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.15;
  color: var(--forest-dark);
  margin: 0 0 6px;
}
.modal-sub { color: var(--steel); margin: 0 0 20px; font-size: 15px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.field input {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px evita lo zoom automatico su iPhone */
  padding: 12px 13px;
  border: 1px solid #cfd6d2;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(64, 145, 108, .2); }
.field input.is-invalid { border-color: #b3261e; }
.field small { display: block; font-size: 12px; color: var(--steel); margin-top: 5px; line-height: 1.45; }
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--steel);
  margin: 4px 0 16px;
}
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.check.is-invalid span { color: #b3261e; }
.form-error { color: #b3261e; font-size: 14px; margin: 0 0 12px; }

/* ---------- Telefono ---------- */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 16px 0 40px; }
  .brand { margin-bottom: 24px; font-size: 16px; }
  .qualifica { margin-bottom: 22px; }
  .wrap { padding: 0 16px; }
  .video-frame { margin: 0 -16px; border-radius: 0; border-left: 0; border-right: 0; }
  .btn { width: 100%; padding: 17px 20px; }
  .speaker { padding: 48px 0 56px; }
  .speaker-grid { grid-template-columns: 1fr; gap: 26px; }
  .speaker-photo { max-width: 220px; }
  .row-2 { grid-template-columns: 1fr; gap: 0; }
  .modal-card { padding: 26px 20px 20px; }
}
.nowrap { white-space: nowrap; }

/* ---------- Fascia loghi (proposta 3, 29/09/2026) ----------
   Loghi monocromatici chiari su Deep Forest. I .logo-slot sono
   segnaposto con il nome: si sostituiscono con <img> */
.logos {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(183, 228, 199, .14);
}
.logos-label {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pale-mint);
  margin: 0 0 18px;
}
/* Banner a scorrimento: la traccia contiene la lista due volte
   e si sposta del 50%, così il giro è continuo */
.marquee {
  position: relative;
  overflow: hidden;
}
/* Sfumature ai lati con pseudo-elementi: la mask-image sul contenitore animato
   su Safari faceva sparire i loghi dopo qualche secondo (29/09/2026) */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12%;
  z-index: 1;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--marquee-bg, var(--deep-forest)), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--marquee-bg, var(--deep-forest)), transparent); }
.marquee-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  width: max-content;
  animation: marquee var(--marquee-durata, 40s) linear infinite;
  animation-play-state: paused;
  will-change: transform;
  backface-visibility: hidden;
}
.marquee-track.is-running { animation-play-state: running; }
.marquee:hover .marquee-track.is-running { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
.logo-slot {
  flex: none;
  height: 52px;
  margin-right: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  color: var(--ice-mint);
  opacity: .78;
}
/* Loghi resi monocromatici chiari, qualunque sia il colore originale */
.logo-slot img {
  height: 30px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .82;
}
@media (prefers-reduced-motion: reduce) {
  .marquee::before, .marquee::after { display: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* ---------- Credenziali dentro "Chi parla" ---------- */
.creds {
  list-style: none;
  margin: 28px 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cred {
  border: 1px solid #e3e8e5;
  border-radius: var(--radius);
  padding: 14px 12px 14px;
  background: var(--white);
}
.cred--book { background: var(--foam); border-color: var(--pale-mint); }
.cred-visual {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--steel);
  margin-bottom: 10px;
}
.cred-visual img { max-height: 32px; max-width: 120px; width: auto; }
.cred-visual--cover {
  width: 62px;
  height: 88px;
  justify-content: center;
  background: var(--deep-forest);
  color: var(--ice-mint);
  border-radius: 3px;
  box-shadow: 0 6px 14px rgba(8, 28, 21, .25);
}
.cred-visual--cover .mono { font-size: 8px; letter-spacing: .08em; }
.cred-visual--cover img { max-height: none; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.cred-title {
  hyphens: manual;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: var(--forest-dark);
  margin: 0 0 4px !important;
}
.cred-text { font-size: 13px; line-height: 1.4; color: var(--steel); margin: 0 !important; }
.creds-more {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 24px !important;
}

@media (max-width: 720px) {
  .logos { margin-top: 36px; padding-top: 26px; }
  .logo-slot { height: 44px; margin-right: 40px; font-size: 13px; }
  .logo-slot img { height: 26px; max-width: 130px; }
  .creds { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* Credenziali con immagine: loghi in grigio Steel su bianco, copertina a colori */
.cred-visual.has-img { color: inherit; }
.cred-visual:not(.cred-visual--cover) img { filter: brightness(0); opacity: .55; }
.cred-visual--cover.has-img { background: transparent; box-shadow: none; }
.cred-visual--cover.has-img img { box-shadow: 0 6px 14px rgba(8, 28, 21, .25); }

/* Loghi quasi quadrati: più alti, altrimenti sembrano minuscoli accanto ai loghi orizzontali */
.logo-slot--alto img { height: 42px; }
.cred-visual--alto img { max-height: 42px; }
/* Copertina: l'immagine di Amazon ha il fondo bianco, che sulla card Foam si fonde con multiply */
.cred-visual--cover.has-img { width: 96px; height: 96px; justify-content: flex-start; }
.cred-visual--cover.has-img img { width: 96px; height: 96px; object-fit: contain; mix-blend-mode: multiply; box-shadow: none; border-radius: 0; }
@media (max-width: 720px) {
  .logo-slot--alto img { height: 36px; }
}

/* ---------- Banner di qualifica in cima (29/09/2026) ---------- */
.topbar {
  background: var(--forest-dark);
  color: var(--white);
  text-align: center;
  padding: 11px 16px;
  font-size: 14px;
  line-height: 1.4;
  border-bottom: 1px solid rgba(183, 228, 199, .14);
}
.topbar p { margin: 0 auto; max-width: 760px; }
.topbar strong { color: var(--mint); font-weight: 700; }
.hero { padding-top: 40px; }
.headline { font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; max-width: 860px; }
.sub { margin-bottom: 30px; }
@media (max-width: 720px) {
  .topbar { font-size: 13px; padding: 10px 14px; }
  .hero { padding-top: 28px; }
}

/* Sottolineatura nella headline: evidenzia senza usare di nuovo il verde (Marco, 29/09/2026) */
.headline .ul {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: .07em;
  text-underline-offset: .14em;
  text-decoration-skip-ink: auto;
}

/* ---------- Per chi è (29/09/2026) ---------- */
.hero .kicker { margin-bottom: 26px; }
.forwho { margin-top: 52px; }
.forwho-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 20px;
}
.forwho-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 560px;
  text-align: left;
}
.forwho-list li {
  position: relative;
  padding: 0 0 0 34px;
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ice-mint);
}
.forwho-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.forwho + .logos { margin-top: 40px; }
@media (max-width: 720px) {
  .hero .kicker { margin-bottom: 20px; }
  .forwho { margin-top: 40px; }
  .forwho-list li { font-size: 16px; }
}

/* ============================================================
   TRE PROPOSTE DI COLORE (29/09/2026), attivate da data-tema sul tag <html>
   A · ritmo alternato   B · hero chiaro editoriale   C · messaggio chiaro, autorità scura
   Base comune: ogni sezione ha il suo fondo e spazi verticali costanti
   ============================================================ */
.hero { padding-bottom: 64px; }
.forwho { margin: 0; padding: 72px 0; text-align: center; }
.logos { margin: 0; padding: 36px 0 38px; border-top: 0; }
.forwho + .logos { margin-top: 0; }
.speaker { padding: 80px 0 88px; }
.forwho-title { margin-bottom: 26px; }

/* ---------- B e C · hero chiaro ---------- */
[data-tema="b"] .hero {
  background: linear-gradient(180deg, var(--white) 0%, var(--white) 55%, var(--foam) 100%);
  color: var(--ink);
}
[data-tema="b"] .hero .kicker { color: var(--forest-dark); }
[data-tema="b"] .headline { color: var(--ink); }
[data-tema="b"] .headline .hl { color: var(--accent); }
[data-tema="b"] .sub { color: var(--steel); }
[data-tema="b"] .cta-note { color: var(--steel); }
[data-tema="b"] .video-frame { border-color: transparent; box-shadow: 0 24px 50px rgba(8, 28, 21, .28); }

/* ---------- B · Per chi è scuro ---------- */
[data-tema="b"] .forwho { background: var(--deep-forest); }
[data-tema="b"] .forwho-title { color: var(--white); }
[data-tema="b"] .forwho-list li { color: var(--ice-mint); }
[data-tema="b"] .forwho-list li::before { background-color: var(--mint); }
[data-tema="b"] .logos { background: var(--forest-dark); --marquee-bg: var(--forest-dark); }
[data-tema="b"] .speaker { background: var(--white); }

@media (max-width: 720px) {
  .hero { padding-bottom: 48px; }
  .forwho { padding: 56px 0; }
  .speaker { padding: 56px 0 64px; }
}


.logos { text-align: center; }

/* ---------- Riquadro contenitore del video (29/09/2026) ----------
   Cornice con bordo e padding: il video non va mai a tutto schermo */
.video-box {
  padding: 10px;
  border-radius: 14px;
  background: rgba(183, 228, 199, .06);
  border: 1px solid rgba(183, 228, 199, .18);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .4);
}
.video-box .video-frame {
  margin: 0;
  border-radius: 8px;
  border: 0;
  box-shadow: none;
}
[data-tema="b"] .video-box {
  background: var(--white);
  border-color: var(--pale-mint);
  box-shadow: 0 24px 50px rgba(8, 28, 21, .16);
}
@media (max-width: 720px) {
  .video-box { padding: 6px; border-radius: 12px; }
  .video-box .video-frame { margin: 0; border-radius: 7px; }
}

/* Pannelli delle credenziali tutti su Foam, come quello del libro (Marco, 29/09/2026) */
[data-tema="b"] .cred { background: var(--foam); border-color: var(--pale-mint); }

/* Foto vera di Alex in "Chi parla" (29/09/2026) */
.speaker-photo.has-photo { border: 0; background: var(--forest-dark); overflow: hidden; }
.speaker-photo.has-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
@media (max-width: 720px) {
  .speaker-photo.has-photo { max-width: none; aspect-ratio: 4 / 3; }
}
.speaker-photo.has-photo { display: block; position: relative; }
.speaker-photo.has-photo img { position: absolute; inset: 0; }
@media (max-width: 720px) { .speaker-photo { max-width: none; aspect-ratio: 4 / 3; } }

/* Logo in cima alle pagine, come l'header del sito (29/09/2026) */
.brandbar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 30px;
  text-align: left;
}
.brandbar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.brandbar span {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -.01em;
}
@media (max-width: 720px) { .brandbar { margin-bottom: 22px; } }
.speaker-photo.has-photo img { object-position: 50% 40%; }

/* Due righe di dettaglio nelle card delle credenziali (29/09/2026) */
.cred-desc { font-size: 13px; line-height: 1.45; color: var(--steel); margin: 8px 0 0 !important; }

/* ---------- Banner consenso cookie (consenso.js, 01/10/2026) ----------
   Accetta e Rifiuta con lo stesso peso visivo; sotto il pop-up di opt-in (z-index 50) */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.consent[hidden] { display: none; }
.consent-card {
  position: relative;
  pointer-events: auto;
  max-width: 640px;
  width: 100%;
  background: var(--deep-forest);
  color: var(--foam);
  border: 1px solid var(--forest-mid);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(8, 28, 21, .35);
  padding: 18px 44px 18px 20px;
  font-family: var(--sans);
}
.consent-text { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.consent-text a { color: var(--ice-mint); }
.consent-actions { display: flex; gap: 10px; }
.consent-btn {
  flex: 1;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  padding: 11px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--pale-mint);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.consent-btn:hover { background: var(--forest-dark); }
.consent-btn:focus-visible, .consent-close:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
.consent-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 0;
  color: var(--pale-mint);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}
