/* ============================================================
   Live Profile – Stili base
   ============================================================ */
.page-profile {
	padding: 0 !important;
}
.page-profile .live-profile {
	background: #f2f4f7;
}
.lnv-profile {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    box-sizing: border-box;
}
.live-profile-heading {
	margin: 0 !important;
	padding: 10px 20px;
}
.live-profile-wrapper {
	gap: 0;
}
/* Header */

.lnv-profile-header {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
	overflow: hidden;
}
.lnv-profile-header-wrapper {
	display: flex;
    align-items: center;
    gap: 20px;
}
.lvn-profile-box {	
	padding: 20px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	border-radius: 8px;
	margin-bottom: .9rem;
}
.lnv-profile-avatar {
    position: relative;
    flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.lnv-profile-item-meta {
	color: #666;
    font-size: 13px;
    font-family: "Open Sans", sans-serif;
}
.lnv-profile-avatar-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 3px solid #f0f0f0;
    margin-bottom: 0.5rem;
}

#lnv-profile-change-avatar {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
}

.lnv-profile-summary {
    min-width: 0;
}

.lnv-profile-name {
    font-size: 1.5rem;
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.lnv-profile-email {
    margin: 0;
    font-size: 0.95rem;
    color: #777;
    word-break: break-all;
	}

.lnv-profile-meta {
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: #999;
}
.nav-fade{ 
	position: relative;
width: 100%;
  max-width: 100%;
  min-width: 0;        /* <<< chiave se parent è flex */
  overflow: hidden;    /* per sfumature */
	}

/* NAV orizzontale scrollabile */
.lnv-profile-tabs{
  display:flex;
  flex-wrap:nowrap;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;
  -webkit-overflow-scrolling:touch;
	min-width: 0;
  padding: 0;          /* spazio per le sfumature */
  scrollbar-width:none;
  cursor:grab;
}
.lnv-profile-tabs::-webkit-scrollbar{ display:none; }

.lnv-profile-tabs.is-dragging{
  cursor:grabbing;
  user-select:none;
}
.lnv-profile-tabs.is-dragging a{ pointer-events:none; }

/* sfumature sx/dx */
.nav-fade::before,
.nav-fade::after{
  content:"";
  position:absolute;
  top:0; height:100%;
  width:32px;
  pointer-events:none;
  z-index:2;
  opacity:0;
  transition:opacity .15s ease;
}
.nav-fade::before{
  left:0;
  background:linear-gradient(to right,#fff 0%,rgba(255,255,255,0) 100%);
}
.nav-fade::after{
  right:0;
  background:linear-gradient(to left,#fff 0%,rgba(255,255,255,0) 100%);
}
.nav-fade.has-left::before{ opacity:1; }
.nav-fade.has-right::after{ opacity:1; }


.lnv-profile-tab {
    background: transparent;
    border: none;
    padding: .5rem .9rem;
    font-size: .9rem;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
	display: flex;
    align-items: center;
	text-decoration: none;
	color: #111827;
	background: #f3f4f6;
	border-radius: 9999px;
}
.lnv-profile-tab:before {
    content: "";
    background: #e1b509;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    margin-right: 5px;
}
.lnv-profile-tab.is-active:before {

    background: #f9c600;

}
.lvn-counter-increment {
	min-width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #bbb;
    border-radius: 9999px;
    color: #fff;
    margin-left: 10px;
    padding: 5px;
}
.lnv-profile-tab.is-active .lvn-counter-increment {

    background: #777;

}
.lnv-profile-tab.is-active {
    background: #151515;
    font-weight: 600;
	color: #fff;
}
.lnv-profile-tab--danger {
    margin-left: auto;
    color: #b91c1c;
}

/* Contenuto sezioni */

.lnv-profile-content {
    position: relative;
}

.lnv-profile-section {
    display: none;
}

.lnv-profile-section.is-active {
    display: block;
}

.lnv-profile-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Form campi base */

.lnv-field {
    margin-bottom: 1rem;
}

.lnv-field label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: #374151;
}

.lnv-field input[type="text"],
.lnv-field input[type="email"],
.lnv-field textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0.55rem 0.7rem;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.lnv-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Toggle (checkbox) */

.lnv-field-toggle label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.lnv-field-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Bottoni base: se hai già .lnv-btn ecc. puoi togliere/integrare */

.lnv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
}

.lnv-btn-primary {
    background: #111827;
    color: #ffffff;
}

.lnv-btn-primary:hover {
    opacity: 0.9;
}

.lnv-btn-secondary {
    background: #f3f4f6;
    color: #111827;
}

.lnv-btn-secondary:hover {
    background: #e5e7eb;
}

.lnv-btn-danger {
    background: #b91c1c;
    color: #ffffff;
}

.lnv-btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messaggi */

.lnv-profile-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.lnv-profile-message {
    font-size: 0.85rem;
    color: #4b5563;
}

/* Liste (commenti, notizie) */

.lnv-profile-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.lnv-profile-item .lnv-profile-item-wrapper {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.lnv-profile-item-thumb {
    flex: 0 0 120px; /* o 160px, come preferisci */
}

.lnv-profile-item-thumb-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.lnv-profile-item-body {
    flex: 1 1 auto;
}

/* Badge status */

.lnv-profile-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 500;
	background:#f2f4f7;
    margin-bottom: 5px;
    color: #888;
}

.lnv-profile-badge--status-1,
.lnv-profile-badge--status-publish {
    background: #ecfdf3;
    color: #166534;
}

.lnv-profile-badge--status-0,
.lnv-profile-badge--status-pending {
    background: #fef9c3;
    color: #92400e;
}

.lnv-profile-badge--status-draft {
    background: #eff6ff;
    color: #1d4ed8;
}

/* Paginazione */

.lnv-profile-pagination {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.lnv-profile-page-btn {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    cursor: pointer;
}

.lnv-profile-page-btn.is-active {
    background: #111827;
    color: #ffffff;
    border-color: #111827;
}

/* Sezione delete */

.lnv-profile-section[data-section="delete"] p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}
/* Upload avatar – barra progresso */

.lnv-profile-upload-progress {
    margin-top: 0.35rem;
    width: 130px;
    height: 4px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.lnv-profile-upload-bar {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #111827;
    transition: width 0.15s linear;
}

.lnv-profile-upload-status {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Responsivo */

@media (max-width: 640px) {
    .lnv-profile {
        padding: 1.5rem 1rem;
        border-radius: 0;
        box-shadow: none;
    }

    .lnv-profile-header {
        display: grid;
    }

    .lnv-profile-tabs {
        gap: 0.25rem;
    }

    .lnv-profile-tab--danger {
        margin-left: 0;
    }
}

.lnv-profile-infinite-loader {
  display: none;
  justify-content: center;
  padding: 16px 0;
}

.lnv-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.2);
  border-top-color: rgba(0,0,0,.65);
  animation: lnvSpin 0.8s linear infinite;
}

@keyframes lnvSpin {
  to { transform: rotate(360deg); }
}
.lnv-profile-item-title {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    font-weight: 600;
	font-family: "Merriweather", serif;
    color: #333;
    font-size: 20px;
    line-height: 24px;
}

.lnv-profile-item-title a {
    color: inherit;
    text-decoration: none;
}

.lnv-profile-item-title a:hover {
    text-decoration: underline;
}
.lnv-profile-item-thumb {
    flex: 0 0 120px; /* o 160px, come preferisci */
}

.lnv-profile-item-thumb-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.lnv-profile-item-body {
    flex: 1 1 auto;
}
.lnv-profile-comment-article {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
	align-items: center;
}
.lnv-profile-comment-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
	padding: 20px;
}

