/* ==========================================================================
   Novika — foglio di stile principale
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #0a1150;
  --ink: #1b2466;
  --body: #3d4675;
  --muted: #6b7399;
  --line: #e4e7f6;
  --soft: #f4f5ff;

  --cyan: #18c9ef;
  --blue: #1a4dff;
  --violet: #6a1bff;
  --magenta: #e31cf0;

  --grad: linear-gradient(90deg, #0b4dff 0%, #6a1bff 55%, #e31cf0 100%);
  --grad-text: linear-gradient(90deg, #1455ff 0%, #5a1dff 60%, #8a1cff 100%);
  --grad-line: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet), var(--magenta));

  --radius: 12px;
  --shadow: 0 18px 44px -18px rgba(18, 28, 110, .28);
  --shadow-sm: 0 8px 22px -12px rgba(18, 28, 110, .3);
  --header-h: 92px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--navy); line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .9rem;
  padding: 1.05rem 1.9rem; border: 0; border-radius: 999px; cursor: pointer;
  font-size: .9rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .25s;
}
.btn .ico { font-size: 1.35rem; stroke-width: 3.5; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-grad { color: #fff; background: var(--grad); box-shadow: 0 14px 30px -12px rgba(90, 30, 255, .6); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(90, 30, 255, .7); filter: saturate(1.1); }
.btn-grad:active { transform: translateY(0); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(18, 28, 110, .35);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: clamp(150px, 17vw, 236px); }
.main-nav { padding: 0 15px; }
.main-nav ul { display: flex; gap: clamp(20px, 3vw, 44px); }
.main-nav a {
  position: relative; display: inline-block; padding: 8px 0;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--navy);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a:focus-visible::after { transform: scaleX(1); }
.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--navy); font-size: 1.5rem; cursor: pointer; place-items: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h);
  min-height: clamp(560px, 50vw, 700px);
  display: flex; align-items: center;
}
.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(0deg, transparent 0%, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(0deg, transparent 0%, #000 14%);
  mask-composite: intersect;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 30%; }
.hero-inner { position: relative; padding-block: 48px 88px; }
.hero-copy { max-width: 560px; }
.hero-title {
  font-size: clamp(2.6rem, 1.3rem + 3.7vw, 4.3rem);
  font-weight: 750; letter-spacing: -.035em; line-height: 1.02;
}
.hero-claim { margin-top: 1.75rem; font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); font-weight: 600; color: var(--navy); letter-spacing: -.01em; }
.hero-lead { margin-top: 1.1rem; font-size: clamp(1.05rem, .95rem + .35vw, 1.25rem); line-height: 1.5; color: var(--ink); max-width: 33em; }
.hero-lead strong { font-weight: 700; }
.hero .btn { margin-top: 2.2rem; }
.hero-tagline {
  position: absolute; right: 0; bottom: 64px;
  padding: 14px 18px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 16px 40px -20px rgba(10, 17, 80, .5);
  font-size: .78rem; font-weight: 700; line-height: 1.55; letter-spacing: .05em; text-transform: uppercase; color: var(--navy);
}
.hero-tagline::after { content: ""; display: block; width: 34px; height: 3px; margin-top: 10px; border-radius: 3px; background: var(--grad); }

/* ---------- Card soluzioni ---------- */
.solutions { position: relative; z-index: 2; margin-top: -36px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  --accent: var(--violet);
  --badge: linear-gradient(140deg, #9a35ff, #5a12ff);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -20px rgba(18, 28, 110, .35); }
.card--technology { --accent: #1f4fff; --badge: linear-gradient(140deg, #2f74ff, #1233e0); }
.card--intelligence { --accent: #0aa9e0; --badge: linear-gradient(140deg, #36dcf7, #0a93d6); }
.card-body { padding: 24px 22px 18px; }
.card-head { display: grid; grid-template-columns: 66px 1fr; gap: 18px; align-items: start; }
.card-badge {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: var(--badge); color: #fff; font-size: 2.1rem;
  box-shadow: 0 10px 22px -10px var(--accent);
}
.card-badge .ico { stroke-width: 2.8; }
.card-title { margin-top: 6px; font-size: 1.35rem; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; color: var(--accent); }
.card-subtitle { margin-top: 4px; font-size: .92rem; font-weight: 500; color: var(--accent); letter-spacing: -.01em; }
.card-subtitle::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 12px; border-radius: 2px; background: var(--accent); opacity: .7; }
.card-text { margin: 16px 0 0 84px; font-size: .95rem; line-height: 1.45; color: var(--ink); max-width: 17em; }
.card-items { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: 20px; }
.card-items li { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .66rem; line-height: 1.25; color: var(--body); }
.card-items .ico { font-size: 1.9rem; color: var(--accent); stroke-width: 2.6; transition: transform .3s var(--ease); }
.card-items li:hover .ico { transform: translateY(-3px); }
.card-media { position: relative; margin: auto 0 0; aspect-ratio: 16 / 10; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 22%, rgba(6, 12, 50, 0) 55%, rgba(6, 12, 50, .78) 100%);
}
.card-media figcaption {
  position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 2;
  color: #fff; font-size: .88rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase;
}
.card-media figcaption::after { content: ""; display: block; width: 28px; height: 2px; margin-top: 8px; border-radius: 2px; background: var(--accent); filter: brightness(1.4); }

/* ---------- Percorso ---------- */
.journey { padding: 56px 0 64px; }
.section-divider { display: flex; align-items: center; gap: 22px; font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.section-divider::before, .section-divider::after { content: ""; flex: 1; height: 2px; border-radius: 2px; }
.section-divider::before { background: linear-gradient(90deg, rgba(106, 27, 255, .15), var(--violet)); }
.section-divider::after { background: linear-gradient(90deg, var(--blue), rgba(24, 201, 239, .3)); }
.journey-track { position: relative; margin-top: 34px; padding-inline: 52px; }
.journey-loop { position: absolute; top: 4px; width: 38px; height: 124px; fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.journey-loop path { vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.journey-loop--left { left: 0; stroke: var(--violet); }
.journey-loop--right { right: 0; stroke: #8a1cff; }
.journey-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.step { --c: var(--violet); position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step--1 { --c: #b41cf0; }
.step--2 { --c: #8a22ff; }
.step--3 { --c: #4a3bff; }
.step--4 { --c: #2455ff; }
.step--5 { --c: #1a78ff; }
.step-icon {
  width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; font-size: 2.3rem; color: var(--c);
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 45%, #18c9ef)) border-box;
  box-shadow: 0 10px 24px -14px var(--c);
  transition: transform .3s var(--ease);
}
.step-icon .ico { stroke-width: 2.6; }
.step:hover .step-icon { transform: translateY(-4px) rotate(-4deg); }
.step:not(:last-child)::after,
.step:not(:last-child)::before { content: ""; position: absolute; top: 39px; pointer-events: none; }
.step:not(:last-child)::after {
  left: calc(50% + 58px); right: calc(-50% + 50px); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 60%, #1a78ff));
}
.step:not(:last-child)::before {
  right: calc(-50% + 50px); width: 9px; height: 9px; margin-top: -3.5px;
  border-top: 2px solid var(--c); border-right: 2px solid var(--c); transform: rotate(45deg);
}
.step-title { margin-top: 16px; font-size: .95rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--c); }
.step-text { margin-top: 8px; font-size: .88rem; line-height: 1.4; color: var(--body); max-width: 15em; }

/* ---------- Valore ---------- */
.value {
  position: relative; overflow: hidden; color: #fff;
  padding: clamp(56px, 7vw, 88px) 0;
  background:
    radial-gradient(60% 90% at 100% 110%, rgba(170, 40, 255, .55), transparent 60%),
    radial-gradient(40% 60% at 55% 50%, rgba(30, 80, 255, .22), transparent 70%),
    linear-gradient(100deg, #06103a 0%, #0a1a55 55%, #140f5c 100%);
}
.value-inner { display: grid; grid-template-columns: 1fr 1.4fr .8fr; gap: clamp(24px, 3.5vw, 48px); align-items: center; }
.eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--cyan); }
.value h2 { margin-top: 18px; color: #fff; font-size: clamp(2rem, 1.2rem + 2vw, 2.75rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.06; }
.value p { color: rgba(255, 255, 255, .82); font-size: .98rem; line-height: 1.55; }
.value-intro p:not(.eyebrow) { margin-top: 20px; max-width: 26em; }
.accent-line { display: block; width: 44px; height: 3px; margin-top: 28px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), #3a8bff); }
.value-outro { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-left: clamp(20px, 2.5vw, 34px); border-left: 1px solid rgba(255, 255, 255, .22); }
.value-outro h3 { color: #fff; font-size: clamp(1.25rem, 1rem + .7vw, 1.55rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.value-outro p { margin-top: 18px; }

.ecosystem { position: relative; aspect-ratio: 640 / 400; container-type: inline-size; }
.ecosystem-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ecosystem-lines .flow { fill: none; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 7; animation: flow 1.6s linear infinite; }
.ecosystem-lines .dot { display: none; fill: #fff; filter: drop-shadow(0 0 4px #7aa5ff); }
@keyframes flow { to { stroke-dashoffset: -24; } }
.ecosystem-mark {
  position: absolute; left: 35.2%; top: 30.5%; width: 26.6%;
  filter: drop-shadow(0 18px 36px rgba(140, 40, 255, .45));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-6px); } }
.eco-node { position: absolute; }
.eco-node--people { left: 12.5%; top: 27%; }
.eco-node--technology { left: 30.6%; top: 83%; }
.eco-node--intelligence { left: 68.75%; top: 22.5%; }
.eco-node--performance { left: 91.25%; top: 65.5%; }
.eco-icon {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 11cqw; height: 11cqw; min-width: 42px; min-height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 5.2cqw;
  background: radial-gradient(circle at 32% 28%, #1b2b72, #0a1442 70%);
  border: 2px solid #1f9bff; box-shadow: 0 0 18px -2px rgba(31, 155, 255, .55);
}
.eco-icon .ico { stroke-width: 2.4; }
.eco-node--intelligence .eco-icon, .eco-node--performance .eco-icon { border-color: #b42cff; box-shadow: 0 0 18px -2px rgba(180, 44, 255, .6); }
.eco-node p { position: absolute; width: 26cqw; font-size: clamp(.6rem, 2.1cqw, .78rem); line-height: 1.3; color: rgba(255, 255, 255, .78); }
.eco-node p strong { display: block; margin-bottom: 2px; color: #fff; font-size: clamp(.66rem, 2.4cqw, .86rem); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.eco-node--people p { left: -5.5cqw; top: 7.5cqw; }
.eco-node--technology p { left: 7.5cqw; top: -3.2cqw; width: 30cqw; }
.eco-node--intelligence p { left: 7.5cqw; top: -3.6cqw; }

/* ---------- CTA ---------- */
.cta { padding: clamp(40px, 5vw, 64px) 0; }
.cta-box {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 3vw, 40px);
  padding: 26px clamp(24px, 4vw, 56px); border-radius: var(--radius);
  background: linear-gradient(90deg, #eef0ff, #f1edff 60%, #f6eefe);
}
.cta-arrow {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; color: var(--navy); font-size: 3.2rem; box-shadow: var(--shadow-sm);
}
.cta-arrow .ico { stroke-width: 7.5; }
.cta-copy h2 { font-size: clamp(1.35rem, 1rem + 1vw, 1.75rem); font-weight: 650; letter-spacing: -.01em; text-transform: uppercase; }
.cta-copy p { margin-top: 8px; font-size: 1.05rem; color: var(--ink); max-width: 24em; }
.noscript-note { grid-column: 1 / -1; font-size: .9rem; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 26px 18px; }
.brand-footer img { width: clamp(140px, 15vw, 190px); }
.footer-links { display: flex; align-items: center; flex-wrap: wrap; }
.footer-links li { display: flex; align-items: center; }
.footer-links li + li::before { content: ""; width: 1px; height: 18px; margin-inline: 20px; background: #c4c9e4; }
.footer-links a { font-size: .9rem; color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.social {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--navy); color: var(--navy); font-size: 1.45rem;
  transition: background-color .25s, color .25s;
}
.social .ico { stroke-width: 4.2; }
a.social:hover { background: var(--navy); color: #fff; }
.footer-legal { padding-bottom: 26px; }
.footer-legal p { font-size: .76rem; color: var(--muted); }

/* ---------- Animazioni in ingresso ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .12s; }
.js .reveal[data-delay="2"] { transition-delay: .24s; }
.js .step.reveal:nth-child(2) { transition-delay: .1s; }
.js .step.reveal:nth-child(3) { transition-delay: .2s; }
.js .step.reveal:nth-child(4) { transition-delay: .3s; }
.js .step.reveal:nth-child(5) { transition-delay: .4s; }

/* ---------- Modale contatti ---------- */
.modal {
  width: min(580px, 100% - 32px); max-height: min(92vh, 900px); padding: 0; border: 0; border-radius: 20px;
  color: var(--body); background: #fff; box-shadow: 0 40px 80px -30px rgba(8, 12, 60, .55); overflow: auto;
}
.modal::backdrop { background: rgba(8, 12, 50, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.modal-top { height: 5px; background: var(--grad-line); }
.modal-inner { padding: 28px clamp(20px, 5vw, 36px) 32px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-head h2 { font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; }
.modal-head p { margin-top: 6px; font-size: .95rem; }
.modal-close {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft); color: var(--navy); font-size: 1.3rem; cursor: pointer; transition: background-color .2s;
}
.modal-close:hover { background: #e6e8fb; }
.contact-form { display: grid; gap: 16px; margin-top: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: .8rem .95rem; border: 1.5px solid #d6daf0; border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--navy); background: #fbfbff;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(106, 27, 255, .14); }
.field.has-error input, .field.has-error textarea { border-color: #d0164b; }
.field-error { min-height: 0; font-size: .8rem; color: #c0103f; }
.field-hint { display: flex; justify-content: flex-end; font-size: .75rem; color: var(--muted); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .88rem; line-height: 1.45; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--violet); cursor: pointer; }
.check a { color: var(--violet); font-weight: 600; }
.form-note { font-size: .78rem; line-height: 1.45; color: var(--muted); }
.form-status { font-size: .9rem; font-weight: 500; }
.form-status.is-error { padding: 12px 14px; border-radius: 10px; background: #fff0f4; color: #b0103a; }
.contact-form .btn { width: 100%; }
.form-success { padding: 18px 0 6px; text-align: center; }
.form-success .success-icon {
  width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 2.2rem;
}
.form-success .success-icon .ico { stroke-width: 5; }
.form-success h2 { font-size: 1.5rem; }
.form-success p { margin: 10px auto 22px; max-width: 26em; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
body.modal-open { overflow: hidden; }

/* ---------- Pagine legali ---------- */
.legal { width: min(900px, 100% - 40px); margin-inline: auto; padding: 40px 0 80px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.legal-nav a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--navy); text-decoration: none; }
.legal-nav a:hover { border-color: var(--violet); color: var(--violet); }
.policy { margin-bottom: 72px; line-height: 1.65; }
.policy:last-child { margin-bottom: 0; }
.policy h1 {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.3rem); letter-spacing: -.03em; line-height: 1.15;
  margin-bottom: 10px; padding-bottom: 15px; border-bottom: 2px solid transparent;
  border-image: var(--grad-line) 1;
}
.policy h2 { font-size: 1.2rem; margin: 30px 0 8px; }
.policy p, .policy li { margin: 0 0 1em; color: var(--body); }
.policy a { color: var(--blue); }
.policy .updated { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #7c82a6; margin-bottom: 24px; }
.policy .box { background: var(--soft); border: 1px solid #e6e8fb; border-radius: 12px; padding: 18px 22px; margin: 14px 0; }
.policy .box strong { color: var(--navy); }
.page-legal .site-header { background: rgba(255, 255, 255, .9); box-shadow: 0 1px 0 var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .card-text { margin-left: 0; max-width: none; }
  .card-items li { font-size: .62rem; }
  .card-items .ico { font-size: 1.7rem; }
  .value-inner { grid-template-columns: 1fr 1.3fr; }
  .value-outro { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 28px; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: grid; }
  .main-nav {
    position: absolute; top: calc(100% - 4px); left: 16px; right: 16px;
    padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 24px 50px -20px rgba(18, 28, 110, .45);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { display: block; padding: 14px 12px; font-size: .9rem; }
  .main-nav a::after { display: none; }
  .site-header.menu-open { background: #fff; }

  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-media { position: relative; order: 2; width: 100%; aspect-ratio: 16 / 10; z-index: -1; margin-top: -24px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add; }
  .hero-inner { padding-block: 28px 0; }
  .hero-tagline { display: none; }
  .solutions { margin-top: 0; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 20px; }
  .card-items li { font-size: .68rem; }

  .journey-track { padding-inline: 0; }
  .journey-loop { display: none; }
  .journey-steps { grid-template-columns: 1fr; gap: 0; max-width: 420px; margin-inline: auto; }
  .step { display: grid; grid-template-columns: 72px 1fr; column-gap: 20px; text-align: left; align-items: center; padding-bottom: 34px; }
  .step-icon { grid-row: span 2; width: 72px; height: 72px; font-size: 2rem; }
  .step-title { margin-top: 0; align-self: end; }
  .step-text { margin-top: 4px; align-self: start; max-width: none; }
  .step:not(:last-child)::after { left: 35px; right: auto; top: 80px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 60%, #1a78ff)); }
  .step:not(:last-child)::before { left: 31.5px; right: auto; top: auto; bottom: 6px; margin: 0; transform: rotate(135deg); }

  .value-inner { grid-template-columns: 1fr; }
  .ecosystem { max-width: 560px; width: 100%; margin-inline: auto; }
  .cta-box { grid-template-columns: 1fr; justify-items: start; text-align: left; }
  .cta-arrow { width: 64px; height: 64px; font-size: 1.7rem; }
}

@media (max-width: 600px) {
  .container { width: min(var(--container), 100% - 32px); }
  .form-row { grid-template-columns: 1fr; }
  .card-body { padding: 20px 16px 16px; }
  .card-items { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links li + li::before { margin-inline: 14px; }
  .cta-box .btn { width: 100%; }
}

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

/* Link preferenze cookie (CookieYes riapre il banner sugli elementi .cky-banner-element) */
.footer-cookie-btn { padding: 0; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; }
.footer-cookie-btn:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.gtm-noscript { display: none; visibility: hidden; }

/* ---------- Pagina Coming soon (coming.php) ---------- */
.coming { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.coming-media {
  position: absolute; top: 0; right: 0; bottom: 0; width: 64%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(0deg, transparent 0%, #000 22%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%), linear-gradient(0deg, transparent 0%, #000 22%);
  mask-composite: intersect;
}
.coming-media img { width: 100%; height: 100%; object-fit: cover; object-position: 80% 30%; animation: coming-zoom 24s ease-in-out infinite alternate; }
@keyframes coming-zoom { to { transform: scale(1.06); } }
.coming-header { height: var(--header-h); display: flex; align-items: center; }
.coming-main { flex: 1; display: flex; align-items: center; padding-block: 16px 40px; }
.coming-copy { max-width: 660px; animation: coming-in .9s var(--ease) both; }
.coming-copy .hero-title { font-size: clamp(2.3rem, 1.2rem + 3.1vw, 3.75rem); }
.coming-copy .hero-lead { max-width: 30em; }
@keyframes coming-in { from { opacity: 0; transform: translateY(22px); } }
.coming-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 1.6rem; padding: 8px 16px 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy);
}
.coming-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--grad); }
.coming-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--violet); opacity: 0; animation: coming-pulse 2s ease-out infinite; }
@keyframes coming-pulse { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.coming-actions { display: flex; align-items: center; gap: 16px; margin-top: 2.2rem; }
.coming-actions .social { background: rgba(255, 255, 255, .8); }
.coming-pillars { display: flex; flex-wrap: wrap; gap: 14px 26px; margin-top: 2.4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.coming-pillars li { display: flex; align-items: center; gap: 12px; font-size: .78rem; line-height: 1.3; color: var(--body); }
.coming-pillars strong { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--navy); }
.coming-pillar-icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-size: 1.35rem; background: linear-gradient(140deg, #9a35ff, #5a12ff); }
.coming-pillars li:nth-child(2) .coming-pillar-icon { background: linear-gradient(140deg, #2f74ff, #1233e0); }
.coming-pillars li:nth-child(3) .coming-pillar-icon { background: linear-gradient(140deg, #36dcf7, #0a93d6); }
.coming-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px 22px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.coming-footer a { color: var(--ink); text-decoration: none; }
.coming-footer a:hover { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.coming-footer .footer-cookie-btn { font-size: inherit; }
@media (max-width: 900px) {
  .coming-media { top: auto; height: 46%; width: 100%; opacity: .42;
    -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 45%, transparent 100%); mask-image: linear-gradient(0deg, #000 0%, #000 45%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add; }
  .coming-main { align-items: flex-start; padding-top: 16px; }
  .coming-pillars { gap: 14px 20px; }
  .coming-footer { background: rgba(255, 255, 255, .88); }
}
