:root {
  --book-p: #F6F1E9;
  --book-p2: #EEE7D8;
  --book-p3: #E4D9C5;
  --book-p4: #D5C9B0;
  --book-deep: #18302D;
  --book-cu: var(--accent3);
  --book-cu2: var(--accent3);
  --book-ink: #0F1C1A;
  --book-mid: #4A5E5A;
  --book-lt: #8AA09C;
  --book-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main {
  padding-top: 58px;
}

.cover-stage {
  min-height: calc(100vh - 58px);
  min-height: calc(100svh - 58px);
  min-height: calc(100dvh - 58px);
  padding: 88px 88px 92px;
  display: grid;
  grid-template-columns: 1fr 380px 1fr;
  gap: 0;
  align-items: start;
  background: var(--book-deep);
  border-bottom: 1px solid rgba(246,241,233,.12);
  position: relative;
  overflow: hidden;
}
.cover-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 60% at 20% 78%, rgba(61,110,104,.24) 0%, transparent 70%),
    radial-gradient(ellipse 42% 42% at 84% 20%, rgba(61,110,104,.12) 0%, transparent 62%),
    radial-gradient(ellipse 48% 48% at 72% 88%, rgba(37,72,67,.30) 0%, transparent 66%);
}
.stage-left,
.stage-cover-col,
.stage-right {
  position: relative;
  z-index: 1;
}

.stage-left {
  padding-right: 60px;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.back-link {
  width: max-content;
  font-size: 9.8px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(246,241,233,.82);
  font-weight: 350;
  cursor: none;
  margin-bottom: 48px;
  transition: color .25s ease;
}
.back-link:hover {
  color: var(--book-cu2);
}

.stage-cat {
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--book-cu);
  margin-bottom: 6px;
  opacity: 0;
  animation: fade .7s var(--book-ease) .15s forwards;
}

.stage-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(44px, 4.8vw, 72px);
  font-weight: 300;
  line-height: 1.0;
  letter-spacing: -.02em;
  color: var(--book-p);
  margin-bottom: 12px;
  opacity: 0;
  animation: fade 1s var(--book-ease) .25s forwards;
}
.stage-title em {
  display: block;
  font-style: italic;
  color: var(--book-cu2);
  font-weight: 300;
}

.stage-subtitle {
  font-family: 'Cormorant', serif;
  font-size: clamp(16.5px, 1.5vw, 20.5px);
  letter-spacing: .015em;
  text-transform: none;
  font-style: italic;
  font-weight: 320;
  color: rgba(246,241,233,.79);
  line-height: 1.5;
  margin-bottom: 28px;
  max-width: 500px;
  opacity: 0;
  animation: fade .8s var(--book-ease) .38s forwards;
}

.stage-data {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.sd-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(246,241,233,.11);
  opacity: 0;
  animation: fade .7s var(--book-ease) var(--dl) forwards;
}
.sd-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sd-key {
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(246,241,233,.52);
}
.sd-val {
  font-family: 'Cormorant', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--book-p);
  text-align: right;
}

.sd-val a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(246,241,233,.34);
  text-underline-offset: .12em;
  transition: color .25s ease, text-decoration-color .25s ease;
  cursor: none;
}

.sd-val a:hover {
  color: var(--book-cu2);
  text-decoration-color: currentColor;
}

.stage-cover-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 18px 44px 10px;
}

.book-scene {
  perspective: 2100px;
  padding: 10px 10px 22px;
}
.book-3d {
  width: 271px;
  height: 388px;
  transform-style: preserve-3d;
  transform: rotateY(-11deg) rotateX(1.8deg);
  transition: transform .85s var(--book-ease);
  opacity: 0;
  animation: bookReveal 1.1s var(--book-ease) .2s forwards;
}
.book-scene:hover .book-3d {
  transform: rotateY(-5deg) rotateX(1.1deg) translateY(-2px);
}

.book-face {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #2e6660 0%, #18302D 50%, #0c1e1b 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 20px 18px 26px;
}
.book-face::before {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.05);
  top: -120px;
  left: -120px;
}
.book-face::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent3-rgb), .1);
  bottom: -70px;
  right: -70px;
}
.book-face-image {
  background: #0f1c1a;
  padding: 0;
}
.book-face-image::before,
.book-face-image::after {
  content: none;
}
.book-face-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.book-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20px;
  right: 100%;
  transform: rotateY(-90deg);
  transform-origin: right center;
  background: linear-gradient(90deg, #091614, #18302D);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spine-txt {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Cormorant', serif;
  font-size: 8.5px;
  font-weight: 400;
  color: rgba(246,241,233,.28);
  letter-spacing: .08em;
  white-space: nowrap;
}

