:root {
  --aubergine: #2c1833;
  --aubergine-2: #42234b;
  --gold: #b88a45;
  --gold-light: #d8b16c;
  --ivory: #f7eee1;
  --paper: #fbf6ef;
  --ink: #332638;
  --muted: #725f70;
  --lavender: #9f7f9e;
  --line: rgba(131, 91, 63, .22);
  --shadow: 0 24px 70px rgba(43, 24, 51, .14);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 5%, rgba(216,177,108,.11), transparent 25rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 9999;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: #fff;
  color: var(--aubergine);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(780px, calc(100% - 40px)); margin-inline: auto; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 .85rem;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow::before,
.eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .75; }
.eyebrow.left::before { display: none; }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 6.5vw, 6.8rem); line-height: .92; letter-spacing: -.035em; }
h2 { font-size: clamp(2.25rem, 4.2vw, 4.4rem); line-height: 1.04; letter-spacing: -.025em; }
h3 { font-size: 1.55rem; line-height: 1.2; }
.lead { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.45; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.center { text-align: center; }
.section { position: relative; padding: clamp(5rem, 9vw, 8rem) 0; }

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  display: flex;
  align-items: center;
  background: rgba(251,246,239,.9);
  border-bottom: 1px solid rgba(184,138,69,.15);
  backdrop-filter: blur(16px);
  transition: height .25s ease, box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { height: 74px; box-shadow: 0 10px 35px rgba(44,24,51,.08); }
.header-inner { width: min(1280px, calc(100% - 36px)); margin: auto; display: flex; align-items: center; justify-content: space-between; }
.brand { flex: 0 0 auto; text-decoration: none; }
.brand img { width: 238px; height: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(1.2rem, 2vw, 2.3rem); margin: 0; padding: 0; list-style: none; }
.nav-link { position: relative; text-decoration: none; color: var(--aubergine); font-family: var(--serif); font-size: .98rem; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.45rem; height: 1px; background: var(--gold); transition: right .25s ease; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { right: 0; }
.nav-coming { display: inline-flex; align-items: center; gap: .45rem; }
.nav-coming small { padding: .12rem .35rem; border: 1px solid rgba(184,138,69,.45); border-radius: 99px; color: var(--gold); font: 600 .55rem/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; }
.header-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  min-height: 50px;
  padding: .82rem 1.45rem;
  border: 1px solid transparent;
  border-radius: 2px;
  background: var(--aubergine);
  color: #fff9f0;
  font-family: var(--serif);
  font-size: .96rem;
  letter-spacing: .055em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover, .header-cta:hover { transform: translateY(-2px); background: var(--aubergine-2); box-shadow: 0 12px 30px rgba(44,24,51,.18); }
.button.gold-button { background: var(--gold); color: var(--aubergine); }
.button.ghost { background: transparent; border-color: rgba(44,24,51,.28); color: var(--aubergine); }
.button.light-ghost { background: transparent; border-color: rgba(255,255,255,.42); color: #fff; }
.menu-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 0; background: transparent; color: var(--aubergine); cursor: pointer; }
.menu-toggle span { display: block; width: 25px; height: 1px; margin: 6px auto; background: currentColor; transition: transform .25s, opacity .25s; }
.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  min-height: min(900px, 100vh);
  padding-top: 88px;
  display: grid;
  align-items: center;
  background: var(--ivory);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 88px 0 0;
  background: linear-gradient(90deg, rgba(251,246,239,.98) 0%, rgba(251,246,239,.9) 30%, rgba(251,246,239,.12) 62%, transparent 100%), url("../images/hero-tempio.webp") 66% center/cover no-repeat;
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 15%; background: linear-gradient(transparent, rgba(251,246,239,.35)); pointer-events: none; }
.hero-content { position: relative; z-index: 1; width: min(660px, 53%); padding: clamp(4rem, 8vh, 7rem) 0; }
.hero-symbol { width: 72px; height: 72px; margin-bottom: 1rem; color: var(--gold); }
.hero h1 { color: var(--aubergine); margin-bottom: 1.35rem; }
.hero .lead { max-width: 580px; margin-bottom: 1.65rem; color: #5a3e4d; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-note { margin: 1.2rem 0 0; font-size: .86rem; color: var(--muted); }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 1.6rem; transform: translateX(-50%); display: grid; justify-items: center; color: var(--aubergine); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue span { display: block; width: 1px; height: 35px; margin-top: .55rem; background: linear-gradient(var(--gold), transparent); }

.intro { background: var(--paper); }
.intro-head { max-width: 830px; margin: 0 auto 3.5rem; text-align: center; }
.intro-head h2 { margin-bottom: 1.25rem; color: var(--aubergine); }
.threshold-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.threshold { padding: 2.3rem 1.6rem; text-align: center; border-left: 1px solid var(--line); }
.threshold:first-child { border-left: 0; }
.threshold-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 1rem; border: 1px solid rgba(184,138,69,.5); border-radius: 50%; color: var(--gold); font: 1.7rem var(--serif); }
.threshold h3 { margin-bottom: .55rem; color: var(--aubergine); }
.threshold p { margin-bottom: 0; color: var(--muted); font-size: .94rem; }

.manifesto { padding: 0; background: var(--ivory); overflow: hidden; }
.manifesto-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 680px; }
.manifesto-image { background: linear-gradient(90deg, transparent 75%, var(--ivory)), url("../images/soglia-tempio.webp") center/cover no-repeat; }
.manifesto-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 7vw, 7rem); }
.manifesto-copy h2 { margin-bottom: 1.3rem; color: var(--aubergine); }
.manifesto-copy p { max-width: 580px; }

