/* ═══════════════════════════════════════════════════════════
   IL TUO CANE FELICE — Landing Page
   Palette calda, editoriale, toni terra e ambra
   ═══════════════════════════════════════════════════════════ */

:root {
  --terra:         #3D2B1F;
  --terra-media:   #5C3D2E;
  --terra-calda:   #8B5E3C;
  --ambra:         #C8952E;
  --ambra-chiara:  #E8B84B;
  --ambra-soft:    #F5D78E;
  --crema:         #FFF9F0;
  --crema-scura:   #F3EAD8;
  --sabbia:        #E8DCC8;
  --testo:         #2C1810;
  --testo-medio:   #5A4A3A;
  --testo-muted:   #8A7B6B;
  --bosco:         #4A7C59;
  --bosco-chiaro:  #6B9F7E;
  --bosco-bg:      #E8F2EB;
  --rosso-soft:    #C45B4A;
  --font-head:     'Lora', Georgia, 'Times New Roman', serif;
  --font-body:     'Inter', system-ui, -apple-system, sans-serif;
  --ombra:         0 6px 32px rgba(61,43,31,0.10);
  --ombra-forte:   0 12px 48px rgba(61,43,31,0.16);
  --ombra-card:    0 2px 16px rgba(61,43,31,0.08);
  --raggio:        16px;
  --raggio-grande: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--crema);
  color: var(--testo);
  margin: 0;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-overflow-scrolling: touch;
  font-size: 15px;
  line-height: 1.65;
}

::selection {
  background: var(--ambra-soft);
  color: var(--terra);
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
}

a { transition: color .2s ease; }


/* ─────────────────────────────────────────
   NAVBAR
   ───────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,249,240,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(61,43,31,0.08);
  padding: 11px 0;
}
.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img { height: 38px; border-radius: 8px; }
.nav-logo span {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--terra);
}
.nav-cta {
  background: var(--terra);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 9px 24px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .25s, transform .25s;
}
.nav-cta:hover {
  background: var(--terra-media);
  color: #fff;
  transform: translateY(-1px);
}


/* ─────────────────────────────────────────
   HERO
   ───────────────────────────────────────── */
.hero-section {
  background: linear-gradient(155deg, var(--terra) 0%, var(--terra-media) 45%, var(--terra-calda) 100%);
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M40 20a8 8 0 100-16 8 8 0 000 16zm20 20a8 8 0 100-16 8 8 0 000 16zM20 60a8 8 0 100-16 8 8 0 000 16zm40 0a8 8 0 100-16 8 8 0 000 16z' fill='%23FFFFFF' fill-opacity='.35'/%3E%3C/svg%3E");
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--crema), transparent);
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--ambra-chiara);
  border-radius: 50px;
  padding: 5px 16px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.hero-h1 em {
  font-style: italic;
  color: var(--ambra-chiara);
}
.hero-sub {
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(255,255,255,.7);
  font-weight: 400;
  font-style: italic;
  margin: 0 0 20px;
}
.hero-desc {
  font-size: clamp(.93rem, 1.6vw, 1.05rem);
  color: rgba(255,255,255,.78);
  line-height: 1.72;
  max-width: 500px;
  margin: 0 0 32px;
}
.btn-primario {
  background: linear-gradient(135deg, var(--ambra), var(--ambra-chiara));
  color: var(--terra);
  border: none;
  border-radius: 50px;
  padding: 15px 34px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 6px 28px rgba(200,149,46,0.4);
  transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.btn-primario:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 44px rgba(200,149,46,0.5);
  color: var(--terra);
}
.hero-fiducia {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.hero-fiducia span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.68);
  font-size: .83rem;
  font-weight: 500;
}
.hero-fiducia span i { color: var(--ambra-soft); font-size: .95rem; }

