/* Marconi Software — Landing Software su Misura (2026/2027) */
:root {
  --navy: #071526;
  --navy-2: #0c2340;
  --blue: #1a7af8;
  --blue-bright: #3eb1ff;
  --azure: #e8f4ff;
  --ice: #f5f9fc;
  --white: #ffffff;
  --ink: #0f172a;
  --muted: #5b6b7c;
  --line: rgba(15, 39, 68, 0.12);
  --glow: rgba(26, 122, 248, 0.35);
  --radius: 18px;
  --shadow: 0 24px 60px rgba(7, 21, 38, 0.14);
  --shadow-sm: 0 10px 28px rgba(7, 21, 38, 0.08);
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --display: "Sora", "Plus Jakarta Sans", sans-serif;
  --max: 1160px;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10000;
  background: var(--blue);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 10px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand img { width: 36px; height: 36px; }
.brand span { color: var(--blue); }
.nav {
  display: none;
  align-items: center;
  gap: 1.4rem;
}
.nav a {
  font-size: .92rem;
  font-weight: 550;
  color: var(--muted);
}
.nav a:hover { color: var(--navy); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), #0d5fd4);
  color: #fff !important;
  box-shadow: 0 10px 24px var(--glow);
}
.menu-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: .55rem .7rem;
  cursor: pointer;
}
@media (min-width: 920px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}
.nav.open {
  display: flex;
  position: absolute;
  inset: var(--header-h) 1rem auto;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue) 55%, #0b4fbe);
  color: #fff;
  box-shadow: 0 14px 34px var(--glow);
}
.btn-secondary {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.28);
  color: #fff;
}
.btn-dark {
  background: var(--navy);
  color: #fff;
}
.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--navy);
}
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(62,177,255,.28), transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 80%, rgba(26,122,248,.18), transparent 50%),
    linear-gradient(160deg, #06111f 0%, #0c2340 48%, #0a1a33 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  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: 48px 48px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 78%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #cfe6ff;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  max-width: 16ch;
}
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(232, 244, 255, .88);
  max-width: 42ch;
  margin: 0 0 1.6rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.2rem;
  margin-top: 1.5rem;
  color: rgba(232,244,255,.75);
  font-size: .9rem;
}
.hero-trust strong { color: #fff; font-weight: 700; }

/* Dashboard mock */
.dash {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
  padding: 1rem;
  backdrop-filter: blur(8px);
}
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .9rem;
}
.dash-dots { display: flex; gap: .35rem; }
.dash-dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.25);
}
.dash-dots span:first-child { background: #ff6b6b; }
.dash-dots span:nth-child(2) { background: #ffd166; }
.dash-dots span:nth-child(3) { background: #06d6a0; }
.dash-title { font-size: .78rem; color: rgba(255,255,255,.7); }
.dash-body {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1.1fr .9fr;
}
.dash-card {
  background: rgba(7, 21, 38, .55);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: .85rem;
}
.dash-card.wide { grid-column: 1 / -1; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.kpi {
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  padding: .65rem;
}
.kpi small { display: block; color: rgba(255,255,255,.55); font-size: .68rem; }
.kpi strong { display: block; margin-top: .2rem; font-size: 1.05rem; }
.bars {
  display: flex;
  align-items: flex-end;
  gap: .35rem;
  height: 84px;
  margin-top: .5rem;
}
.bars i {
  display: block;
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--blue-bright), var(--blue));
  opacity: .9;
}
.table-lines { display: grid; gap: .45rem; margin-top: .55rem; }
.table-lines span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.table-lines span:nth-child(1) { width: 92%; }
.table-lines span:nth-child(2) { width: 78%; }
.table-lines span:nth-child(3) { width: 86%; }
.table-lines span:nth-child(4) { width: 64%; }
.float-chip {
  position: absolute;
  right: -8px;
  bottom: 18%;
  background: #fff;
  color: var(--navy);
  border-radius: 14px;
  padding: .7rem .9rem;
  box-shadow: var(--shadow);
  font-size: .78rem;
  font-weight: 700;
}
@media (max-width: 720px) {
  .dash-body { grid-template-columns: 1fr; }
  .float-chip { display: none; }
}

/* Sections */
section { scroll-margin-top: calc(var(--header-h) + 12px); }
.section { padding: 5rem 0; }
.section-alt { background: var(--ice); }
.section-dark {
  background: linear-gradient(160deg, var(--navy), var(--navy-2));
  color: #fff;
}
.section-head {
  max-width: 720px;
  margin: 0 auto 2.6rem;
  text-align: center;
}
.section-head h2,
.left-head h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.18;
  margin: 0 0 .85rem;
}
.section-head p,
.left-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.section-dark .section-head p { color: rgba(232,244,255,.78); }

.grid-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) {
  .grid-services { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(26,122,248,.28);
}
.card h3 {
  margin: 0 0 .45rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: .85rem;
  background: linear-gradient(135deg, var(--azure), #d7ebff);
  color: var(--blue);
  font-weight: 800;
  font-size: .85rem;
}

.problem-list {
  display: grid;
  gap: .85rem;
  max-width: 860px;
  margin: 0 auto;
}
.problem-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: .85rem;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
}
.problem-item .mark {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: #ffe8e8; color: #d93838; font-weight: 800;
}
.problem-close {
  max-width: 860px;
  margin: 1.5rem auto 0;
  padding: 1.2rem 1.3rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #0c2340, #12407a);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Excel transform */
.excel-grid {
  display: grid;
  gap: 1.2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .excel-grid { grid-template-columns: 1fr auto 1fr; }
}
.excel-panel, .soft-panel {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.1rem;
  min-height: 240px;
  box-shadow: var(--shadow-sm);
}
.excel-panel {
  background: linear-gradient(180deg, #edf7ed, #fff 40%);
}
.soft-panel {
  background: linear-gradient(180deg, #eaf3ff, #fff 40%);
}
.panel-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .7rem;
}
.excel-sheet {
  border: 1px solid #c9e0c9;
  border-radius: 10px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
}
.excel-row {
  display: grid;
  grid-template-columns: 28px repeat(4, 1fr);
  border-bottom: 1px solid #dceadc;
}
.excel-row:last-child { border-bottom: 0; }
.excel-row span { padding: .45rem .35rem; border-right: 1px solid #dceadc; }
.excel-row span:last-child { border-right: 0; }
.excel-row.head { background: #217346; color: #fff; font-weight: 700; }
.arrow {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #fff;
  font-size: 1.3rem;
  box-shadow: 0 12px 28px var(--glow);
}
.benefit-chips {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem;
}
.benefit-chips span {
  background: var(--azure);
  color: #0b4fbe;
  border-radius: 999px;
  padding: .4rem .75rem;
  font-size: .82rem;
  font-weight: 650;
}

/* Process */
.process {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 1.25rem;
}
.process-step .num {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-bright);
  line-height: 1;
  margin-bottom: .7rem;
}
.process-step h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.process-step p { margin: 0; color: rgba(232,244,255,.75); font-size: .93rem; }

/* Why */
.why-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 860px) { .why-grid { grid-template-columns: 1.1fr .9fr; } }
.why-list { display: grid; gap: .75rem; }
.why-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: .7rem;
  align-items: start;
}
.why-item i {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center;
  font-size: .7rem; font-style: normal; font-weight: 800;
  margin-top: .15rem;
}
.proof-box {
  background: linear-gradient(160deg, var(--navy), #12386d);
  color: #fff;
  border-radius: 20px;
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.proof-box h3 { margin: 0 0 .7rem; font-size: 1.15rem; }
.proof-box ul { margin: 0; padding-left: 1.1rem; color: rgba(232,244,255,.85); }
.proof-box li { margin: .35rem 0; }
.note {
  margin-top: .9rem;
  font-size: .85rem;
  color: rgba(232,244,255,.65);
}

/* Use cases / cases */
.cases {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) { .cases { grid-template-columns: repeat(2, 1fr); } }
.case-card .tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #0b4fbe;
  background: var(--azure);
  border-radius: 999px;
  padding: .25rem .6rem;
  margin-bottom: .6rem;
}
.case-card .tag.illus {
  color: #6b4f00;
  background: #fff4d6;
}

/* FAQ */
.faq {
  display: grid;
  gap: .7rem;
  max-width: 860px;
  margin: 0 auto;
}
details.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .2rem 1rem;
}
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 1rem 0;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* CTA final + form */
.cta-final {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 960px) {
  .cta-final { grid-template-columns: .95fr 1.05fr; align-items: start; }
}
.form-card {
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  padding: 1.35rem;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  gap: .85rem;
}
@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
label {
  display: grid;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 650;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ice);
  padding: .8rem .9rem;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(26,122,248,.35);
  border-color: var(--blue);
  background: #fff;
}
.checks { display: grid; gap: .55rem; margin-top: .3rem; }
.check {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: .6rem;
  align-items: start;
  font-size: .86rem;
  font-weight: 500;
  color: var(--muted);
}
.check input { width: 18px; height: 18px; margin-top: .15rem; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-status {
  min-height: 1.25rem;
  margin-top: .7rem;
  font-size: .92rem;
  font-weight: 650;
}
.form-status.ok { color: #0a7a45; }
.form-status.err { color: #c62828; }
.contact-mini {
  margin-top: 1rem;
  font-size: .92rem;
  color: rgba(232,244,255,.8);
}
.contact-mini a { color: #fff; font-weight: 700; text-decoration: underline; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  color: var(--muted);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; flex-wrap: wrap; gap: .9rem; }
.footer-links a:hover { color: var(--navy); }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover { transform: none; }
}
