.elementor-54 #content:has(+ .theone-flyer-section) { --padding-bottom: 0px; }
.elementor-54 .elementor-element.theone-flyer-section { --padding-top: var(--row-gap); }

.theone-flyer {
  --flyer-accent: #c7a7ff;
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(20px, 3vw, 64px);
  width: min(100%, 1536px);
  margin-inline: auto;
  scroll-margin-top: clamp(100px, 7vw, 145px);
  padding: clamp(28px, 5vw, 92px);
  border: 1px solid #c7a7ff35;
  border-radius: 14px;
  clip-path: inset(0 round 14px);
  background: #1b1822;
  color: #f5f0e7;
}

.theone-flyer::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(100deg, #1b1822b5, #1b182246), url("sfondo-ai.webp") 74% calc(50% - 4svh) / cover no-repeat #12131f;
}

@media (prefers-reduced-motion: reduce) {
  .theone-flyer::before { position: absolute; }
}

.theone-flyer .flyer-title {
  display: grid;
  gap: clamp(14px, 1.8vw, 30px);
  margin: 0;
  color: inherit;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.055em;
}

.flyer-title .flyer-question { font-size: clamp(22px, 2.1vw, 36px); }
.flyer-title .flyer-offer { font-size: clamp(30px, 3.85vw, 66px); font-weight: inherit; }
.flyer-offer span { display: block; color: var(--flyer-accent); }

.theone-flyer .flyer-trigger,
.flyer-dialog .flyer-download,
.flyer-dialog .flyer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8em;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #c7a7ff;
  border-radius: 100px;
  background: #c7a7ff;
  color: #161322;
  font: 700 15px/1.25 Arial, sans-serif;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
}

.theone-flyer .flyer-trigger { margin-top: clamp(20px, 3vw, 38px); }
.theone-flyer .flyer-trigger:hover, .flyer-dialog .flyer-download:hover { background: #eadcff; color: #161322; }
.theone-flyer .flyer-trigger:focus-visible,
.flyer-dialog a:focus-visible, .flyer-dialog button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.flyer-spread {
  display: grid;
  align-items: center;
  perspective: 1100px;
  padding: 12% 4% 8%;
}

.flyer-spread img {
  grid-area: 1 / 1;
  width: 92%;
  aspect-ratio: 1800 / 1273;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 20px 55px #0009;
}

.flyer-spread .flyer-front { z-index: 1; transform: translate(-2%, 10%) rotate(-7deg) rotateY(-5deg); }
.flyer-spread .flyer-back { transform: translate(11%, -15%) rotate(10deg) rotateY(-13deg); }

.flyer-dialog {
  box-sizing: border-box;
  width: min(960px, calc(100% - 24px));
  max-height: 90dvh;
  padding: 0;
  border: 1px solid #c7a7ff60;
  border-radius: 14px;
  background: #1b1822;
  color: #f5f0e7;
}

.flyer-dialog::backdrop { background: #0b0913d9; }
body:has(.flyer-dialog[open]) { overflow: hidden; }

.flyer-dialog .flyer-dialog-bar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px clamp(12px, 3vw, 24px);
  border-bottom: 1px solid #c7a7ff35;
  background: #1b1822;
}

.flyer-dialog-bar h2 { margin: 0; color: inherit; font: 900 22px/1.1 "Helvetica Neue", Arial, sans-serif; }
.flyer-dialog-actions { display: flex; align-items: center; gap: 8px; }
.flyer-dialog .flyer-close { min-width: 44px; padding: 8px; background: #292034; color: #f5f0e7; font-size: 23px; }
.flyer-dialog .flyer-close:hover { background: #47365e; }
.flyer-pages { display: grid; gap: 12px; padding: clamp(8px, 3vw, 24px); }
.flyer-pages img { display: block; width: 100%; height: auto; border-radius: 4px; }

@media (max-width: 850px) {
  .theone-flyer { grid-template-columns: minmax(0, 1fr); }
  .flyer-spread { width: min(100%, 600px); margin-inline: auto; }
}