.book-shadow {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 38px;
  background: radial-gradient(ellipse, rgba(0,0,0,.28) 0%, rgba(0,0,0,.18) 42%, transparent 75%);
  filter: blur(10px);
  opacity: .55;
  transition: opacity .5s;
}
.book-scene:hover .book-shadow {
  opacity: .72;
}

.cover-amazon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fade .8s var(--book-ease) .9s forwards;
}
.amazon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: none;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .08em;
  text-transform: none;
  color: rgba(246,241,233,.96);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(246,241,233,.28);
  padding: 4px 0;
  transition: color .25s ease, border-color .25s ease, gap .25s ease;
}
.amazon-btn::before {
  content: none;
}
.amazon-btn span,
.amazon-btn svg {
  position: static;
}
.amazon-btn svg {
  transition: transform .25s ease;
}
.amazon-btn:hover {
  color: var(--book-cu2);
  border-color: rgba(var(--accent3-rgb), .65);
  gap: 11px;
}
.amazon-btn:hover svg {
  transform: translateX(2px);
}

.stage-right {
  padding-left: 60px;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(246,241,233,.07);
}

/* Metadati destra: impaginazione rigorosa */
.stage-right .stage-data {
  width: 100%;
  gap: 0;
}
.stage-right .sd-row {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  align-items: start;
  column-gap: 18px;
  padding: 21px 0 27px;
  border-bottom: 1px solid rgba(246,241,233,.022);
}
.stage-right .sd-key {
  color: rgba(246,241,233,.44);
  line-height: 1.35;
}
.stage-right .sd-val {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 320;
  letter-spacing: .01em;
  line-height: 1.35;
  text-align: left;
}

.description {
  max-width: 820px;
  margin: 0 auto;
  padding: 120px 64px;
}

.desc-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.desc-eyebrow-rule {
  width: 28px;
  height: 1px;
  background: var(--book-cu);
}
.desc-eyebrow span {
  font-size: 9px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--book-cu);
}

.description h2 {
  font-family: 'Cormorant', serif;
  font-size: clamp(36px, 3.8vw, 52px);
  font-weight: 300;
  line-height: 1.08;
  color: var(--book-ink);
  margin-bottom: 48px;
}
.description h2 em {
  font-style: italic;
  color: var(--book-cu);
  font-weight: 400;
}

.desc-text p {
  font-size: 16.5px;
  font-weight: 200;
  color: #3f5350;
  line-height: 2.05;
  margin-bottom: 28px;
}
.desc-text p:last-child {
  margin-bottom: 0;
}
.desc-text p strong {
  font-weight: 400;
  color: var(--book-ink);
}

.desc-text > p:first-of-type::first-letter {
  font-family: 'Cormorant', serif;
  float: left;
  font-size: 74px;
  font-weight: 320;
  font-style: italic;
  line-height: .88;
  margin-right: 7px;
  margin-top: 5px;
  color: var(--book-cu);
}

.desc-quote {
  border-left: 1px solid var(--book-cu);
  padding: 18px 28px;
  margin: 44px 0;
  background: rgba(var(--accent3-rgb), .022);
}
.desc-quote p {
  font-family: 'Cormorant', serif;
  font-size: 23px;
  font-style: italic;
  font-weight: 400;
  color: var(--book-deep);
  line-height: 1.55;
  margin-bottom: 0 !important;
}
.desc-quote p::first-letter {
  all: unset;
}

.related {
  background: var(--book-deep);
  padding: 80px 88px;
}

.rel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}
.rel-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.rel-eyebrow-rule {
  width: 28px;
  height: 1px;
  background: var(--book-cu2);
}
.rel-eyebrow span {
  font-size: 9px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--book-cu2);
}
.rel-header h2 {
  font-family: 'Cormorant', serif;
  font-size: 38px;
  font-weight: 300;
  color: var(--book-p);
  line-height: 1;
}
.rel-header h2 em {
  font-style: italic;
  color: var(--book-cu2);
  font-weight: 400;
}
.rel-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-bottom: 2px;
}
.rel-total-link {
  width: max-content;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(246,241,233,.62);
  transition: color .25s ease;
}
.rel-total-link:hover {
  color: var(--book-cu2);
}
.rel-total-note {
  font-size: 8px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(246,241,233,.34);
}

