/* ================================================================
   CYBER4YOU — STILE 3: Apple / SentinelOne Scroll Reveal
   Dark premium + scroll-driven sections + sticky narrative
   ================================================================ */

:root {
  --c-dark:   #0f1117;
  --c-surface:#141720;
  --c-panel:  #1b1f2e;
  --c-mid:    #252a3a;
  --c-blue:   #0f3460;
  --c-cyan:   #896BAD;
  --c-cyan2:  #7a5f9e;
  --c-purple: #6e3af5;
  --c-green:  #00ff88;
  --c-red:    #ff3355;
  --c-white:  #ffffff;
  --c-light:  #e5e7eb;
  --c-muted:  #6b7280;
  --c-muted2: #4b5563;
  --c-border: rgba(255,255,255,.06);
  --c-border2:rgba(137,107,173,.15);
  --c-glass:  rgba(0,0,0,.6);

  --font-sans:  'Inter', system-ui, sans-serif;
  --font-head:  'Space Grotesk', sans-serif;

  --nav-h: 72px;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--c-dark); color: var(--c-light); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-white); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.skip-link { position: absolute; left: -999px; z-index: 9999; background: var(--c-cyan); color: #000; padding: .5rem 1rem; font-weight: 700; border-radius: 0 0 8px 8px; }
.skip-link:focus { left: 1rem; top: 0; width: auto; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Layout ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 8rem 0; }
.section-sm { padding: 4rem 0; }

/* ─── Utilities ─── */
.btn-full { width: 100%; justify-content: center; }
.mt-xs { margin-top: 1rem; }
.mt-sm { margin-top: .75rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2rem; }
.mt-xl { margin-top: 2.5rem; }
.mb-xl { margin-bottom: 2.5rem; }
.pt-sm { padding-top: 3rem; }
.pt-xs { padding-top: 2rem; }
.pb-sm { padding-bottom: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.card-grid-wide { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  font-size: 1.5rem; line-height: 1;
  background: rgba(137,107,173,.12);
  border: 1px solid rgba(137,107,173,.25);
  border-radius: 14px;
  margin-bottom: 1rem;
  color: var(--c-cyan);
}
.card-icon svg { width: 24px; height: 24px; }
.icon-lg { font-size: 2rem; margin-bottom: .75rem; }
.mt-3xl { margin-top: 3rem; }
.mb-3xl { margin-bottom: 3rem; }
.align-start { align-self: flex-start; }
.section-lead { max-width: 640px; margin: .75rem auto 0; font-size: 1.05rem; }
.card-h3 { font-size: 1.125rem; margin-bottom: .75rem; }
.text-sm { font-size: .875rem; }
.blog-card-meta { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.page-404-wrap { min-height: 70vh; display: flex; align-items: center; }
.page-404-inner { text-align: center; padding: 6rem 1.5rem; }
.page-404-code { font-size: 8rem; font-weight: 900; color: var(--c-border); margin-bottom: 1rem; }
.page-404-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.section-head-mb { margin-bottom: 2.5rem; }
.mb-md { margin-bottom: 1.5rem; }
.pt-0 { padding-top: 0; }

/* Webinar: play overlay sopra card img */
.webinar-card-img { position: relative; }
.webinar-play-overlay {
  position: absolute; inset: 0; width: 100%;
  background: rgba(0,0,0,.4); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.webinar-play-overlay:hover { background: rgba(0,0,0,.55); }
.webinar-play-btn {
  width: 56px; height: 56px;
  background: var(--c-cyan); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1);
}
.webinar-play-overlay:hover .webinar-play-btn { transform: scale(1.1); }
.webinar-play-icon { width: 24px; height: 24px; fill: var(--c-dark); margin-left: 3px; }

/* ─── Typography ─── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.1; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.45rem); }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-cyan); margin-bottom: .75rem; display: block; }
.text-gradient { background: linear-gradient(135deg, #d4bcec 0%, #896BAD 60%, #6e3af5 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-gradient-green { background: linear-gradient(135deg, var(--c-green) 0%, var(--c-cyan) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.text-muted { color: var(--c-muted); }
.text-center { text-align: center; }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 2rem; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: all .3s var(--ease); white-space: nowrap; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--c-white); color: var(--c-dark); }
.btn-primary:hover { background: var(--c-cyan); color: var(--c-dark); transform: translateY(-2px) scale(1.02); box-shadow: 0 0 40px rgba(137,107,173,.35); }
.btn-outline { border-color: rgba(255,255,255,.2); color: var(--c-light); }
.btn-outline:hover { border-color: var(--c-cyan); color: var(--c-cyan); background: rgba(137,107,173,.05); }
.btn-red { background: var(--c-cyan); color: #fff; border-color: var(--c-cyan); }
.btn-red:hover { background: #5a3f8a; color: #fff; transform: translateY(-2px); }

/* ── Banner emergenza compatto (pagina contatti) ─────────────── */
.alert-banner {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 1.6rem 1.65rem;
  border-radius: 16px;
  border: 1px solid rgba(137,107,173,.28);
  background: linear-gradient(160deg, rgba(137,107,173,.14) 0%, rgba(137,107,173,.04) 55%, rgba(20,4,8,.18) 100%);
}
.alert-banner .alert-dot {
  position: absolute;
  top: 1.35rem; right: 1.35rem;
  width: 9px; height: 9px;
  background: var(--c-cyan);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(137,107,173,.18);
  animation: pulse-red .8s ease-in-out infinite alternate;
}
.alert-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-white);
  margin: 0 0 .35rem;
}
.alert-title .alert-icon { font-size: 1.15rem; line-height: 1; }
.alert-banner p {
  font-size: .9rem;
  color: rgba(229,231,235,.72);
  line-height: 1.55;
  margin: 0 0 1.1rem;
}
.alert-banner .btn-red { box-shadow: 0 8px 24px rgba(137,107,173,.28); }

[data-theme="light"] .alert-banner {
  background: linear-gradient(160deg, rgba(137,107,173,.1) 0%, rgba(137,107,173,.03) 100%);
  border-color: rgba(137,107,173,.3);
}
[data-theme="light"] .alert-title { color: var(--c-light) !important; }
[data-theme="light"] .alert-banner p { color: var(--c-muted) !important; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: .6rem 1.25rem; font-size: .85rem; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ─── Navigation ─── */
.c4y-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(0,0,0,.01);
  backdrop-filter: none;
  transition: background .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.c4y-nav.scrolled {
  background: rgba(15,17,23,.92);
  backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid var(--c-border);
}
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; gap: 2rem; }
.nav-logo img { height: 34px; }
.nav-menu { display: flex; align-items: center; gap: 0; list-style: none; margin-left: auto; }
.nav-link { display: flex; align-items: center; gap: .3rem; padding: .5rem 1rem; font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.7); transition: all .2s; border-radius: 8px; white-space: nowrap; }
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,.06); }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; margin-left: .75rem; padding: .5rem 1.1rem; border: 1px solid rgba(137,107,173,.45); border-radius: 999px; font-size: .875rem; font-weight: 700; color: #b9a3d6; white-space: nowrap; transition: all .2s; }
.nav-phone svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-phone:hover { background: rgba(137,107,173,.16); color: #fff; border-color: var(--c-cyan); }
.nav-cta { background: var(--c-white) !important; color: var(--c-dark) !important; border-radius: 999px; padding: .5rem 1.5rem !important; font-weight: 700; margin-left: 1rem; }
.nav-cta:hover { background: var(--c-cyan) !important; box-shadow: 0 0 25px rgba(137,107,173,.4); }
.icon-chevron { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; transition: transform .2s; }
.dropdown-toggle { background: none; border: none; font: inherit; }
.has-dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%) scale(.95); transform-origin: top center; min-width: 280px; background: rgba(17,17,17,.95); backdrop-filter: blur(20px); border: 1px solid var(--c-border); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(0,0,0,.8); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; pointer-events: none; padding: 8px .5rem .5rem; z-index: 2000; max-height: calc(100vh - 100px); overflow-y: auto; overflow-x: hidden; }
.has-dropdown::after { content: ''; position: absolute; bottom: -10px; left: 0; right: 0; height: 10px; }
.has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1); pointer-events: all; }
.has-dropdown:hover .icon-chevron { transform: rotate(180deg); }
.dropdown-link { display: block; padding: .45rem .875rem; color: var(--c-light); font-size: .875rem; border-radius: 10px; transition: all .15s; }
.dropdown-link:hover { background: rgba(137,107,173,.08); color: var(--c-cyan); }
.dropdown-link strong { display: block; font-weight: 600; margin-bottom: .05rem; }
.dropdown-link span { font-size: .75rem; color: var(--c-muted); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--c-light); border-radius: 2px; transition: all .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile-header { display: none; } /* hidden on desktop — shown only inside mobile overlay */

/* ═══════════════════════════════════════════
   HERO — Fullscreen Cinematic
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: var(--nav-h) 0 4rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.62) saturate(1.3); transform-origin: center; animation: heroZoom 20s ease-in-out infinite alternate; }
@keyframes heroZoom { from { transform: scale(1) } to { transform: scale(1.08) } }
.hero-gradient { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,17,23,.5) 0%, rgba(15,17,23,.1) 40%, rgba(15,17,23,1) 100%); }
.hero-wave { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; pointer-events: none; line-height: 0; }
.hero-wave svg { display: block; width: 100%; }

/* ── Blur Reveal — @keyframes per hero (above-fold, nessun JS) ── */
/* Due varianti: con scale (block/flex) e senza scale (inline text) */
@keyframes blurRevealIn {
  from { opacity: 0; filter: blur(18px); transform: scale(1.05); }
  to   { opacity: 1; filter: blur(0);    transform: scale(1); }
}
/* hero h1 — inline-block con solo opacity+translateY: zero layout shift */
@keyframes heroWordIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-hl {
  display: inline-block;
  vertical-align: baseline;
  animation: heroWordIn 1.1s cubic-bezier(.22,1,.36,1) both;
}
.hero-hl-1 { animation-delay: .2s; }
.hero-hl-2 { animation-delay: 1.7s; }
.hero-hl-3 { animation-delay: 2.5s; }

/* page hero elements — block, scale ok */
.page-hero-content > .eyebrow    { animation: blurRevealIn .55s cubic-bezier(.22,1,.36,1) both; animation-delay: .08s; }
.page-hero-content > h1          { animation: blurRevealIn .6s  cubic-bezier(.22,1,.36,1) both; animation-delay: .2s; }
.page-hero-content > p           { animation: blurRevealIn .6s  cubic-bezier(.22,1,.36,1) both; animation-delay: .32s; }
.page-hero-content > .hero-cta   { animation: blurRevealIn .6s  cubic-bezier(.22,1,.36,1) both; animation-delay: .42s; }

.hero-container { position: relative; z-index: 3; width: 100%; padding-bottom: 2rem; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .75rem; padding: .5rem 1.25rem; background: rgba(137,107,173,.08); border: 1px solid rgba(137,107,173,.2); border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--c-cyan); margin-bottom: 2.5rem; }
.hero-dot { width: 6px; height: 6px; background: var(--c-cyan); border-radius: 50%; box-shadow: 0 0 8px var(--c-cyan); animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:.5} }
.hero h1 { margin-bottom: 1.75rem; max-width: 900px; }
.hero h1 .accent { color: var(--c-cyan); }
.hero p { font-size: clamp(1rem, 2vw, 1.25rem); color: rgba(229,231,235,.7); max-width: 560px; margin-bottom: 3rem; line-height: 1.8; font-weight: 300; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem; }
.hero-scroll { display: flex; align-items: center; gap: .75rem; color: var(--c-muted); font-size: .8rem; }
.hero-scroll-arrow { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: bounce 2s ease-in-out infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }
.hero-scroll-arrow svg { width: 14px; height: 14px; stroke: var(--c-muted); fill: none; }

/* ═══════════════════════════════════════════
   SCROLL SECTIONS — Apple/SentinelOne style
   ═══════════════════════════════════════════ */

/* Sticky narrative — flexbox (più stabile di grid per sticky) */
.scroll-narrative {
  position: relative;
  display: flex;
  align-items: flex-start;
}
.scroll-sticky-side {
  position: sticky;
  top: var(--nav-h);
  width: 45%;
  flex-shrink: 0;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}
.scroll-sticky-img {
  position: relative;
  width: 100%;
  height: 100%;
}
.scroll-sticky-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.scroll-sticky-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.6) 0%, transparent 60%);
}
.scroll-content-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.scroll-panel {
  height: calc(100vh - var(--nav-h));
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3.5rem 4rem 3rem;
  border-bottom: 1px solid var(--c-border);
  position: relative;
  transition: background .4s;
  overflow: hidden;
}
.scroll-panel:last-child { border-bottom: none; }
.scroll-panel-number {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(137,107,173,.05);
  position: absolute;
  right: 3rem;
  top: 3rem;
  font-family: var(--font-head);
  line-height: 1;
  pointer-events: none;
}
.scroll-panel h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.25; letter-spacing: -.01em; margin-bottom: 1rem; }
.scroll-panel p { color: var(--c-muted); line-height: 1.8; font-size: 1.05rem; margin-bottom: 1.5rem; }
.scroll-panel ul { display: flex; flex-direction: column; gap: .6rem; }
.scroll-panel ul li { display: flex; align-items: center; gap: .75rem; color: rgba(229,231,235,.7); font-size: .95rem; }
.scroll-panel ul li::before {
  content: ''; width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px 11px no-repeat,
    linear-gradient(135deg, #896BAD, #6d4fa0);
  box-shadow: 0 0 10px rgba(137,107,173,.45);
}

/* Full-width reveal sections */
.reveal-section {
  position: relative;
  background: var(--c-surface);
  overflow: hidden;
}
.reveal-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at var(--x,50%) var(--y,50%), var(--c) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .8s;
}
.reveal-section.in-view .reveal-bg { opacity: 1; }

