/* La PreDiletta — tema custom sopra il reset/grid di Bootstrap */

:root {

  --ink-1: #17120e;
  --ink-2: #221a13;
  --ink-3: #2b2118;

  --sage: #93a47a;
  --sage-dim: #5c6a49;
  --japonica: #d47959;
  --terracotta: #c56a4e;
  --terracotta-dim: #8c4a37;
  --cream: #f3ead2;
  --cream-dim: #c6b998;
  --gold: #dbac57;
  --line: rgba(243, 234, 210, .14);

  --font-script: 'Kaushan Script', cursive;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-label: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --gap-s: .6rem;
  --gap-m: 1.25rem;
  --gap-l: 2.5rem;
  --gap-xl: clamp(3.5rem, 8vw, 7rem);
  --radius: 4px;

  /* Riallineo il tema di Bootstrap ai token del brand */
  --bs-body-bg: var(--ink-1);
  --bs-body-color: var(--cream);
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: 17px;
  --bs-body-line-height: 1.65;
  --bs-border-color: var(--line);
  --bs-link-color-rgb: 243, 234, 210;
  --bs-link-hover-color-rgb: 147, 164, 122;
}

html {
  scroll-behavior: smooth;
}

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

body {
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Il container di Bootstrap ha soglie di larghezza fisse: le allineo all'originale */
.container {
  max-width: 1180px;
  padding-left: clamp(1.25rem, 4vw, 3rem);
  padding-right: clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  font-family: var(--font-label);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sage);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.eyebrow::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--sage-dim);
}

.eyebrow.center {
  justify-content: center;
}

h2.section-title {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 600;
  margin-top: .5rem;
  color: var(--cream);
}

/* ---------- Bottoni (classi proprie, per non ereditare il .btn di Bootstrap) ---------- */
.btn-brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-label);
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}

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

.btn-brand svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.btn-brand-solid {
  background: var(--terracotta);
  color: var(--cream);
}

.btn-brand-solid:hover {
  background: var(--japonica);
  color: var(--cream);
}

.btn-brand-outline {
  border-color: var(--sage-dim);
  color: var(--cream);
}

.btn-brand-outline:hover {
  border-color: var(--sage);
  background: rgba(147, 164, 122, .08);
  color: var(--cream);
}

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink-1);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .75rem;
  padding-bottom: .75rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
}

.brand img:nth-child(1) {
  width: 50px;
  height: 50px;
  /* border-radius: 50%; */
}

.brand img:nth-child(2) {
  width: 130px;
}

.brand span {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--cream);
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-label);
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-dim);
  transition: color .15s ease;
  padding: .3rem 0;
}

.nav-links a:hover {
  color: var(--sage);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  padding: .4rem;
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.6rem;
  height: 1.6rem;
}

@media (max-width:820px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--ink-2);
    padding: 1.2rem clamp(1.25rem, 4vw, 3rem) 1.6rem;
    border-bottom: 1px solid var(--line);
    display: none;
    gap: .9rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta .btn-brand-outline {
    display: none;
  }
}

/* ---------- Scallop divider ---------- */
.scallop {
  height: 5px;
  background: var(--ink-1);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--gap-xl) 0 4rem;
  background:
    radial-gradient(60% 60% at 82% 18%, rgba(147, 164, 122, .14), transparent 60%),
    radial-gradient(50% 50% at 15% 85%, rgba(197, 106, 78, .12), transparent 60%),
    var(--ink-3);
}

.hero-badge {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-badge img {
  width: min(360px, 80%);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45));
}

