/*
 Theme Name:   Ploomia Blog
 Theme URI:    https://example.com/
 Description:  Tema child di Hello Elementor.
 Author:       Ploomia
 Author URI:   https://ploomia.com/
 Template:     hello-elementor
 Version:      1.0.0
 License:      GNU General Public License v3 or later
 License URI:  https://www.gnu.org/licenses/gpl-3.0.html
 Text Domain:  hello-elementor-child
*/

/*
 Aggiungi qui le tue personalizzazioni CSS del tema child.
*/

/* ===== LAYOUT FULL WIDTH ===== */
:root {
    --content-width: 100% !important;
    --container-width: 100% !important;
    --page-content-padding: 40px;
}

/* ===== OVERRIDE COLORI PARENT THEME ===== */
/* Sostituisce #c36 con #26a2d3 */
[type=button]:focus,
[type=button]:hover,
[type=submit]:focus,
[type=submit]:hover,
button:focus,
button:hover {
    background-color: #26a2d3 !important;
    color: #fff !important;
}

a {
    color: #26a2d3;
}

a:hover,
a:focus {
    color: #1e8ab8;
}

/* Accordion FAQ - nessuno sfondo su hover/focus */
.ploomia-faq-header:hover,
.ploomia-faq-header:focus,
.ploomia-faq-header:active {
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Override Elementor max-width */
.page-header .entry-title,
.site-footer .footer-inner,
.site-footer:not(.dynamic-footer),
.site-header .header-inner,
.site-header:not(.dynamic-header),
body:not([class*=elementor-page-]) .site-main {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Main containers (tema) */
.site-main,
.page-content,
.entry-content,
.site-content,
#content,
#content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Content wrapper padding */
#content-wrapper,
.site-content {
    /* padding: 0 var(--page-content-padding) !important;
    padding-top: 20px !important; */
    min-height: calc(100vh - 200px);
   /*  padding-bottom: 40px !important; */
   padding: 0 6vw 4rem;
}

/* Header full width */
.ploomia-header {
    width: 100%;
    padding: 0 6vw 0rem;
}

.ploomia-header-content {
    max-width: 100% !important;
    padding: 15px var(--page-content-padding) !important;
}

/* Footer container */
.ploomia-footer-container {
    max-width: 100% !important;
    padding: 0 var(--page-content-padding) !important;
}

/* Elementor overrides - solo stretched sections */
.elementor-section.elementor-section-stretched {
    max-width: 100% !important;
}

/* Remove double padding in Elementor */
.elementor-page #content-wrapper {
    padding: 0 !important;
}

.elementor-page .site-content {
    padding: 0 !important;
}

/* ===== TYPOGRAPHY ===== */
body,
p,
span,
a,
li,
td,
th,
input,
textarea,
select,
button {
    font-family: 'Arial', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title,
.entry-title,
.page-title,
.widget-title {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 700;
}

body:not(.elementor-page) h1 {
    font-size: 6.25rem !important; /* 100px */
    text-align: left !important;
    line-height: 1 !important;
}

/* H1 più grande su home e categorie (200px) */
.home:not(.elementor-page) h1,
.blog:not(.elementor-page) h1,
.category:not(.elementor-page) h1,
.home:not(.elementor-page) .home-title,
.blog:not(.elementor-page) .home-title {
    font-size: 5.25rem !important; /* 200px */
}

ul#menu-main-menu .footer-only {
    display: none;
}

/* Responsive H1 */
@media (max-width: 1200px) {
    body:not(.elementor-page) h1 {
        font-size: 5rem !important; /* 80px */
    }
    .home:not(.elementor-page) h1,
    .blog:not(.elementor-page) h1,
    .category:not(.elementor-page) h1,
    .home:not(.elementor-page) .home-title,
    .blog:not(.elementor-page) .home-title {
        font-size: 9rem !important; /* ~144px */
    }
}

@media (max-width: 992px) {
    body:not(.elementor-page) h1 {
        font-size: 4rem !important; /* 64px */
    }
    .home:not(.elementor-page) h1,
    .blog:not(.elementor-page) h1,
    .category:not(.elementor-page) h1,
    .home:not(.elementor-page) .home-title,
    .blog:not(.elementor-page) .home-title {
        font-size: 6rem !important; /* 96px */
    }
}

@media (max-width: 768px) {
    body:not(.elementor-page) h1 {
        font-size: 3rem !important; /* 48px */
    }
    .home:not(.elementor-page) h1,
    .blog:not(.elementor-page) h1,
    .category:not(.elementor-page) h1,
    .home:not(.elementor-page) .home-title,
    .blog:not(.elementor-page) .home-title {
        font-size: 4rem !important; /* 64px */
    }
}

@media (max-width: 480px) {
    body:not(.elementor-page) h1 {
        font-size: 2.25rem !important; /* 36px */
    }
    .home:not(.elementor-page) h1,
    .blog:not(.elementor-page) h1,
    .category:not(.elementor-page) h1,
    .home:not(.elementor-page) .home-title,
    .blog:not(.elementor-page) .home-title {
        font-size: 2.75rem !important; /* 44px */
    }
}

/* Nasconde il titolo archivio sulla homepage */
.home .page-header,
.home .archive-header,
.blog .page-header,
.blog .archive-header,
.home .page-title,
.blog .page-title {
    display: none !important;
}

/* Descrizione homepage */
.home-description {
    font-size: 24px;
    line-height: 1.2;
    color: #333333;
    margin-bottom: 30px;
    margin-top: 40px;
}

.home-description p {
    margin: 0 0 15px 0;
}

.home-description p:last-child {
    margin-bottom: 0;
}

/* =============================================
   CATEGORIES PILLS WIDGET
   ============================================= */
.ploomia-categories-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ploomia-category-pill {
    display: inline-block;
    padding: 10px 24px;
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #333333;
    border-radius: 50px;
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    font-size: 24px;
    text-decoration: none!important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ploomia-category-pill:hover {
    background-color: #333333;
    color: #ffffff;
    text-decoration: none;
}

/* Pills nella homepage */
.ploomia-home-categories {
    margin-bottom: 40px;
}

/* =============================================
   TABLE OF CONTENTS (TOC) WIDGET
   ============================================= */
.ploomia-toc {
    padding: 25px 0;
}

.ploomia-toc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ploomia-toc-icon {
    display: flex;
    align-items: center;
    color: #333333;
}

.ploomia-toc-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #333333;
}

.ploomia-toc-list {
    display: grid;
    gap: 15px 30px;
}

.ploomia-toc-columns-1 {
    grid-template-columns: 1fr;
}

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

.ploomia-toc-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ploomia-toc-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ploomia-toc-number {
    font-family: 'Archivo Black', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #26a2d3;
    flex-shrink: 0;
}

.ploomia-toc-text {
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
    transition: color 0.2s ease;
    font-weight: bold;
}

.ploomia-toc-item:hover .ploomia-toc-text {
    color: #26a2d3;
}

/* Responsive TOC */
@media (max-width: 768px) {
    .ploomia-toc-columns-2,
    .ploomia-toc-columns-3 {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   POST HEADER WIDGET
   ============================================= */
.ploomia-post-header {
    margin-bottom: 40px;
}

.ploomia-ph-title {
    font-family: 'Archivo Black', sans-serif;
    font-weight: 400;
    color: #333333;
    margin: 0 0 20px 0;
}

.ploomia-ph-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 20px;
}

.ploomia-ph-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666666;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.ploomia-ph-meta-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ploomia-ph-separator {
    color: #cccccc;
}

.ploomia-ph-author a {
    color: #26a2d3;
    text-decoration: none;
}

.ploomia-ph-author a:hover {
    text-decoration: underline;
}

.ploomia-ph-meta strong {
    color: #333333;
    font-weight: 600;
}

.ploomia-ph-meta-right {
    display: flex;
    align-items: center;
}

.ploomia-ph-reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #26a2d3;
}

.ploomia-ph-reading-time svg {
    flex-shrink: 0;
}

.ploomia-ph-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.ploomia-ph-image img {
    width: 100%;
    height: auto;
    display: block;
}

.ploomia-ph-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ploomia-ph-social {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ploomia-ph-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #333333;
    background-color: #f5f5f5;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ploomia-ph-social a:hover {
    color: #26a2d3;
    background-color: #e8f4f8;
}

.ploomia-ph-social svg {
    width: 18px;
    height: 18px;
}

.ploomia-ph-audio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #26a2d3;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ploomia-ph-audio:hover {
    background-color: #1e8ab8;
    color: #ffffff;
}

