
/* =========================================================
   STAGEO HOME CONVERSION - PRIVATI + ASSISTANT
========================================================= */

/* PRIVATI / IMMOBILI / CATASTO - stile come anteprima corretta */
.private-market-section{
  position:relative;
  overflow:hidden;
  background:#fff;
  color:#111820;
  padding:105px 7%;
}

.private-inner{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:54px;
  align-items:center;
}

.private-copy .label,
.assistant-compact-inner .label{
  color:#f26a00;
  font-family:"Barlow Condensed",Arial,sans-serif;
  font-size:22px;
  line-height:1;
  font-weight:800;
  letter-spacing:.5px;
  text-transform:uppercase;
  margin:0 0 28px;
}

.private-copy h2{
  font-family:"Barlow Condensed",Arial,sans-serif;
  font-size:clamp(58px,6.9vw,122px);
  line-height:.88;
  color:#111820;
  text-transform:uppercase;
  margin:0 0 30px;
  font-weight:800;
  letter-spacing:-1.5px;
}

.private-copy p{
  max-width:980px;
  font-size:22px;
  line-height:1.48;
  color:#1a2730;
  font-weight:800;
  margin:0 0 28px;
}

.city-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:34px 0;
}

.city-tags span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#10181b;
  color:#fff;
  border-left:4px solid #f26a00;
  padding:13px 20px;
  min-width:96px;
  min-height:45px;
  font-weight:900;
  text-transform:uppercase;
  font-size:13px;
  letter-spacing:.9px;
}

.private-cta{
  display:inline-flex;
  align-items:center;
  gap:10px;
  background:#f26a00;
  color:#fff;
  padding:22px 28px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.6px;
  text-decoration:none;
  box-shadow:0 18px 45px rgba(242,106,0,.24);
  transition:.25s ease;
}

.private-cta:hover{
  background:#ff7b00;
  transform:translateY(-3px);
}

.private-services{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:0;
  background:#10181b;
  border:1px solid rgba(255,255,255,.08);
}

.private-services article{
  background:#10181b;
  color:#fff;
  min-height:220px;
  padding:34px 32px;
  border:1px solid rgba(255,255,255,.07);
  transition:.3s ease;
}

.private-services article:hover{
  background:#f26a00;
  transform:translateY(-7px);
}

.private-services strong{
  display:block;
  font-family:"Barlow Condensed",Arial,sans-serif;
  font-size:32px;
  line-height:.96;
  text-transform:uppercase;
  margin-bottom:18px;
  letter-spacing:.2px;
}

.private-services p{
  color:rgba(255,255,255,.86);
  line-height:1.55;
  margin:0;
  font-size:17px;
  font-weight:600;
}

/* ASSISTANT COMPACT */
.assistant-home-section.assistant-home-compact{
  position:relative;
  overflow:hidden;
  background:#050b0e;
  color:#fff;
  padding:58px 7%;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.assistant-home-section.assistant-home-compact:before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.10;
  background:
    linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:72px 72px;
}

.assistant-compact-inner{
  position:relative;
  z-index:2;
  max-width:1160px;
}

.assistant-compact-inner h2{
  font-family:"Barlow Condensed",Arial,sans-serif;
  font-size:clamp(38px,4.8vw,82px);
  line-height:.92;
  text-transform:uppercase;
  margin:0 0 16px;
  font-weight:800;
  color:#fff;
}

.assistant-compact-inner p:not(.label){
  max-width:760px;
  color:rgba(255,255,255,.75);
  font-size:18px;
  line-height:1.5;
  margin:0 0 24px;
  font-weight:650;
}

.assistant-compact-btn{
  border:0;
  background:#f26a00;
  color:#fff;
  padding:16px 24px;
  font-weight:900;
  letter-spacing:.8px;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:0 18px 55px rgba(242,106,0,.28);
  transition:.28s ease;
}

.assistant-compact-btn:hover{
  transform:translateY(-3px);
  background:#ff7b00;
}

