/* Il mio volantino · editor (area clienti e bacheca) e schede dei volantini nell'area clienti */
.imv-ed { --ed-acc: var(--rosso, #e3262f); --ed-ink: var(--ink, #17181c); --ed-muto: #6f7275; --ed-linea: rgba(0,0,0,.12); --ed-fondo: var(--crema, #fbf7f1); font-family: var(--font, -apple-system, "Segoe UI", Roboto, sans-serif); color: var(--ed-ink); font-size: 15px; line-height: 1.45; }
.imv-ed *, .imv-ed *::before, .imv-ed *::after { box-sizing: border-box; }
.imv-ed [hidden] { display: none !important; }
.imv-ed .i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.imv-ed__carica { padding: 40px; text-align: center; color: var(--ed-muto); }
.imv-ed__griglia { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
.imv-ed__form { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.imv-ed__box { padding: 22px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--ed-linea); }
.imv-ed__box h3 { margin: 0 0 14px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--ed-ink); font-family: inherit; text-transform: none; }
.imv-ed__testa { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.imv-ed__testa h3 { margin: 0; }
.imv-ed__conta { padding: 4px 10px; border-radius: 999px; background: var(--ed-fondo); font-size: 13px; font-weight: 700; }
.imv-ed__conta.is-pieno { background: var(--ed-acc); color: #fff; }
.imv-ed__limite { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #fff4d6; font-size: 14px; }
.imv-ed__limite a, .imv-ed__msg-lock a { color: var(--ed-acc); font-weight: 700; }
.imv-ed__campo { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; min-width: 0; }
.imv-ed__campo > span { font-size: 13px; font-weight: 700; color: var(--ed-ink); }
.imv-ed__campo > span em { font-style: normal; font-weight: 400; color: var(--ed-muto); }
.imv-ed input[type="text"], .imv-ed input[type="tel"], .imv-ed input[type="url"], .imv-ed input[type="date"], .imv-ed input:not([type]), .imv-ed select, .imv-ed textarea { width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--ed-linea); background: #fff; font: inherit; font-size: 15px; color: var(--ed-ink); box-shadow: none; }
.imv-ed textarea { resize: vertical; }
.imv-ed input:focus, .imv-ed select:focus, .imv-ed textarea:focus { outline: none; border-color: var(--ed-acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ed-acc) 18%, transparent); }
.imv-ed__check { display: flex; align-items: center; gap: 8px; margin: -2px 0 14px; font-size: 14px; cursor: pointer; }
.imv-ed__check input { width: 18px; height: 18px; accent-color: var(--ed-acc); }
.imv-ed__riga { display: flex; gap: 16px; align-items: flex-start; }
.imv-ed__col { flex: 1; min-width: 0; }
.imv-ed__due { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.imv-ed__nota { margin: -4px 0 14px; font-size: 13px; color: var(--ed-muto); }
.imv-ed__img { position: relative; display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.imv-ed__img > span { font-size: 13px; font-weight: 700; }
.imv-ed__img-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 96px; padding: 8px; border: 1.5px dashed var(--ed-linea); border-radius: 14px; background: var(--ed-fondo); color: var(--ed-muto); cursor: pointer; font: inherit; font-size: 14px; }
.imv-ed__riga .imv-ed__img { width: 120px; flex: none; }
.imv-ed__img-btn img { max-height: 120px; width: auto; max-width: 100%; object-fit: contain; border-radius: 8px; }
.imv-ed__img-btn:hover { border-color: var(--ed-acc); color: var(--ed-acc); }
.imv-ed__img-x { position: absolute; top: 22px; right: 6px; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--ed-ink); color: #fff; cursor: pointer; }
.imv-ed__img--mini { width: 84px; flex: none; margin: 0; }
.imv-ed__img--mini .imv-ed__img-btn { min-height: 84px; height: 84px; padding: 4px; }
.imv-ed__img--mini .imv-ed__img-btn img { max-height: 74px; }
.imv-ed__img--mini .imv-ed__img-x { top: -6px; right: -6px; width: 22px; height: 22px; }
.imv-ed__img--mini .imv-ed__img-x .i { width: 13px; height: 13px; }
.imv-ed__sez { margin-bottom: 16px; padding: 14px; border-radius: 16px; background: var(--ed-fondo); }
.imv-ed__sez-testa { display: flex; gap: 10px; align-items: flex-end; }
.imv-ed__campo--sez { flex: 1; margin-bottom: 10px; }
.imv-ed__mini { display: flex; gap: 4px; margin-bottom: 10px; }
.imv-ed__mini button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: #fff; color: var(--ed-ink); cursor: pointer; box-shadow: 0 0 0 1px var(--ed-linea); }
.imv-ed__mini button:hover:not(:disabled) { color: var(--ed-acc); }
.imv-ed__mini button:disabled { opacity: .35; cursor: default; }
.imv-ed__prod { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 12px; align-items: start; margin-bottom: 10px; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--ed-linea); }
.imv-ed__prod.is-evid { box-shadow: 0 0 0 2px var(--ed-acc); }
.imv-ed__prod .imv-ed__campo { margin-bottom: 8px; }
.imv-ed__prezzi { position: relative; display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.imv-ed__sconto { align-self: center; margin-top: 12px; padding: 4px 9px; border-radius: 9px; background: var(--ed-acc); color: #fff; font-weight: 800; font-size: 13px; }
.imv-ed__piu summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ed-muto); padding: 2px 0 8px; }
.imv-ed__mini--prod { flex-direction: column; margin: 0; }
.imv-ed__stella[aria-pressed="true"] { color: #fff !important; background: var(--ed-acc) !important; box-shadow: none !important; }
.imv-ed__stella[aria-pressed="true"] .i { fill: currentColor; }
.imv-ed__add { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1.5px dashed var(--ed-linea); border-radius: 12px; background: #fff; color: var(--ed-ink); cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; }
.imv-ed__add:hover:not(:disabled) { border-color: var(--ed-acc); color: var(--ed-acc); }
.imv-ed__add:disabled { opacity: .45; cursor: not-allowed; }
.imv-ed__add--sez { width: 100%; justify-content: center; height: 46px; }
.imv-ed__temi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.imv-ed__tema { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1.5px var(--ed-linea); cursor: pointer; font: inherit; font-size: 12.5px; text-align: left; color: var(--ed-ink); }
.imv-ed__tema.is-on { box-shadow: 0 0 0 2.5px var(--ed-acc); }
.imv-ed__tema.is-lock { opacity: .6; }
.imv-ed__tema .i { position: absolute; top: 12px; right: 12px; width: 15px; height: 15px; color: var(--ed-ink); }
.imv-ed__tema-vis { display: flex; gap: 5px; align-items: center; height: 44px; padding: 0 8px; border-radius: 10px; }
.imv-ed__tema-vis i { width: 22px; height: 22px; border-radius: 50%; }
.imv-ed__msg-lock { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff4d6; color: var(--ed-ink); }
.imv-ed__sotto { margin: 18px 0 10px; font-size: 13px; font-weight: 700; }
.imv-ed__sotto em { font-style: normal; font-weight: 400; color: var(--ed-muto); }
.imv-ed__colori { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.imv-ed__colore { display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; box-shadow: 0 0 0 1px var(--ed-linea); font-size: 13.5px; cursor: pointer; }
.imv-ed__colore input { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; }
.imv-ed__colore input[data-vuoto] { opacity: .35; }
.imv-ed__link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ed-acc); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.imv-ed__ant { position: sticky; top: calc(var(--testata, 32px) + 16px); display: flex; flex-direction: column; gap: 10px; }
.imv-ed--admin .imv-ed__ant { top: 46px; }
.imv-ed__ant-barra { display: flex; align-items: center; justify-content: space-between; }
.imv-ed__ant-barra span { display: flex; gap: 4px; }
.imv-ed__ant-barra button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--ed-linea); color: var(--ed-muto); cursor: pointer; }
.imv-ed__ant-barra button[aria-pressed="true"] { color: #fff; background: var(--ed-ink); box-shadow: none; }
.imv-ed__schermo { overflow: hidden; border-radius: 30px; background: #121317; padding: 10px; box-shadow: 0 30px 50px -30px rgba(0,0,0,.5); }
.imv-ed__schermo iframe { display: block; width: 100%; height: min(72vh, 760px); border: 0; border-radius: 22px; background: #fff; }
.imv-ed__schermo[data-schermo="pc"] { border-radius: 14px; padding: 6px; }
.imv-ed__schermo[data-schermo="pc"] iframe { width: 250%; height: 1850px; border-radius: 8px; transform: scale(.4); transform-origin: 0 0; margin-bottom: -1110px; }

/* bacheca di WordPress */
.imv-ed--admin { margin: 6px -12px -12px; padding: 18px; background: #f6f4ef; }
#imv_editor .inside { margin: 0; padding: 0; }

/* schede dei volantini nell'area clienti */
.area__tit-riga { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.area__conta { font-size: 14px; color: var(--muto, #6f7275); }
.imv-card__ico { background: var(--c1) !important; color: #fff !important; font-weight: 800; font-size: 15px; }
.imv-card__visite { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 13px; color: var(--muto, #6f7275); }
.imv-card__visite .i { width: 15px; height: 15px; }
.imv-card__form { display: inline; margin: 0; }
.imv-card__cestina { width: 42px; padding: 0 !important; }
.menu-card__azioni { flex-wrap: wrap; }

@media (max-width: 1100px) {
  .imv-ed__griglia { grid-template-columns: 1fr; }
  .imv-ed__ant { position: static; order: -1; }
  .imv-ed__schermo { max-width: 420px; margin: 0 auto; width: 100%; }
  .imv-ed__schermo iframe { height: 520px; }
}
@media (max-width: 640px) {
  .imv-ed__box { padding: 16px; }
  .imv-ed__due { grid-template-columns: 1fr; }
  .imv-ed__riga { flex-direction: column; }
  .imv-ed__riga .imv-ed__img { width: 100%; }
  .imv-ed__prod { grid-template-columns: 70px minmax(0, 1fr); }
  .imv-ed__img--mini { width: 70px; }
  .imv-ed__img--mini .imv-ed__img-btn { height: 70px; min-height: 70px; }
  .imv-ed__mini--prod { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; }
  .imv-ed__prezzi { grid-template-columns: 1fr 1fr; }
  .imv-ed__sconto { grid-column: 1 / -1; justify-self: start; margin: 0 0 8px; }
  .imv-ed__temi { grid-template-columns: repeat(2, 1fr); }
}
/* stile avanzato (piano Business e staff) */
.imv-ed__pill { padding: 4px 10px; border-radius: 999px; background: #17181c; color: #ffc21a; font-size: 12px; font-weight: 800; letter-spacing: .02em; }
.imv-ed__lock { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: #fff4d6; }
.imv-ed__lock > .i { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.imv-ed__lock b { display: block; margin-bottom: 4px; font-size: 15px; }
.imv-ed__lock p { margin: 0 0 8px; font-size: 13.5px; color: #4a4c50; }
.imv-ed__lock a { color: var(--ed-acc); font-weight: 700; }
.imv-ed__grp { border-top: 1px solid var(--ed-linea); }
.imv-ed__grp:last-of-type { border-bottom: 1px solid var(--ed-linea); margin-bottom: 14px; }
.imv-ed__grp > summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; }
.imv-ed__grp > summary::-webkit-details-marker { display: none; }
.imv-ed__grp > summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--ed-muto); }
.imv-ed__grp[open] > summary::after { content: "\2212"; }
.imv-ed__grp-in { padding: 4px 0 10px; }
.imv-ed__colori2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.imv-ed__col1 { position: relative; display: flex; align-items: center; min-width: 0; }
.imv-ed__col1 .imv-ed__colore { flex: 1; min-width: 0; padding-right: 34px; }
.imv-ed__col1 .imv-ed__colore span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imv-ed__col1 .imv-ed__colore em { font-style: normal; color: var(--ed-muto); font-size: 12px; }
.imv-ed__x { position: absolute; right: 6px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--ed-fondo); color: var(--ed-ink); cursor: pointer; }
.imv-ed__x .i { width: 13px; height: 13px; }
.imv-ed__font-prova { display: block; padding: 8px 10px; border-radius: 10px; background: var(--ed-fondo); font-size: 17px; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.imv-ed__grp input[type="range"] { width: 100%; accent-color: var(--ed-acc); }
.imv-ed__grp textarea { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
@media (max-width: 640px) { .imv-ed__colori2 { grid-template-columns: 1fr; } }
.imv-ed__col1 .imv-ed__colore input[data-vuoto] { opacity: .55; }
