/* ============================================================
   QUINARYO — WordPress Widget CSS
   Tutto isolato sotto #qny-widget
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&display=swap');

/* ── Reset locale ─────────────────────────────────────────── */
#qny-widget *, #qny-widget *::before, #qny-widget *::after { box-sizing: border-box; margin: 0; padding: 0; }
#qny-widget { font-family: 'Manrope', system-ui, sans-serif; color: #4A4A5A; background: #fff; line-height: 1.5; }
#qny-widget a { text-decoration: none; }
#qny-widget ul { list-style: none; }
#qny-widget img { display: block; }
#qny-widget button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── CSS Variables ────────────────────────────────────────── */
#qny-widget {
  --indigo:      #2B2F66;
  --indigo-dp:   #1E2248;
  --indigo-mid:  #3A3F82;
  --indigo-pale: #F0EFF8;
  --indigo-pale2:#E8E6F4;
  --crimson:     #80203E;
  --body:        #4A4A5A;
  --muted:       #8A8AA0;
  --border:      #E4E2F0;
  --grad:        linear-gradient(120deg, #80203E 0%, #C0385A 45%, #2B2F66 100%);
  --grad-light:  linear-gradient(120deg, #E8526E 0%, #FF8FA3 45%, #9BA4FF 100%);
}

/* ── Gradient text ────────────────────────────────────────── */
#qny-widget .qny-grad {
  background: linear-gradient(120deg, #80203E 0%, #C0385A 45%, #2B2F66 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
#qny-widget .qny-grad-light {
  background: linear-gradient(120deg, #E8526E 0%, #FF8FA3 45%, #9BA4FF 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
#qny-widget .qny-grad-shimmer {
  background: linear-gradient(120deg, #80203E 0%, #C0385A 30%, #9BA4FF 55%, #C0385A 75%, #80203E 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: qny-shimmer 5s ease-in-out infinite;
}

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes qny-shimmer { 0%{background-position:100% 50%} 50%{background-position:0% 50%} 100%{background-position:100% 50%} }
@keyframes qny-fade-up { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes qny-fade-in { from{opacity:0} to{opacity:1} }
@keyframes qny-pop-in  { 0%{transform:scale(0.7);opacity:0} 70%{transform:scale(1.05)} 100%{transform:scale(1);opacity:1} }
@keyframes qny-orbit   { from{transform:rotate(0deg) translateX(28px) rotate(0deg)} to{transform:rotate(360deg) translateX(28px) rotate(-360deg)} }
@keyframes qny-scroll-cue { 0%,100%{transform:translateY(0);opacity:.4} 50%{transform:translateY(6px);opacity:.9} }

/* ── Reveal ───────────────────────────────────────────────── */
#qny-widget .qny-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
}
#qny-widget .qny-reveal.qny-visible { opacity: 1; transform: translateY(0); }

/* ── Fade-in / fade-up (hero) ─────────────────────────────── */
#qny-widget .qny-fade-in  { opacity: 0; animation: qny-fade-in .8s ease .1s both; }
#qny-widget .qny-fade-up  { opacity: 0; animation: qny-fade-up .7s cubic-bezier(.16,1,.3,1) .45s both; }
#qny-widget .qny-fade-up2 { opacity: 0; animation: qny-fade-up .7s cubic-bezier(.16,1,.3,1) .6s  both; }
#qny-widget .qny-fade-up3 { opacity: 0; animation: qny-fade-up .7s cubic-bezier(.16,1,.3,1) .75s both; }

/* ── Language toggle hidden/shown ─────────────────────────── */
#qny-widget .qny-en { display: none; }
#qny-widget .qny-it { display: inline; }
#qny-widget.qny-lang-en .qny-en { display: inline; }
#qny-widget.qny-lang-en .qny-it { display: none; }
#qny-widget .qny-en-block { display: none; }
#qny-widget .qny-it-block { display: block; }
#qny-widget.qny-lang-en .qny-en-block { display: block; }
#qny-widget.qny-lang-en .qny-it-block { display: none; }

/* ── Sections ─────────────────────────────────────────────── */
#qny-widget .qny-section { padding: 112px 24px; }
#qny-widget .qny-section-pale { background: var(--indigo-pale); }
#qny-widget .qny-section-white { background: #fff; }
#qny-widget .qny-inner { max-width: 1240px; margin: 0 auto; }

/* ── Eyebrow ──────────────────────────────────────────────── */
#qny-widget .qny-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 9999px; margin-bottom: 24px;
  background: rgba(128,32,62,.09); color: var(--crimson);
}
#qny-widget .qny-eyebrow-dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--crimson); flex-shrink: 0;
}

/* ── Section headings ─────────────────────────────────────── */
#qny-widget .qny-h2 {
  font-weight: 900; line-height: 1.08; color: var(--indigo);
  font-size: clamp(28px, 4.5vw, 52px);
}

