/* Trattoria da Marco — Editorial Redesign */

:root {
    --ga-ink:      #1a1410;
    --ga-bordeaux: #722f37;
    --ga-gold:     #c9a84c;
    --ga-cream:    #faf5ef;
    --ga-cream-2:  #f3ece0;
    --ga-bg:       #fdfbf7;
    --ga-stone:    #8b7d6b;
    --ga-border:   #e4d8c8;
    --ga-radius:   10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--ga-bg);
    color: var(--ga-ink);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Demo Banner ── */
.demo-banner {
    background: var(--ga-bordeaux);
    color: rgba(255,255,255,0.9);
    text-align: center;
    padding: 10px 24px;
    font-size: 0.83rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.demo-banner a { color: var(--ga-gold); text-decoration: none; font-weight: 600; }
.demo-banner a:hover { text-decoration: underline; }

/* ── Navbar ── */
.demo-navbar {
    background: rgba(253,251,247,0.97);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--ga-border);
    transition: box-shadow 0.3s;
}
.demo-navbar.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}
.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ga-ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.nav-logo em { color: var(--ga-bordeaux); font-style: italic; font-weight: 400; }
.nav-links { display: flex; list-style: none; gap: 28px; align-items: center; }
.nav-links a { color: var(--ga-ink); text-decoration: none; font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ga-bordeaux); }
.nav-cta {
    background: var(--ga-bordeaux) !important;
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600 !important;
}
.nav-cta:hover { background: #5e252d !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ga-ink); transition: all 0.3s; display: block; }

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 93vh;
    display: flex;
    align-items: center;
    background-image: url('../images/portfolio/gastro-hero.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,8,5,0.38) 0%, rgba(10,6,3,0.72) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 64px;
    padding-bottom: 80px;
}
.hero-dal {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    letter-spacing: 0.35em;
    color: var(--ga-gold);
    margin-bottom: 20px;
}
.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(4.5rem, 9vw, 8rem);
    font-weight: 900;
    font-style: italic;
    color: #fff;
    line-height: 0.92;
    margin-bottom: 22px;
    text-shadow: 0 6px 40px rgba(0,0,0,0.22);
}
.hero-sub {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-style: italic;
    color: rgba(255,255,255,0.88);
    margin-bottom: 40px;
    line-height: 1.45;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}
.scroll-dot { animation: scrollBounce 1.9s ease-in-out infinite; }
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(14px); }
}

/* ── Buttons ── */
.btn-gold {
    display: inline-block;
    padding: 14px 32px;
    background: var(--ga-gold);
    color: #1a1005;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.02em;
    font-family: inherit;
}
.btn-gold:hover { background: #b89238; transform: translateY(-2px); }
.btn-gold:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }
.btn-wide { width: 100%; text-align: center; margin-top: 8px; }

.btn-outline-white {
    display: inline-block;
    padding: 14px 32px;
    border: 1.5px solid rgba(255,255,255,0.55);
    color: #fff;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

.btn-outline-dark {
    display: inline-block;
    margin-top: 22px;
    padding: 12px 26px;
    border: 1.5px solid var(--ga-bordeaux);
    color: var(--ga-bordeaux);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-outline-dark:hover { background: var(--ga-bordeaux); color: #fff; }

.btn-back {
    background: none;
    border: none;
    color: var(--ga-stone);
    cursor: pointer;
    font-size: 0.88rem;
    padding: 0;
    font-family: inherit;
    transition: color 0.2s;
}
.btn-back:hover { color: var(--ga-bordeaux); }

/* ── Section Basics ── */
.section { padding: 96px 0; }
.section-alt { background: var(--ga-cream); }

.section-label {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    color: var(--ga-gold);
    margin-bottom: 16px;
    text-transform: uppercase;
}
.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--ga-ink);
    margin-bottom: 44px;
}

/* ── Storia ── */
.storia-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: center;
}
.storia-img-wrap { position: relative; }
.storia-img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.14), 0 4px 16px rgba(0,0,0,0.08);
    display: block;
}
.storia-text p {
    color: var(--ga-stone);
    margin-bottom: 16px;
    font-size: 1rem;
    line-height: 1.82;
}
.storia-quote {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.28rem;
    font-style: italic;
    color: var(--ga-bordeaux);
    border-left: 3px solid var(--ga-gold);
    padding-left: 22px;
    margin: 28px 0;
    line-height: 1.55;
}

