.viboras-home-phone {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
    background-color: #0f172a;
    background-size: cover;
    background-position: center;
    color: #fff;
    box-sizing: border-box;
}

.viboras-home-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.viboras-home-brand {
    display: block;
    width: auto;
    max-width: min(280px, 72vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.viboras-home-menu {
    width: 2.75rem;
    height: 2.75rem;
    margin-top: 0.25rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
}

.viboras-home-menu span {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: #fff;
}

.viboras-phone-menu {
    margin-top: 0.75rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.viboras-phone-menu p {
    margin: 0 0 0.4rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.viboras-phone-menu a {
    display: block;
    padding: 0.75rem 0.35rem;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.viboras-home-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.viboras-home-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 4rem;
    padding: 0 1.15rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-align: left;
}

.viboras-home-btn-primary {
    background: #00b0e1;
    border-color: rgba(255, 255, 255, 0.35);
    color: #0b1c2c;
}

.viboras-prossime-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0 1.5rem;
}

.viboras-prossime-head h1 {
    margin: 0;
    font-size: 1.45rem;
}

.viboras-prossime-back {
    font-weight: 700;
    text-decoration: none;
}

.viboras-carousel {
    margin-bottom: 2rem;
}

.viboras-carousel h2 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.viboras-track {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
}

.viboras-card {
    flex: 0 0 min(295px, 82vw);
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 180px;
    padding: 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(36, 61, 87, 0.12);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.viboras-card-when,
.viboras-card-where {
    margin: 0;
}

.viboras-card-when {
    font-weight: 800;
    color: #243d57;
}

.viboras-card-where {
    color: #006684;
    font-weight: 600;
}

.viboras-card-people {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.viboras-card-people li {
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #eef3f6;
    font-size: 0.85rem;
}

.viboras-card-open {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 0.7rem;
    background: #44ccfe;
    color: #004d64;
    font-weight: 700;
    text-decoration: none;
}

.viboras-empty {
    margin-top: 0;
}

@media (max-width: 959px) {
    body.viboras-phone-gate .tm-header-mobile,
    body.viboras-phone-gate header.tm-header,
    body.viboras-phone-gate footer {
        display: none !important;
    }

    .viboras-home-phone {
        position: fixed;
        inset: 0;
        z-index: 20;
        overflow: auto;
    }
}

.viboras-prenota-phone {
    padding: 0.5rem 1.15rem calc(1.5rem + env(safe-area-inset-bottom));
    color: #243d57;
}

.viboras-sede h2,
.viboras-prenota-when {
    margin: 0;
}

.viboras-sede h2 {
    font-size: 1.35rem;
}

.viboras-sede p {
    margin: 0.35rem 0 0;
    color: #006684;
    font-weight: 600;
}

.viboras-sede-change {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.9rem;
    font-weight: 700;
}

.viboras-sede-change select,
.viboras-court,
.viboras-day,
.viboras-slot,
.viboras-solo {
    border-radius: 1rem;
    border: 1px solid rgba(36, 61, 87, 0.14);
    background: #fff;
    color: #243d57;
}

.viboras-sede-change select {
    min-height: 3.5rem;
    padding: 0 0.9rem;
    font: inherit;
    font-weight: 700;
}

.viboras-day-strip {
    display: flex;
    gap: 0.5rem;
    margin: 1.15rem 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.viboras-day {
    flex: 0 0 4.4rem;
    min-height: 4.6rem;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
}

.viboras-day-num {
    font-size: 1.25rem;
    font-weight: 800;
}

.viboras-day.is-on,
.viboras-court.is-on {
    background: #243d57;
    border-color: #243d57;
    color: #fff;
}

.viboras-courts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.viboras-court {
    flex: 1 1 30%;
    min-height: 3.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
}

.viboras-prenota-when {
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.viboras-solo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 3.5rem;
    margin-bottom: 0.9rem;
    padding: 0 1rem;
    font-weight: 800;
}

.viboras-solo input {
    width: 1.45rem;
    height: 1.45rem;
}

.viboras-slots {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.viboras-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 3rem;
    padding: 0 1rem;
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.viboras-slot.is-free {
    min-height: 4rem;
    justify-content: center;
    background: #00b0e1;
    border-color: rgba(255, 255, 255, 0.35);
    color: #0b1c2c;
    font-weight: 800;
}

.viboras-slot.is-busy,
.viboras-slot.is-past {
    min-height: 2.6rem;
    background: transparent;
    border-color: transparent;
    color: #7d8b99;
    font-weight: 600;
}

.viboras-slot-mark {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.viboras-slot[hidden] {
    display: none !important;
}

@media (max-width: 959px) {
    body.viboras-phone-prenota .viboras-prenota-week {
        display: none !important;
    }
}

@media (min-width: 960px) {
    .viboras-desktop-keep {
        display: contents;
    }

    .viboras-prenota-phone {
        display: none !important;
    }
}