/* ── Smooth scroll ────────────────────────────────────────── */
#qny-widget { scroll-behavior: smooth; }

/* ╔══════════════════════════════════════════════════════════╗
   ║  NAVBAR                                                  ║
   ╚══════════════════════════════════════════════════════════╝ */
#qny-widget .qny-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
#qny-widget .qny-nav.qny-scrolled {
  background: rgba(30,34,72,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,.06);
}
#qny-widget .qny-nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
#qny-widget .qny-nav-logo { height: 28px; width: auto; flex-shrink: 0; }
#qny-widget .qny-nav-links {
  display: flex; align-items: center; gap: 32px; flex: 1;
}
#qny-widget .qny-nav-links a {
  font-size: 14px; font-weight: 600; color: var(--indigo); transition: color .2s;
}
#qny-widget .qny-nav-links a:hover { color: var(--crimson); }
#qny-widget .qny-nav.qny-scrolled .qny-nav-links a { color: rgba(255,255,255,.6); }
#qny-widget .qny-nav.qny-scrolled .qny-nav-links a:hover { color: #fff; }

#qny-widget .qny-nav-actions { display: flex; align-items: center; gap: 12px; }

/* Lang toggle */
#qny-widget .qny-lang-toggle {
  display: flex; align-items: center;
  border: 1px solid rgba(43,47,102,.3);
  border-radius: 9999px; overflow: hidden;
  background: rgba(43,47,102,.07);
  transition: border-color .35s, background .35s;
  flex-shrink: 0;
}
#qny-widget .qny-nav.qny-scrolled .qny-lang-toggle {
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
}
#qny-widget .qny-lang-btn {
  font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; color: rgba(43,47,102,.45);
  transition: all .2s; border-radius: 0;
}
#qny-widget .qny-nav.qny-scrolled .qny-lang-btn { color: rgba(255,255,255,.45); }
#qny-widget .qny-lang-btn.qny-lang-active {
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
  color: #fff; border-radius: 9999px;
}
#qny-widget .qny-nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; padding: 10px 20px;
  border-radius: 9999px; color: #fff;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
  transition: opacity .2s; white-space: nowrap;
}
#qny-widget .qny-nav-cta:hover { opacity: .85; }

/* Hamburger */
#qny-widget .qny-hamburger {
  display: none; flex-direction: column; gap: 5px; padding: 4px;
}
#qny-widget .qny-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--indigo); border-radius: 2px; transition: .3s;
}
#qny-widget .qny-nav.qny-scrolled .qny-hamburger span { background: rgba(255,255,255,.8); }

/* Mobile menu */
#qny-widget .qny-mobile-menu {
  display: none; flex-direction: column;
  background: rgba(30,34,72,.98); padding: 0 24px 20px;
}
#qny-widget .qny-mobile-menu.qny-open { display: flex; }
#qny-widget .qny-mobile-menu a {
  font-size: 15px; font-weight: 600; color: rgba(255,255,255,.7);
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); transition: color .2s;
}
#qny-widget .qny-mobile-menu a:hover { color: #fff; }
#qny-widget .qny-mobile-lang {
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; gap: 0;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
  border-radius: 9999px; overflow: hidden;
  align-self: flex-start; margin: 10px 0;
}
#qny-widget .qny-mobile-lang .qny-lang-btn { color: rgba(255,255,255,.45); }
#qny-widget .qny-mobile-lang .qny-lang-btn.qny-lang-active {
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
  color: #fff; border-radius: 9999px;
}
#qny-widget .qny-mobile-menu .qny-nav-cta {
  margin-top: 16px; align-self: flex-start; border-bottom: none;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  HERO                                                    ║
   ╚══════════════════════════════════════════════════════════╝ */
