/* ───────────────────────────────────────────
   BIZOORG 2026 – Vetrina app (IronCard, Tettora)
   Usa i token di style.css: va caricato DOPO style.css
   ─────────────────────────────────────────── */

/* ---------- Sezione "Le nostre app" in Sviluppo.html ---------- */
.app-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-md);
}

.app-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.app-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.app-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.app-card:hover::before { transform: scaleX(1); }

.app-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.app-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 14px;
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon i { font-size: 30px; color: var(--accent-primary); }

.app-card h4 { margin: 0 0 0.25rem; font-size: 1.375rem; }
.app-card .app-tagline { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }

.app-card ul {
  list-style: none;
  padding: 0;
  margin: var(--space-sm) 0 var(--space-md);
}

.app-card ul li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.app-card ul li::before {
  content: '\F26E'; /* bi-check2 */
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.app-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Etichetta di stato ---------- */
.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-glow);
  margin-bottom: var(--space-sm);
  align-self: flex-start;
}

.app-badge::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.app-badge.is-dev { border-color: #f59e0b; color: #f59e0b; background: rgba(245, 158, 11, 0.12); }
.app-badge.is-live { border-color: #22c55e; color: #22c55e; background: rgba(34, 197, 94, 0.12); }

/* ---------- Pagine prodotto ---------- */
.app-hero-icon {
  width: min(260px, 60vw);
  aspect-ratio: 1;
  border-radius: 22%;
  border: 1px solid var(--border-light);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 60px var(--accent-glow);
  object-fit: cover;
}

.app-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.app-fact {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: var(--space-sm) 1.25rem;
}

.app-fact span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.app-fact strong { color: var(--text-primary); font-weight: 600; }

/* Galleria schermate */
.app-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: var(--space-md);
  overflow-x: auto;
  padding: 0.5rem 0.25rem var(--space-sm);
  scroll-snap-type: x mandatory;
}

.app-shot {
  scroll-snap-align: start;
  margin: 0;
  text-align: center;
}

.app-shot a { display: block; }

.app-shot img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
  transition: all var(--transition-base);
}

.app-shot a:hover img {
  border-color: var(--accent-primary);
  box-shadow: 0 0 24px var(--accent-glow-strong);
  transform: translateY(-4px);
}

.app-shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Griglia funzioni */
.app-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.app-feature {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: var(--space-md);
  transition: all var(--transition-base);
}

.app-feature:hover { border-color: var(--accent-primary); transform: translateY(-4px); }

.app-feature .icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background: var(--bg-tertiary);
  margin-bottom: var(--space-sm);
}

.app-feature .icon i { font-size: 24px; color: var(--accent-primary); }
.app-feature h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.app-feature p { font-size: 0.9375rem; margin: 0; }

/* Tappe dello sviluppo */
.app-timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 760px;
  border-left: 2px solid var(--border-light);
}

.app-timeline li {
  position: relative;
  padding: 0 0 var(--space-md) var(--space-md);
}

.app-timeline li::before {
  content: '';
  position: absolute;
  left: -9px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
}

.app-timeline li.done::before { background: var(--accent-primary); border-color: var(--accent-primary); }
.app-timeline li.now::before { border-color: #f59e0b; box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2); }
.app-timeline h4 { margin-bottom: 0.25rem; font-size: 1.0625rem; }
.app-timeline p { margin: 0; font-size: 0.9375rem; }

/* Link fra le app in fondo alla pagina */
.app-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

@media (max-width: 575px) {
  .app-card-head { align-items: flex-start; }
  .app-gallery { grid-auto-columns: 70vw; }
}
