/* Kairomi Pro per WordPress: pezzi propri della pagina, sopra kairomi.css (copiato dal sito).
   Stessa direzione "notte e brace": fondo + elevazione, nessun contorno sui rettangoli
   arrotondati, nessuna barra laterale colorata. */

:root {
  --ink-3: #868fa9; /* dark only: #747d97 of the site falls under 4.5:1 on the cards */
  --bad: #ff9a8f;
  --bad-soft: rgba(255, 110, 92, 0.14);
  --row: 25px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bad: #b42318; --bad-soft: rgba(180, 35, 24, 0.08); }
}
:root[data-theme="light"] { --bad: #b42318; --bad-soft: rgba(180, 35, 24, 0.08); }

/* icone dallo sprite in testa alla pagina, tratto 1.6 come nel sito */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* senza JavaScript il modulo non può partire: resta il collegamento alla pagina di pagamento */
.no-js .js-only { display: none !important; }
.nojs-note { margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: var(--surface-2); color: var(--ink-2); font-size: 15px; }

/* ---------- Nav: il marchio con «Pro» ---------- */
.nav__brand { gap: 10px; }
.nav__pro { font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--accent-text); padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); }

/* 404: niente link di sezione, la lingua resta visibile anche su telefono */
.nav__tools--404 { margin-left: auto; }
.nav__tools--404 .nav__lang { display: inline-block !important; }

/* ---------- Hero ---------- */
.pro-hero .display { font-size: clamp(2.7rem, 6.4vw, 5.8rem); }
.pro-hero .hero__micro { margin-top: 30px; }
.pro-hero .hero__micro svg { color: var(--accent-text); }

.showcase--pro { margin-top: clamp(48px, 7vw, 88px); }
.showcase--pro .shell { position: relative; }
.showcase__agenda { position: absolute; z-index: 2; width: min(38%, 440px); right: -2%; bottom: -14%; }
.showcase--pro .win__url { white-space: nowrap; overflow: hidden; }
.tag-shot { position: absolute; left: 22px; bottom: 18px; z-index: 1; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2); padding: 6px 11px; border-radius: 999px; background: var(--glass-strong); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--highlight); }
@media (max-width: 760px) {
  .showcase__agenda { position: relative; width: 100%; max-width: 440px; right: auto; bottom: auto; margin: -10% 0 0 auto; }
  .tag-shot { display: none; }
}

