:root {
  --ink: #211a16;
  --muted: #6d625a;
  --paper: #fffaf3;
  --cream: #f7efe3;
  --wheat: #d8a85f;
  --brick: #9f3f28;
  --sage: #61745d;
  --line: #e6d8c5;
  --shadow: 0 18px 50px rgba(40, 27, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(33, 26, 22, 0.12);
  background: rgba(255, 250, 243, 0.92);
  backdrop-filter: blur(14px);
  transition:transform .3s ease;
}

.topbar.hide{
  transform:translateY(-100%);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1.05;
}

.brand img {
  width: auto;
  height: clamp(54px, 7vw, 82px);
  object-fit: contain;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.menu a,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 4px;
  text-decoration: none;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.menu a:hover,
.menu a.active {
  color: var(--brick);
  background: #fff1df;
}

.button {
  border: 1px solid var(--brick);
  background: var(--brick);
  color: #fff;
  gap: 8px;
}

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: #fff;
  color: #fff
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: end;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(33, 26, 22, 0.15), rgba(33, 26, 22, 0.88)),
    url("assets/hero-antichi-sapori.jpeg") center / cover;
}

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wheat);
  font-family: Inter, Arial, sans-serif;
  font-size: 1.90rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.06;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 880px;
  font-size: clamp(3rem, 9vw, 7rem);
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

h3 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.hero p {
  max-width: 660px;
  margin: 22px 0 28px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.section {
  padding: 60px 0;
}

.section.alt {
  background: #f1eadf;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.feature-image {
  overflow: hidden;
  border-radius: 6px;
  box-shadow: var(--shadow);
  background: var(--cream);
}

.feature-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.mini-card,
.info-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.64);
}

.mini-card {
  padding: 18px;
}

.mini-card strong {
  display: block;
  font-family: Inter, Arial, sans-serif;
  color: var(--brick);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-head {
  padding: 84px 0 54px;
  background:
    linear-gradient(90deg, rgba(33, 26, 22, 0.84), rgba(33, 26, 22, 0.38)),
    url("assets/hero-antichi-sapori.jpeg") center / cover;
  color: #fff;
}

.page-head p {
  max-width: 700px;
  margin: 18px 0 0;
  font-size: 1.13rem;
}

.story {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.story p {
  margin: 0 20 20px;
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 28px 0 34px;
}

.tab-link {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-family: Inter, Arial, sans-serif;
  font-weight: 800;
}

.category {
  scroll-margin-top: 96px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.category:first-of-type {
  border-top: 0;
}

.category-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}

.category-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: var(--cream);
}

.product-card h3 {
  min-height: 64px;
  padding: 14px 14px 16px;
  display: flex;
  align-items: center;
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.25;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.info-card {
  padding: 22px;
}

.info-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.map-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.map-frame {
  width: 100%;
  min-height: 460px;
  border: 0;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.map-consent {
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow);
}

.map-consent p {
  max-width: 560px;
  margin: 12px auto 20px;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 7px;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
}

.field.full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d8c8b3;
  border-radius: 4px;
  padding: 12px 13px;
  font: 1rem Inter, Arial, sans-serif;
  color: var(--ink);
  background: #fffaf3;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.footer {
  padding: 36px 0;
  color: #f8efe4;
  background: var(--ink);
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer a {
  color: #f8efe4;
  text-decoration: none;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.84rem;
}

.footer-links a,
.footer-links button {
  border: 0;
  padding: 0;
  color: #f8efe4;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.legal-page {
  max-width: 900px;
}

.legal-page h2 {
  margin-top: 34px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page ul {
  padding-left: 20px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: #fffaf3;
  box-shadow: var(--shadow);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner h2 {
  margin-bottom: 8px;
  font-family: Inter, Arial, sans-serif;
  font-size: 1rem;
}

.cookie-banner p {
  max-width: 860px;
  margin: 0 0 14px;
  color: var(--muted);
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions .button {
  min-height: 38px;
  cursor: pointer;
}

.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--ink);
  transition: 0.3s ease;
}

.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg);
  top: 21px;
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg);
  top: 21px;
}
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 900;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 900px) {

  .info-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 14px;
    width: 100%;
  }

  .info-card {
    width: 100%;
    display: block;
	padding: 18px;
    border-radius: 6px;
  }

  .info-card h3 {
    font-size: 1.1rem;
  }

  .info-card p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .map-wrapper,
  .contact-layout {
    grid-template-columns: 1fr !important;
  }

  .map-wrapper {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
    padding: 0 16px;
  }

  .map-frame {
    width: 100%;
    min-height: 320px;
    height: 320px;
    border-radius: 6px;
  }

  .section.alt .split {
    text-align: left;
  }

  .section.alt .feature-image {
    margin: 0 auto;
  }

  .hamburger {
    display: block;
    margin-left: auto;
  }

  .menu {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;

    background: rgba(255, 250, 243, 0.98);
    backdrop-filter: blur(14px);

    display: flex;
    flex-direction: column;

    transform: translateY(-15px);
    opacity: 0;
    visibility: hidden;

    transition: 0.25s ease;

    z-index: 950;
  }

  .menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu a {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    width: 100%;
    justify-content: flex-start;
  }

  body.menu-open {
    overflow: hidden;
  }

  .nav {
    position: relative;
  }
  
    .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* evita testi troppo larghi o compressi */
  .container {
    width: calc(100% - 24px);
  }

    .feature-image {
    width: 100%;
    display: block;
  }

  .feature-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 6px;
  }

 body {
    font-size: 16px;
    line-height: 1.7;
  }

  h1 {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }

  h2 {
    font-size: 1.6rem;
  }

  .lead {
    font-size: 1rem;
    color: var(--muted);
  }  

  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

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

  .product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover; /* più “food style”, meno miniatura */
  }

  .product-card h3 {
    font-size: 1.05rem;
    min-height: auto;
    padding: 14px;
  }

}

.product-card img {
  cursor: zoom-in;
  transition: transform .25s ease;
}

.product-card img:hover {
  transform: scale(1.03);
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 60px;
  height: 60px;

  border: 0;
  border-radius: 50%;

  background: rgba(0,0,0,.45);
  color: #fff;

  font-size: 34px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: .2s ease;
}

.lightbox-arrow:hover {
  background: rgba(0,0,0,.7);
}

.lightbox-prev {
  left: 75px;
}

.lightbox-next {
  right: 75px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;

  transition: .25s ease;
  z-index: 99999;
}

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

.lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;

  color: #fff;
  font-size: 48px;
  line-height: 1;

  cursor: pointer;
  user-select: none;
}

@media (max-width: 768px) {
  .lightbox-close {
    top: 15px;
    right: 20px;
    font-size: 40px;
  }

  .lightbox img {
    max-width: 100vw;
    max-height: 90vh;
  }
  
    .lightbox-arrow {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}