/* ============================================================================
   QuerelaOnline landing — assets/css/landing.css  (loaded only on /querela-online/)
   The landing is built almost entirely from the SITE's OWN components so it reads as a
   sibling of the main site: .bp-hdr header, .bp-hero (photo + gradient + 100svh) hero,
   .bp-grid/.bp-arow editorial 2-column grid, .bp-dark statement sections, .bp-contatti
   contact block, .bp-mask reveals, .bp-cue scroll cue, .bp-ulink links, .bp-form form.
   Only the landing-specific rules below are added here. Tokens come from main.css.
   ========================================================================== */

:root{--ql-body:#5E5B55}                          /* AA-safe body grey on ivory & sand */
html{scroll-padding-top:clamp(64px,8vh,88px)}     /* offset for the fixed .bp-hdr on anchor jumps */

/* The landing supplies its OWN header/main/footer inside post-content. Cancel the block
   editor's 24px block-gap (:where(.is-layout-flow) > * { margin-block-start:24px }) on those
   direct children so the dark hero sits FLUSH at the very top — no ivory strip above it (and
   no gap above the footer). Specificity (0,2,0) beats the (0,1,0) block-gap rule. */
.wp-block-post-content > .bp-hdr,
.wp-block-post-content > .ql-main,
.wp-block-post-content > .ql-footer{margin-block:0}

/* Centro Querele round logo badge in the header (self-contained red circle — reads on both
   dark and light sections, so no white/dark swap is needed; only the CTA text inverts) */
.ql-hdr{align-items:center}
.ql-logo{height:clamp(46px,5.4vw,62px);width:auto;border-radius:50%;display:block}
@media(max-width:600px){.ql-logo{height:44px}}

/* shared section heading for the landing's content sections */
.ql-h2{font-family:var(--serif);font-weight:300;font-size:clamp(2rem,4.8vw,3.7rem);
  line-height:1.08;letter-spacing:-.018em;max-width:22ch;text-wrap:balance;margin-top:clamp(14px,2vh,22px)}
.ql-h2 em{font-style:italic;color:var(--gold)}

/* ---------- HERO (reuses .bp-hero shell; the photo is replaced by the "Querela"
   document + telematic-deposit stamp on a dark ground, two-column like the client draft) ---------- */
.ql-hero{background-color:var(--ink);
  background-image:radial-gradient(120% 90% at 82% 28%, rgba(190,154,86,.15), rgba(22,19,15,0) 56%);
  padding-block:clamp(88px,10.5svh,128px) clamp(82px,10.5svh,120px)}
.ql-hero-grid{display:grid;grid-template-columns:1fr clamp(400px,37vw,548px);gap:clamp(38px,4.6vw,92px);
  align-items:center;width:100%;max-width:1560px;margin-inline:auto}
.ql-hero h1{font-size:clamp(2.4rem,4.6vw,4.9rem);line-height:1.02}
.ql-hero-kick{display:block;color:var(--gold-soft);margin-bottom:clamp(20px,3vh,34px)}
.ql-hero-act{margin-top:clamp(28px,4vh,46px);display:flex;gap:clamp(22px,3vw,40px);flex-wrap:wrap;align-items:center}
.ql-hero-act .bp-ulink:not(.gold){color:rgba(241,238,231,.85);border-color:rgba(241,238,231,.4)}
.ql-hero-act .bp-ulink:not(.gold):hover{color:var(--ivory);border-color:var(--ivory)}
.ql-hero .bp-proof .loc{text-transform:uppercase}

/* stylised "Querela" document + telematic-deposit stamp (pure CSS, decorative; fills the right of the hero) */
.ql-doc-wrap{position:relative;justify-self:end;width:100%;max-width:548px}
.ql-doc{position:relative;background:#FBF8F1;border:1px solid rgba(22,19,15,.12);border-radius:4px;
  padding:clamp(2rem,2.6vw,2.9rem) clamp(1.8rem,2.2vw,2.4rem) clamp(2.2rem,2.8vw,3rem);transform:rotate(1.4deg);
  box-shadow:0 52px 92px -34px rgba(0,0,0,.66),0 2px 0 rgba(0,0,0,.14)}
.ql-doc-head{display:block;font-family:var(--sans);font-size:.72rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--grey-2);line-height:1.9}
.ql-doc-title{display:block;font-family:var(--serif);font-weight:400;font-size:clamp(1.9rem,1.6vw,2.3rem);
  margin:1.2rem 0 .35rem;letter-spacing:.005em;color:var(--ink)}
