/* ─────────────────────────────────────────────────────────────────────
   Innovatek Software — global stylesheet
   Brand palette taken from the Innovatek header artwork: deep violet to
   electric blue gradient with a warm yellow accent. Typography & spacing
   echo the Moneto design language (Bootstrap 5 / Hyper) for consistency
   across the studio's products.
   ──────────────────────────────────────────────────────────────────── */

:root {
  /* Brand colours */
  --brand-violet:   #4b2bbf;
  --brand-violet-d: #2e1a7a;
  --brand-blue:     #3b82f6;
  --brand-blue-d:   #1e3a8a;
  --brand-accent:   #ffd60a;
  --brand-accent-d: #f5a524;

  /* Neutrals (Moneto palette) */
  --text:        #1f2937;
  --text-muted:  #6b7280;
  --text-light:  #9ca3af;
  --bg:          #ffffff;
  --bg-alt:      #f8fafc;
  --bg-card:     #ffffff;
  --border:      #e5e7eb;
  --border-soft: #f1f5f9;

  /* Layout */
  --container-max: 1180px;
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow:    0 6px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.14);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--text-muted); }
.micro { font-size: .85rem; }

/* ── Header ────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center;
  color: var(--text); text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 48px; height: 48px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  aspect-ratio: 1 / 1;
  transition: transform .15s ease;
}
.brand:hover .brand-mark { transform: scale(1.05); }
@media (max-width: 480px) {
  .brand-mark { width: 42px; height: 42px; }
}
.site-nav {
  display: flex; align-items: center; gap: 22px;
}
.site-nav a {
  color: var(--text); font-weight: 500; font-size: .95rem;
}
.site-nav a:hover { color: var(--brand-blue); text-decoration: none; }
.cta-mini {
  background: var(--brand-blue); color: #fff !important;
  padding: 8px 16px; border-radius: 999px; font-weight: 600;
  transition: background .15s, transform .15s;
}
.cta-mini:hover { background: var(--brand-blue-d); transform: translateY(-1px); text-decoration: none; }

/* Language picker */
.lang-picker { position: relative; }
.lang-picker summary {
  list-style: none; cursor: pointer;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .85rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.lang-picker summary::-webkit-details-marker { display: none; }
.lang-picker summary:hover { border-color: var(--brand-blue); box-shadow: 0 4px 12px rgba(59,130,246,.10); }
.lang-picker[open] summary { border-color: var(--brand-blue); }
.lang-picker .flag {
  width: 20px; height: 14px;
  border-radius: 2px; flex: 0 0 auto;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.lang-picker .lang-code { letter-spacing: .04em; }
.lang-picker .caret { opacity: .55; font-size: .8em; }
.lang-picker ul {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  list-style: none; padding: 6px; margin: 0; min-width: 184px;
  z-index: 60;
}
.lang-picker li { margin: 0; }
.lang-picker li a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  color: var(--text); font-size: .92rem; font-weight: 500;
}
.lang-picker li a:hover { background: var(--bg-alt); text-decoration: none; }
.lang-picker li a[aria-current="page"] {
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-blue));
  color: #fff;
}
.lang-picker li a[aria-current="page"] .flag { box-shadow: 0 0 0 1px rgba(255,255,255,.30); }

/* Mobile: nav is hidden entirely — only logo + lang picker remain.
   The CTA links (Contatti, Prodotti…) become reachable via the contact
   section in the page itself. */
