/* ═══════════════════════════════════════════════════════════════
   Genia Agentic — Page styles
   Palette: #00FFD4 (teal) · #5465FF (blue) · #D2DDFF (lavender) · #050208 (black)
   ═══════════════════════════════════════════════════════════════ */

/* ── Local tokens ────────────────────────────────────────────── */
:root {
  --ag-teal:        #00FFD4;
  --ag-teal-mid:    #00E8BC;
  --ag-blue:        #5465FF;
  --ag-blue-deep:   #3B4FEE;
  --ag-lavender:    #D2DDFF;
  --ag-black:       #050208;
  --ag-teal-rgb:    0, 255, 212;
  --ag-blue-rgb:    84, 101, 255;
  --ag-lav-rgb:     210, 221, 255;
}

/* ── Reveal animation ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── CTA button — teal fill ──────────────────────────────────── */
.button-agentic {
  color: var(--ag-black);
  font-weight: 700;
  background: linear-gradient(135deg, var(--ag-teal), var(--ag-teal-mid));
  box-shadow: 0 20px 60px rgba(var(--ag-teal-rgb), 0.32);
  border-color: transparent;
}

.button-agentic:hover {
  box-shadow: 0 28px 80px rgba(var(--ag-teal-rgb), 0.48);
}

/* ── Ghost button override for dark bg ──────────────────────── */
.button-ghost-ag {
  color: var(--ag-lavender);
  border-color: rgba(var(--ag-lav-rgb), 0.22);
  background: rgba(var(--ag-lav-rgb), 0.06);
  backdrop-filter: blur(14px);
}

