/* ===== SintaxError.dev — Theme: Terminal Elegance ===== */
/* Palette base: grigi neutri + accento verde terminale */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@500;600&family=Lato:wght@300;400;700&display=swap");

:root {
  --bg: #F2F2F2;
  --surface: #FFFFFF;
  --text: #0A0A0A;
  --text-weak: #444444;
  --primary: #303030;
  --primary-hover: #3D3D3D;
  --accent: #1E90FF;
  --accent-hover: #63B3FF;
  --border: #D4D4D4;
}

/* Reset di base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: Lato, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, "Noto Sans", Arial;
  line-height: 1.6;
}

/* ===== Link standard ===== */
a {
  color: #0000EE; /* blu classico per link testuali */
  text-decoration: underline;
  transition: color .15s ease;
}
a:hover {
  color: #551A8B; /* viola classico hover */
}



/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-family: Inter, Lato, sans-serif;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border: 2px solid var(--text);
  border-radius: 8px;
  position: relative;
}
.brand-mark::before {
  content: ">_";
  position: absolute;
  left: 4px;
  top: 0px;
  font-family: Inter, monospace;
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
}
.nav a {
  margin-left: 18px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.nav a:hover {
  color: var(--accent);
}

/* ===== Sezioni ===== */
.section { padding: 64px 24px; }
.section.narrow { padding: 32px 24px; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; }

/* ===== Hero ===== */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
}
h1 {
  font-family: Inter, Lato, sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 16px;
}
.tagline {
  font-size: 18px;
  color: var(--text-weak);
  margin-bottom: 18px;
}
.lead {
  max-width: 60ch;
  color: var(--text-weak);
  margin-bottom: 24px;
}

/* ===== Pulsante CTA ===== */
/* Uniforma <a class="cta"> e <button class="cta"> */
a.cta,
button.cta {
  display: inline-block;
  background: var(--primary);
  color: #E5E5E5; /* testo grigio chiaro */
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 600;
  font-family: Inter, Lato, sans-serif;
  padding: 12px 18px;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}

a.cta:hover,
button.cta:hover {
  background: var(--primary-hover);
  color: #FFFFFF;
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}

a.cta:focus,
button.cta:focus {
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}



/* ===== Hero Art pattern ===== */
.hero-art {
  position: relative;
  min-height: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(2,8,23,.06);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(transparent 58%, rgba(2,8,23,0.05) 60%) 0 0/24px 24px,
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(2,8,23,0.06) 46px 47px),
    repeating-linear-gradient(transparent 0 46px, rgba(2,8,23,0.06) 46px 47px);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.28), rgba(0,0,0,.12));
}

/* ===== Griglie ===== */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width:1024px) {
  .hero { grid-template-columns: 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width:680px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
}

/* ===== Card ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(2,8,23,.04);
}
.card h3 {
  margin: 0 0 8px;
  font-family: Inter, Lato, sans-serif;
}
.meta {
  color: var(--text-weak);
  font-size: 14px;
}

/* ===== Footer ===== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  margin-top: 24px;
}
.footer .columns {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 24px;
}
.small {
  font-size: 14px;
  color: var(--text-weak);
}
