/* ============================================================
   COMMENTI — stile CF7 invertito (sfondo bianco)
   divi-child/assets/frg-comments.css
   ============================================================ */

.frg-comments {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #eee;
}

/* ── TITOLO COMMENTI ── */
.frg-comments #comments > h2,
.frg-comments .comments-title {
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(18px, 2vw, 24px) !important;
    font-weight: 700 !important;
    color: var(--frg-nero) !important;
    margin: 0 0 28px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.frg-comments #comments > h2::before,
.frg-comments .comments-title::before {
    display: none !important;
}

/* ── LISTA COMMENTI ── */
.frg-comments .comment-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px !important;
}

.frg-comments .comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    overflow: hidden;
}

.frg-comments .comment-list .comment:last-child {
    border-bottom: none;
}

.frg-comments .comment-author img {
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    float: left;
    margin-right: 14px;
    margin-top: 2px;
}

.frg-comments .comment-author .fn {
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(14px, 1vw, 16px);
    font-weight: 700;
    color: var(--frg-nero);
}

.frg-comments .comment-author .fn a {
    color: var(--frg-nero) !important;
    text-decoration: none !important;
    -webkit-text-fill-color: var(--frg-nero) !important;
    background: none !important;
}

.frg-comments .comment-metadata a,
.frg-comments .comment-metadata time {
    font-size: clamp(11px, 0.5vw + 10px, 13px);
    color: #aaa !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #aaa !important;
    background: none !important;
}

.frg-comments .comment-content p {
    font-size: clamp(14px, 1vw + 12px, 16px) !important;
    line-height: 1.7 !important;
    color: #3a3a3a !important;
    margin: 8px 0 0 !important;
}

.frg-comments .reply a {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #aaa !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #aaa !important;
    background: none !important;
    transition: color 0.2s;
}

.frg-comments .reply a:hover {
    color: var(--frg-nero) !important;
    -webkit-text-fill-color: var(--frg-nero) !important;
}

.frg-comments .comment-list .children {
    list-style: none !important;
    padding-left: 28px !important;
    margin: 0 !important;
    border-left: 2px solid #f0f0f0;
}

.frg-comments .no-comments {
    font-size: clamp(14px, 1vw, 16px);
    color: #aaa;
    margin-bottom: 32px;
}

/* ── FORM ── */
.frg-comments #respond {
    margin-top: 40px;
}

.frg-comments .comment-reply-title {
    font-family: 'Satoshi', sans-serif;
    font-size: clamp(18px, 2vw, 24px) !important;
    font-weight: 700 !important;
    color: var(--frg-nero) !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
}

.frg-comments .comment-reply-title::before {
    display: none !important;
}

.frg-comments #cancel-comment-reply-link {
    font-size: 13px;
    font-weight: 400;
    color: #aaa !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #aaa !important;
    background: none !important;
    margin-left: 12px;
}

/* Nasconde campo sito web */
.frg-comments .comment-form-url {
    display: none !important;
}

/* Nome + email 50/50 sulla stessa riga */
.frg-comments .comment-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0 24px;
}

.frg-comments .comment-form > * {
    width: 100%;
}

.frg-comments .comment-form-author,
.frg-comments .comment-form-email {
    width: calc(50% - 12px) !important;
    flex-shrink: 0;
}

.frg-comments .comment-form-comment {
    width: 100% !important;
}

/* Label */
.frg-comments .comment-form label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(11px, 0.19vw + 10.3px, 13px);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #b2b2b2;
    display: block;
    margin-bottom: 8px;
}

/* Input e textarea: solo border-bottom */
.frg-comments .comment-form input[type="text"],
.frg-comments .comment-form input[type="email"],
.frg-comments .comment-form textarea {
    width: 100% !important;
    font-family: 'Satoshi', sans-serif !important;
    font-size: clamp(14px, 1vw, 16px) !important;
    color: var(--frg-nero) !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--frg-nero) !important;
    border-radius: 0 !important;
    padding: 8px 0 !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s !important;
    margin-bottom: 24px !important;
}

.frg-comments .comment-form input[type="text"]:focus,
.frg-comments .comment-form input[type="email"]:focus,
.frg-comments .comment-form textarea:focus {
    border-bottom-color: var(--frg-arancione) !important;
}

.frg-comments .comment-form input::placeholder,
.frg-comments .comment-form textarea::placeholder {
    color: var(--frg-nero) !important;
    opacity: 0.35 !important;
}

.frg-comments .comment-form textarea {
    height: 100px !important;
    resize: vertical !important;
}

/* Checkbox cookies */
.frg-comments .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.frg-comments .comment-form-cookies-consent input {
    margin-top: 3px;
    flex-shrink: 0;
    accent-color: var(--frg-arancione);
}

.frg-comments .comment-form-cookies-consent label {
    font-size: clamp(12px, 0.8vw + 10px, 14px) !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #888 !important;
    line-height: 1.5;
}

/* Note obbligatori */
.frg-comments .comment-notes,
.frg-comments .required-field-message {
    font-size: clamp(12px, 0.8vw + 10px, 14px);
    color: #aaa;
    margin-bottom: 20px;
    width: 100%;
}

/* Bottone invia */
.frg-comments .form-submit {
    width: 100%;
    margin: 0;
}

.frg-comments .form-submit .frg-comment-submit {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: clamp(11px, 0.19vw + 10.3px, 13px) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: var(--frg-nero) !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 4px 1.8em 4px 0 !important;
    position: relative !important;
    display: inline-block !important;
    cursor: pointer !important;
    box-shadow: none !important;
    background-image: linear-gradient(#b2b2b2, #b2b2b2) !important;
    background-size: 0% 1px !important;
    background-position: left bottom !important;
    background-repeat: no-repeat !important;
    transition: color 350ms ease, background-size 350ms ease !important;
}

.frg-comments .form-submit .frg-comment-submit:hover {
    color: #b2b2b2 !important;
    background-size: 100% 1px !important;
}

.frg-comments .form-submit .frg-comment-submit::after {
    content: '' !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    position: absolute !important;
    right: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23131620' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7V17'/%3E%3C/svg%3E") !important;
    background-size: 16px 16px !important;
    background-repeat: no-repeat !important;
    transition: background-image 350ms ease, transform 350ms ease !important;
}

.frg-comments .form-submit .frg-comment-submit:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b2b2b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7V17'/%3E%3C/svg%3E") !important;
    transform: translateY(-50%) translate(2px, -2px) !important;
}

/* Fix padding Divi */
#comment-wrap { padding-top: 0 !important; }

/* ── MOBILE ── */
@media (max-width: 768px) {
    .frg-comments .comment-form-author,
    .frg-comments .comment-form-email {
        width: 100% !important;
    }
}