/* ==========================================================================
   Freccia Servizi - Pure CSS Stylesheet & Theme System
   ========================================================================== */

:root {
  --background: #09090b;
  --foreground: #fafafa;
  --card: #121215;
  --card-foreground: #fafafa;
  --popover: #121215;
  --popover-foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #09090b;
  --secondary: #27272a;
  --secondary-foreground: #fafafa;
  --muted: #18181b;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --accent-foreground: #fafafa;
  --border: #27272a;
  --radius: 0.75rem;
  --bg-light: #0c0d10;
  --text-dark: #fafafa;
  --text-dark-muted: #a1a1aa;
  --tech-blue: #00A3FF;
}

html {
  background-color: #09090b;
  color: #fafafa;
  color-scheme: dark;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

/* ==========================================================================
   Hero CTA Button Arancione ("Scopri come funziona")
   ========================================================================== */
.btn-orange-hero {
  background-color: #fd5200 !important;
  color: #ffffff !important;
  border-color: rgba(253, 82, 0, 0.6) !important;
  box-shadow: 0 4px 20px rgba(253, 82, 0, 0.3) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.btn-orange-hero:hover {
  background-color: #e04800 !important;
  border-color: #e04800 !important;
  box-shadow: 0 6px 26px rgba(253, 82, 0, 0.45) !important;
  transform: translateY(-1px) scale(1.02);
}
.btn-orange-hero svg {
  color: #ffffff !important;
}

/* ==========================================================================
   Mobile-First Touch, Gesture & Interaction Optimizations (Apple HIG & WCAG)
   ========================================================================== */
html,
body {
  touch-action: pan-x pan-y;
  -webkit-text-size-adjust: 100%;
}

/* Disable double-tap zoom delay while preserving instant tap feedback */
a, 
button, 
input, 
select, 
textarea, 
[role="button"], 
.menu-link, 
#menu-toggle,
#menu-servizi-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 163, 255, 0.25);
}

/* Touch active visual feedback for instant responsive feel */
button:active, 
[role="button"]:active {
  transform: scale(0.96);
  opacity: 0.9;
}

#menu-toggle:active {
  transform: scale(0.92);
  background-color: rgba(255, 255, 255, 0.15) !important;
}

.menu-link {
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  -webkit-tap-highlight-color: rgba(0, 163, 255, 0.2);
}

.menu-link:active,
.menu-link.is-active-touch {
  background-color: rgba(0, 163, 255, 0.15) !important;
  color: #00A3FF !important;
  transform: scale(0.98);
}

/* Lock body scroll when mobile drawer is open WITHOUT disabling touch taps inside menu */
body.menu-open {
  overflow: hidden !important;
}

/* Ensure mobile dropdown never overflows viewport and is touch scrollable */
#nav-dropdown {
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

/* Glassmorphism panel */
.glass-panel {
  background: rgba(18, 18, 21, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* GPU hardware acceleration */
.gpu-accelerated {
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Infinite Marquee Slider (Testimonials & Smooth Sliders) */
@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
  will-change: transform;
}

.animate-marquee-smooth {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
  will-change: transform;
}

.animate-marquee-smooth:hover,
.marquee-wrapper:hover .animate-marquee-smooth {
  animation-play-state: paused;
}

/* Client Partner Logos Seamless Infinite Marquee */
.client-marquee-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

@keyframes clientMarqueeScroll {
  0% {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    -webkit-transform: translate3d(-50%, 0, 0);
    transform: translate3d(-50%, 0, 0);
  }
}

.client-marquee-runner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  gap: 0;
  will-change: transform;
  -webkit-animation: clientMarqueeScroll 42s linear infinite;
  animation: clientMarqueeScroll 42s linear infinite;
}

.client-marquee-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 4.25rem;
  padding-right: 4.25rem;
}

@media (min-width: 768px) {
  .client-marquee-track {
    gap: 5.75rem;
    padding-right: 5.75rem;
  }
}

@media (min-width: 1024px) {
  .client-marquee-track {
    gap: 7.5rem;
    padding-right: 7.5rem;
  }
}

