/*
 * Hero banner della settimana promo. Ricalca lo slider .obly-slider della
 * homepage (altezza, font, scrim, bottone) cosi' il cambio non si nota.
 */
.hpw-hero {
    --hpw-altezza: 100vh;
    --hpw-max: 1140px;
    --hpw-pad: clamp(20px, 5vw, 80px);
    --hpw-testo: #fff;
    --hpw-scrim: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .65) 100%);
    position: relative;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: var(--hpw-altezza);
    overflow: hidden;
    background: #1a1a1a;
    color: var(--hpw-testo);
    font-family: "Poppins", sans-serif;
}

/*
 * Su mobile 100vh e' l'altezza con le barre del browser nascoste: con la barra
 * degli indirizzi visibile il fondo del banner (bottone) finirebbe sotto.
 * 100svh e' l'area visibile anche con le barre; 100vh resta per i browser vecchi.
 */
@supports (height: 100svh) {
    .hpw-hero {
        --hpw-altezza: 100svh;
    }
}

.hpw-picture,
.hpw-hero .hpw-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
}

.hpw-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--hpw-scrim);
    pointer-events: none;
}

.hpw-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    max-width: var(--hpw-max);
    margin: 0 auto;
    padding: 0 var(--hpw-pad) clamp(50px, 7vh, 80px);
    text-align: left;
}

/* Il tema colora e impagina h2 e p con selettori piu' specifici: qui vince il banner. */
.hpw-hero p,
.hpw-hero h2 {
    margin: 0;
    color: inherit !important;
    font: inherit;
    font-family: inherit !important;
}

.hpw-etichetta {
    font-size: clamp(12px, 1.1vw, 15px) !important;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .9;
}

.hpw-sconto {
    font-size: clamp(44px, 7vw, 96px) !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    letter-spacing: -.02em;
    margin: 4px 0 6px !important;
}

.hpw-titolo {
    font-size: clamp(18px, 3.4vw, 40px) !important;
    line-height: 1.06 !important;
    letter-spacing: .5px;
}

.hpw-sottotitolo {
    margin-top: 6px !important;
    font-size: clamp(15px, 1.7vw, 22px) !important;
    opacity: .95;
}

.hpw-btn {
    display: inline-block;
    flex-shrink: 0;
    padding: 13px 30px;
    background: #000;
    color: var(--hpw-testo);
    font: inherit;
    font-size: 15px;
    letter-spacing: .4px;
    text-decoration: none;
    transition: background .25s ease, color .25s ease;
}

.hpw-btn:hover,
.hpw-btn:focus-visible {
    background: var(--hpw-testo);
    color: #111;
}

/* ---- Giorno speciale (venerdi'): piu' scuro, sconto enorme, nastro e countdown ---- */

.hpw-hero--speciale {
    --hpw-scrim: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .2) 40%, rgba(0, 0, 0, .85) 100%);
    background: #000;
}

.hpw-hero--speciale .hpw-content {
    flex-direction: column;
    align-items: flex-start;
}

.hpw-hero--speciale .hpw-etichetta {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid currentColor;
    font-weight: 600;
    letter-spacing: .3em;
}

.hpw-hero--speciale .hpw-sconto {
    font-size: clamp(88px, 17vw, 240px) !important;
    font-weight: 700 !important;
    line-height: .9 !important;
    letter-spacing: -.04em;
    margin: 14px 0 10px !important;
}

.hpw-hero--speciale .hpw-titolo {
    text-transform: uppercase;
    letter-spacing: .12em;
}

.hpw-hero--speciale .hpw-btn {
    background: var(--hpw-testo);
    color: #000;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hpw-hero--speciale .hpw-btn:hover,
.hpw-hero--speciale .hpw-btn:focus-visible {
    background: #000;
    color: var(--hpw-testo);
    box-shadow: inset 0 0 0 1px var(--hpw-testo);
}

.hpw-countdown {
    margin-top: 14px !important;
    font-size: 14px !important;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .9;
}

.hpw-countdown span {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.hpw-nastro {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    overflow: hidden;
    padding: 10px 0;
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hpw-nastro__scorre {
    display: inline-flex;
    animation: hpw-nastro 40s linear infinite;
}

.hpw-nastro__scorre span {
    padding-right: .3em;
}

@keyframes hpw-nastro {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .hpw-nastro__scorre {
        animation: none;
    }
}

@media (max-width: 767px) {
    .hpw-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .hpw-hero .hpw-media {
        object-position: center 35%;
    }
}

/* ---- Pagina promo del giorno: [hybrid_promo_prodotti] ---- */

.hpw-vetrina__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 32px;
}

.hpw-vetrina__nav a {
    padding: 8px 16px;
    border: 1px solid currentColor;
    font-size: 14px;
    letter-spacing: .04em;
    text-decoration: none;
    text-transform: uppercase;
}

.hpw-vetrina__nav a:hover,
.hpw-vetrina__nav a:focus-visible {
    background: #000;
    border-color: #000;
    color: #fff;
}

.hpw-vetrina__nav span {
    opacity: .6;
}

.hpw-vetrina__sezione {
    margin: 0 0 48px;
    scroll-margin-top: 120px;
}

.hpw-vetrina__titolo {
    margin: 0 0 20px;
    font-size: clamp(20px, 2.4vw, 28px);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hpw-vetrina__vuota {
    padding: 40px 0;
    text-align: center;
}

.hpw-vetrina__admin {
    margin: 0 0 24px;
    padding: 12px 16px;
    border: 1px dashed #d63638;
    background: #fcf0f1;
    color: #50575e;
    font-size: 13px;
}

.hpw-vetrina__admin ul {
    margin: 6px 0 0 18px;
}
