/* =============================================================================
   BAT INDUSTRIES — BLOG PRO CSS
   Ottimizzato per SEO, leggibilità e conversione
   ============================================================================= */

/* Custom Properties */
:root {
    --bat-purple: #FFD700;
    --bat-purple-dark: #e6c200;
    --bat-purple-light: #fff9d6;
    --bat-navy: #424242;
    --bat-text: #424242;
    --bat-muted: #777777;
    --bat-border: #EDEDED;
    --bat-bg: #f5f5f5;
    --bat-white: #ffffff;
    --bat-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    --bat-shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.13);
    --bat-radius: 16px;
    --bat-radius-sm: 8px;
    --bat-transition: all 0.2s cubic-bezier(0.455, 0.03, 0.515, 0.955);
    --bat-container: 1240px;
    --bat-font: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Helvetica Neue", sans-serif;
}

/* =============================================================================
   BLOG HERO
   ============================================================================= */

.bat-blog-hero {
    background: linear-gradient(135deg, #2a2a2a 0%, #333333 50%, #3d3d3d 100%);
    padding: 80px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bat-blog-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.bat-blog-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.bat-blog-hero__inner {
    max-width: var(--bat-container);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.bat-blog-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: #FFD700;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.bat-blog-hero__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 400;
    color: var(--bat-white);
    line-height: 1.1;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.bat-blog-hero__title strong {
    color: #FFD700;
    font-weight: 400;
}

.bat-blog-hero__subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: rgba(255, 255, 255, 0.72);
    max-width: 620px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.bat-blog-hero__stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.bat-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bat-stat strong {
    font-size: 28px;
    font-weight: 400;
    color: #FFD700;
    line-height: 1;
}

.bat-stat span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* =============================================================================
   FILTRI CATEGORIA
   ============================================================================= */

.bat-cat-filter {
    background: var(--bat-white);
    border-bottom: 1px solid var(--bat-border);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.bat-cat-filter__inner {
    max-width: var(--bat-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 0;
    scrollbar-width: none;
}

.bat-cat-filter__inner::-webkit-scrollbar { display: none; }

.bat-cat-pill {
    flex-shrink: 0;
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bat-muted);
    background: var(--bat-bg);
    border: 1px solid var(--bat-border);
    text-decoration: none;
    transition: var(--bat-transition);
    white-space: nowrap;
}

.bat-cat-pill:hover,
.bat-cat-pill.is-active {
    background: var(--bat-purple);
    border-color: var(--bat-purple);
    color: var(--bat-navy);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   CONTAINER BLOG
   ============================================================================= */

.bat-blog-container {
    max-width: var(--bat-container);
    margin: 0 auto;
    padding: 0 20px;
}

/* =============================================================================
   FEATURED POST
   ============================================================================= */

.bat-featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: var(--bat-radius);
    overflow: hidden;
    box-shadow: var(--bat-shadow-lg);
    margin: 50px 0 60px;
    background: var(--bat-navy);
    min-height: 480px;
}

.bat-featured-post__image {
    position: relative;
    display: block;
    overflow: hidden;
}

.bat-featured-post__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.2, 1, .22, 1);
}

.bat-featured-post:hover .bat-featured-post__image img {
    transform: scale(1.04);
}

.bat-featured-post__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(66, 66, 66, 0.4), transparent);
}

.bat-featured-post__content {
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    background: var(--bat-navy);
}

.bat-featured-post__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bat-featured-post__title {
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 400;
    color: var(--bat-white);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0;
}

.bat-featured-post__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.bat-featured-post__title a:hover {
    color: #FFD700;
}

.bat-featured-post__excerpt {
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
}

/* =============================================================================
   GRIGLIA PRINCIPALE + SIDEBAR
   ============================================================================= */

.bat-blog-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    padding-bottom: 80px;
}

/* =============================================================================
   POST CARD GRID
   ============================================================================= */

.bat-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.bat-post-card {
    background: var(--bat-white);
    border-radius: var(--bat-radius);
    border: 1px solid var(--bat-border);
    overflow: hidden;
    box-shadow: var(--bat-shadow);
    transition: var(--bat-transition);
    display: flex;
    flex-direction: column;
}