/* Feature tiles grid — large visual tiles */
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1px;
  background: var(--c-border);
}
.tile {
  background: var(--c-surface);
  padding: 3.5rem;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition: background .3s;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tile-wide { grid-column: span 2; }
.tile-tall { grid-row: span 2; }
.tile-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(circle at 80% 80%, rgba(137,107,173,.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}
.tile:hover .tile-bg { opacity: 1; }
.tile:hover { background: rgba(137,107,173,.03); }
.tile-num { position: absolute; top: 2rem; left: 2rem; font-size: 3.5rem; font-weight: 900; color: rgba(255,255,255,.04); font-family: var(--font-head); line-height: 1; z-index: 1; }
.tile-content { position: relative; z-index: 2; }
.tile-icon { width: 52px; height: 52px; background: rgba(137,107,173,.08); border: 1px solid rgba(137,107,173,.2); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.tile-icon svg { width: 24px; height: 24px; stroke: var(--c-cyan); fill: none; }
.tile h3 { font-size: 1.2rem; margin-bottom: .75rem; }
.tile p { color: var(--c-muted); font-size: .9rem; line-height: 1.6; margin-bottom: 1rem; }
.tile-link { color: var(--c-cyan); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .35rem; }
.tile-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; transition: transform .2s; }
.tile:hover .tile-link svg { transform: translateX(5px); }

/* Stats with animated numbers */
.stats-section { padding: 7rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--c-border); }
.stat-card { padding: 3.5rem 2rem; text-align: center; border-right: 1px solid var(--c-border); position: relative; overflow: hidden; }
.stat-card:last-child { border-right: none; }
.stat-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 110%, rgba(137,107,173,.06), transparent 70%); opacity: 0; transition: opacity .4s; }
.stat-card:hover::before { opacity: 1; }
.stat-num { font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 900; color: #fff; font-family: var(--font-head); line-height: 1; margin-bottom: .5rem; }
.stat-num span { color: var(--c-cyan); }
.stat-label { font-size: .78rem; color: var(--c-muted); letter-spacing: .1em; text-transform: uppercase; }

/* Emergency section */
.emergency-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, rgba(137,107,173,.12) 0%, rgba(0,0,0,0) 60%);
  border-top: 1px solid rgba(137,107,173,.2);
  border-bottom: 1px solid rgba(137,107,173,.2);
}
.emergency-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.emergency-label { display: inline-flex; align-items: center; gap: .5rem; color: var(--c-cyan); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1rem; }
.emergency-dot { width: 8px; height: 8px; background: var(--c-cyan); border-radius: 50%; animation: pulse-red .8s ease-in-out infinite alternate; }
@keyframes pulse-red { from{box-shadow:0 0 0 0 rgba(137,107,173,.4)} to{box-shadow:0 0 0 8px rgba(137,107,173,0)} }
.emergency-section h2 { margin-bottom: 1rem; }
.emergency-section p { color: var(--c-muted); max-width: 540px; line-height: 1.7; }
.emergency-actions { display: flex; flex-direction: column; gap: .75rem; flex-shrink: 0; align-items: center; }

/* Emergency v2 — fullscreen bg hero */
.emergency-section-v2 {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 9rem 0;
}
.emg-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.emg-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(.38) saturate(.9);
}
.emg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(160deg, rgba(6,4,14,.78) 0%, rgba(20,4,8,.45) 50%, rgba(6,4,14,.8) 100%);
}

.emg-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.emg-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--c-cyan);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0;
  transform: translateY(14px);
  animation: emgFadeUp .45s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: .05s;
}
.emg-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.0;
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .12em;
  letter-spacing: -.02em;
}
.emg-line {
  display: block;
  opacity: 0;
  filter: blur(18px);
  transform: scale(1.06);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              filter .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
  transition-delay: calc(var(--i) * .22s + .1s);
  will-change: opacity, filter, transform;
}
.emg-line.in-view {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}
.emg-line-red {
  color: var(--c-cyan);
}
.emg-desc {
  font-size: 1.1rem;
  color: rgba(229,231,235,.7);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.emg-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.emg-link-more {
  color: rgba(229,231,235,.65);
  font-size: .95rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(229,231,235,.25);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.emg-link-more:hover {
  color: #fff;
  border-color: #fff;
}
/* ── Blur Reveal — effetto comparsa universale scroll-triggered ── */
/* Nome effetto: "Blur Reveal" / "Focus-in Reveal"                  */
/* Applicato via JS (app.js blurRevealObserver) a:                  */
/*  - .emg-line  (emergency section, stagger via --i)               */
/*  - .blur-reveal  (hero pages: eyebrow, h1, p, cta — auto-inject) */
.blur-reveal {
  opacity: 0;
  filter: blur(16px);
  transform: scale(1.04);
  transition: opacity .65s cubic-bezier(.22,1,.36,1),
              filter .65s cubic-bezier(.22,1,.36,1),
              transform .65s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--blur-delay, 0s);
  will-change: opacity, filter, transform;
}
.blur-reveal.in-view {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

@keyframes emgFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Emergency modal */
.emg-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(480px, 94vw);
  max-height: 90vh;
  background: #141720;
  border: 1px solid rgba(137,107,173,.3);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  color: #e5e7eb;
  box-shadow: 0 0 60px rgba(137,107,173,.2), 0 24px 60px rgba(0,0,0,.7);
  animation: modalIn .25s ease;
  overflow-y: auto;
}
.emg-modal::backdrop {
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.94) translateY(16px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}
.emg-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: rgba(229,231,235,.5);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.emg-modal-close:hover { color: #fff; }
.emg-modal-icon {
  font-size: 2.5rem;
  margin-bottom: .75rem;
}
.emg-modal h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: .5rem;
  color: #fff;
}
.emg-modal p {
  color: rgba(229,231,235,.65);
  margin-bottom: 1.25rem;
  font-size: .95rem;
}
.emg-modal-phone {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-cyan);
  text-decoration: none;
  letter-spacing: .02em;
  margin-bottom: 1.75rem;
  transition: color .2s;
}
.emg-modal-phone:hover { color: #a98fc9; }
.emg-modal-btns {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-wa:hover { background: #1ebe57; transform: translateY(-2px); }
.emg-modal-detail {
  display: block;
  text-align: center;
  color: rgba(229,231,235,.45);
  font-size: .85rem;
  text-decoration: none;
  transition: color .2s;
}
.emg-modal-detail:hover { color: rgba(229,231,235,.8); }

/* Testimonial / Case studies */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.case-card { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: all .3s var(--ease); }
.case-card:hover { transform: translateY(-5px); border-color: rgba(137,107,173,.3); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.case-img { aspect-ratio: 16/9; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-card:hover .case-img img { transform: scale(1.06); }
.case-body { padding: 2rem; }
.case-cat { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-cyan); margin-bottom: .5rem; }
.case-body h3 { font-size: 1rem; line-height: 1.5; margin-bottom: .75rem; }
.case-body h3 a { color: var(--c-light); }
.case-body h3 a:hover { color: var(--c-cyan); }
.case-body p { color: var(--c-muted); font-size: .875rem; line-height: 1.6; }

/* CTA section */
.cta-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.15) saturate(1.2); }
.cta-bg-grad { position: absolute; inset: 0; z-index: 1; background: radial-gradient(ellipse at 50% 100%, rgba(137,107,173,.12) 0%, transparent 60%), linear-gradient(180deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.7) 100%); }
.cta-content { position: relative; z-index: 2; text-align: center; max-width: 760px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); margin-bottom: 1.25rem; }
.cta-content p { color: rgba(229,231,235,.65); font-size: 1.1rem; margin-bottom: 3rem; line-height: 1.8; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Service page layout */
.service-layout { display: grid; grid-template-columns: 1fr 300px; gap: 4rem; align-items: start; }
.service-sidebar { position: sticky; top: calc(var(--nav-h) + 2rem); }
.sidebar-cta { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 2rem; }
.sidebar-cta h3 { margin-bottom: .75rem; }
.sidebar-cta p { color: var(--c-muted); font-size: .875rem; margin-bottom: 1.5rem; }
.sidebar-nav { background: rgba(255,255,255,.02); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.5rem; margin-top: 1.5rem; }
.sidebar-nav h4 { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 1rem; }
.sidebar-nav ul li a { display: block; padding: .5rem 0; color: var(--c-muted); font-size: .875rem; border-bottom: 1px solid rgba(255,255,255,.03); transition: color .2s; }
.sidebar-nav ul li a:hover { color: var(--c-cyan); }

/* Page hero — compact service style (like old site) */
.page-hero {
  height: 420px;
  min-height: 320px;
  max-height: 480px;
  padding: calc(var(--nav-h) + 2.5rem) 0 3rem;
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: brightness(.55) saturate(1.2);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
.page-hero-grad {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(105deg,
    rgba(15,17,23,.88) 0%,
    rgba(15,17,23,.55) 50%,
    rgba(15,17,23,.3) 100%);
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 5%; left: -5%; z-index: 2;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137,107,173,.22) 0%, transparent 65%);
  filter: blur(50px); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 3; width: 100%; }
.page-hero-content { max-width: none; }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: .9rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
}
.page-hero p { color: rgba(229,231,235,.82); font-size: 1rem; line-height: 1.7; margin-bottom: 0; }
.page-hero .hero-cta { margin-top: 1.5rem; }
.page-hero-wave { display: none; }
.page-hero + .section { padding-top: 3rem; }
.hero-wave { display: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 5rem; align-items: start; }
.contact-info > h2 { margin-bottom: 2rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
.info-icon { width: 48px; height: 48px; background: rgba(137,107,173,.08); border: 1px solid rgba(137,107,173,.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-icon svg { width: 22px; height: 22px; stroke: var(--c-cyan); fill: none; }
.info-item h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); margin-bottom: .25rem; }
.info-item a, .info-item p { color: var(--c-light); font-weight: 500; }
.c4y-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); }
.form-group input,.form-group select,.form-group textarea { background: rgba(255,255,255,.04); border: 1px solid var(--c-border); border-radius: 12px; padding: .875rem 1rem; color: var(--c-light); font-size: .95rem; font-family: inherit; transition: border-color .2s, background .2s; }
.form-group input:focus,.form-group select:focus,.form-group textarea:focus { outline: none; border-color: var(--c-cyan); background: rgba(137,107,173,.04); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: #111; }
.field-error { font-size: .78rem; color: var(--c-red); }
.form-success { background: rgba(0,255,136,.07); border: 1px solid rgba(0,255,136,.2); border-radius: 12px; padding: 1rem; color: var(--c-green); font-size: .9rem; }
.form-error-msg { background: rgba(255,51,85,.07); border: 1px solid rgba(255,51,85,.2); border-radius: 12px; padding: 1rem; color: var(--c-red); font-size: .9rem; }
.checkbox-label { display: flex; align-items: flex-start; gap: .55rem; cursor: pointer; color: var(--c-muted); font-size: .85rem; text-transform: none; letter-spacing: 0; font-weight: 400; line-height: 1.45; }
.checkbox-label input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 17px; height: 17px; min-width: 17px;
  margin: .12rem 0 0;
  border: 1px solid rgba(229,231,235,.32);
  border-radius: 4px;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color .2s, background .2s;
}
.checkbox-label input[type="checkbox"]:hover { border-color: rgba(229,231,235,.5); }
.checkbox-label input[type="checkbox"]:checked { border-color: rgba(229,231,235,.5); background: rgba(255,255,255,.06); }
.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 4px; height: 9px;
  border: solid rgba(229,231,235,.85);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox-label input[type="checkbox"]:focus-visible { outline: 2px solid rgba(137,107,173,.6); outline-offset: 1px; }
.checkbox-label a { color: var(--c-cyan); }
.consent-note { margin: .6rem 0 0; font-size: .72rem; line-height: 1.45; color: rgba(229,231,235,.35); }

[data-theme="light"] .checkbox-label input[type="checkbox"] { border-color: rgba(0,0,0,.28); background: rgba(0,0,0,.02); }
[data-theme="light"] .checkbox-label input[type="checkbox"]:checked { border-color: rgba(0,0,0,.45); }
[data-theme="light"] .checkbox-label input[type="checkbox"]:checked::after { border-color: rgba(14,17,32,.7); }
[data-theme="light"] .consent-note { color: var(--c-muted2); }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--c-cyan); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Prose */
.prose { max-width: 760px; }
.prose h2,.prose h3 { margin: 2rem 0 .75rem; }
.prose p { color: var(--c-muted); margin-bottom: 1.25rem; line-height: 1.8; }
.prose strong { color: var(--c-light); }
.prose ul { padding-left: 1.5rem; margin-bottom: 1.25rem; color: var(--c-muted); }
.prose li { margin-bottom: .5rem; }

