/* clara.airgrid.eu – Clara, l'assistente IA per le piccole aziende
 * Copyright © 2026 Airgrid Network - Software Division */

:root {
  --paper: #fbf8f3;
  --paper-2: #f3eee6;
  --card: #ffffff;
  --ink: #142130;
  --muted: #586374;
  --line: #e5ded3;
  --brand: #145a9e;
  --brand-deep: #0d3a68;
  --sky: #2f9fc0;
  --coral: #e2574c;
  --coral-ink: #c4433a;
  --sun: #f2a33a;
  --green: #1f9d55;
  --amber: #dd9a12;
  --red: #d6453b;
  --chat-bg: #eef2f6;
  --bubble-in: #ffffff;
  --bubble-out: #dcebfa;
  --shadow: 0 18px 50px rgba(20, 33, 48, 0.12);
  --shadow-sm: 0 4px 14px rgba(20, 33, 48, 0.07);
  --radius: 18px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10151c;
    --paper-2: #161d26;
    --card: #1b232e;
    --ink: #e9edf2;
    --muted: #9ba7b7;
    --line: #2b3542;
    --brand: #6cb2ee;
    --brand-deep: #0b2744;
    --sky: #4cc0dd;
    --coral: #f06b60;
    --coral-ink: #f58178;
    --chat-bg: #121a23;
    --bubble-in: #1f2935;
    --bubble-out: #1c3a5a;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4.2vw, 44px); }
h3 { font-size: 19px; letter-spacing: -0.005em; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--coral-ink); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.center .eyebrow::before { display: none; }
.hl { font-style: italic; color: var(--brand); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: 0.04em; height: 0.16em;
  background: color-mix(in srgb, var(--sun) 55%, transparent); border-radius: 4px; z-index: -1;
}

/* Testata */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: -0.01em; }
.brand small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 15px; }
.top nav a { color: var(--muted); white-space: nowrap; }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top nav .btn { color: #fff; padding: 10px 18px; font-size: 15px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px;
            width: 44px; height: 40px; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .top nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
             gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; }
  .top nav.open { display: flex; }
  .top nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .top nav .btn { margin-top: 14px; border: 0; justify-content: center; }
  .brand small { display: none; }
}

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; font: inherit; font-weight: 650; font-size: 16.5px; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary { background: var(--coral); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--coral) 35%, transparent); }
.btn.primary:hover { filter: brightness(1.05); box-shadow: 0 12px 28px color-mix(in srgb, var(--coral) 42%, transparent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.light { background: #fff; color: var(--brand-deep); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Sezioni */
section { padding: 96px 0; position: relative; }
section.alt { background: var(--paper-2); }
@media (max-width: 700px) { section { padding: 68px 0; } }
.head { max-width: 720px; margin-bottom: 48px; }
.head.center { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 56px 0 90px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--sun) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { margin-bottom: 22px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 30px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-size: 15px; color: var(--muted); }
.pills li { display: flex; align-items: center; gap: 8px; }
.pills li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: color-mix(in srgb, var(--green) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231f9d55' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 36px; }
}

.scope { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 600px; }
.scope li { font-size: 14.5px; font-weight: 600; padding: 6px 13px; border-radius: 999px; background: var(--card);
            border: 1px solid var(--line); color: var(--ink); }

/* Telefono con la chat */
.phone {
  width: 100%; max-width: 380px; margin: 0 auto; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #26313f, #0e141b); box-shadow: var(--shadow), 0 40px 80px -30px rgba(13, 58, 104, .45);
  position: relative;
}
.phone::after { content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 24px; margin-left: -46px;
                border-radius: 14px; background: #0b0f14; }
.screen { border-radius: 34px; overflow: hidden; background: var(--chat-bg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 48px 16px 12px; background: var(--card);
             border-bottom: 1px solid var(--line); }
.chat-head svg { width: 38px; height: 38px; flex: none; }
.chat-head b { display: block; font-size: 15.5px; line-height: 1.2; }
.chat-head small { font-size: 12.5px; color: var(--muted); }
.chat-head small i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 5px; vertical-align: 1px; }
.chat { padding: 14px 12px 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; min-height: 470px; }
.day { align-self: center; font-size: 11.5px; color: var(--muted); background: var(--card); padding: 3px 10px; border-radius: 8px; margin-bottom: 2px; }
.msg { max-width: 88%; padding: 9px 12px 7px; border-radius: 14px; box-shadow: 0 1px 1px rgba(0,0,0,.06); position: relative; }
.msg.in { align-self: flex-start; background: var(--bubble-in); border-top-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--bubble-out); border-top-right-radius: 4px; }
.msg time { display: block; text-align: right; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.msg ul { margin: 6px 0 2px; padding: 0; list-style: none; }
.msg li { padding-left: 22px; position: relative; margin-bottom: 4px; }
.msg li span { position: absolute; left: 0; top: 0; }
.msg .q { display: flex; gap: 6px; margin-top: 8px; }
.msg .q em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--brand); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
             border-radius: 999px; padding: 3px 10px; }
.js .chat .msg { opacity: 0; transform: translateY(8px) scale(.98); }
.js .chat.play .msg { animation: pop .45s cubic-bezier(.2,.8,.3,1.2) forwards; }
.js .chat.play .msg:nth-of-type(2) { animation-delay: .9s; }
.js .chat.play .msg:nth-of-type(3) { animation-delay: 2.1s; }
.js .chat.play .msg:nth-of-type(4) { animation-delay: 3.1s; }
@keyframes pop { to { opacity: 1; transform: none; } }

.ai-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* Problema */
.pains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pain { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.pain .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
             background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.pain .ico svg { width: 22px; height: 22px; }
.pain p { color: var(--muted); font-size: 15.5px; margin: 0; }
@media (max-width: 980px) { .pains { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pains { grid-template-columns: 1fr; } }
.quote { margin: 46px auto 0; max-width: 760px; text-align: center; font-family: var(--serif); font-size: clamp(22px, 2.6vw, 28px);
         line-height: 1.4; font-style: italic; }
.quote b { font-style: normal; color: var(--coral-ink); font-weight: 600; }

/* Passi */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step::before { counter-increment: s; content: counter(s); font-family: var(--serif); font-size: 54px; line-height: 1; font-weight: 600;
                color: color-mix(in srgb, var(--sun) 80%, var(--coral)); display: block; margin-bottom: 14px; }
.step .when { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
              margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Semaforo */
.lights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.light { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; border-top: 5px solid var(--c); }
.light .dot { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 8px; }
.light .dot::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--c);
                      box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 20%, transparent); }
.light ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15.5px; }
.light li { padding: 9px 0; border-top: 1px dashed var(--line); }
.light.g { --c: var(--green); } .light.y { --c: var(--amber); } .light.r { --c: var(--red); }
.lights-note { margin: 30px auto 0; max-width: 720px; text-align: center; color: var(--muted); }
@media (max-width: 860px) { .lights { grid-template-columns: 1fr; } }

/* Mansioni */
.tasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.task { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; display: flex; flex-direction: column; }
.task h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.task h3 span { font-size: 22px; }
.task p { color: var(--muted); font-size: 15.5px; margin: 0 0 14px; }
.task .tag { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; letter-spacing: .02em; }
.tag.now { background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.tag.next { background: color-mix(in srgb, var(--brand) 11%, transparent); color: var(--brand); }
@media (max-width: 940px) { .tasks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .tasks { grid-template-columns: 1fr; } }

/* Rapportino */
.report-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.report { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 28px; }
.report header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.report header svg { width: 36px; height: 36px; }
.report header b { display: block; }
.report header small { color: var(--muted); font-size: 13px; }
.report dl { display: grid; grid-template-columns: 1fr auto; margin: 0; }
.report dt, .report dd { padding: 11px 0; border-top: 1px solid var(--line); margin: 0; font-size: 15.5px; }
.report dd { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.report .total { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: color-mix(in srgb, var(--green) 12%, transparent);
                 display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.report .total b { font-family: var(--serif); font-size: 30px; color: var(--green); }
.report .ex { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; text-align: center; }
@media (max-width: 900px) { .report-wrap { grid-template-columns: 1fr; gap: 36px; } }

/* Compatibilità */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 15px; }

/* Box */
.box-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.box-art { background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 12%, var(--card)), var(--card));
           border: 1px solid var(--line); border-radius: 26px; padding: 30px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; margin-top: 28px; }
.feat { display: flex; gap: 12px; }
.feat .ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
             background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); }