.ql-doc-ref{display:block;font-family:var(--sans);font-size:.68rem;letter-spacing:.11em;
  text-transform:uppercase;color:var(--gold);margin-bottom:1.5rem}
.ql-doc-sub{display:block;font-family:var(--sans);font-size:.62rem;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--gold);margin:1.6rem 0 .85rem}
.ql-doc-lines{display:flex;flex-direction:column;gap:.62rem}
.ql-doc-lines i{display:block;height:6px;border-radius:3px;background:rgba(22,19,15,.09)}
.ql-doc-sign{font-family:var(--sans);font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;
  color:var(--grey-2);text-align:right;line-height:1.9;margin-top:1.7rem}
.ql-stamp{position:absolute;right:-36px;bottom:-38px;width:clamp(150px,13vw,196px);height:clamp(150px,13vw,196px);
  border:2.5px solid var(--gold);border-radius:50%;display:flex;align-items:center;justify-content:center;
  transform:rotate(-11deg);color:var(--gold);background:#FBF8F1;opacity:.97;pointer-events:none;
  animation:qlStamp 1s ease .5s backwards}
.ql-stamp::before{content:"";position:absolute;inset:10px;border:1px solid var(--gold);border-radius:50%}
.ql-stamp-inner{text-align:center;padding:0 18px}
.ql-stamp-inner span{display:block;font-family:var(--sans);font-size:.54rem;font-weight:600;letter-spacing:.1em;
  text-transform:uppercase;line-height:1.5;opacity:.85}
.ql-stamp-inner strong{display:block;font-family:var(--serif);font-weight:500;font-size:1.02rem;
  margin:.34rem 0;letter-spacing:.01em;line-height:1.05}
/* subtle fade + soft settle (no spring bounce) — matches the site's restrained motion */
@keyframes qlStamp{0%{transform:rotate(-11deg) scale(1.04);opacity:0}100%{transform:rotate(-11deg) scale(1);opacity:.97}}

/* ---------- DEADLINE (thin full-bleed urgency band, right after the hero) ---------- */
.ql-band{position:relative;width:100vw;left:50%;right:50%;margin-inline:-50vw;
  background:var(--ink);color:var(--ivory);padding:clamp(24px,4.2vh,40px) 0}
.ql-band-in{max-width:var(--wrap);margin-inline:auto;padding-inline:var(--pad);
  display:flex;align-items:baseline;gap:clamp(14px,2vw,28px);flex-wrap:wrap}
.ql-band .k{font-family:var(--sans);font-size:.72rem;font-weight:600;letter-spacing:.26em;
  text-transform:uppercase;color:var(--gold);white-space:nowrap}
.ql-band p{font-family:var(--serif);font-weight:300;font-size:clamp(1.15rem,1.1vw + .8rem,1.7rem);
  line-height:1.4;color:rgba(241,238,231,.85);max-width:54ch}
.ql-band p strong{color:var(--ivory);font-weight:400}

/* ---------- PROCESSO (titles only + a short gold caption that guides the eye) ---------- */
.ql-proc .bp-label{display:block}
.ql-steps{margin-top:clamp(38px,5vh,64px);border-top:1px solid var(--line)}
.ql-step{display:grid;grid-template-columns:clamp(72px,7vw,120px) 1fr;gap:clamp(18px,3vw,48px);
  padding:clamp(26px,3.6vh,44px) 0;border-bottom:1px solid var(--line);align-items:baseline}
.ql-num{font-family:var(--serif);font-style:italic;font-weight:300;font-size:clamp(2.2rem,4.4vw,3.6rem);
  color:var(--gold);line-height:.9}
.ql-step h3{font-family:var(--serif);font-weight:300;font-size:clamp(1.6rem,3vw,2.6rem);
  line-height:1.06;letter-spacing:-.012em}
