﻿/* =========================================================
   Antipodes – sito pubblico (ASP.NET Core)
   Palette: Blu Notte · Oro Sabbia · Carta
   ========================================================= */
:root {
  --ap-night: #16212b;
  --ap-night-2: #1f2d3a;
  --ap-night-3: #2a3b4b;
  --ap-gold: #c5a059;
  --ap-gold-light: #e2c992;
  --ap-gold-dark: #9c7a36;
  --ap-paper: #fbf8f2;
  --ap-sand: #f2ebdf;
  --ap-sand-2: #e9dfcd;
  --ap-line: #e6dfd3;
  --ap-ink: #2b2b2b;
  --ap-muted: #6f6a63;
  --ap-serif: 'Playfair Display', Georgia, serif;
  --ap-sans: 'Inter', system-ui, sans-serif;
  --ap-radius: 18px;
  --ap-shadow-sm: 0 4px 14px rgba(22,33,43,.06);
  --ap-shadow: 0 18px 45px rgba(22,33,43,.12);
  --ap-shadow-lg: 0 30px 70px rgba(22,33,43,.22);
  --ap-ease: cubic-bezier(.2,.7,.2,1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.38 0 0 0 0 0.25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ap-sans);
  color: var(--ap-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, .serif { font-family: var(--ap-serif); letter-spacing: -.01em; }
a { color: var(--ap-night); }
::selection { background: var(--ap-gold-light); color: var(--ap-night); }

.text-gold { color: var(--ap-gold) !important; }
.text-gold-dark { color: var(--ap-gold-dark) !important; }

/* ---------- Bottoni ---------- */
.btn { transition: all .25s var(--ap-ease); }
.btn-gold {
  background: linear-gradient(135deg, var(--ap-gold-light), var(--ap-gold));
  border: 0;
  color: var(--ap-night);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(197,160,89,.35);
}
.btn-gold:hover { color: var(--ap-night); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(197,160,89,.45); }
.btn-night { background: var(--ap-night); border-color: var(--ap-night); color: #fff; font-weight: 600; }
.btn-night:hover { background: var(--ap-night-3); border-color: var(--ap-night-3); color: var(--ap-gold-light); transform: translateY(-2px); }
.btn-ghost { border: 1px solid rgba(22,33,43,.25); color: var(--ap-night); font-weight: 600; background: transparent; }
.btn-ghost:hover { border-color: var(--ap-night); background: var(--ap-night); color: #fff; }
.btn-ghost-light { border: 1px solid rgba(255,255,255,.35); color: #fff; font-weight: 600; }
.btn-ghost-light:hover { background: #fff; color: var(--ap-night); }

/* ---------- Titoli di sezione ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ap-gold-dark);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.eyebrow.center::after { content: ''; width: 28px; height: 1px; background: currentColor; }
.section-title { color: var(--ap-night); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.1; }
.section-title em { color: var(--ap-gold-dark); }
.on-dark .section-title { color: #fff; }
.on-dark .section-title em, .on-dark .eyebrow { color: var(--ap-gold); }

.link-more { color: var(--ap-gold-dark); font-weight: 600; text-decoration: none; font-size: .9rem; }
.link-more:hover { color: var(--ap-night); }
.link-more i { display: inline-block; transition: transform .25s var(--ap-ease); }
.link-more:hover i { transform: translateX(5px); }

/* Avviso: sito con i dati di esempio (manca la connessione al database) */
.sample-data-bar {
  background: #b23b3b; color: #fff; text-align: center;
  padding: 8px 16px; font-size: .88rem;
}
.sample-data-bar code { color: #ffe1e1; }
.sample-data-bar i { margin-right: 6px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--ap-night);
  color: rgba(255,255,255,.72);
  font-size: .78rem;
  letter-spacing: .02em;
}
.topbar a { color: rgba(255,255,255,.72); text-decoration: none; }
.topbar a:hover { color: var(--ap-gold); }
.topbar .sep { width: 1px; height: 12px; background: rgba(255,255,255,.2); }

/* ---------- Header ---------- */
.site-header { background: #fff; padding: 16px 0; }
.brand-text {
  font-family: var(--ap-serif);
  font-style: italic;
  color: var(--ap-night);
  font-size: 1.1rem;
  margin-left: 16px; padding-left: 16px;
  border-left: 1px solid var(--ap-line);
}
.header-search { flex: 1; max-width: 440px; position: relative; }
.header-search input {
  border-radius: 50px;
  border: 1px solid var(--ap-line);
  background: var(--ap-paper);
  padding: .7rem 1rem .7rem 2.8rem;
  font-size: .92rem;
  transition: .2s;
}
.header-search input:focus { background: #fff; border-color: var(--ap-gold); box-shadow: 0 0 0 4px rgba(197,160,89,.15); }
.header-search i { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--ap-muted); }

.icon-btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ap-night); background: var(--ap-paper);
  border: 1px solid var(--ap-line);
  text-decoration: none; font-size: 1.1rem;
  transition: .2s;
}
.icon-btn:hover { border-color: var(--ap-gold); color: var(--ap-gold-dark); background: #fff; }

.cart-pill {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 18px 6px 6px;
  border-radius: 50px;
  background: var(--ap-night);
  color: #fff; text-decoration: none; font-weight: 600; font-size: .9rem;
  white-space: nowrap;
  transition: .25s var(--ap-ease);
}
.cart-pill .ico {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ap-gold); color: var(--ap-night);
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-pill:hover { background: var(--ap-night-3); color: var(--ap-gold-light); }
.cart-badge {
  position: absolute; top: -4px; left: 30px;
  min-width: 20px; height: 20px; border-radius: 10px;
  background: #fff; color: var(--ap-night);
  border: 2px solid var(--ap-night);
  font-size: .65rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-badge.bump { animation: bump .45s var(--ap-ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

/* ---------- Menu ---------- */
.main-nav { z-index: 1030; padding: 0; transition: .3s; }
.main-nav .nav-shell {
  background: var(--ap-night);
  border-radius: 14px;
  padding: .15rem 1.2rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(22,33,43,.18);
}
.main-nav .nav-shell::after {
  content: ''; position: absolute; left: 24px; right: 24px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--ap-gold), transparent);
}
.main-nav .nav-link {
  position: relative;
  color: rgba(255,255,255,.88);
  font-weight: 600; font-size: .76rem;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 15px 12px !important;
  transition: color .2s;
}
.main-nav .nav-link::before {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 1px;
  background: var(--ap-gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ap-ease);
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--ap-gold-light); }
.main-nav .nav-link:hover::before, .main-nav .nav-link.active::before { transform: scaleX(1); }
.main-nav .dropdown-toggle::after { border: 0; content: '\F282'; font-family: 'bootstrap-icons'; font-size: .6rem; vertical-align: middle; margin-left: .35rem; }
.main-nav .navbar-toggler { color: #fff; box-shadow: none; }

.main-nav .dropdown-menu {
  background: #fff;
  border: 0;
  border-radius: 14px;
  padding: .6rem;
  margin-top: 6px;
  min-width: 230px;
  box-shadow: var(--ap-shadow);
}
.main-nav .dropdown-item { color: var(--ap-night); font-size: .88rem; padding: .55rem .9rem; border-radius: 8px; }
.main-nav .dropdown-item:hover { background: var(--ap-sand); color: var(--ap-gold-dark); }
@media (min-width: 1200px) {
  .main-nav .dropdown:hover .dropdown-menu { display: block; animation: fadeUp .25s var(--ap-ease); }
  /* "ponte" invisibile sopra il menu: copre lo spazio tra la voce e il menu,
     così scendendo col mouse il passaggio non si interrompe e il menu resta aperto */
  .main-nav .dropdown-menu::before {
    content: ''; position: absolute; left: 0; right: 0; top: -20px; height: 20px;
  }
}
@media (max-width: 1199.98px) {
  .main-nav .dropdown-menu { background: transparent; box-shadow: none; text-align: center; }
  .main-nav .dropdown-item { color: rgba(255,255,255,.8); }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--grain), radial-gradient(1100px 500px at 90% 10%, rgba(197,160,89,.16), transparent 60%), var(--ap-paper);
  padding: 72px 0 96px;
  margin-top: -28px; /* scorre sotto il menu */
  padding-top: 110px;
  overflow: hidden;
}
.hero::after { /* onda di carta */
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: #fff;
  clip-path: ellipse(75% 100% at 50% 100%);
}
.hero-deco {
  position: absolute; right: -60px; top: 40px;
  font-family: var(--ap-serif); font-style: italic; font-weight: 700;
  font-size: 34rem; line-height: .8; color: rgba(197,160,89,.07);
  pointer-events: none; user-select: none;
}
.hero h1 {
  color: var(--ap-night);
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  line-height: .98; font-weight: 700;
}
.hero h1 em { font-weight: 400; color: var(--ap-gold-dark); }
.hero .lead { color: var(--ap-muted); font-size: 1.18rem; max-width: 30rem; }

.hero-search {
  background: #fff;
  border-radius: 60px;
  padding: 6px;
  box-shadow: var(--ap-shadow);
  max-width: 500px;
}
.hero-search .form-control { border: 0; box-shadow: none; background: transparent; font-size: 1rem; }
.hero-search .bi-search { color: var(--ap-gold-dark); }
.hero-tags a {
  font-size: .8rem; color: var(--ap-muted); text-decoration: none;
  border-bottom: 1px dashed var(--ap-sand-2);
}
.hero-tags a:hover { color: var(--ap-gold-dark); border-color: var(--ap-gold); }

/* Ventaglio di copertine */
.book-fan { position: relative; height: 470px; }
.book-fan .halo {
  position: absolute; inset: 40px 30px 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197,160,89,.35), transparent 65%);
  filter: blur(10px);
}
.book-fan .ring {
  position: absolute; width: 380px; height: 380px; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(156,122,54,.35); border-radius: 50%;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.fan-book {
  position: absolute; left: 50%; top: 50%;
  width: 210px; aspect-ratio: 2/3;
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  box-shadow: var(--ap-shadow-lg);
  transition: transform .6s var(--ap-ease);
  background: var(--ap-sand);
}
.fan-book img { width: 100%; height: 100%; object-fit: cover; }
.fan-book::before { /* dorso */
  content: ''; position: absolute; inset: 0 auto 0 0; width: 14px; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.18) 50%, rgba(0,0,0,.05));
}
.fan-book.b1 { transform: translate(-115%, -46%) rotate(-12deg); }
.fan-book.b2 { transform: translate(-50%, -54%); z-index: 2; width: 236px; }
.fan-book.b3 { transform: translate(15%, -46%) rotate(12deg); }
.book-fan:hover .b1 { transform: translate(-130%, -48%) rotate(-16deg); }
.book-fan:hover .b3 { transform: translate(30%, -48%) rotate(16deg); }
.book-fan:hover .b2 { transform: translate(-50%, -58%); }

.float-card {
  position: absolute; z-index: 3;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  box-shadow: var(--ap-shadow);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: .85rem;
  text-decoration: none; color: var(--ap-night);
  animation: float 6s ease-in-out infinite;
}
.float-card .ico {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ap-night); color: var(--ap-gold);
}
.float-card small { display: block; color: var(--ap-muted); font-size: .72rem; }
.float-card.fc1 { left: 0; bottom: 40px; }
.float-card.fc2 { right: 0; top: 20px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Striscia servizi ---------- */
.perks { margin-top: -10px; position: relative; z-index: 2; }
.perk {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--ap-line);
  height: 100%;
  transition: .3s var(--ap-ease);
}
.perk:hover { border-color: var(--ap-gold); box-shadow: var(--ap-shadow-sm); transform: translateY(-3px); }
.perk .ico {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  background: var(--ap-sand); color: var(--ap-gold-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.perk strong { display: block; color: var(--ap-night); font-size: .92rem; }
.perk span { font-size: .8rem; color: var(--ap-muted); }

/* ---------- Libri ---------- */
.slider-nav button {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--ap-line); background: #fff; color: var(--ap-night);
  transition: .2s;
}
.slider-nav button:hover { background: var(--ap-night); color: var(--ap-gold); border-color: var(--ap-night); }

.scroll-container {
  display: flex; gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 20px 6px 30px;
  margin: 0 -6px;
  scrollbar-width: none;
}
.scroll-container::-webkit-scrollbar { display: none; }
.scroll-item { flex: 0 0 214px; scroll-snap-align: start; }
@media (max-width: 768px) { .scroll-item { flex: 0 0 170px; } .scroll-container { gap: 18px; } }

.slider-progress { height: 2px; background: var(--ap-line); border-radius: 2px; overflow: hidden; }
.slider-progress span { display: block; height: 100%; width: 30%; background: var(--ap-gold); transition: width .2s; }

.book-cover {
  position: relative; display: block;
  aspect-ratio: 2/3;
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  background: var(--ap-sand);
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 14px 30px rgba(22,33,43,.16);
  transition: transform .45s var(--ap-ease), box-shadow .45s var(--ap-ease);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-cover::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 12px; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.25), rgba(255,255,255,.2) 55%, rgba(0,0,0,.04));
}
.book-cover::after { /* riflesso */
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .8s var(--ap-ease);
}
.book-card:hover .book-cover { transform: translateY(-10px) rotate(-1deg); box-shadow: 0 4px 8px rgba(0,0,0,.08), 0 28px 50px rgba(22,33,43,.25); }
.book-card:hover .book-cover::after { transform: translateX(100%); }

.book-cover .flag {
  position: absolute; z-index: 2; top: 12px;
  font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 9px;
}
.flag-new { left: 0; background: var(--ap-gold); color: var(--ap-night); border-radius: 0 4px 4px 0; }
.flag-sale { right: 10px; background: var(--ap-night); color: var(--ap-gold-light); border-radius: 30px; }

.quick-add {
  position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px;
  border: 0; border-radius: 40px;
  background: rgba(255,255,255,.95); color: var(--ap-night);
  font-weight: 700; font-size: .8rem; padding: 9px;
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
  opacity: 0; transform: translateY(12px);
  transition: .35s var(--ap-ease);
}
.quick-add:hover { background: var(--ap-gold); }
.book-card:hover .quick-add, .quick-add:focus { opacity: 1; transform: none; }
@media (hover: none) { .quick-add { opacity: 1; transform: none; } }

.book-title {
  font-family: var(--ap-serif); font-weight: 700;
  font-size: 1rem; line-height: 1.3; color: var(--ap-night);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.6em;
}
.book-author { font-size: .84rem; color: var(--ap-muted); }
.price-old { font-size: .8rem; color: #a39d94; text-decoration: line-through; }
.price-new { font-weight: 700; color: var(--ap-night); font-size: 1.05rem; }

/* ---------- Categorie ---------- */
.cats { background: var(--grain), var(--ap-sand); position: relative; }
.cat-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 30px 14px 24px;
  border-radius: var(--ap-radius);
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.9);
  text-decoration: none; color: var(--ap-night);
  height: 100%;
  transition: .35s var(--ap-ease);
}
.cat-tile .ico {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--ap-gold-dark);
  background: var(--ap-paper);
  border: 1px solid var(--ap-sand-2);
  margin-bottom: 14px;
  transition: .35s var(--ap-ease);
}
.cat-tile h3 { font-size: 1.15rem; margin-bottom: 4px; }
.cat-tile span { font-size: .75rem; color: var(--ap-muted); letter-spacing: .08em; text-transform: uppercase; }
.cat-tile:hover { background: var(--ap-night); color: #fff; transform: translateY(-6px); box-shadow: var(--ap-shadow); }
.cat-tile:hover .ico { background: var(--ap-gold); color: var(--ap-night); border-color: var(--ap-gold); transform: rotate(-8deg) scale(1.05); }
.cat-tile:hover span { color: var(--ap-gold-light); }

/* ---------- Collane ---------- */
.collana-tile {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 18px;
  border-radius: 14px;
  border: 1px solid var(--ap-line);
  background: #fff;
  text-decoration: none; color: var(--ap-night);
  height: 100%;
  transition: .3s var(--ap-ease);
}
.collana-tile .letter {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ap-serif); font-weight: 700; font-size: 1.6rem;
  color: var(--ap-gold-dark);
  background: linear-gradient(135deg, var(--ap-paper), var(--ap-sand));
  transition: .3s var(--ap-ease);
}
.collana-tile h3 { font-size: 1rem; margin: 0 0 2px; line-height: 1.25; }
.collana-tile .meta { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted); font-weight: 600; }
.collana-tile .go { margin-left: auto; color: var(--ap-sand-2); transition: .3s var(--ap-ease); }
.collana-tile:hover { border-color: var(--ap-gold); box-shadow: var(--ap-shadow-sm); transform: translateY(-3px); }
.collana-tile:hover .letter { background: var(--ap-night); color: var(--ap-gold); }
.collana-tile:hover .go { color: var(--ap-gold-dark); transform: translateX(4px); }

