/* ============================================================
   kairos.css – Sistema di stili condiviso per tutti i template
   Mobile-first | Breakpoints: 640px / 960px / 1160px
   ============================================================ */

/* ─── VARIABILI ──────────────────────────────────────────────── */
:root {
  --k-blue:       #2563EB;
  --k-blue-dark:  #1E40AF;
  --k-blue-light: rgba(37,99,235,0.08);
  --k-dark:       #0F172A;
  --k-dark-card:  #111827;
  --k-dark-2:     #1a2235;
  --k-white:      #FFFFFF;
  --k-light:      #F8FAFC;
  --k-text:       #0F172A;
  --k-muted:      #64748B;
  --k-muted-dark: #94A3B8;
  --k-green:      #22C55E;
  --k-amber:      #F59E0B;
  --k-border:     rgba(255,255,255,0.08);
  --k-border-l:   #E2E8F0;
  --k-r:          12px;
  --k-r-lg:       20px;
  --k-shadow:     0 4px 24px rgba(0,0,0,0.08);
  --k-shadow-up:  0 -4px 24px rgba(0,0,0,0.06);
  --k-shadow-b:   0 4px 32px rgba(37,99,235,0.18);
  --k-max:        1366px;
  --k-max-text:   680px;
  --k-h-font:     'Playfair Display', serif;
  --k-b-font:     'DM Sans', sans-serif;
  --k-nav-h:      64px;
  --k-trans:      0.25s ease;
}

/* Admin bar offset */
body.admin-bar .k-nav { top: 32px; }
body.admin-bar .k-nav__mobile { top: calc(var(--k-nav-h) + 32px); }
body.admin-bar .k-nav-spacer { height: calc(var(--k-nav-h) + 32px); }
body.admin-bar .k-blog-filter-bar { top: calc(var(--k-nav-h) + 32px); }
body.admin-bar .k-feature-tabs { top: calc(var(--k-nav-h) + 32px); }
@media (max-width: 782px) {
  body.admin-bar .k-nav { top: 46px; }
  body.admin-bar .k-nav__mobile { top: calc(var(--k-nav-h) + 46px); }
  body.admin-bar .k-nav-spacer { height: calc(var(--k-nav-h) + 46px); }
  body.admin-bar .k-blog-filter-bar { top: calc(var(--k-nav-h) + 46px); }
  body.admin-bar .k-feature-tabs { top: calc(var(--k-nav-h) + 46px); }
}
@media (max-width: 600px) {
  body.admin-bar .k-nav { top: 0; }
  body.admin-bar .k-nav__mobile { top: var(--k-nav-h); }
  body.admin-bar .k-nav-spacer { height: var(--k-nav-h); }
}

/* ─── RESET BASE ─────────────────────────────────────────────── */
@media (min-width: 960px) {
  :root {
    --k-nav-h: 120px;
  }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--k-nav-h) + 32px);
}
.k-scroll-margin {
  scroll-margin-top: calc(var(--k-nav-h) + 100px);
}


/* Override Flatsome body font */
body.kairos-page {
  font-family: var(--k-b-font) !important;
  color: var(--k-text) !important;
  background: var(--k-white) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Nascondi header/footer Flatsome nelle pagine Kairos */
body.kairos-page #header,
body.kairos-page .header-wrapper,
body.kairos-page #footer,
body.kairos-page .footer-wrapper,
body.kairos-page #main > .row:first-child > .large-12:empty {
  display: none !important;
}

/* ─── TIPOGRAFIA GLOBALE ─────────────────────────────────────── */
.k-h1, .k-h2, .k-h3, .k-h4 {
  font-family: var(--k-h-font);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 400 !important;
}
.k-h1 { font-size: clamp(2rem, 5vw, 3.25rem) !important; font-weight: 500 !important; letter-spacing: -0.03em; }
.k-h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem) !important; }
.k-h3 { font-size: clamp(1.15rem, 2vw, 1.5rem) !important; }
.k-h4 { font-size: 1.1rem !important; }
.k-lead { font-size: clamp(1rem, 1.8vw, 1.2rem) !important; line-height: 1.7; color: var(--k-text) !important; opacity: 0.7; }
.k-body { font-size: 1rem !important; line-height: 1.7; }

/* ─── LAYOUT ─────────────────────────────────────────────────── */
.k-wrap  { max-width: var(--k-max); margin: 0 auto; padding: 0 20px; }
.k-wrap--text { max-width: var(--k-max-text); margin: 0 auto; padding: 0 20px; }
.k-section { padding: 72px 0; }
.k-section--sm { padding: 48px 0; }
.k-section--lg { padding: 96px 0; }
.k-section--muted { background: var(--k-light) !important; }

@media (min-width: 640px) {
  .k-wrap { padding: 0 32px; }
  .k-section { padding: 80px 0; }
  .k-section--lg { padding: 108px 0; }
}
@media (min-width: 960px) {
  .k-wrap { padding: 0 40px; }
  .k-section { padding: 96px 0; }
  .k-section--lg { padding: 120px 0; }
}

/* ─── COLORI SEZIONE ────────────────────────────────────────── */
.k-bg-dark  { background: var(--k-dark) !important; color: var(--k-white) !important; }
.k-bg-dark .k-lead, .k-bg-dark p { color: var(--k-muted-dark) !important; }
.k-bg-card  { background: var(--k-dark-card) !important; }
.k-bg-light { background: var(--k-light) !important; }
.k-bg-white { background: var(--k-white) !important; }
section.k-cta-section.k-bg-white { background: var(--k-white) !important; }

/* Share Buttons Mobile Hide Text */
@media (max-width: 639px) {
  .k-share-text { display: none; }
  .k-share-link { gap: 0 !important; justify-content: center; padding: 10px 14px !important; }
}

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.k-nav {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--k-nav-h);
  background: rgba(12,18,32,0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--k-border);
  transition: background var(--k-trans);
}
.k-nav.k-nav--light {
  background: rgba(255,255,255,0.95) !important;
  border-bottom: 1px solid var(--k-border-l);
}
.k-nav__inner {
  max-width: none;
  margin: 0;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.k-nav__inner > * { flex-shrink: 0; }

@media (max-width: 959px) {
  .k-nav__inner {
    justify-content: center;
    position: relative;
  }
  .k-nav__hamburger {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ─── DROPDOWN NAV ──────────────────────────────────────────── */
.k-nav__item--dropdown { position: relative; }
.k-nav__dropdown-toggle {
  display: flex; align-items: center; gap: 4px;
  cursor: pointer;
}
.k-nav__dropdown-toggle svg { transition: transform var(--k-trans); }
.k-nav__item--dropdown:hover .k-nav__dropdown-toggle svg { transform: rotate(180deg); }
.k-nav__dropdown {
  display: none;
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 10px; /* bridge gap between toggle and panel */
  background: transparent;
  z-index: 200;
}
.k-nav__dropdown-panel {
  background: var(--k-dark-card);
  border: 1px solid var(--k-border);
  border-radius: var(--k-r);
  padding: 8px;
  min-width: 220px;
  list-style: none;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.k-nav__item--dropdown:hover .k-nav__dropdown { display: block; }
.k-nav__dropdown li a {
  display: block;
  padding: 10px 14px;
  font-size: 0.9rem !important; font-weight: 500 !important;
  color: rgba(255,255,255,0.8) !important;
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--k-trans), color var(--k-trans);
}
.k-nav__dropdown li a:hover { background: var(--k-blue-light) !important; color: var(--k-white) !important; }
.k-nav__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--k-h-font);
  font-weight: 700 !important;
  font-size: 28px !important;
  color: var(--k-white) !important;
  flex-shrink: 0;
}
@media (max-width: 959px) {
  .k-nav__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-content: center;
  }
  .k-nav__logo > svg {
    position: absolute;
    right: 100%;
    margin-right: 10px;
  }
}
@media (min-width: 960px) {
  .k-nav__logo { font-size: 32px !important; }
}
.filo-studio {
  font-family: var(--k-b-font) !important;
  font-weight: 400 !important;
}
.k-nav.k-nav--light .k-nav__logo { color: var(--k-text) !important; }
.k-nav__menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
  align-items: center;
}
.k-nav__menu a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none;
  border-radius: 8px;
  transition: color var(--k-trans), background var(--k-trans);
}
@media (min-width: 960px) {
  .k-nav__menu a {
    font-size: 1rem !important;
    padding: 10px 16px;
  }
}
.k-nav.k-nav--light .k-nav__menu a { color: var(--k-text) !important; opacity: 0.75; }
.k-nav__menu a:hover { color: var(--k-white) !important; background: rgba(255,255,255,0.06) !important; }
.k-nav.k-nav--light .k-nav__menu a:hover { color: var(--k-text) !important; background: var(--k-light) !important; }
.k-nav__actions { display: flex; align-items: center; gap: 8px; }
/* CTA hidden on mobile */
@media (max-width: 959px) { .k-nav__actions { display: none !important; } }
.k-nav__hamburger {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none !important; border: none; cursor: pointer; padding: 4px; margin: 0;
  width: 32px; height: 32px;
}
.k-nav__hamburger span {
  display: block; width: 100%; height: 2px; background: var(--k-white) !important;
  border-radius: 2px; transition: var(--k-trans);
}
.k-nav.k-nav--light .k-nav__hamburger span { background: var(--k-text) !important; }
.k-nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.k-nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.k-nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.k-nav__mobile {
  position: fixed; top: var(--k-nav-h); left: 0; right: 0; bottom: 0;
  background: var(--k-dark) !important;
  display: flex; flex-direction: column; align-items: stretch;
  padding: 16px 20px 32px;
  gap: 2px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 999;
  overflow-y: auto;
}
.k-nav__mobile.is-open { transform: translateX(0); }

/* Direct links */
.k-nav__mobile > a {
  display: block; padding: 15px 16px;
  font-size: 1.05rem !important; font-weight: 600 !important; font-family: var(--k-h-font);
  color: var(--k-white) !important; text-decoration: none;
  border-radius: var(--k-r);
  transition: background var(--k-trans);
  text-align: center;
}
.k-nav__mobile > a:hover { background: rgba(255,255,255,0.05) !important; }

/* Accordion block */

.k-nav__mobile-accordion-head {
  position: relative; display: flex; align-items: stretch;
}
.k-nav__mobile-accordion-label {
  flex: 1; display: block; padding: 15px 16px;
  font-size: 1.05rem !important; font-weight: 600 !important; font-family: var(--k-h-font);
  color: var(--k-white) !important; text-decoration: none; text-align: center;
  transition: background var(--k-trans); border-radius: var(--k-r);
}
.k-nav__mobile-accordion-label:hover { background: rgba(255,255,255,0.05) !important; }

.k-nav__mobile-accordion-toggle {
  position: absolute; right: 0; top: 0; bottom: 0; width: 56px;
  display: flex; align-items: center; justify-content: center;
  background: none !important; border: none; cursor: pointer; margin: 0; padding: 0;
  color: rgba(255,255,255,0.6) !important; transition: color var(--k-trans);
  z-index: 2;
}
.k-nav__mobile-accordion-toggle:hover { color: var(--k-white) !important; }
.k-nav__mobile-accordion-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.k-nav__mobile-accordion-toggle[aria-expanded="true"] .k-nav__mobile-accordion-icon {
  transform: rotate(180deg);
}
.k-nav__mobile-accordion-panel {
  display: none; flex-direction: column; gap: 2px;
  padding: 4px 0 12px;
}
.k-nav__mobile-accordion-panel.is-open {
  display: flex;
}
.k-nav__mobile-accordion-panel a {
  display: block; padding: 11px 24px;
  font-size: 0.95rem !important; font-weight: 500 !important; font-family: var(--k-h-font);
  color: rgba(255,255,255,0.65) !important; text-decoration: none;
  border-radius: 8px; text-align: center;
  transition: background var(--k-trans), color var(--k-trans);
}
.k-nav__mobile-accordion-panel a:hover { background: rgba(255,255,255,0.06) !important; color: var(--k-white) !important; }

