.zella-schede-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    font-family: inherit;
    box-sizing: border-box;
}

/* Griglie */
.zella-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
    width: 100%;
}

.zella-card {
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 16px;
    cursor: pointer;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.zella-card-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    min-height: 110px;
}

.zella-card-img-wrap img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Bordo rosso per card attiva */
.zella-card.active {
    border: 3px solid #e31e24;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Gruppi Macrocategorie */
.zella-macro-group {
    display: none;
    width: 100%;
}

.zella-macro-group.active {
    display: block;
    animation: zellaFadeIn 0.3s ease-in-out;
}

/* Pannello Dettaglio Sotto */
.zella-details {
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
}

.zella-pane {
    display: none;
    width: 100%;
}

.zella-pane.active {
    display: block;
    animation: zellaFadeIn 0.3s ease-in-out;
}

.zella-detail-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0c2340;
    margin-bottom: 15px;
    text-align: center;
}

.zella-detail-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333333;
    margin-bottom: 20px;
    text-align: justify;
    text-justify: inter-word;
    width: 100%;
}

.zella-detail-text p {
    text-align: justify;
    margin-bottom: 1rem;
    width: 100%;
}

.zella-detail-link {
    font-size: 1.1rem;
    text-align: center;
}

.zella-detail-link a {
    color: #0c2340;
    text-decoration: underline;
}

.zella-empty-notice {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

@keyframes zellaFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
