/* ===================================================================
   PROFILO SOCIO - STILI DEDICATI
   =================================================================== */

/* ===== HERO PROFILE SECTION - STILE TESSERA ===== */
.hero-profile {
    background: linear-gradient(to bottom, 
        #5a8f8a 0%, 
        #5a8f8a 45%, 
        #d4af37 45%, 
        #d4af37 48%, 
        #f5f5f5 48%, 
        #f5f5f5 100%
    );
    position: relative;
    padding: 40px 20px 60px;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    display: none;
}

.hero-content-profile {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.profile-header-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    border: 3px solid #d4af37;
}

/* Header verde turchese con testo bianco */
.profile-header-card::before {
    content: 'GUIDA AMBIENTALE ESCURSIONISTICA';
    display: block;
    background: #5a8f8a;
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 3px;
    padding: 18px;
    font-family: 'Archivo Black', sans-serif;
    text-transform: uppercase;
}

/* Contenuto tessera - layout orizzontale */
.profile-header-card > div {
    padding: 45px 50px;
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
    background: white;
}

/* Foto profilo a sinistra */
.profile-photo {
    position: relative;
    flex-shrink: 0;
    max-width: 200px;
}

.profile-photo img {
    width: 100%;
    height: auto;
    max-height: 280px;
    border-radius: 12px;
    border: 4px solid #5a8f8a;
    box-shadow: 0 4px 16px rgba(90, 143, 138, 0.3);
    display: block;
}

.badge-verified {
    position: absolute;
    top: -12px;
    right: -12px;
    background: #51c149;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(81, 193, 73, 0.6);
    border: 3px solid white;
    z-index: 10;
}
 

.badge-verified svg {
    width: 26px;
    height: 26px;
    color: white;
}

 
/* Tooltip per badge-verified (stesso stile di BLSD) */
.badge-verified {
    cursor: pointer;
}

.badge-verified::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background-color: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
}


