@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0b0f17;
  --surface: #111827;
  --surface-hover: #162032;
  --border: #1f2937;
  --border-hover: #374151;

  --text: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --accent: #38bdf8;
  --accent-gold: #f59e0b;
  --discord: #5865f2;
  --discord-hover: #4752c4;

  --status-online: #22c55e;
  --status-offline: #ef4444;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigazione */
header {
  border-bottom: 1px solid var(--border);
  background-color: rgba(11, 15, 23, 0.95);
  position: sticky;
  top: 0;
  z-index: 50;
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.brand {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.btn-discord {
  background: var(--discord);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.88rem !important;
  transition: background-color 0.15s ease !important;
}

.btn-discord:hover {
  background: var(--discord-hover) !important;
}

/* Selettore Lingua */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  user-select: none;
}

.lang-btn {
  all: unset;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  line-height: 1;
  padding: 2px 4px;
  transition: color 0.15s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  color: #ffffff;
  font-weight: 800;
}

.lang-divider {
  color: var(--border-hover);
  font-size: 0.75rem;
}

/* Contenuto Principale */
main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 20px;
}

/* Hero */
.hero {
  text-align: center;
  margin-bottom: 40px;
}

.hero-logo {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 12px;
}

p.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Griglie */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 44px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.card h2, .card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 18px;
  line-height: 1.45;
}

.card .link-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

/* Tag di stato progetto (In arrivo / Prototipo) */
.tag-dev {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent);
  margin-bottom: 10px;
  width: fit-content;
}

/* Minecraft IP Box & Copia */
.ip-container {
  max-width: 480px;
  margin: 24px auto 8px;
}

.ip-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.ip-box:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.ip-address {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.btn-copy-ip {
  background: var(--border);
  color: var(--text);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-copy-ip:hover {
  background: var(--border-hover);
}

.ip-feedback {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  min-height: 1.2em;
}

/* Minecraft Live Status Badge */
.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-dim);
  transition: background-color 0.3s;
}

.status-dot.online {
  background-color: var(--status-online);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.status-dot.offline {
  background-color: var(--status-offline);
}

/* Newsletter iframe */
.form-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-top: 24px;
}

iframe {
  width: 100%;
  height: 300px;
  border: none;
  display: block;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

.footer-support {
  margin-top: 6px;
}

/* Mobile */
@media (max-width: 640px) {
  .nav-container {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
  }
}

/* --- BANNER COUNTDOWN --- */
.countdown-banner {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(88, 101, 242, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 36px;
}

.countdown-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.countdown-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.countdown-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 8px;
  min-width: 60px;
}

.countdown-number {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  display: block;
}

/* --- FAQ ACCORDION --- */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--border-hover);
}

.faq-summary {
  padding: 16px 20px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-summary::after {
  content: "−";
}

.faq-content {
  padding: 0 20px 16px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  border-top: 1px solid transparent;
}

/* --- TIMELINE CHANGELOG / NOTIZIE --- */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
  position: relative;
  padding-left: 20px;
  border-left: 2px solid var(--border);
}

.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
}

.timeline-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
}

.timeline-card h3 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 8px;
}

.timeline-card ul {
  margin-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