#qny-widget .qny-hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(175deg, #F2F0FA 0%, #D8D4F0 18%, #8B87C8 36%, #2B2F66 58%, #1E2248 100%);
}
#qny-widget .qny-hero-nodes {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; user-select: none;
}
#qny-widget .qny-hero-glow {
  position: absolute; bottom: 0; right: 0;
  width: 700px; height: 700px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(128,32,62,.22) 0%, transparent 65%);
  transform: translate(35%,35%);
}
#qny-widget .qny-hero-fade {
  position: absolute; top: 0; left: 0; right: 0; height: 224px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(242,240,250,.85) 0%, transparent 100%);
}
#qny-widget .qny-hero-content {
  position: relative; z-index: 10; flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 128px 24px 80px;
  max-width: 1240px; margin: 0 auto; width: 100%;
}
#qny-widget .qny-hero-logo { height: 128px; width: auto; margin: 0 auto 40px; }
#qny-widget .qny-hero-h1 {
  color: #fff; font-weight: 900; line-height: 1.04; letter-spacing: -.02em;
  font-size: clamp(36px, 7vw, 76px); max-width: 900px;
  margin: 0 auto 24px;
}
#qny-widget .qny-hero-sub {
  color: rgba(255,255,255,.6); font-size: clamp(16px,2vw,19px); line-height: 1.6;
  max-width: 560px; margin: 0 auto 48px;
}
#qny-widget .qny-hero-sub strong { color: rgba(255,255,255,.8); }
#qny-widget .qny-hero-cta {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
#qny-widget .qny-btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 16px; padding: 16px 32px;
  border-radius: 9999px; color: #fff;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
  transition: opacity .2s, transform .2s;
}
#qny-widget .qny-btn-primary:hover { opacity: .88; transform: scale(1.04); }
#qny-widget .qny-hero-hint {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.45);
}
#qny-widget .qny-dot {
  width: 4px; height: 4px; border-radius: 50%; background: #E8526E; flex-shrink: 0;
}
#qny-widget .qny-scroll-cue {
  position: relative; z-index: 10; display: flex; justify-content: center; padding-bottom: 40px;
  animation: qny-scroll-cue 1.8s ease-in-out infinite;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  IL PROBLEMA                                             ║
   ╚══════════════════════════════════════════════════════════╝ */
#qny-widget .qny-market-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 24px; border-radius: 16px; margin-bottom: 32px;
  background: var(--indigo-pale); border: 1px solid var(--indigo-pale2);
}
#qny-widget .qny-market-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; color: var(--muted); }
#qny-widget .qny-market-stat { font-size: 48px; font-weight: 900; line-height: 1; }
#qny-widget .qny-market-divider { width: 1px; height: 40px; background: var(--indigo-pale2); }
#qny-widget .qny-market-growth-num { font-size: 30px; font-weight: 900; }
#qny-widget .qny-market-growth-label { font-size: 11px; font-weight: 600; color: var(--muted); }
#qny-widget .qny-market-desc { font-size: 14px; line-height: 1.6; flex: 1; color: var(--body); }
#qny-widget .qny-market-desc strong { color: var(--indigo); }

/* Stat cards */
#qny-widget .qny-stats-grid {
  display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; margin-bottom: 40px;
}
#qny-widget .qny-stat-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: #fff; border-radius: 16px; padding: 28px; border: 1px solid var(--border);
  overflow: hidden; cursor: default;
  transition: border-color .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, transform .25s;
}
#qny-widget .qny-stat-card:hover {
  border-color: var(--crimson); transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(128,32,62,.09);
}
#qny-widget .qny-stat-card-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px; border-radius: 0 0 16px 16px;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%); opacity: .7;
}
#qny-widget .qny-stat-num {
  font-size: clamp(40px,5vw,54px); font-weight: 900; line-height: 1;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
#qny-widget .qny-stat-label { font-size: 14px; line-height: 1.6; font-weight: 500; color: var(--body); }

