/* Clanius Consulting - foglio di stile principale */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #000086;          /* blu del logo */
  --navy-700: #0b1170;
  --navy-900: #050838;
  --electric: #3b5bff;
  --violet: #7b5cf6;
  --cyan: #3ad0ff;
  --ink: #0d1030;
  --text: #3a3f55;
  --muted: #62687e;
  --gray: #8a8a8a;          /* grigio del logo */
  --line: #e3e6f0;
  --soft: #f3f5fb;
  --white: #ffffff;
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(5, 8, 56, .05), 0 12px 32px rgba(5, 8, 56, .08);
  --shadow-lg: 0 30px 60px -20px rgba(5, 8, 56, .35);
  --container: 1240px;
  --grad: linear-gradient(120deg, var(--electric) 0%, var(--violet) 55%, var(--cyan) 100%);
  --grad-dark: linear-gradient(140deg, #03052a 0%, #070c5e 45%, #000086 100%);
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --font-head: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--text);
  background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--electric); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .55em; font-weight: 800; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--electric); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--electric); margin-bottom: 18px; font-family: var(--font);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--grad); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.hl { background: linear-gradient(100deg, #8fa6ff 0%, #b49bff 45%, #5fdcff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { padding: 110px 0; position: relative; overflow: hidden; }
.section-soft { background: var(--soft); }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Forme decorative ---------- */
.shape { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.shape-a { width: 560px; height: 560px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(59,91,255,.55), transparent 65%); }
.shape-b { width: 460px; height: 460px; left: -180px; bottom: -220px; background: radial-gradient(circle, rgba(123,92,246,.45), transparent 65%); }
.shape-c { width: 300px; height: 300px; left: 45%; top: 30%; background: radial-gradient(circle, rgba(58,208,255,.25), transparent 65%); }
.stripes { /* righe orizzontali, motivo del logo */
  position: absolute; left: 0; right: 0; bottom: 0; height: 54px; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.07) 0 4px, transparent 4px 13px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; text-decoration: none; border: 1.5px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s, box-shadow .25s; cursor: pointer; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(0,0,134,.7); }
.btn-primary:hover { background: var(--electric); color: #fff; }
.btn-light { background: #fff; color: var(--navy); box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); }
.btn-light:hover { background: #eef1ff; color: var(--navy); }
.btn-outline { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }
.btn-outline-dark { border-color: var(--navy); color: var(--navy); }
.btn-outline-dark:hover { background: var(--navy); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1eb858; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; transition: border-color .25s, gap .25s; }
.link-arrow svg { width: 18px; height: 18px; }
.link-arrow:hover { border-color: var(--electric); gap: 14px; color: var(--electric); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(227,230,240,.8); transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(5,8,56,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.brand img { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .nav-drop-btn {
  display: block; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none;
  font-size: .96rem; font-weight: 600; background: none; border: 0; font-family: inherit; cursor: pointer; transition: background .2s, color .2s;
}
.main-nav a:hover, .nav-drop-btn:hover { background: var(--soft); color: var(--navy); }
.main-nav a[aria-current="page"], .nav-drop-btn.is-current { color: var(--electric); }
.nav-drop { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: 6px; }
.nav-drop-btn svg { width: 14px; height: 14px; transition: transform .2s; }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: -10px; min-width: 310px; list-style: none; margin: 0; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-drop.open .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
.nav-drop.open .nav-drop-btn svg { transform: rotate(180deg); }
@media (hover: hover) and (min-width: 1025px) {
  .nav-drop:hover .nav-drop-menu { opacity: 1; visibility: visible; transform: none; }
  .nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
}
.nav-drop-menu a { padding: 11px 14px; border-radius: 10px; }
.lang-switch { display: flex; align-items: center; margin-left: 10px; padding-left: 14px; border-left: 1px solid var(--line); font-size: .85rem; font-weight: 700; }
.lang-switch a, .lang-switch span { padding: 6px 9px; border-radius: 999px; text-decoration: none; letter-spacing: .04em; }
.lang-switch span { color: #fff; background: var(--navy); }
.lang-switch a { color: var(--gray); }
.lang-switch a:hover { color: var(--navy); background: var(--soft); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; color: var(--ink); }

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; inset: 84px 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px 24px 32px; overflow-y: auto; display: none; gap: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; align-items: stretch; }
  .main-nav a, .nav-drop-btn { padding: 15px 4px; font-size: 1.08rem; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; text-align: left; }
  .main-nav a:hover, .nav-drop-btn:hover { background: none; }
  .nav-drop-btn { justify-content: space-between; }
  .nav-drop-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; display: none; }
  .nav-drop.open .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
  .lang-switch { margin: 18px 0 0; padding: 0; border: 0; gap: 6px; }
  .main-nav .lang-switch a, .lang-switch span { width: auto; border: 0; padding: 8px 14px; font-size: .95rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #d5daff; background: var(--grad-dark);
  padding: 90px 0 0;
}
.hero::before { /* griglia tecnica */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 40px; align-items: center; }
.hero .eyebrow { color: #a9b6ff; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.hero .lead { color: #c3c9f2; font-size: 1.15rem; margin-bottom: 38px; }
.hero h1 { margin-bottom: .2em; }
.hero-sub { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 1.95rem); line-height: 1.25; letter-spacing: -.015em; color: #e4e8ff; margin: 0 0 26px; }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0,0,0,.35)); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both .15s; }
.hero-text > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-text > *:nth-child(2) { animation-delay: .08s; } .hero-text > *:nth-child(3) { animation-delay: .16s; } .hero-text > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 60px 0 0; position: relative; z-index: 1;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: 20px 20px 0 0; overflow: hidden;
}
.hero-facts div { display: flex; align-items: center; gap: 14px; padding: 24px 26px; background: rgba(5,8,56,.55); color: #d5daff; font-size: .97rem; font-weight: 500;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-facts svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--grad); color: #fff; flex: none; }

/* ---------- Banda numeri ---------- */
.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
  background: linear-gradient(110deg, var(--navy), var(--electric) 60%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; color: var(--muted); font-size: .96rem; line-height: 1.45; }

/* ---------- Media (illustrazioni) ---------- */
.media {
  position: relative; border-radius: 28px; overflow: hidden; background: var(--grad-dark); box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.media::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(500px 300px at 80% 10%, rgba(123,92,246,.45), transparent 60%), radial-gradient(400px 300px at 10% 90%, rgba(58,208,255,.25), transparent 60%); }
.media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; z-index: -1;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.06) 0 3px, transparent 3px 10px); }
.media img { width: 100%; height: auto; padding: 4%; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.media:hover img { transform: scale(1.03); }

/* ---------- Righe servizi (home) ---------- */
.svc-row { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; padding: 44px 0; }
.svc-row + .svc-row { border-top: 1px solid var(--line); padding-top: 80px; margin-top: 36px; }
.svc-row-rev .svc-media { order: 2; }
.svc-text { position: relative; }
.svc-num { position: absolute; top: -34px; right: 0; font-family: var(--font-head); font-size: 7.5rem; font-weight: 800; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px #d6dbf0; letter-spacing: -.04em; z-index: -1; user-select: none; }
.svc-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 800; letter-spacing: -.025em; }
.svc-text p { color: var(--muted); font-size: 1.08rem; }
.svc-text .check-list { margin-bottom: 26px; }
.icon-box { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 22px;
  box-shadow: 0 12px 24px -10px rgba(59,91,255,.7); }
.icon-box svg { width: 27px; height: 27px; }

/* ---------- Sezione scura e principi ---------- */
.section-dark { background: var(--grad-dark); color: #c3c9f2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: #a9b6ff; }
.section-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.principle { position: relative; padding: 32px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; }
.principle:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.principle::before { content: ""; position: absolute; left: 28px; top: 0; width: 48px; height: 4px; border-radius: 0 0 4px 4px; background: var(--grad); }
.principle h3 { font-size: 1.15rem; }
.principle p { color: var(--muted); font-size: .98rem; margin: 0; }
.principle-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 22px; }
.principle-ic svg { width: 24px; height: 24px; }
.principle-n { position: absolute; top: 26px; right: 26px; font-family: var(--font-head); font-weight: 800; font-size: .9rem; color: var(--gray); letter-spacing: .08em; }
.section-dark .principle { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.section-dark .principle:hover { background: rgba(255,255,255,.09); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.section-dark .principle p { color: #b7bee8; }
.section-dark .principle-n { color: #7f88c9; }

/* ---------- Split e pannelli ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 80px; align-items: center; }
.stack { display: grid; gap: 24px; }
.check-list { list-style: none; padding: 0; margin: 0 0 30px; }
.check-list li { position: relative; padding-left: 36px; margin-bottom: 13px; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--grad);
}
.check-list li::after {
  content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px;
  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.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 12px;
}
.panel { background: var(--grad-dark); color: #c3c9f2; border-radius: 24px; padding: 44px; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.panel::before { content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(123,92,246,.5), transparent 65%); }
.panel h3 { color: #fff; font-size: 1.35rem; position: relative; }
.panel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.07) 0 3px, transparent 3px 10px);
}
.panel dl { margin: 0; position: relative; }
.panel dt { color: #fff; font-weight: 700; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--font-head); }
.panel dt:first-child { border-top: 0; padding-top: 0; }
.panel dd { margin: 4px 0 0; font-size: .97rem; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; background: var(--grad-dark); color: #c3c9f2; }
.cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46px; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.06) 0 4px, transparent 4px 13px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-top: 96px; padding-bottom: 96px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta .eyebrow { color: #a9b6ff; }
.cta p { color: #c3c9f2; margin: 0; max-width: 640px; font-size: 1.1rem; }

/* ---------- Page head (pagine interne) ---------- */
.page-head { position: relative; overflow: hidden; color: #c3c9f2; background: var(--grad-dark); padding: 56px 0 70px; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 50%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 75% 50%, #000 30%, transparent 75%);
}
.page-head-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-head .lead { color: #c3c9f2; margin: 0; }
.page-head .eyebrow { color: #a9b6ff; }
.page-head-text > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.page-head-text > *:nth-child(3) { animation-delay: .08s; } .page-head-text > *:nth-child(4) { animation-delay: .16s; }
.page-head-visual img { width: 100%; max-width: 520px; margin-left: auto; filter: drop-shadow(0 30px 50px rgba(0,0,0,.35)); animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both .15s; }
.crumbs { font-size: .86rem; margin-bottom: 26px; color: #8f98dd; }
.crumbs a { color: #c3c9f2; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin: 0 8px; }

/* ---------- Pagine interne: contenuto ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; padding-top: 88px; padding-bottom: 104px; }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.prose h2:first-child { margin-top: 0; }
.prose > p { max-width: 780px; font-size: 1.06rem; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 32px 0 12px; }
.feature { position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s; }
.feature::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); transform: scaleY(0); transform-origin: top; transition: transform .35s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature:hover::after { transform: scaleY(1); }
.feature .icon-box { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; }
.feature .icon-box svg { width: 23px; height: 23px; }
.feature h3 { margin-bottom: .4em; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }
.feature ul { margin: .6em 0 0; color: var(--muted); font-size: .97rem; }
.feature-list.one-col { grid-template-columns: 1fr; }
.feature.minor { background: var(--soft); }
.feature.minor .icon-box { background: #e4e8ff; color: var(--navy); box-shadow: none; }
.steps { list-style: none; padding: 0; margin: 30px 0; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 30px 74px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center; font-family: var(--font-head); font-size: .95rem; font-weight: 800; color: #fff; background: var(--grad);
  box-shadow: 0 10px 20px -10px rgba(59,91,255,.8);
}
.steps li::after { content: ""; position: absolute; left: 24.5px; top: 56px; bottom: 6px; width: 2px; background: linear-gradient(var(--electric), transparent); opacity: .35; }
.steps li:last-child::after { display: none; }
.steps strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: .98rem; }
.note { position: relative; background: linear-gradient(120deg, #eef1ff, #f6f2ff); padding: 24px 28px 24px 30px; border-radius: 16px; font-size: .97rem; color: var(--text); margin: 32px 0; overflow: hidden; }
.note::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.note strong { color: var(--ink); }

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.side-box { border: 1px solid var(--line); border-radius: 20px; padding: 30px; background: #fff; }
.side-box h3 { font-size: 1.1rem; }
.side-box.dark { position: relative; overflow: hidden; background: var(--grad-dark); border-color: transparent; color: #c3c9f2; box-shadow: var(--shadow-lg); }
.side-box.dark::before { content: ""; position: absolute; right: -90px; top: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(123,92,246,.55), transparent 65%); }
.side-box.dark > * { position: relative; }
.side-box.dark h3 { color: #fff; font-size: 1.3rem; }
.side-box.dark p { font-size: .96rem; }
.side-box .btn { width: 100%; justify-content: center; margin-top: 10px; }
.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; text-decoration: none; color: var(--text); font-size: .97rem; font-weight: 500; transition: color .2s, padding .2s; }
.side-links a:hover { color: var(--electric); padding-left: 4px; }
.side-links a[aria-current="page"] { color: var(--electric); font-weight: 700; }
.side-links svg { width: 16px; height: 16px; color: var(--gray); }
@media (min-width: 1025px) { .sidebar-sticky { position: sticky; top: 108px; } }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 32px; background: #fff; transition: transform .3s, box-shadow .3s; overflow: hidden; }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-card h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: var(--gray); margin-bottom: 10px; font-family: var(--font); }
.contact-card .value { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.contact-card .value a { color: var(--ink); text-decoration: none; }
.contact-card .value a:hover { color: var(--electric); text-decoration: underline; }
.contact-card p { color: var(--muted); font-size: .96rem; margin: 8px 0 0; }
.contact-card .icon-box { margin-bottom: 20px; }
.contact-card .btn { margin-top: 18px; }
.address-block { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: #03052a; color: #a3a9d6; font-size: .95rem; position: relative; overflow: hidden; }
.site-footer::before {
  content: ""; display: block; height: 4px; background: var(--grad);
}
.site-footer::after { content: ""; position: absolute; right: -200px; bottom: -260px; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,91,255,.22), transparent 65%); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .8fr 1.3fr; gap: 44px; padding-top: 76px; padding-bottom: 52px; }

.footer-brand p { max-width: 330px; }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 18px; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #d3d7f5; text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; overflow-wrap: anywhere; font-size: .9rem; }
.footer-contact svg { width: 17px; height: 17px; margin-top: 4px; flex: none; color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; padding-bottom: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); }
.social svg { width: 18px; height: 18px; }

/* ---------- WhatsApp flottante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; display: flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none; border-radius: 999px; padding: 12px 20px 12px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 600; font-size: .95rem; transition: transform .25s, background .25s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--wa); animation: waPulse 2.8s ease-out infinite; }
@keyframes waPulse { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.35); } }
.wa-float:hover { background: #1eb858; color: #fff; transform: translateY(-3px); }
.wa-float svg { width: 28px; height: 28px; flex: none; }

/* ---------- 404 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-top: 80px; padding-bottom: 80px; }
.error-page .eyebrow { justify-content: center; }

/* ---------- Animazioni allo scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .principle.reveal.in:hover, .js .feature.reveal.in:hover, .js .contact-card.reveal.in:hover { transform: translateY(-5px); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .page-head-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; }
  .page-head-visual img { max-width: 440px; margin: 0 auto; }
  .hero-facts { grid-template-columns: 1fr; border-radius: 20px 20px 0 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .svc-row { grid-template-columns: 1fr; gap: 36px; }
  .svc-row-rev .svc-media { order: 0; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .content-grid { grid-template-columns: 1fr; gap: 56px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 76px 0; }
  .hero { padding-top: 56px; }
  .header-inner { height: 70px; }
  .main-nav { inset: 70px 0 0 0; }
  .brand img { height: 42px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 30px 14px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .principles, .feature-list, .contact-grid, .address-block, .footer-grid { grid-template-columns: 1fr; }
  .svc-num { font-size: 5rem; top: -20px; }
  .svc-row + .svc-row { padding-top: 56px; }
  .content-grid { padding-top: 56px; padding-bottom: 72px; }
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
  .panel { padding: 32px 24px; }
  .media { border-radius: 20px; }
  .cta-inner { padding-top: 68px; padding-bottom: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .wa-float, .site-footer, .cta, .shape, .hero-visual, .page-head-visual { display: none; } .hero, .page-head, .section-dark { background: #fff; color: #000; } .hero h1, .page-head h1 { color: #000; } }

/* ---------- Aggiunte: bandiere, portale, WhatsApp, logo footer ---------- */
.flag { width: 20px; height: 14px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(13,16,48,.12); }
.lang-switch a, .lang-switch span { display: inline-flex; align-items: center; gap: 7px; }
.lang-switch a .flag { opacity: .9; }
.lang-switch span .flag { box-shadow: 0 0 0 1.5px #fff; }

.svc-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.btn-sm { padding: 11px 18px; font-size: .92rem; }

.portal {
  position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  margin: 34px 0 40px; padding: 32px; border-radius: 22px; background: var(--grad-dark); color: #c3c9f2; box-shadow: var(--shadow-lg);
}
.portal::before { content: ""; position: absolute; right: -80px; top: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(58,208,255,.45), transparent 65%); }
.portal::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); }
.portal > * { position: relative; }
.portal-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 24px -10px rgba(58,208,255,.8); }
.portal-ic svg { width: 32px; height: 32px; }
.portal .eyebrow { color: #a9b6ff; margin-bottom: 8px; }
.portal h3 { color: #fff; font-size: 1.3rem; margin-bottom: .35em; }
.portal p { margin: 0; font-size: .98rem; }
.portal .btn { white-space: nowrap; }

.wa-note { font-size: .86rem; line-height: 1.45; color: var(--muted); margin: 10px 0 0; padding-left: 26px; position: relative; }
.wa-note::before { content: "!"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--wa); color: #fff; font-weight: 800; font-size: .75rem; display: grid; place-items: center; line-height: 1; }
.side-box.dark .wa-note, .cta .wa-note { color: #b7bee8; }
.cta .btn-row { align-items: center; }
.cta .wa-note { flex-basis: 100%; max-width: 380px; }
.wa-txt { display: flex; flex-direction: column; line-height: 1.15; }
.wa-txt small { font-size: .72rem; font-weight: 500; opacity: .92; }

.footer-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 12px 18px; margin-bottom: 22px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); }
.footer-logo img { height: 46px; width: auto; margin: 0; }
.site-footer .footer-logo:hover { text-decoration: none; }

@media (max-width: 680px) {
  .portal { grid-template-columns: 1fr; padding: 26px 22px; }
  .wa-float .wa-txt { display: none; }
}

/* ---------- News ---------- */
.news-section { padding-top: 72px; }
.news-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .9rem; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--text); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--electric); color: var(--electric); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-lang.active { background: var(--grad); border-color: transparent; }
.news-updated { color: var(--muted); font-size: .9rem; margin: 0 0 28px; min-height: 1.4em; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.news-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.news-card.cat-firma::before { background: linear-gradient(90deg, #000086, #3b5bff); }
.news-card.cat-forense::before { background: linear-gradient(90deg, #7b5cf6, #c084fc); }
.news-card.cat-web::before { background: linear-gradient(90deg, #16a3a0, #3ad0ff); }
.news-card.cat-software::before { background: linear-gradient(90deg, #3b5bff, #3ad0ff); }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.news-card h3 { font-size: 1.08rem; line-height: 1.35; margin: 12px 0 10px; color: var(--ink); }
.news-card:hover h3 { color: var(--electric); }
.news-card p { font-size: .93rem; color: var(--muted); margin: 0 0 18px; flex: 1; }
.news-meta { display: flex; gap: 8px; align-items: center; }
.news-cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--electric); }
.news-lang { font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--soft); color: var(--muted); }
.news-foot { display: flex; justify-content: space-between; gap: 10px; font-size: .82rem; color: var(--gray); border-top: 1px solid var(--line); padding-top: 14px; }
.news-src { font-weight: 600; color: var(--navy); }
.news-empty { grid-column: 1 / -1; padding: 48px 28px; text-align: center; border: 1.5px dashed var(--line); border-radius: 18px; color: var(--muted); margin: 0; }
.news-disclaimer { margin: 36px 0 0; font-size: .85rem; color: var(--gray); }

/* ---------- Portfolio ---------- */
.pf-title { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; }
.tags li { font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: #eef1ff; color: var(--navy); }
.media-link { display: block; }

@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .news-grid { grid-template-columns: 1fr; } }

/* ---------- Portfolio: screenshot in cornice browser ---------- */
.media.shot { padding: 7% 6%; }
.browser { display: block; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.media.shot:hover .browser { transform: translateY(-6px) scale(1.01); }
.media.shot:hover img { transform: none; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #eef0f7; border-bottom: 1px solid #e0e3ee; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b6b; flex: none; }
.browser-bar i:nth-child(2) { background: #ffc857; } .browser-bar i:nth-child(3) { background: #5ee6a8; }
.browser-url { margin-left: 10px; flex: 1; max-width: 300px; padding: 3px 12px; border-radius: 999px; background: #fff; font-size: .75rem; color: #4a5068; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media.shot img { padding: 0; width: 100%; height: auto; display: block; }
