/* =====================================================
   CPT-SINGLE.CSS - Layout pagine singole CPT
   File: /css/cpt-single.css
   Versione: 1.1.0 - Fix layout con poco contenuto
   Usato per: Eventi singoli, News singole
   ===================================================== */


/* =====================================================
   1. WRAPPER PRINCIPALE
   ===================================================== */

.cpt-single-wrapper {
    margin: 0 auto 60px;
    padding: 0;
    width: 100%;
}


/* =====================================================
   2. LINK "TORNA A..."
   ===================================================== */

.cpt-back-link {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #fff;
}

.cpt-back-link:hover {
    text-decoration: underline;
    color: white;
}


/* =====================================================
   3. ARTICOLO CONTAINER
   ===================================================== */

.cpt-single-article {
    border: 1px solid #e2e8f0;
    border-bottom-width: 6px;
    border-radius: 6px;
    padding: 24px;
    background: #ffffff;
    min-height: 200px;
}


/* =====================================================
   4. META INFORMAZIONI
   ===================================================== */

.cpt-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: #4a5568;
    margin-bottom: 6px;
}

.cpt-single-date {
    font-weight: 600;
    color: #2a5f95;
}

.cpt-tax-pill {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: #edf2f7;
    font-size: 0.75rem;
}

.cpt-single-categoria {
    display: block;
    clear: both;
    width: 100%;
}


/* =====================================================
   5. HEADER
   ===================================================== */

.cpt-single-header {
    margin-bottom: 20px;
}

.cpt-single-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #1a202c;
}


/* =====================================================
   6. IMMAGINE HERO
   ===================================================== */

.cpt-single-hero {
    margin-top: 0;
    padding-bottom: 20px;
}

.cpt-single-hero img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}


/* =====================================================
   7. CONTENUTO
   ===================================================== */

.cpt-single-content {
    display: block;
    clear: both;
    width: 100%;
    font-size: 0.98rem;
    line-height: 1.6;
    min-height: 50px;
}

/* Contenuto vuoto o scarso */
.cpt-single-content:empty::before {
    content: '';
    display: block;
}

.cpt-single-content p {
    margin-bottom: 1em;
}


/* =====================================================
   8. META BLOCCHI (Eventi/News specifici)
   ===================================================== */

.event-meta-block,
.news-meta-block {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #4a5568;
}


/* =====================================================
   9. NAVIGAZIONE PRECEDENTE/SUCCESSIVO
   ===================================================== */

.cpt-single-nav {
    margin-top: 32px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cpt-nav-link {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #f9fafb;
    text-decoration: none;
    color: #1a202c;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.cpt-nav-link:hover {
    background: #edf2f7;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.cpt-nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #718096;
}

.cpt-nav-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: inherit;
}


/* =====================================================
   10. BADGE PRIVATO (News/Eventi)
   ===================================================== */

.cpt-private-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.cpt-private-badge::before {
    content: '🔒';
    font-size: 10px;
}