.button-ghost-ag:hover {
  border-color: rgba(var(--ag-teal-rgb), 0.5);
  color: var(--ag-teal);
  box-shadow: 0 18px 44px rgba(var(--ag-teal-rgb), 0.12);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.ag-hero {
  display: grid;
  align-items: center;
  isolation: isolate;
  min-height: 100svh;
  padding: clamp(78px, 8vh, 96px) 0 clamp(22px, 3.4vh, 36px);
  background:
    radial-gradient(ellipse 120% 80% at 70% 20%,  rgba(var(--ag-blue-rgb), 0.38), transparent 55%),
    radial-gradient(ellipse  70% 60% at 10% 85%,  rgba(var(--ag-teal-rgb), 0.14), transparent 52%),
    radial-gradient(ellipse  55% 70% at 88% 72%,  rgba(var(--ag-blue-rgb), 0.22), transparent 48%),
    linear-gradient(155deg, #050208 0%, #07091A 30%, #0A0E28 60%, #0C1235 100%);
}

/* Teal + blue aurora overrides */
.ag-hero .hero-aurora span:nth-child(1) {
  background: radial-gradient(circle, rgba(var(--ag-blue-rgb), 0.78), rgba(var(--ag-blue-rgb), 0.3) 50%, transparent);
}
.ag-hero .hero-aurora span:nth-child(2) {
  background: radial-gradient(circle, rgba(var(--ag-teal-rgb), 0.32), rgba(var(--ag-blue-rgb), 0.16) 50%, transparent);
}
.ag-hero .hero-aurora span:nth-child(3) {
  background: radial-gradient(circle, rgba(var(--ag-blue-rgb), 0.52), rgba(59, 30, 180, 0.22) 50%, transparent);
}

/* Grid e scanlines rimossi su questa pagina */
.ag-hero .hero-depth-grid,
.ag-hero .scanlines {
  display: none;
}

/* Fade bottom hero → intro-strip */
.ag-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, transparent 0%, #0A0E28 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Hero shell — centrato verticale ────────────────────────── */
.ag-hero-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(12px, 2vh, 20px);
  width: min(920px, calc(100% - 40px));
  min-height: 0;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0;
}

/* ── Hero copy ───────────────────────────────────────────────── */
.ag-hero-copy {
  position: relative;
  z-index: 4;
  max-width: 820px;
  width: 100%;
}

.ag-hero-copy h1 {
  font-size: clamp(30px, 3.35vw, 48px);
  font-weight: 700;
  line-height: 1.06;
  color: var(--white);
  text-wrap: balance;
}

.ag-hero-copy h1 em {
  font-style: normal;
  color: var(--ag-teal);
  text-shadow: 0 0 36px rgba(var(--ag-teal-rgb), 0.52);
}

.ag-hero-lead {
  margin: 12px auto 0;
  max-width: 660px;
  color: rgba(var(--ag-lav-rgb), 0.72);
  font-size: 16px;
  line-height: 1.55;
}

.ag-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 18px;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   GHOST WATERMARK — testo gigante semitrasparente nelle sezioni
   ═══════════════════════════════════════════════════════════════ */
.ag-ghost {
  position: absolute;
  pointer-events: none;
  user-select: none;
  --ag-ghost-edge: max(42px, calc((100vw - 1180px) / 2 + 18px));
  max-width: none;
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(92px, 12.8vw, 184px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.85;
  white-space: nowrap;
  z-index: 0;
  overflow: visible;
  opacity: 0.68;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.75px var(--ag-ghost-stroke, rgba(var(--ag-lav-rgb), 0.34));
  text-shadow: none;
  mix-blend-mode: normal;
}

/* Varianti colore/tono */
.ag-ghost--white {
  --ag-ghost-stroke: rgba(255, 255, 255, 0.40);
}
.ag-ghost--teal  {
  --ag-ghost-stroke: rgba(var(--ag-teal-rgb), 0.56);
}
.ag-ghost--blue  {
  --ag-ghost-stroke: rgba(var(--ag-blue-rgb), 0.56);
}
.ag-ghost--lav   {
  --ag-ghost-stroke: rgba(var(--ag-lav-rgb), 0.50);
}

/* Posizioni */
.ag-ghost--right  { right: var(--ag-ghost-edge); top: clamp(170px, 18vw, 250px); transform: none; }
.ag-ghost--left   { left: var(--ag-ghost-edge); top: clamp(170px, 18vw, 250px); transform: none; }
.ag-ghost--bottom { bottom: auto; top: clamp(210px, 22vw, 310px); right: var(--ag-ghost-edge); transform: none; }
.ag-ghost--top    { top: clamp(18px, 4vw, 54px); left: var(--ag-ghost-edge); }
.ag-ghost--center { left: 50%; top: 50%; transform: translate(-50%, -50%); }

#problema > .ag-ghost       { right: var(--ag-ghost-edge); top: clamp(140px, 12vw, 190px); font-size: clamp(82px, 9.6vw, 136px); }
#soluzione > .ag-ghost      { left: var(--ag-ghost-edge); top: clamp(170px, 15vw, 220px); font-size: clamp(84px, 10vw, 144px); }
#agentificare > .ag-ghost   { right: var(--ag-ghost-edge); top: clamp(145px, 13vw, 200px); font-size: clamp(92px, 11vw, 158px); }
#come-funziona > .ag-ghost  { right: var(--ag-ghost-edge); top: clamp(150px, 13vw, 205px); font-size: clamp(80px, 9.8vw, 140px); }
#confronto > .ag-ghost      { left: 50%; top: 58%; transform: translate(-50%, -50%); font-size: clamp(68px, 8.8vw, 126px); }
#stack > .ag-ghost          { right: var(--ag-ghost-edge); top: clamp(170px, 15vw, 220px); font-size: clamp(92px, 12vw, 176px); }
#casi-duso > .ag-ghost      { left: var(--ag-ghost-edge); top: clamp(135px, 12vw, 190px); font-size: clamp(76px, 9.4vw, 132px); }
#governance > .ag-ghost     { right: var(--ag-ghost-edge); top: clamp(148px, 13vw, 205px); font-size: clamp(64px, 8.2vw, 116px); }
#analisi > .ag-ghost        { font-size: clamp(78px, 10vw, 144px); }

/* ── Tech tags ──────────────────────────────────────────────── */
.ag-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}

.ag-hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(var(--ag-teal-rgb), 0.22);
  border-radius: 999px;
  background: rgba(var(--ag-teal-rgb), 0.07);
  backdrop-filter: blur(12px);
  color: rgba(var(--ag-lav-rgb), 0.80);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ag-hero-tags span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ag-teal);
  box-shadow: 0 0 8px var(--ag-teal);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   HERO VISUAL — glow field e orbit rings (full-bleed, assoluti)
   ═══════════════════════════════════════════════════════════════ */

