/* /fiera/gdprday — the GDPR Day fair page (Gabriele Staffa, 28.10.2026).
   Everything else comes from /dpo/it's site.css and legis.css; this file only
   adds the fair's look to the hero and moves the framework strip below the
   form. Brand faces and colours only (S248). */

/* ── Hero: copy on the left, the demo pass on the right ── */
/* The /dpo/it sky. On wide screens it is mirrored (see below): its light
   cloud goes behind the pass, so the title on the left stays on full blue. */
.lg-hero--fiera .lg-hero__sky { position: relative; isolation: isolate; background: #2F7BFF; }
.lg-hero--fiera .lg-hero__sky::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(47,123,255,0) 60%, #2F7BFF 86%),
    url("/landing/dpo-legis/assets/hero-sky.webp") center bottom / cover no-repeat;
}
.fiera-hero { width: 100%; }
.fiera-hero__copy { display: flex; flex-direction: column; align-items: center; }

/* The fair's name, next to the organiser's logo on the pass. */
.fiera-logo {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em; color: var(--ink); white-space: nowrap;
}

/* The demo pass on its lanyard. The strap starts at the top edge of the
   hero, behind the bar, so the pass hangs from the top of the screen. */
.fiera-pass {
  --pass-w: 300px;
  --strap-h: 190px;
  --strap-lift: 60px; /* drawn above the hero's top edge, which clips it */
  position: relative; flex: none; width: var(--pass-w);
  margin-top: calc(-1 * (var(--nav-h) + 48px + var(--strap-lift)));
  pointer-events: none; user-select: none;
}
.fiera-pass__swing {
  display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 0;
  animation: fiera-swing 4.6s ease-in-out infinite alternate;
}
/* A gentle swing, a little wider than at first (Gabriele Staffa, 28.10.2026:
   «un goccio», not a fan). */