.client-marquee-item {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.client-marquee-item img {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .client-marquee-item img {
    height: 3rem;
  }
}

/* Skip to content link for WCAG 2.2 AA Accessibility */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.5rem;
  background: #fafafa;
  color: #09090b;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Keyboard Focus Ring */
:focus-visible {
  outline: 2px solid #fafafa;
  outline-offset: 2px;
}

/* Flow Art / Story Scroll Effect */
.flow-art-container {
  transform-origin: bottom left;
  will-change: transform;
}

/* Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-marquee,
  .client-marquee-runner {
    animation: none !important;
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  .client-marquee-track[aria-hidden="true"] {
    display: none !important;
  }
  .client-marquee-track {
    width: 100% !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2rem !important;
    padding-right: 0 !important;
  }
  .flow-art-container {
    transform: none !important;
  }
}

/* ==========================================================================
   Recent Projects Section (Sticky Title & Staggered Scroll Layout)
   ========================================================================== */

.serif-italic {
  font-style: italic;
  font-weight: 600;
  color: var(--tech-blue, #00A3FF);
}

/* Sezione Contenitore */
.recent-projects-section {
  padding: 8rem 5%;
  background-color: var(--bg-light, #0c0d10);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Grid a 3 Colonne: Sinistra - Centro (Sticky) - Destra */
.recent-projects-container {
  display: grid;
  grid-template-columns: 1fr 350px 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  align-items: flex-start;
}

.projects-col {
  display: flex;
  flex-direction: column;
  gap: 8rem;
}

/* Colonna destra sfalsata per creare dinamismo */
.right-col {
  margin-top: 8rem;
}

/* IL CUORE DELL'EFFETTO: Colonna centrale incollata a centro schermo durante lo scroll */
.center-col {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.sticky-title-wrapper {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.sticky-title-wrapper h2 {
  font-size: 5rem;
  line-height: 1.1;
  color: var(--text-dark, #fafafa);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.scroll-down-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-dark-muted, #a1a1aa);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 600;
}

.arrow-down-icon {
  width: 28px;
  height: 28px;
  color: var(--tech-blue, #00A3FF);
  animation: bounceSlow 2s infinite ease-in-out;
}

@keyframes bounceSlow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* Card Progetti con hover */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  pointer-events: auto;
}

.project-image {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: #18181b;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-image {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border-color: rgba(194, 248, 79, 0.3);
}

.project-card:hover .project-image img {
  transform: scale(1.02);
}

.project-card h3 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-dark, #fafafa);
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.project-card:hover h3 {
  color: var(--tech-blue, #00A3FF);
}

.project-card p {
  font-size: 1.1rem;
  color: var(--text-dark-muted, #a1a1aa);
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
}

/* Adattamento Mobile e Tablet */
@media (max-width: 1024px) {
  .recent-projects-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  
  .center-col {
    position: relative;
    height: auto;
    grid-column: 1 / -1;
    margin-bottom: 4rem;
  }
  
  .sticky-title-wrapper h2 {
    font-size: 3.5rem;
  }
  
  .right-col {
    margin-top: 4rem;
  }

  .projects-col {
    gap: 5rem;
  }
}

@media (max-width: 768px) {
  .recent-projects-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .right-col {
    margin-top: 0;
  }
  
  .projects-col {
    gap: 4rem;
  }

  .sticky-title-wrapper h2 {
    font-size: 2.75rem;
  }

  .recent-projects-section {
    padding: 5rem 6%;
  }
}

/* ==========================================================================
   Project Modal
   ========================================================================== */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.project-modal-content {
  position: relative;
  background: #121215;
  color: #fafafa;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 20px;
  overflow-y: auto;
  z-index: 1;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2.5rem;
}

.project-modal.active .project-modal-content {
  transform: translateY(0);
}

.project-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  z-index: 100;
  transition: background 0.2s, transform 0.2s;
}

.project-modal-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.project-modal-body h2 {
  font-size: 1.85rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
  color: #fafafa;
}

.project-modal-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: #a1a1aa;
  margin-bottom: 1rem;
}

.modal-project-image,
.modal-project-video {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 14px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-project-iframe-wrap {
  width: 100%;
  border-radius: 16px;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

@media (max-width: 640px) {
  .project-modal-content {
    width: 95%;
    padding: 1.25rem;
    max-height: 94vh;
  }
  .modal-project-iframe-wrap iframe {
    height: 720px !important;
  }
}

/* ==========================================================================
   Background Paths Floating Curves Animation (from background-paths.tsx)
   ========================================================================== */
@keyframes floatPath {
  0% {
    stroke-dashoffset: 0;
    stroke-dasharray: 25 100;
    opacity: var(--base-op, 0.2);
  }
  50% {
    stroke-dashoffset: -50;
    stroke-dasharray: 75 100;
    opacity: calc(var(--base-op, 0.2) * 2.2);
  }
  100% {
    stroke-dashoffset: -100;
    stroke-dasharray: 25 100;
    opacity: var(--base-op, 0.2);
  }
}

.floating-path {
  animation: floatPath var(--duration, 25s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: stroke-dashoffset, stroke-dasharray, opacity;
}

/* ==========================================================================
   Text Reveal on Scroll (Editorial Word-by-Word Scrub Effect)
   ========================================================================== */
.scroll-reveal-container {
  position: relative;
}

.reveal-text {
  color: #a1a1aa;
  transition: opacity 0.3s ease;
}

.reveal-text.is-ready .reveal-word {
  display: inline-block;
  color: rgba(255, 255, 255, 0.18);
  will-change: color;
}

.reveal-text.is-ready .reveal-word.highlight {
  color: rgba(0, 163, 255, 0.25);
  font-weight: 500;
}

/* Fallback & prefers-reduced-motion: text fully illuminated */
.reveal-text.is-revealed,
.reveal-text.is-revealed .reveal-word {
  color: #fafafa !important;
}

.reveal-text.is-revealed .reveal-word.highlight {
  color: #00A3FF !important;
}

/* ==========================================================================
   Orbiting Circles (Magic UI Vanilla Implementation)
   ========================================================================== */
@keyframes orbit {
  0% {
    transform: rotate(calc(var(--angle) * 1deg)) translateY(calc(var(--radius) * 1px)) rotate(calc(var(--angle) * -1deg));
  }
  100% {
    transform: rotate(calc(var(--angle) * 1deg + 360deg)) translateY(calc(var(--radius) * 1px)) rotate(calc(var(--angle) * -1deg - 360deg));
  }
}

@keyframes orbit-reverse {
  0% {
    transform: rotate(calc(var(--angle) * 1deg)) translateY(calc(var(--radius) * 1px)) rotate(calc(var(--angle) * -1deg));
  }
  100% {
    transform: rotate(calc(var(--angle) * 1deg - 360deg)) translateY(calc(var(--radius) * 1px)) rotate(calc(var(--angle) * -1deg + 360deg));
  }
}

.orbit-item {
  position: absolute;
  inset: 0;
  margin: auto;
  animation: orbit var(--duration, 20s) linear infinite;
  will-change: transform;
}

.orbit-item.reverse {
  animation-name: orbit-reverse;
}

@media (max-width: 640px) {
  .orbit-item {
    --orbit-scale: 0.72;
  }
  @keyframes orbit {
    0% {
      transform: rotate(calc(var(--angle) * 1deg)) translateY(calc(var(--radius) * 0.72px)) rotate(calc(var(--angle) * -1deg));
    }
    100% {
      transform: rotate(calc(var(--angle) * 1deg + 360deg)) translateY(calc(var(--radius) * 0.72px)) rotate(calc(var(--angle) * -1deg - 360deg));
    }
  }
  @keyframes orbit-reverse {
    0% {
      transform: rotate(calc(var(--angle) * 1deg)) translateY(calc(var(--radius) * 0.72px)) rotate(calc(var(--angle) * -1deg));
    }
    100% {
      transform: rotate(calc(var(--angle) * 1deg - 360deg)) translateY(calc(var(--radius) * 0.72px)) rotate(calc(var(--angle) * -1deg + 360deg));
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-item {
    animation: none !important;
  }
}

/* ================= PRICING: PIANI VOICE AGENT (indipendente da Tailwind compilato) ================= */
.plan-section { position: relative; overflow: hidden; background: #09090b; border-top: 1px solid rgba(255,255,255,0.1); padding: 112px 24px; }
.plan-section-glow { position: absolute; top: 50%; left: 50%; width: 900px; height: 420px; transform: translate(-50%, -50%); border-radius: 9999px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(194,248,79,.10), rgba(0,163,255,.06) 55%, transparent 100%); }
.plan-wrap { position: relative; z-index: 1; max-width: 1152px; margin: 0 auto; }
.plan-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.plan-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; margin-bottom: 18px; border-radius: 9999px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05);
  font-family: 'Geist Mono', monospace; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: #fff; }
.plan-eyebrow i { display: inline-block; width: 8px; height: 8px; border-radius: 9999px; background: #C2F84F; }
.plan-title { font-family: 'Geist', sans-serif; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; color: #fafafa; font-size: clamp(32px, 5vw, 52px); margin: 0; }
.plan-title span { display: block; font-weight: 400; color: #a1a1aa; }
.plan-sub { margin: 18px auto 0; font-family: 'Geist', sans-serif; font-weight: 300; font-size: 18px; line-height: 1.6; color: #a1a1aa; }

.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; align-items: stretch; }
@media (max-width: 960px) { .plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 440px; margin: 0 auto; } .plan-section { padding: 80px 20px; } }

.plan-card { --accent: #00E5FF; --accent-rgb: 0, 229, 255;
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; background: #000; border: 1px solid rgba(255,255,255,.1);
  font-family: 'Geist', sans-serif; transition: transform .4s cubic-bezier(.2,.8,.2,1); will-change: transform; transform: translateZ(0); backface-visibility: hidden; }
.plan-card::after { content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none; opacity: 0;
  border: 1px solid rgba(var(--accent-rgb), .6); box-shadow: 0 0 44px rgba(var(--accent-rgb), .25), inset 0 0 30px rgba(var(--accent-rgb), .06);
  transition: opacity .4s ease; will-change: opacity; }
.plan-card:hover { transform: translate3d(0, -6px, 0); }
.plan-card:hover::after { opacity: 1; }
.plan-card.is-starter { --accent: #00E5FF; --accent-rgb: 0, 229, 255; }
.plan-card.is-pro { --accent: #C2F84F; --accent-rgb: 194, 248, 79; border: 2px solid rgba(194,248,79,.5); box-shadow: 0 0 40px rgba(194,248,79,.16); }
.plan-card.is-ultra { --accent: #C084FC; --accent-rgb: 192, 132, 252; }

/* Area visual: testo sopra, prisma sotto (visibile solo in hover) */
.plan-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 400px; padding: 30px 28px 26px; overflow: hidden; background: #000; }
.plan-base { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 85% 70% at 50% 0%, rgba(var(--accent-rgb), .30) 0%, rgba(var(--accent-rgb), .10) 48%, transparent 80%),
              linear-gradient(to bottom, rgba(var(--accent-rgb), .10), transparent 70%); }
.plan-prism { position: absolute; z-index: 1; top: 2%; bottom: 0; left: -16%; right: -16%; pointer-events: none; opacity: 0; transform: scale(.92);
  transition: opacity .5s ease, transform .8s cubic-bezier(.2,.8,.2,1); will-change: opacity, transform; backface-visibility: hidden; }
.plan-prism img { display: block; width: 100%; height: 100%; object-fit: cover; }
.plan-card:hover .plan-prism { opacity: .95; transform: scale(1.04) translateZ(0); }
.plan-card.is-pro .plan-prism { opacity: .95; transform: scale(1) translateZ(0); }
.plan-card.is-pro:hover .plan-prism { opacity: 1; transform: scale(1.04) translateZ(0); }
.plan-scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.18) 58%, rgba(0,0,0,.86) 100%); }
.plan-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 36px; z-index: 2; pointer-events: none; background: linear-gradient(to top, #000, transparent); }
.plan-top, .plan-bottom { position: relative; z-index: 3; }
.plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.plan-name { margin: 0; font-size: 38px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.85); }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; text-shadow: 0 2px 14px rgba(0,0,0,.9); }
.plan-amount { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.plan-card.is-pro .plan-amount { color: var(--accent); }
.plan-per { font-family: 'Geist Mono', monospace; font-size: 14px; font-weight: 500; color: #d4d4d8; }
.plan-desc { margin: 0; font-size: 15px; line-height: 1.6; font-weight: 400; color: #e4e4e7; text-shadow: 0 1px 10px rgba(0,0,0,.95), 0 0 2px rgba(0,0,0,.8); }
.plan-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 9999px; background: #C2F84F; color: #000;
  font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.plan-pill i { width: 6px; height: 6px; border-radius: 9999px; background: #000; }

/* Parte bassa: bottone + dotazioni (bottone sempre alla stessa altezza nelle 3 card) */
.plan-body { position: relative; z-index: 3; display: flex; flex-direction: column; flex: 1; padding: 6px 28px 28px; background: #000; }
.plan-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 54px; border-radius: 14px; border: 0; box-sizing: border-box;
  background: #fff; color: #000; font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 700; text-decoration: none; letter-spacing: -0.005em;
  box-shadow: 0 6px 20px rgba(255,255,255,.08); transition: background .25s, transform .2s, box-shadow .25s; }
.plan-btn:hover { background: #e4e4e7; }
.plan-btn:active { transform: scale(.98); }
.plan-card.is-pro .plan-btn { background: #C2F84F; box-shadow: 0 0 26px rgba(194,248,79,.4); }
.plan-card.is-pro .plan-btn:hover { background: #b0e83f; }
.plan-incl { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.plan-incl-label { margin: 0 0 12px; font-family: 'Geist Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #a1a1aa; }
.plan-card.is-pro .plan-incl-label { color: #C2F84F; }
.plan-list { display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; list-style: none; }
.plan-list li { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 14px; font-weight: 500; line-height: 1.35; color: #e4e4e7; }
.plan-list li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 9999px; box-sizing: border-box;
  background: rgba(var(--accent-rgb), .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat;
  border: 1px solid rgba(var(--accent-rgb), .55); }
.plan-list li span { min-width: 0; }
@media (hover: none) { .plan-prism { opacity: .55; transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .plan-card, .plan-prism { transition: none; } }

/* ================= HERO: ORB BLOOP & SOTTOTITOLI SIMULAZIONE APPUNTAMENTO ================= */
.voice-hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.orb-bloop-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .orb-bloop-wrap {
    width: 280px;
    height: 280px;
  }
}

.orb-glow-backdrop {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(0, 163, 255, 0.28) 0%, rgba(20, 60, 220, 0.12) 45%, transparent 72%);
  filter: blur(40px);
  transform: translateZ(0);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.45s ease;
  will-change: transform, opacity;
}

.orb-bloop-wrap.is-speaking .orb-glow-backdrop {
  transform: scale(1.18);
  opacity: 0.95;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.42) 0%, rgba(30, 80, 240, 0.22) 45%, transparent 72%);
}

#bloop-canvas {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 24px rgba(0, 163, 255, 0.35));
  will-change: transform;
}

/* Sottotitoli Simulazione Chiamata (Floating / Senza Box) */
.voice-subtitles-stream {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 4px 12px 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font-family: 'Geist', sans-serif;
  text-align: center;
}

.subtitles-head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.subtitles-speaker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #00E5FF;
  transition: color 0.3s ease;
}

.subtitles-speaker.is-client {
  color: #a1a1aa;
}

.subtitles-wave {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  height: 14px;
}

.subtitles-bar {
  width: 2.5px;
  height: 100%;
  background: #00E5FF;
  border-radius: 2px;
  animation: subtitlesWave 1.1s ease-in-out infinite;
}
.subtitles-bar:nth-child(2) { animation-delay: 0.18s; }
.subtitles-bar:nth-child(3) { animation-delay: 0.36s; }
.subtitles-bar:nth-child(4) { animation-delay: 0.54s; }

.subtitles-speaker.is-client .subtitles-bar {
  animation: none;
  height: 3px;
  background: #52525b;
}

@keyframes subtitlesWave {
  0%, 100% { height: 3px; }
  50% { height: 14px; }
}

.subtitles-body {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subtitles-msg {
  font-size: 15.5px;
  line-height: 1.55;
  color: #f4f4f5;
  margin: 0;
  font-weight: 400;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
  transition: opacity 0.25s ease;
}

/* ================= OTTIMIZZAZIONE MOBILE (NAVBAR SOLIDA, ZERO SCROLL ORIZZONTALE, VOICE ORB & PRICING) ================= */
/* Menu mobile #nav-dropdown: sfondo solido opaco (non trasparente) */
#nav-dropdown {
  background-color: #0e0e11 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95) !important;
}

@media (max-width: 767px) {
  /* Navbar mobile solida e non trasparente */
  header.fixed {
    background-color: #09090b !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  /* Prevenzione fluida dello scroll orizzontale su mobile senza bloccare il momentum WebKit */
  html {
    overflow-x: hidden !important;
  }
  body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  main {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  main > section,
  .marquee-wrapper {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* Ottimizzazione Pricing su Mobile */
  .plan-section {
    padding: 64px 16px;
    overflow: hidden;
  }
  .plan-section-glow {
    width: 100vw;
    max-width: 100%;
  }
  .plan-head {
    margin-bottom: 40px;
  }
  .plan-title {
    font-size: 30px;
    line-height: 1.12;
  }
  .plan-sub {
    font-size: 15px;
    margin-top: 12px;
  }
  .plan-grid {
    gap: 22px;
    max-width: 400px;
  }
  .plan-card {
    border-radius: 24px;
  }
  .plan-visual {
    height: auto;
    min-height: 270px;
    padding: 22px 20px 18px;
    gap: 36px;
  }
  .plan-prism {
    opacity: 0.72;
    transform: scale(1) translateZ(0);
    left: -8%;
    right: -8%;
  }
  .plan-card.is-pro .plan-prism {
    opacity: 0.95;
  }
  .plan-name {
    font-size: 30px;
  }
  .plan-price {
    margin-bottom: 8px;
  }
  .plan-amount {
    font-size: 36px;
  }
  .plan-per {
    font-size: 13px;
  }
  .plan-desc {
    font-size: 14px;
    line-height: 1.5;
  }
  .plan-body {
    padding: 4px 20px 22px;
  }
  .plan-btn {
    height: 48px;
    font-size: 14px;
    border-radius: 12px;
  }
  .plan-incl {
    margin-top: 18px;
    padding-top: 16px;
  }
  .plan-list {
    gap: 9px;
  }
  .plan-list li {
    font-size: 13.5px;
  }
}

@media (max-width: 640px) {
  /* Ottimizzazione Voice Orb e Sottotitoli su Mobile */
  .voice-hero-visual {
    margin-top: 8px;
    max-width: 100%;
    overflow: hidden;
    padding: 12px 0 4px;
  }
  .orb-bloop-wrap {
    width: 210px;
    height: 210px;
    margin-bottom: 14px;
  }
  .orb-glow-backdrop {
    inset: 0;
    filter: blur(26px);
  }
  .orb-bloop-wrap.is-speaking .orb-glow-backdrop {
    transform: scale(1.08);
  }
  .voice-subtitles-stream {
    padding: 0 8px;
    max-width: 340px;
  }
  .subtitles-body {
    min-height: 72px;
  }
  .subtitles-msg {
    font-size: 14.5px;
    line-height: 1.5;
  }
}

/* ==========================================================================
   Editorial & Layout Utilities
   ========================================================================== */
html.scroll-smooth {
  scroll-behavior: auto; /* Evita conflitti con GSAP ScrollTrigger e momentum scrolling mobile */
}

@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .lg\:gap-8 {
    gap: 2rem;
  }
}

/* ==========================================================================
   Footer & Big Watermark Styling (Matches index.html exactly across all pages)
   ========================================================================== */
footer,
footer.bg-card\/20 {
  border-top: 1px solid rgba(39, 39, 42, 0.4) !important;
  background-color: rgba(18, 18, 21, 0.2) !important;
}

footer div.h-\[9vw\],
footer div[class*="h-[9vw]"] {
  height: 9vw !important;
  min-height: 55px;
  margin-top: 4rem;
  background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4), #000000) !important;
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  text-align: center;
}

@media (min-width: 640px) {
  footer div[class*="h-[9vw]"] {
    margin-top: 5rem;
  }
}
@media (min-width: 768px) {
  footer div[class*="h-[9vw]"] {
    margin-top: 6rem;
  }
}

footer div[class*="h-[9vw]"] > div.pointer-events-none {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
}

/* Radial light 1 (sfondo illuminazione dal basso) */
footer div[class*="h-[9vw]"] div[class*="h-[140%]"] {
  background-image: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.07) 40%, rgba(255, 255, 255, 0.01) 70%, transparent 100%) !important;
}

/* Radial light 2 (sfondo bagliore concentrato) */
footer div[class*="h-[9vw]"] div[class*="h-[100%]"] {
  background-image: radial-gradient(ellipse 50% 75% at 50% 100%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.03) 50%, transparent 80%) !important;
}

footer div[class*="h-[9vw]"] > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.3;
  mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 100%);
}

footer span[class*="text-[17vw]"] {
  position: relative;
  z-index: 10;
  display: block !important;
  font-size: 17vw !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  text-align: center;
  margin-top: -0.5vw !important;
  background-image: linear-gradient(to top, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.2), transparent) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 100%) !important;
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 100%) !important;
}

/* ==========================================================================
   Testimonials Section with Marquee (21st.dev / shadcn component)
   ========================================================================== */
.max-w-container {
  max-width: 1280px;
}

.text-md {
  font-size: 1rem;
  line-height: 1.5rem;
}

@media (min-width: 640px) {
  .sm\:text-md {
    font-size: 1rem;
    line-height: 1.5rem;
  }
}

.testimonials-marquee-group {
  --gap: 1rem;
  --duration: 40s;
  gap: var(--gap);
}

.testimonials-marquee-track {
  display: flex;
  flex-shrink: 0;
  justify-content: space-around;
  flex-direction: row;
  gap: var(--gap, 1rem);
  padding-right: var(--gap, 1rem);
  width: max-content;
  animation: marquee var(--duration, 40s) linear infinite;
  will-change: transform;
}

.testimonials-marquee-group:hover .testimonials-marquee-track {
  animation-play-state: paused;
}

.testimonial-card-item {
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background-image: linear-gradient(to bottom, rgba(39, 39, 42, 0.55), rgba(39, 39, 42, 0.12));
  padding: 1rem;
  text-align: left;
  width: 320px;
  max-width: 320px;
  flex-shrink: 0;
  transition: background-image 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

@media (min-width: 640px) {
  .testimonial-card-item {
    padding: 1.5rem;
  }
}

.testimonial-card-item:hover {
  border-top-color: rgba(255, 255, 255, 0.22);
  background-image: linear-gradient(to bottom, rgba(39, 39, 42, 0.75), rgba(39, 39, 42, 0.25));
}

/* ==========================================================================
   Footer Brand Watermark ("FRECCIA")
   Ensures the giant glowing masked brand typography renders identically
   across all landing pages and static templates (matching index.html)
   ========================================================================== */
.footer-watermark-wrap,
footer .relative.w-full.overflow-hidden.select-none.text-center {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  margin-top: 4rem !important;
  padding: 0 !important;
  text-align: center !important;
  height: 9vw !important;
  min-height: 70px !important;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4), #000000) !important;
}

@media (min-width: 640px) {
  .footer-watermark-wrap,
  footer .relative.w-full.overflow-hidden.select-none.text-center {
    margin-top: 5rem !important;
  }
}

@media (min-width: 768px) {
  .footer-watermark-wrap,
  footer .relative.w-full.overflow-hidden.select-none.text-center {
    margin-top: 6rem !important;
  }
}

.footer-watermark-glow,
footer .relative.w-full.overflow-hidden.select-none.text-center > div.pointer-events-none {
  pointer-events: none !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%) !important;
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%) !important;
}

.footer-watermark-glow-1,
footer .relative.w-full.overflow-hidden.select-none.text-center > div.pointer-events-none > div:first-child {
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  height: 140% !important;
  background: radial-gradient(ellipse 70% 90% at 50% 100%, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.07) 40%, rgba(255, 255, 255, 0.01) 70%, transparent 100%) !important;
}

.footer-watermark-glow-2,
footer .relative.w-full.overflow-hidden.select-none.text-center > div.pointer-events-none > div:nth-child(2) {
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 60% !important;
  height: 100% !important;
  background: radial-gradient(ellipse 50% 75% at 50% 100%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.03) 50%, transparent 80%) !important;
  filter: blur(12px) !important;
  -webkit-filter: blur(12px) !important;
}

.footer-watermark-svg,
footer .relative.w-full.overflow-hidden.select-none.text-center > svg {
  pointer-events: none !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.3 !important;
  mix-blend-mode: overlay !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 100%) !important;
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 100%) !important;
}

.footer-watermark-text,
footer .relative.w-full.overflow-hidden.select-none.text-center > span {
  position: relative !important;
  z-index: 10 !important;
  display: block !important;
  font-size: 17vw !important;
  font-weight: 900 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  text-align: center !important;
  margin-top: -0.5vw !important;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.2), transparent) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 100%) !important;
  mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 100%) !important;
}