.ploomia-ph-audio svg {
    flex-shrink: 0;
}

/* Audio Modal */
.ploomia-audio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ploomia-audio-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.ploomia-audio-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.ploomia-audio-modal-content {
    position: relative;
    background-color: #ffffff;
    border-radius: 16px 16px 0 0;
    padding: 20px 25px 25px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
}

.ploomia-audio-modal.is-open .ploomia-audio-modal-content {
    transform: translateY(0);
}

.ploomia-audio-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background-color: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666666;
    transition: all 0.2s ease;
}

.ploomia-audio-modal-close:hover {
    background-color: #e0e0e0;
    color: #333333;
}

.ploomia-audio-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-right: 40px;
}

.ploomia-audio-modal-header svg {
    color: #26a2d3;
    flex-shrink: 0;
}

.ploomia-audio-modal-header span {
    font-family: 'Archivo Black', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #333333;
}

.ploomia-audio-modal-player {
    min-height: 50px;
}

/* Responsive Audio Modal */
@media (min-width: 768px) {
    .ploomia-audio-modal {
        align-items: center;
    }

    .ploomia-audio-modal-content {
        border-radius: 16px;
        transform: translateY(20px);
    }

    .ploomia-audio-modal.is-open .ploomia-audio-modal-content {
        transform: translateY(0);
    }
}

