/*
Theme Name: Quelli di Bonci Child 01 ab4
Description: Tema child basato su GeneratePress per replicare il design di Quelli di Bonci
Template: generatepress
Version: 1.0.0
*/

@import url("../generatepress/style.css");

/* NASCONDI ELEMENTI INDESIDERATI */
.generate-header-login,
.generate-header-login-form,
.generate-header-login-button,
.login-link,
.flag-icon,
.language-selector,
.user-actions,
.header-actions {
    display: none !important;
}

/* PULISCI CONTENUTO INDESIDERATO */
.site-header::after,
.inside-header::after {
    content: "" !important;
}

/* === HEADER STYLES - FISSO === */
.site-header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    transition: all 0.3s ease;
}

/* Compensa lo spazio dell'header fisso */
body {
    padding-top: 70px !important;
}

body.admin-bar {
    padding-top: 102px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar {
        padding-top: 116px !important;
    }
}

.inside-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sezione sinistra: Hamburger + Logo + Menu Ricette */
.left-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

/* Hamburger Menu (3 linee) - PIÙ SPECIFICO */
.site-header .hamburger-menu-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    background: none;
    border: none;
    z-index: 10001;
}

.site-header .hamburger-menu-toggle:hover {
    background-color: #f0f0f0;
}

.site-header .hamburger-line {
    width: 20px;
    height: 2px;
    background-color: #333;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Animazione hamburger quando attivo - PIÙ SPECIFICO */
.site-header .hamburger-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.site-header .hamburger-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.site-header .hamburger-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Logo - Dimensioni ottimizzate per PNG */
.site-logo img {
    max-height: 20px;
    width: auto;
}

/* Menu Ricette */
.main-navigation {
    position: relative;
}

.ricette-menu {
    position: relative;
}

.ricette-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f0f0f0;
    color: #333;
    padding: 10px 16px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ricette-dropdown-toggle:hover {
    background: #e0e0e0;
    color: #333;
}

.dropdown-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
}

.ricette-menu.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu Ricette */
.ricette-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    margin-top: 8px;
}

.ricette-menu.active .ricette-dropdown,
.ricette-menu:hover .ricette-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ricette-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ricette-submenu li {
    margin: 0;
    padding: 0;
}

.ricette-submenu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

.ricette-submenu a:hover {
    background: #f8f8f8;
    color: #ff6b35;
    padding-left: 30px;
}

/* Search Bar Centrale - Più grande come GialloZafferano */
.header-search {
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
    position: relative;
}

.header-search input[type="search"] {
    width: 100%;
    padding: 14px 55px 14px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    background: #fafafa;
}

.header-search input[type="search"]:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background: white;
}

.header-search input[type="search"]::placeholder {
    color: #999;
}

.header-search button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.header-search button:hover {
    background-color: #f0f0f0;
}

.header-search .search-icon {
    width: 22px;
    height: 22px;
    fill: #666;
}

/* Indicatori di ricerca */
.header-search input[type="search"].searching {
    border-color: #ff6b35;
    background: #fff;
}

.search-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hamburger Menu Laterale - PRIORITÀ MASSIMA */
body.menu-open {
    overflow: hidden !important;
}

#hamburger-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

#hamburger-menu-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.hamburger-menu-sidebar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 300px !important;
    height: 100% !important;
    background: white !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 100000 !important;
}

#hamburger-menu-overlay.active .hamburger-menu-sidebar {
    transform: translateX(0) !important;
}

.hamburger-menu-sidebar {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 300px !important;
    height: 100% !important;
    background: white !important;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    z-index: 100000 !important;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.hamburger-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: white;
}

.hamburger-menu-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.close-hamburger-menu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-hamburger-menu:hover {
    color: #ff6b35;
    background: #f5f5f5;
}

.hamburger-navigation {
    padding: 0;
}

.hamburger-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hamburger-menu li {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
}

.hamburger-menu li:last-child {
    border-bottom: none;
}

.hamburger-menu a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.hamburger-menu a:hover {
    background: #f8f8f8;
    color: #ff6b35;
    padding-left: 30px;
}



/* Freccia per menu ricette */
.hamburger-menu a[href*="ricette"].has-submenu::after {
    content: "▲";
    margin-left: auto;
    font-size: 10px;
    color: #ff6b35;
    transition: transform 0.3s ease;
}

/* Sottomenu ricette */
.hamburger-menu .ricette-submenu {
    padding-left: 40px;
    background: #fafafa;
}

.hamburger-menu .ricette-submenu a {
    padding: 12px 20px 12px 0;
    font-size: 14px;
    color: #666;
}

