/* =========================================================
   Crosta - Italian Bites | crostaitalianbites.com
   Linguaggio visivo ereditato dal menu (stessi token).
   ========================================================= */

:root {
  --crosta-red: #b20c12;
  --crosta-red-dark: #82080c;
  --crosta-blue: #123477;
  --crosta-blue-dark: #0a2459;
  --crosta-ink: #0d1f45;
  --crosta-white: #f9f1e9;
  --crosta-paper: #f1e6dc;
  --crosta-line: rgba(18, 52, 119, 0.28);

  --brand: "Rye", Georgia, serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --serif: "Libre Baskerville", Georgia, serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 62px;
  --wrap: 1120px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--crosta-white);
  color: var(--crosta-ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: var(--crosta-blue);
}

:focus-visible {
  outline: 3px solid var(--crosta-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--crosta-blue);
  color: var(--crosta-white);
  font-family: var(--display);
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

/* ---------- Checkerboard: firma del brand ---------- */

.checkers {
  height: 22px;
  background:
    conic-gradient(
      from 90deg,
      var(--crosta-white) 25%,
      var(--crosta-red) 0 50%,
      var(--crosta-white) 0 75%,
      var(--crosta-red) 0
    )
    0 0 / 22px 22px;
}

.checkers-drift {
  animation: checker-drift 22s linear infinite;
}

.band-sep {
  height: 26px;
  background-size: 26px 26px;
}

@keyframes checker-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 44px 0;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--crosta-white);
  box-shadow: 0 2px 0 var(--crosta-line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
  height: var(--header-height);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--crosta-ink);
}

.header-brand img {
  width: auto;
  height: 42px;
  display: block;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-nav a {
  color: var(--crosta-blue);
  text-decoration: none;
}

.header-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.header-cta {
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--crosta-red);
  color: var(--crosta-white) !important;
  box-shadow: 0 2px 0 var(--crosta-red-dark);
}

.header-cta:hover {
  background: var(--crosta-red-dark);
  text-decoration: none !important;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 220ms var(--ease-out), background-color 220ms var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-red {
  background: var(--crosta-red);
  color: var(--crosta-white);
  box-shadow: 0 3px 0 var(--crosta-red-dark);
}

.btn-blue {
  background: var(--crosta-blue);
  color: var(--crosta-white);
  box-shadow: 0 3px 0 var(--crosta-blue-dark);
}

.btn-cream {
  background: var(--crosta-white);
  color: var(--crosta-red);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

.btn-ghost {
  color: var(--crosta-white);
  border: 2px solid rgba(249, 241, 233, 0.8);
  background: rgba(8, 14, 32, 0.42);
  backdrop-filter: blur(3px);
}

.btn-ghost:hover {
  background: rgba(249, 241, 233, 0.14);
}

.btn-small {
  padding: 9px 18px;
  font-size: 0.95rem;
}

.btn-big {
  padding: 16px 34px;
  font-size: 1.24rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.06);
  animation: hero-settle 2600ms var(--ease-out) both;
}

@keyframes hero-settle {
  from {
    transform: scale(1.14);
  }
  to {
    transform: scale(1.06);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 14, 32, 0.74) 0%,
    rgba(8, 14, 32, 0.52) 50%,
    rgba(8, 14, 32, 0.12) 86%,
    rgba(8, 14, 32, 0.28) 100%
  );
}

.hero-inner {
  position: relative;
  padding: 90px 24px 110px;
  text-align: center;
  color: var(--crosta-white);
  max-width: 760px;
}

.hero-eyebrow {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(249, 241, 233, 0.82);
  animation: rise 800ms var(--ease-out) both 260ms;
}

.hero-title {
  margin: 0;
  line-height: 0;
}

.neon-sign {
  width: min(70vw, 420px);
  height: auto;
  margin-inline: auto;
}

.hero-sub {
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(1.1rem, 4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-indent: 0.42em;
  color: var(--crosta-white);
  animation: rise 900ms var(--ease-out) both 420ms;
}

.hero-line {
  margin: 26px auto 0;
  max-width: 40ch;
  font-size: clamp(1rem, 2.6vw, 1.16rem);
  font-style: italic;
  color: rgba(249, 241, 233, 0.94);
  animation: rise 900ms var(--ease-out) both 520ms;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 34px;
  animation: rise 900ms var(--ease-out) both 620ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 46px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 42px;
  border: 2px solid rgba(249, 241, 233, 0.6);
  border-radius: 999px;
}

.hero-scroll-dot {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--crosta-white);
  animation: scroll-dot 1900ms var(--ease-out) infinite;
}

