/*
Theme Name: Astra Child
Theme URI: http://wpastra.com/
Template: astra
Author: Tuo Nome
Description: Astra Child Theme
Version: 1.0.0
*/

/* Griglia */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Card */
.portfolio-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    overflow: hidden;
}

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

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Immagine */
.portfolio-image {
    height: 200px;
    overflow: hidden;
    background: #f4f4f4;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

/* Testo */
.portfolio-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.portfolio-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.visit-btn {
    margin-top: auto;
    color: #0274be;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}