/* Partners */
.partners-row { display: flex; flex-wrap: wrap; gap: 2rem 4rem; align-items: center; justify-content: center; padding: 2.5rem 0; }
.partners-row img { height: 30px; filter: brightness(0) invert(.5); transition: filter .2s; }
.partners-row img:hover { filter: brightness(0) invert(.9); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.blog-card { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: all .3s var(--ease); display: flex; flex-direction: column; }
.blog-card:hover { border-color: rgba(137,107,173,.25); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.blog-card-img { aspect-ratio: 16/9; overflow: hidden; flex-shrink: 0; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-body { padding: 1.6rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-body .btn { margin-top: auto; align-self: flex-start; }
.blog-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.blog-cat { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-cyan); }
.blog-date { font-size: .78rem; color: var(--c-muted); }
.blog-card h3 { font-size: 1.15rem; line-height: 1.4; margin-bottom: .65rem; font-weight: 700; }
.blog-card h3 a {
  color: var(--c-white);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card h3 a:hover { color: var(--c-cyan); }
.blog-card p {
  font-size: .9rem; color: var(--c-muted); line-height: 1.65; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card-img-link { display: block; }
.blog-read-more {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: 1.1rem; font-size: .78rem; font-weight: 700;
  color: var(--c-cyan); letter-spacing: .06em; text-transform: uppercase;
  transition: gap .2s;
}
.blog-read-more:hover { color: var(--c-primary); gap: .6rem; }

/* Blog search */
.blog-search { margin-bottom: 2.5rem; }
.blog-search-wrap {
  display: flex; align-items: center;
  max-width: 540px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: .35rem .35rem .35rem .25rem;
  transition: border-color .2s, box-shadow .2s;
}
.blog-search-wrap:focus-within {
  border-color: rgba(137,107,173,.5);
  box-shadow: 0 0 0 3px rgba(137,107,173,.15);
}
.blog-search-input {
  flex: 1; min-width: 0;
  padding: .6rem .9rem;
  background: transparent; border: 0; outline: none;
  color: var(--c-light); font-size: .95rem;
}
.blog-search-input::placeholder { color: rgba(229,231,235,.4); }
.blog-search-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 11px;
  background: var(--c-cyan); color: var(--c-dark);
  cursor: pointer; transition: background .2s, transform .15s;
}
.blog-search-btn:hover { background: #9d7fc4; transform: none; box-shadow: none; }
.blog-search-btn svg { width: 18px; height: 18px; }
.blog-search-info { margin-top: .75rem; font-size: .875rem; color: var(--c-muted); }
.blog-search-info a { color: var(--c-cyan); }
.blog-empty { padding: 3rem 0; color: var(--c-muted); }

/* Blog pagination */
.blog-pagination { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-border); }
.blog-pag-btn { min-width: 140px; text-align: center; }
.blog-pag-info { font-size: .875rem; color: var(--c-muted); white-space: nowrap; }

/* Blog post page */
.page-hero-post .page-hero-content { max-width: 860px; }
.post-excerpt { font-size: 1.125rem; color: var(--c-muted); line-height: 1.7; margin-top: .5rem; }
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--c-muted); margin-bottom: 1rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--c-cyan); }
.breadcrumb a:hover { color: var(--c-primary); }
.blog-post-layout { display: grid; grid-template-columns: 1fr 300px; gap: 3rem; align-items: start; }
.blog-post-content { min-width: 0; }
.post-body { font-size: 1.05rem; line-height: 1.85; color: rgba(229,231,235,.78); }
.post-body > *:first-child { margin-top: 0; }
/* Primo paragrafo = occhiello */
.post-body > p:first-of-type { font-size: 1.18rem; line-height: 1.7; color: var(--c-light); }
.post-body h2 { font-size: 1.6rem; color: var(--c-white); margin: 2.5rem 0 1rem; line-height: 1.3; font-weight: 700; }
.post-body h3 { font-size: 1.3rem; color: var(--c-white); margin: 2rem 0 .75rem; line-height: 1.35; font-weight: 700; }
.post-body h4 { font-size: 1.1rem; color: var(--c-light); margin: 1.5rem 0 .6rem; font-weight: 700; }
.post-body h5 { font-size: 1rem; color: var(--c-light); margin: 1.25rem 0 .5rem; font-weight: 700; }
/* Barretta viola accanto agli h2 */
.post-body h2 { padding-left: 1rem; border-left: 3px solid var(--c-cyan); }
.post-body p { margin-bottom: 1.35rem; }
.post-body strong,.post-body b { color: var(--c-light); font-weight: 700; }
.post-body ul,.post-body ol { padding-left: 1.4rem; margin-bottom: 1.35rem; }
.post-body li { margin-bottom: .55rem; padding-left: .25rem; }
.post-body ul li::marker { color: var(--c-cyan); }
.post-body ol li::marker { color: var(--c-cyan); font-weight: 700; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 0; display: block; }
.post-body a { color: var(--c-cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { color: var(--c-primary); }
.post-body blockquote {
  margin: 1.75rem 0; padding: 1.1rem 1.5rem;
  background: rgba(137,107,173,.08);
  border-left: 4px solid var(--c-cyan);
  border-radius: 0 10px 10px 0;
  color: var(--c-light); font-style: italic;
}
.post-body blockquote p:last-child { margin-bottom: 0; }
.post-body hr { border: 0; height: 1px; background: var(--c-border); margin: 2.5rem 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: .95rem; }
.post-body th,.post-body td { padding: .7rem 1rem; border: 1px solid var(--c-border); text-align: left; }
.post-body th { background: rgba(255,255,255,.04); color: var(--c-light); font-weight: 700; }
/* Figure articolo: float a 25% della colonna, testo accanto */
.c4y-stock-fig {
  float: left;
  width: 30%;
  min-width: 180px;
  margin: .4rem 1.6rem .9rem 0;
  shape-margin: 1rem;
}
.c4y-stock-fig img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.c4y-stock-fig figcaption { margin-top: .6rem; font-size: .82rem; color: var(--c-muted); text-align: center; }
/* Elementi a tutta larghezza non devono affiancarsi alla figure floatata */
.post-body h2, .post-video, .c4y-inline-cta, .post-cta-box, .post-body table, .post-body blockquote { clear: left; }
/* Video YouTube responsive */
.post-video { position: relative; width: 100%; aspect-ratio: 16/9; margin: 2rem 0; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.post-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* CTA inline a metà articolo */
.c4y-inline-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin: 2.5rem 0; padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(137,107,173,.16), rgba(110,58,245,.1));
  border: 1px solid rgba(137,107,173,.3); border-radius: var(--radius);
}
.c4y-inline-cta-text { display: flex; flex-direction: column; gap: .35rem; min-width: 0; flex: 1; }
.c4y-inline-cta-text strong { color: var(--c-white); font-size: 1.05rem; font-weight: 700; }
.c4y-inline-cta-text span { color: var(--c-muted); font-size: .9rem; line-height: 1.5; }
.c4y-inline-cta .btn { flex-shrink: 0; }
.post-body-preview { opacity: .85; }
.post-scrape-notice { margin-top: 2rem; padding: 1.5rem; background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--radius); }
.post-cta-box { margin-top: 3rem; padding: 2rem; background: linear-gradient(135deg,rgba(137,107,173,.15),rgba(110,58,245,.1)); border: 1px solid rgba(137,107,173,.3); border-radius: var(--radius); text-align: center; }
.post-cta-box p { font-size: 1.1rem; color: var(--c-light); margin-bottom: 1.25rem; }
.blog-post-sidebar { position: sticky; top: 100px; }
.sidebar-card { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 1.5rem; }
.sidebar-card h4 { font-size: 1rem; color: var(--c-light); margin-bottom: .75rem; }
.sidebar-card p { font-size: .875rem; color: var(--c-muted); line-height: 1.6; margin-bottom: 1rem; }
.sidebar-service-list { list-style: none; padding: 0; margin: 0; }
.sidebar-service-list li { border-bottom: 1px solid var(--c-border); }
.sidebar-service-list li:last-child { border-bottom: none; }
.sidebar-service-list a { display: block; padding: .6rem 0; font-size: .875rem; color: var(--c-muted); transition: color .2s; }
.sidebar-service-list a:hover { color: var(--c-cyan); }
.blog-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--c-border); }
.blog-post-nav-item { display: flex; flex-direction: column; gap: .4rem; padding: 1.25rem; background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--radius); transition: border-color .2s; }
.blog-post-nav-item:hover { border-color: rgba(137,107,173,.3); }
.nav-dir { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c-cyan); }
.nav-title { font-size: .9rem; color: var(--c-light); line-height: 1.4; }
.blog-post-nav-next { text-align: right; }

@media (max-width: 900px) {
  .blog-post-layout { grid-template-columns: 1fr; }
  .blog-post-sidebar { position: static; }
  .blog-post-nav { grid-template-columns: 1fr; }
  .blog-post-nav-next { text-align: left; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--c-border); }
.footer-main { padding: 5rem 0; }
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 280px 1fr; gap: 5rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-tagline { color: var(--c-muted); font-size: .875rem; line-height: 1.7; }
.footer-contact { display: flex; flex-direction: column; gap: .5rem; }
.footer-contact-link { display: flex; align-items: center; gap: .5rem; color: var(--c-muted); font-size: .875rem; transition: color .2s; }
.footer-contact-link:hover { color: var(--c-cyan); }
.footer-contact-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.footer-nav { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; }
.footer-heading { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: rgba(255,255,255,.78); margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { color: var(--c-muted); font-size: .875rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--c-light); }
/* Colonna certificazioni: spinge "Sotto attacco?" in fondo, allineato all'ultimo servizio */
.footer-col:has(.footer-emergency) { display: flex; flex-direction: column; }
.footer-certs { display: grid; grid-template-columns: repeat(2, 1fr); justify-items: center; gap: 1.5rem .75rem; margin: 1rem 0 2rem; }
.footer-cert { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; transition: transform .2s; }
.footer-cert:hover { transform: translateY(-2px); }
.footer-cert--full { grid-column: 1 / -1; }
.footer-cert-ico { width: 58px; height: 58px; flex-shrink: 0; display: block; object-fit: contain; }
.footer-cert-txt { display: block; line-height: 1.3; font-size: .7rem; color: rgba(255,255,255,.68); }
.footer-cert-txt strong { font-size: .8rem; font-weight: 700; color: rgba(255,255,255,.92); letter-spacing: .02em; }
.footer-emergency { margin-top: auto; }
.footer-emergency-note { display: block; font-size: .72rem; color: rgba(255,255,255,.5); margin-top: .5rem; line-height: 1.35; max-width: 220px; }
/* Nota "linea riservata alle aziende" (home + contatti). Il colore base vale sul
   fondo scuro; dentro .alert-banner prevalgono le regole del banner (chiaro/scuro). */
