/* ============================================================
   page-infotime.css — infotime.html-specific styles (Phase 14)

   Owns ALL InfoTime classes (D-14-16). Loaded AFTER /css/base.css.
   DO NOT inherit from page-home.css or page-servizi.css.
   Cross-page primitives (.svc-icon) live in base.css §14.
   ============================================================ */

/* Deep-link scroll offset (4rem topbar + 1.5rem gap) */
#features, #editions, #screenshots {
  scroll-margin-top: 5.5rem;
}

/* ─────────────────────────────────────────────────────────────
   Hero — left-rail intro, mirrors servizi.html post-retro cadence
   ─────────────────────────────────────────────────────────────*/
.it-hero {
  padding: 6rem 0 4rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.it-hero .sec-label {
  text-align: left;
  margin-bottom: 1.25rem;
}
.it-hero h1 {
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.05;
  font-size: clamp(2.75rem, 7vw, 5.75rem);
  max-width: 18ch;
  color: var(--fg);
}
.it-hero h1 em {
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--accent);
}
.it-hero p.lead {
  margin-top: 1.5rem;
  max-width: 38rem;
}
.it-hero-cta {
  margin-top: 2.5rem;
}

/* ─────────────────────────────────────────────────────────────
   Anchored sections — centered defaults from base.css §8 stay
   ─────────────────────────────────────────────────────────────*/
.it-block {
  padding: var(--pad-section) 0;
  border-top: 1px solid var(--line);
}
.it-block .frame {
  max-width: 72rem;
}
.it-block .sec-sub {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* ─────────────────────────────────────────────────────────────
   Feature card grid (3-col desktop / 2-col tablet / 1-col mobile)
   ─────────────────────────────────────────────────────────────*/
.it-feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}
.it-feat {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.it-feat:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.015);
}
.it-feat .svc-icon {
  margin: 0;
}
.it-feat h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--fg);
  letter-spacing: -.01em;
  margin: 0;
}
.it-feat p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--fg-dim);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────
   Editions — two stacked cards (NOT a comparison table)
   v2019 = current shipping; v2026 = in development.
   ─────────────────────────────────────────────────────────────*/
.it-editions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 4rem;
}
.it-edition {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 2.25rem 2.25rem 2rem;
  background: var(--bg-2);
}
.it-edition--upcoming {
  border-style: dashed;
  border-color: color-mix(in oklab, var(--accent) 35%, var(--line));
  background: color-mix(in oklab, var(--accent) 3%, var(--bg-2));
}
.it-edition-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: block;
  margin-bottom: 0.6rem;
}
.it-edition--upcoming .it-edition-tag {
  color: var(--accent);
}
.it-edition-h {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 3.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 0.75rem;
  color: var(--fg);
}
.it-edition-h em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
}
.it-edition-lead {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg-dim);
  margin: 0 0 1.5rem;
  max-width: 50ch;
}
.it-edition-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.55rem 1.75rem;
}
.it-edition-list li {
  font-size: 0.9375rem;
  color: var(--fg-dim);
  padding-left: 1.5rem;
  position: relative;
}
.it-edition-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 600;
}
.it-edition--upcoming .it-edition-list li::before {
  content: "→";
  font-weight: 400;
}
.it-edition-live {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--fg-mute);
}
.it-edition-live a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid color-mix(in oklab, var(--accent) 40%, transparent);
  transition: border-color .15s, color .15s;
}
.it-edition-live a:hover,
.it-edition-live a:focus-visible {
  border-bottom-color: var(--accent);
}

/* ─────────────────────────────────────────────────────────────
   Screenshots block (2-col grid, wider frame on this section)
   ─────────────────────────────────────────────────────────────*/
#screenshots .frame {
  max-width: 84rem;
}
.it-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem 2rem;
  margin-top: 4rem;
}
.it-shot {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.it-shot picture {
  display: block;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--bg-2);
}
.it-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.it-cap {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 52ch;
  margin: 0;
  text-align: left;
}
.it-cap .micro {
  display: block;
  margin-bottom: 0.35rem;
}

/* ─────────────────────────────────────────────────────────────
   Final-CTA section (price-on-request + Parliamone)
   ─────────────────────────────────────────────────────────────*/
.it-cta {
  padding: 6rem 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.it-price-tag {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  margin-bottom: 1.25rem;
  display: block;
}
.it-cta h2 {
  margin: 0 auto;
}
.it-cta p.lead {
  margin: 1.5rem auto 0;
  max-width: 32rem;
}
.it-cta-row {
  margin-top: 2.5rem;
  display: inline-flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────────
   Mobile breakpoint
   ─────────────────────────────────────────────────────────────*/
@media (max-width: 900px) {
  .nav { display: none; }
  .it-hero {
    padding: 3.5rem 0 2.5rem;
  }
  .it-hero h1 {
    font-size: clamp(2.25rem, 9vw, 3rem);
    max-width: none;
  }
  .it-feat-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .it-block {
    padding: 5rem 0;
  }
  #screenshots .frame {
    max-width: 72rem;
  }
  .it-shots {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .it-cta {
    padding: 4rem 0;
  }
}
@media (min-width: 600px) and (max-width: 900px) {
  .it-feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
