/* =====================================================================
   WHNext — "Come partecipare 2026" (page-template/page-partecipa2026.php)
   On top of css/whx-landing.css (stage tokens, header, grain) and
   css/whx-award.css (hero grid, buttons, headings). rem everywhere.
   Owner, 2026-09-29: symmetrical — equal columns, equal date cards,
   numbers centred above their text, everything on one axis.
   ===================================================================== */

.wcp .wa-eyebrow, .wcp-step-text, .wcp-free { font-variant-numeric: lining-nums; }   /* Raleway's default figures are old-style */
.wa-btn svg { flex: none; }

/* ---------------------------------------------------------------------
   1. HERO — two equal halves, each centred on its own axis
   --------------------------------------------------------------------- */
.wcp-hero { min-height: 78vh; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wcp .wa-hero-copy {
  display: flex; flex-direction: column; align-items: center;
  margin: 0 auto;
  text-align: center;
}
.wcp .wa-hero-cta { justify-content: center; }
.wcp-free {
  max-width: 34rem;
  margin: 1.7rem auto 0;
  font-size: .76rem; font-weight: 600; letter-spacing: .13em; line-height: 1.85;
  color: var(--wl-cream-70);
}
.wcp-free strong { color: var(--wl-sage-light); font-weight: 800; }

.wcp-dates {                                 /* two cards of the same width, stacked on one axis */
  position: relative; z-index: 2;
  justify-self: center;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem;
  width: min(100%, 26rem);
  margin: 0;
}
.wcp-date {
  padding: 1.5rem 1.8rem 1.7rem;
  text-align: center;
  border: 1px solid var(--wl-line);
  border-radius: 14px;
  background: rgba(244, 239, 230, .04);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color .4s, background .4s, transform .6s var(--wl-ease);
}
.wcp-date:hover { border-color: rgba(176, 170, 126, .5); background: rgba(244, 239, 230, .07); transform: translateY(-3px); }
.wcp-date dt { font-size: .66rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--wl-sage); }
.wcp-date dd { margin: .7rem 0 0; }
.wcp-date time { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; column-gap: .9rem; }
.wcp-dm {
  font-family: var(--whx-serif);
  font-size: clamp(3rem, 5vw, 4.6rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: lining-nums;
  color: var(--wl-cream);
}
.wcp-y { font-family: var(--whx-serif); font-style: italic; font-size: clamp(1.3rem, 1.8vw, 1.8rem); font-variant-numeric: lining-nums; color: var(--wl-sage-light); }

html.whx-js .wcp-free { animation: wl-rise 1s var(--wl-ease) .42s backwards; }
html.whx-js .wcp-dates { animation: wl-rise 1.2s var(--wl-ease) .5s backwards; }
@media (prefers-reduced-motion: reduce) {
  html.whx-js .wcp-free, html.whx-js .wcp-dates { animation: none; }
  .wcp-date, .wcp-step-n { transition: none; }
}

/* ---------------------------------------------------------------------
   2. THE FIVE STEPS — cream; each number centred above its text,
      the path runs from centre to centre
   --------------------------------------------------------------------- */
.wcp-steps-sec {
  background: var(--wl-cream);
  color: #2b2224;
  border-top: 1px solid rgba(176, 170, 126, .5);
  padding: clamp(3.5rem, 8vh, 6rem) var(--wl-gutter) clamp(3.5rem, 8vh, 5.5rem);
}
.wcp-steps-head { text-align: center; margin: 0 auto clamp(2.4rem, 5vh, 3.6rem); }
.wcp-steps-head .wa-h2 { color: #2b2224; }
.wa .wcp-steps {
  --gap: clamp(1.2rem, 2vw, 2.4rem);
  list-style: none;
  max-width: 84rem;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: var(--gap);
}
.wcp-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wcp-step:not(:last-child)::after {           /* from this circle's edge to the next circle's edge (circle radius 2.1rem + .8rem air) */
  content: "";
  position: absolute;
  top: 2.1rem;
  left: calc(50% + 2.9rem);
  right: calc(-50% - var(--gap) + 2.9rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(120, 47, 64, .55), rgba(176, 170, 126, .85));
}
.wcp-step-n {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  flex: none;
  width: 4.2rem; height: 4.2rem;
  border: 1px solid rgba(120, 47, 64, .45);
  border-radius: 50%;
  background: var(--wl-cream);
  font-family: var(--whx-serif);
  font-size: 1.75rem; font-weight: 600;
  font-variant-numeric: lining-nums;
  color: var(--wl-claret);
  transition: background .4s, color .4s, border-color .4s, transform .5s var(--wl-ease);
}
.wcp-step:hover .wcp-step-n { background: var(--wl-claret); border-color: var(--wl-claret); color: var(--wl-cream); transform: scale(1.06); }
.wcp-step-verb {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--whx-serif);
  font-size: clamp(1.5rem, 1.9vw, 1.95rem);
  font-weight: 600;
  line-height: 1.1;
  color: #2b2224;
}
.wcp-step-text { margin: .6rem 0 0; max-width: 17rem; font-size: .98rem; line-height: 1.7; color: #4a3f42; }
.wcp-step-text strong { color: #2b2224; font-weight: 700; }
.wcp-step-text em { font-style: italic; }
.wcp-step-text a, .wcp-pub a {
  color: var(--wl-claret);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(120, 47, 64, .4);
  transition: border-color .3s, color .3s;
}
.wcp-step-text a:hover, .wcp-pub a:hover { color: var(--wl-claret-bright); border-color: var(--wl-claret); }

.wcp-pub {
  max-width: 46rem;
  margin: clamp(2.6rem, 5vh, 3.6rem) auto 0;
  padding: 1.6rem 2rem 1.8rem;
  text-align: center;
  border: 1px solid rgba(120, 47, 64, .3);
  border-radius: 14px;
  background: rgba(255, 255, 255, .55);
}
.wcp-pub-label { display: inline-flex; align-items: center; gap: .6rem; font-size: .66rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--wl-claret); }
.wcp-pub-label::before, .wcp-pub-label::after { content: ""; width: 1.6rem; height: 1px; background: var(--wl-claret); }
.wcp-pub p { margin: .8rem 0 0; font-family: var(--whx-serif); font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.4; color: #2b2224; }
.wcp-pub strong { font-weight: 700; }

/* ---------------------------------------------------------------------
   3. CLOSING BAND — centred: the regulations, then the way back
   --------------------------------------------------------------------- */
.wcp-close { padding: clamp(3.5rem, 8vh, 5.5rem) var(--wl-gutter) clamp(4rem, 9vh, 6rem); }
.wcp-close-inner {
  max-width: 84rem;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  gap: 2.6rem;
  text-align: center;
}
.wcp-docs { display: flex; flex-direction: column; align-items: center; }
.wcp .wa-download-row { justify-content: center; }
.wcp-back {
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--whx-serif);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--wl-cream);
  text-decoration: none;
  transition: color .3s;
}
.wcp-back svg { flex: none; color: var(--wl-sage); transition: transform .45s var(--wl-ease); }
.wcp-back:hover { color: var(--wl-sage-light); }
.wcp-back:hover svg { transform: translateX(6px); }

/* ---------------------------------------------------------------------
   4. SMALLER SCREENS — one axis, still centred
   --------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .wcp-hero { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .wcp-dates { justify-self: center; width: min(100%, 30rem); margin-top: 2.6rem; }
}
@media (max-width: 1100px) {
  .wa .wcp-steps { grid-template-columns: minmax(0, 1fr); row-gap: 2.6rem; max-width: 30rem; }
  .wcp-step-n { width: 3.6rem; height: 3.6rem; font-size: 1.5rem; }
  .wcp-step-verb { margin-top: 1rem; }
  .wcp-step-text { max-width: none; }
  .wcp-step:not(:last-child)::after {         /* a short vertical link, centred, between one step's text and the next number */
    top: auto; bottom: -2.2rem;
    left: 50%; right: auto;
    width: 1px; height: 1.8rem;
    background: linear-gradient(180deg, rgba(120, 47, 64, .55), rgba(176, 170, 126, .85));
  }
}
@media (max-width: 640px) {
  .wcp-date { padding: 1.2rem 1.3rem 1.4rem; }
  .wcp-free { font-size: .7rem; letter-spacing: .1em; }
  .wcp-pub { padding: 1.3rem 1.2rem 1.5rem; }
  .wcp-docs .wa-btn { width: 100%; justify-content: center; text-align: center; }
}
