/* ==========================================================
   Behindy · Brand styles
   Primary: #bfd730 (lime) · Black: #010101
   ========================================================== */
:root {
  --b-green: #bfd730;
  --b-green-rgb: 191, 215, 48;
  --b-black: #010101;
  --b-bg: #0a0a0a;
  --b-bg-soft: #0f0f0f;
  --b-border: rgba(255,255,255,0.08);
  --b-border-hover: rgba(var(--b-green-rgb), 0.4);
  --b-text: #ffffff;
  --b-text-300: rgba(255,255,255,0.72);
  --b-text-400: rgba(255,255,255,0.55);
  --b-radius: 14px;
}

/* --- Base ------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body.behindy-body {
  background: var(--b-bg);
  color: var(--b-text);
  font-family: "Urbanist", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
.behindy-accent { color: var(--b-green) !important; }
.text-200 { color: rgba(255,255,255,0.88); }
.text-300 { color: var(--b-text-300); }
.text-400 { color: var(--b-text-400); }

.py-6 { padding-top: 7rem; padding-bottom: 7rem; }
@media (max-width: 767px) { .py-6 { padding-top: 4.5rem; padding-bottom: 4.5rem; } }

h1,h2,h3,h4,h5,h6 { font-family: "Playfair Display", "Urbanist", serif; letter-spacing: -0.02em; }
.display-1,.display-2,.display-3 { line-height: 1.05; }

/* --- Buttons --------------------------------------------- */
.behindy-cta-btn,
.btn-primary-behindy {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 22px;
  background: var(--b-green);
  color: var(--b-black) !important;
  border: 1px solid var(--b-green);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all .25s ease;
  cursor: pointer;
  font-family: "Urbanist", sans-serif;
}
.behindy-cta-btn:hover,
.btn-primary-behindy:hover {
  background: #d0e84d;
  border-color: #d0e84d;
  color: var(--b-black) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(var(--b-green-rgb), 0.25);
}
.btn-outline-light {
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  background: transparent;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.3); }

/* --- Header (sticky, always visible) --------------------- */
.behindy-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1040;
  padding: 16px 0;
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .25s, border-color .25s, padding .25s;
}
.behindy-header.scrolled {
  background: rgba(8,8,8,0.92);
  border-bottom-color: var(--b-border);
  padding: 12px 0;
}
.behindy-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.behindy-logo { flex-shrink: 0; display: inline-flex; align-items: center; }
.behindy-logo img { display: block; height: 30px; width: auto; }

.behindy-nav-links {
  display: flex; gap: 32px; margin: 0; padding: 0; list-style: none;
  flex: 1; justify-content: center;
}
.behindy-nav-links a {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
  transition: color .2s;
}
.behindy-nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 4px;
  width: 0; height: 2px; background: var(--b-green);
  transition: all .25s; transform: translateX(-50%);
}
.behindy-nav-links a:hover { color: #fff; }
.behindy-nav-links a:hover::after { width: 20px; }

.behindy-nav-right { display: flex; align-items: center; gap: 12px; }

/* Language dropdown (niente quadrato blu) */
.behindy-lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--b-border);
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.behindy-lang-btn:hover,
.behindy-lang-btn[aria-expanded="true"] {
  color: var(--b-green);
  border-color: rgba(var(--b-green-rgb), 0.5);
  background: rgba(var(--b-green-rgb), 0.05);
}
.behindy-lang-btn i { font-size: 15px; }
.behindy-lang-menu {
  background: #0c0c0c;
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: 8px;
  min-width: 190px;
  margin-top: 8px !important;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6);
}
.behindy-lang-menu .dropdown-item {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.82);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: all .15s;
}
.behindy-lang-menu .dropdown-item:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
}
.behindy-lang-menu .dropdown-item.active {
  background: rgba(var(--b-green-rgb), 0.14);
  color: var(--b-green);
  font-weight: 600;
}
.behindy-lang-menu .dropdown-item:focus { outline: none; }
.behindy-lang-flag { font-size: 16px; line-height: 1; }

