/* ══════════════════════════════════════════════════════
   Bagliori Esoterico — Cristalli & Pietre v1.8
══════════════════════════════════════════════════════ */
:root {
    --bge-black:    #0d0d0d;
    --bge-white:    #fafafa;
    --bge-gray-100: #f4f4f4;
    --bge-gray-200: #e0e0e0;
    --bge-gray-400: #888;
    --bge-gray-600: #444;
    --bge-gold:     #c9a82c;
    --bge-gold-bg:  #fdf6dc;
    --bge-font:     'Cormorant Garamond', 'Georgia', serif;
    --bge-radius:   8px;
}

/* ══ LINK GLOBALI nel plugin ══════════════════════════ */
.bge-cristallo-single a,
.bge-cristalli-archive a {
    color: var(--bge-black);
    text-decoration: none;
}
.bge-cristallo-single a:hover,
.bge-cristalli-archive a:hover {
    color: var(--bge-gray-600);
    text-decoration: underline;
}

/* ══ FILTRO STICKY PILL ════════════════════════════════ */
.bge-filtro-sticky {
    position: relative;
    z-index: 10;
    background: transparent;
    padding: 10px 0;
    margin-bottom: 32px;
}
.bge-filtro-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    height: 52px;
    border: 1.5px solid var(--bge-black);
    border-radius: 50px;
    overflow: hidden;
    max-width: 920px;
    margin: 0 auto;
    background: var(--bge-white);
}
.bge-filtro-icon {
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 13px;
    color: var(--bge-gray-400);
    flex-shrink: 0;
}
.bge-filtro-sep {
    width: 1px;
    background: var(--bge-gray-200);
    flex-shrink: 0;
}
.bge-filtro-field {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 12px;
    overflow: hidden;
}
.bge-filtro-field-label {
    font-family: var(--bge-font);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--bge-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    display: block;
}
.bge-filtro-field select,
.bge-filtro-field input[type="text"] {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--bge-font);
    font-size: 16px;
    color: var(--bge-black);
    padding: 0;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    line-height: 1.3;
}
.bge-filtro-submit {
    flex-shrink: 0;
    width: 58px;
    background: var(--bge-black);
    border: none;
    color: var(--bge-white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    border-radius: 0 50px 50px 0;
}
.bge-filtro-submit:hover { background: #333; }
.bge-filtro-clear-pill {
    display: block;
    text-align: center;
    margin: 6px auto 0;
    width: fit-content;
    font-family: var(--bge-font);
    font-size: 13px;
    color: var(--bge-gray-400);
    text-decoration: none;
}
.bge-filtro-clear-pill:hover { color: var(--bge-black); }

@media (max-width: 680px) {
    .bge-filtro-form { flex-wrap: wrap; height: auto; border-radius: 14px; max-width: 100%; }
    .bge-filtro-icon { display: none; }
    .bge-filtro-field { flex: 1 1 calc(50% - 1px); border-bottom: 1px solid var(--bge-gray-200); padding: 8px 12px; }
    .bge-filtro-sep { display: none; }
    .bge-filtro-submit { width: 100%; border-radius: 0 0 12px 12px; height: 44px; }
}

/* ══ META CHIPS (scheda singola) ══════════════════════ */
.bge-meta-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0 20px;
    border-bottom: 1px solid var(--bge-gray-200);
    margin-bottom: 28px;
}
.bge-meta-chip-sym {
    width: 44px; height: 50px;
    min-width: 44px; max-width: 44px;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.bge-meta-chip-sym svg {
    width: 36px  !important; height: 44px !important;
    max-width: 36px !important; max-height: 44px !important;
    min-width: 36px !important; min-height: 44px !important;
    display: block !important; overflow: hidden !important;
}
.bge-meta-chip {
    display: flex; flex-direction: column;
    padding: 6px 14px;
    border: 1px solid var(--bge-gray-200);
    border-radius: 50px;
    background: var(--bge-white);
}
.bge-chip-label {
    font-family: var(--bge-font);
    font-size: 9px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--bge-gray-400); line-height: 1.2;
}
.bge-chip-value {
    font-family: var(--bge-font);
    font-size: 15px; color: var(--bge-black); line-height: 1.3;
}
.bge-chip-value a { color: var(--bge-black); text-decoration: none; }
.bge-chip-value a:hover { color: var(--bge-gray-600); text-decoration: underline; }
@media (max-width: 640px) {
    .bge-meta-chips { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 12px; }
}

/* ══ CORPO SCHEDA SINGOLA ══════════════════════════════ */
.bge-cristallo-single { max-width: 860px; margin: 0 auto; padding: 0 16px; }
.bge-crystal-image-wrap { margin: 0 0 32px; text-align: center; border-radius: 8px; overflow: hidden; }
.bge-crystal-image-wrap .bge-crystal-img { width: 100%; max-height: 420px; object-fit: cover; display: block; border-radius: 8px; }

.bge-section { margin-bottom: 40px; }
.bge-section-head {
    display: flex; align-items: baseline; gap: 8px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--bge-gray-200);
    padding-bottom: 6px;
}
.bge-sec-icon { font-size: 14px; color: var(--bge-gray-400); flex-shrink: 0; }
.bge-section-head h2 {
    font-family: var(--bge-font);
    font-size: 26px; font-weight: 600;
    color: var(--bge-black); margin: 0; line-height: 1.2;
}
.bge-section-content, .bge-evocativa {
    font-family: var(--bge-font);
    font-size: 21px; line-height: 1.7; color: var(--bge-black);
}
.bge-section-content p, .bge-evocativa p { margin-bottom: 1em; }

