.book-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
  color: var(--color-base);
  background: var(--color-background);
}

.book-container {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 3rem;
  align-items: flex-start;
}

/* === COLONNA SINISTRA === */
.book-left {
  position: sticky;
  top: 100px;
  align-self: start;
  display: flex;
  justify-content: center;
}

.book-cover-wrapper {
  position: relative;
  width: 100%;
  max-width: 280px;
}

.book-cover-shadow {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: 0px 5px 10px rgba(0,0,0,0.39);
  transition: all 0.3s ease;
}

.book-cover-shadow:hover {
  transform: translateY(-3px);
  box-shadow: 0px 8px 14px rgba(0,0,0,0.45);
}

/* === COLONNA DESTRA === */
.book-right {
  display: flex;
  flex-direction: column;
}

.book-header {
  margin-bottom: 0.2rem;
}

#heading-1 {
  margin-bottom: 0.5rem;
}

.book-rating {
  margin-bottom: 1.2rem;
}

/* === TAGS SOTTO LE STELLE === */
.book-tags {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.book-tag {
  background: #f6f6f6;
  border: 0px solid #e0e0e0;
  border-radius: 15px;
  padding: 6px 15px;
  font-size: 1.5rem;
  color: #444;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.book-tag:hover {
  background: #e9f4ee;
  color: #2b2b2b;
}

/* Stelle */
.stars-wrapper {
  display: inline-flex;
  gap: 3px;
}

.stars-wrapper .star {
  transition: color 0.3s ease-in-out;
}

/* === BLOCCO TESTO === */
.book-body {
  max-width: 680px;
  margin: 0;
  padding: 0;
}

.single-excerpt {
  margin-bottom: 1.5rem;
}

.book-judgement {
  margin-top: 2rem;
}

.book-right .gh-content,
.book-right .gh-canvas {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* === BOTTONI + DROPDOWN === */
.book-buttons {
  margin-top: 2rem;
  position: relative;
}

.Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 26px;
  font-size: 1.75rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 3rem;
  border: 2px solid #5b9471;
  color: #2b2b2b;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.Button:hover {
  background: #f2faf5;
  transform: translateY(-1px);
}

.Button--buy {
  border-color: #5b9471;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  gap: 0.6rem;
}

.dropdown-arrow {
  font-size: 2.8rem;
  line-height: 1;
  font-weight: 500;
  margin-left: 0.3rem;
  color: #333;
}

/* Menu animato */
.dropdown-content {
  display: none;
  position: absolute;
  background: #fff;
  min-width: 240px;
  border: 1px solid #d6d6d6;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  z-index: 1000;
  top: 100%;
  left: 0;
  margin-top: 8px;
  overflow: hidden;

  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown-content a {
  color: #222;
  padding: 14px 18px;
  text-decoration: none;
  display: block;
  font-size: 1.4rem;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-content a:hover {
  background: #f4f4f4;
}

.dropdown.open .dropdown-content {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .book-container {
    grid-template-columns: 1fr;
  }

  .book-left {
    position: relative;
    top: 0;
    margin-bottom: 2rem;
  }

  .book-cover-shadow {
    max-width: 70%;
    margin: 0 auto;
  }

  .book-right {
    padding: 0 0.5rem;
  }

  .book-body {
    max-width: 100%;
  }
}
