/* ============================================================================== */
/*                                                                                */
/*                                    zx21.org                                    */
/*                                                                                */
/*    File          : style.css                                                   */
/*    Description   : Modern Landing Page Stylesheet for ZX21 Free School        */
/*    Author        : ZX21 <staff@zx21.org>                                       */
/*                                                                                */
/* ============================================================================== */

:root {
  --bg-deep:        #080b11;
  --bg-base:        #0d1117;
  --bg-surface:     #161b22;
  --bg-card:        #181e29;
  --bg-card-hover:  #212837;
  --border-subtle:  #262f40;
  --border-focus:   #3b4861;
  
  --text-main:      #f0f6fc;
  --text-muted:     #8b949e;
  --text-subtle:    #6e7681;
  
  --primary:        #f59e0b;
  --primary-hover:  #d97706;
  --primary-light:  #fcd34d;
  --accent-cyan:    #06b6d4;
  --accent-green:   #10b981;
  --accent-purple:  #8b5cf6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

/* NAVBAR FISSA */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.5rem;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 900;
  color: #080b11;
  font-size: 1.15rem;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

.brand-text h1 {
  font-size: 1.3rem;
  font-weight: 900;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -0.5px;
  color: var(--text-main);
  line-height: 1;
}

.brand-text span {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--primary);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text-main);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* HERO SECTION */
.hero {
  position: relative;
  padding: 5.5rem 1.5rem 4.5rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12) 0%, rgba(6, 182, 212, 0.05) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.dot-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
}

.hero h2 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.hero h2 span.gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 40%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.65;
}

.cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* PULSANTI */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #080b11;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
  color: #080b11;
}

.btn-ghost {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.btn-ghost:hover {
  background-color: var(--bg-card);
  border-color: var(--border-focus);
  color: #ffffff;
}

/* TERMINALE DI ANTEPRIMA */
.terminal-window {
  max-width: 780px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.terminal-header {
  background-color: #12161f;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; }
.dot-yellow { background-color: #eab308; }
.dot-green { background-color: #22c55e; }

.terminal-title {
  margin-left: 0.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: var(--text-subtle);
}

.terminal-body {
  padding: 1.25rem 1.5rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88rem;
  line-height: 1.7;
}

.term-line {
  margin-bottom: 0.35rem;
}

.term-cmd { color: #f59e0b; font-weight: bold; }
.term-out { color: var(--text-muted); }
.term-ok  { color: var(--accent-green); font-weight: bold; }

/* SEZIONI GLOBALI */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: block;
}

.section-head h3 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.section-head p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* GRIGLIA BLOCCHI DIDATTICI (MILESTONE) */
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.block-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.75rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.block-card:hover {
  background-color: var(--bg-card-hover);
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.block-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.block-number {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--primary);
  background-color: rgba(245, 158, 11, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.block-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-subtle);
}

.block-card h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.block-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.block-repo {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.block-repo code {
  color: var(--primary-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background-color: var(--bg-surface);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* SEZIONE METODO AI-LESS */
.method-box {
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.9), rgba(24, 30, 41, 0.95));
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 3rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.method-text h3 {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.method-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.method-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  border-radius: 10px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.feature-item h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.feature-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-deep);
  padding: 3.5rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

.footer-links-col h6 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  letter-spacing: 0.5px;
}

.footer-links-col ul {
  list-style: none;
  space-y: 0.4rem;
}

.footer-links-col li {
  margin-bottom: 0.4rem;
}

.footer-links-col a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .method-box {
    grid-template-columns: 1fr;
    padding: 2rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
}

/* HELPER STYLES PER PAGINE STATICHE SECONDARIE (PRIVACY ETC) */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.hero img.logo {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}
.band {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
}
.band h2 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.band ul {
  margin-left: 1.5rem;
  color: var(--text-muted);
  line-height: 1.8;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.grid article {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.5rem;
}
.grid article h3 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.grid article p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.muted {
  color: var(--text-subtle);
}

