/* HypeFox, le pagine di confronto (/vs/, /vs/<concorrente>/, /best-faceless-video-generators/ e le italiane sotto /it/),
   22/10/2026. Si carica dopo stile.css: usa i suoi colori, la tabella .confronto, .carte, .domande, .finale.
   Le pagine sono generate da ../confronti/genera.py. */

/* ---------- testa ---------- */
/* niente pallino sopra il titolo (Mattia, 27/10: «molto AI slop»): il titolo parte alla stessa altezza della landing */
.vs-testa { padding-top: 132px; text-align: center; }
.vs-testa h1 { font-size: clamp(44px, 7vw, 100px); line-height: 1.02; font-weight: 800; letter-spacing: -.045em; text-wrap: balance; }
.vs-testa h1 em { font-style: normal; color: var(--accent); }
.vs-testa h1 .vs { display: inline-block; font-size: .42em; font-weight: 800; letter-spacing: 0; color: var(--accent); background: var(--accent-soft); padding: .16em .5em .2em; border-radius: 99px; vertical-align: .42em; margin: 0 .12em; }
.vs-testa .sub { max-width: 780px; margin: 24px auto 0; font-size: 20px; line-height: 1.5; color: var(--muted); font-weight: 500; text-wrap: balance; }
.vs-testa .ctas { justify-content: center; }
.vs-sez { padding-top: 120px; }

/* ---------- chi vince cosa ---------- */
.vs-verdetto { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; align-items: stretch; }
.vs-lato { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 32px 32px 28px; }
.vs-lato.noi { border: 2px solid var(--accent); box-shadow: 0 24px 60px rgba(232, 70, 30, .10); }
.vs-lato h3 { font-size: 15px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.vs-lato.noi h3 { color: var(--accent); }
.vs-punti { display: grid; gap: 18px; margin: 20px 0 28px; }
.vs-punti li { position: relative; padding-left: 34px; }
.vs-punti li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%236b635a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.vs-punti.noi li::before { background: var(--accent-soft) 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='%23e8461e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.vs-punti b { display: block; font-size: 21px; line-height: 1.22; font-weight: 800; letter-spacing: -.025em; }
.vs-punti span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); font-weight: 500; }
.vs-scegli { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); font-size: 16.5px; line-height: 1.45; font-weight: 700; }
.vs-scegli small { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* ---------- la tabella delle funzioni (tre colonne) ---------- */
.vs-tab { max-width: 1000px; }
.vs-tab .confronto .c-vuota { width: 30%; }
.vs-tab .confronto thead th { text-align: left; }
.vs-tab .confronto tbody td { text-align: left; vertical-align: top; font-size: 14.5px; line-height: 1.4; font-weight: 600; }
.vs-tab .confronto tbody th { vertical-align: top; }
.vs-v { display: flex; align-items: flex-start; gap: 9px; }
.vs-v.nd { color: var(--faint); font-weight: 600; }
.vs-v.no { color: var(--muted); }
.vs-ic { flex: none; display: inline-block; width: 20px; height: 20px; border-radius: 50%; margin-top: -1px; }
.vs-ic.c-si { width: 20px; height: 20px; background-size: 12px; }
.vs-x { background: var(--bg2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7 7 17' fill='none' stroke='%239c9288' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.vs-pt { background: radial-gradient(circle, var(--line2) 0 4px, transparent 4.5px); }
.vs-trat { background: linear-gradient(var(--faint), var(--faint)) center / 9px 2px no-repeat; }
.vs-rif { margin-left: 3px; font-size: 10.5px; font-weight: 700; line-height: 0; white-space: nowrap; }
.vs-rif a { color: var(--faint); }
.vs-rif a:hover { color: var(--accent); }
.vs-legenda { display: flex; align-items: center; gap: 8px; max-width: 1000px; margin: 14px auto 0; font-size: 13.5px; color: var(--faint); font-weight: 600; }
.vs-legenda + .vs-legenda { margin-top: 6px; }

/* ---------- prezzi ---------- */
.vs-prezzi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; align-items: start; }
.vs-listino { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 28px 28px 24px; }
.vs-listino.noi { border: 2px solid var(--accent); }
.vs-listino h3 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; }
.vs-righe { margin-top: 14px; }
.vs-riga { display: grid; grid-template-columns: 110px 150px minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--line); align-items: baseline; }
.vs-riga b { font-size: 15.5px; font-weight: 800; }
.vs-p { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; }
.vs-p small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--faint); letter-spacing: 0; }
.vs-c { font-size: 14.5px; line-height: 1.45; color: var(--muted); font-weight: 600; }
.vs-nota { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.5; color: var(--faint); font-weight: 600; }

