/**
 * Widget: block-image|restaurant-event — hero immagine del ristorante (no slider).
 * Copia di block-image/page-event, riferita al post restaurant (titolo + short content).
 * Tutte le regole scopate sotto .block-image-restaurant-event.
 * Full-bleed sotto l'header trasparente (margin-top negativo).
 */

.block-image-restaurant-event {
    --ber-header-h: 81px;
    --ber-cream: var(--website-third, #FFF5E2);
    --ber-cream-soft: rgba(255, 245, 226, 0.85);
    position: relative;
    display: block;
    width: 100%;
    height: 100dvh;
    min-height: 560px;
    margin-top: calc(-1 * var(--ber-header-h));
    overflow: hidden;
}

/* Sfondo */
.block-image-restaurant-event .block-image-restaurant-event-bg { position: absolute; inset: 0; z-index: 0; }
.block-image-restaurant-event .block-image-restaurant-event-bg picture { display: block; width: 100%; height: 100%; }
.block-image-restaurant-event .block-image-restaurant-event-img {
    width: 100%; height: 100%; display: block;
    object-fit: cover; user-select: none; pointer-events: none;
}
.block-image-restaurant-event .block-image-restaurant-event-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(12, 10, 9, 0.45) 0%, rgba(12, 10, 9, 0.20) 38%, rgba(12, 10, 9, 0.65) 100%);
}

/* Contenuto in basso a sinistra */
.block-image-restaurant-event .block-image-restaurant-event-content {
    position: absolute;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
    bottom: clamp(32px, 6vw, 72px);
    width: 100%;
    max-width: var(--website-container-max-width, 1440px);
    padding: 0 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(16px, 2.5vw, 28px);
    color: var(--ber-cream);
}
.block-image-restaurant-event .block-image-restaurant-event-breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    font-family: 'Erode', serif; text-transform: uppercase; font-size: 0.875rem; letter-spacing: 0.02em;
}
.block-image-restaurant-event .block-image-restaurant-event-breadcrumb a { color: rgba(255, 245, 226, 0.6); text-decoration: none; transition: color .18s ease; }
.block-image-restaurant-event .block-image-restaurant-event-breadcrumb a:hover { color: var(--ber-cream); }
.block-image-restaurant-event .block-image-restaurant-event-breadcrumb .is-current { color: var(--ber-cream); }
.block-image-restaurant-event .block-image-restaurant-event-heading {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.4vw, 16px);
}
.block-image-restaurant-event .block-image-restaurant-event-title {
    margin: 0;
    max-width: 18ch;
    color: var(--ber-cream);
    text-transform: uppercase;
    font-weight: 400;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.02;
}
.block-image-restaurant-event .block-image-restaurant-event-type {
    margin: 0;
    color: var(--ber-cream-soft);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    line-height: 1.4;
}
.block-image-restaurant-event .block-image-restaurant-event-address {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ber-cream-soft);
    font-size: 1rem;
    line-height: 1.4;
}
.block-image-restaurant-event .block-image-restaurant-event-pin { flex: none; }

/* Scorri per scoprire (in basso a destra) */
.block-image-restaurant-event .block-image-restaurant-event-scrollcue {
    position: absolute;
    z-index: 2;
    right: clamp(20px, 4vw, 44px);
    bottom: clamp(32px, 6vw, 72px);
    display: inline-flex;
    align-items: flex-end;
    gap: 12px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ber-cream);
    cursor: pointer;
    transition: opacity .2s ease;
}
.block-image-restaurant-event .block-image-restaurant-event-scrollcue-icon {
    display: inline-flex;
    animation: block-image-restaurant-event-cue 1.8s ease-in-out infinite;
}
.block-image-restaurant-event .block-image-restaurant-event-scrollcue-label { font-size: 1.25rem; font-weight: 500; line-height: 1; white-space: nowrap; }
.block-image-restaurant-event .block-image-restaurant-event-scrollcue:hover { opacity: .8; }
.block-image-restaurant-event .block-image-restaurant-event-scrollcue:focus-visible { outline: 2px solid var(--ber-cream); outline-offset: 4px; }
@keyframes block-image-restaurant-event-cue {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

@media (max-width: 575.98px) {
    .block-image-restaurant-event .block-image-restaurant-event-title { font-size: clamp(2rem, 9vw, 2.8rem); }
    .block-image-restaurant-event .block-image-restaurant-event-scrollcue-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .block-image-restaurant-event .block-image-restaurant-event-scrollcue-icon { animation: none; }
}
