:root {
  --char: #2B1B12;
  --ember: #B8441F;
  --ember-bright: #FF6B35;
  --gold: #D89A3E;
  --gold-bright: #F2B134;
  --cream: #FBF3E7;
  --herb: #6B7A45;
  --bar-width: 240px;

  --display: "Fraunces", serif;
  --body: "Work Sans", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--char);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--display);
  margin: 0 0 0.4em;
  line-height: 1.15;
}

a { color: inherit; }

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

/* ---- Barra contatti fissa ---- */

.info-bar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--bar-width);
  height: 100vh;
  background: var(--char);
  color: var(--cream);
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  border-left: 3px solid var(--gold-bright);
  z-index: 100;
  overflow-y: auto;
}

.logo-badge {
  background: var(--cream);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  margin: 0 auto 0.4rem;
  width: fit-content;
  box-shadow: 0 2px 6px #00000033;
}

.info-logo {
  width: 84px;
  display: block;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--cream);
}

.info-icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: var(--gold-bright);
  margin-top: 2px;
}

.info-hours em { font-style: normal; color: var(--gold-bright); font-size: 0.85rem; }

.info-cta {
  margin-top: auto;
  text-align: center;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #25D366;
  color: #0b3b1e;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.whatsapp-icon { fill: #0b3b1e; width: 18px; height: 18px; }

@media (max-width: 860px) {
  .btn-whatsapp { padding: 0.5rem 0.9rem; font-size: 0.85rem; }
}

.page { margin-right: var(--bar-width); }

@media (max-width: 860px) {
  .info-bar {
    position: sticky;
    top: 0;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.9rem 1.4rem;
    padding: 0.7rem 1rem;
    border-left: none;
    border-bottom: 3px solid var(--gold-bright);
  }
  .info-logo { width: 40px; margin: 0; }
  .info-item { font-size: 0.78rem; }
  .info-icon { width: 15px; height: 15px; }
  .info-cta { margin: 0; padding: 0.5rem 1rem; font-size: 0.85rem; }
  .page { margin-right: 0; }
}

/* ---- Banner chiuso ---- */

.closed-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--ember-bright);
  color: var(--char);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.7rem 1rem;
}

.closed-icon {
  width: 18px;
  height: 18px;
  fill: var(--char);
  flex: none;
}

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

.hero {
  background:
    radial-gradient(circle at 82% 30%, #ff6b3533 0%, transparent 55%),
    radial-gradient(circle at 15% 85%, #f2b13422 0%, transparent 50%),
    var(--char);
  color: var(--cream);
  padding: 4rem 1.5rem 3.5rem;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  text-align: left;
}

.hero-text { flex: 1 1 420px; min-width: 0; }

.hero-logo {
  width: 90px;
  display: block;
}

.logo-badge-hero {
  margin: 0 0 1.2rem;
}

/* ---- Navigazione a sezioni ---- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  padding: 0.8rem 1rem;
  background: var(--cream);
  border-bottom: 1px solid #2b1b1218;
  margin-right: var(--bar-width);
}

.site-nav a {
  text-decoration: none;
  color: var(--char);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #2b1b1225;
  white-space: nowrap;
}

.site-nav a:hover {
  background: var(--ember-bright);
  border-color: var(--ember-bright);
  color: var(--char);
}

.site-nav a.is-current {
  background: var(--char);
  border-color: var(--char);
  color: var(--cream);
  font-weight: 700;
}

@media (max-width: 860px) {
  .site-nav {
    margin-right: 0;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0.5rem;
  }
  .site-nav a { font-size: 0.78rem; padding: 0.4rem 0.75rem; }
}

.hero-photo {
  flex: 0 0 340px;
  max-width: 340px;
}

.hero-photo img {
  border-radius: 10px;
  box-shadow: 0 20px 40px #00000066;
}

.hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-style: italic;
  font-weight: 600;
}

.hero-sub {
  font-size: 1.05rem;
  color: #E9DAC4;
  max-width: 460px;
  margin: 1.2rem 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-photo { flex-basis: auto; width: 100%; max-width: 340px; }
  .hero-logo { margin: 0 auto 1.2rem; }
  .hero-actions { justify-content: center; }
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 3px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.btn-primary {
  background: var(--ember-bright);
  color: var(--char);
}

.btn-primary:hover { opacity: 0.9; }

.btn-ghost {
  border: 1px solid #C9B79633;
  color: var(--cream);
}

.btn-ghost:hover { background: #ffffff14; }

/* ---- Skewer divider ---- */

.skewer-divider {
  max-width: 420px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
}

.skewer-divider svg { width: 100%; height: 24px; display: block; }

.skewer-rod { stroke: var(--char); stroke-width: 2; opacity: 0.35; }

.skewer-piece.piece-a { fill: var(--gold); }
.skewer-piece.piece-b { fill: var(--ember); }

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

.section {
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3.5rem;
  text-align: center;
}

.section h2 {
  font-size: 1.8rem;
  font-style: italic;
  margin-bottom: 1.8rem;
}

.section-dark {
  max-width: none;
  background: var(--char);
  color: var(--cream);
  padding: 3.5rem 1.5rem;
}

/* Banner piatti speciali / fuori menù */

.special-callout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  max-width: 640px;
  margin: 0 auto 1.8rem;
  padding: 0.9rem 1.2rem;
  background: #fff4e0;
  border: 1px solid var(--gold-bright);
  border-radius: 8px;
  text-align: left;
}

.special-callout .closed-icon {
  fill: var(--ember-bright);
  width: 22px;
  height: 22px;
  flex: none;
}

.special-callout span {
  font-size: 0.88rem;
  color: #4a3626;
}

.special-callout strong { color: var(--ember-bright); }

.special-callout a {
  color: var(--ember-bright);
  font-weight: 700;
  text-decoration: none;
}

/* Schede (tab) categorie menù */

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.8rem;
}

