/* Real scans, a cloth cover and a quiet reading surface. */
.s-memories { position: relative; padding: clamp(64px, 8vw, 120px) 24px 76px; background: var(--paper); color: var(--paper-ink); }
.memories-inner { max-width: 1120px; margin-inline: auto; }
#ospiti, #guestbook { scroll-margin-top: 100px; }
.s-memories h2 { font-family: var(--font-serif); font-size: clamp(42px, 5vw, 66px); font-weight: 400; line-height: 1.06; letter-spacing: -.035em; text-wrap: balance; }
.s-memories h2 em { font-weight: 400; }
.reviews-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.reviews-heading h2 { max-width: 520px; }
.reviews-google { flex-shrink: 0; padding-bottom: 4px; }
.reviews-google p { display: flex; align-items: center; gap: 15px; margin-bottom: 8px; }
.google-word { font: 500 22px var(--font-sans); letter-spacing: -.06em; }
.review-stars { color: #967331; letter-spacing: .13em; font-size: 14px; }
.reviews-google strong { font-size: 19px; font-weight: 500; font-variant-numeric: tabular-nums; }
.reviews-google small { color: var(--paper-ink-soft); font-size: 12px; font-weight: 400; }
.reviews-google a { display: inline-flex; gap: 28px; align-items: center; min-height: 44px; color: var(--paper-ink); font-size: 13px; text-underline-offset: 5px; text-decoration-color: #b8ac95; }
.reviews-google a span { font-size: 20px; }
.reviews-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 42px; }
.review-quote { padding-top: 26px; border-top: 1px solid #cfc5b1; }
.review-quote blockquote { max-width: 460px; font: italic 400 clamp(25px, 2.5vw, 31px)/1.22 var(--font-serif); text-wrap: pretty; }
.review-quote figcaption { display: flex; align-items: baseline; gap: 16px; font-size: 13px; }
.review-rating { color: #967331; letter-spacing: .2em; font-size: 15px; margin-top: 20px; }
.review-translation { color: var(--paper-ink-soft); font-size: 10px; margin-top: 2px; }
.reviews-carousel.is-ready { --review-gap: 64px; --review-columns: 2; margin-top: 42px; }
.reviews-carousel.is-ready .reviews-viewport { overflow: hidden; touch-action: pan-y pinch-zoom; }
.reviews-carousel.is-ready .reviews-quotes { display: flex; gap: var(--review-gap); margin: 0; transition: transform 750ms cubic-bezier(.22,.65,.25,1); }
.reviews-carousel.is-ready .review-quote { flex: 0 0 calc((100% - var(--review-gap) * (var(--review-columns) - 1)) / var(--review-columns)); min-width: 0; }
.reviews-carousel.is-ready .review-quote blockquote { min-height: 3.66em; }
.reviews-carousel .reviews-controls { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; }
.reviews-controls button { min-width: 44px; min-height: 44px; cursor: pointer; color: var(--paper-ink); background: transparent; border: 1px solid #c6bba5; font-family: var(--font-sans); touch-action: manipulation; }
.reviews-controls button:hover { background: #ebe3d1; }
.reviews-controls .reviews-pause { padding: 8px 15px; font-size: 12px; border-color: transparent; text-decoration: underline; text-underline-offset: 4px; }
.reviews-navigation { display: flex; align-items: center; gap: 18px; }
.reviews-navigation button { border-radius: 50%; font-size: 23px; }
.reviews-count { min-width: 36px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .reviews-carousel.is-ready { --review-gap: 24px; --review-columns: 1; margin-top: 23px; }
  .reviews-carousel.is-ready .review-quote blockquote { min-height: 4.88em; }
}
@media (prefers-reduced-motion: reduce) { .reviews-carousel.is-ready .reviews-quotes { transition: none; } }
.review-source { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper-ink-soft); font-size: 11px; text-underline-offset: 4px; text-decoration-color: #cfc5b1; }
.guestbook { margin-top: 92px; padding-top: 70px; border-top: 1px solid #cfc5b1; }
.guestbook-heading { text-align: center; }
.guestbook-eyebrow { font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .22em; margin-bottom: 18px; }
.guestbook-heading h2 { font-size: clamp(44px, 5.1vw, 69px); }
.guestbook-heading > p:last-child { margin: 24px auto 0; color: var(--paper-ink-soft); font-size: 14px; line-height: 1.7; max-width: 570px; text-wrap: pretty; }
.gb-stage { position: relative; max-width: 1000px; margin: 40px auto 0; padding: 36px 16px 38px; perspective: 1800px; isolation: isolate; outline-offset: 6px; }
.gb-stage:focus-visible { outline: 2px solid #967331; }
.gb-position { position: relative; transform-style: preserve-3d; transition: transform 900ms cubic-bezier(.22,.65,.25,1); }
.gb-position[data-state="closed"] { transform: translateX(-25%) rotateX(7deg) rotateY(-12deg) rotateZ(-3deg); }
.gb-position[data-state="back"] { transform: translateX(25%) rotateX(5deg) rotateY(9deg) rotateZ(2deg); }
.gb-book { width: 100%; position: relative; }
.gb-book:not(.stf__parent) { aspect-ratio: 2; }
.gb-book:not(.stf__parent) .gb-page { display: none; }
.gb-book:not(.stf__parent) .gb-cover { display: block; position: absolute; right: 0; width: 50%; height: 100%; }
.gb-page { background: #fdfbf7; overflow: hidden; border-radius: 1px 3px 3px 1px; box-shadow: 0 1px 2px #30241526; }
.gb-page img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.gb-page::after { content: ''; position: absolute; inset: 0; pointer-events: none; border: 1px solid #84725c20; background: linear-gradient(90deg, #30201020, transparent 4%, transparent 94%, #30201006); }
.gb-page.--left::after { background: linear-gradient(270deg, #30201032, #30201006 6%, transparent 16%); }
.gb-page.--right::after { background: linear-gradient(90deg, #30201032, #30201006 6%, transparent 16%); }
.gb-cover { border: 1px solid #c9c4b9; border-radius: 3px 5px 5px 3px; }
.gb-cover::after { background: linear-gradient(90deg, #42352224, transparent 2%, #796c5717 2.8%, transparent 4.4%, transparent 96%, #75654914); border: 0; }
.gb-position::before { content: ''; position: absolute; z-index: -1; inset: 5px -4px -7px 0; border: 1px solid #c2b8a5; border-radius: 4px; background: repeating-linear-gradient(0deg, #c9c1b4 0 1px, #f4efe4 1px 3px); box-shadow: 2px 8px 12px #30241914, 10px 25px 34px #30241921, 1px 3px 2px #30241926; }
.gb-position[data-state="closed"]::before { left: 50%; }
.gb-position[data-state="back"]::before { right: 50%; }
.gb-flyleaf, .gb-back { background: #f9f6ee; }
.gb-flyleaf-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 9%; text-align: center; background: repeating-linear-gradient(90deg, transparent 0 2px, #8e805107 2px 3px); }
.gb-flyleaf-inner > span { font-size: clamp(9px, 1vw, 12px); letter-spacing: .17em; text-transform: uppercase; }
.gb-flyleaf-inner > p { margin-block: 14%; font: 400 clamp(25px, 3.1vw, 41px)/1.1 var(--font-serif); letter-spacing: -.02em; }
.gb-flyleaf-inner > small { font: 400 clamp(10px, 1vw, 12px)/1.6 var(--font-sans); color: var(--paper-ink-soft); }
.gb-stage .stf__wrapper { overflow: visible !important; }
.gb-stage .stf__block { cursor: grab; touch-action: pan-y pinch-zoom; }
.gb-book.stf__parent { touch-action: pan-y pinch-zoom; }
.gb-stage .stf__block:active { cursor: grabbing; }
.gb-actions { text-align: center; min-height: 126px; }
.gb-actions button { font-family: var(--font-sans); color: var(--paper-ink); cursor: pointer; touch-action: manipulation; }
.gb-open { display: inline-flex; align-items: center; gap: 48px; min-height: 50px; padding: 12px 24px; border: 1px solid #93856e; border-radius: 0; background: transparent; font-size: 13px; transition: background 180ms; }
.gb-open:hover { background: #ebe3d1; }
.gb-open span { font-size: 20px; }
.gb-open:disabled { cursor: wait; opacity: .65; }
.gb-navigation { display: flex; align-items: center; justify-content: center; gap: 26px; }
.gb-arrow { width: 46px; height: 46px; font-size: 25px; border: 1px solid #c6bba5; border-radius: 50%; background: transparent; }
.gb-arrow:hover:enabled { background: #e9e0ce; }
.gb-arrow:disabled { opacity: .3; cursor: default; }
.gb-counter { min-width: 155px; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.gb-reading-actions { display: flex; justify-content: center; gap: 28px; margin-top: 8px; }
.gb-reading-actions button { min-height: 44px; background: none; border: 0; font-size: 12px; }
.gb-read { text-decoration: underline; text-underline-offset: 5px; }
.gb-read span { margin-left: 7px; }
.gb-close { color: var(--paper-ink-soft) !important; }
.gb-instructions { color: var(--paper-ink-soft); font-size: 11px; margin-top: 15px; }
.gb-accessible { max-width: 760px; margin: 28px auto 0; border-top: 1px solid #d6cdbb; }
.gb-accessible summary { width: fit-content; margin: 0 auto; padding: 17px 5px; min-height: 44px; font-size: 12px; color: var(--paper-ink-soft); cursor: pointer; text-align: center; }
.gb-accessible summary:focus-visible { outline: 2px solid #967331; outline-offset: 3px; }
.gb-transcripts article { padding-block: 28px; border-bottom: 1px solid #d6cdbb; }
.gb-transcripts h3 { font: 500 26px/1.2 var(--font-serif); margin-bottom: 18px; }
.gb-transcripts p { font-size: 15px; line-height: 1.8; white-space: normal; }
.gb-transcripts a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--paper-ink); font-size: 13px; text-underline-offset: 4px; }
.s-memories [hidden] { display: none !important; }
@media (max-width: 700px) {
  .s-memories { padding-inline: 20px; padding-bottom: 50px; }
  .reviews-heading { display: block; }
  .reviews-google { margin-top: 25px; }
  .reviews-quotes { gap: 25px; margin-top: 23px; grid-template-columns: 1fr; }
  .review-quote { padding-top: 22px; }
  .review-quote figcaption { margin-top: 16px; }
  .guestbook { margin-top: 52px; padding-top: 48px; }
  .guestbook-heading h2 { max-width: 400px; margin-inline: auto; }
  .guestbook-heading > p:last-child { font-size: 13px; margin-top: 20px; }
  .gb-stage { max-width: 510px; padding: 26px 5px 29px; margin-top: 24px; }
  .gb-position[data-state="closed"] { transform: rotateX(6deg) rotateY(-10deg) rotateZ(-3deg) scale(.94); }
  .gb-position[data-state="back"] { transform: rotateX(4deg) rotateY(8deg) rotateZ(2deg) scale(.94); }
  .gb-position::before, .gb-position[data-state="closed"]::before, .gb-position[data-state="back"]::before { inset: 4px -3px -5px 0; }
  .gb-book:not(.stf__parent) { aspect-ratio: 1; }
  .gb-book:not(.stf__parent) .gb-cover { width: 100%; }
  .gb-flyleaf-inner > p { font-size: clamp(26px, 7vw, 42px); }
  .gb-instructions { max-width: 270px; margin-inline: auto; }
  .gb-accessible { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .gb-position, .gb-actions button { transition: none; }
  .gb-position[data-state="closed"], .gb-position[data-state="back"] { rotate: none; }
}