/* Glow dietro il logo — ancorato al centro dell'hero */
.ag-glow-field {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(var(--ag-teal-rgb), 0.14) 0%,
      rgba(var(--ag-blue-rgb), 0.24) 38%,
      transparent 68%);
  filter: blur(62px);
  pointer-events: none;
  z-index: 1;
}

/* Orbit rings — ancorati al centro */
.ag-orbit-ring {
  position: absolute;
  top: 38%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(60deg) rotateZ(-12deg);
  pointer-events: none;
}

.ag-orbit-1 {
  width: 560px;
  height: 560px;
  border: 1px solid rgba(var(--ag-teal-rgb), 0.16);
  animation: ag-orbit-spin 24s linear infinite;
  z-index: 2;
}

.ag-orbit-2 {
  width: 720px;
  height: 720px;
  border: 1px solid rgba(var(--ag-blue-rgb), 0.10);
  animation: ag-orbit-spin 40s linear infinite reverse;
  z-index: 2;
}

@keyframes ag-orbit-spin {
  to { transform: translate(-50%, -50%) rotateX(60deg) rotateZ(348deg); }
}

/* Logo stage — in flusso, centrato */
.ag-logo-stage {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Halo dietro il logo */
.ag-logo-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(330px, 36vw, 500px);
  height: clamp(330px, 36vw, 500px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%,
      rgba(var(--ag-teal-rgb), 0.18) 0%,
      rgba(var(--ag-blue-rgb), 0.26) 42%,
      transparent 68%);
  filter: blur(40px);
  pointer-events: none;
}

/* Il logo — grande e fisso */
.ag-stage-logo {
  position: relative;
  z-index: 6;
  width: auto;
  height: clamp(250px, 34vh, 380px);
  max-width: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 32px rgba(var(--ag-teal-rgb), 0.75))
    drop-shadow(0 0 80px rgba(var(--ag-blue-rgb), 0.50))
    drop-shadow(0 6px 60px rgba(var(--ag-teal-rgb), 0.38));
}

/* ═══════════════════════════════════════════════════════════════
   INTRO STRIP
   ═══════════════════════════════════════════════════════════════ */
.ag-intro-strip {
  overflow: hidden;
  padding: 14px 0;
  background:
    radial-gradient(ellipse 100% 140% at 50% 50%, rgba(var(--ag-blue-rgb), 0.07), transparent 62%),
    linear-gradient(180deg, #0A0E28 0%, #060A1A 100%);
}

.ag-ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ag-ticker 32s linear infinite;
  width: max-content;
}

.ag-ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  color: rgba(var(--ag-lav-rgb), 0.55);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ag-ticker-track span::after {
  content: "·";
  color: rgba(var(--ag-teal-rgb), 0.40);
  font-size: 18px;
}

@keyframes ag-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════
   SECTION VARIANTS — gradients, no flat black
   ═══════════════════════════════════════════════════════════════ */

/* Dark sections — teal accent, shifted per-section */
.ag-section-dark {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 70% 55% at var(--ag-gx, 80%) var(--ag-gy, 20%),
      rgba(var(--ag-teal-rgb), 0.07), transparent 60%),
    radial-gradient(ellipse 55% 45% at var(--ag-gx2, 15%) var(--ag-gy2, 80%),
      rgba(var(--ag-blue-rgb), 0.10), transparent 58%),
    #060A1A;
}

/* Mid sections — blue accent, shifted per-section */
.ag-section-mid {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 75% 60% at var(--ag-gx, 20%) var(--ag-gy, 25%),
      rgba(var(--ag-blue-rgb), 0.13), transparent 58%),
    radial-gradient(ellipse 50% 45% at var(--ag-gx2, 85%) var(--ag-gy2, 75%),
      rgba(var(--ag-teal-rgb), 0.06), transparent 55%),
    #060A1A;
}