.badge-verified:hover::after  {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

 
/* Info destra - tutto allineato a sinistra */
.profile-header-info {
    flex: 0 1 auto;
    text-align: left;
}

.profile-name {
    font-size: 2.5rem;
    font-weight: 900;
    color: #2d2d2d;
    margin: 0 0 20px 0;
    font-family: 'Archivo Black', sans-serif;
     
    line-height: 0.95;
    letter-spacing: -1px;
}

/*.profile-subtitle {
    display: none;
}*/

.profile-location {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    color: #555;
    margin-bottom: 35px;
    font-weight: 600;
}

.profile-location svg {
    width: 24px;
    height: 24px;
    color: #5a8f8a;
    flex-shrink: 0;
}

/* Stats in linea orizzontale */
.profile-stats {
    display: flex;
    align-items: center;
    gap: 35px;
    margin-top: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 100px;
}

.stat-value {
    font-size: 3rem;
    font-weight: 900;
    color: #5a8f8a;
    font-family: 'Archivo Black', sans-serif;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.7rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.stat-divider {
    width: 2px;
    height: 75px;
    background: #d4af37;
    flex-shrink: 0;
}

/* Badge Status (Attivo/Sospeso/Emerito) */
.stat-badge {
    font-size: 1rem;
    font-weight: 900;
    padding: 10px 24px;
    border-radius: 8px;
    letter-spacing: 1.5px;
    text-align: center;
    font-family: 'Archivo Black', sans-serif;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-badge-active {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.stat-badge-inactive,
.stat-badge-sospeso {
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffc107;
}

.stat-badge-emerito {
    background: #e8f4f8;
    color: #3E78B2;
    border: 2px solid #3E78B2;
}

/* ===== LAYOUT PRINCIPALE ===== */
.profile-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* ===== SIDEBAR NAVIGAZIONE ===== */
.profile-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.section-nav {
    background: white;
    border-radius: 12px;
    padding: 20px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 25px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: all 0.3s;
}

.nav-link:hover {
    background: #f5f9fc;
    color: #3E78B2;
    border-left-color: #3E78B2;
}

.nav-link:hover svg {
    opacity: 1;
    transform: translateX(3px);
}

.nav-link.active {
    background: #f0f7ff;
    color: #3E78B2;
    font-weight: 700;
    border-left-color: #51c149;
}

.nav-link.active svg {
    color: #51c149;
    opacity: 1;
}

/* Quick Contact */
.quick-contact {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.quick-contact h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Archivo Black', sans-serif;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #51c149;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 10px;
}

.contact-btn:last-child {
    margin-bottom: 0;
}

.contact-btn svg {
    width: 18px;
    height: 18px;
}

.contact-btn:hover {
    background: #45a83d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(81, 193, 73, 0.3);
}

/* ===== CONTENUTO PRINCIPALE ===== */
.profile-main-content {
    min-width: 0;
}

.profile-section {
    background: white;
    border-radius: 12px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    scroll-margin-top: 100px;
}

.section-heading {
    font-size: 1.75rem;
    font-weight: 900;
    color: #3E78B2;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #51c149;
    font-family: 'Archivo Black', sans-serif;
}

.subsection-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin: 25px 0 15px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subsection-title svg {
    width: 22px;
    height: 22px;
    color: #51c149;
}

/* Divisore tra qualifiche e specializzazioni 
.qualifiche-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb 20%, #e5e7eb 80%, transparent);
    margin: 30px 0;
}*/

 

/* ===== SEZIONE INFORMAZIONI ===== */
.info-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 25px;
}

.bio-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7eb;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.05rem;
    color: #333;
    font-weight: 500;
}

.info-value a {
    color: #3E78B2;
    text-decoration: none;
    transition: color 0.3s;
}

.info-value a:hover {
    color: #51c149;
}

.badge-tessera {
    display: inline-block;
    background: #3E78B2;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
}

/* Tags container */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.tag-target {
    background: #e8f4f8;
    color: #3E78B2;
}

.tag-target {
    background: #e8f4f8;
    color: #3E78B2;
}

.tag-presidio {
    background: #e6f7e6;
    color: #039425;
}

.tag-area {
    background: #fff3cd;
    color: #856404;
}

.tag-area-international {
    background: #d4edda;
    color: #155724;
}

.tag-team {
    background: #e2f5dd;
    color: #039425;
}

.tag-team-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-team-link svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.tag-team-link:hover {
    background: #3E78B2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(62, 120, 178, 0.2);
}

.tag-team-link:hover svg {
    opacity: 1;
}
/* ===== SEZIONE QUALIFICHE ===== */
 
  

 /* Attestato di Qualità */

.attestato-simple {
    background: #f0f7ff;
    border: 2px solid #5a8f8a;
    border-radius: 10px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.attestato-simple svg {
    width: 40px;
    height: 40px;
    color: #51c149;
    flex-shrink: 0;
}

.attestato-simple > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attestato-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.attestato-scadenza {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.2;
}

/* Specializzazioni Grid */
.specializzazioni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.specializzazione-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s;
}

.specializzazione-card:hover {
    border-color: #51c149;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(81, 193, 73, 0.15);
}

.spec-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.spec-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex: 1;
}

/*
.verified-icon {
    background: #51c149;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.verified-icon svg {
    width: 16px;
    height: 16px;
    color: white;
}*/

.spec-details {
    font-size: 0.9rem;
    color: #777;
}

.presidi-section,
.target-section,
.teams-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e5e7eb;
}

/* ===== SEZIONE FORMAZIONE ===== */
/*.formazione-block {
    margin-bottom: 30px;
}

.formazione-block:last-child {
    margin-bottom: 0;
}*/

.courses-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.course-item {
    background: #f9fafb;
    border-left: 4px solid #51c149;
    border-radius: 8px;
    padding: 18px 20px;
    display: flex;
    gap: 18px;
    transition: all 0.3s;
}

.course-item:hover {
    background: #f0f7f0;
    transform: translateX(5px);
}