.lnv-profile-comment {
    display: flex;
    gap: 0.5rem;
}
.lnv-profile-comment-avatar {
	min-width: 50px;
}
.lnv-profile-comment-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.lnv-profile-comment-body {
    flex: 1 1 auto;
}

.lnv-profile-comment-header {
    display: inline-flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    opacity: 0.8;
	flex-direction: column;
    background: #efefef;
    border-radius: 20px;
    padding: 5px 15px;
    gap: 0;
	margin-bottom: 5px;
	font-size: 15px;
}
.lnv-profile-comment-date {
	font-size: 12px;
    color: #999;
    padding: 0 5px;
}
.lnv-profile-comment-author {
    font-weight: 600;
}

.lnv-profile-comment-text {
    margin: 0;
    font-size: 0.9rem;
}
.lnv-profile-comment-footer {
	display: flex;
	gap: 20px;
	align-items: center;

}
.lnv-profile-comment-reply-link {
	font-size: 14px;
    color: #999;
    padding: 0 5px;
    font-weight: 600;
    text-decoration: none;
}
.lnv-profile-comment-reply-link:hover {
	background: #efefef;
    border-radius: 8px;
}
.lnv-profile-activity-lead--with-avatar{
  display:flex;
  align-items:center;
  gap:10px;
}
.lnv-profile-activity-lead {
	padding-bottom: 20px;
}
.lnv-profile-activity-lead-avatar{
  width:28px;
  height:28px;
  border-radius:999px;
  object-fit:cover;
  flex:0 0 28px;
}
.lnv-profile-activity-lead--with-avatar{
  display:flex;
  align-items:center;
  gap:10px;
}

.lnv-profile-activity-lead-datetime{
  opacity:.7;
  font-size:.95em;
  white-space:nowrap;
}
.live-col-2-content {
	padding: 2rem 1.5rem;
}
.lnv-profile-tabs{
  touch-action: pan-y; /* consente scroll verticale pagina, e drag orizzontale gestito da noi */
}
.lnv-profile-tabs a{
  -webkit-user-drag: none;
  user-select: none;
}