/* Progress bars */
#qny-widget .qny-gap-box {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 20px;
}
#qny-widget .qny-gap-title {
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 4px;
}
#qny-widget .qny-bar-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
#qny-widget .qny-bar-label { font-size: 12px; font-weight: 600; color: var(--body); }
#qny-widget .qny-bar-val {
  font-size: 13px; font-weight: 900;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
#qny-widget .qny-bar-track { height: 6px; border-radius: 9999px; background: var(--indigo-pale2); overflow: hidden; }
#qny-widget .qny-bar-fill {
  height: 100%; border-radius: 9999px; width: 0;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
  transition: width 1.4s cubic-bezier(.16,1,.3,1);
}

/* Callout dark */
#qny-widget .qny-callout {
  position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 16px;
  background: linear-gradient(135deg, #1E2248 0%, #2B2F66 100%);
}
#qny-widget .qny-callout-nodes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#qny-widget .qny-callout-body { position: relative; z-index: 1; padding: 40px; }
#qny-widget .qny-callout-eyebrow {
  font-size: 10px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase;
  color: #E8526E; margin-bottom: 12px;
}
#qny-widget .qny-callout-text {
  color: #fff; font-weight: 700; font-size: clamp(16px,2vw,22px); line-height: 1.4; max-width: 800px;
}
#qny-widget .qny-question-box {
  border-radius: 16px; padding: 28px; text-align: center; margin-bottom: 16px;
  background: var(--indigo-pale); border: 1px solid var(--indigo-pale2);
  font-weight: 700; font-size: 18px; color: var(--indigo); line-height: 1.5;
}
#qny-widget .qny-source { font-size: 11px; color: var(--muted); text-align: right; }

/* ╔══════════════════════════════════════════════════════════╗
   ║  PERCORSO (4 fasi)                                       ║
   ╚══════════════════════════════════════════════════════════╝ */
#qny-widget .qny-phases-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
#qny-widget .qny-phase-card {
  display: flex; flex-direction: column; gap: 20px;
  border-radius: 16px; padding: 32px; border: 1px solid var(--border);
  background: #fff; cursor: default; position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
}
#qny-widget .qny-phase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(43,47,102,.16);
  border-color: transparent;
}
#qny-widget .qny-phase-card.qny-highlight {
  background: linear-gradient(145deg,#1E2248 0%,#2B2F66 100%);
  border-color: transparent;
  box-shadow: 0 8px 32px rgba(43,47,102,.22);
}
#qny-widget .qny-phase-badge {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; letter-spacing: .12em; color: #fff;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
}
#qny-widget .qny-phase-card.qny-highlight .qny-phase-badge {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.25);
}
#qny-widget .qny-phase-glow {
  position: absolute; top: 0; right: 0; width: 160px; height: 160px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(128,32,62,.3) 0%, transparent 70%);
  transform: translate(30%,-30%);
}
#qny-widget .qny-phase-title {
  font-weight: 800; font-size: 17px; line-height: 1.3; color: var(--indigo);
}
#qny-widget .qny-phase-card.qny-highlight .qny-phase-title { color: #fff; }
#qny-widget .qny-phase-desc { font-size: 13px; line-height: 1.65; color: var(--body); }
#qny-widget .qny-phase-card.qny-highlight .qny-phase-desc { color: rgba(255,255,255,.65); }
#qny-widget .qny-phase-outputs {
  margin-top: auto; border-radius: 12px; padding: 16px;
  background: var(--indigo-pale); display: flex; flex-direction: column; gap: 8px;
}
#qny-widget .qny-phase-card.qny-highlight .qny-phase-outputs { background: rgba(255,255,255,.08); }
#qny-widget .qny-phase-outputs-label {
  font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em;
  color: var(--indigo-mid); margin-bottom: 4px;
}
#qny-widget .qny-phase-card.qny-highlight .qny-phase-outputs-label { color: #E8526E; }
#qny-widget .qny-phase-output-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; color: var(--indigo);
}
#qny-widget .qny-phase-card.qny-highlight .qny-phase-output-item { color: rgba(255,255,255,.85); }
#qny-widget .qny-phase-check {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
  display: flex; align-items: center; justify-content: center;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  ASSESSMENT                                              ║
   ╚══════════════════════════════════════════════════════════╝ */
