/*
 * Landing pages: splash + scopri + legal.
 *
 * Filosofia: minimal, decisa, diretta - ma accattivante.
 * Tipografia generosa, molto spazio bianco, accent uniforme col resto.
 */

:root {
  --l-bg: #f9f8f4;
  --l-surface: #ffffff;
  --l-ink: #1f1f1f;
  --l-ink-2: #4a4a48;
  --l-ink-3: #8a8884;
  --l-rule: rgba(0,0,0,0.08);
  --l-accent: #b8410a;
  --l-accent-soft: rgba(184,65,10,0.07);
  --l-mente: #2a4d7a;
}

/* ============================================================
   SPLASH (la porta minimale a /)
   ============================================================ */

body.splash-body {
  margin: 0;
  background: var(--l-bg);
  color: var(--l-ink);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.splash .brand {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--l-ink);
  margin: 0 0 0.4rem 0;
  line-height: 1;
}
.splash .brand .dot { color: var(--l-accent); }

.splash .tagline {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--l-ink-3);
  margin-bottom: 1.7rem;
  max-width: 540px;
  line-height: 1.5;
}

.model-disclosure {
  margin: 0 0 2.6rem;
  max-width: 620px;
}
.model-disclosure-label {
  color: var(--l-ink-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.model-list {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.8rem 0 0.7rem;
  flex-wrap: wrap;
}
.model-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.45rem 0.72rem;
  border: 1px solid var(--l-rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--l-ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
.model-chip .model-provider {
  color: var(--l-ink-3);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.model-chip strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
}
.model-disclosure p {
  margin: 0;
  color: var(--l-ink-3);
  font-size: 0.78rem;
  line-height: 1.5;
}

.splash .doors {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.splash .door {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 230px;
  height: 130px;
  border: 1px solid var(--l-ink);
  border-radius: 4px;
  background: var(--l-surface);
  color: var(--l-ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.18s ease;
  position: relative;
  overflow: hidden;
}
.splash .door .sub {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  font-style: normal;
  color: var(--l-ink-3);
  margin-top: 0.35rem;
  letter-spacing: 0;
}
.splash .door:hover {
  background: var(--l-ink);
  color: var(--l-surface);
  transform: translateY(-2px);
}
.splash .door:hover .sub { color: rgba(255,255,255,0.7); }

.splash .door.primary {
  background: var(--l-accent);
  border-color: var(--l-accent);
  color: white;
}
.splash .door.primary .sub { color: rgba(255,255,255,0.78); }
.splash .door.primary:hover {
  background: var(--l-ink);
  border-color: var(--l-ink);
}

.splash .signup-hint {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--l-ink-3);
}
.splash .signup-hint a {
  color: var(--l-accent);
  text-decoration: none;
  font-weight: 500;
}
.splash .signup-hint a:hover { text-decoration: underline; }

/* Mini-footer dello splash */
.splash-footer {
  border-top: 1px solid var(--l-rule);
  padding: 1rem 1.5rem;
  font-size: 0.72rem;
  color: var(--l-ink-3);
  text-align: center;
  background: var(--l-surface);
}
.splash-footer a { color: var(--l-ink-2); text-decoration: none; margin: 0 0.4rem; }
.splash-footer a:hover { color: var(--l-accent); }

/* ============================================================
   SCOPRI (vetrina informativa)
   ============================================================ */

.scopri-hero {
  padding: 5rem 1.5rem 4rem 1.5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--l-surface) 0%, var(--l-bg) 100%);
  border-bottom: 1px solid var(--l-rule);
}
.scopri-hero h1 {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto 1.4rem auto;
  line-height: 1.1;
  color: var(--l-ink);
}
.scopri-hero .eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--l-accent);
  margin-bottom: 1.2rem;
}
.scopri-hero p {
  font-size: 1.25rem;
  color: var(--l-ink-2);
  max-width: 640px;
  margin: 0 auto 2.2rem auto;
  line-height: 1.55;
}
.scopri-hero .cta-row {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}
.scopri-hero .cta-row .btn {
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: 3px;
}

/* Sezioni alternanti */
.scopri-section {
  padding: 5rem 1.5rem;
}
.scopri-section.alt { background: var(--l-surface); border-top: 1px solid var(--l-rule); border-bottom: 1px solid var(--l-rule); }
.scopri-section .container { max-width: 1080px; margin: 0 auto; }
.scopri-section h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
  font-weight: 600;
  color: var(--l-ink);
}
.scopri-section .intro {
  font-size: 1.05rem;
  color: var(--l-ink-2);
  max-width: 680px;
  margin: 0 0 2.5rem 0;
  line-height: 1.55;
}

/* Pillars grid */
.scopri-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.scopri-pillar {
  border-top: 2px solid var(--l-accent);
  padding-top: 1.2rem;
}
.scopri-pillar .code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--l-ink-3);
  text-transform: uppercase;
}
.scopri-pillar h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0.4rem 0 0.5rem 0;
  color: var(--l-ink);
  font-weight: 600;
}
.scopri-pillar .motto {
  font-style: italic;
  color: var(--l-accent);
  margin-bottom: 0.7rem;
  font-size: 0.92rem;
}
.scopri-pillar p {
  font-size: 0.92rem;
  color: var(--l-ink-2);
  line-height: 1.6;
  margin: 0;
}