/* Fallbacks for Tailwind arbitrary utility classes */
.h-\[9vw\] {
  height: 9vw !important;
}
.text-\[17vw\] {
  font-size: 17vw !important;
}
.-mt-\[0\.5vw\] {
  margin-top: -0.5vw !important;
}

/* ===================================================
   Shared Compact Timeline & Split Box (Campagne Ads & Chi Siamo)
   =================================================== */
.timeline-wrapper {
  position: relative;
  max-width: 40rem;
  margin: 0 auto;
}
.timeline-line {
  position: absolute;
  left: 17px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(180deg, #0066FF 0%, #0066FF 75%, #16a34a 100%);
  pointer-events: none;
  z-index: 1;
}
@media (min-width: 640px) {
  .timeline-line {
    left: 20px;
    top: 22px;
    bottom: 22px;
  }
}
.timeline-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 640px) {
  .timeline-step {
    gap: 1.25rem;
    margin-bottom: 0.875rem;
  }
}
.timeline-node {
  position: relative;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: #ffffff;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .timeline-node {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}
.timeline-node-blue {
  background-color: #0066FF;
  box-shadow: 0 0 16px rgba(0, 102, 255, 0.45);
}
.timeline-node-green {
  background-color: #16a34a;
  box-shadow: 0 0 16px rgba(22, 163, 74, 0.45);
}
.timeline-card {
  flex: 1;
  border-radius: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #16171b;
  padding: 0.875rem 1.25rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
@media (min-width: 640px) {
  .timeline-card {
    padding: 1rem 1.35rem;
  }
}
.timeline-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}
.timeline-card-green {
  border: 1px solid rgba(22, 163, 74, 0.55) !important;
  background-color: #0d1712 !important;
  box-shadow: 0 0 25px rgba(22, 163, 74, 0.08);
}

.py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.items-stretch {
  align-items: stretch;
}
@media (min-width: 640px) {
  .sm\:p-9 {
    padding: 2.25rem;
  }
  .sm\:pb-20 {
    padding-bottom: 5rem;
  }
}
@media (min-width: 1024px) {
  .lg\:p-10 {
    padding: 2.5rem;
  }
}

/* ==========================================================================
   About / Chi Siamo 3D Coverflow Carousel (index.html)
   ========================================================================== */
.about-carousel-stage {
  position: relative;
  height: 340px;
  width: 100%;
  overflow: hidden;
  user-select: none;
}
@media (min-width: 640px) {
  .about-carousel-stage {
    height: 360px;
  }
}

.about-carousel-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 248px;
  height: 310px;
  transform: translate(-50%, -50%) scale(0.76);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.45s ease,
              filter 0.45s ease,
              box-shadow 0.45s ease;
  will-change: transform, opacity;
}
@media (min-width: 640px) {
  .about-carousel-card {
    width: 266px;
    height: 326px;
  }
}
@media (min-width: 1024px) {
  .about-carousel-card {
    width: 284px;
    height: 336px;
  }
}

