/* MACFaaast Module: Blog Archive, Single Post Editorial System, Social Share & Comments */



/* --- 2. IMPAGINAZIONE BLOG - HOME & WOOCOMMERCE COHESIVE DESIGN --- */
.mf-blog-container,
.single-post .entry-content {
    font-family: 'Poppins', sans-serif !important;
    color: #334155 !important;
    line-height: 1.75 !important;
    margin: 0 auto !important;
}

.mf-blog-title,
.mf-blog-container h1.entry-title,
article.single-post .entry-header-above h1.entry-title {
    color: #0f172a !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    line-height: 1.24 !important;
    margin: 0 0 18px 0 !important;
    letter-spacing: -0.025em !important;
}

.mf-blog-subtitle {
    color: #334155 !important;
    font-size: 15.5px !important;
    font-weight: 500 !important;
    line-height: 1.6 !important;
    margin: 0 0 28px 0 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #00ade6 !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    box-sizing: border-box !important;
}

.mf-blog-section-title,
.mf-blog-container h2,
.single-post .entry-content h2,
.mf-blog-container h3,
.single-post .entry-content h3 {
    color: #0f172a !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    margin-top: 32px !important;
    margin-bottom: 14px !important;
    letter-spacing: -0.02em !important;
    line-height: 1.3 !important;
}

.mf-blog-section-title i,
.mf-blog-container h2 i,
.single-post .entry-content h2 i,
.mf-blog-card h3 i,
.mf-blog-card h4 i {
    color: #00ade6 !important;
    margin-right: 6px !important;
}

.mf-blog-container h3,
.single-post .entry-content h3 {
    font-size: 17px !important;
    margin-top: 24px !important;
}

.mf-blog-card {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 22px 24px !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.03) !important;
    border: 1.5px solid #e2e8f0 !important;
    margin: 22px 0 !important;
    position: relative !important;
    overflow: hidden !important;
}

.mf-blog-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 4px !important;
    height: 100% !important;
    background: #00ade6 !important;
}

.mf-blog-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, #00ade6 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    padding: 11px 22px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    text-transform: none !important;
    font-size: 13.5px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    letter-spacing: -0.01em !important;
    border: none !important;
    margin-top: 14px !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.25) !important;
}

.mf-blog-btn:hover {
    transform: translateY(-1.5px) !important;
    box-shadow: 0 8px 20px rgba(0, 173, 230, 0.35) !important;
    color: #ffffff !important;
}

.mf-blog-btn:active {
    transform: translateY(-0.5px) !important;
}

.mf-grid-2 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 18px !important;
    margin: 22px 0 !important;
}

.mf-blog-container p,
.single-post .entry-content p {
    margin-bottom: 18px !important;
    font-size: 15px !important;
    color: #334155 !important;
    line-height: 1.75 !important;
}

.mf-blog-container strong,
.single-post .entry-content strong {
    color: #0f172a !important;
    font-weight: 700 !important;
}

.mf-blog-container ul,
.single-post .entry-content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 18px 0 !important;
}

.mf-blog-container ul li,
.single-post .entry-content ul li {
    list-style-type: none !important;
    list-style: none !important;
    padding-left: 24px !important;
    position: relative !important;
    margin-bottom: 10px !important;
    font-size: 15px !important;
    color: #334155 !important;
    line-height: 1.65 !important;
}

.mf-blog-container ul li::before,
.single-post .entry-content ul li::before {
    content: '\f058' !important;
    font-family: 'Font Awesome 5 Free' !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0 !important;
    font-size: 14px !important;
    color: #00ade6 !important;
}


/* --- 3. BLOG WIDGETS (CATEGORIES & ARCHIVE) PREMIUM APPLE-STYLE CHEVRONS & UNIFORMITY --- */

/* 1. Reset standard icons or margins on blog lists */
.ts-sidebar .widget_categories ul,
.ts-sidebar .widget_archive ul {
    margin: 5px 0 !important;
    padding: 0 !important;
}

/* 2. Style links in blog categories & archive widget to match product categories */
.ts-sidebar .widget_categories li a,
.ts-sidebar .widget_archive li a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px 10px 32px !important;
    border-radius: 10px !important;
    margin: 3px 0 !important;
    transition: all 0.25s ease !important;
    color: #4a4a4a !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    flex: 1 !important;
    min-height: 42px !important;
    position: relative !important;
}

/* 3. Chevron indicator on the left of each category link */
.ts-sidebar .widget_categories li a::before,
.ts-sidebar .widget_archive li a::before {
    content: "\f105" !important;
    /* FontAwesome right angle icon */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 14px !important;
    color: #a0a0a0 !important;
    font-size: 0.85rem !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

/* 4. Micro-animations and hover transitions */
.ts-sidebar .widget_categories li a:hover,
.ts-sidebar .widget_archive li a:hover {
    background: #f8f9fb !important;
    color: #00ade6 !important;
}

.ts-sidebar .widget_categories li a:hover::before,
.ts-sidebar .widget_archive li a:hover::before {
    color: #00ade6 !important;
    transform: translateX(2px) !important;
}

/* 5. Active category styling (Cyan background, bold text, cyan indicator) */
.ts-sidebar .widget_categories li.current-cat>a,
.ts-sidebar .widget_archive li.current-cat>a {
    background: #eef6fc !important;
    color: #00ade6 !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
}

.ts-sidebar .widget_categories li.current-cat>a::before,
.ts-sidebar .widget_archive li.current-cat>a::before {
    color: #00ade6 !important;
    transform: translateX(2px) !important;
}

/* 6. Active state for the new count badge */
.ts-sidebar .widget_categories li.current-cat>a span.count,
.ts-sidebar .widget_archive li.current-cat>a span.count {
    background: #00ade6 !important;
    color: #ffffff !important;
}


/* --- 4. UNIFIED PREMIUM APPLE-STYLE SIDEBAR FOR BLOG (STANDARD & GUTENBERG WIDGETS) --- */

/* 1. Contenitore Widget Esterno (Allineamento top 0 sul primo widget come WooCommerce Shop) */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget,
body:not(.woocommerce):not(.woocommerce-page) #secondary .widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 18px 0 0 0 !important;
}

body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container:first-child,
body:not(.woocommerce):not(.woocommerce-page) #left-sidebar .widget-container:first-child {
    margin-top: 0 !important;
}

/* 2. Intestazione del Widget (Allineata a card WooCommerce Shop) */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container .widget-title-wrapper,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h2.widget-title,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h2.wp-block-heading,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h3.widget-title,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget h2.widget-title,
body:not(.woocommerce):not(.woocommerce-page) #secondary .widget h2.widget-title {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 15px 18px !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #00ade6 !important;
    background: #f8fafc !important;
    border-radius: 16px 16px 0 0 !important;
    display: block !important;
    line-height: 1.2 !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    box-sizing: border-box !important;
}

body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container .widget-title-wrapper h2.widget-title,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container .widget-title-wrapper h3.widget-title {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: inline-block !important;
}

/* 2.1 Rimozione pseudo-elementi sui titoli widget della sidebar */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h2.widget-title::before,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h2.wp-block-heading::before,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h3.widget-title::before,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget h2.widget-title::before,
body:not(.woocommerce):not(.woocommerce-page) #secondary .widget h2.widget-title::before,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h2.widget-title::after,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h2.wp-block-heading::after,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h3.widget-title::after,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget h2.widget-title::after,
body:not(.woocommerce):not(.woocommerce-page) #secondary .widget h2.widget-title::after {
    display: none !important;
    content: none !important;
}

/* 3. Area Contenuto (Card bianca stile WooCommerce) */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container .widget-title-wrapper + *,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h2.widget-title + *,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h2.wp-block-heading + *,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h3.widget-title + *,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget h2.widget-title + *,
body:not(.woocommerce):not(.woocommerce-page) #secondary .widget h2.widget-title + * {
    margin-top: 0 !important;
    background: #ffffff !important;
    padding: 14px 14px !important;
    border-radius: 0 0 16px 16px !important;
    border: 1px solid #e2e8f0 !important;
    border-top: none !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03) !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* 3.1 Clip esatto dei caroselli widget (Post Recenti / Post Popolari): il padding orizzontale
   sta sulle slide interne e non sul contenitore .swiper (che altrimenti mostra le foto adiacenti nello spazio del padding) */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container .widget-title-wrapper + .ts-blogs-widget-wrapper,
