/**
 * Stili dedicati per la scheda profilo
 * Separati dagli altri CSS per migliorare la manutenibilità
 */
.scheda-profilo-wrapper {
  width: 100%;
  height: calc(100dvh - 65px);
  padding-top: 65px;
  padding-bottom: 65px;
  background-color: #ffffff;
  overflow-y: auto;
  overflow-x: hidden;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
}

/* Quando la scheda profilo è dentro previewSection (account.html), rimuovi il wrapper fixed */
#previewSection .scheda-profilo-wrapper {
  position: relative;
  top: 0;
  height: auto;
  max-height: none;
  padding-top: 0;
  padding-bottom: 0;
  overflow-y: visible;
  z-index: auto;
  min-width: 100vw;
  max-width: 100vw;
}
/* Container principale */
.scheda-profilo-content {
  position: relative;
  top: 0px;
  left: 0;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 100%;
  background: #ffffff;
  border-radius: 0px;
  display: flex;
  flex-direction: column;
}

/* Header con sfondo */
.scheda-profilo-header {
  position: relative;
  height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgb(174, 174, 174) 0%,
    rgb(107, 107, 107) 100%
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.scheda-profilo-header-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  opacity: 0.6;
  pointer-events: none;
}

/* Bottoni in alto */
.scheda-profilo-top-left-buttons,
.scheda-profilo-top-right-buttons {
  position: absolute !important;
  top: 15px !important;
  display: flex !important;
  align-items: center;
  gap: 8px;
  z-index: 100000;
}

.scheda-profilo-top-left-buttons {
  left: 15px;
}

.scheda-profilo-top-right-buttons {
  right: 15px !important;
}

/* Bottoni generici */
.scheda-profilo-close-btn,
.scheda-profilo-back-btn {
  background: rgba(255, 255, 255, 1);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1001;
}

/* Bottoni in alto a destra */
.scheda-profilo-favorites-btn,
.scheda-profilo-share-btn,
.scheda-profilo-report-btn {
  background: #ffffff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  position: relative;
  z-index: 1001;
  flex-shrink: 0;
}

.scheda-profilo-close-btn:hover,
.scheda-profilo-back-btn:hover {
  background: #f2f2f2;
  transform: translateX(-3px);
}

/* Bottone back con icona X */
.scheda-profilo-back-btn.close-x {
  color: #333;
}

.scheda-profilo-favorites-btn {
  color: #b6b6b6;
}

.scheda-profilo-favorites-btn:hover {
  transform: scale(1.1);
}

.scheda-profilo-favorites-btn.favorito {
  color: #e60000 !important;
}

.scheda-profilo-share-btn {
  color: #1a365d;
}

.scheda-profilo-share-btn:hover {
  transform: scale(1.1);
  background: #f2f2f2;
}

.scheda-profilo-report-btn {
  color: #ff8c00;
}

.scheda-profilo-report-btn:hover {
  transform: scale(1.1);
  background: #f2f2f2;
}

/* Foto profilo */
.scheda-profilo-photo {
  position: absolute;
  top: 50%;
  left: 60px;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.scheda-profilo-photo:hover {
  transform: translateY(-50%);
}

/* Riga nome e bottone richiedi contatto */
.scheda-profilo-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #ffffff;
  gap: 0px;
}

/* Nome e badge */
.scheda-profilo-name-container {
  background: transparent;
  color: #000000;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 0;
  padding-left: 15px;
  border-radius: 0;
  box-shadow: none;
  flex: 1;
}

.scheda-profilo-badges {
  display: flex;
  align-items: center;
  gap: 0px;
  flex-wrap: wrap;
}

.scheda-profilo-verified-badge,
.scheda-profilo-subscription-badge,
.scheda-profilo-level-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 6px 12px !important;
  border-radius: 15px !important;
  font-size: 1rem !important;
}

.scheda-profilo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 15px;
  color: #ffffff;
}

.scheda-profilo-badge-verified {
  background: #00bc16;
}

/* Background dell'header */
.scheda-profilo-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Bottone richiedi contatto */
.scheda-profilo-request-btn {
  background: linear-gradient(135deg, #e60000 0%, #c60000 100%);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(97, 7, 7, 0.3);
  flex-shrink: 0;
}

.scheda-profilo-request-btn i {
  font-size: 1.2rem;
  color: #ffffff;
  margin-right: 8px;
}

.scheda-profilo-request-btn:hover:not(.ferie-mode):not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(80, 9, 9, 0.4);
}

