@charset "UTF-8";
/*
 * TrilùTable 6.0 · Impostazioni (prefix st-), «Scuro premium» (docs/sviluppo/DESIGN-V6.md).
 * Shared components (.page-header, .panel, .field, .input, .select, .switch, .switch-field, .chip, .pill, .banner,
 * .btn, .form-error) come from styles.css; this file adds the section navigation, the section panels and their parts.
 */

.st-layout { display: grid; grid-template-columns: 212px minmax(0, 1fr); gap: 28px; align-items: start; min-width: 0; }
.st-layout button { font: inherit; }
.st-layout h2, .st-layout h3, .st-layout p { margin: 0; }
.st-muted { font-weight: 400; color: var(--text-3); }
.st-hint { font-size: 13px; line-height: 19px; color: var(--text-3); }

/* ---------- Section navigation ---------- */
.st-nav { position: sticky; top: calc(var(--sticky-top) + 24px); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-nav-item {
  position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 7px;
  color: var(--text-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; text-decoration: none;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.st-nav-item .icon { color: var(--text-3); }
.st-nav-item:hover { color: var(--text-1); background: rgba(255, 255, 255, .035); }
.st-nav-item[aria-current="true"] { color: var(--text-1); background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035); }
.st-nav-item[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 9px; width: 2px; height: 16px; border-radius: 0 2px 2px 0; background: var(--accent); }
.st-nav-item[aria-current="true"] .icon { color: var(--text-1); }
.st-nav-item.is-off { color: var(--text-3); }
.st-nav-item.is-off .icon { color: var(--text-4); }
.st-nav-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.st-nav-short { display: none; }
.st-nav-off { font-size: 11.5px; font-weight: 400; color: var(--text-4); }
.st-nav-item .dot { width: 6px; height: 6px; }
.st-nav-item:focus-visible { outline-offset: -2px; }

/* ---------- Sections ---------- */
.st-sections { display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 920px; }
.st-sec { overflow: visible; scroll-margin-top: calc(var(--sticky-top) + 16px); }
.st-sec:focus { outline: none; }
.st-sec:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-sec.is-dirty { box-shadow: var(--highlight), 0 1px 2px rgba(0, 0, 0, .25), 0 0 0 1px var(--amber-line); }
.st-sec-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px 16px; border-bottom: 1px solid var(--line-soft); }
.st-sec-icon { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: var(--text-2); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.st-sec-text { flex: 1; min-width: 0; }
.st-sec-title { font-size: 15px; line-height: 22px; font-weight: 600; letter-spacing: -.01em; }
.st-sec-text p { margin-top: 2px; font-size: 13px; line-height: 19px; color: var(--text-2); }
.st-dirty-pill, .st-off-pill { flex: none; margin-top: 1px; }
.st-sec-body { padding: 18px 20px 4px; min-width: 0; }
.st-sec-error { margin: 0 20px 14px; }
.st-sec-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; padding: 12px 20px; border-top: 1px solid var(--line-soft); border-radius: 0 0 var(--r-lg) var(--r-lg); background: rgba(255, 255, 255, .012); }
.st-foot-status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--text-3); }
.st-foot-status .icon { color: var(--green); }
.st-foot-status.is-dirty { color: var(--amber); }
.st-foot-status .spinner { --spinner-size: 14px; }
.st-foot-actions { display: flex; gap: 8px; margin-left: auto; }
.st-foot-actions .btn { min-width: 92px; }
.st-sec.is-off { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--line-strong); }
.st-sec.is-off .st-sec-head { border-bottom: 0; padding-bottom: 6px; }
.st-sec.is-off .st-sec-icon { color: var(--text-3); }
.st-sec.is-off .st-sec-title { color: var(--text-2); }
.st-off { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 6px 20px 18px 68px; font-size: 13.5px; line-height: 20px; color: var(--text-2); }
.st-off > .icon { color: var(--text-3); }
.st-off p { flex: 1 1 260px; min-width: 0; }

/* ---------- Fields ---------- */
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; min-width: 0; }
.st-grid.st-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.st-grid > .is-wide, .st-field.is-wide { grid-column: 1 / -1; }
.st-grid > .st-grid-3 { display: grid; grid-template-columns: 112px minmax(0, 1fr) 96px; gap: 0 14px; }
.st-field { margin-bottom: 16px; }
.st-field .field-help b { font-weight: 500; color: var(--text-1); overflow-wrap: anywhere; }
.st-field .field-error { margin: 0; }
.st-readonly { display: flex; align-items: center; gap: 10px; min-height: var(--control-h); padding: 0 12px; border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .02); font-size: 14px; }
.st-readonly .text-button { margin-left: auto; color: var(--text-1); }
.st-readonly-note { margin-left: auto; font-size: 12.5px; color: var(--text-3); }
.st-switch { margin-bottom: 18px; padding: 12px 14px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line); }
.st-switch .switch-field-text small { margin-top: 2px; }
.st-money, .st-slug { display: flex; align-items: stretch; min-width: 0; }
.st-money-prefix, .st-slug-prefix { display: inline-flex; align-items: center; flex: none; padding: 0 10px; border-radius: var(--r-md) 0 0 var(--r-md); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-3); font-size: 13px; white-space: nowrap; }
.st-money .input, .st-slug .input { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; margin-left: -1px; }
.st-money .input { max-width: 150px; }