.emg-biz-note { font-size: .8rem; color: rgba(255,255,255,.72); margin-top: .85rem; line-height: 1.45; }
.emg-biz-note strong, .emg-biz-note a { color: var(--c-cyan); font-weight: 700; }
.badge-emergency { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-cyan); font-weight: 700; }
.btn-emergency { display: inline-block; background: #5a3f8a; color: #fff; padding: .35rem .75rem; font-size: .75rem; font-weight: 700; border-radius: 6px; margin-top: .4rem; transition: background .2s; }
.btn-emergency:hover { background: #6b4ca0; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.04); padding: 1.5rem 0; }
.footer-bottom .footer-container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; grid-template-columns: none; }
.footer-bottom p { color: var(--c-muted); font-size: .8rem; }
.footer-bottom a { color: var(--c-cyan); }

/* ─── Scroll Reveal Animations ─── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.reveal-scale { opacity: 0; transform: scale(.92); transition: opacity .8s var(--ease), transform .8s var(--ease-spring); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }
[style*="animation-delay"] { opacity: 0; } /* handled by JS */
.divider { border: none; border-top: 1px solid var(--c-border); }
.fade-up { opacity: 0; transform: translateY(25px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 1200px) {
  .tiles-grid { grid-template-columns: repeat(2,1fr); }
  .tile-wide { grid-column: span 2; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-card:nth-child(2) { border-right: none; }
}
@media (max-width: 1024px) {
  .scroll-narrative { display: block; }
  .scroll-sticky-side { position: relative; top: auto; width: 100%; height: 50vh; }
  .scroll-panel { height: auto; min-height: 0; padding: 3rem 1.5rem; }
  .service-layout { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .emergency-inner { grid-template-columns: 1fr; }
  .emergency-actions { flex-direction: row; justify-content: flex-start; }
  .case-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; gap: 3rem; }
  .footer-nav { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .emergency-section-v2 { padding: 5rem 0; min-height: 0; }
  .emg-title { font-size: clamp(2.4rem, 9vw, 3.8rem); }
  .emg-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .emg-modal { padding: 2rem 1.25rem 1.5rem; border-radius: 16px; }
  .emg-modal-phone { font-size: 1.5rem; }
}
/* Nav → hamburger già da 1024px: la barra orizzontale con 6 voci + CTA non
   sta comoda sotto questa larghezza (le etichette andavano a capo). */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-menu { display: none; position: absolute; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,.97); flex-direction: column; align-items: stretch; padding: 0 0 2rem; overflow-y: auto; z-index: 1001; }
  .nav-menu.open { display: flex; }
  .nav-mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; height: var(--nav-h); border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0; list-style: none; }
  .nav-mobile-header img { height: 28px; width: auto; }
  .nav-menu-close { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 50%; color: rgba(255,255,255,.8); flex-shrink: 0; cursor: pointer; transition: background .2s, color .2s; }
  .nav-menu-close svg { width: 16px; height: 16px; }
  .nav-menu-close:hover { background: rgba(255,255,255,.14); color: #fff; }
  .has-dropdown { position: static; }
  .dropdown-menu { position: static; transform: none; left: auto; min-width: 0; max-height: none; opacity: 1; visibility: visible; box-shadow: none; background: transparent; border: none; display: none; padding: .5rem 0; }
  /* :focus-within/:hover keep higher specificity than the reset above — neutralize the
     desktop translateX(-50%) so the open submenu doesn't slide off the left edge on tap */
  .has-dropdown:hover .dropdown-menu, .has-dropdown:focus-within .dropdown-menu { transform: none; }
  .dropdown-menu.open { display: block; }
  .nav-link, .dropdown-toggle { font-size: .95rem; padding: .75rem 1rem; width: 100%; justify-content: space-between; white-space: normal; }
  .nav-phone { margin: .75rem 1.25rem 0; justify-content: center; padding: .85rem 1rem; font-size: 1rem; border-radius: 12px; }
}
/* Desktop stretto (1025–1199): telefono compatto solo icona, così non affolla la barra */
@media (max-width: 1199px) and (min-width: 1025px) {
  .nav-phone span { display: none; }
  .nav-phone { padding: .5rem .65rem; margin-left: .4rem; }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 5rem 0; }
  .tiles-grid { grid-template-columns: 1fr; }
  .tile-wide { grid-column: span 1; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom .footer-container { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cta-btns { flex-direction: column; align-items: center; }
}

/* ─── WhatsApp Floating Button ─── */
.whatsapp-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform .3s ease, box-shadow .3s ease;
  text-decoration: none;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); color: #fff; }
.whatsapp-btn svg { width: 30px; height: 30px; fill: #fff; }
.whatsapp-tooltip {
  position: absolute; right: 70px; bottom: 50%; transform: translateY(50%);
  background: #333; color: #fff; font-size: 13px; padding: .4rem .8rem; border-radius: 3px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }

/* ─── Scroll to top (sopra il pulsante WhatsApp, priorità a WhatsApp) ─── */
.scroll-top-btn {
  position: fixed;
  /* WhatsApp: bottom 24px + 60px altezza + 16px gap = 100px */
  bottom: 100px; right: 30px; z-index: 998;
  width: 48px; height: 48px; border-radius: 50%;
  background: #896BAD; color: #fff; border: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.28);
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease, box-shadow .3s ease, background .2s ease;
}
.scroll-top-btn.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: #7a5b9d; box-shadow: 0 6px 24px rgba(0,0,0,.4); }
.scroll-top-btn svg { width: 22px; height: 22px; stroke: #fff; fill: none; }
@media (max-width: 768px) {
  .scroll-top-btn { width: 44px; height: 44px; bottom: 96px; right: 28px; }
}

/* ─── Hero SEO h1 label ─── */
.hero-seo-h1 { display: block; font-size: clamp(.72rem, 1.1vw, .85rem); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(137,107,173,.85); margin-bottom: .75rem; }

/* ─── Emergency image ─── */
.emergency-img { border-radius: var(--radius); overflow: hidden; }
.emergency-img img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); }
.emergency-text-col { display: flex; flex-direction: column; }
.emergency-text-col .emergency-actions { align-items: flex-start; }

/* ─── Chi siamo section ─── */
.chi-siamo-section { background: #111522; padding: 8rem 0; }
.chi-siamo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.chi-siamo-content { display: flex; flex-direction: column; gap: 1.1rem; }
.chi-siamo-content h2 { border-left: 4px solid var(--c-cyan); padding-left: 1.1rem; margin-bottom: .5rem; }
.chi-siamo-content p { color: rgba(229,231,235,.72); line-height: 1.8; font-size: .95rem; }
.chi-siamo-content strong { color: var(--c-light); }
.chi-siamo-content ul { display: flex; flex-direction: column; gap: .4rem; margin-top: .25rem; }
.chi-siamo-content ul li { color: rgba(229,231,235,.72); font-size: .9rem; display: flex; align-items: flex-start; gap: .6rem; }
.chi-siamo-content ul li::before { content: '•'; color: var(--c-cyan); font-size: 1.1rem; line-height: 1.4; flex-shrink: 0; }
.chi-siamo-media { border-radius: var(--radius); overflow: hidden; }
.yt-thumb { position: relative; aspect-ratio: 16/9; cursor: pointer; display: block; overflow: hidden; border-radius: var(--radius); }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.yt-thumb:hover img { transform: scale(1.04); }
.yt-play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 1.25rem 1.5rem; background: rgba(0,0,0,.38); transition: background .3s; }
.yt-thumb:hover .yt-play { background: rgba(0,0,0,.2); }
.yt-play-btn { width: 66px; height: 66px; background: rgba(137,107,173,.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .25s var(--ease-spring), background .25s; }
.yt-thumb:hover .yt-play-btn { transform: scale(1.12); background: var(--c-cyan); }
.yt-play-btn svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }

/* ─── Webinar home section ─── */
.webinar-home-section { padding: 8rem 0; background: var(--c-surface); }
.webinar-home-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 3rem; }
.webinar-home-card { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; transition: all .3s var(--ease); }
.webinar-home-card:hover { transform: translateY(-5px); border-color: rgba(137,107,173,.3); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.webinar-home-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.webinar-home-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.webinar-home-card:hover .webinar-home-thumb img { transform: scale(1.05); }
.webinar-home-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.42); border: none; cursor: pointer; transition: background .25s; padding: 0; }
.webinar-home-play:hover { background: rgba(0,0,0,.6); }
.webinar-home-play div { width: 50px; height: 50px; background: var(--c-cyan); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.webinar-home-play:hover div { transform: scale(1.15); }
.webinar-home-play svg { width: 18px; height: 18px; fill: #fff; margin-left: 3px; }
.webinar-home-body { padding: 1.5rem; }
.webinar-home-body h3 { font-size: .95rem; font-weight: 700; line-height: 1.5; margin-bottom: .5rem; color: var(--c-light); }
.webinar-home-body p { font-size: .82rem; color: var(--c-muted); line-height: 1.6; }

/* ─── Case history section ─── */
.case-history-section { padding: 8rem 0; }
.case-history-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 3rem; }
.case-history-card { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: all .3s var(--ease); }
.case-history-card:hover { transform: translateY(-4px); border-color: rgba(137,107,173,.3); }
.case-history-img { aspect-ratio: 16/9; overflow: hidden; }
.case-history-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.case-history-card:hover .case-history-img img { transform: scale(1.04); }
.case-history-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.case-history-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; color: var(--c-light); }
.case-history-body p { font-size: .84rem; color: var(--c-muted); line-height: 1.6; flex: 1; margin-bottom: 1.5rem; }
.case-history-dl { display: flex; justify-content: center; }
.case-dl-btn { width: 46px; height: 46px; background: var(--c-cyan); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background .25s, transform .25s; border: none; cursor: pointer; }
.case-dl-btn:hover { background: #6d4f8e; transform: translateY(-2px); }
.case-dl-btn svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }

/* ─── Cyber Risk section ─── */
.cyber-risk-section { padding: 7rem 0; background: var(--c-surface); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.cyber-risk-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.cyber-risk-inner h2 { margin-bottom: 1.5rem; font-size: clamp(1.75rem, 3.4vw, 2.7rem); }
.cyber-risk-inner p { color: var(--c-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 2.5rem; }

/* ─── Dove operiamo section ─── */
.dove-operiamo-section { padding: 8rem 0; }
.dove-icon { width: 64px; height: 64px; background: rgba(137,107,173,.1); border: 1px solid rgba(137,107,173,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.dove-icon svg { width: 30px; height: 30px; stroke: var(--c-cyan); fill: none; stroke-width: 2; }
.dove-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 3rem; }
.dove-card { background: var(--c-panel); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 2.5rem 2rem; text-align: center; transition: border-color .3s; }
.dove-card:hover { border-color: rgba(137,107,173,.3); }
.dove-card h3 { font-size: 1.1rem; margin-bottom: .75rem; color: var(--c-cyan); }
.dove-card p { color: var(--c-muted); font-size: .875rem; line-height: 1.7; }

/* ─── Responsive additions ─── */
@media (max-width: 1200px) {
  .webinar-home-grid { grid-template-columns: repeat(2,1fr); }
  .case-history-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 1024px) {
  .chi-siamo-inner { grid-template-columns: 1fr; gap: 3rem; }
  .emergency-inner { grid-template-columns: 1fr; }
  .dove-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .webinar-home-grid { grid-template-columns: 1fr; }
  .case-history-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   GLASSMORPHISM — Frosted Glass UI System
   Richiede backdrop-filter (Chrome 76+, Firefox 103+, Safari 9+)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --glass-bg:        rgba(255,255,255,.05);
  --glass-bg-tint:   rgba(137,107,173,.07);
  --glass-border:    rgba(255,255,255,.09);
  --glass-border-p:  rgba(137,107,173,.25);
  --glass-blur:      blur(20px);
  --glass-shadow:    0 8px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  --glass-shadow-p:  0 8px 32px rgba(137,107,173,.25), inset 0 1px 0 rgba(137,107,173,.1);
}

/* ── Ambient glow orbs ─────────────────────────────────────────
   Senza di essi il blur non ha nulla da mostrare sul bg scuro.
   ─────────────────────────────────────────────────────────────*/
.stats-section,
.webinar-home-section,
.case-history-section,
.cyber-risk-section,
.dove-operiamo-section,
.chi-siamo-section { overflow: hidden; }

.stats-section::before,
.webinar-home-section::before,
.case-history-section::before,
.dove-operiamo-section::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137,107,173,.18) 0%, transparent 68%);
  pointer-events: none; z-index: 0;
}
.stats-section::before        { top: -250px; left: -150px; }
.webinar-home-section::before { top:  -80px; right: -200px; }
.case-history-section::before { bottom: -200px; left: -100px; }
.dove-operiamo-section::after { top: -150px; right: -150px; }

.chi-siamo-section::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(137,107,173,.2) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events: none; z-index: 0;
}

/* Tutti i container diretti sopra gli orb */
.stats-section > *,
.webinar-home-section > *,
.case-history-section > *,
.dove-operiamo-section > *,
.chi-siamo-section > * { position: relative; z-index: 1; }

/* ── Navigation ────────────────────────────────────────────── */
.c4y-nav.scrolled {
  background: rgba(15,17,23,.6) !important;
  backdrop-filter: blur(32px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 4px 32px rgba(0,0,0,.6), inset 0 -1px 0 rgba(255,255,255,.04) !important;
}

/* ── Hero eyebrow badge ────────────────────────────────────── */
.hero-eyebrow {
  background: rgba(137,107,173,.16) !important;
  backdrop-filter: blur(14px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(180%) !important;
  border: 1px solid rgba(137,107,173,.32) !important;
  box-shadow: 0 4px 20px rgba(137,107,173,.25) !important;
}

/* ── Hero scroll arrow ─────────────────────────────────────── */
.hero-scroll-arrow {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,.18) !important;
}

/* ── Stats grid ────────────────────────────────────────────── */
.stats-grid {
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,.07) !important;
  box-shadow: 0 8px 48px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
}
.stat-card {
  background: transparent !important;
  border-right: 1px solid rgba(255,255,255,.06) !important;
}
.stat-card:hover { background: rgba(137,107,173,.08) !important; }

/* ── Scroll panels ─────────────────────────────────────────── */
.scroll-panel {
  background: rgba(15,17,23,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(255,255,255,.05) !important;
}
.scroll-panel:hover { background: rgba(137,107,173,.07); }

/* ── Emergency inner ───────────────────────────────────────── */
.emergency-inner {
  background: rgba(137,107,173,.05);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(137,107,173,.13);
  border-radius: 24px;
  padding: 3.5rem;
  box-shadow: 0 8px 48px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}

/* ── Chi siamo content panel ──────────────────────────────── */
.chi-siamo-content {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 2.75rem 2.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
}

/* ── Blog / case cards ─────────────────────────────────────── */
.case-card,
.blog-card {
  background: rgba(255,255,255,.04) !important;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.07) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.05);
}
.case-card:hover,
.blog-card:hover {
  background: rgba(137,107,173,.09) !important;
  border-color: rgba(137,107,173,.32) !important;
  box-shadow: 0 16px 52px rgba(0,0,0,.55), 0 0 0 1px rgba(137,107,173,.18), inset 0 1px 0 rgba(255,255,255,.07);
}