/* Burger mobile */
.behindy-burger {
  width: 44px; height: 44px;
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--b-border);
  border-radius: 12px;
  cursor: pointer;
}
.behindy-burger span {
  width: 18px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.behindy-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.behindy-burger.active span:nth-child(2) { opacity: 0; }
.behindy-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.behindy-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(340px, 92%);
  height: 100vh;
  background: #0a0a0a;
  border-left: 1px solid var(--b-border);
  padding: 100px 24px 32px;
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 1039;
  overflow-y: auto;
}
.behindy-mobile-menu.open { transform: translateX(0); }
.behindy-mobile-nav {
  list-style: none; padding: 0; margin: 0 0 24px;
}
.behindy-mobile-nav li { border-bottom: 1px solid var(--b-border); }
.behindy-mobile-nav a {
  display: block;
  padding: 14px 0;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
}
.behindy-mobile-actions { display: flex; flex-direction: column; gap: 16px; }
.behindy-mobile-langs {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--b-border);
}
.behindy-mobile-langs a {
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--b-border);
  border-radius: 999px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.behindy-mobile-langs a.active {
  background: rgba(var(--b-green-rgb), 0.14);
  border-color: rgba(var(--b-green-rgb), 0.5);
  color: var(--b-green);
}
.behindy-mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  z-index: 1038;
}
.behindy-mobile-overlay.open { opacity: 1; pointer-events: auto; }

body.has-mobile-menu { overflow: hidden; }

/* --- Hero ------------------------------------------------ */
.behindy-hero {
  padding: 180px 0 90px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 767px) { .behindy-hero { padding: 140px 0 60px; } }
.behindy-hero-glow {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -30%);
  width: 900px; height: 900px;
  background: radial-gradient(circle at center, rgba(var(--b-green-rgb), 0.15) 0%, transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.behindy-hero > .container { position: relative; z-index: 1; }
.behindy-hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}
.behindy-highlight {
  color: var(--b-green);
  font-style: italic;
  position: relative;
  white-space: nowrap;
}
.behindy-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(var(--b-green-rgb), 0.08);
  border: 1px solid rgba(var(--b-green-rgb), 0.3);
  color: var(--b-green);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.behindy-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--b-green);
  box-shadow: 0 0 0 4px rgba(var(--b-green-rgb), 0.2);
  animation: behindyPulse 2s infinite;
}
@keyframes behindyPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(var(--b-green-rgb), 0.45); }
  50%     { box-shadow: 0 0 0 8px rgba(var(--b-green-rgb), 0); }
}
.behindy-stats { margin-top: 60px; }
.behindy-stat-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--b-border);
  border-radius: var(--b-radius);
  padding: 20px;
  transition: all .25s;
  height: 100%;
}
.behindy-stat-card:hover {
  border-color: var(--b-border-hover);
  transform: translateY(-3px);
  background: rgba(var(--b-green-rgb), 0.03);
}
.behindy-stat-num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--b-green);
  font-family: "Playfair Display", serif;
  line-height: 1;
}
.behindy-stat-label {
  color: var(--b-text-300);
  font-size: 13px;
  margin-top: 10px;
}

/* --- Brands marquee (full-bleed, una riga, loghi grandi) - */
.behindy-brands {
  padding: 36px 0 44px;
  border-top: 1px solid var(--b-border);
  border-bottom: 1px solid var(--b-border);
  overflow: hidden;
  background: #080808;
  width: 100%;
}
.behindy-brands-title {
  text-align: center;
  color: var(--b-text-400);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 600;
  margin: 0 0 28px;
}
.behindy-marquee {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}
.behindy-marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: behindyMarquee 60s linear infinite;
  will-change: transform;
}
.behindy-marquee:hover .behindy-marquee-track { animation-play-state: paused; }
/* -50% = 2 copie su 4 → reset sempre su un punto allineato (loop seamless) */
@keyframes behindyMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.behindy-marquee-item {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 45px; /* spazio simmetrico, evita half-gap misalignment */
  color: rgba(255,255,255,0.6);
  transition: color .25s, transform .25s;
  position: relative;
  cursor: help;
}
.behindy-marquee-item:hover { color: #fff; transform: scale(1.08); }
.behindy-marquee-item svg {
  height: 56px;
  width: auto;
  max-width: 200px;
  fill: currentColor;
  display: block;
}

/* Tooltip (elemento singleton posizionato da JS fuori dal marquee) */
.behindy-tooltip {
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, 8px);
  background: #0a0a0a;
  color: var(--b-green);
  border: 1px solid rgba(var(--b-green-rgb), 0.5);
  padding: 7px 14px;
  border-radius: 8px;
  font-family: "Urbanist", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: 0 14px 40px rgba(0,0,0,0.6);
  z-index: 9999;
}
.behindy-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: #0a0a0a;
  border-left: 1px solid rgba(var(--b-green-rgb), 0.5);
  border-top: 1px solid rgba(var(--b-green-rgb), 0.5);
}
.behindy-tooltip.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 767px) {
  .behindy-brands { padding: 26px 0 32px; }
  .behindy-brands-title { margin-bottom: 22px; }
  .behindy-marquee-track { animation-duration: 42s; }
  .behindy-marquee-item { padding: 0 30px; }
  .behindy-marquee-item svg { height: 40px; }
}

