.tv-menu, .tv-foto, .tv-pannello {
    border: 0;
    padding: clamp(24px, 5vw, 68px);
}
.tv-menu {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    max-height: 100%;
    margin: 0;
    color: #444547;
    background: #f2f3f8;
    text-transform: uppercase;
}
.tv-menu ul {
    display: grid;
    gap: 1em;
    padding: 0;
    list-style: none;
    font-size: clamp(1.1rem, 3vw, 1.7rem);
}
.tv-menu li ul { margin: .7em 0 0 1em; font-size: .82em; }
.tv-menu nav { margin-top: 3rem; }
.tv-menu::backdrop, .tv-foto::backdrop, .tv-pannello::backdrop { background: rgba(24, 23, 20, .65); }
.tv-chiudi {
    position: absolute;
    z-index: 1;
    top: .7rem;
    right: .8rem;
    color: inherit;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
}
.tv-foto { max-width: 94vw; background: #252422; color: white; }
.tv-foto img { display: block; max-width: 100%; max-height: 82dvh; object-fit: contain; }
body[data-tv-solo-menu] .tv-menu { margin: 0; width: 100%; max-width: none; }
body:has(dialog:modal) { overflow: hidden; }
.tv-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem max(24px, 5vw);
    background: #444547;
    color: white;
}
.tv-footer a { color: inherit; }
.tv-footer img { display: block; object-fit: contain; }
[data-tv-galleria] .swiper-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
[data-tv-galleria] .swiper-slide {
    flex: 0 0 calc(100% / var(--tv-visibili, 1));
    scroll-snap-align: start;
}
@media (max-width: 767px) {
    [data-tv-galleria] .swiper-slide { flex-basis: 100%; }
}

.tv-pannello { max-width: min(960px, 95vw); max-height: 88dvh; padding: 0; }
.tv-pannello .tv-chiudi { background: #fff; padding: .16em .25em; }
.tv-pannello [data-tv-rivela] { cursor: pointer; }
.tv-pannello .tv-vista-tab-content.tv-vista-active { display: block; }