#qny-widget .qny-assessment-grid {
  display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start;
}
#qny-widget .qny-timeline-step {
  display: flex; gap: 24px;
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
#qny-widget .qny-timeline-col { display: flex; flex-direction: column; align-items: center; }
#qny-widget .qny-timeline-badge {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; letter-spacing: .12em; color: #fff;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
}
#qny-widget .qny-timeline-line {
  width: 1px; flex: 1; margin: 8px 0; min-height: 36px;
  background: linear-gradient(to bottom, rgba(128,32,62,.6), rgba(43,47,102,.3));
}
#qny-widget .qny-timeline-body { padding-bottom: 40px; }
#qny-widget .qny-timeline-body.qny-last { padding-bottom: 0; }
#qny-widget .qny-timeline-title { font-weight: 700; font-size: 18px; color: var(--indigo); margin-bottom: 8px; }
#qny-widget .qny-timeline-desc { font-size: 14px; line-height: 1.65; color: var(--body); }

/* Result card */
#qny-widget .qny-result-card {
  position: sticky; top: 96px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(150deg, #2B2F66 0%, #1E2248 100%);
}
#qny-widget .qny-result-inner { padding: 32px; }
#qny-widget .qny-result-tag {
  font-size: 10px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase;
  color: #E8526E; margin-bottom: 20px;
}
#qny-widget .qny-result-title {
  color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.1);
}
#qny-widget .qny-result-metric { margin-bottom: 24px; }
#qny-widget .qny-result-num {
  font-size: 52px; font-weight: 900; line-height: 1;
  background: linear-gradient(120deg,#E8526E 0%,#FF8FA3 45%,#9BA4FF 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 8px;
}
#qny-widget .qny-result-desc { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.6); }
#qny-widget .qny-proc-row { margin-bottom: 12px; }
#qny-widget .qny-proc-labels { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 4px; }
#qny-widget .qny-proc-name { color: rgba(255,255,255,.5); }
#qny-widget .qny-proc-pct { color: #E8526E; }
#qny-widget .qny-proc-track { height: 4px; border-radius: 9999px; background: rgba(255,255,255,.1); overflow: hidden; }
#qny-widget .qny-proc-fill {
  height: 100%; border-radius: 9999px; width: 0;
  background: linear-gradient(120deg,#E8526E 0%,#FF8FA3 45%,#9BA4FF 100%);
  transition: width 1.4s cubic-bezier(.16,1,.3,1) .6s;
}
#qny-widget .qny-result-quote {
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; font-style: italic; line-height: 1.6; color: rgba(255,255,255,.55);
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  EMPLOYEE AUTOMATION AGENT                               ║
   ╚══════════════════════════════════════════════════════════╝ */
#qny-widget .qny-eaa-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
#qny-widget .qny-eaa-spec {
  border-radius: 16px; border: 1px solid var(--border); padding: 20px;
  background: #fff; display: flex; align-items: flex-start; gap: 12px; margin-bottom: 32px;
}
#qny-widget .qny-eaa-spec-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
}
#qny-widget .qny-eaa-spec p { font-size: 14px; font-weight: 600; line-height: 1.6; color: var(--indigo); }
#qny-widget .qny-eaa-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#qny-widget .qny-eaa-feature {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 12px; padding: 12px 16px; border: 1px solid var(--border);
}
#qny-widget .qny-eaa-feature-icon { color: var(--crimson); flex-shrink: 0; }
#qny-widget .qny-eaa-feature-label { font-size: 13px; font-weight: 600; color: var(--indigo); }