@keyframes fiera-swing {
  from { transform: rotate(-4deg); }
  to   { transform: rotate(3.5deg); }
}
.fiera-pass__strap {
  position: relative; width: 34px; height: calc(var(--strap-h) + var(--strap-lift)); overflow: hidden;
  background: linear-gradient(90deg, #0050B0, #0062D6 45%, #0050B0);
  box-shadow: inset 2px 0 0 rgba(255,255,255,0.18), inset -2px 0 0 rgba(255,255,255,0.18);
}
.fiera-pass__strap span {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  writing-mode: vertical-rl; transform-origin: center;
  font-family: var(--font-display); font-weight: 700; font-size: 11px;
  letter-spacing: 0.22em; color: rgba(255,255,255,0.88); white-space: nowrap;
}
.fiera-pass__clip {
  width: 30px; height: 34px; margin-top: -4px; border-radius: 6px 6px 10px 10px;
  background: linear-gradient(180deg, #F2F2F1, #A19A96 55%, #CBC7C4);
  box-shadow: 0 2px 4px rgba(4,20,60,0.35);
}
.fiera-pass__card {
  position: relative; width: 100%; margin-top: -8px;
  padding: 34px 26px 0; border-radius: 20px; overflow: hidden;
  background: #fff; color: var(--ink); text-align: left;
  box-shadow: 0 30px 60px -24px rgba(4,20,60,0.55), 0 2px 6px rgba(4,20,60,0.12);
}
.fiera-pass__hole {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 52px; height: 9px; border-radius: 999px;
  background: var(--n-150); box-shadow: inset 0 1px 2px rgba(43,21,17,0.25);
}
.fiera-pass__event {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 64px;
  padding: 10px 12px; border-radius: 12px; background: var(--blue-50);
}
.fiera-pass__event img { width: 52px; height: 52px; flex: none; display: block; border-radius: 50%; background: #fff; }
.fiera-pass__event .fiera-logo { font-size: 24px; }
.fiera-pass__name {
  margin: 20px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 25px;
  line-height: 1.12; letter-spacing: -0.025em; color: var(--ink);
}
/* The four frameworks, as small tags. */
.fiera-pass__fw { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.fiera-pass__fw i {
  font-style: normal; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
  padding: 5px 9px; border-radius: 999px;
  background: var(--n-100); border: 1px solid var(--n-150); color: var(--n-700);
}
.fiera-pass__band {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 26px -26px 0; padding: 16px 26px;
  background: var(--blue-500); color: #fff;
}
.fiera-pass__band b { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }

@media (prefers-reduced-motion: reduce) {
  .fiera-pass__swing { animation: none; transform: rotate(-2deg); }
}

/* Wide screens: two columns, copy aligned left. */
@media (min-width: 961px) {
  .lg-hero--fiera .lg-hero__sky::before { transform: scaleX(-1); }
  .fiera-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) var(--pass-col, 320px);
    gap: 56px; align-items: center; text-align: left;
  }
  .fiera-hero__copy { align-items: flex-start; grid-column: 1; grid-row: 1; }
  .fiera-pass { grid-column: 2; grid-row: 1; align-self: start; justify-self: center; }
  .lg-hero--fiera .btn-row { justify-content: flex-start; }
  /* «professionisti compliance» stays on one line up to the widest column. */
  .lg-hero--fiera h1 { font-size: clamp(40px, 4.4vw, 56px); }
}

/* Narrow screens: the pass first, smaller, then the copy, centred. */
@media (max-width: 960px) {
  .fiera-hero { display: flex; flex-direction: column; align-items: center; }
  .fiera-pass { --pass-w: 236px; --strap-h: 120px; margin-bottom: 30px; }
  .fiera-pass__card { padding: 28px 20px 0; border-radius: 16px; }
  .fiera-pass__event { min-height: 50px; gap: 10px; }
  .fiera-pass__event img { width: 42px; height: 42px; }
  .fiera-pass__event .fiera-logo { font-size: 20px; }
  .fiera-pass__name { margin-top: 16px; font-size: 21px; }
  .fiera-pass__fw { gap: 5px; margin-top: 12px; }
  .fiera-pass__fw i { font-size: 11px; padding: 4px 8px; }
  .fiera-pass__band { margin: 20px -20px 0; padding: 13px 20px; }
  .fiera-pass__band b { font-size: 15px; }
}
/* Phones: a smaller pass, so the button still fits the first screen. */
@media (max-width: 640px) {
  .fiera-pass { --pass-w: 204px; --strap-h: 76px; margin-top: calc(-1 * (var(--nav-h) + 32px + var(--strap-lift))); margin-bottom: 22px; }
  .fiera-pass__strap { width: 28px; }
  .fiera-pass__strap span { font-size: 9px; }
  .fiera-pass__card { padding: 24px 16px 0; border-radius: 14px; }
  .fiera-pass__hole { top: 9px; width: 42px; height: 7px; }
  .fiera-pass__event { min-height: 42px; padding: 7px 10px; border-radius: 10px; gap: 8px; }
  .fiera-pass__event img { width: 36px; height: 36px; }
  .fiera-pass__event .fiera-logo { font-size: 18px; }
  .fiera-pass__name { margin-top: 12px; font-size: 18px; }
  .fiera-pass__fw { gap: 4px; margin-top: 10px; }
  .fiera-pass__fw i { font-size: 10px; padding: 4px 7px; }
  .fiera-pass__band { margin: 16px -16px 0; padding: 10px 16px; }
  .fiera-pass__band b { font-size: 14px; }
  /* Two lines on phones (Gabriele Staffa, 28.10.2026): «professionisti
     compliance» never breaks, and the type is sized so that it fits the
     width — about 11.7 em in Manrope 700, 12 with a margin. */
  .lg-hero--fiera h1 { font-size: min(38px, calc((100vw - 44px) / 12)); }
  .lg-hero--fiera h1 em { white-space: nowrap; }
}
/* ── Very narrow phones (320 px) ──
   legis.css gives the form and «Come funziona» grids a single `1fr` column,
   which never gets narrower than its content: the Cloudflare check (at least
   300 px) plus the form's 16 px sides, and the mockups. On a 320 px phone the
   page grew to 332 px and scrolled sideways. A zero minimum keeps the columns
   on screen; thinner form sides and smaller mockup type keep things whole. */
@media (max-width: 1000px) {
  .lg-values__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .lg-book .book-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .lg-value__art .mk, .lg-value__art .mk-ask { font-size: 9px; }
  .lg-book .embed-form { padding-left: 10px; padding-right: 10px; }
}

/* ── Below the hero: the form first, then the framework strip ── */
/* The fade ends in the form's ivory, not in white, so there is no edge. */
.lg-hero--fiera { background: var(--ivory); }
.lg-hero--fiera .lg-hero__fade { background: linear-gradient(to bottom, #2F7BFF, var(--ivory)); }
.lg-hero--fiera + .lg-book { border-top: 0; }
.lg-book + .lg-fw { padding-top: 64px; }
@media (max-width: 640px) {
  .lg-book + .lg-fw { padding-top: 40px; }
}