.menu-tab {
  background: transparent;
  border: 1px solid #2b1b1230;
  color: var(--char);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.menu-tab:hover { border-color: var(--ember-bright); }

.menu-tab.is-active {
  background: var(--ember-bright);
  border-color: var(--ember-bright);
  color: var(--char);
}

.menu-panel { display: none; }

.menu-panel.is-active { display: block; }

/* Menu grid */

.menu-category {
  text-align: left;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ember-bright);
  margin: 2rem 0 1rem;
}

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

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.menu-item {
  background: #ffffffa8;
  border: 1px solid #2b1b1214;
  border-radius: 6px;
  overflow: hidden;
}

.menu-item-body { padding: 1.1rem 1.3rem; }

.menu-item-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.menu-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ember-bright);
  white-space: nowrap;
  flex: none;
}

.menu-item-photo { position: relative; }

.menu-item-photo img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: #f1e3cf;
  padding: 8px;
  box-sizing: border-box;
  cursor: zoom-in;
  transition: transform 0.15s ease;
}

.menu-item-photo img:hover { transform: scale(1.03); }

.zoom-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2B1B12cc;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.zoom-hint svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 2;
}

.menu-item h4 {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--char);
  font-weight: 700;
  margin: 0 0 0.3rem;
}

.menu-item h4 span {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.78rem;
  color: #7a6a58;
  font-style: normal;
}

.menu-item p { margin: 0; font-size: 0.9rem; color: #4a3626; }

.menu-footer {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.menu-footer-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.menu-note { font-size: 0.85rem; color: #7a6a58; font-style: italic; margin: 0; }

.qr-box {
  text-align: center;
}

.qr-box #qr-code {
  display: inline-block;
  padding: 6px;
  background: var(--cream);
  border-radius: 8px;
  box-shadow: 0 6px 16px #2b1b1222;
}

.qr-box p {
  margin: 0.4rem 0 0;
  font-size: 0.75rem;
  color: #7a6a58;
  max-width: 130px;
}

.btn-ghost-dark {
  border: 1px solid var(--char);
  color: var(--char);
}

.btn-ghost-dark:hover { background: var(--char); color: var(--cream); }

/* Servizi / features */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 880px;
  margin: 0 auto;
}

.feature-mark {
  display: inline-block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.feature p { margin: 0; color: #E9DAC4; font-size: 0.95rem; }

.features-light .feature-mark { color: var(--ember-bright); }
.features-light .feature p { color: #4a3626; }

/* Negozio */

.negozio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.5rem;
  text-align: left;
}

.negozio-photo {
  width: 100%;
  min-width: 0;
  border-radius: 10px;
  box-shadow: 0 16px 32px #2b1b1222;
}

.negozio-text { min-width: 0; }

.negozio-text p { color: #4a3626; }

@media (max-width: 720px) {
  .negozio-grid { grid-template-columns: 1fr; text-align: center; }
}

/* Badge "più ordinato" */

.menu-item-featured {
  position: relative;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 2px var(--gold-bright);
}

.menu-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--gold-bright);
  color: var(--char);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Pulsante "+ Aggiungi" su ogni piatto */

.add-cart-btn {
  margin-top: 0.7rem;
  width: 100%;
  background: transparent;
  border: 1px solid var(--ember-bright);
  color: var(--ember-bright);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.add-cart-btn:hover { background: var(--ember-bright); color: var(--char); }

.add-cart-btn.is-added {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--char);
}

/* Carrello ordine */

.componi-intro {
  color: #E9DAC4;
  margin: -1rem 0 2rem;
}

.cart-empty {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  color: #ab9a86;
  font-size: 0.9rem;
  padding: 1rem 0;
}

.cart-list {
  max-width: 560px;
  margin: 0 auto;
}

.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #ffffff1c;
}

.cart-row-name {
  font-size: 0.9rem;
  color: var(--cream);
}

.cart-row-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--gold-bright);
}

