:root {
  --mockup-w: 1536;
  --hero-h: 272;
  --universi-h: 200;
  --citazioni-h: 218;
  --spotlight-h: 170;
  --red: #ff1d28;
  --bg: #050506;
  --white: #f6f6f6;
  --muted: #a8a8a8;
  --speed: .35s;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { min-height: 100vh; overflow-x: hidden; background: #050506; color: #fff; font-family: Inter, Arial, sans-serif; }
a, button { -webkit-tap-highlight-color: transparent; color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: clamp(54px, 4.95vw, 76px);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background var(--speed), backdrop-filter var(--speed), border-color var(--speed);
  pointer-events: none;
}
.site-header.scrolled { background: rgba(5, 5, 6, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: rgba(255,255,255,.08); }
.brand-hotspot, .menu-hotspot, .admin-hotspot, .nav-hotspots a, .hero-btn, .universe-hit, .spotlight-hit { position: absolute; display: block; pointer-events: auto; background: transparent; border: 0; cursor: pointer; }
.brand-hotspot { left: 1.7vw; top: 1.2vw; width: 10.8vw; height: 3vw; }
.nav-hotspots { position: absolute; left: 38vw; top: 1.05vw; width: 28vw; height: 2vw; pointer-events: none; }
.nav-hotspots a { top: 0; height: 100%; }
.nav-hotspots a:nth-child(1) { left: 0; width: 5.2vw; }
.nav-hotspots a:nth-child(2) { left: 7.1vw; width: 4.2vw; }
.nav-hotspots a:nth-child(3) { left: 13.3vw; width: 8.2vw; }
.nav-hotspots a:nth-child(4) { left: 23.2vw; width: 5.2vw; }
.admin-hotspot { right: 5vw; top: .75vw; width: 2.5vw; height: 2.2vw; }
.menu-hotspot { right: 1.4vw; top: .75vw; width: 2.6vw; height: 2.1vw; }

.screen-slice { position: relative; width: 100vw; background-position: top center; background-repeat: no-repeat; background-size: 100vw auto; }
.hero-slice { height: calc(100vw * var(--hero-h) / var(--mockup-w)); min-height: 310px; background-image: url("assets/slices/hero.jpg"); }
.universi-slice { height: calc(100vw * var(--universi-h) / var(--mockup-w)); min-height: 210px; background-image: url("assets/slices/universi.jpg"); }
.citazioni-slice { display: none; }
.spotlight-slice { height: calc(100vw * var(--spotlight-h) / var(--mockup-w)); min-height: 180px; background-image: url("assets/slices/spotlight.jpg"); }

.hero-btn { top: 84.5%; height: 13%; transform: translateY(-50%); transition: transform var(--speed), box-shadow var(--speed); }
.hero-btn:hover { transform: translateY(-53%) scale(1.025); }
.hero-btn-primary { left: 36.6%; width: 11.8%; }
.hero-btn-secondary { left: 49.3%; width: 11.8%; }
.universe-hit { top: 19%; height: 76%; transition: transform var(--speed), box-shadow var(--speed); }
.universe-hit:hover { transform: translateY(-8px) scale(1.018); box-shadow: 0 24px 70px rgba(0,0,0,.65); }
.u-distopie { left: 8.3%; width: 20.0%; }
.u-sentimenti { left: 29.2%; width: 20.4%; }
.u-disobbedienza { left: 50.9%; width: 20.2%; }
.u-identita { left: 72.2%; width: 20.3%; }
.spotlight-hit { left: 30.0%; top: 69%; width: 10.8%; height: 20%; }

.opere-live {
  position: relative;
  padding: 30px clamp(22px, 8.35vw, 128px) 58px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,29,40,.16), transparent 30%),
    linear-gradient(180deg, #080809 0%, #050506 100%);
}
.opere-head { display: flex; align-items: center; gap: 22px; margin-bottom: 12px; }
.opere-head h2 { font-family: Montserrat, Arial, sans-serif; font-size: clamp(18px, 1.42vw, 22px); font-weight: 800; letter-spacing: .23em; text-transform: uppercase; }
.opere-head h2 span { color: var(--red); }
.books-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(14px, 1.45vw, 22px); align-items: start; }
.book-card { min-width: 0; transition: transform var(--speed); }
.book-cover-wrap { aspect-ratio: 2 / 3; overflow: hidden; background: #111; box-shadow: 0 18px 45px rgba(0,0,0,.65); border-left: 3px solid rgba(255,29,40,.85); }
.book-cover-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--speed), filter var(--speed); }
.book-card:hover { transform: translateY(-9px); }
.book-card:hover img { transform: scale(1.055); filter: contrast(1.08); }
.book-card h3 { min-height: 52px; margin-top: 11px; font-family: Montserrat, Arial, sans-serif; font-size: clamp(10px, .78vw, 13px); line-height: 1.22; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; text-align: center; }
.all-books-card { min-height: calc((100vw - 256px - 132px) / 7 * 1.5); aspect-ratio: 2 / 3; display: grid; place-content: center; gap: 18px; text-align: center; background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.014)); border: 1px solid rgba(255,255,255,.08); transition: transform var(--speed), border-color var(--speed), background var(--speed); }
.all-books-card:hover { transform: translateY(-9px); border-color: rgba(255,29,40,.55); background: linear-gradient(135deg, rgba(255,29,40,.11), rgba(255,255,255,.014)); }
.all-books-card span { font-family: Montserrat, Arial, sans-serif; font-size: 12px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; line-height: 1.7; }
.all-books-card b { color: var(--red); font-size: 28px; }
.reset-filter { padding: 9px 14px; border: 1px solid rgba(255,46,85,.55); background: rgba(5,5,6,.76); color: #fff; font: 800 10px/1 Montserrat, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1100px) { .books-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .nav-hotspots { display: none; } .brand-hotspot { width: 150px; height: 42px; } .menu-hotspot { width: 38px; height: 34px; } .admin-hotspot { right: 58px; width: 34px; height: 34px; } }
@media (max-width: 900px) { .screen-slice { background-size: auto 100%; } .hero-slice { height: 360px; } .universi-slice { height: 220px; } .citazioni-slice { display: none; } .spotlight-slice { height: 205px; } }
@media (max-width: 640px) { .opere-live { padding: 28px 18px 48px; } .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .opere-head { align-items: flex-start; flex-direction: column; } }

.arrivals-live { padding-top: 34px; padding-bottom: 34px; background: linear-gradient(180deg, #050506 0%, #09090b 100%); border-top: 1px solid rgba(255,255,255,.05); }
.all-live { padding-top: 34px; background: linear-gradient(180deg, #080809 0%, #050506 100%); }
.compact-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.book-link { display: block; }
.book-cover-wrap { position: relative; }
.new-badge { position: absolute; top: 8px; left: 8px; z-index: 2; padding: 5px 7px; background: linear-gradient(135deg, #b40014, #ff1d28); color: #fff; font: 900 9px/1 Montserrat, Arial, sans-serif; letter-spacing: .14em; box-shadow: 0 8px 22px rgba(255,29,40,.3); }
.buy-label { display: block; margin-top: 8px; color: var(--red); text-align: center; font: 900 10px/1 Montserrat, Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.buy-label.muted { color: rgba(255,255,255,.38); }
.book-card.compact h3 { min-height: 48px; font-size: clamp(9px, .68vw, 12px); }
@media (max-width: 1100px) { .compact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* CITAZIONI */
.citazioni-live {
  position: relative;
  padding: 48px clamp(22px, 8.35vw, 128px) 58px;
  background:
    radial-gradient(circle at 35% 45%, rgba(255, 29, 40, .17), transparent 34%),
    linear-gradient(180deg, #050506 0%, #09090b 45%, #050506 100%);
  overflow: hidden;
}
.citazioni-head { margin-bottom: 24px; }
.citazioni-head p { color: rgba(255,255,255,.62); font: 700 12px/1 Montserrat, Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 10px; }
.citazioni-head h2 { color: #fff; font: 900 clamp(28px, 4.2vw, 66px)/.92 Montserrat, Arial, sans-serif; letter-spacing: .20em; text-transform: uppercase; text-shadow: 0 20px 55px rgba(0,0,0,.8); }
.quote-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.quote-card { min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 18px 45px rgba(0,0,0,.32); transition: transform var(--speed), border-color var(--speed), background var(--speed); }
.quote-card:hover { transform: translateY(-7px); border-color: rgba(255,29,40,.5); background: rgba(255,29,40,.08); }
.quote-card p { font-family: Georgia, serif; font-size: clamp(15px, 1.1vw, 20px); line-height: 1.38; color: rgba(255,255,255,.92); }
.quote-card strong { margin-top: 16px; color: var(--red); font: 900 10px/1.25 Montserrat, Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.quote-card:nth-child(6n+1) { grid-column: span 4; }
.quote-card:nth-child(6n+2) { grid-column: span 3; }
.quote-card:nth-child(6n+3) { grid-column: span 5; }
.quote-card:nth-child(6n+4) { grid-column: span 5; }
.quote-card:nth-child(6n+5) { grid-column: span 4; }
.quote-card:nth-child(6n+6) { grid-column: span 3; }

.read-label { display: block; margin-top: 8px; color: var(--red); text-align: center; font: 900 10px/1 Montserrat, Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.buy-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
.buy-row a, .disabled-buy { min-height: 24px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); color: #fff; font: 800 8px/1 Montserrat, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.buy-row a:hover { border-color: rgba(255,29,40,.7); background: rgba(255,29,40,.14); }
.disabled-buy { color: rgba(255,255,255,.32); }

.book-page-body { background: #050506; }
.book-header { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 6vw, 90px); background: rgba(5,5,6,.82); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.book-header a { font: 900 11px/1 Montserrat, Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.book-detail { padding: 110px clamp(22px, 8vw, 128px) 80px; min-height: 100vh; background: radial-gradient(circle at 72% 10%, rgba(255,29,40,.17), transparent 34%), linear-gradient(180deg, #080809, #050506); }
.book-hero-detail { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.detail-cover img { width: 100%; box-shadow: 0 30px 90px rgba(0,0,0,.8); border-left: 4px solid var(--red); }
.detail-kicker { color: var(--red); font: 900 12px/1 Montserrat, Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px; }
.detail-copy h1 { max-width: 980px; font: 900 clamp(34px, 5.5vw, 86px)/.95 Montserrat, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.detail-quote { max-width: 780px; margin: 24px 0; font-family: Georgia, serif; font-size: clamp(22px, 2.2vw, 36px); line-height: 1.25; color: rgba(255,255,255,.86); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-buy { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); font: 900 11px/1 Montserrat, Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.detail-buy:not(.disabled):hover { border-color: rgba(255,29,40,.7); background: rgba(255,29,40,.14); }
.detail-buy.disabled { opacity: .42; }
.book-text-block { max-width: 1100px; margin-top: 54px; padding-top: 34px; border-top: 1px solid rgba(255,255,255,.08); }
.book-text-block h2 { color: var(--red); font: 900 18px/1 Montserrat, Arial, sans-serif; letter-spacing: .20em; text-transform: uppercase; margin-bottom: 16px; }
.book-text-block p { white-space: pre-line; font-size: clamp(17px, 1.25vw, 21px); line-height: 1.75; color: rgba(255,255,255,.86); }
@media (max-width: 1100px) { .quote-card { grid-column: span 6 !important; } .book-hero-detail { grid-template-columns: 1fr; } .detail-cover { max-width: 340px; } }
@media (max-width: 640px) { .quote-grid { grid-template-columns: 1fr; } .quote-card { grid-column: auto !important; } .buy-row { grid-template-columns: 1fr; } .book-detail { padding: 96px 18px 60px; } }


/* BIO AUTORE */
.author-live {
  position: relative;
  padding: 62px clamp(22px, 8.35vw, 128px);
  background:
    radial-gradient(circle at 78% 10%, rgba(255,29,40,.14), transparent 34%),
    linear-gradient(180deg, #050506 0%, #0a0a0c 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.author-panel {
  max-width: 1080px;
  padding: clamp(24px, 4vw, 48px);
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.author-kicker {
  color: var(--red);
  font: 900 12px/1 Montserrat, Arial, sans-serif;
  letter-spacing: .26em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.author-panel h2 {
  font: 900 clamp(34px, 5vw, 74px)/.95 Montserrat, Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.author-panel h2 span { color: var(--red); }
.author-panel p {
  max-width: 920px;
  color: rgba(255,255,255,.82);
  font-size: clamp(16px, 1.15vw, 20px);
  line-height: 1.75;
  margin-top: 16px;
}

/* V4 FIX - header reale, citazioni reali, pagine wall/autore */
.visible-header {
  background: rgba(5,5,6,.86) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
.brand-live { display: flex; flex-direction: column; gap: 4px; font-family: Montserrat, Arial, sans-serif; text-transform: uppercase; letter-spacing: .22em; }
.brand-live strong { font-size: 18px; line-height: 1; color: #fff; }
.brand-live span { color: #ff1d28; }
.brand-live small { font-size: 10px; color: #fff; letter-spacing: .34em; }
.main-nav-live { display: flex; align-items: center; justify-content: center; gap: clamp(24px, 4vw, 58px); font: 900 11px/1 Montserrat, Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.main-nav-live a { position: relative; padding: 14px 0; }
.main-nav-live a::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 0; height: 2px; background: linear-gradient(90deg, transparent, #ff1d28, transparent); transform: translateX(-50%); transition: width .35s; }
.main-nav-live a:hover::after { width: 100%; }
.admin-link-live { font: 900 10px/1 Montserrat, Arial, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.live-hero-button { display: grid !important; place-items: center; color: #fff; font: 900 12px/1 Montserrat, Arial, sans-serif; letter-spacing: .09em; text-transform: uppercase; text-align: center; }
.hero-btn-primary.live-hero-button { background: linear-gradient(135deg, #b40014, #ff1d28); box-shadow: 0 0 30px rgba(255,29,40,.25); }
.hero-btn-secondary.live-hero-button { border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.62); }
.wall-open-link, .author-page-link { color: #ff1d28; font: 900 11px/1 Montserrat, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.quote-preview .quote-card:nth-child(n+8) { display: none; }
.wall-page, .author-page { min-height: 100vh; padding: 120px clamp(22px, 8vw, 128px) 80px; background: radial-gradient(circle at 70% 12%, rgba(255,29,40,.17), transparent 34%), linear-gradient(180deg, #080809, #050506); }
.wall-hero p, .author-page-hero p { color: #ff1d28; font: 900 12px/1 Montserrat, Arial, sans-serif; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 16px; }
.wall-hero h1, .author-page-hero h1 { font: 900 clamp(42px, 7vw, 96px)/.92 Montserrat, Arial, sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.author-page-hero h1 span { color: #ff1d28; }
.wall-hero span, .author-page-hero h2 { display: block; max-width: 900px; margin-top: 18px; color: #d8d8d8; font: 500 clamp(17px, 2vw, 28px)/1.45 Inter, Arial, sans-serif; }
.wall-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 48px; }
.wall-quote-card { min-height: 210px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018)); border: 1px solid rgba(255,255,255,.08); border-left: 3px solid #ff1d28; transition: transform .35s, border-color .35s, background .35s; }
.wall-quote-card:hover { transform: translateY(-8px); border-color: rgba(255,29,40,.55); background: rgba(255,29,40,.08); }
.wall-quote-card p { font-family: Georgia, serif; font-size: clamp(18px, 1.55vw, 27px); line-height: 1.28; }
.wall-quote-card strong { margin-top: 20px; color: #ff1d28; font: 900 11px/1.25 Montserrat, Arial, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.wall-quote-card span { margin-top: 8px; color: #bdbdbd; font-size: 12px; }
.author-bio-block { max-width: 980px; margin-top: 48px; padding: 36px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-left: 3px solid #ff1d28; }
.author-bio-block p { color: #e8e8e8; font-size: clamp(18px, 1.5vw, 25px); line-height: 1.65; margin-bottom: 22px; }
.author-bio-block p:last-child { margin-bottom: 0; }
@media (max-width: 1100px) { .wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .main-nav-live { display: none; } }
@media (max-width: 640px) { .wall-grid { grid-template-columns: 1fr; } .brand-live strong { font-size: 14px; } .hero-btn-primary.live-hero-button, .hero-btn-secondary.live-hero-button { font-size: 9px; } }


/* FIX MENU PUBBLICO V5 - niente placeholder, niente admin visibile */
.site-header.visible-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 clamp(22px, 5vw, 72px);
  pointer-events: auto;
  background: rgba(5, 5, 6, 0.94) !important;
}
.site-header.visible-header .brand-live,
.site-header.visible-header .main-nav-live,
.site-header.visible-header .main-nav-live a {
  pointer-events: auto;
}
.main-nav-live {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: clamp(42px, 5vw, 76px);
}
.admin-link-live,
.admin-hotspot {
  display: none !important;
}
.book-header {
  justify-content: flex-start;
}
.hero-btn.live-hero-button {
  height: 18%;
  top: 85%;
  z-index: 5;
  overflow: hidden;
}
.hero-btn-primary.live-hero-button {
  background: linear-gradient(135deg, #b40014, #ff1d28) !important;
}
.hero-btn-secondary.live-hero-button {
  background: #050506 !important;
  border: 1px solid rgba(255,255,255,.42) !important;
}
@media (max-width: 900px) {
  .main-nav-live { display: flex; gap: 28px; }
}
@media (max-width: 640px) {
  .site-header.visible-header { height: 64px; padding: 0 16px; }
  .main-nav-live { position: static; transform: none; gap: 18px; }
}


/* V6 FIX FINALE - solo CTA hero + status editoriale */
.hero-btn.live-hero-button {
  top: 87.4% !important;
  height: 14.5% !important;
  transform: translateY(-50%) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.hero-btn.live-hero-button:hover {
  transform: translateY(-50%) scale(1.018) !important;
  box-shadow: none !important;
}
.hero-btn-primary.live-hero-button {
  background: #d81723 !important;
  box-shadow: none !important;
}
.hero-btn-secondary.live-hero-button {
  background: #050506 !important;
  border: 1px solid rgba(255,255,255,.48) !important;
  box-shadow: none !important;
}
.editorial-badge,
.detail-status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin: 8px auto 0;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.045);
  color: #d6d6d6;
  font: 900 8px/1 Montserrat, Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
.editorial-badge.pubblicato { display: none; }
.editorial-badge.scrittura-in-corso,
.detail-status-badge.scrittura-in-corso { color: #fff; border-color: rgba(255,255,255,.24); }
.editorial-badge.in-revisione,
.detail-status-badge.in-revisione { color: #ffcc6a; border-color: rgba(255,204,106,.45); background: rgba(255,204,106,.08); }
.editorial-badge.nuova-edizione,
.detail-status-badge.nuova-edizione { color: #ff5160; border-color: rgba(255,29,40,.6); background: rgba(255,29,40,.10); }
.detail-status-badge { margin: 0 0 14px 0; font-size: 10px; padding: 8px 10px; }
@media (max-width: 640px) {
  .hero-btn.live-hero-button { top: 88% !important; height: 13% !important; }
}
