/*
 Theme Name: GeneratePress Child
 Theme URI: https://larchitetto.it
 Template: generatepress
 Description: Child theme per larchitetto.it — miglioramenti estetici e SEO
 Version: 1.0.0
 Author: Lorenzo
 Text Domain: generatepress-child
*/

/* ── Breadcrumb ── */
#breadcrumbs {
    background: #f5f5f4;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.82em;
    color: #57534e;
    margin-bottom: 20px;
    line-height: 1.5;
}
#breadcrumbs a {
    color: #44403c;
    text-decoration: none;
}
#breadcrumbs a:hover {
    text-decoration: underline;
}

/* ── Titolo H1 single post ── */
.single .entry-header h1 {
    text-transform: none;
    font-weight: 700;
    line-height: 1.25;
    font-size: 34px;
    margin-bottom: 10px;
}
@media (max-width: 768px) {
    .single .entry-header h1 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 8px;
    }
}

/* ── Author box single post ── */
.post-author-box {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
}
.post-author-box .author-avatar img {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    object-fit: cover;
    display: block;
}
.post-author-box .author-info {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.9em;
    color: #57534e;
}
.post-author-box .author-info a {
    font-weight: 600;
    color: #292524;
    text-decoration: none;
}
.post-author-box .author-info a:hover {
    text-decoration: underline;
}
.post-author-box .author-date {
    color: #44403c;
    font-size: 0.92em;
}
.post-author-box .author-date::before {
    content: "\2014";
    margin-right: 6px;
    color: #57534e;
}

/* ── Tipografia contenuto ── */
.single .entry-content {
    line-height: 1.82;
    letter-spacing: -0.006em;
}
.single .entry-content p {
    margin-bottom: 1.35em;
}
.single .entry-content h2 {
    margin-top: 2em;
    margin-bottom: 0.6em;
}
.single .entry-content h3 {
    margin-top: 1.6em;
    margin-bottom: 0.5em;
}

/* ── AI Disclaimer ── */
.ai-disclaimer {
    background: #f0f6fc;
    border-left: 4px solid #1e73be;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 28px 0 12px;
    font-size: 0.9em;
    color: #1c1917;
    line-height: 1.7;
}
.ai-disclaimer p {
    margin: 0;
}
.ai-disclaimer p + p {
    margin-top: 6px;
}
.ai-disclaimer a {
    color: #1e73be;
    font-weight: 600;
}

/* ── Pagina Autori ── */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 24px;
    margin: 28px 0;
    box-sizing: border-box;
}
.author-card {
    background: #fafaf9;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: box-shadow 0.15s ease;
}
.author-card:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.author-card .author-card-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
    object-fit: cover;
    display: inline-block;
}
.author-card h3 {
    margin: 12px 0 4px;
    font-size: 1.12em;
}
.author-card h3 a {
    color: #1c1917;
    text-decoration: none;
}
.author-card h3 a:hover {
    text-decoration: underline;
}
.author-card {
    overflow: hidden;
    max-width: 100%;
}
.author-card .author-card-bio {
    font-size: 0.88em;
    color: #57534e;
    line-height: 1.6;
    margin: 8px 0;
    overflow-wrap: break-word;
    word-break: break-word;
}
.author-card .author-card-bio a {
    word-break: break-all;
}
.author-card .author-card-bio p {
    margin: 0;
}
.author-card .author-card-stats {
    font-size: 0.82em;
    color: #a8a29e;
    margin-top: 10px;
}
.author-card .author-card-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.88em;
    font-weight: 600;
    color: #57534e;
    text-decoration: none;
}
.author-card .author-card-link:hover {
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .authors-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        overflow-x: hidden;
    }
    .author-card {
        padding: 22px 18px;
        max-width: 100%;
    }
    .author-card .author-card-bio p {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}

/* ── Header padding ── */
.inside-header {
    padding: 0px 10px 0px 15px;
}

/* ── Nascondi commenti, copyright GP, site-info ── */
.copyright-bar,
.comments-area,
.inside-site-info,
.comments-link {
    display: none;
}

.copyright-bar {
    display: flex;
    justify-content: space-between;
}
.copyright-bar a[href="https://generatepress.com"] {
    display: none;
}
.copyright-bar::after,
.copyright-bar::before {
    content: "";
    display: inline-block;
    width: 0;
}

/* ── Footer page-list ── */
.wp-block-page-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    text-align: center;
}
.wp-block-page-list li {
    display: inline-block;
    margin: 0 10px;
}
.wp-block-page-list li a {
    text-decoration: none;
}
