/* ===== Reset ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Bebas Neue', 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ===== Layout pagine ===== */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.page--home    { gap: 16px; }
.page--access  { gap: 28px; }
.page--reserved { gap: 28px; }

/* ===== Logo ===== */
.logo {
    width: 160px;
    height: auto;
    max-width: 40vw;
    margin-bottom: 16px;
    user-select: none;
    -webkit-user-drag: none;
}

/* ===== Titolo ===== */
.title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(28px, 6vw, 38px);
    line-height: 1.15;
    letter-spacing: 0.08em;
    text-align: center;
    font-weight: normal;
}

/* ===== Bottoni ===== */
.btn {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 999px;
    padding: 14px 40px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(14px, 3.5vw, 16px);
    letter-spacing: 0.14em;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}

.btn:hover,
.btn:focus-visible {
    background: #fff;
    color: #000;
    outline: none;
}

.btn--large {
    min-width: 240px;
    padding: 20px 64px;
    font-size: clamp(16px, 4vw, 20px);
    text-align: center;
}

/* ===== Modal pop-up password ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.modal-overlay.is-hidden { display: none; }
.modal-overlay.is-open   { display: flex; }

.modal {
    background: #000;
    border: 1px solid #fff;
    border-radius: 12px;
    padding: 40px 32px;
    max-width: 360px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.modal__title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 0.14em;
}

.modal form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.modal__input {
    background: #000;
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    padding: 12px 16px;
    width: 100%;
    font-size: 15px;
    text-align: center;
    font-family: inherit;
    letter-spacing: 0.1em;
}

.modal__input:focus {
    outline: none;
    border-color: #fff;
}

.modal__submit {
    background: #fff;
    color: #000;
    border: none;
    border-radius: 999px;
    padding: 12px 36px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 0.14em;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.modal__submit:hover { opacity: 0.85; }

.modal__error {
    color: #ff6b6b;
    font-size: 13px;
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: normal;
    text-align: center;
}

.modal__close {
    background: transparent;
    border: none;
    color: #888;
    font-size: 12px;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 4px 8px;
    font-family: system-ui, -apple-system, sans-serif;
    transition: color 0.2s ease;
}

.modal__close:hover { color: #fff; }

/* ===== Logout link ===== */
.logout-link {
    color: #666;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.05em;
    margin-top: 16px;
    font-family: system-ui, -apple-system, sans-serif;
    transition: color 0.2s ease;
}

.logout-link:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .logo { width: 130px; }
    .btn--large {
        min-width: 200px;
        padding: 18px 48px;
    }
    .modal { padding: 32px 24px; }
}
