:root {
  --navy: #1d2b4f;
  --navy-soft: #2c3e6b;
  --gold: #e8c872;
  --gold-deep: #b8923a;
  --paper: #f6f1e7;
  --card: #fffdf8;
  --line: #e2d9c6;
  --text: #1f2330;
  --muted: #5f6370;
  --stamp: #b3261e;
  --radius: 16px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  font-family: Georgia, 'Times New Roman', serif;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--navy-soft);
}

img {
  max-width: 100%;
}

.wrap {
  width: min(1100px, 100% - 32px);
  margin: 0 auto;
}

/* ---- Intestazione ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: #fff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo svg {
  width: 30px;
  height: 30px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: #d9ddea;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  color: #fff;
}

.site-nav .btn {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  padding: 0.5rem;
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 8px;
  background: none;
  color: #fff;
  font: inherit;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 16px 1rem;
    background: var(--navy);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
  }

  .site-nav .btn {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* ---- Bottoni ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgb(255 255 255 / 0.5);
}

.btn.dark {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0;
  color: #fff;
  background:
    radial-gradient(80% 60% at 85% 20%, rgb(232 200 114 / 0.18), transparent 60%),
    repeating-radial-gradient(circle at 80% 40%, transparent 0 18px, rgb(255 255 255 / 0.035) 18px 19px),
    var(--navy);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 3rem;
}

.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}

.hero p.lead {
  max-width: 34rem;
  margin-bottom: 1.75rem;
  font-size: 1.15rem;
  color: #d9ddea;
}

.hero.small .wrap {
  grid-template-columns: 1fr;
}

.hero.small h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* Copertina di passaporto disegnata in CSS, come nell'app */
.passport {
  position: relative;
  width: min(320px, 80vw);
  aspect-ratio: 5 / 7;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border-radius: 8px 22px 22px 8px;
  color: var(--gold);
  text-align: center;
  background:
    radial-gradient(120% 70% at 25% 10%, rgb(255 255 255 / 0.13), transparent 60%),
    radial-gradient(90% 80% at 85% 110%, rgb(0 0 0 / 0.35), transparent 65%),
    repeating-linear-gradient(35deg, rgb(255 255 255 / 0.03) 0 1px, transparent 1px 3px),
    #6b1e2c;
  box-shadow:
    inset 14px 0 16px -12px rgb(0 0 0 / 0.6),
    0 30px 60px rgb(0 0 0 / 0.35);
  transform: rotate(-6deg);
}

.passport::before {
  content: '';
  position: absolute;
  inset: 14px 14px 14px 22px;
  border: 1.5px solid rgb(232 200 114 / 0.55);
  border-radius: 4px 12px 12px 4px;
}

.passport svg {
  width: 38%;
}

.passport strong {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.passport span {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.stamp-mark {
  position: absolute;
  right: -30px;
  bottom: 40px;
  width: 130px;
  height: 130px;
  display: grid;
  place-items: center;
  border: 4px double var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  background: rgb(246 241 231 / 0.92);
  transform: rotate(14deg);
}

/* ---- Sezioni ---- */

section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.alt {
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.alt .card {
  background: var(--paper);
}

.card h3 {
  font-size: 1.25rem;
}

.card p {
  color: var(--muted);
}

.card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 3px double var(--stamp);
  border-radius: 50%;
  color: var(--stamp);
  font-size: 1.4rem;
  transform: rotate(-8deg);
}

.audience {
  border-top: 5px solid var(--navy);
}

.audience.gold {
  border-top-color: var(--gold);
}

.audience.red {
  border-top-color: var(--stamp);
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.steps li {
  position: relative;
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: 1.25rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
}

.steps h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.steps p {
  color: var(--muted);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.checklist li {
  display: flex;
  gap: 0.75rem;
}

.checklist li::before {
  content: '✓';
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6f3e7;
  color: #2e7d32;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

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

/* ---- Invito finale ---- */

.cta {
  text-align: center;
  color: #fff;
  background: var(--navy);
}

.cta h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.cta p {
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  color: #d9ddea;
}

.cta .actions {
  justify-content: center;
}

/* ---- Piè di pagina ---- */

footer {
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