/* Per-section gradient accent positions */
#problema   { --ag-gx: 85%; --ag-gy: 18%; --ag-gx2: 12%; --ag-gy2: 85%; }
#agentificare { --ag-gx: 15%; --ag-gy: 25%; --ag-gx2: 88%; --ag-gy2: 75%; }
#confronto  { --ag-gx: 75%; --ag-gy: 80%; --ag-gx2: 18%; --ag-gy2: 15%; }
#casi-duso  { --ag-gx: 22%; --ag-gy: 20%; --ag-gx2: 80%; --ag-gy2: 82%; }
#soluzione  { --ag-gx: 80%; --ag-gy: 22%; --ag-gx2: 10%; --ag-gy2: 78%; }
#come-funziona { --ag-gx: 12%; --ag-gy: 30%; --ag-gx2: 85%; --ag-gy2: 72%; }
#stack      { --ag-gx: 70%; --ag-gy: 75%; --ag-gx2: 25%; --ag-gy2: 20%; }
#governance { --ag-gx: 18%; --ag-gy: 18%; --ag-gx2: 82%; --ag-gy2: 80%; }

.ag-section-dark > .container,
.ag-section-mid > .container {
  position: relative;
  z-index: 1;
}

.ag-section-dark .eyebrow       { color: var(--ag-teal); }
.ag-section-dark h2              { color: var(--white); }
.ag-section-dark .section-lead  { color: rgba(var(--ag-lav-rgb), 0.60); }

.ag-section-mid .eyebrow        { color: var(--ag-teal); }
.ag-section-mid h2               { color: var(--white); }
.ag-section-mid .section-lead   { color: rgba(var(--ag-lav-rgb), 0.60); }

.ag-section-light { background: var(--cloud); }

.ag-accent {
  color: var(--ag-teal);
  text-shadow: 0 0 24px rgba(var(--ag-teal-rgb), 0.36);
}

/* ═══════════════════════════════════════════════════════════════
   PROBLEM SECTION
   ═══════════════════════════════════════════════════════════════ */
.ag-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.ag-problem-card {
  padding: 32px 28px;
  border: 1px solid rgba(var(--ag-lav-rgb), 0.07);
  border-radius: var(--radius);
  background: rgba(var(--ag-lav-rgb), 0.03);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.ag-problem-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(var(--ag-blue-rgb), 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.ag-problem-card:hover {
  border-color: rgba(var(--ag-teal-rgb), 0.26);
  background: rgba(var(--ag-blue-rgb), 0.06);
  transform: translateY(-4px);
}

.ag-problem-card:hover::before { opacity: 1; }

.ag-problem-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(var(--ag-blue-rgb), 0.14);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.ag-problem-icon svg { width: 22px; height: 22px; stroke: var(--ag-teal); }
.ag-problem-card h3  { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 10px; position: relative; z-index: 1; }
.ag-problem-card p   { font-size: 14px; line-height: 1.65; color: rgba(var(--ag-lav-rgb), 0.52); position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════════
   SOLUTION SECTION
   ═══════════════════════════════════════════════════════════════ */
.ag-visual-band {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1.25fr);
  gap: 24px;
  align-items: center;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid rgba(var(--ag-blue-rgb), 0.24);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 90% at 90% 30%, rgba(var(--ag-teal-rgb), 0.12), transparent 62%),
    rgba(var(--ag-lav-rgb), 0.025);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.ag-visual-copy span {
  display: block;
  margin-bottom: 12px;
  color: rgba(var(--ag-teal-rgb), 0.86);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.ag-visual-copy strong {
  display: block;
  max-width: 380px;
  color: var(--white);
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.05;
  text-wrap: balance;
}

.ag-visual-photo,
.ag-panel-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(var(--ag-lav-rgb), 0.16);
  border-radius: 18px;
  background: rgba(var(--ag-blue-rgb), 0.08);
  box-shadow: 0 24px 70px rgba(0, 2, 6, 0.24);
}

.ag-visual-photo {
  min-height: 260px;
  aspect-ratio: 16 / 7;
}

.ag-panel-photo {
  aspect-ratio: 16 / 9;
  margin-bottom: 24px;
}

.ag-panel-photo--compact {
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
}

.ag-visual-photo::after,
.ag-panel-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(var(--ag-teal-rgb), 0.18), transparent 34%),
    radial-gradient(ellipse at 82% 18%, rgba(var(--ag-blue-rgb), 0.22), transparent 42%);
  pointer-events: none;
}