/* ── Stats Strip ── */
.stats-strip {
    background: var(--ga-bordeaux);
    padding: 52px 0;
}
.stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.stat-item {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 12px 20px;
}
.stat-num-wrap {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
}
.stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.stat-suffix {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ga-gold);
    line-height: 1;
}
.stat-label {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    margin-top: 6px;
}
.stat-divider {
    color: rgba(255,255,255,0.25);
    font-size: 2rem;
    padding: 0 8px;
}

/* ── Menü ── */
.menu-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.menu-tab {
    padding: 10px 26px;
    border: 1.5px solid var(--ga-border);
    border-radius: 50px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    color: var(--ga-stone);
    transition: all 0.2s;
}
.menu-tab:hover { border-color: var(--ga-bordeaux); color: var(--ga-bordeaux); }
.menu-tab.active { background: var(--ga-bordeaux); border-color: var(--ga-bordeaux); color: #fff; }

.menu-panel { display: none; animation: panelFadeIn 0.35s ease; }
.menu-panel.active { display: block; }
@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.menu-item-ed {
    padding: 18px 0;
    border-bottom: 1px solid var(--ga-border);
    max-width: 720px;
}
.menu-item-ed:last-child { border-bottom: none; }

.mi-top {
    display: flex;
    align-items: flex-end;
    gap: 0;
    margin-bottom: 5px;
}
.mi-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ga-ink);
    white-space: nowrap;
}
.mi-dots {
    flex: 1;
    border-bottom: 2px dotted var(--ga-border);
    margin: 0 10px;
    position: relative;
    top: -5px;
    min-width: 20px;
}
.mi-price {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--ga-gold);
    font-size: 1.05rem;
    white-space: nowrap;
}
.mi-desc {
    font-size: 0.87rem;
    color: var(--ga-stone);
    font-style: italic;
    line-height: 1.5;
}

/* ── Reservation ── */
.res-progress {
    display: flex;
    align-items: flex-start;
    margin: 48px 0 44px;
    max-width: 480px;
}
.res-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.res-progress-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--ga-border);
    color: var(--ga-stone);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    transition: all 0.3s;
}
.res-progress-step.active .res-progress-dot {
    background: var(--ga-bordeaux);
    border-color: var(--ga-bordeaux);
    color: #fff;
}
.res-progress-step.done .res-progress-dot {
    background: var(--ga-bordeaux);
    border-color: var(--ga-bordeaux);
    color: #fff;
}
.res-progress-label {
    font-size: 0.75rem;
    color: var(--ga-stone);
    text-align: center;
    white-space: nowrap;
    font-weight: 500;
}
.res-progress-step.active .res-progress-label { color: var(--ga-bordeaux); font-weight: 600; }
.res-progress-line {
    flex: 1;
    height: 2px;
    background: var(--ga-border);
    margin-top: 19px;
    transition: background 0.3s;
}
.res-progress-line.done { background: var(--ga-bordeaux); }

.res-panel { display: none; }
.res-panel.active { display: block; animation: stepIn 0.4s ease; }
@keyframes stepIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.res-step-inner {
    max-width: 760px;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}

.res-row { display: flex; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }

.res-field { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 180px; }
.res-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ga-stone);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.res-field input,
.res-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--ga-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--ga-ink);
    background: var(--ga-bg);
    transition: border-color 0.2s;
}
.res-field input:focus,
.res-field textarea:focus { outline: none; border-color: var(--ga-bordeaux); }
.res-field textarea { resize: vertical; }
.optional { color: var(--ga-stone); font-weight: 400; font-size: 0.88em; }

.time-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ga-stone);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}
.time-slots { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.time-slot {
    padding: 10px 22px;
    border: 1.5px solid var(--ga-border);
    border-radius: 8px;
    background: #fff;
    font-size: 0.93rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    color: var(--ga-ink);
    transition: all 0.2s;
}
.time-slot:hover:not(.active) { border-color: var(--ga-bordeaux); color: var(--ga-bordeaux); }
.time-slot.active { background: var(--ga-bordeaux); border-color: var(--ga-bordeaux); color: #fff; font-weight: 600; }

.guest-stepper {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 18px;
    border: 1.5px solid var(--ga-border);
    border-radius: 8px;
    height: 52px;
    background: var(--ga-bg);
}
.stepper-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ga-bordeaux);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-family: inherit;
    width: 28px;
    text-align: center;
}
.stepper-btn:disabled { opacity: 0.3; cursor: not-allowed; }
#guest-num { font-size: 1.25rem; font-weight: 700; min-width: 28px; text-align: center; }