.bat-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bat-shadow-lg);
    border-color: rgba(255, 215, 0, 0.5);
}

.bat-post-card__thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.bat-post-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(.2, 1, .22, 1);
}

.bat-post-card:hover .bat-post-card__thumb img {
    transform: scale(1.06);
}

.bat-post-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
}

.bat-post-card__title {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
    color: var(--bat-navy);
}

.bat-post-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.bat-post-card__title a:hover {
    color: var(--bat-purple);
}

.bat-post-card__excerpt {
    font-size: 14px;
    color: var(--bat-muted);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.bat-post-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--bat-border);
}

/* =============================================================================
   COMMON ELEMENTS
   ============================================================================= */

.bat-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--bat-purple);
    color: var(--bat-navy);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: var(--bat-transition);
}

.bat-cat-badge:hover {
    background: var(--bat-purple-dark);
    color: var(--bat-navy);
}

.bat-cat-badge--sm {
    font-size: 11px;
    padding: 3px 10px;
}

.bat-post-date,
.bat-read-time,
.bat-post-updated,
.bat-post-author {
    font-size: 13px;
    color: var(--bat-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Buttons */
.bat-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bat-purple);
    color: var(--bat-navy) !important;
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--bat-transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
}

.bat-btn-primary:hover {
    background: var(--bat-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    color: var(--bat-navy) !important;
}

.bat-btn-primary--full { width: 100%; justify-content: center; }
.bat-btn-primary--lg { padding: 16px 36px; font-size: 17px; }

.bat-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--bat-purple) !important;
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--bat-purple);
    transition: var(--bat-transition);
}

.bat-btn-outline:hover {
    background: var(--bat-purple);
    color: var(--bat-white) !important;
    transform: translateY(-2px);
}

.bat-btn-outline--lg { padding: 14px 36px; font-size: 17px; }

/* Tags */
.bat-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bat-bg);
    border: 1px solid var(--bat-border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--bat-muted);
    text-decoration: none;
    transition: var(--bat-transition);
}

.bat-tag:hover {
    background: var(--bat-purple-light);
    border-color: var(--bat-purple);
    color: var(--bat-purple);
}

/* Paginazione */
.bat-pagination {
    margin-top: 48px;
}

.bat-pagination .page-numbers {
    display: inline-flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 8px;
    flex-wrap: wrap;
}

.bat-pagination .page-numbers li a,
.bat-pagination .page-numbers li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--bat-border);
    color: var(--bat-text);
    text-decoration: none;
    transition: var(--bat-transition);
    background: var(--bat-white);
}

.bat-pagination .page-numbers li a:hover,
.bat-pagination .page-numbers li span.current {
    background: var(--bat-purple);
    border-color: var(--bat-purple);
    color: var(--bat-white);
}

/* No posts */
.bat-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: var(--bat-muted);
}

/* =============================================================================
   SIDEBAR
   ============================================================================= */

.bat-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.bat-sidebar-cta {
    background: linear-gradient(135deg, #2a2a2a 0%, #3d3d3d 100%);
    border-radius: var(--bat-radius);
    padding: 28px 24px;
    text-align: center;
    color: var(--bat-white);
}

.bat-sidebar-cta__icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.bat-sidebar-cta__title {
    font-size: 22px;
    font-weight: 400;
    color: var(--bat-white);
    margin: 0 0 10px;
    line-height: 1.3;
}

.bat-sidebar-cta__text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
    margin: 0 0 20px;
}

.bat-sidebar-cta__text strong {
    color: #FFD700;
    font-weight: 700;
}

.bat-sidebar-widget {
    background: var(--bat-white);
    border: 1px solid var(--bat-border);
    border-radius: var(--bat-radius);
    padding: 24px;
}

.bat-widget-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--bat-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bat-purple-light);
    position: relative;
}

.bat-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--bat-purple);
}

/* Recent Posts */
.bat-recent-posts {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bat-recent-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.bat-recent-post__thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    display: block;
}

.bat-recent-post__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bat-recent-post__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bat-recent-post__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--bat-navy);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s;
}

