/* ===== CATEGORY TEMPLATE - FLOATING CARDS STYLE ===== */

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

/* Header categoria */
.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    border-bottom: 2px solid #f0f0f0;
}

.category-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-description {
    font-size: 1.1rem;
    color: #666;
    /* max-width: 600px; */
    margin: 0 auto;
    line-height: 1.6;
}

/* Sezione evidenza */
.evidenza-section {
    margin: 40px 0;
}

.evidenza-container {
    width: 100%;
}

/* Griglia floating responsive */
.evidenza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Singolo articolo - Card floating */
.evidenza-item {
    margin-bottom: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evidenza-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.evidenza-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.evidenza-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Container thumbnail con overlay */
.evidenza-thumbnail {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.evidenza-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.evidenza-item:hover .evidenza-img {
    transform: scale(1.05);
}

/* Overlay content sopra thumbnail */
.evidenza-overlay-layout .evidenza-thumbnail .evidenza-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    color: white;
    padding: 30px 20px 20px;
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.evidenza-overlay-layout .evidenza-item:hover .evidenza-thumbnail .evidenza-content {
    transform: translateY(0);
}

/* Titolo nell'overlay */
.evidenza-overlay-layout .evidenza-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    color: white;
    text-decoration: none;
}

.evidenza-overlay-layout .evidenza-title:hover {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Contenuto standard (senza overlay) */
.content-standard {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.content-standard .evidenza-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.content-standard .evidenza-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.content-standard .evidenza-title a:hover {
    color: #007cba;
}

/* Meta informazioni */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.evidenza-overlay-layout .article-meta {
    color: rgba(255, 255, 255, 0.9);
}

.content-standard .article-meta {
    color: #666;
}

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

.article-meta i {
    font-size: 0.8rem;
}

/* Excerpt */
.evidenza-excerpt {
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.evidenza-overlay-layout .evidenza-excerpt {
    color: rgba(255, 255, 255, 0.95);
}

.content-standard .evidenza-excerpt {
    color: #555;
}

/* Badge categorie */
.category-badge {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 8px 8px 0 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.evidenza-overlay-layout .category-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* Articoli senza thumbnail */
.no-thumbnail {
    min-height: 200px;
}

.no-thumbnail .content-standard {
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Messaggio nessun post */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

.no-posts p {
    font-size: 1.2rem;
    margin: 0;
}

/* Paginazione */
.category-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding: 20px 0;
}

.category-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.category-pagination .page-numbers:hover,
.category-pagination .page-numbers.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 768px) {
    .evidenza-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .evidenza-thumbnail {
        height: 200px;
    }
    
    .evidenza-overlay-layout .evidenza-thumbnail .evidenza-content {
        padding: 20px 15px 15px;
    }
    
    .evidenza-overlay-layout .evidenza-title {
        font-size: 1.2rem;
    }
    
    .content-standard {
        padding: 15px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .evidenza-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .evidenza-thumbnail {
        height: 180px;
    }
    
    .article-meta {
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .evidenza-overlay-layout .evidenza-title {
        font-size: 1.1rem;
    }
    
    .content-standard .evidenza-title {
        font-size: 1.2rem;
    }
    
    .category-pagination .page-numbers {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

/* ===== ANIMAZIONI E EFFETTI ===== */

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Loading animation per immagini */
.evidenza-img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Hover effects aggiuntivi */
.evidenza-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.evidenza-item:hover .evidenza-card::before {
    transform: translateX(100%);
}

/* Focus states per accessibilità */
.evidenza-title a:focus,
.category-pagination .page-numbers:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}