/* ===================================================================
   Il Generale — Raffaele Cicalese
   Tipografia: Oswald (come la copertina) + Inter. Palette carbonio / blu notte,
   con dettagli tricolore e accenti oro sui fondi scuri.
   =================================================================== */

:root {
  /* Palette */
  --bg:      #ffffff;
  --surface: #f2f3f0;
  --ink:     #16181c;   /* carbonio */
  --ink-2:   #0b0c0f;
  --muted:   #5f636b;
  --accent:      #14315c;  /* blu notte, come la copertina */
  --accent-2:    #0f2545;
  --accent-deep: #14315c;  /* per testi su fondo chiaro */
  --accent-soft: rgba(20, 49, 92, 0.08);
  --gold:        #c08a3e;  /* oro caldo, per i dettagli su fondo scuro */
  --line:    #e4e3de;
  --white:   #ffffff;

  /* Tricolore */
  --it-green: #1a7a4c;
  --it-white: #f2f2ef;
  --it-red:   #b62b2b;

  /* Tipografia */
  --display: "Oswald", "Haettenschweiler", "Arial Narrow", sans-serif;
  --sans:    "Inter", system-ui, -apple-system, sans-serif;

  /* Spaziature */
  --section: clamp(4.5rem, 9vw, 7rem);
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--white);
  padding: 0.8rem 1.2rem;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Utility ---------- */
.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

section[id] {
  scroll-margin-top: 80px;
}

.section__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  letter-spacing: 0.01em;
  line-height: 1.14;
  text-transform: uppercase;
  margin: 0.7rem 0 0;
}

.section__lead {
  color: var(--muted);
  max-width: 56ch;
  margin-top: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.badge--muted {
  background: rgba(16, 24, 43, 0.06);
  color: var(--muted);
}

/* ---------- Filetto tricolore ---------- */
.tricolore {
  height: 3px;
  background: linear-gradient(90deg,
    var(--it-green) 0 33.33%,
    var(--it-white) 33.33% 66.66%,
    var(--it-red) 66.66% 100%);
}

/* Trattino tricolore sotto i titoli di sezione */
.section__title::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 1.1rem;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--it-green) 0 33.33%,
    #d8d8d3 33.33% 66.66%,
    var(--it-red) 66.66% 100%);
}

.section--dark .section__title::after,
.testimonials .section__title::after {
  background: linear-gradient(90deg,
    var(--it-green) 0 33.33%,
    var(--it-white) 33.33% 66.66%,
    var(--it-red) 66.66% 100%);
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease,
              border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.btn--solid {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 25px -12px rgba(20, 49, 92, 0.6);
}

.btn--solid:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -12px rgba(20, 49, 92, 0.7);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn--full {
  width: 100%;
  margin-top: 1.4rem;
}

/* ===================================================================
   NAVBAR
   =================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1rem 0 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.7rem 0 0;
}

.nav.is-scrolled .nav__inner {
  padding-bottom: 0.7rem;
}

.nav .tricolore {
  height: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav.is-scrolled .tricolore {
  opacity: 1;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1rem;
  transition: padding 0.3s ease;
}

.nav__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}

.nav__links {
  display: flex;
  gap: 2.4rem;
}

.nav__links a {
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  background:
    radial-gradient(60% 50% at 85% 12%, rgba(20, 49, 92, 0.07), transparent 70%),
    linear-gradient(180deg, #fcfdfb, var(--bg));
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
}

.hero__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 5.2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 1.4rem 0 1.2rem;
}

.hero__title span {
  display: block;
  margin-top: 0.7rem;
  font-size: clamp(1.1rem, 2.3vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent-deep);
}

.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--ink);
  max-width: 40ch;
  margin-bottom: 0.8rem;
}

.hero__intro {
  color: var(--muted);
  max-width: 48ch;
  margin-bottom: 2.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
}

.hero__meta li {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__meta li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero__meta li:nth-child(1)::before { background: var(--it-green); }
.hero__meta li:nth-child(2)::before { background: #cfd0cb; }
.hero__meta li:nth-child(3)::before { background: var(--it-red); }

/* ---------- Copertina reale ---------- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Bagliore tricolore molto tenue dietro la copertina */
.hero__visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(closest-side, rgba(26, 122, 76, 0.16), transparent 70%) -18% 40% / 62% 62% no-repeat,
    radial-gradient(closest-side, rgba(182, 43, 43, 0.16), transparent 70%) 118% 60% / 62% 62% no-repeat;
  filter: blur(26px);
  pointer-events: none;
}

