/* ========================================================================
   8th Floor Rooftop — Trilussa Palace
   Color Palette: Warm Night + Champagne Gold
   ======================================================================== */

:root {
    --bg-night:       #1a1410;
    --bg-night-soft:  #2c2419;
    --bg-warm-medium: #281f17;
    --bg-cream:       #f7f1e8;
    --bg-cream-soft:  #efe7d8;
    --gold:           #c9a961;
    --gold-dark:      #a98a3f;
    --gold-bright:    #e0c47c;
    --text-dark:      #2c2419;
    --text-on-dark:   #e8dcc8;
    --muted-dark:     #8a7a5e;
    --muted-light:    #b8a886;
    --border-cream:   #d8c8a8;
    --border-night:   #4a3e2c;
    --error:          #c44545;
    --success:        #5a8a4e;

    --font-serif: 'Didot', 'Bodoni 72', 'Bodoni Moda', 'Times New Roman', Times, serif;
    --font-sans:  'Times New Roman', Times, Georgia, serif;

    --shadow-sm: 0 2px 8px rgba(26, 20, 16, 0.08);
    --shadow-md: 0 8px 32px rgba(26, 20, 16, 0.15);
    --shadow-lg: 0 20px 60px rgba(26, 20, 16, 0.25);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}

.gold-text {
    color: var(--gold-dark);
}

.script-italic {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--gold-dark);
}

/* ─── HEADER ─── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(247, 241, 232, 0.0);
    backdrop-filter: blur(0);
    transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
    padding: 18px 0;
}

.site-header.scrolled {
    background: rgba(26, 20, 16, 0.92);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--bg-cream);
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-header:not(.scrolled) .brand {
    color: var(--bg-cream);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.brand-line1 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}
.brand-line1 .ord {
    font-size: 14px;
    vertical-align: super;
    letter-spacing: 0;
}
.brand-line2 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 14px;
    color: var(--gold-bright);
    margin-top: 2px;
    letter-spacing: 0.05em;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav a {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bg-cream);
    transition: color 0.2s ease;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}
.site-header.scrolled .nav a {
    text-shadow: none;
}
.nav a:hover {
    color: var(--gold-bright);
}

.nav .cta {
    background: var(--gold);
    color: var(--bg-night);
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-shadow: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.nav .cta:hover {
    background: var(--gold-bright);
    color: var(--bg-night);
    transform: translateY(-1px);
}

.lang-switch {
    display: flex;
    gap: 4px;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--bg-cream);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
}
.site-header.scrolled .lang-switch {
    text-shadow: none;
}
.lang-switch a {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}
.lang-switch a.active {
    opacity: 1;
    color: var(--gold-bright);
}
.lang-switch a:hover {
    opacity: 1;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--bg-cream);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 860px) {
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 320px;
        max-width: 80vw;
        background: var(--bg-night);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 88px 32px 32px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        box-shadow: var(--shadow-lg);
    }
    .nav.open {
        transform: translateX(0);
    }
    .nav a {
        padding: 18px 0;
        border-bottom: 1px solid var(--border-night);
        text-shadow: none;
    }
    .nav .cta {
        margin-top: 16px;
        text-align: center;
    }
    .menu-toggle {
        display: block;
    }
    .lang-switch-mobile {
        margin-top: 24px;
        padding-top: 24px;
        border-top: 1px solid var(--border-night);
        justify-content: flex-start;
    }
}

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    color: var(--bg-cream);
    text-align: center;
    padding: clamp(150px, 22vh, 240px) 32px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 20, 16, 0.55) 0%, rgba(26, 20, 16, 0.35) 50%, rgba(26, 20, 16, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-eyebrow {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 22px;
    color: var(--gold-bright);
    margin-bottom: 18px;
    letter-spacing: 0.06em;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(56px, 10vw, 120px);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 0.95;
    margin: 0 0 12px;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}
.hero-title .ord {
    font-size: 0.45em;
    vertical-align: super;
    letter-spacing: 0;
}

.hero-script {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(28px, 4.5vw, 44px);
    color: var(--gold-bright);
    margin: 0 0 24px;
    letter-spacing: 0.02em;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(247, 241, 232, 0.85);
    margin: 0 auto 32px;
    max-width: 580px;
    letter-spacing: 0.02em;
    font-style: italic;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.92;
}
.hero-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-meta-divider {
    width: 4px;
    height: 4px;
    background: var(--gold);
    border-radius: 50%;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    border: 0;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-sans);
}

.btn-gold {
    background: var(--gold);
    color: var(--bg-night);
}
.btn-gold:hover {
    background: var(--gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(201, 169, 97, 0.4);
}

.btn-outline-gold {
    background: transparent;
    color: var(--gold-bright);
    border: 1.5px solid var(--gold);
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--bg-night);
}

.btn-dark {
    background: var(--bg-night);
    color: var(--bg-cream);
}
.btn-dark:hover {
    background: var(--bg-night-soft);
    transform: translateY(-2px);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold-bright);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 2;
    animation: bounce 2.4s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50%     { transform: translate(-50%, 8px); }
}

/* ─── SECTIONS ─── */
section {
    padding: 96px 32px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.container-narrow {
    max-width: 780px;
    margin: 0 auto;
}

.section-eyebrow {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold-dark);
    font-size: 20px;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.section-title {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 24px;
    color: var(--text-dark);
}

.section-intro {
    font-size: 17px;
    line-height: 1.75;
    color: var(--muted-dark);
    max-width: 680px;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 32px;
}

.text-center {
    text-align: center;
}

/* ─── INFO STRIP (orari, capienza, location) ─── */
.info-strip {
    background: var(--bg-night);
    color: var(--bg-cream);
    padding: 64px 32px;
}
.info-strip .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    text-align: center;
    max-width: 1100px;
    margin: 0 auto;
}
.info-item h3 {
    font-size: 14px;
    font-family: var(--font-sans);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-bright);
    margin-bottom: 16px;
}
.info-item .info-value {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--bg-cream);
    line-height: 1.3;
}
.info-item .info-sub {
    font-size: 13px;
    color: var(--muted-light);
    margin-top: 8px;
    letter-spacing: 0.04em;
}

