/* GTaviani Venture Builder — venture.gtaviani.com
   Stesso impianto tecnico/architettura di variabili di aiagents.gtaviani.com,
   componenti nuovi per il verticale venture building (tabelle confronto,
   stepper a fasi, card progetti, layout landing a 2 colonne per Investors/Founders). */

:root {
  --color-primary: #014374;
  --color-primary-light: #025a9c;
  --color-secondary: #545454;
  --color-accent: #c99a3b;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7f9;
  --color-text: #1a1a1a;
  --color-border: #e2e2e2;
  --font-family-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-family-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: var(--color-primary); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

section {
  padding: 4rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

h1, h2, h3 { color: var(--color-primary); line-height: 1.2; }

section > h2 {
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: var(--color-secondary);
  font-size: 1.05rem;
}

.dark-section {
  background-color: var(--color-primary);
  color: #ffffff;
}
.dark-section h2, .dark-section h3 { color: #ffffff; }
.dark-section .section-intro { color: #cfe0ee; }

.alt-section {
  background-color: var(--color-bg-alt);
  /* full-bleed: lo sfondo copre tutta la larghezza della viewport anche se il
     contenuto resta dentro var(--max-width) (section ha margin:0 auto) */
  box-shadow: 0 0 0 100vmax var(--color-bg-alt);
  clip-path: inset(0 -100vmax);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}
.btn-primary { background-color: var(--color-primary); color: #ffffff; }
.btn-primary:hover { background-color: var(--color-primary-light); }
.btn-primary-light { background-color: var(--color-primary-light); color: #ffffff; }
.btn-secondary { background-color: transparent; color: var(--color-primary); border: 1px solid var(--color-primary); }
.btn-white { background-color: #ffffff; color: var(--color-primary); }
.btn-accent { background-color: var(--color-accent); color: #1a1a1a; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo { height: 52px; }
.site-nav { display: flex; gap: 1.75rem; margin-left: auto; }
.site-nav a { color: var(--color-text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a.active { color: var(--color-primary); }
.nav-contact { flex-shrink: 0; padding: 0.6rem 1.4rem; font-size: 0.9rem; }
.nav-lang { display: flex; gap: 0.4rem; align-items: center; font-size: 0.85rem; margin-left: 0.5rem; }
.nav-lang a { color: var(--color-secondary); text-decoration: none; font-weight: 600; }
.nav-lang a.active { color: var(--color-primary); }

.nav-toggle-input { display: none; }
.nav-toggle-label { display: none; cursor: pointer; font-size: 1.25rem; margin-left: auto; }

@media (max-width: 860px) {
  .site-nav { display: none; width: 100%; flex-direction: column; gap: 0; order: 3; }
  .nav-toggle-input:checked ~ .site-nav { display: flex; }
  .nav-toggle-label { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav a { padding: 0.75rem 0; border-top: 1px solid var(--color-border); }
}

/* Hero */
.hero {
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  max-width: 880px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.25rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--color-secondary); margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Comparison / benchmark tables */
.table-wrap { overflow-x: auto; margin: 2rem 0; }
table.compare-table, table.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: #fff;
}
table.compare-table th, table.compare-table td,
table.benchmark-table th, table.benchmark-table td {
  border: 1px solid var(--color-border);
  padding: 0.9rem 1rem;
  text-align: left;
  font-size: 0.95rem;
}
table.compare-table th, table.benchmark-table th {
  background-color: var(--color-bg-alt);
  color: var(--color-primary);
}
table.compare-table tbody td,
table.benchmark-table tbody td {
  text-align: center;
}
table.compare-table tbody th,
table.benchmark-table tbody th {
  text-align: left;
}
table.compare-table thead th:not(:first-child),
table.benchmark-table thead th:not(:first-child) {
  text-align: center;
}
table.compare-table td:last-child, table.compare-table th:last-child,
table.benchmark-table td:last-child, table.benchmark-table th:last-child {
  background-color: #eef4f9;
  font-weight: 600;
}
.table-note { font-size: 0.85rem; color: var(--color-secondary); font-style: italic; margin-top: 0.75rem; }

/* Flow track — catena seriale delle fasi, tra il titolo e i box dettaglio dello stepper */
.flow-track {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  max-width: 880px;
  margin: 2rem auto 0;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 0 1 150px;
  min-width: 0;
}
.flow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.flow-label {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.25;
}
.flow-connector {
  flex: 1 1 auto;
  align-self: flex-start;
  height: 2px;
  min-width: 16px;
  background: var(--color-border);
  margin-top: 1.25rem;
}
@media (max-width: 640px) {
  .flow-track { flex-direction: column; align-items: center; gap: 0; }
  .flow-node { flex: none; }
  .flow-connector { width: 2px; height: 22px; min-width: 0; margin: 0; }
}

/* Stepper */
.stepper { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.step-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.75rem 1.5rem;
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }
.step-card p { color: var(--color-secondary); font-size: 0.92rem; margin: 0; }

/* Card grid (generic) */
.asset-screenshot { margin: 2rem auto 0; max-width: 1050px; }
.asset-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 45px rgba(1, 67, 116, 0.18);
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.spinoff-value-grid { grid-template-columns: 1fr; }
.offriamo-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) {
  .offriamo-grid { grid-template-columns: 1fr; }
}

/* Cosa include l'investimento: card "featured" con immagine grande + griglia box secondari (solo icona) */
.featured-investment-grid { display: flex; flex-direction: column; gap: 1.75rem; margin-top: 2rem; }
.featured-investment-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.75rem;
}
.featured-investment-card h3 { font-size: 1.2rem; margin: 0 0 0.6rem; }
.featured-investment-card p { color: var(--color-secondary); font-size: 0.95rem; margin: 0 0 1.25rem; }
.featured-investment-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 28px rgba(1, 67, 116, 0.14);
}
.secondary-investment-grid { margin-top: 1.75rem; opacity: 0.92; }
.secondary-investment-grid .card { padding: 1.25rem 1.5rem; }
.secondary-investment-grid .card i.card-icon { font-size: 1.4rem; margin-bottom: 0.6rem; }
.secondary-investment-grid .card h3 { font-size: 1rem; }
.secondary-investment-grid .card p { font-size: 0.88rem; margin: 0; }

/* Righe orizzontali con icona + titolo + testo (es. "Su chi investiamo") */
.vertical-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.vertical-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
}
.vertical-row i { font-size: 1.75rem; color: var(--color-primary); flex-shrink: 0; margin-top: 0.15rem; }
.vertical-row h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.vertical-row p { margin: 0; color: var(--color-secondary); font-size: 0.92rem; }

/* Checklist a righe (box impilati, icona + testo in linea) */
.check-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.1rem 1.4rem;
}
.check-row i { color: var(--color-primary); font-size: 1.1rem; margin-top: 0.2rem; flex-shrink: 0; }
.check-row p { margin: 0; color: var(--color-text); font-size: 0.95rem; }
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.75rem;
}
.card i.card-icon { font-size: 1.75rem; color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { font-size: 1.1rem; margin: 0 0 0.6rem; }
.card p { color: var(--color-secondary); font-size: 0.92rem; margin: 0 0 0.75rem; }
.card ul { color: var(--color-secondary); font-size: 0.92rem; margin: 0; padding-left: 1.15rem; }
.card ul li { margin-bottom: 0.5rem; }
.card ul li:last-child { margin-bottom: 0; }

/* Project cards */
.project-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.project-card .project-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}
.project-card h3 { margin: 0; font-size: 1.25rem; }
.project-card p { color: var(--color-secondary); margin: 0; }
.project-card .project-card-cta { align-self: center; margin-top: auto; }
.project-card-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.project-card-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.project-card-logo { flex: 0 0 auto; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; }
.project-card-logo img { max-width: 100px; max-height: 100px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 480px) {
  .project-card-body { flex-direction: column-reverse; align-items: center; text-align: left; }
  .project-card-text { align-items: flex-start; width: 100%; }
  .project-card-logo { margin-bottom: 0.25rem; }
}

/* Stat strip */
.stat-strip { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; margin: 2rem 0; }
.stat-item { text-align: center; min-width: 140px; }
.stat-number { display: block; font-size: 2rem; font-weight: 700; color: var(--color-primary); }
.dark-section .stat-number { color: #ffffff; }
.stat-label { font-size: 0.85rem; color: var(--color-secondary); }
.dark-section .stat-label { color: #cfe0ee; }
.stat-box { background: #ffffff; border-radius: 8px; padding: 1.5rem 1.75rem; min-width: 200px; }
.dark-section .stat-box .stat-number { color: var(--color-primary); }
.dark-section .stat-box .stat-label { color: var(--color-secondary); }
.fine-print { font-size: 0.8rem; color: #cfe0ee; margin-top: 1.5rem; }

/* FAQ accordion (native details/summary) */
.faq-category { margin-bottom: 2rem; }
.faq-category-title { font-size: 1.05rem; margin-bottom: 0.75rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  background: #fff;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.2rem;
  color: var(--color-primary);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0.75rem 0 0; color: var(--color-secondary); font-size: 0.93rem; }

/* Landing 2-column layout (Investors / Founders) */
.lp-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .lp-layout { grid-template-columns: 1fr; }
}
.lp-form-col { position: sticky; top: 6rem; }
.lp-form-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
}
.lp-form-card h3 { margin-top: 0; font-size: 1.1rem; }

/* Form contatti (mailto assemblato via JS, sito statico senza backend) */
.gtv-contact-form { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 0.5rem; }
.gtv-contact-form label { font-weight: 600; font-size: 0.88rem; color: var(--color-text); margin-bottom: 0.35rem; display: block; }
.gtv-contact-form input[type="text"],
.gtv-contact-form input[type="email"],
.gtv-contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  box-sizing: border-box;
}
.gtv-contact-form textarea { resize: vertical; min-height: 110px; }
.gtv-contact-form input:focus, .gtv-contact-form textarea:focus { outline: 2px solid var(--color-primary-light); outline-offset: 1px; }
.gtv-contact-form .btn { align-self: flex-start; }
.gtv-hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gtv-form-note { font-size: 0.8rem; color: var(--color-secondary); margin: 0.25rem 0 0; }
.tally-embed-wrap { min-height: 400px; }
.tally-embed-wrap iframe { width: 100%; border: none; }

/* Numbers/proof box */
.proof-box {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  padding: 1.5rem 1.75rem;
  border-radius: 4px;
  margin: 2rem 0;
}
.proof-box p { margin: 0; color: var(--color-text); }

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: #dce8f1;
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-logo { height: 32px; filter: brightness(0) invert(1); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: #dce8f1; text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.footer-legal {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  font-size: 0.8rem;
  color: #a9c2d6;
}
.footer-legal p { margin: 0.25rem 0; }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 1rem;
  right: 1rem;
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.16);
  padding: 1.25rem 1.5rem;
  z-index: 200;
  transition: bottom 0.4s ease;
}
.cookie-banner.show { bottom: 1rem; }
.cookie-banner p { font-size: 0.85rem; color: var(--color-secondary); margin: 0 0 1rem; }
.cookie-banner-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }
.cookie-banner .btn { padding: 0.55rem 1.25rem; font-size: 0.85rem; }

@media (max-width: 480px) {
  .hero { padding-top: 3rem; }
  section { padding: 3rem 1.25rem; }
}

/* Thank-you modal: mostrato in Home dopo redirect da form Tally (Investors/Founders),
   riconosciuto dai parametri UTM del link di redirect (vedi main.js) */
.gtv-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 20, 34, 0.6);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.gtv-modal-overlay.show { display: flex; }
.gtv-modal-card {
  background: #ffffff;
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  padding: 2.25rem 2rem 2rem;
  position: relative;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.gtv-modal-icon { font-size: 2.5rem; color: var(--color-primary); margin-bottom: 1rem; }
.gtv-modal-card h3 { margin: 0 0 0.75rem; font-size: 1.4rem; }
.gtv-modal-card p { color: var(--color-secondary); font-size: 0.95rem; margin: 0 0 1.5rem; }
.gtv-modal-close-x {
  position: absolute;
  top: 0.85rem;
  right: 0.95rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--color-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}
