/* BaseForce — static homepage
   Palette ed Inter font ricavati dall'export Elementor originale:
   dark #1d2327 / #2c3338, accento viola #5432df, testo #f0f0f1 / #9aa5b0 */

:root {
  --bg-dark: #1d2327;
  --bg-light: #2c3338;
  --text: #f0f0f1;
  --text-muted: #9aa5b0;
  --accent: #5432df;
  --accent-hover: #4526b8;
  --max-width: 1120px;
  --narrow-width: 760px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* scala di spaziatura: ogni margine/padding del sito usa uno di questi valori */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  /* card: stile condiviso da icon-box e process-card */
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.07);
  --card-radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap.narrow {
  max-width: var(--narrow-width);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(29, 35, 39, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  border-radius: 6px;
}

.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* Sections */

.section {
  padding: var(--space-6) 0;
}

.section-dark { background: var(--bg-dark); }
.section-light { background: var(--bg-light); }

/* Gerarchia tipografica:
   h1 hero > h2 titolo di sezione (grande, bianco, bold) > h3 titolo di card (piccolo, bianco, semibold)
   > paragrafo (grigio muted) con <strong> bianco per i punti chiave. */

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 var(--space-2);
  letter-spacing: -0.01em;
}

.hero h1 {
  font-size: 56px;
  text-align: center;
}

.section h2 {
  font-size: 40px;
  text-align: center;
}

.section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.section p {
  margin: 0 0 var(--space-2);
  color: var(--text-muted);
  font-size: 17px;
}

.section p strong {
  color: var(--text);
  font-weight: 700;
}

.hero { text-align: center; padding-top: 110px; padding-bottom: var(--space-6); }

.lede {
  font-size: 18px;
}

.center { text-align: center; }

.muted { color: var(--text-muted); }

/* Tutti i blocchi narrativi (narrow) sono centrati: titolo, paragrafi, CTA */

.wrap.narrow,
.wrap.narrow p {
  text-align: center;
}

/* Buttons */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  border-radius: 8px;
  padding: 20px 40px;
  margin-top: var(--space-4);
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-small {
  font-size: 14px;
  padding: 10px 20px;
  margin-top: 0;
}

/* CTA a tutta larghezza di testo, sempre centrate sotto il loro blocco */

.btn-cta {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Stats */

.stats-row {
  display: flex;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
  margin-top: var(--space-5);
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.stat-number {
  font-size: 44px;
  font-weight: 700;
  color: var(--text);
}

.stat-accent { color: var(--accent); }

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* Icon grid — layout a 3 colonne che si centra da sola sull'ultima riga
   (es. 5 elementi = 3 + 2 centrati, mai 4 + 1 sbilanciato) */

.icon-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.icon-box {
  flex: 1 1 300px;
  max-width: 340px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: var(--space-3);
}

.icon-box .icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  margin-bottom: var(--space-2);
}

.icon-box .icon svg {
  width: 24px;
  height: 24px;
}

.icon-box p {
  font-size: 15px;
  margin: 0;
}

/* Callout: citazione in evidenza, bordo laterale accent */

.callout {
  margin-top: var(--space-4);
  padding: var(--space-3);
  border-left: 3px solid var(--accent);
  background: var(--card-bg);
  border-radius: 0 12px 12px 0;
}

.callout p {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: var(--space-2);
  color: var(--text-muted);
}

.callout p:last-child { margin-bottom: 0; }
.callout p strong { color: var(--text); }

/* Process card: stesso linguaggio visivo delle icon-box, per coerenza */

.process-card {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
}

/* Sequenza numerata: ogni step è una riga numero + testo, letta dall'alto in basso */

.process-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 480px;
  counter-reset: step;
}

.process-steps li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-align: left;
  font-size: 15px;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--card-border);
}

.process-steps li:last-child {
  border-bottom: none;
}

.step-number {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

/* selettore con due classi: deve vincere su ".section p", che altrimenti
   sovrascrive margin-left/right e vanifica il centraggio */
.section p.emphasis {
  text-align: center;
  text-wrap: balance;
  max-width: 560px;
  margin: var(--space-5) auto 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--card-border);
}

/* Story grid */

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.story h3 { text-align: left; }

.story p {
  font-size: 15px;
  text-align: left;
}

/* Footer */

.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--space-3) 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-logo {
  border-radius: 6px;
  opacity: 0.8;
}

.footer-inner a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-inner p { margin: 0; }

/* Accessibility: focus visibility */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Responsive */

@media (max-width: 720px) {
  .section { padding: var(--space-4) 0; }
  .hero { padding-top: var(--space-5); padding-bottom: var(--space-4); }
  .hero h1 { font-size: 34px; }
  .section h2 { font-size: 28px; }
  .lede { font-size: 16px; }
  .section p { font-size: 16px; }
  .stats-row { gap: var(--space-3); }
  .stat-number { font-size: 32px; }
  .btn { padding: 16px 28px; font-size: 16px; }
  .callout p { font-size: 17px; }

  /* Header mobile: solo logo, niente scritta "BaseForce", CTA compatta */
  .brand-name { display: none; }
  .header-inner .btn-small {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* Tutto il testo centrato anche nelle griglie non-narrow (story-grid) */
  .story h3,
  .story p {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