.about-carousel-card[data-pos="0"] {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  z-index: 30;
  filter: brightness(1);
  pointer-events: auto;
}

.about-carousel-card[data-pos="-1"] {
  transform: translate(calc(-50% - 150px), -50%) scale(0.82);
  opacity: 0;
  z-index: 20;
  filter: brightness(0.68);
  pointer-events: none;
}
.about-carousel-card[data-pos="1"] {
  transform: translate(calc(-50% + 150px), -50%) scale(0.82);
  opacity: 0;
  z-index: 20;
  filter: brightness(0.68);
  pointer-events: none;
}

@media (min-width: 768px) {
  .about-carousel-card[data-pos="-1"] {
    transform: translate(calc(-50% - 228px), -50%) scale(0.84);
    opacity: 0.52;
    pointer-events: auto;
    cursor: pointer;
  }
  .about-carousel-card[data-pos="1"] {
    transform: translate(calc(-50% + 228px), -50%) scale(0.84);
    opacity: 0.52;
    pointer-events: auto;
    cursor: pointer;
  }
  .about-carousel-card[data-pos="-1"]:hover,
  .about-carousel-card[data-pos="1"]:hover {
    opacity: 0.78;
    filter: brightness(0.88);
  }
}

@media (min-width: 1024px) {
  .about-carousel-card[data-pos="-1"] {
    transform: translate(calc(-50% - 268px), -50%) scale(0.85);
  }
  .about-carousel-card[data-pos="1"] {
    transform: translate(calc(-50% + 268px), -50%) scale(0.85);
  }
}