.course-icon {
    background: #e6f7e6;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.course-icon svg {
    width: 26px;
    height: 26px;
    color: #51c149;
}

.course-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
}

.course-info p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

/* Course BLSD speciale
.course-blsd {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left-color: #dc3545;
}

.course-blsd:hover {
    background: linear-gradient(135deg, #ffe8e8 0%, #ffd4d4 100%);
    border-left-color: #c82333;
}

.course-icon-blsd {
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid #dc3545;
}

.course-icon-blsd svg {
    width: 32px;
    height: 32px;
}

.course-blsd .course-info h4 {
    color: #dc3545;
}

.course-blsd .course-info p {
    color: #999;
    font-style: italic;
} */
 
/* ===== SEZIONE LINGUE ===== */
.lingue-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.lingua-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 16px;
    transition: all 0.25s;
}

.lingua-item:hover {
    border-color: #5a8f8a;
    background: white;
    box-shadow: 0 2px 8px rgba(90, 143, 138, 0.1);
}

.lingua-flag {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}

.lingua-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lingua-nome {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.lingua-livello {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.2;
}

/* ===== SEZIONE AREA OPERATIVA ===== */
.area-block {
    margin-bottom: 25px;
}

.area-block:last-child {
    margin-bottom: 0;
}

/* ===== SEZIONE TITOLI DI STUDIO ===== */
.titoli-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.titolo-item {
    background: #f9fafb;
    border-left: 4px solid #3E78B2;
    border-radius: 8px;
    padding: 18px 20px;
    display: flex;
    gap: 18px;
    transition: all 0.3s;
}

.titolo-item:hover {
    background: #f0f7ff;
    transform: translateX(5px);
}

.titolo-icon {
    background: #e8f4f8;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.titolo-icon svg {
    width: 26px;
    height: 26px;
    color: #3E78B2;
}

.titolo-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 6px 0;
}

.titolo-info p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

/* ===== SEZIONE SOCIAL ===== */
.social-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s;
    color: white;
}

.social-btn svg {
    width: 22px;
    height: 22px;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.social-btn.web {
    background: #3E78B2;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.youtube {
    background: #ff0000;
}

/* ===== SEZIONE PORTFOLIO ===== 
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.portfolio-item {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
}

.portfolio-item:hover {
    border-color: #51c149;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(81, 193, 73, 0.15);
}

.portfolio-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(81, 193, 73, 0.95);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.portfolio-content {
    padding: 20px;
}

.portfolio-content h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.portfolio-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}
*/

/*bollini*/
/* ===== BOLLINI CERTIFICAZIONI/QUALIFICHE ===== */
.profile-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e5e7eb;
}

.badge-icon {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f0f7ff;
    border: 2px solid #5a8f8a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    text-decoration: none;
}

.badge-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 12px rgba(90, 143, 138, 0.3);
}

.badge-icon svg {
    width: 24px;
    height: 24px;
    transition: color 0.3s;
}

/* BLSD - Cuore rosso con scossa */
.badge-blsd {
    background: #fff5f5;
    border-color: #dc3545;
}

.badge-blsd:hover {
    background: #dc3545;
    border-color: #ffc107;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.4);
}

.badge-blsd svg {
    width: 28px;
    height: 28px;
}

/* Badge con testo (AT, GT) */
.badge-text-icon {
    background: #f0f7ff;
    border-color: #5a8f8a;
}

.badge-text-icon:hover {
    background: #5a8f8a;
    border-color: #d4af37;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 900;
    color: #5a8f8a;
    font-family: 'Archivo Black', sans-serif;
    transition: color 0.3s;
}

.badge-text-icon:hover .badge-text {
    color: white;
}

/* Bandierine Lingue */
.badge-flag {
    background: white;
    border: 2px solid #ddd;
    padding: 0;
}

.badge-flag:hover {
    background: white;
    border-color: #5a8f8a;
    box-shadow: 0 4px 12px rgba(90, 143, 138, 0.3);
}