/* How it works (numbered list) */
.scopri-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  counter-reset: step;
}
.scopri-step {
  position: relative;
  padding-top: 2.5rem;
}
.scopri-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--l-accent);
  opacity: 0.4;
  line-height: 1;
}
.scopri-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.4rem 0;
  font-weight: 600;
}
.scopri-step p {
  margin: 0;
  color: var(--l-ink-2);
  line-height: 1.55;
  font-size: 0.92rem;
}

/* Final CTA */
.scopri-cta-block {
  padding: 5rem 1.5rem;
  text-align: center;
  background: var(--l-ink);
  color: var(--l-surface);
}
.scopri-cta-block h2 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 0 0 1rem 0;
  color: white;
}
.scopri-cta-block p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 2rem auto;
}
.scopri-cta-block .cta-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.scopri-cta-block .btn {
  background: var(--l-accent);
  border-color: var(--l-accent);
  color: white;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
}
.scopri-cta-block .btn:hover {
  background: white;
  color: var(--l-ink);
  border-color: white;
}
.scopri-cta-block .btn.ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: white;
}
.scopri-cta-block .btn.ghost:hover {
  background: white;
  color: var(--l-ink);
}

/* ============================================================
   LEGAL (pagina legale completa)
   ============================================================ */

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem 1.5rem;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0 0 0.6rem 0;
}
.legal-page .last-updated {
  font-size: 0.85rem;
  color: var(--l-ink-3);
  margin-bottom: 2.5rem;
  font-family: var(--font-mono);
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 3rem 0 0.8rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--l-rule);
}
.legal-page h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 1.5rem; }
.legal-page h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 1.8rem 0 0.5rem 0;
}
.legal-page p, .legal-page ul, .legal-page ol {
  color: var(--l-ink);
  line-height: 1.65;
  font-size: 0.95rem;
  margin: 0.7rem 0;
}
.legal-page ul, .legal-page ol { padding-left: 1.4rem; }
.legal-page li { margin-bottom: 0.3rem; }
.legal-page address {
  font-style: normal;
  background: var(--l-surface);
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--l-mente);
  margin: 1rem 0;
  font-size: 0.92rem;
  line-height: 1.55;
}
.legal-page code {
  font-family: var(--font-mono);
  background: var(--l-surface);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.85em;
}
.legal-page .toc {
  background: var(--l-surface);
  border: 1px solid var(--l-rule);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2.5rem;
  border-radius: 4px;
}
.legal-page .toc h2 { margin: 0 0 0.6rem 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--l-ink-3); border: 0; padding: 0; font-family: var(--font-body); font-weight: 500; }
.legal-page .toc ol { list-style: decimal; margin: 0; padding-left: 1.4rem; }
.legal-page .toc a { color: var(--l-ink-2); text-decoration: none; font-size: 0.9rem; }
.legal-page .toc a:hover { color: var(--l-accent); }

.legal-disclaimer {
  background: #fff3e0;
  border-left: 3px solid var(--l-accent);
  padding: 1rem 1.2rem;
  margin: 2rem 0;
  font-size: 0.88rem;
  color: var(--l-ink-2);
}

/* ============================================================
   FOOTER comune (legal + sede + link)
   ============================================================ */

.site-footer-legal {
  background: var(--l-ink);
  color: rgba(255,255,255,0.65);
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  font-size: 0.78rem;
  line-height: 1.55;
  margin-top: 4rem;
}
.site-footer-legal .container {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.site-footer-legal .col h4 {
  color: rgba(255,255,255,0.92);
  font-family: var(--font-body);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.7rem 0;
  font-weight: 600;
}
.site-footer-legal a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  display: block;
  padding: 0.15rem 0;
}
.site-footer-legal a:hover { color: white; }
.site-footer-legal .copyright {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}

/* Responsive */
@media (max-width: 720px) {
  .splash .brand { font-size: 2.8rem; }
  .splash { justify-content: flex-start; padding-top: 3rem; }
  .splash .tagline { font-size: 1.05rem; margin-bottom: 1.4rem; }
  .model-disclosure { margin-bottom: 2rem; }
  .model-disclosure-label { font-size: 0.68rem; }
  .model-disclosure p { max-width: 330px; }
  .splash .door { width: 100%; max-width: 280px; }
  .scopri-hero h1 { font-size: 2.2rem; }
  .scopri-hero p { font-size: 1rem; }
  .scopri-section { padding: 3rem 1rem; }
  .scopri-section h2 { font-size: 1.6rem; }
  .scopri-cta-block { padding: 3rem 1rem; }
  .scopri-cta-block h2 { font-size: 1.7rem; }
  .site-footer-legal .container { grid-template-columns: 1fr; }
  .legal-page { padding: 2rem 1rem 3rem 1rem; }
  .legal-page h1 { font-size: 1.7rem; }
}
