/* ============================================================
   FEEL BLOG — feel-blog.css
   Blog archive  →  .fb-*
   Single article → .fa-*
============================================================ */

/* ──────────────────────────────────────────────────────────
   BLOG ARCHIVE
────────────────────────────────────────────────────────── */

.fb-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 40px 96px;
}

/* ── Header ────────────────────────────────────────────── */

.fb-header {
    text-align: center;
    margin-bottom: 72px;
}

.fb-eyebrow {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(178, 121, 112, .08);
    border-radius: 999px;
    padding: 5px 16px;
    margin-bottom: 20px;
}

.fb-heading {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    font-weight: 400;
    color: #111827;
    line-height: 1.05;
    margin: 0 0 20px;
}

.fb-subheading {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #6b7280;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── Filtro categorie ──────────────────────────────────── */

.fb-cats {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 48px;
}

.fb-cat-pill {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    padding: 8px 20px;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}

.fb-cat-pill:hover,
.fb-cat-pill.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* ── Grid articoli ─────────────────────────────────────── */

.fb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 72px;
}

/* Articolo in evidenza — occupa tutta la prima riga */
.fb-card--featured {
    grid-column: 1 / -1;
    flex-direction: row;
    min-height: 340px;
}

.fb-card--featured .fb-thumb {
    margin: 0;
    border-radius: 16px 0 0 16px;
    flex: 0 0 50%;
    aspect-ratio: unset;
    height: 100%;
}

.fb-card--featured .fb-thumb img,
.fb-card--featured .fb-thumb__img {
    height: 100%;
    aspect-ratio: unset;
    border-radius: 16px 0 0 16px;
}

.fb-card--featured .fb-card__body {
    padding: 40px 48px;
    justify-content: center;
}

.fb-card--featured .fb-title {
    font-size: 28px;
    margin-bottom: 14px;
}

.fb-card--featured .fb-excerpt {
    -webkit-line-clamp: 4;
    margin-bottom: 24px;
}

/* ── Card ──────────────────────────────────────────────── */

.fb-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(178, 121, 112, .07);
    border: 1px solid transparent;
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.fb-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 36px rgba(178, 121, 112, .14);
    border-color: rgba(178, 121, 112, .18);
}

/* Thumbnail */
.fb-thumb {
    display: block;
    overflow: hidden;
    margin: 12px 12px 0;
    border-radius: 12px;
    aspect-ratio: 16/10;
    flex-shrink: 0;
}

.fb-thumb img,
.fb-thumb__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

.fb-card:hover .fb-thumb img,
.fb-card:hover .fb-thumb__img {
    transform: scale(1.04);
}

/* Body */
.fb-card__body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Categoria */
.fb-cat-label {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(178, 121, 112, .08);
    border-radius: 999px;
    padding: 3px 12px;
    margin-bottom: 12px;
    text-decoration: none;
    transition: background .15s;
}

.fb-cat-label:hover {
    background: rgba(178, 121, 112, .16);
}

/* Titolo */
.fb-title {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 400;
    color: #111827;
    line-height: 1.32;
    margin: 0 0 12px;
}

.fb-title a {
    color: inherit;
    text-decoration: none;
    transition: color .15s;
}

.fb-title a:hover {
    color: var(--primary-color);
}

/* Excerpt */
.fb-excerpt {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #4b5563;
    line-height: 1.65;
    margin: 0 0 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer card */
.fb-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f3f4f6;
}

.fb-date {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
}

.fb-read-more {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color .15s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.fb-read-more:hover {
    color: #9a6158;
}

/* ── Paginazione ───────────────────────────────────────── */

.fb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.fb-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    padding: 0 14px;
    border-radius: 10px;
    border: 1.5px solid transparent;
    transition: all .2s ease;
}

.fb-pagination .page-numbers:hover {
    background: #f5f0eb;
    color: #111827;
    border-color: #e6dcd2;
}

.fb-pagination .page-numbers.current {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 600;
}

.fb-pagination .page-numbers.dots {
    border: none;
    cursor: default;
    min-width: auto;
    padding: 0 4px;
}

.fb-pagination .page-numbers.dots:hover {
    background: transparent;
    color: #6b7280;
}

/* ── No posts ──────────────────────────────────────────── */

.fb-no-posts {
    text-align: center;
    padding: 100px 0;
    font-family: 'Manrope', sans-serif;
    color: #6b7280;
}

.fb-no-posts p {
    font-size: 18px;
    margin: 0 0 24px;
}

.fb-no-posts a {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}


/* ──────────────────────────────────────────────────────────
   SINGLE ARTICLE
────────────────────────────────────────────────────────── */

.fa-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 40px 96px;
}

