/* EquiPro — pagina iniziale (landing). */
:root {
  --green:      #2A5C3F;
  --green-ink:  #1A2E1F;
  --green-deep: #14241A;
  --gold:       #C9A84C;
  --gold-soft:  #D9C08A;
  --cream:      #F5F0E8;
  --paper:      #FBF8F2;
  --line:       #DDD3C2;
  --muted:      #7A6E5F;
  --ink:        #22201B;
  --leather:    #6E4B33;
  --leather-dk: #5A3C28;
  --sans:  'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --serif: 'Cormorant Garamond', Garamond, Georgia, serif;
  --ease:  cubic-bezier(.2, .7, .2, 1);
  --gutter: clamp(20px, 5vw, 72px);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); font-weight: 400; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.eyebrow {
  font-family: var(--sans); font-weight: 400; font-size: 11.5px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted);
}
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }

/* ── bottoni ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 26px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
  white-space: nowrap;
}
.btn-leather { background: var(--leather); color: var(--cream); }
.btn-leather:hover { background: var(--leather-dk); }
.btn-cream { background: var(--cream); color: var(--green-ink); }
.btn-cream:hover { background: #fff; }
.btn-line { border: 1px solid rgba(245, 240, 232, .55); color: var(--cream); }
.btn-line:hover { border-color: var(--cream); background: rgba(245, 240, 232, .08); }
.btn-sm { height: 38px; padding: 0 20px; font-size: 12.5px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.link-arrow span { transition: transform .35s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ── barra in alto ───────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 78px; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: var(--cream);
  transition: background .45s var(--ease), color .45s var(--ease), height .45s var(--ease), box-shadow .45s var(--ease);
}
.nav.is-solid {
  height: 66px; color: var(--green-ink);
  background: rgba(251, 248, 242, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; }
.brand { gap: 14px; }
.brand-mark { height: 46px; width: auto; flex: none; transition: height .45s var(--ease); }
.brand-mark.is-dark { display: none; }
.nav.is-solid .brand-mark.is-light { display: none; }
.nav.is-solid .brand-mark.is-dark { display: block; }
.nav.is-solid .brand-mark { height: 38px; }
.brand-name { font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: .03em; line-height: 1; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .82;
  position: relative; padding: 6px 0; transition: opacity .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 10px; justify-self: end; }
.nav.is-solid .btn-line { border-color: rgba(26, 46, 31, .35); color: var(--green-ink); }
.nav.is-solid .btn-line:hover { border-color: var(--green-ink); background: transparent; }
.nav.is-solid .btn-cream { background: var(--green-ink); color: var(--cream); }
.nav.is-solid .btn-cream:hover { background: var(--green); }

/* ── apertura ────────────────────────────────────────── */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px;
  display: grid; place-items: center; text-align: center;
  color: var(--cream); overflow: hidden; background: var(--green-deep);
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.12); animation: slowzoom 16s var(--ease) forwards;
}
@keyframes slowzoom { to { transform: scale(1); } }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, rgba(20, 36, 26, .25) 0%, rgba(20, 36, 26, .72) 70%),
    linear-gradient(to bottom, rgba(20, 36, 26, .55) 0%, rgba(20, 36, 26, .15) 35%, rgba(20, 36, 26, .80) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 0 var(--gutter); max-width: 980px; }
.hero .eyebrow {
  color: var(--gold-soft); display: inline-flex; align-items: center; gap: 16px;
}
.hero .eyebrow::before, .hero .eyebrow::after {
  content: ""; width: 34px; height: 1px; background: currentColor; opacity: .6;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(52px, 8.2vw, 124px); line-height: 1; letter-spacing: -.01em;
  margin: 28px 0 26px;
}
.hero h1 em { display: block; font-style: italic; color: var(--gold-soft); }
.hero-lead {
  font-size: clamp(15px, 1.35vw, 18px); font-weight: 300; line-height: 1.65;
  max-width: 560px; margin: 0 auto; color: rgba(245, 240, 232, .88);
}
.hero-cta { margin-top: 40px; display: flex; gap: 28px; justify-content: center; align-items: center; flex-wrap: wrap; }
.hero-cta .link-arrow { color: var(--cream); }
.hero-foot {
  position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: 30px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(245, 240, 232, .6);
}
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 46px; background: rgba(245, 240, 232, .25); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--cream); animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }

/* comparsa in sequenza dell'apertura */
.hero .rise { opacity: 0; transform: translateY(18px); animation: rise 1.2s var(--ease) forwards; }
.hero .rise:nth-child(2) { animation-delay: .15s; }
.hero .rise:nth-child(3) { animation-delay: .3s; }
.hero .rise:nth-child(4) { animation-delay: .45s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── sezioni ─────────────────────────────────────────── */
section.block { padding: clamp(90px, 12vw, 160px) 0; }

.intro { text-align: center; }
.intro h2 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.005em;
  font-size: clamp(34px, 4.8vw, 64px); line-height: 1.12;
  max-width: 920px; margin: 26px auto 28px; color: var(--green-ink);
}
.intro h2 em { font-style: italic; color: var(--leather); }
.intro p:not(.eyebrow) { max-width: 600px; margin: 0 auto; color: var(--muted); font-weight: 300; font-size: 17px; line-height: 1.75; }
.rule { width: 1px; height: 64px; background: var(--line); margin: 56px auto 0; }

