@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

/* Ristorante Salò */

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

:root {
    --bg:     #F5F1EA;
    --ink:    #18140F;
    --dim:    #5A5246;        /* prima #7C7469 — contrasto AA 7:1 invece di 4.5:1 */
    --dim-2:  #3A352E;        /* per testi corpo importanti */
    --line:   rgba(24, 20, 15, .18);
    --hero:   #1A2219;
    --f:      'Cormorant Garamond', Georgia, serif;
}

html { font-size: 20px; scroll-behavior: smooth; }

body {
    font-family: var(--f);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }


/* ── NAV ── */

nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1rem, 3vw + .3rem, 3rem);
    height: clamp(68px, 5vw + 48px, 96px);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transition: height .35s, padding .35s, box-shadow .35s;
}

/* Stato scrolled: piccola ombra per stacco; sfondo già beige */
nav.s {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 8px rgba(24, 20, 15, .04);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity .25s;
}
.logo:hover { opacity: 0.85; }

.logo-img {
    height: clamp(48px, 3.5vw + 32px, 72px);
    width: auto;
    display: block;
    transition: height .35s;
}

.nav-r {
    display: flex;
    align-items: center;
    gap: clamp(1.2rem, 1.8vw + .4rem, 2.6rem);
}

.nav-r a {
    font-size: clamp(.78rem, .35vw + .68rem, 1rem);
    font-weight: 500;
    letter-spacing: clamp(.1em, .4vw, .16em);
    text-transform: uppercase;
    color: var(--dim);
    transition: color .25s, font-size .35s;
    font-family: 'Cormorant Garamond', serif;
    font-style: normal;
    white-space: nowrap;
}
.nav-r a:hover { color: var(--ink); }

.nav-r .prenota {
    border: 1px solid var(--ink);
    padding: clamp(.45rem, .3vw + .35rem, .7rem) clamp(1rem, 1vw + .7rem, 1.6rem);
    color: var(--ink) !important;
    transition: background .25s, color .25s, border-color .25s;
}
.nav-r .prenota:hover {
    background: var(--ink);
    color: var(--bg) !important;
    border-color: var(--ink);
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}
.burger span {
    display: block; width: 22px; height: 1.5px;
    background: var(--ink);
    transition: transform .25s, opacity .25s;
}
.burger.o span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.o span:nth-child(2) { opacity: 0; }
.burger.o span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
    display: none;
    position: fixed; inset: 0;
    background: var(--ink);
    z-index: 49;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    gap: 1.8rem;
}
.drawer.o { display: flex; }
.drawer a {
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 300;
    color: var(--bg);
    opacity: .75;
    transition: opacity .2s;
    font-style: italic;
}
.drawer a:hover { opacity: 1; }


/* ── HERO ── */

.hero {
    height: 100vh;
    min-height: 580px;
    background:
        linear-gradient(180deg, rgba(20,18,15,.55) 0%, rgba(20,18,15,.35) 40%, rgba(20,18,15,.75) 100%),
        url('../images/photos/hero.webp') center/cover no-repeat,
        var(--hero);
    display: grid;
    grid-template-rows: 1fr auto;
    padding: clamp(68px, 5vw + 48px, 96px) 2.5rem 0;
    position: relative;
    overflow: hidden;
}

