/* La Gardenia – Bouquet personalizzato
 * Tutti i selettori partono da #lgb-app per non subire (né alterare) gli stili del tema.
 * Per allineare i caratteri al tema, imposta --lgb-font-serif e --lgb-font-sans
 * (es. nel Customizer → CSS aggiuntivo:  #lgb-app { --lgb-font-serif: "Nome Font", serif; } ).
 */

#lgb-app {
  --lgb-ink: #000;
  --lgb-paper: #fff;
  --lgb-mist: #f6f6f4;
  --lgb-line: #dcdad6;
  --lgb-line-soft: #ebe9e6;
  --lgb-stone: #6b6b6b;
  --lgb-error: #9b2c25;
  --lgb-ok: #2f5d3a;
  --lgb-serif: var(--lgb-font-serif, "Cormorant Garamond", "Cormorant", "Libre Caslon Text", Georgia, "Times New Roman", serif);
  --lgb-sans: var(--lgb-font-sans, inherit);
  --lgb-gutter: 16px;

  box-sizing: border-box;
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px var(--lgb-gutter) 56px;
  background: var(--lgb-paper);
  color: var(--lgb-ink);
  font-family: var(--lgb-sans);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
#lgb-app *, #lgb-app *::before, #lgb-app *::after { box-sizing: inherit; }
#lgb-app [hidden] { display: none !important; }

/* Reset difensivo contro gli stili del tema */
#lgb-app h2, #lgb-app h3, #lgb-app h4, #lgb-app p, #lgb-app ol, #lgb-app ul, #lgb-app dl, #lgb-app dd, #lgb-app figure, #lgb-app fieldset, #lgb-app legend {
  margin: 0; padding: 0; border: 0; background: none; color: inherit; text-transform: none; letter-spacing: normal;
}
#lgb-app button, #lgb-app input, #lgb-app textarea {
  font: inherit; color: inherit; letter-spacing: normal; text-transform: none; text-shadow: none;
  margin: 0; border-radius: 0; box-shadow: none; min-height: 0; width: auto; max-width: 100%;
}
#lgb-app button { background: none; border: 0; padding: 0; cursor: pointer; line-height: inherit; }
#lgb-app button:disabled { cursor: default; }
#lgb-app a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
#lgb-app a:hover { text-decoration-thickness: 2px; }
#lgb-app img { display: block; max-width: 100%; height: auto; border: 0; }
#lgb-app :focus-visible { outline: 2px solid var(--lgb-ink); outline-offset: 3px; }
#lgb-app svg { width: 1em; height: 1em; flex: none; }

/* ------------------------------------------------------------ tipografia */
#lgb-app .lgb-display {
  font-family: var(--lgb-serif); font-weight: 400; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.08; letter-spacing: -0.01em;
}
#lgb-app .lgb-h {
  font-family: var(--lgb-serif); font-weight: 400; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; outline: none;
}
#lgb-app .lgb-kicker {
  font-family: var(--lgb-serif); font-size: 15px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 18px;
}
#lgb-app .lgb-lead { font-size: 17px; color: #2a2a2a; max-width: 34em; margin-top: 20px; }
#lgb-app .lgb-figure { font-family: var(--lgb-serif); font-weight: 400; font-variant-numeric: lining-nums; }
#lgb-app .lgb-fine { font-size: 13px; color: var(--lgb-stone); max-width: 40em; }
#lgb-app .lgb-opt { font-size: 12px; color: var(--lgb-stone); font-weight: 400; margin-left: 6px; }
#lgb-app .lgb-hint { font-size: 13px; color: var(--lgb-stone); margin-top: 8px; }
#lgb-app .lgb-hint--center { text-align: center; }
#lgb-app .lgb-placeholder { font-size: 14px; color: var(--lgb-stone); padding: 18px 20px; background: var(--lgb-mist); }