/* --- Sections eyebrow ------------------------------------ */
.behindy-eyebrow {
  color: var(--b-green);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

/* --- Services -------------------------------------------- */
.behindy-service-card {
  background: var(--b-bg-soft);
  border: 1px solid var(--b-border);
  border-radius: 18px;
  padding: 28px;
  height: 100%;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.behindy-service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--x,50%) var(--y,0%), rgba(var(--b-green-rgb), 0.08), transparent 40%);
  opacity: 0; transition: opacity .3s;
}
.behindy-service-card:hover {
  transform: translateY(-6px);
  border-color: var(--b-border-hover);
}
.behindy-service-card:hover::before { opacity: 1; }
.behindy-service-card > * { position: relative; }
.behindy-service-icon {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(var(--b-green-rgb), 0.12);
  color: var(--b-green);
  font-size: 28px;
  margin-bottom: 20px;
}
.behindy-service-card h4 { font-size: 1.3rem; margin-bottom: 12px; font-weight: 600; }
.behindy-service-card p { margin-bottom: 18px; }
.behindy-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--b-border);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}

/* --- Steps ----------------------------------------------- */
.behindy-step {
  background: var(--b-bg-soft);
  border: 1px solid var(--b-border);
  border-radius: 18px;
  padding: 28px;
  height: 100%;
  transition: all .25s;
}
.behindy-step:hover {
  transform: translateY(-4px);
  border-color: var(--b-border-hover);
}
.behindy-step-num {
  font-family: "Playfair Display", serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--b-green);
  line-height: 1;
  margin-bottom: 16px;
}
.behindy-step h5 { font-size: 1.15rem; margin-bottom: 10px; font-weight: 600; }

/* --- Why ------------------------------------------------- */
.behindy-why-card {
  background: var(--b-bg-soft);
  border: 1px solid var(--b-border);
  border-radius: 18px;
  padding: 32px;
  height: 100%;
  display: flex; gap: 24px; align-items: flex-start;
  transition: all .25s;
}
.behindy-why-card:hover { border-color: var(--b-border-hover); transform: translateY(-3px); }
.behindy-why-icon {
  flex-shrink: 0;
  width: 60px; height: 60px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(var(--b-green-rgb), 0.12);
  color: var(--b-green);
  border-radius: 16px;
  font-size: 28px;
}
.behindy-why-card h4 { font-size: 1.25rem; margin-bottom: 10px; font-weight: 600; }

/* --- AI Academy ------------------------------------------ */
.behindy-ai-wrapper {
  position: relative;
  background: linear-gradient(135deg, rgba(var(--b-green-rgb), 0.06) 0%, transparent 50%);
  border: 1px solid rgba(var(--b-green-rgb), 0.25);
  border-radius: 24px;
  padding: 56px;
  overflow: hidden;
}
@media (max-width: 767px) { .behindy-ai-wrapper { padding: 32px 24px; } }
.behindy-ai-orb {
  position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--b-green-rgb), 0.4) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.behindy-ai-features { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0; padding: 0; list-style: none; }
.behindy-ai-features li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--b-border);
  border-radius: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.behindy-ai-features li i { color: var(--b-green); font-size: 20px; flex-shrink: 0; }

/* --- CTA banner ------------------------------------------ */
.behindy-cta-card {
  background:
    radial-gradient(circle at 20% 0%, rgba(var(--b-green-rgb), 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(var(--b-green-rgb), 0.12) 0%, transparent 50%),
    #0a0a0a;
  border: 1px solid rgba(var(--b-green-rgb), 0.25);
  border-radius: 24px;
  padding: 72px 32px;
  text-align: center;
}
@media (max-width: 767px) { .behindy-cta-card { padding: 48px 24px; } }

/* --- Footer (3 colonne: brand + contatti + sedi) --------- */
.behindy-footer {
  background: #050505;
  border-top: 1px solid var(--b-border);
  padding: 72px 0 28px;
  margin-top: 40px;
  font-family: "Urbanist", sans-serif;
}
.behindy-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--b-border);
}
.behindy-footer-brand { max-width: 420px; }
.behindy-footer-about {
  color: var(--b-text-300);
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
}
.behindy-footer-heading {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  font-family: "Urbanist", sans-serif;
  margin-bottom: 18px;
}