.bat-recent-post__title:hover {
    color: var(--bat-purple);
}

/* Category List */
.bat-cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bat-cat-list__item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bat-text);
    text-decoration: none;
    transition: var(--bat-transition);
}

.bat-cat-list__item a:hover {
    background: var(--bat-purple-light);
    color: var(--bat-purple);
}

.bat-cat-count {
    background: var(--bat-bg);
    color: var(--bat-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 100px;
    min-width: 24px;
    text-align: center;
}

.bat-cat-list__item a:hover .bat-cat-count {
    background: rgba(255, 215, 0, 0.3);
    color: var(--bat-navy);
}

/* Tag Cloud */
.bat-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* About widget */
.bat-sidebar-about p {
    font-size: 14px;
    color: var(--bat-muted);
    line-height: 1.7;
    margin: 0 0 16px;
}

/* =============================================================================
   SINGLE POST HERO
   ============================================================================= */

.bat-single-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--bat-navy);
}

.bat-single-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 10s ease;
}

.bat-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(42, 42, 42, 0.95) 0%,
        rgba(42, 42, 42, 0.7) 40%,
        rgba(42, 42, 42, 0.3) 100%
    );
}

.bat-single-hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--bat-container);
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px 50px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Breadcrumb */
.bat-breadcrumb {
    font-size: 13px;
}

.bat-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.bat-breadcrumb ol li::after {
    content: '›';
    margin-left: 8px;
    opacity: 0.5;
}

.bat-breadcrumb ol li:last-child::after {
    display: none;
}

.bat-breadcrumb a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.bat-breadcrumb a:hover {
    color: var(--bat-white);
}

.bat-breadcrumb [aria-current="page"] {
    color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.bat-single-hero__title {
    font-size: clamp(30px, 5vw, 58px);
    font-weight: 400;
    color: var(--bat-white);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 880px;
    margin: 0;
}

.bat-single-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bat-single-hero__meta .bat-post-date,
.bat-single-hero__meta .bat-read-time,
.bat-single-hero__meta .bat-post-updated,
.bat-single-hero__meta .bat-post-author {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Share Bar */
.bat-share-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bat-share-bar__label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.bat-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--bat-white) !important;
    font-size: 13px;
    font-weight: 600;
    transition: var(--bat-transition);
}

.bat-share-bar--lg .bat-share-btn {
    width: auto;
    padding: 8px 16px;
    border-radius: 100px;
}

.bat-share-btn--fb { background: #1877f2; }
.bat-share-btn--li { background: #0a66c2; }
.bat-share-btn--wa { background: #25d366; }

.bat-share-btn:hover { opacity: 0.85; transform: translateY(-2px); }

/* =============================================================================
   SINGLE POST BODY
   ============================================================================= */

.bat-single-body {
    background: var(--bat-bg);
    padding: 60px 20px;
}

.bat-single-container {
    max-width: var(--bat-container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    align-items: start;
}

/* Single Sidebar */
.bat-single-sidebar {
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Table of Contents */
.bat-toc {
    background: var(--bat-white);
    border: 1px solid var(--bat-border);
    border-radius: var(--bat-radius);
    padding: 24px;
    border-left: 4px solid var(--bat-purple);
}

.bat-toc__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--bat-navy);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px;
}

.bat-toc__list {
    padding-left: 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bat-toc__item { }

.bat-toc__item--h3 {
    padding-left: 12px;
    position: relative;
}

.bat-toc__item--h3::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--bat-muted);
}

.bat-toc__link {
    font-size: 13px;
    color: var(--bat-muted);
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s;
    display: block;
}

.bat-toc__link:hover {
    color: var(--bat-purple);
}

.bat-sidebar-cta--compact {
    padding: 20px 18px;
}

.bat-sidebar-cta--compact h4 {
    font-size: 15px;
    color: var(--bat-white);
    margin: 0 0 8px;
    font-weight: 400;
}

.bat-sidebar-cta--compact p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 16px;
    line-height: 1.6;
}

/* Related mini list in sidebar */
.bat-related-mini {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bat-related-mini li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bat-border);
}