.bge-intenzioni-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bge-intenzione-btn {
    font-family: var(--bge-font); font-size: 16px;
    padding: 6px 16px;
    border: 1px solid var(--bge-black); border-radius: 50px;
    color: var(--bge-black); text-decoration: none;
    transition: all .15s;
}
.bge-intenzione-btn:hover { background: var(--bge-gray-100); border-color: var(--bge-gray-600); color: var(--bge-black); }
.bge-intenzioni-hint { font-family: var(--bge-font); font-size: 14px; color: var(--bge-gray-400); margin: 0; }

.bge-corr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.bge-corr-item { display: flex; flex-direction: column; gap: 2px; }
.bge-corr-label { font-family: var(--bge-font); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bge-gray-400); }
.bge-corr-value { font-family: var(--bge-font); font-size: 18px; color: var(--bge-black); }
.bge-corr-links a { color: var(--bge-black); text-decoration: none; }
.bge-corr-links a:hover { color: var(--bge-gray-600); text-decoration: underline; }
.bge-corr-links a + a::before { content: ' · '; }

.bge-rituali-box {
    font-family: var(--bge-font); font-size: 20px; line-height: 1.75;
    border-left: 3px solid var(--bge-black); padding-left: 20px; color: var(--bge-black);
}
.bge-rituali-box p { margin-bottom: .9em; }

.bge-avvertenze-box {
    background: var(--bge-gold-bg);
    border: 1px solid #dfc040; border-left: 4px solid var(--bge-gold);
    border-radius: var(--bge-radius); padding: 18px 22px;
    color: #1a1200; font-family: var(--bge-font);
    font-size: 21px; line-height: 1.7;
}
.bge-avvertenze-box p { margin-bottom: .8em; }
.bge-avvertenze-box p:last-child { margin-bottom: 0; }

/* ── FAQ ─────────────────────────────────────────── */
.bge-faq-accordion { display: flex; flex-direction: column; }
.bge-faq-item { border-bottom: 1px solid var(--bge-gray-200); }
.bge-faq-item:first-child { border-top: 1px solid var(--bge-gray-200); }
.bge-faq-question {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; text-align: left;
    background: none; border: none; cursor: pointer;
    padding: 18px 0;
    font-family: var(--bge-font); font-size: 21px; font-weight: 600;
    color: var(--bge-black); gap: 12px; transition: color .15s;
}
.bge-faq-question:hover { color: var(--bge-gray-600); }
.bge-faq-question[aria-expanded="true"] .bge-faq-chevron { transform: rotate(45deg); }
.bge-faq-chevron { font-size: 22px; font-weight: 300; flex-shrink: 0; transition: transform .2s ease; line-height: 1; }
.bge-faq-answer { display: none; overflow: hidden; }
.bge-faq-answer.bge-faq-open {
    display: block !important;
    padding-bottom: 20px;
    animation: bge-faq-in .2s ease;
}
.bge-faq-answer p { font-family: var(--bge-font); font-size: 21px; line-height: 1.75; color: var(--bge-black); margin: 0; }
@keyframes bge-faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

.bge-single-back { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--bge-gray-200); }
.bge-single-back a { font-family: var(--bge-font); font-size: 17px; color: var(--bge-black); text-decoration: none; }
.bge-single-back a:hover { color: var(--bge-gray-600); text-decoration: underline; }

/* ══ ARCHIVIO ══════════════════════════════════════════ */
.bge-cristalli-archive { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

.bge-vista-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 24px; }
.bge-vista-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border: 1.5px solid var(--bge-gray-200); border-radius: var(--bge-radius);
    font-size: 16px; color: var(--bge-gray-400); text-decoration: none;
    transition: all .15s;
}
.bge-vista-btn.active, .bge-vista-btn:hover {
    border-color: var(--bge-black); color: var(--bge-black); background: var(--bge-gray-100);
}
.bge-vista-count { margin-left: auto; font-family: var(--bge-font); font-size: 14px; color: var(--bge-gray-400); }

