/* Stile ricavato dal portfolio di Computer Lab Digital Solution:
   fondo nero, griglia leggera, titoli stretti, pulsanti a pillola,
   accento blu-azzurro (#0818c5 → #6acbf1). Nessuna dipendenza esterna. */

:root {
  --bg: #030303;
  --surface: #0d0e13;
  --surface-2: #090a0e;
  --text: #f7f7f8;
  --muted: #9a9eaa;
  --line: #252731;
  --accent-from: #0818c5;
  --accent-to: #6acbf1;
  --ok: #65e6bd;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent-from); color: #fff; }

.container { width: min(1380px, calc(100% - 48px)); margin-inline: auto; }

/* Intestazione */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgba(0, 0, 0, 0.77);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 72px; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 2rem; color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.nav-links a:hover { color: #fff; }

/* Pulsanti a pillola */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}
.pill:hover { transform: translateY(-2px); }
.pill-solid { background: #fff; color: #111; }
.pill-ghost { border: 1px solid #31343e; color: #fff; }
.pill-ghost:hover { border-color: #6b6f7c; }
.pill-outline { border: 1px solid rgba(255, 255, 255, 0.6); padding: 0.6rem 1.3rem; font-weight: 500; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 16px var(--ok); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  /* Allineato al contenitore dell'intestazione */
  padding: 9rem max(24px, calc((100% - 1380px) / 2)) 5rem;
  background: radial-gradient(circle at 70% 45%, rgba(0, 174, 255, 0.12), transparent 40%), var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
  pointer-events: none;
}
.hero-copy, .hero-visual { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 650;
}
.hero h1 em, .section-title em {
  font-family: Georgia, serif;
  font-weight: 300;
  background: linear-gradient(100deg, var(--accent-from), var(--accent-to));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.intro { max-width: 640px; margin-top: 1.8rem; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.7; color: #a7aab4; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }

.hero-visual img {
  width: 100%;
  border-radius: clamp(24px, 2.5vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 35px 75px rgba(0, 0, 0, 0.42), 0 25px 115px rgba(34, 112, 255, 0.22);
}

/* Sezioni */
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-alt { background: var(--surface-2); border-block: 1px solid #16171d; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-title {
  max-width: 900px;
  font-size: clamp(2.4rem, 5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 500;
}
.section-side { max-width: 440px; color: rgba(255, 255, 255, 0.6); font-size: 1.05rem; line-height: 1.6; }
.small { margin-top: 1rem; font-size: 0.88rem; color: var(--muted); }
.small a, .card a:not(.pill) { color: var(--accent-to); border-bottom: 1px solid rgba(106, 203, 241, 0.4); }

/* Download */
.downloads { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.5rem; }
.card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid #22242c;
}
.card h3 { font-size: 2rem; letter-spacing: -0.04em; font-weight: 550; }
.card p { color: rgba(255, 255, 255, 0.62); }
.card-primary {
  border-color: rgba(106, 203, 241, 0.35);
  background: linear-gradient(160deg, rgba(8, 24, 197, 0.18), rgba(13, 14, 19, 1) 55%);
}
.card .pill { margin-top: 0.5rem; }
.badge {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(101, 230, 189, 0.14);
  color: var(--ok);
}
.badge-muted { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.notice {
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 196, 0, 0.3);
  background: rgba(255, 196, 0, 0.06);
  font-size: 0.85rem;
  color: #e9d9a6 !important;
}

/* Passi */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.step-index { display: block; margin-bottom: 1.5rem; color: rgba(255, 255, 255, 0.45); font-size: 0.72rem; letter-spacing: 0.18em; }
.steps h3, .features h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -0.05em; font-weight: 500; line-height: 1.05; }
.steps p, .features p { margin-top: 1rem; color: rgba(255, 255, 255, 0.58); line-height: 1.6; }

/* Caratteristiche */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.features article { padding: clamp(1.5rem, 3vw, 2.5rem); background: var(--bg); }

/* Tabella per l'IT */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 1rem 1.2rem; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--accent-to); }

/* Piè di pagina, come nel portfolio */
.site-footer { padding: 5rem 0 2rem; background: var(--surface-2); border-top: 1px solid #20222a; }
.footer-lead { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding-bottom: 4rem; border-bottom: 1px solid var(--line); }
.footer-lead span { font-size: clamp(2.5rem, 7vw, 6.5rem); font-weight: 600; letter-spacing: -0.07em; line-height: 1; }
.footer-lead a { border-bottom: 1px solid #fff; padding-bottom: 0.35rem; white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; padding: 3.5rem 0; }
.footer-grid > div { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-grid p, .footer-grid a, .footer-grid span { color: #92959e; max-width: 380px; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-grid b { margin-bottom: 0.5rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: #666; font-size: 0.78rem; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 7.5rem; }
  .section-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .downloads, .steps, .features { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .hero { padding-inline: 16px; }
  .actions { flex-direction: column; align-items: stretch; }
  .footer-lead { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}

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