/* ═══════════════════════════════════════════════════
   SPEZIERIA - LA RUOTA DELL'ANNO - v1.4.7
   
   Palette: #daa520 oro · #121212 bg · #1a1a1a card · #333333 bordi · #e0e0e0 testo
   Font dal tema XStore: EB Garamond (titoli) + Lexend Deca (body)
   ═══════════════════════════════════════════════════ */

/* ── WRAPPER ───────────────────────────────────── */

.spz-ruota {
    position: relative;
    box-sizing: border-box;
}

.spz-ruota *,
.spz-ruota *::before,
.spz-ruota *::after {
    box-sizing: border-box;
}

/* ── LA RUOTA ANIMATA ──────────────────────────── */

.spz-ruota .spz-ruota-wheel-wrap {
    position: relative;
    margin: 0 auto;
    width: 100%;
}

/* SVG - ruota lentamente */
.spz-ruota .spz-ruota-svg {
    display: block;
    width: 100%;
    height: auto;
    animation: spzRuotaSpin 150s linear infinite;
}

@keyframes spzRuotaSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── CENTRO (sovrapposto, NON ruota) ───────────── */

.spz-ruota .spz-ruota-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 2;
    width: 55%;
    max-width: 280px;
}

.spz-ruota .spz-ruota-c-icon {
    margin-bottom: 10px;
    filter: drop-shadow(0 0 12px rgba(218, 165, 32, 0.5));
}

.spz-ruota .spz-ruota-c-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.spz-ruota .spz-ruota-c-name {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
    color: #daa520;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(218, 165, 32, 0.3);
}

.spz-ruota .spz-ruota-c-sub {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    color: #e0e0e0;
    opacity: 0.6;
    margin-top: 4px;
}

.spz-ruota .spz-ruota-c-date {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.4;
    color: #e0e0e0;
    margin-top: 10px;
}

.spz-ruota .spz-ruota-countdown {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #e0e0e0;
    opacity: 0.6;
    margin-top: 6px;
    letter-spacing: 1px;
}

.spz-ruota .spz-ruota-countdown.spz-ruota-today {
    color: #daa520;
    opacity: 1;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(218, 165, 32, 0.4);
}

/* ── PARTICELLE ────────────────────────────────── */

.spz-ruota .spz-ruota-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.spz-ruota .spz-ruota-particle {
    position: absolute;
    background: #daa520;
    border-radius: 50%;
    opacity: 0;
    animation: spzRuotaFloat linear infinite;
}

@keyframes spzRuotaFloat {
    0%   { opacity: 0; transform: translateY(0) scale(0); }
    15%  { opacity: 0.6; transform: scale(1); }
    85%  { opacity: 0.15; }
    100% { opacity: 0; transform: translateY(-120px) scale(0.5); }
}

/* ── BANNER SABBAT ─────────────────────────────── */

.spz-ruota .spz-ruota-banner {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 36px 24px;
    text-align: center;
    margin-bottom: 2em;
    position: relative;
    overflow: hidden;
}

/* Bagliore rotante sottile nel banner */
.spz-ruota .spz-ruota-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent 0deg, rgba(218, 165, 32, 0.03) 60deg, transparent 120deg);
    animation: spzRuotaSpin 80s linear infinite;
    pointer-events: none;
}

.spz-ruota .spz-ruota-b-icon {
    display: block;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.spz-ruota .spz-ruota-b-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 14px rgba(218, 165, 32, 0.35));
}

.spz-ruota .spz-ruota-b-date {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #daa520;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.spz-ruota .spz-ruota-b-title {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 30px;
    line-height: 36px;
    color: #daa520;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5em 0;
    position: relative;
    z-index: 1;
}