/* tre profili */
.profiles { padding-top: 0; }
.profiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.profile { display: flex; flex-direction: column; }
.profile-photo { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--cream); }
.profile-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04); transition: transform 1.6s var(--ease);
}
.profile:hover .profile-photo img { transform: scale(1.09); }
.profile-tag {
  position: absolute; left: 18px; top: 18px;
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream); background: rgba(20, 36, 26, .55); padding: 7px 11px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.profile h3 {
  font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.1; color: var(--green-ink);
  margin: 28px 0 12px;
}
.profile > p { color: var(--muted); font-weight: 300; line-height: 1.7; font-size: 15.5px; }
.profile ul { list-style: none; margin: 22px 0 26px; }
.profile li {
  font-size: 14px; padding: 11px 0; border-top: 1px solid var(--line);
  display: flex; gap: 12px; align-items: baseline;
}
.profile li::before { content: "—"; color: var(--gold); }
.profile .link-arrow { margin-top: auto; align-self: flex-start; color: var(--green-ink); }

/* fascia fotografica */
.band {
  position: relative; height: 82vh; min-height: 480px; overflow: hidden;
  display: grid; place-items: center; text-align: center; color: var(--cream);
  background: var(--green-deep);
}
.band img {
  position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover;
  will-change: transform;
}
.band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(20, 36, 26, .55), rgba(20, 36, 26, .35) 50%, rgba(20, 36, 26, .65));
}
.band blockquote { position: relative; z-index: 2; padding: 0 var(--gutter); max-width: 980px; }
.band blockquote p {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(34px, 5.2vw, 72px); line-height: 1.1;
}
.band .eyebrow { color: var(--gold-soft); margin-top: 30px; display: block; }

/* come funziona */
.how { background: var(--cream); overflow: hidden; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.how-text h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 66px);
  line-height: 1.04; color: var(--green-ink); margin: 18px 0 22px; letter-spacing: -.01em;
}
.how-text h2 em { font-style: italic; color: var(--leather); }
.how-lead { max-width: 520px; color: var(--muted); font-weight: 300; font-size: 17px; line-height: 1.75; }

/* i tre passi, uno sotto l'altro */
.steps { list-style: none; margin-top: 42px; border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step-n { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 54px; color: var(--gold); line-height: .9; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 29px; line-height: 1.05; margin-bottom: 8px; color: var(--green-ink); }
.step p { color: var(--muted); font-weight: 300; line-height: 1.7; font-size: 15.5px; }

/* due biglietti da visita appoggiati sul tavolo */
.cards-stage { position: relative; height: 470px; }
.bcard {
  position: absolute; width: min(440px, 94%); aspect-ratio: 1.72 / 1;
  display: flex; flex-direction: column; padding: 26px 30px 22px;
  background: #FFFDF9; color: var(--green-ink); border: 1px solid var(--line);
  box-shadow: 0 34px 60px -32px rgba(20, 36, 26, .45), 0 2px 6px rgba(20, 36, 26, .06);
  transition: transform 1.3s var(--ease);
}
.bcard::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(201, 168, 76, .35); pointer-events: none; }
.bcard.is-back { top: 6%; right: 0; background: var(--green-ink); color: var(--cream); border-color: transparent; transform: rotate(6deg); }
.bcard.is-front { bottom: 6%; left: 0; transform: rotate(-4deg); }
.cards-stage:not(.is-in) .bcard.is-back { transform: rotate(0deg) translate(-40px, 40px); }
.cards-stage:not(.is-in) .bcard.is-front { transform: rotate(0deg) translate(30px, -30px); }
.cards-stage:hover .bcard.is-back { transform: rotate(8deg) translate(10px, -8px); }
.cards-stage:hover .bcard.is-front { transform: rotate(-2deg) translate(-8px, 6px); }
.bcard-top { display: flex; align-items: center; gap: 10px; }
.bcard-top img { height: 24px; width: auto; }
.bcard-top span { font-family: var(--serif); font-size: 19px; font-weight: 500; letter-spacing: .03em; }
.bcard-top em { margin-left: auto; font-style: normal; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; opacity: .65; }
.bcard-name { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); font-weight: 500; line-height: 1; margin-top: auto; }
.bcard-sub { font-size: 13px; font-weight: 300; margin-top: 8px; opacity: .75; letter-spacing: .02em; }
.bcard-foot {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 13px;
  border-top: 1px solid currentColor; border-top-color: rgba(128, 128, 110, .3);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .85;
}
.bcard-ok { color: var(--green); display: inline-flex; align-items: center; gap: 7px; }
.bcard-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* cosa trovi dentro */
.inside-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.inside-aside { position: sticky; top: 120px; }
.inside-aside h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.06; color: var(--green-ink); margin: 18px 0 22px; letter-spacing: -.01em;
}
.inside-aside h2 em { font-style: italic; color: var(--leather); }
.inside-aside p { color: var(--muted); font-weight: 300; line-height: 1.75; max-width: 400px; }
.inside-aside figure { margin-top: 40px; aspect-ratio: 16 / 11; overflow: hidden; }
.inside-aside figure img { width: 100%; height: 100%; object-fit: cover; }
.features { list-style: none; counter-reset: f; }
.feature {
  display: grid; grid-template-columns: 56px 1fr; gap: 8px 20px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature::before {
  counter-increment: f; content: counter(f, decimal-leading-zero);
  font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); padding-top: 4px; grid-row: span 2;
}
.feature h3 { font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--green-ink); }
.feature p { color: var(--muted); font-weight: 300; line-height: 1.7; font-size: 15px; }

