/* ACTRAGEA Articles CSS - Estrai questo in file separato */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e0e6ed;
    background: linear-gradient(135deg, #0a0e13 0%, #1f2937 100%);
    background-attachment: fixed;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
    backdrop-filter: blur(15px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg,
            rgba(59, 130, 246, 0.1) 0%,
            rgba(20, 184, 166, 0.05) 50%,
            rgba(16, 185, 129, 0.1) 100%);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 10px 30px;
    border: 1px solid rgba(20, 184, 166, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
}

.logo-img {
    height: 120px;
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: #e0e6ed;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 10px;
}

.nav-links a:hover {
    color: #14b8a6;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(16, 185, 129, 0.1));
    border-color: rgba(20, 184, 166, 0.5);
    box-shadow: 0 0 25px rgba(20, 184, 166, 0.4), 0 0 50px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px) scale(1.02);
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.9rem;
}

.language-switcher i {
    color: #3b82f6;
}

.language-switcher span {
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 3px 6px;
    border-radius: 4px;
}

.language-switcher span:hover {
    color: #3b82f6;
}

.language-switcher .lang-active {
    color: #10b981;
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #00e5ff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Back Button */
.back-navigation {
    padding-top: 120px;
    padding-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateX(-3px);
}

/* Article Styles */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.article-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 50%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-description {
    font-size: 1.2rem;
    color: #d1d5db;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.article-content {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    /* Anti-copy protection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.article-content h1 {
    font-size: 2.5rem;
    color: #f9fafb;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-content h2 {
    font-size: 2rem;
    color: #f9fafb;
    margin: 35px 0 20px 0;
    position: relative;
    padding-left: 20px;
}

.article-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 30px;
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    border-radius: 3px;
}

.article-content h3 {
    font-size: 1.5rem;
    color: #d1d5db;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.article-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #e0e6ed;
}

.article-content ul,
.article-content ol {
    margin-left: 25px;
    margin-bottom: 20px;
}

.article-content li {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 8px;
    color: #e0e6ed;
}

.article-content blockquote {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    padding: 20px 25px;
    margin: 25px 0;
    border-radius: 8px;
    font-style: italic;
    color: #d1d5db;
}

.article-content code {
    background: rgba(0, 0, 0, 0.3);
    color: #10b981;
    padding: 3px 8px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.article-content pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.article-content th,
.article-content td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(75, 85, 99, 0.3);
}

.article-content th {
    background: rgba(59, 130, 246, 0.2);
    font-weight: 600;
    color: #f9fafb;
}

.article-content img {
    width: 100%;
    border-radius: 10px;
    margin: 20px 0;
    transition: all 0.3s ease;
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.highlight-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
}

.highlight-box h4 {
    color: #10b981;
    margin-bottom: 15px;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Footer Styles */
footer {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #f9fafb;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3b82f6;
}

.footer-bottom {
    border-top: 1px solid rgba(75, 85, 99, 0.3);
    padding-top: 30px;
    text-align: center;
    color: #6b7280;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(10, 14, 19, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column;
        width: 220px;
        padding: 25px 20px;
        border-radius: 15px;
        border: 1px solid rgba(59, 130, 246, 0.5);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        z-index: 9999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: #ffffff !important;
        font-weight: 600 !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .article-title {
        font-size: 2.2rem;
    }

    .article-content {
        padding: 30px 25px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .back-navigation {
        padding-top: 100px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 1.8rem;
    }

    .article-content {
        padding: 25px 20px;
    }

    .article-content h1 {
        font-size: 2rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
    }
}