.hamburger-menu .ricette-submenu a:hover {
    color: #ff6b35;
    background: #f0f0f0;
    padding-left: 10px;
}

/* Responsive del menu hamburger */
@media (max-width: 768px) {
    .hamburger-menu-sidebar {
        width: 280px !important;
    }
    
    .hamburger-menu a {
        padding: 14px 18px;
        font-size: 14px;
    }
    
    .hamburger-menu-header {
        padding: 18px;
    }
    
    .hamburger-menu-header h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hamburger-menu-sidebar {
        width: 260px !important;
    }
    
    .hamburger-menu a {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    .hamburger-menu .menu-section-title {
        padding: 10px 16px 6px 16px;
        font-size: 10px;
    }
}

/* Scroll Effects */
.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}

.site-header.header-hidden {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

/* Dropdown Menus */
.menu-item-has-children {
    position: relative;
}

.menu-item-has-children .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.menu-item-has-children.dropdown-open .sub-menu,
.menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li {
    margin: 0;
    padding: 0;
}

.sub-menu a {
    padding: 12px 20px;
    display: block;
    color: #333;
    border-radius: 0;
}

.sub-menu a:hover {
    background: #f8f8f8;
    color: #ff6b35;
}

/* Search Focus Effects */
.header-search.search-focused input[type="search"] {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Tooltips */
.tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1002;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #333;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: #f0f0f0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .inside-header {
        flex-wrap: wrap;
        padding: 12px 15px;
        gap: 15px;
    }
    
    .left-section {
        gap: 15px;
        flex: 0 0 auto;
    }
    
    .hamburger-menu-toggle {
        padding: 8px;
    }
    
    .hamburger-line {
        width: 18px;
        height: 2px;
    }
    
    .site-logo img {
        max-height: 18px;
    }
    
    .ricette-dropdown-toggle {
        padding: 8px 14px;
        font-size: 14px;
    }
    
    .header-search {
        order: 3;
        width: 100%;
        margin: 0;
        max-width: none;
    }
    
    .header-search input[type="search"] {
        padding: 12px 50px 12px 18px;
        font-size: 14px;
    }
    
    .ricette-dropdown {
        position: fixed;
        top: 80px;
        left: 15px;
        right: 15px;
        width: auto;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .inside-header {
        padding: 10px 12px;
        gap: 12px;
    }
    
    .left-section {
        gap: 12px;
    }
    
    .site-logo img {
        max-height: 16px;
    }
    
    .hamburger-line {
        width: 16px;
        height: 2px;
    }
    
    .ricette-dropdown-toggle {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .header-search input[type="search"] {
        padding: 10px 45px 10px 15px;
        font-size: 13px;
    }
    
    .header-search .search-icon {
        width: 20px;
        height: 20px;
    }
}
.search-results-container {
    background: #f8f9fa;
    min-height: 100vh;
}

/* === TITOLO RICERCA === */
.search-title-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
    margin-bottom: 30px;
}

.search-title-header .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-page-title {
    font-size: 2rem;
    font-weight: 400;
    color: #333;
    margin: 0;
}

.search-term-highlight {
    color: #ff6b35;
    font-weight: 600;
}

/* === CONTAINER CARD VERTICALI === */
.container-card-verticali {
    background: #f8f9fa;
    padding: 40px 0;
}

.container-card-verticali .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === LISTA CARD ORIZZONTALI === */
.lista-card-orizzontali {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* === CARD ORIZZONTALE PANNELLO === */
.card-orizzontale-pannello {
    display: flex;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 250px;
}

.card-orizzontale-pannello:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* === IMMAGINE A SINISTRA === */
.immagine-sinistra-pannello {
    position: relative;
    width: 250px;
    height: 250px;
    flex-shrink: 0;
    overflow: hidden;
}

.img-pannello-sinistra {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-orizzontale-pannello:hover .img-pannello-sinistra {
    transform: scale(1.05);
}

.placeholder-img-pannello {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #ccc;
}

/* === BUTTON SULL'IMMAGINE === */
.play-button-pannello {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-orizzontale-pannello:hover .play-button-pannello {
    opacity: 1;
}

.heart-button-pannello {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.card-orizzontale-pannello:hover .heart-button-pannello {
    opacity: 1;
}

.heart-button-pannello:hover {
    background: #ff6b35;
    color: white;
}

.heart-button-pannello svg {
    width: 20px;
    height: 20px;
}



/* === CONTENUTO A DESTRA === */
.contenuto-destra-pannello {
    flex: 1;
    padding: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* === RATING TOP RIGHT === */
.rating-top-pannello {
    position: absolute;
    top: 20px;
    right: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.views-pannello,
.rating-pannello {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 600;
    color: #ff6b35;
}

.icon-pannello {
    width: 18px;
    height: 18px;
}

.star-pannello {
    fill: #ffc107;
}

/* === TITOLO VIOLA === */
.titolo-pannello-viola {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-right: 120px;
    line-height: 1.2;
}

.titolo-pannello-viola a {
    color: #5a4fcf;
    text-decoration: none;
    transition: color 0.3s ease;
}

.titolo-pannello-viola a:hover {
    color: #4a3fb8;
}

/* === DESCRIZIONE GRIGIA === */
.descrizione-pannello-grigia {
    color: #888;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* === META INFO BOTTOM === */
.meta-pannello-bottom {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item-pannello {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.meta-icon-pannello {
    width: 18px;
    height: 18px;
    fill: #999;
}

/* === ICONE DIETETICHE === */
.icone-dieta-pannello {
    position: absolute;
    bottom: 20px;
    right: 25px;
    display: flex;
    gap: 8px;
}

.diet-icon-pannello {
    width: 20px;
    height: 20px;
    fill: #ddd;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.diet-icon-pannello.attiva {
    opacity: 1;
}

.diet-icon-pannello:nth-child(1).attiva {
    fill: #4caf50; /* Vegetariano */
}

.diet-icon-pannello:nth-child(2).attiva {
    fill: #66bb6a; /* Vegano */
}

.diet-icon-pannello:nth-child(3).attiva {
    fill: #ff9800; /* Senza glutine */
}/* === RESPONSIVE PANNELLI ORIZZONTALI === */
@media (max-width: 768px) {
    .container-card-verticali {
        padding: 20px 0;
    }
    
    .container-card-verticali .container {
        padding: 0 15px;
    }
    
    .lista-card-orizzontali {
        gap: 20px;
    }
    
    .card-orizzontale-pannello {
        flex-direction: column;
        min-height: auto;
    }
    
    .immagine-sinistra-pannello {
        width: 100%;
        height: 200px;
    }
    
    .contenuto-destra-pannello {
        padding: 20px;
    }
    
    .rating-top-pannello {
        position: static;
        justify-content: flex-end;
        margin-bottom: 15px;
        gap: 12px;
    }
    
    .titolo-pannello-viola {
        font-size: 1.6rem;
        padding-right: 0;
        margin-bottom: 12px;
    }
    
    .descrizione-pannello-grigia {
        font-size: 14px;
        margin-bottom: 15px;
        -webkit-line-clamp: 2;
    }
    
    .meta-pannello-bottom {
        gap: 15px;
        margin-bottom: 12px;
    }
    
    .meta-item-pannello {
        font-size: 14px;
    }
    
    .meta-icon-pannello {
        width: 16px;
        height: 16px;
    }
    
    .icone-dieta-pannello {
        position: static;
        justify-content: flex-end;
        margin-top: 15px;
    }
    
    .views-pannello,
    .rating-pannello {
        font-size: 14px;
    }
    
    .icon-pannello {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .lista-card-orizzontali {
        gap: 15px;
    }
    
    .immagine-sinistra-pannello {
        height: 180px;
    }
    
    .contenuto-destra-pannello {
        padding: 15px;
    }
    
    .titolo-pannello-viola {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    
    .descrizione-pannello-grigia {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .meta-pannello-bottom {
        gap: 12px;
        margin-bottom: 10px;
    }
    
    .meta-item-pannello {
        font-size: 13px;
    }
    
    .meta-icon-pannello {
        width: 14px;
        height: 14px;
    }
    
    .rating-top-pannello {
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .views-pannello,
    .rating-pannello {
        font-size: 13px;
    }
    
    .icon-pannello {
        width: 14px;
        height: 14px;
    }
    
    .diet-icon-pannello {
        width: 18px;
        height: 18px;
    }
    
    .icone-dieta-pannello {
        gap: 6px;
        margin-top: 12px;
    }
    
    .badge-benessere-pannello {
        padding: 6px 12px;
        font-size: 11px;
        bottom: 12px;
        left: 12px;
    }
    
    .play-button-pannello {
        width: 35px;
        height: 35px;
        top: 12px;
        left: 12px;
        font-size: 14px;
    }
    
    .heart-button-pannello {
        width: 35px;
        height: 35px;
        top: 12px;
        right: 12px;
    }
    
    .heart-button-pannello svg {
        width: 18px;
        height: 18px;
    }
}

/* === NESSUN RISULTATO === */
.nessun-risultato {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nessun-risultato h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.nessun-risultato p {
    color: #666;
    font-size: 16px;
}

/* === ANIMAZIONI === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-orizzontale-pannello {
    animation: fadeInUp 0.6s ease-out;
}

.card-orizzontale-pannello:nth-child(2) { animation-delay: 0.1s; }
.card-orizzontale-pannello:nth-child(3) { animation-delay: 0.2s; }
.card-orizzontale-pannello:nth-child(4) { animation-delay: 0.3s; }
.card-orizzontale-pannello:nth-child(5) { animation-delay: 0.4s; }

/* === ACCESSIBILITÀ === */
.card-orizzontale-pannello:focus-within {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

.heart-button-pannello:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* === HOVER EFFECTS === */
.card-orizzontale-pannello:hover .badge-benessere-pannello {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

/* === LAYOUT PERFETTO PANNELLI === */
.container-card-verticali .container {
    max-width: 1000px; /* Larghezza ottimale per pannelli orizzontali */
}

@media (min-width: 769px) {
    .lista-card-orizzontali {
        max-width: 100%;
        margin: 0 auto;
    }
}
/* NASCONDI COMPLETAMENTE IL HEART BUTTON */
.heart-button-pannello {
    display: none !important;
}
/* === CSS MIGLIORATO PER TAXONOMY TAG RICETTA === */

/* CONTAINER PRINCIPALE */
.search-results-container {
    background: #fafafa;
    min-height: 100vh;
    padding: 0;
}

/* HEADER TITOLO */
.search-title-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 25px 0 35px 0;
    margin-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* BREADCRUMB INTEGRATO */
.breadcrumb-categoria {
    margin-bottom: 20px;
}

.breadcrumb-list-categoria {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb-list-categoria li {
    display: flex;
    align-items: center;
}

.breadcrumb-list-categoria a {
    color: #007bff;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.breadcrumb-list-categoria a:hover {
    background: #007bff;
    color: white;
}

.breadcrumb-list-categoria .separator {
    margin: 0 8px;
    color: #6c757d;
}

.breadcrumb-list-categoria .current {
    color: #495057;
    font-weight: 600;
}

/* TITOLO PRINCIPALE */
.search-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin: 15px 0;
    line-height: 1.3;
}

.search-term-highlight {
    color: #ff6b35;
    position: relative;
}

.search-term-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b35, #ff8c69);
    border-radius: 2px;
}

/* CONTATORE RICETTE */
.recipes-count-badge {
    text-align: center;
    margin-top: 15px;
}

.recipes-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* CONTAINER CARDS */
.container-card-orizzontali-migliorato {
    padding: 0 0 40px 0;
}

.lista-card-orizzontali-nuova {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* CARD PRINCIPALE MIGLIORATA */
.card-orizzontale-pannello-nuova {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
    position: relative;
}

.card-orizzontale-pannello-nuova:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border-color: #ff6b35;
}

/* IMMAGINE RETTANGOLARE */
.immagine-sinistra-rettangolare {
    width: 320px; /* Più larga - rettangolare */
    height: 220px; /* Più bassa - rettangolare */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.link-immagine-ricetta {
    display: block;
    width: 100%;
    height: 100%;
}

.img-pannello-rettangolare {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-orizzontale-pannello-nuova:hover .img-pannello-rettangolare {
    transform: scale(1.05);
}

/* PLACEHOLDER MIGLIORATO */
.placeholder-img-rettangolare {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
}

.placeholder-icon-grande {
    font-size: 3rem;
    margin-bottom: 8px;
}

.placeholder-text {
    font-size: 14px;
    font-weight: 500;
}

/* OVERLAY EFFETTI */
.overlay-immagine {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-orizzontale-pannello-nuova:hover .overlay-immagine {
    opacity: 1;
}

/* PLAY BUTTON MIGLIORATO */
.play-button-migliorato {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.play-button-migliorato:hover {
    background: #ff6b35;
    transform: scale(1.1);
}

.play-button-migliorato svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
}

/* BADGE CATEGORIA */
.badge-categoria-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #495057;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* CONTENUTO SPOSTATO A DESTRA */
.contenuto-destra-spostato {
    flex: 1;
    padding: 25px 30px 25px 35px; /* Spostamento 5px a destra */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 15px;
}

/* HEADER CARD */
.header-card-ricetta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

/* RATING STELLE MIGLIORATO */
.rating-stelle-migliorato {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stelle-container {
    display: flex;
    gap: 2px;
}

.stella {
    font-size: 16px;
    transition: all 0.2s ease;
}

.stella.piena {
    color: #ffc107;
}

.stella.mezza {
    color: #ffc107;
    position: relative;
}

.stella.vuota {
    color: #e9ecef;
}

.rating-testo {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

/* TEMPO LETTURA */
.tempo-lettura {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
    padding: 4px 8px;
    background: #f8f9fa;
    border-radius: 12px;
}

.icona-tempo {
    font-size: 14px;
}

/* TITOLO COLORATO */
.titolo-ricetta-colorato {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.titolo-ricetta-colorato a {
    color: #6f42c1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.titolo-ricetta-colorato a:hover {
    color: #ff6b35;
}

/* DESCRIZIONE CON GRADIENTE */
.descrizione-con-gradiente {
    margin-bottom: 15px;
}

.descrizione-testo {
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    font-size: 15px;
}

/* META INFO COMPLETA */
.meta-info-completa {
    margin-bottom: 15px;
}

.meta-riga-principale {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.meta-item-principale {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
}

.meta-icon-svg {
    width: 16px;
    height: 16px;
    color: #ff6b35;
    flex-shrink: 0;
}

.meta-riga-secondaria {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.badge-icon {
    font-size: 12px;
}

/* COLORI BADGE DIFFICOLTÀ */
.difficulty-facile {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.difficulty-medio {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.difficulty-difficile {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* COLORI BADGE COSTO */
.cost-economico {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.cost-medio {
    background: #e2e3e5;
    color: #383d41;
    border-color: #d6d8db;
}

.cost-costoso {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* COLORI BADGE DIETA */
.diet-vegetariana {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.diet-vegana {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

.diet-senza_glutine {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

/* FOOTER CARD */
.footer-card-ricetta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    margin-top: auto;
}

.data-pubblicazione,
.visualizzazioni {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6c757d;
}

.data-icon,
.views-icon {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

/* BUTTON CTA */
.btn-vedi-ricetta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff6b35, #ff8c69);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn-vedi-ricetta:hover {
    background: linear-gradient(135deg, #e55a2b, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.btn-vedi-ricetta:hover .btn-arrow {
    transform: translateX(3px);
}

/* PAGINAZIONE MIGLIORATA */
.paginazione-migliorata {
    margin: 40px 0;
    text-align: center;
}

.paginazione-migliorata .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin: 0 4px;
    background: white;
    color: #495057;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.paginazione-migliorata .page-numbers:hover,
.paginazione-migliorata .page-numbers.current {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-2px);
}

.paginazione-migliorata .page-numbers svg {
    width: 16px;
    height: 16px;
}

/* NESSUN RISULTATO */
.nessun-risultato-migliorato {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.no-result-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.nessun-risultato-migliorato h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.nessun-risultato-migliorato p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 16px;
}

.btn-tutte-ricette {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-tutte-ricette:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* TAG CORRELATI */
.tag-correlati-sezione {
    background: white;
    padding: 40px 0;
    margin-top: 40px;
    border-top: 2px solid #e9ecef;
}

.titolo-tag-correlati {
    text-align: center;
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.tag-cloud-correlati {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.tag-correlato {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #495057;
    text-decoration: none;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-correlato:hover {
    background: #ff6b35;
    color: white;
    border-color: #ff6b35;
    transform: translateY(-2px);
    text-decoration: none;
}

.tag-correlato .count {
    font-size: 12px;
    opacity: 0.7;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .card-orizzontale-pannello-nuova {
        flex-direction: column;
    }
    
    .immagine-sinistra-rettangolare {
        width: 100%;
        height: 250px;
    }
    
    .contenuto-destra-spostato {
        padding: 20px 25px;
    }
    
    .search-page-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .search-title-header {
        padding: 20px 0 25px 0;
    }
    
    .search-page-title {
        font-size: 1.8rem;
    }
    
    .breadcrumb-list-categoria {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .breadcrumb-list-categoria .separator {
        display: none;
    }
    
    .header-card-ricetta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .meta-riga-principale {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-card-ricetta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .container-card-orizzontali-migliorato {
        padding: 0 15px 40px 15px;
    }
    
    .lista-card-orizzontali-nuova {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .search-page-title {
        font-size: 1.5rem;
    }
    
    .contenuto-destra-spostato {
        padding: 15px 20px;
    }
    
    .titolo-ricetta-colorato {
        font-size: 1.3rem;
    }
    
    .meta-badge {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .btn-vedi-ricetta {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .tag-cloud-correlati {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .tag-correlato {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ANIMAZIONI */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-orizzontale-pannello-nuova {
    animation: fadeInUp 0.6s ease forwards;
}

.card-orizzontale-pannello-nuova:nth-child(2) {
    animation-delay: 0.1s;
}

.card-orizzontale-pannello-nuova:nth-child(3) {
    animation-delay: 0.2s;
}

.card-orizzontale-pannello-nuova:nth-child(4) {
    animation-delay: 0.3s;
}

/* EFFETTI HOVER AVANZATI */
.card-orizzontale-pannello-nuova::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b35, #ff8c69);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card-orizzontale-pannello-nuova:hover::before {
    transform: scaleX(1);
}

/* FOCUS ACCESSIBILITY */
.btn-vedi-ricetta:focus,
.tag-correlato:focus,
.breadcrumb-list-categoria a:focus {
    outline: 2px solid #ff6b35;
    outline-offset: 2px;
}

/* PRINT STYLES */
@media print {
    .overlay-immagine,
    .btn-vedi-ricetta,
    .paginazione-migliorata,
    .tag-correlati-sezione {
        display: none;
    }
    
    .card-orizzontale-pannello-nuova {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}
/* CSS Archive Ricette - Stile Coerente con QDB (Arancione) */

/* === RESET E BASE === */
.archive-ricette-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: #f8f9fa;
}

/* === HEADER ARCHIVIO - STILE SITO === */
.archive-header-section {
    background: white;
    padding: 30px 20px;
    margin-bottom: 0;
    border-bottom: 2px solid #eee;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.archive-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 20px;
}

.results-counter {
    background: #ff6b35;
    color: white;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 auto;
    display: block;
    width: fit-content;
}

/* === SEZIONE FILTRI - STILE SITO === */
.filtri-ricette-section {
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 0;
}

.filtri-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filtri-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.toggle-filtri {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.toggle-filtri:hover {
    background: #e55a2b;
}

.filtri-content {
    display: none;
    opacity: 0;
    transition: all 0.4s ease;
}

.filtri-content.active {
    display: block;
    opacity: 1;
}

.filtri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filtro-gruppo {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.filtro-gruppo:hover {
    border-color: #ff6b35;
}

.filtro-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filtro-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.filtro-select:focus {
    border-color: #ff6b35;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.filtri-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-applica-filtri {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-applica-filtri:hover {
    background: #218838;
}

.btn-reset-filtri {
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-reset-filtri:hover {
    background: #545b62;
    text-decoration: none;
}

/* === CONTAINER PRINCIPALE - STILE SEARCH RESULTS === */
.ricette-grid-section {
    background: #f8f9fa;
    padding: 20px;
    min-height: 70vh;
}

.ricette-grid {
    display: block;
    margin-bottom: 40px;
}

/* === CARD RICETTE - STILE ORIZZONTALE COME SEARCH RESULTS === */
.ricetta-card-moderna {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: flex;
    height: 200px; /* Altezza fissa uguale all'immagine */
}

.ricetta-card-moderna:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid #ff6b35;
}

/* === IMMAGINE SINISTRA - STILE SEARCH RESULTS === */
.card-image-container {
    flex: 0 0 280px;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ricetta-card-moderna:hover .card-image {
    transform: scale(1.05);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #5f6368;
}

.placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

/* === OVERLAY IMMAGINE === */
.card-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-rating {
    background: rgba(0,0,0,0.75);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-category-badge {
    background: #ff6b35;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* === CONTENUTO DESTRA - STILE SEARCH RESULTS === */
.card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-title {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-title a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.card-excerpt {
    color: #5f6368;
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 0.95rem;
    flex: 1;
}

/* === META INFO - NASCONDI TUTTE === */
.card-meta {
    display: none;
}

.meta-item {
    display: none;
}

/* === FOOTER CARD - NASCOSTO COMPLETAMENTE === */
.card-footer {
    display: none !important;
}

.card-date {
    display: none !important;
}

/* === BOTTONE VEDI RICETTA - DISINTEGRATO === */
.btn-vedi-ricetta,
a.btn-vedi-ricetta,
.btn-vedi-ricetta:hover,
.btn-vedi-ricetta:focus,
.btn-vedi-ricetta:active {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* === PAGINAZIONE - STILE SEARCH RESULTS === */
.archive-pagination {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
}

.archive-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 4px;
    background: white;
    border: 1px solid #dadce0;
    color: #ff6b35;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
    text-decoration: none;
}

/* === NESSUN RISULTATO === */
.nessun-risultato {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-result-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #5f6368;
}

.btn-tutte-ricette {
    background: #ff6b35;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.btn-tutte-ricette:hover {
    background: #e55a2b;
    color: white;
    text-decoration: none;
}

/* === FILTRI ATTIVI === */
.filtri-attivi {
    margin-top: 15px;
    padding: 10px 15px;
    background: #fff3f0;
    border-radius: 6px;
    border-left: 3px solid #ff6b35;
}

.filtri-attivi-label {
    font-weight: 600;
    color: #ff6b35;
    margin-right: 10px;
}

.filtro-attivo {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    margin: 2px;
    font-size: 0.8rem;
}

.rimuovi-filtro {
    color: white;
    text-decoration: none;
    margin-left: 6px;
    font-weight: bold;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .ricetta-card-moderna {
        flex-direction: column;
        height: auto;
    }
    
    .card-image-container {
        flex: none;
        height: 180px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .filtri-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .filtri-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-applica-filtri,
    .btn-reset-filtri {
        text-align: center;
        width: 100%;
    }
    
    .archive-title {
        font-size: 2rem;
    }
}

/* === OVERRIDE PER MANTENERE COERENZA === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* CSS Archive Ricette - Stile Coerente con QDB (Arancione) */

/* === RESET E BASE === */
.archive-ricette-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: #f8f9fa;
}

/* === HEADER ARCHIVIO - STILE SITO === */
.archive-header-section {
    background: white;
    padding: 30px 20px;
    margin-bottom: 0;
    border-bottom: 2px solid #eee;
}

.archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    text-align: center;
}

.archive-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    text-align: center;
    margin-bottom: 20px;
}

.results-counter {
    background: #ff6b35;
    color: white;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 auto;
    display: block;
    width: fit-content;
}

/* === SEZIONE FILTRI - STILE SITO === */
.filtri-ricette-section {
    background: white;
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
    margin-bottom: 0;
}

.filtri-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filtri-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.toggle-filtri {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.toggle-filtri:hover {
    background: #e55a2b;
}

.filtri-content {
    display: none;
    opacity: 0;
    transition: all 0.4s ease;
}

.filtri-content.active {
    display: block;
    opacity: 1;
}

.filtri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.filtro-gruppo {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.filtro-gruppo:hover {
    border-color: #ff6b35;
}

.filtro-label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filtro-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    transition: border-color 0.3s ease;
}

.filtro-select:focus {
    border-color: #ff6b35;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

.filtri-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-applica-filtri {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-applica-filtri:hover {
    background: #218838;
}

.btn-reset-filtri {
    background: #6c757d;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.btn-reset-filtri:hover {
    background: #545b62;
    text-decoration: none;
}

/* === CONTAINER PRINCIPALE - STILE SEARCH RESULTS === */
.ricette-grid-section {
    background: #f8f9fa;
    padding: 20px;
    min-height: 70vh;
}

.ricette-grid {
    display: block;
    margin-bottom: 40px;
}

/* === CARD RICETTE - STILE ORIZZONTALE COME SEARCH RESULTS === */
.ricetta-card-moderna {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    display: flex;
    height: 200px; /* Altezza fissa uguale all'immagine */
}

.ricetta-card-moderna:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border: 1px solid #ff6b35;
}

/* === IMMAGINE SINISTRA - STILE SEARCH RESULTS === */
.card-image-container {
    flex: 0 0 280px;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ricetta-card-moderna:hover .card-image {
    transform: scale(1.05);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f3f4 0%, #e8eaed 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #5f6368;
}

.placeholder-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

/* === OVERLAY IMMAGINE - SOLO BADGE CATEGORIA === */
.card-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

/* RIMUOVI LE STELLE FAKE */
.card-rating {
    display: none !important;
}

.card-category-badge {
    background: #ff6b35;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* === CONTENUTO DESTRA - STILE SEARCH RESULTS === */
.card-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-title {
    margin: 0 0 12px 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-title a {
    color: #ff6b35;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #e55a2b;
    text-decoration: underline;
}

.card-excerpt {
    color: #5f6368;
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 0.95rem;
    flex: 1;
}

/* === META INFO - NASCONDI TUTTE === */
.card-meta {
    display: none;
}

.meta-item {
    display: none;
}

/* === FOOTER CARD CON ICONE E DATA === */
.card-footer {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e8eaed;
    margin-top: auto;
}

.card-footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.card-date {
    display: inline-block !important;
    color: #5f6368;
    font-size: 0.85rem;
}

.card-meta-inline {
    display: flex;
    gap: 12px;
    align-items: center;
}

.meta-item {
    display: flex !important;
    align-items: center;
    gap: 3px;
    font-size: 0.8rem;
    color: #5f6368;
    font-weight: 500;
}

.meta-item.difficulty-facile { color: #34a853; }
.meta-item.difficulty-medio { color: #fbbc04; }
.meta-item.difficulty-difficile { color: #ea4335; }

/* === BOTTONE VEDI RICETTA - DISINTEGRATO === */
.btn-vedi-ricetta,
a.btn-vedi-ricetta,
.btn-vedi-ricetta:hover,
.btn-vedi-ricetta:focus,
.btn-vedi-ricetta:active {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* === PAGINAZIONE - STILE SEARCH RESULTS === */
.archive-pagination {
    margin-top: 40px;
    text-align: center;
    padding: 20px 0;
}

.archive-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 4px;
    background: white;
    border: 1px solid #dadce0;
    color: #ff6b35;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.archive-pagination .page-numbers:hover,
.archive-pagination .page-numbers.current {
    background: #ff6b35;
    border-color: #ff6b35;
    color: white;
    text-decoration: none;
}

/* === NESSUN RISULTATO === */
.nessun-risultato {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-result-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #5f6368;
}

.btn-tutte-ricette {
    background: #ff6b35;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.btn-tutte-ricette:hover {
    background: #e55a2b;
    color: white;
    text-decoration: none;
}

/* === FILTRI ATTIVI === */
.filtri-attivi {
    margin-top: 15px;
    padding: 10px 15px;
    background: #fff3f0;
    border-radius: 6px;
    border-left: 3px solid #ff6b35;
}

.filtri-attivi-label {
    font-weight: 600;
    color: #ff6b35;
    margin-right: 10px;
}

.filtro-attivo {
    display: inline-block;
    background: #ff6b35;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    margin: 2px;
    font-size: 0.8rem;
}

.rimuovi-filtro {
    color: white;
    text-decoration: none;
    margin-left: 6px;
    font-weight: bold;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .ricetta-card-moderna {
        flex-direction: column;
        height: auto;
    }
    
    .card-image-container {
        flex: none;
        height: 180px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .filtri-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .filtri-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-applica-filtri,
    .btn-reset-filtri {
        text-align: center;
        width: 100%;
    }
    
    .archive-title {
        font-size: 2rem;
    }
}

/* === OVERRIDE PER MANTENERE COERENZA === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Rating System */
.ricetta-rating-section {
    background: #fff3cd;
    border: 2px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.stars-input {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 10px 0;
}

.star-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.star-btn:hover,
.star-btn.active {
    opacity: 1;
}

.rating-display {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.rating-score {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
}

.star.filled {
    opacity: 1;
}
/* Aggiungi questo CSS personalizzato in Aspetto > Personalizza > CSS Aggiuntivo */
.wpdiscuz-custom-field {
    margin-bottom: 15px;
}

.recipe-rating select,
.baking-experience select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.comment-recipe-rating {
    background: #fff5f1;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #ff6b35;
    margin-bottom: 10px;
}

.rating-stars {
    color: #ffc107;
    font-size: 16px;
}

.comment-experience-level {
    display: inline-block;
    margin-left: 10px;
}

.experience-badge {
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.expert-badge {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 5px;
}

.expert-badge.admin {
    background: #dc3545;
    color: white;
}

.expert-badge.contributor {
    background: #ffc107;
    color: #212529;
}

.expert-badge.veteran {
    background: #28a745;
    color: white;
}
/* === MENU RICETTE DROPDOWN - ICONE PIÙ GRANDI === */
.ricette-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ricette-submenu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
}

.ricette-submenu li:last-child {
    border-bottom: none;
}

.ricette-submenu a {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    gap: 14px;
}

.ricette-submenu a:hover {
    background: #f8f8f8;
    color: #ff6b35;
    padding-left: 30px;
}

/* ICONE MENU - PIÙ GRANDI E VISIBILI */
.ricette-submenu .menu-icon {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
    opacity: 0.85;
    transition: all 0.3s ease;
    object-fit: contain;
}

.ricette-submenu a:hover .menu-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* RIMUOVI ICONE DUPLICATE ROTTE */
.ricette-submenu a img:not(.menu-icon) {
    display: none !important;
}

/* FIX DROPDOWN MOBILE */
@media (max-width: 768px) {
    .ricette-dropdown {
        position: fixed;
        top: 70px;
        left: 10px;
        right: 10px;
        width: auto;
        min-width: auto;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .ricette-submenu a {
        padding: 12px 18px;
        font-size: 15px;
    }
    
    .ricette-submenu .menu-icon {
        width: 22px !important;
        height: 22px !important;
    }
}

@media (max-width: 480px) {
    .ricette-submenu a {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .ricette-submenu .menu-icon {
        width: 20px !important;
        height: 20px !important;
    }
}