/* ultimo invito */
.cta {
  position: relative; overflow: hidden; text-align: center; color: var(--cream);
  padding: clamp(110px, 14vw, 190px) 0; background: var(--green-deep);
}
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(20, 36, 26, .92), rgba(20, 36, 26, .55), rgba(20, 36, 26, .92));
}
.cta .wrap { position: relative; z-index: 2; }
.cta .eyebrow { color: var(--gold-soft); }
.cta h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 86px);
  line-height: 1.02; margin: 24px auto 22px; max-width: 900px; letter-spacing: -.015em;
}
.cta h2 em { font-style: italic; color: var(--gold-soft); }
.cta p:not(.eyebrow) { color: rgba(245, 240, 232, .8); font-weight: 300; font-size: 17px; line-height: 1.7; max-width: 520px; margin: 0 auto; }
.cta-actions { margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* fondo pagina */
.foot { background: var(--green-deep); color: rgba(245, 240, 232, .7); padding: 80px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.foot .brand-name { color: var(--cream); }
.foot-claim { margin-top: 22px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-soft); }
.foot h4 { font-weight: 400; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 18px; }
.foot ul { list-style: none; }
.foot li + li { margin-top: 11px; }
.foot li a { font-size: 14px; transition: color .3s; }
.foot li a:hover { color: var(--cream); }
.foot-legal a { margin-right: 18px; transition: color .3s; }
.foot-legal a:hover { color: var(--cream); }
.foot-base {
  margin-top: 70px; padding-top: 26px; border-top: 1px solid rgba(245, 240, 232, .12);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: rgba(245, 240, 232, .45);
}

/* ── comparsa allo scorrimento ───────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero .rise { opacity: 1; transform: none; animation: none; transition: none; }
  .hero-photo { animation: none; transform: none; }
  .scroll-cue i::after { animation: none; }
}


/* ── schermi piccoli ─────────────────────────────────── */
/* fra 980 e 1180 px il menu centrale non ci sta accanto al logo */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .profiles-grid, .how-grid, .inside-grid, .foot-grid { grid-template-columns: 1fr; }
  .profiles-grid { gap: 70px; }
  .cards-stage { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .inside-aside { position: static; }
}
@media (max-width: 560px) {
  /* sul telefono restano logo, nome e i due bottoni, solo più piccoli */
  .nav { height: 64px; }
  .brand { gap: 8px; }
  .brand-mark, .nav.is-solid .brand-mark { height: 25px; }
  .brand-name { font-size: 21px; }
  .nav-actions { gap: 6px; }
  .nav .btn-sm { height: 34px; padding: 0 13px; font-size: 12px; letter-spacing: .02em; }
  .hero-foot > span { display: none; }
  .hero-foot { justify-content: center; }
  .foot-base { flex-direction: column; gap: 8px; }
}

@media (max-width: 560px) {
  .cards-stage { height: 330px; }
  .bcard { width: 90%; padding: 18px 20px 16px; }
  .bcard::after { inset: 6px; }
  .bcard-top img { height: 18px; }
  .bcard-top span { font-size: 16px; }
  .bcard-name { font-size: 27px; }
  .bcard-sub { font-size: 12px; margin-top: 6px; }
  .bcard-foot { margin-top: 12px; padding-top: 10px; font-size: 9px; letter-spacing: .1em; }
  .step { grid-template-columns: 58px 1fr; }
  .step-n { font-size: 42px; }
}

/* il biglietto dietro mostra nome e servizi in alto: il resto lo copre quello davanti */
.bcard.is-back .bcard-name { margin-top: 30px; }
@media (max-width: 560px) { .bcard.is-back .bcard-name { margin-top: 18px; } }
.bcard-foot span { white-space: nowrap; }
@media (max-width: 560px) {
  .cards-stage { height: 300px; }
  .bcard-foot { font-size: 8.5px; letter-spacing: .06em; }
}
