@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Container principale articolo */
.article-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #2c3e50;

    margin: 0 auto;
    
}

/* Titolo principale articolo (H1) */
.article-content h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    letter-spacing: -0.5px;
}

/* Sottotitoli H2 */
.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 50px 0 20px 0;
    padding-top: 20px;
    border-top: 3px solid #d32f2f; /* Rosso KeNoleggio */
}

/* Sottotitoli H3 */
.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    color: #2c3e50;
    margin: 40px 0 15px 0;
}

/* Sottotitoli H4 */
.article-content h4 {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
    color: #34495e;
    margin: 30px 0 12px 0;
}

/* Paragrafi */
.article-content p {
    margin: 0 0 20px 0;
    text-align: justify;
}

/* Primo paragrafo (introduzione) - stile speciale */
.article-content > p:first-of-type {
    font-size: 19px;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
}

/* Testo in grassetto */
.article-content strong,
.article-content b {
    font-weight: 600;
    color: #1a1a1a;
}

/* Testo in corsivo */
.article-content em,
.article-content i {
    font-style: italic;
    color: #34495e;
}

/* Link */
.article-content a {
    color: #d32f2f;
    text-decoration: none;
    border-bottom: 1px solid rgba(211, 47, 47, 0.3);
    transition: all 0.2s ease;
}

.article-content a:hover {
    color: #b71c1c;
    border-bottom-color: #b71c1c;
}

/* Liste puntate */
.article-content ul {
    margin: 20px 0;
    padding-left: 30px;
    list-style-type: none;
}

.article-content ul li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 25px;
    line-height: 1.7;
}

.article-content ul li::before {
    content: "●";
    color: #d32f2f;
    font-size: 12px;
    position: absolute;
    left: 0;
    top: 4px;
}

/* Liste numerate */
.article-content ol {
    margin: 20px 0;
    padding-left: 30px;
    counter-reset: item;
    list-style-type: none;
}

.article-content ol li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 35px;
    line-height: 1.7;
    counter-increment: item;
}

.article-content ol li::before {
    content: counter(item) ".";
    color: #d32f2f;
    font-weight: 600;
    position: absolute;
    left: 0;
    top: 0;
}

/* Citazioni / Blockquote */
.article-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: #f8f9fa;
    border-left: 5px solid #d32f2f;
    border-radius: 4px;
    font-style: italic;
    color: #34495e;
}

.article-content blockquote p {
    margin: 0;
}

/* Immagini */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Didascalia immagine */
.article-content figcaption {
    font-size: 14px;
    color: #7f8c8d;
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Tabelle */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.article-content table thead {
    background: #d32f2f;
    color: white;
}

.article-content table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 15px;
}

.article-content table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.article-content table tbody tr:hover {
    background: #f8f9fa;
}

.article-content table tbody tr:last-child td {
    border-bottom: none;
}

/* Tabella alternata (zebra striping) */
.article-content table.striped tbody tr:nth-child(even) {
    background: #f8f9fa;
}

/* Codice inline */
.article-content code {
    background: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    color: #c7254e;
}

/* Blocco di codice */
.article-content pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 30px 0;
}

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

/* Separatore orizzontale */
.article-content hr {
    border: none;
    border-top: 2px solid #ecf0f1;
    margin: 40px 0;
}

/* Box informativo / Alert */
.article-content .info-box {
    background: #e3f2fd;
    border-left: 5px solid #2196f3;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.article-content .warning-box {
    background: #fff3e0;
    border-left: 5px solid #ff9800;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

.article-content .success-box {
    background: #e8f5e9;
    border-left: 5px solid #4caf50;
    padding: 20px;
    margin: 30px 0;
    border-radius: 4px;
}

/* Metadati articolo (autore, data, visualizzazioni) */
.article-meta {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.article-meta span {
    margin-right: 20px;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .article-content {
        font-size: 16px;
        padding: 20px 15px;
    }

    .article-content h1 {
        font-size: 28px;
    }

    .article-content h2 {
        font-size: 24px;
        margin: 35px 0 15px 0;
    }

    .article-content h3 {
        font-size: 20px;
    }

    .article-content h4 {
        font-size: 18px;
    }

    .article-content > p:first-of-type {
        font-size: 17px;
        padding: 15px;
    }

    .article-content table {
        font-size: 14px;
    }

    .article-content table th,
    .article-content table td {
        padding: 10px;
    }
}

/* Print styles */
@media print {
    .article-content {
        font-size: 12pt;
        color: #000;
    }

    .article-content a {
        color: #000;
        text-decoration: underline;
    }
}