.hero-ring {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-ring svg {
  width: min(420px, 92%);
  height: min(420px, 92%);
  opacity: .35;
}

@media (prefers-reduced-motion:no-preference) {
  .hero-ring svg {
    animation: spin 70s linear infinite;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.steam {
  position: absolute;
  color: var(--cream-dim);
  opacity: .5;
}

.steam.s1 {
  top: 10%;
  left: 6%;
  width: 40px;
}

.steam.s2 {
  bottom: 14%;
  right: 8%;
  width: 34px;
}

@media (prefers-reduced-motion:no-preference) {
  .steam {
    animation: float 5s ease-in-out infinite;
  }

  .steam.s2 {
    animation-delay: 1.6s;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.hero-text h1 {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  line-height: .95;
  color: var(--cream);
}

.hero-text img {
  width: min(450px, 80%);
}

.hero-text .tagline {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .95rem;
  color: var(--terracotta);
}

.hero-text p.lede {
  max-width: 46ch;
  color: var(--cream-dim);
  font-size: 1.05rem;
}

.info-strip {
  border-top: 1px solid var(--line);
}

.info-strip svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--sage);
  flex: none;
  margin-top: .15rem;
}

.info-strip .label {
  font-family: var(--font-label);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.info-strip .value {
  font-size: .95rem;
}

/* ---------- Sezioni generiche ---------- */
.section {
  padding: var(--gap-xl) 0;
}

.section.alt1 {
  background: var(--ink-2);
}

.section.alt2 {
  background: var(--ink-3);
}

.about p {
  color: var(--cream-dim);
  margin-top: 1.1rem;
  max-width: 56ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.8rem;
}

.chip {
  font-family: var(--font-label);
  font-size: .76rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--sage-dim);
  color: var(--sage);
  padding: .5rem 1rem;
  border-radius: 999px;
}

.figure-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 5/4;
}

.figure-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.figure-frame:hover img {
  transform: scale(1.05);
}

.lab-text p {
  color: var(--cream-dim);
  margin-top: 1.1rem;
  max-width: 48ch;
}

.lab-note {
  margin-top: 1.4rem;
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border: 1px solid var(--sage-dim);
  border-radius: var(--radius);
  background: rgba(147, 164, 122, .06);
}

.lab-note svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--sage);
  flex: none;
  margin-top: .15rem;
}

.lab-note p {
  margin: 0;
  color: var(--cream);
  font-size: .92rem;
  max-width: none;
}

/* ---------- Menu head ---------- */
.menu-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto;
}

.menu-head p {
  color: var(--cream-dim);
  margin-top: .9rem;
}

/* ---------- Dish grid (pizze + fritti, con foto) ---------- */
.menu-cat {
  margin-top: var(--gap-l);
}

.menu-cat:first-child {
  margin-top: 0;
}

.menu-cat h3 {
  font-size: 1.4rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.3rem;
}

.menu-cat h3::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.menu-cat.fry h3 {
  color: var(--terracotta);
}

.dish-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, .12);
}

.dish-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.dish-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.dish-card:hover .dish-photo img {
  transform: scale(1.05);
}

.dish-body {
  padding: 1rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
}

.dish-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
}

.dish-head h4 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--cream);
}

.dish-price {
  font-family: var(--font-label);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  white-space: nowrap;
  font-size: .98rem;
}

.menu-cat.fry .dish-price {
  color: var(--terracotta);
}

.dish-desc {
  color: var(--cream-dim);
  font-size: .87rem;
  line-height: 1.5;
}

/* ---------- Foto piatto ingrandibile (lightbox) ---------- */
.dish-photo.zoomable {
  position: relative;
  cursor: zoom-in;
}

