/* ── STOP – Jacopo Sabba Capetta ── */

:root {
  --ink: #1a1814;
  --ink-soft: #4a4540;
  --ink-faint: #9a958f;
  --cream: #f7f4ef;
  --cream-dark: #ede9e2;
  --cream-deep: #e0dbd2;
  --rust: #8b3a1e;
  --rust-light: #c4532a;
  --rust-pale: #f5e8e2;
  --serif: 'Libre Baskerville', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

/* Rispetta le preferenze di riduzione del movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── SKIP LINK per accessibilità ── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--rust);
  color: var(--cream);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 1000;
  font-weight: 500;
}
.skip-link:focus {
  top: 0;
}

/* ── FOCUS VISIBILE (WCAG 2.1) ── */
*:focus {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5vw;
  background: rgba(247,244,239,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--cream-deep);
}

.nav-brand {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .02em;
  color: var(--ink);
}

.nav-brand span {
  color: var(--rust);
}

.nav-cta {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--rust);
  border: 1px solid var(--rust);
  padding: 8px 20px;
  border-radius: 2px;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}

.nav-cta:hover,
.nav-cta:focus {
  background: var(--rust);
  color: var(--cream);
}

/* ── SECTIONS ── */
section {
  padding: 100px 5vw;
}

.container {
  max-width: 960px;
  margin: 0 auto;
}

.container-wide {
  max-width: 1120px;
  margin: 0 auto;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: 'STOP';
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(160px, 28vw, 380px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--cream-deep);
  right: -2vw;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  line-height: 1;
  letter-spacing: -.02em;
  user-select: none;
  aria-hidden: true;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--rust);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--rust);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 28px;
}

h1 em {
  font-style: italic;
  color: var(--rust);
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 44px;
}

.cta-primary {
  display: inline-block;
  background: var(--rust);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 18px 40px;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}

.cta-primary:hover,
.cta-primary:focus {
  background: var(--rust-light);
  transform: translateY(-1px);
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-faint);
  font-style: italic;
}

/* ── BANNER ── */
#banner {
  padding: 48px 5vw;
  background: var(--ink);
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
}

.banner-item {
  padding: 32px 28px;
  background: var(--ink);
  text-align: center;
}

.banner-num {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 8px;
}

.banner-num span {
  color: var(--rust-light);
}

.banner-label {
  font-size: 12px;
  font-weight: 400;
  color: rgba(247,244,239,.55);
  text-transform: uppercase;
  letter-spacing: .08em;
  line-height: 1.4;
}

/* ── SECTION LABELS ── */
.section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--rust);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--rust);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

h2 em {
  font-style: italic;
  color: var(--rust);
}

.lead {
  font-size: 18px;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 60px;
}

/* ── HOW IT WORKS ── */
#how {
  background: var(--cream-dark);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--cream-deep);
}

.step {
  background: var(--cream-dark);
  padding: 44px 36px;
  position: relative;
}

.step-num {
  font-family: var(--serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--cream-deep);
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.step-phase {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--rust);
  margin-bottom: 10px;
}

.step h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}

.step p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.step-duration {
  display: inline-block;
  margin-top: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  border: 1px solid var(--cream-deep);
  padding: 4px 12px;
  border-radius: 40px;
}

/* ── TESTIMONIALS ── */
#proof {
  background: var(--cream);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}

.testimonial {
  border: 1px solid var(--cream-deep);
  padding: 32px 28px;
  position: relative;
  background: var(--cream);
  transition: border-color .2s;
}

.testimonial:hover,
.testimonial:focus-within {
  border-color: var(--rust);
}

.testimonial::before {
  content: '\201C';
  font-family: var(--serif);
  font-size: 80px;
  color: var(--cream-deep);
  position: absolute;
  top: 16px;
  left: 22px;
  line-height: 1;
  pointer-events: none;
}

