/*
 * Single Post + Related Posts Styles
 * 
 * Stili per articolo singolo e sezione articoli correlati
 * Prefisso: .ve-single-*, .ve-related-*
 */

/* ========================================
   SINGLE POST LAYOUT
======================================== */

.ve-single-wrapper {
    width: 100%;
    padding: 60px 20px;
    background-color: #fff;
}

.ve-single-container {
    max-width: 900px;
    margin: 0 auto;
}

.ve-single-article {
    margin-bottom: 80px;
}

/* ========================================
   FEATURED IMAGE
======================================== */

.ve-single-featured-image {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ve-single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Badge su immagine featured */
.ve-single-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #B28E3A;
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* ========================================
   POST HEADER
======================================== */

.ve-single-header {
    margin-bottom: 40px;
    text-align: center;
}

.ve-single-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a3a5c; /* Blu scuro come riferimento */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 20px 0;
}

@media (max-width: 767px) {
    .ve-single-title {
        font-size: 28px;
    }
}

.ve-single-meta {
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.ve-single-meta time {
    font-size: 14px;
    color: #888888;
    font-style: italic;
}

/* ========================================
   POST CONTENT
======================================== */

.ve-single-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333333;
}

.ve-single-content p {
    margin-bottom: 1.5em;
}

.ve-single-content h2,
.ve-single-content h3 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #1a3a5c;
}

.ve-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2em 0;
}

/* ========================================
   ARTICOLI CORRELATI - HEADER
======================================== */

.ve-related-posts {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 3px solid #e0e0e0;
}

.ve-related-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #1a3a5c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 50px 0;
}

/* ========================================
   ARTICOLI CORRELATI - GRIGLIA
======================================== */

.ve-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 25px;
}

/* Tablet: 2 colonne */
@media (max-width: 991px) {
    .ve-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }
}

/* Mobile: 1 colonna */
@media (max-width: 767px) {
    .ve-related-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ========================================
   ARTICOLI CORRELATI - CARD
======================================== */

.ve-related-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ve-related-card:hover {
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.12),
        0 0 18px rgba(212, 175, 55, 0.15);
    transform: translateY(-3px);
}

@media (max-width: 767px) {
    .ve-related-card:hover {
        transform: none;
    }
}

/* ========================================
   ARTICOLI CORRELATI - IMMAGINE
======================================== */

.ve-related-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    background-color: #f5f5f5;
}

.ve-related-image-wrapper a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.ve-related-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.ve-related-card:hover .ve-related-image {
    transform: scale(1.06);
}

.ve-related-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

/* Badge su card correlate */
.ve-related-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #B28E3A;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    z-index: 2;
    white-space: nowrap;
}

/* ========================================
   ARTICOLI CORRELATI - CONTENUTO
======================================== */

.ve-related-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ve-related-card-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ve-related-card-title a {
    color: #1a3a5c;
    text-decoration: none;
    transition: color 0.25s ease;
}

.ve-related-card-title a:hover {
    color: #B28E3A;
}

.ve-related-excerpt {
    margin: 0 0 14px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    flex-grow: 1;
}

.ve-related-readmore {
    display: inline-block;
    margin: 0 0 14px 0;
    font-size: 13px;
    font-weight: 600;
    color: #B28E3A;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.25s ease;
}

.ve-related-readmore:hover {
    color: #b8941f;
}

.ve-related-meta {
    padding-top: 14px;
    border-top: 1px solid #e0e0e0;
    margin-top: auto;
}

.ve-related-meta time {
    display: block;
    font-size: 12px;
    color: #888888;
    font-style: italic;
}

/* ========================================
   SEZIONE COMMENTI
======================================== */

.ve-comments-area {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid #e0e0e0;
}

/* Blocco Staff Coaching Academy */
.ve-comment-intro {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.ve-comment-intro-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 20px 0;
    text-align: left;
}

.ve-comment-intro-text {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    margin: 0;
    text-align: justify;
}

/* Titolo form commenti */
.ve-comment-reply-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 20px 0;
    text-align: left;
}

/* Nota privacy */
.ve-comment-notes {
    font-size: 14px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.ve-comment-notes .required {
    color: #B28E3A;
    font-weight: 700;
}

/* Form commenti */
.ve-comment-form {
    max-width: 100%;
}

.ve-comment-form p {
    margin-bottom: 20px;
}

.ve-comment-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.ve-comment-form label .required {
    color: #B28E3A;
    margin-left: 3px;
}

.ve-comment-form input[type="text"],
.ve-comment-form input[type="email"],
.ve-comment-form input[type="url"],
.ve-comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #999;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ve-comment-form input[type="text"]:focus,
.ve-comment-form input[type="email"]:focus,
.ve-comment-form input[type="url"]:focus,
.ve-comment-form textarea:focus {
    outline: none;
    border-color: #B28E3A;
    box-shadow: 0 0 0 3px rgba(178, 142, 58, 0.1);
}

.ve-comment-form textarea {
    min-height: 180px;
    resize: vertical;
}

/* Checkbox consenso cookies */
.ve-comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
}

.ve-comment-form .comment-form-cookies-consent input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 3px;
}

.ve-comment-form .comment-form-cookies-consent label {
    display: inline;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 0;
}

/* Pulsante invio commento */
.ve-comment-submit {
    background: #B28E3A;
    color: #ffffff;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(178, 142, 58, 0.3);
}

.ve-comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.ve-comment-submit:active {
    transform: translateY(0);
}

/* Lista commenti */
.ve-comments-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a3a5c;
    margin: 0 0 30px 0;
}

.ve-comments-list {
    list-style: none;
    padding: 0;
    margin: 0 0 50px 0;
}

.ve-comments-list .comment {
    padding: 25px 0;
    border-bottom: 1px solid #e0e0e0;
}

.ve-comments-list .comment-body {
    display: flex;
    gap: 20px;
}

.ve-comments-list .comment-author img {
    border-radius: 50%;
}

.ve-comments-list .comment-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.ve-comments-list .comment-content {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.ve-comments-list .reply {
    margin-top: 10px;
}

.ve-comments-list .reply a {
    color: #B28E3A;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ve-comments-list .reply a:hover {
    color: #1a3a5c;
}

/* Commenti chiusi */
.ve-no-comments {
    font-size: 15px;
    color: #888;
    font-style: italic;
    margin: 30px 0;
}

/* Responsive */
@media (max-width: 767px) {
    .ve-comments-area {
        margin-top: 50px;
        padding-top: 40px;
    }
    
    .ve-comment-reply-title {
        font-size: 24px;
    }
    
    .ve-comment-submit {
        width: 100%;
        padding: 16px 30px;
    }
}

/* ========================================
   ACCESSIBILITÀ
======================================== */

@media (prefers-reduced-motion: reduce) {
    .ve-related-card,
    .ve-related-image,
    .ve-related-card-title a,
    .ve-related-readmore,
    .ve-comment-submit {
        transition: none;
    }
}
