/**
 * Stili per Prodotti
 *
 * @package WP_AI_Theme
 */

/* Layout Prodotti - Copiato da video corsi */
.prodotti-layout {
    padding: 40px 0;
    background-color: #f9fafb;
}

.prodotti-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Stili per la griglia archivio prodotti */
.prodotti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.prodotto-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(99,102,241,0.13), 0 2px 8px rgba(0,0,0,0.07);
    border: 2px solid #e0e7ff;
    transition: transform 0.22s cubic-bezier(.4,2,.6,1), box-shadow 0.22s;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    max-width: 420px;
    margin: 0 auto;
    font-size: 1.08em;
}

.prodotto-card:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 8px 24px rgba(99,102,241,0.13), 0 2px 8px rgba(0,0,0,0.07);
    border-color: #6366f1;
}

.prodotto-thumbnail {
    height: 210px;
    position: relative;
    overflow: hidden;
    border-bottom: 1.5px solid #e0e7ff;
}

.prodotto-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.prodotto-card:hover .prodotto-thumbnail img {
    transform: scale(1.07);
}

.product-overlay {
    width: 38px;
    height: 38px;
    background: rgba(99,102,241,0.7);
    border-radius: 50%;
    opacity: 0.92;
    box-shadow: 0 2px 8px rgba(99,102,241,0.13);
}

.prodotto-content {
    padding: 28px 24px 20px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.prodotto-card .entry-title {
    font-size: 22px;
    margin-bottom: 14px;
    font-weight: 600;
    color: #22223b;
}

.prodotto-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 15px;
    color: #6366f1;
    flex-wrap: wrap;
}

.prodotto-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.prodotto-button {
    margin-top: auto;
    padding: 10px 22px;
    background-color: #6366f1;
    color: #fff;
    border-radius: 6px;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    transition: background 0.2s;
    align-self: flex-start;
    box-shadow: 0 1px 3px rgba(99,102,241,0.08);
}

.prodotto-button:hover {
    background: linear-gradient(90deg,#6366f1 60%,#818cf8 100%);
    color: #fff;
}

/* Single Prodotto Page */
.single-prodotto {
    background-color: #f9fafb;
}

.single-prodotto-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.prodotto-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.prodotto-header {
    padding: 30px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.prodotto-title {
    font-size: 28px;
    margin-bottom: 15px;
    color: #1e293b;
}

.prodotto-featured-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    overflow: hidden;
}

.prodotto-featured-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.prodotto-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 30px;
}

.prodotto-description h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1e293b;
}

.prodotto-requirements-section {
    margin-top: 30px;
}

.prodotto-requirements-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1e293b;
}

.requisiti-content {
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 6px;
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 14px;
    color: #334155;
}

.prodotto-action-card {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 30px;
}

.prodotto-price-large {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    text-align: center;
}

.prodotto-price-large .price-regular {
    font-size: 32px;
}

.prodotto-price-large .price-sale {
    font-size: 32px;
    color: #e53935;
}

.download-button,
.demo-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 15px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.download-button {
    background-color: #6366f1;
}

.demo-button {
    background-color: #64748b;
}

.download-button:hover {
    background-color: #4f46e5;
    text-decoration: none;
    color: #fff;
}

.demo-button:hover {
    background-color: #475569;
    text-decoration: none;
    color: #fff;
}

.prodotto-includes {
    margin-top: 10px;
}

.prodotto-includes h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1e293b;
}

.prodotto-includes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.prodotto-includes li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 15px;
}

.prodotto-includes svg {
    color: #6366f1;
    flex-shrink: 0;
}

.related-prodotti {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 20px;
}

.related-prodotti h2 {
    font-size: 24px;
    margin-bottom: 30px;
    color: #1e293b;
}

.related-prodotti .prodotto-card {
    min-width: 320px;
    max-width: 420px;
    min-height: 320px;
}

/* Responsive */
@media (max-width: 992px) {
    .prodotti-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 14px;
    }
    .prodotto-card {
        min-height: 220px;
        max-width: 220px;
    }
    .prodotto-thumbnail {
        height: 80px;
    }
    .prodotto-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .prodotto-action-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .prodotti-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .prodotto-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .prodotto-title {
        font-size: 24px;
    }
    
    .prodotto-header {
        padding: 20px;
    }
    
    .prodotto-content-wrapper {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .prodotti-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .prodotto-card {
        min-height: 160px;
        max-width: 100%;
    }
    .prodotto-thumbnail {
        height: 60px;
    }
    .prodotto-content {
        padding: 8px 7px 7px 7px;
    }
} 