.cart-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #ffffff40;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.cart-qty-btn:hover { border-color: var(--gold-bright); }

.cart-row-price {
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 0.88rem;
  white-space: nowrap;
}

.cart-row-remove {
  background: transparent;
  border: none;
  color: #ab9a86;
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

.cart-row-remove:hover { color: var(--ember-bright); }

.componi-total {
  max-width: 560px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid #ffffff26;
  padding-top: 1.2rem;
  margin: 1.6rem auto 1.2rem;
  font-family: var(--display);
}

.componi-total span:first-child {
  font-size: 1rem;
  font-style: italic;
  color: #E9DAC4;
}

.componi-total span:last-child {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-bright);
}

.componi-submit {
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
  display: block;
  border: none;
  cursor: pointer;
  padding: 0.85rem;
}

.componi-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cart-confirm-note {
  max-width: 560px;
  margin: 0.8rem auto 0;
  text-align: center;
  font-size: 0.78rem;
  color: #ab9a86;
  font-style: italic;
}

/* Contatti */

.contatti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}

.contatti-grid strong {
  color: var(--ember-bright);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contatti-grid a { text-decoration: none; }

/* Footer */

footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: #7a6a58;
}

@media (max-width: 480px) {
  .hero { padding: 2.5rem 1.2rem 2.5rem; }
  .section { padding: 0.5rem 1.2rem 2.5rem; }
}

/* Modale ingrandimento foto */

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}

.photo-modal[hidden] { display: none; }

.photo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: #1a100acc;
}

.photo-modal-box {
  position: relative;
  background: var(--cream);
  border-radius: 12px;
  max-width: 420px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
  box-shadow: 0 20px 50px #00000066;
}

.photo-modal-box img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
}

.photo-modal-body { padding: 1.3rem 1.4rem 1.5rem; }

.photo-modal-body h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--char);
  margin: 0 0 0.5rem;
}

.photo-modal-body p {
  margin: 0;
  font-size: 0.92rem;
  color: #4a3626;
  line-height: 1.6;
}

.photo-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--char);
  color: var(--cream);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.photo-modal-close:hover { background: var(--ember-bright); color: var(--char); }

/* Nota "vai al tuo ordine" nel menù */

.menu-cta-note {
  text-align: center;
  font-size: 0.95rem;
  color: #4a3626;
}

.menu-cta-note a {
  color: var(--ember-bright);
  font-weight: 700;
  text-decoration: none;
}

.menu-cta-note a:hover { text-decoration: underline; }

/* Scroll fluido per link interni */

html { scroll-behavior: smooth; }

/* Intestazione di pagina con foto sbiadita (pagine diverse dalla home) */

.page-header {
  background-size: cover;
  background-position: center;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.page-header-inner { max-width: 600px; }

.page-header .eyebrow {
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--gold-bright);
  margin-bottom: 0.8rem;
}

.page-header h1 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  color: var(--cream);
  margin: 0;
}

.page-header-sub {
  margin: 0.9rem 0 0;
  color: #E9DAC4;
  font-size: 1rem;
}

/* Animazioni allo scorrimento */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Pulsante torna su */

.back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 150;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--char);
  color: var(--gold-bright);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px #00000044;
}

.back-to-top:hover { background: var(--ember-bright); color: var(--char); }

@media (max-width: 860px) {
  .back-to-top { right: 14px; bottom: 14px; }
}