body .ts-sidebar .widget-container.ts-blogs-widget .widget-title-wrapper + .ts-blogs-widget-wrapper,
body .ts-sidebar .widget-container .ts-blogs-widget-wrapper.swiper {
    padding: 14px 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body .ts-sidebar .widget-container.ts-blogs-widget .ts-blogs-widget-wrapper .per-slide,
body .ts-sidebar .widget-container.ts-blogs-widget .ts-blogs-widget-wrapper .swiper-slide,
body .ts-sidebar .widget-container.ts-blogs-widget .ts-blogs-widget-wrapper:not(.swiper) > ul.post_list_widget {
    padding: 0 14px !important;
    box-sizing: border-box !important;
}

/* 4. Lista e Elementi della Lista */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container ul,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget ul {
    margin: 5px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container li,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget li {
    position: relative !important;
    padding: 0 !important;
    border-bottom: none !important;
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
}

/* 5. Link e Label Interni */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container li a,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget li a {
    display: flex !important;
    align-items: center !important;
    padding: 10px 14px 10px 32px !important;
    border-radius: 10px !important;
    margin: 3px 0 !important;
    transition: all 0.25s ease !important;
    color: #4a4a4a !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    border: 1px solid transparent !important;
    cursor: pointer !important;
    flex: 1 !important;
    min-height: 42px !important;
    position: relative !important;
    box-sizing: border-box !important;
}

/* 6. Chevron a Sinistra con Micro-Animazione */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container li a::before,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget li a::before {
    content: "\f105" !important;
    /* FontAwesome right angle icon */
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 14px !important;
    color: #a0a0a0 !important;
    font-size: 0.85rem !important;
    transition: all 0.25s ease !important;
    display: inline-block !important;
}

/* 7. Hover Effect */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container li a:hover,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget li a:hover {
    background: #f8f9fb !important;
    color: #00ade6 !important;
}

body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container li a:hover::before,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget li a:hover::before {
    color: #00ade6 !important;
    transform: translateX(2px) !important;
}

/* 8. Stato Categoria Attiva (Azzurro Chiaro, Testo Cyan, Chevron Cyan) */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container li.current-cat>a,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget li.current-cat>a {
    background: #eef6fc !important;
    color: #00ade6 !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
}

body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container li.current-cat>a::before,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget li.current-cat>a::before {
    color: #00ade6 !important;
    transform: translateX(2px) !important;
}

/* 9. Pillola del Contatore Articoli (Grigio di Base) */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container span.count,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget span.count {
    font-size: 0.75rem !important;
    background: #f4f5f7 !important;
    color: #666 !important;
    padding: 3px 9px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    min-width: 30px !important;
    text-align: center !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    border: 1px solid transparent !important;
    margin-left: auto !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Hover Contatore */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container li a:hover span.count,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget li a:hover span.count {
    background: #e0e2e6 !important;
}

/* Contatore dello Stato Attivo (Azzurro Solido con Testo Bianco) */
/* --- 4B. PREMIUM APPLE-STYLE RECENT & POPULAR POST WIDGETS (TS BLOG) --- */

/* 1. Reset aggressive general sidebar overrides for post list widgets */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container ul.post_list_widget li,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget ul.post_list_widget li,
body .ts-sidebar .widget-container .ts-blogs-widget-wrapper li,
body .ts-sidebar .widget-container .ts-blogs-widget li,
body .widget-container.widget_recent_entries li,
body .widget-container.widget_recent_posts li,
body .elementor-widget-wp-widget-recent-posts li {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 12px 0 !important;
    margin: 0 !important;
    border-bottom: 1px dashed #e2e2e7 !important;
    background: transparent !important;
    box-shadow: none !important;
    position: relative !important;
}

body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container ul.post_list_widget li:last-child,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget ul.post_list_widget li:last-child,
body .ts-sidebar .widget-container .ts-blogs-widget-wrapper li:last-child,
body .ts-sidebar .widget-container .ts-blogs-widget li:last-child,
body .widget-container.widget_recent_entries li:last-child,
body .widget-container.widget_recent_posts li:last-child,
body .elementor-widget-wp-widget-recent-posts li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

/* Hide the pseudo chevron elements that are forced on widget links */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container ul.post_list_widget li a::before,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget ul.post_list_widget li a::before,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container .ts-blogs-widget-wrapper li a::before,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container .ts-blogs-widget li a::before,
body .widget-container.widget_recent_entries li a::before,
body .elementor-widget-wp-widget-recent-posts li a::before,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container ul.post_list_widget li a::after,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget ul.post_list_widget li a::after,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container .ts-blogs-widget-wrapper li a::after,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container .ts-blogs-widget li a::after,
body .widget-container.widget_recent_entries li a::after,
body .elementor-widget-wp-widget-recent-posts li a::after {
    display: none !important;
    content: none !important;
}

/* Reset anchor styling inside post lists to prevent vertical padding and stretching */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container ul.post_list_widget li a,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget ul.post_list_widget li a,
body .ts-sidebar .widget-container .ts-blogs-widget-wrapper li a,
body .ts-sidebar .widget-container .ts-blogs-widget li a,
body .widget-container.widget_recent_entries li a,
body .elementor-widget-wp-widget-recent-posts li a {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    width: auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: inherit !important;
    flex: none !important;
    font-size: inherit !important;
    box-sizing: border-box !important;
}

body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container ul.post_list_widget li a:hover,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget ul.post_list_widget li a:hover,
body .ts-sidebar .widget-container .ts-blogs-widget-wrapper li a:hover,
body .ts-sidebar .widget-container .ts-blogs-widget li a:hover,
body .widget-container.widget_recent_entries li a:hover,
body .elementor-widget-wp-widget-recent-posts li a:hover {
    background: transparent !important;
    color: #00ade6 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* 2. Premium Apple-Style Post List Widget Styling */
ul.post_list_widget {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: block !important;
}

body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container ul.post_list_widget li a.thumbnail,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget ul.post_list_widget li a.thumbnail,
body .ts-sidebar .widget-container .ts-blogs-widget-wrapper li a.thumbnail,
body .ts-sidebar .widget-container .ts-blogs-widget li a.thumbnail,
body .widget-container.widget_recent_entries li a.thumbnail,
body .widget-container.widget_recent_posts li a.thumbnail,
body .elementor-widget-wp-widget-recent-posts li a.thumbnail,
.post_list_widget li a.thumbnail,
.post_list_widget li .thumbnail {
    width: 68px !important;
    max-width: 68px !important;
    height: 68px !important;
    margin-right: 16px !important;
    margin-left: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0, 0, 0, 0.07) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.03) !important;
    flex-shrink: 0 !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    position: relative !important;
    display: block !important;
    padding: 0 !important;
}

body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container ul.post_list_widget li a.thumbnail img,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget ul.post_list_widget li a.thumbnail img,
body .ts-sidebar .widget-container .ts-blogs-widget-wrapper li a.thumbnail img,
body .ts-sidebar .widget-container .ts-blogs-widget li a.thumbnail img,
body .widget-container.widget_recent_entries li a.thumbnail img,
body .widget-container.widget_recent_posts li a.thumbnail img,
body .elementor-widget-wp-widget-recent-posts li a.thumbnail img,
.post_list_widget li a.thumbnail img,
.post_list_widget li .thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: block !important;
}

/* Fix: Thumbnail white bar / cut at the bottom by forcing the figure element to take 100% height and width */
body .ts-sidebar .widget-container ul.post_list_widget li a.thumbnail figure,
body .ts-sidebar .widget-container .ts-blogs-widget-wrapper li a.thumbnail figure,
body .ts-sidebar .widget-container .ts-blogs-widget li a.thumbnail figure,
body .widget-container.widget_recent_entries li a.thumbnail figure,
body .widget-container.widget_recent_posts li a.thumbnail figure,
body .elementor-widget-wp-widget-recent-posts li a.thumbnail figure,
.post_list_widget li a.thumbnail figure,
.post_list_widget li .thumbnail figure {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Hover effects for premium feeling */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container ul.post_list_widget li:hover a.thumbnail,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget ul.post_list_widget li:hover a.thumbnail,
body .ts-sidebar .widget-container .ts-blogs-widget-wrapper li:hover a.thumbnail,
body .ts-sidebar .widget-container .ts-blogs-widget li:hover a.thumbnail,
body .widget-container.widget_recent_entries li:hover a.thumbnail,
body .widget-container.widget_recent_posts li:hover a.thumbnail,
body .elementor-widget-wp-widget-recent-posts li:hover a.thumbnail,
.post_list_widget li:hover a.thumbnail,
.post_list_widget li:hover .thumbnail {
    box-shadow: 0 6px 16px rgba(0, 173, 230, 0.15) !important;
    border-color: rgba(0, 173, 230, 0.25) !important;
    transform: translateY(-1px) !important;
}

body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container ul.post_list_widget li:hover a.thumbnail img,
body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget ul.post_list_widget li:hover a.thumbnail img,
body .ts-sidebar .widget-container .ts-blogs-widget-wrapper li:hover a.thumbnail img,
body .ts-sidebar .widget-container .ts-blogs-widget li:hover a.thumbnail img,
body .widget-container.widget_recent_entries li:hover a.thumbnail img,
body .widget-container.widget_recent_posts li:hover a.thumbnail img,
body .elementor-widget-wp-widget-recent-posts li:hover a.thumbnail img,
.post_list_widget li:hover a.thumbnail img,
.post_list_widget li:hover .thumbnail img {
    transform: scale(1.08) !important;
}

/* Text Container */
.post_list_widget li .entry-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    min-width: 0 !important; /* Prevents text overflow */
}

/* Date / Meta Styling (Premium Cyan accent) */
.post_list_widget li .entry-meta-top,
.post_list_widget li .post-date,
.widget_recent_entries .post-date {
    display: block !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #00ade6 !important; /* Brand Cyan */
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    text-align: left !important;
}

/* Title Styling (Charcoal Elegant Slate) */
.post_list_widget li .entry-content a,
.post_list_widget li .entry-content h4,
.post_list_widget li .entry-content .heading-title,
.post_list_widget li .entry-content .heading-title a,
.widget_recent_entries li a,
.elementor-widget-wp-widget-recent-posts li a {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    font-weight: 600 !important;
    color: #53627B !important; /* Slate gray blue */
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
    text-align: left !important;
}

.post_list_widget li:hover .entry-content a,
.post_list_widget li:hover .entry-content h4 a,
.post_list_widget li:hover .entry-content .heading-title a,
.widget_recent_entries li:hover a,
.elementor-widget-wp-widget-recent-posts li:hover a {
    color: #00ade6 !important; /* Brand Cyan hover */
    text-decoration: none !important;
}



/* --- 5. SHOWROOM EDITORIAL BLOG CARDS (HOME & WOOCOMMERCE COHESIVE) --- */
.list-posts {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px !important;
    align-items: stretch !important;
    margin: 0 !important;
    padding: 0 !important;
}

article.post-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    margin: 0 !important;
    padding: 16px !important;
    border-radius: 20px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04) !important;
    box-sizing: border-box !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease, border-color 0.25s ease !important;
    overflow: hidden !important;
}

