/* Associazione Semplice · portale. Colori del logo (indaco #1f218c, verde salvia #5f8579, oro #efca5c) come variabili, tema chiaro e scuro. */
/* Carattere del marchio: Montserrat (licenza OFL, assets/fonts/OFL.txt), ospitato qui, nessun servizio esterno. */
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Montserrat-Medium.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Montserrat-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/Montserrat-Bold.ttf") format("truetype"); }
/* Valori allineati a docs/brand/tokens.css (unica fonte; vedi docs/GRAFICA_UX.md): non cambiarli qui. */
:root {
	--bg: #f5f6fa; --surface: #ffffff; --surface-2: #eef0f7; --fg: #181a2e; --muted: #5d6078; --line: #e2e5ee;
	--brand: #1f218c; --brand-2: #15176b; --brand-soft: #e8e9fb; --brand-fg: #ffffff;
	--sage: #5f8579; --sage-soft: #e3ece8;
	--accent: #efca5c; --accent-soft: #fbf3d4; --danger: #b42318; --danger-soft: #fdecea; --ok: #2f7a5f;
	--shadow: 0 1px 2px rgba(20,23,46,.06), 0 8px 24px rgba(20,23,46,.07); --warn-fg: #7a4d08;
	--radius: 16px; --max: 1120px;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #11122a; --surface: #1b1d3d; --surface-2: #232552; --fg: #eceefa; --muted: #a9acc6; --line: #2f3260;
		--brand: #a6a9ff; --brand-2: #c4c6ff; --brand-soft: #26285a; --brand-fg: #11122a;
		--sage: #86ab9d; --sage-soft: #1f2e29;
		--accent: #efca5c; --accent-soft: #3a3013; --danger: #ff8a80; --danger-soft: #3b1b1b; --ok: #6fd1a6;
		--shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); --warn-fg: #efca5c;
	}
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 500 16.5px/1.65 "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); } img, svg { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); } .small { font-size: .9rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 4px 12px; border-radius: 99px; margin-bottom: 18px; }

/* Intestazione */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; letter-spacing: -.02em; font-size: 1.1rem; }
.logo img { display: block; width: auto; } .logo-full img { height: 52px; } .logo-sym { display: none; } .logo-sym img { height: 40px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: var(--fg); background: var(--surface-2); }
.nav a.btn { color: var(--brand-fg); margin-left: 6px; }
.nav a.btn:hover { background: var(--brand-2); color: var(--brand-fg); }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; border: 1px solid transparent; background: var(--brand); color: var(--brand-fg); font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .12s, background .12s, box-shadow .12s; }
.btn:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:focus-visible, input:focus-visible, summary:focus-visible, .seg button:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.btn.alt { background: var(--surface); color: var(--fg); border-color: var(--line); }
.btn.alt:hover { background: var(--surface-2); }
.btn.big { padding: 15px 28px; font-size: 1.05rem; } .btn.block { width: 100%; } .btn.small { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn.danger { background: var(--surface); color: var(--danger); border-color: var(--line); }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 22%, transparent), transparent); z-index: -1; }
.hero-grid { display: grid; gap: 48px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 7px; }

/* Finta schermata del gestionale nell'hero */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; transform: rotate(1.2deg); }
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; } .mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.mock-row:last-child { border: 0; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; }
.mock-row b { display: block; line-height: 1.2; } .mock-row span { color: var(--muted); font-size: .82rem; }
.pill { margin-left: auto; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); white-space: nowrap; }
.pill.warn { background: var(--accent-soft); color: var(--warn-fg); } .pill.bad { background: var(--danger-soft); color: var(--danger); }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 8px; }
.mock-stats div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; } .mock-stats b { font-size: 1.35rem; display: block; line-height: 1.1; } .mock-stats span { font-size: .75rem; color: var(--muted); }

/* Sezioni */
.section { padding: 72px 0; } .section.alt { background: var(--surface-2); }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }
.ico { width: 46px; height: 46px; border-radius: 13px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; }
.ico svg { width: 24px; height: 24px; }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); counter-reset: s; }
.step { position: relative; padding: 26px 26px 26px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #2b1b00; font-weight: 700; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

/* Prezzi */
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin: 0 auto 36px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 700; padding: 9px 20px; border-radius: 10px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-fg); }
.seg .save { font-size: .72rem; background: var(--accent); color: #2b1b00; padding: 2px 8px; border-radius: 99px; margin-left: 8px; }
.pricing { text-align: center; }
.plans { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); text-align: left; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; display: flex; flex-direction: column; position: relative; }
.plan.hot { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .tag { position: absolute; top: -13px; right: 24px; background: var(--brand); color: var(--brand-fg); font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; letter-spacing: .03em; }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; } .plan .for { color: var(--muted); font-size: .95rem; min-height: 3.2em; }
.price { margin: 14px 0 6px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-size: 2.8rem; font-weight: 700; letter-spacing: -.03em; line-height: 1; } .price span { color: var(--muted); }
.price-note { color: var(--muted); font-size: .88rem; min-height: 1.4em; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { padding-left: 28px; position: relative; font-size: .97rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .35em; width: 17px; height: 17px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f6b57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.pricing[data-period="year"] .only-month, .pricing[data-period="month"] .only-year { display: none !important; }
.fine { color: var(--muted); font-size: .9rem; margin-top: 24px; }

/* Domande */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* Fascia finale */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-fg); border-radius: 28px; padding: 56px 32px; text-align: center; margin: 0 auto; }
.cta-band p { opacity: .9; max-width: 560px; margin: 0 auto 26px; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: #1f218c; }

/* Piè di pagina */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; margin-top: 72px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--muted); margin-left: 18px; } .site-footer a:first-child { margin-left: 0; }