/* mockup libro */
.libro-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.libro-mockup {
  position: relative;
  display: inline-block;
  perspective: 800px;
}
.libro-img {
  width: 100%;
  max-width: 270px;
  border-radius: 6px;
  box-shadow: -10px 16px 50px rgba(0,0,0,.45), 3px 3px 0 rgba(255,255,255,.06);
  transform: rotateY(-5deg);
  transition: transform .5s ease;
}
.libro-mockup:hover .libro-img {
  transform: rotateY(0deg) scale(1.03);
}
.libro-glow {
  position: absolute;
  inset: -24px;
  background: radial-gradient(ellipse at center, rgba(200,149,46,.3) 0%, transparent 70%);
  z-index: -1;
  filter: blur(18px);
}
.prezzo-badge {
  position: absolute;
  top: -14px;
  right: -14px;
  background: linear-gradient(135deg, var(--ambra), var(--ambra-chiara));
  color: var(--terra);
  border-radius: 50%;
  width: 78px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(200,149,46,.45);
  line-height: 1;
  animation: respira 2.5s ease-in-out infinite;
}
@keyframes respira {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}
.prezzo-badge .importo { font-size: 1.25rem; }
.prezzo-badge .etichetta { font-size: .62rem; font-weight: 600; text-transform: uppercase; }


/* ─────────────────────────────────────────
   SEZIONE "PERCHÉ QUESTO LIBRO"
   ───────────────────────────────────────── */
.sez-perche {
  background: #fff;
  padding: 80px 0 72px;
}
.etichetta-sezione {
  display: inline-block;
  background: var(--crema-scura);
  color: var(--terra-calda);
  border-radius: 50px;
  padding: 5px 15px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.titolo-sezione {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--terra);
  margin-bottom: 12px;
}
.sotto-sezione {
  color: var(--testo-muted);
  font-size: .98rem;
  line-height: 1.7;
  max-width: 520px;
}
.card-problema {
  background: var(--crema);
  border: 1.5px solid var(--sabbia);
  border-radius: var(--raggio);
  padding: 26px 22px;
  height: 100%;
  transition: all .3s ease;
  position: relative;
}
.card-problema::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  background: linear-gradient(90deg, var(--ambra), var(--ambra-chiara));
  border-radius: 3px;
  opacity: 0;
  transition: opacity .3s;
}
.card-problema:hover {
  transform: translateY(-5px);
  box-shadow: var(--ombra);
  border-color: var(--ambra-soft);
}
.card-problema:hover::after { opacity: 1; }
.card-problema-icona {
  width: 50px;
  height: 50px;
  background: var(--crema-scura);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.card-problema h5 {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--testo);
}
.card-problema p {
  font-size: .86rem;
  color: var(--testo-muted);
  line-height: 1.6;
  margin: 0;
}


/* ─────────────────────────────────────────
   SEZIONE "COSA CONTIENE"
   ───────────────────────────────────────── */
.sez-contenuto {
  background: linear-gradient(180deg, var(--crema) 0%, #fff 100%);
  padding: 80px 0;
}
.num-capitolo {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  color: var(--ambra);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.card-capitolo {
  background: #fff;
  border-radius: var(--raggio);
  padding: 20px 22px;
  border: 1px solid rgba(61,43,31,.07);
  transition: all .3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.card-capitolo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--ambra);
  opacity: 0;
  transition: opacity .3s;
}
.card-capitolo:hover {
  border-color: var(--ambra-soft);
  box-shadow: var(--ombra-card);
  transform: translateY(-3px);
}
.card-capitolo:hover::before { opacity: 1; }
.titolo-capitolo {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--testo);
}


/* ─────────────────────────────────────────
   SEZIONE ANTEPRIMA PAGINE (carousel)
   ───────────────────────────────────────── */