/* ------------------------------------------------------------ pulsanti */
#lgb-app .lgb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 34px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s, color .2s;
}
#lgb-app .lgb-btn--solid { background: var(--lgb-ink); color: var(--lgb-paper); border: 1px solid var(--lgb-ink); }
#lgb-app .lgb-btn--solid:hover { background: var(--lgb-paper); color: var(--lgb-ink); }
#lgb-app .lgb-btn--solid:disabled { opacity: .55; }
#lgb-app .lgb-btn--link { min-height: 44px; padding: 0; letter-spacing: 0.12em; text-decoration: underline; text-underline-offset: 5px; }
#lgb-app .lgb-btn.is-busy { cursor: progress; }
#lgb-app .lgb-inline { font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; white-space: nowrap; }

/* ------------------------------------------------------------ intro */
#lgb-app .lgb-intro { display: grid; gap: 40px; align-items: center; padding: 16px 0 24px; }
#lgb-app .lgb-intro__media { order: -1; display: flex; align-items: center; justify-content: center; min-width: 0; }
#lgb-app .lgb-intro__media img { display: block; width: auto; max-width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: 20px; }
#lgb-app .lgb-how { list-style: none; counter-reset: how; margin: 32px 0 28px; border-top: 1px solid var(--lgb-line); }
#lgb-app .lgb-how li {
  counter-increment: how; display: grid; grid-template-columns: 36px 1fr; padding: 12px 0; border-bottom: 1px solid var(--lgb-line-soft); font-size: 15px;
}
#lgb-app .lgb-how li::before { content: counter(how); font-family: var(--lgb-serif); font-size: 18px; line-height: 1.3; }
#lgb-app .lgb-intro .lgb-fine { margin-bottom: 28px; }
#lgb-app .lgb-intro .lgb-btn { width: 100%; }

/* ------------------------------------------------------------ progresso */
#lgb-app .lgb-progress { margin-bottom: 32px; }
#lgb-app .lgb-progress__list { display: none; list-style: none; }
#lgb-app .lgb-progress__compact p { display: flex; justify-content: space-between; font-size: 13px; color: var(--lgb-stone); margin-bottom: 10px; }
#lgb-app .lgb-progress__compact p span { color: var(--lgb-ink); font-family: var(--lgb-serif); font-size: 17px; }
#lgb-app .lgb-progress__bar { height: 1px; background: var(--lgb-line); }
#lgb-app .lgb-progress__bar span { display: block; height: 1px; background: var(--lgb-ink); transition: width .4s ease; }

/* ------------------------------------------------------------ layout */
#lgb-app .lgb-layout { display: flex; flex-direction: column; gap: 28px; }
#lgb-app .lgb-main { min-width: 0; }
#lgb-app .lgb-aside { order: -1; }
#lgb-app .lgb-step__head { margin-bottom: 32px; }
#lgb-app .lgb-step__lead { color: var(--lgb-stone); margin-top: 10px; max-width: 36em; }
#lgb-app.is-entering .lgb-step:not([hidden]), #lgb-app.is-entering .lgb-intro { animation: lgb-in .35s ease both; }
@keyframes lgb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ campi */
#lgb-app .lgb-group { margin: 0 0 40px; min-width: 0; }
#lgb-app .lgb-legend { display: block; width: 100%; font-family: var(--lgb-serif); font-size: 22px; line-height: 1.25; margin-bottom: 14px; }
#lgb-app .lgb-group__lead { font-size: 14px; color: var(--lgb-stone); margin: -6px 0 16px; max-width: 38em; }
#lgb-app .lgb-sublabel { font-size: 14px; margin: 20px 0 10px; }
#lgb-app .lgb-sublabel--lg { font-family: var(--lgb-serif); font-size: 22px; margin: 8px 0 14px; }
#lgb-app .lgb-grid2 { display: grid; gap: 0 24px; }
#lgb-app .lgb-field { margin-bottom: 24px; }
#lgb-app .lgb-field label { display: block; font-size: 14px; margin-bottom: 2px; }
#lgb-app .lgb-field input, #lgb-app .lgb-field textarea {
  display: block; width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--lgb-line);
  padding: 10px 0; font-size: 16px; line-height: 1.5; outline: none; transition: border-color .2s;
}
#lgb-app .lgb-field textarea { border: 1px solid var(--lgb-line); padding: 12px 14px; margin-top: 6px; resize: vertical; min-height: 0; }
#lgb-app .lgb-field input:focus, #lgb-app .lgb-field textarea:focus { border-color: var(--lgb-ink); }
#lgb-app .lgb-field input::placeholder, #lgb-app .lgb-field textarea::placeholder { color: #a5a29d; opacity: 1; }
#lgb-app .lgb-field--reveal { margin-top: 20px; margin-bottom: 0; }
#lgb-app .lgb-err { color: var(--lgb-error); font-size: 13px; margin-top: 8px; }
#lgb-app .is-invalid > input, #lgb-app .is-invalid > textarea { border-color: var(--lgb-error); }
#lgb-app .is-invalid .lgb-choice__box, #lgb-app .is-invalid .lgb-chip span { border-color: var(--lgb-error); }

