/* Landing Analisi Meta v3. Pensata per essere letta facilmente anche da un pubblico di 50+ anni: testi grandi, contrasto alto, niente grigio su nero. */

:root {
  --bg-a: #0b0b0c;
  --bg-b: #151517;
  --card: #1c1c1f;
  --line: #ffffff33;
  --text: #ffffff;
  --body: #f1f1f3;
  --accent: #ef4444;
  --red: #ff5a5a;
  --btn: #dc2626;
  --btn-hover: #b91c1c;
  --green: #34d399;
  --radius: 10px;
  --f-body: "Onest", system-ui, sans-serif;
  --f-esoteric: "DM Serif Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-a);
  color: var(--body);
  font-family: var(--f-body);
  font-size: 1.375rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
strong { font-weight: 700; color: var(--text); }
a { color: inherit; }

/* ---------- Struttura: una colonna ---------- */
.sec { padding: 96px 20px; }
.sec--a { background: var(--bg-a); }
.sec--b { background: var(--bg-b); }
.col { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 32px; }
.center { align-items: center; text-align: center; }
@media (max-width: 767px) { .sec { padding: 64px 20px; } }

/* ---------- Top ---------- */
.top { padding: 22px 16px; background: var(--bg-a); border-bottom: 1px solid var(--line); text-align: center; }
.top__brand { font-weight: 800; font-size: 1.25rem; letter-spacing: 0.14em; text-decoration: none; color: var(--text); }

/* ---------- Testi ---------- */
h1 { font-size: clamp(2.375rem, 6vw, 3.625rem); font-weight: 700; line-height: 1.18; text-wrap: balance; color: var(--text); }
.hl { color: var(--red); font-weight: 800; }
.h2 { font-size: clamp(2.125rem, 5vw, 2.875rem); font-weight: 700; line-height: 1.2; text-wrap: balance; color: var(--text); }
.lead { font-size: clamp(1.75rem, 4.2vw, 2.375rem); font-weight: 700; line-height: 1.3; color: var(--text); }
.sub { font-size: clamp(1.4375rem, 3vw, 1.625rem); line-height: 1.55; }
.sub u { text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 5px; }
p em { color: var(--text); }
.mark { background: #fde047; color: #0b0b0c; font-weight: 800; padding: 0 0.25em; border-radius: 4px; }

/* ---------- Bottone ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 24px 40px;
  background: var(--btn);
  color: #fff;
  font: 800 clamp(1.375rem, 3.4vw, 1.75rem)/1.25 var(--f-body);
  text-decoration: none;
  border-radius: var(--radius);
  text-align: center;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible, summary:focus-visible, .video__btn:focus-visible, .top__brand:focus-visible, .foot a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 599px) { .btn { width: 100%; padding: 22px 20px; } }

/* ---------- Loghi: monocromatici, bianchi sul fondo scuro ---------- */
.logos { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px; }
.logo { height: 108px; display: grid; place-items: center; }
.logo img { max-width: 100%; max-height: 84px; width: auto; height: auto; object-fit: contain; }
/* Logo con sfondo trasparente: silhouette bianca */
.logo--sil img { filter: brightness(0) invert(1); }
/* Logo con sfondo bianco pieno: scala di grigi invertita, lo sfondo diventa nero */
.logo--inv img { filter: grayscale(1) contrast(1.4) invert(1); mix-blend-mode: screen; }
@media (max-width: 599px) {
  .logos { grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
  .logo:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 10px); }
}

/* ---------- Punti ---------- */
.point { padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.point h3 { font-size: clamp(1.625rem, 3.6vw, 1.875rem); font-weight: 700; line-height: 1.25; margin-bottom: 14px; color: var(--text); }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video__btn { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; inset: 0; margin: auto;
  width: 80px; height: 80px; display: grid; place-items: center;
  background: var(--btn); color: #fff; border-radius: 50%; font-size: 2.25rem;
}
.video__btn:hover .video__play { background: var(--btn-hover); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Storia ---------- */
.col--story { gap: 44px; }
.col--story p { font-size: clamp(1.5rem, 3.4vw, 1.75rem); line-height: 1.7; }
.col--story .lead { font-size: clamp(1.875rem, 4.6vw, 2.5rem); line-height: 1.3; }
.esoteric {
  font: italic 400 clamp(2.5rem, 8vw, 4rem)/1.1 var(--f-esoteric) !important;
  color: var(--red);
  text-align: center;
  text-wrap: balance;
  padding-block: 12px;
}

/* ---------- Manifesto ---------- */
.manifesto { padding-block: 120px; }
.manifesto .col { gap: 40px; }
.big { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; line-height: 1.1; color: var(--text); text-wrap: balance; }
.big--accent { color: var(--red); font-style: italic; }
.big--sm { font-size: clamp(1.875rem, 5vw, 2.75rem); line-height: 1.25; font-weight: 700; margin-top: 16px; }
@media (max-width: 767px) { .manifesto { padding-block: 80px; } }

/* ---------- Box lista ---------- */
.box { padding: 36px; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); }
.box h3 { font-size: clamp(1.75rem, 4vw, 2.125rem); font-weight: 800; line-height: 1.25; margin-bottom: 20px; color: var(--text); }
.box li { display: flex; align-items: flex-start; gap: 16px; padding: 12px 0; color: var(--text); font-size: clamp(1.375rem, 3.2vw, 1.5rem); line-height: 1.45; }
.box li i { flex: none; font-size: 1.75rem; margin-top: 3px; }
/* Noi contro loro: loro in rosso, io in verde */
.box--them { border-color: var(--red); }
.box--them h3, .box--them li i { color: var(--red); }
.box--me { border-color: var(--green); }
.box--me h3, .box--me li i { color: var(--green); }
.box--yes { border-color: var(--green); }
.box--yes li i { color: var(--green); }
.box--no { border-color: var(--red); }
.box--no li i { color: var(--red); }
@media (max-width: 599px) { .box { padding: 24px 20px; } }

/* ---------- Bio ---------- */
.photo { width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.photo img { width: 100%; height: auto; }

/* ---------- Checklist ---------- */
.check { display: flex; flex-direction: column; gap: 22px; width: 100%; text-align: left; }
.check li { display: flex; align-items: flex-start; gap: 16px; color: var(--text); font-size: clamp(1.4375rem, 3.4vw, 1.625rem); line-height: 1.45; font-weight: 500; }
.check li i { flex: none; color: var(--green); font-size: 2rem; margin-top: 2px; }
.check--plain { width: auto; max-width: 100%; }

/* ---------- Primo passo ---------- */
.h2--step { line-height: 1.25; }
.h2--step span { display: block; margin-top: 28px; }
.form__title { margin-top: 20px; font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 700; color: var(--text); }
.form-slot { width: 100%; min-height: 280px; display: grid; place-items: center; padding: 24px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--card); color: var(--body); }

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px; cursor: pointer; list-style: none; font-weight: 700; font-size: clamp(1.4375rem, 3.4vw, 1.625rem); line-height: 1.35; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; color: var(--red); font-size: 1.75rem; transition: transform 0.25s; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 24px 26px; }

/* ---------- Footer (come davideveneto.com) ---------- */
.foot { padding: 32px 20px; background: var(--bg-a); border-top: 1px solid var(--line); font-size: 1rem; }
.foot__in { max-width: 72rem; margin-inline: auto; display: flex; flex-direction: column; gap: 16px; align-items: center; text-align: center; }
.foot p { color: var(--body); line-height: 1.5; }
.foot__addr { margin-top: 4px; font-size: 0.9375rem; }
.foot a { color: var(--body); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
@media (min-width: 768px) {
  .foot__in { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Reveal: solo fade ---------- */
.js .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; transition: opacity 0.6s ease; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; }
  .js .reveal.in { transition: none; }
  .btn, .faq summary i { transition: none; }
}
