/**
 * Blog: elenco articoli (/it/blog) e articolo. Erano blocchi <style> in Pages/Front/blog.php
 * e content/it/article/blog_article.php.
 */

/* Elenco articoli */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stili aggiuntivi per migliorare l'aspetto */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15) !important;
}

.card:hover .bi {
    transform: scale(1.1);
}

/* Placeholder immagine */
.placeholder-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.placeholder-image:hover {
    background-color: var(--ink-700) !important;
}

.placeholder-image i {
    transition: transform 0.3s ease;
}

.placeholder-image:hover i {
    transform: scale(1.1);
}

/* Titolo cliccabile */
.title-hover {
    transition: color 0.3s ease;
}

.title-hover:hover {
    color: var(--orange-600) !important;
}

.object-fit-cover {
    object-fit: cover;
}

.pagination .page-link {
    color: var(--orange-600);
    transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
    background-color: var(--orange-600);
    border-color: var(--orange-600);
}

.pagination .page-link:hover {
    color: var(--orange-400);
    background-color: var(--orange-50);
}

.blog-card-badges {
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.blog-card-badges .blog-badge {
    border-radius: 20px;
    padding: 0.5em 1.1em;
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff !important;
    border: none;
}

.blog-card-badges .blog-badge-date {
    background-color: var(--orange-600) !important;
}

.blog-card-badges .blog-badge-author {
    background-color: var(--ink-600) !important;
}

.blog-card-badges .blog-badge i {
    margin-right: 0.35em;
}

.bi {
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {

    .card-image-top {
        height: 200px !important;
    }
}

/* Articolo */
/* Stili per il contenuto dell'articolo */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--orange-500);
    padding-bottom: 0.5rem;
}

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

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--orange-500);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #666;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    color: #d63384;
}

.article-content pre {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

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

.article-content a {
    color: var(--orange-500);
    text-decoration: underline;
}

.article-content a:hover {
    color: var(--orange-700);
}

.article-hero {
    position: relative;
}

.article-meta .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.social-share .btn {
    min-width: 40px;
}
