@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&display=swap');

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

:root {
  --bg: #f2f4f7;
  --bg-card: #ffffff;
  --text: #020205;
  --text-secondary: #555566;
  --text-hint: #888899;
  --accent: #111129;
  --border: #d2d9e4;
  --border-light: #e8ebf0;
  --white: #ffffff;
  --black: #000000;
  --green: #1a7a4c;
  --green-bg: #e6f5ed;
  --yellow: #b8860b;
  --yellow-bg: #fef9e7;
  --red: #c0392b;
  --red-bg: #fdf0ef;
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 720px;
  --max-w-wide: 960px;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: var(--max-w-wide); margin: 0 auto; padding: 0 24px; }

/* ── NAVBAR ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--accent);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
}
.nav__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem; color: var(--white);
  text-decoration: none; letter-spacing: -0.01em;
}
.nav__links { display: flex; gap: 8px; }
.nav__link {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.875rem; font-weight: 450;
  padding: 6px 14px; border-radius: 6px;
  transition: all 0.2s ease;
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,0.08); }

/* ── HERO ── */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}
.hero__badge {
  display: inline-block;
  font-size: 0.8125rem; font-weight: 500;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15; font-weight: 400;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.hero__subtitle {
  font-size: 1.125rem; line-height: 1.7;
  color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 40px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9375rem; font-weight: 500;
  padding: 14px 32px; border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer; border: none;
}
.btn--primary {
  background: var(--accent); color: var(--white);
  box-shadow: 0 1px 3px rgba(17,17,41,0.12);
}
.btn--primary:hover {
  background: #1a1a3e;
  box-shadow: 0 4px 12px rgba(17,17,41,0.2);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent; color: var(--accent);
  border: 1.5px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  background: var(--white);
}
.btn--sm { padding: 10px 22px; font-size: 0.875rem; }

.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── SECTIONS ── */
.section { padding: 64px 0; }
.section--bordered { border-top: 1px solid var(--border); }

.section__label {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-hint); margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2; color: var(--accent);
  margin-bottom: 16px; letter-spacing: -0.01em;
}
.section__text {
  font-size: 1rem; line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
}
.section__text--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem;
  margin-bottom: 16px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 1.25rem; color: var(--accent);
  margin-bottom: 10px;
}
.card__text {
  font-size: 0.9375rem; line-height: 1.6;
  color: var(--text-secondary);
}

.card-grid { display: grid; gap: 16px; }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ── STEPS ── */
.steps { counter-reset: step; }
.step {
  display: flex; gap: 20px;
  padding: 24px 0;
}
.step + .step { border-top: 1px solid var(--border-light); }
.step__number {
  counter-increment: step;
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; font-weight: 600;
}
.step__number::before { content: counter(step); }
.step__content { flex: 1; }
.step__title { font-weight: 600; margin-bottom: 4px; }
.step__text { font-size: 0.9375rem; color: var(--text-secondary); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 0; border: none; }

/* ── CTA SECTION ── */
.cta-section {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
}
.cta-section__title {
  font-family: var(--font-display);
  font-size: 1.375rem; color: var(--accent);
  margin-bottom: 12px;
}
.cta-section__text {
  font-size: 0.9375rem; color: var(--text-secondary);
  margin-bottom: 24px; max-width: 480px; margin-left: auto; margin-right: auto;
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 64px;
}
.footer__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto; padding: 0 24px;
}
.footer__top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 32px;
  margin-bottom: 32px;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.125rem; color: var(--accent);
  margin-bottom: 8px;
}
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__link {
  font-size: 0.8125rem; color: var(--text-secondary);
  text-decoration: none;
}
.footer__link:hover { color: var(--accent); }
.footer__legal {
  font-size: 0.75rem; color: var(--text-hint);
  line-height: 1.6;
}
.footer__legal p { margin-bottom: 4px; }

/* ── DISCLAIMER ── */
.disclaimer {
  font-size: 0.8125rem; color: var(--text-hint);
  font-style: italic; line-height: 1.6;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
  margin-top: 48px;
}

/* ── HIGHLIGHT BOX ── */
.highlight {
  background: var(--white);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.highlight__title { font-weight: 600; margin-bottom: 6px; }
.highlight__text { font-size: 0.9375rem; color: var(--text-secondary); }

/* ── PRICE TAG ── */
.price {
  font-family: var(--font-display);
  font-size: 2rem; color: var(--accent);
  letter-spacing: -0.02em;
}
.price__label {
  font-family: var(--font-body);
  font-size: 0.875rem; color: var(--text-hint);
  font-weight: 400;
}

/* ── SEMAFORI (per report) ── */
.semaforo { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; }
.semaforo--verde { background: var(--green-bg); color: var(--green); }
.semaforo--giallo { background: var(--yellow-bg); color: var(--yellow); }
.semaforo--rosso { background: var(--red-bg); color: var(--red); }

.semaforo-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.semaforo-dot--verde { background: var(--green); }
.semaforo-dot--giallo { background: var(--yellow); }
.semaforo-dot--rosso { background: var(--red); }

/* ── PUNTEGGIO ── */
.punteggio {
  font-family: var(--font-display);
  font-size: 4rem; line-height: 1;
  letter-spacing: -0.03em;
}
.punteggio--alto { color: var(--green); }
.punteggio--medio { color: var(--yellow); }
.punteggio--basso { color: var(--red); }
.punteggio__label { font-family: var(--font-body); font-size: 0.875rem; color: var(--text-hint); font-weight: 400; }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  padding: 20px 24px;
  display: none;
}
.cookie-banner.active { display: block; }
.cookie-banner__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.cookie-banner__text {
  font-size: 0.8125rem; color: var(--text-secondary);
  line-height: 1.5; flex: 1; min-width: 280px;
}
.cookie-banner__text a { color: var(--accent); }
.cookie-banner__actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-banner__btn {
  font-family: var(--font-body);
  font-size: 0.8125rem; font-weight: 500;
  padding: 8px 20px; border-radius: 6px;
  cursor: pointer; border: 1.5px solid var(--border);
  transition: all 0.15s ease;
}
.cookie-banner__btn--accept {
  background: var(--accent); color: var(--white); border-color: var(--accent);
}
.cookie-banner__btn--reject {
  background: transparent; color: var(--text-secondary);
}
.cookie-banner__btn:hover { opacity: 0.85; }

/* ── LEGAL PAGES ── */
.legal h2 { font-family: var(--font-display); font-size: 1.375rem; color: var(--accent); margin: 40px 0 16px; }
.legal h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 8px; }
.legal p { margin-bottom: 12px; }
.legal ul { margin: 8px 0 16px 24px; }
.legal li { margin-bottom: 6px; font-size: 0.9375rem; color: var(--text-secondary); }
.legal a { color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero { padding: 56px 0 48px; }
  .card { padding: 24px; }
  .step { flex-direction: column; gap: 12px; }
  .nav__links { gap: 4px; }
  .nav__link { padding: 6px 10px; font-size: 0.8125rem; }
  .footer__top { flex-direction: column; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__btn { flex: 1; text-align: center; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