@keyframes scroll-dot {
  0% {
    transform: translateY(-7px);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(8px);
    opacity: 0;
  }
}

.hero-checkers {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

/* ---------- Sections ---------- */

.section {
  padding: 74px 0;
}

.section-story {
  background: var(--crosta-paper);
}

.section-taste {
  background: var(--crosta-white);
}

.section-place {
  background: var(--crosta-paper);
  padding-bottom: 84px;
}

.section-find {
  background: var(--crosta-white);
}

.section-title {
  margin: 0;
  font-family: var(--brand);
  font-size: clamp(1.9rem, 5.6vw, 2.9rem);
  line-height: 1.12;
  color: var(--crosta-red);
}

.section-kicker {
  margin: 12px 0 34px;
  max-width: 56ch;
  font-size: 1.04rem;
  font-style: italic;
  color: rgba(13, 31, 69, 0.82);
}

/* ---------- Frame: cornice blu/rossa (dal menu) ---------- */

.frame {
  overflow: hidden;
  border: 3px solid var(--frame-color, var(--crosta-blue));
  border-radius: 15px 14px 12px 12px;
  background: var(--crosta-white);
  transform-origin: top center;
}

.frame-blue {
  --frame-color: var(--crosta-blue);
}

.frame-red {
  --frame-color: var(--crosta-red);
}

.frame-head {
  margin: -3px -3px 0;
  padding: 10px 20px;
  background: var(--frame-color);
  color: var(--crosta-white);
  border-radius: 13px 12px 0 0;
  font-family: var(--brand);
  font-size: 1.24rem;
  font-weight: 400;
  line-height: 1.3;
}

.frame-body {
  padding: 24px 22px 26px;
}

/* reveal a cornice, come i box del menu */

.reveal {
  opacity: 0;
}

.reveal.in-view {
  animation: frame-open 620ms var(--ease-out) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes frame-open {
  from {
    opacity: 0;
    transform: translateY(10px) scaleY(0.92);
    clip-path: inset(0 0 100% 0 round 12px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    clip-path: inset(0 round 12px);
  }
}

/* ---------- Story ---------- */

.story-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 30px;
  align-items: start;
  padding: 30px 28px 32px;
}

.story-text p {
  margin: 0 0 16px;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-text .lead {
  font-family: var(--brand);
  font-size: clamp(1.3rem, 3.6vw, 1.72rem);
  line-height: 1.34;
  color: var(--crosta-blue);
  margin-bottom: 22px;
}

.story-hand {
  margin: 0;
  text-align: center;
}

.hand-art {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--crosta-red);
  background: var(--crosta-paper);
}

.hand-art video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.32);
  animation: hand-wrist 2600ms var(--ease-out) infinite;
}

@keyframes hand-wrist {
  0% {
    transform: scale(1.32) rotate(0deg);
  }
  18% {
    transform: scale(1.32) rotate(-5deg) translate3d(-1px, 3px, 0);
  }
  38% {
    transform: scale(1.32) rotate(7deg) translate3d(2px, -4px, 0);
  }
  56% {
    transform: scale(1.32) rotate(-3.5deg) translate3d(-1px, 1px, 0);
  }
  73% {
    transform: scale(1.32) rotate(3deg) translate3d(1px, -2px, 0);
  }
  88% {
    transform: scale(1.32) rotate(-1deg) translate3d(0, 1px, 0);
  }
  100% {
    transform: scale(1.32) rotate(0deg);
  }
}

.story-hand figcaption {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.34;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--crosta-red);
}

/* ---------- Taste ---------- */

.taste-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(266px, 1fr));
  gap: 22px;
}

.taste-card {
  display: flex;
  flex-direction: column;
}

.taste-card:nth-child(2) {
  --reveal-delay: 90ms;
}

.taste-card:nth-child(3) {
  --reveal-delay: 180ms;
}

.taste-shot {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--crosta-paper);
}

.taste-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.taste-card:hover .taste-shot img {
  transform: scale(1.05);
}

.taste-copy {
  padding: 18px 20px 22px;
}