.feat .ico svg { width: 19px; height: 19px; }
.feat b { display: block; font-size: 16px; margin-bottom: 2px; }
.feat span { color: var(--muted); font-size: 15px; line-height: 1.5; display: block; }
@media (max-width: 940px) { .box-wrap { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }

/* Programma pilota */
.pilot { background: radial-gradient(900px 500px at 85% 0%, color-mix(in srgb, var(--sky) 35%, transparent), transparent),
                     linear-gradient(160deg, #11497f, #0b2d52); color: #eaf2fb; }
.pilot h2, .pilot h3 { color: #fff; }
.pilot .eyebrow { color: #ffc27a; }
.pilot .lead { color: #c4d6ea; }
.pilot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 8px; }
.pcard { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; }
.pcard ul { list-style: none; padding: 0; margin: 14px 0 0; }
.pcard li { padding: 10px 0 10px 32px; position: relative; border-top: 1px solid rgba(255,255,255,.1); color: #d5e3f1; }
.pcard li b { color: #fff; }
.pcard li::before { content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,194,122,.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23ffc27a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.pcard.ask li::before { background: rgba(255,255,255,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='3' fill='%23bcd3ea'/%3E%3C/svg%3E") center/15px no-repeat; }
.cost { margin-top: 22px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
        background: rgba(255,255,255,.95); color: var(--ink); border-radius: var(--radius); padding: 24px 28px; }
.cost .num { font-family: var(--serif); font-size: clamp(34px, 4vw, 46px); font-weight: 600; color: var(--brand-deep); line-height: 1; white-space: nowrap; }
.cost .num small { font-size: 16px; font-family: var(--sans); color: var(--muted); font-weight: 500; }
.cost p { margin: 0; color: #4a5566; font-size: 15.5px; }
.cost p b { color: var(--ink); }
.who { margin-top: 22px; color: #c4d6ea; font-size: 15.5px; }
.who b { color: #fff; }
.pilot .cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (prefers-color-scheme: dark) { .cost { background: #e9eef4; } }
@media (max-width: 860px) { .pilot-grid { grid-template-columns: 1fr; } .cost { grid-template-columns: 1fr; gap: 10px; } }

/* Prezzi */
.plans { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; position: relative; display: flex; flex-direction: column; }
.plan h3 { font-size: 18px; margin-bottom: 2px; }
.plan .for { color: var(--muted); font-size: 14px; margin: 0 0 14px; min-height: 42px; }
.plan .price { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1; margin-bottom: 16px; }
.plan .price small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: 14.5px; color: var(--muted); }
.plan li { padding: 7px 0 7px 22px; border-top: 1px dashed var(--line); position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.plan li b { color: var(--ink); }
.plan.hot { border: 2px solid var(--coral); box-shadow: var(--shadow-sm); }
.plan .badge { position: absolute; top: -12px; left: 18px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 700;
               border-radius: 999px; padding: 3px 10px; }
.plans-note { max-width: 760px; margin: 30px auto 0; text-align: center; color: var(--muted); }
.plans-note p { margin-bottom: 10px; }
.plans-note b { color: var(--ink); }
.plans-note .btn { margin-top: 12px; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } .plan .for { min-height: 0; } }

/* Pagina prezzi */
.page-head { padding: 64px 0 48px; }
.page-head h1 { font-size: clamp(36px, 5.5vw, 56px); max-width: 760px; }
.top nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn.outline-light:hover { border-color: #fff; }
.phases { list-style: none; padding: 0; margin: 8px 0 30px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: ph; }
.phases li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 16px 14px; position: relative; }
.phases li::before { counter-increment: ph; content: counter(ph); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
                     background: #ffc27a; color: #0b2d52; font-weight: 800; font-size: 13px; margin-bottom: 10px; }
.phases b { display: block; color: #fff; margin-bottom: 4px; }
.phases span { color: #c4d6ea; font-size: 14.5px; line-height: 1.45; display: block; }
.pilot-price { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: rgba(255,255,255,.95);
               color: var(--ink); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 22px; }
.pilot-price p { margin: 0; color: #4a5566; }
.pilot-price p b { color: var(--ink); }
.ptable { border-collapse: collapse; font-size: 15px; }
.ptable caption { text-align: left; font-weight: 700; margin-bottom: 8px; color: var(--brand-deep); }
.ptable th, .ptable td { padding: 8px 14px; border-bottom: 1px solid #e3e8ee; text-align: left; }
.ptable td { text-align: center; }
.ptable td b { font-family: var(--serif); font-size: 26px; color: var(--brand-deep); }
.ptable tr:first-of-type th { font-size: 13px; color: var(--muted); font-weight: 650; }
@media (prefers-color-scheme: dark) { .pilot-price { background: #e9eef4; } }
@media (max-width: 1080px) { .phases { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .pilot-price { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .phases { grid-template-columns: 1fr; } .ptable th, .ptable td { padding: 7px 8px; } .ptable td b { font-size: 22px; } }

/* Pagina del programma pilota (/specs/) */
.wrap.narrow { max-width: 820px; }
.doc h2 { margin-bottom: 14px; }
.doc p { color: var(--ink); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.toc a { font-size: 14px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.toc a:hover { border-color: var(--brand); text-decoration: none; }
.toc span { display: none; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.facts b { display: block; font-family: var(--serif); font-size: 28px; color: var(--brand); line-height: 1.1; }
.facts span { font-size: 14px; color: var(--muted); }
ul.ticks { list-style: none; padding: 0; margin: 14px 0; }
ul.ticks li { padding: 9px 0 9px 28px; position: relative; border-top: 1px dashed var(--line); }
ul.ticks li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
table.spec { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 15.5px; }
table.spec th, table.spec td { text-align: left; vertical-align: top; padding: 11px 12px; border-top: 1px solid var(--line); }
table.spec th { width: 34%; font-weight: 650; }
table.spec td { color: var(--muted); }
.ptable.wide { width: 100%; background: var(--card); border-radius: 14px; overflow: hidden; margin: 6px 0 10px; }
.ptable.wide caption { padding: 0 0 8px; }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr 1fr; } table.spec th { width: 40%; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 650; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 28px; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: -6px 0 22px; max-width: 720px; }

/* Modulo */
.form-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.form-side p { color: var(--muted); }
.form-side .mail { font-weight: 650; }
form.apply { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-sm); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: 14.5px; font-weight: 650; }
.field label small, .field legend small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; background: var(--paper);
                border: 1.5px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; user-select: none; }
.checks input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.checks label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--paper)); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-msg { border-radius: 14px; padding: 16px 18px; margin-top: 18px; font-size: 15.5px; }
.form-msg.ok { background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--ink); }
.form-msg.err { background: color-mix(in srgb, var(--red) 11%, transparent); color: var(--ink); }
@media (max-width: 940px) { .form-wrap { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .fields { grid-template-columns: 1fr; } form.apply { padding: 22px 18px; } }

/* Piè di pagina */
footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 44px 0; font-size: 14.5px; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer .brand b { font-size: 21px; }
footer .brand svg { width: 28px; height: 28px; }
footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
footer p { margin: 10px 0 0; }
footer .brand { text-decoration: none; color: var(--ink); }

/* Comparsa al passaggio */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .chat .msg { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
}

/* Pagine legali */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); }
.legal h2 { font-size: 24px; margin-top: 40px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--paper-2); }
.legal .box { background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
@media (max-width: 600px) { .legal table { font-size: 13.5px; } .legal th, .legal td { padding: 8px 6px; } }