/* Chat mockup */
#qny-widget .qny-chat-card {
  border-radius: 24px; overflow: hidden; box-shadow: 0 24px 64px rgba(30,34,72,.35);
  background: linear-gradient(150deg,#1E2248 0%,#2B2F66 100%);
}
#qny-widget .qny-chat-inner { padding: 28px; }
#qny-widget .qny-chat-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.08);
}
#qny-widget .qny-chat-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; letter-spacing: .05em; color: #fff;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%); flex-shrink: 0;
}
#qny-widget .qny-chat-agent-name { font-size: 14px; font-weight: 700; color: #fff; }
#qny-widget .qny-chat-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: #E8526E;
}
#qny-widget .qny-chat-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #E8526E; }
#qny-widget .qny-chat-messages { display: flex; flex-direction: column; gap: 16px; margin-bottom: 28px; }
#qny-widget .qny-chat-msg {
  max-width: 88%; font-size: 13px; line-height: 1.6;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.82);
  border-radius: 16px 16px 16px 4px; padding: 12px 16px;
}
#qny-widget .qny-chat-msg strong { color: #E8526E; }
#qny-widget .qny-chat-files { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
#qny-widget .qny-chat-file {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.07); border-radius: 8px; padding: 6px 12px;
}
#qny-widget .qny-chat-file-icon { color: #E8526E; flex-shrink: 0; }
#qny-widget .qny-chat-msg-success {
  max-width: 88%; font-size: 13px; font-weight: 600; line-height: 1.6;
  border-radius: 16px 16px 16px 4px; padding: 12px 16px;
  background: rgba(128,32,62,.18); border: 1px solid rgba(128,32,62,.3); color: #E8526E;
}
#qny-widget .qny-chat-msg-success strong { color: #E8526E; }
#qny-widget .qny-chat-input { display: flex; gap: 8px; }
#qny-widget .qny-chat-placeholder {
  flex: 1; border-radius: 12px; padding: 12px 16px; font-size: 14px;
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.28);
  font-family: inherit;
}
#qny-widget .qny-chat-send {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
  transition: opacity .2s;
}
#qny-widget .qny-chat-send:hover { opacity: .8; }

/* ╔══════════════════════════════════════════════════════════╗
   ║  VIDEO                                                   ║
   ╚══════════════════════════════════════════════════════════╝ */
@keyframes qny-video-ring {
  0%   { box-shadow: 0 0 0 0 rgba(128,32,62,.5); }
  70%  { box-shadow: 0 0 0 18px rgba(128,32,62,0); }
  100% { box-shadow: 0 0 0 0 rgba(128,32,62,0); }
}
#qny-widget .qny-video-wrap {
  position: relative; width: 100%; max-width: 900px; margin: 0 auto;
  aspect-ratio: 16/9; border-radius: 16px; overflow: hidden;
  background: #0f1023; box-shadow: 0 24px 64px rgba(30,34,72,.35);
}
#qny-widget .qny-video-thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
#qny-widget .qny-video-overlay {
  position: absolute; inset: 0;
  background: rgba(20,22,50,.45);
}
#qny-widget .qny-video-play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: none; border: none; cursor: pointer;
}
#qny-widget .qny-video-btn {
  width: 80px; height: 80px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
  animation: qny-video-ring 2s ease-out infinite;
  transition: transform .3s;
}
#qny-widget .qny-video-play:hover .qny-video-btn { transform: scale(1.1); }
#qny-widget .qny-video-label {
  color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .03em;
  padding: 8px 20px; border-radius: 9999px;
  background: rgba(255,255,255,.12); backdrop-filter: blur(6px);
  font-family: 'Manrope', system-ui, sans-serif;
}
#qny-widget .qny-video-iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none; display: block;
}

/* ╔══════════════════════════════════════════════════════════╗
   ║  BENEFICI                                                ║
   ╚══════════════════════════════════════════════════════════╝ */
#qny-widget .qny-benefits-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px;
}
#qny-widget .qny-benefit-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--border);
  overflow: hidden; cursor: default; height: 100%;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
#qny-widget .qny-benefit-card:hover {
  border-color: transparent; transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(128,32,62,.09);
}
#qny-widget .qny-benefit-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 16px 16px 0 0;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
  opacity: .4; transition: opacity .25s;
}
#qny-widget .qny-benefit-card:hover .qny-benefit-bar { opacity: 1; }
#qny-widget .qny-benefit-icon { color: var(--indigo); transition: color .2s; }
#qny-widget .qny-benefit-card:hover .qny-benefit-icon { color: var(--crimson); }
#qny-widget .qny-benefit-range {
  font-size: clamp(22px,2.8vw,30px); font-weight: 900; line-height: 1;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