.rel-list {
  border-top: 1px solid rgba(255,255,255,.026);
}
.rel-item {
  display: grid;
  grid-template-columns: 64px 1fr 92px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.026);
  text-decoration: none;
  cursor: none;
  transition: background .3s;
  position: relative;
  overflow: hidden;
}
.rel-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(255,255,255,.02);
  transition: width .4s var(--book-ease);
}
.rel-item:hover {
  background: rgba(255,255,255,.025);
}

.rel-cover {
  height: 90px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}
.rel-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.rel-info {
  padding: 22px 36px 24px 24px;
}
.rel-year {
  font-size: 7.2px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(var(--accent3-rgb), .56);
  margin-bottom: 6px;
}
.rel-title {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 430;
  color: rgba(246,241,233,.84);
  line-height: 1.16;
  margin-bottom: 7px;
  transition: color .3s;
}
.rel-item:hover .rel-title {
  color: var(--book-p);
}
.rel-cat {
  font-size: 12.6px;
  font-weight: 270;
  letter-spacing: .02em;
  line-height: 1.45;
  color: rgba(246,241,233,.62);
}

.rel-arrow {
  justify-self: end;
  width: max-content;
  color: rgba(246,241,233,.34);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .3s ease;
}
.rel-item:hover .rel-arrow {
  color: var(--book-cu2);
}

@keyframes fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes bookReveal {
  from { opacity: 0; transform: rotateY(-31deg) rotateX(5deg) translateY(18px); }
  to { opacity: 1; transform: rotateY(-11deg) rotateX(1.8deg); }
}

.sr {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s var(--book-ease), transform .9s var(--book-ease);
}
.srr {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity .9s var(--book-ease), transform .9s var(--book-ease);
}
.sr.v,
.srr.v {
  opacity: 1;
  transform: none;
}
.d1 { transition-delay: .09s; }
.d2 { transition-delay: .18s; }
.d3 { transition-delay: .27s; }
.d4 { transition-delay: .36s; }

@media (max-width: 1120px) {
  .cover-stage {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .stage-left,
  .stage-right {
    padding-left: 0;
    padding-right: 0;
    border-left: none;
  }
  .stage-right {
    border-top: 1px solid var(--book-p3);
    padding-top: 26px;
  }
  .stage-cover-col {
    padding-top: 0;
    gap: 32px;
  }
  .book-3d {
    width: 252px;
    height: 360px;
  }
  .stage-right .sd-row {
    grid-template-columns: 138px minmax(0, 1fr);
    column-gap: 16px;
  }
}

@media (max-width: 860px) {
  .cover-stage,
  .description,
  .related {
    padding-left: 28px;
    padding-right: 28px;
  }
  .book-3d {
    width: 231px;
    height: 330px;
  }
  .book-shadow {
    width: 240px;
    height: 32px;
  }
  .stage-right .sd-row {
    grid-template-columns: 122px minmax(0, 1fr);
    column-gap: 14px;
    padding: 17px 0 22px;
  }
  .stage-right .sd-val {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .cover-stage,
  .description,
  .related {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cover-stage {
    padding-top: 72px;
    padding-bottom: 74px;
    gap: 24px;
  }

  .stage-left {
    padding-top: 0;
    padding-right: 0;
  }

  .back-link {
    margin-bottom: 30px;
  }

  .stage-title {
    font-size: clamp(32px, 11vw, 44px);
    line-height: 1.03;
  }

  .stage-subtitle {
    font-size: 15px;
    line-height: 1.45;
    margin-bottom: 22px;
  }

  .stage-cover-col {
    gap: 22px;
  }

  .book-3d {
    width: 202px;
    height: 288px;
  }

  .book-shadow {
    width: 208px;
    height: 28px;
  }

  .stage-right {
    padding-top: 20px;
  }

  .stage-right .sd-row {
    grid-template-columns: 1fr;
    row-gap: 6px;
    padding: 14px 0 16px;
  }

  .stage-right .sd-key,
  .stage-right .sd-val {
    text-align: left;
  }

  .desc-quote {
    border-left: none;
    border-top: 1px solid var(--book-p3);
    padding-left: 0;
    padding-top: 14px;
  }

  .rel-item {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 16px 0;
  }

  .rel-arrow {
    font-size: 8.5px;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 960px) {
  :root {
    --book-mid: #5c726d;
  }

  .back-link {
    color: rgba(246, 241, 233, 0.92);
  }

  .stage-subtitle {
    color: rgba(246, 241, 233, 0.88);
  }

  .sd-key {
    color: rgba(246, 241, 233, 0.68);
  }

  .sd-row,
  .stage-right .sd-row {
    border-bottom-color: rgba(246, 241, 233, 0.18);
  }

  .spine-txt {
    color: rgba(246, 241, 233, 0.46);
  }
}
