/* Shared additions for V2 (Dossier), V3 (Manifesto), V4 (Bento) — Palette Codice Coscienza */

/* Demo Switcher Bar (remove before final production deploy) */
.demo-switcher {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(20, 19, 17, 0.92);
  border: 1px solid rgba(242, 183, 5, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.demo-switcher a {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(250, 246, 236, 0.75);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.demo-switcher a:hover {
  color: #FAF6EC;
}

.demo-switcher a.active {
  background: #F2B705;
  color: #141311;
}

/* =========================================================
   V2 — DOSSIER / INCHIESTA EDITORIALE
   ========================================================= */
.v2-hero {
  padding: 44px 0 64px;
}

.v2-wrap {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.v2-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--cc-accent);
  border: 1px solid var(--cc-border);
  background: rgba(242, 183, 5, 0.08);
  padding: 6px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.v2-wrap h1 {
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}

.v2-sub {
  font-size: 1.08rem;
  color: var(--cc-text-muted);
  max-width: 60ch;
  margin: 0 auto 30px;
}

.v2-form-shell {
  background: linear-gradient(180deg, #24211C 0%, #1B1915 100%);
  border: 1px solid var(--cc-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
  box-shadow: var(--shadow);
  margin-bottom: 48px;
}

.v2-inline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.v2-timeline {
  max-width: 820px;
  margin: 0 auto 64px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.timeline-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--cc-surface);
  border: 1px solid var(--cc-border-soft);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  transition: border-color 0.2s ease;
}

.timeline-item:hover {
  border-color: var(--cc-border);
}

.time-code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cc-bg);
  background: var(--cc-accent);
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
}

.timeline-item h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.timeline-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cc-text-muted);
}

/* =========================================================
   V3 — MANIFESTO & MOVIMENTO (FIDUCIA, SPERANZA, LUCE)
   ========================================================= */
.v3-hero {
  padding: 54px 0 68px;
}

.v3-manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 44px;
  align-items: center;
}

.v3-quote {
  border-left: 3px solid var(--cc-accent);
  padding-left: 18px;
  margin: 0 0 24px;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1.12rem;
  color: var(--cc-text);
}

.v3-compare {
  padding: 54px 0;
  border-top: 1px solid var(--cc-border-soft);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.compare-col {
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  border: 1px solid var(--cc-border-soft);
  background: rgba(36, 33, 28, 0.55);
}

.compare-col.light-side {
  background: linear-gradient(145deg, rgba(242, 183, 5, 0.1), rgba(36, 33, 28, 0.95));
  border-color: var(--cc-accent);
}

.compare-col h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--cc-text-muted);
}

.compare-col.light-side .compare-list li {
  color: var(--cc-text);
}

.mark-x { color: rgba(250, 246, 236, 0.4); font-weight: 700; }
.mark-ok { color: var(--cc-accent); font-weight: 700; }

/* =========================================================
   V4 — BENTO GRID MODERNO (APPLE-STYLE DARK)
   ========================================================= */
.v4-section {
  padding: 36px 0 92px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.bento-card {
  background: var(--cc-surface);
  border: 1px solid var(--cc-border-soft);
  border-radius: 22px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bento-card:hover {
  border-color: var(--cc-border);
}

.bento-hero {
  grid-column: span 7;
  background: linear-gradient(145deg, #28241E 0%, #181613 100%);
  border-color: var(--cc-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.bento-hero h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.bento-form {
  grid-column: span 5;
  grid-row: span 2;
  background: #24211C;
  border: 1px solid var(--cc-accent);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(250, 246, 236, 0.1);
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  width: 50%;
  height: 100%;
  background: var(--cc-accent);
  border-radius: 999px;
}

.bento-stat {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.bento-stat strong {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.1rem;
  color: var(--cc-accent);
  line-height: 1;
}

.bento-stat span {
  font-size: 0.86rem;
  color: var(--cc-text-muted);
}

.bento-quote {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(242, 183, 5, 0.07);
  border-color: var(--cc-border);
}

.bento-pillar {
  grid-column: span 4;
}

.bento-pillar h3 {
  font-size: 1.18rem;
  margin-bottom: 8px;
}

.bento-pillar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--cc-text-muted);
}

/* TABLET & MOBILE OPTIMIZATION */
@media (max-width: 1024px) {
  .bento-hero { grid-column: span 12; }
  .bento-form { grid-column: span 12; grid-row: auto; }
  .bento-stat { grid-column: span 6; }
  .bento-quote { grid-column: span 6; }
  .bento-pillar { grid-column: span 4; }
}

@media (max-width: 820px) {
  .v2-inline-grid,
  .v3-manifesto-grid,
  .compare-grid {
    grid-template-columns: 1fr;
  }

  .bento-stat,
  .bento-quote,
  .bento-pillar {
    grid-column: span 12;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .time-code {
    width: fit-content;
  }

  .v2-form-shell,
  .bento-card {
    padding: 22px 18px;
  }

  body {
    padding-bottom: 64px;
  }
}

/* =========================================================
   V5 — MASTER LANDING (FUSIONE DEFINITIVA)
   ========================================================= */
.v5-pill-oval {
  border-radius: 999px !important;
  padding: 8px 18px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: 0.1em;
}

.v5-optin {
  border-color: rgba(242, 183, 5, 0.45);
}

.v5-quote-banner {
  margin-top: 32px;
  padding: 32px 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(242, 183, 5, 0.11), rgba(36, 33, 28, 0.92));
  border: 1px solid rgba(242, 183, 5, 0.4);
  text-align: center;
  box-shadow: var(--shadow);
}

.v5-quote-text {
  margin: 0 0 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  line-height: 1.28;
  color: var(--cc-text);
}

.v5-quote-author {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cc-accent);
}

.v5-timeline-section {
  padding: 64px 0;
  border-top: 1px solid var(--cc-border-soft);
}

.v5-manifesto-band {
  padding: 20px 0 64px;
}

.v5-manifesto-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 46px 38px;
  border-radius: 24px;
  background: linear-gradient(160deg, #27231D 0%, #171512 100%);
  border: 1px solid var(--cc-border);
  text-align: center;
  box-shadow: var(--shadow);
}

.v5-manifesto-card h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  margin-bottom: 16px;
}

.v5-manifesto-card p {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--cc-text-muted);
  font-size: 1.02rem;
}

.v5-manifesto-card strong {
  color: var(--cc-text);
}

.v5-cta-inline {
  width: auto;
  padding: 15px 30px;
}

@media (max-width: 820px) {
  .v5-manifesto-card {
    padding: 32px 20px;
  }

  .v5-quote-banner {
    padding: 24px 18px;
  }

  .v5-cta-inline {
    width: 100%;
  }
}

/* =========================================================
   V6, V7, V8 — VALORIZZAZIONE VIDEO (CINEMA / VERTICAL / SPLIT)
   ========================================================= */
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--cc-text);
}