/* chip (occasione, firma) */
#lgb-app .lgb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#lgb-app .lgb-chip { position: relative; cursor: pointer; }
#lgb-app .lgb-chip input, #lgb-app .lgb-choice input, #lgb-app .lgb-shot input, #lgb-app .lgb-drop input {
  position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
#lgb-app .lgb-chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--lgb-line); font-size: 14px;
  transition: border-color .15s, background-color .15s, color .15s;
}
#lgb-app .lgb-chip:hover span { border-color: var(--lgb-ink); }
#lgb-app .lgb-chip input:checked + span { background: var(--lgb-ink); border-color: var(--lgb-ink); color: var(--lgb-paper); }
#lgb-app .lgb-chip input:focus-visible + span { outline: 2px solid var(--lgb-ink); outline-offset: 3px; }

/* card di scelta */
#lgb-app .lgb-choices { display: grid; gap: 10px; }
#lgb-app .lgb-choice { position: relative; display: block; cursor: pointer; }
#lgb-app .lgb-choice__box {
  position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 16px 52px 16px 18px; border: 1px solid var(--lgb-line); background: var(--lgb-paper);
  transition: border-color .15s, box-shadow .15s;
}
#lgb-app .lgb-choice:hover .lgb-choice__box { border-color: #8f8c87; }
#lgb-app .lgb-choice input:checked + .lgb-choice__box { border-color: var(--lgb-ink); box-shadow: inset 0 0 0 1px var(--lgb-ink); }
#lgb-app .lgb-choice input:focus-visible + .lgb-choice__box { outline: 2px solid var(--lgb-ink); outline-offset: 3px; }
#lgb-app .lgb-choice__title { font-size: 16px; line-height: 1.35; }
#lgb-app .lgb-choice__desc { font-size: 13px; color: var(--lgb-stone); line-height: 1.5; }
#lgb-app .lgb-choice__meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--lgb-stone); }
#lgb-app .lgb-choice__dot {
  position: absolute; top: 18px; right: 18px; width: 16px; height: 16px; border: 1px solid #8f8c87; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--lgb-paper);
}
#lgb-app .lgb-choice input:checked + .lgb-choice__box .lgb-choice__dot { border-color: var(--lgb-ink); box-shadow: inset 0 0 0 4px var(--lgb-paper); background: var(--lgb-ink); }
#lgb-app .lgb-choice__dot--sq { border-radius: 0; }
#lgb-app .lgb-choice__dot--sq svg { width: 12px; height: 12px; opacity: 0; }
#lgb-app .lgb-choice input:checked + .lgb-choice__box .lgb-choice__dot--sq { box-shadow: none; }
#lgb-app .lgb-choice input:checked + .lgb-choice__box .lgb-choice__dot--sq svg { opacity: 1; }
#lgb-app .lgb-price { white-space: nowrap; color: var(--lgb-stone); margin-left: 6px; }
#lgb-app .lgb-choice.is-disabled { cursor: not-allowed; }
#lgb-app .lgb-choice.is-disabled .lgb-choice__box { background: var(--lgb-mist); border-color: var(--lgb-line-soft); color: #a5a29d; }
#lgb-app .lgb-choice.is-disabled .lgb-choice__dot { border-color: #c4c1bc; }
#lgb-app .lgb-place { margin-top: 24px; }
#lgb-app .lgb-intro .lgb-callout { margin: 0 0 28px; }