/* ── Webinar home cards ────────────────────────────────────── */
.webinar-home-card {
  background: rgba(255,255,255,.04) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.07) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05);
}
.webinar-home-card:hover {
  background: rgba(137,107,173,.09) !important;
  border-color: rgba(137,107,173,.3) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,.5), inset 0 1px 0 rgba(137,107,173,.1);
}

/* ── Case history cards ────────────────────────────────────── */
.case-history-card {
  background: rgba(255,255,255,.04) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.07) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.05);
}
.case-history-card:hover {
  background: rgba(137,107,173,.09) !important;
  border-color: rgba(137,107,173,.3) !important;
}

/* ── Cyber Risk inner — no panel, content floats on section bg ─ */
.cyber-risk-inner {
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* ── Dove cards ────────────────────────────────────────────── */
.dove-card {
  background: rgba(255,255,255,.04) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.07) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.05);
}
.dove-card:hover {
  background: rgba(137,107,173,.09) !important;
  border-color: rgba(137,107,173,.3) !important;
}

/* ── CTA content ───────────────────────────────────────────── */
.cta-content {
  background: rgba(15,17,23,.6);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 28px;
  padding: 5rem 4rem;
  box-shadow: 0 8px 56px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07);
}

/* ── VAPT tier cards ───────────────────────────────────────── */
.vapt-tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.vapt-tier-card {
  position: relative;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 2.25rem 2.25rem 2.25rem 2.25rem;
  backdrop-filter: blur(14px);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  overflow: hidden;
}
.vapt-tier-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, rgba(137,107,173,.06) 0%, transparent 60%);
  pointer-events: none;
}
.vapt-tier-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(0,0,0,.5), 0 0 0 1px rgba(137,107,173,.3);
  border-color: rgba(137,107,173,.35);
}
.vapt-tier-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(137,107,173,.12);
  border: 1px solid rgba(137,107,173,.2);
  border-radius: 14px;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}
.vapt-tier-icon svg { width: 24px; height: 24px; stroke: var(--c-cyan); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.vapt-tier-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; color: var(--c-light); }
.vapt-tier-card .vapt-desc { color: var(--c-muted); font-size: .875rem; line-height: 1.65; margin-bottom: 1.25rem; }
.vapt-tier-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.vapt-tier-card li { font-size: .83rem; color: rgba(229,231,235,.78); padding-left: 1.2rem; position: relative; line-height: 1.5; }
.vapt-tier-card li::before { content: '›'; position: absolute; left: 0; color: var(--c-cyan); font-weight: 700; }
@media (max-width: 768px) { .vapt-tiers { grid-template-columns: 1fr; } }

/* ── Dropdown menu ─────────────────────────────────────────── */
.dropdown-menu {
  background: rgb(15,17,23) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  box-shadow: 0 24px 72px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.06) !important;
}

/* ── Btn outline ───────────────────────────────────────────── */
.btn-outline {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-outline:hover { background: rgba(137,107,173,.14); }

/* ── Sidebar CTA / nav (service pages) ────────────────────── */
.sidebar-cta,
.sidebar-nav {
  background: rgba(255,255,255,.04) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,.07) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}

/* ── Contact form inputs ───────────────────────────────────── */
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.04) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.09) !important;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: rgba(137,107,173,.08) !important;
  border-color: var(--c-cyan) !important;
  box-shadow: 0 0 0 3px rgba(137,107,173,.18) !important;
}

/* ── Mobile nav overlay ────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-menu {
    background: #141720 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .nav-cta {
    margin: .5rem 1rem 0 !important;
    background: var(--c-cyan) !important;
    color: #fff !important;
    justify-content: center !important;
    width: calc(100% - 2rem) !important;
  }
  .cyber-risk-inner { padding: 3rem 1.5rem; }
  .cta-content { padding: 3rem 1.5rem; }
  .emergency-inner { padding: 2rem 1.25rem; }
}

/* ═══════════════════════════════════════════════════════════════
   LUMINOUS GLASS EFFECTS — Hover, Motion & Interactive Light
   ═══════════════════════════════════════════════════════════════ */

/* ── Cursor glow orb (injected via JS) ─────────────────────── */
.cursor-glow {
  position: fixed;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(137,107,173,.11) 0%, rgba(137,107,173,.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: screen;
  will-change: transform;
  transition: transform .08s linear;
}

/* ── Ensure relative + overflow on all glass cards ─────────── */
.webinar-home-card,
.case-history-card,
.dove-card,
.case-card,
.blog-card { position: relative; overflow: hidden; }

/* ── Shimmer sweep :: after (hover) ────────────────────────── */
.webinar-home-card::after,
.case-history-card::after,
.dove-card::after,
.case-card::after,
.blog-card::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,.03) 35%,
    rgba(255,255,255,.09) 50%,
    rgba(255,255,255,.03) 65%,
    transparent 100%
  );
  transform: skewX(-12deg);
  transition: left .65s var(--ease);
  pointer-events: none;
  z-index: 10;
  border-radius: inherit;
}
.webinar-home-card:hover::after,
.case-history-card:hover::after,
.dove-card:hover::after,
.case-card:hover::after,
.blog-card:hover::after { left: 130%; }

/* ── Enhanced glow border + lift on hover ──────────────────── */
.webinar-home-card:hover {
  background: rgba(137,107,173,.1) !important;
  border-color: rgba(137,107,173,.38) !important;
  box-shadow:
    0 0 0 1px rgba(137,107,173,.4),
    0 0 28px rgba(137,107,173,.28),
    0 20px 52px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.1) !important;
  transform: translateY(-5px);
}
.case-history-card:hover {
  background: rgba(137,107,173,.1) !important;
  border-color: rgba(137,107,173,.38) !important;
  box-shadow:
    0 0 0 1px rgba(137,107,173,.4),
    0 0 28px rgba(137,107,173,.28),
    0 20px 52px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.1) !important;
  transform: translateY(-5px);
}
.dove-card:hover {
  background: rgba(137,107,173,.1) !important;
  border-color: rgba(137,107,173,.38) !important;
  box-shadow:
    0 0 0 1px rgba(137,107,173,.4),
    0 0 28px rgba(137,107,173,.28),
    0 20px 52px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.1) !important;
  transform: translateY(-5px);
}
.case-card:hover,
.blog-card:hover {
  background: rgba(137,107,173,.1) !important;
  border-color: rgba(137,107,173,.38) !important;
  box-shadow:
    0 0 0 1px rgba(137,107,173,.4),
    0 0 28px rgba(137,107,173,.28),
    0 20px 60px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.1) !important;
  transform: translateY(-5px);
}

/* ── Stat card hover lift + glow ───────────────────────────── */
.stat-card { transition: background .25s, transform .3s var(--ease), box-shadow .3s var(--ease) !important; }
.stat-card:hover {
  background: rgba(137,107,173,.1) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(137,107,173,.22), inset 0 1px 0 rgba(255,255,255,.07) !important;
}

/* ── Transition base for all hoverable cards ───────────────── */
.webinar-home-card,
.case-history-card,
.dove-card,
.case-card,
.blog-card {
  transition:
    transform .3s var(--ease),
    box-shadow .3s var(--ease),
    background .25s,
    border-color .25s !important;
}

/* ── 3D tilt — applied via JS class ────────────────────────── */
.glass-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}
.glass-tilt:not(:hover) {
  transition: transform .5s var(--ease), box-shadow .3s var(--ease) !important;
}

/* ── Glass shine spotlight (injected div via JS) ──────────── */
.glass-shine-orb {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(137,107,173,.22) 0%, transparent 55%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity .3s ease;
}

/* ── Primary button shimmer + glow ─────────────────────────── */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg);
  transition: left .5s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:hover {
  box-shadow:
    0 0 24px rgba(137,107,173,.5),
    0 8px 32px rgba(137,107,173,.3),
    0 0 0 1px rgba(137,107,173,.5) !important;
  transform: translateY(-2px) scale(1.01);
}
.btn-primary { transition: transform .2s var(--ease), box-shadow .25s var(--ease); }

/* ── Red button hover glow ─────────────────────────────────── */
.btn-red:hover {
  box-shadow:
    0 0 24px rgba(137,107,173,.5),
    0 8px 32px rgba(137,107,173,.3),
    0 0 0 1px rgba(137,107,173,.45) !important;
  transform: translateY(-2px) scale(1.01);
}
.btn-red { transition: transform .2s var(--ease), box-shadow .25s var(--ease); }

/* ── Pulsing glow — cyber risk panel ──────────────────────── */
@keyframes glass-pulse {
  0%, 100% {
    box-shadow: 0 8px 52px rgba(0,0,0,.45), 0 0 0 1px rgba(137,107,173,.22),
                inset 0 1px 0 rgba(137,107,173,.12);
  }
  50% {
    box-shadow: 0 8px 72px rgba(0,0,0,.55), 0 0 48px rgba(137,107,173,.28),
                inset 0 1px 0 rgba(137,107,173,.22);
  }
}
/* cyber-risk-inner no longer has panel — pulse removed */

/* ── Pulsing glow — emergency panel ───────────────────────── */
@keyframes red-pulse-glow {
  0%, 100% {
    box-shadow: 0 8px 48px rgba(0,0,0,.45), 0 0 0 1px rgba(137,107,173,.13),
                inset 0 1px 0 rgba(255,255,255,.04);
  }
  50% {
    box-shadow: 0 8px 64px rgba(0,0,0,.5), 0 0 36px rgba(137,107,173,.22),
                inset 0 1px 0 rgba(170,143,201,.08);
  }
}
.emergency-inner { animation: red-pulse-glow 3.5s ease-in-out infinite; }

/* ── Eyebrow badge glow pulse ──────────────────────────────── */
@keyframes eyebrow-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(137,107,173,.22); }
  50%       { box-shadow: 0 0 28px rgba(137,107,173,.48), 0 0 56px rgba(137,107,173,.15); }
}
.hero-eyebrow { animation: eyebrow-glow 3s ease-in-out infinite; }

/* ── Dove city icon float ──────────────────────────────────── */
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}
.dove-icon { animation: icon-float 4s ease-in-out infinite; }

/* ── YouTube play button pulse (chi siamo) ─────────────────── */
.yt-play-btn { animation: eyebrow-glow 2.5s ease-in-out infinite; }

/* ── Nav link glow on hover ────────────────────────────────── */
.nav-link:hover {
  color: var(--c-white) !important;
  text-shadow: 0 0 18px rgba(137,107,173,.55);
}

/* ── Chi siamo content panel hover ────────────────────────── */
.chi-siamo-content { transition: box-shadow .35s var(--ease); }
.chi-siamo-content:hover {
  box-shadow: 0 12px 56px rgba(0,0,0,.5), 0 0 32px rgba(137,107,173,.18),
              inset 0 1px 0 rgba(255,255,255,.08) !important;
}

/* ── Mobile: disable heavy effects ────────────────────────── */
@media (hover: none) {
  .cursor-glow { display: none !important; }
  .glass-tilt  { transform: none !important; }
  .webinar-home-card:hover::after,
  .case-history-card:hover::after,
  .dove-card:hover::after,
  .case-card:hover::after,
  .blog-card:hover::after { left: -80% !important; }
}

/* ── Aggressive reveal-from-bottom ─────────────────────────── */
@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(80px) scale(.97);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.reveal-hard {
  opacity: 0;
  transform: translateY(80px) scale(.97);
}
.reveal-hard.visible {
  animation: drop-in .7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ── Cyber Risk: oversized centered title ──────────────────── */
.cyber-risk-inner h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 1.5rem;
}
.cyber-risk-inner p {
  max-width: 680px;
  margin: 0 auto 0;
  font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICE PAGE GLASS — Feature items, cards, layout
   ═══════════════════════════════════════════════════════════════ */

.page-service .service-content p,
.page-service .service-content li,
.page-service .prose p { color: rgba(229,231,235,.83) !important; line-height: 1.85; }
.page-service h2,.page-service h3,.page-service h4 { color: var(--c-white) !important; }

/* Titoli di sezione in-content: scala uniforme su tutte le pagine servizio
   (i bare <h2> ereditavano la scala hero globale fino a 64px → troppo grandi) */
.service-content h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  line-height: 1.2; letter-spacing: -.015em;
  margin: 0 0 1.1rem;
}
.service-content h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.3; margin: 0 0 .6rem;
}

.feature-list { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
.feature-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px; padding: 1.25rem 1.5rem;
  position: relative; overflow: hidden;
  transition: all .3s var(--ease);
}
.feature-item::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.07), transparent);
  transform: skewX(-12deg); transition: left .6s var(--ease);
  pointer-events: none; z-index: 1;
}
.feature-item:hover::after { left: 130%; }
.feature-item:hover {
  background: rgba(137,107,173,.09); border-color: rgba(137,107,173,.3);
  transform: translateX(4px);
  box-shadow: 0 4px 24px rgba(137,107,173,.15), inset 0 1px 0 rgba(255,255,255,.07);
}
.feature-bullet {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #896BAD, #6d4fa0); border: none;
  margin-top: 2px; box-shadow: 0 0 10px rgba(137,107,173,.45);
  position: relative;
}
/* checkmark — feature attiva/inclusa, non un selettore vuoto */
.feature-bullet::before {
  content: ''; position: absolute;
  left: 8px; top: 4px;
  width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.feature-item-content h4 { font-size: .95rem; font-weight: 700; margin-bottom: .3rem; color: var(--c-white); }
.feature-item-content p { font-size: .875rem; color: rgba(229,231,235,.65); line-height: 1.6; margin: 0; }

/* ── Services grid (pagina servizi) ── */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .srv-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .srv-grid { grid-template-columns: 1fr; } }

