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

#comments {
    padding: 4rem 0;
}

/* Form dei commenti */
#comments .comment-form {
    background: var(--white);
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
    margin-bottom: 30px;
}

#comments .comment-form input,
#comments .comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-top: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#comments .comment-form input:focus,
#comments .comment-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 5px rgba(232, 73, 29, 0.3);
}

/* Evidenziazione dei campi con errore */
#comments .comment-form input.error,
#comments .comment-form textarea.error {
    border: 1px solid red;
}

#comments .comment-form .error-message {
    display: block;
    font-size: 0.8rem;
    color: red;
    text-align: left;
}

/* Visualizzazione dei commenti */
#comments .comment {
    background: var(--white);
    padding: 0.8rem;
    padding-right: 0.2rem;
    margin: 0.1rem auto;
    border-radius: 8px;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

#comments .comment .comment-header {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

#comments .comment .comment-body {
    font-size: 1rem;
}

/* Link per "Rispondi", "Visualizza risposte" e azioni simili */
#comments .comment a.reply-link,
#comments .comment a.toggle-replies,
#comments .comment a.other-link {
    display: inline-block;
    margin-right: 10px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

#comments .comment a.reply-link:hover,
#comments .comment a.toggle-replies:hover,
#comments .comment a.other-link:hover {
    text-decoration: underline;
    color: var(--secondary-hover-color, #e8491d);
}

/* Controlli per le risposte */
.reply-controls {
    margin-top: 1rem;
}

/* Container per le risposte */
.replies-container {
    margin-top: 1rem;
    border-left: 2px solid #eee;
    padding-left: 0.5rem;
}

/* Container per "Visualizza altri commenti" */
#loadMoreMainContainer,
.load-more {
    text-align: center;
    margin: 2rem 0;
}

/* Stile specifico per il link "Visualizza altri commenti" */
#loadMoreMainContainer a.other-link {
    display: inline-block;
    margin-right: 8px;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* Container per "Visualizza altro" nelle risposte */
.load-more-replies {
    text-align: center;
    margin-top: 1rem;
}

.g-recaptcha {
    margin-top: 1rem;
    transform: scale(0.85);
    transform-origin: 0 0;
}