/* HubHero.it - foglio di stile
   Contrasti verificati WCAG 2.1 AA (testo ≥ 4,5:1, componenti ≥ 3:1). Nessuna dipendenza esterna. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0B1324;
  --ink-2: #26324A;
  --muted: #5B6778;
  --line: #E3E8F0;
  --line-2: #D3DAE6;
  --field: #7C8799;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FB;
  --bg-tint: #EEF3FF;
  --navy: #0A1530;
  --navy-2: #0F1F45;
  --on-navy: #C9D4F2;
  --on-navy-2: #AFC0E8;
  --brand: #1F4FE0;
  --brand-600: #1A44C4;
  --brand-700: #1739B0;
  --accent: #FFB020;
  --accent-600: #F59E0B;
  --ok: #166534; --ok-bg: #DCFCE7;
  --warn: #92400E; --warn-bg: #FEF3C7;
  --danger: #B91C1C; --danger-2: #991B1B; --danger-bg: #FEE2E2;
  --info: #1E3A8A; --info-bg: #DBEAFE;
  --c-teal: #0F766E; --c-orange: #C2410C; --c-green: #15803D; --c-violet: #6D28D9; --c-amber: #B45309; --c-sky: #0369A1; --c-rose: #BE185D; --c-indigo: #4338CA; --c-lime: #4D7C0F; --c-slate: #334155; --c-blue: #1D4ED8;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 19, 36, .06), 0 1px 3px rgba(11, 19, 36, .06);
  --shadow: 0 10px 30px -12px rgba(11, 19, 36, .18), 0 2px 6px rgba(11, 19, 36, .05);
  --shadow-lg: 0 40px 80px -30px rgba(10, 21, 48, .45), 0 10px 30px -10px rgba(10, 21, 48, .25);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Jakarta", "Inter", system-ui, sans-serif;
  --container: 1200px;
  --gutter: 20px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.18; letter-spacing: -.012em; word-spacing: .05em; margin: 0 0 .6em; font-weight: 750; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.35rem); font-weight: 800; letter-spacing: -.022em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); }
h3, .h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-700); text-decoration-thickness: 2px; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .92em; background: var(--bg-soft); border: 1px solid var(--line); padding: .05em .4em; border-radius: 6px; }
ul, ol { padding-left: 1.2em; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: #C7D6FF; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.section-dark :focus-visible, .hero :focus-visible, .site-footer :focus-visible, .page-hero :focus-visible, .auth-side :focus-visible { outline-color: var(--accent); }
main:focus { outline: none; }

[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(800px + var(--gutter) * 2); }
.center { text-align: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-line; }
.stack > * + * { margin-top: .75rem; }

.ic { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.25em; }
.ic-sm { width: 1.05em; height: 1.05em; vertical-align: -.18em; }

/* ---------- Pulsanti ---------- */
.btn {
  --b: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.15rem; border-radius: 11px;
  font: 600 .98rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(31, 79, 224, .55); }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-700); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #FFC24D; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(201, 212, 242, .55); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); color: #fff; border-color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-2); color: #fff; }
.btn-choice { background: #fff; color: var(--ink); border-color: var(--ink-2); min-width: 9rem; }
.btn-choice:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-lg { min-height: 52px; padding: .8rem 1.45rem; font-size: 1.04rem; border-radius: 13px; }
.btn-sm { min-height: 38px; padding: .45rem .85rem; font-size: .92rem; }
.btn-block { display: flex; width: 100%; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); }