/* watermark */
.hero::before {
    content: 'Salò';
    position: absolute;
    bottom: -0.15em;
    left: -.02em;
    font-size: clamp(18rem, 38vw, 42rem);
    font-weight: 300;
    font-style: italic;
    color: transparent;
    -webkit-text-stroke: 1px rgba(245,241,234,.05);
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.hero-mid {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.hero-h1 {
    font-size: clamp(5rem, 14vw, 13rem);
    font-weight: 300;
    font-style: italic;
    color: #fff;
    line-height: .92;
    letter-spacing: -.02em;
}

.hero-sub {
    margin-top: 2rem;
    display: flex;
    align-items: baseline;
    gap: 2.5rem;
}

.hero-sub span {
    font-size: 1rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255,255,255,.8);
    font-style: normal;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.hero-bot {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-bot p {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    font-style: italic;
    max-width: 420px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}

.hero-bot a {
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
    border-bottom: 1px solid rgba(255,255,255,.2);
    padding-bottom: 2px;
    transition: color .25s, border-color .25s;
}
.hero-bot a:hover { color: #fff; border-color: rgba(255,255,255,.6); }


/* ── CORPO ── */

.corpo {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.corpo--sm {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 2.5rem;
}


/* ── CHI SIAMO (home) ── */

.chi {
    padding: 6rem 0 5rem;
}

.chi-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 5rem;
    align-items: start;
}

.chi-anno {
    font-size: 5rem;
    font-weight: 300;
    color: rgba(24,20,15,.08);
    line-height: 1;
    font-style: italic;
    padding-top: .5rem;
}

.chi-testo h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    line-height: 1.25;
    margin-bottom: 2rem;
    letter-spacing: -.01em;
}

.chi-testo p {
    font-size: 1.15rem;
    color: var(--dim-2);
    line-height: 1.85;
    margin-bottom: 1.3rem;
    max-width: 620px;
}

.chi-testo p:first-of-type { color: var(--ink); }

.link-sottile {
    display: inline-block;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 1px solid var(--ink);
    padding-bottom: 3px;
    margin-top: 1.8rem;
    transition: border-color .25s, opacity .25s;
}
.link-sottile:hover { opacity: .7; }
.link-sottile:hover { border-color: var(--ink); }


/* ── SEPARATORE ── */

.sep {
    border: none;
    border-top: 1px solid var(--line);
    margin: 0;
}


/* ── MENU IN EVIDENZA ── */

.evidenza {
    padding: 5rem 0;
}

.evidenza-title {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 2.5rem;
}

.piatto {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.piatto-cat {
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim-2);
    display: block;
    margin-bottom: .4rem;
}

.piatto-nome {
    font-size: 1.3rem;
    font-weight: 400;
    display: block;
}

.piatto-desc {
    font-size: 1.02rem;
    color: var(--dim-2);
    line-height: 1.55;
    display: block;
    margin-top: .3rem;
    font-style: italic;
}

.piatto-prezzo {
    font-size: 1.2rem;
    font-weight: 400;
    white-space: nowrap;
    color: var(--ink);
}

.vedi-tutto {
    display: inline-block;
    margin-top: 2.8rem;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim-2);
    border-bottom: 1px solid var(--dim);
    padding-bottom: 3px;
    transition: color .25s, border-color .25s;
}
.vedi-tutto:hover { color: var(--ink); border-color: var(--ink); }


/* ── INFO BASSA ── */

.info-bassa {
    background: var(--ink);
    padding: 4rem 0;
    color: rgba(245,241,234,.5);
}

.info-bassa-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.info-bassa-centro {
    text-align: center;
    flex: 1;
}

.info-bassa-centro p {
    font-size: 1rem;
    font-style: italic;
    color: rgba(245,241,234,.4);
    margin-bottom: 1.5rem;
}

.info-bassa-centro h3 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    color: #fff;
    margin-bottom: 1.8rem;
    line-height: 1.2;
}

.btn-light {
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: rgba(245,241,234,.6);
    border: 1px solid rgba(245,241,234,.2);
    padding: .7rem 1.8rem;
    transition: color .25s, border-color .25s;
    display: inline-block;
}
.btn-light:hover { color: var(--bg); border-color: rgba(245,241,234,.5); }

.info-laterale {
    min-width: 180px;
    font-size: .82rem;
    line-height: 1.9;
    font-style: italic;
}


/* ── MENU PAGE ── */

/* Tabs sticky che scrollano alle sezioni */
.tabs--sticky {
    position: sticky;
    top: clamp(56px, 4.5vw + 40px, 80px);
    background: var(--bg);
    z-index: 30;
    margin-bottom: 3rem;
    padding-top: .5rem;
    /* Sfumatura sopra per "nascondere" il bordo dei contenuti che vi passano sotto */
    box-shadow: 0 -16px 0 0 var(--bg);
}

/* Sezioni di categoria, spazio respiratorio tra una e l'altra */
.cat-block {
    padding-top: 2rem;
    margin-bottom: 5rem;
    scroll-margin-top: clamp(120px, 9vw + 80px, 160px);
}
.cat-block:last-of-type { margin-bottom: 3rem; }

.tabs {
    display: flex;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4rem;
    overflow-x: auto;
    gap: 0;
}

.tab {
    font-size: .85rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim);
    padding: 1.1rem 1.8rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
    font-family: var(--f);
    font-style: normal;
    font-weight: 500;
}
.tab:hover { color: var(--ink); }
.tab.a { color: var(--ink); border-bottom-color: var(--ink); }

.tab-panel { display: none; }
.tab-panel.a { display: block; }

.cat-nome {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1;
    margin-bottom: .5rem;
}

.cat-desc {
    font-size: 1.05rem;
    color: var(--dim);
    font-style: italic;
    display: block;
    margin-bottom: 3rem;
}