.bat-related-mini li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.bat-related-mini a {
    font-size: 14px;
    font-weight: 600;
    color: var(--bat-navy);
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s;
}

.bat-related-mini a:hover { color: var(--bat-purple); }

.bat-related-mini time {
    font-size: 12px;
    color: var(--bat-muted);
}

/* =============================================================================
   ARTICLE CONTENT
   ============================================================================= */

.bat-single-content {
    min-width: 0;
}

.bat-article-body {
    background: var(--bat-white);
    border-radius: var(--bat-radius);
    padding: 48px 56px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--bat-text);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.bat-article-body h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    color: var(--bat-navy);
    margin: 2em 0 0.6em;
    padding-top: 1em;
    border-top: 1px solid var(--bat-border);
    letter-spacing: -0.015em;
}

.bat-article-body h2:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.bat-article-body h3 {
    font-size: clamp(19px, 2.5vw, 24px);
    font-weight: 400;
    color: var(--bat-navy);
    margin: 1.5em 0 0.5em;
}

.bat-article-body h4 {
    font-size: 19px;
    font-weight: 400;
    color: var(--bat-navy);
    margin: 1.2em 0 0.4em;
}

.bat-article-body p {
    margin-bottom: 1.2em;
}

.bat-article-body a {
    color: #b8960a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.bat-article-body a:hover {
    color: var(--bat-navy);
}

.bat-article-body strong { font-weight: 700; color: var(--bat-navy); }

.bat-article-body ul,
.bat-article-body ol {
    padding-left: 1.8em;
    margin-bottom: 1.4em;
}

.bat-article-body li { margin-bottom: 0.5em; }

.bat-article-body blockquote {
    border-left: 4px solid var(--bat-purple);
    background: var(--bat-purple-light);
    padding: 20px 24px;
    margin: 2em 0;
    border-radius: 0 var(--bat-radius-sm) var(--bat-radius-sm) 0;
    font-style: italic;
    color: var(--bat-navy);
    font-size: 1.05em;
}

.bat-article-body blockquote p:last-child { margin-bottom: 0; }

/* Tabelle SEO-friendly */
.bat-article-body table,
.bat-article-body .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    font-size: 15px;
    border-radius: var(--bat-radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.bat-article-body th {
    background: var(--bat-navy);
    color: var(--bat-white);
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bat-article-body td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--bat-border);
    vertical-align: top;
    color: var(--bat-text);
}

.bat-article-body tr:nth-child(even) td { background: var(--bat-bg); }
.bat-article-body tr:last-child td { border-bottom: none; }

/* Immagini */
.bat-article-body figure {
    margin: 2em 0;
}