.cover {
  position: relative;
  width: min(360px, 100%);
  margin: 0;
}

.cover img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 40px 70px -25px rgba(11, 12, 15, 0.55);
}

/* Chip informativo, in basso a sinistra sulla copertina */
.cover__chip {
  position: absolute;
  bottom: -1.4rem;
  left: -1.6rem;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 1.1rem;
  box-shadow: 0 14px 30px -18px rgba(11, 17, 32, 0.35);
}

.cover__chip strong {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.cover__chip small {
  font-size: 0.72rem;
  color: var(--muted);
}

/* ===================================================================
   STATS
   =================================================================== */
.stats {
  padding: 0;
  background: var(--bg);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateY(-2.4rem);
  margin-bottom: -2.4rem;
  background: var(--white);
  box-shadow: 0 24px 50px -30px rgba(11, 17, 32, 0.28);
}

.stats__item {
  position: relative;
  padding: 2rem 1.6rem;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background-color 0.25s ease;
}

.stats__item::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 50%;
  width: 0;
  height: 3px;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.stats__item:hover {
  background: #fafbf8;
}

.stats__item:hover::before {
  width: 46px;
}

.stats__item:last-child {
  border-right: none;
}

.stats__item strong {
  display: block;
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  line-height: 1.1;
}

.stats__item span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ===================================================================
   MANIFESTO — le due domande del libro
   Fascia chiara subito sotto le statistiche: l'occhiello in Oswald fa da
   sottotitolo grande, le due domande stanno affiancate su schede bianche
   con il punto interrogativo oro. Precede la sinossi: prima la domanda,
   poi il racconto.
   =================================================================== */
.manifesto {
  padding: clamp(3.6rem, 7vw, 5.4rem) 0 clamp(3.4rem, 6vw, 5rem);
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.manifesto__inner {
  max-width: 940px;
  text-align: center;
}

.manifesto__occhiello {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--accent-deep);
  text-wrap: balance;
}

.manifesto__occhiello::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 1.2rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--it-green) 0 33.33%,
    var(--it-red) 33.33% 100%);
}

.manifesto__testo {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  color: var(--muted);
  text-wrap: balance;
}

.manifesto__domande {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin-top: clamp(2.2rem, 4vw, 3rem);
  text-align: left;
}

.manifesto__domanda {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.6rem 1.5rem 1.9rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.02rem, 1.9vw, 1.22rem);
  line-height: 1.4;
  color: var(--ink);
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

/* Filetto oro verticale al posto di un'icona: segna la scheda senza
   aggiungere un simbolo che ripete il punto interrogativo già scritto. */
.manifesto__domanda::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
}

.manifesto__domanda:hover {
  border-color: rgba(20, 49, 92, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -26px rgba(11, 17, 32, 0.4);
}

@media (max-width: 780px) {
  .manifesto__domande {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   SINOSSI
   =================================================================== */
.sinossi {
  padding: var(--section) 0 0;
}

.sinossi__head {
  max-width: 660px;
  margin-bottom: clamp(2.4rem, 5vw, 3.4rem);
}

.sinossi__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: start;
}

.sinossi__text p {
  color: var(--ink);
  margin-bottom: 1.4rem;
  font-size: 1.03rem;
}

.sinossi__text p:first-child {
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.62;
}

/* Capolettera sul primo paragrafo */
.sinossi__text p:first-child::first-letter {
  float: left;
  margin: 0.35rem 0.7rem 0 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 3.6rem;
  line-height: 0.82;
  color: var(--accent-deep);
}

.sinossi__text em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 500;
}

.sinossi__text strong {
  font-weight: 600;
}

.sinossi__aside {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 1.6rem;
}

.quote-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-left: 4px solid var(--accent-deep);
  border-radius: 10px;
  padding: 1.8rem 1.7rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  font-style: italic;
  margin: 0 0 0.9rem;
}