.sez-anteprima {
  background: linear-gradient(180deg, #fff 0%, var(--crema) 100%);
  padding: 80px 0;
  overflow: hidden;
}
.anteprima-carousel {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}
.anteprima-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.anteprima-slide {
  min-width: 100%;
  padding: 0 8px;
  box-sizing: border-box;
}
.anteprima-slide img {
  width: 100%;
  border-radius: var(--raggio);
  box-shadow: var(--ombra);
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 1px solid var(--sabbia);
}
.anteprima-slide .didascalia {
  text-align: center;
  font-size: .82rem;
  color: var(--testo-muted);
  margin-top: 12px;
  font-style: italic;
}
.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--sabbia);
  background: #fff;
  color: var(--testo-medio);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.carousel-btn:hover {
  border-color: var(--ambra);
  color: var(--ambra);
  background: var(--crema);
}
.carousel-dots {
  display: flex;
  gap: 8px;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sabbia);
  border: none;
  cursor: pointer;
  transition: all .25s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--ambra);
  transform: scale(1.2);
}
.carousel-dot:hover { background: var(--ambra-soft); }

@media (max-width: 767px) {
  .anteprima-slide img { aspect-ratio: 4/3; }
  .carousel-btn { width: 38px; height: 38px; font-size: .95rem; }
}


/* ─────────────────────────────────────────
   SEZIONE AUTORE
   ───────────────────────────────────────── */
.sez-autore {
  background: #fff;
  padding: 80px 0;
  border-top: 1px solid rgba(61,43,31,.06);
}
.autore-box {
  background: var(--crema);
  border-radius: var(--raggio-grande);
  padding: 40px;
  border: 1px solid var(--sabbia);
  position: relative;
  overflow: hidden;
}
.autore-box::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(200,149,46,.08) 0%, transparent 70%);
  top: -60px;
  right: -60px;
  pointer-events: none;
}
.autore-foto {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--ambra-soft);
  box-shadow: 0 4px 16px rgba(61,43,31,.12);
}
.autore-nome {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--terra);
  margin: 14px 0 4px;
}
.autore-ruolo {
  font-size: .82rem;
  color: var(--testo-muted);
  margin-bottom: 16px;
}
.autore-testo {
  font-size: .93rem;
  color: var(--testo-medio);
  line-height: 1.75;
}
.autore-testo p { margin-bottom: 12px; }
.citazione-autore {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--terra-calda);
  border-left: 3px solid var(--ambra);
  padding-left: 18px;
  margin: 20px 0 0;
  line-height: 1.65;
}


/* ─────────────────────────────────────────
   SEZIONE BONUS
   ───────────────────────────────────────── */
.sez-bonus {
  background: linear-gradient(145deg, var(--terra) 0%, #2A1A10 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.sez-bonus::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,149,46,.12) 0%, transparent 70%);
  top: -180px;
  right: -180px;
  pointer-events: none;
}
.card-bonus {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--raggio-grande);
  padding: 32px 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all .3s ease;
  height: 100%;
  position: relative;
}
.card-bonus:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(200,149,46,.35);
  transform: translateY(-4px);
}
.bonus-etichetta {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, var(--ambra), var(--ambra-chiara));
  color: var(--terra);
  border-radius: 50px;
  padding: 3px 11px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.bonus-icona {
  font-size: 2.6rem;
  margin-bottom: 14px;
  display: block;
}
.card-bonus h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.card-bonus p {
  font-size: .87rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
}
.bonus-valore {
  color: var(--ambra-soft);
  font-weight: 600;
  font-size: .83rem;
  margin-top: 14px;
}
.bonus-valore span {
  text-decoration: line-through;
  color: rgba(255,255,255,.3);
  margin-right: 5px;
}


/* ─────────────────────────────────────────
   BARRA VALORE / RIEPILOGO
   ───────────────────────────────────────── */
.riepilogo-valore {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--raggio);
  padding: 22px 30px;
  display: inline-block;
  text-align: center;
}
.riepilogo-label {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  margin-bottom: 3px;
}
.riepilogo-barrato {
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: rgba(255,255,255,.4);
  text-decoration: line-through;
}
.riepilogo-prezzo {
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--ambra-chiara);
  line-height: 1;
}
.riepilogo-risparmio {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  margin-top: 3px;
}


