/* Area clienti Exercitia: pannelli in vetro su sfondo chiaro con luci di colore. */
.tlp {
    --navy: #002E5B; --navy-2: #12467d; --blue: #2563eb; --sun: #FEC10D;
    --ink: #0f1f33; --muted: #5b6b80; --line: rgba(15, 31, 51, .1);
    --glass: rgba(255, 255, 255, .62); --glass-strong: rgba(255, 255, 255, .8); --glass-line: rgba(255, 255, 255, .85);
    --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --danger: #b91c1c; --danger-bg: #fee2e2;
    --r: 22px; --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 40px -18px rgba(0, 46, 91, .28), 0 2px 6px rgba(0, 46, 91, .06);
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 100vh; min-height: 100dvh; margin: 0; padding: 0;
    background: linear-gradient(160deg, #f4f8fd 0%, #eef3fb 45%, #f9f6ee 100%);
    color: var(--ink); font: 400 15.5px/1.55 "Plus Jakarta Sans", Inter, "Segoe UI", system-ui, sans-serif;
    display: grid; gap: 18px; text-align: left;
}
.tlp *, .tlp *::before, .tlp *::after { box-sizing: border-box; }
.tlp h1, .tlp h2, .tlp h3 { color: var(--navy); font-family: inherit; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.tlp h1 { font-size: 26px; font-weight: 800; }
.tlp h2 { font-size: 19px; font-weight: 800; }
.tlp p { margin: 0; }
.tlp a { color: var(--blue); }
.tlp small { font-size: .82em; color: var(--muted); font-weight: 500; }

/* Luci di sfondo */
.tlp-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.tlp-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.tlp-blob--a { width: 460px; height: 460px; background: #8fb8ff; top: -160px; left: -120px; }
.tlp-blob--b { width: 380px; height: 380px; background: #ffe07a; top: 30%; right: -140px; opacity: .5; }
.tlp-blob--c { width: 420px; height: 420px; background: #a7e3f5; bottom: -200px; left: 30%; opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
    .tlp-blob--a { animation: tlp-drift 22s ease-in-out infinite alternate; }
    .tlp-blob--b { animation: tlp-drift 26s ease-in-out infinite alternate-reverse; }
}
@keyframes tlp-drift { to { transform: translate(60px, 40px) scale(1.08); } }

/* Vetro */
.tlp .glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid var(--glass-line); border-radius: var(--r); box-shadow: var(--shadow);
}

/* Testata e schede */
.tlp-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; }
.tlp-brand { display: flex; align-items: center; gap: 10px; }
.tlp-brand strong { display: block; color: var(--navy); font-size: 16px; font-weight: 800; line-height: 1.1; }
.tlp-brand span:not(.tlp-mark) { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tlp-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(140deg, var(--navy), var(--blue)); color: #fff; font-weight: 800; font-size: 18px; box-shadow: 0 6px 16px -6px rgba(37,99,235,.7); position: relative; }
.tlp-mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); border: 2px solid #fff; }
.tlp-me { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tlp-me__name { font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.tlp-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 800; border: 1px solid var(--line); }

.tlp-tabs { display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
.tlp-tabs a { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px; border-radius: 14px; color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, color .15s; }
.tlp-tabs a i { font-size: 18px; }
.tlp-tabs a.is-current { background: #fff; color: var(--navy); box-shadow: 0 6px 16px -10px rgba(0,46,91,.45); }
@media (hover: hover) { .tlp-tabs a:not(.is-current):hover { background: rgba(255,255,255,.55); color: var(--navy); } }
.tlp-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--sun); color: var(--navy); font-size: 12px; font-weight: 800; }

/* Pulsanti e campi */
.tlp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 13px; border: 1px solid transparent; font: 700 15px/1 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: transform .1s ease-out, filter .15s, background .15s; touch-action: manipulation; }
.tlp-btn:active { transform: scale(.97); }
.tlp-btn--primary { background: linear-gradient(140deg, var(--navy), var(--blue)); color: #fff !important; box-shadow: 0 10px 22px -10px rgba(37,99,235,.75); }
.tlp-btn--primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.tlp-btn--ghost { background: rgba(255,255,255,.7); color: var(--navy) !important; border-color: var(--line); }
.tlp-btn--sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.tlp-btn--block { width: 100%; }
@media (hover: hover) { .tlp-btn--primary:not(:disabled):hover { filter: brightness(1.08); } .tlp-btn--ghost:hover { background: #fff; } }
.tlp :focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.tlp-field { display: grid; gap: 6px; font-weight: 700; color: var(--navy); font-size: 14px; }
.tlp-field small { font-weight: 500; }
.tlp-field--inline { min-width: 240px; }
.tlp input[type="text"], .tlp input[type="email"], .tlp input[type="password"], .tlp input[type="number"], .tlp select, .tlp textarea {
    width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(15,31,51,.14);
    background: rgba(255,255,255,.85); color: var(--ink); font: 500 16px/1.4 inherit; font-family: inherit; box-shadow: none;
}
.tlp textarea { resize: vertical; min-height: 110px; }
.tlp input:focus, .tlp select:focus, .tlp textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(37,99,235,.15); background: #fff; }
.tlp-check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.tlp-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.tlp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tlp-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }

/* Testi di servizio */
.tlp-eyebrow { color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.tlp-lead { font-size: 17px; color: var(--muted); }
.tlp-muted { color: var(--muted); }
.tlp-small { font-size: 13px; color: var(--muted); }
.tlp-notice { display: flex; align-items: center; gap: 10px; padding: 14px 18px; font-weight: 600; }
.tlp-notice i { font-size: 22px; }
.tlp-notice.is-ok { color: var(--ok); background: rgba(220,252,231,.75); }
.tlp-notice.is-warn { color: var(--warn); background: rgba(254,243,199,.8); }
.tlp-notice.is-info { color: var(--navy); }

/* Chip di stato */
.tlp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; background: #eef2f7; color: var(--muted); }
.tlp-chip.is-ok, .tlp-st-answered { background: var(--ok-bg); color: var(--ok); }
.tlp-chip.is-warn, .tlp-st-waiting { background: var(--warn-bg); color: var(--warn); }
.tlp-chip.is-danger { background: var(--danger-bg); color: var(--danger); }
.tlp-st-open { background: #dbeafe; color: #1d4ed8; }
.tlp-chip.is-soft { background: rgba(255,255,255,.85); color: var(--navy); border: 1px solid var(--line); }
.tlp-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Accesso */
.tlp-login { max-width: 460px; width: 100%; margin: 40px auto; padding: 32px; display: grid; gap: 16px; }
.tlp-login #loginform { display: grid; gap: 12px; margin: 0; }
.tlp-login #loginform p { margin: 0; display: grid; gap: 6px; }
.tlp-login #loginform label { font-weight: 700; color: var(--navy); font-size: 14px; }
.tlp-login .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.tlp-login #wp-submit { width: 100%; min-height: 48px; border: 0; border-radius: 13px; background: linear-gradient(140deg, var(--navy), var(--blue)); color: #fff; font: 700 16px/1 inherit; font-family: inherit; cursor: pointer; box-shadow: 0 10px 22px -10px rgba(37,99,235,.75); }

/* Panoramica */
.tlp-license { padding: 22px; display: grid; gap: 18px; }
.tlp-license__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tlp-key { font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.tlp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tlp-stat { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-line); }
.tlp-stat__label { color: var(--muted); font-size: 13px; font-weight: 700; }
.tlp-stat strong { font-size: 22px; color: var(--navy); font-weight: 800; font-variant-numeric: tabular-nums; }
.tlp-stat__sub { font-size: 13px; color: var(--muted); font-weight: 600; }
.tlp-stat__sub.is-warn { color: var(--warn); }
.tlp-meter { display: block; height: 6px; border-radius: 99px; background: rgba(15,31,51,.08); overflow: hidden; margin-top: 4px; }
.tlp-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #16a34a); }
.tlp-meter.is-warn span { background: linear-gradient(90deg, #fbbf24, #d97706); }
.tlp-meter.is-full span { background: linear-gradient(90deg, #f87171, #dc2626); }
.tlp-sites { display: grid; gap: 8px; }
.tlp-site { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.55); }
.tlp-site i { grid-row: span 2; font-size: 22px; color: var(--blue); }
.tlp-site span { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.tlp-modules-on { display: grid; gap: 10px; justify-items: start; }

.tlp-empty { padding: 40px 24px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.tlp-empty i { font-size: 40px; color: var(--blue); }

/* Moduli e carrello */
.tlp-shop { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.tlp-shop__main { display: grid; gap: 18px; min-width: 0; }
.tlp-shop__intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 20px 22px; }
.tlp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tlp-mod { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 18px; cursor: pointer; transition: transform .15s ease-out, box-shadow .15s, border-color .15s; }
.tlp-mod input { position: absolute; opacity: 0; pointer-events: none; }
.tlp-mod__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(140deg, rgba(37,99,235,.14), rgba(254,193,13,.22)); color: var(--navy); font-size: 24px; }
.tlp-mod__body { display: grid; gap: 6px; align-content: start; }
.tlp-mod__body strong { color: var(--navy); font-size: 16.5px; font-weight: 800; }
.tlp-mod__desc { color: var(--muted); font-size: 14px; line-height: 1.5; }
.tlp-mod__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.tlp-mod__price { font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.tlp-mod__state { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: 13.5px; font-weight: 700; }
@media (hover: hover) { .tlp-mod:not(.is-on):hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 44px -20px rgba(0,46,91,.4); } }
.tlp-mod:has(input:focus-visible) { outline: 3px solid var(--sun); outline-offset: 2px; }
.tlp-mod.is-picked { border-color: var(--blue); background: rgba(255,255,255,.85); box-shadow: 0 0 0 3px rgba(37,99,235,.18), var(--shadow); }
.tlp-mod.is-picked .tlp-mod__state { background: var(--blue); border-color: var(--blue); color: #fff; }
.tlp-mod.is-on { cursor: default; opacity: .78; }
.tlp-mod.is-on .tlp-mod__state { background: var(--ok-bg); border-color: transparent; color: var(--ok); }

.tlp-seats { padding: 20px 22px; display: grid; gap: 16px; }
.tlp-seats__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tlp-stepper { display: grid; grid-template-columns: 46px 1fr 46px; gap: 6px; }
.tlp-stepper button { min-height: 46px; border-radius: 12px; border: 1px solid rgba(15,31,51,.14); background: #fff; color: var(--navy); font-size: 20px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.tlp-stepper input { text-align: center; font-variant-numeric: tabular-nums; }

.tlp-cart { position: sticky; top: 24px; padding: 20px; display: grid; gap: 12px; background: rgba(255,255,255,.72); }
.tlp-cart__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.tlp-cart__lines li { display: flex; justify-content: space-between; gap: 10px; }
.tlp-cart__lines li span:last-child { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tlp-cart__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); }
.tlp-cart__total span { font-weight: 700; color: var(--navy); }
.tlp-cart__total strong { font-size: 28px; color: var(--navy); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Assistenza */
.tlp-help { display: grid; gap: 18px; }
.tlp-new, .tlp-tickets, .tlp-thread { padding: 22px; display: grid; gap: 14px; }
.tlp-new form { display: grid; gap: 14px; }
.tlp-tickets__head, .tlp-thread__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tlp-tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tlp-tlist a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.6); border: 1px solid var(--glass-line); text-decoration: none; color: var(--ink); transition: background .15s; }
@media (hover: hover) { .tlp-tlist a:hover { background: #fff; } }
.tlp-tlist__main { display: grid; gap: 2px; min-width: 0; }
.tlp-tlist__main strong { color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlp-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; justify-self: start; }
.tlp-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tlp-msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; display: grid; gap: 4px; }
.tlp-msg.is-me { justify-self: end; background: linear-gradient(140deg, rgba(37,99,235,.12), rgba(37,99,235,.06)); border: 1px solid rgba(37,99,235,.18); border-bottom-right-radius: 6px; }
.tlp-msg.is-staff { justify-self: start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.tlp-msg__meta { font-size: 12.5px; color: var(--muted); }
.tlp-msg__body { overflow-wrap: anywhere; }
.tlp-reply { display: grid; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.tlp-close { justify-self: start; }

/* Telefono */
@media (max-width: 900px) {
    .tlp-shop { grid-template-columns: 1fr; }
    .tlp-cart { position: sticky; top: auto; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 5; }
}
@media (max-width: 600px) {
    .tlp h1 { font-size: 22px; }
    .tlp-me__name { display: none; }
    .tlp-license, .tlp-new, .tlp-tickets, .tlp-thread, .tlp-seats, .tlp-shop__intro { padding: 16px; }
    .tlp-msg { max-width: 94%; }
    .tlp-login { margin: 16px auto; padding: 22px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .tlp .glass { background: rgba(255, 255, 255, .92); }
}

/* Scheda del modulo: «Scopri di più» e finestra in vetro */
.tlp-mod__more { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.75); color: var(--blue); font: 700 13.5px/1 inherit; font-family: inherit; cursor: pointer; position: relative; z-index: 1; touch-action: manipulation; }
@media (hover: hover) { .tlp-mod__more:hover { background: #fff; border-color: rgba(37,99,235,.35); } }
.tlp-mod { grid-template-rows: auto 1fr auto auto; }

.tlp-modal { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 26px; background: transparent; color: var(--ink); overflow: visible; font: 400 15.5px/1.6 "Plus Jakarta Sans", Inter, "Segoe UI", system-ui, sans-serif; }
.tlp-modal::backdrop { background: rgba(10, 30, 60, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tlp-modal__box { position: relative; display: grid; grid-template-rows: 1fr auto; max-height: calc(100dvh - 32px); border-radius: 26px; overflow: hidden;
    background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
    border: 1px solid rgba(255,255,255,.9); box-shadow: 0 40px 80px -30px rgba(0,46,91,.55), 0 1px 0 rgba(255,255,255,.9) inset; }
.tlp-modal__content { overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.tlp-modal__media { background: linear-gradient(150deg, #dbe8ff, #fff4cf); display: flex; align-items: center; justify-content: center; padding: 22px; min-height: 260px; min-width: 0; }
.tlp-modal__media img { display: block; width: 100%; max-width: 100%; height: auto; max-height: 60vh; object-fit: contain; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(0,46,91,.45); background: #fff; }
.tlp-modal__art { display: grid; place-items: center; width: 132px; height: 132px; border-radius: 36px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 24px 50px -24px rgba(0,46,91,.5); color: var(--navy); font-size: 64px; }
.tlp-modal__text { padding: 28px 30px 20px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.tlp-modal__text h2 { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -.02em; margin: 0; }
.tlp-modal__text h3 { font-size: 15px; font-weight: 800; color: var(--navy); margin: 8px 0 0; }
.tlp-modal__text p { margin: 0; color: #334155; }
.tlp-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tlp-ticks li { position: relative; padding-left: 28px; color: #334155; }
.tlp-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L21 7.5l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat, linear-gradient(140deg, #002E5B, #2563eb); }
.tlp-modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(255,255,255,.7); }
.tlp-modal__price { font-weight: 800; color: var(--navy); font-size: 18px; font-variant-numeric: tabular-nums; }
.tlp-modal__price small { color: var(--muted); font-weight: 600; font-size: 13px; }
.tlp-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.95); background: rgba(255,255,255,.85); color: var(--navy); font-size: 20px; cursor: pointer; box-shadow: 0 8px 18px -10px rgba(0,46,91,.5); }
.tlp-modal .tlp-btn { font-family: inherit; }
.tlp-modal .tlp-btn.is-remove { background: #fff; color: var(--navy) !important; border-color: var(--line); box-shadow: none; }
.tlp-modal .tlp-btn.is-on { background: var(--ok-bg); color: var(--ok) !important; box-shadow: none; cursor: default; }
@media (prefers-reduced-motion: no-preference) {
    .tlp-modal[open] .tlp-modal__box { animation: tlp-pop .22s cubic-bezier(.2, .9, .3, 1.2); }
    @keyframes tlp-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
}
@media (max-width: 760px) {
    .tlp-modal { width: 100%; max-width: 100%; max-height: 100dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
    .tlp-modal__box { max-height: 92dvh; border-radius: 22px 22px 0 0; }
    .tlp-modal__content { grid-template-columns: minmax(0, 1fr); align-content: start; }
    .tlp-modal__media img { max-height: 38vh; object-fit: contain; }
    .tlp-modal__media { min-height: 180px; padding: 16px; }
    .tlp-modal__text { padding: 20px 18px 14px; }
    .tlp-modal__foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Applicazione a tutta pagina (pagina «Area clienti» senza il tema) ── */
.tlp-body { margin: 0; background: #eef3fb; -webkit-tap-highlight-color: transparent; }
.tlp-gate { display: grid; place-items: center; padding: 24px 16px; }
.tlp-app { display: grid; grid-template-columns: 276px minmax(0, 1fr); gap: 0; align-items: start; }
.tlp-side { position: sticky; top: 16px; margin: 16px 0 16px 16px; height: calc(100vh - 32px); height: calc(100dvh - 32px); display: flex; flex-direction: column; gap: 22px; padding: 18px 14px; }
.tlp-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px; text-decoration: none; }
.tlp-brand strong { display: block; color: var(--navy); font-size: 17px; font-weight: 800; line-height: 1.1; }
.tlp-brand small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tlp-sidenav { display: grid; gap: 4px; }
.tlp-sidenav__item { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: 14px; color: var(--muted); font-weight: 700; text-decoration: none; transition: background .15s, color .15s; }
.tlp-sidenav__item i { font-size: 21px; }
.tlp-sidenav__item.is-current { background: #fff; color: var(--navy); box-shadow: 0 8px 20px -12px rgba(0, 46, 91, .45); }
.tlp-sidenav__item.is-current i { color: var(--blue); }
.tlp-sidenav__item .tlp-badge { margin-left: auto; }
.tlp-sidenav__item--muted { font-weight: 600; }
@media (hover: hover) { .tlp-sidenav__item:not(.is-current):hover { background: rgba(255,255,255,.6); color: var(--navy); } }
.tlp-side__foot { margin-top: auto; display: grid; gap: 10px; }
.tlp-usercard { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.72); border: 1px solid var(--glass-line); min-width: 0; }
.tlp-usercard__who { display: grid; min-width: 0; }
.tlp-usercard__who strong, .tlp-usercard__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlp-usercard__who strong { color: var(--navy); font-size: 14px; }
.tlp-usercard__who small { color: var(--muted); font-size: 12px; }
.tlp-iconbtn { display: grid; place-items: center; flex: none; width: 38px; height: 38px; margin-left: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy) !important; font-size: 18px; text-decoration: none; }
@media (hover: hover) { .tlp-iconbtn:hover { border-color: rgba(37,99,235,.4); color: var(--blue) !important; } }
.tlp-main { width: 100%; max-width: 1240px; min-width: 0; padding: 38px 40px 64px; display: grid; gap: 20px; align-content: start; }
.tlp-hello { display: grid; gap: 6px; padding: 4px 2px 6px; }
.tlp-hello h1 { font-size: 36px; font-weight: 800; letter-spacing: -.03em; }
.tlp-hello p { color: var(--muted); font-size: 16.5px; max-width: 62ch; }
.tlp-notice span strong { font-weight: 800; }
.tlp-mobilebar, .tlp-bottomnav { display: none; }

@media (max-width: 900px) {
    .tlp-app { grid-template-columns: 1fr; }
    .tlp-side { display: none; }
    .tlp-mobilebar { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 20; margin: 0; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; border-radius: 0 0 20px 20px; border-top: 0; }
    .tlp-mobilebar .tlp-iconbtn { margin-left: 0; }
    .tlp-main { padding: 22px 16px calc(112px + env(safe-area-inset-bottom, 0px)); gap: 16px; }
    .tlp-hello h1 { font-size: 27px; }
    .tlp-hello p { font-size: 15px; }
    .tlp-bottomnav { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30; padding: 6px; gap: 4px; border-radius: 22px; }
    .tlp-bottomnav__item { position: relative; flex: 1; display: grid; justify-items: center; gap: 2px; padding: 7px 4px 6px; border-radius: 16px; color: var(--muted); font-size: 11.5px; font-weight: 700; text-decoration: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
    .tlp-bottomnav__item i { font-size: 23px; }
    .tlp-bottomnav__item.is-current { background: #fff; color: var(--navy); box-shadow: 0 6px 16px -10px rgba(0,46,91,.5); }
    .tlp-bottomnav__item.is-current i { color: var(--blue); }
    .tlp-bottomnav__item .tlp-badge { position: absolute; top: 3px; right: calc(50% - 26px); min-width: 18px; height: 18px; font-size: 11px; }
}

/* ── Stile professionale: palette sobria, barra laterale blu notte, schede nitide ── */
.tlp {
    --navy: #0b2545; --navy-2: #13325c; --blue: #1d4ed8; --ink: #0f172a; --muted: #64748b; --line: #e5e9f0;
    --glass: rgba(255, 255, 255, .88); --glass-strong: #fff; --glass-line: #e6ebf2; --r: 16px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -20px rgba(15, 23, 42, .28);
    background: #f4f6fa; font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 15px;
}
.tlp-body { background: #f4f6fa; }
.tlp-blob { opacity: .16 !important; filter: blur(110px); }
.tlp-blob--c { display: none; }
.tlp .glass { -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); }
.tlp h1, .tlp h2, .tlp h3 { letter-spacing: -.015em; }
.tlp-hello h1 { font-size: 30px; font-weight: 700; }
.tlp-hello p { font-size: 15.5px; }

/* Barra laterale */
.tlp .tlp-side.glass { background: linear-gradient(180deg, #0b2545 0%, #0e2f57 100%); border: 1px solid rgba(255,255,255,.06); box-shadow: 0 24px 60px -30px rgba(11, 37, 69, .75); -webkit-backdrop-filter: none; backdrop-filter: none; }
.tlp-side .tlp-brand strong { color: #fff; }
.tlp-side .tlp-brand small { color: #93a8c6; }
.tlp-side .tlp-mark { background: #fff; color: var(--navy); box-shadow: none; }
.tlp-side .tlp-mark::after { border-color: #0b2545; }
.tlp .tlp-sidenav__item { color: #b4c4da; font-weight: 600; min-height: 44px; border-radius: 10px; }
.tlp .tlp-sidenav__item i { color: #8ea4c3; }
@media (hover: hover) { .tlp .tlp-sidenav__item:not(.is-current):hover { background: rgba(255,255,255,.06); color: #fff; } }
.tlp .tlp-sidenav__item.is-current { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 #FEC10D; }
.tlp .tlp-sidenav__item.is-current i { color: #fff; }
.tlp-side .tlp-badge { background: #FEC10D; color: #0b2545; }
.tlp-side .tlp-usercard { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.08); }
.tlp-side .tlp-usercard__who strong { color: #fff; }
.tlp-side .tlp-usercard__who small { color: #93a8c6; }
.tlp-side .tlp-avatar { background: rgba(255,255,255,.12); color: #fff; border-color: transparent; }
.tlp-side .tlp-iconbtn { background: rgba(255,255,255,.08); border-color: transparent; color: #dbe5f2 !important; }
@media (hover: hover) { .tlp-side .tlp-iconbtn:hover { background: rgba(255,255,255,.16); color: #fff !important; } }

/* Schede e controlli */
.tlp .glass:not(.tlp-side):not(.tlp-bottomnav):not(.tlp-mobilebar) { background: #fff; border-color: var(--glass-line); box-shadow: var(--shadow); -webkit-backdrop-filter: none; backdrop-filter: none; }
.tlp-license, .tlp-new, .tlp-tickets, .tlp-thread, .tlp-seats, .tlp-shop__intro { padding: 24px; }
.tlp-stat { background: #f8fafc; border-color: #eef1f6; border-radius: 12px; }
.tlp-stat strong { font-size: 24px; font-weight: 700; }
.tlp-site { background: #f8fafc; border: 1px solid #eef1f6; border-radius: 12px; }
.tlp-chip.is-soft { background: #f1f5f9; border-color: transparent; color: #334155; font-weight: 600; }
.tlp-btn { border-radius: 10px; font-weight: 600; }
.tlp-btn--primary, .tlp-login #wp-submit { background: var(--navy); box-shadow: 0 1px 2px rgba(11,37,69,.2); }
@media (hover: hover) { .tlp-btn--primary:not(:disabled):hover, .tlp-login #wp-submit:hover { background: var(--navy-2); filter: none; } }
.tlp-btn--ghost { background: #fff; }
.tlp-mod { border-radius: 14px; }
.tlp-mod__icon { background: #eef2ff; color: var(--blue); border-radius: 12px; }
.tlp-mod.is-picked { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,.12), var(--shadow); }
@media (hover: hover) { .tlp-mod:not(.is-on):hover { transform: translateY(-1px); } }
.tlp-cart { background: #fff; }
.tlp-cart__total strong { font-size: 26px; font-weight: 700; }
.tlp input[type="text"], .tlp input[type="email"], .tlp input[type="password"], .tlp input[type="number"], .tlp select, .tlp textarea { border-radius: 10px; background: #fff; border-color: #dbe2ea; }
.tlp-notice { border-radius: 12px; }
.tlp-modal { font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.tlp-ticks li::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L21 7.5l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat, #1d4ed8; }

/* Telefono */
@media (max-width: 900px) {
    .tlp .tlp-mobilebar.glass { background: #0b2545; border: 0; box-shadow: 0 10px 30px -20px rgba(11,37,69,.8); }
    .tlp-mobilebar .tlp-brand strong { color: #fff; }
    .tlp-mobilebar .tlp-brand small { color: #93a8c6; }
    .tlp-mobilebar .tlp-mark { background: #fff; color: var(--navy); }
    .tlp-mobilebar .tlp-iconbtn { background: rgba(255,255,255,.1); border-color: transparent; color: #fff !important; }
    .tlp .tlp-bottomnav.glass { background: rgba(255,255,255,.92); border-color: var(--glass-line); }
    .tlp-bottomnav__item.is-current { background: #eef2ff; box-shadow: none; }
}

/* Crediti IA residui (Panoramica) */
.tlp-ai { display: grid; gap: 10px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(135deg, #f5f8ff, #fffaf0); border: 1px solid #e3e9f6; }
.tlp-ai__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tlp-ai__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #eef2ff; color: #1d4ed8; font-size: 22px; flex: none; }
.tlp-ai__left { font-size: 22px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.tlp-ai__left small { font-size: 13px; font-weight: 500; }
.tlp-ai__est { margin-left: auto; padding: 6px 12px; border-radius: 99px; background: #fff; border: 1px solid #e3e9f6; color: var(--muted); font-size: 13px; }
.tlp-ai__est strong { color: var(--navy); }
.tlp-meter--lg { height: 8px; margin: 0; }
.tlp-meter--lg span { background: linear-gradient(90deg, #1d4ed8, #60a5fa); }
@media (max-width: 600px) {
    .tlp-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .tlp-stat { padding: 12px 14px; }
    .tlp-stat strong { font-size: 19px; }
    .tlp-ai__est { margin-left: 0; }
}

/* Allegati dei ticket */
.tlp-files { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tlp-files a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; color: #1d4ed8; font-size: 13px; font-weight: 600; text-decoration: none; }
.tlp-files small { color: #64748b; font-weight: 500; }
.tlp input[type="file"] { font: inherit; font-size: 14px; padding: 8px; border: 1px dashed #cbd5e1; border-radius: 10px; background: #f8fafc; }

/* Ordini */
.tlp-orders { padding: 8px 8px 16px; display: grid; gap: 10px; }
.tlp-table-wrap { overflow-x: auto; }
.tlp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tlp-table th { text-align: left; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tlp-table td { padding: 14px; border-bottom: 1px solid #f1f4f8; vertical-align: middle; }
.tlp-table .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tlp-table tr:last-child td { border-bottom: 0; }
.tlp-orders .tlp-small { padding: 0 14px; }
.tlp-empty-inline { display: flex; align-items: center; gap: 12px; padding: 18px; color: var(--muted); }
.tlp-empty-inline i { font-size: 28px; color: var(--blue); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Rinnovo, ricarica, pagamento */
.tlp-inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tlp-inline-form select { width: auto; min-height: 36px; padding: 4px 10px; font-size: 14px; }
.tlp-row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.tlp-row-actions form { margin: 0; }