/* ---------- Locale: logo ---------- */
.st-logo { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 14px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line); }
.st-logo-preview { flex: none; width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border-radius: 14px; background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.st-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.st-logo-mono { width: 100%; height: 100%; display: grid; place-items: center; font-size: 20px; font-weight: 600; letter-spacing: .02em; color: #E9DCCF; background: linear-gradient(180deg, #2B2520, #221E1A); }
.st-logo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.st-logo-text b { font-size: 14px; font-weight: 500; }
.st-logo-text span { font-size: 12.5px; line-height: 18px; color: var(--text-3); }
.st-logo-text .field-error { margin-top: 4px; }
.st-logo-actions { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }

/* ---------- Orari e servizi ---------- */
.st-services { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.st-service { padding: 12px 14px 14px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line); }
.st-service.is-invalid { box-shadow: inset 0 0 0 1px var(--red-line); }
.st-service-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 120px 36px; gap: 0 10px; align-items: end; }
.st-service .st-field { margin-bottom: 0; }
.st-remove { width: 36px; height: 36px; }
.st-remove:hover:not(:disabled) { color: var(--red); box-shadow: inset 0 0 0 1px var(--red-line); }
.st-days { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.st-day {
  width: 38px; height: 32px; padding: 0; border: 0; border-radius: var(--r-md); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-3); font-size: 13px; font-weight: 600; transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.st-day:hover { color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.st-day[aria-pressed="true"] { color: var(--text-1); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--line-strong), var(--highlight); }
.st-day[aria-pressed="false"] { color: var(--text-4); background: transparent; box-shadow: none; outline: 1px dashed rgba(255, 255, 255, .14); outline-offset: -1px; }
.st-day[aria-pressed="false"]:hover { color: var(--text-2); outline-color: rgba(255, 255, 255, .26); }
.st-day[aria-pressed="false"]:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: 2px; }
.st-service-hint { display: flex; align-items: center; gap: 6px; margin-top: 10px !important; font-size: 12.5px; color: var(--red); }
.st-add { margin-bottom: 14px; }

/* ---------- Prenotazioni online: page and QR ---------- */
.st-subsection { margin: 4px 0 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.st-subtitle { display: flex; align-items: center; gap: 8px; margin-bottom: 12px !important; font-size: 13.5px; font-weight: 600; }
.st-subtitle .icon { color: var(--text-3); }
.st-subsection > .banner { margin-bottom: 12px; }
.st-page { display: grid; grid-template-columns: minmax(0, 1fr) 196px; gap: 20px; align-items: start; }
.st-page-main { min-width: 0; }
.st-url { margin: 6px 0 8px; padding: 9px 12px; border-radius: var(--r-md); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line-strong); }
.st-url-text { display: block; font-size: 13.5px; color: var(--text-1); overflow-wrap: anywhere; }
.st-url-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.st-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0; padding: 14px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line); }
.st-qr-frame { display: grid; place-items: center; width: 100%; max-width: 160px; aspect-ratio: 1; padding: 8px; border-radius: var(--r-md); background: #fff; }
.st-qr-image { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.st-qr-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px; font-size: 12px; color: #5F646B; text-align: center; }
.st-qr-state .spinner { border-color: rgba(0, 0, 0, .12); border-top-color: #FF833F; }
.st-qr-state.is-error { color: #B3402B; }
.st-qr figcaption { font-size: 13px; color: var(--text-2); }
.st-qr-actions { display: flex; gap: 6px; }
.st-print-frame { position: fixed; right: 0; bottom: 0; width: 0; height: 0; border: 0; visibility: hidden; }

/* ---------- Menù e coperto ---------- */
.st-linkcard { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line); }
.st-linkcard-icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--text-2); background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line); }
.st-linkcard-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.st-linkcard-text b { font-size: 14px; font-weight: 500; }
.st-linkcard-text > span { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.st-linkcard-url { min-width: 0; font-size: 12.5px; color: var(--text-3); overflow-wrap: anywhere; }
.st-linkcard-text small { font-size: 12.5px; line-height: 18px; color: var(--text-3); }
.st-linkcard-actions { display: flex; flex-wrap: wrap; gap: 6px; flex: none; }

/* ---------- Agente AI ---------- */
.st-sec-body > .st-agent-status { margin-bottom: 12px; }
.st-agent-status small { margin-top: 1px; }
.st-key { margin-bottom: 16px; padding: 14px; border-radius: var(--r-lg); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.st-key .st-field { margin-bottom: 10px; }
.st-key-row { display: flex; gap: 8px; min-width: 0; }
.st-key-input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px !important; letter-spacing: .01em; color: var(--text-1) !important; }
.st-key-warning { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px !important; font-size: 13px; line-height: 19px; color: var(--text-1); }
.st-key-warning .icon { flex: none; margin-top: 2px; color: var(--accent); }
.st-agent-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.st-danger { color: var(--red); }
.st-danger:hover { color: var(--red); background: var(--red-soft); }
.st-howto { margin-bottom: 16px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .02); box-shadow: inset 0 0 0 1px var(--line); }
.st-howto summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font-size: 13.5px; font-weight: 500; color: var(--text-1); cursor: pointer; list-style: none; border-radius: var(--r-lg); }
.st-howto summary::-webkit-details-marker { display: none; }
.st-howto summary .icon { color: var(--text-3); transition: transform var(--t-fast) var(--ease); }
.st-howto[open] summary .icon { transform: rotate(180deg); }
.st-howto-body { padding: 0 14px 14px; }
.st-howto-body > p { margin-bottom: 12px !important; font-size: 13px; line-height: 20px; color: var(--text-2); }
.st-howto-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.st-howto-meta div { min-width: 0; padding: 9px 12px; border-radius: var(--r-md); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.st-howto-meta dt { margin-bottom: 3px; font-size: 12px; color: var(--text-3); }
.st-howto-meta dd { margin: 0; font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; }
.st-sec code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--text-1); overflow-wrap: anywhere; }
.st-endpoints { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.st-endpoints li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 12px; border-radius: var(--r-md); background: var(--bg-1); box-shadow: inset 0 0 0 1px var(--line); }
.st-endpoints li > div { min-width: 0; }
.st-endpoints p { margin-top: 3px !important; font-size: 12.5px; line-height: 18px; color: var(--text-3); }
.st-method { flex: none; min-width: 44px; height: 20px; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; letter-spacing: .03em; }
.st-method.is-get { color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue-line); }
.st-method.is-post { color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px var(--green-line); }