.spz-ruota .spz-ruota-b-theme {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    color: #e0e0e0;
    font-style: italic;
    max-width: 550px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ── HEADER SEZIONE PRODOTTI ───────────────────── */

.spz-ruota .spz-ruota-prod-header {
    text-align: center;
    margin-bottom: 1.5em;
}

.spz-ruota .spz-ruota-prod-title {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 28px;
    color: #daa520;
    text-transform: none;
    margin: 0;
}

/* ── GRIGLIA PRODOTTI ──────────────────────────── */

.spz-ruota .spz-ruota-products {
    display: grid;
    gap: 20px;
}

.spz-ruota .spz-ruota-cols-2 { grid-template-columns: repeat(2, 1fr); }
.spz-ruota .spz-ruota-cols-3 { grid-template-columns: repeat(3, 1fr); }
.spz-ruota .spz-ruota-cols-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* Card prodotto */
.spz-ruota .spz-ruota-pcard {
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.spz-ruota .spz-ruota-pcard:hover {
    border-color: #daa520;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(218, 165, 32, 0.06);
}

.spz-ruota .spz-ruota-pcard-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.spz-ruota .spz-ruota-pcard-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background-color: #121212;
}

.spz-ruota .spz-ruota-pcard-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.spz-ruota .spz-ruota-pcard:hover .spz-ruota-pcard-img img {
    transform: scale(1.05);
}

.spz-ruota .spz-ruota-pcard-ph {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
}

.spz-ruota .spz-ruota-pcard-ph img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Badge Sabbat su card prodotto */
.spz-ruota .spz-ruota-pcard-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'Lexend Deca', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #121212;
    background-color: #daa520;
    padding: 3px 10px;
    border-radius: 3px;
    display: inline-block;
    letter-spacing: 0.5px;
}

.spz-ruota .spz-ruota-pcard-body {
    padding: 15px 20px;
}

.spz-ruota .spz-ruota-pcard-name {
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 24px;
    color: #e0e0e0;
    margin-bottom: 6px;
}

.spz-ruota .spz-ruota-pcard-price {
    font-family: 'Lexend Deca', sans-serif;
    font-size: 16px;
    color: #daa520;
    font-weight: 700;
}

/* Bottone aggiungi */
.spz-ruota .spz-ruota-cart-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #333333;
    color: #daa520;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
    padding: 0;
}

.spz-ruota .spz-ruota-cart-btn:hover {
    background-color: #daa520;
    border-color: #daa520;
    color: #121212;
}

/* ── RESPONSIVE (768px) ────────────────────────── */

@media (max-width: 768px) {

    /* Ruota: dimensione mobile-friendly */
    .spz-ruota .spz-ruota-wheel-wrap {
        max-width: 340px;
    }

    .spz-ruota .spz-ruota-c-icon {
        margin-bottom: 6px;
    }

    .spz-ruota .spz-ruota-c-img {
        width: 72px;
        height: 72px;
    }

    .spz-ruota .spz-ruota-c-name {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .spz-ruota .spz-ruota-c-sub {
        font-size: 11px;
    }

    .spz-ruota .spz-ruota-c-date {
        font-size: 13px;
        margin-top: 6px;
    }

    .spz-ruota .spz-ruota-countdown {
        font-size: 12px;
    }

    /* Banner */
    .spz-ruota .spz-ruota-banner {
        padding: 24px 16px;
    }

    .spz-ruota .spz-ruota-b-icon {
        margin-bottom: 10px;
    }

    .spz-ruota .spz-ruota-b-img {
        width: 80px;
        height: 80px;
    }

    .spz-ruota .spz-ruota-b-title {
        font-size: 24px;
        line-height: 30px;
    }

    .spz-ruota .spz-ruota-b-theme {
        font-size: 15px;
        line-height: 22px;
    }

    /* Header prodotti */
    .spz-ruota .spz-ruota-prod-title {
        font-size: 19px;
        line-height: 25px;
    }

    /* Badge su card */
    .spz-ruota .spz-ruota-pcard-badge {
        font-size: 9px;
        padding: 2px 7px;
    }

    /* Prodotti */
    .spz-ruota .spz-ruota-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .spz-ruota .spz-ruota-pcard-name {
        font-size: 15px;
        line-height: 20px;
    }

    .spz-ruota .spz-ruota-pcard-price {
        font-size: 14px;
    }

    .spz-ruota .spz-ruota-pcard-body {
        padding: 10px 12px;
    }

    .spz-ruota .spz-ruota-cart-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
        bottom: 10px;
        right: 10px;
    }
}

/* Ultra-small (375px e sotto) */
@media (max-width: 400px) {

    .spz-ruota .spz-ruota-wheel-wrap {
        max-width: 290px;
    }

    .spz-ruota .spz-ruota-c-img {
        width: 56px;
        height: 56px;
    }

    .spz-ruota .spz-ruota-c-name {
        font-size: 17px;
        letter-spacing: 1px;
    }

    .spz-ruota .spz-ruota-c-sub {
        font-size: 10px;
    }

    .spz-ruota .spz-ruota-c-date {
        font-size: 12px;
    }

    .spz-ruota .spz-ruota-b-img {
        width: 64px;
        height: 64px;
    }

    .spz-ruota .spz-ruota-products {
        grid-template-columns: 1fr;
    }
}