/* palette */
#lgb-app .lgb-choices--palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#lgb-app .lgb-choice--palette .lgb-choice__box { gap: 12px; padding: 16px 40px 16px 16px; }
#lgb-app .lgb-choice--palette .lgb-choice__title { font-size: 14px; }
#lgb-app .lgb-choice--palette .lgb-choice__dot { top: 16px; right: 14px; }
#lgb-app .lgb-swatch { display: flex; }
#lgb-app .lgb-swatch i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--lgb-paper); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); margin-right: -8px; }
#lgb-app .lgb-swatch--any i { background: var(--lgb-paper); box-shadow: 0 0 0 1px #b9b6b1; }
#lgb-app .lgb-swatch--any i:nth-child(2) { background: var(--lgb-mist); }
#lgb-app .lgb-swatch--any i:nth-child(3) { background: #e3e1dd; }

/* destinazioni */
#lgb-app .lgb-choice--zone .lgb-choice__box { padding: 14px 48px 14px 18px; }
#lgb-app .lgb-choice--zone .lgb-choice__dot { top: 50%; margin-top: -8px; }
#lgb-app .lgb-aside-note { font-size: 13px; color: var(--lgb-stone); margin-top: 14px; }

/* importo */
#lgb-app .lgb-amount, #lgb-app .lgb-counter { background: var(--lgb-mist); padding: 26px 18px 22px; }
#lgb-app .lgb-amount .lgb-figure { text-align: center; font-size: 44px; line-height: 1; margin-bottom: 22px; }
#lgb-app .lgb-range { display: flex; align-items: center; gap: 14px; }
#lgb-app .lgb-range input[type="range"] {
  --p: 0%;
  flex: 1; -webkit-appearance: none; appearance: none; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
#lgb-app .lgb-range input[type="range"]::-webkit-slider-runnable-track {
  height: 2px; background: linear-gradient(to right, var(--lgb-ink) var(--p), #c9c6c1 var(--p));
}
#lgb-app .lgb-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--lgb-ink); border: 4px solid var(--lgb-mist); box-shadow: 0 0 0 1px var(--lgb-ink);
}
#lgb-app .lgb-range input[type="range"]::-moz-range-track { height: 2px; background: #c9c6c1; }
#lgb-app .lgb-range input[type="range"]::-moz-range-progress { height: 2px; background: var(--lgb-ink); }
#lgb-app .lgb-range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--lgb-ink); border: 4px solid var(--lgb-mist); box-shadow: 0 0 0 1px var(--lgb-ink); }
#lgb-app .lgb-range__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--lgb-stone); margin: 6px 58px 0; }
#lgb-app .lgb-round {
  width: 44px; height: 44px; border: 1px solid var(--lgb-ink); border-radius: 50%; background: var(--lgb-paper);
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; flex: none;
}
#lgb-app .lgb-round:hover { background: var(--lgb-ink); color: var(--lgb-paper); }
#lgb-app .lgb-round:disabled { opacity: .3; background: var(--lgb-paper); color: var(--lgb-ink); }
#lgb-app .lgb-counter { display: flex; align-items: center; justify-content: space-between; }
#lgb-app .lgb-counter__v { display: flex; align-items: baseline; gap: 10px; }
#lgb-app .lgb-counter__v .lgb-figure { font-size: 52px; line-height: 1; }
#lgb-app .lgb-counter__u { font-family: var(--lgb-serif); font-size: 22px; }
#lgb-app .lgb-notice { margin-top: 12px; font-size: 13px; padding: 10px 14px; border-left: 2px solid var(--lgb-ink); background: var(--lgb-mist); }