/* Responsive Post Header */
@media (max-width: 768px) {
    .ploomia-ph-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .ploomia-ph-meta-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .ploomia-ph-separator {
        display: none;
    }

    .ploomia-ph-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =============================================
   CTA BOX WIDGET
   ============================================= */
.ploomia-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 25px 30px 25px 40px;
    background-color: #f8f8f8;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ploomia-cta::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8px;
    background-color: #333333;
    border-radius: 12px 0 0 12px;
}

.ploomia-cta:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ploomia-cta-content {
    flex: 1;
    min-width: 0;
}

.ploomia-cta-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #333333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.ploomia-cta-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
}

.ploomia-cta-icon {
    flex-shrink: 0;
}

.ploomia-cta-icon img {
    width: 80px;
    height: auto;
    display: block;
}

/* Responsive CTA */
@media (max-width: 768px) {
    .ploomia-cta {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px 25px 20px;
    }

    .ploomia-cta::before {
        width: 100%;
        height: 6px;
        bottom: auto;
        border-radius: 12px 12px 0 0;
    }

    .ploomia-cta-icon {
        order: -1;
    }
}

/* =============================================
   FAQ WIDGET
   ============================================= */
.ploomia-faq-widget {
    padding: 20px 0;
}

.ploomia-faq-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #333333;
    margin: 0 0 15px 0;
}

.ploomia-faq-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #333333;
    margin-bottom: 30px;
}

.ploomia-faq-accordion {
    border-top: 1px solid #e0e0e0;
}

.ploomia-faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.ploomia-faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.ploomia-faq-header:hover {
    background: none;
}

.ploomia-faq-question {
    font-family: 'Archivo Black', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #333333;
    flex: 1;
    padding-right: 20px;
}

.ploomia-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #cccccc;
    border-radius: 50%;
    color: #999999;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ploomia-faq-icon svg {
    width: 16px;
    height: 16px;
}

.ploomia-faq-icon-minus {
    display: none;
}

.ploomia-faq-item.is-open .ploomia-faq-icon-plus {
    display: none;
}

.ploomia-faq-item.is-open .ploomia-faq-icon-minus {
    display: block;
}

.ploomia-faq-content {
    display: none;
    padding: 0 0 20px 0;
}

.ploomia-faq-answer {
    font-size: 14px;
    line-height: 1.7;
    color: #666666;
}

.ploomia-faq-answer p {
    margin: 0 0 10px 0;
}

