:root {
    --bg-ivory: #f6f1ea;
    --paper: rgba(255, 252, 248, 0.88);
    --text-main: #3f372f;
    --text-soft: #786d63;
    --gold-soft: #b49768;
    --rose-dusty: #d9b2ab;
    --shadow: 0 24px 60px rgba(75, 58, 45, 0.18);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-main);
    background:
        linear-gradient(rgba(34, 48, 61, 0.38), rgba(34, 48, 61, 0.28)),
        radial-gradient(circle at top left, rgba(217, 178, 171, 0.45), transparent 35%),
        radial-gradient(circle at bottom right, rgba(173, 198, 214, 0.38), transparent 28%),
        url('../img/messina-sea.jpg') center/cover no-repeat fixed,
        linear-gradient(135deg, #c8dbe7 0%, #eee1d3 48%, #f3ebe4 100%);
}

/*body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
        url('../img/la-corte-dei-mari.jpg') center/cover no-repeat;
    mix-blend-mode: soft-light;
    opacity: 0.3;
}*/

.page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    position: relative;
    width: min(100%, 680px);
    padding: 34px 28px 28px;
    background: var(--paper);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 0 100%, rgba(214, 184, 177, 0.30), transparent 26%),
        radial-gradient(circle at 100% 0, rgba(172, 196, 211, 0.22), transparent 22%);
    pointer-events: none;
}

.top-note,
.small-heading,
.date,
.intro,
.footer-note,
.hint,
.result-label,
.seat {
    position: relative;
    z-index: 1;
}

.top-note {
    text-align: center;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.small-heading {
    text-align: center;
    font-family: "Ephesis", cursive;
    font-size: clamp(1.65rem, 4vw, 2.45rem);
    margin-bottom: 4px;
}

.date {
    text-align: center;
    color: var(--text-soft);
    letter-spacing: 0.2em;
    margin-bottom: 12px;
    font-size: 1rem;
}

h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    text-align: center;
    font-family: 'Parisienne', cursive;
    font-weight: 400;
    font-size: clamp(2.1rem, 6vw, 4rem);
    line-height: 1;
    color: var(--text-main);
}

.intro {
    text-align: center;
    max-width: 34ch;
    margin: 14px auto 24px;
    font-size: 1.24rem;
    color: var(--text-soft);
}

.search-form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
}

.search-form input {
    width: 100%;
    border: 1px solid rgba(126, 109, 99, 0.26);
    background: rgba(255,255,255,0.75);
    border-radius: 18px;
    min-height: 58px;
    padding: 16px 18px;
    font-size: 1.2rem;
    font-family: inherit;
    color: var(--text-main);
    outline: none;
}

.search-form input:focus {
    border-color: rgba(180, 151, 104, 0.8);
    box-shadow: 0 0 0 4px rgba(180, 151, 104, 0.12);
}

.search-form button {
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, #bba074 0%, #9f8153 100%);
    color: white;
    font-family: 'Italiana', serif;
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(159, 129, 83, 0.25);
}

.result-panel {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    padding: 24px 20px;
    border-radius: 22px;
    background: rgba(255,255,255,0.66);
    border: 1px solid rgba(180, 151, 104, 0.16);
}

.result-label {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-bottom: 10px;
}

.guest-name {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.02;
    margin-bottom: 14px;
}

.guest-name.small {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.table-block {
    display: grid;
    justify-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.table-prefix,
.mini-table {
    font-size: 1.1rem;
    color: var(--text-soft);
}

.table-name {
    font-family: 'Cormorant Garamond', cursive;
    font-size: clamp(2.5rem, 7vw, 4.4rem);
    line-height: 1;
    color: var(--gold-soft);
}

.seat,
.hint {
    text-align: center;
    font-size: 1.12rem;
    color: var(--text-soft);
}

.multi-results {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.multi-card {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(126, 109, 99, 0.12);
}

.footer-note {
    text-align: center;
    margin-top: 24px;
    color: var(--text-soft);
    font-size: 1rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (min-width: 720px) {
    .search-form {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .search-form button {
        min-width: 220px;
        padding-inline: 22px;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 28px 18px 22px;
        border-radius: 22px;
    }

    .search-form input,
    .search-form button {
        min-height: 52px;
    }
}