.hero-bullets .b-dot {
  color: var(--cc-accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* V6: Dedicated Cinema Video Stage below Hero */
.v6-stage {
  padding: 12px 0 76px;
}

.v6-cinema-frame {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 24px;
  background: linear-gradient(160deg, #27231C 0%, #141311 100%);
  border: 1px solid rgba(242, 183, 5, 0.38);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.v6-cinema-frame:hover {
  transform: translateY(-3px);
  border-color: var(--cc-accent);
}

.v6-cinema-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: rgba(20, 19, 17, 0.85);
  border-bottom: 1px solid var(--cc-border-soft);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cc-text-muted);
}

.v6-cinema-bar strong {
  color: var(--cc-accent);
}

.v6-cinema-screen {
  aspect-ratio: 16 / 9;
  position: relative;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 50% 45%, rgba(242, 183, 5, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(36, 33, 28, 0.5), rgba(20, 19, 17, 0.96));
}

.v6-play-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--cc-accent);
  color: var(--cc-bg);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 18px rgba(242, 183, 5, 0.14), 0 16px 40px rgba(242, 183, 5, 0.28);
  transition: transform 0.2s ease;
}

.v6-cinema-frame:hover .v6-play-ring {
  transform: scale(1.07);
}

.v6-play-ring svg {
  width: 36px;
  height: 36px;
  margin-left: 4px;
}

.v6-chapters-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--cc-border-soft);
  background: rgba(20, 19, 17, 0.9);
}

.v6-chap {
  padding: 14px 16px;
  border-right: 1px solid var(--cc-border-soft);
  font-size: 0.8rem;
  color: var(--cc-text-muted);
}

.v6-chap:last-child { border-right: none; }
.v6-chap span {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--cc-accent);
  margin-bottom: 3px;
}

/* V7: Vertical 9:16 Reel-Style Video + Integrated Chapter Timeline */
.v7-showcase {
  padding: 20px 0 76px;
}

.v7-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 36px;
  align-items: center;
}

.v7-phone-video {
  aspect-ratio: 9 / 15.5;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 35%, rgba(242, 183, 5, 0.18), transparent 55%),
    linear-gradient(180deg, #27231C 0%, #12110F 100%);
  border: 2px solid rgba(242, 183, 5, 0.45);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.v7-phone-video:hover {
  transform: translateY(-3px);
  border-color: var(--cc-accent);
}

.v7-reel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cc-accent);
}

.v7-reel-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.v7-reel-bottom {
  background: rgba(20, 19, 17, 0.85);
  border: 1px solid var(--cc-border-soft);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: var(--cc-text-muted);
}

.v7-reel-bottom strong {
  display: block;
  color: var(--cc-text);
  margin-bottom: 2px;
}

/* V8: Centered Headline + Giant 65/35 Video-Form Above-the-Fold */
.v8-hero {
  padding: 36px 0 64px;
}

.v8-top-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 34px;
}

.v8-top-head h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  margin-bottom: 14px;
}

.v8-top-head p {
  margin: 0 auto;
  max-width: 62ch;
  color: var(--cc-text-muted);
  font-size: 1.04rem;
}

.v8-split-stage {
  display: grid;
  grid-template-columns: 1.42fr 0.88fr;
  gap: 24px;
  align-items: stretch;
}

.v8-player-card {
  border-radius: 22px;
  border: 1px solid rgba(242, 183, 5, 0.4);
  background:
    radial-gradient(circle at 50% 42%, rgba(242, 183, 5, 0.15), transparent 58%),
    linear-gradient(155deg, #27231C 0%, #141311 100%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: pointer;
  min-height: 460px;
}

.v8-player-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
  gap: 18px;
}

@media (max-width: 960px) {
  .v7-grid,
  .v8-split-stage {
    grid-template-columns: 1fr;
  }

  .v7-phone-video {
    max-width: 340px;
    margin: 0 auto;
  }

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

  .v8-player-card {
    min-height: 320px;
  }
}

@media (max-width: 600px) {
  .v6-chapters-strip {
    grid-template-columns: 1fr;
  }
  .v6-chap {
    border-right: none;
    border-bottom: 1px solid var(--cc-border-soft);
  }
  .v6-chap:last-child { border-bottom: none; }
}