/* ---------- fonti e altri confronti ---------- */
.vs-fondo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.vs-fondo h2 { font-size: 24px; font-weight: 800; letter-spacing: -.025em; }
.vs-fonti-sub { margin-top: 6px; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.vs-fonti { margin-top: 22px; padding-left: 22px; display: grid; gap: 9px; font-size: 14.5px; line-height: 1.45; }
.vs-fonti li { padding-left: 4px; color: var(--faint); font-weight: 700; scroll-margin-top: 96px; }
.vs-fonti li:target { color: var(--accent); }
.vs-fonti a { color: var(--text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.vs-fonti a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.vs-fonti span { display: block; font-size: 12.5px; font-weight: 600; color: var(--faint); overflow-wrap: anywhere; }
.vs-avviso { margin-top: 22px; font-size: 13.5px; line-height: 1.55; color: var(--faint); font-weight: 600; }
.vs-altri { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.vs-altri a { padding: 8px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 700; transition: border-color .2s, color .2s; }
.vs-altri a:hover { border-color: var(--accent); color: var(--accent); }
.vs-su { display: grid; gap: 8px; margin-top: 22px; font-size: 15px; font-weight: 800; }
.vs-su a { color: var(--accent); }
.vs-su a:hover { color: var(--accent-dark); }

/* ---------- indice ---------- */
.vs-gruppo + .vs-gruppo { margin-top: 72px; }
.vs-gruppo h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.vs-gruppo > p { margin-top: 8px; font-size: 17px; color: var(--muted); font-weight: 500; }
.vs-elenco { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.vs-scheda { display: flex; flex-direction: column; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px 22px 22px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.vs-scheda:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 18px 40px var(--shadow); }
.vs-scheda > b { font-size: 24px; font-weight: 800; letter-spacing: -.03em; }
.vs-scheda > p { font-size: 14.5px; line-height: 1.45; color: var(--muted); font-weight: 500; margin-top: -4px; }
.vs-m { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; font-weight: 700; }
.vs-m small { display: block; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.vs-m.noi small { color: var(--accent); }
.vs-vai { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 800; color: var(--accent); }

/* ---------- i migliori ---------- */
.vs-migliori { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.vs-meglio { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 24px 24px 22px; }
.vs-meglio small { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.vs-meglio h3 { margin-top: 4px; font-size: 21px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.vs-nomi { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.vs-nomi a { padding: 5px 11px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; font-weight: 800; }
.vs-nomi a.noi { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vs-nomi a:not(.noi):hover { border-color: var(--accent); color: var(--accent); }
.vs-meglio p { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--muted); font-weight: 500; }
.vs-panoramica { max-width: 1248px; }
.vs-panoramica .confronto { table-layout: auto; }
.vs-panoramica .confronto thead th { position: static; text-align: left; font-size: 13px; font-weight: 800; color: var(--muted); padding: 14px 12px; }
.vs-panoramica .confronto tbody th, .vs-panoramica .confronto tbody td { text-align: left; padding: 14px 12px; font-size: 14.5px; }
.vs-panoramica .confronto tbody th a { font-weight: 800; }
.vs-panoramica .confronto tbody th a:hover { color: var(--accent); }
.vs-panoramica tr.c-forte th, .vs-panoramica tr.c-forte td { background: #fcefe8; }
.vs-noi { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 800; font-style: normal; vertical-align: 2px; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .vs-elenco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-migliori { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-prezzi { grid-template-columns: minmax(0, 1fr); max-width: 680px; margin-left: auto; margin-right: auto; }
}

/* ---------- telefono ---------- */
@media (max-width: 720px) {
  .vs-testa { padding-top: 72px; }
  .vs-testa h1 { font-size: clamp(40px, 12vw, 56px); }
  .vs-testa .sub { font-size: 17.5px; margin-top: 18px; }
  .vs-testa .ctas .btn { width: 100%; max-width: 360px; }
  .vs-sez { padding-top: 84px; }
  .vs-verdetto { grid-template-columns: minmax(0, 1fr); margin-top: 32px; gap: 16px; }
  .vs-lato { padding: 24px 20px 22px; border-radius: 24px; }
  .vs-punti b { font-size: 19px; }
  /* la tabella a tre colonne sta nello schermo: niente scorrimento di lato */
  .vs-tab.confronto-scorri { overflow-x: visible; margin: 32px 0 0; padding: 0; }
  .vs-tab .confronto { width: 100%; }
  .vs-tab .confronto .c-vuota { width: 30%; }
  .vs-tab .confronto thead th, .vs-tab .confronto thead td { padding: 12px 6px; }
  .vs-tab .confronto tbody th { padding: 12px 8px 12px 0; font-size: 13px; line-height: 1.35; }
  .vs-tab .confronto tbody td { padding: 12px 6px; font-size: 13px; line-height: 1.35; }
  .vs-tab .c-nome { font-size: 15px; }
  .vs-tab .vs-v { gap: 6px; }
  .vs-tab .vs-ic { width: 16px; height: 16px; margin-top: 0; }
  .vs-tab .vs-ic.c-si { background-size: 10px; }
  .vs-legenda { align-items: flex-start; }
  .vs-listino { padding: 22px 18px 18px; border-radius: 24px; }
  .vs-riga { grid-template-columns: minmax(0, 1fr) auto; }
  .vs-riga .vs-p { text-align: right; }
  .vs-riga .vs-c { grid-column: 1 / -1; }
  .vs-fondo { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .vs-elenco, .vs-migliori { grid-template-columns: minmax(0, 1fr); }
  .vs-gruppo + .vs-gruppo { margin-top: 56px; }
  .vs-elenco { margin-top: 32px; }
  .vs-panoramica .confronto { width: 1120px; }
}
.vs-legenda a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.vs-legenda a:hover { color: var(--accent); }
