/* 2.86 (24/10) Il centro notifiche (profilo_centro_notifiche.html), la campanella in Home e il foglio
   «Manda a un amico» (static/notifiche-cliente.js). Colori dal tema del profilo (profilo.css); niente emoji. */

/* ---- la campanella */
.nh-bell { position: relative; }
.nh-bell-dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--p-accent); box-shadow: 0 0 0 2px var(--p-bg); }

/* ---- il centro */
.nc { display: flex; flex-direction: column; gap: 6px; }
.nc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.nc-head h1 { margin: 0; }
.nc-set { font-size: 14px; font-weight: 600; color: var(--p-link); text-decoration: underline; text-underline-offset: 3px; }
.nc-dl { margin: 14px 0 4px; font: 700 13px/1.2 Inter, system-ui, sans-serif; letter-spacing: .02em; text-transform: uppercase; color: var(--p-muted); }
.nc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nc-row { position: relative; overflow: hidden; border-bottom: 1px solid var(--p-line); background: var(--p-bg); }
.nc-row:last-child { border-bottom: 0; }
.nc-item { position: relative; z-index: 1; display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; color: var(--p-ink); text-decoration: none; background: var(--p-bg); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.nc-row.is-dragging .nc-item { transition: none; }
.nc-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--p-bg2); color: var(--p-ink); }
.nc-ic.is-blue { background: var(--p-accent-soft); color: var(--p-accent); }
.nc-ic.is-av { background: var(--p-tile-b); color: #FFFFFF; font: 700 14px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; }
.nc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nc-t b { font-size: 15px; font-weight: 650; line-height: 1.3; }
.nc-t small { font-size: 13.5px; color: var(--p-muted); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nc-row:not(.is-new) .nc-t b { font-weight: 550; }
.nc-when { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: 12.5px; color: var(--p-muted); white-space: nowrap; align-self: start; padding-top: 2px; }
.nc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--p-accent); }
.nc-acts { position: relative; z-index: 1; display: flex; gap: 8px; padding: 0 0 12px 54px; background: var(--p-bg); }
.nc-acts .p-btn { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.nc-del { position: absolute; inset: 0 0 0 auto; display: flex; z-index: 0; }
.nc-del button { border: 0; padding: 0 22px; background: var(--p-danger); color: #FFFFFF; font: 650 14px Inter, system-ui, sans-serif; cursor: pointer; }
.nc-row.is-gone { transition: max-height .25s ease, opacity .2s ease; max-height: 0 !important; opacity: 0; border: 0; }
.nc-clear { display: flex; justify-content: center; margin-top: 18px; }
.nc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 48px 12px; }
.nc-empty b { font-size: 17px; }
.nc-empty-i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--p-bg2); color: var(--p-muted); }

/* ---- le cose mandate dagli amici in cima alla Home */
.nh-note-av.is-friend { background: var(--p-tile-b); color: #FFFFFF; font-size: 13px; }

/* ---- il foglio «Manda a un amico» */
.rs-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .32); opacity: 0; transition: opacity .2s ease; }
.rs-scrim.is-on { opacity: 1; }
.rs-sheet { position: fixed; z-index: 91; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; background: var(--p-solid); color: var(--p-ink);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.rs-sheet.is-on { transform: none; }
.rs-grab { width: 38px; height: 5px; border-radius: 3px; background: var(--p-line2); margin: 0 auto 2px; }
.rs-sheet h2 { margin: 0; font: 700 18px/1.2 Inter, system-ui, sans-serif; }
.rs-friends { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 2px; margin: 0 -2px; scrollbar-width: none; }
.rs-friends::-webkit-scrollbar { display: none; }
.rs-fr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 60px; border: 0; padding: 0; background: none; color: var(--p-ink); font: 500 12px Inter, system-ui, sans-serif; cursor: pointer; }
.rs-av { position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--p-tile-b); color: #FFFFFF; font: 700 15px Inter, system-ui, sans-serif; transition: box-shadow .15s ease; }
.rs-fr small { max-width: 60px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.rs-fr[aria-pressed="true"] .rs-av { box-shadow: 0 0 0 2.5px var(--p-bg), 0 0 0 4.5px var(--p-accent); }
.rs-tick { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; display: none; place-items: center; background: var(--p-accent); color: #FFFFFF; box-shadow: 0 0 0 2px var(--p-solid); }
.rs-fr[aria-pressed="true"] .rs-tick { display: grid; }
.rs-msg { width: 100%; box-sizing: border-box; min-height: 46px; padding: 12px 14px; border: 1px solid var(--p-line); border-radius: 14px; background: var(--p-bg2); color: var(--p-ink); font: 15px Inter, system-ui, sans-serif; }
.rs-msg:focus { outline: 2px solid var(--p-accent); outline-offset: 1px; }
.rs-send { min-height: 50px; border: 0; border-radius: 999px; background: var(--p-accent); color: var(--p-on-accent); font: 650 16px Inter, system-ui, sans-serif; cursor: pointer; }
.rs-send[disabled] { opacity: .45; cursor: default; }
.rs-sep { height: 1px; background: var(--p-line); }
.rs-other { display: flex; gap: 10px; }
.rs-other button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 14px; background: var(--p-bg2); color: var(--p-ink); font: 600 14.5px Inter, system-ui, sans-serif; cursor: pointer; }
.rs-note { margin: 0; font-size: 13px; color: var(--p-muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { .rs-sheet, .rs-scrim, .nc-item { transition: none; } }

/* ---- la campanella nella barra in alto (tablet e PC) */
.p-gnav-bell { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--p-ink); background: var(--p-bg2); text-decoration: none; }
.p-gnav-bell .nh-bell-dot { top: 7px; right: 7px; }
.p-gnav-bell[aria-current="page"] { background: var(--p-accent-soft); }
@media (max-width: 767px) { .p-gnav-bell { display: none; } }
@media (min-width: 768px) { .p-gnav-bell { margin-left: auto; } .p-gnav-bell + .p-gnav-me { margin-left: 8px; } }
/* la riga resta sul fondo della pagina; «Togli» compare solo quando scorri */
.nc-row, .nc-item, .nc-acts { background: transparent; }
.nc-del { visibility: hidden; }
.nc-row.is-dragging .nc-del, .nc-row.is-open .nc-del { visibility: visible; }
.nc-row.is-dragging .nc-item, .nc-row.is-open .nc-item, .nc-row.is-dragging .nc-acts, .nc-row.is-open .nc-acts { background: var(--p-bg); }
.rs-other .rs-yes { background: var(--p-accent); color: var(--p-on-accent); }
.rs-sheet .rs-note { text-align: left; font-size: 14px; }