/* galleria */
#lgb-app .lgb-gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--lgb-gutter)); padding: 0 var(--lgb-gutter) 6px; scrollbar-width: thin;
}
#lgb-app .lgb-shot { position: relative; display: block; cursor: pointer; scroll-snap-align: start; }
#lgb-app .lgb-shot__frame { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--lgb-mist); outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .15s; }
#lgb-app .lgb-shot__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
#lgb-app .lgb-shot:hover img { transform: scale(1.03); }
#lgb-app .lgb-shot__mark {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--lgb-ink); color: var(--lgb-paper); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.8); transition: opacity .15s, transform .15s;
}
#lgb-app .lgb-shot__mark svg { width: 14px; height: 14px; }
#lgb-app .lgb-shot input:checked + .lgb-shot__frame { outline: 1px solid var(--lgb-ink); }
#lgb-app .lgb-shot input:checked + .lgb-shot__frame .lgb-shot__mark { opacity: 1; transform: none; }
#lgb-app .lgb-shot input:focus-visible + .lgb-shot__frame { outline: 2px solid var(--lgb-ink); }
#lgb-app .lgb-shot__name { display: block; font-family: var(--lgb-serif); font-size: 17px; line-height: 1.3; margin-top: 8px; }

/* upload */
#lgb-app .lgb-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  min-height: 150px; padding: 24px; border: 1px dashed #a5a29d; cursor: pointer; transition: border-color .15s, background-color .15s;
}
#lgb-app .lgb-drop svg { width: 34px; height: 34px; margin-bottom: 4px; }
#lgb-app .lgb-drop:hover, #lgb-app .lgb-drop.is-over { border-color: var(--lgb-ink); background: var(--lgb-mist); }
#lgb-app .lgb-drop:focus-within { outline: 2px solid var(--lgb-ink); outline-offset: 3px; }
#lgb-app .lgb-drop__t { font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
#lgb-app .lgb-drop__s { font-size: 12px; color: var(--lgb-stone); }
#lgb-app .lgb-file { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--lgb-line); }
#lgb-app .lgb-file__thumb { width: 64px; height: 80px; flex: none; background: var(--lgb-mist); overflow: hidden; }
#lgb-app .lgb-file__thumb img { width: 100%; height: 100%; object-fit: cover; }
#lgb-app .lgb-file__name { flex: 1; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#lgb-app .lgb-callout { font-size: 14px; line-height: 1.6; padding: 18px 20px; background: var(--lgb-mist); margin: -8px 0 36px; }
#lgb-app .lgb-callout--list { margin: 0; display: grid; gap: 10px; }
#lgb-app .lgb-callout strong { font-weight: 600; }

/* consegna */
#lgb-app .lgb-dest {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border: 1px solid var(--lgb-ink); margin-bottom: 36px;
}
#lgb-app .lgb-dest .lgb-placeholder { padding: 0; background: none; }
#lgb-app .lgb-dest__title { font-family: var(--lgb-serif); font-size: 22px; line-height: 1.25; }
#lgb-app .lgb-dest__sub { font-size: 14px; color: var(--lgb-stone); margin-top: 2px; }
#lgb-app .lgb-recipient { margin-bottom: 16px; }
#lgb-app .lgb-grid2--addr { grid-template-columns: minmax(0, 1fr) 110px; }
#lgb-app .lgb-choices--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* calendario */
#lgb-app .lgb-cal { max-width: 420px; }
#lgb-app .lgb-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
#lgb-app .lgb-cal__title { font-family: var(--lgb-serif); font-size: 20px; }
#lgb-app .lgb-cal__nav { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
#lgb-app .lgb-cal__nav svg { width: 18px; height: 18px; }
#lgb-app .lgb-cal__nav:disabled { opacity: .25; }
#lgb-app .lgb-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
#lgb-app .lgb-cal__wd { text-align: center; font-size: 12px; color: var(--lgb-stone); padding: 6px 0; }
#lgb-app .lgb-cal__day {
  aspect-ratio: 1; min-height: 40px; display: flex; align-items: center; justify-content: center; font-size: 15px;
  border: 1px solid transparent; font-variant-numeric: tabular-nums;
}
#lgb-app .lgb-cal__day:not(:disabled):hover { border-color: var(--lgb-ink); }
#lgb-app .lgb-cal__day:disabled { color: #c4c1bc; }
#lgb-app .lgb-cal__day.is-today { text-decoration: underline; text-underline-offset: 4px; }
#lgb-app .lgb-cal__day[aria-pressed="true"] { background: var(--lgb-ink); color: var(--lgb-paper); }