article.post-item:nth-of-type(even) {
    background: #ffffff !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04) !important;
}

article.post-item:hover,
article.post-item:nth-of-type(odd):hover,
article.post-item:nth-of-type(even):hover {
    transform: translateY(-3px) !important;
    border-color: #00ade6 !important;
    box-shadow: 0 0 0 1px #00ade6, 0 14px 28px rgba(0, 173, 230, 0.11), 0 4px 10px rgba(15, 23, 42, 0.05) !important;
}

article.post-item .mf-post-card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 10px !important;
}

article.post-item .entry-header-above {
    order: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

article.post-item .entry-header-above h2.entry-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.32 !important;
    letter-spacing: -0.02em !important;
    margin: 0 !important;
    text-transform: none !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

article.post-item .entry-header-above h2.entry-title a.post-title {
    color: #0f172a !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

article.post-item:hover .entry-header-above h2.entry-title a.post-title,
article.post-item .entry-header-above h2.entry-title a.post-title:hover {
    color: #0284c7 !important;
}

article.post-item .entry-content {
    order: 2 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    gap: 14px !important;
}

article.post-item .entry-summary p {
    margin: 0 !important;
    font-size: 13.5px !important;
    line-height: 1.58 !important;
    color: #475569 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* --- 6. SINGLE POST LAYOUT: ELEGANT & COHERENT WITH HOME & WOOCOMMERCE --- */
article.single-post .entry-header-above {
    margin-bottom: 18px !important;
    padding: 0 !important;
    display: block !important;
}

article.single-post .entry-header-above h1.entry-title {
    display: block !important;
}

article.single-post .entry-format {
    margin-bottom: 0 !important;
    margin-top: 28px !important;
}

article.single-post .entry-content {
    margin-top: 0 !important;
    padding: 0 !important;
}


/* Responsive adjustment per mobile - Massimizza lo spazio di lettura ed elimina spazi bianchi superflui */
@media only screen and (max-width: 767px) {

    /* 1. Allineamento coerente a 10px laterali su tutto il blog (senza doppio padding annidato) */
    body.blog .page-container,
    body.single-post .page-container,
    body.category .page-container,
    body.tag .page-container,
    body.date .page-container,
    body.author .page-container {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Nota: NON azzerare #content perché su single-post condivide il tag con .page-container */
    body.blog #main-content,
    body.single-post #main-content,
    body.category #main-content,
    body.tag #main-content,
    .container-post > #main-content,
    .mf-blog-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Ottimizzazioni per l'articolo singolo (Single Post) */
    article.single-post {
        padding: 0 !important;
    }

    article.single-post .entry-content {
        padding: 0 !important;
    }
}


/* --- 7. PREMIUM META BADGES & TYPOGRAPHY FOR MODERN EDITORIAL LAYOUT --- */
.entry-meta-above {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}

/* Badge "Nuovo Post" - Design Soft-Glassmorphic con Micro-Animazione */
.entry-meta-above .new-post-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 24px !important;
    /* Altezza fissa matematica */
    gap: 6px !important;
    background: rgba(0, 173, 230, 0.08) !important;
    /* Tinta azzurra soft */
    color: #00ade6 !important;
    /* Azzurro brand */
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0 12px 0 10px !important;
    /* Bilanciato per il dot */
    border-radius: 20px !important;
    line-height: 24px !important;
    border: 1px solid rgba(0, 173, 230, 0.18) !important;
    user-select: none !important;
    box-sizing: border-box !important;
}

/* Pulsing dot prima del testo */
.entry-meta-above .new-post-badge::before {
    content: "" !important;
    display: inline-block !important;
    width: 6px !important;
    height: 6px !important;
    background-color: #00ade6 !important;
    border-radius: 50% !important;
    animation: mf-pulse-dot 2s infinite ease-in-out !important;
    flex-shrink: 0 !important;
}

@keyframes mf-pulse-dot {
    0% {
        transform: scale(0.85);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(0, 173, 230, 0.4);
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 6px 2px rgba(0, 173, 230, 0.35);
    }

    100% {
        transform: scale(0.85);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(0, 173, 230, 0);
    }
}


/* Badge "Ultimo Post" - Variante Arancione Apple premium per il post più recente in assoluto */
.entry-meta-above .latest-post-badge {
    background: rgba(255, 149, 0, 0.08) !important;
    /* Tinta arancione soft */
    color: #FF9500 !important;
    /* Arancione Apple */
    border: 1px solid rgba(255, 149, 0, 0.22) !important;
}

/* Pulsing dot arancione per l'ultimo post */
.entry-meta-above .latest-post-badge::before {
    background-color: #FF9500 !important;
    animation: mf-pulse-dot-orange 2s infinite ease-in-out !important;
}

@keyframes mf-pulse-dot-orange {
    0% {
        transform: scale(0.85);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(255, 149, 0, 0.4);
    }

    50% {
        transform: scale(1.15);
        opacity: 1;
        box-shadow: 0 0 6px 2px rgba(255, 149, 0, 0.35);
    }

    100% {
        transform: scale(0.85);
        opacity: 0.5;
        box-shadow: 0 0 0 0 rgba(255, 149, 0, 0);
    }
}


/* Category Badge style (Slate Grey-Blue match) */
.entry-meta-above .cats-link-badge a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 24px !important;
    /* Stessa altezza fissa matematica */
    background: #f0f3f6 !important;
    color: #53627B !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0 10px !important;
    /* Stesso padding orizzontale */
    border-radius: 20px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    line-height: 24px !important;
    box-shadow: inset 0 0 0 1px rgba(83, 98, 123, 0.08) !important;
    box-sizing: border-box !important;
}

.entry-meta-above .cats-link-badge a:hover {
    background: #53627B !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(83, 98, 123, 0.2) !important;
}

/* Date and Separator styling */
.entry-meta-above .date-time-bullet {
    color: #d2d2d7 !important;
    font-size: 14px !important;
    user-select: none !important;
    margin: 0 4px !important;
}

.entry-meta-above .date-time-text {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #86868b !important;
    letter-spacing: 0.2px !important;
    text-transform: none !important;
}

/* Rimuovi eventuali vecchi overlay di data sulle immagini in evidenza per pulizia grafica */
article.post-item .entry-format span.date-time {
    display: none !important;
}


/* --- 8. PREMIUM EMBEDDED IMAGE CONTAINER (16:10 STAGE SU CARD, BALANCED SU SINGLE) --- */
article.post-item .entry-format:empty {
    display: none !important;
}

article.post-item .entry-format {
    order: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    border: 1px solid #eef2f7 !important;
    background: #f8fafc !important;
    box-shadow: none !important;
    transition: border-color 0.25s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    aspect-ratio: 16 / 10 !important;
    box-sizing: border-box !important;
}

article.post-item:nth-of-type(odd) .entry-format,
article.post-item:nth-of-type(even) .entry-format {
    background: #f8fafc !important;
}

article.post-item .entry-format a.thumbnail,
article.post-item .entry-format figure {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    border-radius: 14px !important;
}

article.post-item .entry-format img.thumbnail-blog,
article.post-item .entry-format img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) !important;
    object-fit: cover !important;
    border-radius: 14px !important;
}

