/* ================================
   RESET
   ================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================================
   VARIABILI
   ================================ */
:root {
  --dco-red:       #bb3232;
  --dco-red-dark:  #6e1414;

  --dco-bg:        #111111;
  --dco-surface:   #1c1c1c;
  --dco-card:      #252525;
  --dco-border:    rgba(255, 255, 255, 0.07);

  --dco-text:      #f0f0f0;
  --dco-muted:     rgba(255, 255, 255, 0.45);
  --dco-label:     rgba(255, 255, 255, 0.28);

  --angle:  6deg;
  --nav-h:  52px;
}

/* ================================
   BODY
   ================================ */
body {
  min-height: 100vh;
  font-family: "Exo 2", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--dco-bg);
  color: var(--dco-text);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-top: var(--nav-h);
  isolation: isolate;
}

a { color: inherit; }

/* ================================
   TOP NAV
   ================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--dco-surface);
  border-bottom: 1px solid var(--dco-border);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 4px;
}

.topbar-brand {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--dco-muted);
  margin-right: 20px;
  flex-shrink: 0;
  transition: color 0.2s;
}

.topbar-brand strong {
  color: var(--dco-red);
  font-weight: 700;
}

.topbar-brand:hover {
  color: var(--dco-text);
}

.topbar-nav {
  display: flex;
  align-items: center;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar-nav::-webkit-scrollbar {
  display: none;
}

.topbar-link {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 14px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dco-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}

.topbar-link:hover {
  color: var(--dco-text);
}

.topbar-link--active {
  color: var(--dco-text);
  border-bottom-color: var(--dco-red);
}

.topbar-discord {
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 18px;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dco-red);
  border: 1px solid var(--dco-red);
  transform: skewX(calc(-1 * var(--angle)));
  transition: background 0.2s, color 0.2s;
}

.topbar-discord span {
  display: inline-block;
  transform: skewX(var(--angle));
}

.topbar-discord:hover {
  background: var(--dco-red);
  color: #fff;
}

/* ================================
   HERO (HOME)
   ================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: calc(100vh - var(--nav-h));
  padding: clamp(60px, 8vw, 100px) clamp(32px, 6vw, 100px);
}

.hero-label {
  display: block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dco-red);
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--dco-muted);
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

/* ================================
   HERO (PAGINE INTERNE)
   ================================ */
.hero--page {
  padding: clamp(48px, 6vw, 80px) clamp(32px, 6vw, 100px) clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--dco-border);
}

/* ================================
   BOTTONI
   ================================ */
.btn {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 26px;
  transform: skewX(calc(-1 * var(--angle)));
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.btn span {
  display: inline-block;
  transform: skewX(var(--angle));
}

.btn--primary {
  background: var(--dco-red);
  color: #fff;
}

.btn--primary:hover {
  opacity: 0.85;
}

.btn--ghost {
  background: transparent;
  color: var(--dco-text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.45);
}

/* ================================
   WIP BADGE
   ================================ */
.wip-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dco-label);
  border: 1px solid var(--dco-border);
  padding: 7px 14px;
}

.wip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e8a020;
  flex-shrink: 0;
  animation: pulse-wip 2s ease-in-out infinite;
}

@keyframes pulse-wip {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ================================
   WINDOW FRAME (screenshot)
   ================================ */
.window-frame {
  background: var(--dco-card);
  border: 1px solid var(--dco-border);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.window-titlebar {
  height: 28px;
  background: linear-gradient(180deg, var(--dco-red), var(--dco-red-dark));
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  flex-shrink: 0;
}

.window-controls {
  display: flex;
  gap: 5px;
}

.window-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.window-title {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.65);
  margin-left: 4px;
}

.window-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.window-frame .window-placeholder {
  aspect-ratio: 16/9;
  background: var(--dco-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dco-border);
}

/* ================================
   SEZIONI GENERALI
   ================================ */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 8vw, 100px) clamp(32px, 6vw, 100px);
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dco-red);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--dco-muted);
  max-width: 580px;
  margin-bottom: 48px;
}