/* ---------- In evidenza ---------- */
.highlight {
  position: relative; overflow: hidden;
  background: var(--ap-night);
  color: #fff;
}
.highlight .bg-blur {
  position: absolute; inset: -60px;
  background-size: cover; background-position: center;
  filter: blur(60px) saturate(1.2);
  opacity: .28;
}
.highlight::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grain), linear-gradient(180deg, rgba(22,33,43,.4), rgba(22,33,43,.92));
}
.highlight > .container { position: relative; }

.botm-cover {
  position: relative; width: min(300px, 70%); margin: 0 auto;
  aspect-ratio: 2/3;
  border-radius: 4px 10px 10px 4px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.06);
  transform: perspective(1200px) rotateY(-14deg);
  transition: transform .6s var(--ap-ease);
}
.botm-cover:hover { transform: perspective(1200px) rotateY(0); }
.botm-cover img { width: 100%; height: 100%; object-fit: cover; }
.botm-cover::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 16px; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.18) 55%, transparent);
}
.botm-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 40px;
  background: rgba(197,160,89,.15); color: var(--ap-gold-light);
  border: 1px solid rgba(197,160,89,.4);
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.botm-title { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.05; }
.botm-cat { color: var(--ap-gold); letter-spacing: .18em; text-transform: uppercase; font-size: .75rem; font-weight: 700; }

