/* ===== Diventa Attraente — nero e oro, versione pulita ===== */
:root {
  /* Variante "Argento": grigio chiaro, testo scuro, oro bronzo */
  --bg: #e7e5e1;
  --bg-2: #f3f2ef;
  --line: rgba(0, 0, 0, .10);
  --line-strong: rgba(134, 103, 44, .6);
  --gold: #86672c;
  --gold-light: #86672c;
  --gold-grad: #86672c;
  --text: #1e1e20;
  --text-2: #36332f;
  --muted: #4a4742;
  /* Copertine segnaposto: restano scure */
  --cover-gold: #d8b673;
  --cover-gold-light: #f1dca6;
  --cover-line: rgba(216, 182, 115, .45);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --display: "Cinzel", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.6; font-weight: 500; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--bg); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
h1, h2 { font-family: var(--serif); font-weight: 700; line-height: 1.05; }

/* ===== Pulsanti ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 700; text-decoration: none; padding: 17px 32px; min-height: 52px; border-radius: 12px; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; white-space: nowrap; }
.btn--gold { background: var(--gold); color: #ffffff; box-shadow: 0 12px 30px -16px rgba(134,103,44,.7); }
.btn--gold:hover { transform: translateY(-2px); background: #74581f; box-shadow: 0 18px 36px -16px rgba(134,103,44,.8); }
.btn--ghost { border-color: var(--line-strong); color: var(--gold-light); }
.btn--ghost:hover { background: rgba(134,103,44,.08); border-color: var(--gold); }
.btn--soon { border: 1px dashed var(--line-strong); color: var(--muted); cursor: default; }

/* ===== Hero ===== */
.hero { text-align: center; padding: 120px 0 80px; background: radial-gradient(ellipse 55% 70% at 50% 0%, rgba(255,255,255,.6), transparent 70%); }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.2rem); max-width: 900px; margin: 0 auto 26px; letter-spacing: -.01em; }
.hero .lead { color: var(--text-2); font-size: 1.15rem; max-width: 600px; margin: 0 auto 40px; }