.srv-card {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  position: relative;
  overflow: hidden;
  transition: all .3s var(--ease);
}
.srv-card::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.06), transparent);
  transform: skewX(-12deg); transition: left .6s var(--ease);
  pointer-events: none;
}
.srv-card:hover::after { left: 130%; }
.srv-card:hover {
  background: rgba(137,107,173,.09);
  border-color: rgba(137,107,173,.3);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(137,107,173,.2), 0 16px 40px rgba(0,0,0,.4);
}
.srv-card--red:hover {
  background: rgba(137,107,173,.07);
  border-color: rgba(137,107,173,.3);
  box-shadow: 0 0 0 1px rgba(137,107,173,.2), 0 16px 40px rgba(0,0,0,.4);
}
.srv-icon {
  width: 48px; height: 48px;
  background: rgba(137,107,173,.1);
  border: 1px solid rgba(137,107,173,.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-cyan);
  flex-shrink: 0;
}
.srv-icon svg { width: 22px; height: 22px; }
.srv-icon--red {
  background: rgba(137,107,173,.1);
  border-color: rgba(137,107,173,.25);
  color: #896BAD;
}
.srv-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--c-white); margin: 0; }
.srv-card p  { font-size: .88rem; color: rgba(229,231,235,.6); line-height: 1.65; margin: 0; flex: 1; }
.srv-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 600;
  color: var(--c-cyan); text-decoration: none;
  margin-top: auto;
  transition: gap .2s;
}
.srv-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.srv-link:hover { gap: .7rem; }
.srv-link--red { color: #896BAD; }

/* ── Partner — Intro a due colonne (testo + box) ─────────────── */
.partner-intro {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 3.5rem;
  align-items: start;
}
@media (max-width: 980px) { .partner-intro { grid-template-columns: 1fr; gap: 2.5rem; } }
.partner-intro-text { position: sticky; top: 110px; }
@media (max-width: 980px) { .partner-intro-text { position: static; } }
.partner-intro-text h2 { margin: .35rem 0 1.25rem; }
.partner-intro-text p {
  color: rgba(229,231,235,.6);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: .95rem;
}
.partner-intro-text strong { color: var(--c-white); font-weight: 700; }
.partner-benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 560px) { .partner-benefits-grid { grid-template-columns: 1fr; } }
[data-theme="light"] .partner-intro-text p { color: var(--c-muted) !important; }
[data-theme="light"] .partner-intro-text strong { color: var(--c-light) !important; }

/* ── Partner — Come funziona (step) ──────────────────────────── */
.partner-steps-section { background: rgba(255,255,255,.015); }
.partner-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: pstep;
}
@media (max-width: 860px) { .partner-steps { grid-template-columns: 1fr; } }
.partner-step {
  position: relative;
  padding: 2.25rem 1.75rem 2rem;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.partner-step:hover { border-color: rgba(137,107,173,.3); transform: translateY(-4px); }
.partner-step-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--c-cyan), #b794e6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  opacity: .9;
}
.partner-step h3 { font-size: 1.1rem; font-weight: 700; color: var(--c-white); margin: 0 0 .6rem; }
.partner-step p  { font-size: .9rem; color: rgba(229,231,235,.6); line-height: 1.65; margin: 0; }

[data-theme="light"] .partner-steps-section { background: rgba(0,0,0,.015); }
[data-theme="light"] .partner-step { background: rgba(255,255,255,.88) !important; border-color: rgba(0,0,0,.09) !important; box-shadow: 0 4px 20px rgba(0,0,0,.06); }
[data-theme="light"] .partner-step:hover { border-color: rgba(109,79,160,.3) !important; }
[data-theme="light"] .partner-step h3 { color: var(--c-light) !important; }
[data-theme="light"] .partner-step p { color: var(--c-muted) !important; }

/* ── Partner: "Una vera alleanza" (terzo blocco) ───────────────── */
.partner-alliance { display: grid; grid-template-columns: 0.6fr 1fr; gap: 3.5rem; align-items: center; }
.partner-alliance-media { display: flex; flex-direction: column; gap: 1.25rem; }
.partner-alliance-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-border); box-shadow: 0 16px 44px rgba(0,0,0,.3); aspect-ratio: 16 / 10; }
.partner-alliance-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.partner-alliance-media figure:hover img { transform: scale(1.05); }
.partner-alliance-body .eyebrow { margin-bottom: .75rem; }
.partner-alliance-body h2 { margin-bottom: 1.25rem; }
.partner-alliance-text { color: rgba(229,231,235,.78); line-height: 1.85; font-size: 1.02rem; margin: 0; }
@media (max-width: 860px) { .partner-alliance { grid-template-columns: 1fr; gap: 2.25rem; } }
[data-theme="light"] .partner-alliance-text { color: var(--c-muted) !important; }
[data-theme="light"] .partner-alliance-media figure { border-color: rgba(0,0,0,.09); box-shadow: 0 10px 36px rgba(0,0,0,.1); }

/* legacy .service-card kept for other pages */
.service-card {
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative; overflow: hidden;
  transition: all .3s var(--ease);
  display: flex; flex-direction: column;
}
.service-card .btn { margin-top: auto; }

/* Full-width content banner used to break up long text sections */
.content-banner {
  margin: 2.75rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(137,107,173,.28);
  box-shadow: 0 14px 44px rgba(0,0,0,.28);
}
.content-banner svg { display: block; width: 100%; height: auto; }
[data-theme="light"] .content-banner { box-shadow: 0 12px 36px rgba(109,79,160,.16); border-color: rgba(109,79,160,.22); }

/* App cards with brand logos (backup-mail) */
.app-card { flex-direction: row; align-items: center; gap: 1rem; }
.app-card .app-logo { flex: 0 0 auto; display: inline-flex; }
.app-card .app-logo svg { width: 42px; height: 42px; display: block; }
.app-card .app-text { min-width: 0; }
.app-card .app-vendor { display: block; font-size: .8rem; color: rgba(229,231,235,.6); }
.app-card h4 { margin: .1rem 0 0; }
[data-theme="light"] .app-card .app-vendor { color: var(--c-muted) !important; }
.service-card::after {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.07), transparent);
  transform: skewX(-12deg); transition: left .6s var(--ease);
  pointer-events: none; z-index: 1;
}
.service-card:hover::after { left: 130%; }
.service-card:hover {
  background: rgba(137,107,173,.09); border-color: rgba(137,107,173,.28);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(137,107,173,.25), 0 12px 40px rgba(0,0,0,.45),
              inset 0 1px 0 rgba(255,255,255,.08);
}
.service-card h4 { font-size: 1.05rem; font-weight: 700; color: var(--c-white); margin: 0 0 .5rem; }
.service-card p  { font-size: .88rem; color: rgba(229,231,235,.6); line-height: 1.65; margin: 0; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(137,107,173,.2);
  border-radius: 20px; padding: 2.5rem 3rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06);
}
.cta-band:hover { border-color: rgba(137,107,173,.38); }

/* Balance & tighten the spacing around the final CTA band so the section
   that ends and the CTA section don't stack their full vertical padding.
   Light-colored gap = 6rem above (3rem prev + 3rem cta-top) and 6rem below
   (cta-bottom) before the dark footer begins. The footer's own top padding
   is internal to the dark block and doesn't count toward this gap. */
.section:has(+ .section .cta-band) { padding-bottom: 3rem; }
.section:has(.cta-band) { padding-top: 3rem; padding-bottom: 6rem; }