article.post-item:hover .entry-format {
    transform: none !important;
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
}

article.post-item:hover .entry-format img {
    transform: scale(1.04) !important;
}

/* Immagine incorniciata elegante in Single Post (dimensioni editoriali bilanciate) */
article.single-post .entry-format {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03) !important;
    padding: 12px !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
    margin-top: 28px !important;
    margin-bottom: 0 !important;
}

article.single-post .entry-format img {
    width: 100% !important;
    max-height: 460px !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px !important;
}


/* --- 9. HOME-STYLE CTA BUTTON ON BLOG ARCHIVE CARDS ("Leggi l'articolo ->") --- */
article.post-item .entry-meta-bottom {
    margin-top: auto !important;
    padding-top: 4px !important;
    display: block !important;
}

article.post-item a.button-readmore {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0284c7 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: -0.01em !important;
    padding: 10px 16px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    position: relative !important;
}

article.post-item a.button-readmore::before {
    display: none !important;
    content: none !important;
}

article.post-item a.button-readmore::after {
    content: "\2192" !important;
    position: static !important;
    display: inline-block !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    border-bottom: none !important;
    font-size: 15px !important;
    line-height: 1 !important;
    margin-left: 8px !important;
    color: #0284c7 !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), color 0.22s ease !important;
}

article.post-item a.button-readmore:hover {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: 0 6px 16px rgba(0, 173, 230, 0.25) !important;
}

article.post-item a.button-readmore:hover::after {
    color: #ffffff !important;
    transform: translateX(3px) !important;
}

article.post-item a.button-readmore:active {
    transform: scale(0.985) !important;
}


/* --- 10. PREMIUM ROUNDED TAGS CLOUD (APPLE PILL STYLE) --- */
.tagcloud,
.widget_tag_cloud .tagcloud,
.wp-block-tag-cloud {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-top: 10px !important;
}

/* Base style for tag links */
.tagcloud a,
.widget_tag_cloud .tagcloud a,
.wp-block-tag-cloud a,
.tags-link a,
.entry-meta-bottom .tags-link a {
    display: inline-block !important;
    font-size: 11px !important;
    /* Forza tag di dimensione uniforme e ordinata */
    font-weight: 700 !important;
    color: #53627B !important;
    /* Blu lavagna coerente */
    background: #f5f5f7 !important;
    border: 1px solid #e2e2e7 !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    /* Stondati / Capsule style */
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0 !important;
    /* Annulla i margini disordinati di default */
}

/* Hover style (Site Brand Hover Color) */
.tagcloud a:hover,
.widget_tag_cloud .tagcloud a:hover,
.wp-block-tag-cloud a:hover,
.tags-link a:hover,
.entry-meta-bottom .tags-link a:hover {
    background: #00ade6 !important;
    /* Azzurro Cyan di hover del sito */
    border-color: #00ade6 !important;
    color: #ffffff !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.3) !important;
}

/* Active/Focus state */
.tagcloud a:active,
.tags-link a:active {
    transform: translateY(-0.5px) !important;
}


/* --- 11. PREMIUM ROUNDED SIDEBAR SEARCH BAR (APPLE PILL STYLE) --- */
.widget_search .search-table,
.widget_product_search .search-table,
.ts-sidebar .search-table {
    display: flex !important;
    align-items: center !important;
    background: #f5f5f7 !important;
    /* Grigio chiaro istituzionale */
    border: 1px solid #e2e2e7 !important;
    border-radius: 50px !important;
    /* Totalmente stondata / Capsula */
    padding: 3px 4px 3px 16px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    height: 48px !important;
    margin: 0 !important;
    float: none !important;
}

.widget_search .search-table:focus-within,
.widget_product_search .search-table:focus-within,
.ts-sidebar .search-table:focus-within {
    background: #ffffff !important;
    border-color: #00ade6 !important;
    /* Azzurro Cyan di hover */
    box-shadow: 0 0 0 3px rgba(0, 173, 230, 0.15) !important;
}

/* Input text container inside flex */
.widget_search .search-table .search-field,
.widget_product_search .search-table .search-field,
.ts-sidebar .search-table .search-field {
    display: block !important;
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
}

