/* ----- Inter font (self-hosted variable font) ----- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ========================================================================
   Synergix — Shared Stylesheet
   Forked from Arenia stylesheet (sister brand). Same indigo primary,
   teal accent that mirrors the Synergix hexagon "S" logo.
   ======================================================================== */

/* ----- Custom Properties ----- */
:root {
  --primary: #4F46E5;
  --primary-dark: #4338CA;
  --secondary: #1E293B;
  --accent: #14B8A6;
  --light-bg: #F8FAFC;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
}

/* ----- Tailwind-compatible utility overrides ----- */
.bg-primary   { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }
.bg-light-bg  { background-color: var(--light-bg); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }

/* ----- Global reset for consistent transition behaviour ----- */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ----- Navigation — glassmorphism ----- */
nav.site-nav {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.92);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

nav.site-nav.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 255, 255, 0.97);
}

/* ----- Mobile menu ----- */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

#mobile-menu.open {
  max-height: 500px;
}

/* ----- Hero gradient background ----- */
.hero-gradient {
  background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 50%, #F0FDF4 100%);
}

/* ----- Focus styles for accessibility ----- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ----- Fade-in scroll animation ----- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Stat card animations ----- */
.stat-card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s ease;
}

.stat-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
}

.stat-card:nth-child(1) { transition-delay: 0.1s; }
.stat-card:nth-child(2) { transition-delay: 0.2s; }
.stat-card:nth-child(3) { transition-delay: 0.3s; }

/* ----- Counter ----- */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ----- FAQ accordion ----- */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-question {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-weight: 600;
  color: var(--secondary);
  transition: color 0.2s ease;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1.0625rem;
  font-family: inherit;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question .faq-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 0 1.25rem 0;
}

/* ----- CTA button ripple effect ----- */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Ghost button */
.btn-ghost {
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn-ghost:hover {
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* ----- Cookie Banner ----- */
#cookie-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background-color: var(--secondary);
  color: #fff;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  font-size: 0.875rem;
}

#cookie-banner.visible {
  display: flex;
}

#cookie-banner button {
  background-color: var(--primary);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 0.375rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#cookie-banner button:hover {
  background-color: var(--primary-dark);
}

/* ----- Sticky Mobile CTA ----- */
.sticky-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--white);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.sticky-mobile-cta.hidden-by-cookie {
  transform: translateY(100%);
}

/* Body bottom padding to prevent content from being hidden by sticky CTA */
body.has-sticky-cta {
  padding-bottom: 4.5rem;
}

@media (min-width: 768px) {
  .sticky-mobile-cta {
    display: none !important;
  }
  body.has-sticky-cta {
    padding-bottom: 0;
  }
}

/* ----- Comparison cards (Problem/Solution) ----- */
.comparison-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comparison-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* ----- Feature cards ----- */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.08);
}

/* ----- Steps timeline ----- */
.step-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* Horizontal connector line (desktop) */
@media (min-width: 768px) {
  .steps-connector {
    position: relative;
  }
  .steps-connector::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: calc(50% + 1.5rem);
    right: calc(-50% + 1.5rem);
    height: 2px;
    background-color: var(--gray-200);
  }
  .steps-connector:last-child::after {
    display: none;
  }
}

