:root {
  --ink: #11100e;
  --paper: #f4efe5;
  --cream: #fffaf0;
  --gold: #bd8a3a;
  --rust: #a14c31;
  --dark: #11100e;
  --muted: #686158;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(22px, 5vw, 74px);
  background: rgba(17,16,14,.94);
  color: var(--cream);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(189,138,58,.35);
}
.name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
}
.nav-link { font-size: .84rem; text-transform: uppercase; letter-spacing: .14em; text-decoration: none; }
.hero {
  min-height: calc(100svh - 69px);
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(32px, 7vw, 110px);
  padding: clamp(48px, 8vw, 110px) clamp(22px, 8vw, 130px);
  color: var(--cream);
  background:
    radial-gradient(circle at 78% 30%, rgba(189,138,58,.16), transparent 31%),
    linear-gradient(135deg, #0b0b0a 0%, var(--dark) 68%, #17130f 100%);
  overflow: hidden;
}
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3 { font-family: "Cormorant Garamond", serif; line-height: .98; }
h1 { margin: 0 0 28px; max-width: 780px; font-size: clamp(3.2rem, 6.5vw, 6.7rem); font-weight: 600; letter-spacing: -.035em; }
.intro { max-width: 620px; margin: 0 0 36px; color: #ddd3c2; font-size: clamp(1rem, 1.4vw, 1.22rem); }
.primary, .buy, .social { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.primary { padding: 13px 20px; border: 1px solid var(--gold); color: #f4d599; }
.portrait-wrap { position: relative; margin: 0; justify-self: center; width: min(100%, 470px); }
.portrait { display: block; width: 100%; max-height: 68vh; object-fit: cover; object-position: center 25%; filter: saturate(.82) contrast(1.05); border-radius: 240px 240px 12px 12px; border: 1px solid rgba(244,213,153,.4); }
.portrait-wrap figcaption { position: absolute; right: -28px; bottom: 22px; padding: 16px 20px; background: var(--rust); color: white; font-family: "Cormorant Garamond", serif; font-size: 1.1rem; line-height: 1.2; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.catalog { padding: clamp(72px, 9vw, 130px) clamp(22px, 8vw, 130px); }
.section-heading { max-width: 700px; margin-bottom: 54px; }
h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 600; letter-spacing: -.025em; }
.paths { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 110px; border-top: 1px solid #bcb09f; border-bottom: 1px solid #bcb09f; }
.paths a { min-height: 175px; display: flex; flex-direction: column; padding: 26px; text-decoration: none; border-right: 1px solid #bcb09f; transition: background .2s ease, color .2s ease; }
.paths a:last-child { border-right: 0; }
.paths a:hover { color: var(--cream); background: var(--dark); }
.paths b { color: var(--gold); font-size: .74rem; letter-spacing: .16em; }
.paths span { margin-top: auto; font-family: "Cormorant Garamond", serif; font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 600; line-height: 1; }
.paths small { margin-top: 8px; color: var(--muted); font-size: .78rem; }
.paths a:hover small { color: #d8d5cd; }
.strand { margin-top: 120px; padding-top: 90px; border-top: 1px solid #c9bdac; }
.strand-title { display: flex; align-items: flex-start; gap: clamp(18px, 4vw, 54px); scroll-margin-top: 100px; }
.strand-title > span { color: var(--gold); font-family: "Cormorant Garamond", serif; font-size: 2.2rem; line-height: 1; }
.strand-title .eyebrow { margin-bottom: 8px; }
.strand-title h2 { font-size: clamp(2.8rem, 5vw, 5.4rem); }
.strand-intro { max-width: 760px; margin: 24px 0 48px clamp(48px, 7vw, 100px); color: var(--muted); font-size: 1.05rem; }
.featured { display: grid; grid-template-columns: minmax(230px, 360px) 1fr; gap: clamp(34px, 7vw, 100px); align-items: center; padding: clamp(28px, 5vw, 70px); background: var(--ink); color: var(--cream); }
.professional-book { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(34px, 7vw, 90px); align-items: center; padding: clamp(28px, 5vw, 68px); background: #e9dfce; }
.professional-book .book-copy p:not(.category) { color: var(--muted); }
.professional-book .cover-frame { width: 100%; }
.cover-frame { padding: 12px; background: #2b2925; box-shadow: 0 24px 50px rgba(0,0,0,.28); }
.cover-frame img { display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.category { margin: 0 0 12px; color: var(--rust); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.featured .category { color: #d6aa61; }
.book-copy h3, .book-card h3 { margin: 0 0 18px; font-size: clamp(2.4rem, 4.5vw, 4.7rem); font-weight: 600; }
.book-copy p:not(.category) { max-width: 650px; color: #d9d0c2; }
.buy { margin-top: 16px; border-bottom: 1px solid currentColor; padding-bottom: 3px; color: var(--gold); }
.catalog-grid { display: grid; gap: clamp(34px, 5vw, 70px); margin: 54px auto 0; }
.two-books { grid-template-columns: repeat(2, minmax(0, 390px)); justify-content: center; }
.four-books { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.book-card { display: flex; flex-direction: column; align-items: stretch; height: 100%; padding-top: 16px; border-top: 1px solid rgba(161,76,49,.28); }
.book-card p:not(.category) { color: var(--muted); }
.book-card h3 { font-size: clamp(2rem, 3vw, 3.25rem); }
.book-card .buy, .book-card .soon { margin-top: auto; }
.book-trailer { width: 100%; margin: 24px 0 28px; }
.book-trailer figcaption { margin-bottom: 12px; color: var(--gold); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.book-trailer video { display: block; width: min(100%, 320px); aspect-ratio: 9/16; margin: 0 auto; background: #07121a; border: 1px solid rgba(189,138,58,.42); box-shadow: 0 22px 42px rgba(25,20,15,.22); object-fit: cover; }
.book-cover { display: block; width: 100%; aspect-ratio: 2/3; object-fit: cover; object-position: center; margin-bottom: 25px; background: #e7dfd2; border: 1px solid rgba(91,72,50,.14); box-shadow: 0 22px 42px rgba(25,20,15,.18); }
.four-books .book-card h3 { font-size: clamp(1.75rem, 2.25vw, 2.65rem); }
.cover-with-badge { position: relative; width: 100%; }
.cover-with-badge span { position: absolute; top: 18px; right: -8px; padding: 9px 14px; color: var(--cream); background: var(--rust); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
.compact { width: 100%; padding: 10px; background: #e3d8c4; }
.cover { width: 100%; aspect-ratio: 2/3; margin-bottom: 25px; padding: 11%; display: flex; flex-direction: column; justify-content: center; text-align: center; color: #f3d798; box-shadow: 0 24px 50px rgba(25,20,15,.2); }
.cover span { font-size: .65rem; letter-spacing: .16em; text-transform: uppercase; }
.cover strong { margin: 24% 0 8%; font-family: "Cormorant Garamond", serif; font-size: clamp(2.7rem, 4vw, 4.8rem); line-height: .75; }
.cover em { font-family: "Cormorant Garamond", serif; font-size: 1.15rem; }
.catena { background: linear-gradient(rgba(4,19,29,.15), rgba(4,19,29,.7)), linear-gradient(145deg,#132c3b,#040b10 70%); border: 1px solid #af8242; }
.linea { color: #e9c67e; background: linear-gradient(160deg,#101f31 0 48%,#5b2b1d 49%,#0e1824 70%); border: 1px solid #916a31; }
.soon { display: inline-block; margin-top: 16px; padding: 7px 13px; background: #ded4c4; color: #625b50; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.about { margin: 0 clamp(22px, 8vw, 130px) clamp(72px, 9vw, 130px); padding: clamp(48px, 7vw, 88px); background: var(--ink); color: var(--cream); border-top: 1px solid rgba(189,138,58,.38); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.about h2 { max-width: 1100px; font-size: clamp(2.7rem, 4.4vw, 4.6rem); }
.about p:not(.eyebrow) { max-width: 880px; color: #ddd3c2; font-size: 1.08rem; }
.about-portrait-wrap { position: relative; width: 100%; max-width: 390px; margin: 0; justify-self: end; }
.about-portrait { display: block; width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center 27%; border: 1px solid rgba(244,213,153,.35); box-shadow: 0 26px 56px rgba(0,0,0,.38); }
.about-portrait-wrap figcaption { position: absolute; left: -24px; bottom: 24px; padding: 13px 17px; background: var(--rust); color: #fff; font-family: "Cormorant Garamond", serif; font-size: 1.05rem; line-height: 1.15; box-shadow: 0 15px 35px rgba(0,0,0,.3); }
.availability { max-width: 880px; margin: 34px 0 16px; padding-top: 24px; border-top: 1px solid rgba(189,138,58,.38); }
.availability .availability-title { margin: 0 0 12px; color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.availability .availability-note { margin: -2px 0 18px; color: #cfc5b6; font-size: .95rem; }
.stores { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.stores li { padding: 7px 12px; border: 1px solid rgba(244,213,153,.32); color: var(--cream); font-size: .88rem; }
.social { color: #e8bd71; margin-top: 14px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(22px, 8vw, 130px); background: var(--ink); color: #b8afa2; font-size: .82rem; }
.privacy-settings { padding: 0; color: inherit; background: none; border: 0; border-bottom: 1px solid currentColor; font: inherit; cursor: pointer; }
.privacy-settings:focus-visible,
.consent-banner button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.consent-banner { position: fixed; right: clamp(16px, 3vw, 34px); bottom: clamp(16px, 3vw, 34px); z-index: 30; width: min(460px, calc(100vw - 32px)); padding: 22px; color: var(--cream); background: rgba(17,16,14,.98); border: 1px solid rgba(189,138,58,.6); box-shadow: 0 22px 65px rgba(0,0,0,.42); }
.consent-banner[hidden] { display: none; }
.consent-banner p { margin: 0; color: #ddd3c2; font-size: .92rem; line-height: 1.5; }
.consent-banner strong { color: var(--cream); font-family: "Cormorant Garamond", serif; font-size: 1.45rem; }
.consent-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.consent-actions button { min-width: 96px; padding: 10px 15px; color: var(--cream); background: transparent; border: 1px solid rgba(244,213,153,.45); font: inherit; font-weight: 600; cursor: pointer; }
.consent-actions .consent-accept { color: var(--ink); background: var(--gold); border-color: var(--gold); }

@media (max-width: 840px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; }
  .portrait-wrap { width: min(85%, 420px); }
  .portrait-wrap figcaption { right: -16px; }
  .book-grid { grid-template-columns: 1fr 1fr; }
  .four-books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paths { grid-template-columns: 1fr; }
  .paths a { min-height: 125px; border-right: 0; border-bottom: 1px solid #bcb09f; }
  .paths a:last-child { border-bottom: 0; }
  .professional-book { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait-wrap { width: min(82%, 390px); justify-self: center; margin-top: 16px; }
}
@media (max-width: 600px) {
  .topbar { padding: 15px 18px; }
  .name { font-size: 1.16rem; }
  .nav-link { font-size: .7rem; }
  .hero { min-height: auto; padding: 58px 22px 74px; }
  h1 { font-size: 3.25rem; }
  .portrait-wrap { width: 88%; margin-top: 15px; }
  .portrait { max-height: 58vh; }
  .portrait-wrap figcaption { right: -10px; bottom: 14px; font-size: .95rem; }
  .catalog { padding: 72px 22px; }
  .featured { grid-template-columns: 1fr; padding: 26px; }
  .featured .cover-frame { width: 76%; justify-self: center; }
  .book-grid { grid-template-columns: 1fr; gap: 58px; }
  .two-books, .four-books { grid-template-columns: 1fr; gap: 58px; }
  .book-cover { width: 78%; align-self: center; }
  .cover-with-badge { width: 78%; align-self: center; }
  .cover-with-badge .book-cover { width: 100%; }
  .paths { margin-bottom: 78px; }
  .strand { margin-top: 84px; padding-top: 64px; }
  .strand-intro { margin-left: 0; }
  .professional-book .cover-frame { width: 76%; justify-self: center; }
  .book-card { padding-bottom: 8px; }
  .cover, .compact { width: 78%; align-self: center; }
  .about { margin: 0 22px 72px; padding: 40px 28px; }
  .about-portrait-wrap { width: 88%; }
  .about-portrait-wrap figcaption { left: -14px; bottom: 16px; }
  footer { flex-direction: column; padding: 24px 22px; }
  .consent-banner { padding: 19px; }
}

/* Collegamenti alle schede dei libri e ai canali di vendita */
.book-cover-link { display: block; margin-bottom: 25px; color: inherit; }
.book-cover-link .book-cover { margin-bottom: 0; transition: transform .22s ease, box-shadow .22s ease; }
.book-cover-link:hover .book-cover,
.book-cover-link:focus-visible .book-cover { transform: translateY(-4px); box-shadow: 0 28px 48px rgba(25,20,15,.24); }
.book-cover-link:focus-visible,
.book-title-link:focus-visible,
.stores a:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.book-title-link { color: inherit; text-decoration: none; }
.book-title-link:hover h3 { color: var(--rust); }
.stores li { padding: 0; }
.stores a { display: flex; align-items: center; gap: 7px; padding: 8px 13px; color: var(--cream); text-decoration: none; transition: color .18s ease, background .18s ease; }
.stores a:hover { color: var(--ink); background: var(--gold); }
.store-pending { display: block; padding: 8px 13px; color: #a99f91; background: rgba(255,255,255,.035); }