.ploomia-faq-answer p:last-child {
    margin-bottom: 0;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .ploomia-faq-question {
        font-size: 14px;
    }

    .ploomia-faq-icon {
        width: 28px;
        height: 28px;
    }

    .ploomia-faq-icon svg {
        width: 14px;
        height: 14px;
    }
}

/* =============================================
   SINGLE POST TEMPLATE
   ============================================= */
.ploomia-single {
    padding: 0;
}

body:not(.elementor-page) .ploomia-single-container {
    margin: 0 auto;
    padding: 40px var(--page-content-padding);
}

.ploomia-single .ploomia-post-header {
    margin-bottom: 40px;
}

.ploomia-single .ploomia-toc {
    margin-bottom: 40px;
    padding: 25px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    max-width: 450px;
}

.ploomia-single-content {
    font-size: 17px;
    line-height: 1.8;
}

body:not(.elementor-page) .ploomia-single-content h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 28px;
    font-weight: 400;
    margin: 50px 0 20px;
    scroll-margin-top: 100px;
}

body:not(.elementor-page) .ploomia-single-content h3 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 22px;
    font-weight: 400;
    margin: 40px 0 15px;
}

body:not(.elementor-page) .ploomia-single-content p {
    margin-bottom: 20px;
}

.ploomia-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.ploomia-single-content ul,
.ploomia-single-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.ploomia-single-content li {
    margin-bottom: 10px;
}

.ploomia-single-content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    border-left: 4px solid #26a2d3;
    background-color: #f8f8f8;
    font-style: italic;
}

.ploomia-single-content a {
    color: #26a2d3;
    text-decoration: underline;
}

.ploomia-single-content a:hover {
    color: #1e8ab8;
}

/* Responsive Single */
@media (max-width: 768px) {
    body:not(.elementor-page) .ploomia-single-container {
        padding: 20px var(--page-content-padding);
    }

    body:not(.elementor-page) .ploomia-single-content h2 {
        font-size: 22px;
        margin: 35px 0 15px;
    }

    body:not(.elementor-page) .ploomia-single-content h3 {
        font-size: 18px;
    }

    .ploomia-single-content {
        font-size: 16px;
    }
}

/* =============================================
   RELATED POSTS WIDGET
   ============================================= */
.ploomia-related-posts {
    padding: 40px 0;
}

.ploomia-related-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #333333;
    margin: 0 0 30px 0;
}

/* Override colonne per il widget correlati */
.ploomia-related-posts .ploomia-cards-grid {
    display: grid;
    gap: 25px;
}

.ploomia-related-posts .ploomia-related-columns-1 {
    grid-template-columns: 1fr;
}