/* agenda animata: la giornata di un salone con più toelettatori e due sedi */
.agenda { position: relative; padding: 14px 14px 16px; border-radius: 28px; background: var(--glass-strong); background: color-mix(in srgb, var(--surface) 90%, transparent); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); box-shadow: var(--highlight), var(--shadow-2); overflow: hidden; isolation: isolate; }
.agenda::before { content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; right: -150px; top: -180px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow-ember), transparent 70%); opacity: 0.8; }
.agenda__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 2px 12px; }
.agenda__day { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.agenda__seg { position: relative; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--shell); box-shadow: var(--highlight); }
.agenda__seg [data-sede] { position: relative; z-index: 1; padding: 5px 11px; font-size: 12px; font-weight: 560; color: var(--ink-2); transition: color 500ms var(--ease); white-space: nowrap; }
.agenda__seg [data-sede].is-on { color: var(--on-accent); }
.agenda__pill { position: absolute; z-index: 0; top: 3px; left: 0; height: calc(100% - 6px); width: 0; border-radius: 999px; background: var(--accent); box-shadow: var(--shadow-ember); transition: transform 650ms var(--ease-out), width 650ms var(--ease-out); }
.agenda__body { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; }
.agenda__times { display: grid; grid-template-rows: 26px repeat(4, calc(var(--row) * 2)); font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); }
.agenda__times span { transform: translateY(-6px); }
.agenda__stage { position: relative; height: calc(26px + 4px + var(--row) * 8); }
.agenda__scene { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 6px; transition: opacity 600ms var(--ease), transform 800ms var(--ease-out), visibility 0s linear 0s; }
.agenda__scene:not(.is-on) { opacity: 0; transform: translateY(12px) scale(0.985); visibility: hidden; transition: opacity 400ms var(--ease), transform 600ms var(--ease), visibility 0s linear 400ms; }
.agenda__col { display: grid; grid-template-rows: 26px 1fr; gap: 4px; min-width: 0; }
.agenda__who { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.agenda__who i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.agenda__lane { position: relative; border-radius: 12px; background-color: var(--shell); background-image: linear-gradient(var(--hair) 1px, transparent 1px); background-size: 100% calc(var(--row) * 2); }
.bk { position: absolute; left: 3px; right: 3px; top: calc(var(--s) * var(--row) + 2px); height: calc(var(--l) * var(--row) - 4px); padding: 5px 7px; border-radius: 9px; background: var(--surface-2); background: color-mix(in srgb, var(--c) 24%, var(--surface)); box-shadow: var(--highlight); font-size: 11px; line-height: 1.25; overflow: hidden; }
.bk b { display: block; font-weight: 620; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk span { display: block; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk--off { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--surface-2) 0 5px, transparent 5px 10px), var(--surface); color: var(--ink-3); font-family: var(--font-mono); font-size: 10.5px; }
.bk--closed { display: grid; place-items: center; background: transparent; color: var(--ink-3); font-family: var(--font-mono); font-size: 10.5px; text-align: center; }
.motion .agenda[data-live] .bk:not(.is-in) { opacity: 0; transform: translateY(-10px) scale(0.96); }
.agenda .bk { transition: opacity 500ms var(--ease), transform 700ms var(--ease-spring); }
@media (max-width: 420px) { :root { --row: 21px; } .agenda { padding: 12px 10px 14px; border-radius: 24px; } .bk { font-size: 10.5px; padding: 4px 6px; } .agenda__seg [data-sede] { padding: 5px 9px; } }

/* ---------- Funzioni: visuali delle schede ---------- */
.tile__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); }
.tile__ic svg { width: 20px; height: 20px; }
.tile__k { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.shift__bar b.off { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 22%, transparent) 0 4px, transparent 4px 8px); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 4px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 18px; height: 10px; border-radius: 3px; background: color-mix(in srgb, var(--op-1) 55%, transparent); }
.legend i.off { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 30%, transparent) 0 3px, transparent 3px 6px); }

.sedi { display: grid; gap: 10px; }
.sede { padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.sede__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sede__top b { font-size: 14px; }
.sede__top span { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-family: var(--font-mono); font-size: 11px; }
.days span { display: grid; place-items: center; height: 26px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-text); }
.days span.x { background: repeating-linear-gradient(135deg, var(--shell) 0 4px, transparent 4px 8px); color: var(--ink-3); }

.access { display: grid; gap: 6px; }
.access__role { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; margin-bottom: 4px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 600; }
.access__role i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--op-1) 30%, transparent); color: var(--ink); font-style: normal; font-family: var(--font-mono); font-size: 11px; }
.access__row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.access__row svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
.access__row.no { color: var(--ink-3); background: transparent; }
.access__row.no svg { color: var(--ink-3); }
.access__row em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

.cash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; }
.cash > div { display: grid; gap: 8px; }
.cash .bars { height: 96px; justify-content: center; }
.cash .bars i { flex: 0 1 52px; border-radius: 10px 10px 4px 4px; }
.cash span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); text-align: center; }

.amelia { display: grid; gap: 14px; }
.amelia__flow { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.amelia__flow span { padding: 7px 13px; border-radius: 999px; background: var(--surface-2); }
.amelia__flow span:last-child { background: var(--accent); color: var(--on-accent); }
.amelia__flow svg { width: 18px; height: 18px; color: var(--ink-3); }

.mailbig { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--surface-2); box-shadow: var(--highlight); font-family: var(--font-mono); font-size: 14.5px; transition: background-color var(--t-fast) var(--ease); }
.mailbig i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.mailbig i svg { width: 17px; height: 17px; }
.mailbig:hover { background: var(--surface-3); }

