/* ===== TITOLI SEZIONI ===== */
.section-title { text-align: center; margin-bottom: 50px; position: relative; }
.section-title h2 {
    font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--accent);
    margin-bottom: 15px; position: relative; display: inline-block;
}
.section-title h2::after {
    content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 3px; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 2px;
}
.section-title p { color: var(--gray); max-width: 600px; margin: 25px auto 0; font-size: 1.1rem; }

/* ===== BOTTONI ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; text-decoration: none; border-radius: var(--radius-sm);
    font-weight: 600; transition: var(--transition); border: none; cursor: pointer;
    font-size: 1rem; position: relative; overflow: hidden; box-shadow: var(--shadow-transparent);
}
.btn::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}
.btn:hover::before { left: 100%; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26, 95, 122, 0.3); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-glass {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
    color: white; backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); }

/* ===== SERVICE CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 25px; }
.service-card {
    background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); padding: 30px;
    border-radius: var(--radius); box-shadow: var(--shadow-transparent);
    transition: var(--transition); border: 1px solid rgba(255,255,255,0.5);
    border-top: 4px solid transparent; position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.service-card:hover {
    transform: translateY(-8px); border-top-color: var(--secondary);
    box-shadow: 0 15px 35px rgba(26,95,122,0.2); background: white;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 55px; height: 55px; background: linear-gradient(135deg, var(--secondary-light), rgba(87,197,182,0.08));
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 20px; color: var(--primary);
    border: 1px solid rgba(87,197,182,0.3); transition: var(--transition);
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(5deg); background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; }
.service-card h4 { font-size: 1.3rem; color: var(--primary-dark); margin-bottom: 12px; font-weight: 600; }
.service-card p { color: var(--gray); font-size: 0.95rem; margin-bottom: 15px; line-height: 1.6; }
.service-card a {
    color: var(--primary); text-decoration: none; font-weight: 500; font-size: 0.95rem;
    display: inline-flex; align-items: center; gap: 5px; transition: var(--transition);
}
.service-card a:hover { gap: 10px; color: var(--primary-dark); }
.service-card a::after { content: '→'; transition: var(--transition); }

/* ===== VALUE ITEMS ===== */
.value-item {
    text-align: center; padding: 30px 20px; background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px); border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.5); transition: var(--transition);
    position: relative; overflow: hidden;
}
.value-item::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(87,197,182,0.1) 0%, transparent 70%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.value-item:hover { transform: translateY(-5px); background: white; box-shadow: var(--shadow-lg); }
.value-item:hover::before { opacity: 1; }
.value-icon {
    width: 75px; height: 75px; background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; color: white; font-size: 2rem;
    box-shadow: 0 8px 20px rgba(26,95,122,0.3); transition: var(--transition); position: relative;
}
.value-icon::after {
    content: ''; position: absolute; inset: -3px; border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary), var(--accent), var(--primary));
    z-index: -1; animation: pulse 3s infinite; opacity: 0.5;
}
.value-item:hover .value-icon { transform: scale(1.1) rotate(10deg); }
.value-item h4 { font-size: 1.2rem; color: var(--primary-dark); margin-bottom: 10px; font-weight: 600; }
.value-item p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); padding: 30px;
    border-radius: var(--radius); box-shadow: var(--shadow-transparent);
    position: relative; border: 1px solid rgba(255,255,255,0.5); transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-5px); background: white; box-shadow: var(--shadow-lg); }
.testimonial-card::before {
    content: '"'; position: absolute; top: 15px; left: 20px; font-size: 5rem;
    color: rgba(87,197,182,0.15); font-family: serif; line-height: 1; z-index: 0;
}
.testimonial-text { color: var(--gray); margin-bottom: 20px; position: relative; z-index: 1; font-style: italic; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.author-avatar {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--secondary-light));
    display: flex; align-items: center; justify-content: center; font-weight: 600;
    color: var(--primary); font-size: 1.1rem; border: 2px solid white; box-shadow: var(--shadow);
}
.author-info h5 { color: var(--primary-dark); font-size: 1rem; font-weight: 600; }
.author-info span { color: var(--gray); font-size: 0.9rem; }

