/* Paestra, cicchetteria e cocktail bar
   Palette ricavata dal locale: parete antracite con i coni di luce dei faretti,
   legno grezzo di tavoli e lettere, luce ambra del bancone, rosso del logo. */

:root {
  --night:      #131312;
  --wall:       #262624;
  --wall-edge:  #1c1c1a;
  --wood:       #b98a55;
  --wood-light: #dcbf94;
  --wood-pale:  #efe2cb;
  --wood-deep:  #7c5329;
  --amber:      #f0903f;
  --red:        #bf1a26;
  --red-bright: #e8404a;
  --red-deep:   #96131d;
  --cream:      #f4ecdc;
  --mute:       #b9ae9b;
  --ink:        #241d15;
  --font-logo:    "Comfortaa", "Quicksand", "Trebuchet MS", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body:    "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 10px;
  --cones: radial-gradient(ellipse 50% 100% at 50% 0, rgba(255, 230, 186, .17), rgba(255, 230, 186, .06) 46%, transparent 72%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--cream);
  background: var(--night);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--cream); color: var(--ink); border-radius: 6px; }
.skip-link:focus { top: 1rem; }

/* Bilanciere di bottiglie: il motivo del logo, usato come fregio */
.barbell { display: block; width: 118px; height: auto; fill: currentColor; color: var(--wood); margin: 1.1rem 0 1.5rem; }

/* Pulsanti */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-logo); font-weight: 700; font-size: .92rem; letter-spacing: .02em;
  text-decoration: none; line-height: 1.2; transition: background-color .2s, border-color .2s, transform .2s;
}
.btn svg { fill: currentColor; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #d4222f; }
.btn-ghost { border-color: rgba(244, 236, 220, .45); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(244, 236, 220, .08); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #3a2f22; }
.btn-small { padding: .62rem 1.05rem; font-size: .84rem; }

/* Testata */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(19, 19, 18, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 236, 220, .08);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.brand-name { font-family: var(--font-logo); font-weight: 700; font-size: 1.5rem; letter-spacing: .05em; text-transform: uppercase; color: var(--red-bright); }
.brand-sub { font-family: var(--font-logo); font-weight: 500; font-size: .62rem; letter-spacing: .2em; color: var(--mute); margin-top: .35rem; white-space: nowrap; }
.site-nav { display: flex; gap: 1.5rem; }
.site-nav a {
  font-family: var(--font-logo); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--cream); opacity: .78; padding: .4rem 0; border-bottom: 2px solid transparent; transition: opacity .2s, border-color .2s;
}
.site-nav a:hover { opacity: 1; border-color: var(--wood); }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.icon-link { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--cream); border: 1.5px solid rgba(244, 236, 220, .25); transition: border-color .2s, color .2s; }
.icon-link svg { fill: currentColor; }
.icon-link:hover { border-color: var(--wood-light); color: var(--wood-light); }
.only-narrow { display: none; }

/* Apertura: a sinistra la parete con le lettere, a destra il bancone */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); min-height: min(760px, calc(100vh - 68px)); background: var(--wall); }
.hero-wall {
  display: flex; align-items: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.75rem) clamp(3rem, 6vw, 5rem) max(1.25rem, calc((100vw - 1180px) / 2));
  background-color: var(--wall);
  background-image: var(--cones), linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .28));
  background-size: 190px 330px, auto;
  background-repeat: repeat-x, no-repeat;
  background-position: 24px 0, 0 0;
}
.hero-text { width: 100%; max-width: 540px; }
.hero h1 { font-weight: 400; }
.eyebrow, .label {
  display: block; font-family: var(--font-logo); font-weight: 700; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; color: var(--wood-light);
}
.wall-word {
  display: block; margin: .9rem 0 0 -.04em;
  font-family: var(--font-logo); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1;
  font-size: clamp(3.2rem, 7.1vw, 6rem);
  color: var(--wood);
  background: linear-gradient(175deg, #e3c79d 8%, #b98a55 48%, #8c6336 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(7px 9px 5px rgba(0, 0, 0, .55));
  padding-bottom: .12em;
}
.hero-slogan { font-family: var(--font-display); font-style: italic; font-size: clamp(1.6rem, 2.7vw, 2.15rem); line-height: 1.2; margin-top: 1.1rem; color: var(--cream); }
.hero-lead { margin-top: .9rem; color: var(--mute); max-width: 30em; }
.today { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.5rem; padding: .45rem .95rem; border-radius: 999px; background: rgba(0, 0, 0, .32); border: 1px solid rgba(244, 236, 220, .14); font-size: .92rem; font-weight: 500; }
.today-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(240, 144, 63, .22); flex: none; }
.today.is-closed .today-dot { background: var(--mute); box-shadow: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.hero-rating { margin-top: 1.4rem; font-size: .92rem; color: var(--mute); }
.stars { color: var(--amber); letter-spacing: .12em; margin-right: .3rem; }
.hero-photo { position: relative; min-height: 420px; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--wall) 0, transparent 14%); pointer-events: none; }