/* ---------- Confronto ---------- */
.cmp-wrap { margin-top: clamp(40px, 5vw, 64px); padding: clamp(10px, 1.6vw, 18px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--highlight), var(--shadow-1); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.cmp caption { text-align: left; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: middle; }
.cmp thead th { font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--ink-3); padding-block: 12px 14px; }
.cmp thead th.pro { color: var(--accent-text); }
.cmp tbody th { font-weight: 560; color: var(--ink); width: 46%; }
.cmp tbody tr + tr > * { background-image: linear-gradient(var(--hair), var(--hair)); background-size: 100% 1px; background-repeat: no-repeat; }
.cmp td { color: var(--ink-2); }
.cmp .pro { background-color: var(--accent-soft); color: var(--ink); }
.cmp thead .pro { border-radius: 16px 16px 0 0; }
.cmp tbody tr:last-child .pro { border-radius: 0 0 16px 16px; }
.cmp tbody tr:last-child > * { font-weight: 640; color: var(--ink); }
.yes, .no-mark { display: inline-flex; align-items: center; gap: 8px; }
.yes svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.no-mark svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
@media (max-width: 640px) {
  .cmp { font-size: 13.5px; }
  .cmp th, .cmp td { padding: 11px 8px; }
  .cmp tbody th { width: 44%; }
}

/* ---------- Acquisto ---------- */
.buy { position: relative; margin-top: clamp(40px, 5vw, 64px); isolation: isolate; }
.section--buy { overflow-x: clip; }
.buy::before { content: ""; position: absolute; z-index: -1; width: min(1100px, 140%); aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, var(--glow-ember), transparent 70%); opacity: 0.4; pointer-events: none; }
.buy__step { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 0 6px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ink-2); }
.buy__step b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); font-weight: 600; font-size: 12px; }
.buy fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.buy legend { padding: 0; }

