/**
 * FONDAZIONE ARMANDO - ACF PRO STYLES
 * 
 * Stili specifici per i componenti ACF Pro
 */

/* ==========================================================================
   PROJECT CARDS
   ========================================================================== */

.progetto-card .project-type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.progetto-card .project-type-badge .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.progetto-card .project-type-badge .badge-ricerca {
    background-color: #007bff;
    color: white;
}

.progetto-card .project-type-badge .badge-educativo {
    background-color: #28a745;
    color: white;
}

.progetto-card .project-type-badge .badge-sociale {
    background-color: #dc3545;
    color: white;
}

.progetto-card .project-type-badge .badge-culturale {
    background-color: #6f42c1;
    color: white;
}

.progetto-card .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.progetto-card .project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.progetto-card .project-meta .project-status {
    padding: 0.125rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.progetto-card .project-meta .status-in_corso {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.progetto-card .project-meta .status-completato {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.progetto-card .project-meta .status-sospeso {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.progetto-card .project-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.progetto-card .badge-outline {
    background-color: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.progetto-card .badge-outline:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
    text-decoration: none;
}

/* ==========================================================================
   REPORTAGE CARDS
   ========================================================================== */

.reportage-card .reportage-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.reportage-card .reportage-type-badge .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.reportage-card .reportage-type-badge .badge-foto {
    background-color: #17a2b8;
    color: white;
}

.reportage-card .reportage-type-badge .badge-video {
    background-color: #dc3545;
    color: white;
}

.reportage-card .reportage-type-badge .badge-misto {
    background-color: #6f42c1;
    color: white;
}

.reportage-card .reportage-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.reportage-card .reportage-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.reportage-card .reportage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.reportage-card .badge-outline-sm {
    background-color: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.reportage-card .badge-outline-sm:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: white;
    text-decoration: none;
}

/* ==========================================================================
   SINGLE PROJECT PAGE
   ========================================================================== */

.single-progetti .project-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.single-progetti .project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.single-progetti .project-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.single-progetti .project-info .project-details-list {
    list-style: none;
    padding: 0;
}

.single-progetti .project-info .project-details-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.single-progetti .project-info .project-details-list li:last-child {
    border-bottom: none;
}

.single-progetti .project-gallery .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.single-progetti .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
}

.single-progetti .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-progetti .gallery-item:hover img {
    transform: scale(1.05);
}

.single-progetti .gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.single-progetti .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.single-progetti .gallery-overlay i {
    color: white;
    font-size: 1.5rem;
}

/* ==========================================================================
   SINGLE REPORTAGE PAGE
   ========================================================================== */

.single-reportage .reportage-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
}

.single-reportage .reportage-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.single-reportage .reportage-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.single-reportage .video-container {
    margin-bottom: 2rem;
}

.single-reportage .video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.single-reportage .video-embed iframe,
.single-reportage .video-embed object,
.single-reportage .video-embed embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.single-reportage .reportage-info .reportage-details-list {
    list-style: none;
    padding: 0;
}

.single-reportage .reportage-info .reportage-details-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.single-reportage .reportage-info .reportage-details-list li:last-child {
    border-bottom: none;
}

.single-reportage .reportage-tags .tag-item {
    display: inline-block;
    background-color: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.75rem;
    margin: 0.125rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.single-reportage .reportage-tags .tag-item:hover {
    background-color: #007bff;
    color: white;
    text-decoration: none;
}

/* ==========================================================================
   POST NAVIGATION
   ========================================================================== */

.post-navigation {
    margin-top: 1rem;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    text-align: center;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation .nav-previous {
    text-align: left;
}

.post-navigation a {
    display: block;
    text-decoration: none;
    color: #495057;
    transition: color 0.2s ease;
}

.post-navigation a:hover {
    color: #007bff;
    text-decoration: none;
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

.post-navigation .nav-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    .progetto-card .project-meta,
    .reportage-card .reportage-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .single-progetti .project-hero,
    .single-reportage .reportage-hero {
        padding: 2rem 0;
    }
    
    .single-progetti .project-meta,
    .single-reportage .reportage-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .single-progetti .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-navigation .nav-next {
        text-align: left;
    }
}

@media (max-width: 576px) {
    .progetto-card .project-type-badge,
    .reportage-card .reportage-type-badge {
        position: static;
        margin-bottom: 0.5rem;
    }
    
    .single-progetti .gallery-grid {
        grid-template-columns: 1fr;
    }
}