.flag-emoji {
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Badge social - colori specifici */
.badge-social {
    text-decoration: none;
    cursor: pointer;
}
/* socio.css - SOSTITUIRE RIGHE 1024-1090 */

.badge-social[data-tooltip*="Facebook"] {
    background: #e8f4f8;
    border-color: #1877f2;
}

.badge-social[data-tooltip*="Facebook"]:hover {
    background: #1877f2;
}

.badge-social[data-tooltip*="Facebook"] svg {
    color: #1877f2;
}

.badge-social[data-tooltip*="Facebook"]:hover svg {
    color: white;
}

.badge-social[data-tooltip*="Instagram"] {
    background: #fce7f3;
    border-color: #e1306c;
}

.badge-social[data-tooltip*="Instagram"]:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.badge-social[data-tooltip*="Instagram"] svg {
    color: #e1306c;
}

.badge-social[data-tooltip*="Instagram"]:hover svg {
    color: white;
}

.badge-social[data-tooltip*="LinkedIn"] {
    background: #e8f4f8;
    border-color: #0077b5;
}

.badge-social[data-tooltip*="LinkedIn"]:hover {
    background: #0077b5;
}

.badge-social[data-tooltip*="LinkedIn"] svg {
    color: #0077b5;
}

.badge-social[data-tooltip*="LinkedIn"]:hover svg {
    color: white;
}

.badge-social[data-tooltip*="YouTube"] {
    background: #fee;
    border-color: #ff0000;
}

.badge-social[data-tooltip*="YouTube"]:hover {
    background: #ff0000;
}

.badge-social[data-tooltip*="YouTube"] svg {
    color: #ff0000;
}

.badge-social[data-tooltip*="YouTube"]:hover svg {
    color: white;
}
 
.badge-website {
    background: #e8f0f8;
    border-color: #5a8f8a;
}

.badge-website:hover {
    background: #5a8f8a;
}

.badge-website svg {
    color: #5a8f8a;
}

.badge-website:hover svg {
    color: white;
}
/* socio.css - AGGIUNGERE DOPO RIGA 1090 */

/* Tooltip personalizzati */
.badge-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: rgba(45, 45, 45, 0.95);
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-family: 'Ubuntu', sans-serif;
}

.badge-icon::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) scale(0);
    border: 6px solid transparent;
    border-top-color: rgba(45, 45, 45, 0.95);
    opacity: 0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.badge-icon:hover::after,
.badge-icon:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Separatore tra categorie badge */
.badge-separator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(90, 143, 138, 0.25);
    flex-shrink: 0;
}


/* ===== DISCLAIMER LEGALE ===== */
.profile-disclaimer {
    background: #fffdf7;
    border: 1px solid #f5edd2;
    
    border-radius: 8px;
    padding: 20px 24px;
    margin-top: 40px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.profile-disclaimer svg {
    width: 28px;
    height: 28px;
    color: #f2d48c;
    flex-shrink: 0;
    margin-top: 2px;
}

.profile-disclaimer h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #856404;
    margin: 0 0 8px 0;
    font-family: 'Archivo Black', sans-serif;
}

.profile-disclaimer p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #856404;
    margin: 0;
}



/* Bio Expandable */
.bio-expandable {
    position: relative;
    display: inline;
}

.bio-expandable.collapsed {
    display: inline;
}

.bio-toggle {
    color: #51c149;
    cursor: pointer;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
    display: inline;
}

.bio-toggle:hover {
    color: #45a83d;
    text-decoration: underline;
}

