@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/montserrat-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/montserrat-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/montserrat-latin-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/fonts/montserrat-latin-ext-wght-italic.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0b0c0e;
  --bg-2: #13151a;
  --line: #2a2c31;
  --text: #ece7dd;
  --muted: #a39d92;
  --gold: #e2b65c;
  --gold-2: #c8913a;
  --gold-grad: linear-gradient(180deg, #f3d48a 0%, #e2b65c 45%, #b9822f 100%);
  --ember: #e0582a;
  --radius: 14px;
  --max: 1080px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -0.01em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.sr, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(11, 12, 14, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
.brand { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--text); min-height: 40px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang[open] summary { border-color: var(--gold-2); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; min-width: 190px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.lang a { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; }
.lang a:hover, .lang a[aria-current] { background: rgba(226, 182, 92, .1); }
.lang a[aria-current] { color: var(--gold); }
.lang .code { width: 1.8em; color: var(--muted); font-weight: 600; font-size: .8rem; line-height: 1.9; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 28px 16px 56px; }
.hero-art {
  position: absolute; inset: 0; z-index: -1;
  background: url(/assets/europa-map.webp) center 30% / cover no-repeat;
  opacity: .22; filter: blur(2px) saturate(1.1);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 28px; justify-items: center; text-align: center; }
.hero-cover { width: min(62vw, 300px); }
.eyebrow { margin: 0 0 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 600; }
.hero h1 {
  font-size: clamp(2.1rem, 8.5vw, 3.6rem); font-weight: 800;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.subtitle { margin: 14px auto 0; max-width: 34ch; font-size: clamp(1.05rem, 4vw, 1.3rem); color: var(--text); text-wrap: balance; }

/* ---------- book ---------- */
.book {
  display: block; aspect-ratio: 2 / 3; width: 100%;
  border-radius: 3px 6px 6px 3px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 60px -12px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(226, 140, 60, .35);
  transform: perspective(1200px) rotateY(-8deg);
  position: relative;
}
.book::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .35) 0, rgba(255, 255, 255, .12) 1.5%, transparent 4%, transparent 96%, rgba(0, 0, 0, .2));
}
.book img { width: 100%; height: 100%; object-fit: cover; }
.book-css {
  background:
    linear-gradient(180deg, #0d0e10 0%, #0d0e10 34%, rgba(13, 14, 16, 0) 52%, rgba(13, 14, 16, 0) 82%, #0d0e10 94%),
    #0d0e10 url(/assets/europa-map.webp) center 78% / 125% auto no-repeat;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 9% 7% 7%; container-type: inline-size;
}
.bc-title { font-weight: 800; color: var(--gold); line-height: 1.02; font-size: 11cqi; text-wrap: balance; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.bc-sub { margin-top: 4%; font-size: 5.6cqi; line-height: 1.25; color: #fff; text-wrap: balance; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); }
.bc-author { margin-top: auto; font-size: 7cqi; font-weight: 500; color: #fff; }

/* ---------- CTA ---------- */
.cta-block { margin-top: 26px; display: grid; gap: 16px; justify-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 28px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-gold { background: var(--gold-grad); color: #1b1206; box-shadow: 0 10px 30px -8px rgba(226, 182, 92, .55); width: 100%; max-width: 360px; }
.btn-gold:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 34px -8px rgba(226, 182, 92, .7); }
.btn-gold:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); min-height: 44px; padding: 10px 18px; font-size: .9rem; font-weight: 600; }
.btn-ghost:hover { border-color: var(--gold-2); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; font-size: .85rem; }
.formats-label { color: var(--muted); margin-right: 2px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--gold-2); color: var(--gold); text-decoration: none; font-weight: 600; }
.chip:hover { background: rgba(226, 182, 92, .1); }
.chip-off { border-color: var(--line); color: var(--muted); font-weight: 500; }
.soon-badge {
  margin: 0; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold); border: 1px dashed var(--gold-2);
}

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 56px 16px; }
.section + .section { border-top: 1px solid rgba(255, 255, 255, .06); }
.kicker { margin: 0 0 12px; color: var(--gold); text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 700; }
.section h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin-bottom: 22px; text-wrap: balance; }
.prose { max-width: 66ch; }
.prose p { margin: 0 0 1.1em; }
.blurb { text-align: left; }
.blurb .prose p:first-child::first-letter {
  float: left; font-size: 3.4em; line-height: .85; padding: 6px 8px 0 0; font-weight: 800; color: var(--gold);
}
.closing {
  margin: 28px 0 0; max-width: 40ch; font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 4.6vw, 1.55rem); line-height: 1.4; color: var(--gold);
  padding-left: 18px; border-left: 3px solid var(--ember);
}

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cards li {
  position: relative; padding: 24px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), rgba(19, 21, 26, .4)); border: 1px solid var(--line);
}
.cards .num { display: block; font-weight: 800; font-size: .85rem; color: var(--ember); letter-spacing: .1em; margin-bottom: 10px; }
.cards h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text); }
.cards p { margin: 0; color: var(--muted); }

