/* ===================================================
   seo-dark.css — Dark theme per tutte le pagine SEO
   =================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f5f5f7;
  background: #050508;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { text-decoration: none; color: inherit; }
strong { color: #f5f5f7; font-weight: 700; }
ul { padding-left: 20px; }
ul li { color: rgba(245,245,247,0.65); font-size: 15px; margin-bottom: 8px; line-height: 1.6; }
ul li strong { color: #f5f5f7; }
p { color: rgba(245,245,247,0.65); font-size: 15px; line-height: 1.75; margin-bottom: 12px; }

/* ---- CONTAINERS ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(5,5,8,0.72);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(5,5,8,0.92);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 22px; font-weight: 800; color: #f5f5f7;
}
.nav-logo-icon { width: 32px; height: 32px; border-radius: 6px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: rgba(245,245,247,0.6); transition: color 0.2s;
}
.nav-links a:hover { color: #f5f5f7; }
.nav-cta {
  padding: 10px 24px; background: #7c5cfc; color: white;
  border-radius: 10px; font-size: 14px; font-weight: 600; transition: all 0.3s;
}
.nav-cta:hover {
  background: #9b7cff; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,92,252,0.4);
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #f5f5f7; border-radius: 2px; transition: all 0.3s;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 2px solid transparent; cursor: pointer; transition: all 0.3s ease;
  text-decoration: none; font-family: inherit;
}
.btn-primary {
  background: #7c5cfc; color: white; border-color: #7c5cfc;
}
.btn-primary:hover {
  background: #9b7cff; border-color: #9b7cff;
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124,92,252,0.45);
}
.btn-outline {
  background: transparent; color: rgba(245,245,247,0.8);
  border-color: rgba(255,255,255,0.2);
}
.btn-outline:hover {
  border-color: rgba(124,92,252,0.5); color: #a78bfa;
  background: rgba(124,92,252,0.1);
}
.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 12px; }

/* ---- HERO ---- */
.seo-hero {
  padding: 130px 0 70px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124,92,252,0.22) 0%, transparent 70%);
  position: relative;
}
.seo-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(245,245,247,0.4); margin-bottom: 20px;
}
.seo-breadcrumb a { color: rgba(245,245,247,0.4); transition: color 0.2s; }
.seo-breadcrumb a:hover { color: #a78bfa; }
.seo-breadcrumb span { color: rgba(245,245,247,0.25); }
.seo-hero h1 {
  font-size: 44px; font-weight: 900; color: #f5f5f7; line-height: 1.1;
  margin-bottom: 18px; max-width: 780px;
}
.hero-accent {
  background: linear-gradient(135deg, #7c5cfc, #a78bfa, #c4b5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block;
}
.seo-hero-desc {
  font-size: 17px; color: rgba(245,245,247,0.65); max-width: 700px;
  line-height: 1.7; margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- CONTENT ---- */
.seo-content {
  padding: 60px 0 80px;
}
.seo-content h2 {
  font-size: 26px; font-weight: 800; color: #f5f5f7;
  margin: 48px 0 16px; line-height: 1.2;
}
.seo-content h2:first-child { margin-top: 0; }
.seo-content h3 {
  font-size: 20px; font-weight: 700; color: #f5f5f7; margin: 32px 0 12px;
}

/* ---- FEATURE GRID ---- */
.seo-features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin: 24px 0 40px;
}
.seo-feature-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 22px 20px; transition: all 0.3s ease;
}
.seo-feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,92,252,0.3);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.seo-feature-card h4 {
  font-size: 15px; font-weight: 700; color: #f5f5f7; margin-bottom: 8px;
}
.seo-feature-card p {
  font-size: 13px; color: rgba(245,245,247,0.5); margin: 0; line-height: 1.6;
}

