/* Colori e Variabili Base */
:root {
    --bg-light: #faf2e8;
    --border-color: #e2d7c3;
    --primary-color: #d4a373; /* Colore d'esempio, puoi sostituirlo con quello del tema */
    --text-color: #495057;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar-public {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.navbar-public .navbar-brand {
    font-weight: 700;
    color: #333;
}

.navbar-public .nav-link {
    color: #555;
    font-weight: 500;
}

.navbar-public .nav-link:hover {
    color: var(--primary-color);
}

/* Offcanvas Customizations */
.offcanvas-start {
    background-color: var(--bg-light);
    border-right: 1px solid var(--border-color);
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}

/* Menu Laterale nell'Offcanvas */
.menu-laterale .nav-item {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.menu-laterale .nav-link {
    color: #444;
    padding: 12px 20px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.menu-laterale .nav-link:hover {
    background-color: rgba(0,0,0,0.03);
    color: var(--primary-color);
}

/* Categorie e Tipologie nel menu */
.menu-tipologia-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #888;
    margin-top: 15px;
    margin-bottom: 5px;
    padding-left: 20px;
}

.menu-categoria-link {
    font-size: 0.95rem;
    padding-left: 30px !important;
}

/* Container spacing */
.mt-header {
    margin-top: 20px;
}

/* Footer */
.footer-public {
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- Search & Suggestions Styles --- */
.hover-bg {
    transition: background-color 0.15s ease-in-out;
}
.hover-bg:hover {
    background-color: #f1f3f5;
}

.bg-purple {
    background-color: #6f42c1 !important;
    color: white !important;
}

.bg-teal {
    background-color: #20c997 !important;
    color: white !important;
}

/* Search Input & Button Styling */
.search-input-styled {
    border: 1.5px solid var(--primary-color, #c89d36) !important;
    font-size: 0.95rem;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-right: 48px !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-styled:focus {
    border-color: #b08428 !important;
    box-shadow: 0 0 0 3.5px rgba(200, 157, 54, 0.22) !important;
    outline: none !important;
}

.search-btn-gold {
    background-color: var(--primary-color, #c89d36) !important;
    width: 34px;
    height: 34px;
    border: none;
    transition: background-color 0.2s, opacity 0.2s, transform 0.15s;
    cursor: pointer;
}

.search-btn-gold:hover:not(:disabled) {
    background-color: #b08428 !important;
    transform: translateY(-50%) scale(1.05);
}

.search-btn-gold:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

#publicSearchSuggestionsDesktop {
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    z-index: 1060;
}

#publicSearchModalMobile {
    z-index: 1070;
}

@media (min-width: 768px) {
    .suggestions-container .suggestions-col {
        max-height: 480px;
        overflow-y: auto !important;
        scrollbar-width: thin;
        scrollbar-color: #adb5bd #f8f9fa;
    }

    .suggestions-container .suggestions-col::-webkit-scrollbar {
        width: 8px;
    }
    .suggestions-container .suggestions-col::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 4px;
    }
    .suggestions-container .suggestions-col::-webkit-scrollbar-thumb {
        background-color: #adb5bd;
        border-radius: 4px;
        border: 2px solid #f8f9fa;
    }
    .suggestions-container .suggestions-col::-webkit-scrollbar-thumb:hover {
        background-color: #6c757d;
    }
}

.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09) !important;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