/* Sezioni */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-night { background: var(--night); }
.section-wall { background-color: var(--wall); background-image: var(--cones); background-size: 190px 330px; background-repeat: repeat-x; background-position: 40px 0; }
.section h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.005em; margin-top: .8rem; }
.section p + p { margin-top: .9rem; }
.section-head { max-width: 660px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-intro { color: var(--mute); font-size: 1.1rem; }

/* Il locale */
.place { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.place-text p { color: var(--mute); }
.place-text .label { color: var(--wood-light); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(244, 236, 220, .12); font-size: .96rem; line-height: 1.4; }
.facts li { display: flex; gap: .7rem; align-items: flex-start; }
.facts li::before { content: ""; flex: none; width: 13px; height: 13px; margin-top: .2em; border-radius: 50%; border: 3.5px solid var(--wood); }
.place-photos { display: grid; grid-template-columns: minmax(0, 1.95fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; aspect-ratio: 1 / .86; }
.place-photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius); }
.place-photos .p-wall { grid-row: 1 / 3; }
.place-photos .p-terrace { object-position: 50% 12%; }

/* I cocktail della casa */
.drinks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem 1.5rem; }
.drink img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--wall-edge); }
.drink-body { margin-top: 1rem; }
.drink-num { font-family: var(--font-logo); font-weight: 700; font-size: .72rem; letter-spacing: .22em; color: var(--wood); }
.drink h3 { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.8rem; line-height: 1.08; margin: .25rem 0 .55rem; }
.drink p { font-size: .94rem; line-height: 1.55; color: var(--mute); }
.drink .drink-note { margin-top: .45rem; color: var(--wood-light); font-style: italic; }
.drink-board {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 2rem 1.4rem; border-radius: var(--radius); color: #33220f;
  background-color: #b88852;
  background-image: repeating-linear-gradient(93deg, rgba(60, 34, 8, .09) 0 2px, transparent 2px 11px), linear-gradient(165deg, #d2a36b, #a87742 58%, #8f6335);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 40px -22px rgba(0, 0, 0, .8);
}
.drink-board .barbell { color: #33220f; margin: 0 0 1.2rem; width: 96px; opacity: .85; }
.drink-board p { font-family: var(--font-display); font-style: italic; font-size: 2rem; line-height: 1.12; text-shadow: 0 1px 0 rgba(255, 255, 255, .22); }

/* Cicchetti e aperitivo: sezione chiara, come un tavolo di legno alla luce del giorno */
.section-wood { background-color: var(--wood-pale); background-image: repeating-linear-gradient(91deg, rgba(124, 83, 41, .05) 0 1px, transparent 1px 8px); color: var(--ink); }
.section-wood .label { color: var(--wood-deep); }
.section-wood .barbell { color: var(--red); }
.bites { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.bites-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: 0 26px 54px -28px rgba(60, 34, 8, .75); }
.bites-text p { color: #4b3f31; }
.bites-text .btn { margin-top: 1.7rem; }

/* Le serate */
.section-glow { background: radial-gradient(ellipse 60% 85% at 22% 55%, rgba(240, 144, 63, .2), transparent 70%), var(--night); }
.nights { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.nights-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(240, 144, 63, .5); }
.nights-text h2 { font-style: italic; }
.nights-text p { color: var(--mute); }
.nights-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }

/* Al bancone: galleria a mosaico */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; grid-auto-flow: dense; }
.mosaic li { aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--wall-edge); }
.mosaic li.tall { grid-row: span 2; aspect-ratio: auto; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mosaic li:hover img { transform: scale(1.04); }

/* Recensioni: il rosso del logo */
.section-red { background: linear-gradient(160deg, #a81722, var(--red-deep)); }
.section-red .label { color: #ffd6c6; }
.reviews { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.score { display: flex; align-items: center; gap: 1.1rem; margin: 1.6rem 0 1.8rem; }
.score-num { font-family: var(--font-logo); font-weight: 700; font-size: 4.6rem; line-height: 1; letter-spacing: -.02em; }
.score-side { display: flex; flex-direction: column; font-size: .95rem; line-height: 1.45; }
.section-red .stars { color: #ffd08a; font-size: 1.1rem; }
.section-red .btn-ghost { border-color: rgba(255, 255, 255, .55); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quotes li { display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; padding: 1.6rem 1.5rem; border-radius: var(--radius); background: rgba(0, 0, 0, .2); border: 1px solid rgba(255, 255, 255, .1); }
.quotes .quote-wide { grid-column: 1 / -1; }
.quotes blockquote { font-family: var(--font-display); font-size: 1.32rem; line-height: 1.32; }
.quotes .quote-wide blockquote { font-size: 1.7rem; line-height: 1.24; }
.quotes blockquote::before { content: "«"; }
.quotes blockquote::after { content: "»"; }
.quote-by { font-family: var(--font-logo); font-weight: 700; font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: #ffd6c6; }

/* Orari e contatti */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.08rem; }
.hours th, .hours td { padding: .82rem 0; border-bottom: 1px dashed rgba(244, 236, 220, .2); }
.hours th { text-align: left; font-family: var(--font-logo); font-weight: 700; font-size: .92rem; letter-spacing: .06em; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-closed th, .hours .is-closed td { color: #8f8677; }
.hours .is-today th, .hours .is-today td { color: var(--amber); }
.hours .is-today th::after { content: "oggi"; margin-left: .7rem; padding: .16rem .55rem; border-radius: 999px; background: rgba(240, 144, 63, .16); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.hours-note { margin-top: 1.1rem; font-size: .95rem; color: var(--mute); }
.contact-list { display: grid; gap: 1.2rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg { flex: none; margin-top: .15rem; fill: var(--wood); }
.contact-list a { font-size: 1.12rem; font-weight: 500; text-decoration-color: rgba(244, 236, 220, .35); text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration-color: var(--amber); }
.contact-hint { display: block; font-size: .9rem; color: var(--mute); }
.map { margin-top: 1.8rem; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(244, 236, 220, .12); }
.map iframe { display: block; width: 100%; height: 300px; border: 0; }

/* Piè di pagina: il logo ricomposto, nome, bilanciere e dicitura */
.site-footer { background: #0b0b0a; padding: 3.5rem 0 2.5rem; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.3rem; }
.footer-logo { display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.footer-name { font-family: var(--font-logo); font-weight: 700; font-size: 2.5rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1; color: var(--red-bright); }
.footer-logo .barbell { width: 250px; max-width: 100%; color: #fff; margin: .1rem 0 .5rem; }
.footer-sub { font-family: var(--font-logo); font-weight: 500; font-size: .74rem; letter-spacing: .24em; color: var(--red-bright); }
.footer-lines { color: var(--mute); font-size: .98rem; }
.footer-lines a { color: var(--cream); text-decoration: none; font-weight: 500; }
.footer-ig { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--cream); font-size: .98rem; }
.footer-ig svg { fill: currentColor; flex: none; }
.footer-ig:hover, .footer-lines a:hover { color: var(--wood-light); }
.footer-copy { font-size: .84rem; color: #7f7667; }

/* Schermi medi */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .drinks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hero-photo::after { background: linear-gradient(0deg, var(--wall) 0, transparent 22%); }
  .hero-wall { padding: 2.2rem 1.25rem 3.2rem; background-position: 10px 0, 0 0; }
  .wall-word { font-size: clamp(3rem, 15.5vw, 5.4rem); }
  .place, .bites, .nights, .contact { grid-template-columns: 1fr; }
  .place-photos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; aspect-ratio: auto; }
  .place-photos .p-wall { grid-column: 1 / 3; grid-row: auto; height: auto; aspect-ratio: 4 / 5; }
  .place-photos img:not(.p-wall) { height: auto; aspect-ratio: 1; }
  .bites-photo { order: 2; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Telefono */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .header-inner { gap: .8rem; min-height: 62px; }
  .brand-name { font-size: 1.3rem; }
  .brand-sub { font-size: .6rem; letter-spacing: .1em; }
  .hero .eyebrow { font-size: .7rem; letter-spacing: .15em; }
  .hero-actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; }
  .drinks { grid-template-columns: 1fr; gap: 1.6rem; }
  .drink { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 1rem; align-items: start; }
  .drink-body { margin-top: 0; }
  .drink h3 { font-size: 1.6rem; }
  .drink-board { padding: 2.2rem 1.4rem; }
  .quotes { grid-template-columns: 1fr; }
  .quotes blockquote { font-size: 1.22rem; }
  .quotes .quote-wide blockquote { font-size: 1.36rem; }
  .score-num { font-size: 3.8rem; }
  .nights-actions .btn, .bites-text .btn { width: 100%; }
  .footer-name { font-size: 2.1rem; }
}

/* Telefoni molto stretti: in testata resta solo il nome */
@media (max-width: 350px) {
  .brand-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .mosaic img { transition: none; }
}