/* ---- CTA BOX ---- */
.seo-cta-box {
  background: rgba(124,92,252,0.1); border: 1px solid rgba(124,92,252,0.25);
  border-radius: 20px; padding: 44px; text-align: center; margin: 48px 0;
  position: relative; overflow: hidden;
}
.seo-cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(124,92,252,0.15), transparent 70%);
  pointer-events: none;
}
.seo-cta-box h2 {
  font-size: 26px; font-weight: 900; color: #f5f5f7; margin: 0 0 12px; position: relative;
}
.seo-cta-box p {
  font-size: 16px; color: rgba(245,245,247,0.6); margin-bottom: 24px; position: relative;
}
.seo-cta-box .btn { position: relative; }

/* ---- FAQ ---- */
.faq-grid { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.faq-item {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; overflow: hidden;
}
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; background: none; border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: #f5f5f7; text-align: left;
  transition: background 0.2s; font-family: inherit;
}
.faq-question:hover { background: rgba(255,255,255,0.04); }
.faq-arrow { color: #a78bfa; font-size: 14px; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(90deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 16px; }
.faq-answer p { padding: 0 20px; font-size: 14px; color: rgba(245,245,247,0.6); margin: 0; }

/* ---- RELATED / FOOTER LINKS inline ---- */
.seo-related { margin-top: 48px; }
.seo-related h3 {
  font-size: 16px; font-weight: 700; color: rgba(245,245,247,0.5);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.seo-related p { font-size: 14px; color: rgba(245,245,247,0.4); margin-bottom: 16px; }

/* ---- COMPARISON TABLE ---- */
.cmp-table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px;
  background: rgba(255,255,255,0.03) !important;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none !important;
}
.cmp-table th, .cmp-table td {
  padding: 14px 16px; text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(245,245,247,0.7);
}
.cmp-table thead th {
  background: rgba(124,92,252,0.18) !important;
  color: #f5f5f7 !important; font-weight: 700;
}
.cmp-table th.t2o {
  background: rgba(124,92,252,0.35) !important; color: #c4b5fd !important;
}
.cmp-table tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.02) !important;
}
.cmp-table tbody tr:hover {
  background: rgba(124,92,252,0.06) !important;
}
.cmp-table td.yes { color: #34d399 !important; font-weight: 600; }
.cmp-table td.no { color: rgba(245,245,247,0.3) !important; }
.cmp-table td:first-child { font-weight: 600; color: rgba(245,245,247,0.85) !important; }

/* ---- FOOTER ---- */
.footer {
  padding: 48px 0;
  background: rgba(0,0,0,0.4);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-container { text-align: center; }
.footer-brand { margin-bottom: 0; }
.footer-logo {
  font-size: 22px; font-weight: 800; color: #f5f5f7;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-logo span { color: #a78bfa; }
.footer-brand p { font-size: 14px; color: rgba(245,245,247,0.4); margin-top: 8px; }
.footer-links {
  display: flex; justify-content: center; gap: 24px;
  margin: 20px 0; flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px; color: rgba(245,245,247,0.45); transition: color 0.2s;
}
.footer-links a:hover { color: #f5f5f7; }
.footer-bottom {
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.06); margin-top: 8px;
}
.footer-bottom p { font-size: 13px; color: rgba(245,245,247,0.3); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .seo-hero h1 { font-size: 34px; }
  .seo-features-grid { grid-template-columns: 1fr 1fr; }
  .cmp-table { font-size: 12px; }
  .cmp-table th, .cmp-table td { padding: 10px 12px; }
}
@media (max-width: 640px) {
  .seo-hero { padding: 110px 0 50px; }
  .seo-hero h1 { font-size: 28px; }
  .seo-hero-desc { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .seo-features-grid { grid-template-columns: 1fr; }
  .nav-links { display: none !important; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex !important; flex-direction: column; gap: 0;
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(5,5,8,0.96); backdrop-filter: blur(20px);
    padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .nav-links.open a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .seo-cta-box { padding: 28px 20px; }
  .cmp-table { font-size: 12px; }
  .cmp-table th, .cmp-table td { padding: 10px 8px; }
  .footer-links { gap: 16px; }
}