.pick {
  display: flex; align-items: center; gap: 16px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff; text-decoration: none;
  transition: .3s var(--ap-ease);
}
.pick img { width: 62px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 8px 18px rgba(0,0,0,.4); }
.pick h4 { font-size: 1.05rem; margin: 2px 0; }
.pick .cat { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-gold); font-weight: 700; }
.pick small { color: rgba(255,255,255,.6); }
.pick .go { margin-left: auto; color: rgba(255,255,255,.3); transition: .3s; }
.pick:hover { background: rgba(255,255,255,.09); border-color: rgba(197,160,89,.5); color: #fff; transform: translateX(6px); }
.pick:hover .go { color: var(--ap-gold); }

/* ---------- Manoscritto ---------- */
.manuscript {
  position: relative; overflow: hidden;
  border-radius: 28px;
  background: var(--grain), linear-gradient(120deg, #fff 0%, var(--ap-paper) 45%, var(--ap-sand) 100%);
  border: 1px solid var(--ap-line);
}
.manuscript .sketch { width: 100%; max-width: 420px; mix-blend-mode: multiply; transform: rotate(-3deg); }
.manuscript .steps li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--ap-muted); font-size: .95rem; }
.manuscript .steps .n {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--ap-night); color: var(--ap-gold);
  font-family: var(--ap-serif); font-weight: 700; font-size: .85rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.manuscript .steps strong { color: var(--ap-night); }

/* ---------- Blog ---------- */
.news-lead {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--ap-radius);
  min-height: 460px; height: 100%;
  color: #fff; text-decoration: none;
  box-shadow: var(--ap-shadow);
}
.news-lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ap-ease); }
.news-lead::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22,33,43,0) 20%, rgba(22,33,43,.75) 52%, rgba(22,33,43,.97) 100%); }
.news-lead .body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 32px; }
.news-lead h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.news-lead:hover { color: #fff; }
.news-lead:hover img { transform: scale(1.05); }

.news-row {
  display: flex; gap: 20px; align-items: stretch;
  padding: 14px; border-radius: var(--ap-radius);
  background: #fff; border: 1px solid var(--ap-line);
  text-decoration: none; color: var(--ap-ink);
  transition: .3s var(--ap-ease);
}
.news-row .thumb { width: 42%; flex-shrink: 0; border-radius: 12px; overflow: hidden; background: var(--ap-sand); }
.news-row .thumb img { width: 100%; height: 100%; object-fit: cover; min-height: 170px; transition: transform .8s var(--ap-ease); }
.news-row h4 { color: var(--ap-night); font-size: 1.15rem; }
.news-row:hover { border-color: var(--ap-gold); box-shadow: var(--ap-shadow-sm); color: var(--ap-ink); }
.news-row:hover .thumb img { transform: scale(1.06); }
.date-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ap-gold-dark);
}
.news-lead .date-chip { color: var(--ap-gold-light); }
@media (max-width: 575.98px) {
  .news-row { flex-direction: column; }
  .news-row .thumb { width: 100%; }
  .news-lead { min-height: 380px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--grain), var(--ap-night);
  color: rgba(248,249,250,.72);
  padding: 64px 0 90px;
}
.site-footer h6 {
  color: #fff; font-family: var(--ap-serif); font-size: 1.05rem; font-weight: 700;
  margin-bottom: 1.1rem;
}
.site-footer a { color: rgba(248,249,250,.72); text-decoration: none; transition: .2s; }
.site-footer a:hover { color: var(--ap-gold); }
.footer-links li { margin-bottom: .55rem; font-size: .92rem; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { transform: translateX(3px); }
.footer-logo { filter: brightness(0) invert(1); opacity: .9; }
.social a {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(197,160,89,.35);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ap-gold); font-size: 1.05rem;
}
.social a:hover { background: var(--ap-gold); color: var(--ap-night); border-color: var(--ap-gold); transform: translateY(-3px); }
.footer-divider { border-color: rgba(197,160,89,.18); opacity: 1; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }

/* ---------- Banner dei cookie ---------- */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 1045; /* sopra il "torna su", sotto il pannello delle preferenze */
  width: min(30rem, calc(100vw - 32px));
  padding: 1.4rem 1.5rem 1.25rem;
  background: #fff; color: var(--ap-ink);
  border: 1px solid var(--ap-line); border-radius: var(--ap-radius);
  box-shadow: var(--ap-shadow-lg);
  animation: cookieIn .45s var(--ap-ease);
}
.cookie-banner[hidden] { display: none; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cookie-banner-close { position: absolute; top: 1rem; right: 1rem; font-size: .8rem; }
.cookie-banner-title { font-family: var(--ap-serif); font-size: 1.3rem; color: var(--ap-night); margin: 0 2rem .6rem 0; }
.cookie-banner-text { font-size: .88rem; line-height: 1.6; color: var(--ap-muted); margin-bottom: 1rem; }
.cookie-banner-text a, .cookie-modal a { color: var(--ap-gold-dark); font-weight: 600; }
.cookie-banner-actions, .cookie-modal .modal-footer { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner-actions .btn, .cookie-modal .modal-footer .btn { flex: 1 1 auto; border-radius: 999px; font-size: .88rem; padding: .55rem 1rem; }
.cookie-modal { border-radius: var(--ap-radius); border: 0; }
.cookie-modal .modal-title { font-family: var(--ap-serif); font-size: 1.4rem; color: var(--ap-night); }
.cookie-modal .modal-footer { margin: 0; }
.cookie-modal .modal-footer > * { margin: 0; }
.cookie-cat { padding: 1rem 0; border-top: 1px solid var(--ap-line); }
.cookie-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .35rem; }
.cookie-cat-head label { font-weight: 600; color: var(--ap-night); }
.cookie-cat p { font-size: .85rem; color: var(--ap-muted); margin: 0; }
.cookie-cat .form-check-input { width: 2.6em; height: 1.4em; cursor: pointer; }
.cookie-cat .form-check-input:checked { background-color: var(--ap-gold-dark); border-color: var(--ap-gold-dark); }
.cookie-cat .form-check-input:disabled { opacity: .6; }
@media (max-width: 575.98px) {
  .cookie-banner { left: 16px; bottom: 16px; padding: 1.2rem; }
}
.cookie-policy h2 { font-family: var(--ap-serif); font-size: 1.6rem; color: var(--ap-night); margin: 2.4rem 0 .9rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.cookie-policy h3 { font-family: var(--ap-serif); font-size: 1.2rem; color: var(--ap-night); margin: 1.6rem 0 .6rem; }
.cookie-policy a:not(.btn) { color: var(--ap-gold-dark); font-weight: 600; }
.cookie-table { font-size: .9rem; }
.cookie-table th { color: var(--ap-night); font-weight: 600; background: var(--ap-sand); }
.cookie-table code { color: var(--ap-night); font-size: .95em; white-space: nowrap; }
.cookie-badge { font-family: var(--ap-sans); font-size: .68rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: var(--ap-sand); color: var(--ap-gold-dark); }.pay-badges span {
  font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  border: 1px solid rgba(255,255,255,.18); border-radius: 6px;
  padding: 4px 8px; color: rgba(255,255,255,.75);
}

/* =========================================================
   Pagine interne
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--grain), radial-gradient(900px 420px at 85% 0%, rgba(197,160,89,.16), transparent 60%), var(--ap-paper);
  margin-top: -28px;
  padding: 100px 0 80px;
}
.page-hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 50px;
  background: #fff; clip-path: ellipse(75% 100% at 50% 100%);
}
.page-hero h1 { color: var(--ap-night); font-size: clamp(2.8rem, 5.5vw, 4.6rem); line-height: 1; font-weight: 700; }
.page-hero h1 em { font-weight: 400; color: var(--ap-gold-dark); }
.page-hero .lead { color: var(--ap-muted); font-size: 1.15rem; max-width: 36rem; }
.page-hero-sketch { width: 100%; max-width: 380px; mix-blend-mode: multiply; transform: rotate(2deg); }

.ap-breadcrumb { font-size: .8rem; margin-bottom: 1.5rem; }
.ap-breadcrumb a { color: var(--ap-muted); text-decoration: none; }
.ap-breadcrumb a:hover { color: var(--ap-gold-dark); }
.ap-breadcrumb .active { color: var(--ap-night); font-weight: 600; }
.ap-breadcrumb .breadcrumb-item + .breadcrumb-item::before { content: '\F285'; font-family: 'bootstrap-icons'; font-size: .6rem; vertical-align: middle; color: var(--ap-gold); }

.intro-statement {
  font-family: var(--ap-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.25; color: var(--ap-night); margin: 0;
}
.intro-statement em { color: var(--ap-gold-dark); }

.stat {
  text-align: center; padding: 28px 16px;
  border-radius: var(--ap-radius);
  border: 1px solid var(--ap-line);
  background: linear-gradient(180deg, #fff, var(--ap-paper));
}
.stat .num { display: block; font-family: var(--ap-serif); font-weight: 700; font-size: 3.2rem; line-height: 1; color: var(--ap-night); }
.stat .lbl { display: block; margin-top: 8px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ap-gold-dark); font-weight: 700; }

.value-card {
  height: 100%; padding: 28px 24px;
  border-radius: var(--ap-radius);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.9);
  transition: .35s var(--ap-ease);
}
.value-card .ico {
  width: 56px; height: 56px; border-radius: 16px; margin-bottom: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ap-night); color: var(--ap-gold); font-size: 1.4rem;
}
.value-card h3 { font-size: 1.2rem; color: var(--ap-night); margin-bottom: 8px; }
.value-card p { font-size: .92rem; color: var(--ap-muted); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--ap-shadow); background: #fff; }

.partner {
  display: flex; gap: 14px; align-items: flex-start; height: 100%;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  transition: .3s var(--ap-ease);
}
.partner i { color: var(--ap-gold); font-size: 1.2rem; margin-top: 2px; }
.partner strong { display: block; color: #fff; font-weight: 600; font-size: .95rem; }
.partner small { display: block; color: rgba(255,255,255,.6); font-size: .8rem; margin-top: 4px; line-height: 1.45; }
.partner:hover { border-color: rgba(197,160,89,.5); background: rgba(255,255,255,.08); }
.patrocinio {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 40px;
  border: 1px solid rgba(197,160,89,.4); color: var(--ap-gold-light);
  font-size: .85rem; background: rgba(197,160,89,.08);
}

.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.store-link {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--ap-line); background: #fff;
  color: var(--ap-night); text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: .25s var(--ap-ease);
}
.store-link i { color: var(--ap-sand-2); font-size: .8rem; transition: .25s; }
.store-link:hover { border-color: var(--ap-gold); color: var(--ap-gold-dark); transform: translateY(-2px); box-shadow: var(--ap-shadow-sm); }
.store-link:hover i { color: var(--ap-gold-dark); }

.contact-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  height: 100%; padding: 30px 20px; border-radius: var(--ap-radius);
  border: 1px solid var(--ap-line); background: var(--ap-paper);
  text-decoration: none; color: var(--ap-night);
  transition: .3s var(--ap-ease);
}
.contact-card .ico {
  width: 54px; height: 54px; border-radius: 50%; margin-bottom: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--ap-sand-2); color: var(--ap-gold-dark); font-size: 1.3rem;
  transition: .3s var(--ap-ease);
}
.contact-card .per { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ap-muted); font-weight: 600; }
.contact-card strong { font-size: .98rem; word-break: break-word; }
.contact-card:hover { background: var(--ap-night); color: #fff; transform: translateY(-5px); box-shadow: var(--ap-shadow); }
.contact-card:hover .ico { background: var(--ap-gold); color: var(--ap-night); border-color: var(--ap-gold); }
.contact-card:hover .per { color: var(--ap-gold-light); }

/* ---------- Proposte editoriali ---------- */
.page-hero-compact { padding: 90px 0 70px; }
.page-hero-compact h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.req { color: #b23b3b; font-weight: 700; }

.no-fee {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 20px 14px 14px; border-radius: 16px;
  background: #fff; border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow-sm);
}
.no-fee .ico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ap-gold-light), var(--ap-gold)); color: var(--ap-night); font-size: 1.3rem;
}
.no-fee strong { display: block; color: var(--ap-night); }
.no-fee span { font-size: .85rem; color: var(--ap-muted); }

.service-item {
  position: relative; display: flex; gap: 16px; align-items: flex-start; height: 100%;
  padding: 22px 22px 22px 20px; border-radius: 16px;
  border: 1px solid var(--ap-line); background: #fff;
  transition: .3s var(--ap-ease);
}
.service-item .n { position: absolute; top: 12px; right: 16px; font-family: var(--ap-serif); font-size: .85rem; color: var(--ap-sand-2); font-weight: 700; }
.service-item .ico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ap-sand); color: var(--ap-gold-dark); font-size: 1.2rem; transition: .3s var(--ap-ease);
}
.service-item p { color: var(--ap-ink); font-size: .95rem; padding-right: 18px; }
.service-item:hover { border-color: var(--ap-gold); box-shadow: var(--ap-shadow-sm); transform: translateY(-3px); }
.service-item:hover .ico { background: var(--ap-night); color: var(--ap-gold); }

.limit-card {
  display: flex; gap: 16px; align-items: center;
  padding: 20px 22px; border-radius: 16px;
  background: var(--ap-night); color: #fff;
}
.limit-card i { font-size: 1.8rem; color: var(--ap-gold); }
.limit-card strong { display: block; font-family: var(--ap-serif); font-size: 1.3rem; }
.limit-card span { font-size: .85rem; opacity: .75; }

.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.req-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.8); border: 1px solid rgba(255,255,255,.9);
}
.req-list i { color: var(--ap-gold-dark); font-size: 1.15rem; margin-top: 1px; }
.req-list strong { color: var(--ap-night); }

