/* ==========================================================================
   SCHIACCIALERT — Pagine interne (bere.html, eventi.html, galleria.html)
   ========================================================================== */
:root {
  --red: #C8161D; --red-2: #A50F15; --red-3: #6E080C; --cream: #F7EBD3; --paper: #FBF4E4; --ink: #1A1210; --yellow: #FFC72C; --muted: #6F5F55;
  --f-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif; --f-hand: 'Kaushan Script', cursive; --f-script: 'Lobster', cursive; --f-mono: 'Space Mono', ui-monospace, monospace;
  --spring: cubic-bezier(.34, 1.56, .64, 1); --pad: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Jost', system-ui, sans-serif; font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: var(--pad); }

/* ---- testata ---- */
.pnav { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--cream); border-bottom: 5px solid transparent; border-image: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, var(--ink) 10px 20px) 5; }
.pnav__in { max-width: 1320px; margin: 0 auto; padding: 10px var(--pad); display: flex; align-items: center; gap: 18px; min-height: 60px; }
.pnav__brand { display: flex; align-items: center; gap: 9px; font-family: var(--f-script); font-size: 23px; text-decoration: none; white-space: nowrap; }
.pnav__brand span { width: 34px; height: 34px; border-radius: 9px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85), inset 0 0 0 4px var(--red); }
.pnav__brand b { font-weight: 400; color: var(--yellow); }
.pnav__links { display: flex; align-items: center; gap: 20px; margin-left: auto; font-weight: 500; font-size: 15.5px; }
.pnav__links a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.pnav__links a:hover, .pnav__links a[aria-current] { border-color: var(--yellow); color: var(--yellow); }
.pnav__links .pnav__cta { background: var(--yellow); color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 600; border: 0; }
.pnav__links .pnav__cta:hover { color: var(--ink); background: #fff; }
.pnav__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; margin-right: -8px; }
.pnav__burger span { position: absolute; left: 10px; right: 10px; height: 2.5px; background: var(--cream); border-radius: 2px; transition: transform .3s, top .3s; }
.pnav__burger span:nth-child(1) { top: 17px; } .pnav__burger span:nth-child(2) { top: 26px; }
.pnav.is-open .pnav__burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.pnav.is-open .pnav__burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.lang { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; border: 1.5px solid currentColor; font-family: var(--f-mono); font-size: 12px; line-height: 1; flex: none; }
.lang svg { width: 15px; height: 15px; }
.lang select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; color: #1A1210; }
@media (max-width: 980px) {
  .pnav .lang { margin-left: auto; }
  .pnav__burger { display: block; }
  .pnav__links { position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); padding: 8px var(--pad) 20px; display: none; font-size: 19px; box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .6); }
  .pnav.is-open .pnav__links { display: flex; }
  .pnav__links a { padding: 13px 0; border-bottom: 1px solid rgba(247, 235, 211, .14); }
  .pnav__links .pnav__cta { margin-top: 14px; text-align: center; padding: 13px; }
}

