/* Header styling */
.module-header {
    font-size: 1.225rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 1rem;
    text-align: left;
    color: #2c3e50;
}

/* Grid layout */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    align-items: stretch; /* Stretch cards to have equal height */
}

/* Card styling */
.module-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribuisci header, contenuto e footer */
    align-items: center; /* Centra orizzontalmente */
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem;
    height: 100%;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Card header */
.module-card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #34495e;
    text-align: center;
    margin-bottom: 1rem;
}

/* Card icon */
.module-card-icon {
    display: flex; /* Flexbox per centrare */
    justify-content: center; /* Centra orizzontalmente */
    align-items: center; /* Centra verticalmente */
    flex-grow: 1; /* Espandi per occupare lo spazio */
    margin: 1rem 0; /* Margine per distanziare */
}

.module-card-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain; /* Adatta senza ritagli */
}

/* Footer link */
.module-footer {
    text-align: right;
    margin-top: 1.5rem;
    padding: 1rem;
}

.module-link {
    font-size: 0.875rem;
    color: #f40;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.module-link:hover {
    color: #c83e0c;
}

/* Footer styling for each card */

.module-footer-text {
    font-size: 0.875rem;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.module-card-footer button{
    background-color: transparent;
    box-shadow: unset;
    color: #E63D00;
}

.module-card-footer button:hover{
    background-color: transparent;
    color: #cd3700;
}

.module-card-footer button:hover svg{
    stroke: #cd3700;
}

.module-card-footer svg{
    stroke: #E63D00;
}