/* ── Breadcrumb ────────────────────────────────────────── */

.fa-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 48px;
}

.fa-breadcrumb a {
    color: #9ca3af;
    text-decoration: none;
    transition: color .15s;
}

.fa-breadcrumb a:hover {
    color: var(--primary-color);
}

.fa-breadcrumb__sep {
    font-size: 11px;
    opacity: .5;
}

.fa-breadcrumb__current {
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 260px;
}

/* ── Article header ────────────────────────────────────── */

.fa-header {
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
}

.fa-cat-label {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--primary-color);
    background: rgba(178, 121, 112, .09);
    border-radius: 999px;
    padding: 5px 16px;
    margin-bottom: 24px;
    text-decoration: none;
    transition: background .15s;
}

.fa-cat-label:hover {
    background: rgba(178, 121, 112, .18);
}

.fa-title {
    font-family: 'Playfair Display', serif;
    font-size: 56px;
    font-weight: 400;
    color: #111827;
    line-height: 1.12;
    margin: 0 0 28px;
}

.fa-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    color: #9ca3af;
}

.fa-meta__sep {
    width: 3px;
    height: 3px;
    background: #d1d5db;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.fa-meta__author {
    font-weight: 600;
    color: #6b7280;
}

.fa-meta__reading {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ── Featured image ────────────────────────────────────── */

.fa-featured {
    max-width: 1000px;
    margin: 0 auto 64px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(178, 121, 112, .12);
}

.fa-featured__img {
    width: 100%;
    display: block;
    aspect-ratio: 21/9;
    object-fit: cover;
}

/* ── Content ───────────────────────────────────────────── */

.fa-content {
    max-width: 740px;
    margin: 0 auto 64px;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
    font-weight: 400;
    color: #374151;
    line-height: 1.9;
}

.fa-content > * + * {
    margin-top: 0;
}

.fa-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    font-weight: 400;
    color: #111827;
    margin: 52px 0 20px;
    line-height: 1.22;
}

.fa-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    color: #111827;
    margin: 40px 0 16px;
    line-height: 1.3;
}

.fa-content h4 {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 32px 0 12px;
    letter-spacing: .02em;
}

.fa-content p {
    margin: 0 0 26px;
}

.fa-content p:last-child {
    margin-bottom: 0;
}

.fa-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-color: rgba(178, 121, 112, .4);
    text-underline-offset: 3px;
    transition: text-decoration-color .15s;
}

.fa-content a:hover {
    text-decoration-color: var(--primary-color);
}

.fa-content strong {
    font-weight: 600;
    color: #111827;
}

.fa-content em {
    font-style: italic;
}

.fa-content ul,
.fa-content ol {
    padding-left: 0;
    margin: 0 0 26px;
    list-style: none;
}

.fa-content ul li,
.fa-content ol li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    line-height: 1.7;
}

.fa-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: .7;
}

.fa-content ol {
    counter-reset: fa-list;
}

.fa-content ol li {
    counter-increment: fa-list;
}

.fa-content ol li::before {
    content: counter(fa-list);
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--primary-color);
    width: 20px;
}

.fa-content blockquote {
    border-left: 3px solid var(--primary-color);
    padding: 20px 28px;
    margin: 36px 0;
    background: #f5f0eb;
    border-radius: 0 16px 16px 0;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-style: italic;
    color: #374151;
    line-height: 1.6;
}

.fa-content blockquote cite {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 600;
    color: #9ca3af;
    margin-top: 12px;
}

.fa-content img {
    width: 100%;
    height: auto;
    border-radius: 14px;
    display: block;
    margin: 32px 0;
}

.fa-content figure {
    margin: 40px 0;
}

.fa-content figcaption {
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    text-align: center;
    margin-top: 10px;
    letter-spacing: .02em;
}

.fa-content hr {
    border: none;
    border-top: 1px solid #e6dcd2;
    margin: 48px 0;
}

.fa-content code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    background: #f3f4f6;
    border-radius: 5px;
    padding: 2px 8px;
    color: #b27970;
}

.fa-content pre {
    background: #111827;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    margin: 32px 0;
}

.fa-content pre code {
    background: none;
    padding: 0;
    color: #f9fafb;
    font-size: 14px;
}

/* ── Tags ──────────────────────────────────────────────── */

.fa-tags {
    max-width: 740px;
    margin: 0 auto 64px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 36px;
    border-top: 1px solid #e6dcd2;
}

.fa-tags__label {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: .08em;
    text-transform: uppercase;
    align-self: center;
    margin-right: 4px;
}

.fa-tag {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    padding: 5px 14px;
    text-decoration: none;
    transition: all .18s ease;
}

.fa-tag:hover {
    background: #f5f0eb;
    color: var(--primary-color);
    border-color: rgba(178, 121, 112, .3);
}