/* navigazione */
#lgb-app .lgb-alert { margin-top: 8px; padding: 12px 16px; font-size: 14px; color: var(--lgb-error); border-left: 2px solid var(--lgb-error); background: #fbf3f2; }
#lgb-app .lgb-alert.is-ok { color: var(--lgb-ok); border-color: var(--lgb-ok); background: #f1f6f2; }
#lgb-app .lgb-nav { display: flex; flex-direction: column-reverse; gap: 8px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--lgb-line); }
#lgb-app .lgb-nav .lgb-btn--solid { width: 100%; }

/* riepilogo */
#lgb-app .lgb-sum { border-top: 1px solid var(--lgb-ink); padding: 16px 0 22px; }
#lgb-app .lgb-sum header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
#lgb-app .lgb-sum h4 { font-family: var(--lgb-serif); font-weight: 400; font-size: 22px; }
#lgb-app .lgb-rows .lgb-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 6px 0; font-size: 14px; }
#lgb-app .lgb-rows dt { color: var(--lgb-stone); }
#lgb-app .lgb-rows dd { overflow-wrap: anywhere; }
#lgb-app .lgb-thumbs { display: flex; gap: 8px; margin-top: 8px; }
#lgb-app .lgb-thumbs img { width: 56px; height: 70px; object-fit: cover; }
#lgb-app .lgb-bill { border-top: 1px solid var(--lgb-ink); padding-top: 14px; margin-bottom: 18px; }
#lgb-app .lgb-bill .lgb-row dd { text-align: right; }
#lgb-app .lgb-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--lgb-line); }
#lgb-app .lgb-total .lgb-figure { font-size: 30px; line-height: 1; }
#lgb-app .lgb-total--lg .lgb-figure { font-size: 38px; }
#lgb-app .lgb-total__wait { font-size: 13px; color: var(--lgb-stone); }
#lgb-app .lgb-fine--terms { margin-top: 4px; }

/* ------------------------------------------------------------ cartellino (riepilogo laterale) */
#lgb-app .lgb-tag__card { position: relative; border: 1px solid var(--lgb-ink); background: var(--lgb-paper); }
#lgb-app .lgb-tag__hole { display: none; }
#lgb-app .lgb-tag__title { display: none; }
#lgb-app .lgb-tag__toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 0 18px; text-align: left; }
#lgb-app .lgb-tag__label { font-family: var(--lgb-serif); font-size: 19px; flex: 1; }
#lgb-app .lgb-tag__mini { font-size: 15px; }
#lgb-app .lgb-tag__toggle svg { width: 16px; height: 16px; transition: transform .2s; }
#lgb-app .lgb-tag.is-open .lgb-tag__toggle svg { transform: rotate(180deg); }
#lgb-app .lgb-tag__body { display: none; padding: 0 18px 18px; }
#lgb-app .lgb-tag.is-open .lgb-tag__body { display: block; }
#lgb-app .lgb-tag__body .lgb-rows { border-top: 1px solid var(--lgb-line-soft); padding-top: 8px; }
#lgb-app .lgb-tag__body .lgb-row { grid-template-columns: 100px minmax(0, 1fr); }
#lgb-app .lgb-tag__body .lgb-row dd { text-align: right; }
#lgb-app .lgb-tag__help { display: none; font-size: 13px; color: var(--lgb-stone); margin-top: 16px; text-align: center; }

