/* The public site (tavernatortuga.com). The legal pages keep their own sheet.
   Approved mockups: site/design-reference/flash.html with the hero of heroD2.html. */

@font-face { font-family: Bevan; src: url(/bevan-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Gabarito; src: url(/fonts/gabarito-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Gabarito; src: url(/fonts/gabarito-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: Gabarito; src: url(/fonts/gabarito-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }

/* The palette is the logos': ink, bone, the flag's red, the waves' blue. The
   app's yellow appears only where the app's own content does (the pirate's tape).
   White text sits on --blue-ink, not --blue: on --blue it reaches 4.47:1, short of 4.5. */
:root {
  --ink: #0B0B0B; --bone: #F3EAD7; --paper: #FBF6EA; --red: #D2281C; --blue: #2B78D0; --blue-ink: #1C5BA8;
  --yellow: #F2BA24; --muted-dark: rgba(243,234,215,.74); --muted-light: rgba(30,22,14,.72);
  --line: 2px solid var(--ink); --gutter: 40px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--bone); font: 400 1.125rem/1.55 Gabarito, system-ui, sans-serif; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--bone); outline-offset: 2px; }
.paper :focus-visible, .sheet :focus-visible { outline-color: var(--ink); }
.sign { font-family: Bevan, Georgia, serif; font-weight: 400; line-height: 1.02; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--paper); color: var(--ink); padding: 8px 14px; font-weight: 800; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Header */
.top { position: relative; z-index: 5; display: flex; align-items: center; gap: 26px; padding: 12px var(--gutter); border-bottom: 2px solid var(--bone); background: var(--ink); }
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.44rem; color: var(--bone); }
/* The whole sign inside the circle: cropping it to fill loses the flag and the ribbon. */
.brand img { width: 52px; height: 52px; object-fit: contain; background: var(--ink); border-radius: 50%; border: 2px solid var(--bone); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; font-weight: 600; font-size: 1rem; }
.nav a { padding-block: 4px; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--red); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; position: relative; padding: 0; border: 0; background: transparent; cursor: pointer; }
.burger i { position: absolute; left: 9px; right: 9px; height: 2.5px; background: var(--bone); border-radius: 2px; transition: transform .25s ease, top .25s ease; }
.burger i:first-child { top: 17px; } .burger i:last-child { top: 25px; }
.burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }

/* Buttons: flat, the venue's colour */
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; font-weight: 800; font-size: 1rem; letter-spacing: .02em; border: 2px solid var(--bone); border-radius: 10px; background: transparent; color: var(--bone); }
.btn.red { background: var(--red); border-color: var(--red); color: var(--paper); }
.btn.blue { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.paper .btn:not(.red):not(.blue), .sheet .btn:not(.red):not(.blue) { border-color: var(--ink); color: var(--ink); }

/* Hero: the room, the two signs bottom left, the facts beside them. Nothing else. */
.hero { position: relative; height: 78vh; min-height: 560px; max-height: 820px; overflow: hidden; border-bottom: 2px solid var(--bone); }
.hero .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero .slide.on { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(11,11,11,.82) 0%, rgba(11,11,11,.45) 30%, rgba(11,11,11,0) 60%); }
.corner { position: absolute; z-index: 1; left: var(--gutter); bottom: 30px; display: flex; align-items: flex-end; gap: 26px; }
.corner img { height: 190px; width: auto; }
.corner img.squalo { height: 178px; }
.facts { display: flex; flex-direction: column; gap: 2px; font-weight: 600; font-size: 1rem; color: var(--bone); padding-bottom: 12px; }
.slides-ctl { position: absolute; z-index: 2; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 12px; }
.dots { display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border: var(--line); background: var(--paper); }
.dots i.on { background: var(--red); }
.pause { width: 32px; height: 32px; display: grid; place-items: center; border: 2px solid var(--bone); border-radius: 8px; background: rgba(11,11,11,.6); color: var(--bone); cursor: pointer; padding: 0; }
.pause::before { content: ""; width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.pause[aria-pressed="true"]::before { width: 0; height: 0; border-inline: 0; border-block: 7px solid transparent; border-left: 11px solid currentColor; margin-left: 3px; }

/* No photos yet: the two signs on black. */
.hero.bare { height: auto; min-height: 0; max-height: none; padding: 56px var(--gutter) 40px; }
.hero.bare::after { display: none; }
.hero.bare .corner { position: static; }

/* The ticket band: red, like the flag. Static and scrollable until site.js sets it moving. */
.band { background: var(--red); padding: 12px 0; overflow-x: auto; border-bottom: 2px solid var(--bone); scrollbar-width: none; }
.strip { display: flex; gap: 12px; padding-inline: var(--gutter); width: max-content; }
.band.moving { overflow: hidden; }
.band.moving .strip { animation: band-scroll var(--band-duration, 40s) linear infinite; }
.band.moving:hover .strip, .band.moving:focus-within .strip { animation-play-state: paused; }
@keyframes band-scroll { to { transform: translateX(-50%); } }
.ticket { display: flex; background: var(--paper); color: var(--ink); border: var(--line); border-radius: 10px; overflow: hidden; }
.stub { width: 56px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bone); border-right: 2px dashed var(--ink); padding: 6px 0; }
.stub b { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: 1.375rem; line-height: 1; }
.stub span { font-weight: 800; font-size: .8125rem; text-transform: uppercase; }
.tbody { padding: 7px 14px; max-width: 280px; }
.tbody b { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: .9375rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbody span { font-weight: 600; font-size: .875rem; color: var(--muted-light); }
.tbody span.squalo { color: var(--blue-ink); }

/* Sections */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.sect { padding-block: 64px; }
.title { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: 2.75rem; line-height: 1.05; margin: 0 0 24px; color: var(--paper); text-wrap: balance; }
.lede { color: var(--muted-dark); font-weight: 600; max-width: 60ch; margin: 0 0 30px; }

/* The two venues, side by side */
.sheet { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.soul { background: var(--ink); color: var(--bone); border: 2px solid var(--bone); border-radius: 14px; padding: 28px 22px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.soul img { height: 300px; width: 100%; object-fit: contain; }
.soul p { margin: 0; color: var(--muted-dark); font-weight: 600; }

/* Paper: the sheets (treasures, menus) */
.paper { background: var(--paper); color: var(--ink); border-block: 2px solid var(--bone); }
.paper .title { color: var(--ink); }
.paper .lede { color: var(--muted-light); }
.tape { display: inline-block; background: var(--yellow); color: var(--ink); border: var(--line); font-weight: 800; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; transform: rotate(-2deg); }
.plates { display: flex; gap: 8px; flex-wrap: wrap; }
.plates span { border: var(--line); border-radius: 8px; padding: 2px 9px; font-weight: 800; font-size: .9375rem; background: var(--paper); color: var(--ink); }
.more { display: inline-flex; margin-top: 18px; font-weight: 800; box-shadow: inset 0 -3px 0 var(--red); }

/* The treasures: the app's register, on paper */
.treasures { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.lead { position: relative; display: block; border: var(--line); border-radius: 14px; overflow: hidden; aspect-ratio: 1/1; background: var(--bone); }
.lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--paper) 0%, rgba(251,246,234,.9) 30%, rgba(251,246,234,0) 58%); }
.lead-words { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.lead-words b { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: 2rem; line-height: 1.1; -webkit-text-stroke: 7px var(--paper); paint-order: stroke fill; }
.log { border-top: 2px solid var(--ink); }
.log a { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--ink); }
.log img, .log .no-photo { width: 72px; height: 72px; flex: none; object-fit: cover; border: var(--line); border-radius: 10px; background: var(--bone); }
.log a > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.cat { margin: 0; font-weight: 800; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-light); }
.log b { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: 1.1875rem; line-height: 1.15; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters a { border: var(--line); border-radius: 8px; padding: 6px 14px; font-weight: 800; font-size: .9375rem; }
.filters a[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* One bottle */
.bottle { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.bottle-photos { display: grid; gap: 12px; }
.bottle-photos img { width: 100%; border: var(--line); border-radius: 14px; }
.bottle .plates { margin-bottom: 16px; }
.note { border: var(--line); border-radius: 12px; padding: 16px 20px; margin-block: 20px; }
.note-title { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: 1.25rem; margin: 0 0 6px; }
.note p { margin: 0 0 8px; }
.save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-weight: 800; }

/* The app */
.app { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; border: 2px solid var(--bone); border-radius: 18px; padding: 24px 28px; }
.app-title { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: 1.75rem; margin: 0 0 4px; color: var(--paper); }
.app p { margin: 0; color: var(--muted-dark); font-weight: 600; }
.stores { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.store { background: var(--paper); color: var(--ink); border: var(--line); border-radius: 10px; padding: 8px 16px; font-weight: 800; font-size: .9375rem; line-height: 1.1; }
.store small { display: block; font-weight: 400; font-size: .6875rem; }

/* Events */
.events { display: grid; gap: 14px; max-width: 760px; }
.event-row { display: flex; align-items: stretch; background: var(--paper); color: var(--ink); border: var(--line); border-radius: 12px; overflow: hidden; }
.event-row img { width: 96px; flex: none; object-fit: cover; border-right: var(--line); }
.event-row .stub { width: 64px; }
.event-words { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.event-words b { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: 1.1875rem; line-height: 1.15; }
.event-words span { font-weight: 600; font-size: .9375rem; color: var(--muted-light); }
.event { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 40px; align-items: start; }
.poster { width: 100%; border: 2px solid var(--bone); border-radius: 12px; }
.prose { max-width: 65ch; }
.prose p { margin: 0 0 14px; }
.pour { margin-top: 24px; }
.pour-title, .tasting-title { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: 1.375rem; margin: 0 0 10px; color: var(--paper); }
.pour ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pour li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pour li a { box-shadow: inset 0 -2px 0 var(--red); }
.tasting { padding-block: 24px; border-top: 1px solid rgba(243,234,215,.3); }
.tasting .lede { margin-bottom: 14px; }

/* About and contacts */
.about-photo { width: 100%; max-width: 760px; border: 2px solid var(--bone); border-radius: 14px; margin-bottom: 24px; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact { border: 2px solid var(--bone); border-radius: 14px; padding: 22px 24px; }
.contact-name { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: 1.5rem; margin: 0 0 10px; color: var(--paper); }
.contact.taverna .contact-name { box-shadow: inset 0 -3px 0 var(--red); display: inline-block; }
.contact.squalo .contact-name { box-shadow: inset 0 -3px 0 var(--blue); display: inline-block; }
.contact p { margin: 0 0 6px; color: var(--muted-dark); font-weight: 600; }
.contact a, .contact-mail a { color: var(--bone); box-shadow: inset 0 -2px 0 currentColor; }
.contact-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px !important; }
.contact-mail { margin-top: 24px; font-weight: 600; }

/* The menu page: the switch between the two venues, the file, the PDF */
.tabs { display: grid; grid-template-columns: 1fr 1fr; max-width: 520px; border: var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.tabs a { padding: 12px 8px; text-align: center; font-weight: 800; font-size: .9375rem; }
.tabs a + a { border-left: var(--line); }
.tabs a.taverna[aria-current="page"] { background: var(--red); color: var(--paper); }
.tabs a.squalo[aria-current="page"] { background: var(--blue-ink); color: #fff; }
.menu-file { display: block; width: 100%; max-width: 760px; border: var(--line); border-radius: 12px; }
.menu-pdf { margin-top: 28px; }

/* The ribbon from the logos, as a menu section's heading */
.ribbon { position: relative; z-index: 0; display: inline-block; background: var(--paper); color: var(--red); border: var(--line); margin: 0 18px 10px; padding: 4px 16px 2px; font-family: Bevan, Georgia, serif; font-weight: 400; font-size: .9375rem; letter-spacing: .06em; text-transform: uppercase; }
/* The tails take the venue's colour: in bone on paper the V cut vanished, and clip-path drops the outline along it. */
.ribbon::before, .ribbon::after { content: ""; position: absolute; top: 7px; width: 18px; height: 100%; background: var(--red); border: var(--line); z-index: -1; }
.ribbon::before { left: -14px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%); }
.ribbon::after { right: -14px; clip-path: polygon(0 0, 100% 0, 66% 50%, 100% 100%, 0 100%); }
.squalo .ribbon { color: var(--blue-ink); }
.squalo .ribbon::before, .squalo .ribbon::after { background: var(--blue-ink); }

/* A menu, as printed: dotted leader from the dish to the price */
.menu-section { padding-block: 26px 4px; max-width: 760px; }
.menu-item { padding: 14px 0; border-bottom: 1px solid var(--ink); }
.menu-item.with-photo { display: grid; grid-template-columns: 1fr 84px; gap: 12px; align-items: start; }
.menu-item.with-photo img { width: 84px; height: 84px; object-fit: cover; border: var(--line); border-radius: 10px; }
.menu-line { display: flex; align-items: baseline; gap: 8px; }
.menu-line b { font-weight: 800; font-size: 1.125rem; }
.menu-line .leader { flex: 1; min-width: 16px; border-bottom: 2px dotted var(--ink); transform: translateY(-4px); }
.menu-line .price { font-family: Bevan, Georgia, serif; font-size: 1.1875rem; white-space: nowrap; }
.menu-item p { margin: 4px 0 6px; color: var(--muted-light); font-size: 1rem; line-height: 1.45; }
.allergens { margin: 0; font-size: .875rem; font-weight: 600; color: var(--muted-light); }

/* Closed or unreachable: the two signs and the facts. 100svh is the screen with the
   browser's bars showing: 100vh on a phone counts them hidden, and the page scrolled
   although it fitted. 100vh stays as the fallback for older browsers. */
.closed { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 16px; text-align: center; }
.closed-logos { display: flex; gap: 24px; align-items: flex-end; margin-bottom: 18px; }
.closed-logos img { height: 180px; width: auto; }
.closed h1 { font-size: 2.5rem; margin: 0 0 8px; color: var(--paper); }
.closed p { margin: 0; color: var(--muted-dark); font-weight: 600; }
.closed a { box-shadow: inset 0 -2px 0 var(--red); }
.closed-note { max-width: 40ch; margin-top: 12px !important; }
.closed-legal { display: flex; gap: 18px; margin-top: 24px; font-size: .9375rem; }

/* Footer */
.foot { border-top: 2px solid var(--bone); padding-block: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.foot-title { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: 1.3125rem; margin: 0 0 8px; color: var(--paper); }
.foot p { margin: 0; color: var(--muted-dark); font-size: 1rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.foot a { box-shadow: inset 0 -1px 0 currentColor; }
.foot a[aria-current="page"] { color: var(--paper); box-shadow: inset 0 -2px 0 var(--red); }
.foot-company, .closed-company { grid-column: 1 / -1; margin: 8px 0 0; font-size: .875rem; color: var(--muted-dark); }

/* Legal pages: the reviewed text, on paper, in a reading column */
.legal > * { max-width: 63ch; }
.legal > .tabella { max-width: none; }
.legal h1 { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: clamp(2rem, 1.55rem + 2.2vw, 3rem); line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
.legal h2 { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem); line-height: 1.15; margin: 64px 0 12px; text-wrap: balance; }
.legal h2:first-of-type { margin-top: 48px; }
.legal h3 { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: 1.0625rem; line-height: 1.3; margin: 32px 0 8px; }
.legal p, .legal ul, .legal ol { margin: 0 0 16px; }
.legal ul, .legal ol { padding-left: 1.15em; }
.legal li { margin-block: 4px; }
.legal strong { font-weight: 600; }
.legal a { box-shadow: inset 0 -1px 0 currentColor; }
.legal .nascosto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.legal .aggiornato { margin-bottom: 48px; font-size: .9375rem; font-style: italic; color: var(--muted-light); }
.legal .apri { display: inline-block; background: var(--red); color: var(--paper); border: var(--line); border-radius: 10px; padding: 12px 24px; font-family: Bevan, Georgia, serif; font-size: 1.125rem; line-height: 1; box-shadow: none; margin-block: 8px; }
.legal .tabella { overflow-x: auto; margin-bottom: 32px; border-block: 2px solid var(--ink); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.legal th { font-family: Bevan, Georgia, serif; font-weight: 400; font-size: .875rem; }
.legal th, .legal td { padding: 12px 16px 12px 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid rgba(38,30,18,.2); }
.legal tr:last-child > * { border-bottom: 0; }
@media (max-width: 600px) {
  .legal td { hyphens: auto; hyphenate-limit-chars: 10 4 4; }
  .legal th:first-child { width: 30%; } .legal th:nth-child(2) { width: 40%; }
}

@media (max-width: 860px) {
  :root { --gutter: 16px; }
  body { font-size: 1.0625rem; }
  .top { padding-block: 10px; }
  /* No burger (legal pages, or no scripting): the links take their own row under the sign. */
  .top { flex-wrap: wrap; row-gap: 8px; }
  .nav { margin-left: 0; width: 100%; }
  .brand { font-size: 1.1875rem; }
  .sect { padding-block: 48px; }
  .title { font-size: 2.125rem; }
  .sheet, .foot-grid, .treasures, .bottle, .event, .contacts { grid-template-columns: 1fr; }
  .lead { aspect-ratio: 4/5; }
  .stores { margin-left: 0; }
  .soul img { height: 220px; }
}

/* Phones: the links fold behind the burger. Without scripting, or on the legal pages
   that run none (no .scripted), they stay in view. */
@media (max-width: 860px) and (scripting: enabled) {
  .scripted .burger { display: block; }
  .scripted .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 18px; background: var(--ink); border-bottom: 2px solid var(--bone); font-size: 1.25rem; }
  .scripted.open .nav { display: flex; }
  .scripted .nav a { padding-block: 12px; border-bottom: 1px solid rgba(243,234,215,.2); }
  .scripted .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--red); padding-left: 14px; }
}

@media (max-width: 600px) {
  .hero { height: 540px; min-height: 0; }
  .corner { left: 16px; right: 16px; bottom: 20px; flex-wrap: wrap; gap: 12px; }
  .corner img { height: 130px; } .corner img.squalo { height: 122px; }
  .facts { width: 100%; padding: 0; font-size: .9375rem; }
  .slides-ctl { top: 16px; right: 16px; bottom: auto; }
  .closed-logos img { height: 120px; }
}

/* Riduci movimento: the photos stay put, the band stays still and scrolls by hand. */
@media (prefers-reduced-motion: reduce) {
  .hero .slide, .burger i { transition: none; }
  .band.moving .strip { animation: none; }
}