.scheda-profilo-request-btn.ferie-mode {
  background: #e0e0e0;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

/* Sezione Tab */
.scheda-profilo-tab-section {
  width: 100%;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.scheda-profilo-tab-container {
  display: flex;
  width: 100%;
}

.scheda-profilo-tab {
  flex: 1;
  padding: 15px 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  border-bottom: none;
  transition: all 0.3s ease;
}

.scheda-profilo-tab.active {
  background: #ffffff;
  color: #e60000;
  border-bottom: 3px solid #e60000;
}

.scheda-profilo-tab:hover:not(.active) {
  background: rgba(255, 255, 255, 0.5);
}

/* Contenuto dei tab */
.scheda-profilo-content-section {
  flex: 1;
  overflow: visible;
  height: auto;
  min-height: auto;
  max-height: none;
  padding: 20px 20px 20px 20px;
}

/* Tab Home */
.scheda-profilo-home-content {
  padding: 0;
}

.scheda-profilo-main-info-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.scheda-profilo-info-card,
.scheda-profilo-info-personali,
.scheda-profilo-info-tecniche {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.scheda-profilo-info-tit {
  color: #000000;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e60000;
}

.scheda-profilo-info-tit i {
  color: #e60000;
  margin-right: 8px;
}

.scheda-profilo-info-item {
  margin-bottom: 10px;
}

.scheda-profilo-info-item i {
  color: #e60000;
  margin-right: 8px;
}

.scheda-profilo-descrizione-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}

.scheda-profilo-description-container {
  position: relative;
  overflow: hidden;
}

.scheda-profilo-description-container.collapsed {
  max-height: calc(1.6em * 10); /* 10 righe basate su line-height 1.6 */
  overflow: hidden;
}

.scheda-profilo-description-container:not(.collapsed) {
  max-height: none;
}

.scheda-profilo-description {
  color: #444;
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 0;
  padding: 0;
}

.scheda-profilo-description-expand {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px;
  margin-top: 8px;
  background: transparent;
  border: none;
  color: #1a8dff;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.scheda-profilo-description-expand:hover {
  color: #0066cc;
}

.scheda-profilo-description-expand i {
  transition: transform 0.3s ease;
}

.scheda-profilo-info-title {
  color: #1a365d;
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scheda-profilo-info-title i {
  color: #e60000;
  font-size: 1.1rem;
}

.scheda-profilo-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scheda-profilo-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
}

.scheda-profilo-info-item:last-child {
  border-bottom: none;
}

.scheda-profilo-info-item i {
  width: 16px;
  text-align: center;
  color: #1a365d;
}

.scheda-profilo-info-label {
  font-weight: 600;
  color: #1a365d;
}

.scheda-profilo-tecniche-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scheda-profilo-descrizione-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-top: 2px solid #e60000;
}

.scheda-profilo-descrizione-text {
  background: #ffffff;
  padding: 12px;
  border-radius: 8px;
  border-left: 3px solid #e60000;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.04);
  line-height: 1.5;
  color: #444;
  margin: 0;
  font-size: 1rem;
  white-space: pre-wrap;
}

/* Tab Servizi */
.scheda-profilo-servizi-list {
  display: grid;
  gap: 10px;
}

.scheda-profilo-servizio-item {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.scheda-profilo-servizio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.scheda-profilo-servizio-name {
  font-weight: 700;
  color: #1a365d;
  font-size: 1.1rem;
}

.scheda-profilo-servizio-prezzo {
  color: #666;
  font-weight: 500;
}

.scheda-profilo-servizio-descrizione {
  font-size: 1rem;
  color: #666;
  margin-top: 8px;
  line-height: 1.4;
}

/* Vecchio stile per compatibilità */
.scheda-profilo-servizi-list-old {
  display: grid;
  gap: 10px;
}

.scheda-profilo-servizio-card {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.scheda-profilo-servizio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.scheda-profilo-servizio-title {
  font-weight: 700;
  color: #1a365d;
  font-size: 1.1rem;
}

.scheda-profilo-servizio-price {
  color: #666;
  font-weight: 500;
}

.scheda-profilo-servizio-details {
  font-size: 1rem;
  color: #666;
  margin-top: 8px;
  line-height: 1.4;
}

/* Tab Foto */
.scheda-profilo-galleria {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 5px;
  margin-top: 0;
}

.scheda-profilo-galleria-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.scheda-profilo-galleria-img:hover {
  transform: scale(1.01);
}

/* Tab Video */
.scheda-profilo-video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 0;
}

.scheda-profilo-video-card {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  aspect-ratio: 1/1;
}

.scheda-profilo-video-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.scheda-profilo-video-thumbnail {
  position: relative;
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scheda-profilo-video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scheda-profilo-video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.scheda-profilo-video-card:hover .scheda-profilo-video-play-overlay {
  opacity: 1;
}

.scheda-profilo-video-play-overlay i {
  background: rgba(230, 0, 0, 0.9);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.scheda-profilo-video-info {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.8), transparent);
  padding: 12px;
  color: #ffffff;
}

.scheda-profilo-video-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.scheda-profilo-video-duration {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Tab Recensioni */
.scheda-profilo-recensioni-content {
  width: 100%;
  height: auto;
  min-height: auto;
  max-height: none;
}

.scheda-profilo-reviews-header {
  padding: 20px 24px;
  border-bottom: 2px solid #f0f0f0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.scheda-profilo-reviews-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.scheda-profilo-rating-section {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid #ffeaa7;
  box-shadow: 0 2px 6px rgba(255, 234, 167, 0.2);
}

.scheda-profilo-rating-average {
  font-size: 2rem;
  font-weight: 700;
  color: #ff9800;
  text-shadow: 0 1px 2px rgba(255, 152, 0, 0.2);
}

.scheda-profilo-stars-outline {
  display: flex;
  gap: 3px;
  font-size: 1.8rem !important;
  line-height: 1.5;
  transform: translateY(-2px);
}

.scheda-profilo-star {
  color: #ddd;
  font-size: 1.5rem;
  display: inline-block;
  line-height: 1;
  transition: color 0.2s ease;
}

.scheda-profilo-review-count {
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid #e0e0e0;
}

.scheda-profilo-reviews-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scheda-profilo-reviews-sort {
  padding: 10px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #ffffff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.scheda-profilo-reviews-sort:hover {
  border-color: #e60000;
  box-shadow: 0 2px 6px rgba(230, 0, 0, 0.1);
}

.scheda-profilo-reviews-sort:focus {
  outline: none;
  border-color: #e60000;
  box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.1);
}

.scheda-profilo-add-review-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #e60000 0%, #c60000 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(230, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.scheda-profilo-add-review-btn:hover {
  background: linear-gradient(135deg, #c60000 0%, #a50000 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(230, 0, 0, 0.4);
}

.scheda-profilo-add-review-btn:active {
  transform: translateY(0);
}

.scheda-profilo-reviews-list-container {
  flex: 1;
  overflow: visible;
  height: auto;
  min-height: auto;
  max-height: none;
  padding: 20px;
}

.scheda-profilo-reviews-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Stile moderno per le singole recensioni */
.scheda-profilo-review-item {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.scheda-profilo-review-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #e60000 0%, #ff6b6b 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scheda-profilo-review-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #e60000;
}

.scheda-profilo-review-item:hover::before {
  opacity: 1;
}

.scheda-profilo-review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 12px;
}

.scheda-profilo-review-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.scheda-profilo-review-user-photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f0f0f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scheda-profilo-review-user-details {
  flex: 1;
}

.scheda-profilo-review-title {
  margin: 0 0 4px 0;
  color: #1a365d;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scheda-profilo-review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #666;
}

.scheda-profilo-review-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ff9800;
  font-size: 1rem;
  font-weight: 600;
  margin: 8px 0;
}

