/* STAGEO - FIX CHAT SOLO HOME PC
   Attivo solo da PC/tablet largo. Da telefono NON interviene.
*/
@media (min-width: 769px){
  body.stageo-home-pc-chat-active #stageoChat,
  body.stageo-home-pc-chat-active .stageo-chat-widget,
  body.stageo-home-pc-chat-active #stageoChatPro{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  #stageoHomePcChat,
  #stageoHomePcChat *{
    box-sizing:border-box!important;
    font-family:Inter,Arial,sans-serif!important;
  }

  #stageoHomePcChat{
    position:fixed!important;
    right:24px!important;
    bottom:24px!important;
    z-index:2147483647!important;
    color:#fff!important;
  }

  #stageoHomePcOpen{
    display:block!important;
    border:0!important;
    cursor:pointer!important;
    min-width:188px!important;
    padding:15px 17px!important;
    border-radius:18px!important;
    background:linear-gradient(135deg,#ff6b00,#ff9b32)!important;
    color:#101820!important;
    box-shadow:0 18px 45px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.18) inset!important;
    text-align:left!important;
  }

  #stageoHomePcOpen span{display:block!important;font-size:11px!important;font-weight:900!important;letter-spacing:.13em!important;text-transform:uppercase!important;opacity:.82!important}
  #stageoHomePcOpen strong{display:block!important;font-size:22px!important;line-height:1!important;font-weight:900!important}
  #stageoHomePcOpen em{display:block!important;margin-top:5px!important;font-size:12px!important;font-style:normal!important;font-weight:800!important;color:#3b1a00!important}

  #stageoHomePcChat.is-open #stageoHomePcOpen{
    display:none!important;
  }

  #stageoHomePcPanel{
    position:absolute!important;
    right:0!important;
    bottom:0!important;
    width:430px!important;
    max-width:calc(100vw - 32px)!important;
    height:640px!important;
    max-height:calc(100vh - 48px)!important;
    display:none!important;
    grid-template-rows:auto 1fr auto auto auto!important;
    overflow:hidden!important;
    border-radius:24px!important;
    background:#0d1721!important;
    border:1px solid rgba(255,107,0,.42)!important;
    box-shadow:0 28px 80px rgba(0,0,0,.58)!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }

  #stageoHomePcChat.is-open #stageoHomePcPanel,
  #stageoHomePcPanel.is-open{
    display:grid!important;
  }

  .stageo-homepc-header{
    display:flex!important;
    justify-content:space-between!important;
    gap:12px!important;
    align-items:center!important;
    padding:16px 18px!important;
    background:linear-gradient(135deg,#101820,#172638)!important;
    border-bottom:1px solid rgba(255,107,0,.28)!important;
  }
  .stageo-homepc-header strong{display:block!important;font-size:17px!important;font-weight:900!important;color:#fff!important}
  .stageo-homepc-header span{display:block!important;margin-top:3px!important;font-size:12px!important;color:#b9c8d6!important}

  .stageo-homepc-controls{display:flex!important;gap:8px!important;align-items:center!important}
  .stageo-homepc-controls button{
    width:34px!important;height:34px!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:10px!important;background:rgba(255,255,255,.06)!important;color:#fff!important;font-size:18px!important;cursor:pointer!important;
  }

  #stageoHomePcMessages{
    min-height:0!important;
    overflow:auto!important;
    padding:18px!important;
    background:radial-gradient(circle at 0% 0%,rgba(255,107,0,.1),transparent 28%),linear-gradient(180deg,#0d1721,#0a1119)!important;
    scroll-behavior:smooth!important;
  }

  .stageo-homepc-msg{
    max-width:88%!important;
    margin:0 0 12px!important;
    padding:12px 14px!important;
    border-radius:16px!important;
    font-size:14px!important;
    line-height:1.48!important;
    white-space:normal!important;
    word-wrap:break-word!important;
  }
  .stageo-homepc-msg.bot{
    background:#152333!important;
    border:1px solid rgba(255,255,255,.08)!important;
    color:#eef6fb!important;
    border-bottom-left-radius:4px!important;
  }
  .stageo-homepc-msg.user{
    margin-left:auto!important;
    background:#ff6b00!important;
    color:#111!important;
    font-weight:700!important;
    border-bottom-right-radius:4px!important;
  }

  .stageo-homepc-options{
    display:flex!important;
    flex-wrap:wrap!important;
    gap:8px!important;
    margin:12px 0 4px!important;
  }
  .stageo-homepc-option{
    border:1px solid rgba(255,107,0,.45)!important;
    background:rgba(255,107,0,.1)!important;
    color:#ffd8c0!important;
    border-radius:999px!important;
    padding:8px 10px!important;
    font-size:12px!important;
    font-weight:800!important;
    cursor:pointer!important;
  }
  .stageo-homepc-option:hover{background:#ff6b00!important;color:#111!important}

  .stageo-homepc-upload{
    padding:10px 14px!important;
    background:#101820!important;
    border-top:1px solid rgba(255,255,255,.08)!important;
    font-size:12px!important;
    color:#b9c8d6!important;
  }
  .stageo-homepc-upload label{
    display:inline-block!important;
    margin-right:8px!important;
    color:#ff8b2a!important;
    font-weight:900!important;
    cursor:pointer!important;
  }
  .stageo-homepc-upload input{max-width:185px!important;font-size:11px!important;color:#dbe6ee!important}
  .stageo-homepc-upload small{display:block!important;margin-top:5px!important;color:#8fa0b0!important}

  .stageo-homepc-actions{
    display:flex!important;
    justify-content:flex-end!important;
    align-items:center!important;
    padding:7px 14px 0!important;
    background:#101820!important;
    border-top:1px solid rgba(255,255,255,.04)!important;
  }
  #stageoHomePcReset{
    border:0!important;
    background:transparent!important;
    color:#ffb16e!important;
    font-size:11px!important;
    font-weight:900!important;
    letter-spacing:.03em!important;
    text-transform:uppercase!important;
    cursor:pointer!important;
    padding:2px 0!important;
  }
  #stageoHomePcReset:hover{color:#fff!important;text-decoration:underline!important}

  #stageoHomePcForm{
    display:flex!important;
    gap:8px!important;
    padding:12px!important;
    background:#101820!important;
    border-top:1px solid rgba(255,255,255,.08)!important;
  }
  #stageoHomePcInput{
    flex:1!important;
    min-width:0!important;
    border:1px solid rgba(255,255,255,.15)!important;
    border-radius:13px!important;
    background:#0a1119!important;
    color:#fff!important;
    padding:12px!important;
    font-size:14px!important;
    outline:none!important;
  }
  #stageoHomePcForm button{
    border:0!important;
    border-radius:13px!important;
    background:#ff6b00!important;
    color:#111!important;
    font-weight:900!important;
    padding:0 16px!important;
    cursor:pointer!important;
  }
}

/* Da mobile non faccio nulla: resta la chat mobile che già funziona */
@media (max-width: 768px){
  #stageoHomePcChat{display:none!important}
}
