/* =========================================
   VARIABILI E IMPOSTAZIONI GLOBALI
   ========================================= */
:root {
    --brand-yellow: #ffdd00;
    --text-color: #3B3B3B;
}

body, button, input, select, textarea, .navbar {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
}

/* --- STICKY FOOTER LAYOUT --- */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar.is-yellow {
    background-color: var(--brand-yellow);
}

.navbar-item, .navbar-link {
    color: var(--text-color) !important;
    font-weight: 600;
}

.navbar-item:hover, .navbar-link:hover {
    background-color: rgba(255,255,255,0.3) !important;
    color: #000 !important;
}

.navbar-item img {
    max-height: 2.5rem;
}

/* =========================================
   BOX FILTRI E RICERCA
   ========================================= */
.box {
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 8px;
    height: 100%; 
    display: flex;
    flex-direction: column;
}

.h-100 {
    height: 100%;
}

.title.is-6 {
    color: var(--text-color);
    border-bottom: 2px solid var(--brand-yellow);
    padding-bottom: 0.5rem;
    display: inline-block;
    width: 100%;
}

.filter-list {
    height: auto;
    overflow: visible;
}

.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #555;
    transition: color 0.2s;
    cursor: pointer;
}

.checkbox:hover {
    color: #000;
}

.button.is-dark {
    background-color: var(--text-color);
    border-color: transparent;
    color: #fff;
    font-weight: 500;
}

.button.is-dark:hover {
    background-color: #222;
}

/* =========================================
   PRODUCT CARDS E RISULTATI
   ========================================= */
.product-card {
    border: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.product-card .card-image {
    padding: 1.5rem; /* Un po' più di respiro dato che la scheda è più grande */
    border-bottom: 1px solid #f9f9f9;
    flex-shrink: 0;
}

.product-card .image.is-inline-block {
    display: inline-block;
    width: auto;
}

.product-card .card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.product-card .content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card .title {
    font-weight: 700;
    line-height: 1.2;
}

.product-card .subtitle.is-6 {
    margin-top: 0.5rem !important;
    margin-bottom: 0 !important;
    font-size: 0.95rem;
}

/* DESCRIZIONE E SCROLLBAR */
.description-container {
    flex-grow: 0;
}

.description-text {
    color: #666;
    line-height: 1.5;
    font-size: 0.85rem;  /* NUOVO: Dimensione del testo leggermente ridotta */
    max-height: 160px; 
    overflow-y: auto;  
    padding-right: 10px; 
    margin-bottom: 0 !important;
}

/* Personalizzazione Scrollbar per la descrizione */
.description-text::-webkit-scrollbar {
    width: 6px;
}
.description-text::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 4px;
}
.description-text::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 4px;
}
.description-text::-webkit-scrollbar-thumb:hover {
    background: #aaa; 
}

/* Contenitore Pulsanti */
.product-card .buttons {
    margin-top: 0; 
    width: 100%;
}

.button.is-yellow-action {
    background-color: var(--brand-yellow);
    border-color: transparent;
    color: var(--text-color);
    font-weight: 600;
    transition: filter 0.2s;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.button.is-yellow-action:hover {
    filter: brightness(0.95);
    color: #000;
}

.button .fi {
    border-radius: 2px;
    box-shadow: 0 0 2px rgba(0,0,0,0.2);
}

/* =========================================
   QR CODE
   ========================================= */
.qr-bottom-container {
    border-top: 1px dashed #eee;
    padding-top: 1rem;
    margin-top: auto; 
}

.qr-link {
    background-color: #fff;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    transition: all 0.2s ease;
}

.qr-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--brand-yellow);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background-color: #f5f5f5;
    padding: 1.5rem 1.5rem;
    border-top: 1px solid #eaeaea;
    color: #666;
    margin-top: auto; 
}

@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: var(--brand-yellow);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    }
}