.voce {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.voce:first-of-type { border-top: 1px solid var(--line); }

.voce-nome {
    font-size: 1.35rem;
    font-weight: 400;
    display: block;
    margin-bottom: .35rem;
    line-height: 1.3;
}

.voce-desc {
    font-size: 1.1rem;
    color: var(--dim-2);
    line-height: 1.6;
    font-style: italic;
}

.voce-all {
    display: block;
    font-size: 1rem;
    color: var(--dim);
    margin-top: .6rem;
    letter-spacing: .03em;
    font-style: italic;
}

.voce-prezzo {
    font-size: 1.25rem;
    font-weight: 400;
    white-space: nowrap;
    padding-top: .15rem;
    color: var(--ink);
}

.nota {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
    color: var(--dim-2);
    line-height: 1.85;
    max-width: 680px;
    font-style: italic;
}

/* Mobile: ancora più generoso */
@media (max-width: 640px) {
    .tab {
        font-size: .8rem;
        padding: 1rem 1.3rem;
        letter-spacing: .12em;
    }
    .voce { gap: 1.5rem; padding: 1.6rem 0; }
    .voce-nome { font-size: 1.2rem; }
    .voce-desc { font-size: .95rem; }
    .voce-prezzo { font-size: 1.1rem; }
    .voce-all { font-size: .8rem; }
    .nota { font-size: .9rem; }
}


/* ── PAGINE INTERNE — testata ── */

.pt {
    padding-top: clamp(68px, 5vw + 48px, 96px);
    min-height: 38vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
}

.pt--verde  { background: #1A2219; }
.pt--marrone { background: #1E160E; }
.pt--scuro  { background: #14121A; }

.pt-inner {
    padding: 0 2.5rem 3.5rem;
    width: 100%;
}

.pt-inner h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    font-style: italic;
    color: #fff;
    line-height: 1;
    letter-spacing: -.01em;
}

.pt-inner small {
    display: block;
    font-size: .6rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(255,255,255,.25);
    margin-bottom: 1rem;
    font-style: normal;
}

.menu-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1.2rem;
    padding: 0;
    background: none;
    color: rgba(255,255,255,.65);
    border: none;
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.25);
    padding-bottom: .2rem;
    transition: color .2s, border-color .2s;
}
.menu-pdf-btn:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,.7);
}
.menu-pdf-btn svg { width: 12px; height: 12px; }


/* ── FORM ── */

.form-block {
    padding: 5rem 0 7rem;
}

.form-intro {
    font-size: 1.2rem;
    color: var(--dim-2);
    line-height: 1.8;
    font-style: italic;
    max-width: 620px;
    margin-bottom: 3.5rem;
}

.form-intro a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

.fg { margin-bottom: 2.2rem; }

.fg label {
    display: block;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--dim-2);
    margin-bottom: .8rem;
    text-transform: none;
}

.fg input,
.fg select,
.fg textarea {
    width: 100%;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: .9rem 1rem;
    font-family: var(--f);
    font-size: 1.15rem;
    color: var(--ink);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .25s, box-shadow .25s;
    min-height: 52px;
}

.fg input:focus,
.fg select:focus,
.fg textarea:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(24,20,15,.08);
}

.fg input::placeholder,
.fg textarea::placeholder { color: var(--dim); opacity: .65; }

.fg textarea { min-height: 110px; resize: vertical; line-height: 1.6; }

.fg-err {
    font-size: .95rem;
    color: #8B3A2A;
    margin-top: .5rem;
    display: block;
    font-weight: 500;
}

.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
.form-2col .fg { grid-column: span 1; }
.form-2col .fg.full { grid-column: span 2; }

.btn-inv {
    font-family: var(--f);
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--bg);
    background: var(--ink);
    border: 1px solid var(--ink);
    padding: 1.1rem 2.5rem;
    cursor: pointer;
    margin-top: .8rem;
    min-height: 56px;
    transition: background .25s, color .25s;
}
.btn-inv:hover { background: transparent; color: var(--ink); }

.btn-outline {
    display: inline-block;
    font-size: 1rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ink);
    border: 1px solid var(--ink);
    padding: 1rem 2.2rem;
    transition: background .25s, color .25s;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.alert-ok {
    border-left: 4px solid #2B7A2E;
    background: rgba(43,122,46,.08);
    padding: 1.2rem 1.5rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: var(--dim-2);
    line-height: 1.5;
}

.form-note {
    margin-top: 1.2rem;
    font-size: 1rem;
    color: var(--dim-2);
    font-style: italic;
    line-height: 1.7;
}

.info-strip {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
}
.info-strip .info-label {
    display: block;
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dim-2);
    margin-bottom: .7rem;
}
.info-strip .info-value {
    font-size: 1.15rem;
    line-height: 1.5;
    color: var(--ink);
}
.info-strip .info-value a { font-weight: 500; }
@media (max-width: 640px) {
    .info-strip { grid-template-columns: 1fr; gap: 1.5rem; }
}