.quote-card::after {
  content: "\201D";
  position: absolute;
  right: 0.8rem;
  bottom: -1.6rem;
  font-family: var(--display);
  font-size: 7rem;
  line-height: 1;
  color: rgba(20, 49, 92, 0.08);
  pointer-events: none;
}

.quote-card__author {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Scheda tecnica */
.factlist {
  border-top: 1px solid var(--line);
}

.factlist li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}

.factlist span {
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.factlist strong {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: right;
}

/* ===================================================================
   PERCHÉ LEGGERLO
   Quattro schede con testo più lungo: due colonne invece di tre, così
   le righe restano leggibili.
   =================================================================== */
.perche {
  padding: var(--section) 0;
}

.perche__head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.perche__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.perche__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent-deep);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.perche__item:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 49, 92, 0.22);
  box-shadow: 0 20px 38px -22px rgba(11, 17, 32, 0.35);
}

.perche__item h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
}

.perche__item p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--muted);
}

/* La domanda che chiude la sezione */
.perche__chiusura {
  max-width: 62ch;
  margin: clamp(2rem, 4vw, 2.8rem) auto 0;
  padding: 1.5rem 1.8rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
}

@media (max-width: 780px) {
  .perche__grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   IL PERCORSO (sezione scura)
   =================================================================== */
.testimonials {
  padding: var(--section) 0;
  background: var(--ink);
  color: var(--white);
}

.testimonials .badge--muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.testimonials__head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.testimonials .section__lead {
  color: rgba(255, 255, 255, 0.6);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: transform 0.25s ease, border-color 0.25s ease,
              background-color 0.25s ease;
}

.testimonial::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.testimonial:hover::after {
  transform: scaleX(1);
}

.testimonial:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(192, 138, 62, 0.45);
}

.testimonial__num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.testimonial h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.testimonial p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
}

/* ===================================================================
   IL LIBRO
   =================================================================== */
.libro {
  padding: var(--section) 0;
  background: var(--surface);
}

.libro__head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.libro__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.libro__text > p {
  color: var(--muted);
  margin-bottom: 2.2rem;
  max-width: 55ch;
}

.libro__list {
  display: grid;
  gap: 1.2rem;
}

.libro__list li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.3rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.libro__list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(11, 17, 32, 0.25);
}

.libro__list svg {
  width: 22px;
  height: 22px;
  color: var(--accent-deep);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.libro__list strong {
  display: block;
  font-weight: 600;
  font-size: 1.02rem;
}

.libro__list span {
  font-size: 0.88rem;
  color: var(--muted);
}

.libro__cover {
  max-width: 380px;
  margin-inline: auto;
}

/* Il render 3D ha lo sfondo nero: lo incorniciamo in un pannello scuro */
.libro__cover img {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  box-shadow: 0 30px 55px -25px rgba(11, 17, 32, 0.55);
}

/* ===================================================================
   CITAZIONE A TUTTA LARGHEZZA
   =================================================================== */
.pullquote {
  position: relative;
  isolation: isolate;
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--ink-2) url("../img/banner.jpeg") center / cover no-repeat;
  background-attachment: fixed;
  color: var(--white);
  text-align: center;
}

.pullquote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg,
    rgba(8, 12, 20, 0.9),
    rgba(8, 12, 20, 0.78) 45%,
    rgba(8, 12, 20, 0.92));
}