/* ── Floor Plan ── */
.floor-hint {
    text-align: center;
    color: var(--ga-stone);
    font-size: 0.88rem;
    margin-bottom: 10px;
}
.floor-info {
    text-align: center;
    font-size: 0.88rem;
    color: var(--ga-bordeaux);
    font-weight: 500;
    margin-bottom: 14px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.05rem;
}
.hint-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-left: 6px;
}
.hint-free     { background: #e8f3e4; color: #3a6030; border: 1px solid #9caf88; }
.hint-reserved { background: #e8e0d6; color: #8a7060; border: 1px solid #c8b8a8; }
.hint-small    { background: #ece8e4; color: #9a9088; border: 1px solid #d0c8bc; }

.floor-wrap {
    background: #f5ece0;
    border-radius: 12px;
    padding: 16px;
    overflow-x: auto;
    margin-bottom: 20px;
}
#floor-svg {
    width: 100%;
    min-width: 500px;
    max-width: 680px;
    height: auto;
    display: block;
    margin: 0 auto;
    cursor: default;
}

/* ── Reservation Summary ── */
.res-summary {
    display: flex;
    background: var(--ga-cream);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 0;
}
.res-sum-item {
    flex: 1;
    min-width: 100px;
    padding: 4px 20px;
    border-right: 1px solid var(--ga-border);
}
.res-sum-item:first-child { padding-left: 0; }
.res-sum-item:last-child  { border-right: none; }
.res-sum-key {
    display: block;
    font-size: 0.72rem;
    color: var(--ga-stone);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}
.res-sum-item strong { font-size: 0.95rem; color: var(--ga-ink); }

.res-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Orari ── */
.orari-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.orari-card {
    background: #fff;
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.orari-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ga-bordeaux);
    margin-bottom: 22px;
}
.hours-table { display: flex; flex-direction: column; gap: 2px; }
.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ga-border);
    font-size: 0.9rem;
    color: var(--ga-ink);
}
.hours-row:last-child { border-bottom: none; }
.hours-row.closed span:last-child { color: var(--ga-bordeaux); font-style: italic; font-weight: 600; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ga-ink);
    font-size: 0.92rem;
}
.contact-list svg { color: var(--ga-bordeaux); flex-shrink: 0; }

/* ── Footer ── */
.demo-footer { background: var(--ga-ink); padding: 44px 0; }
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}
.footer-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ga-gold);
    display: block;
}
.footer-logo em { color: rgba(255,255,255,0.85); }
.footer-brand p { color: rgba(255,255,255,0.35); font-size: 0.82rem; margin-top: 6px; }
.footer-copy { text-align: right; }
.footer-copy p { color: rgba(255,255,255,0.45); font-size: 0.83rem; }
.footer-copy a { color: var(--ga-gold); text-decoration: none; }
.footer-copy a:hover { text-decoration: underline; }
.footer-note { font-size: 0.75rem; margin-top: 4px; opacity: 0.6; }

/* ── Toast ── */
.res-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #2d4a3e;
    color: #fff;
    padding: 16px 28px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.93rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: transform 0.45s cubic-bezier(0.34,1.56,0.64,1), opacity 0.45s;
    opacity: 0;
    z-index: 1000;
    white-space: nowrap;
    pointer-events: none;
}
.res-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(253,251,247,0.98);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
        z-index: 99;
    }
    .nav-links.active { display: flex; }

    .section { padding: 64px 0; }
    .section-heading { margin-bottom: 28px; }

    .storia-grid { grid-template-columns: 1fr; gap: 36px; }
    .storia-img { aspect-ratio: 3/2; }

    .stats-inner { gap: 0; }
    .stat-divider { display: none; }
    .stat-item { width: 50%; min-width: 0; padding: 16px 12px; }
    .stat-num { font-size: 2.2rem; }

    .orari-grid { grid-template-columns: 1fr; }

    .footer-inner { flex-direction: column; }
    .footer-copy { text-align: left; }

    .res-step-inner { padding: 24px 18px; }
    .res-progress-label { font-size: 0.7rem; }
    .res-summary { padding: 16px; }
    .res-sum-item { padding: 4px 12px; }

    .res-toast { white-space: normal; text-align: center; max-width: calc(100vw - 32px); bottom: 16px; }
}

@media (max-width: 480px) {
    .hero-ctas { flex-direction: column; }
    .btn-gold, .btn-outline-white { text-align: center; }
    .res-row { flex-direction: column; }
    .res-progress-label { display: none; }
    .menu-tab { padding: 8px 18px; font-size: 0.85rem; }
}