/* Input field style */
.widget_search .search-table .search-field input[type="text"],
.widget_product_search .search-table .search-field input[type="text"],
.ts-sidebar .search-table .search-field input[type="text"] {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    background: transparent !important;
    color: #1d1d1f !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 0 10px 0 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Placeholder color */
.widget_search .search-table .search-field input[type="text"]::placeholder,
.widget_product_search .search-table .search-field input[type="text"]::placeholder,
.ts-sidebar .search-table .search-field input[type="text"]::placeholder {
    color: #86868b !important;
    opacity: 1 !important;
}

/* Space on the right of the search box for the absolute button */
.widget_search .search-table,
.widget_product_search .search-table,
.widget_product_search .woocommerce-product-search,
.ts-sidebar .search-table {
    position: relative !important;
    padding-right: 50px !important;
}

/* Button container: Restore circular azure background and shadow */
.widget_search .search-table .search-button,
.widget_product_search .search-table .search-button,
.ts-sidebar .search-table .search-button,
.widget_product_search .woocommerce-product-search button[type="submit"] {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 38px !important;
    height: 38px !important;
    background: #00ade6 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 8px rgba(0, 173, 230, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 5 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* Incoroprate the magnifying glass icon inside the circular button */
.widget_search .search-table .search-button::before,
.widget_product_search .search-table .search-button::before,
.ts-sidebar .search-table .search-button::before,
.widget_product_search .woocommerce-product-search button[type="submit"]::before {
    display: block !important;
    content: "\e9a7" !important;
    font-family: 'tb-icon' !important;
    color: #ffffff !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: normal !important;
    font-style: normal !important;
    speak: none !important;
    text-decoration: none !important;
    border-bottom: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide any standard/theme secondary text or icons */
.widget_search .search-table .search-button::after,
.widget_product_search .search-table .search-button::after,
.ts-sidebar .search-table .search-button::after {
    display: none !important;
    content: none !important;
}

/* Hover dynamic micro-interaction */
.widget_search .search-table .search-button:hover,
.widget_product_search .search-table .search-button:hover,
.ts-sidebar .search-table .search-button:hover,
.widget_product_search .woocommerce-product-search button[type="submit"]:hover {
    background: #0096c7 !important;
    transform: translateY(-50%) scale(1.06) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.4) !important;
}

/* Perfect overlap of the native submit input, keeping it functional but fully invisible */
.widget_search .search-table .search-button input[type="submit"],
.widget_product_search .search-table .search-button input[type="submit"],
.ts-sidebar .search-table .search-button input[type="submit"] {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 6 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: unset !important;
    border-radius: 50% !important;
}

.widget_search .search-table .search-button input[type="submit"]:hover,
.widget_product_search .search-table .search-button input[type="submit"]:hover,
.ts-sidebar .search-table .search-button input[type="submit"]:hover {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
}

.widget_search .search-table .search-button input[type="submit"]:active,
.widget_product_search .search-table .search-button input[type="submit"]:active,
.ts-sidebar .search-table .search-button input[type="submit"]:active {
    transform: none !important;
}


/* --- 10B. ULTRA-SPECIFIC TAG CLOUD WIDGET STYLING FOR SINGLE POST & FRONTEND SIDEBARS --- */
body .ts-sidebar .widget_tag_cloud .tagcloud,
body .widget-container.widget_tag_cloud .tagcloud,
body .tagcloud {
    display: flex !important;
    flex-wrap: wrap !important;
    row-gap: 12px !important;
    column-gap: 8px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 25px 22px !important;
    float: none !important;
}

body .ts-sidebar .widget_tag_cloud .tagcloud a,
body .widget-container.widget_tag_cloud .tagcloud a,
body .tagcloud a,
body .tag-cloud-link {
    display: inline-block !important;
    float: none !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #53627B !important;
    background: #f5f5f7 !important;
    border: 1px solid #e2e2e7 !important;
    padding: 6px 14px !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin: 0 !important;
    box-shadow: none !important;
}

body .ts-sidebar .widget_tag_cloud .tagcloud a:hover,
body .widget-container.widget_tag_cloud .tagcloud a:hover,
body .tagcloud a:hover,
body .tag-cloud-link:hover {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.3) !important;
}

body .ts-sidebar .widget_tag_cloud .tagcloud a:active,
body .widget-container.widget_tag_cloud .tagcloud a:active,
body .tagcloud a:active,
body .tag-cloud-link:active {
    transform: translateY(-0.5px) !important;
}

/* Rimuovi eventuali pseudoelementi float distruttivi */
body .ts-sidebar .widget_tag_cloud .tagcloud::after,
body .widget-container.widget_tag_cloud .tagcloud::after,
body .tagcloud::after {
    display: none !important;
    content: none !important;
}

/* Stile soft e raffinato per il contatore del tag */
body .tagcloud a .tag-link-count,
body .tag-cloud-link .tag-link-count {
    font-weight: 500 !important;
    color: #8A8A8F !important; /* Grigio Apple morbido */
    margin-left: 4px !important;
    display: inline-block !important;
    font-size: 10px !important;
    text-transform: none !important;
    transition: color 0.25s ease !important;
}

body .tagcloud a:hover .tag-link-count,
body .tag-cloud-link:hover .tag-link-count {
    color: rgba(255, 255, 255, 0.85) !important; /* Diventa semitrasparente bianco su hover azzurro */
}

/* --- 10C. FIX DOUBLE BORDER AND BACKGROUND ON WIDGET HEADERS --- */
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container .widget-title-wrapper h2.widget-title,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container .widget-title-wrapper h2.wp-block-heading,
body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container .widget-title-wrapper h3.widget-title,
body .ts-sidebar .widget-container .widget-title-wrapper h2.widget-title,
body .ts-sidebar .widget-container .widget-title-wrapper h2.wp-block-heading,
body .ts-sidebar .widget-container .widget-title-wrapper h3.widget-title,
body .widget-container .widget-title-wrapper h3.widget-title {
    border-left: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    line-height: 1.2 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}


/* --- 12. RESPONSIVE SIDEBAR & WIDGET OPTIMIZATIONS FOR MOBILE DEVICES --- */
@media only screen and (max-width: 767px) {

    /* 1. Spaziatura elegante e allineamento coerente a 10px (gestiti da .page-container) */
    body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar,
    body:not(.woocommerce):not(.woocommerce-page) #left-sidebar,
    body:not(.woocommerce):not(.woocommerce-page) #right-sidebar,
    body:not(.woocommerce):not(.woocommerce-page) #secondary {
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
        margin-top: 28px !important;
    }

    /* 2. Riduzione delle intestazioni dei widget per schermi piccoli per non sprecare spazio */
    body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h2.widget-title,
    body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h2.wp-block-heading,
    body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h3.widget-title,
    body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget h2.widget-title,
    body:not(.woocommerce):not(.woocommerce-page) #secondary .widget h2.widget-title {
        font-size: 0.95rem !important;
        padding: 14px 18px !important;
    }

    /* 3. Area contenuto interna del widget leggermente più compatta su mobile */
    body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h2.widget-title+*,
    body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h2.wp-block-heading+*,
    body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container h3.widget-title+*,
    body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget h2.widget-title+*,
    body:not(.woocommerce):not(.woocommerce-page) #secondary .widget h2.widget-title+* {
        padding: 12px 12px !important;
    }

    body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container .widget-title-wrapper + .ts-blogs-widget-wrapper,
    body .ts-sidebar .widget-container.ts-blogs-widget .widget-title-wrapper + .ts-blogs-widget-wrapper,
    body .ts-sidebar .widget-container .ts-blogs-widget-wrapper.swiper {
        padding: 12px 0 !important;
    }

    body .ts-sidebar .widget-container.ts-blogs-widget .ts-blogs-widget-wrapper .per-slide,
    body .ts-sidebar .widget-container.ts-blogs-widget .ts-blogs-widget-wrapper .swiper-slide,
    body .ts-sidebar .widget-container.ts-blogs-widget .ts-blogs-widget-wrapper:not(.swiper) > ul.post_list_widget {
        padding: 0 12px !important;
    }

    /* 4. Touch target più comodi per i link delle categorie e archivi su cellulare */
    body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container li a,
    body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget li a {
        padding: 12px 14px 12px 30px !important;
        /* Più spazio verticale per il tocco delle dita */
        font-size: 0.9rem !important;
    }

    /* Posizionamento freccette allineato */
    body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .widget-container li a::before,
    body:not(.woocommerce):not(.woocommerce-page) .widget-area .widget li a::before {
        left: 12px !important;
    }

    /* 5. Ottimizzazione della barra di ricerca della sidebar su schermi ultra-piccoli */
    body:not(.woocommerce):not(.woocommerce-page) .widget_search .search-table,
    body:not(.woocommerce):not(.woocommerce-page) .widget_product_search .search-table,
    body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .search-table {
        height: 44px !important;
        /* Leggermente più basso per mobile */
        padding: 3px 3px 3px 12px !important;
    }

    body:not(.woocommerce):not(.woocommerce-page) .widget_search .search-table .search-field input[type="text"],
    body:not(.woocommerce):not(.woocommerce-page) .widget_product_search .search-table .search-field input[type="text"],
    body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .search-table .search-field input[type="text"] {
        font-size: 12px !important;
    }

    body:not(.woocommerce):not(.woocommerce-page) .widget_search .search-table .search-button input[type="submit"],
    body:not(.woocommerce):not(.woocommerce-page) .widget_product_search .search-table .search-button input[type="submit"],
    body:not(.woocommerce):not(.woocommerce-page) .ts-sidebar .search-table .search-button input[type="submit"] {
        height: 36px !important;
        min-width: 75px !important;
        padding: 0 12px !important;
        font-size: 10px !important;
    }
}


/* ==========================================================================
   Premium iOS-Style Swiper Slider Navigation (Sidebar Widgets)
   ========================================================================== */

/* 1. Base Container Context Alignment */
.widget-container.ts-blogs-widget .widget-title-wrapper {
    position: relative;
}