/* ─── ABOUT (split image+text) ─── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.split-reverse {
    direction: rtl;
}
.split-reverse > * {
    direction: ltr;
}
.split-image {
    position: relative;
}
.split-image img {
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
}
.split-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--muted-dark);
    margin: 0 0 1em;
}
@media (max-width: 760px) {
    .split { grid-template-columns: 1fr; gap: 40px; }
    .split-reverse { direction: ltr; }
}

/* ─── MENU PREVIEW CARDS (dark variant for night-section) ─── */
.menu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 56px;
    text-align: left;
}
@media (min-width: 1100px) {
    .menu-cards { grid-template-columns: repeat(2, 1fr); gap: 36px; max-width: 1100px; margin-left: auto; margin-right: auto; }
}
.menu-card {
    background: linear-gradient(180deg, rgba(247, 241, 232, 0.04) 0%, rgba(247, 241, 232, 0.02) 100%);
    padding: 36px 32px 32px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(201, 169, 97, 0.25);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}
.menu-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
    opacity: 0.6;
}
.menu-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 169, 97, 0.6);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
    background: linear-gradient(180deg, rgba(247, 241, 232, 0.06) 0%, rgba(247, 241, 232, 0.03) 100%);
}
.menu-card-eyebrow {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 16px;
    color: var(--gold-bright);
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.menu-card-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 500;
    color: var(--bg-cream);
    margin: 0 0 16px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.menu-card-divider {
    width: 48px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 24px;
    opacity: 0.7;
}
.menu-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.menu-card-list li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-on-dark);
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}
.menu-card-list li:last-child { border-bottom: 0; }
.menu-card-list .dish {
    flex: 0 0 auto;
}
.menu-card-list .leader {
    flex: 1 1 auto;
    border-bottom: 1px dotted rgba(201, 169, 97, 0.4);
    transform: translateY(-4px);
    height: 0;
    margin: 0 8px;
}
.menu-card-list .price {
    flex: 0 0 auto;
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 500;
    color: var(--gold-bright);
    letter-spacing: 0.02em;
}
.menu-card-list .price::before {
    content: '€\00a0';
    font-size: 0.7em;
    opacity: 0.7;
    margin-right: 1px;
}

/* ─── GALLERY ─── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.gallery-grid a, .gallery-grid figure {
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 4/3;
    cursor: pointer;
    margin: 0;
    background: var(--bg-cream-soft);
}
.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-grid a:hover img, .gallery-grid figure:hover img {
    transform: scale(1.06);
}

/* ─── BOOKING FORM ─── */
.booking-form {
    background: var(--bg-cream-soft);
    padding: 56px 48px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-cream);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 640px) {
    .form-row, .form-row.three { grid-template-columns: 1fr; }
    .booking-form { padding: 32px 20px; }
}