.taste-copy h3 {
  margin: 0 0 8px;
  font-family: var(--brand);
  font-size: 1.32rem;
  font-weight: 400;
  color: var(--crosta-red);
}

.taste-copy p {
  margin: 0;
  font-size: 0.98rem;
}

/* ---------- Gallery ---------- */

.gallery {
  width: min(100% - 40px, var(--wrap));
  margin: 6px auto 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

/* Stessa proporzione per tutte: cambia solo la larghezza, mai il taglio.
   Cosi' nessuna foto viene schiacciata o tagliata piu' delle altre. */
.shot {
  margin: 0;
  overflow: hidden;
  border: 3px solid var(--crosta-blue);
  border-radius: 14px 13px 11px 12px;
  background: var(--crosta-white);
  grid-column: span 2;
  aspect-ratio: 3 / 2;
}

.shot-wide {
  grid-column: span 3;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.shot:nth-child(3n + 2) {
  --reveal-delay: 80ms;
}

.shot:nth-child(3n) {
  --reveal-delay: 160ms;
}

/* ---------- Find us ---------- */

.find-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.find-grid .frame:nth-child(2) {
  --reveal-delay: 90ms;
}

.hours {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hours span {
  font-size: 1.02rem;
  color: rgba(13, 31, 69, 0.72);
}

.hours b {
  font-size: 1.66rem;
  font-weight: 700;
  color: var(--crosta-red);
}

.hours-note {
  margin: 10px 0 0;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(13, 31, 69, 0.75);
}

.contact-list p {
  margin: 0 0 12px;
}

.contact-list p:last-child {
  margin-bottom: 0;
}

.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--crosta-blue);
}

.contact-list a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-list svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: none;
  stroke: var(--crosta-red);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Locations: griglia pronta per piu' sedi */

.locations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.location-card address {
  margin: 0 0 18px;
  font-style: normal;
  font-size: 1.02rem;
  line-height: 1.66;
}

/* ---------- CTA ---------- */

.cta {
  background: var(--crosta-red);
  color: var(--crosta-white);
  text-align: center;
}

.cta .checkers {
  background:
    conic-gradient(
      from 90deg,
      var(--crosta-white) 25%,
      var(--crosta-red-dark) 0 50%,
      var(--crosta-white) 0 75%,
      var(--crosta-red-dark) 0
    )
    0 0 / 22px 22px;
}

.cta-inner {
  padding: 62px 24px 66px;
}

.cta h2 {
  margin: 0 0 10px;
  font-family: var(--brand);
  font-size: clamp(2rem, 6.4vw, 3.2rem);
  font-weight: 400;
}

.cta p {
  margin: 0 auto 28px;
  max-width: 44ch;
  font-style: italic;
  color: rgba(249, 241, 233, 0.92);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--crosta-ink);
  color: var(--crosta-white);
  text-align: center;
}

.footer-inner {
  padding: 46px 24px 40px;
}

.footer-logo {
  width: 78px;
  height: 78px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 3px solid var(--crosta-red);
}

.footer-line {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--crosta-white);
  text-decoration: none;
  border-bottom: 2px solid var(--crosta-red);
  padding-bottom: 2px;
}

.footer-links span {
  color: rgba(249, 241, 233, 0.4);
}