/* Mobile CTA in menu */
.k-nav__mobile-cta {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--k-border);
  width: 100%;
}

@media (min-width: 960px) {
  .k-nav__menu { display: flex; }
  .k-nav__hamburger { display: none; }
  .k-nav__inner { padding: 0 32px; }
}

/* Spacer per compensare navbar fixed */
.k-nav-spacer { height: var(--k-nav-h); }

/* ─── BOTTONI ─────────────────────────────────────────────────── */
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px;
  font-family: var(--k-b-font);
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--k-trans), box-shadow var(--k-trans), background var(--k-trans), opacity var(--k-trans);
  white-space: nowrap;
  user-select: none;
}
.k-btn:active { transform: scale(0.97); }
.k-btn--primary {
  background: var(--k-blue) !important;
  color: var(--k-white) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2), 0 4px 16px rgba(38,100,235,0.3);
}
.k-btn--primary:hover {
  background: var(--k-blue-dark) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25), 0 8px 24px rgba(38,100,235,0.4);
  transform: translateY(-1px);
}
.k-btn--ghost {
  background: transparent !important;
  color: var(--k-white) !important;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.k-btn--ghost:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.6) !important;
  transform: translateY(-1px);
}
.k-btn--ghost-dark {
  background: transparent !important;
  color: var(--k-text) !important;
  border: 1.5px solid var(--k-border-l);
}
.k-btn--ghost-dark:hover {
  border-color: var(--k-blue) !important;
  color: var(--k-blue) !important;
}
.k-btn--sm { padding: 9px 18px; font-size: 0.875rem !important; }
.k-btn--lg { padding: 16px 32px; font-size: 1.05rem !important; }
.k-btn--full { width: 100%; }

/* CTA section ghost button fix for light background */
.k-cta-section .k-btn--ghost {
  color: var(--k-text) !important;
  border-color: var(--k-border-l) !important;
}
.k-cta-section .k-btn--ghost:hover {
  border-color: var(--k-blue) !important;
  color: var(--k-blue) !important;
  background: transparent !important;
}

@media (max-width: 639px) {
  .k-btn { width: 100% !important; }
}

/* ─── BADGE / EYEBROW ───────────────────────────────────────── */
.k-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem !important; font-weight: 600 !important; letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--k-blue) !important;
  background: rgba(38,100,235,0.1) !important;
  border: 1px solid rgba(38,100,235,0.2);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 20px;
}
.k-eyebrow--center {
  margin-left: auto;
  margin-right: auto;
}
.k-eyebrow__dot {
  width: 7px; height: 7px;
  background: var(--k-green) !important;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* ─── CARD ────────────────────────────────────────────────────── */
.k-card {
  background: var(--k-white) !important;
  border: 1px solid var(--k-border-l);
  border-radius: var(--k-r-lg);
  padding: 28px;
  transition: border-color var(--k-trans), box-shadow var(--k-trans), transform var(--k-trans);
}
.k-card:hover {
  border-color: var(--k-blue) !important;
  box-shadow: var(--k-shadow-b);
  transform: translateY(-2px);
}
.k-card--dark {
  background: var(--k-dark-card) !important;
  border-color: var(--k-border) !important;
  color: var(--k-white) !important;
}
.k-card--dark:hover {
  border-color: rgba(38,100,235,0.4) !important;
  box-shadow: 0 4px 32px rgba(38,100,235,0.12);
}
.k-card--glass {
  background: rgba(255,255,255,0.04) !important;
  border-color: var(--k-border) !important;
  backdrop-filter: blur(8px);
}

/* ─── GRIGLIE ─────────────────────────────────────────────────── */
.k-grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.k-grid-3 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.k-grid-4 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) {
  .k-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .k-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .k-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .k-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1160px) {
  .k-grid-2 { gap: 32px; }
  .k-grid-3 { gap: 28px; }
  .k-grid-4 { gap: 24px; }
}

/* Griglia 2 colonne con testo/immagine alternati */
.k-feature-row {
  display: flex; flex-direction: column; gap: 20px;
  align-items: center;
}
.k-feature-row__text { flex: 0 0 100%; }
.k-feature-row__visual {
  flex: 0 0 100%;
  border-radius: var(--k-r-lg);
  overflow: hidden;
}
@media (min-width: 960px) {
  .k-feature-row { flex-direction: row; gap: 64px; }
  .k-feature-row__text { flex: 0 0 44%; }
  .k-feature-row__visual { flex: 0 0 48%; }
  .k-feature-row--reverse { flex-direction: row-reverse; }
}

/* ─── HERO ────────────────────────────────────────────────────── */
.k-hero {
  background: var(--k-dark) !important;
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: calc(var(--k-nav-h) + 48px) 0 64px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 639px) {
  .k-hero { padding: calc(var(--k-nav-h) + 32px) 0 48px; }
}
.k-hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(38,100,235,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(38,100,235,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.k-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
}
.k-hero__glow::before {
  content: '';
  position: absolute;
  bottom: -20%; right: -10%;
  width: 60%; height: 60%;
  background: radial-gradient(ellipse, rgba(38,100,235,0.1) 0%, transparent 70%) !important;
  border-radius: 50%;
}
.k-hero__glow::after {
  content: '';
  position: absolute;
  top: -10%; left: -5%;
  width: 40%; height: 40%;
  background: radial-gradient(ellipse, rgba(38,100,235,0.06) 0%, transparent 70%) !important;
  border-radius: 50%;
}
.k-hero__inner {
  position: relative; z-index: 1;
}
.k-hero__cols {
  display: flex; flex-direction: column; gap: 48px; align-items: center;
}
.k-hero__text { flex: 0 0 100%; text-align: center; }
.k-hero__visual { flex: 0 0 100%; width: 100%; }
.k-hero h1 { color: var(--k-white) !important; margin-bottom: 20px; }
.k-hero .k-lead { color: rgba(255,255,255,0.7) !important; margin-bottom: 32px; }
.k-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 32px; }
.k-social-proof {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem !important; color: rgba(255,255,255,0.55) !important;
}
.k-avatars {
  display: flex; align-items: center;
}
.k-avatars .k-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 0.65rem !important; font-weight: 700 !important;
  display: flex; align-items: center; justify-content: center;
  color: var(--k-white) !important;
  border: 2px solid var(--k-dark);
  margin-right: -8px;
}
@media (min-width: 960px) {
  .k-hero__cols { flex-direction: row; gap: 64px; align-items: center; }
  .k-hero__text { flex: 0 0 52%; text-align: left; }
  .k-hero__visual { flex: 0 0 42%; }
  .k-hero__ctas { justify-content: flex-start; }
  .k-social-proof { justify-content: flex-start; }
}

/* ─── APP MOCKUP (hero screenshot placeholder) ──────────────── */
.k-mockup {
  background: var(--k-dark-card) !important;
  border: 1px solid var(--k-border);
  border-radius: var(--k-r-lg);
  overflow: hidden;
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
}
.k-mockup__bar {
  background: var(--k-dark-2) !important;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--k-border);
}
.k-mockup__dot { width: 10px; height: 10px; border-radius: 50%; }
.k-mockup__body { padding: 20px; }
.k-mockup__row {
  display: flex; gap: 12px; margin-bottom: 10px; align-items: center;
}
.k-mockup__cell {
  flex: 1; height: 12px; background: rgba(255,255,255,0.06) !important;
  border-radius: 4px;
}
.k-mockup__cell--sm { flex: 0 0 60px; }
.k-mockup__cell--md { flex: 0 0 100px; }
.k-mockup__cell--accent { background: rgba(38,100,235,0.25) !important; }
.k-mockup__cell--green  { background: rgba(34,197,94,0.2) !important; flex: 0 0 80px; }
.k-mockup__cell--amber  { background: rgba(245,158,11,0.2) !important; flex: 0 0 80px; }
.k-mockup__header-row {
  display: flex; gap: 12px; padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--k-border);
}
.k-mockup__header-cell {
  flex: 1; height: 8px; background: rgba(255,255,255,0.2) !important;
  border-radius: 3px;
}
.k-mockup__kpi {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
  margin-bottom: 16px;
}
.k-mockup__kpi-card {
  background: rgba(255,255,255,0.03) !important;
  border: 1px solid var(--k-border);
  border-radius: 8px; padding: 12px;
}
.k-mockup__kpi-val {
  height: 16px; width: 60%; background: rgba(38,100,235,0.3) !important;
  border-radius: 3px; margin-bottom: 6px;
}
.k-mockup__kpi-lbl {
  height: 8px; width: 80%; background: rgba(255,255,255,0.08) !important;
  border-radius: 3px;
}

/* ─── SEZIONE PROBLEMA ──────────────────────────────────────── */
.k-problem { text-align: center; }
.k-problem h2 { margin: 0 auto 24px; }
.k-problem p  { margin: 0 auto 16px; color: var(--k-text) !important; opacity: 0.7; line-height: 1.8; }

/* ─── PILASTRI ───────────────────────────────────────────────── */
.k-pillar__icon {
  width: 44px; height: 44px;
  background: var(--k-blue-light) !important;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: background var(--k-trans);
}
.k-pillar__icon svg { color: var(--k-blue) !important; }
.k-card:hover .k-pillar__icon { background: rgba(38,100,235,0.15) !important; }
.k-pillar__title { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 1rem !important; margin-bottom: 8px; }
.k-pillar__desc  { font-size: 0.9rem !important; color: var(--k-text) !important; opacity: 0.7; line-height: 1.6; }

/* ─── SEZIONI FEATURE ALTERNATI ─────────────────────────────── */
.k-feature__eyebrow { color: var(--k-blue) !important; font-size: 0.8rem !important; font-weight: 700 !important; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px; }
.k-feature__title { margin-bottom: 16px; }
.k-feature__body { color: var(--k-text) !important; opacity: 0.75; line-height: 1.8; margin-bottom: 20px; }
.k-feature__note {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(38,100,235,0.06) !important; border: 1px solid rgba(38,100,235,0.15);
  border-radius: var(--k-r); padding: 14px 16px;
  font-size: 0.85rem !important; color: var(--k-text) !important; opacity: 0.75; margin-top: 16px;
}
.k-feature__note svg { flex-shrink: 0; color: var(--k-blue) !important; margin-top: 1px; }
.k-feature__link { font-weight: 600 !important; color: var(--k-blue) !important; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: gap var(--k-trans); }
.k-feature__link:hover { gap: 10px; }

/* ─── CAROSELLO TESTIMONIANZE ───────────────────────────────── */
.k-carousel-outer { overflow: hidden; }
.k-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.k-carousel-item {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}
@media (min-width: 640px) { .k-carousel-item { flex: 0 0 calc(50% - 10px); } }
@media (min-width: 960px) { .k-carousel-item { flex: 0 0 calc(33.333% - 14px); } }

.k-testimonial-card {
  background: var(--k-white) !important;
  border: 1px solid var(--k-border-l);
  border-radius: var(--k-r-lg); padding: 28px;
  height: 100%;
}
.k-bg-dark .k-testimonial-card {
  background: rgba(255,255,255,0.04) !important;
  border-color: var(--k-border) !important;
}
.k-testimonial-card__quote {
  font-size: 0.95rem !important; line-height: 1.7; font-style: italic;
  color: var(--k-text) !important; margin-bottom: 20px;
}
.k-bg-dark .k-testimonial-card__quote { color: rgba(255,255,255,0.85) !important; }
.k-testimonial-card__author { display: flex; align-items: center; gap: 14px; }
.k-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem !important; font-weight: 700 !important; color: var(--k-white) !important;
  flex-shrink: 0;
}
.k-testimonial-card__name  { font-weight: 600 !important; font-size: 0.9rem !important; }
.k-testimonial-card__role  { font-size: 0.8rem !important; color: var(--k-text) !important; opacity: 0.7; }
.k-bg-dark .k-testimonial-card__role { color: var(--k-muted-dark) !important; }