.send-option {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 32px 30px; border-radius: var(--ap-radius);
  border: 1px solid var(--ap-line); background: #fff;
}
.send-option.primary { border: 2px solid var(--ap-gold); box-shadow: var(--ap-shadow); background: linear-gradient(180deg, #fff, var(--ap-paper)); }
.send-option .ico {
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ap-night); color: var(--ap-gold); font-size: 1.6rem;
}
.send-option h3 { color: var(--ap-night); font-size: 1.5rem; }
.send-option p { color: var(--ap-muted); margin-bottom: 22px; }
.badge-rec {
  position: absolute; top: -13px; right: 24px;
  background: var(--ap-gold); color: var(--ap-night);
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 30px;
}

.info-tile {
  height: 100%; padding: 26px 24px; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
}
.info-tile > i { font-size: 1.6rem; color: var(--ap-gold); }
.info-tile h3 { color: #fff; font-size: 1.35rem; margin: 12px 0 8px; }
.info-tile p { color: rgba(255,255,255,.7); font-size: .92rem; margin: 0; }
.info-tile a { color: var(--ap-gold-light); }
.info-tile a:hover { color: #fff; }

/* Modulo */
.form-step {
  border: 1px solid var(--ap-line); border-radius: var(--ap-radius);
  padding: 26px 26px 28px; margin-bottom: 22px; background: #fff;
  box-shadow: var(--ap-shadow-sm);
}
.form-step legend {
  float: none; width: auto; display: flex; align-items: center; gap: 12px;
  font-family: var(--ap-serif); font-size: 1.35rem; color: var(--ap-night);
  margin-bottom: 18px; padding: 0;
}
.form-step legend .num {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ap-night); color: var(--ap-gold); font-size: .95rem; font-weight: 700;
}
.pe-form .form-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ap-muted); }
.pe-form .form-label .hint { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 4px; }
.pe-form .form-control { border-color: var(--ap-line); background: var(--ap-paper); padding: .7rem .9rem; }
.pe-form .form-control:focus { background: #fff; border-color: var(--ap-gold); box-shadow: 0 0 0 4px rgba(197,160,89,.15); }
.pe-form .form-control.is-invalid { border-color: #b23b3b; background-image: none; }
.pe-form .invalid-feedback, .field-error { color: #b23b3b; font-size: .82rem; font-weight: 600; margin-top: 6px; }
.field-error { display: block; }

.tile-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile-group .tile {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--ap-line); background: var(--ap-paper);
  font-size: .92rem; color: var(--ap-night); transition: .2s;
  user-select: none;
}
.tile-group .tile i { color: var(--ap-gold-dark); }
.tile-group .tile:hover { border-color: var(--ap-gold); background: #fff; }
.btn-check:checked + .tile { background: var(--ap-night); border-color: var(--ap-night); color: #fff; }
.btn-check:checked + .tile i { color: var(--ap-gold); }
.btn-check:focus-visible + .tile { box-shadow: 0 0 0 4px rgba(197,160,89,.3); }
.tile-group.is-invalid .tile { border-color: rgba(178,59,59,.5); }

.drop-zone {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: 26px 18px; border-radius: 16px; cursor: pointer; height: 100%;
  border: 2px dashed var(--ap-sand-2); background: var(--ap-paper);
  transition: .2s;
}
.drop-zone > i { font-size: 2rem; color: var(--ap-gold-dark); margin-bottom: 4px; }
.drop-zone strong { color: var(--ap-night); }
.drop-zone .meta { font-size: .78rem; color: var(--ap-muted); }
.drop-zone .file-name {
  margin-top: 10px; padding: 6px 14px; border-radius: 30px; max-width: 100%;
  background: #fff; border: 1px solid var(--ap-line); font-size: .82rem; font-weight: 600; color: var(--ap-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.drop-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-zone:hover, .drop-zone.dragover { border-color: var(--ap-gold); background: #fff; }
.drop-zone.has-file { border-style: solid; border-color: var(--ap-gold); background: #fff; }
.drop-zone.has-file .file-name { background: var(--ap-night); color: var(--ap-gold-light); border-color: var(--ap-night); }
.drop-zone.is-invalid { border-color: #b23b3b; }

.decl { border-left: 3px solid var(--ap-gold); background: var(--ap-paper); border-radius: 0 14px 14px 0; padding: 18px 20px; }
.decl + .decl { margin-top: 14px; }
.decl h3 { font-size: 1.05rem; color: var(--ap-night); margin-bottom: 8px; }
.decl p { font-size: .88rem; color: var(--ap-muted); line-height: 1.65; }
.decl .form-check-input { width: 1.2em; height: 1.2em; border-color: var(--ap-gold-dark); }
.decl .form-check-input:checked { background-color: var(--ap-night); border-color: var(--ap-night); }
.decl .form-check-label { font-weight: 600; color: var(--ap-night); padding-left: 4px; }
.decl.is-invalid { border-left-color: #b23b3b; }

.form-submit { text-align: center; padding: 10px 0 0; display: flex; flex-direction: column; align-items: center; }
.form-alert {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 20px; border-radius: 14px;
  background: #fbeeee; border: 1px solid #efc9c9; color: #7d2626;
}
.form-alert > i { font-size: 1.3rem; }
.form-alert:focus { outline: 3px solid rgba(178,59,59,.25); }

.form-aside {
  position: sticky; top: 100px;
  padding: 26px; border-radius: var(--ap-radius);
  background: var(--grain), var(--ap-sand);
}
.form-aside h2 { font-size: 1.25rem; color: var(--ap-night); margin-bottom: 14px; }
.form-aside ul { list-style: none; padding: 0; margin: 0 0 18px; }
/* testo normale (non flex): così parole e grassetti restano sulla stessa riga; l'icona sta a sinistra */
.form-aside li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px dashed var(--ap-sand-2); font-size: .92rem; line-height: 1.5; }
.form-aside li i { position: absolute; left: 0; top: 9px; color: var(--ap-gold-dark); }
.aside-note {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 12px; margin-bottom: 16px;
  background: var(--ap-night); color: #fff; font-size: .88rem;
}
.aside-note i { color: var(--ap-gold); font-size: 1.2rem; }

.success-card { max-width: 720px; margin: 0 auto; text-align: center; }
.success-card .ico {
  width: 84px; height: 84px; border-radius: 50%; margin-bottom: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ap-night); color: var(--ap-gold); font-size: 2.6rem;
  box-shadow: 0 0 0 10px rgba(197,160,89,.15);
}
.success-card .lead { max-width: 36rem; }
.success-card .error-ico { background: var(--ap-sand); color: var(--ap-gold-dark); box-shadow: 0 0 0 10px rgba(197,160,89,.1); }

@media (max-width: 575.98px) {
  .form-step { padding: 20px 16px 22px; }
  .tile-group { grid-template-columns: repeat(2, 1fr); }
  .no-fee { align-items: flex-start; }
}

/* ---------- Catalogo ---------- */
.catalog-hero { padding-bottom: 60px; }
.catalog-hero .hero-search { max-width: 560px; }
.catalog-toolbar { margin: 8px 0 28px; }
.cat-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px;
  scrollbar-width: thin; scrollbar-color: var(--ap-sand-2) transparent;
}
.cat-chips .chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 40px;
  border: 1px solid var(--ap-line); background: #fff;
  color: var(--ap-night); text-decoration: none; font-size: .9rem; font-weight: 500;
  transition: .2s;
}
.cat-chips .chip i { color: var(--ap-gold-dark); }
.cat-chips .chip span {
  font-size: .72rem; font-weight: 700; min-width: 24px; text-align: center;
  padding: 2px 7px; border-radius: 20px; background: var(--ap-sand); color: var(--ap-muted);
}
.cat-chips .chip:hover { border-color: var(--ap-gold); }
.cat-chips .chip.active { background: var(--ap-night); border-color: var(--ap-night); color: #fff; }
.cat-chips .chip.active i { color: var(--ap-gold); }
.cat-chips .chip.active span { background: var(--ap-gold); color: var(--ap-night); }
.cat-chips .chip.empty { opacity: .5; }
.results-count { font-size: .95rem; color: var(--ap-ink); }
.clear-search { margin-left: 10px; font-size: .85rem; color: var(--ap-gold-dark); text-decoration: none; }
.clear-search:hover { color: #b23b3b; }
.sort-form .form-select { border-radius: 30px; border-color: var(--ap-line); min-width: 190px; }
.sort-form .form-select:focus { border-color: var(--ap-gold); box-shadow: 0 0 0 4px rgba(197,160,89,.15); }

.catalog-grid .book-card { height: 100%; }
/* 5 copertine per riga: pulsante rapido più compatto, sempre su una riga */
@media (min-width: 992px) and (max-width: 1399.98px) {
  .catalog-grid .quick-add { left: 8px; right: 8px; bottom: 8px; padding: 8px 6px; font-size: .74rem; white-space: nowrap; }
}

.empty-state {
  text-align: center; padding: 70px 20px; border-radius: var(--ap-radius);
  background: var(--grain), var(--ap-paper); border: 1px dashed var(--ap-sand-2);
}
.empty-state > i { font-size: 3rem; color: var(--ap-gold-dark); }
.empty-state h2 { font-size: 1.6rem; color: var(--ap-night); margin: 14px 0 8px; }
.empty-state p { color: var(--ap-muted); margin-bottom: 22px; }

.ap-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 50px; }
.ap-pagination .pg-num, .ap-pagination .pg-arrow {
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ap-line); background: #fff; color: var(--ap-night);
  text-decoration: none; font-weight: 600; transition: .2s;
}
.ap-pagination a:hover { border-color: var(--ap-gold); color: var(--ap-gold-dark); }
.ap-pagination .active { background: var(--ap-night); border-color: var(--ap-night); color: var(--ap-gold-light); }
.ap-pagination .disabled { opacity: .35; }
.ap-pagination .pg-dots { color: var(--ap-muted); padding: 0 4px; }

/* ---------- Scheda libro ---------- */
.book-hero {
  position: relative;
  background: var(--grain), radial-gradient(900px 420px at 85% 0%, rgba(197,160,89,.14), transparent 60%), var(--ap-paper);
  margin-top: -28px; padding: 90px 0 60px;
  border-bottom: 1px solid var(--ap-line);
}
.book-hero .breadcrumb-item.active { max-width: 40ch; }
.book-detail-cover {
  position: relative; display: block; width: 100%; max-width: 340px; margin: 0 auto;
  padding: 0; border: 0; background: var(--ap-sand); cursor: zoom-in;
  aspect-ratio: 2/3; border-radius: 4px 10px 10px 4px; overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 30px 60px rgba(22,33,43,.25);
  transform: perspective(1200px) rotateY(-8deg);
  transition: transform .6s var(--ap-ease);
}
.book-detail-cover:hover { transform: perspective(1200px) rotateY(0); }
.book-detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.book-detail-cover::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 16px; z-index: 1;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.2) 55%, rgba(0,0,0,.04));
}
.book-detail-cover .zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); color: var(--ap-night);
  opacity: 0; transition: .3s;
}
.book-detail-cover:hover .zoom, .book-detail-cover:focus-visible .zoom { opacity: 1; }
.share-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; }
.share-row span { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted); margin-right: 4px; }
.share-row a, .share-row button {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ap-line); background: #fff; color: var(--ap-night);
  text-decoration: none; transition: .2s;
}
.share-row a:hover, .share-row button:hover { border-color: var(--ap-gold); color: var(--ap-gold-dark); transform: translateY(-2px); }

.tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 30px;
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--ap-night); color: #fff; text-decoration: none;
}
a.tag-pill:hover { background: var(--ap-night-3); color: var(--ap-gold-light); }
.tag-pill.gold { background: var(--ap-gold); color: var(--ap-night); }
.tag-pill.ok { background: #e3f1e8; color: #1e7d4f; }
.tag-pill.muted { background: var(--ap-sand); color: var(--ap-muted); }
.book-detail-title { font-size: clamp(2rem, 3.8vw, 3rem); color: var(--ap-night); line-height: 1.1; margin-bottom: 10px; }
.book-detail-authors { font-family: var(--ap-serif); font-style: italic; font-size: 1.2rem; color: var(--ap-muted); margin-bottom: 14px; }
.book-detail-authors a { color: var(--ap-gold-dark); text-decoration: none; border-bottom: 1px solid rgba(156,122,54,.35); }
.book-detail-authors a:hover { color: var(--ap-night); }
.rating-summary { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ap-muted); text-decoration: none; margin-bottom: 14px; }
.stars { color: var(--ap-gold); letter-spacing: 1px; }
.book-abstract { color: var(--ap-ink); font-size: 1.02rem; line-height: 1.7; margin-bottom: 20px; }
.book-abstract p:last-child { margin-bottom: 0; }

.book-specs {
  list-style: none; margin: 0 0 4px; padding: 18px 0;
  display: flex; flex-wrap: wrap; gap: 14px 30px;
  border-top: 1px solid var(--ap-line); border-bottom: 1px solid var(--ap-line);
}
.book-specs li { display: flex; align-items: center; gap: 8px; font-size: .97rem; color: var(--ap-ink); }
.book-specs li i { font-size: 1.35rem; color: var(--ap-gold-dark); line-height: 1; }
.book-specs li strong { color: var(--ap-night); font-weight: 700; }
.book-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; padding-top: 14px; }
.book-actions a, .book-actions button {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; padding: 0;
  font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--ap-gold-dark);
}
.book-actions a:hover, .book-actions button:hover { text-decoration: underline; }
.book-actions .wa { color: #1f9d55; }
.book-actions .fb { color: #1877f2; }
.book-actions button { color: var(--ap-muted); }

.book-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.book-facts > div { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--ap-line); }
.book-facts dt { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ap-muted); display: flex; align-items: center; gap: 6px; }
.book-facts dt i { color: var(--ap-gold-dark); font-size: .9rem; }
.book-facts dd { margin: 4px 0 0; font-weight: 600; color: var(--ap-night); font-size: .95rem; word-break: break-word; }

.buy-box {
  position: sticky; top: 100px;
  padding: 24px; border-radius: var(--ap-radius);
  background: #fff; border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow);
}
.price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.price-block .now { font-family: var(--ap-serif); font-size: 2.3rem; font-weight: 700; color: var(--ap-night); line-height: 1; }
.price-block .was { color: #a39d94; text-decoration: line-through; }
.price-block .off { font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 20px; background: var(--ap-night); color: var(--ap-gold-light); }
.qty-stepper { display: flex; align-items: stretch; border: 1px solid var(--ap-line); border-radius: 30px; overflow: hidden; width: 140px; }
.qty-stepper button { width: 42px; border: 0; background: var(--ap-paper); color: var(--ap-night); }
.qty-stepper button:hover { background: var(--ap-sand); }
.qty-stepper input { flex: 1; min-width: 0; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-perks { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px dashed var(--ap-line); font-size: .85rem; color: var(--ap-muted); }
.buy-perks li { display: flex; gap: 8px; padding: 3px 0; }
.buy-perks i { color: var(--ap-gold-dark); }
.avail-note { display: flex; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--ap-paper); font-size: .85rem; color: var(--ap-muted); }

.detail-block { margin-bottom: 44px; }
.detail-title { font-size: 1.6rem; color: var(--ap-night); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--ap-line); position: relative; }
.detail-title::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--ap-gold); }
.rich-text { font-size: 1.02rem; line-height: 1.8; color: var(--ap-ink); }
.rich-text p { margin-bottom: 1em; }
.rich-text a { color: var(--ap-gold-dark); }
.preview-frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--ap-line); background: var(--ap-paper); box-shadow: var(--ap-shadow-sm); }
.preview-frame iframe { border: 0; }
.external-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  padding: 1.5rem; text-align: center; color: var(--ap-muted);
}
.external-placeholder > .bi { font-size: 2.4rem; color: var(--ap-gold); }
.external-placeholder strong { color: var(--ap-night); }

.author-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 4px solid #fff; box-shadow: var(--ap-shadow-sm); }
.placeholder-photo { display: inline-flex; align-items: center; justify-content: center; background: var(--ap-night); color: var(--ap-gold); font-family: var(--ap-serif); font-size: 2rem; }

.reviews { display: grid; gap: 14px; margin-bottom: 20px; }
.review { margin: 0; padding: 18px 20px; border-radius: 14px; background: var(--ap-paper); border: 1px solid var(--ap-line); }
.review figcaption { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ap-night); color: var(--ap-gold); font-weight: 700; font-size: .9rem;
}
.review blockquote { margin-top: 10px; color: var(--ap-ink); line-height: 1.65; white-space: pre-line; }
.review-form summary { list-style: none; display: inline-block; }
.review-form summary::-webkit-details-marker { display: none; }
.review-form[open] summary { margin-bottom: 4px; }
.review-form form { padding: 22px; border-radius: 16px; border: 1px solid var(--ap-line); background: #fff; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 1.6rem; color: var(--ap-sand-2); cursor: pointer; transition: .15s; padding: 0 2px; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: var(--ap-gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--ap-gold); border-radius: 4px; }
.form-ok { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 14px; background: #e3f1e8; color: #1e5c3c; font-weight: 600; }

.related { position: sticky; top: 100px; padding: 22px; border-radius: var(--ap-radius); background: var(--grain), var(--ap-sand); }
.related-item { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ap-night); transition: .2s; }
.related-item + .related-item { margin-top: 4px; }
.related-item img { width: 56px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 0 6px 14px rgba(22,33,43,.2); flex-shrink: 0; }
.related-item strong { display: block; font-family: var(--ap-serif); font-size: .98rem; line-height: 1.25; }
.related-item small { display: block; color: var(--ap-muted); }
.related-item .price { font-weight: 700; font-size: .85rem; color: var(--ap-gold-dark); }
.related-item:hover { background: rgba(255,255,255,.7); color: var(--ap-night); }

.cover-modal { max-width: min(560px, 92vw); }
.cover-modal img { width: 100%; border-radius: 6px; box-shadow: var(--ap-shadow-lg); cursor: zoom-out; }

@media (max-width: 991.98px) {
  .buy-box, .related { position: static; }
  .book-detail-cover { max-width: 260px; }
}

/* ---------- Collane ---------- */
.collana-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--ap-radius); background: #fff; border: 1px solid var(--ap-line);
  text-decoration: none; color: var(--ap-night);
  transition: .3s var(--ap-ease);
}
.collana-art {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; background: var(--grain), var(--ap-paper); overflow: hidden;
}
.collana-art img {
  position: relative; z-index: 1; width: 82%; height: 82%; object-fit: contain;
  mix-blend-mode: multiply; transition: transform .6s var(--ap-ease);
}
/* iniziale grande: si vede solo se manca il disegno */
.collana-art .letter {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  font-family: var(--ap-serif); font-weight: 700; font-size: 5rem; color: rgba(156,122,54,.35);
}
.collana-art.no-img .letter { display: flex; }
.collana-card .body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; border-top: 1px solid var(--ap-line); }
.collana-card .name { font-family: var(--ap-serif); font-size: 1.08rem; line-height: 1.25; }
.collana-card .meta { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-gold-dark); }
.collana-card:hover { border-color: var(--ap-gold); box-shadow: var(--ap-shadow); transform: translateY(-5px); color: var(--ap-night); }
.collana-card:hover img { transform: scale(1.06) rotate(-1.5deg); }

