/* ═══════════════════════════════════════════════════════════
   APP SHOWCASE — cinematic feature showcase section
   ═══════════════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.showcase-section {
  position: relative;
  background: var(--bg);
  padding: 110px 0 90px;
  overflow: hidden;
}

/* Dot grid overlay */
.showcase-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

/* Top edge glow */
.showcase-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(201,151,58,0.3) 50%, transparent 100%);
}

/* Ambient glow blobs */
.sc-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.12;
}
.sc-blob-1 { width: 500px; height: 500px; background: var(--gold); top: -150px; left: -100px; }
.sc-blob-2 { width: 400px; height: 400px; background: var(--gold-lt); bottom: -100px; right: -80px; }

/* ── Section header ── */
.showcase-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
  padding: 0 24px;
}

.showcase-header .tag {
  display: inline-block;
  background: var(--gold-dim);
  color: var(--gold-lt);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 99px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.showcase-header h2 {
  font-family: Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
}

.showcase-header h2 em {
  font-style: italic;
  color: var(--gold);
}

.showcase-header p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1.05rem;
  color: var(--text-md);
  line-height: 1.65;
}

/* ── Stage: 3-column layout ── */
.showcase-stage {
  display: grid;
  grid-template-columns: 1fr 300px 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── LEFT: feature description ── */
.showcase-info {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.sc-feature {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.55s cubic-bezier(.4,0,.2,1),
              transform 0.55s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sc-feature.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.sc-feature.leaving {
  opacity: 0;
  transform: translateX(-24px);
}

.sc-feature-em {
  font-size: 3rem;
  display: block;
  margin-bottom: 18px;
  line-height: 1;
}

.sc-feature h3 {
  font-family: Georgia, serif;
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}

.sc-feature p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-md);
  line-height: 1.7;
  margin-bottom: 20px;
}

.sc-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sc-bullets li {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--text-md);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sc-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ── CENTER: phone mockup ── */
.showcase-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.showcase-phone-wrap .phone-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 60px;
  background: var(--gold);
  filter: blur(40px);
  border-radius: 50%;
  opacity: 0.6;
}

/* Override hero phone size */
.showcase-phone-wrap .phone-mockup {
  width: 280px;
  border-radius: 44px;
  padding: 14px 10px 18px;
}

.showcase-phone-wrap .phone-notch {
  width: 80px;
  height: 10px;
  background: #1f2937;
  border-radius: 5px;
  margin: 0 auto 10px;
}

.showcase-phone-wrap .phone-screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 390/844;
  background: var(--bg2);
}

/* Individual screens */
.sc-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg2);
}

.sc-screen.active { opacity: 1; }

/* ── RIGHT: feature list ── */
.showcase-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sc-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(240,234,224,0.05);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.sc-item:hover {
  background: rgba(240,234,224,0.04);
  border-color: rgba(240,234,224,0.1);
}

.sc-item.active {
  background: var(--gold-dim);
  border-color: var(--border);
}

.sc-item-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-mt);
  transition: color 0.3s;
}

.sc-item.active .sc-item-label { color: var(--text); }

.sc-item-em { font-size: 1rem; }

.sc-progress {
  height: 2px;
  background: rgba(240,234,224,0.06);
  border-radius: 99px;
  overflow: hidden;
  display: none;
}

.sc-item.active .sc-progress { display: block; }

.sc-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  border-radius: 99px;
}

/* ── Bottom: nav dots ── */
.showcase-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}

.sc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(240,234,224,0.15);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.sc-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ── Phone mini UI components ── */

/* Shared screen header */
.sph {
  background: var(--bg2);
  padding: 10px 10px 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sph-row {
  display: flex;
  align-items: center;
  gap: 5px;
}
.sph-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.sph-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  font-family: system-ui;
}
.sph-sub {
  font-size: 9px;
  color: var(--text-mt);
  font-family: system-ui;
  margin-top: 2px;
}

/* Filter chips row */
.sph-chips {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 5px 8px;
  display: flex;
  gap: 5px;
  overflow: hidden;
  flex-shrink: 0;
}
.sph-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 7px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--bg3);
  font-size: 8px;
  font-weight: 700;
  color: var(--text-md);
  font-family: system-ui;
  white-space: nowrap;
  flex-shrink: 0;
}
.sph-chip.on { background: var(--gold); border-color: var(--gold); color: var(--bg); }

