/* ============================================================
   Edizioni Rosi — design system
   Palette: panna / nero / accento bordeaux
   Font:    EB Garamond (serif) + Inter (sans)
   Stile:   Adelphi/Sellerio sobrio, niente colori extra
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F7F5F2;
  --white:     #FFFFFF;
  --ink:       #1A1A1A;
  --mid:       #666660;
  --light:     #E8E5E0;
  --hairline:  #D9D5CD;
  --accent:    #7A1F1F;
  --serif:     'EB Garamond', Georgia, serif;
  --sans:      'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── HEADER ───────────────────────────────────────────────── */
header.site {
  background: var(--bg);
  border-bottom: 1px solid var(--light);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }
nav.primary { display: flex; gap: 0; }
nav.primary a {
  font-size: 13px;
  padding: 8px 18px;
  opacity: 0.65;
  transition: opacity 0.15s;
}
nav.primary a:hover { opacity: 1; text-decoration: none; }
nav.primary a.active { opacity: 1; font-weight: 500; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 32px 80px;
  text-align: center;
}
.hero .kicker {
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--mid);
  margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.hero .lead {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-style: italic;
  font-weight: 400;
  color: var(--mid);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
}
.btn.ghost:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn.large { padding: 18px 36px; font-size: 16px; }
.btn.full { display: block; width: 100%; text-align: center; }

/* ── SECTIONS ─────────────────────────────────────────────── */
section.block {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
}
section.block.narrow { max-width: 760px; }
.section-title {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--mid);
  margin-bottom: 48px;
}
.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  max-width: 200px;
  margin: 48px auto;
}

/* ── BOOK CARDS GRID ──────────────────────────────────────── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
.book-card {
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 24px;
}
.book-card .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--mid);
  margin-bottom: 8px;
}
.book-card h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.book-card .author {
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.book-card .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  margin: 8px 0 18px;
  padding-left: 14px;
  border-left: 2px solid var(--hairline);
}
.book-card .meta {
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 14px;
}
.book-card .meta strong { color: var(--ink); font-weight: 500; }
.book-card .price {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.book-card .link {
  font-size: 13px;
  text-decoration: underline;
}

/* ── PRICING (3 box) ──────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 60px auto;
}
.tier {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  text-align: center;
  border-radius: 4px;
}
.tier.featured {
  border: 2px solid var(--ink);
  position: relative;
  transform: translateY(-12px);
}
.tier.featured::before {
  content: "⭐ I PIÙ SCELGONO";
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  padding: 5px 16px;
  border-radius: 2px;
}
.tier .tier-name {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}
.tier .tier-sub {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 28px;
  min-height: 36px;
}
.tier .tier-price {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.tier .tier-price .euro { font-size: 32px; vertical-align: top; }
.tier .tier-strike {
  font-size: 13px;
  color: var(--mid);
  text-decoration: line-through;
  margin-bottom: 4px;
}
.tier .tier-saving {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 28px;
}
.tier ul {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}
.tier ul li {
  font-size: 13.5px;
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--ink);
}
.tier ul li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--accent);
}
.tier .btn { margin-top: auto; }

/* ── GUARANTEES ───────────────────────────────────────────── */
.guarantees {
  background: var(--white);
  padding: 60px 32px;
  text-align: center;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.guarantees ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.guarantees li {
  font-size: 14px;
  color: var(--ink);
}
.guarantees li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px;
}
.faq h2 {
  font-family: var(--serif);
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
}
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 20px 0;
}
.faq summary {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between;
  padding: 4px 0;
}
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-top: 12px; color: var(--mid); line-height: 1.6; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer.site {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 60px 32px 40px;
  text-align: center;
  font-size: 13px;
}
footer.site a { color: rgba(255,255,255,0.85); text-decoration: underline; }
footer.site .footer-logo {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 16px;
}
footer.site .footer-links {
  margin: 24px 0 16px;
}
footer.site .footer-links a {
  margin: 0 12px;
  font-size: 12px;
}
footer.site .footer-meta {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 20px;
}

/* ── BOOK PAGE ────────────────────────────────────────────── */
.book-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 32px;
}
.book-page .breadcrumb {
  font-size: 12px;
  color: var(--mid);
  margin-bottom: 32px;
}
.book-page h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.book-page .subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--mid);
  margin-bottom: 16px;
}
.book-page .author-line {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 32px;
}
.book-page .epigraph {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  border-left: 2px solid var(--hairline);
  padding: 12px 0 12px 24px;
  margin: 32px 0;
  color: var(--ink);
}
.book-page .body p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.book-page .meta-box {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 28px;
  margin: 40px 0;
  border-radius: 4px;
}
.book-page .meta-box dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  font-size: 14px;
}
.book-page .meta-box dt { color: var(--mid); }
.book-page .meta-box dd { font-weight: 500; }
.book-page .buy-block {
  background: var(--white);
  border: 2px solid var(--ink);
  padding: 32px;
  margin: 48px 0;
  border-radius: 4px;
  text-align: center;
}
.book-page .buy-block .big-price {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}
.book-page .buy-block .big-price .euro { font-size: 28px; vertical-align: top; }
.book-page .buy-block .note {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 24px;
}
.book-page .buy-block .alt {
  display: block;
  font-size: 13px;
  color: var(--mid);
  margin-top: 16px;
}

/* ── BANNER PRE-ORDER ─────────────────────────────────────── */
.preorder-banner {
  background: var(--accent);
  color: var(--white);
  text-align: center;
  padding: 14px;
  font-size: 13px;
}
.preorder-banner strong { font-weight: 600; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-inner { padding: 0 20px; height: 56px; }
  .logo { font-size: 18px; }
  nav.primary a { padding: 6px 10px; font-size: 12px; }
  .hero { padding: 60px 20px 40px; }
  section.block { padding: 50px 20px; }
  .pricing { grid-template-columns: 1fr; gap: 20px; }
  .tier.featured { transform: none; }
  .book-grid { grid-template-columns: 1fr; }
  .book-page { padding: 50px 20px; }
}