/* ----- Use-case / target cards hover ----- */
.use-case-card {
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.use-case-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ----- Partnership timeline ----- */
.partnership-step {
  position: relative;
  padding-left: 2.5rem;
}

.partnership-step::before {
  content: '';
  position: absolute;
  left: 0.875rem;
  top: 2rem;
  bottom: -0.5rem;
  width: 2px;
  background-color: var(--gray-200);
}

.partnership-step:last-child::before {
  display: none;
}

.partnership-dot {
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ----- Kickstart card highlight ----- */
.kickstart-card {
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.kickstart-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ----- Smooth scroll ----- */
html {
  scroll-behavior: smooth;
}

/* ----- Selection color ----- */
::selection {
  background-color: rgba(79, 70, 229, 0.15);
  color: var(--secondary);
}

/* ----- Image placeholder shimmer ----- */
.img-fade {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.img-fade.loaded {
  opacity: 1;
}

/* ========================================================================
   PREMIUM POLISH LAYER — modern utilities, micro-animations, decorations
   (Light theme only. Existing classes above remain untouched.)
   ======================================================================== */

/* ----- 1. Enhanced gradients ----------------------------------------- */
.gradient-hero {
  background:
    radial-gradient(at 18% 22%, rgba(238, 242, 255, 0.95) 0%, transparent 55%),
    radial-gradient(at 82% 18%, rgba(245, 243, 255, 0.9) 0%, transparent 55%),
    radial-gradient(at 50% 90%, rgba(240, 253, 244, 0.85) 0%, transparent 60%),
    linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 50%, #F5F3FF 100%);
}

.gradient-radial-primary {
  background: radial-gradient(circle at center, rgba(79, 70, 229, 0.18) 0%, rgba(79, 70, 229, 0.04) 45%, transparent 75%);
}

.gradient-conic {
  background: conic-gradient(from 210deg at 50% 50%, #4F46E5, #7C3AED, #14B8A6, #4F46E5);
}

.gradient-text-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #14B8A6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.noise-bg {
  position: relative;
}
.noise-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ----- 2. Premium shadows -------------------------------------------- */
.shadow-premium-sm { box-shadow: 0 1px 2px rgba(30,41,59,0.06), 0 1px 3px rgba(30,41,59,0.10); }
.shadow-premium-md { box-shadow: 0 4px 6px rgba(30,41,59,0.05), 0 10px 20px rgba(30,41,59,0.08); }
.shadow-premium-lg { box-shadow: 0 10px 15px rgba(30,41,59,0.05), 0 20px 40px rgba(30,41,59,0.12); }
.shadow-premium-xl { box-shadow: 0 20px 25px rgba(30,41,59,0.05), 0 30px 60px rgba(30,41,59,0.15); }
.shadow-glow-primary { box-shadow: 0 0 40px rgba(79, 70, 229, 0.15); }
.shadow-glow-accent  { box-shadow: 0 0 40px rgba(20, 184, 166, 0.15); }

/* ----- 3. Scroll reveal animations ----------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-scale.visible { opacity: 1; transform: scale(1); }

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }
.reveal-delay-5 { transition-delay: 0.50s; }

/* ----- 4. Hover effects for cards ------------------------------------ */
.card-hover {
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(30, 41, 59, 0.12);
}

.card-tilt {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}
.card-tilt:hover {
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-4px);
}

.card-border-gradient {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
}
.card-border-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg, #4F46E5, #14B8A6);
  border-radius: inherit;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card-border-gradient:hover::before { opacity: 1; }

/* ----- 5. Image treatments ------------------------------------------- */
.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.img-rounded-premium {
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(30, 41, 59, 0.12);
}

.img-overlay {
  position: relative;
  overflow: hidden;
}
.img-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(30, 41, 59, 0.6) 100%);
  border-radius: inherit;
  pointer-events: none;
}

.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.img-zoom:hover img {
  transform: scale(1.05);
}

/* ----- 6. Text treatments -------------------------------------------- */
.text-balance { text-wrap: balance; }

.text-gradient-primary {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.text-gradient-accent {
  background: linear-gradient(135deg, #14B8A6 0%, #059669 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ----- 7. Decorative elements ---------------------------------------- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
.blob-primary {
  background: radial-gradient(circle, #4F46E5, transparent 70%);
}
.blob-accent {
  background: radial-gradient(circle, #14B8A6, transparent 70%);
}

.dot-pattern {
  background-image: radial-gradient(circle, #CBD5E1 1px, transparent 1px);
  background-size: 24px 24px;
}

.grid-pattern {
  background-image:
    linear-gradient(#E2E8F0 1px, transparent 1px),
    linear-gradient(90deg, #E2E8F0 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ----- 7b. Inline link a11y ------------------------------------------ */
/* WCAG 1.4.1 — links inside paragraphs must be distinguishable by more */
/* than color alone. Underline all text-primary links that sit inside a */
/* <p> block. Keeps nav/menu/CTA untouched.                             */
p a.text-primary,
p a.text-accent {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
p a.text-primary:hover,
p a.text-accent:hover {
  text-decoration-thickness: 2px;
}

/* ----- 8. Badge / pill component ------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.badge-primary {
  background: rgba(79, 70, 229, 0.10);
  color: #4F46E5;
}
.badge-accent {
  background: rgba(20, 184, 166, 0.10);
  color: #047857; /* emerald-700 — WCAG AA contrast 4.70:1 on composite #e8f8f6 */
}
.badge-white {
  background: #ffffff;
  color: #1E293B;
  box-shadow: 0 1px 3px rgba(30, 41, 59, 0.08);
}

/* ----- 9. Section dividers (wave) ------------------------------------ */
.divider-wave {
  height: 80px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,40 C240,80 480,0 720,40 C960,80 1200,0 1440,40 L1440,80 L0,80 Z' fill='%23F8FAFC'/></svg>") no-repeat center / cover;
}
.divider-wave-white {
  height: 80px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'><path d='M0,40 C240,80 480,0 720,40 C960,80 1200,0 1440,40 L1440,80 L0,80 Z' fill='%23FFFFFF'/></svg>") no-repeat center / cover;
}

/* ----- 10. Mouse-follow glow effect --------------------------------- */
.follow-glow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.follow-glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px circle at var(--glow-x, 50%) var(--glow-y, 50%),
    rgba(79, 70, 229, 0.15),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}
.follow-glow:hover::before { opacity: 1; }
.follow-glow > * { position: relative; z-index: 1; }

/* ----- 11. Stagger children helper ---------------------------------- */
/* JS sets --stagger-index on each child; CSS converts to delay */
.stagger-children > * {
  transition-delay: calc(var(--stagger-index, 0) * 0.05s);
}

/* ----- 12. Reduced motion ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-scale,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card-hover:hover,
  .card-tilt:hover {
    transform: none;
  }
  .img-zoom img { transition: none; }
  .img-zoom:hover img { transform: none; }
  html { scroll-behavior: auto; }
}

/* ========================================================================
   AI Act Readiness Check — tool dedicato
   Stili incapsulati con prefisso .aac- per evitare conflitti con il resto.
   ======================================================================== */

/* ----- Progress bar ----- */
.aac-progress-track {
  width: 100%;
  height: 6px;
  background-color: var(--gray-200);
  border-radius: 9999px;
  overflow: hidden;
}
.aac-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 9999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Form wizard ----- */
.aac-form { width: 100%; }

.aac-step {
  border: 0;
  padding: 0;
  margin: 0 0 1.25rem 0;
  animation: aacFadeIn 0.35s ease both;
}
@keyframes aacFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.aac-step[hidden] { display: none !important; }

.aac-step-heading {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  padding: 0;
}
@media (min-width: 768px) {
  .aac-step-heading { font-size: 1.75rem; }
}

.aac-step-sub {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.aac-field {
  margin-bottom: 1.25rem;
}

.aac-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.aac-required { color: #DC2626; margin-left: 2px; }
.aac-optional {
  color: var(--gray-500);
  font-weight: 400;
  font-size: 0.8125rem;
  margin-left: 4px;
}

.aac-hint {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: -0.25rem;
  margin-bottom: 0.5rem;
}

.aac-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.625rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--secondary);
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.aac-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.aac-checkgroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aac-check,
.aac-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: 0.625rem;
  background-color: var(--light-bg);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.aac-check:hover,
.aac-radio:hover {
  border-color: var(--primary);
  background-color: #fff;
}
.aac-check input,
.aac-radio input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary);
}
.aac-check span,
.aac-radio span {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--gray-700);
}
.aac-check input:checked ~ span,
.aac-radio input:checked ~ span {
  color: var(--secondary);
}
.aac-check:has(input:checked),
.aac-radio:has(input:checked) {
  border-color: var(--primary);
  background-color: #fff;
  box-shadow: 0 0 0 1px var(--primary) inset;
}

/* ----- Disclaimer box ----- */
.aac-disclaimer {
  background-color: #FFFBEB;
  border-left: 4px solid #F59E0B;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: #78350F;
  line-height: 1.55;
  margin-top: 1rem;
}

/* ----- Error block ----- */
.aac-error {
  background-color: #FEF2F2;
  border-left: 4px solid #DC2626;
  border-radius: 0.5rem;
  padding: 0.875rem 1.125rem;
  font-size: 0.875rem;
  color: #7F1D1D;
  margin: 1rem 0 0.5rem 0;
}
.aac-error ul { margin: 0.25rem 0 0 1rem; padding: 0; }
.aac-error li { margin: 0.15rem 0; }

/* ----- Navigation buttons ----- */
.aac-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.aac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}
.aac-btn-primary {
  background-color: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
  margin-left: auto;
}
.aac-btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}
.aac-btn-ghost {
  background-color: transparent;
  color: var(--gray-700);
  border: 2px solid var(--gray-300);
}
.aac-btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ----- Score gauge ----- */
.aac-gauge {
  position: relative;
  width: 160px;
  height: 160px;
}
.aac-gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.aac-gauge-track {
  fill: none;
  stroke: var(--gray-200);
  stroke-width: 12;
}
.aac-gauge-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s cubic-bezier(0.16, 1, 0.3, 1),
              stroke 0.5s ease;
}
.aac-gauge-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.aac-gauge-value {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.aac-gauge-subtitle {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-top: 0.25rem;
  font-weight: 600;
}

/* ----- Level badges ----- */
.aac-badge-red    { background-color: #FEE2E2; color: #991B1B; }
.aac-badge-orange { background-color: #FFEDD5; color: #9A3412; }
.aac-badge-yellow { background-color: #FEF3C7; color: #92400E; }
.aac-badge-green  { background-color: #D1FAE5; color: #065F46; }
.aac-badge-gray   { background-color: #F3F4F6; color: #374151; }

/* ----- Obligations list ----- */
.aac-obligation-list {
  display: grid;
  gap: 0.75rem;
}
.aac-obligation {
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--primary);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}
.aac-obligation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.aac-obligation-head h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
}
.aac-obligation-ref {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  background-color: rgba(79, 70, 229, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.aac-obligation p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ----- Actions list ----- */
.aac-action-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.aac-action {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background-color: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}
.aac-action-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
}
.aac-action strong {
  display: block;
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}
.aac-action p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ----- Mobile tweaks ----- */
@media (max-width: 640px) {
  .aac-gauge { width: 140px; height: 140px; }
  .aac-gauge-value { font-size: 2.25rem; }
  .aac-btn-primary { margin-left: 0; flex: 1; }
}

/* ========================================================================
   AI Opportunity Scanner — result cards
   Il wizard riusa le classi .aac-* dello stesso stile form.
   ======================================================================== */

.aos-usecase-grid {
  display: grid;
  gap: 1.25rem;
}

.aos-uc-card {
  background-color: #fff;
  border-radius: 1.25rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 6px rgba(30,41,59,0.04), 0 10px 20px rgba(30,41,59,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.aos-uc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 12px rgba(30,41,59,0.05), 0 16px 32px rgba(30,41,59,0.10);
}

.aos-uc-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.aos-uc-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.aos-uc-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0 0 0.25rem 0;
  line-height: 1.35;
}

.aos-uc-short {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

.aos-uc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.aos-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 9999px;
  background-color: var(--light-bg);
  border: 1px solid var(--gray-200);
  font-size: 0.78rem;
  color: var(--gray-600);
}
.aos-chip strong { color: var(--secondary); font-weight: 600; }

.aos-uc-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.aos-num-block {
  background-color: var(--light-bg);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.aos-num-lbl {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.aos-num-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}

.aos-uc-why {
  background-color: rgba(79, 70, 229, 0.05);
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.aos-uc-details {
  margin-bottom: 0.85rem;
}
.aos-uc-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  font-size: 0.875rem;
  padding: 0.4rem 0;
  user-select: none;
}
.aos-uc-details summary:hover { color: var(--primary-dark); }
.aos-uc-long {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0.5rem 0 0 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--gray-200);
}

.aos-uc-vendors {
  border-top: 1px solid var(--gray-100);
  padding-top: 0.85rem;
}

.aos-vendor-label {
  font-size: 0.78rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.aos-vendor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.aos-vendor-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid;
}
.aos-vendor-opensource { background-color: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.aos-vendor-cloud      { background-color: #EEF2FF; color: #3730A3; border-color: #C7D2FE; }
.aos-vendor-eu         { background-color: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.aos-vendor-custom     { background-color: #F3F4F6; color: #374151; border-color: #E5E7EB; }
.aos-vendor-onprem     { background-color: #FEE2E2; color: #991B1B; border-color: #FECACA; }

/* "Cosa ottieni ora vs con Synergix" card */
.aos-vs-card {
  background-color: #fff;
  border-radius: 1.5rem;
  padding: 2rem 2rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 6px rgba(30,41,59,0.04), 0 10px 20px rgba(30,41,59,0.06);
}

.aos-vs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.aos-vs-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.aos-vs-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: var(--accent);
}