.ql-cap{display:inline-block;margin-top:.7rem;font-family:var(--sans);font-size:.7rem;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;color:var(--gold)}

/* ---------- ONLINE (dark, single centered message) ---------- */
.ql-vant{text-align:center}
.ql-vant .bp-label{display:inline-block;margin-bottom:clamp(16px,2.2vh,26px)}
.ql-vant .ql-h2{max-width:22ch;margin-inline:auto}
.ql-vant-sub{margin:clamp(20px,3vh,32px) auto 0;max-width:56ch;
  font-family:var(--serif);font-weight:300;font-size:clamp(1.15rem,1.6vw,1.6rem);
  line-height:1.45;color:rgba(241,238,231,.72)}

/* ---------- CONTATTO (reuses .bp-contatti; full-sentence headline sized below "Parliamone.") ---------- */
.ql-contact h2{font-size:clamp(2.6rem,6.4vw,5.4rem)}
.ql-side{margin-top:clamp(30px,4vh,46px)}
.ql-side .bp-label{display:block;margin-bottom:14px}
.ql-side p{color:var(--ql-body);max-width:42ch;line-height:1.62}
.ql-wa{margin-top:clamp(16px,2vh,22px);display:inline-flex;align-items:center;gap:10px;
  font-family:var(--sans);font-weight:600;font-size:.92rem;color:var(--ink);
  border-bottom:2px solid var(--gold);padding-bottom:3px;transition:color .25s,border-color .25s}
.ql-wa svg{width:1.15em;height:1.15em;fill:currentColor}
.ql-wa:hover{color:var(--gold)}
.ql-mail{margin-top:1.5rem;font-size:.9rem;color:var(--ql-body);line-height:1.7}
.ql-mail a{color:var(--ink);border-bottom:1px solid var(--line)}
.ql-mail a:hover{border-color:var(--ink)}
.ql-contact .bp-form input:focus-visible,.ql-contact .bp-form textarea:focus-visible{outline:2px solid var(--gold);outline-offset:3px}

/* ---------- FOOTER — the site's clean footer bar + subtle legal fine print, one cohesive block ---------- */
.ql-footer{background:var(--ivory-2);border-top:1px solid var(--line);padding:clamp(34px,4.6vh,48px) var(--pad)}
.ql-foot-in{max-width:var(--wrap);margin-inline:auto;display:flex;flex-direction:column;gap:clamp(20px,2.6vh,30px)}
.ql-disc{max-width:98ch;font-family:var(--sans);font-size:.72rem;line-height:1.7;color:var(--ql-body)}
.ql-disc strong{color:var(--grey);font-weight:600}
.ql-foot-bar{display:flex;justify-content:space-between;flex-wrap:wrap;gap:14px 40px;
  text-transform:uppercase;font-family:var(--sans);font-size:.75rem;letter-spacing:.16em;
  color:var(--grey);font-weight:500}
.ql-foot-bar .g{display:flex;gap:14px 26px;flex-wrap:wrap}
.ql-foot-bar a:hover{color:var(--ink)}

/* ---------- responsive ---------- */
@media(max-width:900px){
  .ql-hero{padding-block:clamp(96px,13vh,120px) clamp(48px,7vh,72px)}
  .ql-hero-grid{grid-template-columns:1fr;gap:clamp(40px,7vw,58px)}
  .ql-doc-wrap{justify-self:center;max-width:440px;margin-inline:auto}
  /* stacked hero: the review proof must FLOW below the document (not absolute over it) */
  .ql-hero .bp-hero-base{position:static;left:auto;right:auto;margin-top:clamp(30px,5vh,46px)}
  .ql-hero .bp-cue{display:none}
  .ql-step{grid-template-columns:1fr;gap:6px}
  .ql-num{font-size:2.3rem}
}
@media(max-width:560px){
  .ql-hero-act{flex-direction:column;align-items:flex-start;gap:16px}
  .ql-doc-wrap{max-width:340px}
  .ql-stamp{right:-14px;bottom:-22px;width:120px;height:120px}
}
@media(prefers-reduced-motion:reduce){.ql-stamp{animation:none}}