/* ---------- Intestazione ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--navy); flex: none; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 38px; height: 38px; }
.brand-word { font-family: var(--font-head); font-weight: 800; font-size: 1.42rem; letter-spacing: -.035em; }
.brand-word span { color: var(--brand); }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-word span { color: var(--accent); }
.site-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 1rem; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-link { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: .5rem .85rem; border-radius: 10px; color: var(--ink-2); font: 600 .98rem var(--font); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--bg-soft); color: var(--ink); }
.nav-link.is-active { color: var(--brand-700); }
.nav-link .ic { transition: transform .2s; }
.nav-link[aria-expanded="true"] .ic { transform: rotate(180deg); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.has-panel { position: relative; }
.nav-panel { display: none; position: absolute; top: calc(100% + 10px); left: -12px; width: min(560px, 90vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .6rem; }
.nav-panel.is-open { display: block; }
.nav-products { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.nav-product { display: flex; gap: .85rem; align-items: center; padding: .65rem .7rem; border-radius: 11px; text-decoration: none; color: var(--ink); }
.nav-product:hover { background: var(--bg-soft); color: var(--ink); }
.nav-product strong { display: block; font-size: .98rem; }
.nav-product small { display: block; color: var(--muted); font-size: .86rem; line-height: 1.4; }
.nav-panel-all { display: flex; align-items: center; gap: .4rem; margin: .35rem .5rem .3rem; padding: .6rem .3rem 0; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .8rem; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font: 600 .95rem var(--font); color: var(--ink); cursor: pointer; }

/* ---------- Tessere colorate dei programmi ---------- */
.tile { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #fff; flex: none; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12); }
.tile .ic { width: 22px; height: 22px; }
.tile-sm { width: 32px; height: 32px; border-radius: 9px; vertical-align: middle; }
.tile-sm .ic { width: 17px; height: 17px; }
.tile-teal { background: linear-gradient(145deg, #14958B, var(--c-teal)); }
.tile-orange { background: linear-gradient(145deg, #EA580C, var(--c-orange)); }
.tile-green { background: linear-gradient(145deg, #16A34A, var(--c-green)); }
.tile-violet { background: linear-gradient(145deg, #7C3AED, var(--c-violet)); }
.tile-amber { background: linear-gradient(145deg, #D97706, var(--c-amber)); }
.tile-sky { background: linear-gradient(145deg, #0284C7, var(--c-sky)); }
.tile-rose { background: linear-gradient(145deg, #DB2777, var(--c-rose)); }
.tile-indigo { background: linear-gradient(145deg, #6366F1, var(--c-indigo)); }
.tile-lime { background: linear-gradient(145deg, #5B960B, var(--c-lime)); }
.tile-slate { background: linear-gradient(145deg, #64748B, var(--c-slate)); }
.tile-blue { background: linear-gradient(145deg, #3B6BFF, #1739B0); }

/* ---------- Messaggi ---------- */
.flash-area { padding-top: 1rem; display: grid; gap: .5rem; }
.flash { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1px solid; }
.flash p { margin: 0; }
.flash .ic { margin-top: .15rem; }
.flash-success { background: var(--ok-bg); color: var(--ok); border-color: #A7E3BA; }
.flash-error { background: var(--danger-bg); color: var(--danger-2); border-color: #FCA5A5; }
.flash-info { background: var(--info-bg); color: var(--info); border-color: #BFDBFE; }
.notice { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid; margin-bottom: 1rem; }
.notice > .ic { margin-top: .2rem; width: 1.4em; height: 1.4em; }
.notice p { margin: 0 0 .6rem; }
.notice > div > :last-child { margin-bottom: 0; }
.notice-warn { background: var(--warn-bg); border-color: #FCD34D; color: var(--warn); }
.notice-warn a:not(.btn) { color: var(--warn); }
.notice-info { background: var(--info-bg); border-color: #BFDBFE; color: var(--info); }
.note { color: var(--muted); font-size: .94rem; }
.note-warn { color: var(--warn); }

/* ---------- Hero home ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-navy); padding: clamp(3rem, 2rem + 4vw, 6rem) 0 clamp(3.5rem, 2rem + 5vw, 7rem); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(59, 107, 255, .45), transparent 60%),
    radial-gradient(700px 480px at 10% 110%, rgba(124, 58, 237, .35), transparent 60%),
    radial-gradient(500px 300px at 55% 60%, rgba(255, 176, 32, .12), transparent 60%),
    linear-gradient(180deg, #0A1530 0%, #0B1838 100%);
}
.hero-bg::after { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(201, 212, 242, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 212, 242, .07) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 .hl { background: linear-gradient(90deg, #8FB0FF, #FFC24D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--on-navy); font-size: 1.16rem; max-width: 36rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; font: 700 .8rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-700); margin-bottom: .9rem; }
.eyebrow-light { color: var(--accent); }
.lead { font-size: 1.14rem; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 1.6rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 0; font-size: .95rem; color: var(--on-navy); }
.hero-points .ic { color: #6EE7B7; }
.hero-visual { position: relative; padding-bottom: 2.5rem; }
.frame { margin: 0; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(11, 19, 36, .08); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #F1F4F9; border-bottom: 1px solid var(--line); }
.frame-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D5DBE6; }
.frame-bar span:nth-child(1) { background: #FF6159; } .frame-bar span:nth-child(2) { background: #FFBD2E; } .frame-bar span:nth-child(3) { background: #28C941; }
.frame-bar em { margin-left: .6rem; font: 600 .75rem var(--font); font-style: normal; color: var(--muted); }
.frame-hero { transform: perspective(1800px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.phone { margin: 0; position: relative; width: 100%; max-width: 280px; border-radius: 38px; background: #0B1324; padding: 10px; box-shadow: var(--shadow-lg); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 18px; margin-left: -35px; border-radius: 12px; background: #0B1324; z-index: 2; }
.phone img, .phone .zoom { border-radius: 29px; overflow: hidden; }
.phone-hero { position: absolute; right: -8px; bottom: -12px; width: 34%; min-width: 150px; max-width: 210px; padding: 7px; border-radius: 30px; }
.phone-hero img { border-radius: 23px; }
.phone-hero::before { top: 13px; width: 50px; height: 13px; margin-left: -25px; }

/* ---------- Striscia normativa ---------- */
.norm-strip { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.norm-strip .container { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 2rem; justify-content: center; }
.norm-strip-title { margin: 0; font-weight: 600; color: var(--muted); font-size: .92rem; }
.norm-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.norm-list li { padding: .3rem .75rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 .86rem var(--font); color: var(--ink-2); }

/* ---------- Sezioni ---------- */
.section { padding: clamp(3.5rem, 2.5rem + 3vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 90% 0%, rgba(59, 107, 255, .35), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(124, 58, 237, .25), transparent 60%); pointer-events: none; }
.section-dark > .container { position: relative; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .lead { color: var(--on-navy); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 3vw, 3rem); }
.section-lead { font-size: 1.1rem; color: var(--muted); margin: 0; }
.center-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 2.5rem; }

/* ---------- Schede programmi ---------- */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; }
.product-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.product-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent-c, var(--brand)); }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-2); }
.accent-teal { --accent-c: var(--c-teal); } .accent-orange { --accent-c: var(--c-orange); } .accent-green { --accent-c: var(--c-green); } .accent-violet { --accent-c: var(--c-violet); } .accent-amber { --accent-c: var(--c-amber); } .accent-sky { --accent-c: var(--c-sky); } .accent-rose { --accent-c: var(--c-rose); } .accent-indigo { --accent-c: var(--c-indigo); } .accent-lime { --accent-c: var(--c-lime); } .accent-slate { --accent-c: var(--c-slate); } .accent-blue { --accent-c: var(--c-blue); }
.product-card-body { padding: 1.5rem 1.5rem 1rem; }
.product-card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; }
.product-card h3 { margin: 0; font-size: 1.22rem; }
.product-card h3 a { color: var(--ink); text-decoration: none; }
.product-card > .product-card-body > p { color: var(--muted); font-size: .98rem; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card-shot { margin: 0 1.5rem; border-radius: 12px 12px 0 0; overflow: hidden; border: 1px solid var(--line); border-bottom: 0; background: var(--bg-soft); aspect-ratio: 16 / 8.2; }
.product-card-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.product-card-help { display: flex; flex-direction: column; justify-content: center; gap: .6rem; padding: 2rem; border-radius: var(--radius-lg); border: 1.5px dashed var(--line-2); background: linear-gradient(160deg, var(--bg-tint), #fff 70%); }
.product-card-help h3 { margin: .4rem 0 0; font-size: 1.3rem; }
.product-card-help p { margin: 0 0 .6rem; color: var(--muted); }
.product-card-help .btn { align-self: flex-start; }
@media (min-width: 1060px) {
  .product-card-help.is-wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 1.4rem; row-gap: .2rem; padding: 1.6rem 2rem; }
  .product-card-help.is-wide .feature-icon { grid-row: 1 / span 2; }
  .product-card-help.is-wide h3 { margin: 0; grid-column: 2; }
  .product-card-help.is-wide p { margin: 0; grid-column: 2; }
  .product-card-help.is-wide .btn { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}
.product-card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding: 1rem 1.5rem 1.3rem; border-top: 1px solid var(--line); background: #fff; position: relative; z-index: 2; }
.product-card-actions { display: flex; gap: .5rem; }
.price-from { margin: 0; color: var(--muted); font-size: .9rem; }
.price-from strong { color: var(--ink); font-size: 1.28rem; font-family: var(--font-head); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.checks li { display: flex; gap: .55rem; align-items: flex-start; }
.checks .ic { color: var(--c-green); margin-top: .22rem; }
.checks-light .ic { color: #6EE7B7; }

/* ---------- Funzioni home ---------- */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.feature h3 { margin: .9rem 0 .4rem; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-tint); color: var(--brand-700); flex: none; }
.feature-icon .ic { width: 22px; height: 22px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: s; }
.step { position: relative; padding: 1.6rem; border-radius: var(--radius); background: linear-gradient(180deg, #fff, var(--bg-soft)); border: 1px solid var(--line); }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font: 800 1.1rem var(--font-head); margin-bottom: 1rem; box-shadow: 0 0 0 6px var(--bg-tint); }
.step h3 { margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; color: var(--on-navy); font-size: 1.08rem; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Testate pagine interne ---------- */
.page-hero { background: var(--navy); color: var(--on-navy); padding: 2.2rem 0 3rem; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 85% 0%, rgba(59, 107, 255, .4), transparent 60%); pointer-events: none; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero .lead { color: var(--on-navy); margin: 0; max-width: 46rem; }
.page-hero-sm h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); }
.breadcrumb { padding: 1rem 0 .4rem; font-size: .9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .3rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink-2); font-weight: 600; }
.breadcrumb-light { padding: 0 0 1.2rem; }
.breadcrumb-light a, .breadcrumb-light li + li::before { color: var(--on-navy-2); }
.breadcrumb-light [aria-current] { color: #fff; }

/* ---------- Pagina programma ---------- */
.p-hero { --tint: var(--bg-tint); background: linear-gradient(180deg, var(--tint) 0%, #fff 78%); padding: 1rem 0 0; }
.theme-teal { --tint: #E6F6F4; } .theme-orange { --tint: #FFF1E8; } .theme-green { --tint: #E8F7EE; } .theme-violet { --tint: #F1EBFE; } .theme-amber { --tint: #FFF4E0; } .theme-sky { --tint: #E4F2FB; } .theme-rose { --tint: #FCE9F1; } .theme-indigo { --tint: #EBEAFD; } .theme-lime { --tint: #EEF6DF; } .theme-slate { --tint: #EEF1F5; } .theme-blue { --tint: #E8EEFF; }
.p-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; padding: 1.4rem var(--gutter) 2.5rem; }
.p-hero .eyebrow { color: var(--ink-2); }
.p-hero .lead { font-size: 1.22rem; color: var(--ink); font-weight: 500; }
.chips-label { margin: 1.4rem 0 .5rem; font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0; padding: 0; }
.chips li { background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: .3rem .8rem; font-size: .9rem; font-weight: 500; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 1.5rem; position: sticky; top: 92px; }
.price-card-title { font-size: 1.1rem; margin-bottom: .9rem; }
.plan-list { list-style: none; margin: 0 0 1.1rem; padding: 0; display: grid; gap: .6rem; }
.plan { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.plan-name { margin: 0; font-weight: 700; }
.plan-desc { margin: .1rem 0 0; color: var(--muted); font-size: .88rem; }
.plan-price { margin: 0; text-align: right; line-height: 1.15; }
.plan-price strong { display: block; font: 800 1.7rem var(--font-head); letter-spacing: -.02em; }
.plan-price span { color: var(--muted); font-size: .85rem; }
.price-notes { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; gap: .45rem; color: var(--ink-2); font-size: .92rem; }
.price-notes .ic { color: var(--brand); }
.frame-wide { position: relative; }
.p-hero { padding-bottom: 3rem; }
.subnav { position: sticky; top: 72px; z-index: 40; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.subnav ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: .5rem 0; overflow-x: auto; scrollbar-width: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: .4rem .85rem; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: .94rem; text-decoration: none; white-space: nowrap; }
.subnav a:hover { background: var(--bg-soft); color: var(--ink); }
.subnav .subnav-cta { background: var(--brand); color: #fff; margin-left: auto; }
.subnav .subnav-cta:hover { background: var(--brand-700); color: #fff; }
.subnav li:last-child { margin-left: auto; }

.feature-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; padding: clamp(1.5rem, 3vw, 2.8rem) 0; }
.feature-row + .feature-row { border-top: 1px dashed var(--line-2); }
.feature-row.is-reverse .feature-row-text { order: 2; }
.feature-row h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem); }
.feature-row p { color: var(--ink-2); font-size: 1.04rem; }
.feature-row-media { display: flex; justify-content: center; }
.feature-row-media .frame { width: 100%; }
.feature-row-media .phone { max-width: 270px; }
.paper { margin: 0; background: #fff; padding: 10px; border-radius: 6px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); max-width: 460px; width: 100%; transform: rotate(-.6deg); }
.paper img { border: 1px solid var(--line); }
.paper figcaption { text-align: center; font-weight: 600; font-size: .92rem; padding: .7rem 0 .2rem; color: var(--ink-2); }
.zoom { position: relative; display: block; color: inherit; }
.zoom img { width: 100%; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: .3rem; background: rgba(10, 21, 48, .86); color: #fff; font-size: .8rem; font-weight: 600; padding: .3rem .6rem; border-radius: 8px; opacity: 0; transition: opacity .2s; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; }
.mobile-band { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 3rem; align-items: center; }
.phone-dark { max-width: 260px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(201, 212, 242, .2); }
.doc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.doc-grid .paper { transform: none; }
.doc-grid li:nth-child(2) .paper { transform: rotate(.5deg); }
.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
.spec-list { margin: 0; display: grid; gap: 0; }
.spec-list > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-weight: 700; color: var(--ink); }
.spec-list dd { margin: 0; color: var(--ink-2); }
.spec-list-compact > div { padding: .55rem 0; grid-template-columns: minmax(110px, 40%) 1fr; }
.spec-list .total dt, .spec-list .total dd { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.norm-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.norm-cards li { display: grid; gap: .15rem; padding: .95rem 1.1rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; }
.norm-cards span { color: var(--muted); font-size: .95rem; }
.faq { display: grid; gap: .7rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-700); }
.faq-ic { transition: transform .2s; color: var(--muted); }
.faq details[open] .faq-ic { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--ink-2); }
.mini-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.mini-card { position: relative; display: flex; align-items: center; gap: .9rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.mini-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.mini-card h3 { font-size: 1.02rem; margin: 0 0 .15rem; }
.mini-card h3 a { color: var(--ink); text-decoration: none; }
.mini-card p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.mini-arrow { margin-left: auto; color: var(--muted); }

/* ---------- Tabelle ---------- */
.table-wrap { position: relative; overflow-x: auto; border-radius: var(--radius-sm); }
.table-wrap:focus-visible { outline-offset: 4px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .75rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-soft); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table tbody th { font-weight: 650; }
.table .num { text-align: right; }
.table-compare { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.table-compare tbody tr:hover { background: #FAFBFD; }

/* ---------- Pagine testuali ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose li + li { margin-top: .35rem; }
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 3rem; align-items: start; }
.legal-grid > * { min-width: 0; }
.toc { position: sticky; top: 96px; padding: 1.2rem; background: var(--bg-soft); border-radius: var(--radius); border: 1px solid var(--line); }
.toc-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.1rem; font-size: .93rem; display: grid; gap: .3rem; }
.legal .updated { display: inline-block; padding: .3rem .7rem; border-radius: 8px; background: var(--bg-soft); color: var(--muted); font-size: .9rem; }
.legal .table { margin: 1rem 0 1.4rem; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 3rem; align-items: start; }
.about-values { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1rem; }
.about-values li { display: flex; gap: .9rem; align-items: flex-start; }
.about-values .ic { width: 42px; height: 42px; padding: 10px; border-radius: 11px; background: var(--bg-tint); color: var(--brand-700); }
.about-values strong { display: block; }
.company-card h2 { margin-bottom: .6rem; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem; align-items: start; }
.contact-cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.contact-card { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.contact-card:hover { border-color: var(--brand); color: var(--ink); }
.contact-card strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.big-code { font: 800 6rem/1 var(--font-head); color: var(--brand-700); margin: 0; letter-spacing: -.04em; }

/* ---------- Card e moduli ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 2.5vw, 1.6rem); box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 1.2rem; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.card-head h2 { font-size: 1.2rem; margin: 0; display: flex; align-items: center; gap: .6rem; }
.card-muted { background: var(--bg-soft); box-shadow: none; }
.card-danger { border-color: #FCA5A5; }
.card-highlight { border-color: var(--brand); box-shadow: 0 0 0 3px var(--bg-tint); }
.form .field { margin-bottom: 1.1rem; }
.field { min-width: 0; }
.field label, .field legend { display: block; font-weight: 650; margin-bottom: .35rem; color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { font-size: 1.02rem; margin-bottom: .6rem; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.label-row a { font-size: .9rem; }
.optional { font-weight: 400; color: var(--muted); font-size: .9em; }
.req { color: var(--danger); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=search], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 46px; padding: .6rem .8rem; font: 400 1rem/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1.5px solid var(--field); border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235B6778' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31, 79, 224, .25); }
input[aria-invalid=true], select[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--danger); }
input[type=file] { font: inherit; }
.hint { margin: .35rem 0 0; font-size: .88rem; color: var(--muted); }
.field-error { display: flex; gap: .35rem; align-items: flex-start; margin: .4rem 0 0; color: var(--danger); font-size: .92rem; font-weight: 600; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; align-items: start; }
.field-check label { font-weight: 500; margin: 0; }
.field-check .field-error { grid-column: 1 / -1; }
.field-check > .hint { grid-column: 2; margin-top: 0; }
.field-check input, .switch input { width: 22px; height: 22px; margin: .1rem 0 0; accent-color: var(--brand); }
.form-note { font-size: .92rem; color: var(--muted); }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .5rem; }
.form-inline { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.form-inline .field { flex: 1 1 260px; margin: 0; }
.inline-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.1rem; }
.grid-top { align-items: start; gap: 1.2rem; }
.grid-top > .card + .card { margin-top: 0; }
.span-2 { grid-column: span 2; }
.grid-addr { display: grid; grid-template-columns: 3fr 1fr 1fr; gap: 0 1.1rem; }
.grid-addr .field:nth-child(4) { grid-column: 1 / 2; }
.grid-plan { display: grid; grid-template-columns: 2fr 1fr 1fr .7fr; gap: 0 1rem; }
.check-row { display: flex; flex-wrap: wrap; gap: 0 2rem; }
.plan-edit { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem .2rem; margin: 0 0 1rem; }
.plan-edit legend { padding: 0 .4rem; font-weight: 700; }
.error-summary { border: 2px solid var(--danger); border-radius: var(--radius-sm); padding: 1rem 1.2rem; margin-bottom: 1.3rem; background: #FFF7F7; }
.error-summary:focus { outline: 3px solid var(--danger); outline-offset: 2px; }
.error-summary-title { font-size: 1.05rem; color: var(--danger-2); margin-bottom: .4rem; display: flex; gap: .4rem; align-items: center; }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--danger-2); font-weight: 600; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 6.5rem; }
.pw-toggle { position: absolute; right: 5px; top: 5px; bottom: 5px; display: inline-flex; align-items: center; gap: .3rem; padding: 0 .7rem; border: 0; border-radius: 8px; background: var(--bg-soft); color: var(--ink-2); font: 600 .88rem var(--font); cursor: pointer; }
.pw-toggle:hover { background: var(--line); }
.radio-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.radio-card { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; font-weight: 600; margin: 0 !important; }
.radio-card:hover { border-color: var(--ink-2); }
.radio-card input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--bg-tint); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Accesso e registrazione ---------- */
.auth-wrap { display: grid; place-items: center; padding: clamp(2rem, 5vw, 4.5rem) var(--gutter); min-height: 60vh; background: radial-gradient(800px 400px at 50% -10%, var(--bg-tint), transparent 70%); }
.auth-card { width: 100%; max-width: 480px; padding: clamp(1.4rem, 4vw, 2.3rem); box-shadow: var(--shadow); }
.auth-card h1 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); }
.auth-alt { text-align: center; margin: 1.3rem 0 0; color: var(--muted); }
.auth-wrap-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 0; max-width: 1040px; margin: 0 auto; align-items: stretch; place-items: stretch; background: none; }
.auth-wrap-wide .auth-card { max-width: none; border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.auth-side { background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg) 0 0 var(--radius-lg); padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 100% 0%, rgba(59, 107, 255, .45), transparent 60%); }
.auth-side > * { position: relative; }
.auth-side-title { font: 800 1.7rem/1.2 var(--font-head); color: #fff; margin-bottom: 1.4rem; letter-spacing: -.02em; }

/* ---------- Area clienti e pannello ---------- */
.account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; padding-top: 2rem; padding-bottom: 4rem; align-items: start; }
.account-main > h1 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: 1rem; }
.account-side { position: sticky; top: 92px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: .8rem; }
.account-user { display: flex; gap: .7rem; align-items: center; padding: .3rem .3rem .9rem; border-bottom: 1px solid var(--line); min-width: 0; }
.account-user div { min-width: 0; }
.account-user strong { display: block; font-size: .95rem; }
.account-user small { display: block; color: var(--muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .9rem; flex: none; }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.side-nav a { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .5rem .75rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .96rem; }
.side-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.side-nav a.is-active { background: var(--bg-tint); color: var(--brand-700); }
.side-nav .count { margin-left: auto; min-width: 24px; height: 24px; padding: 0 .4rem; border-radius: 12px; background: var(--brand); color: #fff; font-size: .78rem; display: inline-grid; place-items: center; }
.admin-label { margin: 0; padding: .2rem .4rem .7rem; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-grid { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); display: grid; gap: .15rem; }
.stat-label { color: var(--muted); font-size: .88rem; font-weight: 600; }
.stat-value { font: 800 2rem/1.1 var(--font-head); letter-spacing: -.02em; }
.stat-value-sm { font-size: 1.4rem; }
.stat-sub { color: var(--muted); font-size: .88rem; }
.empty { text-align: center; padding: 1.5rem 1rem; color: var(--muted); }
.empty > .ic { width: 40px; height: 40px; color: var(--brand); margin-bottom: .5rem; }
.lic-mini { list-style: none; margin: 0; padding: 0; }
.lic-mini li { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.lic-mini li:last-child { border-bottom: 0; }
.lic-mini-name { flex: 1; min-width: 0; }
.lic-mini-name strong, .lic-mini-name small { display: block; }
.lic-mini-name small { color: var(--muted); }
.lic-list { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.lic-card { margin: 0 !important; }
.lic-head { display: flex; gap: .9rem; align-items: flex-start; }
.lic-head > div { flex: 1; min-width: 0; }
.lic-head h2 { margin: 0 0 .2rem; }
.lic-key { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: center; }
.lic-key code { font-size: 1rem; letter-spacing: .04em; }
.copy-btn { font-size: .88rem; color: var(--brand); }
.lic-dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.1rem 0 .8rem; }
.lic-dates div { background: var(--bg-soft); border-radius: 10px; padding: .7rem .9rem; }
.lic-dates dt { font-size: .82rem; color: var(--muted); font-weight: 600; }
.lic-dates dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.lic-meter { width: 100%; height: 10px; margin-bottom: .9rem; }
.lic-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1.4; white-space: nowrap; border: 1px solid transparent; }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: #A7E3BA; }
.badge-warn { background: var(--warn-bg); color: var(--warn); border-color: #FCD34D; }
.badge-danger { background: var(--danger-bg); color: var(--danger-2); border-color: #FCA5A5; }
.badge-muted { background: #EEF2F7; color: #475569; border-color: var(--line-2); }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.title-row h1 { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.back { margin: 0 0 .6rem; font-size: .94rem; }
.address-block { line-height: 1.7; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 .9rem .5rem; font-size: .94rem; }
.timeline li::before { content: ""; position: absolute; left: -1.43rem; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px #fff; }
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: flex-end; margin-bottom: 1.2rem; }
.filters .field { flex: 1 1 180px; margin: 0; }
.msg.is-read { opacity: .8; }
.pay-box { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.2rem; background: linear-gradient(135deg, var(--navy), #1A2E6B); color: var(--on-navy); }
.pay-box h2 { color: #fff; font-size: 1.25rem; margin-bottom: .4rem; }
.pay-box p { margin: 0; max-width: 60ch; }
.pay-box strong { color: #fff; }
.pay-box a:not(.btn) { color: #fff; }
.pay-box .btn-primary { background: var(--accent); color: var(--navy); box-shadow: none; }
.pay-box .btn-primary:hover { background: #FFC24D; color: var(--navy); }
.pay-box :focus-visible { outline-color: var(--accent); }
.stepper { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.5rem; padding: 0; counter-reset: st; }
.stepper li { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem .35rem .45rem; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-weight: 600; font-size: .9rem; counter-increment: st; }
.stepper li::before { content: counter(st); display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); font-size: .8rem; }
.stepper li.is-done { color: var(--ok); }
.stepper li.is-done::before { content: "✓"; background: var(--ok-bg); border-color: #A7E3BA; }
.stepper li.is-current { background: var(--brand); color: #fff; }
.stepper li.is-current::before { background: #fff; color: var(--brand); border-color: #fff; }

/* ---------- Checkout ---------- */
.checkout { padding-bottom: 4rem; }
.checkout h1 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 1.5rem; align-items: start; }
.checkout-main .card + .card { margin-top: 1.2rem; }
.checkout-side { position: sticky; top: 92px; }
.checkout-prod { display: flex; gap: .9rem; align-items: center; margin-bottom: 1.1rem; }
.checkout-prod h2 { margin: 0; }
.checkout-prod p { margin: 0; font-size: .92rem; }
.plan-radios { display: grid; gap: .6rem; }
.plan-radio { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border: 1.5px solid var(--line-2); border-radius: 12px; cursor: pointer; margin: 0 !important; font-weight: 400 !important; }
.plan-radio input { width: 20px; height: 20px; accent-color: var(--brand); margin: .2rem 0 0; flex: none; }
.plan-radio:has(input:checked) { border-color: var(--brand); background: var(--bg-tint); }
.plan-radio:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.plan-radio-body { display: grid; gap: .1rem; flex: 1; }
.plan-radio-body small { color: var(--muted); }
.plan-radio-price { font: 800 1.25rem var(--font-head); margin-top: .3rem; }
.plan-radio-price small { font: 400 .85rem var(--font); }
.summary h2 { margin-bottom: .6rem; }
.sum-list { margin: 0 0 1.2rem; }
.sum-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.sum-list dt { color: var(--ink-2); }
.sum-list dt small { display: block; color: var(--muted); font-size: .8rem; }
.sum-list dd { margin: 0; font-weight: 600; text-align: right; }
.sum-total dt, .sum-total dd { font-weight: 800 !important; font-size: 1.15rem; color: var(--ink) !important; }
.sum-total { border-bottom: 0 !important; padding-top: .9rem !important; }
.summary-note { margin: .9rem 0 0; font-size: .88rem; color: var(--muted); }
.summary .field-check { margin-bottom: 1rem; }

.form-inline-test { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem; margin: 1rem 0; }
.form-inline-test .field { margin: 0; flex: 1 1 260px; }

.code-block { background: var(--navy); color: #E6ECFA; border-radius: var(--radius-sm); padding: .9rem 1rem; font: .85rem/1.6 Consolas, "SFMono-Regular", Menlo, monospace; overflow-x: auto; white-space: pre; margin: .4rem 0 .6rem; }
.install-steps { padding-left: 1.3rem; margin: .3rem 0 .4rem; display: grid; gap: .35rem; }
.lic-blocked { display: flex; gap: .5rem; align-items: flex-start; margin: .8rem 0 0; padding: .75rem .9rem; border-radius: var(--radius-sm); background: var(--danger-bg); color: var(--danger-2); font-size: .93rem; }
.lic-blocked .ic { margin-top: .25rem; flex: none; }

/* ---------- Prezzi in offerta ---------- */
.badge-offer { background: var(--accent); color: var(--navy); border-color: #E89A0C; text-transform: none; letter-spacing: 0; font-family: var(--font); }
.badge-offer .ic { width: 1em; height: 1em; }
.badge-xs { font-size: .7rem; padding: .05rem .45rem; vertical-align: middle; margin-left: .3rem; }
.price-was { color: var(--muted); font-weight: 500; text-decoration-thickness: 1.5px; }
.price-offer { color: var(--danger-2); }
.product-card-badge { margin-left: auto; align-self: flex-start; }
.product-card.is-offer { border-color: #F2C063; }
.price-from .price-was { font-size: .95rem; margin-right: .15rem; }
.price-from strong.price-offer { color: var(--danger-2); }
.plan.is-offer { border-color: #F2C063; background: #FFF9EC; }
.plan-price-wrap { display: grid; justify-items: end; gap: .25rem; }
.plan-price .price-was { display: inline; font-size: 1rem; }
.plan-offer-until { margin: 0; font-size: .8rem; color: var(--warn); font-weight: 600; }
.plan-radio-offer { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .3rem; }
.plan-radio-offer small { color: var(--warn); font-weight: 600; }
.plan-radio-price .price-was { font: 500 1rem var(--font); }
.offer-link { text-decoration: none; }
.offer-link:hover .badge-offer { background: var(--accent-600); }
.cta-offer { color: var(--accent); }
.offer-edit { border-top: 1px dashed var(--line-2); margin: .4rem 0 .6rem; padding-top: .8rem; }
.offer-edit-title { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-weight: 700; margin: 0 0 .6rem; }
.offer-edit-title .optional { font-weight: 400; }
.sum-list .badge-offer { vertical-align: middle; }

/* ---------- Contratto e firma ---------- */
.checkout-intro { max-width: 75ch; color: var(--ink-2); margin: -.4rem 0 1.4rem; }
.step-badge { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .9rem; font-weight: 800; flex: none; }
.contract-lead { font-size: .93rem; margin: -.3rem 0 .9rem; }
.contract-scroll { max-height: 440px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .4rem 1.2rem 1rem; background: var(--bg-soft); font-size: .93rem; line-height: 1.6; }
.contract-scroll:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.contract .contract-title { font-size: 1.2rem; margin: 1rem 0 .2rem; }
.contract .contract-version { color: var(--muted); font-size: .88rem; margin-top: 0; }
.contract h3 { font-size: 1rem; margin: 1.3rem 0 .4rem; }
.contract p, .contract li { overflow-wrap: anywhere; }
.contract ul { padding-left: 1.2rem; }
.prose .contract .contract-title { font-size: 1.45rem; margin-top: 2rem; }
.prose .contract h3 { font-size: 1.1rem; margin-top: 1.8rem; }
.privacy-box { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm); background: var(--bg-tint); font-size: .92rem; }
.privacy-box h3 { display: flex; align-items: center; gap: .4rem; font-size: 1rem; margin: 0 0 .3rem; }
.privacy-box p { margin: 0; }
.checkout-main .card + form.card, .checkout-main .card + section.card { margin-top: 1.2rem; }
.accept-box { border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin: 1rem 0 0; }
.accept-box legend { font-weight: 700; padding: 0 .4rem; margin-left: -.4rem; }
.accept-box .field-check label { font-weight: 500; }
.clause-list { margin: .8rem 0 0 2.2rem; padding: 0; font-size: .9rem; color: var(--ink-2); display: grid; gap: .25rem; }
.sign-explain { display: flex; gap: .5rem; align-items: flex-start; margin: 1.2rem 0 .4rem; font-size: .95rem; }
.sign-explain .ic { margin-top: .25rem; flex: none; }
.accepted-list { list-style: none; margin: .4rem 0 1.2rem; padding: 0; display: grid; gap: .45rem; }
.accepted-list li { display: flex; gap: .5rem; align-items: flex-start; }
.accepted-list .ic { color: var(--ok); margin-top: .25rem; flex: none; }
.otp-input { max-width: 12rem; font: 700 1.6rem/1.2 var(--font-head); letter-spacing: .35em; text-align: center; }
.otp-form .btn-block { margin-top: .4rem; }
.otp-secondary { margin-top: 1rem; }
.notice-ok { background: var(--ok-bg); border-color: #A7E3BA; color: var(--ok); }
.section-sm { padding: 2rem 0 4rem; }
.signed-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; align-items: center; margin: 0 0 1rem; }
.signed-toolbar-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.signed-card { max-width: 920px; }
.signed-doc h1 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0 0 1rem; }
.signed-kicker { margin: 0 0 .3rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.signed-doc > section h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
.signed-doc table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.signed-doc th, .signed-doc td { text-align: left; vertical-align: top; padding: .5rem .6rem; border: 1px solid var(--line); overflow-wrap: anywhere; }
.signed-doc th { background: var(--bg-soft); width: 36%; font-weight: 600; }
.signed-meta, .signed-proof { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin: 1.2rem 0; }
.signed-proof { background: #F4FBF6; border-color: #A7E3BA; }
.signed-proof p { margin: .8rem 0 0; font-size: .88rem; }
.signed-doc code { font-size: .8rem; word-break: break-all; }
.contract-howto .contract-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.toc-compact { list-style: none; padding-left: 0 !important; font-size: .86rem !important; gap: .15rem !important; }
.legal-grid .toc:has(.toc-compact) { max-height: calc(100vh - 120px); overflow-y: auto; }
@media (max-width: 640px) {
  .signed-doc th, .signed-doc td { display: block; width: auto; border-top: 0; }
  .signed-doc tr:first-child th { border-top: 1px solid var(--line); }
  .clause-list { margin-left: 0; padding-left: 1.1rem; }
  .contract-scroll { max-height: 360px; padding: .2rem .9rem .8rem; }
}

/* ---------- Piè di pagina ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding-top: 4rem; margin-top: 0; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand p { margin-top: 1rem; font-size: .95rem; max-width: 30ch; }
.footer-title { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .8rem; }
.footer-col ul { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .45rem; font-size: .95rem; }
.footer-col .linklike { text-decoration: none; color: var(--on-navy); }
.footer-col .linklike:hover { color: #fff; text-decoration: underline; }
.footer-company address { font-size: .95rem; line-height: 1.65; margin-bottom: 1rem; }
.footer-company strong { color: #fff; }
.footer-contacts li { display: flex; align-items: center; gap: .5rem; }
.footer-legal { border-top: 1px solid rgba(201, 212, 242, .16); padding: 1.2rem 0; font-size: .86rem; color: var(--on-navy-2); }
.footer-legal-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; }
.footer-legal p { margin: 0; }

/* ---------- Cookie ---------- */
.cookie-banner { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: 16px; display: flex; justify-content: center; pointer-events: none; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner { position: relative; pointer-events: auto; width: 100%; max-width: 880px; background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: 0 30px 70px -20px rgba(10, 21, 48, .45); padding: 1.4rem 1.5rem 1.3rem; }
.cookie-title { font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; padding-right: 2.5rem; }
.cookie-banner p { font-size: .94rem; color: var(--ink-2); margin-bottom: 1rem; }
.cookie-actions, .modal-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.cookie-close { position: absolute; top: .7rem; right: .7rem; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 10px; color: var(--ink-2); cursor: pointer; }
.cookie-close:hover { background: var(--bg-soft); }
.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow-lg); color: var(--ink); }
.modal::backdrop { background: rgba(10, 21, 48, .55); }
.modal-inner { padding: 1.5rem; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.modal-head h2 { margin: 0; font-size: 1.35rem; }
.consent-list { display: grid; gap: .8rem; margin: 1rem 0 1.3rem; }
.consent-item { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
.consent-item p { margin: .35rem 0 0 2.1rem; font-size: .92rem; color: var(--muted); }
.switch { display: flex; align-items: center; gap: .7rem; }
.switch label { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(6, 12, 28, .88); }
.lightbox-inner { position: relative; }
.lightbox img { max-width: 94vw; max-height: 86vh; width: auto; height: auto; border-radius: 10px; background: #fff; }
.lightbox-close { position: absolute; top: -8px; right: -8px; z-index: 2; box-shadow: var(--shadow); }
.lightbox-caption { color: #fff; text-align: center; margin: .8rem 0 0; font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
}
@media (max-width: 980px) {
  :root { --gutter: 16px; }
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; gap: .5rem; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: .5rem 0 1rem; }
  .site-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: space-between; }
  .nav-panel { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 .5rem .5rem; }
  .nav-actions { flex-direction: column; align-items: stretch; padding-top: .5rem; border-top: 1px solid var(--line); }
  .hero-grid, .p-hero-grid, .mobile-band, .about-grid, .contact-grid, .spec-grid, .checkout-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 640px; }
  .frame-hero { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .feature-row, .feature-row.is-reverse { grid-template-columns: 1fr; }
  .feature-row.is-reverse .feature-row-text { order: 0; }
  .price-card, .checkout-side { position: static; }
  .account { grid-template-columns: minmax(0, 1fr); padding-top: 1rem; }
  .account-side { position: static; }
  .side-nav { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .auth-wrap-wide { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-wrap-wide .auth-card { border-radius: var(--radius-lg); }
  .mobile-band .phone { margin: 0 auto; }
  .subnav { top: 72px; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-plan, .grid-addr, .radio-cards, .stat-grid, .lic-dates { grid-template-columns: minmax(0, 1fr); }
  .grid-addr .field:nth-child(4), .span-2 { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .spec-list > div { grid-template-columns: 1fr; gap: .1rem; }
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .cookie-actions .btn, .modal-actions .btn { flex: 1 1 100%; }
  .phone-hero { width: 38%; }
  .hero-cta .btn { width: 100%; }
  .pay-box .btn { width: 100%; }
  .brand-word { font-size: 1.28rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .product-card:hover { transform: none; }
}
@media (forced-colors: active) {
  .btn, .card, .product-card, .badge, .tile { border: 1px solid CanvasText; }
}
@media print {
  .site-header, .site-footer, .cookie-banner, .subnav, .skip-link, .account-side, .no-print, .toc, .breadcrumb, .contract-howto, .flash { display: none !important; }
  .legal-grid { display: block; }
  .card, .signed-card { box-shadow: none; border: 0; padding: 0; max-width: none; }
  .signed-proof, .signed-meta { break-inside: avoid; }
  body { font-size: 11pt; }
  .section-dark, .hero, .page-hero { background: #fff !important; color: #000 !important; }
}

/* ---------- Blocco promozionale HubHero · Sicurezza aziendale ---------- */
.promo-mgmt-wrap { padding-top: 0; }
.promo-mgmt { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: center; padding: clamp(1.5rem, 1rem + 3vw, 3.25rem); border-radius: var(--radius-lg); background: var(--navy); color: var(--on-navy); box-shadow: var(--shadow-lg); }
.promo-mgmt::before { content: ""; position: absolute; inset: 0; background: radial-gradient(620px 320px at 100% 0%, rgba(22, 163, 74, .32), transparent 60%), radial-gradient(560px 300px at 0% 100%, rgba(59, 107, 255, .35), transparent 60%); pointer-events: none; }
.promo-mgmt > * { position: relative; }
.promo-mgmt :focus-visible { outline-color: var(--accent); }
.promo-mgmt-kicker { display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 .9rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; font-size: .9rem; }
.promo-mgmt-kicker .ic { color: #4ADE80; }
.promo-mgmt h2 { color: #fff; margin: 0 0 1rem; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.35rem); line-height: 1.18; }
.promo-mgmt h2 .hl { background: linear-gradient(90deg, #86EFAC, #FFC24D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.promo-mgmt-lead { margin: 0 0 1.2rem; font-size: 1.08rem; color: var(--on-navy); }
.promo-mgmt-lead strong { color: #fff; }
.promo-mgmt-services { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.promo-mgmt-services li { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: .9rem; }
.promo-mgmt-services .ic { color: #4ADE80; }
.promo-mgmt-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.promo-mgmt-bundle { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.promo-mgmt-bundle-title { margin: 0 0 1rem; font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bundle-item { display: flex; align-items: center; gap: .9rem; padding: .85rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); }
.bundle-name { margin: 0; font-weight: 700; color: var(--ink); }
.bundle-desc { margin: .1rem 0 0; font-size: .88rem; color: var(--muted); }
.bundle-features { list-style: none; margin: .9rem 0 0; padding: 0 .2rem; display: grid; gap: .45rem; }
.bundle-features li { display: flex; align-items: flex-start; gap: .5rem; font-size: .92rem; color: var(--ink-2); }
.bundle-features .ic { flex: none; margin-top: .2rem; color: var(--c-green); }
.bundle-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); }
.bundle-price-num { font: 800 2rem/1 var(--font-head); color: var(--c-green); }
.bundle-price-txt { color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.promo-mgmt-note { margin: .9rem 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

.section-tight { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0; }
.promo-mgmt-compact { display: flex; align-items: center; gap: 1.2rem; padding: 1.3rem 1.5rem; border-radius: var(--radius-lg); border: 1px solid #BBE5C8; background: linear-gradient(120deg, #E8F7EE, #fff 75%); }
.promo-mgmt-compact-copy { flex: 1; }
.promo-mgmt-compact h2 { margin: 0 0 .25rem; font-size: 1.15rem; }
.promo-mgmt-compact p { margin: 0; color: var(--ink-2); }
.promo-mgmt-compact .btn { flex: none; }

@media (max-width: 980px) {
  .promo-mgmt { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .promo-mgmt-actions .btn { width: 100%; justify-content: center; }
  .promo-mgmt-compact { flex-direction: column; align-items: flex-start; }
  .promo-mgmt-compact .btn { width: 100%; justify-content: center; }
}
@media (forced-colors: active) {
  .promo-mgmt h2 .hl { color: CanvasText; background: none; }
}
@media print {
  .promo-mgmt, .promo-mgmt-compact { display: none; }
}

/* ---------- Pannello: programmi come schede ---------- */
.badge-info { background: var(--info-bg); color: var(--info); border-color: #BFDBFE; }
.admin-cards { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.admin-card { position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.35rem 1.3rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.admin-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent-c, var(--brand)); }
.admin-card:hover, .admin-card:focus-within { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-2); }
.admin-card:has(a.stretched:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.admin-card a.stretched:focus-visible { outline: none; }
.admin-card.is-hidden { background: var(--bg-soft); }
.admin-card.is-hidden .tile { filter: grayscale(.7); opacity: .8; }
.admin-card-head { display: flex; align-items: center; gap: .85rem; }
.admin-card-title { flex: 1; min-width: 0; }
.admin-card-title h2 { margin: 0; font-size: 1.15rem; }
.admin-card-title h2 a { color: var(--ink); text-decoration: none; }
.admin-card-title p { margin: .1rem 0 0; font-size: .88rem; }
.admin-card-plans { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.admin-card-plans > li { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; align-items: baseline; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }
.admin-card-plans > li.is-off { opacity: .8; border-style: dashed; }
.admin-card-plans .plan-name small { color: var(--muted); font-weight: 400; }
.admin-card-plans .plan-price { text-align: right; }
.admin-card-plans .plan-link { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .35rem; }
.admin-card-empty { margin: 0; color: var(--muted); }
.admin-card-foot { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.admin-card-go { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--brand-700, var(--brand)); }
.link-mode { border: 0; margin: .2rem 0 .8rem; padding: 0; min-width: 0; }
.link-mode legend { padding: 0; font-weight: 700; margin-bottom: .5rem; }
.link-mode .field-check { margin-bottom: .6rem; }
.link-mode .link-url { margin: 0 0 .8rem 2.1rem; }
.link-mode .field-check .hint { grid-column: 2; }
@media (max-width: 760px) { .admin-cards { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .admin-card { transition: none; } .admin-card:hover, .admin-card:focus-within { transform: none; } }
.admin-card-plans .plan-price { font-size: .95rem; }
.admin-card-plans .plan-price strong { font-size: 1.12rem; }
.admin-card-plans .plan-price .price-offer { font-size: 1.12rem; }
.admin-card-plans .plan-price .badge { vertical-align: middle; }
/* 1.1.0 - pagamento con carta (Stripe) */
.input-copy { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; background: var(--bg-soft); }
.spec-list dd .hint { display: block; margin-top: .3rem; }
.manual-pay { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.manual-pay summary { cursor: pointer; font-weight: 650; min-height: 44px; display: flex; align-items: center; color: var(--ink-2); }
.manual-pay summary:hover { color: var(--brand-700); }
.manual-pay p { margin: .2rem 0 .9rem; }
.pay-result-ic { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 50%; margin: 0 0 .9rem; }
.pay-result-ic .ic { width: 1.7rem; height: 1.7rem; }
.pay-ok .pay-result-ic { background: var(--ok-bg); color: var(--ok); }
.pay-info .pay-result-ic { background: var(--info-bg); color: var(--info); }
.pay-warn .pay-result-ic { background: var(--warn-bg); color: var(--warn); }
.pay-result .spec-list { margin: 1.1rem 0 1.2rem; }
.pay-next { display: flex; gap: .45rem; align-items: flex-start; margin: .8rem 0 0; }
.pay-next .ic { flex: none; margin-top: .2rem; }

/* 1.2.0 - carrello multi-programma e ordini creati dal pannello */
.nav-cart { position: relative; }
.nav-cart-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 999px; background: var(--brand); color: #fff; font: 700 .78rem/1 var(--font); }
.cart-empty { display: grid; gap: 1rem; justify-items: start; }
.cart-empty p { display: flex; gap: .6rem; align-items: flex-start; margin: 0; max-width: 62ch; }
.cart-empty .ic { flex: none; margin-top: .15rem; color: var(--brand); }
.cart-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.cart-line { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem; border: 1.5px solid var(--line-2); border-radius: 12px; }
.cart-line .tile { flex: none; }
.cart-line-body { flex: 1; min-width: 0; display: grid; gap: .45rem; }
.cart-line-name { margin: 0; font-weight: 700; }
.cart-line-plan { margin: 0; }
.cart-line-plan label { font-size: .85rem; color: var(--muted); }
.cart-line-plan select { max-width: 100%; }
.cart-line-price { text-align: right; display: grid; gap: .25rem; justify-items: end; }
.cart-line-price p { margin: 0; }
.cart-line-price .muted { font-size: .85rem; }
.cart-remove { margin-top: .2rem; }
.cart-actions { margin-top: 1.1rem; }
.cart-add-form { margin-top: .6rem; }
.cart-add-hint { margin-top: .5rem; text-align: center; }
@media (max-width: 640px) {
  .cart-line { flex-wrap: wrap; }
  .cart-line-price { width: 100%; text-align: left; justify-items: start; }
}
.order-new-lines { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .8rem; }
.order-new-line { padding: 1rem; border: 1.5px solid var(--line-2); border-radius: 12px; display: grid; gap: .7rem; }
.order-new-line:has(> .order-new-check input:checked) { border-color: var(--brand); background: var(--bg-tint); }
.order-new-check { margin: 0; }
.order-new-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.order-new-fields .field { margin: 0; }

/* ---------- Pannello: schede modificabili del cliente ---------- */
.edit-box { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.edit-box > summary, .edit-card > summary { cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--brand); }
.edit-box[open] > summary { margin-bottom: .9rem; }
.edit-card > summary { font-size: 1.15rem; color: var(--ink); }
.edit-card[open] > summary { margin-bottom: .6rem; }
.edit-card:not([open]) { padding-top: 1rem; padding-bottom: 1rem; }
.inline-actions .hint { flex-basis: 100%; margin: 0; }
.filters > .hint { flex-basis: 100%; margin: 0; }

/* 1.4.0 - utenti e spazio compresi nella licenza */
.price-notes .price-limits { display: flex; gap: .3rem; align-items: flex-start; }
.price-notes .price-limits .ic { margin-top: .2rem; }
.price-notes .price-limits a { white-space: normal; }
.limits-line { display: flex; gap: .4rem; align-items: center; margin: .9rem 0 0; color: var(--muted); font-size: .88rem; }
.limits-line .ic { color: var(--brand); }
.cart-line-body .limits-line { margin: 0; }
.limits-note { display: flex; gap: .4rem; align-items: flex-start; margin: 1rem 0 0; }
.limits-note .ic { margin-top: .2rem; color: var(--brand); }
.lic-limits { display: flex; gap: .45rem; align-items: flex-start; margin: 0 0 .9rem; font-size: .94rem; color: var(--ink-2); }
.lic-limits .ic { margin-top: .2rem; color: var(--brand); flex: none; }
.limits-fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem .9rem; margin: 0 0 1rem; min-width: 0; }
.limits-fieldset legend { font-weight: 700; padding: 0 .35rem; }
.limits-fieldset .field { margin-bottom: .4rem; }
@media (max-width: 640px) {
  /* pulsanti lunghi del riepilogo d'acquisto e dei moduli: vanno a capo invece di allargare la pagina sul telefono */
  .checkout-side .btn, .form-actions .btn-lg { white-space: normal; text-align: center; }
}
