:root {
  --crema: #F6F1E7;
  --testo: #262220;
  --rosso: #A5291F;
  --rosso-scuro: #7C1E17;
  --grigio: #6E655D;
  --bordo: #E4DBC9;
  --alt-bg: #EFE7D6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--crema);
  color: var(--testo);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}

h1, h2, h3, .kicker {
  font-family: "Playfair Display", Georgia, serif;
}

/* --- 1. Immagine di apertura: nessun testo sovrapposto, il titolo è nella foto --- */
.hero-image {
  line-height: 0; /* elimina lo spazio bianco sotto l'img inline */
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto; /* si vede l'immagine intera, non ritagliata */
}

.hero-bar {
  background: var(--rosso-scuro);
  color: var(--crema);
  text-align: center;
  padding: 1.4rem 1.5rem;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  opacity: .9;
  margin: 0 0 .9rem;
}

.btn-abstract {
  display: inline-block;
  background: var(--crema);
  color: var(--rosso-scuro);
  text-decoration: none;
  font-weight: 600;
  padding: .7em 1.5em;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-abstract:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

/* --- 2. Unica sezione con effetto parallax: sfondo + bottone richiedi libro --- */
.parallax {
  position: relative;
  overflow: hidden;
  background-color: var(--rosso-scuro); /* fallback finché non carichi la foto */
  color: var(--crema);
  min-height: 380px;
  display: flex;
  align-items: center;
}

.parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.15); /* margine extra ai bordi per il movimento parallax */
  transform-origin: center;
  will-change: transform;
  z-index: 0;
}

.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 12, .55);
  z-index: 1;
}

.parallax .section-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.parallax h2 {
  color: var(--crema);
  border: none;
  padding-left: 0;
  justify-content: center;
}

.btn-buy {
  display: inline-block;
  background: var(--rosso);
  color: var(--crema);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: .9em 2.2em;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn-buy:hover {
  background: #c22f22;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}

.section {
  padding: 3.5rem 1.5rem;
  border-bottom: 1px solid var(--bordo);
}

.section.alt { background: var(--alt-bg); }

.section h2 {
  max-width: 720px;
  margin: 0 auto 1.8rem;
  font-size: 1.9rem;
  color: var(--rosso-scuro);
  border-left: 4px solid var(--rosso);
  padding-left: .7em;
}

.prose {
  max-width: 720px;
  margin: 0 auto 1.1rem;
  font-size: 1.05rem;
}

.prose:last-of-type { margin-bottom: 1.6rem; }

.firma {
  max-width: 720px;
  margin: 0 auto;
  text-align: right;
  font-style: italic;
  color: var(--grigio);
}

.gallery {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gallery-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #ddd3ba;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s ease;
}

.gallery-item:hover img { transform: scale(1.04); }

.quotes {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

blockquote {
  margin: 0;
  padding: 1.4rem 1.6rem;
  background: var(--crema);
  border-left: 4px solid var(--rosso);
  border-radius: 4px;
}

blockquote p {
  margin: 0 0 .8rem;
  font-style: italic;
  white-space: pre-line;
}

blockquote cite {
  font-style: normal;
  color: var(--rosso-scuro);
  font-size: .95rem;
}

.autore-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.autore-foto {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  background: var(--bordo);
}

.autore-testo h3 {
  margin: 0 0 .8rem;
  font-size: 1.4rem;
}

.autore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: .95rem;
}

.autore-links a {
  color: var(--rosso-scuro);
  text-decoration: none;
  border-bottom: 1px solid var(--rosso);
}

.autore-links a:hover { color: var(--rosso); }

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--grigio);
  font-size: .9rem;
}

@media (max-width: 640px) {
  .autore-inner {
    grid-template-columns: 1fr;
  }
  .autore-foto {
    width: 140px;
    margin: 0 auto;
  }
}
