div.page-content {
    margin: 100px 0;
    font-family: 'Roboto', Sans-serif;

}

div.page-content h1{
    padding: 50px 0 30px;
    font-family: 'Bitter', serif;
}

div.page-content .post-content a{
    color: #42c9ab;
}


.page-content-main-image{
    position: relative;
}

.page-content-main-image .datePost{
    position: absolute;
    bottom: -20px;
    right: 16px;
    font-size: 16px;
    line-height: 16px;
    background-color: #42c9ab;
    border-radius: 4px;
    color: #fff;
    padding: 10px 30px;
    text-align: center;
    display: inline-block;
}


/* ========================================= */
/* NAVIGAZIONE POST CON THUMBNAIL - METODO 3 */
/* ========================================= */

/* Container principale */
.post-navigation-with-thumb {
    margin: 60px auto;
    padding: 40px 0;
    border-top: 1px solid #e5e5e5;
}

/* Container interno */
.post-navigation-with-thumb .nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Ogni item di navigazione */
.post-navigation-with-thumb .nav-item {
    position: relative;
    min-height: 100px;
}

/* Link generale */
.post-navigation-with-thumb .nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    background: linear-gradient(to bottom, #fafafa 0%, #ffffff 50%, #fafafa 100%);
}

/* Hover effect */
.post-navigation-with-thumb .nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #42c9ab;
}

/* Thumbnail container */
.post-navigation-with-thumb .nav-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    background: #f5f5f5;
    margin-right: 15px;
}

/* Thumbnail per post successivo (a destra) */
.nav-next .nav-thumb {
    margin-right: 0;
    margin-left: 15px;
    order: 2;
}

/* Immagine thumbnail */
.post-navigation-with-thumb .nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-navigation-with-thumb .nav-link:hover .nav-thumb img {
    transform: scale(1.1);
}

/* Contenuto testuale */
.post-navigation-with-thumb .nav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Per permettere text truncation */
}

/* Freccia */
.post-navigation-with-thumb .nav-arrow {
    display: block;
    font-size: 20px;
    color: #42c9ab;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

/* Animazione freccia su hover */
.nav-prev .nav-link:hover .nav-arrow {
    transform: translateX(-5px);
}

.nav-next .nav-link:hover .nav-arrow {
    transform: translateX(5px);
}

/* Label (Precedente/Successivo) */
.post-navigation-with-thumb .nav-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 6px;
    font-weight: 500;
}

/* Titolo del post */
.post-navigation-with-thumb .nav-title {
    font-size: 16px;
    line-height: 1.3;
    color: #333;
    margin: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-navigation-with-thumb .nav-link:hover .nav-title {
    color: #42c9ab;
}

/* ========================================= */
/* ARCHIVIO CENTRALE */
/* ========================================= */

.post-navigation-with-thumb .nav-archive {
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-navigation-with-thumb .nav-link-archive {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #666;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 50%;
    width: 90px;
    height: 90px;
    transition: all 0.3s ease;
    position: relative;
}

.post-navigation-with-thumb .nav-link-archive:hover {
    border-color: #42c9ab;
    border-style: solid;
    transform: rotate(90deg);
    background: #f0f7ff;
}

/* Icona archivio SVG */
.post-navigation-with-thumb .nav-link-archive svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    margin-bottom: 6px;
    transition: transform 0.3s ease;
}

.post-navigation-with-thumb .nav-link-archive:hover svg {
    transform: scale(1.1);
}

/* Testo archivio */
.post-navigation-with-thumb .nav-link-archive span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ========================================= */
/* STATI DISABILITATI */
/* ========================================= */

/* Quando non c'è post precedente/successivo */
.post-navigation-with-thumb .nav-item:empty {
    visibility: hidden;
}

/* Se vuoi mostrare un placeholder quando non ci sono post */
.post-navigation-with-thumb .nav-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    border-radius: 8px;
    color: #999;
    font-size: 14px;
    height: 100%;
    min-height: 110px;
}

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

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .post-navigation-with-thumb .nav-container {
        gap: 20px;
    }

    .post-navigation-with-thumb .nav-thumb {
        width: 70px;
        height: 70px;
    }

    .post-navigation-with-thumb .nav-link-archive {
        width: 80px;
        height: 80px;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .post-navigation-with-thumb .nav-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Ordine elementi su mobile */
    .post-navigation-with-thumb .nav-archive {
        order: -1; /* Archivio in alto */
    }

    .post-navigation-with-thumb .nav-prev {
        order: 2;
    }

    .post-navigation-with-thumb .nav-next {
        order: 3;
    }

    /* Archivio su mobile */
    .post-navigation-with-thumb .nav-link-archive {
        width: 100%;
        height: auto;
        border-radius: 8px;
        padding: 20px;
        flex-direction: row;
    }

    .post-navigation-with-thumb .nav-link-archive svg {
        margin-bottom: 0;
        margin-right: 10px;
    }

    .post-navigation-with-thumb .nav-link-archive:hover {
        transform: none;
    }

    /* Link con thumbnail su mobile */
    .post-navigation-with-thumb .nav-link {
        padding: 12px;
    }

    .post-navigation-with-thumb .nav-thumb {
        width: 60px;
        height: 60px;
        margin-right: 12px;
    }

    .nav-next .nav-thumb {
        margin-left: 12px;
    }

    .post-navigation-with-thumb .nav-title {
        font-size: 15px;
    }

    .post-navigation-with-thumb .nav-label {
        font-size: 10px;
    }
}

/* Mobile piccolo (max 480px) */
@media (max-width: 480px) {
    .post-navigation-with-thumb {
        margin: 40px auto;
        padding: 30px 0;
    }

    .post-navigation-with-thumb .nav-container {
        padding: 0 15px;
    }

    .post-navigation-with-thumb .nav-thumb {
        width: 50px;
        height: 50px;
    }

    .post-navigation-with-thumb .nav-title {
        font-size: 14px;
        -webkit-line-clamp: 1;
    }
}


/* ========================================= */
/* ANIMAZIONI EXTRA */
/* ========================================= */

/* Fade in on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-navigation-with-thumb.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading state per lazy loading immagini */
.post-navigation-with-thumb .nav-thumb.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


body .datePost,
body .page-content h1.titlePost{
    display: none!important;
}

body.single.single-post .datePost{
    display: inline-block!important;
}

body.single.single-post .page-content h1.titlePost{
    display: block!important;
}