/* ================================
   FUNZIONALITÀ (cards)
   ================================ */
.section--features {
  background: var(--dco-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(256px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.feature-card {
  background: var(--dco-card);
  border-left: 3px solid var(--dco-red);
  transform: skewX(calc(-1 * var(--angle)));
  overflow: hidden;
}

.feature-card-inner {
  transform: skewX(var(--angle));
  padding: 28px 24px;
}

.feature-num {
  display: block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--dco-red);
  margin-bottom: 14px;
}

.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dco-text);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.feature-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--dco-muted);
}

.badge-soon {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e8a020;
  border: 1px solid rgba(232, 160, 32, 0.35);
  padding: 2px 7px;
}

/* ================================
   GALLERY SCREENSHOT
   ================================ */
.section--gallery {
  background: var(--dco-bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

/* ================================
   SEZIONE PRINCIPIO
   ================================ */
.section--principle {
  background: var(--dco-bg);
  border-top: 1px solid var(--dco-border);
  border-bottom: 1px solid var(--dco-border);
  padding: clamp(48px, 6vw, 72px) clamp(32px, 6vw, 100px);
}

.principle-quote {
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--dco-muted);
  border-left: 3px solid var(--dco-red);
  padding-left: 28px;
  max-width: 680px;
  margin: 0;
}

.principle-quote strong {
  color: var(--dco-text);
  font-weight: 600;
}

/* ================================
   SEZIONE RUOLI
   ================================ */
.section--roles {
  background: var(--dco-bg);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.role-card {
  background: var(--dco-surface);
  border: 1px solid var(--dco-border);
  border-top: 3px solid var(--dco-red);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.role-tag {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dco-red);
}

.role-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dco-text);
}

.role-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--dco-muted);
  flex: 1;
}

.role-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--dco-border);
  padding-top: 16px;
  margin-top: 4px;
}

.role-features li {
  font-size: 0.82rem;
  color: var(--dco-muted);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.role-features li::before {
  content: '–';
  color: var(--dco-red);
  flex-shrink: 0;
  font-weight: 700;
}

/* ================================
   TAG SCENARIO
   ================================ */
.scenario-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.scenario-tag {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dco-label);
  border: 1px solid var(--dco-border);
  padding: 3px 8px;
}

/* ================================
   CANALI DISCORD
   ================================ */
.channel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 28px;
  margin-bottom: 32px;
}

.channel-item {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--dco-border);
}

.channel-item:first-child {
  border-top: 1px solid var(--dco-border);
}

.channel-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--dco-red);
  flex-shrink: 0;
  min-width: 180px;
  font-family: "Exo 2", monospace;
}

.channel-desc {
  color: var(--dco-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ================================
   METRICHE PUNTEGGIO
   ================================ */
.score-metrics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 24px;
  margin-bottom: 28px;
}

.score-metric {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--dco-border);
}

.score-metric:first-child {
  border-top: 1px solid var(--dco-border);
}

.score-metric-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--dco-red);
  flex-shrink: 0;
  width: 24px;
}

.score-metric-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dco-text);
  flex-shrink: 0;
  min-width: 200px;
}

.score-metric-desc {
  font-size: 0.82rem;
  color: var(--dco-muted);
  line-height: 1.5;
}

@media (max-width: 640px) {
  .score-metric {
    flex-direction: column;
    gap: 4px;
  }

  .score-metric-label {
    min-width: unset;
  }

  .channel-item {
    flex-direction: column;
    gap: 4px;
  }

  .channel-name {
    min-width: unset;
  }
}

/* ================================
   DOWNLOAD PAGE
   ================================ */
.section--download {
  background: var(--dco-surface);
}

.download-card {
  background: var(--dco-card);
  border-left: 3px solid var(--dco-red);
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.download-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-version {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dco-muted);
}

.download-name {
  font-size: 1.4rem;
  font-weight: 700;
}