.ag-visual-photo img,
.ag-panel-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.16) contrast(1.05);
  transform: scale(1.01);
}

.ag-solution-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-top: 52px;
}

.ag-solution-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ag-solution-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ag-solution-check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(var(--ag-teal-rgb), 0.12);
  border: 1px solid rgba(var(--ag-teal-rgb), 0.32);
  margin-top: 2px;
}

.ag-solution-check svg { width: 14px; height: 14px; stroke: var(--ag-teal); }

.ag-solution-list li strong { display: block; color: var(--white); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.ag-solution-list li span   { font-size: 14px; color: rgba(var(--ag-lav-rgb), 0.52); line-height: 1.6; }

.ag-solution-panel {
  padding: 36px;
  border: 1px solid rgba(var(--ag-blue-rgb), 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(var(--ag-blue-rgb), 0.14), transparent 56%),
    rgba(var(--ag-lav-rgb), 0.03);
  backdrop-filter: blur(22px);
  position: relative;
  overflow: hidden;
}

.ag-panel-kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--ag-teal); margin-bottom: 14px; }
.ag-panel-title  { font-family: "Poppins", Arial, sans-serif; font-size: 21px; font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 16px; }

.ag-panel-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 24px;
}

.ag-panel-metric {
  padding: 16px;
  border: 1px solid rgba(var(--ag-teal-rgb), 0.16);
  border-radius: var(--radius);
  background: rgba(var(--ag-teal-rgb), 0.06);
  text-align: center;
}

.ag-panel-metric strong { display: block; font-family: "Poppins", Arial, sans-serif; font-size: 26px; font-weight: 800; color: var(--ag-teal); line-height: 1; margin-bottom: 6px; }
.ag-panel-metric span   { font-size: 11px; color: rgba(var(--ag-lav-rgb), 0.50); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }

/* ═══════════════════════════════════════════════════════════════
   AGENTIFICAZIONE CARDS
   ═══════════════════════════════════════════════════════════════ */
.ag-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.ag-card {
  padding: 34px 28px;
  border: 1px solid rgba(var(--ag-blue-rgb), 0.16);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--ag-blue-rgb), 0.07), transparent 62%),
    rgba(var(--ag-lav-rgb), 0.02);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.ag-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ag-teal), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.ag-card:hover {
  border-color: rgba(var(--ag-teal-rgb), 0.28);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--ag-blue-rgb), 0.12), transparent 62%),
    rgba(var(--ag-lav-rgb), 0.03);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(var(--ag-blue-rgb), 0.14);
}

.ag-card:hover::before { opacity: 1; }

.ag-card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(var(--ag-blue-rgb), 0.14);
  border: 1px solid rgba(var(--ag-teal-rgb), 0.22);
  margin-bottom: 20px;
}

.ag-card-icon svg { width: 22px; height: 22px; stroke: var(--ag-teal); }
.ag-card h3 { font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.25; }
.ag-card p  { font-size: 14px; line-height: 1.65; color: rgba(var(--ag-lav-rgb), 0.50); margin: 0 0 18px; }

.ag-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.ag-card-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(var(--ag-blue-rgb), 0.12);
  border: 1px solid rgba(var(--ag-blue-rgb), 0.24);
  color: rgba(var(--ag-teal-rgb), 0.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ═══════════════════════════════════════════════════════════════
   COME FUNZIONA — Timeline
   ═══════════════════════════════════════════════════════════════ */
.ag-timeline {
  position: relative;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
}

.ag-timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--ag-teal), rgba(var(--ag-blue-rgb), 0.4), rgba(var(--ag-blue-rgb), 0.08) 90%);
}

.ag-step { display: flex; gap: 36px; align-items: flex-start; padding: 0 0 44px; position: relative; }
.ag-step:last-child { padding-bottom: 0; }