/* ── Author box ────────────────────────────────────────── */

.fa-author-box {
    max-width: 740px;
    margin: 0 auto 72px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    background: #fff;
    border: 1px solid #e6dcd2;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: 0 2px 16px rgba(178, 121, 112, .06);
}

.fa-author-box__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f0eb;
}

.fa-author-box__name {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 400;
    color: #111827;
    margin: 0 0 6px;
}

.fa-author-box__bio {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.65;
    margin: 0;
}

/* ── Related articles ──────────────────────────────────── */

.fa-related {
    padding-top: 72px;
    border-top: 1px solid #e6dcd2;
}

.fa-related__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.fa-related__title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 400;
    color: #111827;
    margin: 0;
}

.fa-related__all {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color .15s;
}

.fa-related__all:hover {
    color: #9a6158;
}

.fa-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Comments ──────────────────────────────────────────── */

.fa-comments {
    max-width: 740px;
    margin: 72px auto 0;
    padding-top: 56px;
    border-top: 1px solid #e6dcd2;
}

.fa-comments #comments .comments-title,
.fa-comments #respond .comment-reply-title {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: #111827;
    margin: 0 0 32px;
}

.fa-comments .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.fa-comments .comment-list .comment {
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 28px;
    margin-bottom: 28px;
}

.fa-comments .comment-list .comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.fa-comments .comment-author b {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.fa-comments .comment-metadata time {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    color: #9ca3af;
}

.fa-comments .comment-content p {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.7;
    margin: 10px 0 0;
}

.fa-comments #respond .comment-form label {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7280;
    display: block;
    margin-bottom: 6px;
}

.fa-comments #respond .comment-form input[type="text"],
.fa-comments #respond .comment-form input[type="email"],
.fa-comments #respond .comment-form input[type="url"],
.fa-comments #respond .comment-form textarea {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    width: 100%;
    color: #111827;
    background: #fff;
    transition: border-color .2s;
    outline: none;
}

.fa-comments #respond .comment-form input[type="text"]:focus,
.fa-comments #respond .comment-form input[type="email"]:focus,
.fa-comments #respond .comment-form input[type="url"]:focus,
.fa-comments #respond .comment-form textarea:focus {
    border-color: var(--primary-color);
}

.fa-comments #respond .comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.fa-comments #respond .form-submit input[type="submit"] {
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 600;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 14px 36px;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.fa-comments #respond .form-submit input[type="submit"]:hover {
    background: #9a6158;
    transform: translateY(-2px);
}

/* ──────────────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
    .fb-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fb-card--featured {
        grid-column: auto;
        flex-direction: column;
    }

    .fb-card--featured .fb-thumb {
        margin: 12px 12px 0;
        border-radius: 12px;
        flex: none;
        aspect-ratio: 16/10;
        height: auto;
    }

    .fb-card--featured .fb-thumb img,
    .fb-card--featured .fb-thumb__img {
        height: 100%;
        aspect-ratio: unset;
        border-radius: 12px;
    }

    .fb-card--featured .fb-card__body {
        padding: 20px 22px 22px;
    }

    .fb-card--featured .fb-title {
        font-size: 20px;
    }

    .fa-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fb-heading {
        font-size: 54px;
    }

    .fa-title {
        font-size: 44px;
    }
}

@media (max-width: 900px) {
    .fb-page,
    .fa-page {
        padding-left: 24px;
        padding-right: 24px;
    }

    .fb-heading {
        font-size: 44px;
    }

    .fa-title {
        font-size: 36px;
    }

    .fa-featured__img {
        aspect-ratio: 16/9;
    }
}

@media (max-width: 768px) {
    .fb-header {
        margin-bottom: 48px;
    }

    .fb-heading {
        font-size: 36px;
    }

    .fb-subheading {
        font-size: 16px;
    }

    .fa-page {
        padding-top: 32px;
    }

    .fa-title {
        font-size: 30px;
    }

    .fa-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .fa-content h2 {
        font-size: 26px;
    }

    .fa-content h3 {
        font-size: 21px;
    }

    .fa-author-box {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .fa-related__title {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .fb-page {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .fb-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fa-related__grid {
        grid-template-columns: 1fr;
    }

    .fb-heading {
        font-size: 30px;
    }

    .fa-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .fa-featured {
        border-radius: 14px;
        margin-bottom: 48px;
    }

    .fa-featured__img {
        aspect-ratio: 4/3;
    }

    .fa-breadcrumb {
        display: none;
    }

    .fa-content {
        font-size: 15.5px;
    }

    .fa-content blockquote {
        font-size: 18px;
        padding: 16px 20px;
    }
}