/* 2. Premium iOS Glassmorphic Swiper Controls */
body .widget-container .swiper-button-prev,
body .widget-container .swiper-button-next,
body .widget-container .ts-slider .swiper-button-prev,
body .widget-container .ts-slider .swiper-button-next {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-radius: 8px !important;
    height: 28px !important;
    width: 28px !important;
    top: 14px !important;
    cursor: pointer !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 3. Positioning Alignment (Separation & Gaps - Shifted Inward to match 20px Header Padding) */
body .widget-container .swiper-button-prev,
body .widget-container .ts-slider .swiper-button-prev {
    right: 54px !important; /* 20px padding + 28px width + 6px gap */
    left: auto !important;
}
body .widget-container .swiper-button-next,
body .widget-container .ts-slider .swiper-button-next {
    right: 20px !important; /* Aligned exactly with the 20px right padding */
    left: auto !important;
}

/* 4. Sleek Arrow Font Icon Adjustment */
body .widget-container .swiper-button-prev::after,
body .widget-container .swiper-button-next::after,
body .widget-container .ts-slider .swiper-button-prev::after,
body .widget-container .ts-slider .swiper-button-next::after {
    line-height: 1 !important;
    font-size: 10px !important;
    font-family: 'tb-icon' !important;
    color: #53627B !important; /* Elegant slate grey */
    font-weight: bold !important;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 5. Hover Micro-Interactions (Cyan Brand Accent & Scale) */
body .widget-container .swiper-button-prev:hover,
body .widget-container .swiper-button-next:hover,
body .widget-container .ts-slider .swiper-button-prev:hover,
body .widget-container .ts-slider .swiper-button-next:hover {
    background: #ffffff !important;
    border-color: #00ade6 !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.12), 0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
    transform: translateY(-1px) scale(1.06) !important;
}

body .widget-container .swiper-button-prev:hover::after,
body .widget-container .swiper-button-next:hover::after,
body .widget-container .ts-slider .swiper-button-prev:hover::after,
body .widget-container .ts-slider .swiper-button-next:hover::after {
    color: #00ade6 !important;
}

/* 6. Active / Press State (Tactile feedback) */
body .widget-container .swiper-button-prev:active,
body .widget-container .swiper-button-next:active,
body .widget-container .ts-slider .swiper-button-prev:active,
body .widget-container .ts-slider .swiper-button-next:active {
    transform: translateY(0) scale(0.95) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    background: rgba(242, 242, 247, 0.9) !important;
}

/* 7. Beautiful Swiper Disabled State */
body .widget-container .swiper-button-prev.swiper-button-disabled,
body .widget-container .swiper-button-next.swiper-button-disabled,
body .widget-container .ts-slider .swiper-button-prev.swiper-button-disabled,
body .widget-container .ts-slider .swiper-button-next.swiper-button-disabled {
    opacity: 0.4 !important;
    pointer-events: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: rgba(0, 0, 0, 0.04) !important;
    transform: none !important;
}

body .widget-container .swiper-button-prev.swiper-button-disabled::after,
body .widget-container .swiper-button-next.swiper-button-disabled::after,
body .widget-container .ts-slider .swiper-button-prev.swiper-button-disabled::after,
body .widget-container .ts-slider .swiper-button-next.swiper-button-disabled::after {
    color: #8e8e93 !important;
}
/* ==========================================================================
   REDESIGN PREMIUM SEZIONE TAG & SOCIAL SHARING (SINGLE POST)
   ========================================================================== */

/* Card esterna principale: sfondo sfumato sottile, bordo e ombra */
.single-post .meta-bottom-1 {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: 0 !important;
    padding: 0 !important;
    border: 1px solid #e2e2e7 !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, #f8f9fb 0%, #ffffff 60%, #f0f7fc 100%) !important;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    margin-top: 50px !important;
    margin-bottom: 50px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Sezione Tag: sfondo bianco, bordo inferiore divisorio */
.single-post .tags-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 28px 30px !important;
    background: rgba(255, 255, 255, 0.7) !important;
    border-bottom: 1px solid #e9eaed !important;
}

/* Sezione Social: sfondo leggermente diverso */
.single-post .sharing-section {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 28px 30px !important;
    background: transparent !important;
}

/* Titoli di sezione: badge-like con punto ciano a sinistra */
.single-post .meta-section-title {
    font-size: 10.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #86868b !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 5px 14px !important;
    background: rgba(0, 173, 230, 0.07) !important;
    border: 1px solid rgba(0, 173, 230, 0.15) !important;
    border-radius: 50px !important;
}

.single-post .meta-section-title i {
    color: #00ade6 !important;
    font-size: 11px !important;
}

/* Tags: pillole con gradiente accento e hover vivido */
.single-post .meta-bottom-1 .tags-link {
    text-align: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
}

/* Override dei tag per questa specifica sezione - più grandi e vividi */
.single-post .meta-bottom-1 .tags-link a {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #53627b !important;
    background: #ffffff !important;
    border: 1.5px solid #dde1e9 !important;
    padding: 7px 16px !important;
    border-radius: 50px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.7px !important;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

.single-post .meta-bottom-1 .tags-link a:hover {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(0, 173, 230, 0.3) !important;
}

/* Forza la visualizzazione del blocco social */
.single-post .meta-bottom-1 .social-sharing,
.single .meta-bottom-1 .social-sharing,
.page-container:not(.no-sidebar) .single .meta-bottom-1 .social-sharing {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    text-align: center !important;
    position: relative !important;
    z-index: 10 !important;
    float: none !important;
    display: block !important;
    clear: both !important;
    background: transparent !important;
    padding: 0 !important;
}

/* Contenitore icone social */
.single-post .social-sharing .ts-social-sharing,
.single-post .social-sharing .ts-social-sharing ul {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
}

.single-post .social-sharing .ts-social-sharing ul li {
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    float: none !important;
}

/* Icone social (plugin legacy) - nascosta: sostituita da .mf-social-share-buttons */
.single-post .social-sharing .ts-social-sharing {
    display: none !important;
}

/* ==========================================================================
   PULSANTI SOCIAL SHARING CUSTOM SVG (MF PREMIUM)
   ========================================================================== */

/* Griglia dei pulsanti social */
.mf-social-share-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 10px !important;
}

/* Singolo pulsante: card compatta con icona + etichetta */
.mf-share-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 0 20px !important;
    height: 46px !important;
    background: #ffffff !important;
    border: 1px solid #e2e2e7 !important;
    border-radius: 50px !important;
    color: #3a3a3c !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: -0.1px !important;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

/* Contenitore icona SVG */
.mf-share-btn .mf-share-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    color: #53627b !important;
    transition: color 0.28s ease !important;
}

.mf-share-btn .mf-share-icon svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
}

/* Label del pulsante */
.mf-share-btn .mf-share-label {
    color: #3a3a3c !important;
    transition: color 0.28s ease !important;
    line-height: 1 !important;
}

/* Hover: Ciano MACFaaast — coerente con tutti gli altri elementi interattivi del sito */
.mf-share-btn:hover {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 28px rgba(0, 173, 230, 0.28) !important;
}

.mf-share-btn:hover .mf-share-icon,
.mf-share-btn:hover .mf-share-label {
    color: #ffffff !important;
}

/* Mobile: pulsanti più compatti */
@media only screen and (max-width: 767px) {
    .mf-social-share-buttons {
        gap: 8px !important;
    }

    .mf-share-btn {
        padding: 0 14px !important;
        height: 42px !important;
        font-size: 12px !important;
    }

    .mf-share-btn .mf-share-label {
        display: none !important;
        /* Solo icona su schermi molto piccoli */
    }

    .mf-share-btn {
        width: 42px !important;
        justify-content: center !important;
    }
}


/* ==========================================================================
   REDESIGN PREMIUM AREA COMMENTI (STYLE APPLE)
   ========================================================================== */

/* Card Contenitore Principale dell'intera Area Commenti */
.single-post .comments-area {
    background: #ffffff !important;
    border: 1px solid #e2e2e7 !important;
    border-radius: 16px !important;
    /* Angoli arrotondati premium coordinati */
    padding: 35px 30px !important;
    /* Spazio interno generoso */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
    /* Ombra impercettibile */
    margin-top: 40px !important;
    margin-bottom: 50px !important;
    box-sizing: border-box !important;
}

@media only screen and (max-width: 767px) {
    .single-post .comments-area {
        padding: 24px 16px !important;
        /* Padding compresso per mobile */
        margin-left: 10px !important;
        margin-right: 10px !important;
        width: calc(100% - 20px) !important;
    }
}

/* Titolo "Lascia un commento" / "Leave a Comment" */
.comments-area .comment-reply-title,
.comments-area .comments-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: #53627b !important;
    /* Slate Blue per assoluta coerenza cromatica */
    letter-spacing: -0.3px !important;
    margin-bottom: 12px !important;
    text-align: left !important;
    display: block !important;
    border: none !important;
}

/* Testo "Effettuato l'accesso come..." o "Logged in as..." */
.comments-area p.logged-in-as {
    font-size: 0.88rem !important;
    color: #8e8e93 !important;
    /* Grigio iOS sfumato */
    margin-bottom: 24px !important;
    text-align: left !important;
}

.comments-area p.logged-in-as a {
    color: #00ade6 !important;
    /* Link ciano */
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.comments-area p.logged-in-as a:hover {
    color: #53627b !important;
}

/* --- CAMPI INPUT E TEXTAREA (iOS Modern Styling) --- */

#commentform input:not([type="submit"]),
#commentform textarea {
    width: 100% !important;
    background-color: #f5f6f9 !important;
    /* Sfondo grigio chiarissimo e soffice */
    border: 1.5px solid transparent !important;
    /* Nasconde il vecchio bordo nero rigido */
    border-radius: 12px !important;
    /* Angoli dolci stanti */
    color: #1d1d1f !important;
    /* Testo scuro Apple */
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    padding: 14px 18px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    outline: none !important;
}

