/* =============================================================
   WEBCRAFT SEO CUSTOM STYLES
   Stili aggiuntivi per il tema
   ============================================================= */

/* ============================================================= */
/* HEADER STYLES */
/* ============================================================= */

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    gap: 40px;
}

.site-navigation {
    flex: 1;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.primary-menu a {
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    color: var(--color-text-dark);
}

.primary-menu a:hover,
.primary-menu a.current {
    color: var(--color-gold);
}

.header-cta {
    display: flex;
    gap: 10px;
}

/* ============================================================= */
/* POSTS GRID */
/* ============================================================= */

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.post-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-thumbnail {
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    margin: -24px -24px 20px -24px;
}

.post-thumbnail img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--color-text-dark);
}

.post-title a:hover {
    color: var(--color-gold);
}

.post-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.post-excerpt {
    flex: 1;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.read-more-link {
    color: var(--color-gold);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    color: var(--color-gold-dark);
    margin-left: 5px;
}

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

.post-header {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    color: var(--color-text-light);
    padding: 60px 0;
    margin-bottom: 40px;
}

.post-header .post-title {
    color: var(--color-text-light);
    margin-bottom: 20px;
}

.post-header .post-meta {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.post-featured-image {
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    padding: 40px 0;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content h2 {
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 20px;
    margin-left: 20px;
}

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

.post-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
}

.post-tags {
    font-size: 14px;
}

.post-tags a {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-text-dark);
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: var(--color-gold-dark);
    transform: translateY(-2px);
}

/* ============================================================= */
/* PAGINATION */
/* ============================================================= */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination a {
    color: var(--color-text-dark);
}

.pagination a:hover {
    background: var(--color-gold);
    border-color: var(--color-gold);
    color: var(--color-text-dark);
}

.pagination .current {
    background: var(--color-gold);
    color: var(--color-text-dark);
    border-color: var(--color-gold);
}

/* ============================================================= */
/* FOOTER */
/* ============================================================= */

.site-footer {
    background: var(--color-navy);
    color: var(--color-text-light);
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--color-gold);
    margin-bottom: 15px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-col a {
    color: var(--color-gold);
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: var(--color-gold-light);
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

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

@media (max-width: 768px) {
    .header-wrapper {
        flex-wrap: wrap;
        gap: 20px;
        padding: 15px 0;
    }

    .site-navigation {
        order: 3;
        flex-basis: 100%;
    }

    .primary-menu {
        flex-direction: column;
        gap: 15px;
    }

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

    .post-header {
        padding: 40px 0;
    }

    .footer-grid {
        gap: 30px;
    }
}

/* ============================================================= */
/* ELEMENTOR CUSTOM */
/* ============================================================= */

.elementor-section {
    padding: 60px 0;
}

.elementor-section.section-navy {
    background: var(--color-navy);
    color: var(--color-text-light);
}

.elementor-section.section-ivory {
    background: var(--color-ivory);
}

.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3 {
    font-family: var(--font-display);
}

.elementor-widget-text-editor {
    font-family: var(--font-body);
}

/* ============================================================= */
/* WOOCOMMERCE CUSTOM */
/* ============================================================= */

.woocommerce-products-header {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    color: var(--color-text-light);
    padding: 60px 0;
    margin-bottom: 40px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.woocommerce .product {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.woocommerce .product:hover {
    border-color: var(--color-gold);
    box-shadow: 0 10px 30px rgba(232, 160, 32, 0.15);
}

.woocommerce .product-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
}

.woocommerce .price {
    color: var(--color-gold);
    font-weight: 600;
}

.woocommerce .button {
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
    color: var(--color-text-dark);
    border: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.woocommerce .button:hover {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
    transform: translateY(-2px);
}
