﻿:root {
  /* Design system: palette coerente e moderna */
  --bg: #f3f7fd;
  --bg-deep: #e5eeff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #0f1f3d;
  --muted: #4a5d82;
  --line: #d8e4fb;
  --primary: #1258dc;
  --primary-strong: #0d43a8;
  --secondary: #0bb5a0;
  --accent: #ffb84a;
  --focus: #1cbf8f;
  --danger-soft: #fff1f1;
  --shadow-sm: 0 6px 24px rgba(16, 48, 110, 0.08);
  --shadow-md: 0 14px 34px rgba(11, 39, 96, 0.15);
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --container: min(1120px, 92%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 450px at 14% -8%, #ffffff 0%, transparent 65%),
    radial-gradient(900px 320px at 100% 0%, #dde8ff 0%, transparent 58%),
    linear-gradient(180deg, var(--bg) 0%, #eef4ff 56%, #f6faff 100%);
  line-height: 1.55;
}

main {
  overflow: clip;
}

a {
  color: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.section-head {
  max-width: 780px;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.kicker {
  margin: 0 0 0.45rem;
  color: var(--primary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.kicker--light {
  color: rgba(255, 255, 255, 0.84);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18, 88, 220, 0.12);
  background: rgba(245, 250, 255, 0.82);
}

.header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  text-decoration: none;
  font-weight: 800;
}

.logo-mark {
  inline-size: 34px;
  block-size: 34px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(130deg, var(--primary) 0%, var(--secondary) 100%);
  box-shadow: var(--shadow-sm);
  font-size: 0.84rem;
}

.logo-text {
  font-size: 1rem;
}

.main-nav {
  justify-self: center;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.46rem 0.82rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.89rem;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-strong);
  background: #eaf1ff;
}

.hero {
  padding-top: clamp(3rem, 10vw, 6rem);
}

.hero-bg {
  position: absolute;
  inset: -120px -20% auto;
  height: 68%;
  background: linear-gradient(140deg, rgba(18, 88, 220, 0.09), rgba(11, 181, 160, 0.09));
  filter: blur(14px);
  z-index: -2;
}

.hero-grid {
  display: grid;
  gap: 1.35rem;
}

.eyebrow {
  margin: 0 0 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary-strong);
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: #e6efff;
}

.hero h1 {
  margin: 0;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 7.2vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.subtitle {
  margin: 1rem 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.12rem);
}

.hero-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.micro-proof {
  margin: 0.95rem 0 0;
  font-size: 0.88rem;
  color: #41618f;
  max-width: 52ch;
}

.btn {
  border: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
  transition: transform 160ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}

.btn:active {
  transform: translateY(1px) scale(0.994);
}

.btn-primary {
  padding: 0.95rem 1.3rem;
  color: #fff;
  background: linear-gradient(132deg, var(--primary), var(--primary-strong));
  box-shadow: 0 10px 28px rgba(18, 88, 220, 0.36);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(13, 67, 168, 0.36);
}

.btn-secondary {
  padding: 0.95rem 1.2rem;
  color: var(--primary-strong);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d6e2fb;
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: #b9cdfa;
}

.btn-nav {
  padding: 0.6rem 0.9rem;
  color: #fff;
  border-radius: 11px;
  background: linear-gradient(140deg, #0f56d8, #1580db);
  font-size: 0.86rem;
}

.btn-nav:hover {
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  margin-top: 0.8rem;
}

.device-card {
  background: linear-gradient(160deg, #fefeff, #edf4ff);
  border: 1px solid #d2e2ff;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-md);
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  padding: 0.38rem 0.6rem;
  border-radius: 999px;
  background: #e8fff8;
  color: #0b6d62;
  font-size: 0.76rem;
  font-weight: 700;
}

.pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #11b287;
  box-shadow: 0 0 0 0 rgba(17, 178, 135, 0.6);
  animation: pulse 1.8s infinite;
}

.device-card h2 {
  margin: 0;
  font-size: 1.38rem;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
}

.device-card p {
  margin: 0.35rem 0 1rem;
  color: #45618d;
}

.visual-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.58rem;
}

.visual-list li {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.visual-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--secondary), #3fe7d4);
}

.floating-badge {
  position: absolute;
  right: -8px;
  top: -16px;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  color: #4f2b00;
  background: linear-gradient(120deg, #ffd27f, var(--accent));
  border: 1px solid rgba(255, 193, 87, 0.7);
  font-size: 0.76rem;
  font-weight: 800;
}

.problem-grid,
.proof-grid {
  display: grid;
  gap: 0.9rem;
}

.problem-card {
  padding: 1.05rem;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid #dce7fd;
  box-shadow: var(--shadow-sm);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.problem-card:hover {
  transform: translateY(-3px);
  border-color: #bfd4ff;
  box-shadow: 0 14px 28px rgba(20, 66, 152, 0.16);
}

.icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--primary-strong);
  background: #e8f0ff;
  margin-bottom: 0.78rem;
}

.icon-wrap svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.problem-card h3 {
  margin: 0;
  font-size: 1.07rem;
}

.problem-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid #dbe7ff;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  min-width: 710px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.82rem;
  text-align: left;
  border-bottom: 1px solid #e8efff;
}

th {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #4c6391;
  background: #f5f9ff;
}

tbody tr:hover td {
  background: #fafdff;
}

.recommended-col {
  background: linear-gradient(180deg, #eef7ff 0%, #f5fffc 100%);
  font-weight: 700;
  color: #0e3c8c;
}

.proof-badge {
  text-align: center;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid #d8e6ff;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.proof-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #e8f0ff;
  color: #184ea9;
}

.proof-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.proof-badge strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.43rem;
  font-family: "Space Grotesk", "Plus Jakarta Sans", sans-serif;
}

.proof-badge p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.benefits-shell {
  border-radius: 28px;
  background: linear-gradient(135deg, #0f4cbf 0%, #0a337f 56%, #0a2860 100%);
  color: #fff;
  border: 1px solid rgba(138, 175, 255, 0.3);
  box-shadow: 0 20px 42px rgba(9, 33, 84, 0.45);
  padding: clamp(1.2rem, 3vw, 2rem);
}

.section-head--light h2 {
  color: #ffffff;
}

.check-list {
  list-style: none;
  margin: 1.1rem 0 1.35rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.58rem;
  color: rgba(245, 250, 255, 0.97);
}

.check-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 900;
  color: #114154;
  background: linear-gradient(120deg, #8ffbe7, #5fdfcb);
}

.btn-final {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(120deg, #ffce78, #ffb84a);
  color: #3d2601;
  font-size: clamp(1.04rem, 3.1vw, 1.28rem);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.btn-final:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.34);
}

.tiny-note {
  margin: 0.72rem 0 0;
  font-size: 0.83rem;
  color: rgba(224, 236, 255, 0.9);
}

.faq-list {
  display: grid;
  gap: 0.72rem;
}

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid #d5e3ff;
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: clip;
}

.faq-toggle {
  appearance: none;
  border: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  text-align: left;
  font: inherit;
  font-weight: 700;
  padding: 0.96rem 1rem;
  cursor: pointer;
}

.faq-plus {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-block;
  background: #e8f0ff;
  position: relative;
  transition: transform 180ms ease;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: #1b52b9;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-plus::before {
  width: 9px;
  height: 2px;
}

.faq-plus::after {
  width: 2px;
  height: 9px;
}

.faq-toggle[aria-expanded="true"] .faq-plus {
  transform: rotate(180deg);
}

.faq-toggle[aria-expanded="true"] .faq-plus::after {
  opacity: 0;
}

/* Panel animabile: max-height gestito da JS per transizione smooth */
.faq-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 260ms ease, opacity 200ms ease;
  color: var(--muted);
}

.faq-panel-inner {
  padding: 0 1rem 1rem;
}

.site-footer {
  margin-top: 0.8rem;
  border-top: 1px solid #d6e3fa;
  background: #f8fbff;
}

.footer-inner {
  padding: 1.15rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: #54688d;
}

.footer-inner a {
  color: #1e56bc;
  font-weight: 700;
}

a:focus-visible,
button:focus-visible,
.table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Effetto reveal per sezioni in viewport */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(17, 178, 135, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(17, 178, 135, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(17, 178, 135, 0);
  }
}

@media (min-width: 740px) {
  .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-actions {
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    min-width: 190px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    align-items: center;
    gap: 2rem;
  }

  .problem-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-self: start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 0.2rem;
  }

  .btn-nav {
    justify-self: end;
  }

  .section {
    padding: 2.45rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

