/* ==========================================================================
   Dokimys - Foglio di Stile per Sito Web di Distribuzione APK
   ========================================================================== */

:root {
  --primary: #15803d;
  --primary-hover: #166534;
  --primary-light: #dcfce7;
  --primary-glow: rgba(22, 163, 74, 0.25);
  
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: #0f172a;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-color: #e2e8f0;
  --success: #16a34a;
  --info: #0284c7;
  --warning: #eab308;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 18px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 18px 36px rgba(0,0,0,0.08), 0 6px 12px rgba(0,0,0,0.05);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   NAVBAR
   -------------------------------------------------------------------------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-badge {
  font-size: 1.8rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   PULSANTI
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #15803d 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #15803d 0%, var(--primary-hover) 100%);
  box-shadow: 0 6px 20px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.btn-accent {
  background: var(--accent);
  color: #ffffff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.15rem;
  border-radius: 16px;
}

/* --------------------------------------------------------------------------
   HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  padding: 60px 0 80px;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.hero-highlight {
  color: var(--primary);
  background: linear-gradient(120deg, #15803d 0%, #16a34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.apk-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.apk-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.security-badge {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-top: 24px;
  max-width: 560px;
}

.security-badge i {
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.security-badge p {
  font-size: 0.88rem;
  color: #14532d;
  margin: 0;
  line-height: 1.45;
}

/* Phone Mockup */
.mockup-container {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 320px;
  height: 640px;
  background: #ffffff;
  border-radius: 42px;
  box-shadow: 0 25px 60px -15px rgba(0,0,0,0.18), 0 0 0 10px #0f172a, 0 0 0 12px #334155;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 140px;
  height: 24px;
  background: #0f172a;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  margin: 0 auto;
  position: relative;
  z-index: 20;
}

.phone-screen {
  flex: 1;
  background: #f6f8f4;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8rem;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
}

.mockup-avatar {
  font-size: 1.8rem;
}

.mockup-card {
  background: #ffffff;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: var(--shadow-sm);
}

.mockup-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-block;
  margin-bottom: 6px;
}

.mockup-quiz-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  margin-top: 6px;
  font-size: 0.75rem;
}

.mockup-quiz-opt.correct {
  background: #dcfce7;
  border-color: #22c55e;
  font-weight: 700;
  color: #15803d;
}

/* --------------------------------------------------------------------------
   SEZIONI
   -------------------------------------------------------------------------- */
section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 54px;
}

.section-tag {
  color: var(--primary);
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

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

/* --------------------------------------------------------------------------
   COME FUNZIONA (STEPS)
   -------------------------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: var(--bg-card);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2.5rem;
  font-weight: 900;
  color: #f1f5f9;
  line-height: 1;
}

.step-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   CARATTERISTICHE
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-box h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   GUIDA ALL'INSTALLAZIONE APK
   -------------------------------------------------------------------------- */
.install-section {
  background: #f1f5f9;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  margin: 40px 0;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.install-item {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  text-align: center;
}

.install-item-step {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.install-item h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.install-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-toggle {
  transition: transform 0.2s;
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   BANNER CTA FINALE
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, #15803d 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
}

.cta-banner h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 32px;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin: 0 auto 28px;
  }
  .hero-actions {
    justify-content: center;
  }
  .apk-meta {
    justify-content: center;
  }
  .security-badge {
    margin: 24px auto 0;
    text-align: left;
  }
  .steps-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .install-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.4rem;
  }
  .install-steps {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .phone-mockup {
    width: 290px;
    height: 580px;
  }
}

