/* NOVA Information Technology */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }

:root {
  --blue-300: #8cc8f0;
  --blue-400: #3aa3e8;
  --blue-500: #1a7fc4;
  --blue-600: #1468a8;
  --blue-700: #0d4f80;
  --blue-50:  #ebf5fc;
  --ink:      #0d1b2a;
  --ink-2:    #24364a;
  --text:     #3b4a5a;
  --muted:    #677689;
  --line:     #e2e9f0;
  --bg:       #ffffff;
  --surface:  #f5f8fb;
  --night:    #0a1624;
  --green:    #12b76a;
  --green-50: #e9f9f0;
  --red:      #e5484d;
  --radius:   18px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, .06), 0 2px 8px rgba(13, 27, 42, .05);
  --shadow:    0 2px 6px rgba(13, 27, 42, .05), 0 22px 48px -16px rgba(13, 27, 42, .22);
  --shadow-lg: 0 30px 80px -24px rgba(13, 27, 42, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; font: 600 16px/1 var(--font); border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--blue-400), var(--blue-600)); color: #fff; box-shadow: 0 10px 24px -8px rgba(26, 127, 196, .65); }
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(26, 127, 196, .8); }
.btn-outline { color: var(--ink); border-color: #cfdae5; background: #fff; }
.btn-outline:hover { border-color: var(--blue-500); }
.btn-green { background: linear-gradient(135deg, #36d982, #059a4f); color: #fff; box-shadow: 0 10px 24px -8px rgba(18, 183, 106, .6); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo svg { width: 36px; height: 36px; }
.logo .word { display: grid; line-height: 1; }
.logo .word b { font: 600 25px/1 var(--font-head); letter-spacing: .2em; }
.logo .word small { font: 600 8.6px/1 var(--font); letter-spacing: .2em; color: var(--muted); margin-top: 5px; padding-top: 4px; border-top: 1px solid currentColor; border-color: #c9d4df; }

/* ---------- Intestazione ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s ease, box-shadow .25s ease; }
.site-header.scrolled, .site-header.open { background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { color: var(--ink-2); padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.nav-links a:hover { background: rgba(26, 127, 196, .08); color: var(--blue-700); text-decoration: none; }
.nav .btn { padding: 11px 18px; font-size: 15px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--ink); padding: 8px; cursor: pointer; }
.nav-toggle .icon { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 150px 0 150px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(800px 500px at 85% 15%, rgba(58, 163, 232, .18), transparent 60%),
    radial-gradient(600px 400px at 0% 55%, rgba(58, 163, 232, .10), transparent 60%),
    linear-gradient(180deg, #f3f8fd 0%, #fff 100%); }
.hero-star { position: absolute; right: -140px; top: 40px; width: 760px; height: 760px; z-index: -1; opacity: .07; transform: rotate(12deg); }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); font-weight: 800; letter-spacing: -.035em; margin: 0 0 22px; }
.hero h1 em { font-style: normal; color: var(--blue-500); }
.hero .lead { font-size: clamp(18px, 1.9vw, 20px); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; font-size: 15px; color: var(--muted); }
.hero-tags li { display: flex; align-items: center; gap: 8px; }
.hero-tags .icon { width: 18px; height: 18px; color: var(--blue-500); }
.hero-visual { position: relative; }
.hero-photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 5.4; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow); font-size: 14px; line-height: 1.3; color: var(--muted); }
.float b { display: block; color: var(--ink); font: 700 15px/1.3 var(--font-head); }
.float .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float .ico img { width: 40px; height: 40px; }
.float.f1 { left: -36px; bottom: 56px; }
.float.f2 { right: -24px; top: 44px; }
.float.f2 .ico { background: var(--blue-50); color: var(--blue-600); }
.float.f2 .ico .icon { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .float.f1 { animation: bob 7s ease-in-out infinite; }
  .float.f2 { animation: bob 7s ease-in-out -3.5s infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
}

/* ---------- Pilastri ---------- */
.pillars { padding: 0 0 30px; margin-top: -70px; position: relative; z-index: 1; }
.pillars .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.pillar { padding: 34px 32px; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar .num { font: 800 13px/1 var(--font-head); color: var(--blue-500); letter-spacing: .1em; }
.pillar h3 { font-size: 21px; margin: 12px 0 8px; }
.pillar p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- Sezioni ---------- */
section { position: relative; }
.section { padding: 110px 0; }
.section.alt { background: var(--surface); }
.head { max-width: 760px; margin-bottom: 56px; }
.head.center { text-align: center; margin-inline: auto; }
.kicker { display: inline-block; font: 700 13px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-500); margin-bottom: 16px; }
.head h2, .split h2 { font-size: clamp(32px, 4.2vw, 46px); font-weight: 800; margin-bottom: 18px; }
.head p { font-size: 19px; color: var(--muted); margin: 0; }
.lead { font-size: 19px; color: var(--muted); }

/* Servizi */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease; }
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff; margin-bottom: 22px; }
.service .ico .icon { width: 27px; height: 27px; }
.service h3 { font-size: 21px; margin-bottom: 10px; }
.service p { font-size: 15.5px; color: var(--muted); margin: 0; }
.service .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 15px; }
.service .more .icon { width: 16px; height: 16px; }
.c-blue   { background: linear-gradient(135deg, #60a5fa, #1d4ed8); box-shadow: 0 10px 20px -10px #1d4ed8; }
.c-green  { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 10px 20px -10px #059669; }
.c-amber  { background: linear-gradient(135deg, #fbbf24, #ea580c); box-shadow: 0 10px 20px -10px #ea580c; }
.c-violet { background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 10px 20px -10px #7c3aed; }
.c-pink   { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 10px 20px -10px #db2777; }
.c-teal   { background: linear-gradient(135deg, #2dd4bf, #0d9488); box-shadow: 0 10px 20px -10px #0d9488; }

/* Piattaforme */
.platforms { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; align-items: center; margin-top: 64px; padding: 34px 40px; border-radius: 24px; background: var(--night); color: #b8c7d8; overflow: hidden; position: relative; isolation: isolate; }
.platforms::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(500px 300px at 100% 0%, rgba(58, 163, 232, .25), transparent 70%); }
.platforms h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.platforms p { margin: 0; font-size: 15.5px; }
.plat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plat { padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.plat .icon { color: var(--blue-300); width: 28px; height: 28px; margin-bottom: 12px; }
.plat b { display: block; color: #fff; font: 700 17px/1.2 var(--font-head); margin-bottom: 4px; }
.plat span { font-size: 14.5px; }

/* Split immagine + testo */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.rev > :first-child { order: 2; }
.photo { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.5; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.checks { display: grid; gap: 12px; margin: 26px 0 0; }
.checks li { display: flex; gap: 12px; color: var(--ink-2); }
.checks .icon { width: 22px; height: 22px; color: var(--blue-500); margin-top: 2px; }

/* DeskEngine */
.product { background: linear-gradient(180deg, #f2f8f5 0%, #fff 100%); color: var(--text); overflow: hidden; isolation: isolate; }
.product::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 500px at 90% 10%, rgba(54, 217, 130, .18), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(58, 163, 232, .08), transparent 60%); }
.product::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(12, 26, 20, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(12, 26, 20, .04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.product .kicker { color: #059a4f; }
.product h2 { color: var(--ink); }
.product .lead { color: var(--muted); }
.product .split { grid-template-columns: .95fr 1.15fr; }
.de-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.de-brand img { width: 52px; height: 52px; }
.de-brand span { color: var(--ink); font: 800 26px/1 var(--font-head); letter-spacing: -.02em; }
.de-brand span i { font-style: normal; font-weight: 500; opacity: .85; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }
.chips li { padding: 7px 13px; border-radius: 999px; font-size: 14px; color: #1f4d36; background: #fff; border: 1px solid #cfe9da; }
.product .checks li { color: var(--ink-2); }
.product .checks .icon { color: #059a4f; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.product .btn-outline { background: #fff; color: var(--ink); border-color: #cfdcd5; }
.product .btn-outline:hover { border-color: #12b76a; }
.shot { position: relative; }
.shot img { border-radius: 14px; box-shadow: 0 30px 80px -24px rgba(12, 26, 20, .35), 0 0 0 1px rgba(12, 26, 20, .08); width: 100%; height: auto; }
.shot::before { content: ""; position: absolute; inset: 10% 5% -5%; background: radial-gradient(closest-side, rgba(54, 217, 130, .22), transparent); filter: blur(40px); z-index: -1; }
.quote-line { margin-top: 26px; font: 700 20px/1.35 var(--font-head); color: var(--ink); }
.quote-line span { color: #059a4f; }

/* Cloud */

/* Metodo */
.cycle { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 10px 0 64px; counter-reset: c; position: relative; }
.cycle::before { content: ""; position: absolute; left: 8%; right: 8%; top: 27px; height: 2px; background: linear-gradient(90deg, var(--blue-300), var(--blue-500)); opacity: .5; }
.cycle li { position: relative; text-align: center; padding: 0 8px; }
.cycle li::before { counter-increment: c; content: counter(c); display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #fff; border: 2px solid var(--blue-400); color: var(--blue-600); font: 800 19px/1 var(--font-head); box-shadow: 0 0 0 6px var(--surface); position: relative; }
.cycle b { display: block; color: var(--ink); font: 700 16.5px/1.3 var(--font-head); }
.cycle span { font-size: 14px; color: var(--muted); }
.agile { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
.agile div { padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.agile h3 { font-size: 18px; margin-bottom: 6px; }
.agile p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* Chi siamo */

/* Contatti */
.contact { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow-sm); }
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { display: grid; gap: 7px; }
.fld label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.fld label small { font-weight: 400; color: var(--muted); }
.fld input, .fld textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid #d3dde7; background: #fbfcfe; color: var(--ink); font: 400 16px/1.4 var(--font); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.fld textarea { min-height: 140px; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 4px rgba(26, 127, 196, .15); }
.fld.err input, .fld.err textarea { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 14.5px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue-600); }
.check.err { color: var(--red); }
.captcha { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: end; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px dashed #cdd9e4; }
.captcha-img { display: flex; align-items: center; gap: 8px; }
.captcha-img img { color: transparent; font-size: 0; width: 200px; height: 64px; border-radius: 10px; background: #f7f9fb; border: 1px solid var(--line); }
.captcha-img button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; transition: transform .3s ease; }
.captcha-img button:hover { color: var(--blue-600); }
.captcha-img button.spin { transform: rotate(360deg); }
.captcha-img button .icon { width: 18px; height: 18px; }
.captcha .fld input { text-transform: uppercase; letter-spacing: .3em; font-weight: 600; }
.captcha .hint { grid-column: 1 / -1; margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-foot .btn { border: 0; }
.form-foot .btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.status { font-size: 15px; font-weight: 600; min-height: 1.4em; margin: 0; }
.status.ok { color: #0a8a4a; }
.status.ko { color: var(--red); }
.privacy-note { font-size: 13px; color: var(--muted); margin: 0; }
.aside { display: grid; gap: 20px; }
.aside .card { padding: 30px; }
.aside h3 { font-size: 20px; margin-bottom: 16px; }
.info { display: grid; gap: 16px; }
.info li { display: flex; gap: 14px; color: var(--ink-2); font-size: 15.5px; }
.info .icon { width: 22px; height: 22px; color: var(--blue-500); margin-top: 1px; }
.info small { display: block; color: var(--muted); font-size: 13.5px; }

/* Piè di pagina */
.site-footer { background: var(--night); color: #8b9cb0; padding: 64px 0 36px; font-size: 15px; }
.site-footer .logo { color: #fff; }
.site-footer .logo .word small { color: #8b9cb0; border-color: rgba(255, 255, 255, .2); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.foot p { margin: 18px 0 0; max-width: 380px; }
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.foot ul { display: grid; gap: 8px; }
.foot a, .site-footer button.link { color: #b8c7d8; }
.foot a:hover { color: #fff; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; font-size: 13.5px; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Informativa privacy */
dialog { width: min(680px, 100% - 32px); max-height: 85vh; border: 0; border-radius: 22px; padding: 0; box-shadow: var(--shadow-lg); color: var(--text); }
dialog::backdrop { background: rgba(10, 22, 36, .6); backdrop-filter: blur(4px); }
dialog .dlg { padding: 34px 36px 28px; }
dialog h2 { font-size: 26px; margin-bottom: 16px; }
dialog h3 { font-size: 16px; margin: 20px 0 6px; }
dialog p { font-size: 15px; margin: 0 0 8px; }
dialog .close { position: sticky; top: 0; float: right; margin: 14px 14px 0 0; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--ink); }

/* Comparsa allo scorrimento */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .platforms { grid-template-columns: 1fr; gap: 24px; }
  .cycle { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .cycle::before { display: none; }
}
@media (max-width: 960px) {
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .site-header.open .nav-links { display: grid; position: absolute; top: 76px; left: 0; right: 0; padding: 8px 20px 20px; background: rgba(255, 255, 255, .98); box-shadow: 0 12px 24px -12px rgba(13, 27, 42, .2); }
  .site-header.open .nav-links a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero { padding: 120px 0 130px; }
  .hero .wrap, .split, .product .split, .contact { grid-template-columns: 1fr; gap: 48px; }
  .split.rev > :first-child { order: 0; }
  .hero-visual { max-width: 560px; }
  .float.f1 { left: 12px; }
  .float.f2 { right: 12px; }
  .pillars .wrap { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .section { padding: 80px 0; }
  .services, .plat-list, .agile { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .platforms { padding: 28px 22px; }
  .form .row { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .captcha { grid-template-columns: 1fr; }
  .float { font-size: 13px; padding: 10px 14px; }
  .float.f2 { display: none; }
  .foot { grid-template-columns: 1fr; }
  dialog .dlg { padding: 26px 22px 22px; }
}