/* Pagine interne */
.page { padding: 56px 0 8px; }
.page-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; max-width: 960px; margin: 0 auto; }
.page-narrow { max-width: 520px; margin: 0 auto; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.panel h1 { font-size: 1.9rem; }
.side h2 { font-size: 1.4rem; } .side ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.side li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); } .side li svg { flex: none; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; } .side li b { color: var(--fg); display: block; }
label { display: block; font-weight: 700; font-size: .93rem; margin: 18px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=file] { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font: inherit; }
input[type=text]:hover, input[type=email]:hover, input[type=password]:hover, input[type=file]:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.hint { color: var(--muted); font-size: .86rem; margin: 6px 0 0; }
.panel form .btn { margin-top: 24px; }
.choice { display: grid; gap: 10px; margin-top: 4px; }
.choice label { display: flex; align-items: center; gap: 12px; margin: 0; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; font-weight: 600; cursor: pointer; }
.choice input { accent-color: var(--brand); width: 18px; height: 18px; } .choice label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.summary { background: var(--surface-2); border-radius: 14px; padding: 16px 18px; margin-bottom: 8px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.summary b { font-size: 1.3rem; }
.notice { text-align: center; padding: 20px 0; } .notice .ico { margin: 0 auto 18px; width: 64px; height: 64px; border-radius: 50%; } .notice .ico svg { width: 30px; height: 30px; }
.notice.bad .ico { background: var(--danger-soft); color: var(--danger); }
.notice p { color: var(--muted); }

/* Area cliente */
.account-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.account-head h1 { font-size: 2rem; margin: 0; }
.sub { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; margin-bottom: 20px; box-shadow: var(--shadow); }
.sub-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; } .sub-top h2 { margin: 0; font-size: 1.4rem; }
.badge { font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.badge.warn { background: var(--accent-soft); color: var(--warn-fg); } .badge.bad { background: var(--danger-soft); color: var(--danger); }
.keybox { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; }
.keybox code { flex: 1; font: 600 .95rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 18px 0 4px; }
.facts div { background: var(--surface-2); border-radius: 12px; padding: 12px 16px; } .facts span { display: block; font-size: .8rem; color: var(--muted); } .facts b { font-size: 1.05rem; }
.actions { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.actions form { margin: 0; } .actions .domain-form { flex: 1; min-width: 260px; display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; } .actions .domain-form > div { flex: 1; min-width: 180px; }
.actions .domain-form label { margin-top: 0; } .actions .btn { margin-top: 0 !important; }
.empty { text-align: center; padding: 48px 20px; }

@media (max-width: 860px) {
	.hero-grid, .page-grid { grid-template-columns: 1fr; } .grid-3, .steps, .plans { grid-template-columns: 1fr; } .mock { transform: none; }
	.hero { padding-top: 40px; } .plan .for { min-height: 0; }
	.section { padding: 52px 0; } .cta-band { padding: 40px 22px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .cta-band { display: none; } }
.logo, .btn.small { white-space: nowrap; }
@media (max-width: 480px) { .logo-full { display: none; } .logo-sym { display: block; } .logo-sym img { height: 36px; } .nav a.btn { margin-left: 0; padding: 8px 12px; } .site-header .wrap { gap: 8px; } }

/* Pannello di gestione */
.admin { padding: 0 0 8px; }
.admin-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.admin-top h1 { font-size: 1.7rem; margin: 0; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: 14px 0 26px; }
.tabs a { padding: 10px 16px; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0; }
.tabs a:hover { color: var(--fg); background: var(--surface-2); } .tabs a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.flash { background: var(--brand-soft); color: var(--brand-2); border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent); padding: 12px 16px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat b { display: block; font-size: 2rem; letter-spacing: -.02em; line-height: 1.1; } .stat span { color: var(--muted); font-size: .88rem; }
.stat.warn b { color: #b9770e; } .stat.bad b { color: var(--danger); }
.card2 { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 20px; }
.card2 h2 { font-size: 1.15rem; margin-bottom: 14px; }
.tbl-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .94rem; }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; } .tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); } .tbl a { font-weight: 600; text-decoration: none; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; } .toolbar input[type=text] { max-width: 320px; } .toolbar select { padding: 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--fg); font: inherit; }
.toolbar .btn { margin-top: 0 !important; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 18px; } .form-grid.two { grid-template-columns: 1fr 1fr; }
textarea { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font: inherit; resize: vertical; }
textarea:focus, select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
textarea.mono { font: .92rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
select.field { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font: inherit; }
input[type=number] { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); font: inherit; }
input[type=number]:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.check { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-weight: 600; cursor: pointer; } .check input { width: 18px; height: 18px; accent-color: var(--brand); }
.risk { background: var(--accent-soft); color: var(--fg); border-radius: 10px; padding: 10px 14px; font-size: .85rem; margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; } .chip { font: .82rem ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; } .row-actions .btn { margin-top: 0 !important; }
.plan-edit h2 { display: flex; align-items: center; gap: 10px; }
.sep { height: 1px; background: var(--line); margin: 22px 0; }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 18px; margin: 0; } .dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: var(--ok); } .status-dot.off { background: var(--danger); }
.pre { white-space: pre-wrap; background: var(--surface-2); border-radius: 12px; padding: 14px 16px; font: .9rem/1.5 ui-monospace, Menlo, Consolas, monospace; }
.trial-box { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 14px; padding: 16px 18px; margin-top: 18px; }
.trial-box p { margin: 0; } .trial-box .btn { margin-top: 0 !important; }
@media (max-width: 700px) { .form-grid.two { grid-template-columns: 1fr; } .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }

/* Banner cookie e pagine legali */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; display: flex; justify-content: center; pointer-events: none; }
.cc[hidden] { display: none; }
.cc-box { pointer-events: auto; width: 100%; max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.22); padding: 20px 22px; }
.cc-text { margin: 0 0 14px; font-size: .95rem; } .cc-prefs { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0 0 14px; } .cc-prefs[hidden] { display: none; }
.cc-prefs .check { margin: 6px 0; font-weight: 600; font-size: .93rem; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cc-actions .btn { min-width: 9.5rem; min-height: 44px; } /* i tre pulsanti hanno lo stesso peso: scegliere «Rifiuta» costa quanto «Accetta tutti» */
@media (max-width: 520px) { .cc-actions .btn { flex: 1 1 100%; } }
.legal h2 { font-size: 1.25rem; margin: 1.8em 0 .5em; } .legal p, .legal li { color: var(--muted); } .legal ul { padding-left: 1.2em; } .legal strong { color: var(--fg); }
.site-footer a[data-cc-open] { cursor: pointer; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; cursor: pointer; }
.linklike:hover { color: var(--brand-2); }
.tabs.sub { margin-top: -14px; gap: 2px; } .tabs.sub a { padding: 7px 14px; font-size: .92rem; font-weight: 500; border-radius: 999px; border-bottom: 0; margin-bottom: 0; }
.tabs.sub a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-2); }

