/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: #FFFFFF;
  color: #0F172A;
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── VARIABLES ── */
:root {
  --cyan:    #0099CC;
  --cyan-lt: #00D4FF;
  --purple:  #5B21B6;
  --green:   #059669;
  --orange:  #D97706;
  --navy:    #050B1F;

  --bg-white:  #FFFFFF;
  --bg-light:  #F8FAFC;
  --bg-tint:   #EFF6FF;

  --text:      #0F172A;
  --text-mid:  #334155;
  --muted:     #64748B;
  --border:    #E2E8F0;
  --border-dk: rgba(255,255,255,0.08);
}

/* ── UTILITIES ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.mono { font-family: 'JetBrains Mono', monospace; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: all .25s ease; border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #0099CC, #0066AA);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0,153,204,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,153,204,.45);
}
.btn-ghost {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
}
.btn-ghost-dark {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-ghost-dark:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── NAVBAR ── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  transition: background .35s, backdrop-filter .35s, border-color .35s, box-shadow .35s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
  box-shadow: 0 1px 24px rgba(0,0,0,.06);
}
.navbar.scrolled .nav-links a { color: var(--muted); }
.navbar.scrolled .nav-links a:hover { color: var(--text); background: var(--bg-light); }
.navbar.scrolled .logo-text { color: var(--text); }
.navbar.scrolled .logo-text strong { color: var(--cyan); }
.navbar.scrolled .nav-toggle span { background: var(--text); }
.nav-inner {
  display: flex; align-items: center; gap: 1rem;
  max-width: 1200px; margin: 0 auto; padding: .9rem 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: .75rem;
  flex-shrink: 0;
}
.logo-text { font-size: 1rem; font-weight: 500; letter-spacing: -.02em; color: #fff; transition: color .35s; }
.logo-text strong { color: #00D4FF; transition: color .35s; }
.logo-icon { flex-shrink: 0; }
.logo-img { height: 52px; width: auto; display: block; flex-shrink: 0; }
.logo-img--cmyk { display: none; }
.navbar.scrolled .logo-img--white { display: none; }
.navbar.scrolled .logo-img--cmyk { display: block; }
.nav-links {
  display: flex; align-items: center; gap: .1rem;
  margin-left: auto; white-space: nowrap;
}
.nav-links a {
  padding: .5rem .65rem; border-radius: 6px;
  font-size: .82rem; color: rgba(255,255,255,.75);
  transition: color .2s, background .2s; white-space: nowrap;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-cta { margin-left: 1rem; }

/* ── NAV DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-drop-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .65rem; border-radius: 6px;
  font-size: .82rem; font-weight: 400; font-family: inherit;
  color: rgba(255,255,255,.75); background: none; border: none;
  cursor: pointer; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-drop-toggle:hover,
.nav-drop-toggle[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.1); }
.nav-drop-toggle svg { transition: transform .2s; flex-shrink: 0; }
.nav-drop-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.navbar.scrolled .nav-drop-toggle { color: var(--muted); }
.navbar.scrolled .nav-drop-toggle:hover,
.navbar.scrolled .nav-drop-toggle[aria-expanded="true"] { color: var(--text); background: var(--bg-light); }

.nav-drop-menu {
  display: none;
  position: absolute; top: calc(100% + .5rem); left: 0;
  min-width: 260px;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: .5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.1), 0 2px 8px rgba(0,0,0,.06);
  z-index: 200;
}
.nav-drop-menu.open { display: block; }
.nav-drop-menu li a {
  display: flex; align-items: center; gap: .85rem;
  padding: .65rem .85rem; border-radius: 8px;
  color: var(--text-mid); font-size: .88rem;
  transition: background .15s, color .15s;
}
.nav-drop-menu li a:hover { background: var(--bg-light); color: var(--text); }
.nav-drop-menu li a strong { display: block; font-size: .86rem; color: var(--text); margin-bottom: .1rem; }
.nav-drop-menu li a small { display: block; font-size: .74rem; color: var(--muted); font-weight: 400; }
.drop-icon {
  flex-shrink: 0; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-light); border-radius: 8px;
  font-size: 1rem; color: var(--cyan);
}
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: white; border-radius: 2px; transition: .3s;
}

/* ── HERO (rimane dark) ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #050B1F;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom,
    rgba(5,11,31,.6) 0%,
    rgba(5,11,31,.4) 50%,
    rgba(5,11,31,.95) 100%);
}
.hero-canvas {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
.hero-content {
  position: relative; z-index: 3;
  text-align: center; max-width: 860px;
  padding: 8rem 2rem 4rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem; border-radius: 100px;
  border: 1px solid rgba(0,212,255,.3);
  background: rgba(0,212,255,.07);
  font-size: .8rem; color: #00D4FF; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 2rem;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00D4FF; box-shadow: 0 0 8px #00D4FF;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform: scale(1); }
  50% { opacity:.5; transform: scale(1.4); }
}
.hero-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem); color: #fff;
  font-weight: 900; line-height: 1.05;
  letter-spacing: -.03em; margin-bottom: 1.5rem;
}
.typewriter {
  color: #00D4FF;
  text-shadow: 0 0 40px rgba(0,212,255,.5);
  display: inline-block;
  border-right: 3px solid #00D4FF;
  animation: blink .8s step-end infinite;
}
@keyframes blink { 50% { border-color: transparent; } }
.hero-sub {
  font-size: 1.15rem; color: rgba(255,255,255,.7); line-height: 1.8;
  margin-bottom: 2.5rem; max-width: 620px; margin-left: auto; margin-right: auto;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1); border-radius: 12px;
  padding: 1.25rem 2rem; max-width: 460px; margin: 0 auto;
  backdrop-filter: blur(10px);
}
.hero-stat { text-align: center; padding: 0 1.5rem; }
.hero-stat .mono { font-size: 1.6rem; font-weight: 600; color: #00D4FF; display: block; }
.hero-stat span:last-child { font-size: .78rem; color: rgba(255,255,255,.5); letter-spacing: .04em; text-transform: uppercase; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,.12); }
.scroll-indicator {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  z-index: 3; color: rgba(255,255,255,.4); font-size: .75rem;
  letter-spacing: .1em; text-transform: uppercase;
}
.scroll-arrow {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollDown 1.8s ease-in-out infinite;
}
@keyframes scrollDown {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  40%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  70%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── TRUST BAR (light) ── */
.trust-bar {
  padding: 2.5rem 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.trust-label {
  text-align: center; font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem;
}
.trust-track-wrap { overflow: hidden; }
.trust-track {
  display: flex; gap: 4rem; width: max-content;
  animation: scrollTrack 22s linear infinite;
}
@keyframes scrollTrack { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.trust-logo {
  font-size: .85rem; letter-spacing: .08em;
  color: #94A3B8; white-space: nowrap; transition: color .3s;
}
.trust-logo strong { color: #64748B; font-weight: 700; }
.trust-logo:hover { color: var(--muted); }

/* ── SECTIONS (light) ── */
.section { padding: 7rem 0; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  display: inline-block; padding: .35rem .9rem;
  border: 1px solid rgba(0,153,204,.3);
  border-radius: 100px; color: var(--cyan);
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.25rem; background: rgba(0,153,204,.06);
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  color: var(--text); margin-bottom: 1rem;
}
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ── SOLUZIONI (white) ── */
.soluzioni { background: var(--bg-white); }
.solutions-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
.sol-card {
  position: relative; padding: 2.5rem;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.sol-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,153,204,.3);
  box-shadow: 0 16px 48px rgba(0,0,0,.08), 0 0 0 1px rgba(0,153,204,.1);
}
.sol-card-glow {
  position: absolute; width: 300px; height: 300px;
  border-radius: 50%; filter: blur(80px); opacity: .06;
  top: -80px; right: -80px; pointer-events: none;
  transition: opacity .3s;
}
.sol-card:hover .sol-card-glow { opacity: .12; }
.glow-cyan   { background: #00D4FF; }
.glow-purple { background: #7C3AED; }
.glow-green  { background: #10B981; }
.glow-orange { background: #F59E0B; }
.sol-icon { margin-bottom: 1rem; }
.sol-num { font-size: .78rem; color: var(--muted); margin-bottom: .75rem; letter-spacing: .12em; }
.sol-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: .75rem; letter-spacing: -.02em; color: var(--text); }
.sol-card p { color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.sol-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.sol-tags span {
  padding: .25rem .7rem; border-radius: 100px;
  font-size: .72rem; color: var(--muted);
  background: var(--bg-light); border: 1px solid var(--border);
}
.sol-link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--cyan); font-size: .9rem; font-weight: 600;
  transition: gap .2s;
}
.sol-link:hover { gap: .6rem; }

.sol-card--featured {
  border-color: rgba(0,212,255,.35);
  box-shadow: 0 0 0 1px rgba(0,212,255,.15), 0 8px 32px rgba(0,153,204,.08);
}
.sol-card--featured .sol-card-glow { opacity: .14; }
.sol-card--featured::before {
  content: 'CORE';
  position: absolute; top: 1.25rem; right: 1.25rem;
  font-size: .62rem; font-weight: 700; letter-spacing: .12em;
  color: var(--cyan); background: rgba(0,153,204,.08);
  border: 1px solid rgba(0,153,204,.25);
  border-radius: 100px; padding: .2rem .55rem;
}
.sol-card--wide {
  grid-column: span 2;
}

/* override svg colors to darker cyan for light bg */
.sol-card svg { filter: none; }

/* ── NUMERI (tinted blue bg) ── */
.numeri { background: var(--bg-tint); border-top: 1px solid #DBEAFE; border-bottom: 1px solid #DBEAFE; }
.numeri-bg { display: none; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; text-align: center;
}
.stat-item {
  padding: 2.5rem 1.5rem;
  background: var(--bg-white);
  border: 1.5px solid var(--border); border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.stat-value {
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700; color: var(--cyan);
  line-height: 1; margin-bottom: .5rem; display: block;
}
.stat-label {
  font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .5rem;
}
.stat-desc { font-size: .8rem; color: var(--muted); line-height: 1.5; }

/* ── METODO (white) ── */
.metodo { background: var(--bg-white); }
.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start; gap: 1rem;
}
.step-item { text-align: center; padding: 2rem 1rem; }
.step-num {
  font-size: 2.5rem; font-weight: 700;
  color: var(--cyan); opacity: .25; margin-bottom: 1rem; display: block;
}
.step-icon {
  width: 64px; height: 64px;
  background: var(--bg-light);
  border: 1.5px solid var(--border); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.step-item:hover .step-icon {
  background: rgba(0,153,204,.06);
  border-color: rgba(0,153,204,.3);
  box-shadow: 0 4px 16px rgba(0,153,204,.1);
}
.step-item h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; color: var(--text); }
.step-item p { font-size: .88rem; color: var(--muted); line-height: 1.65; }
.step-connector {
  margin-top: 5.5rem; width: 40px; height: 2px;
  background: linear-gradient(to right, var(--cyan), #5B21B6);
  opacity: .25; border-radius: 2px;
}

/* ── CASE STUDY (light gray) ── */
.case-study { background: var(--bg-light); }
.cs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.cs-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border); border-radius: 16px; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.cs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,0,0,.1);
}
.cs-img-wrap { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.cs-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cs-card:hover .cs-img-wrap img { transform: scale(1.05); }
.cs-sector {
  position: absolute; top: 1rem; left: 1rem;
  padding: .3rem .8rem; border-radius: 100px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  font-size: .72rem; color: var(--cyan); letter-spacing: .08em;
  border: 1px solid rgba(0,153,204,.3); font-weight: 600;
}
.cs-body { padding: 1.75rem; }
.cs-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .75rem; line-height: 1.3; color: var(--text); }
.cs-body p { font-size: .88rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.cs-result {
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem; border-radius: 8px;
  background: rgba(0,153,204,.05);
  border: 1px solid rgba(0,153,204,.15); margin-bottom: 1.25rem;
}
.cs-metric { font-size: 1.4rem; font-weight: 700; color: var(--cyan); }
.cs-result span:last-child { font-size: .82rem; color: var(--muted); }

/* ── TECH STACK (white) ── */
.tech-stack { background: var(--bg-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tech-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem;
}
.tech-item {
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
  padding: 1.75rem 1rem;
  background: var(--bg-white);
  border: 1.5px solid var(--border); border-radius: 12px;
  transition: border-color .3s, background .3s, box-shadow .3s;
  cursor: default;
}
.tech-item:hover {
  border-color: rgba(0,153,204,.35);
  background: rgba(0,153,204,.03);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.tech-icon { font-size: 1.5rem; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.tech-item span { font-size: .8rem; color: var(--muted); font-weight: 500; text-align: center; }

/* ── TESTIMONIAL (light gray) ── */
.testimonial { background: var(--bg-light); }
.testi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.testi-card {
  padding: 2rem; background: var(--bg-white);
  border: 1.5px solid var(--border); border-radius: 16px;
  transition: transform .3s, box-shadow .3s;
}
.testi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.08);
}
.testi-quote {
  font-size: 5rem; line-height: .8;
  color: var(--cyan); opacity: .2;
  font-family: Georgia, serif; margin-bottom: .5rem;
}
.testi-card p { font-size: .93rem; color: var(--text-mid); line-height: 1.75; margin-bottom: 1.5rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: .9rem; }
.testi-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: white; flex-shrink: 0;
}
.testi-author strong { display: block; font-size: .9rem; color: var(--text); }
.testi-author span { font-size: .78rem; color: var(--muted); }

/* ── CTA FINALE (dark — ritorno al dark per impatto) ── */
.cta-finale {
  position: relative; overflow: hidden;
  background: var(--navy);
}
.cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(91,33,182,.35) 0%, transparent 60%),
              radial-gradient(ellipse at 0% 100%, rgba(0,153,204,.2) 0%, transparent 50%);
  pointer-events: none;
}
.cta-finale .section-tag {
  border-color: rgba(0,212,255,.3);
  color: #00D4FF; background: rgba(0,212,255,.06);
}
.cta-inner {
  max-width: 680px; margin: 0 auto; text-align: center;
  position: relative; z-index: 1;
}
.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; letter-spacing: -.03em;
  line-height: 1.1; margin-bottom: 1.25rem; color: #fff;
}
.cta-sub { color: rgba(255,255,255,.6); font-size: 1.05rem; margin-bottom: 2.5rem; line-height: 1.7; }
.cta-form { display: flex; flex-direction: column; gap: 1rem; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cta-form input,
.cta-form textarea {
  width: 100%; padding: .85rem 1.1rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  color: #fff; font-family: 'Inter', sans-serif; font-size: .95rem;
  outline: none; transition: border-color .2s, background .2s; resize: vertical;
}
.cta-form input:focus,
.cta-form textarea:focus {
  border-color: rgba(0,212,255,.5);
  background: rgba(0,212,255,.06);
}
.cta-form input::placeholder,
.cta-form textarea::placeholder { color: rgba(255,255,255,.35); }
.form-note { font-size: .78rem; color: rgba(255,255,255,.35); margin-top: 1rem; }

/* ── FOOTER (dark navy) ── */
.footer { background: #030814; border-top: 1px solid rgba(255,255,255,.06); padding: 4rem 0 2rem; }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand .nav-logo { margin-bottom: 1rem; }
.footer-brand .logo-text { color: rgba(255,255,255,.8); }
.footer-payoff { font-size: .82rem; color: rgba(255,255,255,.35); letter-spacing: .08em; margin-bottom: 1.5rem; font-style: italic; }
.footer-social { display: flex; gap: .75rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.4);
  transition: color .2s, background .2s, border-color .2s;
}
.footer-social a:hover { color: #00D4FF; background: rgba(0,212,255,.08); border-color: rgba(0,212,255,.3); }
.footer-col h4 { font-size: .82rem; font-weight: 600; margin-bottom: 1.25rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a, .footer-col span { font-size: .88rem; color: rgba(255,255,255,.35); transition: color .2s; }
.footer-col a:hover { color: rgba(255,255,255,.8); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.06);
  font-size: .8rem; color: rgba(255,255,255,.25);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,.25); transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.6); }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step-connector { display: none; }
  .cs-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255,255,255,.98); border-bottom: 1px solid var(--border);
    padding: 1rem; box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links.open a { color: var(--muted); }
  .nav-links.open a:hover { color: var(--text); background: var(--bg-light); }
  .nav-drop-toggle { color: var(--muted); width: 100%; }
  .nav-drop-toggle:hover, .nav-drop-toggle[aria-expanded="true"] { color: var(--text); background: var(--bg-light); }
  .nav-drop-menu {
    display: none; position: static;
    box-shadow: none; border: none; border-radius: 0;
    background: var(--bg-light); padding: .25rem .25rem .25rem 1rem; margin-top: .25rem;
  }
  .nav-drop-menu.open { display: block; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .solutions-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero-stat-divider { width: 60px; height: 1px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: center; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ── COOKIE CONSENT ─────────────────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9000;
  background: rgba(5, 11, 31, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 153, 204, 0.2);
  padding: 1.125rem 2rem;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.cookie-banner-left { flex: 1; min-width: 0; }
.cookie-banner-title-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .3rem;
}
.cookie-banner-title {
  font-size: .9rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: .01em;
}
.cookie-banner-desc {
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}
.cookie-link {
  color: #00D4FF;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity .2s;
}
.cookie-link:hover { opacity: .75; }
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .575rem 1.1rem;
  border-radius: 7px;
  font-size: .85rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all .22s ease;
  border: none;
  white-space: nowrap;
  line-height: 1;
}
.cookie-btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
}
.cookie-btn--ghost:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.07);
}
.cookie-btn--ghost-dark {
  background: transparent;
  color: #64748B;
  border: 1.5px solid #E2E8F0;
}
.cookie-btn--ghost-dark:hover {
  color: #0F172A;
  border-color: #94A3B8;
  background: #F1F5F9;
}
.cookie-btn--primary {
  background: linear-gradient(135deg, #0099CC, #0066AA);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 153, 204, 0.3);
}
.cookie-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 153, 204, 0.48);
}
.cookie-btn--save {
  background: rgba(0, 153, 204, 0.1);
  color: #0099CC;
  border: 1.5px solid rgba(0, 153, 204, 0.3);
}
.cookie-btn--save:hover {
  background: rgba(0, 153, 204, 0.18);
  border-color: rgba(0, 153, 204, 0.55);
}

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(5, 11, 31, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 660px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.cookie-modal-overlay.visible .cookie-modal {
  transform: scale(1) translateY(0);
}
.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1.2rem;
  border-bottom: 1px solid #F1F5F9;
  flex-shrink: 0;
}
.cookie-modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0F172A;
}
.cookie-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: none;
  background: #F1F5F9;
  color: #64748B;
  cursor: pointer;
  transition: all .2s;
  flex-shrink: 0;
}
.cookie-modal-close:hover { background: #E2E8F0; color: #0F172A; }

.cookie-modal-body {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}
.cookie-modal-intro {
  font-size: .875rem;
  color: #64748B;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #F1F5F9;
}

.cookie-category {
  padding: 1.1rem 0;
  border-bottom: 1px solid #F8FAFC;
}
.cookie-category:last-child { border-bottom: none; padding-bottom: 0; }
.cookie-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .5rem;
}
.cookie-cat-info {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.cookie-cat-name {
  font-size: .9rem;
  font-weight: 700;
  color: #0F172A;
}
.cookie-cat-badge {
  font-size: .72rem;
  font-weight: 600;
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  padding: .18rem .55rem;
  border-radius: 20px;
  border: 1px solid rgba(5, 150, 105, 0.2);
}
.cookie-cat-desc {
  font-size: .83rem;
  color: #64748B;
  line-height: 1.6;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  cursor: pointer;
}
.cookie-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.cookie-toggle-track {
  display: block;
  width: 46px;
  height: 25px;
  border-radius: 13px;
  background: #CBD5E1;
  transition: background 0.25s;
  position: relative;
}
.cookie-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.cookie-toggle-input:checked + .cookie-toggle-track { background: #0099CC; }
.cookie-toggle-input:checked + .cookie-toggle-track::after { transform: translateX(21px); }
.cookie-toggle-input:disabled + .cookie-toggle-track { background: #0099CC; opacity: .6; cursor: not-allowed; }
.cookie-toggle-input:disabled + .cookie-toggle-track::after { transform: translateX(21px); }
.cookie-toggle:has(.cookie-toggle-input:disabled) { cursor: not-allowed; }
.cookie-toggle-input:focus-visible + .cookie-toggle-track {
  outline: 2px solid #0099CC;
  outline-offset: 2px;
}

.cookie-modal-footer {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: 1.1rem 1.75rem;
  border-top: 1px solid #F1F5F9;
  background: #F8FAFC;
  flex-shrink: 0;
}
.cookie-modal-footer .cookie-btn--save { flex: 1; }
.cookie-modal-footer .cookie-btn--primary { flex: 1; }

@media (max-width: 768px) {
  .cookie-banner { padding: 1.125rem 1.25rem; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; }
  .cookie-modal { max-height: 92vh; border-radius: 14px 14px 0 0; align-self: flex-end; margin: 0; max-width: 100%; }
  .cookie-modal-overlay { align-items: flex-end; padding: 0; }
  .cookie-modal-overlay.visible .cookie-modal { transform: scale(1) translateY(0); }
  .cookie-modal-overlay .cookie-modal { transform: translateY(100%); }
  .cookie-modal-overlay.visible .cookie-modal { transform: translateY(0); }
  .cookie-modal-body { padding: 1.25rem; }
  .cookie-modal-header { padding: 1.25rem 1.25rem 1rem; }
  .cookie-modal-footer { padding: 1rem 1.25rem; flex-wrap: wrap; }
  .cookie-modal-footer .cookie-btn--ghost-dark { width: 100%; }
  .cookie-modal-footer .cookie-btn--save { flex: 1; min-width: 0; }
  .cookie-modal-footer .cookie-btn--primary { flex: 1; min-width: 0; }
}

@media (max-width: 480px) {
  .cookie-banner-actions { grid-template-columns: 1fr 1fr; }
  .cookie-banner-actions .cookie-btn--primary { grid-column: 1 / -1; }
}

/* ── ACCESSIBILITÀ ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1.5rem;
  z-index: 10000;
  padding: .75rem 1.5rem;
  background: var(--navy);
  color: #ffffff;
  font-size: .9rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  border: 2px solid #00D4FF;
  border-top: none;
  transition: top .2s ease;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #00D4FF;
  outline-offset: -4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 3px;
}

.cta-finale :focus-visible,
.footer :focus-visible,
.cookie-banner :focus-visible,
.cookie-modal :focus-visible,
.hero :focus-visible {
  outline-color: #00D4FF;
}

.cta-form input:focus-visible,
.cta-form textarea:focus-visible {
  outline: 2px solid rgba(0, 212, 255, 0.8);
  outline-offset: -2px;
  border-color: rgba(0, 212, 255, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .typewriter {
    border-right-color: transparent !important;
  }
}

/* ── ACCESSIBILITY WIDGET ── */
.a11y-widget {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9050;
}
.a11y-trigger {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid rgba(0, 212, 255, 0.5);
  color: #00D4FF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(0, 212, 255, 0.08);
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.a11y-trigger:hover {
  background: #0a1535;
  border-color: #00D4FF;
  transform: scale(1.07);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(0, 212, 255, 0.12);
}
.a11y-trigger:focus-visible {
  outline: 2px solid #00D4FF;
  outline-offset: 4px;
}
.a11y-panel {
  position: absolute;
  bottom: calc(100% + .75rem);
  left: 0;
  width: 286px;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18), 0 4px 16px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem .85rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
}
.a11y-panel-title {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
}
.a11y-panel-close {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #E2E8F0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.a11y-panel-close:hover { background: #CBD5E1; color: var(--text); }
.a11y-panel-close:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.a11y-panel-body {
  padding: .875rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.a11y-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.a11y-option-label {
  font-size: .83rem;
  font-weight: 500;
  color: var(--text-mid);
  flex: 1;
}
.a11y-size-group {
  display: flex;
  gap: .3rem;
  flex-shrink: 0;
}
.a11y-size-btn {
  height: 28px;
  padding: 0 .5rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--bg-white);
  color: var(--text-mid);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  line-height: 1;
  white-space: nowrap;
}
.a11y-size-btn:nth-child(1) { font-size: .72rem; }
.a11y-size-btn:nth-child(2) { font-size: .8rem; }
.a11y-size-btn:nth-child(3) { font-size: .86rem; }
.a11y-size-btn[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #FFFFFF;
}
.a11y-size-btn:hover:not([aria-pressed="true"]) {
  border-color: var(--cyan);
  color: var(--cyan);
}
.a11y-size-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.a11y-switch {
  position: relative;
  width: 42px;
  height: 23px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 12px;
}
.a11y-switch-track {
  display: block;
  width: 42px;
  height: 23px;
  border-radius: 12px;
  background: #CBD5E1;
  transition: background .25s;
  position: relative;
}
.a11y-switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform .28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.a11y-switch[aria-checked="true"] .a11y-switch-track { background: #0099CC; }
.a11y-switch[aria-checked="true"] .a11y-switch-track::after { transform: translateX(19px); }
.a11y-switch:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 12px; }
.a11y-panel-footer {
  padding: .75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
}
.a11y-reset-btn {
  width: 100%;
  padding: .5rem;
  font-size: .78rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.a11y-reset-btn:hover { color: var(--text); border-color: #94A3B8; background: #F1F5F9; }
.a11y-reset-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

@media (max-width: 480px) {
  .a11y-widget { bottom: 1rem; left: 1rem; }
  .a11y-panel { width: calc(100vw - 2rem); }
}

/* ── COOKIE WIDGET ── */
.cookie-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9040;
}
.cookie-widget-trigger {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  border: 2px solid rgba(0, 212, 255, 0.5);
  color: #00D4FF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35), 0 0 0 4px rgba(0, 212, 255, 0.08);
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.cookie-widget-trigger:hover {
  background: #0a1535;
  border-color: #00D4FF;
  transform: scale(1.07);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 0 6px rgba(0, 212, 255, 0.12);
}
.cookie-widget-trigger:focus-visible {
  outline: 2px solid #00D4FF;
  outline-offset: 4px;
}

/* ── LEGAL PAGES ── */
.legal-hero {
  background: var(--navy);
  padding: 8rem 0 4rem;
  text-align: center;
}
.legal-hero-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan-lt);
  margin-bottom: 1rem;
}
.legal-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: .75rem;
}
.legal-hero-date {
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}
.legal-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 .75rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}
.legal-content h2:first-child {
  margin-top: 0;
  border-top: none;
}
.legal-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 .5rem;
}
.legal-content p {
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: .9rem;
}
.legal-content ul, .legal-content ol {
  margin: .5rem 0 1rem 1.5rem;
  list-style: disc;
}
.legal-content ol { list-style: decimal; }
.legal-content li {
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: .3rem;
}
.legal-content a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-content a:hover { color: var(--cyan-lt); }
.legal-content strong { color: var(--text); font-weight: 600; }
.legal-content .legal-box {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.legal-content .legal-box p {
  margin-bottom: 0;
}
.legal-toc {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 3rem;
}
.legal-toc-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  list-style: decimal;
}
.legal-toc li {
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: .2rem;
}
.legal-toc a {
  color: var(--cyan);
  text-decoration: none;
}
.legal-toc a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .cookie-widget { bottom: 1rem; right: 1rem; }
  .legal-hero { padding: 7rem 0 3rem; }
  .legal-content { padding: 2.5rem 1.25rem 4rem; }
}

