:root {
  --paper: #faf6f1;
  --paper-deep: #f3eadf;
  --sand: #e8dcc4;
  --ink: #1c0a38;
  --gold: #d4af7a;
  --line: #d7ccc8;
  --warm-gray: #7f7370;
  --rose: #f4d7d7;
  --mint: #c8e6c9;
  --lavender: #e1d5e7;
  --sky: #b3e5fc;
  --white: #fffdf9;
  --paypal: #0070ba;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Quicksand", Arial, sans-serif;
  --arabic: "Amiri", serif;
  --shadow: 0 24px 60px rgba(28, 10, 56, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; font-weight: 500; line-height: 1.7; -webkit-font-smoothing: antialiased; }
body.cart-open { overflow: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--lavender); color: var(--ink); }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; background: var(--ink); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(18px, 4vw, 64px); border-bottom: 1px solid var(--line); background: rgba(250, 246, 241, .94); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; aspect-ratio: 1; object-fit: contain; }
.brand span { display: grid; line-height: 1.15; }
.brand strong { font-family: var(--serif); font-size: 1.05rem; }
.brand small { margin-top: 3px; color: var(--warm-gray); font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.site-header nav > a { font-size: .78rem; font-weight: 700; text-decoration: none; }
.cart-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .76rem; font-weight: 700; cursor: pointer; }
.cart-trigger span, .final-cta .button span { min-width: 1.5em; height: 1.5em; display: inline-grid; place-items: center; border-radius: 50%; background: var(--rose); color: var(--ink); font-size: .72rem; }

