/* Telefono e chat: fedeli a WhatsApp */
.telefono { width:322px; background:#1D1D21; border-radius:42px; padding:10px;
            box-shadow:0 40px 90px rgba(18,60,100,.30); position:relative; z-index:2; }
.tacca { position:absolute; top:20px; left:50%; transform:translateX(-50%);
         width:86px; height:15px; border-radius:8px; background:#000; z-index:3; }
.wa-testa { display:flex; align-items:center; gap:10px; background:#075E54; color:#FFF;
            border-radius:32px 32px 0 0; padding:36px 16px 12px; }
.wa-avatar { display:grid; place-items:center; width:33px; height:33px; border-radius:50%;
             background:#F5A623; color:#1D1D21; font-size:12px; font-weight:800; }
.wa-nome { font-size:14.5px; font-weight:700; line-height:1.1; flex:1; }
.wa-nome em { display:block; font-style:normal; font-size:10.5px; font-weight:400; opacity:.85; }
.wa-icone { display:flex; gap:15px; }
.wa-icone svg { width:17px; height:17px; stroke:#FFF; stroke-width:1.8; fill:none;
                stroke-linecap:round; stroke-linejoin:round; }

.wa-chat { background:#E5DDD5;
  background-image:
    radial-gradient(rgba(255,255,255,.5) 1px, transparent 1.4px),
    radial-gradient(rgba(120,100,80,.06) 1.2px, transparent 1.6px);
  background-size:22px 22px, 34px 34px;
  background-position:0 0, 11px 11px;
  padding:12px 11px 8px; display:flex; flex-direction:column; gap:5px;
  height:410px; overflow:hidden; justify-content:flex-end; }

.wa-giorno { align-self:center; font-size:10.5px; font-weight:600; color:#5B6B76;
             background:#DDEAF2; border-radius:8px; padding:4px 11px; margin-bottom:5px;
             box-shadow:0 1px 1px rgba(0,0,0,.06); }

.bolla { position:relative; max-width:88%; font-size:12.8px; line-height:1.45;
         padding:7px 10px 16px; border-radius:9px; box-shadow:0 1px .5px rgba(0,0,0,.13);
         margin-bottom:4px; animation:arriva .28s ease-out; }
@keyframes arriva { from { opacity:0; transform:translateY(9px) scale(.98); }
                    to { opacity:1; transform:translateY(0) scale(1); } }
.bolla.c { align-self:flex-start; background:#FFF; border-top-left-radius:0; }
.bolla.c::before { content:""; position:absolute; top:0; left:-7px;
  border:7px solid transparent; border-top-color:#FFF; border-right-color:#FFF;
  border-left-width:0; }
.bolla.i { align-self:flex-end; background:#D9FDD3; border-top-right-radius:0; }
.bolla.i::before { content:""; position:absolute; top:0; right:-7px;
  border:7px solid transparent; border-top-color:#D9FDD3; border-left-color:#D9FDD3;
  border-right-width:0; }
.ora { position:absolute; right:8px; bottom:3px; font-size:9px; color:#8896A0; }
.spunte { color:#53BDEB; font-size:9.5px; letter-spacing:-.12em; margin-left:2px; }

.vocale { display:flex; align-items:center; gap:8px; padding:2px 0 6px; }
.vocale .play { width:0; height:0; border-left:10px solid #25D366;
                border-top:6px solid transparent; border-bottom:6px solid transparent; }
.onde { display:flex; align-items:center; gap:2.5px; }
.onde i { width:3px; border-radius:2px; background:#9AAB9C; height:9px; }
.onde i:nth-child(odd) { height:14px; } .onde i:nth-child(3),.onde i:nth-child(6) { height:18px; }
.vocale em { font-style:normal; font-size:10px; color:#7A8A7C; }
.trascr { display:block; font-size:11.3px; line-height:1.45; color:#4E5E53;
          border-top:1px dashed #C9D6CC; padding-top:6px; }
.trascr b { display:block; font-size:9px; font-weight:700; text-transform:uppercase;
            letter-spacing:.07em; color:#1273B8; }
.due-foto { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin-bottom:6px; }
.due-foto svg { width:100%; border-radius:6px; display:block; }

.digita { display:flex; gap:4px; padding:12px 13px; }
.digita i { width:5px; height:5px; border-radius:50%; background:#9A9A9A;
            animation:punto 1s ease-in-out infinite; }
.digita i:nth-child(2) { animation-delay:.18s; } .digita i:nth-child(3) { animation-delay:.36s; }
@keyframes punto { 0%,100% { opacity:.3; } 50% { opacity:1; transform:translateY(-3px); } }

/* Composer come WhatsApp: emoji, testo, camera e tasto verde */
.wa-input { display:flex; align-items:center; gap:7px; background:#E5DDD5;
            border-radius:0 0 32px 32px; padding:4px 9px 13px; }
.wa-input .campo { flex:1; display:flex; align-items:center; gap:8px; height:38px;
                   border-radius:19px; background:#FFF; padding:0 12px;
                   font-size:12.5px; color:#3A4650; overflow:hidden; white-space:nowrap;
                   box-shadow:0 1px 1px rgba(0,0,0,.08); }
.wa-input .campo svg { flex:none; width:19px; height:19px; stroke:#8896A0; stroke-width:1.7;
                       fill:none; stroke-linecap:round; stroke-linejoin:round; }
#testo-digitato:empty + .caret + .suggerimento { display:inline; }
.suggerimento { display:none; color:#98A2B3; }
.caret { flex:none; width:1.5px; height:16px; background:#128C7E;
         animation:caret .85s steps(1) infinite; }
@keyframes caret { 50% { opacity:0; } }
.tondo-invia { flex:none; display:grid; place-items:center; width:38px; height:38px;
               border-radius:50%; background:#00A884; box-shadow:0 2px 6px rgba(0,0,0,.18); }
.tondo-invia svg { width:18px; height:18px; fill:#FFF; }
.wa-tag { position:absolute; bottom:2px; left:50%; transform:translateX(-50%); z-index:3;
          display:flex; align-items:center; gap:7px; font-size:12px; font-weight:700;
          color:#0e6b5e; background:#FFF; border:1px solid #D6EDE0; border-radius:16px;
          padding:8px 16px; box-shadow:0 10px 24px rgba(18,60,100,.12); }
.wa-tag i { width:8px; height:8px; border-radius:50%; background:#25D366; }

/* Il testo digitato e il placeholder sono normali, mai corsivi */
.campo i { font-style: normal; }
.suggerimento { font-style: normal; }

/* Indicatore di digitazione: bollino compatto, solo i tre puntini */
.bolla.digita { padding:10px 13px; width:auto; align-self:flex-start;
                background:#FFF; border-top-left-radius:0; border-radius:14px; }
.bolla.digita::before { border-top-color:#FFF; border-right-color:#FFF; }
.bolla.i.digita { align-self:flex-end; background:#D9FDD3; border-radius:14px;
                  border-top-right-radius:0; }
.bolla.i.digita::before { border-top-color:#D9FDD3; border-left-color:#D9FDD3;
                          border-right-color:transparent; }
.unica-foto { width:100%; max-width:180px; border-radius:7px; display:block; margin-bottom:6px; }

/* I tre puntini: SOLO i puntini, larghezza del contenuto e basta */
.bolla.digita, .bolla.i.digita {
  width: -moz-fit-content;
  width: fit-content;
  max-width: none;
  flex: 0 0 auto;
}


/* Avatar fotografico della hero */
.wa-avatar { overflow:hidden; }
.wa-avatar-foto { background:#FFF; border:1px solid rgba(255,255,255,.7); box-shadow:0 2px 8px rgba(0,0,0,.18); }
.wa-avatar-foto img { width:100%; height:100%; object-fit:cover; object-position:center 20%; display:block; }


/* --- Telefono hero più realistico --- */
.telefono-pulito { width:286px; background:#121317; border-radius:40px; padding:9px; box-shadow:0 34px 70px rgba(18,60,100,.24); }
.telefono-pulito .tacca { top:18px; width:72px; height:14px; border-radius:8px; }
.telefono-pulito .wa-testa { border-radius:30px 30px 0 0; padding:34px 14px 11px; }
.telefono-pulito .wa-chat { height:432px; padding:12px 10px 8px; }
.telefono-pulito .wa-input { border-radius:0 0 30px 30px; padding:4px 8px 12px; }
.telefono-pulito .wa-avatar { width:34px; height:34px; }
.telefono-pulito .bolla { font-size:12.3px; }
.telefono-pulito .wa-nome { font-size:14px; }
.telefono-pulito .wa-giorno { font-size:10px; }