.pullquote blockquote {
  max-width: 36ch;
  margin-inline: auto;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.pullquote blockquote::before {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin: 0 auto 2rem;
  border-radius: 2px;
  background: linear-gradient(90deg,
    var(--it-green) 0 33.33%,
    var(--it-white) 33.33% 66.66%,
    var(--it-red) 66.66% 100%);
}

.pullquote p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.55rem, 3.8vw, 2.4rem);
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.pullquote cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ===================================================================
   AUTORE
   =================================================================== */
.autore {
  padding: var(--section) 0;
}

.autore__head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.autore__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}

.autore__photo {
  position: relative;
  max-width: 380px;
  margin-inline: auto;
}

/* Cornice sfalsata dietro il ritratto */
.autore__photo::after {
  content: "";
  position: absolute;
  inset: auto -14px -14px auto;
  width: 58%;
  height: 58%;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}

.autore__photo img {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  margin-inline: auto;
  box-shadow: 0 30px 55px -25px rgba(11, 17, 32, 0.4);
}

.autore__bio p {
  color: var(--muted);
  margin-bottom: 1.3rem;
  max-width: 58ch;
}

.autore__bio p:first-child {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.6;
  padding-left: 1.2rem;
  border-left: 3px solid var(--accent);
}

.autore__bio em {
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}

.autore__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.autore__tags span {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ===================================================================
   CONTATTI
   =================================================================== */
.contatti {
  padding: var(--section) 0;
  background: var(--surface);
}

.contatti__head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.contatti__lead {
  color: var(--muted);
  max-width: 52ch;
  margin-top: 1rem;
}

/* Recapiti a sinistra, modulo a destra. La colonna arriva alla stessa
   altezza del modulo, ma a crescere sono le schede (flex: 1), non gli
   spazi fra loro: restano un blocco unito invece di quattro riquadri
   distanti fra loro. */
.contatti__grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: stretch;
}

.contatti__info {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contatti__info > * {
  flex: 1;
}

.contatti__item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

a.contatti__item:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 49, 92, 0.3);
  box-shadow: 0 16px 30px -22px rgba(11, 17, 32, 0.4);
}

.contatti__icon {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.contatti__icon svg {
  width: 18px;
  height: 18px;
}

.contatti__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}

.contatti__value {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  transition: color 0.25s ease;
  overflow-wrap: anywhere;
}

a.contatti__item:hover .contatti__value {
  color: var(--accent-deep);
}

/* ---------- Form ---------- */
.form {
  display: grid;
  gap: 1.3rem;
  align-content: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form__field label {
  font-size: 0.82rem;
  font-weight: 600;
}

.form__field input,
.form__field textarea,
.form__field select {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  resize: vertical;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.form__field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235f636b' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.4rem;
}

.form__field input:focus,
.form__field textarea:focus,
.form__field select:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 4px rgba(20, 49, 92, 0.15);
}

.form__field input::placeholder,
.form__field textarea::placeholder {
  color: #9aa3b2;
}

.form .btn {
  justify-self: start;
}

.form__note {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-deep);
  text-align: center;
}

/* ===================================================================
   FOOTER
   Quattro colonne tematiche: il libro, le sezioni, l'autore, i contatti.
   Con undici voci una fila unica diventava illeggibile.
   =================================================================== */
.footer {
  background: var(--ink-2);
  color: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
  gap: clamp(2rem, 4vw, 3rem);
  padding: clamp(3rem, 6vw, 4rem) 0 2.4rem;
}

/* ---------- Il libro ---------- */
.footer__libro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.footer__libro img {
  width: 64px;
  flex: none;
  border-radius: 4px;
  box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.9);
}