/* ── CHI SIAMO PAGE ── */

.storia-intro {
    padding: 5.5rem 0 4rem;
    border-bottom: 1px solid var(--line);
}

.storia-lead {
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    font-weight: 300;
    line-height: 1.55;
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.storia-corpo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 900px;
}

.storia-corpo p {
    font-size: 1.1rem;
    color: var(--dim-2);
    line-height: 1.85;
    font-style: italic;
}

.foto-ph {
    background: var(--hero);
    min-height: 460px;
    width: 100%;
    position: relative;
}

.foto-ph--interno {
    aspect-ratio: 1920 / 1589;
    background:
        linear-gradient(180deg, rgba(20,18,15,0) 0%, rgba(20,18,15,.35) 100%),
        url('../images/photos/interno.webp?v=2') center/cover no-repeat;
}

.foto-ph--esterno {
    aspect-ratio: 1920 / 1440;
    background:
        linear-gradient(180deg, rgba(20,18,15,0) 0%, rgba(20,18,15,.35) 100%),
        url('../images/photos/esterno.webp?v=2') center/cover no-repeat;
}

.foto-caption {
    position: absolute;
    bottom: 1.2rem;
    left: 1.5rem;
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(245,241,234,.85);
    text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.tl-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2.5rem;
    padding: 2.2rem 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}

.tl-anno {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 400;
    color: var(--dim-2);
    padding-top: .1rem;
}

.tl-testo h4 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: .5rem;
}

.tl-testo p {
    font-size: 1.05rem;
    color: var(--dim-2);
    line-height: 1.75;
    font-style: italic;
}


/* ── CONTATTI ── */

.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    padding: 5.5rem 0;
    align-items: start;
}

.c-voce { margin-bottom: 2.2rem; }

.c-voce dt {
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--dim-2);
    margin-bottom: .6rem;
}

.c-voce dd {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--ink);
}

.c-voce dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

.mappa-ph {
    background: var(--ink);
    height: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

.mappa-ph p {
    font-size: .82rem;
    color: rgba(245,241,234,.3);
    letter-spacing: .06em;
    text-align: center;
    font-style: italic;
}

.social-riga {
    margin-top: 3px;
    padding: 1.5rem 0;
    display: flex;
    gap: 2.5rem;
    border-top: 1px solid var(--line);
}

.social-riga a {
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--dim-2);
    transition: color .2s;
}
.social-riga a:hover { color: var(--ink); }


/* ── FOOTER ── */

footer {
    background: var(--ink);
    padding: 4rem 0 2.5rem;
}

.foot-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
    color: rgba(245,241,234,.45);
}

.foot-logo {
    font-size: 1rem;
    font-style: italic;
    color: rgba(245,241,234,.85);
    display: block;
    margin-bottom: 1rem;
}
.foot-logo-img {
    display: block;
    height: 64px;
    width: auto;
    margin-bottom: 1.2rem;
    /* Footer è scuro: leggero alone bianco per garantire contrasto sul blu navy del logo */
    filter: drop-shadow(0 1px 2px rgba(255,255,255,.25))
            drop-shadow(0 0 8px rgba(255,255,255,.1));
}

.foot-inner p, .foot-inner a, .foot-inner li {
    font-size: 1rem;
    line-height: 1.85;
    font-style: italic;
    color: rgba(245,241,234,.75);
}