.footer-fine {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(249, 241, 233, 0.62);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .shot,
  .shot-wide {
    grid-column: span 1;
  }

  .story-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .story-hand {
    order: -1;
    justify-self: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 54px 0;
  }

  .header-nav {
    gap: 14px;
    font-size: 0.92rem;
  }

  .header-nav a:not(.header-cta) {
    display: none;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-inner {
    padding: 70px 20px 96px;
  }

  .story-body {
    padding: 24px 18px 26px;
  }

  .gallery {
    gap: 10px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
  }

  .hero-img {
    transform: none;
  }

  .shot img {
    transform: none !important;
  }
}

/* =========================================================
   MOVIMENTI CROSTA
   Ogni effetto nasce da qualcosa che esiste davvero nel locale:
   l'insegna al neon, la mano, la tovaglia a scacchi, gli orari.
   ========================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 1. Insegna al neon ----------
   Un solo ciclo CSS che si ripete: accensione con sfarfallio, gas che respira,
   un colpo a meta' strada, poi si spegne e si riaccende.
   Niente JavaScript: se la rete e' lenta, l'insegna resta comunque accesa.
   ------------------------------------------------------------------------ */

.neon-sign {
  animation: neon-life 18s linear 200ms infinite;
}

@keyframes neon-life {
  /* --- spenta, poi la scarica --- */
  0%,
  1.2% {
    opacity: 0.24;
    filter: none;
  }
  2% {
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(255, 236, 200, 0.9))
      drop-shadow(0 0 20px rgba(226, 62, 74, 0.7));
  }
  3% {
    opacity: 0.28;
    filter: none;
  }
  4.4% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 240, 210, 1))
      drop-shadow(0 0 30px rgba(226, 62, 74, 0.92))
      drop-shadow(0 0 62px rgba(178, 12, 18, 0.68));
  }
  5.4% {
    opacity: 0.42;
    filter: drop-shadow(0 0 4px rgba(255, 236, 200, 0.5));
  }
  7% {
    opacity: 1;
    filter: drop-shadow(0 0 7px rgba(255, 240, 210, 0.95))
      drop-shadow(0 0 22px rgba(226, 62, 74, 0.78))
      drop-shadow(0 0 48px rgba(178, 12, 18, 0.55));
  }

  /* --- accesa: il gas respira --- */
  32% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 240, 210, 1))
      drop-shadow(0 0 30px rgba(226, 62, 74, 0.92))
      drop-shadow(0 0 62px rgba(178, 12, 18, 0.68));
  }
  58% {
    opacity: 1;
    filter: drop-shadow(0 0 7px rgba(255, 240, 210, 0.95))
      drop-shadow(0 0 22px rgba(226, 62, 74, 0.78))
      drop-shadow(0 0 48px rgba(178, 12, 18, 0.55));
  }

  /* --- il colpo di gas: quel guizzo che fanno le insegne vere --- */
  71.5% {
    opacity: 1;
    filter: drop-shadow(0 0 7px rgba(255, 240, 210, 0.95))
      drop-shadow(0 0 22px rgba(226, 62, 74, 0.78))
      drop-shadow(0 0 48px rgba(178, 12, 18, 0.55));
  }
  72.4% {
    opacity: 0.5;
    filter: drop-shadow(0 0 4px rgba(255, 236, 200, 0.5));
  }
  73.2% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 240, 210, 1))
      drop-shadow(0 0 30px rgba(226, 62, 74, 0.92))
      drop-shadow(0 0 62px rgba(178, 12, 18, 0.68));
  }

  /* --- si spegne, e il ciclo ricomincia --- */
  96% {
    opacity: 1;
    filter: drop-shadow(0 0 7px rgba(255, 240, 210, 0.95))
      drop-shadow(0 0 22px rgba(226, 62, 74, 0.78))
      drop-shadow(0 0 48px rgba(178, 12, 18, 0.55));
  }
  97.6%,
  100% {
    opacity: 0.24;
    filter: none;
  }
}

/* ---------- 2. Aperto adesso: ora di Kampala, non del visitatore ---------- */

.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 22px auto 0;
  padding: 7px 17px 7px 14px;
  border-radius: 999px;
  background: rgba(9, 18, 40, 0.55);
  border: 1.5px solid rgba(249, 241, 233, 0.4);
  backdrop-filter: blur(6px);
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--crosta-white);
  animation: rise 800ms var(--ease-out) both 700ms;
}

.open-pill-block {
  margin: 16px 0 0;
  background: var(--crosta-paper);
  border-color: var(--crosta-line);
  color: var(--crosta-ink);
  backdrop-filter: none;
  animation: none;
}

.open-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #38b558;
  box-shadow: 0 0 0 0 rgba(56, 181, 88, 0.65);
  animation: open-ping 2400ms ease-out infinite;
}

.open-pill.is-closed .open-dot {
  background: var(--crosta-red);
  box-shadow: none;
  animation: none;
}

@keyframes open-ping {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 181, 88, 0.6);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(56, 181, 88, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(56, 181, 88, 0);
  }
}

/* ---------- 3. La mano che parla: la firma del brand ---------- */

.story-hand {
  margin: 0;
  text-align: center;
}

.hand {
  position: relative;
  display: block;
  width: 224px;
  height: 202px;
  margin: 0 auto 10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.hand-arc {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  overflow: visible;
  pointer-events: none;
}

.hand-arc text {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  fill: var(--crosta-red);
}

#handArcText {
  transition: opacity 180ms var(--ease-out);
}