.author { display: grid; gap: 22px; align-items: start; }
.author p { max-width: 66ch; margin: 0; color: var(--text); }
.author-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-2); }

.final { display: grid; gap: 28px; justify-items: center; text-align: center; padding-bottom: 72px; }
.final .book-small { width: 150px; transform: none; }
.final h2 { margin-bottom: 6px; }
.final-title { margin: 0; color: var(--muted); }
.excerpt blockquote { margin: 0; padding: 0 0 0 20px; border-left: 3px solid var(--gold-2); font-style: italic; max-width: 66ch; }

/* ---------- notify form ---------- */
.notify { width: 100%; max-width: 520px; text-align: left; display: grid; gap: 12px; }
.notify-text { margin: 0; color: var(--muted); }
.notify-row { display: grid; gap: 10px; }
.notify input[type=email] {
  width: 100%; min-height: 54px; padding: 12px 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: inherit;
}
.notify input[type=email]:focus { border-color: var(--gold-2); outline: none; box-shadow: 0 0 0 3px rgba(226, 182, 92, .2); }
.notify .btn-gold { max-width: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.notify-msg { margin: 0; font-weight: 600; min-height: 1.4em; }
.notify-msg.ok { color: var(--gold); }
.notify-msg.err { color: #ff8a65; }

/* ---------- footer & cookie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 16px 120px; text-align: center; font-size: .85rem; color: var(--muted); }
.footer-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 14px; }
.footer-langs a, .footer-links a { color: var(--muted); text-decoration: none; }
.footer-langs a:hover, .footer-links a:hover, .linklike:hover { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 10px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.copy { margin: 0; }

.cookie {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px;
  max-width: 560px; margin: 0 auto; padding: 16px 18px;
  background: rgba(19, 21, 26, .97); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .6); font-size: .875rem; line-height: 1.5;
}
.cookie p { margin: 0 0 12px; }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.page .section { padding-top: 40px; }
.page h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); margin-bottom: 24px; color: var(--gold); }
.muted { color: var(--muted); font-size: .9rem; }
.chooser { text-align: center; }
.chooser ul { list-style: none; padding: 0; display: grid; gap: 10px; }

/* ---------- larger screens ---------- */
@media (min-width: 600px) {
  .notify-row { grid-template-columns: 1fr auto; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero { padding: 64px 24px 88px; }
  .hero-inner { grid-template-columns: 360px 1fr; gap: 64px; text-align: left; justify-items: start; align-items: center; }
  .hero-cover { width: 100%; }
  .subtitle { margin-left: 0; }
  .cta-block { justify-items: start; }
  .formats { justify-content: flex-start; }
  .section { padding: 80px 24px; }
  .author { grid-template-columns: auto 1fr; gap: 36px; }
  .final { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; justify-content: center; max-width: 820px; }
  .final .book-small { width: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); font-size: .9rem; font-weight: 500; }

.faq details { border-top: 1px solid var(--line); max-width: 760px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 1.5rem; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 66ch; }

/* ---------- «Un assaggio» ---------- */
.excerpt figure { margin: 0; max-width: 66ch; }
.excerpt blockquote p { margin: 0 0 1.1em; }
.excerpt blockquote p:last-child { margin-bottom: 0; }
.excerpt figcaption { margin-top: 16px; padding-left: 23px; color: var(--muted); font-size: .9rem; }
.excerpt cite { font-style: normal; }
.excerpt-cta { margin-top: 36px; display: grid; gap: 4px; justify-items: center; text-align: center; }
.excerpt-more { margin: 0; font-weight: 600; font-size: 1.1rem; }
.excerpt-cta .cta-block { margin-top: 12px; width: 100%; }

/* ---------- «Il libro in breve» ---------- */
.facts-list { margin: 0; display: grid; gap: 0; max-width: 760px; }
.facts-list div { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts-list div:last-child { border-bottom: 1px solid var(--line); }
.facts-list dt { color: var(--muted); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.facts-list dd { margin: 0; }
.toc { margin-top: 28px; max-width: 760px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
.toc summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 20px; position: relative;
  font-weight: 700; font-size: 1.05rem; border-radius: var(--radius);
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: '+'; position: absolute; right: 20px; top: 11px; font-size: 1.5rem; color: var(--gold); transition: transform .2s; }
.toc[open] summary::after { transform: rotate(45deg); }
.toc ol { margin: 0; padding: 4px 20px 20px 20px; list-style: none; counter-reset: none; }
.toc ol > li { padding: 12px 0; border-top: 1px solid var(--line); }
.toc-chapter { font-weight: 600; color: var(--text); }
.toc ul { margin: 8px 0 0; padding: 0 0 0 16px; list-style: none; color: var(--muted); font-size: .95rem; }
.toc ul li { padding: 3px 0 3px 1.6em; position: relative; }
.toc ul li::before { content: '—'; color: var(--gold-2); position: absolute; left: 0; }

@media (min-width: 600px) {
  .facts-list div { grid-template-columns: 200px 1fr; gap: 16px; align-items: baseline; }
}
@media (min-width: 900px) {
  .excerpt-cta { justify-items: start; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::after, .toc summary::after { transition: none; }
}
