/* /assets/css/app.css
   Festa in corso — grafica "Ventaglio". Unico foglio di stile, nessuno stile inline (CSP rigida).
   Colori: lampone (principale), albicocca (accento), blu notte (testi e fondi scuri), panna (sfondi).
   Logo: "festa" lampone, "in" albicocca (scura su fondo chiaro), "corso" blu Facebook (bianco su fondo scuro). */

@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Jakarta"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }

:root {
  --lampone: #E2366F;
  --lampone-dark: #A61E4D;
  --lampone-soft: #FFE9EF;
  --albicocca: #FFB547;
  --albicocca-soft: #FFF1DA;
  --notte: #14345F;
  --notte-2: #1F4675;
  --blu: #1877F2;
  --albicocca-scura: #D9831A;
  --panna: #FFF6EC;
  --white: #FFFFFF;
  --line: #F0E2D0;
  --line-2: #E6D6C2;
  --ink: #14345F;
  --ink-2: #3A4A63;
  --ink-3: #56647A;
  --ok: #1E7F4F;
  --ok-ink: #14603A;
  --ok-bg: #E3F3EA;
  --warn-ink: #6E4300;
  --warn-bg: #FFF4E0;
  --err: #C2410C;
  --err-ink: #9A2B0E;
  --err-bg: #FCE7E2;
  --brand: var(--lampone);
  --brand-ink: #FFFFFF;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 8px 24px rgba(20, 52, 95, 0.10);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Jakarta", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--panna); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--lampone-dark); }
a:hover { color: #7E1235; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
h3, .h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--albicocca); outline-offset: 2px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--notte); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip-link:focus { left: 8px; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.row-end { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 32px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--notte); }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.04em; white-space: nowrap; }
.logo-word .w1 { color: var(--lampone); }
.logo-word .w2 { color: var(--albicocca-scura); }
.logo-word .w3 { color: var(--blu); }
.logo-light .logo-word .w1 { color: #FF8FB3; }
.logo-light .logo-word .w2 { color: var(--albicocca); }
.logo-light .logo-word .w3 { color: #FFFFFF; }
.brand-logo { height: 40px; width: auto; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1.5px solid transparent; font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; background: var(--white); color: var(--ink); transition: background .15s, border-color .15s, color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--lampone); color: #fff; }
.btn-primary:hover { background: #C9285E; color: #fff; }
.btn-brand { background: var(--brand); color: var(--brand-ink); }
.btn-brand:hover { filter: brightness(0.94); color: var(--brand-ink); }
.btn-dark { background: var(--notte); color: #fff; }
.btn-dark:hover { background: #0D2445; color: #fff; }
.btn-secondary { background: var(--white); border-color: var(--notte); color: var(--notte); }
.btn-secondary:hover { background: var(--panna); color: var(--notte); }
.btn-soft { background: var(--lampone-soft); color: var(--lampone-dark); }
.btn-soft:hover { background: #FFD9E4; color: var(--lampone-dark); }
.btn-ghost { background: transparent; color: var(--notte); }
.btn-ghost:hover { background: rgba(20, 52, 95, 0.06); color: var(--notte); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover { background: #17673F; color: #fff; }
.btn-danger { background: var(--white); border-color: #E7B7A6; color: var(--err-ink); }
.btn-danger:hover { background: var(--err-bg); color: var(--err-ink); }
.btn-lg { min-height: 54px; padding: 0 26px; border-radius: 27px; font-size: 17px; }
.btn-sm { min-height: 38px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Avvisi e badge ---------- */
.alert { border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.alert-ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert-warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert-err { background: var(--err-bg); color: var(--err-ink); }
.alert-info { background: var(--lampone-soft); color: #7E1235; }
.alert-dark { background: var(--notte); color: #fff; }
.flash-list { display: flex; flex-direction: column; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.b-draft, .b-neutral { background: #EAF0F7; color: var(--ink-2); }
.b-active, .b-ok { background: var(--ok-bg); color: var(--ok-ink); }
.b-closed, .b-warn { background: var(--warn-bg); color: var(--warn-ink); }
.b-archived { background: #EEF1F5; color: var(--ink-3); }
.b-suspended, .b-err { background: var(--err-bg); color: var(--err-ink); }
.b-brand { background: var(--lampone-soft); color: var(--lampone-dark); }
.count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.count-red { background: var(--err); color: #fff; }

/* ---------- Schede ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.card-flat { background: var(--white); border-radius: var(--radius); padding: 18px; }
.card-soft { background: var(--panna); border-radius: var(--radius); padding: 16px; }
.card-dark { background: var(--notte); color: #fff; border-radius: var(--radius-lg); padding: 22px; }
.card-brand { background: var(--lampone-soft); color: #7E1235; border-radius: var(--radius); padding: 16px; }
.card h2, .card h3 { margin-bottom: 4px; }
.card-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 13px; color: var(--ink-3); }
.stat-value { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.stat-value small { font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--ink-3); }
.progress { height: 8px; border-radius: 4px; background: #F1E6D8; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--lampone); border-radius: 4px; transition: width .3s; }
.progress.is-ok > span { background: var(--ok); }
.progress.is-warn > span { background: var(--err); }

/* ---------- Moduli ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--ink-3); }
.field .error { font-size: 13px; color: var(--err-ink); font-weight: 500; }
.input, .field input[type=text], .field input[type=email], .field input[type=password], .field input[type=number], .field input[type=date], .field input[type=time], .field input[type=datetime-local], .field input[type=tel], .field input[type=url], .field input[type=search], .field select, .field textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px; background: #fff; color: var(--ink); font: 400 16px/1.4 var(--font);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--lampone); outline: 3px solid rgba(226, 54, 111, 0.18); outline-offset: 0; }
.field-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--lampone); }
.choice-list { display: flex; flex-direction: column; gap: 8px; }
fieldset.choice-list { border: 0; padding: 0; margin: 0; min-width: 0; }
.choice > .row { flex-wrap: nowrap; min-width: 0; }
.choice { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 60px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; cursor: pointer; }
.choice input { accent-color: var(--lampone); width: 20px; height: 20px; flex: none; }
.choice:has(input:checked) { border: 2px solid var(--lampone); background: #FFF5F8; }
.choice.is-full { opacity: .75; }
.segmented { display: inline-flex; background: #fff; border-radius: 24px; padding: 4px; gap: 4px; border: 1px solid var(--line); }
.segmented a, .segmented button { min-height: 40px; padding: 0 16px; border-radius: 20px; border: 0; background: transparent; color: var(--ink); font: 600 14px var(--font); text-decoration: none; display: inline-flex; align-items: center; cursor: pointer; }
.segmented .is-on { background: var(--notte); color: #fff; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper output { width: 44px; text-align: center; font-size: 18px; font-weight: 700; }
.copy-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.copy-row .grow span { display: block; }

/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 700; padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid #F5EDE2; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .actions { text-align: right; white-space: nowrap; }
@media (max-width: 720px) {
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody, .table-cards tr, .table-cards td { display: block; width: 100%; }
  .table-cards tr { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
  .table-cards td { border: 0; padding: 4px 0; }
  .table-cards td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
  .table-cards .actions { text-align: left; padding-top: 8px; }
}

/* ---------- Intestazione pubblica ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--panna); border-bottom: 1px solid var(--line); }
.site-header-in { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.site-nav a.link { min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a.link:hover { color: var(--lampone-dark); }
.m-nav { display: none; }
/* Telefono: logo, pulsante principale e menu a scomparsa (details/summary: funziona anche senza JavaScript) */
@media (max-width: 860px) {
  .site-header-in { flex-wrap: nowrap; padding: 10px 16px; }
  .site-header .logo-word { font-size: 21px; }
  .site-nav { display: none; }
  .m-nav { display: flex; align-items: center; gap: 8px; flex: none; }
  .burger > summary { list-style: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--notte); }
  .burger > summary::-webkit-details-marker { display: none; }
  .burger > summary:focus-visible { outline: 2px solid var(--lampone); outline-offset: 2px; }
  .burger-ico { position: relative; width: 22px; height: 16px; display: block; }
  .burger-ico i { position: absolute; left: 0; right: 0; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s, top .2s; }
  .burger-ico i:nth-child(1) { top: 0; } .burger-ico i:nth-child(2) { top: 6.75px; } .burger-ico i:nth-child(3) { top: 13.5px; }
  .burger[open] .burger-ico i:nth-child(1) { top: 6.75px; transform: rotate(45deg); }
  .burger[open] .burger-ico i:nth-child(2) { opacity: 0; }
  .burger[open] .burger-ico i:nth-child(3) { top: 6.75px; transform: rotate(-45deg); }
  .burger[open] > summary { background: var(--white); }
  .burger-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; background: var(--panna); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(20, 52, 95, 0.14); padding: 8px 16px 20px; display: flex; flex-direction: column; }
  .burger-panel > a { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 600; }
  .burger-panel > a.is-demo { color: var(--lampone-dark); }
  .burger-panel > a svg { width: 20px; height: 20px; }
  .burger-sep { margin: 18px 4px 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
  .burger-types { display: flex; flex-wrap: wrap; gap: 8px; }
  .burger-types a { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--white); display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; }
  .burger-foot { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
}
.cta-short { display: none; }
@media (max-width: 420px) { .site-header .logo-word { font-size: 19px; } .site-header .logo svg { width: 30px; height: 30px; } .cta-long { display: none; } .cta-short { display: inline; } .site-header-in { gap: 8px; } }
@media (max-width: 330px) { .m-nav > .btn { display: none; } }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 520px; margin: 0 auto; padding: 40px 20px 64px; }
.page { max-width: 820px; margin: 0 auto; padding: 40px 20px 64px; }
.section { padding: 72px 0; }
.section-white { background: #fff; }
.section-dark { background: var(--notte); color: #fff; }
.section-title { max-width: 680px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.section-title p { font-size: 18px; color: var(--ink-2); }
.section-dark .section-title p { color: #D5E0EE; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.kicker { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: #8A2350; }
.section-dark .kicker { background: var(--notte-2); border-color: transparent; color: #FFD08A; }
.site-footer { background: var(--notte); color: #D5E0EE; }
.site-footer-in { max-width: 1200px; margin: 0 auto; padding: 48px 20px 24px; display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer a { color: #D5E0EE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 14px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols strong { color: #fff; }
.footer-legal { max-width: 1200px; margin: 0 auto; padding: 0 20px 28px; font-size: 13px; color: #A9BBD3; }

/* ---------- Home ---------- */
.hero { padding: 56px 0 72px; overflow: hidden; } /* le carte ruotate dietro lo smartphone non devono far scorrere la pagina di lato */
.hero-in { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.05; letter-spacing: -0.035em; }
.hero-visual { flex: 1 1 380px; min-width: 0; position: relative; height: 540px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; font-size: 15px; color: var(--ink-2); }
.ticks li, .checks li { display: flex; align-items: flex-start; gap: 8px; }
.ticks svg, .checks svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ok); }
.checks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fan-card { position: absolute; left: 50%; width: 220px; height: 290px; border-radius: 24px; }
.fan-card.c1 { top: 44px; margin-left: -195px; background: var(--albicocca); transform: rotate(-14deg); }
.fan-card.c2 { top: 32px; margin-left: -20px; background: var(--notte); transform: rotate(12deg); }
.phone { position: absolute; left: 50%; top: 0; width: 262px; height: 530px; margin-left: -131px; border-radius: 40px; background: var(--notte); padding: 10px; }
.phone-screen { height: 100%; border-radius: 32px; overflow: hidden; background: var(--panna); display: flex; flex-direction: column; }
.phone-cover { height: 140px; background: var(--lampone); color: #fff; padding: 16px; display: flex; flex-direction: column; justify-content: flex-end; }
.phone-cover strong { font-family: var(--display); font-size: 22px; font-weight: 800; }
.phone-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.phone-btn { min-height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; background: #fff; border: 1px solid var(--line-2); }
.phone-btn.dark { background: var(--notte); border-color: var(--notte); color: #fff; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mini-grid span { aspect-ratio: 1; border-radius: 6px; background: #D9A98C; }
.mini-grid span:nth-child(2) { background: #9FB4C4; } .mini-grid span:nth-child(3) { background: #C5A9C9; }
.mini-grid span:nth-child(4) { background: #B4C7A4; } .mini-grid span:nth-child(5) { background: #E6C08A; } .mini-grid span:nth-child(6) { background: #A4B9BE; }
.float-note { position: absolute; right: 0; bottom: 30px; background: #fff; border-radius: 16px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); font-size: 13px; }
.float-note .ok-dot { width: 36px; height: 36px; border-radius: 18px; background: var(--ok-bg); color: var(--ok-ink); display: flex; align-items: center; justify-content: center; }
.float-note svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .hero-visual { height: 470px; transform: scale(.88); transform-origin: top center; } }
.steps-list { list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step-card { background: var(--panna); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.step-num { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 20px; background: var(--lampone); color: #fff; }
.step-num.n2 { background: var(--albicocca); color: #3A2400; }
.step-num.n3 { background: var(--notte); }
.feature { background: #fff; border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.feature svg { width: 32px; height: 32px; color: var(--lampone); }
.feature p, .step-card p { color: var(--ink-2); font-size: 15px; }
.pricing-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.plan.is-best { border: 2px solid var(--lampone); }
.plan-price { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.plan-price small { font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--ink-3); }
.plan .btn { margin-top: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 64px; padding: 16px 32px 16px 0; font-family: var(--display); font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; position: relative; display: flex; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; color: var(--lampone); font-size: 24px; font-weight: 500; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 42em; }
.cta-band { background: var(--lampone); color: #fff; border-radius: 32px; padding: 52px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band p { color: #FFE3EC; font-size: 18px; margin-top: 10px; }
.cta-band .btn-white { background: #fff; color: var(--lampone-dark); }
.cta-band .btn-outline { border-color: #fff; color: #fff; background: transparent; }
.pro-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.pro-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #F1E6D8; }
.pro-row:last-child { border-bottom: 0; }
.legal h2 { margin: 28px 0 8px; font-size: 21px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }

/* ---------- Area di gestione ---------- */
.app-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.app-top-in { max-width: 1440px; margin: 0 auto; padding: 10px 20px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.ws-switch { display: flex; align-items: center; gap: 8px; }
.ws-switch select { min-height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; font: 600 14px var(--font); background: #fff; color: var(--ink); max-width: 220px; }
.avatar { width: 40px; height: 40px; border-radius: 20px; background: var(--notte); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; text-decoration: none; }
.avatar:hover { color: #fff; }
.app-shell { max-width: 1440px; margin: 0 auto; padding: 24px 20px 96px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.side-nav { flex: 1 1 210px; max-width: 260px; display: flex; flex-direction: column; gap: 4px; }
.side-nav .side-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 12px 12px 4px; }
.side-nav a { min-height: 44px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.side-nav a:hover { background: rgba(20, 52, 95, 0.05); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--lampone-soft); color: var(--lampone-dark); font-weight: 600; }
.app-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.page-head p { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.split { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.split-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.split-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bottom-nav { display: none; }
@media (max-width: 767px) {
  .side-nav { display: none; }
  .app-shell { padding-top: 16px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: 68px; background: #fff; border-top: 1px solid var(--line); z-index: 30; }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); text-decoration: none; font-size: 11px; position: relative; }
  .bottom-nav a[aria-current="page"] { color: var(--lampone-dark); font-weight: 700; }
  .bottom-nav svg { width: 22px; height: 22px; }
  .bottom-nav .count { position: absolute; top: 6px; left: 54%; }
  .hide-mobile { display: none !important; }
}
.event-list { display: flex; flex-direction: column; }
.event-row { display: flex; gap: 14px; align-items: center; padding: 14px 4px; border-bottom: 1px solid #F5EDE2; text-decoration: none; color: inherit; }
.event-row:last-child { border-bottom: 0; }
.event-row:hover .event-title { color: var(--lampone-dark); }
.event-thumb { width: 52px; height: 52px; border-radius: 12px; flex: none; object-fit: cover; background: linear-gradient(135deg, var(--albicocca), var(--lampone)); }
.event-title { font-weight: 600; }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-3); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.empty svg { width: 44px; height: 44px; color: var(--line-2); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: 600 14px var(--font); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.chip[aria-pressed="true"], .chip.is-on { background: var(--notte); border-color: var(--notte); color: #fff; }
.selbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; background: var(--lampone-soft); border-radius: 12px; padding: 8px 8px 8px 14px; }
.selbar strong { color: #7E1235; }
@media (max-width: 767px) {
  .selbar { position: fixed; left: 10px; right: 10px; bottom: 78px; z-index: 31; background: var(--notte); color: #fff; padding: 10px 10px 10px 16px; border-radius: 16px; box-shadow: var(--shadow); }
  .selbar strong { color: #fff; }
}
.photo-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 520px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; } }
.tile { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #EFE5D8; border: 0; padding: 0; cursor: pointer; display: block; width: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.is-selected { box-shadow: 0 0 0 3px var(--lampone); }
.tile.is-hidden img { opacity: .35; }
.tile .tile-check { position: absolute; top: 6px; left: 6px; width: 26px; height: 26px; border-radius: 13px; background: rgba(255, 255, 255, 0.92); border: 2px solid #fff; display: flex; align-items: center; justify-content: center; color: transparent; }
.tile.is-selected .tile-check { background: var(--lampone); color: #fff; }
.tile .tile-check svg { width: 14px; height: 14px; }
.tile .tile-badge { position: absolute; top: 6px; right: 6px; }
.tile .tile-name { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qr-box { background: #fff; border-radius: var(--radius); padding: 16px; display: flex; justify-content: center; }
.qr-box svg { width: 100%; max-width: 260px; height: auto; }
.code-list { columns: 2 220px; column-gap: 16px; }
.code-item { break-inside: avoid; border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.block-editor { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.block-editor > summary { min-height: 56px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-weight: 600; list-style: none; }
.block-editor > summary::-webkit-details-marker { display: none; }
.block-editor .block-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.rows-editor { display: flex; flex-direction: column; gap: 8px; }
.rows-editor .r { display: grid; grid-template-columns: 1fr 2fr auto; gap: 8px; align-items: center; }
.rows-editor .r.r2 { grid-template-columns: 1fr auto; }
@media (max-width: 560px) { .rows-editor .r { grid-template-columns: 1fr auto; } .rows-editor .r > :nth-child(2) { grid-column: 1 / 2; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 500; }
.timeline-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F5EDE2; font-size: 14px; }
.timeline-item:last-child { border-bottom: 0; }
.plus { color: var(--ok-ink); font-weight: 700; }

/* ---------- Pagine ospite ---------- */
.guest { min-height: 100vh; display: flex; flex-direction: column; background: var(--panna); }
.guest-cover { position: relative; min-height: 260px; background: var(--brand); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.guest-cover img.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guest-cover .cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 52, 95, 0.05) 30%, rgba(20, 52, 95, 0.72)); }
.guest-cover-in { position: relative; max-width: 720px; width: 100%; margin: 0 auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; }
.guest-cover h1 { font-size: clamp(30px, 7vw, 44px); color: #fff; }
.guest-cover p { color: #FFECF2; font-size: 15px; }
.guest-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; z-index: 2; }
.guest-top .brand-chip { background: rgba(255, 255, 255, 0.94); border-radius: 12px; padding: 6px 10px; display: flex; align-items: center; gap: 8px; }
.guest-top .brand-chip img { height: 28px; width: auto; }
.countdown { display: flex; gap: 8px; margin-top: 10px; }
.countdown div { background: rgba(20, 52, 95, 0.55); border-radius: 10px; padding: 8px 12px; min-width: 60px; text-align: center; }
.countdown strong { display: block; font-family: var(--display); font-size: 22px; }
.countdown span { font-size: 11px; color: #FFE3EC; }
.guest-tabs { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.guest-tabs-in { max-width: 720px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 6px; overflow-x: auto; }
.guest-tabs a { flex: none; min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid var(--line); display: inline-flex; align-items: center; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.guest-tabs a[aria-current="page"] { background: var(--notte); border-color: var(--notte); color: #fff; }
.guest-main { flex: 1; max-width: 720px; width: 100%; margin: 0 auto; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.guest-foot { text-align: center; font-size: 12px; color: var(--ink-3); padding: 0 16px 28px; display: flex; flex-direction: column; gap: 4px; }
.upload-btns { display: flex; flex-direction: column; gap: 10px; }
.upload-btn { position: relative; min-height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; font: 600 17px var(--font); cursor: pointer; }
.upload-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.upload-btn svg { width: 22px; height: 22px; }
.upload-btn.main { background: var(--brand); color: var(--brand-ink); }
.upload-btn.alt { background: #fff; border: 1.5px solid var(--line-2); color: var(--ink); }
.upload-btn:focus-within { outline: 3px solid var(--albicocca); outline-offset: 2px; }
.queue-item { display: flex; gap: 12px; align-items: center; }
.queue-item img, .queue-item .ph { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: #EFE5D8; }
.queue-item .grow { display: flex; flex-direction: column; gap: 6px; }
.queue-item .qi-head { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.qi-ok { color: var(--ok-ink); font-weight: 600; }
.qi-err { color: var(--err-ink); font-weight: 600; }
.gallery-grid { display: grid; gap: 4px; grid-template-columns: repeat(3, 1fr); }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; } }
.gallery-grid .g-open { display: block; width: 100%; aspect-ratio: 1; border: 0; padding: 0; border-radius: 8px; overflow: hidden; background: #EFE5D8; cursor: zoom-in; position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
dialog { border: 0; padding: 0; border-radius: 20px; max-width: min(560px, calc(100vw - 24px)); width: 100%; color: var(--ink); }
dialog::backdrop { background: rgba(26, 16, 36, 0.6); }
.dialog-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
dialog.lightbox { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; border-radius: 0; background: #0A1A30; color: #fff; }
.lightbox-in { height: 100%; display: flex; flex-direction: column; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; }
.lightbox-bar .icon-btn { background: rgba(255, 255, 255, 0.1); border-color: transparent; color: #fff; }
.lightbox-bar .lb-itsme { background: #fff; color: #14345F; min-height: 44px; }
/* Telefono: le icone restano in una riga, «Ci sono io, toglila» va sotto, largo quanto la barra */
@media (max-width: 560px) {
  .lightbox-bar { align-items: flex-start; }
  .lightbox-bar .row:has(.lb-itsme) { flex-wrap: wrap; justify-content: flex-end; flex: 1; }
  .lightbox-bar .lb-itsme { order: 9; flex-basis: 100%; justify-content: center; }
}
.lightbox-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px; }
.lightbox-img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox-cap { padding: 10px 16px 18px; text-align: center; font-size: 14px; color: #D5E0EE; }
.lightbox-nav { display: flex; gap: 8px; }
.ticket { background: #fff; border-radius: var(--radius-lg); padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; border: 2px dashed var(--line-2); }
.ticket .qr-box { padding: 0; }
.ticket-code { font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: .06em; }
.site-block h2 { margin-bottom: 10px; }
.prog-row { display: flex; gap: 14px; align-items: baseline; padding: 6px 0; }
.prog-row .t { width: 56px; flex: none; font-weight: 700; color: var(--lampone-dark); }
.info-row { padding: 10px 0; border-bottom: 1px solid #F5EDE2; }
.info-row:last-child { border-bottom: 0; }
.pay-box { border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.total-row strong { font-family: var(--display); font-size: 22px; }

/* ---------- Live Wall ---------- */
.wall-body { background: #0A1A30; color: #fff; margin: 0; height: 100vh; overflow: hidden; }
.wall { height: 100vh; display: flex; flex-direction: column; padding: 18px; gap: 14px; }
.wall-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wall-head h1 { color: #fff; font-size: clamp(22px, 2.6vw, 38px); }
.wall-stage { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 14px; }
.wall-hero { position: relative; border-radius: 22px; overflow: hidden; background: #12294A; display: flex; align-items: center; justify-content: center; }
.wall-hero img { width: 100%; height: 100%; object-fit: contain; transition: opacity .6s; }
.wall-hero .wall-new { position: absolute; top: 16px; left: 16px; background: var(--brand); color: var(--brand-ink); font-weight: 700; padding: 6px 14px; border-radius: 14px; }
.wall-hero .wall-by { position: absolute; left: 16px; bottom: 16px; background: rgba(18, 10, 26, 0.72); font-size: clamp(14px, 1.3vw, 20px); font-weight: 600; padding: 8px 14px; border-radius: 12px; max-width: calc(100% - 32px); }
.wall-side { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 14px; min-height: 0; }
.wall-side div { border-radius: 16px; overflow: hidden; background: #12294A; }
.wall-side img { width: 100%; height: 100%; object-fit: cover; }
.wall-foot { display: flex; align-items: center; gap: 16px; background: var(--notte); border-radius: 16px; padding: 12px 16px; font-size: clamp(14px, 1.3vw, 20px); }
.wall-foot .wall-qr { width: clamp(64px, 7vw, 110px); background: #fff; border-radius: 8px; padding: 6px; flex: none; }
.wall-foot .wall-qr svg { display: block; width: 100%; height: auto; }
.wall-empty { color: #BCCBDF; font-size: 22px; text-align: center; padding: 20px; }
.wall-controls { position: fixed; right: 16px; top: 16px; display: flex; gap: 8px; opacity: 0; transition: opacity .3s; }
.wall-body:hover .wall-controls { opacity: 1; }
@media (max-width: 800px) { .wall-stage { grid-template-columns: 1fr; } .wall-side { display: none; } }

/* ---------- Demo ---------- */
.demo-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.demo-pane-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8A2350; margin-bottom: 0; }
.demo-icon { width: 52px; height: 52px; border-radius: 16px; background: var(--lampone-soft); color: var(--lampone); display: flex; align-items: center; justify-content: center; }
.demo-icon.alt { background: var(--albicocca-soft); color: var(--albicocca-scura); }
.demo-icon svg { width: 28px; height: 28px; }
.demo-counter { min-width: 200px; }
.demo-list { display: flex; flex-direction: column; gap: 10px; }
.demo-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.demo-thumb { position: relative; width: 72px; height: 72px; flex: none; border-radius: 10px; overflow: hidden; background: #EFE5D8; }
.demo-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Stampa (codici invito, QR) ---------- */
@media print {
  .site-header, .app-top, .side-nav, .bottom-nav, .no-print, .site-footer { display: none !important; }
  body { background: #fff; }
  .app-shell { padding: 0; }
  .card { border: 0; padding: 0; }
}

/* ---------- Integrazioni ---------- */
.qr-box video { width: 100%; max-width: 420px; border-radius: 12px; }
details > summary.btn { list-style: none; }
details > summary.btn::-webkit-details-marker { display: none; }
.stepper .input { width: 72px; min-height: 44px; text-align: center; }
.code-big { font-family: ui-monospace, Consolas, monospace; font-size: 15px; background: var(--panna); border-radius: 10px; padding: 10px 12px; word-break: break-all; }
.voucher-list { width: 100%; min-height: 220px; font-family: ui-monospace, Consolas, monospace; font-size: 14px; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; }
.section-dark .lead { color: #D5E0EE; }
.section-dark .checks svg { color: var(--albicocca); }
.section-dark h2 { color: #fff; }

/* ---------- Video, mi piace e commenti ---------- */
.tile-video { position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 3px; background: rgba(10, 26, 48, 0.78); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px 2px 4px; border-radius: 10px; pointer-events: none; }
.tile-video svg { width: 13px; height: 13px; }
.g-tile { position: relative; }
.tile .tile-video { bottom: auto; top: 38px; left: 6px; }
.tile-likes { position: absolute; right: 6px; bottom: 6px; background: rgba(255, 255, 255, 0.94); color: var(--lampone-dark); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; pointer-events: none; }
.queue-item .ph-video { background: var(--notte) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23ffffff'/%3E%3C/svg%3E") center / 22px no-repeat; }
.lightbox-img video { max-width: 100%; max-height: 100%; border-radius: 6px; background: #000; }
.lightbox-social { padding: 0 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.social-bar { display: flex; justify-content: center; gap: 10px; }
.social-btn { min-height: 44px; min-width: 72px; padding: 0 14px; border-radius: 22px; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font: 600 15px var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.social-btn svg { width: 20px; height: 20px; }
.social-btn.is-on { background: var(--lampone); }
.social-btn.is-on svg { fill: currentColor; }
.comments-panel { background: #fff; color: var(--ink); border-radius: 16px; max-width: 640px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; max-height: 42vh; }
.comment-list { overflow-y: auto; padding: 12px 14px 0; display: flex; flex-direction: column; gap: 10px; }
.comment { border-bottom: 1px solid #F5EDE2; padding-bottom: 8px; }
.comment:last-child { border-bottom: 0; }
.comment p { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment.is-pending { opacity: .7; }
.comment-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: 13px; }
.comment-form { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }
.comment-form input, .comment-form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px; font: 400 15px/1.35 var(--font); color: var(--ink); background: #fff; }
.comment-form textarea { resize: none; min-height: 44px; }
.comment-row { display: flex; gap: 8px; align-items: flex-end; }
.comment-row .icon-btn { flex: none; background: var(--lampone); border-color: var(--lampone); color: #fff; }
.link-btn { background: none; border: 0; padding: 0; color: var(--lampone-dark); text-decoration: underline; cursor: pointer; font-family: var(--font); }
.comment-admin-list { display: flex; flex-direction: column; }
.comment-admin { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid #F5EDE2; }
.comment-admin:last-child { border-bottom: 0; }
.comment-admin p, .demo-item p { white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; background: #EFE5D8; }
.comment-quote { margin: 0; padding: 10px 14px; border-left: 4px solid var(--line-2); background: var(--panna); border-radius: 0 12px 12px 0; overflow-wrap: anywhere; }
.wall-hero video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* Acquisto online: scelta privato/azienda senza script (campi nascosti con :has, il server valida comunque) */
.segmented label { position: relative; min-height: 40px; padding: 0 16px; border-radius: 20px; display: inline-flex; align-items: center; font: 600 14px var(--font); cursor: pointer; }
.segmented label input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.segmented label:has(input:checked) { background: var(--notte); color: #fff; }
.segmented label:has(input:focus-visible) { outline: 2px solid var(--lampone); outline-offset: 2px; }
.billing:has(input[name="type"][value="person"]:checked) .only-company,
.billing:has(input[name="type"][value="company"]:checked) .only-person { display: none; }
.price-tag { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.order-lines { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; }
.order-lines .total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; }
.card-narrow { max-width: 560px; }
.purchase fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.invoice-form { flex-direction: column; align-items: stretch; gap: 8px; min-width: 170px; }
.purchase .choice > .row { flex-wrap: nowrap; align-items: flex-start; }
.purchase .choice > .row input { margin-top: 2px; }

/* ---------- Editor del sito a moduli ---------- */
.tpl-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.tpl-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 14px 44px; border: 1.5px solid var(--line-2); border-radius: var(--radius); background: #fff; cursor: pointer; }
.tpl-card input { position: absolute; left: 14px; top: 16px; width: 20px; height: 20px; margin: 0; accent-color: var(--lampone); }
.tpl-card:has(input:checked) { border-color: var(--notte); box-shadow: inset 0 0 0 1px var(--notte); }
.tpl-name { font-weight: 700; }
.pal-chip, .font-chip { min-height: 44px; }
.pal-chip:has(input:checked), .font-chip:has(input:checked) { background: var(--notte); border-color: var(--notte); color: #fff; }
.pal-chip:has(input:focus-visible), .font-chip:has(input:focus-visible) { outline: 3px solid rgba(226, 54, 111, 0.35); outline-offset: 2px; }
.sw { display: inline-flex; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0, 0, 0, 0.12); }
.sw i { width: 12px; height: 24px; }
.sw i:nth-child(1) { background: var(--sw1); }
.sw i:nth-child(2) { background: var(--sw2); }
.sw i:nth-child(3) { background: var(--sw3); }
.sw i:nth-child(4) { background: var(--sw4); }
.ft-sample { font-family: var(--ft-d); font-weight: var(--ft-w); font-size: 20px; line-height: 1; min-width: 28px; text-align: center; }
.block-editor.is-hero { border-color: var(--line-2); }
.rows-editor .r.r3 { grid-template-columns: 90px 1fr 1fr auto; }
.rows-editor .r.r4 { grid-template-columns: 1fr 1fr 1fr 1fr auto; }
.rows-editor .r.r2c { grid-template-columns: 1fr 2fr auto; }
@media (max-width: 640px) {
  .rows-editor .r.r3, .rows-editor .r.r4 { grid-template-columns: 1fr 1fr; }
  .rows-editor .r.r3 .icon-btn, .rows-editor .r.r4 .icon-btn { justify-self: start; }
}
.color-pick { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 12px; }
.color-pick input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--lampone); }
.color-pick input[type="color"] { width: 40px; height: 32px; border: 0; padding: 0; background: none; }
.img-slot { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.img-now { display: flex; align-items: center; gap: 12px; }
.img-now img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
.img-empty { width: 120px; height: 80px; border-radius: 10px; background: var(--panna); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-3); }
.img-empty svg { width: 28px; height: 28px; }
.pick-box > summary { cursor: pointer; font-weight: 600; font-size: 14px; min-height: 36px; display: flex; align-items: center; }
.pick-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.pick { position: relative; display: block; cursor: pointer; border-radius: 10px; overflow: hidden; border: 3px solid transparent; }
.pick img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pick input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; margin: 0; accent-color: var(--lampone); }
.pick:has(input:checked) { border-color: var(--lampone); }
.module-look { align-items: end; }
.add-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.add-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 12px 14px; min-height: 64px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.add-card strong { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.add-card svg { width: 16px; height: 16px; }
.add-card:hover { border-color: var(--notte); }
.add-card[disabled] { opacity: .55; cursor: not-allowed; }
.sticky-save { position: sticky; bottom: 0; z-index: 5; background: var(--panna); padding: 12px 0; border-top: 1px solid var(--line); }
.media-tile { display: flex; flex-direction: column; gap: 6px; }
.media-tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.stock-row { display: grid; gap: 14px; grid-template-columns: 160px minmax(0, 1fr); padding: 14px 0; border-top: 1px solid var(--line); }
.stock-row img { width: 160px; height: 110px; object-fit: cover; border-radius: 10px; }
@media (max-width: 640px) { .stock-row { grid-template-columns: 1fr; } .stock-row img { width: 100%; height: auto; aspect-ratio: 3 / 2; } }
#site-form fieldset:not(.img-slot) { border: 0; padding: 0; margin: 0; min-width: 0; }
#site-form fieldset > legend { padding: 0; margin-bottom: 8px; }
[data-tpl-opts][hidden] { display: none; }

/* ---------- Selettore del colore del marchio (Organizzazione) ---------- */
.color-field { display: flex; align-items: center; gap: 8px; }
.color-field input[type=text] { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; }
.color-pick { flex: none; width: 48px; height: 48px; padding: 3px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; }
.color-pick::-webkit-color-swatch-wrapper { padding: 0; }
.color-pick::-webkit-color-swatch { border: 0; border-radius: 8px; }
.color-pick::-moz-color-swatch { border: 0; border-radius: 8px; }
.color-pick:focus-visible { outline: 3px solid rgba(226, 54, 111, 0.35); outline-offset: 2px; }
.color-pick:disabled { cursor: not-allowed; opacity: .6; }
.color-field .btn { flex: none; }
.color-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.color-preview-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 18px; font: 700 14px var(--font); background: var(--lampone); color: #fff; }
.color-preview-btn svg { width: 16px; height: 16px; }

/* ---------- Editor del sito a due colonne: anteprima al centro, moduli a destra ---------- */
.sb-head { align-items: center; }
.sb-head-acts { gap: 12px; align-items: center; }
.sb-pub { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 8px 12px; }

.sb-look { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; padding: 16px 18px; }
.sb-step { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sb-step[hidden] { display: none; }
.sb-step legend { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 8px; }
.sb-num { width: 22px; height: 22px; border-radius: 11px; background: var(--notte); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.sb-tpls { display: flex; flex-wrap: wrap; gap: 8px; }
.sb-tpl { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 92px; padding: 10px 6px 8px; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; cursor: pointer; text-align: center; }
.sb-tpl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sb-tpl:has(input:checked) { border-color: var(--notte); box-shadow: inset 0 0 0 1.5px var(--notte); }
.sb-tpl:has(input:focus-visible) { outline: 3px solid rgba(226, 54, 111, 0.35); outline-offset: 2px; }
.sb-tpl .sw i { width: 14px; height: 30px; }
.sb-tpl-name { font-weight: 700; font-size: 13px; }
.sb-look .chips { flex-wrap: wrap; }
.sb-look .pal-chip .chip-l { white-space: nowrap; }
.sb-nav-check { align-self: flex-end; font-size: 14px; }

.sb { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.sb-stage { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sb-stage-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sb-tip { flex: 1; min-width: 160px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; padding: 3px; gap: 2px; }
.seg[hidden] { display: none; }
.seg-b { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.seg-b svg { width: 16px; height: 16px; }
.seg-b.is-on { background: var(--notte); color: #fff; }
.sb-status { min-height: 20px; font-weight: 600; color: var(--ink-3); }
.sb-status.is-ok::before { content: "✓ "; color: #1E7A4C; }
.sb-status.is-saving, .sb-status.is-dirty { color: var(--ink-3); }
.sb-status.is-err { color: var(--err-ink); }
.sb-viewport { position: relative; height: calc(100vh - 150px); min-height: 480px; border-radius: 20px; background: repeating-linear-gradient(45deg, #EFE5D8 0 10px, #F5ECE0 10px 20px); overflow: hidden; display: flex; justify-content: center; border: 1px solid var(--line-2); }
.sb-frame { flex: none; display: block; border: 0; background: #fff; box-shadow: 0 10px 30px rgba(10, 26, 48, 0.18); width: 400px; height: 100%; transform-origin: 0 0; }
.sb-viewport:not(.is-desktop) .sb-frame { border-radius: 16px; margin: 0 auto; }
.sb-viewport.is-desktop { justify-content: flex-start; }

.sb-side { min-width: 0; }
.sb-side-head h2 { font-size: 18px; }
.sb-drag-tip { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; }
.sb-drag-tip svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.sb-msg:empty { display: none; }
.sb-msg { display: flex; flex-direction: column; gap: 6px; }
.sb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sb-item { scroll-margin-top: 84px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: box-shadow .15s, border-color .15s; }
.sb-item.is-open { border-color: var(--notte); box-shadow: 0 6px 18px rgba(10, 26, 48, 0.10); }
.sb-item.just-moved { border-color: var(--lampone); }
.sb-item.is-dragging { position: fixed; z-index: 1000; box-shadow: 0 16px 36px rgba(10, 26, 48, 0.28); pointer-events: none; opacity: .97; }
.sb-ghost { list-style: none; border: 2px dashed var(--lampone); border-radius: 14px; background: rgba(226, 54, 111, 0.06); }
body.sb-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.sb-row { display: flex; align-items: center; gap: 4px; padding: 4px; min-height: 52px; }
.sb-grip { flex: none; width: 34px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: none; color: var(--ink-3); cursor: grab; touch-action: none; }
.sb-grip svg { width: 18px; height: 18px; }
.sb-grip:hover, .sb-grip:focus-visible { background: var(--panna); color: var(--ink); outline: none; }
.sb-grip:focus-visible { box-shadow: 0 0 0 3px rgba(226, 54, 111, 0.35); }
.sb-grip.is-fixed { cursor: default; opacity: .55; }
.sb-grip.is-fixed svg { width: 15px; height: 15px; }
.sb-name { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 4px; border: 0; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.sb-name strong { font-size: 14px; }
.sb-sub { font-size: 12.5px; color: var(--ink-3); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-name .badge { margin-top: 2px; }
.sb-acts { display: flex; gap: 4px; flex: none; }
.icon-btn-sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-btn-sm svg { width: 17px; height: 17px; }
.sb-edit { padding: 0 12px 14px; display: flex; flex-direction: column; gap: 12px; }
.sb-js .sb-item:not(.is-open) .sb-edit { display: none; }
.sb-js .sb-pane[hidden] { display: none; }
.sb-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 -12px; padding: 0 12px; }
.sb-tabs[hidden] { display: none; }
.sb-tab { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 10px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--ink-3); font: 600 13px var(--font); cursor: pointer; margin-bottom: -1px; }
.sb-tab svg { width: 15px; height: 15px; }
.sb-tab.is-on { color: var(--ink); border-bottom-color: var(--lampone); }
.sb-pane .rows-editor .r, .sb-pane .rows-editor .r.r3, .sb-pane .rows-editor .r.r4, .sb-pane .rows-editor .r.r2c { grid-template-columns: 1fr auto; }
.sb-pane .rows-editor .r .input:not(:first-child) { grid-column: 1; }
.sb-pane .rows-editor .r .icon-btn { grid-column: 2; grid-row: 1; }
.sb-pane .rows-editor .r { padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.sb-pane .pick-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.sb-pane .img-now img { width: 96px; height: 64px; }
.sb-del { color: var(--err-ink); }
.sb-edit > .sb-del { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; }
/* Con JavaScript l'eliminazione chiede conferma e salva subito: si vede come un pulsante, non come una casella. */
.sb-js .sb-edit > .sb-del { position: relative; cursor: pointer; font-weight: 600; }
.sb-js .sb-edit > .sb-del input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.sb-js .sb-edit > .sb-del:hover span { text-decoration: underline; text-underline-offset: 3px; }
.sb-js .sb-edit > .sb-del:has(input:focus-visible) { outline: 3px solid var(--err-ink); outline-offset: 3px; }
.sb-del svg { width: 15px; height: 15px; vertical-align: -2px; }
.upload-field { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 10px 12px; background: var(--panna); }
.upload-field .label { display: inline-flex; align-items: center; gap: 6px; }
.upload-field .label svg { width: 16px; height: 16px; }

.sb-catalog { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.sb-catalog h2 { font-size: 16px; }
.sb-add { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sb-add-b { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 6px 10px; border: 1px dashed var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); font: 600 13px/1.2 var(--font); text-align: left; cursor: pointer; }
.sb-add-b svg { flex: none; width: 15px; height: 15px; color: var(--lampone); }
.sb-add-b:hover:not([disabled]) { border-style: solid; border-color: var(--notte); }
.sb-add-b[disabled] { opacity: .45; cursor: not-allowed; }
.sb-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; }
.sb-save[hidden] { display: none; }
#foto-sito > summary { cursor: pointer; list-style: none; }
#foto-sito > summary::-webkit-details-marker { display: none; }

/* Testo con grassetto e corsivo */
.rich { border: 1px solid var(--line-2); border-radius: 12px; background: #fff; overflow: hidden; }
.rich:focus-within { border-color: var(--lampone); outline: 3px solid rgba(226, 54, 111, 0.18); }
.rich-bar { display: flex; gap: 2px; padding: 4px; border-bottom: 1px solid var(--line); background: var(--panna); }
.rich-b { min-width: 36px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.rich-b b, .rich-b i { font-size: 15px; font-family: Georgia, "Times New Roman", serif; }
.rich-b:hover { background: #fff; }
.rich-b.is-on { background: var(--notte); color: #fff; }
.rich-ed { min-height: 84px; max-height: 320px; overflow-y: auto; padding: 10px 12px; font: 400 15px/1.5 var(--font); color: var(--ink); outline: none; white-space: pre-wrap; overflow-wrap: anywhere; }
.rich-ed.is-empty::before { content: attr(data-ph); color: #9AA5B5; pointer-events: none; }
.rich-warn { display: block; padding: 0 12px 8px; color: var(--err-ink); }

@media (max-width: 1100px) {
  .sb { grid-template-columns: 1fr; }
  .sb-stage { position: static; }
  .sb-viewport { height: 70vh; min-height: 420px; }
}
@media (max-width: 520px) {
  .sb-look { padding: 14px; gap: 12px; }
  .sb-step { width: 100%; }
  .sb-tpls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .sb-tpl { width: auto; padding: 8px 2px 6px; }
  .sb-tpl .sw i { width: 10px; height: 24px; }
  .sb-tpl-name { font-size: 11.5px; }
  .sb-look .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; scrollbar-width: none; }
  .sb-look .chip { flex: none; }
  .sb-head-acts { width: 100%; justify-content: space-between; }
  [data-device-switch] { display: none !important; }
  .sb-add { grid-template-columns: 1fr; }
  .sb-viewport { border-radius: 14px; }
}

/* Libreria immagini: istruzioni per l'importazione via FTP */
.code-line { background: var(--panna); border-radius: 10px; padding: 8px 12px; font-size: 15px; }
.mono-list { margin: 4px 0 0; padding-left: 18px; overflow-wrap: anywhere; }
.mono-list li { margin: 2px 0; }

/* Righe elenco eventi e menu: icone a misura (prima si allargavano a tutta la riga) */
.event-row > svg { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.event-row .btn { flex: none; }
.event-next { color: var(--ink-2); }
.event-next.warn { color: var(--lampone-dark); font-weight: 600; }

/* Prossimi passi guidati nel Riepilogo */
.next-steps { list-style: none; display: flex; flex-direction: column; }
.next-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #F5EDE2; }
.next-step:last-child { border-bottom: 0; }
.next-step .ns-dot { width: 30px; height: 30px; border-radius: 15px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--albicocca-soft); color: #6E4300; font: 800 14px/1 var(--display); }
.next-step .ns-dot svg { width: 16px; height: 16px; }
.next-step.done .ns-dot { background: var(--ok-bg); color: var(--ok-ink); }
.next-step.todo .ns-dot { background: var(--lampone-soft); color: var(--lampone-dark); }
.next-step .ns-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.next-step .ns-body strong { font-weight: 700; }
.next-step.done .ns-body strong { color: var(--ink-2); }
.next-step .ns-body .small { color: var(--ink-2); }
.next-step .ns-go { flex: none; align-self: center; }
@media (max-width: 560px) {
  .next-step { flex-wrap: wrap; }
  .next-step .ns-body { flex: 1 1 calc(100% - 44px); }
  .next-step .ns-go { margin-left: 44px; align-self: flex-start; }
}

/* Aiuto «?» che si apre al tocco (niente tooltip: sul telefono non si vedono) */
.help { display: inline-block; vertical-align: middle; position: relative; }
.help > summary { list-style: none; cursor: pointer; width: 22px; height: 22px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: #EAF0F7; color: var(--ink-2); font: 700 13px/1 var(--font); }
.help > summary::-webkit-details-marker { display: none; }
.help[open] > summary { background: var(--notte); color: #fff; }
.help-text { position: absolute; z-index: 20; top: 30px; left: -10px; width: max-content; max-width: min(340px, calc(100vw - 48px)); padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--shadow); color: var(--ink-2); font: 400 14px/1.45 var(--font); letter-spacing: 0; text-transform: none; }
.help-block { width: 100%; }
.head-help { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Avviso per chi inizia */
.guide-banner { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--albicocca-soft); border-radius: var(--radius); padding: 14px 18px; }
.guide-banner svg { width: 28px; height: 28px; color: #6E4300; flex: none; }
.guide-banner .grow { min-width: 200px; }

/* Pagina Guida */
.guide-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.guide-tabs a { text-decoration: none; }
.guide-tabs a[aria-current="true"] { background: var(--notte); color: #fff; }
.guide-steps { list-style: none; counter-reset: gs; display: flex; flex-direction: column; gap: 14px; }
.guide-steps > li { counter-increment: gs; position: relative; padding: 18px 18px 18px 66px; background: var(--white); border-radius: var(--radius); }
.guide-steps > li::before { content: counter(gs); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 16px; background: var(--lampone); color: #fff; font: 800 15px/32px var(--display); text-align: center; }
.guide-steps h3 { margin-bottom: 6px; }
.guide-steps p, .guide-steps li li { color: var(--ink-2); font-size: 15px; }
.guide-steps ul { margin: 8px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.guide-where { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.guide-where strong { color: var(--ink); }

/* Pagine pubbliche: piede sempre in fondo alla finestra anche con poco contenuto (es. Accedi) */
body:has(> .site-footer) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(> .site-footer) > .site-footer { margin-top: auto; }

/* ---------- Galleria stile Instagram: cuore sulla foto, commenti dal basso ---------- */
.g-heart { position: absolute; right: 4px; bottom: 4px; min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: rgba(10, 26, 48, 0.42); color: #fff; font: 700 12px/1 var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.g-heart svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.g-heart .g-n:empty { display: none; }
.g-heart.is-on { color: #FF3B6B; background: rgba(255, 255, 255, 0.92); }
.g-heart.is-on svg { fill: currentColor; filter: none; }
.g-heart:active svg { transform: scale(1.25); }
.g-cmt { position: absolute; left: 6px; bottom: 8px; display: inline-flex; align-items: center; gap: 3px; color: #fff; font: 700 12px/1 var(--font); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); pointer-events: none; }
.g-cmt svg { width: 16px; height: 16px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
.g-open .tile-video { bottom: auto; top: 6px; }

.lightbox-img { position: relative; }
.lightbox-img img { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.lb-heart { position: absolute; right: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 27px; border: 0; background: rgba(10, 26, 48, 0.45); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lb-heart svg { width: 30px; height: 30px; }
.lb-heart.is-on { color: #FF3B6B; background: rgba(255, 255, 255, 0.95); }
.lb-heart.is-on svg { fill: currentColor; }
.lb-heart:active svg { transform: scale(1.2); }
.lb-pop { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; color: #fff; opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .45)); }
.lb-pop svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.lb-pop.go { animation: lb-pop .8s ease-out; }
@keyframes lb-pop { 0% { opacity: 0; transform: scale(.3); } 15% { opacity: 1; transform: scale(1.15); } 30% { transform: scale(.95); } 45% { transform: scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: scale(1) translateY(-20px); } }
@media (prefers-reduced-motion: reduce) { .lb-pop.go { animation-duration: .01s; } }

.lb-post { width: 100%; max-width: 640px; margin: 0 auto; padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 6px; color: #fff; font-size: 14px; }
.lb-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.lb-likes { font-weight: 700; }
.lb-act { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; border: 0; background: none; color: #fff; font: 700 14px/1 var(--font); cursor: pointer; }
.lb-act svg { width: 24px; height: 24px; }
.lb-caption { margin: 0; color: #E8EEF6; overflow-wrap: anywhere; }
.lb-caption strong { color: #fff; }
.lb-more { align-self: flex-start; border: 0; background: none; padding: 0; color: #A9BBD3; font: 400 14px var(--font); cursor: pointer; }
.lb-preview { display: flex; flex-direction: column; gap: 3px; }
.lb-preview .cm-line { color: #E8EEF6; }
.lb-preview .cm-line strong { color: #fff; }
.lb-add { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin-top: 4px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 22px; background: rgba(255, 255, 255, 0.06); color: #A9BBD3; font: 400 15px var(--font); text-align: left; cursor: text; }
.lb-add svg { width: 20px; height: 20px; flex: none; }

.cm { display: flex; flex-direction: column; gap: 2px; }
.cm-line { margin: 0; font-size: 14px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.cm-line strong { margin-right: 2px; }
.cm.is-pending .cm-line { opacity: .65; }
.cm-meta { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); }
.cm-meta .link-btn { font-size: 12px; color: var(--ink-3); }
.cm-wait { font-size: 12px; color: #A9BBD3; font-style: italic; }

.cm-sheet { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; }
.cm-sheet.hidden { display: none; }
.cm-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.cm-panel { position: relative; background: #fff; color: var(--ink); border-radius: 18px 18px 0 0; max-height: 78%; max-height: 78dvh; display: flex; flex-direction: column; width: 100%; max-width: 640px; margin: 0 auto; box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); animation: cm-up .22s ease-out; }
@keyframes cm-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.cm-head { position: relative; display: flex; align-items: center; justify-content: center; padding: 16px 52px 10px; border-bottom: 1px solid var(--line); }
.cm-head h2 { font-size: 16px; }
.cm-head .icon-btn { position: absolute; right: 10px; top: 8px; }
.cm-grip { position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--line-2); }
.cm-list { flex: 1; min-height: 120px; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.cm-empty { margin: auto; color: var(--ink-3); font-size: 14px; text-align: center; }
.cm-form { border-top: 1px solid var(--line); padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 6px; background: #fff; }
.cm-note { margin: 0; color: var(--ink-3); }
.cm-note.is-err { color: var(--err-ink); }
.cm-row { display: flex; align-items: flex-end; gap: 8px; }
.cm-row textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; border: 1px solid var(--line-2); border-radius: 22px; padding: 11px 16px; font: 400 16px/1.35 var(--font); color: var(--ink); background: #fff; }
.cm-send { flex: none; min-height: 44px; padding: 0 10px; border: 0; background: none; color: var(--lampone); font: 700 15px var(--font); cursor: pointer; }
.cm-send:disabled { opacity: .5; }
.cm-sign { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.cm-sign input { flex: 1; min-width: 0; min-height: 36px; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font: 400 15px var(--font); color: var(--ink); }

/* Partita IVA: esito del controllo mentre si scrive */
.vat-msg:empty { display: none; }
.vat-msg.is-ok { color: var(--ok-ink); }
.vat-msg.is-err { color: var(--err-ink); }

/* Menu in alto: «Demo» sempre visibile, anche da telefono */
.site-nav a.link.link-demo { font-weight: 600; color: var(--lampone-dark); }

/* ---------- Finestra di conferma dell'app (sostituisce la conferma del browser) ----------
   Tre toni: ok (verde, azioni positive), warn (albicocca, azioni da ponderare), danger (rosso, azioni definitive). */
dialog.cfm { max-width: min(420px, calc(100vw - 32px)); width: 100%; border: 0; border-top: 6px solid var(--ok); overflow: hidden; border-radius: 22px; padding: 0; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(10, 26, 48, 0.28); font-family: var(--font); }
dialog.cfm::backdrop { background: rgba(10, 26, 48, 0.55); backdrop-filter: blur(2px); }
dialog.cfm[open] { animation: cfm-in .18s ease-out; }
@keyframes cfm-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.cfm-in { padding: 26px 24px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.cfm-ico { width: 56px; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; background: var(--ok-bg); color: var(--ok); }
.cfm-ico svg { width: 28px; height: 28px; }
.cfm-body { display: flex; flex-direction: column; gap: 6px; }
.cfm-title { margin: 0; font: 800 20px/1.25 var(--display); letter-spacing: -0.01em; color: var(--ink); }
.cfm-text { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.cfm-actions { display: flex; gap: 10px; width: 100%; margin-top: 6px; }
.cfm-btn { flex: 1; min-height: 48px; padding: 0 16px; border-radius: 24px; border: 1.5px solid transparent; font: 700 15px/1.2 var(--font); cursor: pointer; }
.cfm-no { background: #fff; border-color: var(--line-2); color: var(--ink); }
.cfm-no:hover { background: var(--panna); }
.cfm-yes { background: var(--ok); color: #fff; }
.cfm-yes:hover { filter: brightness(.94); }
.cfm-btn:focus-visible { outline: 3px solid var(--albicocca); outline-offset: 2px; }
/* Attenzione */
dialog.cfm-warn { border-top-color: var(--albicocca); }
.cfm-warn .cfm-ico { background: var(--warn-bg); color: var(--albicocca-scura); }
.cfm-warn .cfm-yes { background: var(--albicocca); color: #3A2400; }
/* Pericolo */
dialog.cfm-danger { border-top-color: var(--err); }
.cfm-danger .cfm-ico { background: var(--err-bg); color: var(--err); }
.cfm-danger .cfm-yes { background: var(--err); color: #fff; }
@media (max-width: 420px) { .cfm-actions { flex-direction: column-reverse; } }
@media (prefers-reduced-motion: reduce) { dialog.cfm[open] { animation: none; } }
/* /assets/css/app.css — righe da aggiungere in fondo al file */

/* ---------- Home: schermata vera nello smartphone dell'hero ---------- */
/* Lo screenshot della pagina ospite riempie lo schermo; i finti elementi (copertina, pulsanti, griglia) restano nel markup ma non si vedono. */
.hero-visual .phone-screen {
  background: #FEF6EB url('/assets/img/hero-telefono-poster.jpg') center top / cover no-repeat;
}
.hero-visual .phone-screen > * { display: none; }
/* ---------- Libro degli ospiti ---------- */
.gb-title { display: flex; align-items: center; gap: 8px; margin: 0; }
.gb-title svg { width: 22px; height: 22px; flex: none; color: var(--lampone); }
.gb-list { display: flex; flex-direction: column; gap: 12px; }
.gb-item { display: flex; flex-direction: column; gap: 10px; }
.gb-who, .gb-body { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.gb-audio { display: flex; align-items: center; gap: 10px; }
.gb-audio svg { width: 20px; height: 20px; flex: none; color: var(--lampone); }
.gb-audio audio { flex: 1; min-width: 0; height: 40px; }
.gb-actions { gap: 8px; flex-wrap: wrap; }
.gb-public { margin-top: 32px; }
#gb-preview { width: 100%; }
#gb-rec-btn.is-rec { background: var(--err-bg); border-color: var(--err); color: var(--err-ink); }
.gb-err { color: var(--err-ink); }
.gb-ok { color: var(--ok-ink); }

/* ---------- Pagine per tipo di evento e strumenti da stampare ---------- */
.lp-example { display: flex; align-items: center; justify-content: center; }
.lp-example .demo-prev-frame { --s: 0.72; }
.lp-links { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-types { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lp-type { display: flex; align-items: center; gap: 12px; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.lp-type svg { width: 26px; height: 26px; flex: none; color: var(--lampone); }
.lp-type:hover { border-color: var(--lampone); color: var(--ink); }
.tool-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tool-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--ink); text-decoration: none; }
a.tool-card:hover { border-color: var(--lampone); color: var(--ink); }
.tool-card > svg { width: 30px; height: 30px; color: var(--lampone); }
.tool-card h2, .tool-card p { margin: 0; }
.tool-form { max-width: 720px; }
.tool-styles { flex-wrap: wrap; }
@media (max-width: 900px) { .lp-example .demo-prev-frame { --s: 0.6; } }

/* ---------- Nome dell'ospite all'ingresso ---------- */
.guest-area { display: contents; }
.guest-area[hidden], .hello[hidden] { display: none; }
.hello { margin: 0; font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.link-btn { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 14px; color: var(--lampone-dark); text-decoration: underline; cursor: pointer; }

/* ---------- Home: sezione Live Wall con il video ---------- */
.lw-in { display: flex; flex-direction: column; gap: 32px; }
.lw-in .section-title { margin-bottom: 0; }
.lw-frame { position: relative; border-radius: 22px; overflow: hidden; background: #0A1A30; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); aspect-ratio: 16 / 9; }
.lw-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.lw-points li { display: flex; gap: 12px; align-items: flex-start; color: #D5E0EE; line-height: 1.5; }
.lw-points strong { color: #fff; }
.lw-points svg { width: 24px; height: 24px; flex: none; color: #FFB547; margin-top: 1px; }
@media (max-width: 640px) { .lw-frame { aspect-ratio: 9 / 16; max-height: 86vh; margin: 0 auto; width: 100%; max-width: 480px; } }

/* ---------- Delega del cliente (fac-simile da leggere e copiare, non da scaricare o stampare) ---------- */
.mandate-text { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; padding: 24px; font-family: Georgia, 'Times New Roman', serif; font-size: 15px; line-height: 1.6; color: var(--ink); }
.mandate-text h3 { font-family: inherit; font-size: 17px; text-align: center; margin: 0 0 16px; }
.mandate-text p { margin: 0 0 12px; }
.mandate-text .center { text-align: center; }
.mandate-text ol { margin: 0 0 12px; padding-left: 22px; }
.mandate-text li { margin-bottom: 6px; }
.mandate-text .opt { display: block; margin: 6px 0 6px 8px; }
.mandate-text .sign { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: 28px; }
.mandate-print { display: none; }
@media print { .mandate-text { display: none !important; } .mandate-print { display: block; } }

/* ---------- Selettore della lingua: bandierine Italia / Regno Unito ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.ls-flag { min-width: 40px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.ls-flag svg { width: 24px; height: 16px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(20, 52, 95, 0.18); display: block; }
a.ls-flag svg { opacity: .55; filter: saturate(.6); transition: opacity .15s, filter .15s; }
a.ls-flag:hover svg, a.ls-flag:focus-visible svg { opacity: 1; filter: none; }
a.ls-flag:focus-visible { outline: 2px solid var(--lampone); outline-offset: 1px; }
.ls-flag[aria-current] svg { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--lampone); }
.lang-switch-nav { padding: 0 4px; }
.lang-switch-burger { margin: 16px 0 0; }
.lang-switch-foot { margin-right: 12px; vertical-align: middle; }
.lang-switch-foot .ls-flag, .guest-foot .ls-flag { min-height: 32px; }
/* Pannello gestore: modulo in riga per aggiungere giorni a una sede */
.inline-form { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.inline-form .input-sm { width: auto; max-width: 140px; min-height: 36px; padding: 4px 8px; }
.inline-form input[type=number].input-sm { max-width: 72px; }
/* Home: «Per chi è», tre schede (privati, professionisti, locali) */
.who-cards { align-items: stretch; }
.who-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--notte); text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; scroll-margin-top: 90px; }
.who-card:hover { transform: translateY(-3px); border-color: var(--lampone); box-shadow: 0 20px 40px -24px rgba(20, 52, 95, .45); }
.who-card:focus-visible { outline: 3px solid rgba(226, 54, 111, .4); outline-offset: 3px; }
.who-img { display: block; aspect-ratio: 16 / 11; overflow: hidden; background: var(--panna, #FFF6EC); }
.who-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.who-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.who-body strong { font-family: var(--font-display, 'Jakarta'), sans-serif; font-size: 22px; letter-spacing: -0.02em; }
.who-body > span { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.who-body em { font-style: normal; font-weight: 700; color: var(--lampone); font-size: 15px; }
.who-body b { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 15px; }
.who-body b svg { width: 18px; height: 18px; }
.who-more { margin-top: 24px; font-size: 15px; color: var(--ink-2); }

/* 1.2.0 · elenchi numerati delle pagine legali (termini art. 12.3, nomina punto 3) e riga della versione nel footer */
.legal ol { padding-left: 28px; }
.legal ol > li { padding-left: 2px; }
.footer-version { margin-top: 6px; font-size: 12px; opacity: .6; }

/* Crediti: riga delle scadenze sotto ogni pacchetto, con l'icona del calendario della misura del testo. */
.credit-exp td { color: var(--ink-2); padding-top: 0; }
.credit-exp svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px; }