#qny-widget .qny-benefit-title { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--indigo); }
#qny-widget .qny-benefit-desc { font-size: 12px; line-height: 1.6; color: var(--body); }
#qny-widget .qny-benefit-source {
  font-size: 11px; font-weight: 500; color: var(--muted); margin-top: auto;
  padding-top: 12px; border-top: 1px solid var(--indigo-pale);
}
#qny-widget .qny-benefit-footnote { font-size: 11px; text-align: center; color: var(--muted); }

/* ╔══════════════════════════════════════════════════════════╗
   ║  TECH                                                    ║
   ╚══════════════════════════════════════════════════════════╝ */
#qny-widget .qny-tech-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
}
#qny-widget .qny-tech-block {
  display: flex; flex-direction: column; gap: 16px;
  background: #fff; border-radius: 16px; padding: 28px; border: 1px solid var(--border);
  cursor: default; transition: border-color .25s, box-shadow .25s, transform .25s;
}
#qny-widget .qny-tech-block:hover {
  border-color: transparent; transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(43,47,102,.09);
}
#qny-widget .qny-tech-icon { color: var(--indigo-mid); transition: color .2s; }
#qny-widget .qny-tech-block:hover .qny-tech-icon { color: var(--crimson); }
#qny-widget .qny-tech-line {
  width: 28px; height: 2px; border-radius: 9999px;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
}
#qny-widget .qny-tech-label { font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--indigo); }
#qny-widget .qny-tech-desc { font-size: 13px; line-height: 1.65; color: var(--body); }

/* ╔══════════════════════════════════════════════════════════╗
   ║  PERCHÉ QUINARYO                                         ║
   ╚══════════════════════════════════════════════════════════╝ */
#qny-widget .qny-why-nodes {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
#qny-widget .qny-why-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 56px;
}
#qny-widget .qny-why-card {
  display: flex; flex-direction: column; gap: 12px;
  background: #fff; border-radius: 16px; padding: 24px; border: 1px solid var(--border);
}
#qny-widget .qny-why-icon { color: var(--crimson); }
#qny-widget .qny-why-title { font-weight: 700; font-size: 15px; color: var(--indigo); }
#qny-widget .qny-why-desc { font-size: 13px; line-height: 1.65; color: var(--body); }
#qny-widget .qny-collab-section { padding-top: 32px; border-top: 1px solid var(--indigo-pale2); }
#qny-widget .qny-collab-label {
  font-size: 10px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
#qny-widget .qny-collab-list { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
#qny-widget .qny-collab-item { font-weight: 900; font-size: 14px; letter-spacing: .04em; color: var(--indigo-mid); }

/* ╔══════════════════════════════════════════════════════════╗
   ║  CTA FINALE                                              ║
   ╚══════════════════════════════════════════════════════════╝ */
#qny-widget .qny-cta {
  position: relative; padding: 144px 24px; overflow: hidden;
  background: linear-gradient(175deg, #F2F0FA 0%, #D8D4F0 16%, #8B87C8 32%, #2B2F66 52%, #1E2248 100%);
}
#qny-widget .qny-cta-nodes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#qny-widget .qny-cta-fade {
  position: absolute; top: 0; left: 0; right: 0; height: 192px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(242,240,250,.80) 0%, transparent 100%);
}
#qny-widget .qny-cta-glow {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 700px; height: 400px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(128,32,62,.24) 0%, transparent 70%);
}
#qny-widget .qny-cta-inner { position: relative; z-index: 10; max-width: 1240px; margin: 0 auto; text-align: center; }
#qny-widget .qny-cta-logo { height: 80px; width: auto; margin: 0 auto 40px; }
#qny-widget .qny-cta-h2 {
  color: #fff; font-weight: 900; line-height: 1.15;
  font-size: clamp(28px,5vw,60px); max-width: 780px; margin: 0 auto 24px;
}
#qny-widget .qny-cta-sub {
  font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.55);
  max-width: 460px; margin: 0 auto 48px;
}
#qny-widget .qny-cta-btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 18px; padding: 20px 48px;
  border-radius: 9999px; color: #fff;
  background: linear-gradient(120deg,#80203E 0%,#C0385A 45%,#2B2F66 100%);
  transition: opacity .2s, transform .2s;
}
#qny-widget .qny-cta-btn:hover { opacity: .88; transform: scale(1.04); }
#qny-widget .qny-cta-hint { margin-top: 20px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.3); }