.lics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lic { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 34px); border-radius: 32px; background: var(--surface); box-shadow: var(--highlight), var(--shadow-1); cursor: pointer; transition: background-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease); }
.lic:hover { transform: translateY(-2px); }
.lic.is-picked { background: var(--surface-2); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 16%, var(--surface)) 0%, var(--surface) 60%); box-shadow: var(--highlight), var(--shadow-ember); }
.lic:has(.lic__radio:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.lic__radio { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.lic__top { display: flex; align-items: flex-start; gap: 14px; }
.lic__dot { position: relative; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--ink-3); transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.lic__dot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--on-accent); transform: scale(0); transition: transform 400ms var(--ease-spring); }
.lic.is-picked .lic__dot { background: var(--accent); box-shadow: none; }
.lic.is-picked .lic__dot::after { transform: scale(1); }
.lic__name { display: block; font-size: clamp(1.2rem, 1.7vw, 1.42rem); font-weight: 640; letter-spacing: -0.025em; line-height: 1.2; cursor: pointer; }
.lic__for { display: block; margin-top: 4px; color: var(--ink-2); font-size: 15px; font-weight: 400; letter-spacing: 0; }
.lic__chip { margin-left: auto; flex: none; font-family: var(--font-mono); font-size: 11.5px; padding: 5px 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); opacity: 0; transform: translateY(-4px); transition: opacity var(--t-fast) var(--ease), transform var(--t-med) var(--ease-out); }
.lic.is-picked .lic__chip { opacity: 1; transform: none; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.price__amt { position: relative; display: inline-block; height: 1.08em; overflow: hidden; font-size: clamp(2.7rem, 4.8vw, 3.8rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.price__amt > span { display: block; white-space: nowrap; }
.price__per { font-size: 15px; color: var(--ink-2); }
.price__note { margin: 0; font-size: 14px; color: var(--ink-3); min-height: 1.55em; }
.lic ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.lic li { display: flex; gap: 10px; font-size: 15px; color: var(--ink-2); }
.lic li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--ok); }

/* interruttore anno / mese */
.seg { position: relative; display: inline-flex; align-self: flex-start; padding: 4px; border-radius: 999px; background: var(--shell); box-shadow: var(--highlight); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.seg label { position: relative; z-index: 1; padding: 9px 16px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; font-size: 14px; font-weight: 560; color: var(--ink-2); cursor: pointer; transition: color var(--t-fast) var(--ease); white-space: nowrap; }
.seg input:checked + label { color: var(--on-accent); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg__pill { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: 999px; background: var(--accent); box-shadow: var(--shadow-ember); transition: transform 600ms var(--ease-out), width 600ms var(--ease-out); }
.no-js .seg input:checked + label { background: var(--accent); }

/* dati */
.buy__data { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 16px; margin-top: 16px; padding: clamp(22px, 2.6vw, 34px); border-radius: 32px; background: var(--surface); box-shadow: var(--highlight), var(--shadow-2); }
.buy__data .buy__step { grid-column: 1 / -1; margin: 0; padding: 0; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-size: 15px; font-weight: 600; }
.field input { width: 100%; min-height: 54px; padding: 14px 16px 12px; border: 0; border-radius: 14px 14px 5px 5px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: 16px; box-shadow: inset 0 -1.5px 0 var(--ink-3), var(--highlight); transition: box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.field input::placeholder { color: var(--ink-3); opacity: 1; }
.field input:hover { background: var(--surface-3); }
.field input:focus { outline: none; }
.field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: inset 0 -2px 0 var(--accent), var(--highlight); }
.field input[aria-invalid="true"] { box-shadow: inset 0 -2px 0 var(--bad), var(--highlight); }
.field__hint { margin: 0; font-size: 14px; color: var(--ink-2); }
.field__err { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 500; color: var(--bad); }
.field__err svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.field__err[hidden] { display: none; }

.buy__go { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; align-items: center; margin-top: 6px; padding-top: 20px; background: linear-gradient(var(--hair), var(--hair)) top / 100% 1px no-repeat; }
.sum { margin: 0; }
.sum b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.sum span { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14.5px; }
.btn--go { min-height: 58px; font-size: 16px; padding-left: 26px; }
.btn--go .btn__icon { width: 46px; height: 46px; }
.btn--go[aria-disabled="true"] { cursor: progress; }
.btn--go .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(26, 10, 2, 0.25); border-top-color: var(--on-accent); animation: spin 800ms linear infinite; }
.btn--go.is-busy .spin { display: block; }
.btn--go.is-busy .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.buy__err { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--bad-soft); color: var(--ink); font-size: 15px; }
.buy__err:empty { display: none; }
.buy__err svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--bad); }
.buy__err a { text-decoration: underline; text-underline-offset: 2px; }
.buy__fine { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--ink-2); max-width: 86ch; }
.buy__fine a { color: var(--ink); }
@media (max-width: 860px) {
  .lics { grid-template-columns: 1fr; }
  .buy__data { grid-template-columns: 1fr; }
  .buy__go { grid-template-columns: 1fr; }
  .btn--go { justify-content: space-between; width: 100%; }
}
@media (max-width: 420px) {
  .lic, .buy__data { border-radius: 24px; padding: 20px 16px; }
  .seg label { padding: 9px 13px; font-size: 13.5px; }
  .btn--go { white-space: normal; }
}

/* ---------- Domande aperte, non a fisarmonica ---------- */
.qlist { margin: 0; display: grid; gap: 0; }
.qlist > div { padding: 24px 0; background: linear-gradient(var(--hair), var(--hair)) top / 100% 1px no-repeat; }
.qlist > div:first-child { padding-top: 4px; background: none; }
.qlist dt { font-size: clamp(1.05rem, 1.35vw, 1.18rem); font-weight: 620; letter-spacing: -0.015em; }
.qlist dd { margin: 10px 0 0; color: var(--ink-2); max-width: 66ch; }
.qlist dd a { color: var(--ink); }

/* ---------- Piè di pagina ---------- */
.footer__top--pro { grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 860px) { .footer__top--pro { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer__top--pro { grid-template-columns: 1fr; } }

/* ---------- Testi legali: parti ancora da confermare, ben visibili ---------- */
.tbd { padding: 1px 7px; border-radius: 7px; background: var(--accent-soft); color: var(--ink); font-weight: 600; white-space: nowrap; }
.legal__draft .ic { width: 18px; height: 18px; flex: none; color: var(--accent-text); }
.legal__table:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* the tables scroll inside their box: the page column must not grow to their width on phones */
.legal > * { min-width: 0; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); } }