/* ── OVERRIDE STILI DI ACCESSIBILITÀ ── */
html[data-a11y-size="large"]  { font-size: 18px; }
html[data-a11y-size="xlarge"] { font-size: 20px; }

html[data-a11y-contrast="high"] {
  --text:     #000000;
  --text-mid: #111111;
  --muted:    #333333;
  --cyan:     #005A8E;
  --border:   #555555;
}
html[data-a11y-contrast="high"] .hero-title  { color: #ffffff !important; }
html[data-a11y-contrast="high"] .hero-sub    { color: rgba(255,255,255,.95) !important; }
html[data-a11y-contrast="high"] .cta-sub     { color: rgba(255,255,255,.95) !important; }
html[data-a11y-contrast="high"] .footer-col a,
html[data-a11y-contrast="high"] .footer-col span { color: rgba(255,255,255,.85) !important; }
html[data-a11y-contrast="high"] .footer-bottom,
html[data-a11y-contrast="high"] .footer-legal a  { color: rgba(255,255,255,.65) !important; }
html[data-a11y-contrast="high"] .sol-card,
html[data-a11y-contrast="high"] .stat-item,
html[data-a11y-contrast="high"] .testi-card { border-color: #555555 !important; }
html[data-a11y-contrast="high"] .nav-links a { color: rgba(255,255,255,.9) !important; }
html[data-a11y-contrast="high"] .navbar.scrolled .nav-links a { color: #111111 !important; }

html[data-a11y-motion="reduced"] *,
html[data-a11y-motion="reduced"] *::before,
html[data-a11y-motion="reduced"] *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}
html[data-a11y-motion="reduced"] .reveal { opacity: 1 !important; transform: none !important; }
html[data-a11y-motion="reduced"] .typewriter { border-right-color: transparent !important; }

html[data-a11y-links="underline"] a:not(.btn):not(.nav-cta):not(.skip-link):not(.a11y-trigger) {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

html[data-a11y-font="readable"] body,
html[data-a11y-font="readable"] input,
html[data-a11y-font="readable"] textarea,
html[data-a11y-font="readable"] button {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.04em !important;
  word-spacing: 0.08em !important;
  line-height: 1.85 !important;
}
html[data-a11y-font="readable"] .mono {
  font-family: 'Courier New', Courier, monospace !important;
}

/* ── PRODOTTI ── */
.prodotti { background: var(--bg-light); }

.prod-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 3rem;
  position: relative;
  box-shadow: 0 4px 40px rgba(0,0,0,.06);
  transition: box-shadow .3s;
}
.prod-card:last-child { margin-bottom: 0; }
.prod-card:hover { box-shadow: 0 8px 60px rgba(0,0,0,.1); }

.prod-card--regolia { background: linear-gradient(135deg, #052e16 0%, #064e3b 60%, #065f46 100%); border-color: rgba(16,185,129,.3); }
.prod-card--regolia .btn-primary {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 4px 20px rgba(5,150,105,.35);
}
.prod-card--regolia .btn-primary:hover {
  box-shadow: 0 8px 30px rgba(5,150,105,.5);
}
.prod-card--panthera { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 60%, #ddd6fe 100%); border-color: rgba(109,40,217,.18); }

.prod-card-bg { display: none; }

.prod-content {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.prod-content--right { order: 2; }

.prod-badge {
  display: inline-flex;
  align-items: center;
  padding: .35rem 1rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: rgba(16,185,129,.15);
  color: #34d399;
  border: 1px solid rgba(16,185,129,.3);
  width: fit-content;
}
.prod-badge--panthera {
  background: rgba(109,40,217,.1);
  color: #5b21b6;
  border-color: rgba(109,40,217,.25);
}

.prod-logo-wrap { display: flex; align-items: center; gap: 1rem; }
.prod-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.prod-logo--regolia { color: #00D4FF; }
.prod-logo--panthera { color: #a78bfa; }

.prod-title {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: #fff;
}

.prod-desc {
  font-size: .95rem;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
}

.prod-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.prod-feature {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: rgba(255,255,255,.8);
}
.prod-feature svg { flex-shrink: 0; color: #34d399; }
.prod-card--panthera .prod-feature svg { color: #7C3AED; }

.prod-card--panthera .prod-title { color: #1e1b4b; }
.prod-card--panthera .prod-desc { color: #4c1d95; opacity: .85; }
.prod-card--panthera .prod-feature { color: #3b0764; }
.prod-card--panthera .panthera-rating-val { color: #1e1b4b; }
.prod-card--panthera .panthera-rating-count { color: #6d28d9; opacity: .7; }

.prod-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.prod-tags span {
  padding: .25rem .75rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(16,185,129,.12);
  color: #34d399;
  border: 1px solid rgba(16,185,129,.2);
}
.prod-tags--panthera span {
  background: rgba(109,40,217,.1);
  color: #5b21b6;
  border-color: rgba(109,40,217,.25);
}

.prod-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-panthera {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,.35);
}
.btn-panthera:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,.5);
}

.btn-outline-light {
  background: transparent;
  color: rgba(255,255,255,.8);
  border: 1.5px solid rgba(255,255,255,.2);
}
.btn-outline-light:hover {
  border-color: rgba(255,255,255,.5);
  background: rgba(255,255,255,.06);
  color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.2);
}
.btn-outline-dark:hover {
  border-color: rgba(124,58,237,.6);
  color: #a78bfa;
}

/* REGOLIA / Panthera visual containers */
.prod-visual {
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-visual--regolia { order: 2; }
.prod-visual--panthera { order: 1; }

/* macOS window frame */
.macos-window {
  width: 100%;
  max-width: 460px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(-2deg);
  transition: transform .3s ease;
}
.macos-window:hover { transform: rotate(0deg); }

.macos-titlebar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem 1rem;
  background: #2a2a2e;
  border-bottom: 1px solid rgba(0,0,0,.35);
}
.macos-dots {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}
.macos-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.macos-dot--red    { background: #ff5f57; }
.macos-dot--yellow { background: #febc2e; }
.macos-dot--green  { background: #28c840; }

.macos-title {
  flex: 1;
  text-align: center;
  font-size: .72rem;
  font-weight: 500;
  color: rgba(255,255,255,.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.macos-controls {
  display: flex;
  gap: .3rem;
  flex-shrink: 0;
  opacity: 0;
}

.macos-screen {
  display: block;
  line-height: 0;
  background: #000;
}
.macos-screen img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top;
}

/* Navbar dropdown extra styles */
.drop-icon--regolia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(16,185,129,.15);
  color: #059669;
  font-size: .8rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(16,185,129,.25);
}
.drop-icon--panthera {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(124,58,237,.15);
  color: #7C3AED;
  font-size: .8rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(124,58,237,.25);
}

/* Footer prodotti */
.footer-prod-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
}
.footer-prod-link--regolia { color: #34d399 !important; }
.footer-prod-link--regolia:hover { color: #10b981 !important; }
.footer-prod-link--panthera { color: #a78bfa !important; }
.footer-prod-link--panthera:hover { color: #7C3AED !important; }
.footer-ext-icon {
  font-size: .75rem;
  opacity: .7;
}

/* PantheraCockpit device mockups */
.panthera-devices {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdev {
  position: absolute;
}

/* TABLET */
.pdev--tablet {
  width: 280px;
  transform: rotate(-4deg) translateX(-30px);
  z-index: 1;
  filter: drop-shadow(-12px 16px 32px rgba(109,40,217,.22));
}
.pdev--tablet .pdev-frame {
  background: #1e1b4b;
  border-radius: 18px;
  padding: 12px 10px 12px 10px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.3);
}
.pdev--tablet .pdev-camera {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  margin: 0 auto 6px;
}
.pdev--tablet .pdev-screen {
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4/3;
}
.pdev--tablet .pdev-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}
.pdev-btn--home {
  width: 32px;
  height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  margin: 8px auto 0;
}

/* PHONE */
.pdev--phone {
  width: 115px;
  transform: rotate(4deg) translateX(110px) translateY(20px);
  z-index: 2;
  filter: drop-shadow(8px 16px 28px rgba(109,40,217,.28));
}
.pdev--phone .pdev-frame {
  background: #1e1b4b;
  border-radius: 32px;
  padding: 10px 8px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.3);
}
.pdev--phone .pdev-notch {
  width: 36px;
  height: 8px;
  background: #0d0b22;
  border-radius: 0 0 6px 6px;
  margin: 0 auto 6px;
}
.pdev--phone .pdev-screen {
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 9/19;
}
.pdev--phone .pdev-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* REGOLIA logo */
.regolia-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

/* PantheraCockpit real logo */
.panthera-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.panthera-logo-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #1e1b4b;
}

/* PantheraCockpit rating */
.panthera-rating {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.panthera-stars {
  color: #fbbf24;
  font-size: .9rem;
  letter-spacing: .05em;
}
.panthera-rating-val {
  font-weight: 800;
  font-size: .95rem;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}
.panthera-rating-count {
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

/* Store buttons */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
  transition: all .25s ease;
}
.btn-store:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  color: #fff;
  transform: translateY(-2px);
}
.prod-card--panthera .btn-store {
  background: rgba(109,40,217,.08);
  border-color: rgba(109,40,217,.25);
  color: #3b0764;
}
.prod-card--panthera .btn-store:hover {
  background: rgba(109,40,217,.15);
  border-color: rgba(109,40,217,.45);
  color: #1e1b4b;
}
.prod-card--panthera .btn-store svg { color: #5b21b6; }

.btn-store--apple svg { color: #fff; }
.btn-store--google svg { color: #fff; }

.prod-stores-row {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}

/* Responsive prodotti */
@media (max-width: 900px) {
  .prod-card { grid-template-columns: 1fr; gap: 0; }
  .prod-content { padding: 2.5rem 2rem; }
  .prod-content--right { order: 1; }
  .prod-visual { padding: 2rem; order: 2 !important; }
  .prod-visual--panthera { justify-content: center; }
  .prod-features { grid-template-columns: 1fr; }
  .prod-title { font-size: 1.5rem; }
  .prod-mobile-wrap { justify-content: center; }
  .panthera-devices { min-height: 280px; }
  .pdev--tablet { width: 210px; transform: rotate(-4deg) translateX(-22px); }
  .pdev--phone  { width: 88px;  transform: rotate(4deg) translateX(84px) translateY(16px); }
}

@media (max-width: 600px) {
  .prod-content { padding: 2rem 1.5rem; }
  .prod-actions { flex-direction: column; }
  .prod-actions .btn { justify-content: center; }
  .panthera-devices { min-height: 230px; }
  .pdev--tablet { width: 170px; transform: rotate(-4deg) translateX(-18px); }
  .pdev--phone  { width: 70px;  transform: rotate(4deg) translateX(68px) translateY(14px); }
}

/* ── FAQ ACCORDION ───────────────────────────────────────────────────────── */
.faq { background: #f8fafc; }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
  background: #fff;
  border: 1px solid rgba(0,212,255,0.15);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.faq-item:hover { border-color: rgba(0,212,255,0.35); box-shadow: 0 4px 20px rgba(0,212,255,0.07); }
.faq-item.is-open { border-color: rgba(0,212,255,0.45); box-shadow: 0 6px 24px rgba(0,212,255,0.1); }
.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.75rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.faq-question {
  font-size: 1rem;
  font-weight: 600;
  color: #0a0f1e;
  line-height: 1.45;
  flex: 1;
  margin: 0;
}
.faq-icon {
  flex-shrink: 0;
  color: #00D4FF;
  transition: transform 0.3s ease;
}
.faq-item.is-open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.75rem;
}
.faq-answer[hidden] { display: block !important; }
.faq-item.is-open .faq-answer { max-height: 300px; padding: 0 1.75rem 1.4rem; }
.faq-answer p {
  font-size: 0.94rem;
  color: #4a5568;
  line-height: 1.75;
  border-top: 1px solid rgba(0,212,255,0.1);
  padding-top: 1rem;
}
@media (max-width: 768px) {
  .faq-toggle { padding: 1.2rem 1.25rem; }
  .faq-item.is-open .faq-answer { padding: 0 1.25rem 1.2rem; }
  .faq-question { font-size: 0.95rem; }
}