/* ╔══════════════════════════════════════════════════════════╗
   ║  FOOTER                                                  ║
   ╚══════════════════════════════════════════════════════════╝ */
#qny-widget .qny-footer {
  padding: 40px 24px;
  background: var(--indigo-pale); border-top: 1px solid var(--indigo-pale2);
}
#qny-widget .qny-footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
#qny-widget .qny-footer-logo { height: 36px; width: auto; }
#qny-widget .qny-footer-links { display: flex; gap: 28px; }
#qny-widget .qny-footer-links a {
  font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s;
}
#qny-widget .qny-footer-links a:hover { color: var(--indigo); }
#qny-widget .qny-footer-copy { font-size: 12px; color: var(--muted); }

/* ── Hero two-column layout ───────────────────────────────── */
#qny-widget .qny-hero-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
#qny-widget .qny-hero-logo-mobile { display: none; justify-content: center; margin-bottom: 32px; animation: qny-fade-in .8s ease .1s both; }
#qny-widget .qny-hero-logo-desk   { margin-bottom: 40px; animation: qny-fade-in .8s ease .1s both; }
#qny-widget .qny-hero-col-right   { animation: qny-fade-up .8s cubic-bezier(.16,1,.3,1) .55s both; }

/* Video box (hero) */
#qny-widget .qny-video-box {
  position: relative; width: 100%; aspect-ratio: 16/9;
  border-radius: 16px; overflow: hidden; background: #0f1023;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.08);
}
#qny-widget .qny-video-box .qny-video-thumb  { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#qny-widget .qny-video-box .qny-video-overlay { position: absolute; inset: 0; background: rgba(15,16,35,0.5); }
#qny-widget .qny-video-box .qny-video-play   { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: none; border: none; cursor: pointer; }
#qny-widget .qny-video-box .qny-video-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ╔══════════════════════════════════════════════════════════╗
   ║  RESPONSIVE                                              ║
   ╚══════════════════════════════════════════════════════════╝ */
@media (max-width: 1024px) {
  #qny-widget .qny-phases-grid { grid-template-columns: 1fr 1fr; }
  #qny-widget .qny-assessment-grid { grid-template-columns: 1fr; }
  #qny-widget .qny-result-card { position: static; }
  #qny-widget .qny-eaa-grid { grid-template-columns: 1fr; gap: 48px; }
  #qny-widget .qny-benefits-grid { grid-template-columns: repeat(3,1fr); }
  #qny-widget .qny-tech-grid { grid-template-columns: repeat(2,1fr); }
  #qny-widget .qny-why-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  #qny-widget .qny-section { padding: 80px 20px; }
  #qny-widget .qny-nav-links { display: none; }
  #qny-widget .qny-nav-right .qny-nav-cta { display: none; }
  #qny-widget .qny-hamburger { display: flex; }
  #qny-widget .qny-stats-grid { grid-template-columns: 1fr 1fr; }
  #qny-widget .qny-market-divider { display: none; }
  #qny-widget .qny-phases-grid { grid-template-columns: 1fr; }
  #qny-widget .qny-benefits-grid { grid-template-columns: 1fr 1fr; }
  #qny-widget .qny-hero-logo { height: 96px; }
  #qny-widget .qny-cta { padding: 80px 20px; }
  #qny-widget .qny-hero-two-col { grid-template-columns: 1fr; gap: 40px; }
  #qny-widget .qny-hero-logo-mobile { display: flex; }
  #qny-widget .qny-hero-logo-desk { display: none; }
  #qny-widget .qny-hero-content { padding: 100px 20px 60px; }
}
@media (max-width: 480px) {
  #qny-widget .qny-stats-grid { grid-template-columns: 1fr 1fr; }
  #qny-widget .qny-benefits-grid { grid-template-columns: 1fr; }
  #qny-widget .qny-why-grid { grid-template-columns: 1fr; }
  #qny-widget .qny-tech-grid { grid-template-columns: 1fr; }
  #qny-widget .qny-eaa-features { grid-template-columns: 1fr; }
  #qny-widget .qny-footer-inner { flex-direction: column; align-items: center; text-align: center; }
  #qny-widget .qny-hero-cta { flex-direction: column; }
}