/* ===== Numeri ===== */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__inner { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats__inner > div { padding: 30px 12px; }
.stats__inner > div + div { border-left: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--gold-light); line-height: 1; margin-bottom: 6px; }
.stats br { display: none; }
.stats span { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ===== Libri (home) ===== */
.books { padding: 90px 0 110px; }
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tile { display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; padding: 40px 26px 30px; border: 1px solid var(--line); background: var(--bg-2); transition: border-color .3s, transform .3s; }
.tile:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.tile__cover { margin-bottom: 28px; }
.tile__body { display: flex; flex-direction: column; align-items: center; flex: 1; width: 100%; }
.tile h2 { font-size: 1.75rem; margin-bottom: 8px; }
.tile p { color: var(--text-2); font-size: 1.02rem; margin-bottom: 24px; flex: 1; }
.tile .btn { width: 100%; }

/* ===== Copertine segnaposto (sostituire con le immagini vere) ===== */
.cover { position: relative; width: 190px; height: 285px; border-radius: 2px 6px 6px 2px; padding: 22px 16px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; background: linear-gradient(160deg, #3a3a3f, #1c1c1f); border: 1px solid var(--cover-line); box-shadow: 0 26px 50px -26px rgba(0,0,0,.55), inset 5px 0 0 rgba(0,0,0,.5); overflow: hidden; }
.cover--2 { background: linear-gradient(160deg, #15171c, #040405); }
.cover--3 { background: linear-gradient(160deg, #1f0f0f, #050303); }
.cover__vol, .cover__brand { font-family: var(--display); font-size: .56rem; font-weight: 600; letter-spacing: .28em; color: var(--cover-gold); text-transform: uppercase; }
.cover__title { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1.05; color: var(--cover-gold-light); hyphens: auto; overflow-wrap: break-word; }
/* Copertina vera: <div class="cover cover--img"><img src="img/libro1.jpg" alt="..."></div> */
.cover.cover--img { padding: 0; background: #000; }
.cover--img img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Pagina libro ===== */
.back { display: inline-block; padding: 26px 0 0; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); text-decoration: none; }
.back:hover { color: var(--gold); }
.product { padding: 40px 0 80px; }
.product__inner { display: grid; grid-template-columns: 320px 1fr; gap: 64px; align-items: center; }
.product__cover { display: grid; place-items: center; }
.product__cover .cover { width: 260px; height: 390px; }
.product__cover .cover__title { font-size: 2.1rem; }
.product h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); margin-bottom: 12px; }
.product__tag { color: var(--text-2); font-size: 1.12rem; margin-bottom: 30px; max-width: 520px; }
.product .btn { width: 100%; max-width: 420px; font-size: .85rem; min-height: 60px; }
.product__formats { margin-top: 14px; font-size: .9rem; color: var(--muted); }
.product__formats b { color: var(--text-2); font-weight: 700; }

.block { padding: 80px 0; border-top: 1px solid var(--line); }
.block__title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.8rem); text-align: center; margin-bottom: 40px; }

/* Recensioni: immagini statiche, non cliccabili */
.dms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 920px; margin: 0 auto; align-items: start; }
.dms img { width: 100%; height: auto; border-radius: 22px; box-shadow: 0 18px 36px -22px rgba(0,0,0,.18); pointer-events: none; user-select: none; -webkit-user-drag: none; }

/* Descrizione */
.about { max-width: 720px; margin: 0 auto; }
.about p { color: var(--text-2); font-size: 1.05rem; margin-bottom: 16px; }
.about ul { list-style: none; margin-top: 28px; display: grid; gap: 12px; }
.about li { position: relative; padding-left: 24px; }
.about li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* Barra fissa "Prendilo su Amazon" — sempre visibile nella pagina libro */
.has-buybar { padding-bottom: 96px; }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(243,242,239,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line-strong); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.buybar__inner { display: flex; align-items: center; gap: 16px; }
.buybar__info { flex: 1; min-width: 0; line-height: 1.25; }
.buybar__info b { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__info span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.buybar .btn { padding: 14px 26px; min-height: 50px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--line); padding: 30px 0; font-size: .88rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; gap: 20px; }
.footer a { color: var(--text-2); text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* ===== Tablet ===== */
@media (max-width: 900px) {
  .shelf { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .product__inner { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .product__tag, .product .btn { margin-left: auto; margin-right: auto; }
}

/* ===== Mobile ===== */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 80px 0 56px; }
  .hero h1 { font-size: 2.9rem; margin-bottom: 20px; }
  .hero .lead { font-size: 1rem; margin-bottom: 32px; }
  .hero .btn { width: 100%; }
  .stats__inner > div { padding: 22px 6px; }
  .stats strong { font-size: 1.8rem; }
  .stats br { display: inline; }
  .stats span { font-size: .66rem; letter-spacing: .04em; display: block; line-height: 1.35; }
  .books { padding: 40px 0 60px; }
  .shelf { gap: 14px; }
  .tile { flex-direction: row; align-items: center; text-align: left; gap: 18px; padding: 16px; }
  .tile__cover { margin: 0; flex: none; }
  .tile .cover { width: 96px; height: 144px; padding: 11px 9px; }
  .tile .cover__title { font-size: .9rem; }
  .tile .cover__vol, .tile .cover__brand { font-size: .36rem; letter-spacing: .16em; }
  .tile__body { align-items: flex-start; }
  .tile h2 { font-size: 1.35rem; margin-bottom: 4px; }
  .tile p { font-size: .94rem; margin-bottom: 14px; line-height: 1.45; }
  .tile .btn { padding: 11px 14px; min-height: 44px; font-size: .68rem; letter-spacing: .1em; }
  .back { padding-top: 18px; font-size: .76rem; }
  .product { padding: 22px 0 50px; }
  .product__cover .cover { width: 170px; height: 255px; }
  .product__cover .cover__title { font-size: 1.4rem; }
  .product h1 { font-size: 2.3rem; }
  .product__tag { font-size: 1rem; margin-bottom: 22px; }
  .block { padding: 56px 0; }
  .block__title { margin-bottom: 28px; }
  .dms { grid-template-columns: 1fr; gap: 12px; }
  .buybar .btn { padding: 12px 16px; font-size: .7rem; letter-spacing: .1em; }
  .buybar__info b { font-size: 1rem; }
}