.about-carousel-card[data-pos="-2"] {
  transform: translate(calc(-50% - 420px), -50%) scale(0.72);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}
.about-carousel-card[data-pos="2"] {
  transform: translate(calc(-50% + 420px), -50%) scale(0.72);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.about-carousel-card[data-pos="0"] .about-card-bezel {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 25px 65px -15px rgba(0, 0, 0, 0.9), 0 0 42px -12px rgba(0, 163, 255, 0.24);
}

.about-card-bezel {
  height: 100%;
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 55%, rgba(255, 255, 255, 0.01) 100%);
  padding: 5px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card-screen {
  position: relative;
  display: flex;
  height: 100%;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 20px;
  background-color: #0e0e13;
  padding: 1.25rem;
}
@media (min-width: 640px) {
  .about-card-screen {
    padding: 1.5rem;
  }
}

.about-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: rgba(20, 20, 26, 0.92);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.about-carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%) scale(1.06);
}
.about-carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}
.about-carousel-btn-prev {
  left: 0.25rem;
}
.about-carousel-btn-next {
  right: 0.25rem;
}
@media (min-width: 768px) {
  .about-carousel-btn-prev {
    left: 0.5rem;
  }
  .about-carousel-btn-next {
    right: 0.5rem;
  }
}
@media (min-width: 1024px) {
  .about-carousel-btn-prev {
    left: -1.5rem;
  }
  .about-carousel-btn-next {
    right: -1.5rem;
  }
}

