body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background-color: #f6f4ef;
  color: #222;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cover {
  max-width: 360px;
  width: 100%;
  margin: 0 auto 30px;
  display: block;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

h1 {
  font-size: 2.2em;
  margin-bottom: 0.4em;
}

.author {
  font-style: italic;
  margin-bottom: 1.5em;
}

.synopsis {
  line-height: 1.6;
  font-size: 1.05em;
}

.footer {
  margin-top: 50px;
  font-size: 0.85em;
  color: #666;
}
.cover-thumb{
  max-width: 180px;
  width: 100%;
  display: block;
  margin: 12px 0 24px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.20);
}
.catalog-item{
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin: 30px 0;
}

.catalog-cover{
  max-width: 160px;
  width: 100%;
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

.catalog-text{
  font-size: 1.05em;
}
.buy-buttons{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.buy-btn{
  padding: 6px 12px;
  font-size: 0.9em;
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid #333;
  color: #333;
}

.buy-btn:hover{
  background-color: #333;
  color: #fff;
}

.buy-btn.amazon{ }
.buy-btn.kobo{ }
.buy-btn.google{ }
.buy-buttons{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.buy-btn{
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.9em;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid #222;
  color: #222;
  background: transparent;
}
/* ====== SOLO PAGINE LIBRO ====== */
body.book .buy-buttons{
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 22px 0 14px;
}

body.book .buy-btn{
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid #222;
  text-decoration: none;
  font-size: 1em;
}

body.book .buy-btn:first-child{
  background: #111;
  color: #fff;
}

body.book .buy-btn:not(:first-child){
  background: transparent;
  color: #111;
}

body.book .container p{
  font-size: 1.02em;
  line-height: 1.65;
}
/* ====== FORCE: BOTTONI ACQUISTO TUTTI NERI (OVERRIDE) ====== */
body.book .buy-buttons a.buy-btn{
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #111 !important;
  padding: 14px 28px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
}

body.book .buy-buttons a.buy-btn:hover{
  background: #000 !important;
  border-color: #000 !important;
}

.buy-btn:hover{
  background: #222;
  color: #fff;
}
/* ====== FORCE ASSOLUTO: TUTTI I BOTTONI ACQUISTO ====== */
body.book .buy-buttons a{
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #111 !important;
  padding: 14px 28px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  font-size: 1em !important;
}
/* ====== OVERRIDE TOTALE BOTTONI ACQUISTO (TUTTI, ANCHE IL SECONDO) ====== */
body.book .buy-buttons a.buy-btn,
body.book .buy-buttons a.buy-btn:not(:first-child),
body.book .buy-buttons a.buy-btn + a.buy-btn{
  background: #111 !important;
  color: #fff !important;
  border: 1px solid #111 !important;
}

body.book .buy-buttons a.buy-btn:hover{
  background: #000 !important;
  border-color: #000 !important;
}

body.book .buy-buttons a:hover{
  background: #000 !important;
  border-color: #000 !important;
}
/* Catalogo: layout stabile (no colonne fantasma) */
.catalog-item{
  display:flex;
  align-items:flex-start;
  gap: 28px;
  margin: 28px 0;
}

.catalog-cover{
  width: 190px;
  height: auto;
  display:block;
}

.catalog-text{
  flex:1;
  min-width: 0;
  column-count: 1 !important;
  column-gap: normal !important;
}

.catalog-text h4{
  margin: 12px 0 8px;
}

.buy-buttons{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.catalog-item a{
  break-inside: avoid;
}

/* Pagina autore */
.author-photo {
  display: block;
  max-width: 260px;
  width: 100%;
  height: auto;
  margin: 20px auto 30px auto;
  border-radius: 4px;
}

/* Pagina autore */
.autore-page {
  font-size: 18px;
  line-height: 1.65;
}

.autore-page p {
  max-width: 720px;
}

/* ====== OVERRIDE SOLO PAGINA AUTORE (font più grande) ====== */
.container.autore-page{
  font-size: 24px;
  line-height: 1.75;
}

.container.autore-page p,
.container.autore-page li{
  font-size: 1em;
  line-height: inherit;
  max-width: 760px;
}

/* ====== Bottone Scheda Autore (catalogo) ====== */
.catalog-autore-btn .buy-btn,
.container > p .buy-btn[href="/autore/"] {
  background-color: #c9a24d;   /* oro */
  color: #111;
  border: 1px solid #b8923f;
}

.catalog-autore-btn .buy-btn:hover,
.container > p .buy-btn[href="/autore/"]:hover {
  background-color: #a8842f;   /* oro scuro */
  color: #fff;
  border-color: #a8842f;
}

/* ===== Bottone Scheda Autore (oro, stabile) ===== */
a.buy-btn.author-btn{
  background-color: #c9a24d !important;
  color: #111 !important;
  border: 1px solid #b8923f !important;
}

a.buy-btn.author-btn:hover{
  background-color: #a8842f !important;
  color: #fff !important;
  border-color: #a8842f !important;
}