.bge-filter-active-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--bge-font); font-size: 15px; }
.bge-filter-active-label { font-weight: 600; color: var(--bge-black); }
.bge-filter-count { color: var(--bge-gray-400); }
.bge-filter-clear-link { margin-left: auto; color: var(--bge-gray-400); text-decoration: none; font-size: 13px; }
.bge-filter-clear-link:hover { color: var(--bge-black); }

/* ── GRID 4 colonne ────────────────────────────────── */
.bge-vista-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}
.bge-vista-grid.bge-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bge-vista-grid.bge-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bge-vista-grid.bge-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bge-vista-grid.bge-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

/* ── CARD ──────────────────────────────────────────── */
.bge-crist-card {
    background: var(--bge-white);
    border: 1px solid var(--bge-gray-200);
    border-radius: var(--bge-radius);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.bge-crist-card:hover {
    border-color: #aaa;
    box-shadow: 0 6px 24px rgba(0,0,0,.1);
}

/* Forza colori dentro il link-card — override tema */
.bge-card-link {
    display: block;
    text-decoration: none !important;
    color: var(--bge-black) !important;
}
.bge-card-link:hover { text-decoration: none !important; }
.bge-card-link * { color: inherit; }

.bge-card-visual {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: var(--bge-gray-100);
}
.bge-card-visual .bge-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bge-card-svg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--bge-black); opacity: .3; }
.bge-card-svg-default { opacity: .15; }

.bge-card-body { padding: 18px 20px 22px; }
.bge-card-title {
    font-family: var(--bge-font);
    font-size: 26px; font-weight: 700;
    color: var(--bge-black) !important;
    margin: 0 0 6px; line-height: 1.2;
}
.bge-card-sottotitolo {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    line-height: 1.4;
    margin: 4px 0 10px;
    font-style: italic;
    display: block !important;
    text-decoration: none !important;
}
.bge-card-intenzione {
    display: inline-block;
    font-family: var(--bge-font);
    font-size: 12px;
    color: var(--bge-gray-400) !important;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ── LISTA vista ────────────────────────────────── */
.bge-vista-lista { display: flex; flex-direction: column; }
.bge-vista-lista .bge-crist-card { border-radius: 0; border-left: none; border-right: none; border-top: none; box-shadow: none !important; }
.bge-vista-lista .bge-crist-card:first-child { border-top: 1px solid var(--bge-gray-200); }
.bge-vista-lista .bge-crist-card:hover { background: var(--bge-gray-100); border-color: var(--bge-gray-200); }
.bge-vista-lista .bge-card-link { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.bge-vista-lista .bge-card-visual { width: 64px; height: 64px; min-width: 64px; aspect-ratio: unset; flex-shrink: 0; border-radius: 4px; }
.bge-vista-lista .bge-card-body { padding: 0; }
.bge-vista-lista .bge-card-title { font-size: 20px; margin-bottom: 2px; }

.bge-crist-empty { text-align: center; padding: 60px 0; font-family: var(--bge-font); font-size: 20px; color: var(--bge-gray-400); }
.bge-crist-empty a { color: var(--bge-black); display: block; margin-top: 12px; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 1000px) { .bge-vista-grid { grid-template-columns: repeat(3, 1fr) !important; gap: 16px; } }
@media (max-width: 680px)  { .bge-vista-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px; } }
@media (max-width: 380px)  { .bge-vista-grid { grid-template-columns: 1fr; } }

/* Campo cerca — leggermente più ampio degli altri */
.bge-filtro-field:last-of-type {
    flex: 1.5 1 0;
}

/* Override colori tema su FAQ button */
.bge-faq-question,
.bge-faq-question:link,
.bge-faq-question:visited,
.bge-faq-question:focus {
    color: var(--bge-black) !important;
    background: none !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
}
.bge-faq-question:hover {
    color: var(--bge-gray-600) !important;
    background: none !important;
    box-shadow: none !important;
}

/* ══ NAV SEZIONI CRISTALLO ══════════════════════════════ */
.bge-sections-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 36px;
    padding: 0;
}
.bge-sections-nav-link {
    display: inline-block;
    padding: 7px 16px;
    border: 1px solid var(--bge-gray-200);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--bge-black) !important;
    text-decoration: none !important;
    transition: background .15s, border-color .15s;
    cursor: pointer;
}
.bge-sections-nav-link:hover {
    background: var(--bge-black);
    color: #fff !important;
    border-color: var(--bge-black);
}
.bge-sections-nav-link.bge-nav-active {
    background: var(--bge-black);
    color: #fff !important;
    border-color: var(--bge-black);
}
@media (max-width: 680px) {
    .bge-sections-nav { gap: 6px; }
    .bge-sections-nav-link { font-size: 12px; padding: 6px 12px; }
}