.about-carousel-dot {
  height: 8px;
  width: 8px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.about-carousel-dot:hover {
  background-color: rgba(255, 255, 255, 0.5);
}
.about-carousel-dot.is-active {
  width: 24px;
  background-color: #00A3FF;
}

/* ==========================================================================
   Vertical Stepper "Come Lavoriamo" su sfondo bianco con grid (index.html)
   ========================================================================== */
.method-light-section {
  position: relative;
  background-color: #ffffff;
  color: #09090b;
  border-top: 1px solid #e4e4e7;
  border-bottom: 1px solid #e4e4e7;
  background-image:
    linear-gradient(to right, rgba(9, 9, 11, 0.065) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9, 9, 11, 0.065) 1px, transparent 1px);
  background-size: 36px 36px;
}

.method-light-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 25%, rgba(0, 163, 255, 0.055) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.9) 0%, transparent 10%, transparent 90%, rgba(255, 255, 255, 0.9) 100%);
  pointer-events: none;
}

.method-light-section h2,
.method-light-section h3 {
  color: #09090b;
}

.method-light-section h2 span {
  color: #71717a;
}

.method-light-section .max-w-3xl > p:first-child {
  color: #008CE0;
}

.method-light-section .max-w-3xl > p:last-child {
  color: #52525b;
}