/* ─────────────────────────────────────────
   SEZIONE RAZZE (anteprima guide di razza)
   ───────────────────────────────────────── */
.sez-razze {
  background: var(--crema-scura);
  padding: 72px 0;
  border-top: 1px solid var(--sabbia);
  border-bottom: 1px solid var(--sabbia);
}
.razze-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 28px;
}
.razza-chip {
  background: #fff;
  border: 1px solid var(--sabbia);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: var(--testo-medio);
  transition: all .25s;
}
.razza-chip:hover {
  border-color: var(--ambra);
  background: var(--crema);
  transform: translateY(-2px);
  box-shadow: var(--ombra-card);
}
.razza-chip .icona-razza {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 6px;
}
.razza-chip .razza-stato {
  display: inline-block;
  margin-top: 7px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
}
.razza-chip .razza-stato.disponibile {
  background: #D1FAE5;
  color: #065F46;
}
.razza-chip .razza-stato.preparazione {
  background: #FEF3C7;
  color: #92400E;
}


/* ─────────────────────────────────────────
   SEZIONE TESTIMONIANZE
   ───────────────────────────────────────── */
.sez-testimonianze {
  background: #fff;
  padding: 80px 0;
}
.card-recensione {
  background: var(--crema);
  border-radius: var(--raggio);
  padding: 28px 26px;
  border: 1px solid var(--sabbia);
  height: 100%;
  transition: all .3s;
  position: relative;
}
.card-recensione::before {
  content: '\201C';
  font-family: var(--font-head);
  font-size: 4rem;
  color: var(--ambra-soft);
  position: absolute;
  top: 12px;
  right: 22px;
  line-height: 1;
  opacity: .5;
}
.card-recensione:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombra);
  border-color: var(--ambra-soft);
}
.stelle {
  color: var(--ambra);
  font-size: .9rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testo-recensione {
  font-family: var(--font-head);
  font-style: italic;
  font-size: .96rem;
  line-height: 1.65;
  color: var(--testo);
  margin-bottom: 20px;
}
.autore-recensione {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar-recensione {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sabbia);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--terra-calda);
  flex-shrink: 0;
}
.nome-recensione {
  font-weight: 600;
  font-size: .9rem;
  color: var(--testo);
}
.meta-recensione {
  font-size: .76rem;
  color: var(--testo-muted);
}
.badge-verificato {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--bosco-bg);
  color: var(--bosco);
  border-radius: 50px;
  padding: 2px 9px;
  font-size: .7rem;
  font-weight: 600;
}


/* ─────────────────────────────────────────
   SEZIONE GARANZIA
   ───────────────────────────────────────── */
.sez-garanzia {
  background: var(--crema);
  padding: 64px 0;
}
.garanzia-contenitore {
  background: linear-gradient(135deg, var(--bosco-bg), #fff);
  border: 2px solid #C4DFC9;
  border-radius: var(--raggio-grande);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.garanzia-contenitore::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(74,124,89,.08) 0%, transparent 70%);
  top: -80px;
  right: -80px;
}
.garanzia-icona {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 14px;
}
.garanzia-contenitore h3 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--terra);
  margin-bottom: 10px;
}
.garanzia-contenitore p {
  max-width: 540px;
  margin: 0 auto;
  color: var(--testo-medio);
  line-height: 1.72;
  font-size: .95rem;
}
.garanzia-punti {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.garanzia-punto {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .87rem;
  color: var(--testo-medio);
  font-weight: 500;
}
.garanzia-punto i { color: var(--bosco); }


/* ─────────────────────────────────────────
   SEZIONE CHECKOUT
   ───────────────────────────────────────── */
.sez-checkout {
  background: linear-gradient(180deg, var(--crema) 0%, var(--crema-scura) 100%);
  padding: 80px 0;
}
.checkout-contenitore {
  background: #fff;
  border-radius: var(--raggio-grande);
  box-shadow: var(--ombra-forte);
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}
.checkout-header {
  background: linear-gradient(135deg, var(--terra), var(--terra-media));
  padding: 28px 32px;
  text-align: center;
}
.checkout-header h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px;
}
.checkout-header p {
  color: rgba(255,255,255,.7);
  font-size: .87rem;
  margin: 0;
}
.checkout-body { padding: 32px; }