/* Placeholder sfumati */
#commentform input::placeholder,
#commentform textarea::placeholder {
    color: #a1a1a6 !important;
    font-weight: 400 !important;
}

/* Area del Commento Testo (Textarea) */
#comment-wrapper #commentform #comment,
.woocommerce #reviews #comment {
    height: 140px !important;
    /* Altezza ridotta ed elegante */
    resize: vertical !important;
}

/* Stato Attivo / Focus su Campi (Flicker Focus in Ciano) */
#commentform input:not([type="submit"]):focus,
#commentform textarea:focus {
    background-color: #ffffff !important;
    border-color: #00ade6 !important;
    /* Cambia a Ciano */
    box-shadow: 0 0 0 4px rgba(0, 173, 230, 0.15) !important;
    /* Luce azzurrata Apple */
}

/* Wrapper dei campi dati (Nome, Email, Sito) per gli utenti non loggati */
#commentform .info-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    margin: 0 0 20px 0 !important;
    padding: 0 !important;
}

#commentform .info-wrapper>p {
    flex: 1 1 200px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* --- PULSANTE DI INVIO COMMENTO (Pill-shape Premium) --- */

#commentform .form-submit {
    text-align: left !important;
    /* Allineato a sinistra come nei moderni blog editoriali */
    margin-top: 10px !important;
}

@media only screen and (max-width: 767px) {
    #commentform .form-submit {
        text-align: center !important;
    }
}

#commentform .form-submit .button,
#commentform .form-submit input[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #53627b !important;
    /* Slate Blue */
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 12px 35px !important;
    border-radius: 30px !important;
    /* Perfetta Pillola Apple */
    border: none !important;
    width: auto !important;
    /* Non a tutta larghezza */
    min-width: 180px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(83, 98, 123, 0.15) !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

#commentform .form-submit .button:hover,
#commentform .form-submit input[type="submit"]:hover {
    background: #00ade6 !important;
    /* Passaggio a Ciano MACFaaast */
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0, 173, 230, 0.25) !important;
}

#commentform .form-submit .button:active,
#commentform .form-submit input[type="submit"]:active {
    transform: translateY(-0.5px) !important;
}

/* --- ELENCO COMMENTI ESISTENTI (Comment List Modern Clean Style) --- */

.comments-area .commentlist {
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.comments-area .commentlist li.comment {
    margin-bottom: 25px !important;
    list-style: none !important;
    padding: 0 !important;
}

.comments-area .commentlist li .comment-body {
    background: #f8f9fb !important;
    /* Bolla grigia morbida */
    border: 1px solid #e2e2e7 !important;
    border-radius: 14px !important;
    padding: 20px !important;
    display: flex !important;
    gap: 15px !important;
    position: relative !important;
}

@media only screen and (max-width: 767px) {
    .comments-area .commentlist li .comment-body {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 15px !important;
    }
}

.comments-area .commentlist .avatar {
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    /* Avatar rotondo */
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
    flex-shrink: 0 !important;
}

.comments-area .commentlist .comment-text {
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.comments-area .commentlist .comment-author {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #53627b !important;
    /* Slate Blue per l'autore */
    margin-bottom: 4px !important;
}

.comments-area .commentlist .comment-author a {
    color: inherit !important;
    text-decoration: none !important;
}

.comments-area .commentlist .comment-meta {
    font-size: 0.78rem !important;
    color: #8e8e93 !important;
    /* Data in grigio iOS */
    margin-bottom: 10px !important;
}

.comments-area .commentlist .comment-meta a {
    color: inherit !important;
    text-decoration: none !important;
}

.comments-area .commentlist .comment-content p {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
    color: #3a3a3c !important;
    margin: 0 !important;
}

/* Pulsante "Rispondi" / "Reply" */
.comments-area .commentlist .reply {
    margin-top: 10px !important;
    text-align: right !important;
}

.comments-area .commentlist .reply a {
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: #00ade6 !important;
    /* Testo Ciano */
    background: #ffffff !important;
    border: 1px solid #e2e2e7 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    display: inline-block !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.comments-area .commentlist .reply a:hover {
    background: #00ade6 !important;
    color: #ffffff !important;
    border-color: #00ade6 !important;
    transform: translateY(-1.5px) !important;
}



/* ==========================================================================
   BLOG ARCHIVE & SINGLE POST DESKTOP ALIGNMENT (APPLE DESIGN SYSTEM 1410PX)
   ========================================================================== */
body.category-blog .page-container,
body.blog .page-container,
body.archive.category .page-container,
body.single-post .page-container,
body.page-template-blog-template .page-container,
body.category-blog .breadcrumb-title-wrapper .breadcrumb-content,
body.blog .breadcrumb-title-wrapper .breadcrumb-content,
body.archive.category .breadcrumb-title-wrapper .breadcrumb-content,
body.single-post .breadcrumb-title-wrapper .breadcrumb-content {
    max-width: 1410px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

@media (min-width: 992px) {

    body.category-blog #left-sidebar,
    body.blog #left-sidebar,
    body.archive.category #left-sidebar,
    body:not(.woocommerce) #left-sidebar {
        width: 300px !important;
        padding-right: 30px !important;
        box-sizing: border-box !important;
    }

    body.category-blog.has-1-sidebar #main-content,
    body.blog.has-1-sidebar #main-content,
    body.archive.category.has-1-sidebar #main-content,
    body:not(.woocommerce) .has-1-sidebar #main-content {
        width: calc(100% - 300px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   BLOG EDITORIAL TAGS, 2027 EDITION BADGE, SEO FAQ & RESOURCES BOX
   ========================================================================== */
.mf-blog-container .mf-blog-meta-tags {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 0 28px 0 !important;
}

.mf-blog-container .mf-blog-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 5px 12px !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.mf-blog-container .mf-blog-tag i {
    color: #00ade6 !important;
    font-size: 11px !important;
}

.mf-blog-container .mf-blog-tag.mf-blog-tag-year {
    background: rgba(0, 173, 230, 0.1) !important;
    border-color: rgba(0, 173, 230, 0.3) !important;
    color: #0284c7 !important;
    font-weight: 700 !important;
}

.mf-blog-seo-faq {
    margin: 34px 0 28px 0 !important;
    padding: 24px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
}

.mf-blog-seo-faq > h2.mf-blog-section-title {
    margin-top: 0 !important;
    margin-bottom: 16px !important;
}

.mf-blog-faq-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
}

.mf-blog-faq-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
}

.mf-blog-faq-item h3 {
    margin: 0 0 8px 0 !important;
    font-size: 16px !important;
    color: #0f172a !important;
}

.mf-blog-faq-item p {
    margin: 0 !important;
    font-size: 14.5px !important;
    line-height: 1.65 !important;
    color: #334155 !important;
}

.mf-blog-resources {
    margin: 28px 0 !important;
    padding: 22px 24px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%) !important;
    border: 1px solid #bae6fd !important;
    border-radius: 16px !important;
}

.mf-blog-resources h3 {
    margin: 0 0 8px 0 !important;
    font-size: 17px !important;
    color: #0f172a !important;
}

.mf-blog-resources p {
    margin: 0 0 14px 0 !important;
    font-size: 14.5px !important;
    color: #334155 !important;
}

.mf-blog-resources-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.mf-blog-res-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.mf-blog-res-link:hover {
    border-color: #00ade6 !important;
    color: #0284c7 !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 767px) {
    .mf-blog-seo-faq,
    .mf-blog-resources {
        padding: 18px 14px !important;
        margin: 24px 0 !important;
        border-radius: 14px !important;
    }

    .mf-blog-faq-item {
        padding: 14px !important;
    }

    .mf-blog-resources-links {
        gap: 8px !important;
    }

    .mf-blog-res-link {
        width: 100% !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   BLOG STRUCTURED COMPARISON TABLES (SEO & LLM READABILITY)
   ========================================================================== */
.mf-blog-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 24px 0 !important;
    border-radius: 14px !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03) !important;
}

.mf-blog-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 14.5px !important;
    line-height: 1.55 !important;
    text-align: left !important;
    margin: 0 !important;
}

.mf-blog-table thead th {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    padding: 13px 16px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    white-space: nowrap !important;
}