.k-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
  padding: 0 12px;
}

.k-carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--k-blue) !important;
  border: none;
  color: var(--k-white) !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--k-trans), box-shadow var(--k-trans);
  box-shadow: 0 4px 12px rgba(38,100,235,0.3);
  flex-shrink: 0;
}

.k-carousel-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(38,100,235,0.4);
}

.k-carousel-btn:active {
  transform: translateY(0);
}

/* Mobile carousel controls spacing */
@media (max-width: 639px) {
  .k-carousel-controls {
    margin-top: 24px;
    gap: 10px;
  }

  .k-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* ─── SEZIONE SICUREZZA ─────────────────────────────────────── */
.k-trust-col { text-align: center; }
.k-trust-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(38,100,235,0.12) !important; border: 1px solid rgba(38,100,235,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--k-blue) !important;
}
.k-trust-title { font-family: var(--k-h-font); font-size: 1.05rem !important; font-weight: 700 !important; color: var(--k-dark) !important; margin-bottom: 10px; }
.k-trust-desc  { font-size: 0.9rem !important; color: var(--k-muted-dark) !important; line-height: 1.6; }

/* ─── CTA FINALE ────────────────────────────────────────────── */
.k-cta-section {
  text-align: center;
  background: var(--k-light) !important;
  padding: 96px 0;
  position: relative; overflow: hidden;
}
.k-cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(38,100,235,0.05) 0%, transparent 70%) !important;
  pointer-events: none;
}
.k-cta-section h2 { color: var(--k-text) !important; margin-bottom: 16px; }
.k-cta-section p { color: var(--k-muted) !important; margin-bottom: 32px; font-size: 1.05rem !important; }
.k-cta-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Note accessibility inside dark sections */
.k-bg-dark .k-feature__note,
.k-card--dark .k-feature__note,
.k-hero .k-feature__note {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ─── FOOTER ────────────────────────────────────────────────── */
/* Footer full-width inner wrapper */
.k-footer__inner {
  max-width: none;
  padding: 0 40px;
}
@media (min-width: 960px) {
  .k-footer__inner { padding: 0 60px; }
}

.k-footer {
  background: var(--k-dark) !important;
  border-top: 1px solid var(--k-border);
  padding: 56px 0 32px;
  color: rgba(255,255,255,0.55) !important;
}
.k-footer__top {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  margin-bottom: 48px;
}
.k-footer__logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--k-h-font); font-weight: 700 !important; font-size: 28px !important;
  color: var(--k-white) !important; text-decoration: none;
  margin-bottom: 16px; width: fit-content;
}
.k-footer__brand p { font-size: 0.875rem !important; line-height: 1.6; color: rgba(255,255,255,0.45) !important; }
.k-footer__social { display: flex; gap: 12px; margin-top: 16px; }
@media (max-width: 639px) { .k-footer__social { justify-content: center; } }
.k-footer__social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.5) !important; transition: all var(--k-trans); }
.k-footer__social a:hover { color: var(--k-white) !important; border-color: var(--k-blue) !important; background: rgba(38,100,235,0.1); }
.k-social-links { display: flex; gap: 10px; margin-top: 14px; }
.k-social-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1.5px solid var(--k-border-l); border-radius: 6px; font-size: 13px !important; font-weight: 600 !important; color: var(--k-muted) !important; text-decoration: none; transition: all var(--k-trans); }
.k-social-link:hover { border-color: var(--k-blue) !important; color: var(--k-blue) !important; }
.k-footer__col h4 { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 0.875rem !important; color: rgba(255,255,255,0.8) !important; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.k-footer__col a  { display: block; font-size: 0.875rem !important; color: rgba(255,255,255,0.5) !important; text-decoration: none; margin-bottom: 10px; transition: color var(--k-trans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-footer__col a:hover { color: var(--k-white) !important; }
.k-footer__bottom {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 32px;
  border-top: 1px solid var(--k-border);
  font-size: 0.8rem !important;
}
.k-footer__bottom-links { display: flex; flex-wrap: wrap; gap: 16px; }
.k-footer__bottom-links a { color: rgba(255,255,255,0.4) !important; text-decoration: none; transition: color var(--k-trans); }
.k-footer__bottom-links a:hover { color: var(--k-white) !important; }
.k-footer__badge { color: rgba(255,255,255,0.3) !important; }

@media (min-width: 640px) { .k-footer__top { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) {
  .k-footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .k-footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ─── SCROLL ANIMATIONS ─────────────────────────────────────── */
.k-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.k-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.k-reveal--delay-1 { transition-delay: 0.1s; }
.k-reveal--delay-2 { transition-delay: 0.2s; }
.k-reveal--delay-3 { transition-delay: 0.3s; }
.k-reveal--delay-4 { transition-delay: 0.4s; }
.k-reveal--left {
  transform: translateX(-28px);
}
.k-reveal--right {
  transform: translateX(28px);
}
.k-reveal--left.is-visible,
.k-reveal--right.is-visible {
  transform: translateX(0);
}

/* ─── ACCORDION FAQ ─────────────────────────────────────────── */
.k-faq { max-width: 720px; margin: 0 auto; }
.k-faq__item {
  border-bottom: 1px solid var(--k-border-l);
}
.k-bg-dark .k-faq__item { border-color: var(--k-border) !important; }
.k-faq__trigger {
  width: 100%; background: none !important; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 20px 0;
  font-family: var(--k-b-font); font-weight: 600 !important; font-size: 1.05rem !important;
  color: var(--k-text) !important; text-align: left;
  transition: color var(--k-trans);
}
.k-bg-dark .k-faq__trigger { color: var(--k-white) !important; }
.k-faq__trigger:hover { color: var(--k-blue) !important; }
.k-faq__icon {
  flex-shrink: 0; width: 22px; height: 22px;
  background: rgba(38,100,235,0.1) !important; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--k-trans), background var(--k-trans);
}
.k-faq__item.is-open .k-faq__icon { transform: rotate(45deg); background: rgba(38,100,235,0.2) !important; }
.k-faq__body { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.k-faq__body-inner { padding-bottom: 20px; font-size: 0.95rem !important; color: var(--k-text) !important; opacity: 0.75; line-height: 1.75; }
.k-bg-dark .k-faq__body-inner { color: var(--k-muted-dark) !important; }

/* ─── PRICING CARDS ─────────────────────────────────────────── */
.k-pricing-grid {
  display: flex; flex-direction: column; gap: 20px;
}
/* Carousel mobile */
.k-pricing-scroll {
  overflow-y: visible; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-top: 40px; margin-top: -40px; padding-bottom: 24px; margin-bottom: -8px;
  margin-left: -20px; padding-left: 20px; margin-right: -20px; padding-right: 20px;
}
.k-pricing-scroll::-webkit-scrollbar { display: none; }
.k-pricing-scroll .k-pricing-inner {
  display: flex; gap: 16px;
  width: max-content;
}
.k-pricing-scroll .k-pricing-card { scroll-snap-align: start; width: 300px; flex-shrink: 0; }

@media (min-width: 640px) {
  .k-pricing-grid { flex-direction: row; flex-wrap: wrap; }
  .k-pricing-grid .k-pricing-card { flex: 1 1 calc(50% - 10px); }
}
@media (min-width: 1060px) {
  .k-pricing-grid { flex-wrap: nowrap; align-items: stretch; }
  .k-pricing-grid .k-pricing-card { flex: 1; align-self: auto; }
}

/* ─── PRICING TEASER (Pillar pages) - 4 colonne desktop, carosello mobile ─── */
.k-pricing-teaser-grid {
  overflow-y: visible; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-top: 16px; margin-top: -16px; padding-bottom: 24px; margin-bottom: -8px;
  margin-left: -20px; padding-left: 20px; margin-right: -20px; padding-right: 20px;
  display: flex; gap: 16px; width: max-content;
}
.k-pricing-teaser-grid::-webkit-scrollbar { display: none; }
.k-pricing-teaser-grid .k-pricing-card { scroll-snap-align: start; width: 300px; flex-shrink: 0; }

@media (min-width: 640px) {
  .k-pricing-teaser-grid { padding-left: 32px; padding-right: 32px; margin: 0 -32px; }
  .k-pricing-teaser-grid .k-pricing-card { width: 320px; }
}

@media (min-width: 960px) {
  .k-pricing-teaser-grid {
    overflow-x: visible; scroll-snap-type: none;
    padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    width: auto;
  }
  .k-pricing-teaser-grid .k-pricing-card { scroll-snap-align: auto; width: auto; flex-shrink: 1; }
}

.k-pricing-card {
  background: var(--k-white) !important;
  border: 1.5px solid var(--k-border-l);
  border-radius: var(--k-r-lg); padding: 28px;
  display: flex; flex-direction: column; height: 100%; box-sizing: border-box;
  position: relative;
  transition: box-shadow var(--k-trans), transform var(--k-trans), border-color var(--k-trans);
}

.k-pricing-card:hover { transform: translateY(-4px); box-shadow: var(--k-shadow); }
.k-pricing-card--featured {
  border-color: var(--k-blue) !important;
  box-shadow: var(--k-shadow-b);
}
.k-pricing-card--featured:hover { transform: translateY(-6px); box-shadow: 0 8px 40px rgba(38,100,235,0.25); }
.k-pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--k-blue) !important; color: var(--k-white) !important;
  font-size: 0.75rem !important; font-weight: 700 !important; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 100px;
  white-space: nowrap;
}
.k-pricing-tag { font-size: 0.75rem !important; font-weight: 700 !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--k-text) !important; opacity: 0.65; margin-bottom: 8px; }
.k-pricing-price {
  font-family: var(--k-p-font); font-style: italic;
  font-size: 2.8rem !important; line-height: 1; color: var(--k-text) !important;
  margin-bottom: 4px; display: flex; align-items: flex-end; gap: 6px;
}
.k-pricing-price sup { font-size: 1.2rem !important; font-style: normal; font-family: var(--k-b-font); font-weight: 500 !important; margin-bottom: 8px; color: var(--k-text) !important; opacity: 0.7; }
.k-pricing-price span.per { font-family: var(--k-b-font); font-style: normal; font-size: 0.9rem !important; font-weight: 400 !important; color: var(--k-text) !important; opacity: 0.7; margin-bottom: 6px; }
.k-pricing-vp { font-size: 0.875rem !important; line-height: 1.5; color: var(--k-text) !important; opacity: 0.75; font-style: italic; margin-bottom: 20px; }
.k-pricing-unlock {
  background: rgba(38,100,235,0.06) !important; border: 1px solid rgba(38,100,235,0.12);
  border-radius: var(--k-r); padding: 14px; margin-bottom: 20px;
}
.k-pricing-unlock__title { font-size: 0.75rem !important; font-weight: 700 !important; letter-spacing: 0.04em; text-transform: uppercase; color: var(--k-blue) !important; margin-bottom: 8px; }
.k-pricing-unlock ul { list-style: none; padding: 0; }
.k-pricing-unlock li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 0.85rem !important; color: var(--k-text) !important; margin-bottom: 6px; line-height: 1.4;
}
.k-pricing-unlock li::before { content: ''; width: 6px; height: 6px; background: var(--k-blue) !important; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.k-pricing-features { list-style: none; padding: 0; margin-bottom: 24px; flex: 1; }
.k-pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem !important; color: var(--k-text) !important; opacity: 0.75; margin-bottom: 10px; line-height: 1.4;
}
.k-pricing-features li svg { flex-shrink: 0; color: var(--k-green) !important; margin-top: 1px; }
.k-pricing-divider { height: 1px; background: var(--k-border-l) !important; margin-bottom: 20px; }

/* ─── TOGGLE MENSILE/ANNUALE ────────────────────────────────── */
.k-toggle-wrap {
  display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 40px;
}
.k-toggle-label { font-size: 0.9rem !important; font-weight: 500 !important; color: var(--k-text) !important; opacity: 0.4; cursor: pointer; user-select: none; transition: color var(--k-trans), opacity var(--k-trans); }
.k-toggle-label.active { color: var(--k-text) !important; opacity: 1; font-weight: 700 !important; cursor: default; }
.k-toggle-label:not(.active):hover { opacity: 0.7; text-decoration: underline; text-underline-offset: 3px; }
/* Fix toggle label visibility on dark backgrounds */
.k-bg-dark .k-toggle-label { color: rgba(255,255,255,0.5) !important; }
.k-bg-dark .k-toggle-label.active { color: #fff !important; }
.k-toggle {
  position: relative; width: 48px; height: 26px;
  background: rgba(255,255,255,0.2) !important; border-radius: 100px; cursor: pointer;
  transition: background var(--k-trans);
  flex-shrink: 0;
}
.k-toggle.is-annual { background: var(--k-blue) !important; }
.k-toggle__knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--k-white) !important; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform var(--k-trans);
}
.k-toggle.is-annual .k-toggle__knob { transform: translateX(22px); }
.k-toggle-saving { font-size: 0.75rem !important; font-weight: 700 !important; color: var(--k-green) !important; background: rgba(34,197,94,0.15) !important; padding: 3px 10px; border-radius: 100px; vertical-align: middle; margin-left: 5px; }
.k-pricing-annual-sub { font-size: 0.88rem !important; color: var(--k-text) !important; opacity: 0.55; font-weight: 500 !important; margin-left: 10px; font-family: var(--k-font) !important; white-space: nowrap; vertical-align: middle; }

