:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --muted2:#64748b;
  --border:#e2e8f0;
  --card:#f8fafc;
  --pill:#f1f5f9;
  --primary:#5b2bbf; /* purple */
  --primary2:#7c3aed;
  --shadow: 0 12px 30px rgba(15,23,42,.08);
  --radius:16px;
 --line: #d2d2d7;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji"; background:var(--bg); color:var(--text);}
a{color:inherit;text-decoration:none}
.container{max-width:1080px;margin:0 auto;padding:0 20px}
.small{font-size:12px;color:var(--muted2)}
.muted{color:var(--muted)}
.hr{height:1px;background:var(--border);margin:28px 0}

.header{
  position:sticky; top:0; background:rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom:1px solid rgba(226,232,240,.75);
  z-index:10;
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.brand{display:flex;align-items:center;gap:12px}
.brand img{height:70px;width:auto;display:block;margin-left: 50px}
.nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.nav a{font-weight:700;color:var(--muted);padding:10px 10px;border-radius:12px}
.nav a:hover{background:var(--pill);color:var(--text)}
.cta{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:14px;font-weight:800;
  border:1px solid rgba(91,43,191,.25);
  background:linear-gradient(180deg,var(--primary2),var(--primary));
  color:white;
  box-shadow:0 10px 20px rgba(91,43,191,.18);
  white-space:nowrap;
}
.cta:hover{filter:brightness(1.03)}
.cta.secondary{
  background:white;color:var(--text);
  border:1px solid var(--border); box-shadow:none;
}
.cta.secondary:hover{background:var(--pill)}

.hero{
  padding:70px 0 22px 0;
  background:
    radial-gradient(900px 260px at 70% 95%, rgba(91,43,191,.10), transparent 60%),
    radial-gradient(700px 240px at 40% 105%, rgba(124,58,237,.08), transparent 55%);
}
.hero-grid{display:grid;grid-template-columns: 1.15fr .85fr;gap:28px;align-items:center}
.h1{font-size:54px;line-height:1.05;margin:0}
.sub{font-size:18px;line-height:1.5;color:var(--muted);margin:14px 0 22px 0;max-width:60ch}
.actions{display:flex;gap:12px;flex-wrap:wrap}
.kpis{display:flex;gap:12px;margin-top:18px;flex-wrap:wrap}
.badge{background:rgba(15,23,42,.04);border:1px solid rgba(226,232,240,.9);padding:8px 12px;border-radius:999px;color:var(--muted);font-weight:700;font-size:13px}

.preview{
  background: rgba(248,250,252,.8);
  border:1px solid rgba(226,232,240,.9);
  border-radius: 28px;
  padding:22px;
  box-shadow: var(--shadow);
}
.logo-pill{
  display:flex;align-items:center;justify-content:space-between;gap:18px;
  background:rgba(255,255,255,.75);
  border:1px solid rgba(226,232,240,.9);
  border-radius:999px;
  padding:16px 18px;
}
.logo-pill .left{
  display:flex;align-items:center;gap:12px;min-width:0
}
.logo-pill .left img{width:28px;height:28px;border-radius:8px}
.logo-pill .name{font-weight:900;font-size:18px}
.logo-pill .tag{color:var(--muted);font-weight:700;font-size:13px}
.copy-row{display:flex;align-items:center;gap:10px;margin-top:16px}
.code{
  flex:1;display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:white;border:1px solid var(--border); border-radius:14px;
  padding:12px 12px;font-weight:900;
}
.code span{color:var(--muted);font-weight:800;margin-right:10px}
.copybtn{
  border:1px solid var(--border);background:var(--pill);
  border-radius:14px;padding:12px 14px;font-weight:900;cursor:pointer
}
.copybtn:hover{filter:brightness(.98)}
.toast{
  position:fixed;left:50%;bottom:20px;transform:translateX(-50%);
  background:rgba(15,23,42,.92);color:white;border-radius:999px;
  padding:10px 14px;font-weight:800;font-size:13px;opacity:0;pointer-events:none;
  transition:opacity .2s ease;
}

.section{padding:42px 0}
.h2{font-size:34px;margin:0 0 14px 0}
.center{text-align:center}

.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{
  background:var(--card);border:1px solid rgba(226,232,240,.9);
  border-radius: var(--radius); padding:18px;
}
.card h3{margin:0 0 8px 0}
.card p{margin:0;color:var(--muted);line-height:1.5}

.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.step{
  background:white;border:1px solid rgba(226,232,240,.9);
  border-radius: var(--radius); padding:18px; box-shadow:0 10px 25px rgba(15,23,42,.06);
}
.step .n{
  width:34px;height:34px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(91,43,191,.10); color:var(--primary); font-weight:900;
  margin-bottom:10px;
}

.page-title{padding:40px 0 10px 0}
.page-title h1{margin:0;font-size:40px}
.page-title p{margin:10px 0 0 0;color:var(--muted);max-width:85ch;line-height:1.55}

.faq{max-width:920px;margin:0 auto}
.faq-group{margin:18px 0 10px 0;display:flex;align-items:center;gap:10px}
.faq-group .label{font-weight:900;color:var(--text)}
.faq-item{
  background:white;border:1px solid rgba(226,232,240,.9);
  border-radius: var(--radius); padding:16px 16px; margin-bottom:12px;
  box-shadow:0 10px 25px rgba(15,23,42,.05);
}
.faq-q{display:flex;justify-content:space-between;align-items:center;gap:10px;cursor:pointer}
.faq-q span{font-weight:900}
.faq-a{display:none;color:var(--muted);line-height:1.6;margin-top:10px}
.faq-item.open .faq-a{display:block}

.table-wrap{
  background:white;border:1px solid rgba(226,232,240,.9);
  border-radius: var(--radius); padding:14px;
  overflow:auto; box-shadow:0 10px 25px rgba(15,23,42,.05);
}
table{border-collapse:collapse;width:100%;min-width:720px}
th,td{padding:12px 10px;border-bottom:1px solid rgba(226,232,240,.9);text-align:left}
th{font-size:12px;letter-spacing:.02em;text-transform:uppercase;color:var(--muted2)}
td{color:var(--text);font-weight:650}
td small{color:var(--muted);font-weight:650}
.note{
  background:rgba(91,43,191,.06);
  border:1px solid rgba(91,43,191,.16);
  border-radius: var(--radius);
  padding:14px 16px;
  color:var(--muted);
  line-height:1.55;
}

.footer{padding:30px 0 60px 0;color:var(--muted);border-top:1px solid rgba(226,232,240,.9)}
.footer-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:18px}
.footer a{color:var(--muted);text-decoration:underline;text-underline-offset:3px}
.footer .links{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-end}