/* ===== CONTACT FORM ===== */
.contact-info {
    background: rgba(255,255,255,0.7); backdrop-filter: blur(15px); padding: 30px;
    border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.5);
    box-shadow: var(--shadow-transparent); position: sticky; top: 100px;
}
.contact-info h3 {
    font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--primary-dark);
    margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid var(--gray-light); position: relative;
}
.contact-info h3::after {
    content: ''; position: absolute; bottom: -2px; left: 0; width: 50px; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.locations-box {
    background: white; border-radius: var(--radius-sm); padding: 20px; margin-bottom: 20px;
    border-left: 4px solid var(--primary); box-shadow: var(--shadow); transition: var(--transition);
}
.locations-box:hover { transform: translateX(5px); box-shadow: var(--shadow-lg); }
.locations-box h4 { color: var(--primary-dark); margin-bottom: 15px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.locations-list { list-style: none; }
.locations-list li {
    padding: 12px 0; border-bottom: 1px dashed var(--gray-light);
    display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem;
}
.locations-list li:last-child { border-bottom: none; }
.locations-list strong { color: var(--dark); font-weight: 600; }
.locations-list small {
    color: var(--gray); font-size: 0.85rem; background: var(--gray-light);
    padding: 3px 10px; border-radius: 20px;
}
.remote-box {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border-radius: var(--radius-sm); padding: 20px; margin-bottom: 20px;
    position: relative; overflow: hidden;
}
.remote-box::before {
    content: ''; position: absolute; top: -50%; right: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s infinite;
}
.remote-box h4 { margin-bottom: 12px; display: flex; align-items: center; gap: 8px; font-weight: 600; position: relative; z-index: 1; }
.remote-box p { font-size: 0.95rem; opacity: 0.95; margin-bottom: 15px; position: relative; z-index: 1; line-height: 1.6; }
.remote-tags { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.remote-tag {
    background: rgba(255,255,255,0.2); padding: 4px 12px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 500; backdrop-filter: blur(5px);
}
.contact-details { padding-top: 20px; border-top: 1px solid var(--gray-light); }
.contact-detail { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; font-size: 0.95rem; }
.contact-detail strong { color: var(--primary-dark); min-width: 80px; font-weight: 600; }
.contact-detail a { color: var(--primary); text-decoration: none; transition: var(--transition); font-weight: 500; }
.contact-detail a:hover { color: var(--primary-dark); text-decoration: underline; }

.contact-form {
    background: rgba(255,255,255,0.85); backdrop-filter: blur(15px); padding: 35px;
    border-radius: var(--radius); box-shadow: var(--shadow-transparent);
    border: 1px solid rgba(255,255,255,0.5);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--dark); font-size: 0.95rem; }
.form-group label .required { color: #e74c3c; margin-left: 2px; }
.form-control {
    width: 100%; padding: 12px 15px; border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm); font-size: 1rem; transition: var(--transition);
    font-family: inherit; background: rgba(255,255,255,0.9);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,95,122,0.1); background: white; }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; padding-right: 35px;
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--gray); margin-top: 8px; line-height: 1.5; }
.form-note a { color: var(--primary); text-decoration: none; }
.form-note a:hover { text-decoration: underline; }
.submit-btn { width: 100%; padding: 16px; font-size: 1.05rem; margin-top: 10px; }