/* CHAT */
.stageo-chat-widget{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:999999;
  font-family:Inter,Arial,sans-serif;
}

.stageo-chat-button{
  border:0;
  background:linear-gradient(135deg,#ff7b00,#f26a00);
  color:#fff;
  width:132px;
  height:132px;
  border-radius:50%;
  cursor:pointer;
  box-shadow:0 0 0 9px rgba(242,106,0,.12),0 24px 70px rgba(242,106,0,.38);
  text-transform:uppercase;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  animation:stageoPulse 2.1s infinite;
}

.stageo-chat-button span{font-size:12px;font-weight:900;letter-spacing:1.1px}
.stageo-chat-button strong{font-family:"Barlow Condensed",Arial,sans-serif;font-size:31px;line-height:.9}
.stageo-chat-button em{font-style:normal;font-size:10px;margin-top:7px;font-weight:900;max-width:96px;line-height:1.15}

@keyframes stageoPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}

.stageo-chat-nudge{
  position:absolute;
  right:156px;
  bottom:24px;
  background:#fff;
  color:#111820;
  padding:15px 17px;
  border-radius:16px;
  font-weight:850;
  font-size:13px;
  width:288px;
  line-height:1.42;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
}

.stageo-chat-nudge:after{
  content:"";
  position:absolute;
  right:-10px;
  bottom:31px;
  border-left:10px solid #fff;
  border-top:10px solid transparent;
  border-bottom:10px solid transparent;
}

.stageo-chat-nudge button{
  display:block;
  margin-top:10px;
  border:0;
  background:#f26a00;
  color:#fff;
  padding:9px 12px;
  font-weight:900;
  cursor:pointer;
}

/* Chat: sempre dentro lo schermo, ultima risposta visibile in basso */
.stageo-chat-panel{
  position:fixed;
  right:22px;
  top:86px;
  bottom:170px;
  width:min(610px,calc(100vw - 44px));
  max-height:calc(100vh - 256px);
  background:#071014;
  color:#fff;
  border:2px solid rgba(242,106,0,.35);
  box-shadow:0 30px 100px rgba(0,0,0,.55);
  display:none;
  flex-direction:column;
  overflow:hidden;
}

.stageo-chat-panel.open{display:flex}

.stageo-chat-header{
  flex:0 0 auto;
  padding:15px 18px;
  background:linear-gradient(90deg,#f26a00,#ff7b00);
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.stageo-chat-header strong{
  display:block;
  color:#fff;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1px;
}

.stageo-chat-header span{
  display:block;
  color:rgba(255,255,255,.88);
  font-size:13px;
}

.stageo-chat-controls{
  display:flex;
  gap:8px;
}

.stageo-chat-controls button{
  border:1px solid rgba(255,255,255,.35);
  background:rgba(0,0,0,.16);
  color:#fff;
  font-size:24px;
  line-height:1;
  width:38px;
  height:38px;
  cursor:pointer;
  border-radius:8px;
}

.stageo-chat-messages{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  padding:18px 18px 34px;
  display:flex;
  flex-direction:column;
  gap:12px;
  scroll-behavior:smooth;
  background:
    linear-gradient(rgba(255,255,255,.02) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.02) 1px,transparent 1px),
    #071014;
  background-size:40px 40px;
}

.stageo-msg{
  max-width:92%;
  padding:14px 16px;
  border-radius:18px;
  font-size:15px;
  line-height:1.65;
}

.stageo-msg.bot{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:rgba(255,255,255,.9);
  align-self:flex-start;
}

.stageo-msg.user{
  background:#f26a00;
  color:#fff;
  font-weight:750;
  align-self:flex-end;
}

.stageo-msg.latest-bot{
  box-shadow:0 0 0 1px rgba(242,106,0,.45),0 0 38px rgba(242,106,0,.10);
}

.stageo-msg.latest-bot:before{
  content:"ULTIMA RISPOSTA";
  display:block;
  color:#f26a00;
  font-size:10px;
  letter-spacing:1px;
  font-weight:900;
  margin-bottom:7px;
}

.stageo-chat-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:10px;
}

