/* DFM Reports — vetrina a card con copertine + barra ricerca/facet (SSR, no JS).
   Si appoggia ai design token piattaforma di base.css (via packs.css per hero/FAQ). */

/* ── Barra ricerca + facet ─────────────────────────────────────────────── */
.reports-filterbar {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  margin: 0 0 1.6rem;
}
.reports-filterbar form { margin: 0; }
.reports-search-row { display: flex; gap: .6rem; margin-bottom: .7rem; }
.reports-search-row input[type="search"] {
  flex: 1; min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: .55rem .8rem;
  font-size: .95rem;
}
.reports-search-row input[type="search"]::placeholder { color: var(--mute); }
.reports-facet-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .6rem;
}
.reports-facet-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: .25rem;
}
.reports-facet-row select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  padding: .45rem .5rem;
  font-size: .85rem;
}
.reports-apply {
  background: var(--gold); color: #14110a; font-weight: 600;
  border: 0; border-radius: 6px; padding: .55rem 1.2rem; cursor: pointer;
  font-size: .95rem; white-space: nowrap;
}
.reports-apply:hover { background: var(--gold-soft); }
.reports-resultline {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem;
  font-size: .88rem; color: var(--soft); margin: 0 0 1.1rem;
}
.reports-resultline a { color: var(--gold-soft); }

/* ── Griglia di card con copertina ─────────────────────────────────────── */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
  margin: 0 0 2.2rem;
}
.report-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.report-card:hover { border-color: var(--gold-soft); }
.report-card-coverlink { display: block; background: var(--surface-2); }
.report-card-cover {
  display: block; width: 100%; height: auto;
  aspect-ratio: 600 / 801; object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.report-card-body { display: flex; flex-direction: column; flex: 1; padding: .85rem .95rem 1rem; }
.report-card-tags { margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.report-card h2, .report-card h3 {
  font-size: .98rem; line-height: 1.35; margin: 0 0 .45rem; color: var(--ink);
}
.report-card h2 a, .report-card h3 a { color: inherit; text-decoration: none; }
.report-card h2 a:hover, .report-card h3 a:hover { color: var(--gold-soft); }
.report-card-meta { font-size: .8rem; color: var(--mute); margin: 0 0 .6rem; }
.report-card-price {
  margin: auto 0 0; padding-top: .5rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
}
.report-card-price strong { font-size: 1.05rem; color: var(--gold-soft); }
.report-card-price .vat { font-size: .72rem; color: var(--mute); font-weight: 400; }
.report-card-price a { font-size: .85rem; color: var(--gold-soft); white-space: nowrap; }

/* ── Paginazione ───────────────────────────────────────────────────────── */
.reports-pagination {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  margin: 0 0 2.2rem; font-size: .9rem;
}
.reports-pagination a, .reports-pagination span {
  border: 1px solid var(--line); border-radius: 6px;
  padding: .35rem .75rem; color: var(--soft); text-decoration: none;
}
.reports-pagination a:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.reports-pagination .current {
  background: var(--gold); color: #14110a; border-color: var(--gold); font-weight: 600;
}

/* ── Pagina prodotto: copertina grande accanto al box acquisto ─────────── */
.report-buy-layout {
  display: grid; grid-template-columns: 300px 1fr; gap: 1.4rem;
  align-items: start; margin: 0 0 2rem;
}
.report-cover-large {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 8px;
}
@media (max-width: 760px) {
  .report-buy-layout { grid-template-columns: 1fr; }
  .report-cover-large { max-width: 320px; margin: 0 auto; }
  .reports-search-row { flex-direction: column; }
}