.page-service .section { position: relative; overflow: hidden; }
.page-service .section::before {
  content: ''; position: absolute;
  top: -100px; right: -150px;
  width: 450px; height: 450px; border-radius: 50%;
  background: radial-gradient(circle, rgba(137,107,173,.07) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Theme toggle button ────────────────────────────────────── */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all .25s var(--ease); flex-shrink: 0; margin-left: .5rem;
}
.theme-toggle:hover { background: rgba(137,107,173,.2); border-color: var(--c-cyan); color: #fff; }
.theme-toggle svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; pointer-events: none; }
.icon-sun { display: none; }
.icon-moon { display: block; }

/* ── Form spacing ───────────────────────────────────────────── */
.form-group { margin-bottom: 1.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 0; }
.form-group label { display: block; font-size: .875rem; font-weight: 600; margin-bottom: .6rem; color: var(--c-light); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .9rem 1.2rem;
  font-size: .95rem; font-family: inherit;
  background: rgba(255,255,255,.05); color: var(--c-light);
  border: 1px solid var(--c-border); border-radius: 10px;
  transition: all .2s;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHT THEME — [data-theme="light"]
   ═══════════════════════════════════════════════════════════════ */
[data-theme="light"] {
  --c-dark:    #f4f5fb;
  --c-surface: #ffffff;
  --c-panel:   #edf0f9;
  --c-mid:     #dde2f0;
  --c-light:   #0e1120;
  --c-muted:   #4b5672;
  --c-muted2:  #8a92b0;
  --c-border:  rgba(0,0,0,.09);
  --c-border2: rgba(109,79,160,.35);
  --c-cyan:    #6d4fa0;
  --c-cyan2:   #5a3f8a;
}

[data-theme="light"] body { color: var(--c-light); }

[data-theme="light"] h1,[data-theme="light"] h2,[data-theme="light"] h3,
[data-theme="light"] h4,[data-theme="light"] h5,[data-theme="light"] h6 { color: var(--c-light); }
[data-theme="light"] .text-muted { color: var(--c-muted) !important; }
[data-theme="light"] .eyebrow { color: var(--c-cyan) !important; }
[data-theme="light"] a { color: var(--c-cyan); }

/* Nav — always dark, preserves original logo with violet 4 */
[data-theme="light"] .nav-link { color: rgba(255,255,255,.75) !important; }
[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active { color: #fff !important; background: rgba(255,255,255,.06) !important; }
[data-theme="light"] .nav-cta { background: var(--c-cyan) !important; color: #fff !important; }
[data-theme="light"] .nav-cta:hover { background: #5a3f8a !important; color: #fff !important; }
/* Dropdown stays dark in light mode — text must be white */
[data-theme="light"] .dropdown-link { color: rgba(255,255,255,.82) !important; }
[data-theme="light"] .dropdown-link:hover { color: #fff !important; background: rgba(137,107,173,.18) !important; }
[data-theme="light"] .dropdown-link strong { color: rgba(255,255,255,.92) !important; }
[data-theme="light"] .dropdown-link span { color: rgba(255,255,255,.48) !important; }

/* Buttons in light */
[data-theme="light"] .btn-primary { background: var(--c-cyan) !important; color: #fff !important; }
[data-theme="light"] .btn-primary:hover { background: #5a3f8a !important; color: #fff !important; box-shadow: 0 0 24px rgba(109,79,160,.4) !important; }
[data-theme="light"] .btn-outline { border-color: rgba(0,0,0,.2) !important; color: var(--c-light) !important; }
[data-theme="light"] .btn-outline:hover { border-color: var(--c-cyan) !important; color: var(--c-cyan) !important; background: rgba(109,79,160,.07) !important; }
/* Hero always has dark bg image — keep btn-outline white on it in both themes */
[data-theme="light"] .hero .btn-outline { border-color: rgba(255,255,255,.3) !important; color: rgba(255,255,255,.9) !important; }
[data-theme="light"] .hero .btn-outline:hover { border-color: rgba(255,255,255,.65) !important; color: #fff !important; background: rgba(255,255,255,.08) !important; }

/* Nav always dark in light mode — even before scroll */
[data-theme="light"] .c4y-nav { background: rgba(15,17,23,.95) !important; }
/* Hamburger bars must be white — nav background is dark in light mode */
[data-theme="light"] .nav-toggle span { background: rgba(255,255,255,.85) !important; }
[data-theme="light"] .c4y-nav.scrolled { background: rgba(15,17,23,.98) !important; box-shadow: 0 2px 24px rgba(0,0,0,.4) !important; }

/* Page hero text base — readable on light background */
[data-theme="light"] .page-hero h1,
[data-theme="light"] .page-hero h2 { color: var(--c-light) !important; }
[data-theme="light"] .page-hero p { color: var(--c-muted) !important; }

/* Hero text white only when a dark bg image is present */
[data-theme="light"] .page-hero:has(.page-hero-bg) h1,
[data-theme="light"] .page-hero:has(.page-hero-bg) h2 { color: #fff !important; text-shadow: 0 2px 30px rgba(0,0,0,.6) !important; }
[data-theme="light"] .page-hero:has(.page-hero-bg) p { color: rgba(229,231,235,.85) !important; }
[data-theme="light"] .page-hero:has(.page-hero-bg) .eyebrow { color: rgba(137,107,173,.9) !important; }
[data-theme="light"] .hero h1,
[data-theme="light"] .hero h2 { color: #fff !important; }
[data-theme="light"] .hero p { color: rgba(229,231,235,.85) !important; }
[data-theme="light"] .hero-eyebrow { color: rgba(229,231,235,.6) !important; }

/* Hero overlays keep dark for readability */
[data-theme="light"] .hero-gradient {
  background: linear-gradient(180deg, rgba(10,12,20,.6) 0%, rgba(10,12,20,.25) 40%, rgba(10,12,20,.92) 100%) !important;
}
[data-theme="light"] .hero-wave path:first-child { fill: var(--c-dark) !important; }
[data-theme="light"] .page-hero-grad {
  background: linear-gradient(135deg, rgba(10,12,20,.9) 0%, rgba(10,12,20,.5) 55%, rgba(10,12,20,.8) 100%) !important;
}
[data-theme="light"] .page-hero-wave path { fill: var(--c-dark) !important; }

/* Stats */
[data-theme="light"] .stats-section { background: var(--c-surface) !important; border-color: rgba(0,0,0,.07) !important; }
[data-theme="light"] .stat-num { color: var(--c-cyan) !important; }
[data-theme="light"] .stat-label { color: var(--c-muted) !important; }
[data-theme="light"] .stat-card { border-right-color: rgba(0,0,0,.07) !important; background: transparent !important; }

/* Scroll narrative */
[data-theme="light"] .scroll-panel { background: rgba(255,255,255,.5) !important; border-color: rgba(0,0,0,.07) !important; }
[data-theme="light"] .scroll-panel:hover { background: rgba(109,79,160,.05) !important; }
[data-theme="light"] .scroll-panel ul li { color: rgba(14,17,32,.75) !important; }
[data-theme="light"] .scroll-panel ul li::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px 11px no-repeat,
    linear-gradient(135deg, #896BAD, #6d4fa0) !important;
  border: none !important;
}
[data-theme="light"] .scroll-panel p { color: var(--c-muted) !important; }
[data-theme="light"] .scroll-sticky-img-overlay { background: linear-gradient(135deg, rgba(244,245,251,.4) 0%, transparent 60%) !important; }

/* Emergency */
[data-theme="light"] .emergency-section { background: #fff5f7 !important; }
[data-theme="light"] .emergency-inner { background: rgba(137,107,173,.05) !important; border-color: rgba(137,107,173,.18) !important; }

/* Chi siamo */
[data-theme="light"] .chi-siamo-section { background: #eef0fa !important; }
[data-theme="light"] .chi-siamo-content { background: rgba(255,255,255,.82) !important; border-color: rgba(0,0,0,.08) !important; box-shadow: 0 8px 32px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.9) !important; }
[data-theme="light"] .chi-siamo-content ul li { color: rgba(14,17,32,.75) !important; }
[data-theme="light"] .chi-siamo-content p { color: var(--c-muted) !important; }

/* Cards */
[data-theme="light"] .webinar-home-section { background: var(--c-panel) !important; }
[data-theme="light"] .webinar-home-card,[data-theme="light"] .case-history-card,
[data-theme="light"] .dove-card,[data-theme="light"] .case-card,[data-theme="light"] .blog-card {
  background: rgba(255,255,255,.85) !important; border-color: rgba(0,0,0,.09) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.07), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
[data-theme="light"] .webinar-home-card:hover,[data-theme="light"] .case-history-card:hover,
[data-theme="light"] .dove-card:hover,[data-theme="light"] .case-card:hover,[data-theme="light"] .blog-card:hover {
  background: rgba(255,255,255,.97) !important; border-color: rgba(109,79,160,.35) !important;
  box-shadow: 0 0 0 1px rgba(109,79,160,.25), 0 12px 40px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.9) !important;
}
[data-theme="light"] .webinar-home-body h3,[data-theme="light"] .case-history-body h3,
[data-theme="light"] .dove-card h3,[data-theme="light"] .case-body h3 a { color: var(--c-light) !important; }
[data-theme="light"] .webinar-home-body p,[data-theme="light"] .case-history-body p,
[data-theme="light"] .dove-card p,[data-theme="light"] .case-body p { color: var(--c-muted) !important; }
[data-theme="light"] .case-cat { color: var(--c-cyan) !important; }

/* Service grid cards (pagina servizi) */
[data-theme="light"] .srv-card { background: rgba(255,255,255,.88) !important; border-color: rgba(0,0,0,.09) !important; box-shadow: 0 4px 20px rgba(0,0,0,.06) !important; }
[data-theme="light"] .srv-card:hover { background: #fff !important; border-color: rgba(109,79,160,.3) !important; }
[data-theme="light"] .srv-card h3 { color: var(--c-light) !important; }
[data-theme="light"] .srv-card p { color: var(--c-muted) !important; }

/* Card pacchetti VAPT (pagina checkup) — sfondo/testo erano tarati sul tema scuro:
   le voci di elenco (grigio chiaro) sparivano sullo sfondo chiaro */
[data-theme="light"] .vapt-tier-card { background: rgba(255,255,255,.88) !important; border-color: rgba(0,0,0,.09) !important; box-shadow: 0 4px 20px rgba(0,0,0,.06) !important; }
[data-theme="light"] .vapt-tier-card:hover { background: #fff !important; border-color: rgba(109,79,160,.3) !important; }
[data-theme="light"] .vapt-tier-card li { color: var(--c-muted) !important; }

/* Cyber risk / CTA */
[data-theme="light"] .cyber-risk-section { background: var(--c-panel) !important; }
[data-theme="light"] .cta-content { background: rgba(255,255,255,.88) !important; border-color: rgba(0,0,0,.1) !important; box-shadow: 0 8px 48px rgba(0,0,0,.1), inset 0 1px 0 rgba(255,255,255,.9) !important; }
[data-theme="light"] .cta-content h2,[data-theme="light"] .cta-content p { color: var(--c-light) !important; }

/* Service page elements */
[data-theme="light"] .feature-item { background: rgba(255,255,255,.85) !important; border-color: rgba(0,0,0,.09) !important; box-shadow: 0 2px 12px rgba(0,0,0,.05) !important; }
[data-theme="light"] .feature-item:hover { background: #fff !important; border-color: rgba(109,79,160,.3) !important; box-shadow: 0 4px 24px rgba(109,79,160,.12) !important; }
[data-theme="light"] .feature-item-content h4 { color: var(--c-light) !important; }
[data-theme="light"] .feature-item-content p { color: var(--c-muted) !important; }
[data-theme="light"] .service-card { background: rgba(255,255,255,.82) !important; border-color: rgba(0,0,0,.08) !important; }
[data-theme="light"] .service-card:hover { background: #fff !important; border-color: rgba(109,79,160,.3) !important; }
[data-theme="light"] .service-card h3,[data-theme="light"] .service-card h4 { color: var(--c-light) !important; }
[data-theme="light"] .service-card p { color: var(--c-muted) !important; }
[data-theme="light"] .sidebar-cta,[data-theme="light"] .sidebar-nav { background: rgba(255,255,255,.88) !important; border-color: rgba(0,0,0,.09) !important; box-shadow: 0 4px 20px rgba(0,0,0,.07) !important; }
[data-theme="light"] .sidebar-nav a { color: var(--c-muted) !important; }
[data-theme="light"] .sidebar-nav a:hover { color: var(--c-cyan) !important; }
[data-theme="light"] .cta-band { background: rgba(255,255,255,.88) !important; border-color: rgba(109,79,160,.22) !important; box-shadow: 0 8px 32px rgba(0,0,0,.07) !important; }

/* Service page body text — override hardcoded light colors */
[data-theme="light"] .page-service .service-content p,
[data-theme="light"] .page-service .service-content li,
[data-theme="light"] .page-service .prose p { color: rgba(14,17,32,.75) !important; }
[data-theme="light"] .page-service h2,
[data-theme="light"] .page-service h3,
[data-theme="light"] .page-service h4 { color: var(--c-light) !important; }
[data-theme="light"] .page-service .service-hero-text p,
[data-theme="light"] .page-service .section p,
[data-theme="light"] .page-service .section li { color: rgba(14,17,32,.75) !important; }

/* Form */
[data-theme="light"] .form-group input,[data-theme="light"] .form-group select,[data-theme="light"] .form-group textarea {
  background: rgba(255,255,255,.9) !important; border-color: rgba(0,0,0,.15) !important; color: var(--c-light) !important;
}
[data-theme="light"] .form-group select { color-scheme: light !important; }
[data-theme="light"] .form-group label { color: var(--c-light) !important; }
[data-theme="light"] .form-group input:focus,[data-theme="light"] .form-group select:focus,[data-theme="light"] .form-group textarea:focus {
  background: #fff !important; border-color: var(--c-cyan) !important; box-shadow: 0 0 0 3px rgba(109,79,160,.15) !important;
}

/* Contact info items */
/* Red buttons keep white text in light theme (global a-link rule would override it) */
[data-theme="light"] .btn-red,[data-theme="light"] .btn-red:hover { color: #fff !important; }

/* Emergency modal keeps its always-dark styling in light theme */
[data-theme="light"] .emg-modal h3 { color: #fff !important; }
[data-theme="light"] .emg-modal-phone { color: var(--c-cyan) !important; }
[data-theme="light"] .emg-modal-detail { color: var(--c-cyan) !important; }

[data-theme="light"] .info-item h4 { color: var(--c-light) !important; }
[data-theme="light"] .info-item p { color: var(--c-muted) !important; }
[data-theme="light"] .info-item a { color: var(--c-light) !important; font-weight: 600; }
[data-theme="light"] .info-item a:hover { color: var(--c-cyan) !important; }
[data-theme="light"] .info-icon { background: rgba(109,79,160,.1) !important; border-color: rgba(109,79,160,.2) !important; }
[data-theme="light"] .info-icon svg { stroke: var(--c-cyan) !important; }

/* Footer stays dark always */
[data-theme="light"] .site-footer { background: #14172a !important; }
/* …quindi titoli e testi del footer devono restare chiari (la regola globale h1-h6 / muted
   in tema chiaro li renderebbe scuri e illeggibili sullo sfondo scuro).
   NB: i selettori sono qualificati con .site-footer per battere in specificità la regola
   [data-theme="light"] .page-service h2/h3/h4 (lo <h3> del footer è dentro body.page-service,
   perciò senza questa qualifica i titoli "Servizi/Azienda/Legal/Certificazioni" diventavano scuri). */
[data-theme="light"] .site-footer .footer-heading { color: rgba(255,255,255,.7) !important; }
[data-theme="light"] .site-footer .footer-tagline,
[data-theme="light"] .site-footer .footer-contact-link,
[data-theme="light"] .site-footer .footer-col ul a,
[data-theme="light"] .site-footer .footer-bottom p { color: rgba(255,255,255,.62) !important; }
[data-theme="light"] .site-footer .footer-cert-txt { color: rgba(255,255,255,.62) !important; }
[data-theme="light"] .site-footer .footer-cert-txt strong { color: #fff !important; }
[data-theme="light"] .site-footer .footer-col ul a:hover { color: #fff !important; }
[data-theme="light"] .site-footer .footer-contact-link:hover { color: var(--c-cyan) !important; }

/* Scroll panel glassmorphism glass in light */
[data-theme="light"] .scroll-panel { backdrop-filter: blur(8px) !important; }

/* Toggle button in light */
[data-theme="light"] .theme-toggle { border-color: rgba(255,255,255,.18) !important; background: rgba(255,255,255,.07) !important; color: rgba(255,255,255,.75) !important; }
[data-theme="light"] .theme-toggle:hover { background: rgba(137,107,173,.25) !important; border-color: rgba(137,107,173,.6) !important; color: #fff !important; }
[data-theme="light"] .icon-sun { display: block !important; }
[data-theme="light"] .icon-moon { display: none !important; }

/* Ambient orbs softer in light */
[data-theme="light"] .webinar-home-section::before,
[data-theme="light"] .case-history-section::before,
[data-theme="light"] .chi-siamo-section::before { opacity: .3; }
[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(109,79,160,.08) 0%, transparent 70%) !important; }

@media (max-width: 768px) {
  .cta-band { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  /* Niente altezza fissa su mobile: l'hero cresce col contenuto così il titolo
     resta sotto la nav fissa invece di traboccare verso l'alto sul logo */
  .page-hero { height: auto; min-height: 300px; max-height: none; padding: calc(var(--nav-h) + 1.75rem) 0 2.5rem; }
}


/* ── Blog sidebar: Ultimi / Più letti ─────────────────────────── */
.sidebar-blog-box .sidebar-box-title {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-muted);
  margin: 0 0 .75rem;
  font-weight: 600;
}
.sbli-list {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}
.sbli {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  text-decoration: none;
  padding: .5rem;
  border-radius: 8px;
  transition: background .15s;
}
.sbli:hover { background: rgba(137,107,173,.1); }
.sbli-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  opacity: .85;
}
.sbli-body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}
.sbli-title {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sbli:hover .sbli-title { color: var(--c-cyan); }
.sbli-meta {
  font-size: .7rem;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  gap: .375rem;
}
.sbli-views::before { content: '·'; margin-right: .25rem; }

/* ── Modale documenti legali (Privacy / Cookie Policy) ───────── */
.policy-modal {
  position: fixed; inset: 0; z-index: 3000;
  display: none; align-items: center; justify-content: center;
  padding: 2rem 1rem;
}
.policy-modal.open { display: flex; }
.policy-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.policy-modal-dialog {
  position: relative; z-index: 1;
  width: min(920px, 100%); height: min(85vh, 920px);
  background: #fff; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}
.policy-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem; background: #141720; color: #fff; flex-shrink: 0;
}
.policy-modal-title { font-weight: 700; font-size: 1rem; }
.policy-modal-close {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; transition: background .2s;
}
.policy-modal-close:hover { background: rgba(255,255,255,.2); }
.policy-modal-close svg { width: 16px; height: 16px; }
.policy-modal-body { position: relative; flex: 1; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.policy-modal-content {
  padding: 1.5rem 1.75rem 2.5rem;
  color: #2b2b33; font-size: .9rem; line-height: 1.6;
  font-family: Inter, system-ui, sans-serif;
  overflow-wrap: break-word; word-wrap: break-word;
}
.policy-modal-content:empty { min-height: 200px; }
/* Override degli stili inline/ereditati del documento Iubenda iniettato */
.policy-modal-content * { max-width: 100%; }
.policy-modal-content img { height: auto; }
.policy-modal-content h1 { font-size: 1.4rem; color: #15171f; margin: 0 0 1rem; line-height: 1.3; }
.policy-modal-content h2 { font-size: 1.1rem; color: #15171f; margin: 1.75rem 0 .75rem; line-height: 1.35; }
.policy-modal-content h3 { font-size: 1rem; color: #15171f; margin: 1.25rem 0 .5rem; line-height: 1.4; }
.policy-modal-content h4 { font-size: .95rem; color: #15171f; margin: 1rem 0 .4rem; line-height: 1.4; }
.policy-modal-content h5,
.policy-modal-content h6 { font-size: .9rem; color: #15171f; margin: .85rem 0 .35rem; line-height: 1.4; }
.policy-modal-content p,
.policy-modal-content li { color: #3a3a44; font-size: .9rem; }
.policy-modal-content ul,
.policy-modal-content ol { padding-left: 1.4rem; margin: .5rem 0 1rem; }
.policy-modal-content li { margin-bottom: .35rem; }
.policy-modal-content a { color: #6d4fa0; text-decoration: underline; word-break: break-word; }
.policy-modal-content strong { color: #15171f; }
.policy-modal-content hr { border: 0; border-top: 1px solid #e5e5ec; margin: 1.5rem 0; }
.policy-modal-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .85rem; }
.policy-modal-content th,
.policy-modal-content td { border: 1px solid #e5e5ec; padding: .5rem .65rem; text-align: left; vertical-align: top; }
.policy-modal-loader {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #fff; pointer-events: none;
}
.policy-modal-loader span {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(137,107,173,.25); border-top-color: #896BAD;
  animation: policySpin .8s linear infinite;
}
@keyframes policySpin { to { transform: rotate(360deg); } }
@media (max-width: 768px) {
  .policy-modal { padding: 0; }
  .policy-modal-dialog { width: 100%; height: 100%; height: 100dvh; max-height: 100%; border-radius: 0; }
  .policy-modal-content { padding: 1.25rem 1.1rem 2rem; font-size: .875rem; }
  .policy-modal-content h1 { font-size: 1.25rem; }
  .policy-modal-content h2 { font-size: 1.05rem; }
  .policy-modal-content table { font-size: .8rem; }
}

/* ════════════════════════════════════════════════════════════════
   V2 PREVIEW — Vertical-vendor framing, SOC flow timeline, synergy
   (used only by /home-v2 and /…-soc-v2 preview pages)
   ════════════════════════════════════════════════════════════════ */

/* Brand separation: nascondi il credito promozionale dev nel footer */
.brand-vertical .footer-dev-credit { display: none; }

/* Claim "vertical vendor" — riquadro sobrio sotto i titoli */
.vendor-claim {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(137,107,173,.1);
  border: 1px solid rgba(137,107,173,.22);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  color: var(--c-light);
  margin-bottom: 1.5rem;
}
.vendor-claim svg { width: 16px; height: 16px; stroke: var(--c-cyan); flex-shrink: 0; }

/* ── SOC operational flow timeline ─────────────────────────────── */
.soc-flow-intro {
  background: linear-gradient(160deg, rgba(137,107,173,.13) 0%, rgba(137,107,173,.03) 100%);
  border: 1px solid rgba(137,107,173,.22);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  margin: 0 0 2.75rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
}
.soc-flow-intro-icon { font-size: 1.9rem; line-height: 1; flex-shrink: 0; }
.soc-flow-intro p { color: rgba(229,231,235,.85); line-height: 1.7; margin: 0; font-size: 1rem; }
.soc-flow-intro strong { color: var(--c-white); font-weight: 700; }

.soc-timeline { position: relative; display: flex; flex-direction: column; }
.soc-timeline::before {
  content: ''; position: absolute; left: 27px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, rgba(137,107,173,.55) 0%, rgba(137,107,173,.12) 100%);
}
.soc-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1.35rem; padding: 0 0 2rem; }
.soc-step:last-child { padding-bottom: 0; }
.soc-step-dot {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--c-surface); border: 2px solid rgba(137,107,173,.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-cyan); position: relative; z-index: 1;
  box-shadow: 0 0 0 6px rgba(15,17,23,1);
}
.soc-step-dot svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.soc-step-time {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-cyan); margin-bottom: .3rem;
}
.soc-step-body h4 { font-size: 1.05rem; color: var(--c-white); margin: 0 0 .35rem; font-weight: 700; }
.soc-step-body p { color: rgba(229,231,235,.66); font-size: .92rem; line-height: 1.65; margin: 0; }
@media (max-width: 600px) {
  .soc-flow-intro { flex-direction: column; gap: .75rem; padding: 1.35rem 1.25rem; }
  .soc-step { grid-template-columns: 44px 1fr; gap: 1rem; }
  .soc-step-dot { width: 44px; height: 44px; }
  .soc-step-dot svg { width: 20px; height: 20px; }
  .soc-timeline::before { left: 21px; }
}

/* ── Sinergia sicurezza fisica + logica ────────────────────────── */
.synergy-band { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .synergy-band { grid-template-columns: 1fr; gap: 2.25rem; } }
.synergy-text h2 { margin-bottom: 1.1rem; }
.synergy-text p { color: rgba(229,231,235,.78); line-height: 1.8; margin-bottom: 1rem; }
.synergy-text strong { color: var(--c-white); font-weight: 700; }
.synergy-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.synergy-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(137,107,173,.18);
  border-radius: 16px; padding: 1.5rem 1.4rem;
}
.synergy-stat-num { font-family: var(--font-head); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 900; color: #fff; line-height: 1; margin-bottom: .45rem; }
.synergy-stat-label { font-size: .82rem; color: var(--c-muted); line-height: 1.45; }

[data-theme="light"] .soc-flow-intro p,
[data-theme="light"] .synergy-text p { color: var(--c-muted) !important; }
[data-theme="light"] .soc-step-body p { color: var(--c-muted) !important; }
/* Titoli step: il bianco sparirebbe sullo sfondo chiaro — colore brand #6d4fa0 */
[data-theme="light"] .soc-step-body h4 { color: var(--c-cyan) !important; }
[data-theme="light"] .soc-step-dot { box-shadow: 0 0 0 6px #fff; }
/* Leggibilità su tema chiaro: il testo bianco (var(--c-white)) sparirebbe */
[data-theme="light"] .synergy-text strong,
[data-theme="light"] .soc-flow-intro strong { color: var(--c-light) !important; }
[data-theme="light"] .synergy-stat-num { color: var(--c-light) !important; }
[data-theme="light"] .synergy-stat { background: #fff !important; border-color: rgba(0,0,0,.08) !important; }

/* ── Service intro: illustrazione compatta sopra il titolo, testo a piena larghezza ── */
.srv-intro { display: flex; flex-direction: column; }
.srv-intro-text > *:last-child { margin-bottom: 0; }
.srv-illu {
  order: -1;                 /* mostra il badge sopra il titolo senza modificare il DOM */
  align-self: flex-start;
  margin: 0 0 1.5rem;
  display: grid; place-items: center;
  width: 92px; height: 92px;
  padding: 16px;
  border-radius: 20px;
  background: radial-gradient(120% 120% at 30% 18%, #ffffff 0%, #f4f2fc 55%, #ece7f8 100%);
  border: 1px solid rgba(137,107,173,.28);
  box-shadow: 0 12px 30px rgba(74,91,181,.18), inset 0 1px 0 rgba(255,255,255,.85);
}
.srv-illu svg,
.srv-illu img { width: 100%; height: 100%; object-fit: contain; display: block; }
.srv-illu img { filter: drop-shadow(0 4px 10px rgba(74,91,181,.16)); }

/* ── Immagini di corpo nelle pagine servizio (riprese dal vecchio sito) ──
   Figura centrata, coerente col design: angoli arrotondati, bordo viola tenue,
   ombra morbida. La variante --light dà sfondo bianco ai diagrammi/line-art
   così restano leggibili sul tema scuro. */
.srv-figure {
  max-width: 520px;
  margin: 2.25rem auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(137,107,173,.22);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.srv-figure img { display: block; width: 100%; height: auto; }
.srv-figure figcaption {
  padding: .7rem 1rem; font-size: .82rem; line-height: 1.4;
  color: var(--c-muted); text-align: center;
}
.srv-figure--wide { max-width: 780px; }
.srv-figure--sm { max-width: 360px; }
.srv-figure--light { background: #fff; }
.srv-figure--light img { padding: 1.25rem; }
.srv-figure--light figcaption { color: #5a6070; border-top: 1px solid rgba(0,0,0,.06); }
[data-theme="light"] .srv-figure { box-shadow: 0 8px 24px rgba(0,0,0,.08); }

/* SOC scenario — wrapper "esempio" con sfondo distinto dal resto della pagina */
.soc-flow-example {
  background: var(--c-surface);
  border: 1px dashed rgba(137,107,173,.4);
  border-radius: 22px;
  padding: 2.5rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.soc-flow-example > h2 { margin-top: 0; }
.soc-flow-tag {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(137,107,173,.16);
  color: var(--c-cyan);
  font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 999px; margin-bottom: 1rem;
}
@media (max-width: 600px) { .soc-flow-example { padding: 1.5rem 1.25rem; } }
[data-theme="light"] .soc-flow-example { border-color: rgba(109,79,160,.35) !important; box-shadow: 0 4px 20px rgba(0,0,0,.05); }

/* CTA in coda allo scenario d'esempio */
.soc-flow-cta {
  margin-top: 2rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(137,107,173,.22);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem 1.5rem; flex-wrap: wrap;
}
.soc-flow-cta p { color: rgba(229,231,235,.8); font-size: 1rem; line-height: 1.6; margin: 0; max-width: 440px; }
.soc-flow-cta p strong { color: var(--c-white); font-weight: 700; }
.soc-flow-cta-btns { display: flex; gap: .75rem; flex-wrap: wrap; }
@media (max-width: 600px) { .soc-flow-cta { flex-direction: column; align-items: flex-start; } }
[data-theme="light"] .soc-flow-cta { border-top-color: rgba(109,79,160,.25); }
[data-theme="light"] .soc-flow-cta p { color: var(--c-muted) !important; }
[data-theme="light"] .soc-flow-cta p strong { color: var(--c-light) !important; }

/* Fix: titoli delle card del blog invisibili (bianco) su tema chiaro */
[data-theme="light"] .blog-card h3 a { color: var(--c-light) !important; }
[data-theme="light"] .blog-card h3 a:hover { color: var(--c-cyan) !important; }
/* Barra di ricerca blog: bordo e placeholder (bianchi/grigio chiaro) invisibili su tema chiaro */
[data-theme="light"] .blog-search-wrap { background: rgba(255,255,255,.9) !important; border-color: rgba(0,0,0,.12) !important; }
[data-theme="light"] .blog-search-input::placeholder { color: var(--c-muted2) !important; }

/* Fix: corpo dell'articolo blog (post-body) sbiadito su tema chiaro
   — il colore base era pensato per lo sfondo scuro; titoli erano bianchi */
[data-theme="light"] .post-body { color: rgba(14,17,32,.82) !important; }
[data-theme="light"] .post-body h2,
[data-theme="light"] .post-body h3,
[data-theme="light"] .post-body h4,
[data-theme="light"] .post-body h5 { color: var(--c-light) !important; }
[data-theme="light"] .post-body th { background: rgba(0,0,0,.04); color: var(--c-light); }
/* Fix: titolo della CTA inline negli articoli (bianco) illeggibile su tema chiaro
   — usa il viola dell'immagine coordinata #6d4fa0 */
[data-theme="light"] .c4y-inline-cta-text strong { color: var(--c-cyan) !important; }

/* Fix: video "Chi siamo" allineato all'altezza del riquadro testo (desktop) */
@media (min-width: 1025px) {
  .chi-siamo-inner { align-items: stretch; }
  .chi-siamo-media { display: flex; }
  .chi-siamo-media .yt-thumb { aspect-ratio: auto; height: 100%; width: 100%; }
}