.testimonial-text {
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-meta {
  border-top: 1px solid var(--cream-deep);
  padding-top: 16px;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.testimonial-role {
  font-size: 12px;
  color: var(--ink-faint);
}

.testimonial-guidance {
  font-size: 11px;
  color: var(--rust);
  margin-top: 10px;
  font-style: italic;
  padding: 8px;
  background: var(--rust-pale);
  border-radius: 2px;
}

/* ── COMPARISON ── */
#comparison {
  background: var(--ink);
  color: var(--cream);
}

#comparison h2 {
  color: var(--cream);
}

#comparison .section-label {
  color: var(--rust-light);
}

#comparison .section-label::before {
  background: var(--rust-light);
}

#comparison .lead {
  color: rgba(247,244,239,.65);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
}

.comp-table th {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: rgba(247,244,239,.5);
}

.comp-table th.highlight {
  color: var(--cream);
}

.comp-table td {
  padding: 16px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(247,244,239,.65);
  vertical-align: top;
  line-height: 1.5;
}

.comp-table td:first-child {
  color: rgba(247,244,239,.45);
  font-size: 12px;
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.comp-table td.highlight {
  color: var(--cream);
  background: rgba(139,58,30,.15);
}

.comp-table th.highlight {
  background: rgba(139,58,30,.2);
}

.check {
  color: #6fcf97;
}

.cross {
  color: rgba(247,244,239,.25);
}

.partial {
  color: #f2c94c;
}

/* ── 8 REASONS ── */
#reasons {
  background: var(--cream-dark);
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--cream-deep);
  margin-top: 60px;
}

.reason {
  background: var(--cream-dark);
  padding: 32px 28px;
}

.reason-num {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 14px;
  display: block;
}

.reason h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.reason p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ── FAQ ── */
#faq {
  background: var(--cream);
}

.faq-list {
  margin-top: 56px;
}

.faq-item {
  border-top: 1px solid var(--cream-deep);
  padding: 28px 0;
}

.faq-item:last-child {
  border-bottom: 1px solid var(--cream-deep);
}

.faq-q {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.35;
  margin-bottom: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  background: none;
  border: none;
  color: var(--ink);
  width: 100%;
  text-align: left;
  padding: 0;
}

.faq-q::after {
  content: '+';
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--rust);
  flex-shrink: 0;
  margin-top: -2px;
  transition: transform .25s;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 700px;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* ── FINAL CTA ── */
#cta {
  background: var(--ink);
  text-align: center;
  padding: 120px 5vw;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: 'STOP';
  position: absolute;
  font-family: var(--serif);
  font-size: clamp(200px, 35vw, 500px);
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.04);
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
  white-space: nowrap;
}

#cta .container {
  position: relative;
  z-index: 2;
}

#cta .section-label {
  justify-content: center;
  color: var(--rust-light);
}

#cta .section-label::before {
  background: var(--rust-light);
}

#cta h2 {
  color: var(--cream);
  margin-bottom: 20px;
}

#cta .lead {
  color: rgba(247,244,239,.6);
  margin: 0 auto 48px;
}

#cta .cta-primary {
  font-size: 15px;
  padding: 20px 52px;
}

.cta-secondary {
  display: block;
  margin-top: 16px;
  font-size: 13px;
  color: rgba(247,244,239,.4);
  font-style: italic;
}

/* ── FOOTER ── */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 32px 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer p {
  font-size: 12px;
  color: rgba(247,244,239,.3);
}

footer a {
  color: rgba(247,244,239,.4);
  text-decoration: none;
  font-size: 12px;
}

footer a:hover,
footer a:focus {
  color: var(--rust-light);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .comp-table {
    font-size: 12px;
  }

  .comp-table th,
  .comp-table td {
    padding: 12px 10px;
  }

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

  #hero::before {
    font-size: 120px;
    opacity: .5;
  }
}

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

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

  nav {
    flex-direction: column;
    gap: 12px;
    padding: 16px 5vw;
  }
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Disabilita animazioni se l'utente ha preferenze reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
