/**
Theme Name: Frutta di Stagione
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frutta-di-stagione
Template: astra
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1e293b;
    line-height: 1.6;
    background: #f8fafc;
}

/* Header */
.main-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid #48bb78;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    font-size: 2.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #2d5a3f;
    line-height: 1.2;
}

.logo-text span {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 400;
}

.main-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: #334155;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a:hover {
    color: #48bb78;
}

.main-nav a.active {
    color: #48bb78;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #2d5a3f;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #f0f9f0 0%, #e0f2e0 100%);
    padding: 60px 20px;
    text-align: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #2d5a3f;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    color: #475569;
    margin-bottom: 25px;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-badge {
    background: white;
    padding: 8px 20px;
    border-radius: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: 500;
    color: #2d5a3f;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Main */
.main-container {
    max-width: 1280px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    color: #64748b;
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: #48bb78;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Page title */
.page-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1e293b;
    position: relative;
    padding-bottom: 10px;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #48bb78, #fbbf24);
    border-radius: 2px;
}

.title-description {
    max-width: 500px;
    color: #64748b;
    font-size: 1.1rem;
}

.print-btn {
    background: white;
    border: 2px solid #48bb78;
    color: #48bb78;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.print-btn:hover {
    background: #48bb78;
    color: white;
}

/* Stats */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #2d5a3f;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d5a3f;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Controls */
.controls {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.month-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.month-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-btn:hover {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
}

#currentMonth {
    font-size: 1.5em;
    font-weight: bold;
    color: #2d3748;
    min-width: 150px;
    text-align: center;
}

.filters {
    display: flex;
    gap: 15px;
    margin-left: auto;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 30px;
    background: white;
    color: #4a5568;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn.active {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

/* Products grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid #e2e8f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
    border-color: #48bb78;
}

.product-image {
    height: 150px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #48bb78;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-content {
    padding: 20px;
}

.product-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.product-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.category-frutta {
    background: #fef3c7;
    color: #92400e;
}

.category-verdura {
    background: #dcfce7;
    color: #166534;
}

.category-erbe {
    background: #e0f2fe;
    color: #075985;
}

.product-season {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.product-season i {
    color: #fbbf24;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.product-link {
    color: #48bb78;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-link:hover {
    color: #2d5a3f;
}

.no-results {
    text-align: center;
    padding: 50px;
    color: #718096;
    font-size: 1.2em;
    grid-column: 1 / -1;
}

/* Newsletter */
.newsletter-section {
    background: linear-gradient(135deg, #2d5a3f 0%, #1e3a2f 100%);
    border-radius: 20px;
    padding: 50px;
    margin: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '🍎🥕🍋🌿';
    position: absolute;
    right: 20px;
    bottom: 20px;
    font-size: 6rem;
    opacity: 0.1;
    transform: rotate(-10deg);
}

.newsletter-content {
    max-width: 600px;
    position: relative;
    z-index: 1;
}

.newsletter-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 15px;
}

.newsletter-content p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background: #fbbf24;
    color: #1e293b;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.newsletter-form button:hover {
    background: #f59e0b;
    transform: scale(1.05);
}

.newsletter-note {
    font-size: 0.85rem;
    margin-top: 15px;
    opacity: 0.7;
}

/* Footer */
.main-footer {
    background: #0f172a;
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #48bb78;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #48bb78;
}

.footer-about p {
    color: #94a3b8;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #48bb78;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 18px;
}

.social-links a:hover {
    background: #48bb78;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #48bb78;
}


.month-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #4a5568;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.month-btn:hover {
    background: #48bb78;
    border-color: #48bb78;
    color: white;
}

/* Mobile */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 99;
    }

    .main-nav.active {
        display: flex;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-section {
        padding: 30px 20px;
    }

    .page-title-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .filters {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .month-selector {
        width: 100%;
        justify-content: center;
    }
}


/* Single post styles - con classe personalizzata */
.single-post-article {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

/* Layout per il single post */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin: 40px 0;
}

/* Meta info */
.single-post-meta {
    display: flex;
    gap: 25px;
    margin: 20px 0 30px;
    color: #64748b;
    font-size: 0.95rem;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.single-post-meta i {
    margin-right: 5px;
}

.single-post-meta a {
    color: #64748b;
    text-decoration: none;
}

.single-post-meta a:hover {
    color: #48bb78;
}

/* Featured image */
.single-post-featured-image {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
}

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

/* Tags */
.post-tags {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.tags-label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-cloud a {
    padding: 6px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    color: #1e293b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.tags-cloud a:hover {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

/* Sidebar */
.blog-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.blog-sidebar .stat-card {
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1024px) {
    .single-post-layout {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        position: static;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .single-post-article {
        padding: 25px;
    }
    
    .single-post-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* =============================================
   ARCHIVIO BLOG PREMIUM
   ============================================= */

/* Hero per archivio (stessa homepage) */
.archive .hero {
    background: linear-gradient(135deg, #f0f9f0 0%, #e0f2e0 100%);
    padding: 60px 20px;
    text-align: center;
}

.archive .hero-badge {
    display: inline-block;
    background: white;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 1rem;
    font-weight: 600;
    color: #2d5a3f;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.archive .hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #2d5a3f;
    margin-bottom: 15px;
    line-height: 1.2;
}

.archive .hero-description {
    font-size: 1.2rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto;
}

/* Filtri archivio */
.archive-filters {
    margin: 40px 0 30px;
}

.archive-filters .filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Stats container (già esistente, ma assicuriamoci) */
.archive .stats-container {
    margin: 40px 0;
}

/* Product card per articoli (riusa gli stessi della homepage) */
.archive .product-card .product-image {
    position: relative;
    overflow: hidden;
}

.archive .product-card .product-image img {
    transition: transform 0.3s;
}

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

/* Meta info dentro le card */
.archive .product-card .product-description {
    margin-bottom: 10px;
}

/* Comments nelle card */
.archive .product-comments {
    color: #64748b;
    font-size: 0.9rem;
}

.archive .product-comments i {
    margin-right: 5px;
}

/* Paginazione archivio */
.archive-pagination {
    margin: 60px 0;
    text-align: center;
}

.archive-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.3s;
}

.archive-pagination .page-numbers.current {
    background: #48bb78;
    color: white;
    border-color: #48bb78;
}

.archive-pagination .page-numbers:hover:not(.current) {
    background: #f8fafc;
    border-color: #48bb78;
    color: #48bb78;
}

/* No results */
.archive .no-results {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

.archive .no-results-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.archive .no-results h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 15px;
}

.archive .no-results p {
    color: #64748b;
    margin-bottom: 25px;
}

.archive .btn {
    display: inline-block;
    background: #48bb78;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.archive .btn:hover {
    background: #2d5a3f;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .archive .hero-title {
        font-size: 2rem;
    }
    
    .archive .filters {
        justify-content: center;
    }
    
    .archive .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .archive .stats-container {
        grid-template-columns: 1fr;
    }
}


/* =============================================
   SEZIONE BLOG IN HOMEPAGE
   ============================================= */

.blog-section {
    margin: 60px 0;
}

.blog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2d5a3f;
}

.blog-section-link {
    color: #48bb78;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.blog-section-link:hover {
    color: #2d5a3f;
}

.blog-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card-home {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.blog-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
    border-color: #48bb78;
}

.blog-card-image {
    height: 180px;
    overflow: hidden;
}

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

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

.blog-card-content {
    padding: 20px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.blog-card-category {
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card-date {
    font-size: 0.85rem;
    color: #64748b;
}

.blog-card-date i {
    margin-right: 5px;
    color: #48bb78;
}

.blog-card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-title a {
    color: #1e293b;
    text-decoration: none;
}

.blog-card-title a:hover {
    color: #48bb78;
}

.blog-card-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.blog-card-link {
    color: #48bb78;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.blog-card-link:hover {
    color: #2d5a3f;
}

/* Responsive */
@media (max-width: 992px) {
    .blog-grid-home {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .blog-grid-home {
        grid-template-columns: 1fr;
    }
    
    .blog-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
