:root {
  --brand: #0d6271;
  --brand-dark: #0b3f4c;
  --accent: #38c3cf;
  --soft: #e6f7f8;
  --bg: #f5f9fb;
  --panel: #ffffff;
  --line: #d9e7ec;
  --text: #173042;
  --muted: #5f7382;
  --shadow: 0 18px 46px rgba(13, 49, 73, 0.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(56,195,207,0.10), transparent 26%),
    linear-gradient(180deg, #fcfeff 0%, var(--bg) 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.90);
  border-bottom: 1px solid rgba(217,231,236,0.85);
}
.nav-wrap { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.brand-text { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.10rem; letter-spacing: 0.04em; }
.brand-text small { margin-top: 4px; font-size: 0.96rem; color: var(--brand); }
.main-nav { display: flex; align-items: center; gap: 10px; }
.main-nav a {
  padding: 10px 12px; border-radius: 12px; font-size: 0.95rem; color: var(--muted);
  transition: .18s ease;
}
.main-nav a:hover { background: var(--soft); color: var(--brand); }
.menu-toggle {
  display: none; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: #fff; color: var(--brand-dark); font: inherit; font-weight: 700;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 18px; border-radius: 14px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand) 0%, #13879a 100%);
  color: #fff; font-weight: 800; box-shadow: 0 10px 26px rgba(13,98,113,.18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 28px rgba(13,98,113,.20); }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--line); box-shadow: none; }
.nav-cta { background: linear-gradient(135deg, #d6fb50 0%, #b9ef2d 100%); color: #173042; box-shadow: 0 10px 24px rgba(151,185,28,.24); }
.nav-cta:hover { color: #102534; }
.main-nav .nav-cta:hover { background: linear-gradient(135deg, #d9ff58 0%, #c2f232 100%); }

.btn-small { padding: 10px 13px; border-radius: 12px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.text-link { color: var(--brand); font-weight: 800; }
.eyebrow {
  display: inline-block; margin-bottom: 12px; color: var(--brand);
  font-size: .79rem; font-weight: 900; letter-spacing: .12em;
}
.hero { padding: 72px 0 38px; }
.hero-grid, .split, .form-layout, .footer-grid, .guide-layout {
  display: grid; gap: 28px;
}
.hero-grid { grid-template-columns: 1.08fr .92fr; align-items: center; gap: 44px; }
.hero h1, .page-hero h1, .guide-content h1 {
  margin: 0; line-height: 1.03; letter-spacing: -0.03em;
}
.hero h1 { font-size: clamp(2.7rem, 6vw, 4.3rem); max-width: 12ch; }
.page-hero { padding: 56px 0 22px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.lead { margin: 18px 0 0; max-width: 66ch; font-size: 1.08rem; line-height: 1.7; color: var(--muted); }
.actions, .trust-row { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.actions { margin-top: 28px; }
.trust-row { margin-top: 18px; color: var(--muted); font-weight: 700; font-size: .95rem; }
.hero-panel, .feature-card, .callout, .price-card, .module-card, .product-card, .guide-card, .process-grid article, .form-card, .rfid-table, .flash {
  background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
}
.hero-panel { overflow: hidden; }
.mock-top { padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #f8fcfd 0%, #edf7f9 100%); }
.mock-top span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #b0c7cf; margin-right: 6px; }
.mock-layout { display: grid; grid-template-columns: 104px 1fr; min-height: 356px; }
.mock-side {
  background: linear-gradient(180deg, var(--brand-dark) 0%, #094555 100%);
  color: #fff; padding: 22px 14px; display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.mock-side img { width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.mock-side b { text-align: center; line-height: 1.1; font-size: 1rem; }
.mock-side i { width: 42px; height: 10px; background: rgba(255,255,255,.18); border-radius: 99px; }
.mock-main { padding: 24px; background: linear-gradient(180deg, #fff 0%, #f6fafb 100%); }
.mock-title { font-size: 1.05rem; font-weight: 900; margin-bottom: 18px; }
.mock-stats, .feature-grid, .price-grid, .module-grid, .product-grid, .guide-grid, .process-grid {
  display: grid; gap: 18px;
}
.mock-stats { grid-template-columns: repeat(3, 1fr); }
.mock-stats span, .mock-card, .capacity {
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
}
.mock-stats span { padding: 14px; }
.mock-stats b { display: block; font-size: .80rem; color: var(--muted); margin-bottom: 8px; }
.mock-stats strong { font-size: 1.45rem; }
.mock-card { margin-top: 15px; padding: 16px; }
.mock-card b { display: block; margin-bottom: 14px; }
.mock-card em { display: block; height: 10px; margin-bottom: 10px; border-radius: 99px; background: linear-gradient(90deg, #c8eef0 0%, #edf8f9 100%); }
.mock-card.small .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span, .pill, .code {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-size: .80rem; font-weight: 800; border-radius: 999px;
}
.chips span, .pill { padding: 8px 10px; background: var(--soft); color: var(--brand-dark); }
.section { padding: 68px 0; }
.section-soft { background: linear-gradient(180deg, rgba(230,247,248,.52) 0%, rgba(245,249,251,.86) 100%); border-top: 1px solid rgba(217,231,236,.6); border-bottom: 1px solid rgba(217,231,236,.6); }
.section-head { margin-bottom: 24px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.1; }
.section-head p { margin: 0; color: var(--muted); max-width: 60ch; }
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.feature-card, .product-card, .module-card, .price-card, .guide-card { padding: 24px; }
.feature-card { position: relative; overflow: hidden; }
.feature-card::after {
  content: ""; position: absolute; inset: auto -22px -22px auto; width: 96px; height: 96px;
  background: radial-gradient(circle, rgba(56,195,207,.18), transparent 70%);
}
.feature-card .icon {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px;
  background: var(--soft); color: var(--brand); font-size: 1.35rem; margin-bottom: 12px;
}
.feature-card h3, .price-card h3, .module-card h2, .module-card h3, .product-card h3, .guide-card h2, .process-grid h3 {
  margin: 0 0 10px;
}
.feature-card p, .module-card p, .price-card p, .product-card p, .guide-card p, .callout p, .footer-grid p, .faq-list p, .guide-content p, .guide-content li {
  color: var(--muted); line-height: 1.68;
}
.split { grid-template-columns: 1fr 1fr; align-items: center; }
.callout { padding: 30px; background: linear-gradient(180deg, #fff 0%, #f0fbfc 100%); }
.callout h3, .callout h2 { margin: 0 0 12px; font-size: 1.8rem; line-height: 1.15; }
.callout.wide { text-align: left; }
.check-list, .guide-list { padding-left: 0; margin: 0; list-style: none; }
.check-list li, .guide-list li { position: relative; padding-left: 26px; margin: 10px 0; }
.check-list li::before, .guide-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 900;
}
.price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.price-grid.compact .price-card { min-height: 100%; }
.price-card { display: flex; flex-direction: column; gap: 12px; }
/* Allinea verticalmente le azioni dei riquadri della stessa griglia. */
.product-card, .module-card { display: flex; flex-direction: column; }
.price-card > .btn:last-child,
.product-card > .btn:last-child { margin-top: auto; }
.module-card .module-bottom,
.module-card > .text-link:last-child { margin-top: auto; padding-top: 22px; }
.price-card.featured {
  transform: translateY(-8px);
  border-color: rgba(19,135,154,.22);
  box-shadow: 0 24px 48px rgba(13,98,113,.16);
}
.price-card .price, .module-card .price, .product-card .price { font-size: 2rem; font-weight: 900; color: var(--brand-dark); }
.price small { font-size: .92rem; font-weight: 700; color: var(--muted); margin-left: 4px; }
.code {
  padding: 7px 10px; background: #f2f7f9; color: #4f6874; border: 1px solid #e0ecef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.module-grid { grid-template-columns: repeat(2, 1fr); }
.module-grid.small-cards { grid-template-columns: repeat(4, 1fr); }
.module-head { display: flex; align-items: center; gap: 14px; }
.module-icon, .mini-icon {
  display: grid; place-items: center; flex: 0 0 auto;
  color: var(--brand); background: var(--soft); border-radius: 18px;
}
.module-icon { width: 62px; height: 62px; font-size: 1.7rem; }
.mini-icon { width: 42px; height: 42px; font-size: 1.25rem; margin-bottom: 14px; }
.module-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.capacity {
  margin-top: 28px; padding: 20px 24px; display: grid; grid-template-columns: auto auto 1fr;
  gap: 16px; align-items: center; border-style: dashed;
}
.capacity strong { color: var(--brand-dark); }
.capacity span { color: var(--brand); font-weight: 900; }
.product-grid { grid-template-columns: repeat(2, 1fr); }
.device-photo-wrap {
  margin: -6px -6px 18px; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, #eff7fa 0%, #d8eaef 100%);
  border: 1px solid #e0ecef; min-height: 340px; display: grid; place-items: center; padding: 14px;
}
.device-photo { width: 100%; height: 100%; max-height: 320px; aspect-ratio: 1 / 1; object-fit: contain; }
.rfid-table { overflow: hidden; }
.rfid-row { display: grid; grid-template-columns: 1fr 160px 180px; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); }
.rfid-row:first-child { border-top: 0; }
.rfid-row.head { background: #f2f7f9; font-size: .79rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #607080; }
.process-grid { grid-template-columns: repeat(4, 1fr); }
.process-grid article { padding: 24px; }
.process-grid article > b {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); color: var(--brand); margin-bottom: 12px;
}
.form-layout { grid-template-columns: .82fr 1.18fr; align-items: start; gap: 44px; }
.form-card { padding: 28px; }
.form-card label, .form-card legend { display: block; font-weight: 800; font-size: .86rem; margin: 14px 0; }
.form-card input, .form-card textarea, .guide-search input {
  width: 100%; padding: 12px 13px; border-radius: 12px; border: 1px solid #cbd9df; background: #fff; font: inherit; color: inherit;
}
.form-card textarea { resize: vertical; }
.form-card fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 16px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-card .check { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; }
.form-card .check input { width: auto; margin-top: 3px; }
.hp { position: absolute !important; left: -9999px !important; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin: 14px 0; color: var(--muted); }
.mini-codes { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-codes span { padding: 7px 9px; background: #f2f7f9; border: 1px solid #e0ecef; border-radius: 10px; font-family: ui-monospace, monospace; font-size: .78rem; }
.mt { margin-top: 30px; }
.flash-stack { padding-top: 14px; }
.flash { padding: 13px 16px; margin: 10px 0; }
.flash.success { background: #e8f7ec; color: #22693c; }
.flash.error { background: #fdebed; color: #922c35; }
.guide-search { margin-top: 28px; max-width: 560px; }
.guide-grid { grid-template-columns: repeat(3, 1fr); }
.guide-card { display: flex; align-items: flex-start; gap: 16px; transition: transform .18s ease, box-shadow .18s ease; }
.guide-card:hover { transform: translateY(-2px); }
.guide-card > span {
  display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--brand); font-weight: 900;
}
.guide-page { padding: 48px 0 80px; }
.guide-layout { grid-template-columns: 260px 1fr; gap: 46px; }
.guide-nav {
  position: sticky; top: 102px; align-self: start; display: flex; flex-direction: column;
  max-height: calc(100vh - 124px); overflow: auto; padding-right: 20px; border-right: 1px solid var(--line);
}
.guide-nav a { padding: 8px 10px; border-radius: 10px; font-size: .88rem; color: #607080; }
.guide-nav a.active { background: var(--soft); color: var(--brand); font-weight: 900; }
.guide-nav .back { font-weight: 900; color: var(--brand); margin-bottom: 12px; }
.guide-content { max-width: 780px; }
.guide-content section { margin: 38px 0; }
.guide-help { margin-top: 48px; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.faq-list { max-width: 860px; margin: auto; }
.faq-list details { margin: 12px 0; padding: 0 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.faq-list summary { cursor: pointer; font-weight: 900; padding: 18px 0; color: var(--brand-dark); }
.site-footer { margin-top: 22px; padding: 62px 0; background: linear-gradient(180deg, #0e2a37 0%, #0b2430 100%); color: #eaf5f8; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid h3 { margin: 0 0 12px; color: #a8d9de; font-size: .92rem; letter-spacing: .03em; }
.footer-grid a { display: block; margin: 8px 0; color: #e4eef1; }
.footer-grid a:hover { color: #fff; }
.footer-brand { margin-bottom: 14px; }
.footer-brand .brand-logo { width: 44px; height: 44px; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }

@media (max-width: 980px) {
  .main-nav {
    display: none; position: absolute; top: 84px; left: 20px; right: 20px; z-index: 20;
    flex-direction: column; align-items: stretch; padding: 18px; background: rgba(255,255,255,.98);
    border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .hero-grid, .split, .form-layout { grid-template-columns: 1fr; }
  .feature-grid, .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid, .module-grid, .product-grid { grid-template-columns: 1fr; }
  .module-grid.small-cards { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-nav {
    position: static; max-height: none; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line);
    padding: 0 0 20px; display: grid; grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card.featured { transform: none; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav-wrap { min-height: 74px; }
  .brand-logo { width: 42px; height: 42px; }
  .hero { padding: 58px 0 24px; }
  .page-hero { padding: 46px 0 14px; }
  .feature-grid, .guide-grid, .module-grid.small-cards, .process-grid, .product-grid { grid-template-columns: 1fr; }
  .mock-layout { grid-template-columns: 74px 1fr; min-height: 320px; }
  .mock-main { padding: 16px; }
  .mock-stats { grid-template-columns: 1fr; }
  .two, .footer-grid, .rfid-row, .capacity { grid-template-columns: 1fr; }
  .rfid-row span:last-child { display: none; }
  .section { padding: 58px 0; }
  .guide-content h1 { font-size: 2.2rem; }
}

/* Privacy policy */
.privacy-prose { max-width: 920px; }
.privacy-prose h2 { margin: 38px 0 12px; color: var(--brand-dark); font-size: 1.55rem; }
.privacy-prose h3 { margin: 24px 0 8px; color: var(--brand); font-size: 1.08rem; }
.privacy-prose p, .privacy-prose li { line-height: 1.72; color: var(--muted); }
.privacy-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.privacy-update { display: inline-block; padding: 9px 12px; border-radius: 12px; background: var(--soft); color: var(--brand-dark) !important; }
.privacy-table-wrap { overflow-x: auto; margin: 18px 0 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.privacy-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.privacy-table th, .privacy-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.55; }
.privacy-table th { background: #f3f8f9; color: var(--brand-dark); font-size: .88rem; }
.privacy-table tr:last-child td { border-bottom: 0; }