/* ─── BANNER ON-PREMISE ─────────────────────────────────────── */
.k-onprem {
  background: var(--k-dark) !important;
  border: 1px solid rgba(38,100,235,0.2);
  border-radius: var(--k-r-lg);
  padding: 48px 32px;
  display: flex; flex-direction: column; gap: 40px;
}
@media (min-width: 960px) { .k-onprem { flex-direction: row; align-items: center; gap: 64px; } }
.k-onprem__title { color: var(--k-white) !important; margin-bottom: 16px; }
.k-onprem__body  { color: rgba(255,255,255,0.65) !important; line-height: 1.7; margin-bottom: 20px; font-size: 0.95rem !important; }
.k-onprem__econ {
  font-size: 0.85rem !important; color: rgba(255,255,255,0.45) !important; font-style: italic; line-height: 1.5; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.08);
}
.k-onprem__features { display: flex; flex-direction: column; gap: 12px; min-width: 260px; }
.k-onprem__feat {
  background: rgba(255,255,255,0.04) !important; border: 1px solid var(--k-border);
  border-radius: var(--k-r); padding: 14px 16px;
  font-size: 0.875rem !important; color: rgba(255,255,255,0.8) !important;
  display: flex; align-items: center; gap: 10px;
}
.k-onprem__feat svg { color: var(--k-blue) !important; flex-shrink: 0; }

/* ─── TABELLA CONFRONTO ─────────────────────────────────────── */
.k-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -20px; }
.k-table { min-width: 640px; width: 100%; border-collapse: separate; border-spacing: 0; }
.k-table th, .k-table td { padding: 14px 16px; text-align: center; font-size: 0.875rem !important; }
.k-table th { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 0.8rem !important; letter-spacing: 0.04em; text-transform: uppercase; color: var(--k-text) !important; opacity: 0.65; border-bottom: 1.5px solid var(--k-border-l); padding-bottom: 18px; }
.k-table th.k-featured-col { color: var(--k-blue) !important; background: rgba(38,100,235,0.03) !important; border-radius: 12px 12px 0 0; }
.k-table td:first-child { text-align: left; color: var(--k-text) !important; font-weight: 500 !important; }
.k-table tr:last-child td { border-bottom: none; }
.k-table td { border-bottom: 1px solid var(--k-border-l); color: var(--k-text) !important; opacity: 0.75; font-weight: 400 !important; }
.k-table td:first-child { opacity: 1; }
.k-table td.k-featured-col { background: rgba(38,100,235,0.02) !important; color: var(--k-text) !important; font-weight: 500 !important; opacity: 1; }
.k-table .k-group-header td { background: var(--k-light) !important; font-weight: 700 !important; font-family: var(--k-h-font); font-size: 0.8rem !important; text-transform: uppercase; letter-spacing: 0.05em; color: var(--k-text) !important; opacity: 0.7; padding: 10px 16px; border-radius: 0; }
.k-check { color: var(--k-green) !important; }
.k-dash  { color: var(--k-border-l) !important; }

/* ─── FUNZIONALITA: STICKY TABS ─────────────────────────────── */
.k-feature-tabs {
  position: sticky; top: var(--k-nav-h); z-index: 100;
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--k-border-l);
  overflow-x: auto; scrollbar-width: none;
}
.k-feature-tabs::-webkit-scrollbar { display: none; }
.k-feature-tabs__inner {
  max-width: var(--k-max); margin: 0 auto;
  display: flex; gap: 0;
  padding: 0 20px; width: max-content; min-width: 100%;
}
.k-feature-tab {
  display: block; padding: 16px 20px;
  font-size: 0.875rem !important; font-weight: 600 !important; font-family: var(--k-h-font);
  color: var(--k-muted) !important; text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--k-trans), border-color var(--k-trans);
}
.k-feature-tab:hover { color: var(--k-text) !important; }
.k-feature-tab.active { color: var(--k-blue) !important; border-color: var(--k-blue) !important; }

/* ─── FORM DEMO ─────────────────────────────────────────────── */
.k-demo-layout {
  display: flex; flex-direction: column; gap: 40px;
}

/* ─── FOOTER MOBILE ─────────────────────────────────────────── */
@media (max-width: 639px) {
  .k-footer__top { text-align: center; }
  .k-footer__logo { 
    flex-direction: column; 
    justify-content: center; 
    text-align: center; 
    margin-left: auto; 
    margin-right: auto; 
  }
  .k-footer__bottom { flex-direction: column; text-align: center; gap: 16px; }
  .k-footer__bottom-links { justify-content: center; flex-wrap: wrap; gap: 8px; }
  .k-footer__bottom-links a { font-size: 11px !important; white-space: nowrap; }
}
@media (min-width: 960px) {
  .k-demo-layout { flex-direction: row; align-items: flex-start; }
  .k-demo-layout__form { flex: 0 0 58%; }
  .k-demo-layout__sidebar { flex: 0 0 36%; position: sticky; top: calc(var(--k-nav-h) + 24px); }
}
.k-form-card {
  background: var(--k-white) !important; border: 1px solid var(--k-border-l);
  border-radius: var(--k-r-lg);
}
.k-form-group { margin-bottom: 20px; }
.k-form-label { display: block; font-size: 0.875rem !important; font-weight: 600 !important; color: var(--k-text) !important; margin-bottom: 8px; }
.k-form-input, .k-form-select, .k-form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--k-border-l); border-radius: var(--k-r);
  font-family: var(--k-b-font); font-size: 0.95rem !important; color: var(--k-text) !important;
  background: var(--k-white) !important;
  transition: border-color var(--k-trans), box-shadow var(--k-trans);
  appearance: none; outline: none;
}
.k-form-input:focus, .k-form-select:focus, .k-form-textarea:focus {
  border-color: var(--k-blue) !important;
  box-shadow: 0 0 0 3px rgba(38,100,235,0.08);
}
.k-form-textarea { min-height: 100px; resize: vertical; }
.k-form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .k-form-row { grid-template-columns: 1fr 1fr; } }

.k-team-options { display: flex; flex-wrap: wrap; gap: 8px; }
.k-team-opt {
  padding: 8px 16px; border: 1.5px solid var(--k-border-l);
  border-radius: 8px; font-size: 0.875rem !important; font-weight: 500 !important;
  cursor: pointer; transition: all var(--k-trans); user-select: none;
  color: var(--k-muted) !important;
}
.k-team-opt:hover { border-color: var(--k-blue) !important; color: var(--k-blue) !important; }
.k-team-opt.selected { border-color: var(--k-blue) !important; background: rgba(38,100,235,0.06) !important; color: var(--k-blue) !important; font-weight: 600 !important; }

/* CF7 overrides */
.k-form-card .wpcf7 input[type="text"],
.k-form-card .wpcf7 input[type="email"],
.k-form-card .wpcf7 select,
.k-form-card .wpcf7 textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--k-border-l); border-radius: var(--k-r);
  font-family: var(--k-b-font); font-size: 0.95rem !important; color: var(--k-text) !important;
  background: var(--k-white) !important;
  transition: border-color var(--k-trans), box-shadow var(--k-trans);
  outline: none; appearance: none;
}
.k-form-card .wpcf7 input:focus,
.k-form-card .wpcf7 select:focus,
.k-form-card .wpcf7 textarea:focus {
  border-color: var(--k-blue) !important;
  box-shadow: 0 0 0 3px rgba(38,100,235,0.08);
}
.k-form-card .wpcf7 input[type="submit"] {
  width: 100%; padding: 14px;
  background: var(--k-blue) !important; color: var(--k-white) !important;
  border: none; border-radius: 10px;
  font-family: var(--k-b-font); font-size: 1rem !important; font-weight: 600 !important;
  cursor: pointer; transition: all var(--k-trans);
}
.k-form-card .wpcf7 input[type="submit"]:hover { background: var(--k-blue-dark) !important; }
.k-form-card .wpcf7-not-valid-tip { color: #ef4444 !important; font-size: 0.8rem !important; margin-top: 4px; }
.k-form-card .wpcf7-response-output { display: none !important; }

/* ─── SIDEBAR DEMO ──────────────────────────────────────────── */
.k-sidebar-card {
  background: var(--k-white) !important; border: 1px solid var(--k-border-l);
  border-radius: var(--k-r-lg); padding: 24px; margin-bottom: 16px;
}
.k-sidebar-card--dark {
  background: var(--k-dark) !important; border-color: var(--k-border) !important;
}
.k-sidebar-card h4 { font-family: var(--k-h-font); font-size: 1rem !important; font-weight: 700 !important; margin-bottom: 8px; }
.k-sidebar-card--dark h4 { color: var(--k-white) !important; }
.k-sidebar-card p { font-size: 0.875rem !important; color: var(--k-text) !important; opacity: 0.75; line-height: 1.6; margin-bottom: 16px; }
.k-sidebar-card--dark p { color: var(--k-muted-dark) !important; }
.k-step-list { list-style: none; padding: 0; }
.k-step-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.875rem !important; color: var(--k-text) !important; opacity: 0.75; margin-bottom: 14px; line-height: 1.5;
}
.k-step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(38,100,235,0.1) !important; border: 1px solid rgba(38,100,235,0.2);
  color: var(--k-blue) !important; font-size: 0.75rem !important; font-weight: 700 !important;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ─── BLOG ──────────────────────────────────────────────────── */
.k-blog-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .k-blog-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 960px) { .k-blog-grid { grid-template-columns: repeat(3,1fr); } }

.k-post-card {
  background: var(--k-white) !important; border: 1px solid var(--k-border-l);
  border-radius: var(--k-r-lg); overflow: hidden;
  transition: transform var(--k-trans), box-shadow var(--k-trans);
  display: flex; flex-direction: column;
}
.k-post-card:hover { transform: translateY(-4px); box-shadow: var(--k-shadow); }
.k-post-card__img { aspect-ratio: 16/9; overflow: hidden; background: var(--k-light) !important; }
.k-post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.k-post-card:hover .k-post-card__img img { transform: scale(1.04); }
.k-post-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.k-post-card__cat { font-size: 0.75rem !important; font-weight: 700 !important; letter-spacing: 0.05em; text-transform: uppercase; color: var(--k-blue) !important; margin-bottom: 8px; }
.k-post-card__title { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 1.05rem !important; color: var(--k-text) !important; margin-bottom: 12px; line-height: 1.3; flex: 1; }
.k-post-card__title a { text-decoration: none; color: inherit !important; transition: color var(--k-trans); }
.k-post-card__title a:hover { color: var(--k-blue) !important; }
.k-post-card__meta { font-size: 0.8rem !important; color: var(--k-muted) !important; display: flex; gap: 12px; flex-wrap: wrap; }