.scheda-profilo-review-text {
  color: #444;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 12px 0;
}

.scheda-profilo-review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.scheda-profilo-review-date {
  color: #999;
  font-size: 0.85rem;
}

.scheda-profilo-review-actions {
  display: flex;
  gap: 12px;
}

.scheda-profilo-review-action-btn {
  background: transparent;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.scheda-profilo-review-action-btn:hover {
  background: #f5f5f5;
  color: #e60000;
}

.scheda-profilo-review-action-btn.delete:hover {
  color: #dc3545;
  background: #ffe6e6;
}

.scheda-profilo-review-action-btn.report:hover {
  color: #ff9800;
  background: #fff3e0;
}

/* Messaggi vuoti */
.scheda-profilo-empty-message {
  text-align: center;
  color: #666;
  margin-top: 50px;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 2px dashed #e0e0e0;
}

/* Raccomandazioni */
.scheda-profilo-recommendations {
  margin-top: 30px;
  padding: 20px;
  background: transparent;
  border-radius: 12px;
  border: none;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .scheda-profilo-content {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: calc(100dvh - 65px);
    max-height: calc(100dvh - 65px) !important;
    -webkit-overflow-scrolling: touch; /* Scroll fluido su iOS */
    position: fixed !important; /* Assicura che lo scroll funzioni correttamente */
    top: 65px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
  }
  .scheda-profilo-header {
    height: 150px !important;
    min-height: 150px !important;
    flex-shrink: 0 !important; /* Evita che l'header venga schiacciato */
  }
  .scheda-profilo-close-btn {
    color: #000000;
  }

  .scheda-profilo-photo {
    width: 150px;
    height: 150px;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .scheda-profilo-name-row {
    padding: 10px 15px;
    gap: 15px;
    flex-wrap: wrap;
    flex-shrink: 0 !important; /* Evita che la riga nome venga schiacciata */
  }

  .scheda-profilo-name-container {
    font-size: 1.3rem;
    gap: 6px;
  }

  .scheda-profilo-badge {
    padding: 4px 8px;
    font-size: 0.7rem;
    gap: 4px;
  }

  /* Badge verificato su mobile: fa-certificate con fa-check all'interno */
  .scheda-profilo-verified-badge {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    min-height: auto !important;
    max-width: none !important;
    max-height: none !important;
    font-size: 1.5rem !important;
    gap: 0 !important;
    margin-right: 5px !important;
  }

  .scheda-profilo-verified-badge > span {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .scheda-profilo-verified-badge .fa-certificate {
    color: #00bc16 !important;
    font-size: 1.4rem !important;
  }

  .scheda-profilo-verified-badge .fa-check {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #ffffff !important;
    font-size: 0.7rem !important;
    z-index: 1 !important;
  }

  /* Badge abbonamento su mobile: rotondo e piccolo */
  .scheda-profilo-subscription-badge {
    padding: 0 !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    font-size: 1rem !important;
    gap: 0 !important;
  }

  .scheda-profilo-verified-badge i,
  .scheda-profilo-subscription-badge i {
    font-size: 0.7rem !important;
    margin: 0 !important;
  }

  .scheda-profilo-request-btn {
    padding: 10px 12px;
    font-size: 14px;
    gap: 0px;
    width: auto;
  }

  .scheda-profilo-main-info-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .scheda-profilo-galleria {
    grid-template-columns: repeat(3, 1fr);
  }

  .scheda-profilo-video-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .scheda-profilo-content-section {
    padding: 5px;
  }

  /* Bottoni azione su mobile: cuore e condividi in riga, segnala sotto */
  .scheda-profilo-top-right-buttons {
    flex-wrap: wrap !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-content: flex-start !important;
    align-items: flex-start !important;
    width: auto !important;
    max-width: 88px !important; /* 40px + 8px gap + 40px per permettere cuore e condividi affiancati */
  }

  /* Cuore e condividi nella stessa riga */
  .scheda-profilo-favorites-btn,
  .scheda-profilo-share-btn {
    flex: 0 0 auto !important;
    order: 0 !important;
  }

  /* Segnala va a capo (sotto a condividi) ma mantiene forma rotonda */
  .scheda-profilo-report-btn {
    order: 1 !important;
    width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    margin-left: auto !important;
    margin-top: 0px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    flex-basis: 100% !important; /* Forza a capo */
  }

  /* Badge verificato nelle recensioni su mobile (solo check rotondo) */
  .scheda-profilo-review-meta span[style*="border-radius: 50%"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #00bc16 !important;
    color: #ffffff !important;
    font-size: 0.7rem !important;
  }
}