/* Contact col */
.behindy-footer-contact-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.behindy-footer-contact-list li {
  display: flex; align-items: center; gap: 10px;
  font-family: "Urbanist", sans-serif;
}
.behindy-footer-contact-list li i {
  color: var(--b-green);
  font-size: 17px;
  flex-shrink: 0;
}
.behindy-footer-contact-list a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
  word-break: break-word;
}
.behindy-footer-contact-list a:hover { color: var(--b-green); }

/* Offices col */
.behindy-footer-offices {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 18px;
}
.behindy-footer-offices li { font-family: "Urbanist", sans-serif; }
.behindy-office-label {
  display: flex; align-items: center; gap: 8px;
  color: var(--b-green);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 6px;
}
.behindy-office-flag { font-size: 15px; }
.behindy-footer-offices address {
  font-style: normal;
  color: var(--b-text-300);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* Social icons */
.behindy-footer-social { display: flex; gap: 10px; }
.behindy-footer-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--b-border);
  border-radius: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 17px;
  transition: all .2s;
  text-decoration: none;
}
.behindy-footer-social a:hover {
  color: var(--b-green);
  border-color: rgba(var(--b-green-rgb), 0.5);
  background: rgba(var(--b-green-rgb), 0.08);
}

/* Footer bottom */
.behindy-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  color: var(--b-text-400);
  font-size: 13px;
}
.behindy-footer-legal {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 24px; flex-wrap: wrap;
}
.behindy-footer-legal a {
  color: var(--b-text-400);
  text-decoration: none;
  transition: color .2s;
}
.behindy-footer-legal a:hover { color: var(--b-green); }

@media (max-width: 991px) {
  .behindy-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .behindy-footer-brand { grid-column: 1 / -1; max-width: 100%; }
}
@media (max-width: 575px) {
  .behindy-footer { padding: 56px 0 24px; }
  .behindy-footer-grid { grid-template-columns: 1fr; gap: 36px; padding-bottom: 36px; }
  .behindy-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* --- Scroll top ------------------------------------------ */
.scroll-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--b-green);
  color: var(--b-black);
  border: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  cursor: pointer;
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: all .25s;
  z-index: 1030;
  box-shadow: 0 10px 30px rgba(var(--b-green-rgb), 0.35);
}
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { background: #d0e84d; }

/* --- Modal ----------------------------------------------- */
.behindy-modal .modal-content {
  background: #0c0c0c !important;
  border: 1px solid var(--b-border) !important;
  border-radius: 20px;
}
.behindy-modal .modal-header { padding: 24px 28px 0; border: 0; }
.behindy-modal .modal-body   { padding: 20px 28px 28px; }
.behindy-modal .btn-close-white {
  filter: invert(1); opacity: 0.7;
}
.behindy-modal .btn-close-white:hover { opacity: 1; }

.form-control-dark,
select.form-control-dark {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--b-border);
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  width: 100%;
}
.form-control-dark:focus {
  background: rgba(255,255,255,0.05);
  border-color: var(--b-green);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(var(--b-green-rgb), 0.18);
  outline: none;
}
select.form-control-dark option { background: #0c0c0c; color: #fff; }
.form-label {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 500;
}

.behindy-chip { display: block; cursor: pointer; position: relative; margin: 0; }
.behindy-chip input { position: absolute; opacity: 0; pointer-events: none; }
.behindy-chip span {
  display: block;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--b-border);
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  text-align: center;
  transition: all .2s;
}
.behindy-chip:hover span { border-color: rgba(var(--b-green-rgb), 0.35); color: #fff; }
.behindy-chip input:checked + span {
  background: rgba(var(--b-green-rgb), 0.14);
  border-color: var(--b-green);
  color: var(--b-green);
  font-weight: 600;
}

/* Checkbox custom (privacy/newsletter) — white labels */
.behindy-modal .form-check { padding-left: 0; margin-bottom: 8px; display: flex; align-items: flex-start; gap: 10px; }
.behindy-modal .form-check-input {
  width: 18px; height: 18px;
  margin: 3px 0 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--b-border);
  border-radius: 4px;
  appearance: none; -webkit-appearance: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .15s;
}
.behindy-modal .form-check-input:checked {
  background: var(--b-green);
  border-color: var(--b-green);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23010101' d='M13.854 3.646 6 11.5 2.146 7.646l.708-.708L6 10.086l7.146-7.147z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}