/* Single article */
.k-article { max-width: 720px; margin: 0 auto; }
.k-article__hero { margin-bottom: 40px; border-radius: var(--k-r-lg); overflow: hidden; }
.k-article__hero img { width: 100%; height: auto; display: block; }
.k-article__meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem !important; color: var(--k-muted) !important; margin-bottom: 32px; align-items: center; }
.k-article__cat { background: rgba(38,100,235,0.08) !important; color: var(--k-blue) !important; padding: 4px 12px; border-radius: 100px; font-weight: 600 !important; font-size: 0.8rem !important; }
.k-article__content h2 { font-family: var(--k-h-font); font-size: 1.5rem !important; font-weight: 700 !important; color: var(--k-text) !important; margin: 40px 0 16px; }
.k-article__content h3 { font-family: var(--k-h-font); font-size: 1.2rem !important; font-weight: 700 !important; color: var(--k-text) !important; margin: 32px 0 12px; }
.k-article__content p  { color: var(--k-text) !important; line-height: 1.8; margin-bottom: 20px; }
.k-article__content ul, .k-article__content ol { padding-left: 24px; margin-bottom: 20px; color: var(--k-text) !important; line-height: 1.8; }
.k-article__content li { margin-bottom: 8px; }
.k-article__content a { color: var(--k-blue) !important; text-decoration: underline; text-underline-offset: 3px; }
.k-article__content blockquote {
  border-left: 3px solid var(--k-blue); padding-left: 20px;
  margin: 28px 0; font-style: italic; color: var(--k-muted) !important;
}

/* Inline CTA in article */
.k-inline-cta {
  background: linear-gradient(135deg, rgba(38,100,235,0.06) 0%, rgba(38,100,235,0.02) 100%) !important;
  border: 1px solid rgba(38,100,235,0.15); border-radius: var(--k-r-lg);
  padding: 28px; margin: 40px 0; text-align: center;
}
.k-inline-cta h4 { font-family: var(--k-h-font); font-weight: 700 !important; margin-bottom: 8px; }
.k-inline-cta p { color: var(--k-muted) !important; font-size: 0.9rem !important; margin-bottom: 16px; }

/* Related posts */
.k-related { margin-top: 64px; }
.k-related h3 { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 1.3rem !important; margin-bottom: 24px; }

/* ─── PER CHI CARDS ─────────────────────────────────────────── */
.k-segment-card {
  background: var(--k-white) !important; border: 1.5px solid var(--k-border-l);
  border-radius: var(--k-r-lg); padding: 28px;
  text-decoration: none; display: block;
  transition: all var(--k-trans);
}
.k-segment-card:hover { border-color: var(--k-blue) !important; box-shadow: var(--k-shadow-b); transform: translateY(-3px); }
.k-segment-card__icon {
  width: 48px; height: 48px; background: rgba(38,100,235,0.08) !important; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  color: var(--k-blue) !important; font-size: 1.3rem !important;
}
.k-segment-card__title { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 1.1rem !important; color: var(--k-text) !important; margin-bottom: 8px; }
.k-segment-card__desc  { font-size: 0.875rem !important; color: var(--k-muted) !important; line-height: 1.6; margin-bottom: 14px; }
.k-segment-card__link  { font-size: 0.875rem !important; font-weight: 600 !important; color: var(--k-blue) !important; display: flex; align-items: center; gap: 6px; }

/* ─── UTILITÀ ────────────────────────────────────────────────── */
.k-text-center { text-align: center; }
.k-mb-4  { margin-bottom: 4px; }
.k-mb-8  { margin-bottom: 8px; }
.k-mb-16 { margin-bottom: 16px; }
.k-mb-24 { margin-bottom: 24px; }
.k-mb-32 { margin-bottom: 32px; }
.k-mb-48 { margin-bottom: 48px; }
.k-mt-8  { margin-top: 8px; }
.k-mt-16 { margin-top: 16px; }
.k-mt-32 { margin-top: 32px; }
.k-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.k-section-head { text-align: center; max-width: 900px; margin: 0 auto 40px; }
.k-section-head h2 { margin-bottom: 16px; }
.k-section-head p { color: var(--k-text) !important; opacity: 0.7; line-height: 1.7; max-width: 900px; margin: 0 auto; }
.k-subtext { color: var(--k-text) !important; opacity: 0.7; line-height: 1.7; }
.k-bg-dark .k-section-head p { color: var(--k-muted-dark) !important; }
.k-bg-dark .k-section-head h2 { color: var(--k-white) !important; }
@media (max-width: 639px) {
  .k-section-head { margin-bottom: 32px; }
}

/* ════════════════════════════════════════════════════════════
   NUOVI COMPONENTI — Demo · Per chi · Pillar · Blog · Single
════════════════════════════════════════════════════════════ */

/* ─── HERO VARIANTI ─────────────────────────────────────── */
.k-hero--full { min-height: 100svh; justify-content: center; }
.k-hero__inner--center { text-align: center; align-items: center; justify-content: center; flex-direction: column; display: flex; }
.k-hero__glow--center { top: 0; left: 50%; transform: translateX(-50%); width: 700px; height: 500px; }

/* ─── BREADCRUMB BAR ────────────────────────────────────── */
.k-breadcrumb-bar {
  background: var(--k-white) !important;
  border-bottom: 1px solid var(--k-border-l);
  padding: 10px 0;
}
.k-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px !important; color: var(--k-muted) !important; flex-wrap: wrap; }
.k-breadcrumb a { color: var(--k-muted) !important; text-decoration: none; transition: color var(--k-trans); }
.k-breadcrumb a:hover { color: var(--k-blue) !important; }
.k-breadcrumb__sep { color: var(--k-border-l) !important; font-size: 12px !important; }
.k-breadcrumb span[aria-current] { color: var(--k-text) !important; font-weight: 500 !important; }

/* ─── DEMO LAYOUT ───────────────────────────────────────── */
.k-demo-form-col { flex: 1; min-width: 0; }
.k-demo-sidebar  { flex: 0 0 100%; display: flex; flex-direction: column; gap: 16px; }

@media (min-width: 960px) {
  .k-demo-layout { flex-direction: row; align-items: flex-start; gap: 48px; }
  .k-demo-sidebar { flex: 0 0 360px; position: sticky; top: calc(var(--k-nav-h) + 24px); }
}

/* Form card */
.k-form-card { background: var(--k-white) !important; border: 1px solid var(--k-border-l); border-radius: var(--k-r-xl); overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.04); }
.k-form-card__header { padding: 32px 32px 24px; border-bottom: 1px solid #f1f5f9; }
.k-form-card__header h2 { color: var(--k-text) !important; }
.k-form-card__body { padding: 32px; }

/* Form elements inside k-cf7-wrap */
.k-cf7-wrap .k-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 639px) { .k-cf7-wrap .k-form-row { grid-template-columns: 1fr; } }
.k-form-group { display: flex; flex-direction: column; gap: 6px; }
.k-form-group--full { grid-column: 1 / -1; }
.k-form-group label { font-size: 13px !important; font-weight: 600 !important; color: #475569 !important; font-family: var(--k-h-font); }
.k-cf7-wrap input[type="text"],
.k-cf7-wrap input[type="email"],
.k-cf7-wrap input[type="tel"],
.k-cf7-wrap select,
.k-cf7-wrap textarea {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--k-text) !important;
  font-size: 14px !important;
  font-family: var(--k-b-font);
  transition: border-color var(--k-trans), box-shadow var(--k-trans);
  width: 100%;
  line-height: normal;
  height: 48px;
}
.k-cf7-wrap select {
  height: 48px;
  padding: 0 14px;
  cursor: pointer;
  appearance: auto;
}
.k-cf7-wrap input:focus,
.k-cf7-wrap select:focus,
.k-cf7-wrap textarea:focus {
  outline: none;
  border-color: var(--k-blue) !important;
  background: var(--k-white) !important;
  box-shadow: 0 0 0 3px rgba(38,100,235,0.08);
}
.k-cf7-wrap select option { background: var(--k-white) !important; color: var(--k-text) !important; }
.k-cf7-wrap textarea { resize: vertical; }

/* Checkbox grid */
.k-checkbox-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (max-width: 639px) { .k-checkbox-grid { grid-template-columns: 1fr; } }
.k-check-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px !important; color: #475569 !important; cursor: pointer;
  padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 6px;
  transition: border-color var(--k-trans), background var(--k-trans);
}
.k-check-label input[type="checkbox"] { accent-color: var(--k-blue); width: 15px; height: 15px; flex-shrink: 0; }
.k-check-label:has(input:checked) { border-color: var(--k-blue) !important; background: rgba(38,100,235,0.05) !important; color: var(--k-blue) !important; }
.k-check-label--privacy { border: none; padding: 0; font-size: 13px !important; color: var(--k-muted) !important; }
.k-check-label--privacy a { color: var(--k-blue) !important; }

