/* Stili delle tre home (IT/EN/ES): prima erano nei <style> in pagina. */
  :root {
    --ink: #16232B; --ink-soft: #5C6E78; --paper: #F4F6F7; --card: #fff;
    --line: #E2E8EB; --petrol: #0F5E68; --petrol-deep: #0A454C; --tint: #EAF3F4;
    --up: #1B7A43; --down: #C2382F; --amber: #E8A13D;
    --mono: 'IBM Plex Mono', monospace;
    --sh1: 0 1px 2px rgba(22,35,43,.05), 0 4px 16px rgba(22,35,43,.05);
    --sh2: 0 2px 4px rgba(22,35,43,.06), 0 16px 44px rgba(22,35,43,.12);
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: 'IBM Plex Sans', sans-serif; background: var(--paper); color: var(--ink);
         font-size: 16.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
  h1, h2, h3, .brand { font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
  a { color: var(--petrol); }

  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
         font: inherit; font-weight: 600; border: 0; border-radius: 10px; cursor: pointer;
         padding: 14px 26px; background: var(--petrol); color: #fff; text-decoration: none;
         transition: background .15s, box-shadow .15s, transform .05s; }
  .btn:hover { background: var(--petrol-deep); box-shadow: var(--sh1); }
  .btn:active { transform: translateY(1px); }
  .btn.ghost { background: none; color: var(--petrol); border: 1.5px solid var(--line); }
  .btn.ghost:hover { border-color: var(--petrol); background: var(--tint); }
  .btn:focus-visible, a:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }

  /* ---------- nav ---------- */
  nav { position: sticky; top: 0; z-index: 30; background: rgba(244,246,247,.88);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
  .brand { font-size: 24px; font-weight: 700; text-decoration: none; color: var(--ink); }
  .brand b { color: var(--petrol); }
  nav .links { display: flex; gap: 26px; align-items: center; }
  nav .links a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
  nav .links a:not(.btn):hover { color: var(--ink); }
  nav .btn { padding: 10px 20px; }
  nav .brand { display: inline-flex; align-items: center; min-height: 44px; }
  nav .nav-right { display: flex; align-items: center; gap: 26px; }
  .nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0;
                background: none; border-radius: 10px; cursor: pointer; color: var(--ink); }
  .nav-toggle:hover { background: var(--tint); }
  .nav-toggle:focus-visible { outline: 2px solid var(--petrol); outline-offset: 2px; }
  nav .links .nav-lang { display: none; }
  .faq summary { padding: 10px 0; }
  /* Il banner cookie e la bolla chat non si coprono: la bolla sale sopra il banner finché c'è, e sparisce mentre si scrive. */
  .skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
  .skip:focus { top: 12px; }
  main:focus { outline: none; }
  body.has-cookie #sw-bubble { bottom: calc(var(--cookie-h, 90px) + 30px); }
  body.typing #sw-bubble { opacity: 0; pointer-events: none; }
  /* Telefono: il banner è più basso e la bolla chat aspetta che sia chiuso, così nessuno dei due copre i pulsanti dell'hero. */
  @media (max-width: 640px) {
    #cookie-note { padding: 10px 12px !important; gap: 10px !important; left: 12px !important; right: 12px !important; bottom: 12px !important; }
    #cookie-note p { font-size: 12.5px !important; line-height: 1.4 !important; }
    #cookie-note button { padding: 8px 14px !important; }
    body.has-cookie #sw-bubble { visibility: hidden; }
  }

  /* ---------- hero ---------- */
  .hero { padding: 84px 0 30px; }
  .hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
  .eyebrow { font-family: var(--mono); font-size: 13px; color: var(--petrol); letter-spacing: .06em;
             text-transform: uppercase; margin-bottom: 16px; }
  .hero h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; font-weight: 700; }
  .hero h1 em { font-style: normal; color: var(--petrol); }
  .hero p.lead { font-size: 19px; color: var(--ink-soft); margin: 20px 0 30px; max-width: 46ch; }
  .hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero .note { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }

  /* mockup status page: il prodotto è il visual */
  .mock { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
          box-shadow: var(--sh2); overflow: hidden; }
  .mock .chrome { display: flex; align-items: center; gap: 8px; padding: 11px 14px;
                  border-bottom: 1px solid var(--line); background: #FBFCFC; }
  .mock .chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
  .mock .chrome .url { font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
                       background: var(--paper); border-radius: 6px; padding: 4px 12px; margin-left: 8px; }
  .mock .mhead { background: #3E2F5B; color: #fff; padding: 14px 18px;
                 font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px; }
  .mock .mbody { padding: 16px 18px; }
  .mock .verdict { display: flex; align-items: center; gap: 10px; background: #E8F4EE;
                   border: 1px solid #CBE6D6; border-radius: 10px; padding: 12px 14px;
                   font-weight: 600; font-size: 14.5px; color: #14532D; }
  .vdot { width: 12px; height: 12px; border-radius: 50%; background: var(--up);
          box-shadow: 0 0 0 5px rgba(30,138,76,.15); animation: pulse 1.8s infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(30,138,76,.06); } }
  .mock .msite { padding: 13px 2px 5px; border-bottom: 1px solid var(--line); }
  .mock .msite:last-child { border-bottom: 0; }
  .mock .mtop { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 8px; }
  .mock .mtop b { font-weight: 600; }
  .mock .mtop span { color: var(--up); font-weight: 600; }
  .mbars { display: flex; gap: 2px; height: 22px; align-items: flex-end; }
  .mbars i { flex: 1; border-radius: 1px; background: var(--up); opacity: .85; }
  .mbars i.p { background: var(--amber); } .mbars i.b { background: var(--down); }
  .mock .mfoot { font-size: 11.5px; color: var(--ink-soft); text-align: center; padding: 10px; background: var(--paper); }

  /* ---------- heartbeat divider (firma) ---------- */
  .pulse-divider { display: block; width: 100%; height: 60px; margin: 26px 0 0; }
  .pulse-divider path { fill: none; stroke: var(--petrol); stroke-width: 2.5;
                        stroke-linecap: round; stroke-linejoin: round;
                        stroke-dasharray: 1600; stroke-dashoffset: 1600;
                        animation: draw 3.2s ease forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }

  /* ---------- sezioni ---------- */
  section { padding: 74px 0; }
  .kicker { text-align: center; max-width: 640px; margin: 0 auto 46px; }
  .kicker h2 { font-size: clamp(26px, 3.2vw, 34px); margin-bottom: 12px; }
  .kicker p { color: var(--ink-soft); font-size: 17px; }

  .flip { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .flip .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .flip .col { padding: 30px; border-radius: 14px; }
  .flip .before { background: #FBEDEC; border: 1px solid #F0CBC8; }
  .flip .after  { background: #E8F4EE; border: 1px solid #CBE6D6; }
  .flip h3 { font-size: 19px; margin-bottom: 14px; }
  .flip li { list-style: none; padding: 7px 0 7px 30px; position: relative; color: #3d4a52; }
  .flip .before li::before { content: "✕"; position: absolute; left: 4px; color: var(--down); font-weight: 700; }
  .flip .after  li::before { content: "✓"; position: absolute; left: 4px; color: var(--up); font-weight: 700; }

  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .step { background: var(--card); border: 1px solid var(--line); border-radius: 14px;
          padding: 28px 26px; box-shadow: var(--sh1); }
  .step .n { font-family: var(--mono); font-size: 13px; color: var(--petrol); margin-bottom: 12px; }
  .step h3 { font-size: 18px; margin-bottom: 8px; }
  .step p { color: var(--ink-soft); font-size: 15px; }
  .step code { font-family: var(--mono); font-size: 13px; background: var(--tint);
               border-radius: 5px; padding: 2px 7px; color: var(--petrol-deep); }

  /* ---------- conto (la matematica del rivenditore) ---------- */
  .math { background: var(--petrol-deep); color: #E9F1F2; }
  .math .kicker h2, .math .kicker p { color: inherit; }
  .math .kicker p { opacity: .75; }
  .ledger { max-width: 560px; margin: 0 auto; background: rgba(255,255,255,.05);
            border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 28px 30px;
            font-family: var(--mono); font-size: 16px; }
  .ledger .l { display: flex; justify-content: space-between; padding: 9px 0; }
  .ledger .l + .l { border-top: 1px dashed rgba(255,255,255,.16); }
  .ledger .tot { border-top: 2px solid rgba(255,255,255,.4) !important; font-weight: 600; color: #fff; }
  .ledger .green { color: #7FD6A4; }
  .math .fine { text-align: center; font-size: 14px; opacity: .7; margin-top: 18px; }

  /* ---------- pricing ---------- */
  .founding { max-width: 720px; margin: 0 auto 40px; display: flex; gap: 14px; align-items: center;
              background: #FBF3E3; border: 1px solid #EFD9A8; border-radius: 12px; padding: 16px 20px; }
  .founding .tag { font-family: var(--mono); font-size: 12px; background: var(--amber); color: #4A3608;
                   border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
  .founding p { font-size: 14.5px; color: #6B4E12; }
  .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
  .plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px;
          padding: 30px 28px; box-shadow: var(--sh1); display: flex; flex-direction: column; }
  .plan.hot { border-color: var(--petrol); box-shadow: var(--sh2); position: relative; }
  .plan.hot::before { position: absolute; top: -12px; left: 24px;
                      background: var(--petrol); color: #fff; font-size: 12px; font-weight: 600;
                      border-radius: 999px; padding: 3px 12px; }
  .plan h3 { font-size: 19px; }
  .plan .price { font-family: var(--mono); font-size: 34px; font-weight: 500; margin: 12px 0 2px; }
  .plan .price small { font-size: 14px; color: var(--ink-soft); }
  .plan .per { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
  .plan li { list-style: none; padding: 6px 0 6px 26px; position: relative; font-size: 15px; color: #3d4a52; }
  .plan li::before { content: "✓"; position: absolute; left: 2px; color: var(--up); font-weight: 700; }
  .plan .btn { margin-top: auto; width: 100%; }
  .plan ul { margin-bottom: 22px; }

  /* ---------- faq ---------- */
  .faq { max-width: 720px; margin: 0 auto; }
  .faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px;
                 padding: 18px 22px; margin-bottom: 10px; }
  .faq summary { font-weight: 600; cursor: pointer; font-size: 16px; }
  .faq details p { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }
  .plan .price .eur { margin-left: .2em; }
  .ledger .l span:last-child { white-space: nowrap; margin-left: 14px; }
  .shot-hint { display: none; }
  .faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--petrol);
                        display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; line-height: 1; }
  .faq details[open] { border-color: var(--petrol); }
  .faq details[open] summary::after { content: "−"; background: var(--petrol); color: #fff; }
  .faq details { scroll-margin-top: 84px; }
  .founding p a { color: inherit; font-weight: 600; white-space: nowrap; }

  /* ---------- cta finale ---------- */
  .final { text-align: center; padding: 90px 0 100px; }
  .final h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 20ch; margin: 0 auto 14px; }
  .final p { color: var(--ink-soft); margin-bottom: 28px; }
  footer { border-top: 1px solid var(--line); padding: 26px 0; font-size: 13.5px; color: var(--ink-soft); }
  footer a { display: inline-block; padding: 3px 2px; margin: -3px -2px; }
  footer .wrap > p a { padding: 3px 6px; margin: -3px -4px; min-width: 24px; text-align: center; }
  footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

  @media (max-width: 860px) {
    .hero { padding: 48px 0 10px; }
    .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
    .flip .wrap, .steps, .plans { grid-template-columns: 1fr; }
    .nav-toggle { display: inline-flex; }
    nav .nav-right { gap: 8px; }
    nav .links { display: none; position: absolute; left: 0; right: 0; top: 66px; flex-direction: column; align-items: stretch;
                 gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--sh2); padding: 6px 24px 14px; }
    nav .links.open { display: flex; }
    nav .links a:not(.btn) { display: flex; align-items: center; min-height: 48px; font-size: 17px; border-bottom: 1px solid var(--line); }
    nav .links .nav-lang { display: flex; gap: 6px; padding-top: 10px; }
    nav .links .nav-lang a { justify-content: center; min-width: 48px; border: 1px solid var(--line); border-radius: 10px; }
    nav .links .nav-lang a[aria-current] { color: var(--petrol); border-color: var(--petrol); font-weight: 600; }
    footer a { display: inline-block; padding: 13px 6px; }
    footer .wrap > p { margin-bottom: 0 !important; }
    #sw-bubble { width: 46px; height: 46px; font-size: 21px; bottom: 14px; right: 14px; }
    section { padding: 56px 0; }
    .founding { flex-direction: column; align-items: flex-start; }
    .hero .cta-row .btn { width: 100%; }
    .shot-frame { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; box-shadow: 0 10px 34px rgba(22,35,43,.10); }
    .shot-frame img { min-width: 640px; border-radius: 0 !important; box-shadow: none !important; }
    .shot-frame:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
    .shot-hint { display: block; font-size: 12.5px; color: var(--ink-soft); text-align: center; margin-top: 8px; }
    .plan { padding: 22px 20px; }
    .plan li { padding: 4px 0 4px 26px; font-size: 14.5px; }
    .plan .price { font-size: 30px; margin-top: 8px; }
    .plan .per { margin-bottom: 12px; }
    .plan ul { margin-bottom: 16px; }
    .founding { padding: 16px 18px; margin-bottom: 28px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .vdot { animation: none; }
    .pulse-divider path { animation: none; stroke-dashoffset: 0; }
    html { scroll-behavior: auto; }
  }

/* Assistente (bolla + pannello) */
#sw-bubble{position:fixed;bottom:22px;right:22px;width:54px;height:54px;border-radius:50%;background:#0A2E33;color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;cursor:pointer;box-shadow:0 4px 18px rgba(10,46,51,.35);z-index:9998}
#sw-panel{position:fixed;bottom:88px;right:22px;width:min(340px,calc(100vw - 32px));background:#fff;border:1px solid #DCE4E6;border-radius:14px;box-shadow:0 10px 40px rgba(10,46,51,.25);z-index:9999;display:flex;flex-direction:column;overflow:hidden}
#sw-panel[hidden]{display:none}
#sw-head{background:#0A2E33;color:#fff;padding:12px 14px;font-weight:600;display:flex;justify-content:space-between;align-items:center}
#sw-close{cursor:pointer;font-size:20px;line-height:1}
#sw-thread{padding:12px;max-height:260px;overflow-y:auto;font-size:14px}
#sw-thread .sw-bot{background:#EEF5F2;border-radius:10px;padding:8px 10px;margin:0 24px 8px 0}
#sw-thread .sw-user{background:#0A2E33;color:#fff;border-radius:10px;padding:8px 10px;margin:0 0 8px 24px}
#sw-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 10px}
#sw-quick button{background:#fff;border:1px solid #7FD6A4;color:#0A2E33;border-radius:999px;padding:5px 10px;font-size:12px;cursor:pointer}
#sw-form{border-top:1px solid #DCE4E6;padding:10px;display:flex;flex-direction:column;gap:6px}
#sw-form input,#sw-form textarea{border:1px solid #DCE4E6;border-radius:8px;padding:8px;font:inherit;font-size:13px}
#sw-form button{background:#7FD6A4;border:0;border-radius:8px;padding:9px;font-weight:600;color:#0A2E33;cursor:pointer}

/* Etichetta del piano evidenziato: l'unico pezzo diverso per lingua. */
html[lang="it"] .plan.hot::before { content: "Il più scelto"; }
html[lang="en"] .plan.hot::before { content: "Most popular"; }
html[lang="es"] .plan.hot::before { content: "El más elegido"; }

/* Stili che prima erano style="" nell'HTML (CSP senza unsafe-inline, #342).
   Classe raddoppiata = la specificità di prima (l'inline batteva ogni regola). */
.u06a313.u06a313 { font-size:26px;margin-bottom:6px; }
.u116966.u116966 { margin:0; }
.u117569.u117569 { height:78%; }
.u14444b.u14444b { height:63%; }
.u1c9c44.u1c9c44 { color:inherit; }
.u1ea3b9.u1ea3b9 { margin-top:18px;color:#5C6E78;text-align:center; }
.u210552.u210552 { color:#5C6E78;margin-bottom:18px; }
.u213118.u213118 { height:58%; }
.u23f689.u23f689 { height:76%; }
.u2b2ce3.u2b2ce3 { margin-top:16px;min-height:28px;font-size:15px; }
.u2ea7fe.u2ea7fe { height:60%; }
.u35f826.u35f826 { height:61%; }
.u3986c5.u3986c5 { max-width:1000px;margin:0 auto;padding:40px 20px; }
.u39f4ef.u39f4ef { display:flex;gap:10px;max-width:520px;margin:0 auto;flex-wrap:wrap;justify-content:center; }
.u3d2662.u3d2662 { height:74%; }
.u411fa3.u411fa3 { height:64%; }
.u42b733.u42b733 { height:68%; }
.u44022f.u44022f { height:75%; }
.u4c05c6.u4c05c6 { height:80%; }
.u4e7611.u4e7611 { width:100%;height:auto;border-radius:14px;box-shadow:0 10px 34px rgba(22,35,43,.10); }
.u622640.u622640 { height:100%; }
.u6f22a9.u6f22a9 { height:77%; }
.u70787b.u70787b { position:fixed;left:16px;right:16px;bottom:16px;max-width:560px;margin:0 auto;z-index:60;
            background:var(--ink);color:#fff;border-radius:12px;padding:14px 18px;
            display:none;gap:14px;align-items:center;box-shadow:0 8px 30px rgba(22,35,43,.3); }
.u717ea7.u717ea7 { font-size:13px;margin-bottom:8px; }
.u7202c2.u7202c2 { height:62%; }
.u732ad2.u732ad2 { height:65%; }
.u74a9a2.u74a9a2 { color:#0F5E68; }
.u7e85ee.u7e85ee { font:inherit;flex:1;min-width:240px;padding:12px 14px;border:1px solid #6B7D87;border-radius:10px; }
.u85dd7e.u85dd7e { color:#7FD6A4; }
.u896bc9.u896bc9 { font:inherit;font-weight:600;border:0;border-radius:8px;cursor:pointer;
          padding:9px 16px;background:#fff;color:var(--ink);min-height:40px; }
.u9200a7.u9200a7 { text-align:center;font-size:13px;color:#5C6E78;margin-top:14px; }
.u92f821.u92f821 { font:inherit;font-weight:700;background:#0F5E68;color:#fff;border:0;border-radius:10px;padding:12px 22px;cursor:pointer; }
.ua1485a.ua1485a { max-width:720px;margin:0 auto;padding:48px 20px;text-align:center; }
.ua352da.ua352da { text-align:center;font-size:13px;color:#5C6E78;margin-top:6px; }
.ua37ec1.ua37ec1 { display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px;align-items:start; }
.uab9284.uab9284 { height:72%; }
.uac3da3.uac3da3 { font-size:17px;padding:16px 34px; }
.ub26953.ub26953 { height:59%; }
.uc5f797.uc5f797 { color:var(--petrol);font-weight:700; }
.ucd5fa5.ucd5fa5 { height:71%; }
.ue0c313.ue0c313 { height:70%; }
.ue73196.ue73196 { height:66%; }
.ue7e696.ue7e696 { height:69%; }
.ueeef37.ueeef37 { height:67%; }
.uf6fe64.uf6fe64 { height:73%; }
.uf89c23.uf89c23 { margin:0;font-size:13.5px;line-height:1.5;flex:1; }
.ufcb3f3.ufcb3f3 { font-size:13px;color:#5C6E78;margin-top:8px;text-align:center; }