.mf-blog-table tbody td {
    padding: 12px 16px !important;
    color: #334155 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    vertical-align: top !important;
}

.mf-blog-table tbody tr:last-child td {
    border-bottom: none !important;
}

.mf-blog-table tbody tr:nth-child(even) td {
    background: #fafbfc !important;
}

@media (max-width: 767px) {
    .mf-blog-table thead th,
    .mf-blog-table tbody td {
        padding: 10px 12px !important;
        font-size: 13.5px !important;
    }
}

/* ==========================================================================
   BLOG UI 2026 REDESIGN — TOP PILL BAR, FEATURED HERO, EDITORIAL CARD & PREV/NEXT
   Allineato 1:1 con Home Showcase & Menu/Toolbar WooCommerce
   ========================================================================== */

/* 1. Barra superiore Blog full-width: allineata esattamente al bordo sinistro del menu laterale (#left-sidebar) */
.mf-blog-top-bar {
    flex: 0 0 100% !important;
    width: 100% !important;
    order: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px 16px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 12px 18px !important;
    margin: 0 0 22px 0 !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03) !important;
    box-sizing: border-box !important;
}

.mf-blog-top-bar--single .entry-meta-above {
    margin: 0 !important;
    gap: 8px 10px !important;
}

.mf-reading-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    height: 24px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.mf-reading-pill svg {
    color: #00ade6 !important;
    flex-shrink: 0 !important;
}

.mf-blog-back-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    border-radius: 999px !important;
    background: #f0f9ff !important;
    border: 1px solid #bae6fd !important;
    color: #0284c7 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

.mf-blog-back-pill:hover {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
}

/* 2. Archive Top Bar: Pillole filtro categoria stile Home Tabs + WooCommerce (sempre 1 riga pulita) */
.mf-blog-top-bar--archive {
    flex-wrap: nowrap !important;
    padding: 9px 12px !important;
    gap: 8px !important;
}

.mf-blog-cat-pills {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
}

.mf-blog-cat-pills::-webkit-scrollbar {
    display: none !important;
}

.mf-blog-cat-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.mf-blog-cat-pill em {
    font-style: normal !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 1px 5px !important;
    border-radius: 999px !important;
    background: #e2e8f0 !important;
    color: #475569 !important;
}

.mf-blog-cat-pill:hover {
    background: #f0f9ff !important;
    border-color: #7dd3fc !important;
    color: #0284c7 !important;
}

.mf-blog-cat-pill.is-active {
    background: #00ade6 !important;
    border-color: #00ade6 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0, 173, 230, 0.25) !important;
}

.mf-blog-cat-pill.is-active em {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

.mf-blog-count-pill {
    display: inline-flex !important;
    align-items: center !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* 3. Card Articolo Singolo allineata al pixel con il menu laterale */
.mf-single-article-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 32px 36px !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

/* 4. Banner Descrizione Categoria (Archive SEO Header) */
.mf-archive-seo-header {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-left: 4px solid #00ade6 !important;
    border-radius: 16px !important;
    padding: 16px 20px !important;
    margin: 0 0 22px 0 !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03) !important;
    color: #334155 !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
}

.mf-archive-seo-header p {
    margin: 0 !important;
}

/* 5. Prima card in evidenza su /blog/ Pagina 1: Layout Split Orizzontale stile Home Hero */
@media (min-width: 992px) {
    body.page-template-blog-template:not(.paged) .list-posts > article.post-item:first-child {
        grid-column: 1 / -1 !important;
        display: grid !important;
        grid-template-columns: 1.08fr 0.92fr !important;
        gap: 26px !important;
        padding: 24px !important;
        align-items: stretch !important;
    }

    body.page-template-blog-template:not(.paged) .list-posts > article.post-item:first-child .mf-post-card-body {
        order: 1 !important;
        justify-content: space-between !important;
        gap: 12px !important;
    }

    body.page-template-blog-template:not(.paged) .list-posts > article.post-item:first-child .entry-format {
        order: 2 !important;
        height: 100% !important;
        min-height: 270px !important;
        aspect-ratio: 16 / 10 !important;
    }

    body.page-template-blog-template:not(.paged) .list-posts > article.post-item:first-child .entry-header-above h2.entry-title {
        font-size: 24px !important;
        -webkit-line-clamp: 3 !important;
    }

    body.page-template-blog-template:not(.paged) .list-posts > article.post-item:first-child .entry-summary p {
        font-size: 14.5px !important;
        -webkit-line-clamp: 4 !important;
    }
}

/* 6. Navigazione Articolo Precedente / Successivo (.meta-bottom-2) in stile 2 card */
.single-post .meta-bottom-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    margin: 28px 0 36px 0 !important;
}

.single-post .meta-bottom-2 .single-navigation:empty {
    display: none !important;
}

.single-post .meta-bottom-2 .single-navigation a {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 16px 20px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    color: #0f172a !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.22s ease !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.single-post .meta-bottom-2 .single-navigation.prev a::before {
    content: "← Articolo precedente" !important;
    position: static !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #0284c7 !important;
}

.single-post .meta-bottom-2 .single-navigation.next a {
    text-align: right !important;
    align-items: flex-end !important;
}

.single-post .meta-bottom-2 .single-navigation.next a::before {
    content: "Prossimo articolo →" !important;
    position: static !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: #0284c7 !important;
}

.single-post .meta-bottom-2 .single-navigation a:hover {
    border-color: #00ade6 !important;
    background: #f0f9ff !important;
    color: #0284c7 !important;
    transform: translateY(-2px) !important;
}

/* 7. Bottom Sections alignment (.meta-bottom-1 e .comments-area) */
.single-post .meta-bottom-1 {
    margin-top: 28px !important;
    margin-bottom: 28px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
}

.single-post .comments-area {
    margin-top: 28px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
}

/* 8. Desktop Padding Coherence (include page-template-blog-template) */
@media (min-width: 992px) {
    body.category-blog #left-sidebar,
    body.blog #left-sidebar,
    body.archive.category #left-sidebar,
    body.single-post #left-sidebar,
    body.page-template-blog-template #left-sidebar {
        padding-left: 0 !important;
        padding-right: 28px !important;
    }
}

/* 9. Tablet (<= 991px): 2 colonne spaziose e sidebar sotto al contenuto */
@media only screen and (max-width: 991px) {
    body.blog .page-container,
    body.single-post .page-container,
    body.archive.category .page-container,
    body.category .page-container,
    body.tag .page-container,
    body.page-template-blog-template .page-container {
        display: flex !important;
        flex-direction: column !important;
    }

    body:not(.woocommerce) #main-content {
        width: 100% !important;
        order: 1 !important;
    }

    body:not(.woocommerce) #left-sidebar {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-top: 28px !important;
        order: 2 !important;
    }

    .mf-blog-cat-pills {
        padding-bottom: 2px !important;
    }
}

/* 10. Mobile (<= 767px): 1 colonna pulita, pillole ordinate, card snelle */
@media only screen and (max-width: 767px) {
    .mf-blog-top-bar {
        padding: 10px 12px !important;
        border-radius: 14px !important;
        margin-bottom: 14px !important;
        gap: 8px 10px !important;
    }

    .mf-blog-top-bar--single {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .mf-blog-top-bar--single .entry-meta-above {
        gap: 6px !important;
    }

    .entry-meta-above .date-time-bullet {
        display: none !important;
    }

    .mf-blog-top-actions {
        width: 100% !important;
    }

    .mf-blog-back-pill {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .mf-blog-count-pill {
        display: none !important;
    }

    .list-posts {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    article.post-item {
        padding: 14px !important;
        border-radius: 16px !important;
        gap: 12px !important;
    }

    article.post-item .entry-header-above h2.entry-title {
        font-size: 16.5px !important;
    }

    .mf-single-article-card {
        padding: 18px 14px !important;
        border-radius: 16px !important;
    }

    .mf-blog-title,
    .mf-blog-container h1.entry-title,
    article.single-post .entry-header-above h1.entry-title {
        font-size: 22px !important;
        line-height: 1.26 !important;
    }

    .mf-blog-subtitle {
        font-size: 14px !important;
        padding: 12px 14px !important;
        margin-bottom: 20px !important;
    }

    article.single-post .entry-format {
        padding: 8px !important;
        border-radius: 14px !important;
        margin-top: 20px !important;
    }

    .single-post .meta-bottom-2 {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .single-post .meta-bottom-2 .single-navigation.next a {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .single-post .comments-area {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
}




