* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f4f1ea;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-soft: #555;
  --accent: #8a6d3b;
  --border: #e3dccd;
  --warn: #b8860b;
  --ok: #2e7d32;
  --err: #b00020;
}
body {
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
header.admin-bar {
  background: #1d1d1f;
  color: #f4f1ea;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--accent);
}
header.admin-bar h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
}
header.admin-bar nav { display: flex; gap: 20px; }
header.admin-bar nav a {
  color: #f4f1ea;
  text-decoration: none;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 3px;
}
header.admin-bar nav a:hover { background: #333; }
header.admin-bar nav a.active { background: var(--accent); color: #1d1d1f; }
main { max-width: 1200px; margin: 32px auto; padding: 0 24px; }
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--ink);
}
h3 { font-size: 18px; margin: 24px 0 12px; color: var(--ink); }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 16px;
}
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; margin: 12px 0; }
.kv .k { color: var(--ink-soft); font-size: 14px; }
.kv .v { font-size: 14px; word-break: break-all; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge.ok { background: #e8f5e9; color: var(--ok); }
.badge.warn { background: #fff8e1; color: var(--warn); }
.badge.err { background: #ffebee; color: var(--err); }
.badge.draft { background: #ede7f6; color: #5e35b1; }
.badge.live { background: #e8f5e9; color: var(--ok); }
.badge.review { background: #fff8e1; color: var(--warn); }
.badge.bozza { background: #f5f5f5; color: #616161; }
.badge.bloccato { background: #ffebee; color: var(--err); }
.note {
  background: #fff8e1;
  border-left: 4px solid var(--warn);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
}
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { background: #faf7ee; font-weight: 600; color: var(--ink-soft); }
tbody tr:hover { background: #faf7ee; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.tile h3 { color: var(--accent); margin-bottom: 8px; }
.tile p { font-size: 13px; color: var(--ink-soft); }
.metric {
  display: inline-block;
  margin-right: 24px;
}
.metric .label { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.5px; }
.metric .value { font-size: 24px; font-weight: 600; color: var(--ink); }
footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px solid var(--border);
  margin-top: 48px;
}

/* === A+ PREVIEW SPECIFIC === */
.aplus-frame {
  max-width: 970px;
  margin: 24px auto;
  background: #ffffff;
  border: 1px solid #ddd;
}
.aplus-module { padding: 24px; border-bottom: 1px solid #eee; }
.aplus-module:last-child { border-bottom: none; }
.aplus-module h2 {
  font: 600 24px/1.3 "Amazon Ember", -apple-system, sans-serif;
  margin-bottom: 16px;
  color: #0F1111;
}
.aplus-module h3 {
  font: 600 16px/1.3 "Amazon Ember", -apple-system, sans-serif;
  margin: 12px 0 6px;
  color: #0F1111;
}
.aplus-module p, .aplus-module li {
  font: 14px/1.6 "Amazon Ember", -apple-system, sans-serif;
  color: #565959;
}
.aplus-module img { display: block; max-width: 100%; height: auto; }
.aplus-hero img { width: 100%; height: auto; }
.aplus-hero .body { margin-top: 16px; }
.aplus-four {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.aplus-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.aplus-four .item, .aplus-three .item { text-align: center; }
.aplus-four img, .aplus-three img { margin: 0 auto 12px; border-radius: 2px; }
.aplus-tech-specs table { background: #fff; border: 1px solid #ddd; }
.aplus-tech-specs th, .aplus-tech-specs td { padding: 10px 16px; border-bottom: 1px solid #eee; }
.aplus-tech-specs th { background: #f7f7f7; width: 40%; }
.aplus-highlights {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}
.aplus-highlights ul { margin: 12px 0 0 20px; }
.aplus-product-desc p { white-space: pre-wrap; }
.aplus-text-block { font-style: italic; color: #565959; }
.aplus-quote {
  font: italic 18px/1.5 Georgia, serif;
  color: #0F1111;
  border-left: 3px solid #8a6d3b;
  padding-left: 16px;
  margin: 12px 0;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  margin-right: 8px;
  font-family: inherit;
  transition: background 0.15s;
}
.btn-primary { background: var(--ok); color: white; }
.btn-primary:hover { background: #1b5e20; }
.btn-secondary { background: #e0d8c5; color: var(--ink); }
.btn-secondary:hover { background: #d3c8ac; }
.btn-danger { background: var(--err); color: white; }
.btn-danger:hover { background: #7f0000; }
.card-actions { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.book-card { transition: box-shadow 0.15s; }
.book-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.empty { color: var(--ink-soft); font-style: italic; padding: 12px 0; }

.review-bar {
  background: #fff8e1;
  border: 1px solid var(--warn);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 16px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.review-bar h4 { font-size: 16px; margin-bottom: 4px; color: var(--ink); }
.review-bar p { font-size: 13px; color: var(--ink-soft); margin: 0; }

@media (max-width: 768px) {
  header.admin-bar { flex-direction: column; gap: 8px; padding: 12px 16px; }
  header.admin-bar nav { flex-wrap: wrap; gap: 8px; }
  main { padding: 0 12px; }
  .aplus-four { grid-template-columns: repeat(2, 1fr); }
  .aplus-three { grid-template-columns: 1fr; }
  .aplus-highlights { grid-template-columns: 1fr; }
}