.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 8px;
}
.form-group label .req {
    color: var(--error);
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--border-cream);
    border-radius: var(--radius-sm);
    background: #fff;
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--text-dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
}
.form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: var(--font-sans);
}
.form-help {
    font-size: 13px;
    color: var(--muted-dark);
    margin-top: 6px;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}
.slot-btn {
    padding: 12px 8px;
    border: 1px solid var(--border-cream);
    background: #fff;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}
.slot-btn:hover:not(:disabled) {
    border-color: var(--gold);
    color: var(--gold-dark);
}
.slot-btn.active {
    background: var(--gold);
    color: var(--bg-night);
    border-color: var(--gold);
    font-weight: 600;
}
.slot-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    text-decoration: line-through;
}

.form-msg {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    margin-bottom: 20px;
}
.form-msg.error {
    background: rgba(196, 69, 69, 0.1);
    border: 1px solid rgba(196, 69, 69, 0.3);
    color: var(--error);
}
.form-msg.success {
    background: rgba(90, 138, 78, 0.1);
    border: 1px solid rgba(90, 138, 78, 0.3);
    color: var(--success);
}
.form-msg.info {
    background: rgba(201, 169, 97, 0.12);
    border: 1px solid rgba(201, 169, 97, 0.3);
    color: var(--gold-dark);
}

.btn-submit {
    width: 100%;
    padding: 18px;
    font-size: 15px;
    margin-top: 8px;
}
.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ─── MENU PAGE ─── */
.menu-page {
    background: var(--bg-cream);
    padding: 140px 32px 80px;
}
.menu-page-title {
    text-align: center;
    margin-bottom: 64px;
}
.menu-section {
    margin-bottom: 72px;
}
.menu-section-title {
    text-align: center;
    font-size: 32px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 8px;
}
.menu-item {
    text-align: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-cream);
}
.menu-item:last-child { border-bottom: 0; }
.menu-item-name {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--text-dark);
}
.menu-item-name .allergens {
    font-weight: 400;
    color: var(--muted-dark);
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.02em;
}
.menu-item-desc {
    font-size: 14px;
    color: var(--muted-dark);
    margin-bottom: 8px;
    line-height: 1.5;
    font-style: italic;
}
.menu-item-price {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--gold-dark);
}
.menu-item-supplement {
    font-size: 13px;
    color: var(--muted-dark);
    margin-top: 4px;
}
.menu-allergens-footer {
    background: var(--bg-cream-soft);
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-cream);
    text-align: center;
    font-size: 13px;
    color: var(--muted-dark);
    margin-top: 48px;
}
.menu-allergens-footer strong {
    color: var(--text-dark);
}

/* ─── FOOTER ─── */
.site-footer {
    background: var(--bg-night);
    color: var(--text-on-dark);
    padding: 80px 32px 40px;
    text-align: center;
}
.footer-brand {
    font-family: var(--font-serif);
    font-size: 36px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--bg-cream);
    margin-bottom: 4px;
}
.footer-brand .ord { font-size: 0.5em; vertical-align: super; }
.footer-script {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--gold-bright);
    font-size: 18px;
    margin-bottom: 32px;
}
.footer-info {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    font-size: 14px;
    color: var(--muted-light);
}
.footer-info a {
    color: var(--text-on-dark);
    transition: color 0.2s ease;
}
.footer-info a:hover { color: var(--gold-bright); }
.footer-bottom {
    border-top: 1px solid var(--border-night);
    padding-top: 24px;
    font-size: 12px;
    color: var(--muted-light);
    letter-spacing: 0.04em;
}

/* ─── UTILS ─── */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ─── CONFIRMATION / MANAGE PAGES ─── */
.standalone-card {
    max-width: 640px;
    margin: 140px auto 80px;
    padding: 0 32px;
}
.standalone-card .card-inner {
    background: var(--bg-cream-soft);
    padding: 56px 48px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-cream);
    text-align: center;
}
.standalone-card h1 {
    font-size: 40px;
    margin-bottom: 16px;
}
.standalone-card .info-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-cream);
    text-align: left;
}
.standalone-card .info-row:last-child { border: 0; }
.standalone-card .info-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted-dark);
}
.standalone-card .info-value {
    font-weight: 600;
    color: var(--text-dark);
}