.download-platform {
  font-size: 0.85rem;
  color: var(--dco-muted);
}

.download-action {
  margin-bottom: 28px;
}

.sysreq-label {
  color: var(--dco-text);
  font-weight: 600;
}

.sysreq {
  margin-top: 40px;
}

.sysreq-title {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--dco-muted);
  margin-bottom: 16px;
}

.sysreq-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sysreq-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--dco-muted);
}

.sysreq-list li::before {
  content: '—';
  color: var(--dco-red);
  flex-shrink: 0;
  font-weight: 700;
}

/* ================================
   DOWNLOAD — PASSI INSTALLAZIONE
   ================================ */
.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.install-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--dco-border);
}

.install-step:first-child {
  border-top: 1px solid var(--dco-border);
}

.install-step-num {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--dco-red);
  flex-shrink: 0;
  width: 24px;
  margin-top: 2px;
}

.install-step-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.install-step-body strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dco-text);
}

.install-step-body span {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--dco-muted);
}

.install-step-body code {
  font-family: "Exo 2", monospace;
  font-size: 0.8rem;
  color: var(--dco-text);
  background: var(--dco-bg);
  padding: 1px 5px;
  border: 1px solid var(--dco-border);
}

.sysreq-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--dco-muted);
  margin-top: 8px;
}

.sysreq-desc--mt {
  margin-top: 12px;
}

.sysreq-desc strong {
  color: var(--dco-text);
  font-weight: 600;
}

.sysreq-list code,
.channel-desc code {
  font-family: "Exo 2", monospace;
  font-size: 0.8rem;
  color: var(--dco-text);
  background: var(--dco-bg);
  padding: 1px 5px;
  border: 1px solid var(--dco-border);
}

/* ================================
   SCENARI PAGE
   ================================ */
.section--scenari {
  background: var(--dco-surface);
}

.scenario-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.scenario-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--dco-border);
}

.scenario-item:first-child {
  border-top: 1px solid var(--dco-border);
}

.scenario-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scenario-type {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dco-muted);
}

.scenario-type--real {
  color: var(--dco-red);
}

.scenario-name {
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 600;
}

.scenario-desc {
  font-size: 0.88rem;
  color: var(--dco-muted);
  line-height: 1.55;
  max-width: 560px;
}

.scenario-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.scenario-status {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--dco-border);
  color: var(--dco-muted);
}

.scenario-status--available {
  border-color: rgba(187, 50, 50, 0.4);
  color: var(--dco-red);
}

/* ================================
   EDITOR SCENARI
   ================================ */
.section--editor {
  margin-top: 56px;
}

.section--editor .section-title {
  margin-bottom: 16px;
}

.scenario-list--editor {
  margin-top: 0;
  margin-bottom: 32px;
}

.scenario-name--sm {
  font-size: 1rem;
}

/* ================================
   COMING SOON / PUNTEGGI
   ================================ */
.section--coming-soon {
  background: var(--dco-surface);
  flex: 1;
  display: flex;
  align-items: center;
}

.coming-soon-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
}

.coming-soon-block p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--dco-muted);
}

/* ================================
   RINGRAZIAMENTI
   ================================ */
.section--thanks {
  background: var(--dco-surface);
}

.thanks-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.thanks-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--dco-border);
}

.thanks-item:first-child {
  border-top: 1px solid var(--dco-border);
}

.thanks-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thanks-role {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dco-red);
}

.thanks-name {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dco-text);
}

.thanks-link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--dco-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.thanks-link:hover {
  color: var(--dco-red);
}

.thanks-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.thanks-body p {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--dco-muted);
}

.thanks-body strong {
  color: var(--dco-text);
  font-weight: 600;
}

@media (max-width: 720px) {
  .thanks-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ================================
   FORUM / REDIRECT
   ================================ */
.section--redirect {
  background: var(--dco-surface);
  flex: 1;
  display: flex;
  align-items: center;
}

.redirect-block {
  max-width: 480px;
}

.redirect-block p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--dco-muted);
  margin-bottom: 28px;
}

