/* ── St. Ermin's Pub — Tema Halloween / Día de los Muertos ── */
/* Applicato SOPRA il CSS base quando halloween_mode = 1           */

/* ── FONT TEMATICO ── */
@import url('https://fonts.googleapis.com/css2?family=Creepster&family=Permanent+Marker&display=swap');

/* ── VARIABILI OVERRIDE ── */
.sepm-halloween {
    --sepm-hw-orange:    #e8521a;
    --sepm-hw-gold:      #f0b429;
    --sepm-hw-magenta:   #c0266c;
    --sepm-hw-purple:    #6a0dad;
    --sepm-hw-teal:      #00897b;
    --sepm-hw-skull:     rgba(255,255,255,0.03);
}

/* ── SFONDO — pattern marigold / cempasúchil ── */
.sepm-halloween {
    background-color: #0d0800;
    background-image:
        /* petali cempasúchil SVG ripetuto */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cellipse cx='60' cy='20' rx='8' ry='16' fill='%23e8521a' opacity='0.07'/%3E%3Cellipse cx='60' cy='100' rx='8' ry='16' fill='%23e8521a' opacity='0.07'/%3E%3Cellipse cx='20' cy='60' rx='16' ry='8' fill='%23f0b429' opacity='0.06'/%3E%3Cellipse cx='100' cy='60' rx='16' ry='8' fill='%23f0b429' opacity='0.06'/%3E%3Cellipse cx='31' cy='31' rx='8' ry='16' transform='rotate(45 31 31)' fill='%23e8521a' opacity='0.05'/%3E%3Cellipse cx='89' cy='31' rx='8' ry='16' transform='rotate(-45 89 31)' fill='%23f0b429' opacity='0.05'/%3E%3Cellipse cx='31' cy='89' rx='8' ry='16' transform='rotate(-45 31 89)' fill='%23f0b429' opacity='0.05'/%3E%3Cellipse cx='89' cy='89' rx='8' ry='16' transform='rotate(45 89 89)' fill='%23e8521a' opacity='0.05'/%3E%3Ccircle cx='60' cy='60' r='10' fill='%23f0b429' opacity='0.04'/%3E%3C/svg%3E");
    background-size: 120px 120px;
}

/* ── BANNER TEMATICO ── */
.sepm-halloween-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(90deg, #6a0dad 0%, #c0266c 35%, #e8521a 65%, #f0b429 100%);
    padding: 12px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sepm-halloween-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(0,0,0,0.12) 8px,
        rgba(0,0,0,0.12) 16px
    );
    pointer-events: none;
}

.sepm-hw-label {
    font-family: 'Creepster', 'Permanent Marker', var(--sepm-font-d);
    font-size: clamp(14px, 3.5vw, 22px);
    color: #fff;
    letter-spacing: .06em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 20px rgba(240,180,41,0.4);
    position: relative;
    z-index: 1;
}

.sepm-hw-skull {
    font-size: 22px;
    position: relative;
    z-index: 1;
    animation: sepm-hw-bob 2s ease-in-out infinite;
}
.sepm-hw-skull:last-child { animation-delay: 1s; }

@keyframes sepm-hw-bob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
}