/* ===== LINKEDIN SIDEBAR ===== */
.linkedin-articles-sidebar {
    background: rgba(255,255,255,0.85); backdrop-filter: blur(15px); border-radius: var(--radius);
    box-shadow: var(--shadow-transparent); overflow: hidden; margin: 30px 0;
    border: 1px solid rgba(255,255,255,0.5); position: sticky; top: 100px; align-self: flex-start;
}
.sidebar-header {
    padding: 20px 25px; background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.sidebar-brand { display: flex; align-items: center; gap: 10px; }
.linkedin-icon { width: 24px; height: 24px; color: white; }
.sidebar-header h3 { font-size: 1.1rem; font-weight: 600; margin: 0; }
.view-all-link {
    color: rgba(255,255,255,0.9); text-decoration: none; font-size: 0.85rem;
    font-weight: 500; transition: var(--transition); white-space: nowrap;
}
.view-all-link:hover { color: white; text-decoration: underline; }
.articles-scroll-container { max-height: 400px; overflow-y: auto; padding: 10px 0; }
.articles-scroll-container::-webkit-scrollbar { width: 5px; }
.articles-scroll-container::-webkit-scrollbar-track { background: transparent; }
.articles-scroll-container::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 3px; }
.articles-list { display: flex; flex-direction: column; }
.article-card {
    padding: 15px 25px; border-bottom: 1px solid var(--gray-light); transition: var(--transition);
    display: block; text-decoration: none; color: inherit; position: relative;
    opacity: 0; transform: translateX(-10px); animation: fadeInUp 0.4s ease forwards;
}
.article-card:hover { background: rgba(87,197,182,0.08); padding-left: 32px; }
.article-card::before { content: '📄'; position: absolute; left: 25px; opacity: 0; transition: var(--transition); }
.article-card:hover::before { opacity: 1; left: 8px; }
.article-meta { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--gray); margin-bottom: 6px; }
.article-date { display: flex; align-items: center; gap: 4px; }
.article-read-time { background: var(--gray-light); padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; }
.article-title {
    font-weight: 600; color: var(--primary-dark); font-size: 0.95rem; line-height: 1.4;
    margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-excerpt {
    font-size: 0.85rem; color: var(--gray); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.article-tag {
    font-size: 0.75rem; padding: 3px 10px; background: var(--primary-light);
    color: var(--primary); border-radius: 12px; font-weight: 500;
}
.articles-loading, .articles-empty { padding: 30px 25px; text-align: center; color: var(--gray); }
.loading-spinner {
    width: 24px; height: 24px; border: 3px solid var(--gray-light);
    border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.sidebar-cta { padding: 20px 25px; background: var(--light); border-top: 1px solid var(--gray-light); }
.sidebar-cta p { font-size: 0.9rem; color: var(--gray); margin: 0 0 15px 0; line-height: 1.5; }
.btn-linkedin {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px; background: #0A66C2; color: white; text-decoration: none;
    border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
    transition: var(--transition); border: none; cursor: pointer;
}
.btn-linkedin:hover { background: #004182; transform: translateY(-2px); box-shadow: var(--shadow); }
.linkedin-icon-sm { width: 18px; height: 18px; }

/* ===== HERO STATS ===== */
.hero-stats {
    display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
    animation: fadeInUp 0.8s ease forwards; animation-delay: 0.4s; opacity: 0;
}
.stat-item {
    text-align: center; padding: 15px 20px; background: rgba(255,255,255,0.6);
    border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.5);
    min-width: 120px; transition: var(--transition); opacity: 0;
    transform: translateY(20px); animation: statSlideUp 0.6s ease forwards;
}
.stat-item:nth-child(1) { animation-delay: 0.5s; }
.stat-item:nth-child(2) { animation-delay: 0.7s; }
.stat-item:nth-child(3) { animation-delay: 0.9s; }
.stat-item:hover { transform: translateY(-3px); background: rgba(255,255,255,0.9); box-shadow: var(--shadow); }
.stat-number {
    font-size: 2rem; font-weight: 700; color: var(--primary); display: block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; min-height: 2.2rem;
}
.stat-number.counted { animation: pulseSuccess 0.5s ease; }
.stat-label {
    color: var(--gray); font-size: 0.9rem; margin-top: 5px; opacity: 0;
    animation: fadeIn 0.4s ease forwards; animation-delay: 0.3s;
}
.stat-item:nth-child(1) .stat-label { animation-delay: 0.8s; }
.stat-item:nth-child(2) .stat-label { animation-delay: 1.0s; }
.stat-item:nth-child(3) .stat-label { animation-delay: 1.2s; }