.foot-inner a:hover { color: #fff; }

.foot-col-t {
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(245,241,234,.55);
    display: block;
    margin-bottom: 1.4rem;
    font-style: normal;
}

.foot-li { margin-bottom: .65rem; }

.foot-bottom {
    border-top: 1px solid rgba(245,241,234,.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: .9rem;
    color: rgba(245,241,234,.5);
    font-style: italic;
}


/* ── RESPONSIVE ── */

@media (max-width: 900px) {
    .chi-grid { grid-template-columns: 1fr; gap: 2rem; }
    .chi-anno { font-size: 4rem; }
    .storia-corpo { grid-template-columns: 1fr; gap: 2rem; }
    .contatti-grid { grid-template-columns: 1fr; gap: 3rem; }
    .foot-inner { grid-template-columns: 1fr 1fr; }
    .info-bassa-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
    nav { padding: 0 1.2rem; }
    .nav-r { gap: 1.2rem; }
    .nav-r a:not(.prenota) { display: none; }
    .burger { display: flex; }
    .hero { padding: 0 1.2rem; }
    .hero-sub { flex-direction: column; gap: .8rem; }
    .hero-bot { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .corpo, .corpo--sm { padding: 0 1.2rem; }
    .pt-inner { padding: 0 1.2rem 2.5rem; }
    .form-2col { grid-template-columns: 1fr; }
    .form-2col .fg.full { grid-column: span 1; }
    .foot-inner { grid-template-columns: 1fr; gap: 2rem; }
    .foot-bottom { flex-direction: column; gap: .4rem; }
    .tl-item { grid-template-columns: 55px 1fr; gap: 1.5rem; }
    .piatto { grid-template-columns: 1fr auto; gap: 1rem; }
}


/* ════════════════════════════════════════════════════════════════════════
   ── ADD-ONS: language switcher, maps embed, WhatsApp, Instagram modal,
   AI chat widget. Appended; no existing rules altered.
   ════════════════════════════════════════════════════════════════════════ */


/* ── Language switcher (nav, drawer, footer) ── */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-style: normal;
}
.lang-switch--nav { margin-left: .5rem; }
.lang-switch--foot { margin-left: auto; }
.lang-switch--drawer { margin-top: 1.5rem; gap: .8rem; }

.lang-opt {
    font-size: clamp(.72rem, .25vw + .65rem, .9rem);
    letter-spacing: clamp(.12em, .3vw, .18em);
    text-transform: uppercase;
    color: var(--dim);
    border-bottom: 1px solid transparent;
    padding-bottom: 3px;
    transition: color .25s, border-color .25s, font-size .35s;
    font-family: var(--f);
    font-style: normal;
    font-weight: 500;
}
.lang-opt:hover { color: var(--ink); }
.lang-opt--a {
    color: #8C6A20;
    border-bottom-color: rgba(140,106,32,.55);
}
.lang-sep {
    color: rgba(24,20,15,.2);
    font-size: clamp(.8rem, .25vw + .7rem, 1rem);
    font-style: normal;
    line-height: 1;
    margin: 0 .15rem;
}

/* nav scrolled (light bg) */
nav.s .lang-opt { color: var(--dim); }
nav.s .lang-opt:hover { color: var(--ink); }
nav.s .lang-opt--a { color: #8C6A20; border-bottom-color: rgba(140,106,32,.45); }
nav.s .lang-sep { color: rgba(24,20,15,.2); }

/* footer (dark bg) */
.lang-switch--foot .lang-opt { color: rgba(245,241,234,.4); }
.lang-switch--foot .lang-opt:hover { color: rgba(245,241,234,.9); }
.lang-switch--foot .lang-opt--a { color: #C9A45A; border-bottom-color: rgba(201,164,90,.55); }
.lang-switch--foot .lang-sep { color: rgba(245,241,234,.18); }

/* drawer (mobile) — bright on dark */
.lang-switch--drawer .lang-opt { color: rgba(245,241,234,.6); font-size: .8rem; }
.lang-switch--drawer .lang-opt--a { color: #C9A45A; border-bottom-color: rgba(201,164,90,.6); }
.lang-switch--drawer .lang-sep { color: rgba(245,241,234,.25); }

@media (max-width: 680px) {
    .lang-switch--nav { display: none; }
    .foot-bottom .lang-switch--foot { margin: .4rem 0 0; }
}


/* ── Google Maps embed (contact) ── */
.map-embed {
    background: var(--ink);
    width: 100%;
    line-height: 0;
    overflow: hidden;
    border: 1px solid var(--line);
}
.map-embed iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
    filter: grayscale(.25) contrast(.95);
}
.map-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
    border-bottom: 1px solid var(--line);
    padding-bottom: 2px;
    transition: color .25s, border-color .25s;
}
.map-link:hover { color: var(--ink); border-bottom-color: var(--ink); }


/* ── WhatsApp floating action button ── */
.wa-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, .35);
    transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.08); color: #fff; }
.wa-fab svg { display: block; }

/* ── Instagram FAB (sopra il WhatsApp) ── */
.ig-fab {
    position: fixed;
    bottom: 92px;             /* sopra al WhatsApp (24 + 56 + 12 di gap) */
    right: 24px;
    z-index: 100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Gradient Instagram ufficiale (giallo → arancio → rosa → viola) */
    background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
    box-shadow: 0 4px 12px rgba(220, 39, 67, .35);
    transition: transform .2s, box-shadow .2s;
}
.ig-fab:hover {
    transform: scale(1.08);
    color: #fff;
    box-shadow: 0 6px 18px rgba(220, 39, 67, .45);
}
.ig-fab svg { display: block; }

@media (max-width: 680px) {
    .wa-fab { bottom: 80px; right: 18px; }
    .ig-fab { bottom: 148px; right: 18px; } /* stack sopra WhatsApp mobile */
}


/* ── Instagram modal ── */
.ig-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}
.ig-modal[hidden] { display: none !important; }
.ig-modal.show {
    display: flex;
    animation: igFade .4s ease both;
}
@keyframes igFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.ig-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20,17,14,.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.ig-card {
    position: relative;
    background: var(--bg);
    width: calc(100% - 2rem);
    max-width: 380px;
    padding: 2.2rem 2rem 2rem;
    border-radius: 0;
    border: 1px solid var(--line);
    text-align: center;
    z-index: 1;
}
.ig-x {
    position: absolute;
    top: .4rem;
    right: .7rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--dim);
    cursor: pointer;
    line-height: 1;
    font-family: var(--f);
    transition: color .2s;
}
.ig-x:hover { color: var(--ink); }
.ig-h {
    font-family: var(--f);
    font-style: italic;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--ink);
    margin-bottom: .9rem;
    line-height: 1.2;
}
.ig-p {
    font-size: .9rem;
    color: var(--dim);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 1.6rem;
}
.ig-cta {
    display: inline-block;
    font-size: .62rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--bg);
    background: var(--ink);
    border: 1px solid var(--ink);
    padding: .85rem 1.8rem;
    transition: background .25s, color .25s;
}
.ig-cta:hover { background: transparent; color: var(--ink); }
.ig-dismiss {
    display: block;
    margin: 1rem auto 0;
    background: none;
    border: none;
    font-family: var(--f);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
    cursor: pointer;
    padding: .4rem .6rem;
    transition: color .2s;
}
.ig-dismiss:hover { color: var(--ink); }


