/* ═══════════════════════════════════════════════════════════
   THE SEO STANDARD — STYLESHEET
   Aesthetic: Editorial / Typographic Premium
   Fonts: Playfair Display (serif display) + DM Sans (body)
   Palette: Off-white · Near-black · Warm amber accent
═══════════════════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --ink:        #111010;
  --ink-soft:   #3d3b38;
  --ink-muted:  #7a776f;
  --paper:      #f7f4ef;
  --paper-warm: #ede9e1;
  --paper-deep: #e2ddd5;
  --accent:     #f9ba25;
  --accent-light: #e8a85a;
  --accent-bg:  #fdf3e6;
  --white:      #ffffff;
  --border:     #d9d4cb;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius:   4px;
  --radius-lg: 8px;

  --max-w: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── UTILITY ─────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-header {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 560px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--primary:hover { background: var(--ink-soft); border-color: var(--ink-soft); }

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--accent:hover { background: #b3671f; border-color: #b3671f; }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn--outline:hover { border-color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn--ghost:hover { color: var(--ink); }

.btn--large { font-size: 1rem; padding: 0.9rem 1.85rem; }

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}

.breadcrumb ol {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  list-style: none;
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.breadcrumb li:not(:last-child)::after { content: ' /'; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  padding-top: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  position: relative;
}

.hero__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.hero__body {
  font-size: 1rem;
  color: var(--ink-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Book cover */
.hero__book {
  flex-shrink: 0;
}

.hero__book img {
  filter: drop-shadow(0px 18px 16px rgba(0, 0, 0, 0.18))
          drop-shadow(0px 6px 6px rgba(0, 0, 0, 0.10));
}

.book-cover {
  position: relative;
  width: clamp(240px, 30vw, 360px);
  max-width: 100%;
}

.book-cover img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.book-cover:hover img {
  transform: translateY(-4px) rotate(-1deg);
}

.hero__rule {
  max-width: var(--max-w);
  margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  padding-inline: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--border) 50%, transparent 100%);
}

/* ── STATEMENT ───────────────────────────────────────────── */
.statement {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
  color: var(--ink-soft);
}

.statement__text em {
  font-style: italic;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

/* ── LEARN ───────────────────────────────────────────────── */
.learn {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.learn .section-header {
  max-width: 100%;
}

.learn__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.learn-card {
  background: var(--paper);
  padding: 1.75rem;
  border: none;
  transition: background 0.2s;
}

.learn-card:hover { background: var(--white); }

.learn-card__number {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.learn-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.learn-card__body {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.learn-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.learn-card__tags li {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  background: var(--paper-warm);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  border: 1px solid var(--border);
}

/* ── PREVIEW BAND ─────────────────────────────────────────── */
.preview-band {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--ink);
  color: var(--paper);
}

.preview-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.preview-band .section-label { color: var(--accent-light); }

.preview-band__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.preview-band__text p {
  color: #a09d97;
  max-width: 480px;
  font-size: 0.95rem;
}

/* ── FORMATS ─────────────────────────────────────────────── */
.formats {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.formats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.format-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.format-card:hover {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--paper-deep);
}

.format-card--featured {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.format-card--featured:hover {
  border-color: var(--accent);
  box-shadow: 4px 4px 0 #e8c99a;
}

.format-card__badge {
  position: absolute;
  top: -1px;
  right: 1.25rem;
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.format-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.875rem;
  color: var(--ink-muted);
}

.format-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.format-card__price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.format-card__desc {
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.format-card__features {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.format-card__features li {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-family: var(--font-mono);
}

.format-card .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

/* ── WHY ─────────────────────────────────────────────────── */
.why {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.why__text .section-label { margin-bottom: 0.75rem; }

.why__text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.why__text p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 560px;
}

.why__stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex-shrink: 0;
  padding-top: 3.5rem;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.stat__number sup {
  font-size: 1.5rem;
  vertical-align: super;
}

.stat__label {
  display: block;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--ink-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

/* ── AUTHOR ──────────────────────────────────────────────── */
.author {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.author__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  border-top: 1.5px solid var(--border);
  padding-top: clamp(2rem, 4vw, 3rem);
}

/* Colonna sinistra: foto sopra, meta sotto */
.author__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.author__photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--border);
  display: block;
}

.author__left > .section-label {
  margin-bottom: 0.5rem;
}

.author__meta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 0.375rem;
  line-height: 1.1;
}

.author__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}

/* Colonna destra: bio */
.author__bio p {
  font-size: 0.97rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.author__bio em {
  font-style: italic;
  color: var(--ink);
}

.author__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.author__link:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
  .author__inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .author__left {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .author__photo img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }
}

/* ── FAQ ─────────────────────────────────────────────────── */
.faq {
  padding: clamp(3rem, 7vw, 6rem) 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--border);
}

.faq .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq .section-header {
  margin-bottom: 2.5rem;
  margin-inline: auto;
  text-align: center;
  width: 100%;
  max-width: 860px;
}

.faq__list {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child { border-bottom: none; }

.faq-item__question {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s;
  color: var(--ink);
}

.faq-item__question::-webkit-details-marker { display: none; }

.faq-item__question::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--ink-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] .faq-item__question { background: var(--white); }
.faq-item[open] .faq-item__question::after {
  content: '−';
  color: var(--accent);
}

.faq-item:hover .faq-item__question { background: var(--white); }

.faq-item__answer {
  padding: 0 1.5rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--paper-deep);
}

.faq-item__answer p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 1rem;
}

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

/* ── FINAL CTA ───────────────────────────────────────────── */
.final-cta {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--border);
}

.final-cta__inner {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.final-cta__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.final-cta p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 2rem;
}

.final-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 2.5rem 0 1.5rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #2a2825;
}

.footer__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.footer__author {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #706d67;
}

.footer__author a { color: var(--accent-light); text-decoration: none; }
.footer__author a:hover { text-decoration: underline; }

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #706d67;
  text-decoration: none;
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--paper); }

.footer__bottom {
  padding-top: 1.25rem;
}

.footer__bottom p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #4a4843;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow,
.hero__title,
.hero__subtitle,
.hero__body,
.hero__cta-group {
  animation: fadeUp 0.6s ease both;
}

.hero__eyebrow  { animation-delay: 0.05s; }
.hero__title    { animation-delay: 0.1s; }
.hero__subtitle { animation-delay: 0.18s; }
.hero__body     { animation-delay: 0.24s; }
.hero__cta-group { animation-delay: 0.32s; }

.hero__book {
  animation: fadeUp 0.7s ease 0.15s both;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__book {
    order: -1;
  }

  .book-cover {
    width: clamp(192px, 48vw, 264px);
    max-width: 100%;
  }

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

  .why__stats {
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 0;
    gap: 2rem 3rem;
  }

}

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

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

  .preview-band__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ── PRINT ───────────────────────────────────────────────── */
@media print {
  .btn, .breadcrumb { display: none; }
  body { background: white; color: black; }
}
