/**
 * Filtrable Content - Stili principali
 */

.fc-wrapper {
    margin: 0 auto;
}

/* ========== GRIGLIA ========== */
.fc-grid {
    display: grid !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    grid-auto-rows: 1fr;
    width: 100%;
    transition: all 220ms ease;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 16px;
}

.fc-item {
    position: relative !important;
    display: block;
    background: #fff;
    border: 1px solid #eee;
    padding: 12px;
    box-sizing: border-box;
    transition: transform 220ms ease, opacity 220ms ease, box-shadow 220ms ease;
    overflow: hidden;
}

.fc-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fc-item img {
    max-width: 100%;
    height: auto;
    display: block;
}

.fc-item-title {
    margin: 0;
    padding: 0;
    color: #333;
}

.fc-item-placeholder {
    padding: 20px;
    text-align: center;
    background: #f5f5f5;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-item-error {
    padding: 20px;
    text-align: center;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-no-items {
    grid-column: 1 / -1;
    color: #666;
    padding: 40px 12px;
    text-align: center;
    background: #f9f9f9;
    border: 1px dashed #ddd;
}

.fc-hidden {
    display: none !important;
    opacity: 0;
}

.fc-grid.fc-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ========== FILTRI - STILI BASE DESKTOP ========== */
.fc-filters,
.fc-filters-menu {
    margin-bottom: 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.fc-filter-button {
    transition: all 220ms ease;
    cursor: pointer;
}

.fc-filter-button:hover {
}

.fc-filter-button.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.fc-filter-button:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* ========== HAMBURGER MENU - STILI BASE DESKTOP ========== */
.fc-filters-toggle { display: none; }
.fc-filters-toggle-text { flex: 1; margin-right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-filters[data-layout="hamburger"] .fc-filters-toggle { /*display: flex !important;*/ align-items: center; justify-content: space-between; **padding: 8px 12px; **border: 1px solid #ddd; background: #fff; **border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 220ms ease; width: 100%; }
/*.fc-filters[data-layout="hamburger"] .fc-filters-toggle:hover { background: #f5f5f5;" }*/

.fc-hamburger {
    display: inline-block;
    width: 20px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
}

.fc-hamburger::before,
.fc-hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    transition: all 300ms ease;
}

.fc-hamburger::before { top: 0; }
.fc-hamburger::after { bottom: 0; }

.fc-hamburger span {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    transform: translateY(-50%);
    transition: all 300ms ease;
}

.fc-filters.fc-menu-open .fc-hamburger::before {
    transform: rotate(45deg) translate(7px, 7px);
    top: -5px;
}

.fc-filters.fc-menu-open .fc-hamburger::after {
    transform: rotate(-45deg) translate(7px, -7px);
}

.fc-filters.fc-menu-open .fc-hamburger span {
    opacity: 0;
}

.fc-filters-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: static;
    background: transparent;
    border: none;
    max-height: none;
    overflow: visible;
}
/*
.fc-filters-menu .fc-filter-button {
    display: inline-block;
    width: auto;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    background: #fff;
}

.fc-filters-menu .fc-filter-button:hover {
    border-color: #999;
    background: #f5f5f5;
}

.fc-filters-menu .fc-filter-button.active {
    background: #333;
    color: #fff;
    border-color: #333;
}
*/
/* Scrollbar */
.fc-filters::-webkit-scrollbar {
    height: 4px;
}

.fc-filters::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.fc-filters::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.fc-filters::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========== MEDIA QUERIES FISSE ========== */

/* Tablet griglia */
@media (max-width: 1024px) {
    .fc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile griglia */
@media (max-width: 767px) {
    .fc-grid {
        grid-template-columns: 1fr;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .fc-grid,
    .fc-item,
    .fc-filter-button {
        transition: none;
    }
}