@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr;gap:18px}
  .h1{font-size:44px}
  .grid3,.steps{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .footer .links{justify-content:flex-start}
  .nav{display:none}
}
.header {
  background: #fff;
  border-bottom: 1px solid #eee;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.menu-toggle {
  display: none;
  font-size: 28px;
  background: none;
  border: 0;
  cursor: pointer;
  margin-right: 10px;
}

/* CTA */
.nav .cta {
  padding: 10px 18px;
  border-radius: 6px;
  background: #6c47ff;
  color: #fff;
  text-decoration: none;
}

/* =====================
   MOBILE
===================== */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 16px;
    gap: 14px;
  }

  .nav.open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}





.footer-light {
  background-color: #ffffff;
  color: #212529;
  border-top: 1px solid #e5e5e5;
  font-family: Hind, system-ui, sans-serif;
}

.footer-light a {
  color: #212529;
  text-decoration: none;
}

.footer-light a:hover {
  text-decoration: underline;
}

.footer-logo {
  width: clamp(220px, 35vw, 600px);
}

.footer-copy {
  margin-left: 50px;
  margin-top: 20px;
  font-size: 0.95rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-text {
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer-links li {
  margin-top: 20px;
}

.footer-legal {
  font-size: 0.9rem;
  color: #333;
}

.footer-legal p {
  margin-bottom: 1rem;
}

/* ========== GRID SYSTEM (Bootstrap-like) ========== */

.container-fluid {
  width: 100%;
  padding-inline: 15px;
  margin-inline: auto;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-inline: -15px;
}

.row > * {
  padding-inline: 15px;
  box-sizing: border-box;
}

/* Colonne base */
.col {
  flex: 1 0 0%;
}

/* Colonne responsive (12 columns) */
.col-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
.col-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
.col-3  { flex: 0 0 25%; }
.col-4  { flex: 0 0 33.3333%; }
.col-5  { flex: 0 0 41.6667%; }
.col-6  { flex: 0 0 50%; }
.col-7  { flex: 0 0 58.3333%; }
.col-8  { flex: 0 0 66.6667%; }
.col-9  { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.3333%; }
.col-11 { flex: 0 0 91.6667%; }
.col-12 { flex: 0 0 100%; }

/* ===== md breakpoint ===== */
@media (min-width: 768px) {
  .col-md-1  { flex: 0 0 8.3333%; }
  .col-md-2  { flex: 0 0 16.6667%; }
  .col-md-3  { flex: 0 0 25%; }
  .col-md-4  { flex: 0 0 33.3333%; }
  .col-md-5  { flex: 0 0 41.6667%; }
  .col-md-6  { flex: 0 0 50%; }
  .col-md-7  { flex: 0 0 58.3333%; }
  .col-md-8  { flex: 0 0 66.6667%; }
  .col-md-9  { flex: 0 0 75%; }
  .col-md-10 { flex: 0 0 83.3333%; }
  .col-md-11 { flex: 0 0 91.6667%; }
  .col-md-12 { flex: 0 0 100%; }
}

/* ===== utilities usate nel footer ===== */
.text-center { text-align: center; }
.text-md-start { text-align: left; }

@media (max-width: 767px) {
  .text-md-start { text-align: center; }
}

.d-flex { display: flex; }
.flex-md-column { flex-direction: column; }
.gap-2 { gap: .5rem; }
.justify-content-center { justify-content: center; }
.align-items-start { align-items: flex-start; }
.pt-5 { padding-top: 3rem; }
.pb-4 { padding-bottom: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }


/* OVERLAY */
.xm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* MODAL BOX */
.xm-modal {
  background: #ffffff;
  color: #212529;
  max-width: 760px;
  width: 90%;
  padding: 40px 50px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
}

/* LOGO */
.xm-logo img {
  height: 55px;
  margin-bottom: 25px;
}

/* TITOLI */
.xm-modal h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
}

/* TESTI */
.xm-modal p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* BOTTONE */
.xm-btn {
  background: #1f2937;
  color: #ffffff;
  border: none;
  padding: 12px 30px;
  font-size: 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  margin: 20px 0;
}

.xm-btn:hover {
  background: #000;
}

/* FOOTER TEXT */
.xm-footer-text {
  font-size: 0.8rem;
  color: #555;
  margin-top: 10px;
}


.table-wrapper {
    width: 95%;
    max-width: 1200px;
    margin: 40px auto;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #475569;
    padding: 16px;
    cursor: pointer;
    border-bottom: 1px solid #e2e8f0;
}

tbody td {
    padding: 18px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

tbody tr:hover {
    background: #f8fafc;
}

.filters th {
    padding: 8px 16px;
}

.filters input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
}

/* OVERLAY */
.xm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* MODAL */
.xm-modal {
  background: #fff;
  width: 92%;
  max-width: 720px;

  /* 🔑 altezza intelligente */
  max-height: calc(100vh - 40px);

  display: flex;
  flex-direction: column;

  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #0f172a;
}

/* HEADER */
.xm-header {
  padding: 20px 24px 12px;
  text-align: center;
  flex-shrink: 0;
}

.xm-logo img {
  max-width: 150px;
  margin-bottom: 8px;
}

.xm-header h2 {
  font-size: 20px;
  margin: 0;
}

/* BODY */
.xm-body {
  padding: 12px 24px;
  overflow-y: auto;          /* 🔑 SCROLL SOLO QUI */
  flex: 1;
}

.xm-text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}