/* ---- intestazione di pagina ---- */
.phero { position: relative; overflow: hidden; background: radial-gradient(ellipse 80% 90% at 75% 30%, #E3262D, var(--red) 50%, var(--red-3) 125%); color: var(--cream); padding: clamp(46px, 8vw, 96px) 0 clamp(40px, 6vw, 70px); }
.phero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(0, 0, 0, .2) 1.2px, transparent 1.7px) 0 0 / 14px 14px; opacity: .6; }
.phero .wrap { position: relative; }
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); }
.phero h1 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(52px, 8.4vw, 116px); line-height: .9; margin-top: 10px; text-shadow: .03em .035em 0 var(--red-3); }
.phero h1 em, h2 em { font-family: var(--f-script); font-style: normal; text-transform: none; color: var(--yellow); }
.phero p.lead { margin-top: 16px; max-width: 58ch; font-size: clamp(17px, 1.7vw, 21px); }
.phero__pics { position: absolute; right: -30px; top: 50%; translate: 0 -50%; display: flex; gap: 14px; opacity: .95; }
.phero__pics img { width: clamp(120px, 15vw, 210px); aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 6px solid #fff; box-shadow: 0 20px 30px -16px rgba(0, 0, 0, .6); rotate: 4deg; }
.phero__pics img:nth-child(2) { rotate: -5deg; margin-top: 40px; }
@media (min-width: 901px) { .phero .wrap { padding-right: min(38vw, 520px); } }
@media (max-width: 900px) { .phero__pics { display: none; } }

/* ---- sotto-menu della pagina (vini / gin / birre) ---- */
.subnav { position: sticky; top: 65px; z-index: 40; background: var(--yellow); border-bottom: 2px solid var(--ink); }
.subnav .wrap { display: flex; gap: 8px; padding-block: 9px; overflow-x: auto; scrollbar-width: none; }
.subnav a { font-family: var(--f-display); text-transform: uppercase; font-size: 18px; letter-spacing: .02em; text-decoration: none; padding: 5px 16px; border-radius: 999px; border: 2px solid var(--ink); background: var(--ink); color: var(--yellow); white-space: nowrap; }
.subnav a:hover { background: #fff; color: var(--ink); }

/* ---- sezioni ---- */
.psec { padding: clamp(48px, 7vw, 90px) 0; scroll-margin-top: 110px; }
.psec:nth-of-type(even) { background: var(--cream); }
.psec__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 26px; }
.psec__head .eyebrow { color: var(--red); }
h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(42px, 6.5vw, 86px); line-height: .92; margin-top: 6px; }
h2 em { color: var(--red); }
.psec__head p.lead { margin-top: 12px; color: var(--muted); max-width: 56ch; font-size: clamp(16px, 1.5vw, 19px); }
.psec__pic { width: clamp(150px, 20vw, 250px); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 7px solid #fff; box-shadow: 0 22px 34px -20px rgba(26, 18, 16, .6); rotate: 3deg; }
.psec:nth-of-type(even) .psec__pic { rotate: -3deg; }
@media (max-width: 700px) { .psec__head { grid-template-columns: 1fr; } .psec__pic { display: none; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip { border: 2px solid var(--ink); background: transparent; padding: 7px 15px; border-radius: 999px; font-weight: 600; font-size: 14.5px; transition: all .2s; }
.chip small { font-family: var(--f-mono); font-size: 11px; opacity: .7; }
.chip:hover { background: rgba(26, 18, 16, .08); }
.chip.is-on { background: var(--ink); color: var(--cream); }

.drinks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.drink { --tc: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 18px; padding: 18px 18px 16px; box-shadow: 5px 5px 0 var(--ink); position: relative; overflow: hidden; display: flex; flex-direction: column; transition: translate .3s var(--spring), box-shadow .3s; }
.drink::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--tc); }
.drink:hover { translate: -2px -3px; box-shadow: 8px 9px 0 var(--ink); }
.drink__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.drink h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 24px; line-height: 1.02; letter-spacing: .01em; }
.drink__tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; background: var(--tc); color: #fff; padding: 4px 8px; border-radius: 6px; white-space: nowrap; flex: none; }
.drink__zona { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-top: 6px; }
.drink__desc { margin-top: 8px; color: var(--muted); font-size: 15.5px; flex: 1; }
.drink__price { margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed rgba(26, 18, 16, .25); display: flex; gap: 18px; font-family: var(--f-display); font-size: 22px; }
.drink__price small { display: block; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drink--rosso { --tc: #8E1B2C; } .drink--bianco { --tc: #B89B2E; } .drink--rosato { --tc: #D9627F; } .drink--bollicine { --tc: #C9A227; }
.drink--secco { --tc: #2F6F73; } .drink--agrumi { --tc: #D98A12; } .drink--erbe { --tc: #4E7D3A; } .drink--speziato { --tc: #9A4A1F; }
.drink--spina { --tc: #C8860D; } .drink--artigianale { --tc: #7A4A2E; } .drink--bottiglia { --tc: #3F6B8C; } .drink--analcolica { --tc: #5B8F6B; }
.pnote { margin-top: 26px; padding: 14px 18px; border-radius: 14px; background: #fff; border-left: 5px solid var(--yellow); font-size: 15px; color: var(--muted); }

/* ---- eventi ---- */
.ev { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(18px, 3vw, 40px); padding: clamp(22px, 3vw, 36px) 0; border-top: 2px solid var(--ink); }
.ev__meta { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.ev h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4vw, 50px); line-height: .95; margin: 8px 0 10px; }
.ev header p:not(.ev__meta) { color: var(--muted); }
.ev__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ev__grid button, .wall button { position: relative; padding: 0; border: 0; background: var(--cream); border-radius: 10px; overflow: hidden; }
.ev__grid button { aspect-ratio: 1; }
.ev__grid img, .wall img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s var(--spring); }
.ev__grid button:hover img, .wall button:hover img { scale: 1.06; }
.ev__grid button:first-child { grid-column: span 2; grid-row: span 2; }
.ev__grid span { position: absolute; inset: 0; background: rgba(26, 18, 16, .62); color: #fff; display: grid; place-items: center; font-family: var(--f-display); font-size: 30px; }
@media (max-width: 760px) { .ev { grid-template-columns: 1fr; } }
.empty { padding: 30px; border-radius: 18px; border: 2px dashed rgba(26, 18, 16, .3); text-align: center; color: var(--muted); }
.empty b { display: block; font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 26px; color: var(--ink); }
.pbtn { display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; min-height: 46px; padding: 9px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--red); color: #fff; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.pbtn--line { background: transparent; color: var(--ink); box-shadow: none; }
.pbtn--yellow { background: var(--yellow); color: var(--ink); }

/* ---- galleria ---- */
.wall { columns: 4 240px; column-gap: 10px; }
.wall button { display: block; width: 100%; margin: 0 0 10px; break-inside: avoid; }
.wall img { height: auto; }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(18, 11, 9, .94); display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; touch-action: pan-y; }
.lb figure { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; pointer-events: none; }
.lb img { max-width: 100%; max-height: calc(100% - 44px); object-fit: contain; border-radius: 8px; border: 5px solid #fff; }
.lb figcaption { color: var(--cream); font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; white-space: pre; }
.lb button { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--cream); background: var(--ink); color: var(--cream); font-size: 20px; }
.lb button:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.lb__x { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 26px !important; }
@media (max-width: 600px) { .lb__nav { position: absolute; bottom: 14px; } .lb__nav--p { left: 14px; } .lb__nav--n { right: 14px; } }

/* ---- striscia finale e piè di pagina ---- */
.pcta { background: var(--yellow); border-block: 2px solid var(--ink); padding: clamp(28px, 4vw, 46px) 0; }
.pcta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pcta b { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 3.6vw, 44px); line-height: 1; }
.pcta .pbtn { margin: 0; }
.pcta div { display: flex; flex-wrap: wrap; gap: 10px; }
.pfoot { background: var(--ink); color: var(--cream); padding: 44px 0 50px; }
.pfoot__in { max-width: 1180px; margin: 0 auto; padding-inline: var(--pad); display: grid; gap: 18px; justify-items: start; }
.pfoot__logo { font-family: var(--f-script); font-size: 34px; line-height: 1; }
.pfoot__logo b { font-weight: 400; color: var(--yellow); }
.pfoot__logo small { display: block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 8px; }
.pfoot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.pfoot__links a { text-decoration: none; opacity: .85; }
.pfoot__links a:hover, .pfoot__links a[aria-current] { color: var(--yellow); opacity: 1; }
.pfoot__addr { font-size: 14.5px; opacity: .75; }