.hand.is-swapping #handArcText {
  opacity: 0;
}

.hand .hand-art {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 132px;
  height: 132px;
  margin: 0;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--crosta-red);
  background: var(--crosta-paper);
  transition: transform 320ms var(--ease-out);
}

.hand:hover .hand-art,
.hand:focus-visible .hand-art {
  transform: translateX(-50%) scale(1.06) rotate(-3deg);
}

.hand.is-swapping .hand-art {
  animation: hand-shake 620ms var(--ease-out);
}

@keyframes hand-shake {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) rotate(-8deg) translateY(-4px);
  }
  55% {
    transform: translateX(-50%) rotate(7deg) translateY(2px);
  }
  80% {
    transform: translateX(-50%) rotate(-3deg);
  }
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
}

.story-hand figcaption {
  font-family: var(--display);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(13, 31, 69, 0.6);
}

/* ---------- 4. La tovaglia: il checkerboard spazza la card ---------- */

.taste-card {
  position: relative;
  transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
}

.taste-card:hover {
  transform: translateY(-5px) rotate(-0.45deg);
  box-shadow: 0 14px 30px rgba(13, 31, 69, 0.14);
}

.taste-card:nth-child(2n):hover {
  transform: translateY(-5px) rotate(0.45deg);
}

.taste-shot {
  position: relative;
}

.taste-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    conic-gradient(
      from 90deg,
      rgba(249, 241, 233, 0.9) 25%,
      rgba(178, 12, 18, 0.85) 0 50%,
      rgba(249, 241, 233, 0.9) 0 75%,
      rgba(178, 12, 18, 0.85) 0
    )
    0 0 / 26px 26px;
  transform: translateY(-101%);
  transition: transform 620ms var(--ease-out);
  pointer-events: none;
}

.taste-card:hover .taste-shot::after {
  transform: translateY(101%);
}

/* ---------- 5. Gallery: didascalie che entrano dal basso ---------- */

.shot {
  position: relative;
  transition: border-color 320ms var(--ease-out);
}

.shot:hover {
  border-color: var(--crosta-red);
}

.shot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 14px 11px;
  background: linear-gradient(180deg, rgba(9, 18, 40, 0), rgba(9, 18, 40, 0.85));
  color: var(--crosta-white);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transform: translateY(101%);
  transition: transform 420ms var(--ease-out);
}

.shot:hover figcaption,
.shot:focus-within figcaption {
  transform: translateY(0);
}

/* ---------- Extra ---------- */

.location-note {
  margin: -8px 0 18px;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(13, 31, 69, 0.7);
}

.cta .btn-cream:hover {
  transform: translateY(-2px) rotate(-0.8deg);
}

@media (max-width: 900px) {
  .story-hand {
    order: -1;
  }
}

@media (max-width: 640px) {
  .shot figcaption {
    font-size: 0.84rem;
    padding: 18px 10px 9px;
  }
}

/* ---------- Reduced motion: tutto fermo, niente perso ---------- */

@media (prefers-reduced-motion: reduce) {
  /* animazioni ridotte: l'insegna resta accesa e ferma */
  .neon-sign {
    opacity: 1;
    animation: none;
    filter: drop-shadow(0 0 7px rgba(255, 240, 210, 0.95))
      drop-shadow(0 0 22px rgba(226, 62, 74, 0.78));
  }

  .taste-shot::after {
    display: none;
  }

  .shot figcaption {
    transform: translateY(0);
    position: static;
    background: var(--crosta-blue);
  }

  .open-dot {
    animation: none;
  }
}

/* =========================================================
   REVISIONE 2 — logo reale, mano che si spiega, seconda sede
   ========================================================= */

/* ---------- La mano: invito esplicito + traduzione ---------- */

.hand-tap {
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--crosta-blue);
  color: var(--crosta-white);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
  animation: tap-nudge 3200ms ease-in-out 1200ms infinite;
}

@keyframes tap-nudge {
  0%,
  88%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  92% {
    transform: translateX(-50%) translateY(-4px);
  }
  96% {
    transform: translateX(-50%) translateY(0);
  }
}

.hand.is-used .hand-tap {
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  animation: none;
  pointer-events: none;
}

/* la traduzione: chi non conosce l'italiano capisce lo stesso */
.hand-gloss {
  max-width: 230px;
  margin: 18px auto 0;
  text-align: center;
}

