/* Token copiati dal tema scuro dell'app (shiva-fe/src/css/app.css): tenerli allineati. */
@font-face {
  font-family: Rubik;
  src: url('assets/fonts/Rubik-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --q-primary: #0097d1;
  --q-accent: #007871;
  --q-dark: #1c1f24;
  --app-page: #02020e;
  --app-surface: #0f171f;
  --app-surface-alt: #22262c;
  --app-border: #2e333b;
  --app-border-strong: #3b414b;
  --app-text: #e5e7eb;
  --app-text-muted: #9ca3af;
  --app-font: 'Rubik', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --app-radius: 10px;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  font-family: var(--app-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--app-text);
  background: var(--app-page);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--q-primary);
}

.container {
  width: min(1080px, 100% - 32px);
  margin-inline: auto;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--app-surface) 88%, transparent);
  border-bottom: 1px solid var(--app-border);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand img {
  display: block;
  width: 132px;
  height: auto;
}

.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  font-weight: 600;
  color: var(--app-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--app-text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-switch {
  display: flex;
  padding: 2px;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
}

.lang-switch a {
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--app-text-muted);
  text-decoration: none;
  border-radius: calc(var(--app-radius) - 3px);
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--app-text);
}

.lang-switch a[aria-current='page'] {
  color: var(--q-dark);
  background: var(--q-primary);
}

/* ============ Hero ============ */
.hero {
  padding: 96px 0 72px;
  background:
    radial-gradient(
      60% 80% at 50% 0%,
      color-mix(in srgb, var(--q-primary) 18%, transparent),
      transparent 70%
    ),
    radial-gradient(
      40% 50% at 50% 100%,
      color-mix(in srgb, var(--q-accent) 16%, transparent),
      transparent 70%
    );
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--q-primary);
}

h1 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 62ch;
  margin: 20px 0 32px;
  font-size: 18px;
  color: var(--app-text-muted);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--app-radius);
  transition: filter 0.2s ease;
}

.btn-primary {
  color: var(--q-dark);
  background: var(--q-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.1);
}

/* ============ Sections ============ */
.section {
  padding: 56px 0;
  border-top: 1px solid var(--app-border);
}

h2 {
  margin: 0 0 24px;
  text-align: center;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.section-lead {
  max-width: 62ch;
  margin: -12px auto 24px;
  text-align: center;
  color: var(--app-text-muted);
}

.video-frame {
  overflow: hidden;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  padding: 20px;
  text-align: center;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 650;
}

.card p {
  margin: 0;
  color: var(--app-text-muted);
}

.note {
  max-width: 80ch;
  margin: 24px auto 0;
  font-size: 14px;
  color: var(--app-text-muted);
  text-align: center;
}

.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.audience li {
  padding: 20px;
  text-align: center;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-top: 3px solid var(--q-primary);
  border-radius: var(--app-radius);
}

.audience strong {
  display: block;
  font-weight: 650;
}

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

/* ============ Footer ============ */
.site-footer {
  padding: 24px 0;
  font-size: 14px;
  color: var(--app-text-muted);
  text-align: center;
  border-top: 1px solid var(--app-border);
}

@media (max-width: 560px) {
  .nav {
    gap: 12px;
    font-size: 14px;
  }

  .header-actions {
    gap: 12px;
  }

  .brand img {
    width: 108px;
  }

  .hero {
    padding: 64px 0 48px;
  }
}

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