/* ── HERO OVERLAY ── */
.sepm-halloween .sepm-hero {
    background: linear-gradient(180deg, #1a0500 0%, #0d0800 100%);
    border-bottom-color: #e8521a;
    position: relative;
    overflow: hidden;
}

/* crani decorativi negli angoli hero — pure CSS */
.sepm-halloween .sepm-hero::before,
.sepm-halloween .sepm-hero::after {
    content: '💀';
    position: absolute;
    font-size: 80px;
    opacity: 0.06;
    pointer-events: none;
}
.sepm-halloween .sepm-hero::before { top: 10px; left: 10px; transform: rotate(-15deg); }
.sepm-halloween .sepm-hero::after  { top: 10px; right: 10px; transform: rotate(15deg); }

.sepm-halloween .sepm-eyebrow { color: #f0b429; }

/* ── NAVIGAZIONE ── */
.sepm-halloween .sepm-nav {
    background: linear-gradient(90deg, #1a0500, #0d0800, #1a0500);
    border-bottom: 2px solid #e8521a;
}

.sepm-halloween .sepm-nav-btn {
    color: #cc7733;
    border-bottom-color: transparent;
    transition: color .2s, border-color .2s;
}

.sepm-halloween .sepm-nav-btn:hover,
.sepm-halloween .sepm-nav-btn.is-active {
    color: #f0b429;
    border-bottom-color: #e8521a;
    text-shadow: 0 0 12px rgba(232,82,26,0.6);
}

/* ── SEZIONI — titoli tematici ── */
.sepm-halloween .sepm-section-title {
    font-family: 'Creepster', var(--sepm-font-d);
    color: #f0b429;
    text-shadow: 2px 2px 0 #6a0dad, 0 0 20px rgba(232,82,26,0.4);
    letter-spacing: .04em;
}

.sepm-halloween .sepm-section-header {
    border-bottom-color: #e8521a;
    position: relative;
}

/* fiaccola / marigold decorativa vicino al titolo sezione */
.sepm-halloween .sepm-section-header::after {
    content: '🌼';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 28px;
    opacity: 0.5;
}

/* ── CARD VOCI ── */
.sepm-halloween .sepm-item {
    border-color: rgba(232, 82, 26, 0.25);
    background: rgba(26, 5, 0, 0.5);
    transition: border-color .2s, box-shadow .2s;
}

.sepm-halloween .sepm-item:hover {
    border-color: rgba(240, 180, 41, 0.5);
    box-shadow: 0 0 16px rgba(232,82,26,0.2), inset 0 0 20px rgba(106,13,173,0.05);
}

.sepm-halloween .sepm-item-name {
    color: #f5e6c8;
}

.sepm-halloween .sepm-price {
    color: #f0b429;
    text-shadow: 0 0 8px rgba(240,180,41,0.3);
}

/* ── SPECIALI SLIDER ── */
.sepm-halloween .sepm-specials-wrap {
    background: linear-gradient(135deg, #1a0500 0%, #130a1a 50%, #0a1a00 100%);
    border-top: 2px solid #e8521a;
    border-bottom: 2px solid #6a0dad;
    position: relative;
    overflow: hidden;
}

/* candele agli angoli dello slider */
.sepm-halloween .sepm-specials-wrap::before,
.sepm-halloween .sepm-specials-wrap::after {
    content: '🕯️';
    position: absolute;
    font-size: 36px;
    top: 12px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
.sepm-halloween .sepm-specials-wrap::before { left: 16px; }
.sepm-halloween .sepm-specials-wrap::after  { right: 16px; }

.sepm-halloween .sepm-specials-label {
    font-family: 'Creepster', var(--sepm-font-d);
    color: #f0b429;
    letter-spacing: .1em;
    text-shadow: 0 0 16px rgba(232,82,26,0.7);
    font-size: 1.3em;
}

.sepm-halloween .sepm-special-card {
    background: linear-gradient(160deg, #1a0500 0%, #0d0800 100%);
    border: 1px solid rgba(232,82,26,0.4);
    box-shadow: 0 4px 24px rgba(106,13,173,0.2), 0 0 0 1px rgba(240,180,41,0.08);
}

.sepm-halloween .sepm-special-title {
    font-family: 'Creepster', var(--sepm-font-d);
    color: #f0b429;
    letter-spacing: .04em;
}

.sepm-halloween .sepm-special-badge {
    background: linear-gradient(90deg, #6a0dad, #c0266c) !important;
    box-shadow: 0 2px 8px rgba(106,13,173,0.4);
}

/* dots slider tematici */
.sepm-halloween .sepm-dot {
    background: rgba(240,180,41,0.3);
    border: 1px solid #e8521a;
}
.sepm-halloween .sepm-dot.is-active {
    background: #e8521a;
    box-shadow: 0 0 8px rgba(232,82,26,0.6);
}

/* ── FOOTER ── */
.sepm-halloween .sepm-footer {
    background: linear-gradient(180deg, #0d0800 0%, #1a0500 100%);
    border-top: 2px solid #e8521a;
    position: relative;
}

.sepm-halloween .sepm-footer::before {
    content: '🌼 💀 🌼 💀 🌼 💀 🌼 💀 🌼';
    display: block;
    text-align: center;
    font-size: 18px;
    opacity: 0.25;
    padding: 8px 0;
    letter-spacing: 8px;
}

/* ── ALLERGENI — colori adattati ── */
.sepm-halloween .sepm-allergen-pill {
    background: rgba(106,13,173,0.3);
    border-color: rgba(240,180,41,0.3);
    color: #e8c080;
}

/* ── SCROLLBAR TEMATICA ── */
.sepm-halloween ::-webkit-scrollbar { width: 6px; }
.sepm-halloween ::-webkit-scrollbar-track { background: #0d0800; }
.sepm-halloween ::-webkit-scrollbar-thumb { background: #e8521a; border-radius: 3px; }

/* ── OVERLAY PETALI CEMPASÚCHIL fisso ── */
.sepm-halloween::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        radial-gradient(ellipse at 5% 95%, rgba(232,82,26,0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 95% 5%, rgba(106,13,173,0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(240,180,41,0.03) 0%, transparent 60%);
}
