/* Mr Burger — Design tokens & production styles */

@font-face {
  font-family: "Archivo Black";
  src: url("../fonts/ArchivoBlack-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #055b3b;
  --green-deep: #03452c;
  --cream: #f7f3e7;
  --cream-soft: #f1ecdc;
  --dark: #171717;
  --dark-soft: rgba(23, 23, 23, 0.72);
  --line: rgba(5, 91, 59, 0.22);
  --white: #ffffff;

  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;

  --container: min(1120px, calc(100% - 2.5rem));
  --radius: 4px;
  --radius-lg: 12px;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-cta: 0 10px 28px rgba(5, 91, 59, 0.28);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
  -webkit-text-size-adjust: 100%;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--dark);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--green);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--green);
  color: var(--cream);
  padding: 0.75rem 1rem;
  font-weight: 700;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section--tight {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 4.8vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--dark);
}

.section-lead {
  margin: 0;
  max-width: 38rem;
  color: var(--dark-soft);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

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

.btn--primary {
  background: var(--green);
  color: var(--cream);
  box-shadow: var(--shadow-cta);
}

.btn--primary:hover {
  background: var(--green-deep);
  color: var(--cream);
}

.btn--ghost {
  background: transparent;
  color: var(--dark);
  border-color: rgba(23, 23, 23, 0.35);
}

.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn--light {
  background: var(--cream);
  color: var(--green);
}

.btn--light:hover {
  background: var(--white);
  color: var(--green-deep);
}

.btn--phone {
  background: var(--dark);
  color: var(--cream);
  min-width: min(100%, 18rem);
  font-size: 1.05rem;
}

.btn--phone:hover {
  background: var(--green);
  color: var(--cream);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 243, 231, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(23, 23, 23, 0.06);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-link img {
  width: 148px;
  height: auto;
  aspect-ratio: 280 / 122;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--dark);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--green);
}

.site-nav a.btn--primary,
.site-nav a.nav-cta {
  color: #ffffff;
}

.site-nav a.btn--primary:hover,
.site-nav a.nav-cta:hover {
  color: #ffffff;
  background: var(--green-deep);
}

.nav-cta {
  margin-left: 0.25rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  position: absolute;
  left: 11px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.nav-toggle span {
  top: 21px;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 80% 20%, rgba(5, 91, 59, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(5, 91, 59, 0.1), transparent 55%),
    linear-gradient(165deg, var(--cream) 0%, var(--cream-soft) 48%, #ebe4d0 100%);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23055B3B' fill-opacity='0.035'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.75rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.85rem, 4.6vw, 3.15rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.hero-copy p {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--dark-soft);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  width: min(100%, 560px);
  height: auto;
  aspect-ratio: 720 / 541;
}

/* About */
.about {
  background: var(--green);
  color: var(--cream);
}

.about .eyebrow {
  color: rgba(247, 243, 231, 0.75);
}

.about .section-title {
  color: var(--cream);
}

.about-content {
  max-width: 42rem;
}

.about p {
  margin: 0 0 1rem;
  color: rgba(247, 243, 231, 0.9);
  font-size: 1.0625rem;
}

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

.about a {
  color: var(--cream);
  font-weight: 700;
}

.about a:hover {
  color: var(--white);
}

/* Fair */
.fair {
  background: var(--cream);
  position: relative;
}

.fair-panel {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  border-top: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  padding-block: clamp(2rem, 5vw, 3rem);
}

.fair-dates {
  display: grid;
  gap: 0.85rem;
}

.fair-date-block {
  display: grid;
  gap: 0.2rem;
}

.fair-date-block strong {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--green);
  line-height: 1;
}

.fair-date-block span {
  font-size: 0.95rem;
  color: var(--dark-soft);
}

.fair-location {
  margin-top: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.fair-location em {
  font-style: normal;
  color: var(--green);
}

/* Menu */
.menu {
  background:
    linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%);
}

.menu-shell {
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--cream);
}

.menu-intro {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.menu-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.55rem 0.9rem;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.menu-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.menu-item__name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0;
  grid-column: 1;
}

.menu-item__price {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  color: var(--dark);
  margin: 0;
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.menu-item__ingredients {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--dark-soft);
  font-size: clamp(0.95rem, 2.6vw, 0.98rem);
  line-height: 1.45;
  max-width: 48rem;
}

.menu-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.75rem;
}

.menu-box {
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.2rem 1.35rem;
  background: var(--cream);
}