/* ---------- WhatsApp, Stampa, Servizi offerti ---------- */
.st-points { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.st-points li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 20px; color: var(--text-2); }
.st-points .icon { flex: none; margin-top: 2px; color: var(--text-3); }
.st-steps { display: grid; gap: 14px; margin: 16px 0 18px; padding: 0; list-style: none; counter-reset: st-step; }
.st-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 12px; counter-increment: st-step; }
.st-steps li::before { content: counter(st-step); grid-row: span 2; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 600; color: var(--text-1); background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--line-strong); }
.st-steps b { font-size: 14px; font-weight: 500; line-height: 26px; }
.st-steps span { font-size: 13px; line-height: 19px; color: var(--text-2); }
.st-sec-body > .banner { margin-bottom: 4px; }
.st-offerings { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.st-offering { height: 34px; }
.st-offering .icon { color: var(--text-3); }
.st-offering[aria-pressed="true"] { color: var(--text-1); background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px var(--line-strong), var(--highlight); }
.st-offering[aria-pressed="true"] .icon { color: var(--green); }
.st-sec-body > .st-hint { margin-bottom: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .st-layout { grid-template-columns: 188px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 1100px) {
  .st-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .st-nav { position: static; flex-direction: row; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 32px 2px 4px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .st-nav-full { display: none; }
  .st-nav-short { display: inline; }
  .st-nav-item .st-nav-off { display: none; }
  .st-nav::-webkit-scrollbar { display: none; }
  .st-nav-item { flex: none; height: 32px; box-shadow: inset 0 0 0 1px var(--line); }
  .st-nav-item[aria-current="true"]::before { display: none; }
  .st-nav-item[aria-current="true"] { box-shadow: inset 0 0 0 1px var(--line-strong); }
  .st-nav-text { overflow: visible; }
  .st-sections { max-width: none; }
}
@media (max-width: 768px) {
  .st-grid.st-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-page { grid-template-columns: minmax(0, 1fr); }
  .st-qr { max-width: 320px; width: 100%; justify-self: center; }
  .st-howto-meta { grid-template-columns: minmax(0, 1fr); }
  .st-linkcard { flex-wrap: wrap; align-items: flex-start; }
  .st-linkcard-icon { display: none; }
  .st-linkcard-actions { width: 100%; }
}
@media (max-width: 560px) {
  .st-sec-head { padding: 16px 16px 14px; gap: 12px; }
  .st-sec-body { padding: 16px 16px 4px; }
  .st-sec-foot { padding: 12px 16px; }
  .st-sec-error { margin: 0 16px 14px; }
  .st-off { padding: 4px 16px 16px; }
  .st-grid, .st-grid.st-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .st-grid > .st-grid-3 { grid-template-columns: 92px minmax(0, 1fr) 76px; gap: 0 10px; }
  .st-service-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; row-gap: 10px; }
  .st-service-row > .st-field:first-child { grid-column: 1 / -1; }
  .st-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .st-day { width: auto; height: 36px; }
  .st-logo { flex-wrap: wrap; }
  .st-logo-actions { width: 100%; }
  .st-foot-actions { width: 100%; }
  .st-foot-actions .btn { flex: 1; }
  .st-key-row { flex-direction: column; }
}
@media (pointer: coarse) {
  .st-day { height: 40px; }
  .st-nav-item { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-nav-item, .st-day, .st-howto summary .icon { transition: none; }
}
