* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1a1a1a;
  background: #fafaf7;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  background: #1a1a1a;
  color: #fafaf7;
  padding: 24px 0;
  border-bottom: 3px solid #c9994a;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.brand h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #c9994a;
}

.tagline {
  font-size: 13px;
  color: #b8b8b8;
  margin-top: 4px;
  font-style: italic;
}

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: #fafaf7;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: #c9994a;
}

.hero {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #fafaf7;
  padding: 80px 0;
  text-align: center;
}

.hero h2 {
  font-family: Georgia, serif;
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 16px;
  color: #c9994a;
}

.hero p {
  font-size: 18px;
  color: #d8d8d8;
  max-width: 600px;
  margin: 0 auto;
}

.catalogo {
  padding: 64px 0;
}

.catalogo h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  margin-bottom: 32px;
  border-bottom: 2px solid #c9994a;
  padding-bottom: 12px;
  display: inline-block;
}

.collana {
  font-family: Georgia, serif;
  font-size: 22px;
  margin: 48px 0 24px;
  color: #5a4a3a;
  font-weight: 500;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px;
}

.libro {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.libro:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.cover {
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f3ec;
  overflow: hidden;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.libro h4 {
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  padding: 16px 16px 4px;
  color: #1a1a1a;
  line-height: 1.3;
}

.libro .autore {
  padding: 0 16px;
  font-size: 14px;
  color: #6a6a6a;
  font-style: italic;
}

.libro .formati {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.libro .formati a {
  display: block;
  background: #c9994a;
  color: white;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s;
}

.libro .formati a:hover {
  background: #a07b35;
}

.lang {
  display: inline-block;
  background: #5a8fd6;
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 600;
}

.status-pending {
  display: block;
  font-size: 13px;
  color: #888;
  font-style: italic;
  text-align: center;
  padding: 8px;
  background: #f0f0ed;
  border-radius: 4px;
}

.info {
  background: #f0ebe0;
  padding: 64px 0;
}

.info h2 {
  font-family: Georgia, serif;
  font-size: 32px;
  margin-bottom: 24px;
  color: #1a1a1a;
}

.info p {
  font-size: 16px;
  margin-bottom: 16px;
  max-width: 800px;
  color: #3a3a3a;
}

footer {
  background: #1a1a1a;
  color: #d8d8d8;
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 32px;
}

footer h4 {
  color: #c9994a;
  font-size: 15px;
  margin-bottom: 12px;
  font-family: Georgia, serif;
}

footer p {
  font-size: 14px;
  line-height: 1.7;
}

footer a {
  color: #c9994a;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

.copyright {
  border-top: 1px solid #3a3a3a;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

@media (max-width: 768px) {
  .hero h2 { font-size: 30px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
  .libro h4 { font-size: 15px; }
  nav { gap: 14px; font-size: 14px; }
}