/* Responsive tooltips */
@media (max-width: 768px) {
    .badge-icon::after {
        font-size: 0.7rem;
        padding: 6px 10px;
        bottom: calc(100% + 10px);
    }
    
    .badge-icon::before {
        border-width: 5px;
        bottom: calc(100% + 3px);
    }
    
    .badge-separator {
        width: 6px;
        height: 6px;
    }
 

}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .profile-layout {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
    
    .profile-header-card > div {
        padding: 35px 40px;
        gap: 40px;
    }
    
    .profile-photo {
        max-width: 180px;
    }
    
    .profile-photo img {
        width: 100%;
        height: auto;
        max-height: 250px;
    }
    
    .profile-name {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .profile-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .profile-sidebar {
        position: static;
        order: 2;
    }
    
    /*.section-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding: 10px;
        gap: 5px;
    }
    
    .nav-link {
        padding: 12px;
        font-size: 0.85rem;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 6px;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-left: none;
        border-bottom-color: #51c149;
    }
     .quick-contact {
        display: none;
    }*/
    
     .section-nav {
        display: none !important;
    }

   
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    /*
    .attestato-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }*/

    .attestato-simple {
        padding: 14px 18px;
        gap: 14px;
    }

    .attestato-simple svg {
        width: 32px;
        height: 32px;
    }

    .attestato-title {
        font-size: 0.95rem;
    }

    .attestato-scadenza {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-profile {
        padding: 50px 15px 40px;
        min-height: auto;
    }
    
    .profile-header-card::before {
        font-size: 0.9rem;
        letter-spacing: 2px;
        padding: 14px;
    }
    
    .profile-header-card > div {
        flex-direction: column;
        padding: 30px 25px;
        gap: 25px;
        text-align: center;
    }
    
    .profile-header-info {
        text-align: center;
    }
    
    .profile-photo {
        max-width: 160px;
    }
    
    .profile-photo img {
        width: 100%;
        height: auto;
        max-height: 220px;
    }
    
    .badge-verified {
        width: 44px;
        height: 44px;
        top: -10px;
        right: -10px;
    }
    
    .badge-verified svg {
        width: 22px;
        height: 22px;
    }
    
    .profile-name {
        font-size: 2.2rem;
        letter-spacing: 0;
    }
    
    .profile-location {
        justify-content: center;
        font-size: 1.1rem;
    }
    
    .profile-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .stat-value {
        font-size: 2.2rem;
    }
    
    .stat-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .profile-section {
        padding: 25px 20px;
    }
    
    .section-heading {
        font-size: 1.4rem;
    }
    
    .section-nav {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .specializzazioni-grid,
    .social-links,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-layout {
        padding: 25px 15px;
    }

    .profile-badges {
        justify-content: center;
        margin-top: 25px;
        padding-top: 20px;
    }
    
    .badge-icon {
        width: 40px;
        height: 40px;
    }
    
    .badge-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .badge-text {
        font-size: 0.75rem;
    }

    .profile-badges {
        justify-content: center;
        margin-top: 25px;
        padding-top: 20px;
    }
    
    .badge-icon {
        width: 42px;
        height: 42px;
    }
    
    .badge-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .badge-blsd svg {
        width: 26px;
        height: 26px;
    }
    
    .badge-text {
        font-size: 0.75rem;
    }
    
    .flag-emoji {
        font-size: 1.6rem;
    }

    .profile-disclaimer {
        padding: 16px 18px;
        gap: 14px;
        margin-top: 30px;
    }

    .profile-disclaimer svg {
        width: 24px;
        height: 24px;
    }

    .profile-disclaimer h4 {
        font-size: 0.9rem;
    }

    .profile-disclaimer p {
        font-size: 0.8rem;
    }
    

}

@media (max-width: 480px) {
    .profile-header-card {
        border-width: 3px;
    }
    
    .profile-header-card::before {
        font-size: 0.75rem;
        letter-spacing: 1px;
        padding: 12px 10px;
        line-height: 1.3;
    }
    
    .profile-header-card > div {
        padding: 25px 20px;
    }
    
    .profile-name {
        font-size: 1.8rem;
    }
    
    .profile-photo {
        max-width: 140px;
    }
    
    .profile-photo img {
        width: 100%;
        height: auto;
        max-height: 200px;
    }
    
    .profile-stats {
        gap: 15px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .section-nav {
        grid-template-columns: 1fr;
    }
    
    .nav-link {
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}


 