:root{
  --ma-gold:#c9a96e;
  --ma-red:#8d1111;
  --ma-dark:#17120e;
  --ma-paper:#fffaf2;
  --ma-line:#e5d7c1;
  --ma-footer-space:82px;
}
html.ma-lock,body.ma-lock{overflow:hidden!important;overscroll-behavior:none!important}
.ma-launcher{
  position:fixed;right:14px;bottom:calc(var(--ma-footer-space) + env(safe-area-inset-bottom));z-index:10070;
  display:flex;align-items:center;gap:9px;border:0;background:transparent;padding:0;cursor:pointer;font:inherit;
  filter:drop-shadow(0 9px 20px rgba(0,0,0,.28))
}
.ma-launcher-copy{max-width:220px;padding:10px 13px;border:1px solid rgba(201,169,110,.55);border-radius:14px;background:rgba(23,18,14,.97);color:#fff;text-align:left;line-height:1.2;animation:maInvite 3s ease-in-out infinite}
.ma-launcher-copy strong{display:block;color:#f2d49f;font-size:.88rem}.ma-launcher-copy small{display:block;margin-top:3px;color:#f3eee6;font-size:.72rem}
.ma-launcher-avatar{position:relative;width:78px;height:78px;flex:0 0 78px;padding:3px;border-radius:50%;background:linear-gradient(145deg,#f3d7a5,#8d1111);box-shadow:0 0 0 5px rgba(201,169,110,.14),0 9px 24px rgba(0,0,0,.3);animation:maFloat 3s ease-in-out infinite}
.ma-launcher-avatar::after{content:"";position:absolute;inset:-7px;border:1px solid rgba(201,169,110,.5);border-radius:50%;animation:maHalo 2.2s ease-out infinite}
.ma-launcher-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 18%;border-radius:50%}
.ma-launcher.is-thinking .ma-launcher-avatar img{animation:maTalk .42s ease-in-out infinite alternate}
@keyframes maFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
@keyframes maHalo{0%{transform:scale(.9);opacity:.7}100%{transform:scale(1.18);opacity:0}}
@keyframes maTalk{from{transform:scale(1.01)}to{transform:scale(1.055) translateY(-1px)}}
@keyframes maInvite{0%,100%{transform:translateX(0)}50%{transform:translateX(-4px)}}

.ma-panel{
  position:fixed;right:14px;bottom:calc(174px + env(safe-area-inset-bottom));z-index:10080;
  width:min(430px,calc(100vw - 24px));height:min(650px,calc(100dvh - 190px));
  display:none;grid-template-rows:auto minmax(0,1fr) auto auto;overflow:hidden;
  border:1px solid rgba(201,169,110,.52);border-radius:18px;background:var(--ma-paper);color:#2d241d;
  box-shadow:0 24px 70px rgba(0,0,0,.42)
}
.ma-panel.is-open{display:grid;animation:maPanelIn .2s ease-out}
@keyframes maPanelIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
.ma-panel.is-fullscreen{inset:0!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;border:0!important;border-radius:0!important;bottom:0!important;right:0!important;z-index:10250!important}
.ma-head{display:flex;align-items:center;gap:7px;padding:10px 11px;background:linear-gradient(135deg,#17120e,#342319);color:#fff;border-bottom:1px solid rgba(201,169,110,.34)}
.ma-head-avatar{width:40px;height:40px;flex:0 0 40px;border-radius:50%;object-fit:cover;object-position:center 18%;border:2px solid var(--ma-gold)}
.ma-head-title{min-width:0;flex:1}.ma-head-title strong{display:block;color:#f3d7a5;font-family:Georgia,"Times New Roman",serif;font-size:.96rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ma-head-title span{display:block;margin-top:2px;color:#f5efe6;font-size:.64rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ma-head-btn,.ma-head-close{height:34px;min-width:34px;border:1px solid rgba(255,255,255,.17);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;font:inherit;font-size:.64rem;font-weight:800;padding:0 7px;cursor:pointer}.ma-head-close{width:34px;padding:0;font-size:20px;border-radius:50%}.ma-head-btn:hover,.ma-head-close:hover{background:rgba(255,255,255,.16)}
.ma-messages{min-height:0;overflow:auto;padding:14px 12px 18px;background:linear-gradient(180deg,#fffaf2,#f7efe3);scroll-behavior:smooth;overscroll-behavior:contain}
.ma-row{display:flex;margin:0 0 11px}.ma-row.user{justify-content:flex-end}.ma-bubble{max-width:88%;padding:10px 12px;border-radius:15px;font-size:.9rem;line-height:1.48;overflow-wrap:anywhere}.ma-row.user .ma-bubble{background:#2d2119;color:#fff;border-top-right-radius:5px}.ma-row.assistant .ma-bubble{background:#fff;border:1px solid #e8dcc7;border-top-left-radius:5px;box-shadow:0 4px 12px rgba(62,42,26,.06)}
.ma-bubble h2,.ma-bubble h3{margin:12px 0 6px;color:#6f1717;font-family:Georgia,"Times New Roman",serif;line-height:1.2}.ma-bubble h2{font-size:1.13rem;border-bottom:1px solid #eadbc6;padding-bottom:4px}.ma-bubble h3{font-size:1rem}.ma-bubble p{margin:0 0 9px}.ma-bubble p:last-child{margin-bottom:0}.ma-bubble strong{font-weight:900}.ma-bubble ul,.ma-bubble ol{margin:7px 0 10px;padding-left:20px}.ma-bubble li{margin:4px 0}.ma-bubble blockquote{margin:10px 0;padding:9px 10px;border-left:4px solid #a77a3d;border-radius:0 9px 9px 0;background:#fff4e1;font-weight:700}.ma-bubble code{padding:2px 5px;border-radius:5px;background:#efe7dc;font-family:ui-monospace,Consolas,monospace;font-size:.84em}
.ma-link-card,.ma-contact-card{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:center;margin:9px 0;padding:11px 12px;border-radius:12px;text-decoration:none!important;box-shadow:0 5px 14px rgba(65,43,28,.07)}.ma-link-card{border:1px solid #d8bc8c;background:linear-gradient(135deg,#fff8e9,#fff);color:#33251b!important}.ma-contact-card.whatsapp{border:1px solid #9bd0aa;background:#f1fff5;color:#155b2d!important}.ma-contact-card.phone{border:1px solid #dfaaa5;background:#fff4f2;color:#7b1b15!important}.ma-link-card strong,.ma-contact-card strong{display:block}.ma-link-card small,.ma-contact-card small{display:block;margin-top:2px;font-size:.68rem;opacity:.78}.ma-card-action{font-size:.66rem;font-weight:900;border:1px solid currentColor;border-radius:999px;padding:5px 8px}
.ma-typing{display:flex;align-items:center;gap:5px;min-height:38px}.ma-typing i{width:7px;height:7px;border-radius:50%;background:#9b7650;animation:maDot 1s infinite}.ma-typing i:nth-child(2){animation-delay:.15s}.ma-typing i:nth-child(3){animation-delay:.3s}@keyframes maDot{0%,70%,100%{transform:translateY(0);opacity:.45}35%{transform:translateY(-4px);opacity:1}}
.ma-error{border-color:#e3aaa4!important;background:#fff3f1!important;color:#741b14}.ma-error button,.ma-continue{margin-top:8px;border:0;border-radius:9px;background:#8d1111;color:#fff;padding:8px 11px;font-weight:900;cursor:pointer}
.ma-quick{display:flex;gap:6px;overflow-x:auto;padding:8px 10px;border-top:1px solid #eadfce;background:#fff;scrollbar-width:none}.ma-quick::-webkit-scrollbar{display:none}.ma-quick button{flex:0 0 auto;border:1px solid #dcc9aa;border-radius:999px;background:#fff8ec;color:#4a3527;padding:7px 9px;font-size:.71rem;font-weight:800;cursor:pointer}
.ma-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;padding:9px calc(9px + env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) calc(9px + env(safe-area-inset-left));background:#fff;border-top:1px solid #e7dccd}.ma-form textarea{resize:none;min-width:0;min-height:46px;max-height:125px;width:100%;border:1px solid #d9c8ae;border-radius:12px;padding:10px 11px;font:inherit;font-size:16px;line-height:1.3;outline:none}.ma-form textarea:focus{border-color:#9b6f36;box-shadow:0 0 0 3px rgba(201,169,110,.16)}.ma-form>button{min-width:76px;border:0;border-radius:12px;background:#8d1111;color:#fff;font-weight:900;padding:0 12px;cursor:pointer}.ma-form>button:disabled{opacity:.55;cursor:wait}.ma-form-note{grid-column:1/-1;margin:0;padding:0 2px;color:#7a6b5c;font-size:.62rem;line-height:1.25}
.ma-archive{position:absolute;inset:0;z-index:6;display:none;grid-template-rows:auto minmax(0,1fr) auto;background:#f7efe3}.ma-archive.is-open{display:grid}.ma-archive-head{display:flex;align-items:center;gap:10px;padding:12px 13px;background:#fffaf2;border-bottom:1px solid #dfd0bb}.ma-archive-head>div{min-width:0;flex:1}.ma-archive-head strong{display:block}.ma-archive-head span{display:block;margin-top:2px;color:#756454;font-size:.68rem}.ma-archive-head button{width:34px;height:34px;border:1px solid #ddccb2;border-radius:50%;background:#fff;font-size:20px;cursor:pointer}.ma-archive-list{min-height:0;overflow:auto;padding:10px}.ma-archive-empty{display:none;padding:24px;text-align:center;color:#756454}.ma-archive-item{display:grid;grid-template-columns:1fr auto;gap:7px;margin-bottom:8px;padding:10px;border:1px solid #e0d1bd;border-radius:12px;background:#fff}.ma-archive-item.is-active{border-color:#a87835;box-shadow:0 0 0 2px rgba(168,120,53,.12)}.ma-archive-open{min-width:0;border:0;background:transparent;text-align:left;cursor:pointer}.ma-archive-open strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ma-archive-open small{display:block;margin-top:4px;color:#7b6b5d}.ma-archive-delete{border:1px solid #ead8cf;border-radius:9px;background:#fff8f6;color:#8d1111;padding:6px 8px;font-weight:800;cursor:pointer}
@media(min-width:769px){.ma-panel.is-fullscreen .ma-messages{padding-left:max(24px,calc((100vw - 1100px)/2));padding-right:max(24px,calc((100vw - 1100px)/2))}.ma-panel.is-fullscreen .ma-quick,.ma-panel.is-fullscreen .ma-form{padding-left:max(24px,calc((100vw - 1100px)/2));padding-right:max(24px,calc((100vw - 1100px)/2))}.ma-panel.is-fullscreen .ma-bubble{max-width:min(80%,950px);font-size:1rem}}
@media(max-width:768px){
  .ma-launcher{right:8px;bottom:calc(84px + env(safe-area-inset-bottom));gap:7px}.ma-launcher-copy{max-width:165px;padding:8px 10px}.ma-launcher-copy strong{font-size:.77rem}.ma-launcher-copy small{font-size:.65rem}.ma-launcher-avatar{width:64px;height:64px;flex-basis:64px}
  .ma-panel{right:8px;bottom:calc(154px + env(safe-area-inset-bottom));width:calc(100vw - 16px);height:min(590px,calc(100dvh - 170px));border-radius:16px}
  .ma-panel.is-fullscreen{display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;height:100dvh!important}
  .ma-panel.is-fullscreen .ma-head{padding-top:calc(7px + env(safe-area-inset-top))}.ma-head-title span{display:none}.ma-head-btn{padding:0 5px;font-size:.59rem}.ma-head-avatar{width:36px;height:36px;flex-basis:36px}.ma-head-title strong{font-size:.82rem}
  .ma-panel.is-fullscreen .ma-messages{height:100%;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}.ma-panel.is-fullscreen .ma-form{position:relative!important;bottom:auto!important}.ma-panel.is-fullscreen .ma-form textarea{font-size:16px!important}
  .ma-bubble{max-width:95%;font-size:.87rem}.ma-link-card,.ma-contact-card{grid-template-columns:1fr}.ma-card-action{justify-self:start}
}
@media(max-width:410px){.ma-launcher-copy{max-width:138px}.ma-launcher-copy small{display:none}.ma-head-btn[data-ma-archive]{display:none}.ma-head-btn{font-size:.56rem}.ma-form>button{min-width:67px;padding:0 9px}}

/* MASTERCHEF_ADAMO_V88_READABILITY_START */
/* Migliore leggibilità della chat senza cambiare struttura o funzioni. */
.ma-panel,
.ma-panel button,
.ma-panel input,
.ma-panel textarea,
.ma-panel select{
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}

.ma-messages{
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

.ma-bubble{
  font-size:clamp(.98rem,.28vw + .91rem,1.08rem);
  line-height:1.68;
  letter-spacing:.002em;
  word-spacing:.02em;
}

.ma-row.assistant .ma-bubble{
  color:#251d17;
  padding:14px 15px;
}

.ma-row.user .ma-bubble{
  font-size:clamp(.94rem,.2vw + .9rem,1.02rem);
  line-height:1.56;
  font-weight:500;
}

.ma-bubble h2,
.ma-bubble h3{
  font-family:Georgia,"Times New Roman",serif;
  font-weight:800;
  letter-spacing:.005em;
}

.ma-bubble h2{
  margin:16px 0 8px;
  font-size:clamp(1.2rem,.45vw + 1.08rem,1.42rem);
  line-height:1.25;
}

.ma-bubble h3{
  margin:14px 0 7px;
  font-size:clamp(1.07rem,.3vw + 1rem,1.22rem);
  line-height:1.28;
}

.ma-row.assistant .ma-bubble strong{
  color:#6f1717;
  font-weight:850;
  background:linear-gradient(transparent 62%,rgba(201,169,110,.22) 62%);
  padding:0 .04em;
}

.ma-row.user .ma-bubble strong{
  color:#fff;
  background:transparent;
  font-weight:850;
}

.ma-bubble p{
  margin:0 0 12px;
}

.ma-bubble ul,
.ma-bubble ol{
  margin:9px 0 13px;
  padding-left:23px;
}

.ma-bubble li{
  margin:6px 0;
  padding-left:2px;
}

.ma-bubble a:not(.ma-link-card):not(.ma-contact-card){
  color:#7c1717;
  font-weight:750;
  text-decoration-thickness:1.5px;
  text-underline-offset:3px;
}

.ma-link-card strong,
.ma-contact-card strong{
  font-size:.92rem;
  line-height:1.3;
  font-weight:850;
}

.ma-link-card small,
.ma-contact-card small{
  font-size:.74rem;
  line-height:1.35;
}

.ma-form textarea{
  font-family:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:16px;
  line-height:1.45;
  font-weight:500;
}

@media(max-width:768px){
  .ma-bubble{
    max-width:94%;
    font-size:1rem;
    line-height:1.62;
  }

  .ma-row.assistant .ma-bubble{
    padding:13px 12px;
  }

  .ma-bubble h2{
    font-size:1.22rem;
  }

  .ma-bubble h3{
    font-size:1.08rem;
  }
}
/* MASTERCHEF_ADAMO_V88_READABILITY_END */

/* MASTERCHEF_ADAMO_V91_ORDERED_FORMATTING_START */
/* Solo formattazione delle risposte e schede Budget: nessuna modifica al motore chat. */
.ma-row.assistant{
  justify-content:flex-start;
}

.ma-row.assistant .ma-bubble{
  width:auto;
  max-width:min(94%,780px);
  padding:16px 17px;
  border:1px solid #e2d3bd;
  border-radius:18px 18px 18px 6px;
  background:linear-gradient(180deg,#fff,#fffaf3);
  box-shadow:0 8px 24px rgba(58,39,24,.08);
  color:#2b211a;
}

.ma-row.assistant .ma-bubble.has-budget-cards{
  width:min(100%,920px);
  max-width:100%;
}

.ma-answer-content{
  display:flow-root;
  font-size:1rem;
  line-height:1.62;
  letter-spacing:.002em;
}

.ma-answer-content > :first-child{
  margin-top:0!important;
}

.ma-answer-content > :last-child{
  margin-bottom:0!important;
}

.ma-answer-content h2{
  margin:0 0 11px;
  padding:0 0 7px;
  border-bottom:1px solid #eadbc6;
  color:#6f1717;
  font-size:1.28rem;
  line-height:1.22;
}

.ma-answer-content h3{
  margin:17px 0 8px;
  color:#6f1717;
  font-size:1.08rem;
  line-height:1.28;
}

.ma-answer-content p{
  margin:0 0 12px;
}

.ma-answer-content ul,
.ma-answer-content ol{
  margin:8px 0 14px;
  padding-left:24px;
}

.ma-answer-content li{
  margin:6px 0;
  padding-left:2px;
}

.ma-answer-content strong{
  color:#6f1717;
  font-weight:900;
  background:linear-gradient(transparent 64%,rgba(201,169,110,.2) 64%);
}

.ma-contact-stack{
  display:grid;
  gap:8px;
  margin-top:14px;
}

/* Budget cards: solo testo, nessuna immagine. */
.ma-budget-answer{
  margin-top:17px;
  padding-top:15px;
  border-top:1px solid #eadbc6;
}

.ma-budget-answer-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:11px;
}

.ma-budget-answer-title strong{
  color:#5f1717;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.18rem;
  line-height:1.2;
}

.ma-budget-answer-title span{
  color:#806e5c;
  font-size:.7rem;
  font-weight:750;
  text-align:right;
}

.ma-budget-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.ma-budget-card{
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:14px;
  border:1px solid #ddc8a8;
  border-radius:15px;
  background:linear-gradient(155deg,#fffdf8,#fff5e8);
  box-shadow:0 7px 18px rgba(67,45,28,.07);
}

.ma-budget-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  padding-bottom:10px;
  border-bottom:1px solid #eadbc6;
}

.ma-budget-label{
  display:block;
  margin-bottom:4px;
  color:#8d1111;
  font-size:.69rem;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.ma-budget-card h3{
  margin:0;
  color:#2e2017;
  font-family:Georgia,"Times New Roman",serif;
  font-size:1.05rem;
  line-height:1.22;
}

.ma-budget-subtitle{
  margin:4px 0 0!important;
  color:#7a6857;
  font-size:.72rem;
  line-height:1.35;
}

.ma-budget-count{
  flex:0 0 auto;
  padding:5px 8px;
  border:1px solid #d8bd92;
  border-radius:999px;
  background:#fff;
  color:#6b4a27;
  font-size:.68rem;
  font-weight:900;
  white-space:nowrap;
}

.ma-budget-course-list{
  display:grid;
  gap:7px;
  margin:12px 0!important;
  padding:0!important;
  list-style:none!important;
}

.ma-budget-course-list li{
  display:grid;
  grid-template-columns:24px minmax(0,1fr);
  align-items:center;
  gap:8px;
  margin:0!important;
  padding:0!important;
  color:#3e3025;
  font-size:.82rem;
  line-height:1.3;
}

.ma-budget-course-index{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  border-radius:50%;
  background:#2d2119;
  color:#f3d49e;
  font-size:.67rem;
  font-weight:900;
}

.ma-budget-card-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-top:auto;
  padding-top:10px;
  border-top:1px solid #eadbc6;
}

.ma-budget-price{
  color:#8d1111!important;
  background:none!important;
  font-size:.9rem;
  font-weight:900;
}

.ma-budget-drinks{
  color:#6d5b4b;
  font-size:.64rem;
  font-weight:850;
  text-align:right;
}

.ma-budget-service-note{
  margin:9px 0 0!important;
  padding:8px 9px;
  border-left:3px solid #b88a48;
  border-radius:0 8px 8px 0;
  background:rgba(201,169,110,.11);
  color:#594532;
  font-size:.7rem;
  line-height:1.38;
}

@media(min-width:769px){
  .ma-panel.is-fullscreen .ma-row.assistant .ma-bubble.has-budget-cards{
    width:min(100%,1040px);
    max-width:1040px;
  }
}

@media(max-width:768px){
  .ma-row.assistant .ma-bubble,
  .ma-row.assistant .ma-bubble.has-budget-cards{
    width:100%;
    max-width:100%;
    padding:14px 12px;
    border-radius:15px 15px 15px 5px;
  }

  .ma-answer-content{
    font-size:.98rem;
    line-height:1.58;
  }

  .ma-budget-answer-title{
    align-items:flex-start;
    flex-direction:column;
    gap:3px;
  }

  .ma-budget-answer-title span{
    text-align:left;
  }

  .ma-budget-grid{
    grid-template-columns:1fr;
    gap:10px;
  }

  .ma-budget-card{
    padding:12px;
  }
}
/* MASTERCHEF_ADAMO_V91_ORDERED_FORMATTING_END */