.ag-step-num {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ag-teal), var(--ag-blue));
  box-shadow: 0 0 28px rgba(var(--ag-teal-rgb), 0.38);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--ag-black);
  position: relative;
  z-index: 2;
}

.ag-step-body { padding-top: 10px; flex: 1; }
.ag-step-body h3 { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 10px; line-height: 1.2; }
.ag-step-body p  { font-size: 15px; line-height: 1.65; color: rgba(var(--ag-lav-rgb), 0.55); max-width: 620px; }

.ag-timeline-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 72px;
  align-items: start;
}

.ag-funziona-panel {
  position: sticky;
  top: 108px;
  padding: 34px;
  border: 1px solid rgba(var(--ag-blue-rgb), 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 80% 70% at 60% 20%, rgba(var(--ag-blue-rgb), 0.14), transparent 58%),
    rgba(12, 16, 40, 0.9);
  backdrop-filter: blur(22px);
}

.ag-funziona-panel h3 { font-size: 18px; font-weight: 700; color: var(--white); margin-bottom: 14px; }
.ag-funziona-panel p  { font-size: 14px; line-height: 1.65; color: rgba(var(--ag-lav-rgb), 0.52); margin-bottom: 20px; }

.ag-mini-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.ag-mini-tags span {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(var(--ag-teal-rgb), 0.08);
  border: 1px solid rgba(var(--ag-teal-rgb), 0.22);
  color: rgba(var(--ag-teal-rgb), 0.85);
  font-size: 11px;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════
   CONFRONTO
   ═══════════════════════════════════════════════════════════════ */
.ag-confronto-wrap {
  margin-top: 52px;
  border: 1px solid rgba(var(--ag-blue-rgb), 0.22);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ag-confronto-header { display: grid; grid-template-columns: 1fr 1fr 1fr; background: rgba(var(--ag-blue-rgb), 0.10); }
.ag-confronto-header div { padding: 20px 28px; font-family: "Poppins", Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.ag-confronto-header div:first-child  { color: rgba(var(--ag-lav-rgb), 0.40); }
.ag-confronto-header div:nth-child(2) { color: rgba(var(--ag-lav-rgb), 0.50); border-left: 1px solid rgba(var(--ag-lav-rgb), 0.06); }
.ag-confronto-header div:nth-child(3) { color: var(--ag-teal); border-left: 1px solid rgba(var(--ag-teal-rgb), 0.24); background: rgba(var(--ag-teal-rgb), 0.06); }

.ag-confronto-row { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid rgba(var(--ag-lav-rgb), 0.05); transition: background 0.2s; }
.ag-confronto-row:hover { background: rgba(var(--ag-blue-rgb), 0.04); }
.ag-confronto-row div  { padding: 17px 28px; font-size: 14px; line-height: 1.55; color: rgba(var(--ag-lav-rgb), 0.60); display: flex; align-items: center; gap: 8px; }
.ag-confronto-row div:nth-child(2) { border-left: 1px solid rgba(var(--ag-lav-rgb), 0.05); color: rgba(var(--ag-lav-rgb), 0.38); }
.ag-confronto-row div:nth-child(3) { border-left: 1px solid rgba(var(--ag-teal-rgb), 0.16); background: rgba(var(--ag-teal-rgb), 0.03); color: rgba(var(--ag-lav-rgb), 0.85); font-weight: 600; }

.ag-check { color: var(--ag-teal); }
.ag-cross  { color: rgba(var(--ag-lav-rgb), 0.20); }

/* ═══════════════════════════════════════════════════════════════
   STACK
   ═══════════════════════════════════════════════════════════════ */
.ag-stack-intro { max-width: 700px; font-size: 17px; line-height: 1.65; color: rgba(var(--ag-lav-rgb), 0.60); margin-top: 20px; }

.ag-stack-cluster {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ag-stack-pill {
  padding: 24px 18px;
  border: 1px solid rgba(var(--ag-blue-rgb), 0.18);
  border-radius: var(--radius);
  background: rgba(var(--ag-lav-rgb), 0.02);
  backdrop-filter: blur(14px);
  text-align: center;
  transition: border-color 0.22s, background 0.22s, transform 0.22s;
}

.ag-stack-pill:hover {
  border-color: rgba(var(--ag-teal-rgb), 0.32);
  background: rgba(var(--ag-blue-rgb), 0.08);
  transform: translateY(-3px);
}

.ag-stack-pill-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(var(--ag-blue-rgb), 0.14); margin: 0 auto 14px; }
.ag-stack-pill-icon svg { width: 22px; height: 22px; stroke: var(--ag-teal); }
.ag-stack-pill strong { display: block; font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.ag-stack-pill span   { font-size: 12px; color: rgba(var(--ag-lav-rgb), 0.42); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   CASI D'USO
   ═══════════════════════════════════════════════════════════════ */
.ag-usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.ag-usecase-card {
  padding: 36px 32px;
  border: 1px solid rgba(var(--ag-lav-rgb), 0.07);
  border-radius: var(--radius-lg);
  background: rgba(var(--ag-lav-rgb), 0.02);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.ag-usecase-card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ag-teal), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.ag-usecase-card:hover {
  border-color: rgba(var(--ag-teal-rgb), 0.24);
  background: rgba(var(--ag-blue-rgb), 0.05);
  transform: translateY(-4px);
}

.ag-usecase-card:hover::after { opacity: 1; }

.ag-usecase-num { font-family: "Poppins", Arial, sans-serif; font-size: 40px; font-weight: 900; color: rgba(var(--ag-blue-rgb), 0.18); line-height: 1; margin-bottom: 12px; letter-spacing: -2px; }
.ag-usecase-card h3 { font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.2; }
.ag-usecase-card p  { font-size: 14px; line-height: 1.65; color: rgba(var(--ag-lav-rgb), 0.52); margin: 0 0 18px; }

.ag-usecase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(var(--ag-teal-rgb), 0.08);
  border: 1px solid rgba(var(--ag-teal-rgb), 0.20);
  color: rgba(var(--ag-teal-rgb), 0.82);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ag-usecase-tag svg { width: 13px; height: 13px; stroke: var(--ag-teal); }

/* ═══════════════════════════════════════════════════════════════
   GOVERNANCE
   ═══════════════════════════════════════════════════════════════ */
.ag-gov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.ag-gov-card {
  padding: 30px 26px;
  border: 1px solid rgba(var(--ag-blue-rgb), 0.16);
  border-radius: var(--radius);
  background: rgba(var(--ag-blue-rgb), 0.06);
  backdrop-filter: blur(14px);
  transition: border-color 0.22s, background 0.22s, transform 0.22s;
}

.ag-gov-card:hover {
  border-color: rgba(var(--ag-teal-rgb), 0.28);
  background: rgba(var(--ag-blue-rgb), 0.10);
  transform: translateY(-3px);
}

.ag-gov-card svg { width: 26px; height: 26px; stroke: var(--ag-teal); margin-bottom: 16px; }
.ag-gov-card h3  { font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.ag-gov-card p   { font-size: 13px; line-height: 1.65; color: rgba(var(--ag-lav-rgb), 0.50); }

/* ═══════════════════════════════════════════════════════════════
   CTA FINALE
   ═══════════════════════════════════════════════════════════════ */
.ag-cta-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(var(--ag-blue-rgb), 0.22), transparent 65%),
    #060A1A;
  text-align: center;
  padding: 120px 20px;
}

.ag-cta-section > :not(.ag-ghost) {
  position: relative;
  z-index: 1;
}

.ag-cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(var(--ag-blue-rgb), 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ag-blue-rgb), 0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 65% 65% at 50% 50%, black, transparent);
}

.ag-cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(var(--ag-teal-rgb), 0.28);
  border-radius: 999px;
  background: rgba(var(--ag-teal-rgb), 0.08);
  color: rgba(var(--ag-teal-rgb), 0.90);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.ag-cta-kicker svg { width: 14px; height: 14px; stroke: var(--ag-teal); }

.ag-cta-section h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  max-width: 780px;
  margin: 0 auto 18px;
  text-wrap: balance;
}

.ag-cta-section p {
  font-size: 17px;
  color: rgba(var(--ag-lav-rgb), 0.58);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.ag-cta-actions { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1080px) {
  .ag-stage-logo         { height: 340px; }
  .ag-orbit-1            { width: 420px; height: 420px; }
  .ag-orbit-2            { width: 560px; height: 560px; }
  .ag-glow-field         { width: 520px; height: 520px; }
  .ag-logo-halo          { width: 420px; height: 420px; }
  .ag-visual-band        { grid-template-columns: 1fr; }
  .ag-visual-copy strong { max-width: 720px; }

  .ag-solution-layout    { grid-template-columns: 1fr; gap: 40px; }
  .ag-timeline-layout    { grid-template-columns: 1fr; }
  .ag-funziona-panel     { position: static; }
  .ag-problem-grid       { grid-template-columns: repeat(2, 1fr); }
  .ag-cards-grid         { grid-template-columns: repeat(2, 1fr); }
  .ag-stack-cluster      { grid-template-columns: repeat(2, 1fr); }
  .ag-gov-grid           { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .ag-hero               { padding: 92px 0 30px; }
  .ag-hero-shell         { width: min(100% - 28px, 920px); gap: 14px; }
  .ag-stage-logo         { height: 220px; }
  .ag-hero-copy h1       { font-size: clamp(28px, 8vw, 38px); line-height: 1.08; }
  .ag-hero-lead          { font-size: 15px; line-height: 1.5; }
  .ag-hero-actions       { display: grid; width: 100%; margin-top: 16px; }
  .ag-hero-actions .button { width: 100%; }
  .ag-orbit-2            { display: none; }
  .ag-glow-field         { width: 300px; height: 300px; }
  .ag-logo-halo          { width: 260px; height: 260px; }
  .ag-ghost              { font-size: clamp(38px, 12vw, 54px); opacity: 0.50; -webkit-text-stroke-width: 1.1px; }
  #problema > .ag-ghost,
  #soluzione > .ag-ghost,
  #agentificare > .ag-ghost,
  #come-funziona > .ag-ghost,
  #stack > .ag-ghost,
  #casi-duso > .ag-ghost,
  #governance > .ag-ghost {
    left: auto;
    right: 16px;
    top: 22px;
    transform: none;
  }
  #soluzione > .ag-ghost,
  #casi-duso > .ag-ghost {
    left: 16px;
    right: auto;
  }
  #confronto > .ag-ghost,
  #analisi > .ag-ghost {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .ag-visual-band        { padding: 16px; gap: 18px; }
  .ag-visual-photo       { min-height: 180px; aspect-ratio: 4 / 3; }
  .ag-panel-photo        { border-radius: 14px; }

  .ag-problem-grid       { grid-template-columns: 1fr; }
  .ag-cards-grid         { grid-template-columns: 1fr; }
  .ag-stack-cluster      { grid-template-columns: repeat(2, 1fr); }
  .ag-usecase-grid       { grid-template-columns: 1fr; }
  .ag-gov-grid           { grid-template-columns: 1fr; }

  .ag-confronto-wrap     { overflow-x: auto; }
  .ag-confronto-header,
  .ag-confronto-row      { min-width: 560px; }

  .ag-timeline::before   { left: 20px; }
  .ag-step-num           { width: 42px; height: 42px; font-size: 14px; }
}

@media (max-height: 820px) and (min-width: 900px) {
  .ag-hero               { padding-top: 74px; padding-bottom: 22px; }
  .ag-hero-shell         { gap: 12px; }
  .ag-stage-logo         { height: clamp(235px, 31vh, 305px); }
  .ag-logo-halo          { width: 390px; height: 390px; }
  .ag-glow-field         { width: 520px; height: 520px; }
  .ag-orbit-1            { width: 440px; height: 440px; }
  .ag-orbit-2            { width: 590px; height: 590px; }
  .ag-hero-copy h1       { font-size: clamp(30px, 3vw, 42px); }
  .ag-hero-lead          { margin-top: 10px; font-size: 15px; line-height: 1.48; }
  .ag-hero-actions       { margin-top: 14px; }
}