/* ------------------------------------------------------------ ≥ 600px */
@media (min-width: 600px) {
  #lgb-app { --lgb-gutter: 24px; }
  #lgb-app .lgb-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #lgb-app .lgb-grid2--addr { grid-template-columns: minmax(0, 1fr) 140px; }
  #lgb-app .lgb-choices--palette { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #lgb-app .lgb-choices--zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #lgb-app .lgb-gallery { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  #lgb-app .lgb-nav { flex-direction: row; justify-content: space-between; align-items: center; }
  #lgb-app .lgb-nav .lgb-btn--solid { width: auto; min-width: 240px; }
  #lgb-app .lgb-intro .lgb-btn { width: auto; min-width: 280px; }
  #lgb-app .lgb-amount, #lgb-app .lgb-counter { padding: 32px 32px 26px; }
  #lgb-app .lgb-counter { justify-content: center; gap: 48px; }
}

/* ------------------------------------------------------------ ≥ 960px: due colonne */
@media (min-width: 960px) {
  #lgb-app { padding-top: 40px; padding-bottom: 80px; }
  #lgb-app .lgb-intro.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  #lgb-app .lgb-intro__media { order: 0; }
  #lgb-app .lgb-intro__media img { max-height: 580px; border-radius: 30px; }
  #lgb-app .lgb-intro:not(.has-media) { max-width: 640px; }

  #lgb-app .lgb-progress { margin-bottom: 56px; }
  #lgb-app .lgb-progress__compact { display: none; }
  #lgb-app .lgb-progress__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--lgb-line); }
  #lgb-app .lgb-progress__list li { position: relative; }
  #lgb-app .lgb-progress__list li::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: transparent; }
  #lgb-app .lgb-progress__list li.is-done::before, #lgb-app .lgb-progress__list li.is-current::before { background: var(--lgb-ink); }
  #lgb-app .lgb-progress__list li.is-current::before { height: 3px; top: -2px; }
  #lgb-app .lgb-progress__list button { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 14px 8px 0 0; text-align: left; color: var(--lgb-stone); }
  #lgb-app .lgb-progress__list li.is-done button { color: var(--lgb-ink); }
  #lgb-app .lgb-progress__list li.is-done button:hover .lgb-progress__t { text-decoration: underline; text-underline-offset: 4px; }
  #lgb-app .lgb-progress__list li.is-current button { color: var(--lgb-ink); }
  #lgb-app .lgb-progress__n { font-family: var(--lgb-serif); font-size: 20px; }
  #lgb-app .lgb-progress__t { font-size: 13px; letter-spacing: 0.04em; }

  #lgb-app .lgb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; align-items: start; }
  #lgb-app .lgb-aside { order: 0; position: sticky; top: calc(var(--lgb-sticky-top, 140px)); }

  /* Il cartellino: un'etichetta regalo con foro e cordino */
  #lgb-app .lgb-tag { padding-top: 34px; position: relative; }
  #lgb-app .lgb-tag::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 49px; background: var(--lgb-ink); z-index: 2; }
  #lgb-app .lgb-tag__card {
    border: 0; background: var(--lgb-ink); padding: 1px;
    clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%, 0 22px);
  }
  #lgb-app .lgb-tag__card > * { position: relative; }
  #lgb-app .lgb-tag__card::before {
    content: ""; position: absolute; inset: 1px; background: var(--lgb-paper);
    clip-path: polygon(21.6px 0, calc(100% - 21.6px) 0, 100% 21.6px, 100% 100%, 0 100%, 0 21.6px);
  }
  #lgb-app .lgb-tag__hole {
    display: block; position: absolute; top: 14px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
    border: 1px solid var(--lgb-ink); border-radius: 50%; background: var(--lgb-paper); z-index: 1;
  }
  #lgb-app .lgb-tag__toggle { display: none; }
  #lgb-app .lgb-tag__title { display: block; font-family: var(--lgb-serif); font-size: 24px; text-align: center; padding: 44px 28px 14px; }
  #lgb-app .lgb-tag__body { display: block; padding: 0 28px 28px; }
  #lgb-app .lgb-tag__help { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  #lgb-app *, #lgb-app *::before, #lgb-app *::after { transition: none !important; animation: none !important; }
}
#lgb-app .lgb-notice--cart { margin: 0 0 24px; }