.footer__libro div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer__libro strong {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.footer__libro span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer__libro small {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- Colonne di link ---------- */
.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

.footer__titolo {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.footer__col a {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.25s ease;
  overflow-wrap: anywhere;
}

.footer__col a:hover {
  color: var(--white);
}

/* ---------- Social ---------- */
.footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  transition: border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.footer__social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 17px;
  height: 17px;
}

/* ---------- Riga finale ---------- */
.footer__coda {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  margin-top: 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer__coda p {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer__coda a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

.footer__coda a:hover {
  color: var(--gold);
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 920px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle,
  .hero__intro {
    margin-inline: auto;
  }

  .hero__actions,
  .hero__meta {
    justify-content: center;
  }

  /* Su mobile la copertina viene prima del testo */
  .hero__visual {
    order: -1;
    margin-bottom: 0.5rem;
  }

  .cover {
    width: min(300px, 82vw);
  }

  .cover__chip {
    bottom: -1.6rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.6rem 1.1rem;
    text-align: center;
    white-space: nowrap;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item:nth-child(2) {
    border-right: none;
  }

  .stats__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .sinossi__grid,
  .libro__grid,
  .autore__grid {
    grid-template-columns: 1fr;
  }

  .contatti__grid {
    grid-template-columns: 1fr;
  }

  .contatti__info > * {
    flex: none;
  }

  .sinossi__aside {
    position: static;
  }

  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .libro__cover img {
    max-width: 320px;
  }
}

@media (max-width: 860px) {
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__libro {
    grid-column: 1 / -1;
  }

  /* lo sfondo "fixed" su mobile è pesante e traballa */
  .pullquote {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0 0 auto 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 6.5rem 0 2.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }

  .nav__links.is-open {
    transform: translateY(0);
  }

  .nav__links a {
    font-size: 1.1rem;
    padding: 0.9rem 1.5rem;
  }

  .hero {
    padding-top: 6.5rem;
    padding-bottom: 4rem;
  }

  .hero__title {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }

  .stats__grid {
    grid-template-columns: 1fr;
  }

  .stats__item,
  .stats__item:nth-child(2) {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .stats__item:last-child {
    border-bottom: none;
  }

  .stats__item {
    padding: 1.3rem 1rem;
  }

  .stats__item strong {
    font-size: 1.7rem;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .cover__chip {
    bottom: -1.5rem;
  }

}

/* Telefoni molto piccoli */
@media (max-width: 420px) {
  .hero__title {
    font-size: clamp(2.2rem, 13vw, 2.8rem);
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }

  .section__title {
    font-size: clamp(1.7rem, 9vw, 2.2rem);
  }

  .cover {
    width: min(270px, 84vw);
  }

  .cover__chip small {
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    transition-duration: 0.001s !important;
  }
}

/* ===================================================================
   RECENSIONI
   =================================================================== */
.recensioni {
  padding: var(--section) 0;
  background: var(--bg);
}

.recensioni__head {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.recensioni__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.recensione {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 1.8rem 1.7rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.recensione:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 49, 92, 0.22);
  box-shadow: 0 20px 38px -22px rgba(11, 17, 32, 0.35);
}

.recensione__stars {
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: #d9a441;
}

/* La stella non piena resta grigia */
.recensione__stars span { color: #d6d5cf; }

.recensione p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
}

.recensione footer {
  margin-top: auto;
  padding-top: 0.4rem;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.recensione footer strong {
  padding-top: 0.9rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.recensione footer span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* La stella non piena resta grigia (non usata: tutte le recensioni sono 5/5) */

@media (max-width: 920px) {
  .recensioni__grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   CONSENSO PRIVACY NEL FORM
   =================================================================== */
.form__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.form__consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.25rem;
  accent-color: var(--accent);
  cursor: pointer;
}

.form__consent label {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  cursor: pointer;
}

.form__consent a {
  color: var(--accent-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===================================================================
   PAGINE LEGALI (privacy)
   =================================================================== */
.legal {
  padding: clamp(3rem, 6vw, 4.5rem) 0 var(--section);
  background: var(--bg);
}

.legal__inner {
  max-width: 760px;
}

.legal .section__title {
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.legal__updated {
  margin-top: 1.6rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal__block {
  margin-top: 3rem;
}

.legal__block h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.legal__block h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  margin: 1.8rem 0 0.6rem;
}

.legal__block p {
  margin-bottom: 1rem;
  color: #33394a;
}

.legal__block a {
  color: var(--accent-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal__list {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.2rem;
}

.legal__list li {
  position: relative;
  padding-left: 1.5rem;
  color: #33394a;
}

.legal__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.legal__note {
  padding: 1.1rem 1.3rem;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem;
}

.legal__back {
  margin-top: 3.5rem;
}

/* Nelle pagine interne la navbar non è fissa e resta sempre visibile */
.nav--page,
.nav--page.is-scrolled {
  position: static;
  padding: 1rem 0 0;
  background: var(--white);
  box-shadow: 0 1px 0 var(--line);
}

.nav--page .tricolore {
  opacity: 1;
}

@media (max-width: 640px) {
  .legal__back .btn { width: 100%; }
}

/* ===================================================================
   RIFINITURE MOBILE
   =================================================================== */

/* Area di tocco più generosa sul nome in alto */
.nav__brand {
  display: inline-block;
  padding: 0.35rem 0;
}

@media (max-width: 640px) {
  /* Sotto i 16px iOS ingrandisce la pagina quando si tocca un campo:
     a 16px il modulo si compila senza zoom improvvisi. */
  .form__field input,
  .form__field textarea,
  .form__field select {
    font-size: 16px;
  }

}

/* ===================================================================
   PULSANTE WHATSAPP FLOTTANTE
   =================================================================== */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 120;

  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 56px;
  padding: 0 16px;

  background: #25d366;
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 12px 28px -10px rgba(11, 17, 32, 0.45);

  transition: gap 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.25s ease,
              transform 0.25s ease,
              box-shadow 0.25s ease;
}

.whatsapp-fab svg {
  width: 26px;
  height: 26px;
  flex: none;
}

/* L'etichetta resta chiusa e si apre al passaggio del mouse */
.whatsapp-fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  transition: max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  gap: 0.6rem;
  background: #1fba59;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(11, 17, 32, 0.5);
}

.whatsapp-fab:hover .whatsapp-fab__label,
.whatsapp-fab:focus-visible .whatsapp-fab__label {
  max-width: 8rem;
}

/* Su touch l'etichetta non si apre mai: solo il tondo con l'icona */
@media (hover: none) {
  .whatsapp-fab {
    width: 56px;
    padding: 0;
    justify-content: center;
  }

  .whatsapp-fab__label {
    display: none;
  }
}

@media (max-width: 640px) {
  .whatsapp-fab {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }

  .whatsapp-fab__label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab,
  .whatsapp-fab__label {
    transition: none;
  }
}

/* ===================================================================
   MODULO: TRAPPOLA ANTI-BOT ED ESITO DELL'INVIO
   =================================================================== */

/* Campo esca: invisibile e fuori dal flusso, ma non display:none
   (alcuni bot ignorano i campi nascosti in quel modo) */
.form__trappola {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__note {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: rgba(20, 49, 92, 0.06);
  color: var(--accent-deep);
}

.form__note--errore {
  background: rgba(182, 43, 43, 0.08);
  color: #9c2020;
}

/* Bottone disattivato durante l'invio */
.form .btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

/* ===================================================================
   PRESENTAZIONI
   Impaginazione a fasce orizzontali: intestazione, elenco dei possibili
   organizzatori, i tre passi e infine l'invito all'azione. Prima erano
   due colonne di altezza molto diversa e restava un grande vuoto.
   =================================================================== */
.presentazioni {
  padding: var(--section) 0;
  background: var(--ink);
  color: var(--white);
}

.presentazioni .badge--muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}

.presentazioni .section__lead {
  color: rgba(255, 255, 255, 0.65);
}

.presentazioni .section__lead em {
  font-style: italic;
  color: var(--white);
}

.presentazioni__head {
  margin-bottom: clamp(2.4rem, 5vw, 3.2rem);
}

/* Etichetta che apre ogni fascia */
.presentazioni__etichetta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
}

.presentazioni__etichetta::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- Chi può organizzarla ---------- */
.destinatari {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: clamp(2.6rem, 5vw, 3.4rem);
}

.destinatari li {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.destinatari li:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(192, 138, 62, 0.45);
}

.destinatari svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--gold);
}

/* ---------- I tre passi ---------- */
.passi {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.passo {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.9rem 1.8rem 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: transform 0.25s ease, border-color 0.25s ease,
              background-color 0.25s ease;
}

.passo:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(192, 138, 62, 0.45);
}

.passo__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0.4rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1rem;
  color: var(--gold);
}

.passo strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.passo__testo {
  font-size: 0.93rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Invito all'azione ---------- */
.presentazioni__azioni {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.6rem;
  margin-top: clamp(2.2rem, 4vw, 3rem);
  padding-top: clamp(2rem, 4vw, 2.6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.presentazioni .btn--solid {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 10px 25px -12px rgba(192, 138, 62, 0.8);
}

.presentazioni .btn--solid:hover {
  background: #d19c50;
  border-color: #d19c50;
}

.presentazioni__nota {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 920px) {
  .passi {
    grid-template-columns: 1fr;
  }

  .passo {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1.1rem;
    padding: 1.4rem 1.5rem;
  }

  .passo__num {
    margin-bottom: 0;
  }

  .passo strong {
    flex: 1;
  }

  .passo__testo {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  .presentazioni__azioni {
    flex-direction: column;
    align-items: stretch;
  }

  .destinatari li {
    font-size: 0.85rem;
    padding: 0.6rem 0.95rem;
  }
}

/* ===================================================================
   A CHI SI RIVOLGE (dentro la sezione "Il libro")
   =================================================================== */
.destinatari-libro {
  max-width: 68ch;
  margin: clamp(2.4rem, 5vw, 3.4rem) auto 0;
  padding: 1.8rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.destinatari-libro h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.destinatari-libro p {
  color: var(--muted);
  line-height: 1.7;
}

/* ===================================================================
   ACQUISTA
   =================================================================== */
.acquista {
  padding: var(--section) 0;
  background: var(--surface);
}

.acquista__box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3.2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -34px rgba(11, 17, 32, 0.35);
}

.acquista__testo > p {
  color: var(--muted);
  max-width: 56ch;
  margin-top: 1.4rem;
}

.acquista__dati {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 2rem;
  margin: 1.8rem 0;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.acquista__dati li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.acquista__dati span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.acquista__dati strong {
  font-size: 0.98rem;
  font-weight: 500;
}

/* I valori ancora da compilare si notano subito */
.acquista__dati strong:not(:has(*)) {
  overflow-wrap: anywhere;
}

.acquista__azioni {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.acquista__nota {
  margin-top: 1.2rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.acquista__copertina img {
  width: 240px;
  border-radius: 8px;
  box-shadow: 0 30px 50px -25px rgba(11, 17, 32, 0.55);
}

@media (max-width: 920px) {
  .acquista__box {
    grid-template-columns: 1fr;
  }

  .acquista__copertina {
    order: -1;
    justify-self: center;
  }

  .acquista__copertina img {
    width: 200px;
  }
}

@media (max-width: 560px) {
  .acquista__dati {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   DOMANDE FREQUENTI
   =================================================================== */
.faq {
  padding: var(--section) 0;
  background: var(--bg);
}

/* Titolo a sinistra e domande a destra: prima l'elenco era largo 820px
   dentro un contenitore da 1120 e restavano 300px vuoti sulla destra. */
.faq__griglia {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.faq__head {
  position: sticky;
  top: 110px;
}

.faq__aiuto {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 30ch;
}

.faq__aiuto a {
  color: var(--accent-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq__lista {
  display: grid;
  gap: 0.9rem;
}

.faq__voce {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq__voce[open] {
  border-color: rgba(20, 49, 92, 0.25);
  box-shadow: 0 16px 32px -24px rgba(11, 17, 32, 0.4);
}

.faq__voce summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem 1.5rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
}

/* Tolgo il triangolino predefinito e metto un più che diventa meno */
.faq__voce summary::-webkit-details-marker {
  display: none;
}

.faq__voce summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq__voce[open] summary::after {
  transform: rotate(90deg);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat;
}

.faq__voce summary:hover {
  color: var(--accent-deep);
}

.faq__risposta {
  padding: 0 1.5rem 1.4rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq__risposta a {
  color: var(--accent-deep);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 920px) {
  .faq__griglia {
    grid-template-columns: 1fr;
  }

  .faq__head {
    position: static;
  }
}

/* ===================================================================
   ELENCO DEI TEMI TRATTATI (sezione "Il libro")
   =================================================================== */
.temi__intro {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(2.4rem, 5vw, 3.2rem) 0 1.2rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.temi__intro::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.temi-trattati {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.temi-trattati li {
  padding: 0.6rem 1.05rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.25s ease, transform 0.2s ease;
}

.temi-trattati li:hover {
  border-color: rgba(20, 49, 92, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .temi-trattati li {
    font-size: 0.84rem;
    padding: 0.55rem 0.9rem;
  }
}

/* ===================================================================
   BANNER COOKIE
   Scheda in basso a sinistra: lascia libero l'angolo destro, dove sta il
   pulsante WhatsApp. Su schermi stretti diventa a tutta larghezza e il
   pulsante viene sollevato (regola :has più sotto) per non finirci sotto.
   =================================================================== */
.cookie {
  position: fixed;
  left: 1.25rem;
  right: auto;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 200;
  width: min(430px, calc(100vw - 2.5rem));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 26px 60px -24px rgba(11, 17, 32, 0.45);
  animation: cookie-entra 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cookie[hidden] {
  display: none;
}

@keyframes cookie-entra {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.cookie__inner {
  padding: 1.3rem 1.4rem;
}

.cookie__testo strong {
  display: block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.5rem;
}

.cookie__testo p {
  font-size: 0.87rem;
  line-height: 1.55;
  color: var(--muted);
}

.cookie__testo a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie__azioni {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

/* I due bottoni hanno lo stesso peso visivo: rifiutare deve essere
   facile quanto accettare, non un ripensamento nascosto. */
.cookie__azioni .btn {
  flex: 1;
}

.btn--sm {
  padding: 0.7rem 1.1rem;
  font-size: 0.85rem;
}

/* Con il banner aperto il pulsante WhatsApp sale, così restano
   entrambi cliccabili anche sui telefoni. */
body:has(.cookie:not([hidden])) .whatsapp-fab {
  bottom: calc(1.25rem + env(safe-area-inset-bottom) + 230px);
}

@media (min-width: 781px) {
  body:has(.cookie:not([hidden])) .whatsapp-fab {
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 780px) {
  .cookie {
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
  }

  .cookie__azioni {
    flex-direction: column-reverse;
  }
}

/* Tabella dei cookie nell'informativa: su schermi stretti scorre da sola
   invece di allargare la pagina. */
.legal__tabella {
  overflow-x: auto;
  margin: 1.6rem 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.legal__tabella table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal__tabella caption {
  padding: 0.9rem 1.1rem;
  text-align: left;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.legal__tabella th,
.legal__tabella td {
  padding: 0.8rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.legal__tabella th {
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--surface);
  white-space: nowrap;
}

.legal__tabella tbody tr:last-child td {
  border-bottom: none;
}

.legal__tabella td:first-child {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  color: var(--ink);
  white-space: nowrap;
}