.stageo-chat-actions button{
  border:1px solid rgba(242,106,0,.30);
  background:rgba(242,106,0,.08);
  color:#fff;
  padding:13px;
  font-weight:850;
  cursor:pointer;
  font-size:13px;
  text-align:left;
  transition:.25s;
}

.stageo-chat-actions button:hover{
  background:#f26a00;
  transform:translateY(-2px);
}

.stageo-channel-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:10px;
}

.stageo-channel-actions a,
.stageo-channel-actions button{
  display:block;
  text-align:center;
  text-decoration:none;
  border:0;
  background:#f26a00;
  color:#fff;
  padding:14px 16px;
  font-weight:900;
  cursor:pointer;
}

.stageo-channel-actions a.whatsapp{
  background:#25D366;
  color:#071014;
}

.stageo-note{
  display:block;
  margin-top:10px;
  color:rgba(255,255,255,.58);
  font-size:12px;
  line-height:1.45;
}

.stageo-chat-upload{
  flex:0 0 auto;
  border-top:1px solid rgba(255,255,255,.08);
  padding:11px 16px;
  background:#0b1115;
}

.stageo-chat-upload label{
  display:block;
  color:#f26a00;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  margin-bottom:6px;
}

.stageo-chat-upload input{
  width:100%;
  color:rgba(255,255,255,.65);
  font-size:12px;
}

.stageo-chat-upload small{
  display:block;
  color:rgba(255,255,255,.56);
  margin-top:5px;
  font-size:11px;
  line-height:1.35;
}

.stageo-chat-form{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  padding:12px 14px;
  border-top:1px solid rgba(255,255,255,.08);
  background:#06090b;
}

.stageo-chat-form input{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  color:#fff;
  padding:14px;
  font-size:15px;
  outline:none;
}

.stageo-chat-form button{
  border:0;
  background:#f26a00;
  color:#fff;
  font-weight:900;
  padding:0 22px;
  cursor:pointer;
}

.stageo-separator{
  align-self:center;
  color:rgba(255,255,255,.38);
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.8px;
  margin:8px 0;
  padding:8px 12px;
  border-top:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.stageo-chat-mini{
  display:none;
  position:absolute;
  right:0;
  bottom:148px;
  width:290px;
  border:1px solid rgba(242,106,0,.38);
  background:#071014;
  color:#fff;
  padding:16px 18px;
  text-align:left;
  box-shadow:0 18px 70px rgba(0,0,0,.35);
  cursor:pointer;
}

.stageo-chat-mini.open{display:block}

.stageo-chat-mini strong{
  display:block;
  color:#f26a00;
  font-weight:900;
  text-transform:uppercase;
  font-size:13px;
  letter-spacing:1px;
}

.stageo-chat-mini span{
  display:block;
  color:#fff;
  font-weight:800;
  margin-top:6px;
  font-size:14px;
}

@media(max-width:1100px){
  .private-inner{grid-template-columns:1fr}
  .private-services{grid-template-columns:1fr 1fr}
}

@media(max-width:700px){
  .private-market-section{padding:70px 22px}
  .private-copy h2{font-size:50px}
  .private-copy p{font-size:17px}
  .private-services{grid-template-columns:1fr}
  .private-services article{min-height:auto}
  .assistant-home-section.assistant-home-compact{padding:48px 22px}
  .assistant-compact-inner h2{font-size:38px}
  .assistant-compact-inner p:not(.label){font-size:15.5px}
  .stageo-chat-widget{right:14px;bottom:14px}
  .stageo-chat-button{width:104px;height:104px}
  .stageo-chat-button strong{font-size:23px}
  .stageo-chat-nudge{display:none}
  .stageo-chat-panel{right:8px;left:8px;top:72px;bottom:124px;width:auto;max-height:calc(100vh - 196px)}
  .stageo-chat-mini{right:0;bottom:118px;width:260px}
  .stageo-chat-actions{grid-template-columns:1fr}
}