/* Generic card */
.spc {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 1px 6px rgba(0,0,0,.2);
  flex-shrink: 0;
}
.spc-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--gold-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.spc-cat {
  font-size: 7px;
  font-weight: 700;
  color: var(--gold-lt);
  font-family: system-ui;
  text-transform: uppercase;
}
.spc-name {
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  font-family: system-ui;
}
.spc-sub { font-size: 8px; color: var(--text-mt); font-family: system-ui; }
.spc-badge {
  margin-left: auto;
  font-size: 7px;
  font-weight: 700;
  color: var(--gold-lt);
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Screen body scrollable area */
.sp-body {
  flex: 1;
  overflow: hidden;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--bg2);
}

/* Tab bar mini */
.spt {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  display: flex;
  height: 42px;
  flex-shrink: 0;
  margin-top: auto;
}
.spt-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 14px;
}
.spt-tab span {
  font-size: 7px;
  color: var(--text-mt);
  font-family: system-ui;
  font-weight: 600;
}
.spt-tab.on span { color: var(--gold); font-weight: 700; }
.spt-tab.on { border-top: 2px solid var(--gold); }

/* Weather screen specific */
.sw-hero {
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  padding: 12px 10px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.sw-temp {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  font-family: system-ui;
  line-height: 1;
}
.sw-info { flex: 1; }
.sw-desc { font-size: 10px; color: var(--text-md); font-family: system-ui; }
.sw-loc  { font-size: 8px; color: var(--text-mt); font-family: system-ui; margin-top: 2px; }
.sw-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 5px;
  padding: 8px;
  flex-shrink: 0;
}
.sw-stat {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px;
  text-align: center;
}
.sw-stat-em { font-size: 14px; display: block; }
.sw-stat-val { font-size: 10px; font-weight: 800; color: var(--text); font-family: system-ui; }
.sw-stat-lbl { font-size: 7px; color: var(--text-mt); font-family: system-ui; }
.sw-days {
  display: flex;
  gap: 5px;
  padding: 0 8px 8px;
  flex-shrink: 0;
}
.sw-day {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 4px;
  text-align: center;
}
.sw-day-name { font-size: 7px; color: var(--text-mt); font-family: system-ui; font-weight: 700; }
.sw-day-em   { font-size: 14px; display: block; margin: 2px 0; }
.sw-day-t    { font-size: 9px; font-weight: 800; color: var(--text); font-family: system-ui; }

/* Itin card mini */
.si-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-left: 3px solid var(--gold);
  flex-shrink: 0;
}
.si-em {
  font-size: 18px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.si-title { font-size: 10px; font-weight: 800; color: var(--text); font-family: system-ui; }
.si-meta  { font-size: 8px; color: var(--text-mt); font-family: system-ui; margin-top: 2px; }
.si-dur {
  margin-left: auto;
  font-size: 8px;
  font-weight: 700;
  color: var(--gold-lt);
  background: var(--gold-dim);
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Transport grid */
.str-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
}
.str-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,.2);
}
.str-em   { font-size: 20px; }
.str-name { font-size: 9px; font-weight: 700; color: var(--text); font-family: system-ui; text-align: center; }
.str-sub  { font-size: 7px; color: var(--text-mt); font-family: system-ui; text-align: center; }

/* Emergency grid */
.sem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
}
.sem-item {
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sem-em   { font-size: 20px; }
.sem-num  { font-size: 14px; font-weight: 900; color: #fff; font-family: system-ui; }
.sem-name { font-size: 7px; color: rgba(255,255,255,.75); font-family: system-ui; text-align: center; }

/* Ale picks screen */
.sal-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  gap: 7px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.sal-accent {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--gold-lt));
}
.sal-em   { font-size: 20px; width: 32px; height: 32px; border-radius: 8px; background: var(--gold-dim); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: 6px; }
.sal-title{ font-size: 10px; font-weight: 800; color: var(--text); font-family: system-ui; }
.sal-desc { font-size: 8px; color: var(--text-md); font-family: system-ui; margin-top: 2px; }
.sal-ale  { display: flex; align-items: center; gap: 3px; margin-top: 4px; }
.sal-ale-tag { font-size: 7px; font-weight: 700; color: var(--gold-lt); font-family: system-ui; }

/* 4 lingue screen */
.slg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
}
.slg-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,.2);
}
.slg-flag { font-size: 28px; }
.slg-name { font-size: 9px; font-weight: 700; color: var(--text); font-family: system-ui; }
.slg-sub  { font-size: 7px; color: var(--text-mt); font-family: system-ui; }

/* ── Responsive: vedi css/mobile.css per tutti gli override mobile ── */

/* Desktop > 900px: garantisce 3 colonne */
@media (min-width: 901px) {
  .showcase-stage { grid-template-columns: 1fr 300px 1fr; }
  .showcase-info  { position: relative; min-height: 280px; }
  .sc-feature {
    position: absolute;
    opacity: 0;
    transform: translateX(-20px);
  }
  .sc-feature.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
  }
}