.riepilogo-ordine {
  background: var(--crema);
  border-radius: var(--raggio);
  padding: 18px;
  margin-bottom: 24px;
  border: 1.5px solid var(--sabbia);
}
.voce-ordine {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  font-size: .87rem;
  color: var(--testo);
}
.voce-ordine i { color: var(--ambra); font-size: .95rem; flex-shrink: 0; }
.separatore-ordine { border-top: 1px dashed var(--sabbia); margin: 10px 0; }
.totale-ordine {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.totale-ordine .lbl { font-weight: 600; font-size: .92rem; color: var(--testo); }
.totale-ordine .val {
  font-family: var(--font-head);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--terra);
}
.totale-ordine .val-barrato {
  text-decoration: line-through;
  color: var(--testo-muted);
  font-size: .95rem;
  margin-right: 5px;
}

/* bump offer */
.bump-sezione-titolo {
  font-size: .96rem;
  font-weight: 700;
  color: var(--terra);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bump-sezione-titolo i { color: var(--ambra); }

.bump-card {
  display: block;
  cursor: pointer;
  border: 2.5px dashed var(--sabbia);
  border-radius: var(--raggio);
  background: #FFFDF5;
  transition: all .25s;
  overflow: hidden;
  margin-bottom: 10px;
}
.bump-card:hover {
  border-color: var(--ambra-soft);
  background: var(--crema);
}
.bump-checkbox { display: none; }
.bump-checkbox:checked + .bump-inner {
  background: linear-gradient(135deg, #FFF8E8, var(--crema));
}
.bump-card:has(.bump-checkbox:checked) {
  border-color: var(--ambra);
  border-style: solid;
}
.bump-inner {
  display: flex;
  gap: 12px;
  padding: 16px;
  align-items: flex-start;
  transition: background .25s;
}
.bump-check {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 2.5px solid var(--sabbia);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: .95rem;
  color: transparent;
  transition: all .2s;
}
.bump-checkbox:checked + .bump-inner .bump-check {
  background: var(--ambra);
  border-color: var(--ambra);
  color: #fff;
}
.bump-tag {
  font-size: .68rem;
  font-weight: 700;
  color: var(--ambra);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 3px;
}
.bump-title {
  font-size: .93rem;
  font-weight: 700;
  color: var(--testo);
  margin-bottom: 5px;
  line-height: 1.3;
}
.bump-desc {
  font-size: .8rem;
  color: var(--testo-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}
.bump-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bump-original {
  font-size: .83rem;
  color: var(--testo-muted);
  text-decoration: line-through;
}
.bump-discounted {
  font-size: .95rem;
  font-weight: 700;
  color: var(--terra);
  display: flex;
  align-items: center;
  gap: 5px;
}
.bump-save {
  font-size: .7rem;
  background: var(--ambra-soft);
  color: var(--terra-calda);
  padding: 2px 7px;
  border-radius: 50px;
  font-weight: 600;
}

/* bump razza dropdown */
.bump-razza-wrapper {
  border: 2px dashed var(--sabbia);
  border-radius: var(--raggio);
  background: #FFFDF5;
  padding: 16px;
  transition: border-color .25s, background .25s;
}
.bump-razza-wrapper.selezionata {
  border-style: solid;
  border-color: var(--ambra);
  background: linear-gradient(135deg, #FFF8E8, var(--crema));
}
.bump-razza-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--testo-medio);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 8px;
}
.bump-razza-select {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 1.5px solid var(--sabbia);
  border-radius: 10px;
  font-size: .95rem;
  font-family: var(--font-body);
  color: var(--testo);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8952E' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .2s;
}
.bump-razza-select:focus {
  outline: none;
  border-color: var(--ambra);
  box-shadow: 0 0 0 3px var(--ambra-soft);
}
.bump-razza-preview {
  display: none;
  margin-top: 12px;
  border-top: 1px solid var(--sabbia);
  padding-top: 12px;
}
.bump-razza-preview.visibile { display: flex; gap: 12px; align-items: flex-start; }
.bump-razza-icona {
  font-size: 1.4rem;
  color: var(--ambra);
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}
.bump-razza-remove {
  background: none;
  border: 1px solid var(--sabbia);
  border-radius: 20px;
  font-size: .72rem;
  color: var(--testo-muted);
  padding: 2px 10px;
  margin-top: 8px;
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.bump-razza-remove:hover { border-color: #dc3545; color: #dc3545; }

/* urgency bar countdown */
.urgency-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 7px 16px;
  background: rgba(200,149,46,.1);
  border: 1px solid rgba(200,149,46,.35);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--terra-calda);
}
.urgency-bar i { color: var(--ambra); flex-shrink:0; }
.countdown-timer {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  color: var(--terra);
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}

/* prezzo barrato nel badge hero */
.importo-barrato {
  display: block;
  font-size: .78rem;
  text-decoration: line-through;
  opacity: .5;
  line-height: 1.2;
}

/* totale dinamico */
.totale-dinamico {
  background: var(--crema);
  border: 2px solid var(--sabbia);
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.totale-dinamico .lbl {
  font-weight: 600;
  font-size: .92rem;
  color: var(--terra);
}
#total-display {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--terra);
}

/* form email */
.form-label-custom {
  font-weight: 600;
  font-size: .85rem;
  color: var(--testo);
  margin-bottom: 5px;
  display: block;
}
.form-control-custom {
  border: 1.5px solid #DDD5C8;
  border-radius: 12px;
  padding: 13px 15px;
  font-size: .93rem;
  font-family: var(--font-body);
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  background: var(--crema);
  -webkit-appearance: none;
  appearance: none;
}
.form-control-custom:focus {
  border-color: var(--ambra);
  box-shadow: 0 0 0 3px rgba(200,149,46,.15);
  background: #fff;
}

#paypal-button-container { min-height: 50px; }

.badge-sicurezza {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.badge-sicurezza > div {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .76rem;
  color: var(--testo-muted);
  font-weight: 500;
}
.badge-sicurezza > div i { color: var(--bosco); }


/* ─────────────────────────────────────────
   FAQ
   ───────────────────────────────────────── */
.sez-faq {
  background: #fff;
  padding: 72px 0;
}
.faq-item {
  border: 1.5px solid var(--sabbia);
  border-radius: var(--raggio) !important;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-btn {
  background: var(--crema);
  color: var(--testo);
  font-weight: 600;
  font-size: .95rem;
  border: none;
  padding: 18px 22px;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background .2s;
  font-family: var(--font-body);
  line-height: 1.45;
}
.faq-btn:hover { background: var(--crema-scura); }
.faq-btn.active { color: var(--terra); background: var(--crema-scura); }
.faq-btn .icon { transition: transform .3s; color: var(--ambra); }
.faq-btn.active .icon { transform: rotate(45deg); }
.faq-body {
  display: none;
  padding: 0 22px 18px;
  background: var(--crema);
  font-size: .9rem;
  color: var(--testo-muted);
  line-height: 1.72;
}
.faq-body.open { display: block; }


/* ─────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────── */
footer {
  background: var(--terra);
  color: rgba(255,255,255,.6);
  padding: 36px 0 28px;
  font-size: .83rem;
}
footer a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
}
footer a:hover { color: #fff; }
.footer-brand {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}


/* ─────────────────────────────────────────
   STICKY MOBILE CTA
   ───────────────────────────────────────── */
.barra-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--terra);
  padding: 13px 18px;
  z-index: 899;
  box-shadow: 0 -4px 20px rgba(0,0,0,.2);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.barra-mobile .prezzo-mobile { color: #fff; font-size: .82rem; }
.barra-mobile .prezzo-mobile strong { font-size: 1.05rem; color: var(--ambra-chiara); }
.btn-mobile {
  background: linear-gradient(135deg, var(--ambra), var(--ambra-chiara));
  color: var(--terra);
  border: none;
  border-radius: 50px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: .87rem;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────
   OVERLAY ELABORAZIONE
   ───────────────────────────────────────── */
#overlay-elaborazione {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(61,43,31,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 24px;
}
#overlay-elaborazione.attivo { display: flex; }
.overlay-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255,255,255,.18);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin-over .85s linear infinite;
  margin: 18px auto 22px;
}
@keyframes spin-over { to { transform: rotate(360deg); } }


/* ─────────────────────────────────────────
   COOKIE BANNER
   ───────────────────────────────────────── */
#cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  background: var(--terra);
  color: #fff;
  padding: 16px 22px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(0,0,0,.16);
  font-size: .85rem;
  line-height: 1.6;
}
#cookie-banner.visibile { display: block; }
.cb-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.cb-testo { flex: 1; min-width: 200px; color: rgba(255,255,255,.82); }
.cb-testo strong { color: #fff; }
.cb-testo a { color: var(--ambra-soft); text-underline-offset: 3px; }
.cb-azioni { display: flex; gap: 9px; flex-shrink: 0; flex-wrap: wrap; }
.cb-btn-ess {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.82);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: .82rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.cb-btn-ess:hover { border-color: #fff; color: #fff; }
.cb-btn-acc {
  background: var(--ambra);
  border: none;
  color: #fff;
  border-radius: 50px;
  padding: 7px 20px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.cb-btn-acc:hover { background: var(--ambra-chiara); }


/* ─────────────────────────────────────────
   ANIMAZIONI DI SCROLL
   ───────────────────────────────────────── */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-anim].vis {
  opacity: 1;
  transform: none;
}


/* ─────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────── */
@media (max-width: 991px) {
  .autore-box { padding: 28px; }
  .garanzia-contenitore { padding: 36px 24px; }
}

@media (max-width: 767px) {
  .barra-mobile {
    display: flex;
    padding-bottom: calc(13px + env(safe-area-inset-bottom));
    padding-bottom: calc(13px + constant(safe-area-inset-bottom));
  }
  body {
    padding-bottom: calc(66px + env(safe-area-inset-bottom));
    padding-bottom: calc(66px + constant(safe-area-inset-bottom));
  }
  .hero-section { padding: 48px 0 40px; }
  .libro-wrapper { margin-top: 36px; }
  .libro-img { max-width: 190px; }
  .sez-perche,
  .sez-contenuto,
  .sez-autore,
  .sez-testimonianze,
  .sez-faq { padding: 56px 0; }
  .sez-bonus,
  .sez-checkout { padding: 56px 0; }
  .checkout-body { padding: 22px; }
  .autore-box { padding: 24px 20px; }
  .garanzia-contenitore { padding: 30px 20px; }
  .razze-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }

  .form-control-custom { font-size: 16px; }
  .btn-primario { min-height: 50px; }
  .btn-mobile { min-height: 44px; }
  .nav-cta { min-height: 44px; }
  .faq-btn { min-height: 52px; }
  .cb-btn-ess, .cb-btn-acc { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .libro-mockup .libro-img { transform: none; }
  .prezzo-badge { animation: none; }
  [data-anim] { opacity: 1; transform: none; transition: none; }
}
