/* Griglia generale */
.jr-megabutton-grid {
    display: grid;
    gap: 20px;
}

/* Singolo pulsante */
.jr-megabutton-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background: #ffffff;
    padding: 26px 24px;
	 border-style: solid;
    border-width: 0;              
    border-color: transparent;  
    box-shadow: 0 0 0 rgba(0,0,0,0);
}
.jr-megabutton-item.no-border {
    border: 0 !important;
	border-color: transparent !important;
}

/* Icona / immagine */
.jr-megabutton-icon {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jr-megabutton-icon img {
    display: block;
    width: 70px;
    height: auto;
}

.jr-megabutton-icon i {
    font-size: 70px;
    color: #FAB510;
}

/* Titolo */
.jr-megabutton-title {
    font-size: 20px;
    font-weight: 600;
    color: #023169;
    margin-bottom: 6px;
}

/* Descrizione */
.jr-megabutton-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #4c5a70;
}

.jr-megabutton-item {
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
    .jr-megabutton-item:hover,
    .jr-megabutton-item:focus {
        background: #fff;
        border-color: rgba(232,62,114,.12);
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
        transform: translateY(-2px);
        outline: none;
    }
}

/* Mobile tap */
@media (hover: none) {
    .jr-megabutton-item:active {
        transform: scale(0.98);
    }
}

/* Accessibilità: focus visibile anche da tastiera */
.jr-megabutton-item:focus-visible {
    box-shadow: 0 0 0 2px #FAB510;
}

/* Responsive base (le colonne sono gestite da Elementor) */
@media (max-width: 767px) {
    .jr-megabutton-title {
        font-size: 18px;
    }
    .jr-megabutton-icon img,
    .jr-megabutton-icon i {
        width: 60px;
        font-size: 60px;
    }
}