.redirect-countdown {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dco-label);
  margin-bottom: 24px;
}

/* ================================
   ANIMAZIONI D'INGRESSO (SIPARIO)
   ================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.intro-panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--dco-red), var(--dco-red-dark));
  animation-duration: 1s;
  animation-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
  animation-delay: 0.4s;
  animation-fill-mode: both;
}

.intro-panel--left {
  clip-path: polygon(0 0, 50% 0, calc(50% - 100vh * tan(var(--angle))) 100%, 0 100%);
  animation-name: sipario-left;
}

.intro-panel--right {
  clip-path: polygon(50% 0, 100% 0, 100% 100%, calc(50% - 100vh * tan(var(--angle))) 100%);
  animation-name: sipario-right;
}

@keyframes sipario-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-110%); }
}

@keyframes sipario-right {
  from { transform: translateX(0); }
  to   { transform: translateX(110%); }
}

@keyframes sipario-close-left {
  from { transform: translateX(-110%); }
  to   { transform: translateX(0); }
}

@keyframes sipario-close-right {
  from { transform: translateX(110%); }
  to   { transform: translateX(0); }
}

.intro-overlay--exit .intro-panel {
  animation-delay: 0s;
}

.intro-overlay--exit .intro-panel--left {
  animation-name: sipario-close-left;
}

.intro-overlay--exit .intro-panel--right {
  animation-name: sipario-close-right;
}

@media (prefers-reduced-motion: reduce) {
  .intro-panel { display: none; }
}

/* ================================
   SCROLL ANIMATIONS
   ================================ */
@media (prefers-reduced-motion: no-preference) {
  .js [data-animate] {
    opacity: 0;
    translate: 32px 20px;
    transition: opacity 0.6s ease-out, translate 0.6s ease-out;
  }

  .js [data-animate].visible {
    opacity: 1;
    translate: none;
  }

  .js .feature-card {
    opacity: 0;
    translate: 24px 16px;
    transition:
      opacity 0.5s ease-out calc(var(--i, 0) * 0.12s),
      translate 0.5s ease-out calc(var(--i, 0) * 0.12s);
  }

  .js .feature-card:nth-child(1) { --i: 0; }
  .js .feature-card:nth-child(2) { --i: 1; }
  .js .feature-card:nth-child(3) { --i: 2; }
  .js .feature-card:nth-child(4) { --i: 3; }
  .js .feature-card:nth-child(5) { --i: 4; }
  .js .feature-card:nth-child(6) { --i: 5; }

  .js .section--features.visible .feature-card {
    opacity: 1;
    translate: none;
  }
}

/* ================================
   FOOTER
   ================================ */
.footer {
  background: #0a0a0a;
  padding: 18px 12px 22px;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--dco-muted);
  z-index: 1;
}

.footer a {
  color: var(--dco-red);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 0.7;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero-screen {
    display: none;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .scenario-item {
    grid-template-columns: 1fr;
  }

  .scenario-meta {
    align-items: flex-start;
  }

  .download-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar {
    padding: 0 14px;
  }

  .topbar-link {
    padding: 0 10px;
    font-size: 0.58rem;
  }
}

/* Disclaimer di indipendenza nel footer */
.footer-legal {
  display: block;
  max-width: 820px;
  margin: 12px auto 0;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  line-height: 1.7;
  opacity: 0.62;
}

/* ================================
   IDENTITA VISIVA
   Sfondo del menu principale del software, fortemente
   attenuato: l'immagine originale e' satura e contiene gia'
   il logo, quindi resta atmosfera e non compete col testo.
   ================================ */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(17, 17, 17, 0.90), rgba(17, 17, 17, 0.96)),
    url("assets/brand/sfondo-menu.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Logo accanto al marchio testuale nella barra superiore */
.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.topbar-logo {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex-shrink: 0;
}