.hero { position: relative; isolation: isolate; min-height: 810px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; gap: clamp(36px, 6vw, 100px); overflow: hidden; padding: clamp(80px, 9vw, 130px) clamp(24px, 6vw, 96px) clamp(72px, 9vw, 120px); background: var(--paper); }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0 0 0 52%; background: var(--lavender); opacity: .55; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 330px; height: 48px; left: 9%; top: 35%; background: var(--rose); opacity: .72; transform: rotate(-2deg); }
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.eyebrow { margin: 0 0 14px; color: #6d4b7e; font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; }
.hero h1 { margin: 0; font-size: clamp(3.2rem, 6.6vw, 6.8rem); letter-spacing: -.045em; line-height: .94; }
h1 em, h2 em { color: #7a537f; font-weight: 600; }
.hero-lead { max-width: 61ch; margin: 28px 0 0; color: #51475a; font-size: clamp(.98rem, 1.35vw, 1.1rem); line-height: 1.8; }
.offer-ribbon { width: fit-content; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 28px; padding: 12px 16px; border: 1px solid var(--line); background: var(--white); box-shadow: 5px 7px 0 var(--rose); transform: rotate(-.6deg); }
.offer-ribbon__label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.offer-ribbon strong { font-family: var(--serif); font-size: 1.55rem; line-height: 1; }
.offer-ribbon > span:last-child { font-size: .86rem; }
.code-copy { padding: 2px 7px; border: 1px dashed var(--ink); background: var(--mint); color: var(--ink); font-weight: 700; letter-spacing: .08em; cursor: pointer; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 20px; border: 1px solid var(--ink); border-radius: 8px; text-decoration: none; font-size: .86rem; font-weight: 700; line-height: 1.25; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--primary { background: var(--ink); color: var(--paper); }
.button--secondary { background: transparent; color: var(--ink); }
.button--paper { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.button--compact { min-height: 40px; padding: 9px 15px; font-size: .76rem; }
.button--large { padding: 16px 26px; font-size: .95rem; }
.microcopy { max-width: 62ch; margin: 18px 0 0; color: var(--warm-gray); font-size: .7rem; }
.paper-note { width: fit-content; display: flex; align-items: center; gap: 10px; padding: 8px 13px; border: 1px solid var(--line); background: rgba(255,253,249,.9); color: var(--warm-gray); font-size: .66rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; transform: rotate(-1.5deg); }
.paper-note span { color: var(--ink); font-family: var(--serif); font-size: 1rem; }
.paper-note--hero { position: absolute; top: 28px; right: 5%; }

.hero-product { position: relative; min-height: 720px; display: grid; grid-template-rows: 1fr auto; place-items: center; gap: 18px; padding-bottom: 12px; }
.hero-product::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border: 1px solid rgba(28,10,56,.2); border-radius: 50%; box-shadow: 0 0 0 50px rgba(250,246,241,.24); }
.hero-product__caption { position: relative; z-index: 5; width: min(360px, 90%); margin-top: -8px; padding: 17px 18px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.hero-product__caption > span { display: block; color: #6d4b7e; font-size: .64rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-product__caption > strong { display: block; margin-top: 3px; font-family: var(--serif); font-size: 1.12rem; line-height: 1.25; }
.hero-product__caption p { margin: 10px 0; }
.hero-product__caption b { font-family: var(--serif); font-size: 1.35rem; }
.hero-product__caption small { display: block; color: #547057; font-size: .72rem; }

/* Copertina KDP originale in vista frontale: nessuna prospettiva o alterazione delle proporzioni. */
.hardcover-scene { position: relative; width: min(100%, 390px); margin: auto; padding: 5%; }
.hardcover-book { position: relative; z-index: 2; width: 100%; transform: none; filter: drop-shadow(0 22px 17px rgba(28,10,56,.18)); }
.hardcover-book img { position: relative; z-index: 3; display: block; width: 100%; height: auto; object-fit: contain; border: 7px solid #f6efe5; border-radius: 5px; background: #f6efe5; box-shadow: 0 0 0 1px rgba(28,10,56,.1); }
.hardcover-book::before, .hardcover-book::after, .hardcover-book__pages { display: none; }
.hardcover-scene--hero { width: min(100%, 520px); }
.hardcover-scene--hero .hardcover-book { transform: none; }
.hardcover-scene--card { width: min(100%, 340px); padding: 5%; }
.hardcover-scene--integral { width: min(100%, 500px); }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-strip div { min-height: 138px; display: grid; align-content: center; gap: 4px; padding: 22px clamp(18px, 3vw, 42px); background: var(--paper); }
.trust-strip strong { font-family: var(--serif); font-size: 1.5rem; }
.trust-strip span { color: var(--warm-gray); font-size: .75rem; line-height: 1.5; }

.editorial-manifesto { padding: clamp(80px, 11vw, 150px) 24px; background: var(--paper); text-align: center; }
.editorial-manifesto p { margin: 0 0 18px; color: var(--warm-gray); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.editorial-manifesto blockquote { margin: 0; color: var(--ink); font-family: var(--serif); font-size: clamp(2.5rem, 5.7vw, 5.6rem); line-height: 1.04; }

.catalog { width: min(100%, 1380px); margin: auto; padding: clamp(90px, 11vw, 150px) clamp(18px, 4vw, 60px); }
.section-heading { max-width: 900px; margin-bottom: clamp(52px, 8vw, 88px); }
.section-heading h2, .integral-section h2, .purchase-guide h2, .faq h2, .final-cta h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 5.8rem); letter-spacing: -.04em; line-height: .98; }
.section-heading > p:not(.eyebrow) { max-width: 70ch; color: var(--warm-gray); }
.section-heading--compact { margin-bottom: 40px; }
.prices-date { padding-left: 14px; border-left: 3px solid var(--lavender); font-size: .74rem; }
.featured-books { display: grid; gap: clamp(70px, 10vw, 140px); }
.book-feature { display: grid; grid-template-columns: minmax(300px,.82fr) minmax(0,1.18fr); align-items: center; gap: clamp(44px, 7vw, 100px); padding: clamp(42px, 7vw, 92px); }
.book-feature--ink { background: var(--ink); color: var(--paper); }
.book-feature--rose { background: var(--rose); }
.book-feature__visual { max-width: 460px; margin: auto; }
.book-feature__visual--flat { width: min(100%, 390px); padding: 6%; border: 1px solid rgba(28,10,56,.14); background: rgba(255,253,249,.55); transform: rotate(-1.5deg); }
.book-feature__visual--flat img { box-shadow: var(--shadow); }
.book-kicker, .volume-label { margin: 0 0 12px; color: #7a537f; font-size: .67rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.book-feature--ink .book-kicker { color: var(--gold); }
.book-feature h3 { margin: 0; font-size: clamp(2.8rem, 5.4vw, 5.2rem); letter-spacing: -.04em; line-height: .92; }
.book-subtitle { margin: 20px 0; color: #7a537f; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.55rem); font-style: italic; line-height: 1.25; }
.book-feature--ink .book-subtitle { color: #e6c99d; }
.book-feature__copy > p:not(.book-kicker):not(.book-subtitle) { max-width: 62ch; color: #4c4153; }
.book-feature--ink .book-feature__copy > p:not(.book-kicker):not(.book-subtitle) { color: rgba(250,246,241,.78); }
.book-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; padding: 0; list-style: none; }
.book-facts li { padding: 7px 10px; border: 1px solid rgba(28,10,56,.2); font-size: .68rem; font-weight: 700; }
.book-feature--ink .book-facts li { border-color: rgba(250,246,241,.28); }
.purchase-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 28px; }
.price { display: grid; margin: 0 8px 0 0; line-height: 1.1; }
.price span { font-size: .59rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.price strong { margin-top: 5px; font-family: var(--serif); font-size: 1.8rem; }
.price small { margin-top: 6px; color: #547057; font-weight: 700; }
.book-feature--ink .price small { color: var(--mint); }

.inside-book { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: clamp(38px, 7vw, 96px); align-items: center; padding: clamp(64px, 9vw, 120px) clamp(24px, 6vw, 90px); background: #f0e8de; }
.inside-book__copy h3, .dedication-preview h3 { margin: 0 0 24px; font-size: clamp(2.7rem, 5vw, 5rem); line-height: .98; letter-spacing: -.04em; }
.inside-book__copy p:not(.eyebrow), .dedication-preview__copy p:not(.eyebrow) { color: var(--warm-gray); }
.inside-book__copy small { display: block; margin-top: 22px; color: #756b72; line-height: 1.6; }
.inside-book__gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(10px, 2vw, 24px); align-items: end; }
.inside-book figure, .dedication-preview figure { margin: 0; }
.inside-book figure:nth-child(2) { transform: translateY(-22px); }
.inside-book figure img { box-shadow: 0 18px 36px rgba(28,10,56,.14); }
.inside-book figcaption, .dedication-preview figcaption { margin-top: 10px; color: var(--warm-gray); font-size: .66rem; line-height: 1.45; }

.dedication-preview { display: grid; grid-template-columns: minmax(260px,.82fr) minmax(320px,1.18fr); gap: clamp(40px, 8vw, 110px); align-items: center; padding: clamp(70px, 10vw, 130px) clamp(24px, 7vw, 105px); border: 1px solid var(--line); border-top: 0; background: var(--paper); }
.dedication-preview figure { padding: clamp(12px, 2vw, 24px); background: var(--white); box-shadow: var(--shadow); transform: rotate(1deg); }
.dedication-preview figure img { width: 100%; }
.text-link { display: inline-block; padding: 6px 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--ink); font-size: .72rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.text-link--light { color: var(--paper); }

.series { margin-top: clamp(100px, 13vw, 180px); }
.series-heading { display: grid; grid-template-columns: 1fr .7fr; align-items: end; gap: 50px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.series-heading h2 { margin: 0; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .92; }
.series-heading h2 span { color: #7a537f; font-family: var(--arabic); font-size: .65em; font-weight: 700; letter-spacing: 0; }
.series-heading > p { margin: 0; color: var(--warm-gray); }
.volume-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(60px, 8vw, 110px) clamp(30px, 6vw, 80px); margin-top: 70px; }
.volume-card { position: relative; }
.volume-card--offset { margin-top: 90px; }
.volume-card__number { position: absolute; z-index: 5; top: -20px; left: 1%; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--gold); font-family: var(--serif); font-weight: 700; }
.volume-card__image { width: min(82%, 430px); margin: auto; padding: 7%; border: 1px solid var(--line); background: var(--paper-deep); }
.volume-card__image > img { width: 100%; box-shadow: var(--shadow); }
.volume-card__image--hardcover { width: min(96%, 500px); padding: 0; border: 0; background: transparent; }
.volume-card__content { padding: 32px 6% 0; }
.volume-card h3 { margin: 0; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.05; }
.volume-card__content > p:not(.volume-label) { color: var(--warm-gray); font-size: .86rem; }
.edition-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 22px 0 17px; }
.edition-list > div { display: grid; gap: 2px; padding: 13px; border: 1px solid var(--line); background: var(--white); }
.edition-list span { font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.edition-list strong { font-family: var(--serif); font-size: 1.25rem; }
.edition-list small { min-height: 2.7em; color: #547057; font-size: .63rem; }
.edition-list button { margin-top: 7px; padding: 8px; border: 0; background: var(--ink); color: var(--paper); font-size: .68rem; font-weight: 700; cursor: pointer; }
.edition-list__soon { background: var(--lavender) !important; }

.integral-section { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(40px, 7vw, 100px); margin-top: clamp(110px, 14vw, 190px); padding: clamp(45px, 7vw, 90px); border: 1px solid var(--line); background: linear-gradient(115deg, var(--paper-deep), var(--rose)); }
.integral-section__copy > p:not(.eyebrow) { color: #51475a; }

.purchase-guide { position: relative; padding: clamp(80px, 11vw, 140px) clamp(20px, 7vw, 110px); background: var(--mint); }
.purchase-guide > .paper-note { position: absolute; top: 30px; right: 6%; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps article { min-height: 245px; padding: 28px; border: 1px solid rgba(28,10,56,.16); background: rgba(250,246,241,.76); }
.steps article > span { color: #7a537f; font-family: var(--serif); font-size: 1.4rem; }
.steps h3 { margin: 28px 0 10px; font-size: 1.6rem; }
.steps p { margin: 0; color: #51475a; }
.payment-note { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 16px; }
.payment-note > div { padding: 22px 26px; border-left: 4px solid var(--ink); background: var(--paper); }
.payment-note strong { font-family: var(--serif); font-size: 1.2rem; }
.payment-note p { margin: 5px 0 0; color: var(--warm-gray); font-size: .82rem; }

.faq { padding: clamp(80px, 11vw, 140px) clamp(20px, 7vw, 110px); }
.faq-list { width: min(100%, 900px); }
.faq details { margin-bottom: 10px; border: 1px solid var(--line); background: var(--white); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-size: 1.4rem; transition: transform .2s ease; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--warm-gray); }

.final-cta { padding: clamp(80px, 11vw, 140px) 24px; background: var(--ink); color: var(--paper); text-align: center; }
.final-cta .eyebrow { color: var(--gold); }
.final-cta h2 em { color: var(--rose); }
.final-cta > p:not(.eyebrow) { color: rgba(250,246,241,.72); }
.final-cta .button { margin-top: 22px; }
footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 36px clamp(18px, 5vw, 70px) max(36px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { font-size: .68rem; font-weight: 700; text-decoration: none; }
footer > small { flex-basis: 100%; color: var(--warm-gray); font-size: .65rem; }

.cart-backdrop { position: fixed; z-index: 90; inset: 0; background: rgba(28,10,56,.54); backdrop-filter: blur(3px); }
.cart-drawer { position: fixed; z-index: 100; inset: 0 0 0 auto; width: min(100%, 480px); overflow-y: auto; padding: 26px 24px max(32px, env(safe-area-inset-bottom)); border-left: 1px solid var(--line); background: var(--paper); box-shadow: -20px 0 60px rgba(28,10,56,.2); transform: translateX(105%); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.cart-drawer.is-open { transform: none; }
.cart-drawer > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-drawer h2 { margin: 0; font-size: 2rem; }
.cart-close { border: 0; background: transparent; color: var(--ink); font-size: 2rem; cursor: pointer; }
.cart-items { display: grid; gap: 10px; margin: 18px 0; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); background: var(--white); }
.cart-item img { width: 56px; height: 76px; object-fit: cover; }
.cart-item strong { display: block; font-family: var(--serif); font-size: .86rem; line-height: 1.25; }
.cart-item small { color: var(--warm-gray); font-size: .63rem; }
.cart-item__qty { display: flex; align-items: center; gap: 7px; }
.cart-item__qty button { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.cart-empty { padding: 35px 0; text-align: center; color: var(--warm-gray); }
.coupon-box { margin-top: 20px; padding: 16px; background: var(--lavender); }
.coupon-box label { display: block; margin-bottom: 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.coupon-box > div { display: flex; }
.coupon-box input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); text-transform: uppercase; }
.coupon-box button { padding: 10px 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; }
.coupon-box p { margin: 7px 0 0; font-size: .68rem; }
.totals { margin: 20px 0; }
.totals > div { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0; }
.totals dt, .totals dd { margin: 0; }
.discount-row { color: #547057; }
.total-row { margin-top: 8px; padding-top: 13px !important; border-top: 1px solid var(--ink); font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.checkout-actions { display: grid; gap: 9px; }
.button--paypal { border-color: var(--paypal); background: var(--paypal); color: #fff; }
.button--bank { background: var(--paper); color: var(--ink); }
.checkout-actions > p { margin: 3px 0 0; color: var(--warm-gray); font-size: .65rem; text-align: center; }

.bank-dialog { width: min(calc(100% - 30px), 720px); max-height: calc(100dvh - 30px); overflow-y: auto; padding: clamp(24px, 5vw, 46px); border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.bank-dialog::backdrop { background: rgba(28,10,56,.62); backdrop-filter: blur(4px); }
.bank-dialog__close-form { position: absolute; top: 12px; right: 12px; }
.bank-dialog__close-form button { border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.bank-dialog h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); }
.bank-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 24px; }
.bank-form label { display: grid; gap: 5px; font-size: .72rem; font-weight: 700; }
.bank-form input, .bank-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.field-wide { grid-column: 1 / -1; }
.privacy-check { grid-template-columns: auto 1fr !important; align-items: start; font-weight: 500 !important; }
.privacy-check input { width: auto; margin-top: 4px; }
.honeypot { position: absolute !important; left: -9999px !important; }
.bank-success { padding: 24px; border: 1px solid var(--line); background: var(--mint); }
.bank-success code { display: block; margin: 6px 0; padding: 8px; background: var(--paper); overflow-wrap: anywhere; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 24px; max-width: calc(100% - 32px); padding: 11px 16px; background: var(--ink); color: var(--paper); font-size: .78rem; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero::before { inset: 54% 0 0; }
  .hero-product { min-height: 650px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .book-feature, .integral-section, .inside-book, .dedication-preview { grid-template-columns: 1fr; }
  .series-heading { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 680px) {
  .site-header { padding: 13px 14px; }
  .site-header nav > a { display: none; }
  .brand img { width: 38px; }
  .brand strong { font-size: .92rem; }
  .brand small { font-size: .5rem; }
  .hero { gap: 20px; padding: 72px 18px 55px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero::after { width: 210px; left: 5%; top: 25%; }
  .paper-note--hero { top: 16px; right: 18px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .hero-product { min-height: 650px; }
  .hero-product__caption { width: 92%; }
  .hardcover-scene--hero { width: min(100%, 420px); }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip div { min-height: 120px; padding: 18px; }
  .catalog { padding-inline: 14px; }
  .section-heading h2, .integral-section h2, .purchase-guide h2, .faq h2, .final-cta h2 { font-size: clamp(2.7rem, 13vw, 4.4rem); }
  .book-feature { gap: 28px; padding: 42px 18px; }
  .book-feature h3 { font-size: clamp(2.7rem, 13vw, 4.2rem); }
  .inside-book, .dedication-preview { padding: 52px 18px; }
  .inside-book__gallery { gap: 8px; }
  .inside-book figure:nth-child(2) { transform: translateY(-10px); }
  .purchase-row { align-items: stretch; }
  .purchase-row .price { width: 100%; }
  .volume-grid { grid-template-columns: 1fr; gap: 80px; }
  .volume-card--offset { margin-top: 0; }
  .volume-card__content { padding-inline: 2%; }
  .edition-list { grid-template-columns: 1fr; }
  .integral-section { padding: 38px 16px; }
  .steps, .payment-note { grid-template-columns: 1fr; }
  .purchase-guide > .paper-note { position: static; margin-bottom: 40px; }
  .bank-form { grid-template-columns: 1fr; }
  .bank-form label, .field-wide { grid-column: auto; }
  footer { display: grid; }
}

/* Brand alignment 2026: carta viva, ritmo editoriale e mockup coordinati. */
.site-header {
  position: sticky;
  top: 0;
  box-shadow: 0 10px 32px rgba(28, 10, 56, .045);
}

.hero {
  min-height: 860px;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .92fr);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  inset: 0 0 0 62%;
  background: linear-gradient(180deg, rgba(225, 213, 231, .78), rgba(232, 220, 196, .52));
  opacity: 1;
}
.hero::after {
  width: 168px;
  height: 7px;
  left: clamp(24px, 6vw, 96px);
  top: clamp(58px, 7vw, 98px);
  border-radius: 9px;
  background: linear-gradient(90deg, var(--rose) 0 33%, var(--mint) 33% 66%, var(--sky) 66%);
  opacity: 1;
  transform: none;
}
.hero h1 em {
  color: #765294;
  background: linear-gradient(transparent 72%, rgba(200, 230, 201, .82) 72% 91%, transparent 91%);
}
.paper-note--hero { top: 34px; right: 4%; }
.hero-product { min-height: 700px; }
.hero-product::before { display: none; }
.hero-product__caption {
  width: min(390px, 92%);
  margin-top: -24px;
  border-radius: 2px;
  box-shadow: 0 16px 40px rgba(28, 10, 56, .08);
}

.hardcover-scene { width: min(100%, 420px); padding: 0; }
.hardcover-scene--hero { width: min(100%, 540px); }
.hardcover-scene--card { width: min(100%, 390px); padding: 0; }
.hardcover-scene--integral { width: min(100%, 520px); }
.hardcover-book { filter: none; }
.hardcover-book img {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.trust-strip { background: var(--line); }
.trust-strip div { background: rgba(255, 253, 249, .92); }
.trust-strip div:nth-child(2) { background: rgba(225, 213, 231, .42); }
.trust-strip div:nth-child(3) { background: rgba(200, 230, 201, .42); }

.editorial-manifesto {
  padding-block: clamp(90px, 12vw, 160px);
  background: linear-gradient(180deg, var(--paper), #f7f1e9);
}
.editorial-manifesto blockquote { max-width: 1120px; margin-inline: auto; }

.catalog { width: min(100%, 1240px); }
.section-heading { max-width: 820px; }
.prices-date { border-left-color: var(--rose); }
.featured-books { gap: 0; border: 1px solid var(--line); }
.book-feature { min-height: 700px; }
.book-feature--ink {
  background: linear-gradient(120deg, #f4eadc, var(--sand));
  color: var(--ink);
}
.book-feature--rose {
  border-top: 1px solid var(--line);
  background: linear-gradient(120deg, var(--paper), rgba(244, 215, 215, .72));
}
.book-feature--ink .book-kicker { color: #765294; }
.book-feature--ink .book-subtitle { color: #765294; }
.book-feature--ink .book-feature__copy > p:not(.book-kicker):not(.book-subtitle) { color: #4c4153; }
.book-feature--ink .book-facts li { border-color: rgba(28, 10, 56, .2); }
.book-feature--ink .price small { color: #456f62; }
.book-feature--ink .button--paper { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.text-link--light { color: var(--ink); }
.book-feature__visual { width: min(100%, 460px); max-width: none; }
.book-feature__visual--flat {
  padding: 4%;
  border-color: var(--line);
  background: rgba(255, 253, 249, .78);
  transform: rotate(-.6deg);
}

.inside-book {
  border-inline: 1px solid var(--line);
  background: linear-gradient(110deg, #f5ede2, var(--paper));
}
.inside-book figure { padding: 7px; background: var(--white); border: 1px solid var(--line); }
.inside-book figure img { box-shadow: none; }
.dedication-preview {
  background: linear-gradient(120deg, var(--paper), rgba(244, 215, 215, .42));
}
.dedication-preview figure { box-shadow: 0 20px 50px rgba(28, 10, 56, .08); }

.series { margin-top: clamp(110px, 13vw, 170px); }
.series-heading { padding-inline: clamp(4px, 2vw, 22px); }
.volume-grid {
  gap: 22px;
  margin-top: 48px;
}
.volume-card,
.volume-card--offset {
  margin-top: 0;
  padding: 34px clamp(20px, 3vw, 34px) 30px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 253, 249, .9), rgba(232, 220, 196, .28));
}
.volume-card__number {
  top: 20px;
  left: 20px;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--rose);
}
.volume-card__image,
.volume-card__image--hardcover {
  width: 100%;
  height: 520px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.volume-card__image > img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: none;
}
.volume-card__image .hardcover-scene,
.volume-card__image .hardcover-book {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.volume-card__image .hardcover-book img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.volume-card__content { padding: 20px 0 0; }
.edition-list > div { background: rgba(255, 253, 249, .86); }
.edition-list__soon { background: rgba(225, 213, 231, .58) !important; }

.integral-section {
  background: linear-gradient(120deg, #f7eee5, rgba(244, 215, 215, .68));
  box-shadow: 0 24px 60px rgba(28, 10, 56, .055);
}
.purchase-guide {
  background: linear-gradient(135deg, rgba(200, 230, 201, .76), var(--paper));
  border-block: 1px solid var(--line);
}
.steps article { background: rgba(255, 253, 249, .84); }

.faq { background: var(--paper); }
.faq details { border-radius: 10px; }
.final-cta {
  color: var(--ink);
  background: linear-gradient(112deg, var(--sand) 0 56%, var(--lavender) 56% 82%, var(--mint) 82%);
  border-top: 1px solid var(--line);
}
.final-cta .eyebrow { color: #65536f; }
.final-cta h2 em { color: #765294; }
.final-cta > p:not(.eyebrow) { color: #62576b; }
.final-cta .button--paper { border-color: var(--ink); background: var(--ink); color: var(--paper); }
footer { background: linear-gradient(112deg, rgba(232, 220, 196, .8), rgba(225, 213, 231, .65)); }

@media (max-width: 980px) {
  .hero::before { inset: 57% 0 0; }
  .book-feature { min-height: 0; }
  .volume-card__image, .volume-card__image--hardcover { height: 470px; }
}

@media (max-width: 680px) {
  .hero { padding-top: 88px; }
  .hero::before { inset: 58% 0 0; }
  .hero::after { top: 54px; left: 18px; }
  .paper-note--hero { top: 18px; }
  .hero-product { min-height: 600px; }
  .hero-product__caption { margin-top: -16px; }
  .book-feature { padding: 48px 20px; }
  .featured-books { border-inline: 0; }
  .volume-grid { gap: 18px; }
  .volume-card { padding: 26px 16px 24px; }
  .volume-card__image, .volume-card__image--hardcover { height: 410px; }
  .volume-card__number { top: 14px; left: 14px; }
  .final-cta { background: linear-gradient(180deg, var(--sand), var(--lavender) 70%, var(--mint)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Firma del quaderno MaN: evidenziatore, segno a penna, nastro e post-it. */
.marker,
.hand-underline {
  position: relative;
  z-index: 0;
  display: inline;
  isolation: isolate;
}
.marker::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.04em;
  right: -.08em;
  bottom: .08em;
  height: .32em;
  border-radius: 43% 8% 38% 12%;
  opacity: .78;
  transform: rotate(-1.1deg) skewX(-5deg);
  clip-path: polygon(1% 16%, 24% 7%, 52% 14%, 76% 4%, 100% 19%, 98% 84%, 73% 93%, 47% 82%, 20% 96%, 0 79%);
}
.marker--rose::before { background: var(--rose); }
.marker--lavender::before { background: var(--lavender); }
.hand-underline::after {
  content: "";
  position: absolute;
  left: -.02em;
  right: -.04em;
  bottom: -.12em;
  height: .16em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
}
.hand-underline--mint::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 18' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C62 4 95 14 151 8 S251 12 308 6 S381 11 417 7' fill='none' stroke='%2398CFA3' stroke-width='7' stroke-linecap='round' opacity='.92'/%3E%3C/svg%3E");
}
.hand-underline--rose::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 18' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C58 4 103 14 157 8 S251 13 311 6 S382 11 417 7' fill='none' stroke='%23E5AEB5' stroke-width='7' stroke-linecap='round' opacity='.9'/%3E%3C/svg%3E");
}

.notebook-note-cluster {
  position: relative;
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: .82fr 1.25fr .82fr;
  align-items: center;
  gap: clamp(12px, 2.6vw, 28px);
  margin: clamp(58px, 8vw, 92px) auto 0;
  padding: 28px 18px 24px;
  background-image: repeating-linear-gradient(180deg, transparent 0 34px, rgba(188,170,164,.18) 34px 35px);
}
.notebook-note {
  position: relative;
  min-height: 178px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 24px 24px;
  border: 1px solid rgba(28,10,56,.12);
  background: #fffaf3;
  box-shadow: 8px 11px 0 rgba(225,213,231,.6), 0 16px 30px rgba(28,10,56,.08);
  text-align: left;
  transform: rotate(-1.4deg);
}
.notebook-note--main {
  min-height: 225px;
  background: #f1e8f4;
  box-shadow: 9px 12px 0 rgba(244,215,215,.68), 0 18px 36px rgba(28,10,56,.09);
  transform: rotate(.8deg);
}
.notebook-note--last { transform: rotate(1.7deg) translateY(9px); }
.notebook-note .note-index {
  margin-bottom: 12px;
  color: #765294;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.notebook-note strong {
  display: inline;
  width: fit-content;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.1;
  background: linear-gradient(transparent 66%, rgba(244,215,215,.95) 66% 91%, transparent 91%);
}
.notebook-note p,
.editorial-manifesto .notebook-note p {
  margin: 12px 0 0;
  color: #51475a;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.6;
  text-transform: none;
}
.note-tape {
  position: absolute;
  z-index: 2;
  top: -14px;
  left: 50%;
  width: 94px;
  height: 28px;
  background: rgba(244,215,215,.72);
  clip-path: polygon(3% 10%, 98% 2%, 94% 92%, 0 100%);
  transform: translateX(-50%) rotate(-2deg);
}

.steps {
  gap: clamp(20px, 3vw, 38px);
  padding: 22px 8px 28px;
}
.steps .study-note {
  position: relative;
  min-height: 265px;
  padding: 38px 30px 30px;
  border: 1px solid rgba(28,10,56,.13);
  border-radius: 0;
  background: #fffaf3;
  box-shadow: 9px 12px 0 rgba(225,213,231,.55), 0 18px 34px rgba(28,10,56,.07);
  transform: rotate(-1.2deg);
}
.steps .study-note--mint {
  background: #dff0df;
  box-shadow: 9px 12px 0 rgba(244,215,215,.62), 0 18px 34px rgba(28,10,56,.07);
  transform: rotate(.9deg) translateY(12px);
}
.steps .study-note--last { transform: rotate(-.4deg) translateY(-5px); }
.steps .study-note .note-tape { background: rgba(225,213,231,.76); }
.steps .study-note--mint .note-tape { background: rgba(244,215,215,.78); }
.steps .study-note > span:not(.note-tape) {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(28,10,56,.22);
  background: rgba(250,246,241,.8);
  font-size: 1rem;
}
.steps .study-note h3 {
  position: relative;
  width: fit-content;
}
.steps .study-note h3::after {
  content: "";
  position: absolute;
  left: 0;
  right: -10px;
  bottom: -3px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  opacity: .72;
  transform: rotate(-1.5deg);
}

@media (max-width: 780px) {
  .hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 92px 18px 58px;
  }
  .hero-copy,
  .hero-product {
    width: 100%;
    min-width: 0;
  }
  .hero::before { inset: 56% 0 0; }
  .hero-product {
    min-height: 0;
    padding-top: 24px;
  }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.35rem); }
  .hero-lead { max-width: 100%; }
  .notebook-note-cluster { grid-template-columns: 1fr; padding-inline: 22px; }
  .notebook-note,
  .notebook-note--main { min-height: 0; transform: rotate(-.7deg); }
  .notebook-note--last { transform: rotate(.8deg); }
  .steps .study-note,
  .steps .study-note--mint,
  .steps .study-note--last { transform: rotate(-.5deg); }
  .steps .study-note:nth-child(2) { transform: rotate(.5deg); }
}

@media (max-width: 460px) {
  .hero h1 { font-size: clamp(3rem, 14.5vw, 3.6rem); }
  .hero h1 br { display: none; }
  .hero-product__caption { width: calc(100% - 12px); }
  .notebook-note-cluster { padding-inline: 10px; }
}