.xm-subtitle {
  font-size: 15px;
  font-weight: 600;
  margin: 12px 0 6px;
}

/* TEXTAREA */
.xm-disclaimer {
  width: 100%;
  min-height: 120px;
  max-height: 180px;         /* desktop: NON enorme */
  resize: none;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
}

/* FOOTER */
.xm-footer {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  border-top: 1px solid #e2e8f0;
}

.xm-btn {
  flex: 1;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.xm-btn.primary {
  background: #0f172a;
  color: #fff;
}

.xm-btn.secondary {
  background: #e5e7eb;
  color: #0f172a;
}

/* 📱 MOBILE */
@media (max-width: 480px) {

  .xm-modal {
    width: 100%;
    height: 100vh;            /* 🔑 usa tutta l’altezza */
    max-height: 100vh;
    border-radius: 0;
  }

  .xm-disclaimer {
    max-height: 240px;        /* più spazio per leggere */
    font-size: 12.5px;
  }

  .xm-footer {
    flex-direction: column;
  }
}

.code {
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.field span {
  margin-bottom: 6px;
  font-weight: 600;
}

.input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  font-size: 16px;
}
.code,
.code > div {
  width: 100%;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 20px;
  max-width: 400px;
  margin: 15% auto;
  text-align: center;
  border-radius: 6px;
}


.kpis {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.kpi-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.kpi-icon {
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #6c47ff; /* accento soft */
}

.kpi-text {
  font-family: Inter, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;   /* <-- BOLD elegante */
  color: #1f2933;
  letter-spacing: 0.2px;
}

.privacy-note {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 99999;

  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;

  padding: 12px 14px;
  border-radius: 12px;

  background: rgba(20, 20, 28, 0.92);
  color: #fff;

  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);

  font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.privacy-note__text a {
  color: #c9b6ff;
  text-decoration: underline;
}

.privacy-btn {
  border: 0;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;

  background: #6b2cff;
  color: #fff;
}

/* Mobile */
@media (max-width: 480px) {
  .privacy-note {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .privacy-btn {
    width: 100%;
  }
}
.footer {
  width: 100%;
  padding-top: 20px;
}

.footer-line {
  width: 100%;
  height: 1px;
  background: var(--line);
  opacity: 0.95;
}

.company {
  margin: 20px 0 0;
  text-align: center;
  color: #8a909a;
  letter-spacing: -0.03em;
}
.companyx {
  margin: 20px 0 0;
  text-align: center;
  color: #8a909a;
  font-size: clamp(1.05rem, 1.6vw, 1.8rem);
  letter-spacing: -0.03em;
}

.company span {
  color: #717984;
  font-weight: 250;
}