:root {
    --dark: #101010;
    --dark-soft: #1b1713;
    --paper: #f3eadc;
    --paper-light: #fff9ef;
    --gold: #b48645;
    --gold-dark: #8c6839;
    --text: #2a241e;
    --muted: #746a5f;
    --border: rgba(137, 101, 54, 0.32);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    background: #efe4d0;
    color: var(--text);
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(250,245,235,.92);
    pointer-events: none;
    z-index: -1;
}
a { color: inherit; }
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(15,15,15,.97);
    border-bottom: 1px solid rgba(180,134,69,.38);
    box-shadow: 0 12px 34px rgba(0,0,0,.22);
}
.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 86px;
    padding: 8px 22px;
    gap: 24px;
    position: relative;
}
.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex: 0 0 auto;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 132px;
    height: 78px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #f8efe2;
}
.nav a { text-decoration: none; opacity: .94; }
.nav a:hover { color: var(--gold); }
.menu-toggle {
    display: none;
    appearance: none;
    border: 1px solid var(--gold);
    background: transparent;
    color: #f8efe2;
    padding: 11px 18px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 13px;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 0;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #fff8ed;
    text-decoration: none;
    padding: 12px 22px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: .06em;
    cursor: pointer;
}
.btn.outline { background: transparent; color: #f6ead6; }
.hero {
    background: #111;
    min-height: 480px;
    display: grid;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.52) 42%, rgba(0,0,0,.16));
}
.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.95) contrast(1.05);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    width: 100%;
    padding: 92px 24px 72px;
    color: #fff;
}
.hero h1 {
    margin: 0;
    font-size: clamp(70px, 10vw, 132px);
    font-style: italic;
    font-weight: 400;
    line-height: .9;
}
.hero .claim {
    margin-top: 22px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    font-size: 18px;
}
.hero p {
    max-width: 440px;
    font-size: 20px;
    line-height: 1.5;
    color: #f6edde;
}
.section-tabs {
    position: sticky;
    top: 86px;
    z-index: 20;
    background: var(--gold-dark);
    color: #fff7e8;
    overflow-x: auto;
    white-space: nowrap;
    border-top: 1px solid rgba(255,255,255,.18);
    border-bottom: 1px solid rgba(60,35,10,.25);
    scrollbar-width: thin;
}
.section-tabs-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    gap: 0;
}
.section-tabs a {
    text-decoration: none;
    padding: 14px 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .05em;
    border-right: 1px solid rgba(255,255,255,.18);
    flex: 0 0 auto;
}
.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 22px;
}
.intro-card {
    background: rgba(255,249,239,.92);
    border: 1px solid var(--border);
    padding: 26px;
    margin-bottom: 28px;
    box-shadow: 0 18px 60px rgba(33,22,9,.08);
}
.intro-card h2 {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 26px;
}
.intro-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.intro-card-dark {
    background: transparent;
    border-color: rgba(180,134,69,.42);
    color: #f7ecdd;
}
.intro-card-dark h2 { color: #f7ecdd; }
.intro-card-dark p { color: #d8c5aa; }
.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.menu-section {
    background: rgba(255,250,241,.92);
    border: 1px solid var(--border);
    padding: 20px 20px 18px;
    min-height: 100%;
    box-shadow: 0 10px 28px rgba(52,34,14,.07);
    scroll-margin-top: 150px;
}
.menu-section h2 {
    margin: 0 0 16px;
    font-size: 25px;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: center;
    color: #3f3328;
}
.menu-section .desc {
    text-align: center;
    color: var(--muted);
    font-style: italic;
    margin-top: -10px;
    margin-bottom: 16px;
}
.item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    border-bottom: 1px dotted rgba(120,90,55,.32);
    padding: 10px 0;
}
.item:last-child { border-bottom: none; }
.item-name { font-weight: 700; line-height: 1.25; }
.item-ing { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.item-origin { font-size: 12px; color: var(--gold-dark); margin-top: 5px; }
.item-price { font-weight: 700; white-space: nowrap; }
.badge {
    display: inline-block;
    color: var(--gold-dark);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 4px;
}
.notice {
    margin-top: 26px;
    padding: 18px;
    background: rgba(180,134,69,.10);
    border-left: 4px solid var(--gold);
    line-height: 1.5;
}
.wine-area {
    background: #15120f;
    color: #f7ecdd;
    margin-top: 34px;
    padding: 34px 0;
    border-top: 1px solid rgba(180,134,69,.45);
    border-bottom: 1px solid rgba(180,134,69,.45);
    scroll-margin-top: 150px;
}
.wine-area .wrap { padding-top: 0; padding-bottom: 0; }
.wine-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.wine-section {
    border: 1px solid rgba(180,134,69,.48);
    padding: 22px;
    background: rgba(255,255,255,.03);
}
.wine-section h2 { margin-top: 0; text-transform: uppercase; color: var(--gold); }
.wine-row {
    display: grid;
    grid-template-columns: 1fr 75px 90px;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dotted rgba(255,255,255,.18);
    font-size: 14px;
}
.wine-head { color: var(--gold); font-size: 12px; text-transform: uppercase; }
.contacts {
    background: var(--paper-light);
    border-top: 1px solid var(--border);
    scroll-margin-top: 150px;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.contact-card {
    border: 1px solid var(--border);
    background: #fffaf1;
    padding: 18px;
    min-height: 112px;
}
.contact-card strong {
    display: block;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--gold-dark);
    letter-spacing: .08em;
    margin-bottom: 7px;
}
.contact-card a { text-decoration: none; word-break: break-word; }
.footer {
    background: var(--dark);
    color: #f1e7d8;
    padding: 28px 20px 18px;
}
.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}
.footer-brand img {
    width: 100px;
    height: 70px;
    object-fit: contain;
    background: transparent;
    border: 0;
    padding: 0;
}
.footer-qr {
    display: grid;
    grid-template-columns: 72px 1fr;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #f1e7d8;
    text-align: left;
    max-width: 330px;
}
.footer-qr span {
    grid-column: 1 / -1;
    text-transform: uppercase;
    color: var(--gold);
    font-size: 12px;
    letter-spacing: .08em;
}
.footer-qr img {
    width: 72px;
    height: 72px;
    background: #fff;
    padding: 4px;
}
.footer-qr small {
    color: #cdbfae;
    word-break: break-word;
    line-height: 1.35;
}
.project-credit {
    max-width: 1180px;
    margin: 18px auto 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.10);
    text-align: center;
    color: #bfb3a2;
    font-size: 13px;
    line-height: 1.5;
}
.project-credit a {
    color: #ead5b5;
    text-decoration: none;
    border-bottom: 1px solid rgba(180,134,69,.5);
}
@media (max-width: 980px) {
    .menu-toggle { display: inline-flex; }
    .nav {
        display: none;
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(100% + 1px);
        background: rgba(15,15,15,.985);
        border: 1px solid rgba(180,134,69,.45);
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        box-shadow: 0 20px 44px rgba(0,0,0,.38);
    }
    body.nav-open .nav { display: flex; }
    .nav a {
        padding: 14px 12px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .nav a:last-child { border-bottom: 0; }
    .nav .btn { margin-top: 8px; width: 100%; }
    .menu-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .topbar-inner { min-height: 72px; padding: 8px 14px; }
    .brand-mark { width: 86px; height: 54px; padding: 4px; }
    .menu-toggle { min-height: 44px; padding: 10px 16px; }
    .section-tabs { top: 72px; }
    .section-tabs-inner { max-width: none; }
    .section-tabs a { padding: 12px 14px; font-size: 11px; }
    .hero { min-height: 420px; }
    .hero-content { padding: 72px 18px 50px; }
    .hero h1 { font-size: 78px; }
    .hero .claim { font-size: 14px; }
    .hero p { font-size: 16px; }
    .wrap { padding: 24px 14px; }
    .intro-card { padding: 20px 18px; }
    .intro-card h2 { font-size: 22px; }
    .menu-grid, .wine-grid, .contact-grid { grid-template-columns: 1fr; }
    .menu-section { padding: 18px 16px; scroll-margin-top: 130px; }
    .menu-section h2 { font-size: 22px; }
    .item { grid-template-columns: 1fr auto; gap: 10px; }
    .wine-row { grid-template-columns: 1fr 60px 75px; font-size: 13px; }
    .contact-card { min-height: auto; }
    .footer-inner { flex-direction: column; align-items: stretch; }
    .footer-brand { flex-direction: column; text-align: center; }
    .footer-qr { margin: 0 auto; }
}


/* Aggiornamenti logo, footer e responsive */
.brand img,
.footer-brand img { object-fit: contain; }
.footer-inner { justify-content: center; }
@media (max-width: 760px) {
    .section-tabs { display: none; }
    .wine-area,
    .contacts,
    .menu-section { scroll-margin-top: 92px; }
}
@media (max-width: 640px) {
    .brand-mark { width: 104px; height: 62px; padding: 0; }
    .topbar-inner { min-height: 74px; }
    .hero { min-height: 390px; }
}

/* V4: barra sezioni più compatta su tablet, senza voce Contatti */
@media (max-width: 1180px) and (min-width: 761px) {
    .section-tabs a {
        padding: 12px 11px;
        font-size: 11px;
        letter-spacing: .035em;
    }
    .section-tabs-inner {
        justify-content: center;
    }
}
@media (max-width: 980px) and (min-width: 761px) {
    .topbar-inner { min-height: 78px; padding: 6px 16px; }
    .brand-mark { width: 116px; height: 66px; }
    .section-tabs { top: 78px; }
    .section-tabs a { padding: 10px 9px; font-size: 10px; }
}