/* ── AI chat (Groq) ── */
.ai-fab {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--bg);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(24,20,15,.28);
    transition: transform .2s, background .2s;
}
.ai-fab:hover { transform: scale(1.06); }
.ai-fab svg { display: block; }

.ai-panel {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 101;
    width: 380px;
    max-width: calc(100vw - 2rem);
    max-height: 520px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(24,20,15,.18);
    font-family: system-ui, -apple-system, "Segoe UI", "Inter", sans-serif;
}
.ai-panel[hidden] { display: none; }

.ai-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem .8rem;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
}
.ai-title {
    font-family: var(--f);
    font-style: italic;
    font-weight: 400;
    font-size: 1.1rem;
    color: var(--ink);
}
.ai-x {
    background: none;
    border: none;
    color: var(--dim);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    padding: .1rem .4rem;
    transition: color .2s;
}
.ai-x:hover { color: var(--ink); }

.ai-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    background: #fff;
}

.ai-msg {
    max-width: 80%;
    padding: .55rem .8rem;
    font-size: .9rem;
    line-height: 1.5;
    border-radius: 10px;
    word-wrap: break-word;
    white-space: pre-wrap;
}
.ai-msg--bot {
    align-self: flex-start;
    background: #F2EFE9;
    color: var(--ink);
    border-bottom-left-radius: 2px;
}
.ai-msg--user {
    align-self: flex-end;
    background: var(--ink);
    color: var(--bg);
    border-bottom-right-radius: 2px;
}
.ai-msg--typing {
    align-self: flex-start;
    color: var(--dim);
    font-style: italic;
    background: transparent;
    padding: .25rem .4rem;
}