.zoom-hint {
  position: absolute;
  top: .6rem;
  right: .6rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(23, 18, 14, .55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.zoom-hint svg {
  width: 1.1rem;
  height: 1.1rem;
}

.dish-card:hover .zoom-hint,
.dish-photo.zoomable:focus-visible .zoom-hint {
  opacity: 1;
  transform: scale(1);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(15, 11, 8, .92);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-fig {
  position: relative;
  max-width: min(1400px, 92vw);
  max-height: 88vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}

.lightbox-viewport {
  display: inline-flex;
  overflow: hidden;
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: scale(.97);
  transition: opacity .25s ease, transform .25s ease;
  touch-action: none;
  cursor: zoom-in;
}

.lightbox-viewport.zoomed {
  cursor: grab;
}

.lightbox-viewport.panning {
  cursor: grabbing;
}

.lightbox.open .lightbox-viewport {
  opacity: 1;
  transform: scale(1);
}

.lightbox-viewport img {
  max-width: min(1400px, 92vw);
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  transform: translate(0, 0) scale(1);
  transition: transform .2s ease;
}

.lightbox-viewport img.no-transition {
  transition: none;
}

.lightbox-fig figcaption {
  color: var(--cream-dim);
  font-size: .9rem;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -1.1rem;
  right: -1.1rem;
  z-index: 2;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close svg {
  width: 1.2rem;
  height: 1.2rem;
}

.lightbox-close:hover {
  color: var(--gold);
}

@media (max-width:640px) {
  .lightbox-close {
    top: -.5rem;
    right: .2rem;
  }
}

.menu-note {
  margin-top: var(--gap-l);
  text-align: center;
  color: var(--cream-dim);
  font-size: .88rem;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Birre ---------- */
.drink-list {
  max-width: 74ch;
  margin: var(--gap-l) auto 0;
}

.drink-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.drink-item:last-child {
  border-bottom: none;
}

.drink-top {
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

.drink-top h4 {
  font-size: 1.12rem;
  font-weight: 500;
  color: var(--cream);
  white-space: nowrap;
}

.drink-leader {
  flex: 1;
  border-bottom: 2px dotted var(--line);
  transform: translateY(-.35rem);
}

.drink-price {
  font-family: var(--font-label);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  white-space: nowrap;
  font-size: 1.02rem;
}

.drink-meta {
  color: var(--cream-dim);
  font-size: .88rem;
  margin-top: .3rem;
}

.drink-meta .origin {
  color: var(--sage);
}

/* ---------- Come funziona ---------- */
.step {
  position: relative;
  padding-left: 3.2rem;
}

.step .num {
  position: absolute;
  left: 0;
  top: -.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.1rem;
  color: var(--sage-dim);
}

.step h4 {
  font-size: 1.15rem;
  color: var(--cream);
}

.step p {
  margin-top: .5rem;
  color: var(--cream-dim);
  font-size: .94rem;
}

.delivery-note {
  margin-top: var(--gap-l);
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  color: var(--cream-dim);
  font-size: .92rem;
}

.delivery-note strong {
  color: var(--cream);
  font-weight: 600;
}

/* ---------- Testimonials ---------- */
.testi {
  background: var(--ink-1);
  border: 1px dashed var(--line);
  border-radius: 2px;
  padding: 1.6rem 1.5rem;
}

.testi-1 {
  transform: rotate(.5deg);
}

.testi-2 {
  transform: rotate(-.6deg);
}

.testi-3 {
  transform: rotate(-.3deg);
}

@media (max-width:767.98px) {

  .testi-1,
  .testi-2,
  .testi-3 {
    transform: none;
  }
}

.testi blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--cream);
}

.testi cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-family: var(--font-label);
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage);
}

/* ---------- Location ---------- */
.loc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.loc-card h3 {
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.loc-card h3 svg {
  width: 1.1rem;
  height: 1.1rem;
  color: var(--sage);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}

.hours-table td {
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table td:first-child {
  color: var(--cream-dim);
}

.hours-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.loc-card address {
  font-style: normal;
  color: var(--cream-dim);
  line-height: 1.7;
}

.loc-card .btn-brand {
  margin-top: 1.3rem;
}

/* ---------- Footer / Contact ---------- */
.footer {
  background: var(--ink-3);
  padding: var(--gap-l) 0 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-bottom: .9rem;
}

.footer-brand img:nth-child(1) {
  width: 44px;
  height: 44px;
  /* border-radius: 50%; */
}

.footer-brand img:nth-child(2) {
  width: 130px;
}

.footer-brand span {
  font-family: var(--font-script);
  font-size: 1.6rem;
}

.footer p.desc {
  color: var(--cream-dim);
  font-size: .92rem;
  max-width: 32ch;
}

.footer h5 {
  font-family: var(--font-label);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.footer-list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--cream-dim);
  font-size: .94rem;
  transition: color .15s ease;
}

.footer-list a:hover {
  color: var(--cream);
}

.footer-list svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--sage);
  flex: none;
}

.footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem;
  color: var(--cream-dim);
  font-size: .82rem;
}