.collana-hero .hero-art {
  width: 100%; max-width: 260px; margin: 0 auto; border-radius: 50%;
  background: rgba(255,255,255,.6); box-shadow: 0 0 0 10px rgba(197,160,89,.08);
}
.collana-slide { flex: 0 0 190px; }
.collana-slide .collana-card .name { font-size: .95rem; }
@media (max-width: 575.98px) {
  .collana-card .body { padding: 12px 12px 14px; }
  .collana-card .name { font-size: .95rem; }
  .collana-hero .hero-art { max-width: 180px; }
}

/* ---------- Carrello ---------- */
.toast-cart.toast-error .bi-check-circle-fill::before { content: '\F33A'; color: #ff8a8a; } /* icona di avviso */
.toast-cart.toast-error .bar { background: #b23b3b; }
.cart-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cart-line {
  display: grid; grid-template-columns: 84px 1fr auto auto; align-items: center; gap: 20px;
  padding: 16px 20px 16px 16px; border-radius: var(--ap-radius);
  background: #fff; border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow-sm);
  scroll-margin-top: 120px;
}
.cart-line:target { border-color: var(--ap-gold); }
.cart-cover img { width: 84px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 6px 6px 2px; box-shadow: 0 8px 18px rgba(22,33,43,.18); display: block; }
.cart-title { font-family: var(--ap-serif); font-size: 1.12rem; line-height: 1.25; color: var(--ap-night); text-decoration: none; }
.cart-title:hover { color: var(--ap-gold-dark); }
.cart-unit { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.cart-unit .now { font-weight: 700; color: var(--ap-night); }
.cart-unit .was { color: #a39d94; text-decoration: line-through; font-size: .88rem; }
.cart-unit .off { font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: 20px; background: var(--ap-night); color: var(--ap-gold-light); }
.cart-qty .qty-stepper { width: auto; align-items: center; }
.cart-qty form { display: contents; }
.cart-qty button { height: 38px; }
.cart-qty button:disabled { opacity: .35; cursor: default; }
.cart-qty .qty-value { min-width: 34px; text-align: center; font-weight: 700; }
.cart-total { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 92px; }
.cart-total strong { font-size: 1.1rem; color: var(--ap-night); }
.cart-remove {
  display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0;
  font-size: .8rem; color: var(--ap-muted);
}
.cart-remove:hover { color: #b23b3b; }
.cart-summary dl { margin: 0 0 14px; }
.cart-summary dl > div { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--ap-line); }
.cart-summary dt { font-weight: 500; color: var(--ap-muted); }
.cart-summary dd { margin: 0; font-weight: 600; color: var(--ap-night); }
.cart-summary .saving dd { color: #1e7d4f; }
.cart-summary .total { border-bottom: 0; padding-top: 14px; }
.cart-summary .total dt { color: var(--ap-night); font-weight: 700; }
.cart-summary .total dd { font-family: var(--ap-serif); font-size: 1.8rem; font-weight: 700; }
@media (max-width: 767.98px) {
  .cart-line { grid-template-columns: 70px 1fr; gap: 12px 16px; }
  .cart-cover img { width: 70px; }
  .cart-cover { grid-row: span 2; }
  .cart-qty, .cart-total { grid-column: 2; }
  .cart-total { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Contatti ---------- */
.contact-label { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ap-gold-dark); margin-bottom: 10px; }
.company-card {
  padding: 24px 26px; border-radius: var(--ap-radius);
  background: var(--grain), var(--ap-paper); border: 1px solid var(--ap-line);
}
.company-card h3 { font-size: 1.35rem; color: var(--ap-night); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--ap-line); }
.company-card li { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; color: var(--ap-ink); }
.company-card li > i { color: var(--ap-gold-dark); font-size: 1.1rem; margin-top: 1px; }
.company-card a { color: var(--ap-night); text-decoration: none; border-bottom: 1px solid rgba(156,122,54,.3); }
.company-card a:hover { color: var(--ap-gold-dark); }
.company-card.alt { background: #fff; color: var(--ap-night); transition: .3s var(--ap-ease); }
.company-card.alt:hover { border-color: var(--ap-gold); box-shadow: var(--ap-shadow-sm); }
.company-card.alt .ico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ap-night); color: var(--ap-gold); font-size: 1.2rem;
}
.social-big { display: flex; gap: 10px; }
.social-big a {
  width: 50px; height: 50px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; text-decoration: none; transition: .25s var(--ap-ease);
}
.social-big a:hover { transform: translateY(-3px); box-shadow: var(--ap-shadow-sm); color: #fff; }
.social-big .fb { background: #1877f2; }
.social-big .ig { background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af); }
.social-big .li { background: #0a66c2; }
.social-big .wa { background: #25d366; }
.contact-form legend .num i { font-size: .95rem; }
.contact-form .form-select { border-color: var(--ap-line); background-color: var(--ap-paper); padding: .7rem .9rem; }
.contact-form .form-select:focus { border-color: var(--ap-gold); box-shadow: 0 0 0 4px rgba(197,160,89,.15); }
.contact-form .form-select.is-invalid { border-color: #b23b3b; }
.contact-form .form-check-label a { color: var(--ap-gold-dark); }

/* ---------- Autori ---------- */
.alpha-nav {
  position: sticky; top: 76px; z-index: 5;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
  padding: 10px; margin-top: 8px;
  border-radius: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow-sm);
}
.alpha-nav a, .alpha-nav span {
  min-width: 34px; height: 34px; padding: 0 6px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ap-serif); font-weight: 700; font-size: .95rem; text-decoration: none;
}
.alpha-nav a { color: var(--ap-night); transition: .2s; }
.alpha-nav a:hover, .alpha-nav a.active { background: var(--ap-night); color: var(--ap-gold-light); }
.alpha-nav span { color: var(--ap-sand-2); }
.alpha-nav a.dimmed { color: var(--ap-sand-2); pointer-events: none; }

.author-group { scroll-margin-top: 150px; margin-bottom: 34px; }
.author-letter {
  font-size: 2.2rem; color: var(--ap-gold-dark); margin-bottom: 14px;
  display: flex; align-items: center; gap: 16px;
}
.author-letter::after { content: ''; flex: 1; height: 1px; background: var(--ap-line); }

.author-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; height: 100%;
  padding: 22px 12px 18px; border-radius: var(--ap-radius);
  background: #fff; border: 1px solid var(--ap-line);
  text-decoration: none; color: var(--ap-night); transition: .3s var(--ap-ease);
}
.author-card .name { font-size: .95rem; line-height: 1.3; }
.author-card .name strong { font-family: var(--ap-serif); font-size: 1.05rem; }
.author-card .meta { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ap-gold-dark); }
.author-card:hover { border-color: var(--ap-gold); box-shadow: var(--ap-shadow); transform: translateY(-5px); color: var(--ap-night); }

.author-avatar {
  position: relative; width: 96px; height: 96px; border-radius: 50%; flex-shrink: 0; margin-bottom: 6px;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--ap-night); border: 4px solid #fff; box-shadow: var(--ap-shadow-sm);
}
.author-avatar img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.author-avatar .initials {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--ap-serif); font-weight: 700; font-size: 1.9rem; color: var(--ap-gold);
}
.author-avatar.big { width: 220px; height: 220px; border-width: 6px; box-shadow: var(--ap-shadow-lg); }
.author-avatar.big .initials { font-size: 4.5rem; }
.author-hero .book-detail-title { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }

@media (max-width: 767.98px) {
  .alpha-nav { top: 64px; }
  .alpha-nav a, .alpha-nav span { min-width: 28px; height: 30px; font-size: .85rem; }
  .author-avatar { width: 76px; height: 76px; }
  .author-avatar.big { width: 170px; height: 170px; }
}

/* ---------- News & eventi ---------- */
.event-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden;
  border-radius: var(--ap-radius); background: #fff; border: 1px solid var(--ap-line);
  box-shadow: var(--ap-shadow); text-decoration: none; color: var(--ap-ink);
  transition: .35s var(--ap-ease);
}
.event-feature .img-wrap { background: var(--ap-sand); min-height: 320px; overflow: hidden; }
.event-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ap-ease); }
.event-feature .body { display: flex; flex-direction: column; padding: 34px 36px; }
.event-feature .title { font-family: var(--ap-serif); font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.15; color: var(--ap-night); margin-bottom: 12px; }
.event-feature .abstract { color: var(--ap-muted); line-height: 1.7; margin-bottom: 20px; }
.event-feature:hover { transform: translateY(-4px); box-shadow: var(--ap-shadow-lg); color: var(--ap-ink); }
.event-feature:hover img { transform: scale(1.04); }