.ai-form {
    display: flex;
    gap: .5rem;
    padding: .7rem .8rem .8rem;
    border-top: 1px solid var(--line);
    background: #fff;
}
.ai-input {
    flex: 1 1 auto;
    background: #F7F4EE;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .55rem .75rem;
    font-family: inherit;
    font-size: .9rem;
    color: var(--ink);
    outline: none;
    transition: border-color .2s, background .2s;
}
.ai-input:focus { border-color: var(--ink); background: #fff; }
.ai-input:disabled { opacity: .5; }

.ai-send {
    background: var(--ink);
    color: var(--bg);
    border: 1px solid var(--ink);
    border-radius: 8px;
    padding: .55rem 1rem;
    font-family: inherit;
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.ai-send:hover { background: transparent; color: var(--ink); }
.ai-send:disabled { opacity: .55; cursor: not-allowed; }

.ai-disclaimer {
    margin: 0;
    padding: .55rem .9rem .75rem;
    background: #FFF8E1;
    border-top: 1px solid #F0E4B8;
    color: #6B5B1E;
    font-size: .72rem;
    line-height: 1.4;
    text-align: left;
}

@media (max-width: 680px) {
    .ai-fab { bottom: 80px; left: 18px; }
    .ai-panel {
        left: 12px;
        right: 12px;
        bottom: 80px;
        width: auto;
        max-height: 70vh;
    }
}


/* ── Cookie consent: banner ──────────────────────────────────────────────── */

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 80;
    width: calc(100% - 2rem);
    max-width: 720px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.6rem 1.8rem 1.4rem;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, .12), 0 8px 28px rgba(0, 0, 0, .08);
    font-family: var(--f);
    color: var(--ink);
    opacity: 0;
    transform: translate(-50%, 12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}
.cookie-banner.is-leaving {
    opacity: 0;
    transform: translate(-50%, 12px);
    pointer-events: none;
}

.cookie-banner__title {
    font-family: var(--f);
    font-style: italic;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: .55rem;
}
.cookie-banner__text {
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--dim-2);
    margin-bottom: 1.2rem;
}
.cookie-banner__actions {
    display: flex;
    gap: .7rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.cookie-banner__actions .cookie-btn { flex: 1 1 auto; min-width: 0; }
.cookie-banner__links {
    font-size: .88rem;
    color: var(--dim);
}
.cookie-banner__links a {
    color: var(--dim-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-banner__links a:hover { color: var(--ink); }
.cookie-banner__sep {
    margin: 0 .5rem;
    color: var(--dim);
}

@media (max-width: 680px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 8px 8px 0 0;
        border-bottom: none;
        padding: 1.3rem 1.2rem 1.1rem;
    }
    .cookie-banner.is-visible { transform: none; }
    .cookie-banner.is-leaving { transform: translateY(12px); }
    .cookie-banner__actions { flex-direction: column; gap: .55rem; }
    .cookie-banner__title { font-size: 1.3rem; }
    .cookie-banner__text { font-size: .95rem; }
}

/* ── Cookie buttons (shared by banner & modal) ───────────────────────────── */

.cookie-btn {
    display: inline-block;
    font-family: var(--f);
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 500;
    padding: .85rem 1.4rem;
    border-radius: 2px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    line-height: 1.2;
    min-height: 44px;
}
.cookie-btn--primary {
    background: var(--ink);
    color: var(--bg);
    border: 1px solid var(--ink);
}
.cookie-btn--primary:hover { background: transparent; color: var(--ink); }
.cookie-btn--outline {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}
.cookie-btn--outline:hover { background: var(--ink); color: var(--bg); }
.cookie-btn--ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line);
}
.cookie-btn--ghost:hover { border-color: var(--ink); }
.cookie-btn:disabled { opacity: .55; cursor: not-allowed; }


/* ── Cookie modal ────────────────────────────────────────────────────────── */

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 1rem 2rem;
    overflow-y: auto;
}
.cookie-modal[hidden] { display: none !important; }
.cookie-modal.is-open {
    display: flex;
    animation: cookieFade .2s ease both;
}
.cookie-modal.is-leaving { animation: cookieFadeOut .2s ease both; }
@keyframes cookieFade   { from { opacity: 0; } to { opacity: 1; } }
@keyframes cookieFadeOut { from { opacity: 1; } to { opacity: 0; } }

.cookie-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 17, 14, .55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}
.cookie-modal__card {
    position: relative;
    z-index: 1;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 4px;
    width: 100%;
    max-width: 560px;
    padding: 2rem 2rem 1.6rem;
    font-family: var(--f);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.cookie-modal__x {
    position: absolute;
    top: .6rem;
    right: .6rem;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--dim);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .2s, color .2s;
}
.cookie-modal__x:hover { background: var(--bg); color: var(--ink); }
.cookie-modal__title {
    font-family: var(--f);
    font-weight: 400;
    font-size: 1.6rem;
    line-height: 1.2;
    margin: 0 2rem .6rem 0;
}
.cookie-modal__intro {
    font-size: 1rem;
    color: var(--dim-2);
    line-height: 1.55;
    margin-bottom: 1.2rem;
}
.cookie-modal__list { margin: 0; }
.cookie-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: .7rem;
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

@media (max-width: 560px) {
    .cookie-modal { padding: 2rem .8rem 1.5rem; }
    .cookie-modal__card { padding: 1.5rem 1.4rem 1.2rem; }
    .cookie-modal__title { font-size: 1.35rem; }
    .cookie-modal__foot { flex-direction: column-reverse; }
    .cookie-modal__foot .cookie-btn { width: 100%; }
}

/* ── Cookie category row ─────────────────────────────────────────────────── */

