.ce-page {
  background: #0a0a0b;
}

.ce-page #anteprima,
.ce-page #acquista {
  scroll-margin-top: 85px;
}

.ce-hero {
  padding: clamp(110px, 12vw, 172px) 0 clamp(58px, 8vw, 106px);
  background: radial-gradient(ellipse at 75% 47%, #2a2314 0%, #161410 38%, transparent 68%);
}

.ce-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  column-gap: clamp(30px, 5vw, 72px);
  align-items: center;
}

.ce-edition {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  margin: 0 0 22px;
  color: var(--accent);
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.ce-edition span {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .025em;
  text-transform: none;
}

.ce-hero h1 {
  margin: 0 0 24px;
  font: 400 clamp(4.4rem, 8.3vw, 7.5rem)/.96 var(--display);
  text-transform: uppercase;
  letter-spacing: -.014em;
  color: var(--white);
}

.ce-hero h1 span {
  display: block;
  color: var(--accent);
}

.ce-subtitle {
  margin: 0;
  max-width: 32ch;
  font-size: clamp(1.16rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}

.ce-lead {
  max-width: 47ch;
  margin: 15px 0 25px;
  line-height: 1.6;
  color: var(--muted);
}

.ce-mockup {
  width: 100%;
  max-width: 580px;
  margin-inline: auto;
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.08;
}

.ce-book,
.ce-tablet {
  position: absolute;
  margin: 0;
}

.ce-book {
  left: 7%;
  top: 8%;
  width: 53.5%;
  transform: rotate(-7deg);
  transform-origin: 50% 70%;
  box-shadow: -2px 6px 6px rgba(0,0,0,.4), 0 30px 60px rgba(0,0,0,.65);
  border: 1px solid #525055;
  border-radius: 2px 3px 3px 2px;
  background: #0a0a0b;
  z-index: 1;
}

.ce-book::after {
  content: "";
  position: absolute;
  inset: 3px -6px 3px auto;
  width: 5px;
  background: linear-gradient(90deg, #6d6557, #aaa394 55%, #5e574c);
  border-radius: 0 2px 2px 0;
}

.ce-tablet {
  right: 4%;
  top: 16%;
  width: 43.5%;
  padding: clamp(6px, 1.15vw, 13px);
  border: 1px solid #6c6862;
  border-radius: clamp(9px, 1.6vw, 21px);
  background: #242323;
  box-shadow: 0 21px 48px rgba(0,0,0,.55);
  transform: rotate(9deg);
}

.ce-book img,
.ce-tablet img {
  width: 100%;
  height: auto;
}

.ce-tablet img {
  border-radius: 3px;
  background: #f7f7f6;
}

.ce-preview {
  background: #f4f2ed;
  color: #242222;
  padding: clamp(55px, 7vw, 86px) 0;
}

.ce-preview h2 span {
  color: #745618;
}

.ce-preview-lead {
  margin: 12px 0 28px;
  max-width: 58ch;
  color: #554f45;
}

.ce-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2.4vw, 26px);
}

.ce-preview-item {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #d5cdbb;
  padding: clamp(8px, 1.8vw, 20px);
  box-shadow: 0 6px 16px rgba(48,38,19,.08);
  height: 100%;
}

.ce-preview-item:hover,
.ce-preview-item:focus-visible {
  border-color: #9c762d;
  box-shadow: 0 9px 22px rgba(48,38,19,.16);
}

.ce-preview-item:focus-visible {
  outline: 2px solid #745618;
  outline-offset: 3px;
}

.ce-preview-item img {
  width: 100%;
  height: auto;
  border: 1px solid #ded9cd;
}

.ce-preview-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 10px;
  margin-top: 12px;
  font-size: .96rem;
  font-weight: 800;
  line-height: 1.35;
}

.ce-preview-label small {
  color: #664f23;
  font-size: .8rem;
  white-space: nowrap;
}

.ce-page-dialog {
  color-scheme: light;
  width: min(94vw, 750px);
  max-height: 92dvh;
  padding: 0;
  border: 1px solid #d5cdbb;
  border-radius: 15px;
  background: #f4f2ed;
  color: #242222;
}

.ce-page-dialog::backdrop {
  background: rgba(8,8,8,.83);
}

.ce-dialog-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #f4f2ed;
  padding: 12px clamp(14px, 2.5vw, 24px);
  border-bottom: 1px solid #d5cdbb;
}

.ce-dialog-header h2 {
  margin: 0;
  font-size: 1rem;
}

.ce-dialog-original {
  color: #654d1b;
  font-size: .87rem;
  text-underline-offset: .15em;
}

.ce-dialog-close {
  width: 44px;
  height: 44px;
  cursor: pointer;
  border: 1px solid #c9ba99;
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
  background: #fff;
  color: #242222;
}

.ce-dialog-page img {
  width: 100%;
  height: auto;
}

.ce-buy-box {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(25px, 5vw, 68px);
  max-width: 820px;
  text-align: left;
  border-color: #635331;
  background: radial-gradient(ellipse at top left, #2d2410, #151411 61%);
}

.ce-buy-box > img {
  width: 100%;
  height: auto;
  border: 1px solid #55504a;
  box-shadow: 0 17px 26px rgba(0,0,0,.5);
}

.ce-buy-details h2 {
  margin: 0;
  font: 400 clamp(1.8rem, 4vw, 2.6rem)/1.07 var(--display);
  text-transform: uppercase;
}

.ce-buy-details .price-line {
  margin: 6px 0 0;
}

.ce-buy-details .trust-line {
  justify-content: flex-start;
}

@media (max-width: 820px) {
  .ce-hero {
    background: radial-gradient(ellipse at 54% 76%, #2a2314 0%, #161410 30%, transparent 68%);
  }

  .ce-hero-layout {
    display: block;
  }

  .ce-hero h1 {
    font-size: clamp(3.9rem, 12vw, 6.3rem);
  }

  .ce-mockup {
    max-width: 474px;
    margin-top: 34px;
  }
}

@media (max-width: 540px) {
  .ce-hero {
    padding-top: 100px;
    padding-bottom: 42px;
  }

  .ce-edition {
    margin-bottom: 15px;
  }

  .ce-hero h1 {
    margin-bottom: 17px;
  }

  .ce-hero .page-actions {
    gap: 9px;
  }

  .ce-hero .page-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .ce-mockup {
    margin-top: 24px;
  }

  .ce-preview-grid {
    display: flex;
    overflow-x: auto;
    padding: 4px 4px 16px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 4px;
    scrollbar-color: #9c762d #e9e3d6;
  }

  .ce-preview-item {
    flex: 0 0 min(72%, 238px);
    min-width: 0;
    height: auto;
    scroll-snap-align: start;
  }

  .ce-preview-label {
    font-size: .83rem;
  }

  .ce-buy-box {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .ce-buy-box > img {
    width: min(145px, 62%);
  }

  .ce-buy-details .trust-line {
    justify-content: center;
  }
}