.ploomia-related-posts .ploomia-related-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ploomia-related-posts .ploomia-related-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ploomia-related-posts .ploomia-related-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Responsive Related Posts */
@media (max-width: 992px) {
    .ploomia-related-posts .ploomia-related-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ploomia-related-posts .ploomia-related-columns-3,
    .ploomia-related-posts .ploomia-related-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ploomia-related-posts .ploomia-related-columns-2,
    .ploomia-related-posts .ploomia-related-columns-3,
    .ploomia-related-posts .ploomia-related-columns-4 {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   AUTHOR PAGE
   ============================================= */
.ploomia-author-page {
    padding: 0;
}

.ploomia-author-container {
    margin: 0 auto;
    padding: 40px var(--page-content-padding);
}

.ploomia-author-header {
    margin-bottom: 60px;
}

.ploomia-author-clearfix {
    clear: both;
}

.ploomia-author-name {
    font-family: 'Archivo Black', sans-serif;
    font-size: 4rem;
    font-weight: 400;
    color: #333333;
    margin: 0 0 15px 0;
    line-height: 1.1;
}

.ploomia-author-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.ploomia-author-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #26a2d3;
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ploomia-author-socials a:hover,
.ploomia-author-socials a:focus {
    background-color: #333333;
    color: #ffffff;
}

.ploomia-author-socials svg {
    width: 18px;
    height: 18px;
}

.ploomia-author-photo {
    float: right;
    width: 400px;
    margin-left: 40px;
    margin-bottom: 20px;
}

.ploomia-author-photo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ploomia-author-bio {
    font-size: 16px;
    line-height: 1.7;
    color: #333333;
}

.ploomia-author-bio p {
    margin: 0 0 15px 0;
}

.ploomia-author-bio p:last-child {
    margin-bottom: 0;
}

/* Author Posts Section */
.ploomia-author-posts {
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
}

/* Horizontal Card List */
.ploomia-cards-h-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Horizontal Card */
.ploomia-card-h {
    background: #ffffff;
}

.ploomia-card-h-link {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    text-decoration: none;
    color: inherit;
    align-items: start;
}

.ploomia-card-h-link:hover {
    text-decoration: none;
}

.ploomia-card-h-image {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: 12px;
    overflow: hidden;
}

.ploomia-card-h-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ploomia-card-h-link:hover .ploomia-card-h-image img {
    transform: scale(1.05);
}

.ploomia-card-h-image--placeholder {
    background-color: #26a2d3;
}

.ploomia-card-h-image--placeholder img {
    object-fit: contain;
    padding: 30px;
}

.ploomia-card-h-category {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background-color: #ffffff;
    color: #26a2d3;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.ploomia-card-h-body {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
}

.ploomia-card-h-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: #333333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.ploomia-card-h-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin: 0 0 20px 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ploomia-card-h-read-more {
    color: #26a2d3;
    font-size: 15px;
    font-weight: 600;
    margin-top: auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.ploomia-card-h-link:hover .ploomia-card-h-read-more {
    gap: 12px;
}

.ploomia-card-h-arrow {
    font-weight: 400;
}

.ploomia-no-posts {
    font-size: 16px;
    color: #666666;
    text-align: center;
    padding: 40px 0;
}

/* Paginazione */
.ploomia-author-page .navigation.pagination {
    margin-top: 40px;
    text-align: center;
}

.ploomia-author-page .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ploomia-author-page .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background-color: #f5f5f5;
    color: #333333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.ploomia-author-page .page-numbers:hover {
    background-color: #26a2d3;
    color: #ffffff;
}

.ploomia-author-page .page-numbers.current {
    background-color: #26a2d3;
    color: #ffffff;
}

/* Responsive Author */
@media (max-width: 992px) {
    .ploomia-author-photo {
        width: 300px;
        margin-left: 30px;
    }

    .ploomia-author-name {
        font-size: 3rem;
    }

    .ploomia-card-h-link {
        grid-template-columns: 240px 1fr;
        gap: 25px;
    }

    .ploomia-card-h-title {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .ploomia-author-photo {
        float: none;
        width: 100%;
        max-width: 300px;
        margin: 0 0 25px 0;
    }

    .ploomia-author-name {
        font-size: 2.5rem;
    }

    .ploomia-card-h-link {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }

    .ploomia-card-h-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .ploomia-card-h-excerpt {
        font-size: 14px;
        -webkit-line-clamp: 3;
        margin-bottom: 15px;
    }
}

@media (max-width: 600px) {
    .ploomia-card-h-link {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ploomia-card-h-image {
        aspect-ratio: 16/9;
    }

    .ploomia-card-h-body {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .ploomia-author-name {
        font-size: 2rem;
    }

    .ploomia-author-socials a {
        width: 32px;
        height: 32px;
    }

    .ploomia-author-socials svg {
        width: 16px;
        height: 16px;
    }
}

/* ===== SITE HEADER ===== */
.site-header .site-title a {
    background-color: transparent;
    color: #26a2d3;
    text-decoration: none;
}
a{
    color: #26a2d3;
    text-decoration: none;
}
a:hover, button:hover{
    color: #26a2d3;
    text-decoration: underline;
}
button:hover, button:focus{
    background-color: #26a2d3;
}

/* ===== SEARCH HEADER ===== */
.ploomia-search-form {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background-color: transparent !important;
    border: none !important;
}

.ploomia-search-input {
    border: none!important;
    border-bottom: 1px solid #d0d0d0 !important;
    padding: 10px 20px !important;
    font-size: 14px !important;
    min-width: 150px !important;
    outline: none !important;
    background: #ffffff !important;
    color: #2d2d2d !important;
}

.ploomia-search-input:focus {
    border-color: #26a2d3 !important;
}

.ploomia-search-input::placeholder {
    color: #999999 !important;
}

.ploomia-search-btn {
    border: none !important;
    background-color: #26a2d3 !important;
    color: #ffffff !important;
    padding: 10px 25px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    border-radius: 25px !important;
}

.ploomia-search-btn:hover {
    background-color: #1e8ab8 !important;
    text-decoration: none !important;
    color: #ffffff !important;
}

/* ===== FOOTER ===== */
.ploomia-footer {
    background-color: #26a2d3;
    padding: 30px 0 20px;
    position: relative;
    z-index: 9998;
}

.ploomia-footer-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 var(--page-content-padding, 40px);
}

/* Riga superiore: Logo + Menu */
.ploomia-footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.ploomia-footer-logo img {
    height: 60px;
    width: auto;
}

.ploomia-footer-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.ploomia-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.ploomia-footer-menu li {
    margin: 0;
}

.ploomia-footer-menu a {
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    transition: opacity 0.3s ease;
    font-family: 'Archivo';
    font-weight: 400;
}

.ploomia-footer-menu a:hover {
    opacity: 0.8;
    text-decoration: none;
    color: #ffffff;
}

/* Linea separatrice */
.ploomia-footer-divider {
    height: 1px;
    background-color: #1a1a1a;
    margin: 20px 0;
}

/* Riga inferiore: Copyright */
.ploomia-footer-bottom {
    text-align: left;
}

.ploomia-footer-copyright {
    color: #1a1a1a;
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.5;
    font-family: 'Archivo';
}

body:not(.elementor-page) .page-header p {
    font-size: 30px;
}

/* ===== POST CARDS ===== */
.ploomia-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.ploomia-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ploomia-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.ploomia-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit !important;
}

.ploomia-card-link:hover {
    text-decoration: none !important;
}

.ploomia-card-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.ploomia-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ploomia-card:hover .ploomia-card-image img {
    transform: scale(1.05);
}

/* Placeholder per card senza immagine */
.ploomia-card-image--placeholder {
    background-color: #26a2d3;
}

.ploomia-card-image--placeholder .ploomia-card-placeholder-logo {
    object-fit: contain !important;
    padding: 30px;
    transform: none !important;
}

.ploomia-card:hover .ploomia-card-image--placeholder .ploomia-card-placeholder-logo {
    transform: none !important;
}

.ploomia-card-category {
    position: absolute;
    bottom: 16px;
    right: 12px;
    background-color: #ffffff;
    color: #26a2d3;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    opacity: 1;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ploomia-card:hover .ploomia-card-category {
    opacity: 1;
    transform: translateY(0);
}

.ploomia-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ploomia-card-meta {
    font-size: 13px;
    color: #666666;
    margin-bottom: 10px;
}

.ploomia-card-separator {
    margin: 0 5px;
}

.ploomia-card-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 18px !important;
    font-weight: 700;
    line-height: 1.3 !important;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    text-align: left !important;
}

.ploomia-card-reading-time {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-size: 13px;
    color: #888888;
    margin-top: auto;
}

.ploomia-card-reading-time svg {
    color: #26a2d3;
}

.ploomia-card-footer {
    background-color: #f5f5f5;
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #eeeeee;
}

.ploomia-card-read-more {
    font-family: 'Archivo Black', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #26a2d3;
    text-transform: none;
}

.ploomia-card:hover .ploomia-card-read-more {
    text-decoration: underline;
}

/* No posts */
.no-posts {
    text-align: center;
    color: #666666;
    padding: 40px;
}

body:not(.elementor-page) .page-content p {
    font-size: 30px;
    line-height: 1.2;
}

button#ploomia-audio-trigger {
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --page-content-padding: 20px;
    }

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

    .ploomia-footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .ploomia-footer-nav {
        width: 100%;
        justify-content: flex-start;
    }

    .ploomia-footer-menu {
        gap: 15px;
    }

    .ploomia-footer-menu a {
        font-size: 13px;
    }

    .ploomia-header-content {
        padding: 10px var(--page-content-padding) !important;
    }
}