/* Promozione (Black Friday…): listino barrato e etichetta */
.was { color: var(--muted); font-size: 1.15rem; font-weight: 500; text-decoration: line-through; text-decoration-thickness: 2px; }
.price-note .was { font-size: inherit; }
.promo-tag { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 999px; background: var(--gold, #f0b429); color: #1a1a2e; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Fumetti di aiuto */
.tip { position: relative; display: inline-block; vertical-align: middle; margin-left: 6px; }
.tip-btn { width: 22px; height: 22px; padding: 0; border-radius: 50%; border: 2px solid var(--ink, #1a1a2e); background: var(--gold, #f0b429); color: var(--ink, #1a1a2e); font: 700 13px/1 inherit; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tip-btn:hover, .tip-btn[aria-expanded="true"] { background: var(--ink, #1a1a2e); color: #fff; }
.tip-bubble { position: absolute; z-index: 30; left: -8px; top: 34px; width: min(340px, 78vw); padding: 12px 14px; background: #fff; color: #1a1a2e; border: 2px solid #1a1a2e; border-radius: 16px; box-shadow: 4px 4px 0 rgba(26, 26, 46, .18); font-size: .88rem; line-height: 1.45; font-weight: 400; text-align: left; text-transform: none; letter-spacing: 0; }
.tip-bubble::before { content: ""; position: absolute; top: -10px; left: 14px; width: 16px; height: 16px; background: #fff; border-left: 2px solid #1a1a2e; border-top: 2px solid #1a1a2e; transform: rotate(45deg); border-top-left-radius: 4px; }
.tip-bubble p { margin: 0 0 8px; } .tip-bubble p:last-child { margin-bottom: 0; }
.tip-title { display: block; margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { .tip-bubble, .tip-bubble::before { background: #fff; } }
.plan ul li.lead { font-weight: 700; list-style: none; margin-left: -4px; padding-left: 0; }
.plan ul li.lead::before { content: none; }
.price-note small { font-size: .88rem; }

/* Guida all'acquisto: menu, barra in basso da telefono, fascia di chiusura e percorso a tappe */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--brand-fg); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 10px; }
.center { text-align: center; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; }
.nav a[aria-current="page"]:not(.btn) { color: var(--fg); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 10px 10px 0 0; }
.nav a.btn { margin-left: 0; } .nav a.btn[aria-current="page"] { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 80%, transparent); }
.nav a.btn.alt { color: var(--fg); } .nav a.btn.alt:hover { color: var(--fg); background: var(--surface-2); }
.nav { gap: 4px; } .nav .btn.small { min-height: 44px; }
.nav a.nav-area { gap: 7px; margin-left: 10px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.nav-area svg, .menu-area svg { width: 18px; height: 18px; }
.btn.small { min-height: 44px; }
.logo { min-width: 44px; min-height: 44px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--fg); font-weight: 700; font-size: .95rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.menu summary svg { width: 20px; height: 20px; }
.menu-panel { position: absolute; right: 0; top: 54px; width: min(320px, calc(100vw - 32px)); display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 8px; }
.menu-panel a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 10px; color: var(--fg); text-decoration: none; font-weight: 600; }
.menu-panel a:hover { background: var(--surface-2); }
.menu-panel a.menu-area { color: var(--muted); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 4px; font-weight: 500; }

.bar { display: none; }
.cta-band { box-shadow: var(--shadow); }
.cta-band h2 { margin-bottom: .4em; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-band .btn.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.cta-band .btn.ghost:hover { background: rgba(255,255,255,.14); transform: none; box-shadow: none; }
.journey { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 4px; padding: 0; margin: 0 0 22px; counter-reset: j; font-size: .82rem; font-weight: 700; }
.journey li { counter-increment: j; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 99px; background: rgba(255,255,255,.14); opacity: .8; }
.journey li::before { content: counter(j); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.3); font-size: .75rem; }
.journey li.done::before { content: "✓"; }
.journey li[aria-current="step"] { background: var(--accent); color: #2b1b00; opacity: 1; }
.journey li[aria-current="step"]::before { background: rgba(43,27,0,.15); }
.closing { padding-top: 24px; }
.site-footer { margin-top: 0; }

.feature.link { display: block; text-decoration: none; color: inherit; transition: transform .12s, box-shadow .12s, border-color .12s; }
.feature.link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand); }
.feature.link:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.feature .more { display: inline-block; margin-top: 12px; color: var(--brand); font-weight: 700; font-size: .92rem; }
.feature .more::after { content: " →"; }
.plans.mini .plan { padding: 26px 24px; }
.plans.mini .plan .for { min-height: 0; margin-bottom: 18px; flex: 1; }
.plans.mini .price b { font-size: 2.3rem; }
.plans.mini .price-note { margin-bottom: 8px; }

@media (max-width: 860px) {
	.nav { display: none; } .menu { display: block; }
	body.has-bar { padding-bottom: 84px; }
	.bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
	.bar .btn { min-height: 48px; padding: 8px 10px; font-size: .95rem; }
	body.has-bar .cc { bottom: 84px; }
	.site-footer a { display: inline-block; margin: 0 14px 6px 0; padding: 6px 0; }
}
@media (max-width: 480px) { .band-actions .btn { width: 100%; } .journey { font-size: .78rem; } }
.bar[hidden] { display: none !important; }
@media (max-width: 640px) { .linklike { display: inline-block; padding: 10px 0; min-height: 44px; box-sizing: border-box; } }

/* Due prodotti nelle stesse pagine (prezzi, confronto): navigazione e separazione visiva */
.product-nav{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;padding:12px 16px 0}
.product-nav a{display:inline-block;padding:8px 16px;border:1px solid var(--line,#d9dbe8);border-radius:999px;font-weight:600;text-decoration:none}
.product-saas{border-top:1px solid var(--line,#d9dbe8);margin-top:32px;scroll-margin-top:72px}
.pricing{scroll-margin-top:72px}
.product-saas .cmp{width:100%;border-collapse:collapse;margin-top:16px}
.product-saas .cmp th,.product-saas .cmp td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:center}
.product-saas .cmp th[scope=row]{text-align:left;font-weight:500}
.product-saas .cmp th[scope=colgroup]{text-align:left;background:var(--surface-2)}
.cmp-wrap{overflow-x:auto}
@media (max-width: 640px) { .admin-top .muted a { display: inline-block; padding: 13px 4px; min-height: 44px; box-sizing: border-box; } } /* collegamenti di servizio della gestione: bersagli da 44 px */