.needs { background: var(--aubergine); color: #f9f1e7; }
.needs::before { content: ""; position: absolute; inset: 0; opacity: .18; background: radial-gradient(circle at 10% 20%, var(--lavender), transparent 27%), radial-gradient(circle at 88% 80%, var(--gold), transparent 20%); }
.needs .container { position: relative; }
.needs-head { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 3rem; }
.needs h2 { margin-bottom: 0; }
.needs-head p { margin: 0; color: #d9cad5; }
.needs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(216,177,108,.24); border: 1px solid rgba(216,177,108,.24); }
.need-card { min-height: 230px; padding: 2rem; background: rgba(44,24,51,.88); }
.need-no { color: var(--gold-light); font: italic 1rem var(--serif); }
.need-card h3 { margin: 1.5rem 0 .6rem; color: #fff; }
.need-card p { margin: 0; color: #cfbecb; font-size: .93rem; }

.how { background: var(--paper); }
.how-head { max-width: 720px; margin-bottom: 3rem; }
.how-head h2 { color: var(--aubergine); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.35rem; }
.step { position: relative; padding: 2.3rem; background: #fffaf3; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(44,24,51,.04); }
.step-no { display: block; margin-bottom: 2rem; color: var(--gold); font: 2.7rem var(--serif); }
.step h3 { color: var(--aubergine); }
.step p { margin-bottom: 0; color: var(--muted); }

.paths-preview { background: linear-gradient(135deg, #efe2d2, #f9f4ec); }
.paths-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.paths-copy h2 { color: var(--aubergine); }
.coming-badge { display: inline-block; margin-bottom: 1.5rem; padding: .38rem .75rem; border: 1px solid var(--gold); border-radius: 99px; color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.path-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.path-card { position: relative; min-height: 175px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; border: 1px solid rgba(184,138,69,.3); background: rgba(255,255,255,.5); }
.path-card::after { content: "Presto"; position: absolute; top: 1rem; right: 1rem; padding: .25rem .5rem; background: rgba(44,24,51,.07); color: var(--aubergine); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.path-card-icon { position: absolute; top: 1rem; left: 1rem; color: var(--gold); font: 2rem var(--serif); }
.path-card h3 { margin-bottom: .3rem; color: var(--aubergine); }
.path-card p { margin: 0; color: var(--muted); font-size: .87rem; }

.origin { background: var(--paper); }
.origin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.origin-mark { position: relative; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: radial-gradient(circle, rgba(216,177,108,.24), rgba(216,177,108,.03) 57%, transparent 58%); }
.origin-mark::before, .origin-mark::after { content: ""; position: absolute; inset: 11%; border: 1px solid rgba(184,138,69,.2); border-radius: 50%; }
.origin-mark::after { inset: 23%; }
.origin-mark span { color: var(--gold); font: clamp(4rem, 11vw, 8rem) var(--serif); }
.origin-copy h2 { color: var(--aubergine); }

.join { padding: clamp(5rem, 9vw, 8rem) 0; background: var(--aubergine); color: #fff; }
.join-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 8rem); align-items: start; }
.join h2 { color: #fff; }
.join p { color: #d8c9d4; }
.interest-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field.full { grid-column: 1 / -1; }
.field label { color: #f4e9f1; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid rgba(216,177,108,.4);
  border-radius: 2px;
  padding: .9rem 1rem;
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; color-scheme: dark; background-image: linear-gradient(45deg, transparent 50%, var(--gold-light) 50%), linear-gradient(135deg, var(--gold-light) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field select option { color: var(--ink); background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #bdaeb9; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(216,177,108,.12); }
.check { grid-column: 1 / -1; display: flex; gap: .75rem; align-items: flex-start; color: #cfbecb; font-size: .83rem; }
.check input { margin-top: .27rem; accent-color: var(--gold); }
.check a { color: var(--gold-light); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { margin: 0; color: var(--gold-light); font-size: .88rem; }

.page-hero { min-height: 520px; padding: 160px 0 90px; display: grid; align-items: center; color: #fff; background: linear-gradient(90deg, rgba(44,24,51,.97), rgba(44,24,51,.65)), url("../images/soglia-tempio.webp") center/cover no-repeat; }
.page-hero h1 { max-width: 850px; margin-bottom: 1.3rem; font-size: clamp(3.2rem, 7vw, 6.2rem); }
.page-hero .lead { max-width: 720px; color: #eadde6; }
.page-hero .eyebrow { color: var(--gold-light); }
.page-content { background: var(--paper); }
.content-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 8vw, 9rem); }
.content-aside { color: var(--gold); font: italic 1.4rem/1.5 var(--serif); }
.prose h2 { margin: 2.8rem 0 1rem; font-size: clamp(2rem, 3vw, 3rem); color: var(--aubergine); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #5d4d5c; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.value { padding: 1.5rem; border: 1px solid var(--line); background: #fffaf4; }
.value h3 { color: var(--aubergine); }

.coming-page { min-height: 100vh; padding: 150px 0 80px; display: grid; align-items: center; background: linear-gradient(90deg, rgba(251,246,239,.97) 0%, rgba(251,246,239,.82) 45%, rgba(251,246,239,.08) 75%), url("../images/hero-tempio.webp") 64% center/cover no-repeat; }
.coming-panel { max-width: 640px; }
.coming-panel h1 { margin-bottom: 1rem; color: var(--aubergine); }
.coming-panel .lead { color: #604b5a; }
.coming-note { padding: 1.3rem 1.5rem; margin: 2rem 0; border-left: 2px solid var(--gold); background: rgba(255,255,255,.65); }

.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 2.5rem; }
.team-card { padding: 2rem; border: 1px solid var(--line); background: #fffaf4; }
.team-card .initial { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 1.2rem; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font: 1.5rem var(--serif); }
.team-card h3 { margin-bottom: .2rem; color: var(--aubergine); }
.team-card .role { color: var(--gold); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }

.thank-you { min-height: 100vh; padding: 140px 0 80px; display: grid; place-items: center; text-align: center; background: var(--ivory); }
.thank-you-card { max-width: 680px; padding: 3rem; border: 1px solid var(--line); background: rgba(255,255,255,.72); box-shadow: var(--shadow); }
.thank-you h1 { color: var(--aubergine); font-size: clamp(3rem, 7vw, 5.5rem); }

.site-footer { padding: 3rem 0 1.5rem; background: #211127; color: #d5c6d1; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 3rem; align-items: start; }
.footer-brand img { width: 235px; margin-bottom: 1rem; }
.footer-brand p { max-width: 440px; font-size: .9rem; }
.footer-title { margin-bottom: .8rem; color: var(--gold-light); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #d5c6d1; text-decoration: none; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .76rem; color: #a996a4; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].visible { opacity: 1; transform: none; }

@media (max-width: 1020px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; position: relative; z-index: 1002; }
  .site-nav { position: fixed; z-index: 1001; inset: 0; display: grid; place-items: center; padding: 90px 24px 40px; background: rgba(247,238,225,.98); transform: translateX(100%); transition: transform .3s ease; }
  .nav-open .site-nav { transform: none; }
  .nav-list { flex-direction: column; gap: 1.8rem; }
  .nav-link { font-size: 1.6rem; }
  .nav-coming small { font-size: .62rem; }
  .hero-content { width: min(620px, 67%); }
  .threshold-grid { grid-template-columns: repeat(2, 1fr); }
  .threshold:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .threshold:nth-child(4) { border-top: 1px solid var(--line); }
  .needs-grid { grid-template-columns: repeat(2, 1fr); }
  .paths-wrap, .origin-grid, .join-grid { grid-template-columns: 1fr; }
  .origin-mark { max-width: 430px; }
}

@media (max-width: 760px) {
  .container, .narrow { width: min(100% - 28px, 1180px); }
  .site-header, .site-header.scrolled { height: 72px; }
  .brand img { width: 190px; }
  .hero { min-height: 780px; padding-top: 72px; align-items: end; }
  .hero::before { inset: 72px 0 0; background: linear-gradient(0deg, rgba(251,246,239,.99) 0%, rgba(251,246,239,.91) 40%, rgba(251,246,239,.08) 70%), url("../images/hero-tempio.webp") 69% top/auto 58% no-repeat, var(--ivory); }
  .hero-content { width: 100%; padding: 23rem 0 5rem; }
  .hero-symbol { width: 55px; height: 55px; }
  .hero h1 { font-size: clamp(3.3rem, 15vw, 5rem); }
  .hero .lead { font-size: 1.15rem; }
  .scroll-cue { display: none; }
  .threshold-grid, .needs-grid, .steps, .needs-head, .manifesto-grid, .content-grid, .footer-grid { grid-template-columns: 1fr; }
  .threshold { border-left: 0; border-top: 1px solid var(--line); }
  .threshold:first-child { border-top: 0; }
  .manifesto-image { min-height: 440px; background: linear-gradient(0deg, var(--ivory), transparent 25%), url("../images/soglia-tempio.webp") 40% center/cover no-repeat; }
  .manifesto-copy { padding: 3.5rem 1.4rem 5rem; }
  .needs-head { align-items: start; }
  .path-cards, .values, .team-grid { grid-template-columns: 1fr; }
  .interest-form { grid-template-columns: 1fr; }
  .field.full, .check, .form-actions { grid-column: auto; }
  .page-hero { min-height: 500px; padding: 130px 0 70px; }
  .coming-page { padding-top: 120px; background: linear-gradient(0deg, rgba(251,246,239,.99) 0%, rgba(251,246,239,.89) 55%, rgba(251,246,239,.3) 100%), url("../images/hero-tempio.webp") 68% top/auto 58% no-repeat, var(--ivory); }
  .coming-panel { padding-top: 16rem; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