@media (max-width: 760px) {
  .site-nav { display: none; }
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .12s, background .15s, box-shadow .15s, color .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--brand-blue); color: #fff;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.30);
}
.btn-primary:hover { background: var(--brand-blue-d); box-shadow: 0 12px 26px rgba(59, 130, 246, 0.38); }
.btn-accent {
  background: var(--brand-accent); color: #2a1a02;
  box-shadow: 0 8px 20px rgba(255, 214, 10, 0.35);
}
.btn-accent:hover { background: var(--brand-accent-d); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  color: #fff; border-color: rgba(255, 255, 255, 0.30);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn-outline {
  background: transparent; color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.btn-outline:hover { background: var(--brand-blue); color: #fff; }
.btn-large { padding: 16px 32px; font-size: 1.05rem; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 214, 10, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(59, 130, 246, 0.35), transparent 60%),
    linear-gradient(135deg, var(--brand-violet-d) 0%, var(--brand-violet) 45%, var(--brand-blue) 100%);
  color: #fff;
  padding: 72px 0 80px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none; opacity: .5;
}
.hero .container { position: relative; z-index: 1; }

.hero-kicker {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff; margin-bottom: 22px;
}
.hero h1 { color: #fff; margin-bottom: 16px; max-width: 18ch; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--brand-accent) 0%, #fff3a3 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  position: relative; display: inline-block;
}
.hero h1 .accent::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -6px;
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-d));
  opacity: .85;
}
.hero .lead {
  font-size: 1.12rem; max-width: 58ch;
  color: rgba(255, 255, 255, 0.85); margin-bottom: 26px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-products {
  display: inline-flex; gap: 16px; align-items: center;
  color: rgba(255, 255, 255, 0.85); font-weight: 600; font-size: 1rem;
  flex-wrap: wrap;
}
.hero-products .dot { opacity: .55; }

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: 72px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-pill {
  display: inline-block;
  font-size: .7rem; font-weight: 800; letter-spacing: .18em;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(75, 43, 191, 0.10);
  color: var(--brand-violet);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section-head h2 { margin-bottom: 12px; }
.section-head .muted { font-size: 1.02rem; line-height: 1.6; }

/* ── Product cards ─────────────────────────────────────────────────── */
.products-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px 30px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-violet), var(--brand-blue));
}
.product-card.product-moneto::before    { background: linear-gradient(90deg, #22c55e, #06b6d4); }
.product-card.product-carcontrol::before{ background: linear-gradient(90deg, #f59e0b, #ef4444); }
.product-card.product-workio::before    { background: linear-gradient(90deg, #2155cd, #f59e0b); }
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-head {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 18px;
}
.product-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  flex: 0 0 auto;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  background: #fff;
}
.product-tag {
  display: inline-block;
  font-size: .7rem; font-weight: 800; letter-spacing: .12em;
  padding: 3px 10px; border-radius: 999px;
  background: var(--bg-alt); color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.product-card.product-moneto    .product-tag { background: rgba(34, 197, 94, 0.10);  color: #047857; }
.product-card.product-carcontrol .product-tag { background: rgba(245, 158, 11, 0.12); color: #b45309; }
.product-card.product-workio    .product-tag { background: rgba(33, 85, 205, 0.10);  color: #1e3a8a; }

.product-card h3.product-name {
  font-size: 1.5rem; font-weight: 800; margin-bottom: 0;
  line-height: 1.1;
}
.product-headline {
  color: var(--text); font-size: 1.02rem; font-weight: 600;
  margin-bottom: 10px;
}
.product-body {
  color: var(--text-muted); margin-bottom: 18px;
  font-size: .96rem;
}
.product-features {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; gap: 10px;
}
.product-features li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .93rem; color: var(--text); line-height: 1.45;
}
.feature-check {
  flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-blue); color: #fff;
  margin-top: 1px;
}
.product-card.product-moneto    .feature-check { background: #22c55e; }
.product-card.product-carcontrol .feature-check { background: #f59e0b; }
.product-card.product-workio    .feature-check { background: #2155cd; }
.product-platforms {
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  color: var(--text-light); margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--border-soft);
  text-transform: uppercase;
}
.product-cta { margin-top: 16px; margin-bottom: 4px; }
.product-card .btn-outline { width: 100%; }
.product-card.product-moneto    .btn-outline { color: #047857; border-color: #047857; }
.product-card.product-moneto    .btn-outline:hover { background: #047857; color: #fff; }
.product-card.product-carcontrol .btn-outline { color: #b45309; border-color: #b45309; }
.product-card.product-carcontrol .btn-outline:hover { background: #b45309; color: #fff; }
.product-card.product-workio    .btn-outline { color: #2155cd; border-color: #2155cd; }
.product-card.product-workio    .btn-outline:hover { background: #2155cd; color: #fff; }

/* ── Values grid ───────────────────────────────────────────────────── */
.values-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.value-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  text-align: left; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.value-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-violet), var(--brand-blue));
  color: #fff; margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(75, 43, 191, 0.28);
}
.value-icon svg { display: block; }
.value-card h3 { font-size: 1.08rem; margin-bottom: 6px; }
.value-card p { color: var(--text-muted); font-size: .94rem; margin: 0; line-height: 1.55; }

/* ── About + stats ─────────────────────────────────────────────────── */
.about-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-stats {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(135deg, var(--brand-violet) 0%, var(--brand-blue) 100%);
  padding: 28px; border-radius: var(--radius-lg);
  color: #fff; box-shadow: var(--shadow);
}
.about-stat { text-align: center; }
.about-stat .num {
  font-size: 2.2rem; font-weight: 800; line-height: 1;
  color: var(--brand-accent); display: block; margin-bottom: 4px;
}
.about-stat .lbl {
  font-size: .75rem; letter-spacing: .08em;
  text-transform: uppercase; opacity: .9;
}

/* ── Contact / CTA strip ───────────────────────────────────────────── */
.contact-strip {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(255, 214, 10, 0.18), transparent 60%),
    linear-gradient(135deg, var(--brand-violet-d) 0%, var(--brand-blue) 100%);
  color: #fff;
  padding: 60px 0;
}
.contact-strip .section-head { margin-bottom: 24px; }
.contact-strip .section-pill {
  background: rgba(255, 255, 255, 0.14); color: #fff;
}
.contact-strip h2 { color: #fff; }
.contact-strip .muted { color: rgba(255, 255, 255, 0.80); }
.contact-strip .section-head { margin-bottom: 24px; }
.contact-actions {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 14px;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  background: #0f172a; color: #cbd5e1;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.footer-brand img { width: 36px; height: 36px; }
.footer-brand strong { font-size: 1rem; color: #fff; }
.site-footer h4 {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: #cbd5e1; font-size: .92rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: .85rem; color: #94a3b8;
}

/* ── Legal pages ───────────────────────────────────────────────────── */
.legal-wrap {
  padding: 64px 0 96px;
  background: linear-gradient(180deg, var(--bg-alt) 0%, #fff 60%);
}
.legal-page {
  max-width: 760px; margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px clamp(20px, 4vw, 56px);
  box-shadow: var(--shadow-sm);
}
.legal-page h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.2rem);
  margin-bottom: 8px; color: #0f172a;
}
.legal-page .updated {
  color: var(--text-light); font-size: .85rem;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.legal-page .lead-p {
  font-size: 1.02rem; color: var(--text);
  line-height: 1.7;
}
.legal-page h2 {
  font-size: 1.2rem; margin: 36px 0 12px;
  color: #0f172a; font-weight: 700;
}
.legal-page p {
  color: var(--text); line-height: 1.75;
  font-size: .96rem; margin: 0 0 14px;
}
.legal-page a {
  color: var(--brand-blue);
  text-decoration: underline; text-decoration-color: rgba(59,130,246,.35);
  text-underline-offset: 2px;
}
.legal-page a:hover { text-decoration-color: var(--brand-blue); }

/* ── 404 ───────────────────────────────────────────────────────────── */
.not-found {
  min-height: 60vh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  padding: 60px 24px;
}
.not-found h1 { font-size: 5rem; margin-bottom: 0; color: var(--brand-blue); }

/* ── Tiny niceties ─────────────────────────────────────────────────── */
::selection { background: var(--brand-accent); color: #2a1a02; }