/* voce di dizionario, non l'eco di quello che dice la mano */
.hand-gloss b {
  display: block;
  font-family: var(--serif);
  font-size: 1.06rem;
  font-style: italic;
  font-weight: 400;
  color: var(--crosta-red);
  transition: opacity 180ms var(--ease-out);
}

.hand-gloss span {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.5;
  color: rgba(13, 31, 69, 0.72);
  transition: opacity 180ms var(--ease-out);
}

.hand-gloss.is-swapping b,
.hand-gloss.is-swapping span {
  opacity: 0;
}

/* ---------- Seconda sede ---------- */

.location-next {
  --frame-color: var(--crosta-blue);
}

.location-next .frame-head {
  background: var(--crosta-blue);
}

.next-line {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--crosta-red);
}

.location-card .frame-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* ---------- Footer: logo bianco reale ---------- */

.site-footer .footer-logo {
  width: min(62vw, 260px);
  height: auto;
  margin: 0 auto 20px;
  border: 0;
  border-radius: 0;
  opacity: 0.95;
}

/* ---------- Ritocchi ---------- */

.hero-line {
  margin-top: 30px;
}

.header-nav a:not(.header-cta) {
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .header-nav a[href="#story"] {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hand-tap {
    animation: none;
  }
}

/* =========================================================
   REVISIONE 3 — header centrato, social, sezione Muyenga
   ========================================================= */

/* ---------- Header: logo al centro ---------- */

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 72px;
}

.header-nav-left {
  justify-content: flex-start;
}

.header-end {
  display: flex;
  justify-content: flex-end;
}

.header-brand {
  justify-self: center;
}

.header-brand img {
  width: auto;
  height: 50px;
  transition: transform 320ms var(--ease-out);
}

.header-brand:hover img {
  transform: scale(1.04) rotate(-1deg);
}

@media (max-width: 860px) {
  .header-bar {
    grid-template-columns: 1fr auto 1fr;
    height: 64px;
  }

  .header-nav-left {
    display: none;
  }

  .header-brand img {
    height: 42px;
  }
}

/* ---------- Social ---------- */

.find-grid {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.find-grid .frame:nth-child(3) {
  --reveal-delay: 180ms;
}

.social-list {
  display: grid;
  gap: 12px;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 12px 9px 9px;
  border: 2px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  color: var(--crosta-ink);
  transition: border-color 260ms var(--ease-out), transform 260ms var(--ease-out),
    background-color 260ms var(--ease-out);
}

.social-row:hover,
.social-row:focus-visible {
  border-color: var(--crosta-red);
  background: var(--crosta-paper);
  transform: translateX(3px);
}

.social-glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--crosta-red);
  color: var(--crosta-white);
  transition: transform 320ms var(--ease-out);
}

.social-row:hover .social-glyph {
  transform: rotate(-8deg) scale(1.06);
}

.social-glyph svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-text b {
  display: block;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--crosta-blue);
}

.social-text span {
  display: block;
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(13, 31, 69, 0.68);
}

/* ---------- Footer: icone social ---------- */

.footer-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0 0 18px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(249, 241, 233, 0.35);
  color: var(--crosta-white);
  transition: background-color 260ms var(--ease-out), border-color 260ms var(--ease-out),
    transform 260ms var(--ease-out);
}

.footer-social a:hover {
  background: var(--crosta-red);
  border-color: var(--crosta-red);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Il CTA ora vive fuori dal nav, quindi si porta dietro i propri stili */
.header-end .header-cta {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--crosta-red);
  color: var(--crosta-white);
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 0 var(--crosta-red-dark);
  transition: background-color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.header-end .header-cta:hover {
  background: var(--crosta-red-dark);
  transform: translateY(-1px);
}

/* Colonne laterali che possono restringersi sotto il contenuto: cosi'
   restano larghe uguali e il logo sta davvero al centro. */
.header-bar {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

/* Sotto gli 860px il CTA e' troppo largo per lasciare il logo al centro:
   si torna alla disposizione classica logo a sinistra, bottone a destra. */
@media (max-width: 860px) {
  .header-bar {
    grid-template-columns: auto 1fr;
  }

  .header-brand {
    justify-self: start;
    grid-column: 1;
  }

  .header-end {
    grid-column: 2;
  }
}