.bat-article-body figure img {
    border-radius: var(--bat-radius-sm);
    width: 100%;
    height: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.bat-article-body figcaption {
    font-size: 13px;
    color: var(--bat-muted);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* FAQ Block */
.bat-article-body .bat-faq-section {
    background: var(--bat-bg);
    border-radius: var(--bat-radius);
    padding: 32px;
    margin: 2em 0;
    border: 1px solid var(--bat-border);
}

.bat-article-body .bat-faq-item {
    border-bottom: 1px solid var(--bat-border);
    padding: 16px 0;
}

.bat-article-body .bat-faq-item:last-child { border-bottom: none; }

.bat-article-body .bat-faq-question {
    font-size: 16px;
    font-weight: 700;
    color: var(--bat-navy);
    margin: 0 0 8px;
}

.bat-article-body .bat-faq-answer {
    font-size: 15px;
    color: var(--bat-text);
    margin: 0;
    line-height: 1.7;
}

/* Tags nel body articolo */
.bat-article-tags {
    padding: 24px 56px;
    background: var(--bat-white);
    border-radius: var(--bat-radius);
    border: 1px solid var(--bat-border);
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bat-article-tags__label {
    font-size: 14px;
    font-weight: 600;
    color: var(--bat-navy);
}

/* Share bottom */
.bat-share-bottom {
    background: var(--bat-white);
    border: 1px solid var(--bat-border);
    border-radius: var(--bat-radius);
    padding: 28px;
    margin-top: 16px;
    text-align: center;
}

.bat-share-bottom__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--bat-navy);
    margin: 0 0 16px;
}

.bat-share-bar--lg {
    justify-content: center;
}

/* =============================================================================
   AUTHOR BOX
   ============================================================================= */

.bat-author-box {
    background: var(--bat-white);
    border-top: 1px solid var(--bat-border);
    padding: 40px 20px;
}

.bat-author-box__inner {
    max-width: var(--bat-container);
    margin: 0 auto;
    display: flex;
    gap: 28px;
    align-items: flex-start;
    background: linear-gradient(135deg, #f9f9f9 0%, var(--bat-bg) 100%);
    padding: 32px 40px;
    border-radius: var(--bat-radius);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.bat-author-box__avatar .bat-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--bat-purple);
    flex-shrink: 0;
}

.bat-author-box__name {
    font-size: 18px;
    font-weight: 400;
    color: var(--bat-navy);
    margin: 0 0 8px;
}

.bat-author-box__name a {
    color: inherit;
    text-decoration: none;
}

.bat-author-box__bio {
    font-size: 15px;
    color: var(--bat-text);
    line-height: 1.7;
    margin: 0 0 12px;
}

.bat-author-box__links a {
    font-size: 14px;
    font-weight: 600;
    color: var(--bat-purple);
    text-decoration: none;
}

/* =============================================================================
   RELATED POSTS
   ============================================================================= */

.bat-related-posts {
    background: var(--bat-bg);
    padding: 60px 20px;
    border-top: 1px solid var(--bat-border);
}

.bat-related-posts__inner {
    max-width: var(--bat-container);
    margin: 0 auto;
}

.bat-related-posts__title {
    font-size: 26px;
    font-weight: 400;
    color: var(--bat-navy);
    margin: 0 0 32px;
    letter-spacing: -0.015em;
}

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

/* =============================================================================
   ARTICLE CTA
   ============================================================================= */

.bat-article-cta {
    background: linear-gradient(135deg, #2a2a2a 0%, #3d3d3d 100%);
    padding: 80px 20px;
    text-align: center;
}

.bat-article-cta__inner {
    max-width: 680px;
    margin: 0 auto;
}

.bat-article-cta__title {
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 400;
    color: var(--bat-white);
    margin: 0 0 16px;
    letter-spacing: -0.015em;
}

.bat-article-cta__text {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
    margin: 0 0 36px;
}

.bat-article-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.bat-article-cta .bat-btn-outline {
    color: var(--bat-white) !important;
    border-color: rgba(255, 255, 255, 0.4);
}

.bat-article-cta .bat-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--bat-white);
    color: var(--bat-white) !important;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 1024px) {
    .bat-blog-main {
        grid-template-columns: 1fr;
    }
    .bat-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .bat-single-container {
        grid-template-columns: 1fr;
    }
    .bat-single-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .bat-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bat-featured-post {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .bat-featured-post__image {
        height: 260px;
    }
    .bat-featured-post__content {
        padding: 28px 24px;
    }
    .bat-posts-grid {
        grid-template-columns: 1fr;
    }
    .bat-sidebar {
        grid-template-columns: 1fr;
    }
    .bat-single-sidebar {
        grid-template-columns: 1fr;
    }
    .bat-article-body {
        padding: 28px 24px;
    }
    .bat-article-tags {
        padding: 20px 24px;
    }
    .bat-author-box__inner {
        flex-direction: column;
        padding: 24px;
    }
    .bat-related-grid {
        grid-template-columns: 1fr;
    }
    .bat-article-cta__actions {
        flex-direction: column;
    }
    .bat-article-cta__actions .bat-btn-primary--lg,
    .bat-article-cta__actions .bat-btn-outline--lg {
        width: 100%;
        justify-content: center;
    }
    .bat-blog-hero__stats {
        gap: 24px;
    }
}

/* =============================================================================
   OVERRIDE - Nasconde struttura tema padre nelle pagine Blog Pro
   ============================================================================= */

.page-template-template-blog-pro .site-content > .container,
.page-template-template-blog-pro .keydesign-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}