.cookie-cat {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}
.cookie-cat:last-child { border-bottom: none; }
.cookie-cat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .35rem;
}
.cookie-cat__name {
    font-family: var(--f);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0;
    line-height: 1.25;
}
.cookie-cat__desc {
    font-size: .92rem;
    color: var(--dim-2);
    line-height: 1.55;
}
.cookie-cat__badge {
    font-size: .68rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--dim);
    border: 1px solid var(--line);
    padding: .25rem .55rem;
    border-radius: 2px;
}
.cookie-cat__items {
    margin: .8rem 0 0;
    padding: 0;
    list-style: none;
    font-size: .82rem;
    color: var(--dim);
    line-height: 1.5;
}
.cookie-cat__items li {
    padding: .25rem 0;
    border-top: 1px dashed var(--line);
}
.cookie-cat__items li:first-child { border-top: none; }
.cookie-cat__items strong {
    color: var(--ink);
    font-weight: 500;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: .78rem;
}
.cookie-cat__items em { font-style: italic; }
.cookie-cat__sep { margin: 0 .35rem; color: var(--line); }

/* ── Cookie switch toggle ────────────────────────────────────────────────── */

.cookie-switch {
    display: inline-block;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}
.cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-switch__track {
    display: block;
    width: 44px;
    height: 24px;
    background: #D8D0C4;
    border-radius: 12px;
    position: relative;
    transition: background .2s ease;
}
.cookie-switch__thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}
.cookie-switch input:checked + .cookie-switch__track {
    background: var(--ink);
}
.cookie-switch input:checked + .cookie-switch__track .cookie-switch__thumb {
    transform: translateX(20px);
}
.cookie-switch input:focus-visible + .cookie-switch__track {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

/* ── Footer cookie links ─────────────────────────────────────────────────── */

.foot-legal {
    padding-top: .8rem;
    font-size: .9rem;
    color: var(--dim);
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .25rem;
    align-items: center;
    justify-content: flex-end;
}

.foot-credit {
    margin-top: 1.8rem;
    padding: 1.2rem 1rem;
    border-top: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.04);
    border-radius: 4px;
    font-size: 1rem;
    letter-spacing: .02em;
    color: rgba(255,255,255,.85);
    text-align: center;
    font-style: italic;
}
.foot-credit a {
    display: inline-block;
    margin-left: .4rem;
    color: #E8C88B;
    font-weight: 600;
    font-style: normal;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color .2s;
}
.foot-credit a:hover { color: #FFDCA0; }
.foot-legal a,
.foot-legal button {
    color: var(--dim-2);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-family: var(--f);
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .2s;
}
.foot-legal a:hover,
.foot-legal button:hover { color: var(--ink); }
.foot-legal__sep { color: var(--dim); margin: 0 .25rem; }

/* ── Cookie / privacy policy pages ───────────────────────────────────────── */

.legal-doc { padding: 4rem 0 5rem; }
.legal-doc .corpo--sm { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.legal-doc h2 {
    font-family: var(--f);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--ink);
    margin: 2.4rem 0 .8rem;
    line-height: 1.25;
}
.legal-doc h3 {
    font-family: var(--f);
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--ink);
    margin: 1.6rem 0 .6rem;
}
.legal-doc p,
.legal-doc li {
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--dim-2);
}
.legal-doc p { margin-bottom: 1rem; }
.legal-doc ul { padding-left: 1.4rem; margin-bottom: 1.2rem; list-style: disc; }
.legal-doc ul li { margin-bottom: .4rem; }
.legal-doc strong { color: var(--ink); font-weight: 500; }
.legal-doc a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-doc .legal-meta {
    color: var(--dim);
    font-size: .9rem;
    font-style: italic;
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}
.legal-doc .legal-actions {
    margin: 1.2rem 0 2.4rem;
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: .8rem 0 1.6rem;
    font-size: .95rem;
}
.legal-table th,
.legal-table td {
    padding: .75rem .9rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
    color: var(--dim-2);
}
.legal-table th {
    font-weight: 500;
    color: var(--ink);
    font-size: .82rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--bg);
}
.legal-table td:first-child {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: .85rem;
    color: var(--ink);
}
.legal-empty {
    padding: 1rem;
    border: 1px dashed var(--line);
    color: var(--dim);
    font-style: italic;
    font-size: .95rem;
    margin-bottom: 1.6rem;
}

@media (max-width: 560px) {
    .legal-table thead { display: none; }
    .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
    .legal-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--line);
    }
    .legal-table td {
        border: none;
        border-bottom: 1px dashed var(--line);
        padding: .55rem .8rem;
    }
    .legal-table td:last-child { border-bottom: none; }
    .legal-table td::before {
        content: attr(data-label) " · ";
        color: var(--dim);
        font-size: .78rem;
        text-transform: uppercase;
        letter-spacing: .08em;
    }
}