.behindy-modal .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(var(--b-green-rgb), 0.25);
  outline: none;
}
.behindy-modal .form-check-label {
  color: #ffffff !important;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}
.behindy-modal .form-check-label a {
  color: var(--b-green);
  text-decoration: underline;
}

.behindy-alert { padding: 14px 16px; border-radius: 10px; font-size: 14px; }
.behindy-alert-success {
  background: rgba(var(--b-green-rgb), 0.12);
  border: 1px solid rgba(var(--b-green-rgb), 0.4);
  color: var(--b-green);
}
.behindy-alert-error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff8a8a;
}
.btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* --- Legal pages ----------------------------------------- */
.behindy-legal-hero {
  padding: 160px 0 40px;
  border-bottom: 1px solid var(--b-border);
}
.behindy-legal-content { padding: 60px 0 90px; }
.behindy-legal-body {
  color: var(--b-text-300);
  font-size: 15.5px;
  line-height: 1.75;
}
.behindy-legal-body h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 0; margin-bottom: 24px; }
.behindy-legal-body h2 { color: #fff; font-size: 1.6rem; margin-top: 40px; margin-bottom: 14px; }
.behindy-legal-body h3 { color: #fff; font-size: 1.25rem; margin-top: 28px; margin-bottom: 10px; }
.behindy-legal-body p  { margin-bottom: 16px; }
.behindy-legal-body ul,
.behindy-legal-body ol { padding-left: 22px; margin-bottom: 16px; }
.behindy-legal-body li { margin-bottom: 6px; }
.behindy-legal-body a  { color: var(--b-green); text-decoration: underline; }
.behindy-legal-body strong { color: #fff; font-weight: 600; }
.behindy-legal-body table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  border: 1px solid var(--b-border); border-radius: 10px; overflow: hidden;
}
.behindy-legal-body th,
.behindy-legal-body td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--b-border);
  text-align: left;
  vertical-align: top;
}
.behindy-legal-body th { background: rgba(255,255,255,0.03); color: #fff; }
.behindy-legal-body tr:last-child td { border-bottom: 0; }

/* --- Util ------------------------------------------------ */
.behindy-cta-card { text-align: center; }
#preloader { display: none; } /* disabilitato: niente preloader */

/* reCAPTCHA v3: nascondi badge (conforme alle linee guida Google
   perché mostriamo il disclaimer testuale nel form) */
.grecaptcha-badge { visibility: hidden !important; opacity: 0 !important; }

.behindy-recaptcha-notice {
  font-size: 11px;
  color: var(--b-text-400);
  line-height: 1.5;
  margin-top: 14px;
}
.behindy-recaptcha-notice a {
  color: var(--b-text-300);
  text-decoration: underline;
}
.behindy-recaptcha-notice a:hover { color: var(--b-green); }

/* =========================================================
   PAGINE DEDICATE (about, services, case studies, contact...)
   ========================================================= */

.behindy-page-hero {
  padding: 170px 0 80px;
  position: relative;
  overflow: hidden;
}
.behindy-page-hero > .container { position: relative; z-index: 1; }
@media (max-width: 767px) { .behindy-page-hero { padding: 130px 0 60px; } }

.bg-dark-soft { background: #080808; border-top: 1px solid var(--b-border); border-bottom: 1px solid var(--b-border); }

/* Navbar link attivo */
.behindy-nav-links a.active { color: var(--b-green); }
.behindy-nav-links a.active::after { width: 20px; background: var(--b-green); }

/* Service card: CTA footer */
.behindy-service-card .behindy-service-cta {
  margin-top: auto;
  padding-top: 12px;
  color: var(--b-green);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
a.behindy-service-card:hover .behindy-service-cta { gap: 10px; }

/* Breadcrumb semplice */
.behindy-breadcrumb {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}
.behindy-breadcrumb a {
  color: var(--b-green);
  text-decoration: none;
}
.behindy-breadcrumb a:hover { text-decoration: underline; }

.behindy-icon-large {
  width: 72px !important;
  height: 72px !important;
  font-size: 36px !important;
}

/* Check list */
.behindy-check-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.behindy-check-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--b-border);
  border-radius: 12px;
  color: rgba(255,255,255,0.9);
  font-size: 15px;
}
.behindy-check-list li i {
  color: var(--b-green);
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Tag grande per stack */
.behindy-tag-lg {
  padding: 10px 18px !important;
  font-size: 14px !important;
  font-weight: 500;
}

/* Case Study cards */
.behindy-case-card {
  background: var(--b-bg-soft);
  border: 1px solid var(--b-border);
  border-radius: 18px;
  padding: 28px;
  height: 100%;
  transition: all .25s;
  display: flex; flex-direction: column;
}
.behindy-case-card:hover {
  border-color: var(--b-border-hover);
  transform: translateY(-3px);
}
.behindy-case-header {
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 18px;
}
.behindy-case-icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(var(--b-green-rgb), 0.12);
  color: var(--b-green);
  border-radius: 12px;
  font-size: 24px;
  flex-shrink: 0;
}
.behindy-case-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  background: rgba(var(--b-green-rgb), 0.14);
  color: var(--b-green);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 4px;
}
.behindy-case-client {
  font-size: 13px;
  color: var(--b-text-400);
}
.behindy-case-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.3;
}
.behindy-case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--b-border);
  border-bottom: 1px solid var(--b-border);
  margin: 18px 0;
  font-size: 13px;
  color: var(--b-text-300);
}
.behindy-case-meta strong { color: #fff; }
.behindy-case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: auto;
}
.behindy-case-result {
  text-align: center;
  padding: 14px 8px;
  background: rgba(var(--b-green-rgb), 0.06);
  border: 1px solid rgba(var(--b-green-rgb), 0.2);
  border-radius: 10px;
}
.behindy-case-metric {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--b-green);
  line-height: 1;
}
.behindy-case-metric-label {
  font-size: 11px;
  color: var(--b-text-400);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Contact page cards */
.behindy-contact-card {
  background: var(--b-bg-soft);
  border: 1px solid var(--b-border);
  border-radius: 18px;
  padding: 36px;
  text-align: center;
  height: 100%;
  transition: all .25s;
}
.behindy-contact-card:hover {
  border-color: var(--b-border-hover);
  transform: translateY(-3px);
}
.behindy-contact-icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(var(--b-green-rgb), 0.12);
  color: var(--b-green);
  border-radius: 18px;
  font-size: 30px;
  margin-bottom: 18px;
}
.behindy-contact-value {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s;
  word-break: break-word;
}
.behindy-contact-value:hover { color: var(--b-green); }