.method-light-section .method-step-grid > div:first-child p {
  color: #008CE0;
}

.method-light-section .method-step-grid > div:last-child p {
  color: #3f3f46;
}

.method-stepper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 46rem;
}

.method-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.method-step-circle {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.625rem;
  height: 2.625rem;
  margin-bottom: 1.125rem;
  border-radius: 9999px;
  border: 1px solid #d4d4d8;
  background-color: #ffffff;
  color: #71717a;
  font-family: 'Geist Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(9, 9, 11, 0.05);
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.25s ease;
}

.method-step.is-done .method-step-circle {
  background-color: #09090b;
  border-color: #09090b;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(9, 9, 11, 0.18), 0 0 18px rgba(0, 163, 255, 0.2);
}

.method-step.is-active .method-step-circle {
  background-color: #00A3FF;
  border-color: #00A3FF;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 163, 255, 0.16), 0 8px 20px rgba(0, 163, 255, 0.3);
}

.method-step:hover .method-step-circle {
  border-color: #00A3FF;
  box-shadow: 0 0 0 4px rgba(0, 163, 255, 0.14);
  transform: scale(1.06);
}

.method-step-line {
  width: 2px;
  height: 3.25rem;
  margin: 1.75rem auto;
  background-color: #e4e4e7;
  border-radius: 9999px;
  transition: background-color 0.45s ease;
}

.method-step.is-done .method-step-line {
  background: linear-gradient(to bottom, #09090b 10%, #00A3FF 100%);
}

.method-step-content {
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.method-step-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

/* ==========================================================================
   Uniform Desktop Height for Service Page Heroes (campagne-ads & voice-agent)
   ========================================================================== */
@media (min-width: 1024px) {
  .service-hero-matched {
    min-height: 830px;
    display: flex;
    align-items: center;
  }
}