.k-form-note { text-align: center; font-size: 12px !important; color: #475569 !important; margin-top: 12px; }

/* ─── SIDEBAR CARDS ─────────────────────────────────────── */
.k-sidebar-card {
  background: var(--k-white) !important;
  border: 1.5px solid var(--k-border-l);
  border-radius: var(--k-r-lg);
  padding: 24px;
  transition: transform var(--k-trans), box-shadow var(--k-trans), border-color var(--k-trans);
}
.k-sidebar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}
.k-sidebar-card--accent {
  background: linear-gradient(135deg, #fff 0%, #f1f5f9 100%) !important;
  border-color: var(--k-blue) !important;
  box-shadow: 0 4px 20px rgba(38, 100, 235, 0.05);
}
.k-sidebar-card--accent:hover {
  box-shadow: 0 8px 30px rgba(38, 100, 235, 0.12);
}
.k-sidebar-card--dark:hover {
  border-color: rgba(38,100,235,0.4) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.k-sidebar-card__icon { margin-bottom: 12px; }
.k-sidebar-card h3 { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 1rem !important; color: var(--k-text) !important; margin-bottom: 8px; }
.k-sidebar-card p  { font-size: 14px !important; color: var(--k-muted) !important; line-height: 1.6; margin-bottom: 16px; }
.k-sidebar-card__badge {
  display: inline-block;
  background: rgba(38,100,235,0.1) !important; color: var(--k-blue) !important;
  font-size: 11px !important; font-weight: 700 !important; font-family: var(--k-h-font);
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; margin-bottom: 10px;
}
.k-sidebar-card--cta { border-color: var(--k-blue) !important; background: rgba(38,100,235,0.03) !important; }
.k-sidebar-card--dark { background: var(--k-dark) !important; border-color: rgba(255,255,255,0.08) !important; }
.k-sidebar-card--dark h3 { color: #fff !important; }
.k-sidebar-card--dark p  { color: #94a3b8 !important; }
.k-sidebar-card--contact { background: var(--k-light) !important; }
.k-contact-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--k-blue) !important; font-weight: 600 !important; font-size: 14px !important; text-decoration: none;
}
.k-contact-link:hover { text-decoration: underline; }

/* Steps list */
.k-steps-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.k-steps-list li { display: flex; align-items: flex-start; gap: 12px; }
.k-steps-list__num {
  width: 26px; height: 26px; flex-shrink: 0;
  background: var(--k-blue) !important; color: #fff !important;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px !important; font-weight: 700 !important; font-family: var(--k-h-font); margin-top: 2px;
}
.k-steps-list strong { display: block; font-size: 14px !important; color: var(--k-text) !important; margin-bottom: 2px; }
.k-steps-list p { font-size: 13px !important; color: var(--k-muted) !important; margin: 0; }

/* ─── PROOF STRIP ───────────────────────────────────────── */
.k-proof-strip {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 24px;
  background: var(--k-white) !important; border: 1.5px solid var(--k-border-l);
  border-radius: var(--k-r-xl); padding: 28px 32px;
  margin-bottom: 40px;
}
.k-proof-strip__item { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.k-proof-strip__num { font-family: var(--k-h-font); font-weight: 800 !important; font-size: clamp(1.6rem, 3vw, 2.2rem) !important; color: var(--k-blue) !important; line-height: 1; }
.k-proof-strip__item span:last-child { font-size: 13px !important; color: var(--k-muted) !important; }
.k-proof-strip__divider { width: 1px; height: 48px; background: var(--k-border-l) !important; }
@media (max-width: 640px) { .k-proof-strip__divider { display: none; } }

/* Demo quote */
.k-demo-quote {
  max-width: 640px; margin: 0 auto;
  background: var(--k-white) !important; border: 1.5px solid var(--k-border-l);
  border-radius: var(--k-r-xl); padding: 28px 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.k-demo-quote blockquote p { font-size: 1.05rem !important; line-height: 1.7; color: var(--k-text) !important; font-style: italic; margin: 0; }
.k-demo-quote figcaption { display: flex; align-items: center; gap: 12px; }
.k-demo-quote figcaption strong { display: block; font-family: var(--k-h-font); font-size: 0.9rem !important; color: var(--k-text) !important; }
.k-demo-quote figcaption span   { font-size: 13px !important; color: var(--k-muted) !important; }

/* ─── PER CHI — SEGMENT GRID ────────────────────────────── */
.k-segment-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px)  { .k-segment-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1160px) { .k-segment-grid { grid-template-columns: repeat(4, 1fr); } }

.k-segment-card {
  background: var(--k-white) !important; border: 1.5px solid var(--k-border-l);
  border-radius: var(--k-r-xl); padding: 24px;
  text-decoration: none; color: inherit !important;
  display: flex; flex-direction: column; gap: 0;
  position: relative; transition: all var(--k-trans);
}
.k-segment-card:hover { border-color: var(--k-blue) !important; box-shadow: var(--k-shadow-b); transform: translateY(-4px); }
.k-segment-card__icon {
  width: 52px; height: 52px; background: rgba(38,100,235,0.08) !important; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.k-segment-card__content h3 { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 1.05rem !important; color: var(--k-text) !important; margin-bottom: 8px; }
.k-segment-card__content p  { font-size: 14px !important; color: var(--k-muted) !important; line-height: 1.65; margin-bottom: 14px; }
.k-segment-card__tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.k-segment-card__tags li { font-size: 11px !important; font-weight: 600 !important; font-family: var(--k-h-font); text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 4px; background: var(--k-light) !important; color: var(--k-muted) !important; }
.k-segment-card__arrow { color: var(--k-blue) !important; display: flex; align-items: center; margin-top: auto; }

/* Per chi – comuni grid */
.k-comuni-grid {
  display: grid; grid-template-columns: 1fr; gap: 20px;
}
@media (min-width: 640px)  { .k-comuni-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .k-comuni-grid { grid-template-columns: repeat(3, 1fr); } }
.k-comuni-card { background: rgba(255,255,255,0.04) !important; border: 1px solid rgba(255,255,255,0.07); border-radius: var(--k-r-lg); padding: 22px; }
.k-comuni-card__icon { width: 40px; height: 40px; background: rgba(38,100,235,0.12) !important; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.k-comuni-card h3 { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 0.975rem !important; color: #fff !important; margin-bottom: 8px; }
.k-comuni-card p  { font-size: 14px !important; color: #94a3b8 !important; line-height: 1.65; margin: 0; }

/* ─── PILLAR — SPECIFICI ─────────────────────────────────── */
/* Chaos visual */
.k-chaos-visual {
  background: var(--k-dark-mid) !important; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--k-r-xl);
  padding: 20px; position: relative; overflow: hidden;
}
.k-chaos-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,0.03) !important; border: 1px solid rgba(255,255,255,0.06); margin-bottom: 8px; font-size: 13px !important; color: #94a3b8 !important; }
.k-chaos-item__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.k-chaos-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; height: 48%;
  background: linear-gradient(to bottom, transparent, var(--k-dark-mid) 80%) !important;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 16px;
}
.k-chaos-overlay span { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 0.9rem !important; color: var(--k-blue) !important; }

/* Pillar risposta grid */
.k-pillar-risposta-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .k-pillar-risposta-grid { grid-template-columns: repeat(2, 1fr); } }
.k-risposta-card { background: var(--k-white) !important; border: 1.5px solid var(--k-border-l); border-radius: var(--k-r-lg); padding: 24px; transition: box-shadow var(--k-trans); }
.k-risposta-card:hover { box-shadow: var(--k-shadow-b); }
.k-risposta-card__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.k-risposta-card__num { font-family: var(--k-h-font); font-weight: 800 !important; font-size: 2rem !important; color: var(--k-border-l) !important; line-height: 1; }
.k-risposta-card__icon { width: 36px; height: 36px; background: rgba(38,100,235,0.08) !important; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.k-risposta-card h3 { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 1rem !important; color: var(--k-text) !important; margin-bottom: 8px; }
.k-risposta-card p  { font-size: 14px !important; color: var(--k-muted) !important; line-height: 1.65; margin: 0; }

/* Altri segmenti */
.k-altri-grid { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 640px; margin: 0 auto; }
@media (min-width: 640px) { .k-altri-grid { grid-template-columns: repeat(3, 1fr); } }
.k-altro-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 14px 16px; border: 1.5px solid var(--k-border-l);
  border-radius: var(--k-r-lg); background: var(--k-white) !important;
  font-size: 14px !important; font-weight: 600 !important; font-family: var(--k-h-font); color: var(--k-text) !important; text-decoration: none;
  transition: all var(--k-trans);
}
.k-altro-link:hover { border-color: var(--k-blue) !important; color: var(--k-blue) !important; transform: translateX(3px); }

/* Pillar prose */
.k-pillar-content .k-prose h2 { font-family: var(--k-h-font); font-size: clamp(1.3rem, 2.5vw, 1.6rem) !important; font-weight: 700 !important; color: var(--k-text) !important; margin: 2em 0 0.75em; }
.k-pillar-content .k-prose h3 { font-family: var(--k-h-font); font-size: 1.15rem !important; font-weight: 700 !important; color: var(--k-text) !important; margin: 1.5em 0 0.5em; }
.k-pillar-content .k-prose p  { color: var(--k-text) !important; opacity: 0.75; line-height: 1.8; margin-bottom: 1.2em; }
.k-pillar-content .k-prose ul { padding-left: 1.4em; color: var(--k-text) !important; opacity: 0.75; line-height: 1.8; margin-bottom: 1.2em; }

/* Quote block */
.k-quote-block { margin: 0; }
.k-quote-block__stars { display: flex; gap: 3px; margin-bottom: 20px; color: #f59e0b !important; }
.k-quote-block blockquote p { font-size: clamp(1.1rem, 2vw, 1.3rem) !important; line-height: 1.7; color: #fff !important; font-style: italic; margin-bottom: 20px; }
.k-quote-block figcaption { display: flex; align-items: center; gap: 12px; }
.k-quote-block figcaption strong { display: block; color: #fff !important; font-family: var(--k-h-font); }
.k-quote-block figcaption span   { color: #94a3b8 !important; font-size: 13px !important; }

/* ─── BLOG ARCHIVIO ─────────────────────────────────────── */
.k-blog-filter-bar {
  background: var(--k-white) !important; border-bottom: 1px solid var(--k-border-l);
  position: sticky; top: var(--k-nav-h); z-index: 99;
}
.k-blog-cats {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  padding: 0 20px; max-width: var(--k-max); margin: 0 auto;
}
.k-blog-cats::-webkit-scrollbar { display: none; }
.k-blog-cats::after { content: ''; display: block; min-width: 20px; flex-shrink: 0; }
.k-blog-cat-link {
  display: block; padding: 12px 18px; white-space: nowrap;
  font-size: 14px !important; font-weight: 600 !important; font-family: var(--k-h-font); color: var(--k-muted) !important; text-decoration: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--k-trans), border-color var(--k-trans);
}
.k-blog-cat-link:hover { color: var(--k-text) !important; }
.k-blog-cat-link.is-active { color: var(--k-blue) !important; border-bottom-color: var(--k-blue); }

/* Blog grid */
.k-blog-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 640px)  { .k-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .k-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.k-blog-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px)  { .k-blog-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .k-blog-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.k-blog-card {
  background: var(--k-white) !important; border: 1.5px solid var(--k-border-l); border-radius: var(--k-r-xl);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow var(--k-trans), transform var(--k-trans);
}
.k-blog-card:hover { box-shadow: var(--k-shadow-b); transform: translateY(-4px); }
.k-blog-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--k-light) !important; }
.k-blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.k-blog-card:hover .k-blog-card__thumb img { transform: scale(1.04); }
.k-blog-card__thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eff6ff, #dbeafe) !important; }
.k-blog-card__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.k-blog-card__meta { display: flex; align-items: center; gap: 8px; }
.k-blog-card__read { font-size: 12px !important; color: var(--k-muted) !important; margin-left: auto; }
.k-blog-card__title { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 1.05rem !important; line-height: 1.35; }
.k-blog-card__title a { color: var(--k-text) !important; text-decoration: none; }
.k-blog-card__title a:hover { color: var(--k-blue) !important; }
.k-blog-card__excerpt { font-size: 14px !important; color: var(--k-muted) !important; line-height: 1.6; flex: 1; }
.k-blog-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--k-border-l); }
.k-blog-card__author { display: flex; align-items: center; gap: 8px; font-size: 13px !important; color: var(--k-muted) !important; }
.k-blog-card__avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.k-blog-card__date { color: var(--k-muted) !important; font-size: 12px !important; }
.k-blog-card__link { width: 32px; height: 32px; background: var(--k-light) !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--k-blue) !important; transition: background var(--k-trans), transform var(--k-trans); }
.k-blog-card__link:hover { background: var(--k-blue) !important; color: #fff !important; transform: scale(1.1); }

/* Paginazione */
.k-pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.k-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 8px; font-size: 14px !important; font-weight: 600 !important;
  font-family: var(--k-h-font); text-decoration: none; transition: all var(--k-trans);
  background: var(--k-white) !important; border: 1.5px solid var(--k-border-l); color: var(--k-muted) !important;
}
.k-pagination .page-numbers:hover { border-color: var(--k-blue) !important; color: var(--k-blue) !important; }
.k-pagination .page-numbers.current { background: var(--k-blue) !important; color: #fff !important; border-color: var(--k-blue) !important; }

/* Empty state */
.k-empty-state { text-align: center; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.k-empty-state__icon { width: 80px; height: 80px; background: rgba(38,100,235,0.06) !important; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.k-empty-state h2 { font-family: var(--k-h-font); font-size: 1.4rem !important; font-weight: 700 !important; }
.k-empty-state p  { color: var(--k-muted) !important; }

/* ─── SINGLE ARTICOLO ────────────────────────────────────── */
.k-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem !important; font-weight: 600 !important; letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--k-blue) !important;
  background: rgba(38,100,235,0.12) !important;
  border: 1px solid rgba(38,100,235,0.25) !important;
  border-radius: 100px;
  padding: 6px 14px;
  text-decoration: none !important;
  transition: all var(--k-trans);
}
.k-tag:hover {
  background: rgba(38,100,235,0.2) !important;
  border-color: rgba(38,100,235,0.4) !important;
}
.k-article-meta-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.k-article-read-time { font-size: 13px !important; color: var(--k-text) !important; opacity: 0.65; }
.k-article-author-bar { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.k-article-author-bar img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.k-article-author-bar strong { display: block; font-size: 14px !important; color: #fff !important; font-family: var(--k-h-font); }
.k-article-author-bar span  { font-size: 13px !important; color: #94a3b8 !important; }

/* Cover */
.k-article-cover { width: 100%; max-height: 480px; overflow: hidden; }
.k-article-cover__img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Layout articolo */
.k-article-layout { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 960px) {
  .k-article-layout { flex-direction: row; align-items: flex-start; }
  .k-article-content { flex: 1 1 680px; }
  .k-article-sidebar { flex: 0 0 300px; position: sticky; top: calc(var(--k-nav-h) + 24px); display: flex; flex-direction: column; gap: 20px; }
}

/* Layout blog con sidebar */
.k-blog-layout { display: flex; flex-direction: column; gap: 40px; }
.k-blog-main { min-width: 0; }
@media (min-width: 960px) {
  .k-blog-layout { flex-direction: row; align-items: flex-start; }
  .k-blog-main { flex: 1; }
  /* Con sidebar: griglia a 2 colonne invece di 3 */
  .k-blog-layout .k-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

/* TOC */
.k-toc {
  background: var(--k-light) !important; border: 1.5px solid var(--k-border-l);
  border-radius: var(--k-r-lg); padding: 16px 20px; margin-bottom: 36px;
}
.k-toc__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-family: var(--k-h-font); font-weight: 700 !important; font-size: 0.875rem !important; text-transform: uppercase; letter-spacing: 0.05em; color: var(--k-muted) !important; }
.k-toc__toggle { background: none !important; border: none; cursor: pointer; color: var(--k-muted) !important; padding: 0; display: flex; align-items: center; transition: transform var(--k-trans); }
.k-toc__toggle[aria-expanded="false"] { transform: rotate(180deg); }
.k-toc__list { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.k-toc__list li { font-size: 14px !important; }
.k-toc__list a { color: var(--k-muted) !important; text-decoration: none; display: flex; align-items: center; gap: 8px; transition: color var(--k-trans); }
.k-toc__list a::before { content: ''; width: 6px; height: 6px; background: var(--k-border-l) !important; border-radius: 50%; flex-shrink: 0; transition: background var(--k-trans); }
.k-toc__list a:hover, .k-toc__list a.is-active { color: var(--k-blue) !important; }
.k-toc__list a.is-active::before { background: var(--k-blue) !important; }

/* Prose */
.k-prose h2 { font-family: var(--k-h-font); font-size: clamp(1.3rem, 2.5vw, 1.6rem) !important; font-weight: 700 !important; color: var(--k-text) !important; margin: 2.2em 0 0.75em; }
.k-prose h3 { font-family: var(--k-h-font); font-size: 1.15rem !important; font-weight: 700 !important; color: var(--k-text) !important; margin: 1.8em 0 0.5em; }
.k-prose p  { color: var(--k-text) !important; opacity: 0.75; line-height: 1.8; margin-bottom: 1.2em; font-size: 16px !important; }
.k-prose ul, .k-prose ol { padding-left: 1.4em; color: var(--k-text) !important; opacity: 0.75; line-height: 1.8; margin-bottom: 1.2em; font-size: 16px !important; }
.k-prose li { margin-bottom: 0.4em; }
.k-prose strong { color: var(--k-text) !important; font-weight: 700 !important; }
.k-prose a  { color: var(--k-blue) !important; text-decoration: underline; }
.k-prose a:hover { color: #1d4ed8 !important; }
.k-prose blockquote { border-left: 3px solid var(--k-blue); padding: 12px 20px; margin: 1.5em 0; background: rgba(38,100,235,0.04) !important; border-radius: 0 8px 8px 0; }
.k-prose blockquote p { font-style: italic; color: var(--k-text) !important; }
.k-prose img { max-width: 100%; border-radius: var(--k-r-lg); margin: 1.5em 0; }
.k-prose pre { background: var(--k-dark) !important; border-radius: 8px; padding: 16px 20px; overflow-x: auto; font-size: 14px !important; margin-bottom: 1.2em; }
.k-prose code { font-family: monospace; background: var(--k-light) !important; padding: 2px 5px; border-radius: 4px; font-size: 0.9em !important; }

/* Inline CTA */
.k-inline-cta--mid {
  display: flex; align-items: flex-start; gap: 16px;
  background: rgba(38,100,235,0.06) !important; border: 1.5px solid rgba(38,100,235,0.2);
  border-radius: var(--k-r-lg); padding: 20px 22px; margin: 32px 0;
  flex-wrap: wrap;
}
.k-inline-cta__icon { width: 40px; height: 40px; background: rgba(38,100,235,0.1) !important; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.k-inline-cta__text { flex: 1; min-width: 200px; }
.k-inline-cta__text strong { display: block; font-family: var(--k-h-font); font-weight: 700 !important; font-size: 0.975rem !important; color: var(--k-text) !important; margin-bottom: 4px; }
.k-inline-cta__text p { font-size: 13px !important; color: var(--k-muted) !important; margin: 0; }

/* Tags articolo */
.k-article-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 32px 0; }
.k-article-tags > span { font-size: 13px !important; color: var(--k-muted) !important; font-weight: 600 !important; font-family: var(--k-h-font); }
.k-tag--sm { font-size: 11px !important; padding: 3px 8px; }

/* Share */
.k-article-share { display: flex; align-items: center; gap: 10px; margin: 24px 0; }
.k-article-share > span { font-size: 13px !important; color: var(--k-muted) !important; font-weight: 600 !important; font-family: var(--k-h-font); }
.k-share-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: 1.5px solid var(--k-border-l); border-radius: 6px;
  font-size: 13px !important; font-weight: 600 !important; font-family: var(--k-h-font); color: var(--k-muted) !important; text-decoration: none;
  transition: all var(--k-trans);
}
.k-share-link:hover { border-color: var(--k-blue) !important; color: var(--k-blue) !important; }

/* Author box */
.k-author-box {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--k-light) !important; border-radius: var(--k-r-xl); padding: 20px 22px; margin: 32px 0;
}
.k-author-box__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.k-author-box__info strong { display: block; font-family: var(--k-h-font); font-weight: 700 !important; color: var(--k-text) !important; margin-bottom: 4px; }
.k-author-box__info p { font-size: 14px !important; color: var(--k-muted) !important; margin: 0; line-height: 1.6; }

@media (max-width: 639px) {
  .k-author-box, .k-inline-cta--mid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Article nav */
.k-article-nav { display: flex; gap: 16px; flex-wrap: wrap; margin: 32px 0; }
.k-article-nav__link {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: 12px;
  background: var(--k-white) !important; border: 1.5px solid var(--k-border-l); border-radius: var(--k-r-lg);
  padding: 14px 16px; text-decoration: none; transition: all var(--k-trans);
}
.k-article-nav__link:hover { border-color: var(--k-blue) !important; box-shadow: var(--k-shadow-s); }
.k-article-nav__link--next { justify-content: flex-end; text-align: right; }
.k-article-nav__link span  { display: block; font-size: 11px !important; color: var(--k-muted) !important; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--k-h-font); margin-bottom: 2px; }
.k-article-nav__link strong { display: block; font-family: var(--k-h-font); font-weight: 700 !important; font-size: 14px !important; color: var(--k-text) !important; }
.k-article-nav__link svg { color: var(--k-blue) !important; flex-shrink: 0; }

/* Sidebar CTA sticky */
.k-sidebar-cta {
  background: var(--k-dark) !important; border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--k-r-xl); padding: 22px;
}
.k-sidebar-cta__badge {
  display: inline-block; background: rgba(34,197,94,0.12) !important; color: #22c55e !important;
  font-size: 11px !important; font-weight: 700 !important; font-family: var(--k-h-font);
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px; margin-bottom: 12px;
}
.k-sidebar-cta h3 { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 1.1rem !important; color: #fff !important; margin-bottom: 8px; }
.k-sidebar-cta p  { font-size: 13px !important; color: #94a3b8 !important; margin-bottom: 16px; line-height: 1.6; }
.k-sidebar-cta__bullets { list-style: none; padding: 0; margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.k-sidebar-cta__bullets li { font-size: 13px !important; color: #94a3b8 !important; }

/* Sidebar widget */
.k-sidebar-widget { background: var(--k-white) !important; border: 1.5px solid var(--k-border-l); border-radius: var(--k-r-xl); padding: 20px; }
.k-sidebar-widget__title { font-family: var(--k-h-font); font-weight: 700 !important; font-size: 0.875rem !important; text-transform: uppercase; letter-spacing: 0.05em; color: var(--k-muted) !important; margin-bottom: 14px; }
.k-sidebar-cat-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.k-sidebar-cat-list a { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; font-size: 14px !important; color: var(--k-text) !important; text-decoration: none; border-bottom: 1px solid var(--k-border-l); transition: color var(--k-trans); }
.k-sidebar-cat-list a:last-child { border-bottom: none; }
.k-sidebar-cat-list a:hover { color: var(--k-blue) !important; }
.k-sidebar-cat-list span { font-size: 12px !important; color: var(--k-muted) !important; background: var(--k-light) !important; padding: 2px 7px; border-radius: 20px; }
.k-sidebar-recent { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.k-sidebar-recent a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.k-sidebar-recent__thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.k-sidebar-recent span { font-size: 13px !important; font-weight: 600 !important; font-family: var(--k-h-font); color: var(--k-text) !important; line-height: 1.4; transition: color var(--k-trans); }
.k-sidebar-recent a:hover span { color: var(--k-blue) !important; }

/* Article pages */
.k-article-pages__nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0; }

/* CTA sezione articolo */
.k-cta-section--article { padding: 64px 0; }

/* ─── 10. CUSTOM CURSOR E SPOTLIGHT ─────────────────────── */
@media (pointer: fine) {
  /* Cursor base */
  body, a, button, .k-toggle, select { cursor: none !important; }
  
  .k-cursor, .k-cursor-follower {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 99999;
    border-radius: 50%; opacity: 0;
  }
  .k-cursor {
    width: 10px; height: 10px; background: var(--k-blue);
    margin: -5px 0 0 -5px;
    transition: width 0.2s cubic-bezier(0.25, 1, 0.5, 1), height 0.2s cubic-bezier(0.25, 1, 0.5, 1), margin 0.2s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s;
  }
  .k-cursor-follower {
    width: 40px; height: 40px; border: 1px solid rgba(38, 100, 235, 0.4);
    margin: -20px 0 0 -20px;
    transition: opacity 0.3s, width 0.2s cubic-bezier(0.25, 1, 0.5, 1), height 0.2s cubic-bezier(0.25, 1, 0.5, 1), margin 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* Hover interactivity */
  .k-cursor.is-hovering {
    width: 56px; height: 56px; margin: -28px 0 0 -28px;
    background: rgba(38, 100, 235, 0.1); border: 1px solid rgba(38, 100, 235, 0.2);
  }
  .k-cursor-follower.is-hovering {
    opacity: 0 !important; width: 0; height: 0; margin: 0;
  }
  .k-cursor.is-hidden, .k-cursor-follower.is-hidden { opacity: 0 !important; }

  /* Spotlight effect */
  .k-bg-dark, .k-hero { position: relative; }
  .k-spotlight-glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.04), transparent 40%);
    opacity: 0; transition: opacity 0.5s ease; z-index: 0;
  }
  .k-bg-dark:hover .k-spotlight-glow, .k-hero:hover .k-spotlight-glow { opacity: 1; }
  
  /* Preserve layering */
  .k-bg-dark > *, .k-hero > *, .k-wrap { position: relative; z-index: 1; }
  .k-hero__grid-bg, .k-hero__glow { z-index: 0 !important; position: absolute !important; }
}

/* ════════════════════════════════════════════════════════════
   STANDARDIZZAZIONE ANIMAZIONI E LAYOUT MOBILE
   ════════════════════════════════════════════════════════════ */

/* ─── SCROLL REVEAL ANIMATIONS ──────────────────────────────── */
.k-reveal {
  opacity: 0;
  transition: opacity 0.6s ease 0s, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0s;
  transform: translateY(30px);
}
.k-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Data-driven animation delays */
.k-reveal[data-delay="1"].is-visible { transition-delay: 0.1s; }
.k-reveal[data-delay="2"].is-visible { transition-delay: 0.2s; }
.k-reveal[data-delay="3"].is-visible { transition-delay: 0.3s; }
.k-reveal[data-delay="4"].is-visible { transition-delay: 0.4s; }

/* Varianti di animazione */
.k-reveal[data-anim="slideRight"] {
  transform: translateX(-40px);
}
.k-reveal[data-anim="slideRight"].is-visible {
  transform: translateX(0);
}

.k-reveal[data-anim="fadeInUp"] {
  transform: translateY(24px);
}
.k-reveal[data-anim="fadeInUp"].is-visible {
  transform: translateY(0);
}

/* ─── CAROSELLI - LAYOUT MOBILE MIGLIORATO ──────────────────── */
.k-carousel-outer {
  overflow: hidden;
}

.k-carousel-item {
  flex: 0 0 100%;
  min-width: 0; /* Prevent flex item overflow */
  display: flex;
  flex-direction: column;
}

.k-testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
}

/* Mobile: spacing ottimale */
@media (max-width: 639px) {
  .k-carousel-track {
    gap: 16px;
  }

  .k-testimonial-card {
    padding: 24px;
    min-height: 320px;
  }

  .k-testimonial-card__quote {
    font-size: 0.95rem !important;
    line-height: 1.6;
    flex: 1;
  }

  .k-testimonial-card__author {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--k-border-l);
  }
}

.k-nav.is-scrolled {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--k-border-l);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* Tablet: 2 colonne */
@media (min-width: 640px) and (max-width: 959px) {
  .k-carousel-item {
    flex: 0 0 calc(50% - 10px);
  }
}

/* Desktop: 3 colonne */
@media (min-width: 960px) {
  .k-carousel-item {
    flex: 0 0 calc(33.333% - 14px);
  }
}

/* ─── PRICING CARD - LAYOUT CONSISTENCY ──────────────────────– */
.k-pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.k-pricing-features {
  flex: 1;
  margin-bottom: 20px;
}

.k-pricing-divider {
  margin-top: auto;
  margin-bottom: 20px;
}

/* Mobile: migliore distribuzione spazio */
@media (max-width: 639px) {
  .k-pricing-card {
    min-height: auto;
    padding: 24px;
  }

  .k-pricing-price {
    margin-bottom: 8px;
  }

  .k-pricing-features li {
    font-size: 0.8rem !important;
    margin-bottom: 8px;
  }
}

/* ─── SEGMENT CARDS - MOBILE OPTIMIZATION ───────────────────── */
@media (max-width: 639px) {
  .k-segment-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
  }

  .k-segment-card__title {
    font-size: 1rem !important;
  }

  .k-segment-card__desc {
    font-size: 0.8rem !important;
    flex: 1;
    margin-bottom: 12px;
  }

  .k-segment-card__link {
    font-size: 0.8rem !important;
    margin-top: auto;
  }
}

/* ─── FORM & CTA BUTTONS - FULL WIDTH MOBILE ────────────────── */
@media (max-width: 639px) {
  .k-btn--full,
  .k-btn--lg {
    width: 100%;
  }

  .k-cta-btns {
    flex-direction: column;
  }

  .k-cta-btns .k-btn {
    width: 100%;
  }

  .k-hero__ctas {
    flex-direction: column;
  }

  .k-hero__ctas .k-btn {
    width: 100%;
  }
}

/* ─── GRID SYSTEMS - RESPONSIVE ─────────────────────────────── */
@media (max-width: 639px) {
  .k-grid-2,
  .k-grid-3,
  .k-grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (min-width: 640px) and (max-width: 959px) {
  .k-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .k-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── FEATURE ROW - MOBILE STACK ────────────────────────────── */
@media (max-width: 959px) {
  .k-feature-row {
    flex-direction: column;
    gap: 32px;
  }

  .k-feature-row__text {
    flex: 0 0 100%;
  }

  .k-feature-row__visual {
    flex: 0 0 100%;
  }
}

/* ─── SECTION PADDING - RESPONSIVE ──────────────────────────── */
@media (max-width: 639px) {
  .k-section {
    padding: 48px 0;
  }

  .k-hero {
    padding: calc(var(--k-nav-h) + 24px) 0 40px;
  }
}

/* ─── CTA SECTION - CONSISTENZA ─────────────────────────────── */
.k-cta-section {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 300px;
  padding: 64px 0;
}

.k-cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at center, rgba(38,100,235,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.k-cta-section > * {
  position: relative;
  z-index: 1;
}

.k-cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 639px) {
  .k-cta-section {
    padding: 48px 0;
    min-height: auto;
  }

  .k-cta-section h2 {
    font-size: 1.6rem !important;
  }
}

/* ─── COMMON TRANSITIONS - CONSISTENCY ──────────────────────── */
.k-card,
.k-testimonial-card,
.k-pricing-card,
.k-segment-card,
.k-post-card {
  transition: transform var(--k-trans), box-shadow var(--k-trans), border-color var(--k-trans);
}

/* ─── FORM CARD MOBILE ──────────────────────────────────────── */
@media (max-width: 639px) {
  .k-form-card {
    border-radius: var(--k-r);
  }

  .k-form-card__header {
    padding: 20px;
  }

  .k-form-card__body {
    padding: 20px;
  }

  .k-sidebar-card {
    padding: 20px;
  }
}

/* ═════════════════════════════════════════════════════════════
   FILO STUDIO – REBRAND ADDITIONS
   ═════════════════════════════════════════════════════════════ */

/* ─── FILO ACCENT (logo color) ─────────────────────────────── */
.k-nav__logo { color: #ffffff !important; }
.k-nav__logo svg.filo-svg-icon { color: #60A5FA !important; }
.filo-accent { color: #60A5FA !important; }
.k-nav.is-scrolled .filo-accent { color: var(--k-blue) !important; }

/* SVG Icon State Management */
.k-nav__logo .filo-svg-bg,
.k-footer__logo .filo-svg-bg {
  fill: var(--k-white) !important;
  stroke: var(--k-white) !important;
  stroke-opacity: 1 !important;
}
.k-nav__logo .filo-svg-path,
.k-footer__logo .filo-svg-path { stroke: var(--k-blue) !important; }
.k-nav__logo .filo-svg-dot,
.k-footer__logo .filo-svg-dot { fill: var(--k-blue) !important; }

.k-nav.is-scrolled .k-nav__logo .filo-svg-bg {
  fill: var(--k-white) !important;
  stroke: var(--k-blue) !important;
} 
.k-nav.is-scrolled .k-nav__logo .filo-svg-path { stroke: var(--k-blue-dark) !important; }
.k-nav.is-scrolled .k-nav__logo .filo-svg-dot { fill: var(--k-blue-dark) !important; }

/* ─── STICKY HEADER SCROLL EFFECT ──────────────────────────── */
.k-nav {
  transition: background 0.35s ease, height 0.35s ease, box-shadow 0.35s ease;
}
.k-nav.is-scrolled {
  background: rgba(255,255,255,0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--k-border-l);
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);

}
.k-nav.is-scrolled .k-nav__logo {
  color: var(--k-text) !important;
}
.k-nav.is-scrolled .k-nav__logo svg.filo-svg-icon { color: var(--k-blue) !important; }
.k-nav.is-scrolled .k-nav__menu a {
  color: var(--k-text) !important;
  opacity: 0.75;
}
.k-nav.is-scrolled .k-nav__menu a:hover {
  color: var(--k-text) !important;
  opacity: 1;
  background: var(--k-light) !important;
}
.k-nav.is-scrolled .k-nav__dropdown-panel {
  background: var(--k-white);
  border-color: var(--k-border-l);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}
.k-nav.is-scrolled .k-nav__dropdown li a {
  color: var(--k-text) !important;
  opacity: 0.8;
}
.k-nav.is-scrolled .k-nav__dropdown li a:hover {
  background: var(--k-light) !important;
  color: var(--k-text) !important;
  opacity: 1;
}
.k-nav.is-scrolled .k-nav__hamburger span {
  background: var(--k-text) !important;
}
.k-nav.is-scrolled .k-btn--primary {
  background: var(--k-blue) !important;
  color: var(--k-white) !important;
}

/* ─── THREAD / WAVE MOTIFS ─────────────────────────────────── */
.k-thread {
  display: block;
  width: 100%;
  pointer-events: none;
  overflow: visible;
}
.k-thread path {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1.5s ease;
}
.k-thread.is-animating path {
  stroke-dashoffset: 0;
}
.k-thread circle {
  opacity: 0;
  transition: opacity 0.6s ease 0.8s;
}
.k-thread.is-animating circle {
  opacity: 1;
}

/* Thread separator between sections */
.k-thread-separator {
  display: block;
  width: 100%;
  height: 28px;
  margin: 0;
  pointer-events: none;
}
.k-thread-separator path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 2s ease;
}
.k-thread-separator.is-animating path {
  stroke-dashoffset: 0;
}
.k-thread-separator circle {
  opacity: 0;
  transition: opacity 0.5s ease 1s;
}
.k-thread-separator.is-animating circle {
  opacity: 1;
}

/* Scroll parallax on motifs */
.k-thread[data-parallax] {
  will-change: transform;
}
@media (max-width: 959px) {
  .k-hero__text .k-thread {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ─── INFINITE CAROUSEL (replaces prev/next buttons) ───────── */
.k-carousel-controls {
  justify-content: center;
}
/* Hide prev/next arrow buttons */
.k-carousel-btn {
  display: none !important;
}
/* ─── SCROLLBAR CAROUSEL ──────────────────────────────────── */
.k-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.k-carousel-progress {
  width: 120px;
  height: 6px;
  background: rgba(37,99,235,0.15) !important;
  border-radius: 4px;
  overflow: hidden;
}
.k-bg-dark .k-carousel-progress { background: rgba(255,255,255,0.1) !important; }

.k-carousel-progress-thumb {
  height: 100%;
  background: var(--k-blue) !important;
  border-radius: 4px;
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (max-width: 639px) {
  .k-carousel-progress { width: 80px; height: 5px; }
}

/* ─── HERO PARALLAX (desktop) ──────────────────────────────── */
@media (min-width: 960px) {
  .k-hero--parallax {
    min-height: 150vh;
    display: flex;
    align-items: flex-start;
  }
  .k-hero--parallax .k-hero__inner {
    position: sticky;
    top: var(--k-nav-h);
    width: 100%;
    padding-top: 48px;
  }
  .k-hero--parallax .k-hero__cols {
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .k-hero--parallax .k-hero__text {
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .k-hero--parallax .k-hero__visual {
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }
  /* Parallax active states — applied via JS */
  .k-hero--parallax.is-expanded .k-hero__cols {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
.k-hero--parallax.is-expanded .k-hero__text {
    flex: 0 0 auto;
    text-align: center;
    width: 100%;
  }
  .k-hero--parallax.is-expanded .k-hero__ctas {
    justify-content: center;
  }
  .k-hero--parallax.is-expanded .k-hero__visual {
    flex: 0 0 auto;
    width: 80%;
    max-width: 900px;
  }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  .k-thread path,
  .k-thread circle,
  .k-thread-separator path,
  .k-thread-separator circle {
    transition: none !important;
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
  .k-hero--parallax .k-hero__cols,
  .k-hero--parallax .k-hero__text,
  .k-hero--parallax .k-hero__visual {
    transition: none !important;
  }
}