.behindy-office-card {
  background: var(--b-bg-soft);
  border: 1px solid var(--b-border);
  border-radius: 18px;
  padding: 28px;
  height: 100%;
  transition: all .25s;
}
.behindy-office-card:hover { border-color: var(--b-border-hover); }
.behindy-office-flag-lg {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 12px;
}
.behindy-office-name {
  color: var(--b-green);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.behindy-office-card address {
  font-style: normal;
  color: var(--b-text-300);
  font-size: 15px;
  line-height: 1.6;
}

.behindy-contact-form-box {
  background: var(--b-bg-soft);
  border: 1px solid var(--b-border);
  border-radius: 20px;
  padding: 48px;
}
@media (max-width: 767px) { .behindy-contact-form-box { padding: 32px 24px; } }
.behindy-contact-features {
  padding-top: 32px;
  border-top: 1px solid var(--b-border);
}

.text-green { color: var(--b-green) !important; }

/* Footer nav col */
.behindy-footer-links-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.behindy-footer-links-list a {
  color: var(--b-text-300);
  text-decoration: none;
  font-size: 14.5px;
  transition: color .2s;
}
.behindy-footer-links-list a:hover { color: var(--b-green); }

/* Footer grid: 4 colonne (brand + nav + contatti + sedi) */
.behindy-footer-grid {
  grid-template-columns: 1.6fr 0.8fr 1fr 1fr !important;
}
@media (max-width: 991px) {
  .behindy-footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 575px) {
  .behindy-footer-grid { grid-template-columns: 1fr !important; }
}