.event-card {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  border-radius: var(--ap-radius); background: #fff; border: 1px solid var(--ap-line);
  box-shadow: var(--ap-shadow-sm); text-decoration: none; color: var(--ap-ink);
  transition: .3s var(--ap-ease);
}
.event-card .img-wrap { position: relative; height: 210px; background: var(--ap-sand); overflow: hidden; }
.event-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ap-ease); }
.event-card .upcoming { position: absolute; top: 12px; left: 12px; }
.event-card .body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.event-card .title { font-family: var(--ap-serif); font-size: 1.25rem; line-height: 1.25; color: var(--ap-night); margin-bottom: 8px; }
.event-card .abstract { font-size: .92rem; color: var(--ap-muted); margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.event-card:hover { transform: translateY(-5px); box-shadow: var(--ap-shadow); border-color: var(--ap-gold); color: var(--ap-ink); }
.event-card:hover img { transform: scale(1.05); }

.event-hero { padding-bottom: 50px; }
.event-image {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  border-radius: var(--ap-radius); overflow: hidden; background: var(--ap-sand);
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 26px 55px rgba(22,33,43,.22);
}
.event-image img { width: 100%; height: auto; display: block; }
.event-image .zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.92); color: var(--ap-night); opacity: 0; transition: .3s;
}
.event-image:hover .zoom, .event-image:focus-visible .zoom { opacity: 1; }
.date-chip.big { font-size: .8rem; padding: 6px 12px; border-radius: 30px; background: #fff; border: 1px solid var(--ap-line); }
.event-lead { font-size: 1.1rem; line-height: 1.7; color: var(--ap-muted); margin-bottom: 18px; }
.event-text { max-width: 46rem; }
.event-text strong { color: var(--ap-night); }
.related-item .news-thumb { width: 72px; aspect-ratio: 4/3; border-radius: 8px; }
.event-modal { max-width: min(900px, 94vw); }

@media (max-width: 767.98px) {
  .event-feature { grid-template-columns: 1fr; }
  .event-feature .img-wrap { min-height: 220px; }
  .event-feature .body { padding: 24px 22px; }
}

/* Su telefono il gutter orizzontale di g-5 (3rem) supera il padding del container: lo riduciamo */
@media (max-width: 575.98px) {
  .g-5, .gx-5 { --bs-gutter-x: 1.5rem; }
}

@media (max-width: 991.98px) {
  .page-hero { padding: 80px 0 70px; }
  .page-hero-sketch { max-width: 280px; }
}

/* ---------- Toast & back-to-top ---------- */
.toast-cart { background: var(--ap-night); color: #fff; border: 0; border-radius: 14px; box-shadow: var(--ap-shadow-lg); overflow: hidden; }
.toast-cart .bar { height: 3px; background: var(--ap-gold); animation: toastbar 4.5s linear forwards; }
@keyframes toastbar { from { width: 100%; } to { width: 0; } }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 1040;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--ap-night); color: var(--ap-gold);
  box-shadow: var(--ap-shadow);
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: .3s var(--ap-ease);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--ap-gold); color: var(--ap-night); }

.toast-cover { aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; }

/* ---------- Utility ---------- */
.min-w-0 { min-width: 0; }
.book-title a { color: inherit; text-decoration: none; }
.book-title a:hover { color: var(--ap-gold-dark); }


/* ---------- Checkout ---------- */
.checkout-steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #a39d94; }
.checkout-steps li { display: inline-flex; align-items: center; gap: 7px; }
.checkout-steps li + li::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .5; margin-right: 8px; }
.checkout-steps li.done { color: var(--ap-gold-dark); }
.checkout-steps li.current { color: var(--ap-night); }
.test-mode { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px; background: #fff3cd; color: #7a5a00; border: 1px solid #f0d58a; font-size: .85rem; }
.form-hint { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; color: var(--ap-muted); }
.form-hint i { color: var(--ap-gold-dark); }
.pe-form .form-select { border-color: var(--ap-line); background-color: var(--ap-paper); padding-top: .7rem; padding-bottom: .7rem; }
.pe-form .form-select:focus { background-color: #fff; border-color: var(--ap-gold); box-shadow: 0 0 0 4px rgba(197,160,89,.15); }
.pe-form .form-select.is-invalid { border-color: #b23b3b; }
.pe-form .form-control:disabled { background: #f1eee8; }
.form-switch .form-check-input { width: 2.4em; height: 1.25em; }
.form-switch .form-check-input:checked { background-color: var(--ap-night); border-color: var(--ap-night); }
.billing-box { margin-top: 18px; padding: 18px; border-radius: 14px; background: var(--ap-paper); border: 1px dashed var(--ap-line); }
.ship-options { display: grid; gap: 10px; }
.ship-options.is-invalid .ship-option { border-color: #b23b3b; }
.ship-option { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin: 0; border: 1px solid var(--ap-line); border-radius: 14px; background: var(--ap-paper); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.ship-option > i { font-size: 1.35rem; color: var(--ap-gold-dark); }
.ship-option strong { display: block; color: var(--ap-night); font-weight: 600; }
.ship-option small { display: block; color: var(--ap-muted); font-size: .8rem; }
.ship-option .price { font-weight: 700; color: var(--ap-night); white-space: nowrap; }
.ship-option:hover { border-color: var(--ap-gold); }
.btn-check:checked + .ship-option { border-color: var(--ap-night); background: #fff; box-shadow: 0 0 0 3px rgba(22,33,43,.08); }
.btn-check:checked + .ship-option > i { color: var(--ap-night); }
.btn-check:focus-visible + .ship-option { outline: 3px solid rgba(197,160,89,.45); outline-offset: 2px; }
.voucher .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.voucher-msg { min-height: 1.2em; margin: 8px 0 0; font-size: .85rem; font-weight: 600; }
.voucher-msg.ok { color: #1e7d4f; }
.voucher-msg.ko { color: #b23b3b; }
.checkout-summary .checkout-items { list-style: none; padding: 0; margin: 0 0 14px; max-height: 320px; overflow-y: auto; }
.checkout-items li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ap-line); }
.checkout-items img { width: 44px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 4px 4px 2px; box-shadow: 0 4px 10px rgba(22,33,43,.15); }
.checkout-items .t { font-size: .9rem; line-height: 1.3; color: var(--ap-night); }
.checkout-items .t small { display: block; color: var(--ap-muted); font-size: .78rem; margin-top: 2px; }
.checkout-items .p { font-weight: 600; color: var(--ap-night); white-space: nowrap; }
.checkout-summary dl.loading dd { opacity: .45; }
.terms-text { font-size: .9rem; line-height: 1.7; color: #3d3a35; }
.terms-text h3, .terms-text h4 { font-family: var(--ap-serif); font-size: 1.05rem; color: var(--ap-night); margin-top: 1.4rem; }
.checkout-result { max-width: 680px; margin: 0 auto; text-align: center; padding: 44px 32px; border-radius: var(--ap-radius); background: #fff; border: 1px solid var(--ap-line); box-shadow: var(--ap-shadow); }
.checkout-result .ico { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; background: var(--ap-paper); color: var(--ap-gold-dark); }
.checkout-result.ok .ico { background: rgba(30,125,79,.1); color: #1e7d4f; }
.checkout-result.ko .ico { background: rgba(178,59,59,.1); color: #b23b3b; }
.checkout-result h2 { font-size: 1.8rem; color: var(--ap-night); }
.result-data { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 0 0 18px; }
.result-data > div { padding: 12px 22px; border-radius: 14px; background: var(--ap-paper); }
.result-data dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ap-muted); }
.result-data dd { margin: 0; font-family: var(--ap-serif); font-size: 1.5rem; font-weight: 700; color: var(--ap-night); }
@media (max-width: 575.98px) {
  .form-step { padding: 20px 16px 22px; }
  .checkout-result { padding: 32px 18px; }
  .checkout-steps li + li::before { width: 12px; }
}

/* ---------- Animazioni d'ingresso ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ap-ease), transform .8s var(--ap-ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .hero { padding-top: 90px; padding-bottom: 80px; }
  .hero-deco { font-size: 20rem; }
  .book-fan { height: 380px; margin-top: 10px; }
  .fan-book { width: 160px; } .fan-book.b2 { width: 180px; }
  .book-fan .ring { width: 300px; height: 300px; }
}
@media (max-width: 575.98px) {
  .perk { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .perk .ico { width: 40px; height: 40px; font-size: 1.1rem; }
  .book-fan { height: 320px; }
  .fan-book { width: 128px; } .fan-book.b2 { width: 146px; }
  .float-card { font-size: .78rem; padding: 9px 12px; }
  .float-card.fc2 { top: 0; }
  .float-card.fc1 { bottom: 10px; }
  .book-fan .ring { width: 250px; height: 250px; }
}