.menu-box h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.menu-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.menu-box li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.98rem;
}

.menu-box .name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
}

.menu-box .price {
  font-weight: 700;
  white-space: nowrap;
}

.menu-box .variants {
  display: grid;
  gap: 0.25rem;
  width: 100%;
}

.menu-box .variants > .name {
  margin-bottom: 0.15rem;
}

.menu-box .variant-row {
  display: flex;
  justify-content: space-between;
  padding-left: 0.5rem;
  color: var(--dark-soft);
  font-weight: 500;
}

.special {
  margin-top: 1.75rem;
  padding: 1.5rem 1.35rem 1.6rem;
  background: var(--green);
  color: var(--cream);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.special::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(247, 243, 231, 0.08);
  pointer-events: none;
}

.special-badge {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--cream);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.special .menu-item__name,
.special .menu-item__price {
  color: var(--cream);
}

.special .menu-item__ingredients {
  color: rgba(247, 243, 231, 0.88);
}

.special-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

/* Franchise */
.franchise {
  background: var(--dark);
  color: var(--cream);
}

.franchise .section-title {
  color: var(--cream);
}

.franchise .section-lead {
  color: rgba(247, 243, 231, 0.8);
}

.franchise-inner {
  display: grid;
  gap: 1.5rem;
  max-width: 40rem;
}

/* Social */
.social {
  background: var(--cream);
  text-align: center;
}

.social-lead {
  margin-inline: auto;
}

.social-cta {
  margin-top: 1.5rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.social-link:hover {
  background: var(--green);
  color: var(--cream);
  transform: translateY(-2px);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Footer */
.site-footer {
  background: var(--green);
  color: var(--cream);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  width: 180px;
  height: auto;
  margin-bottom: 0.85rem;
}

.footer-brand p {
  margin: 0;
  color: rgba(247, 243, 231, 0.8);
  font-size: 0.95rem;
  max-width: 22rem;
}

.footer-col h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: rgba(247, 243, 231, 0.9);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(247, 243, 231, 0.25);
  font-size: 0.875rem;
  color: rgba(247, 243, 231, 0.75);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  align-items: center;
}

.footer-legal a,
.footer-legal .footer-legal-link,
.footer-legal a.iubenda-embed,
.footer-legal a.iubenda-cs-preferences-link {
  color: rgba(247, 243, 231, 0.85) !important;
  text-decoration: none !important;
  font: inherit !important;
  font-size: 0.875rem !important;
  background: none !important;
  border: 0 !important;
  padding: 0.35rem 0 !important;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.footer-legal a:hover,
.footer-legal .footer-legal-link:hover,
.footer-legal a.iubenda-embed:hover,
.footer-legal a.iubenda-cs-preferences-link:hover {
  color: var(--white) !important;
  text-decoration: underline !important;
}

/* Neutralizza badge/styling di default iubenda-embed nel footer */
.footer-legal a.iubenda-embed::after {
  display: none !important;
  content: none !important;
}

/* Sticky phone CTA (mobile) — z-index sotto banner CMP tipici */
.sticky-phone {
  display: none;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy h1 {
    max-width: 18ch;
    margin-inline: auto;
  }

  .hero-copy p {
    margin-inline: auto;
  }

  .btn-group {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .hero-visual img {
    width: min(86vw, 400px);
  }

  .fair-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
    box-shadow: 0 16px 32px rgba(23, 23, 23, 0.08);
  }

  .site-nav.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .site-nav .nav-cta {
    margin: 0.85rem 0 0;
    justify-content: center;
  }

  .menu-columns {
    grid-template-columns: 1fr;
  }

  .sticky-phone {
    display: block;
    position: fixed;
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: auto;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    z-index: 40;
  }

  .sticky-phone a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0.75rem 1.1rem;
    border-radius: 8px;
    background: var(--green);
    color: var(--cream);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(5, 91, 59, 0.35);
  }

  .sticky-phone a:hover {
    background: var(--green-deep);
    color: var(--cream);
  }

  body {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 480px) {
  :root {
    --container: min(1120px, calc(100% - 1.5rem));
  }

  .logo-link img {
    width: 128px;
  }

  .btn {
    width: 100%;
  }

  .btn-group {
    width: 100%;
  }

  .menu-item {
    grid-template-columns: 1fr auto;
    padding-block: 1rem;
  }

  .special-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding-block: 1.5rem;
  }

  .hero-visual img {
    width: min(42vw, 280px);
  }
}
