:root {
  --bg: #f7f0e8;
  --bg-card: #ffffff;
  --text: #2a2623;
  --accent: #8b2525;
  --accent-soft: #d8b6a0;
  --border-soft: rgba(0,0,0,0.08);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.container {
  width: min(1120px, 100% - 2rem);
  margin: 0 auto;
}

.site-header {
  background: #141010;
  color: #fff;
  padding-bottom: 2.5rem;
}

/* nav / hero molto sintetici */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 42px;
  width: auto;
}

.logo-text {
  font-family: "Cinzel", serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a {
  color: #f7f0e8;
  text-decoration: none;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: #ddd;
  font-size: 0.8rem;
  margin-left: 0.25rem;
  cursor: pointer;
}

.lang-switch .active {
  color: #fff;
  font-weight: 600;
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
}

.nav-toggle { display: none; }

.btn {
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}

.hero {
  padding: 2.5rem 0 1rem;
  text-align: left;
}

.hero-title {
  font-family: "Cinzel", serif;
  color: #fff;
  font-size: 2.4rem;
  margin: 0 0 0.5rem;
}

.hero-subtitle {
  max-width: 620px;
  font-size: 0.98rem;
  color: #f2e7dd;
}

.hero-cta { margin: 1.25rem 0; display:flex; gap:0.75rem; }
.hero-meta { font-size: 0.8rem; color:#d2c4b7; display:flex; gap:1rem; }

/* sezioni */
section {
  padding: 3rem 0;
}

.section-title {
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: #6b6159;
  max-width: 620px;
}

/* menu */
.menu-filters {
  margin: 1.5rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: #f9f4ef;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
}

.chip.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.menu-card {
  background: var(--bg-card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.04);
}

.menu-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.menu-card-body {
  padding: 0.9rem 1rem 1rem;
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.25rem;
}

.menu-card-title {
  font-size: 1rem;
  margin: 0;
}

.menu-card-price {
  font-weight: 600;
  font-size: 0.95rem;
}

.menu-card-desc {
  font-size: 0.85rem;
  color: #6b6159;
  margin: 0.25rem 0 0.5rem;
}

.menu-card-meta {
  font-size: 0.75rem;
  color: #8a7d72;
  display: flex;
  gap: 0.5rem;
}

.menu-card-actions {
  margin-top: 0.55rem;
}

.menu-card-actions .btn-add {
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  font-size: 0.8rem;
  padding: 0.25rem 0.9rem;
  cursor: pointer;
}

/* ORDERS + CART */
.orders-section {
  background: #f2e7dd;
}

.orders-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.orders-info {
  font-size: 0.9rem;
}

.orders-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.badge {
  font-size: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  padding: 0.2rem 0.7rem;
  background: #fff;
}

.orders-note {
  font-size: 0.8rem;
  color: #7b6e64;
}

.order-success {
  color: #1c7c3b;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* cart */
.cart {
  background: #fff;
  border-radius: 1.3rem;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

.cart-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.cart-subtitle {
  font-size: 0.8rem;
  color: #86766b;
  margin: 0.2rem 0 0.8rem;
}

.cart-items {
  max-height: 260px;
  overflow-y: auto;
  border-radius: 0.9rem;
  background: #faf5ef;
  padding: 0.35rem 0.8rem;
}

.cart-empty {
  font-size: 0.85rem;
  color: #8b7c70;
  padding: 0.6rem 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-item-meta {
  font-size: 0.8rem;
  color: #8a7d72;
}

.cart-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.qty-btn {
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  background: #fff;
  cursor: pointer;
}

.qty {
  min-width: 16px;
  text-align: center;
  font-size: 0.85rem;
}

.cart-footer {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  padding: 0.15rem 0;
}

.cart-total {
  margin-top: 0.3rem;
  font-weight: 600;
}

.order-options {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.5rem;
}

.order-options label {
  font-size: 0.8rem;
  display: grid;
  gap: 0.15rem;
}

.order-options input,
.order-options select,
.order-options textarea {
  font-family: inherit;
  font-size: 0.85rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-soft);
  padding: 0.35rem 0.5rem;
}

.order-options textarea {
  resize: vertical;
  min-height: 60px;
}

.cart-submit {
  margin-top: 1rem;
}

.cart-submit button {
  width: 100%;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
}

/* booking & contacts molto semplici */
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 2rem;
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.8rem;
}

.contacts-map iframe {
  width: 100%;
  min-height: 220px;
  border: 0;
}

.site-footer {
  padding: 1.2rem 0;
  background: #141010;
  color: #e7dbd0;
  font-size: 0.8rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* responsive */
@media (max-width: 900px) {
  .orders-layout,
  .booking-layout,
  .contacts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; background:none;border:0;color:#fff; }
  .orders-layout { gap: 1.2rem; }
}

/* === FIX CARRELLO CUSTOM IL CASTELLO === */
.orders-section .cart-items {
  max-height: none !important;      /* mostra tutti i piatti, niente taglio */
  overflow: visible !important;     /* niente scroll nascosto */
  padding-right: 0 !important;
  display: block !important;
}

.orders-section .cart-items .cart-item {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  background: #fff;
}

.orders-section .cart-items .cart-item:last-child {
  border-bottom: none;
}

.orders-section .cart-item-main {
  display: block;
}

.orders-section .cart-item-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.orders-section .cart-item-meta {
  font-size: 0.8rem;
  color: #777;
}

/* === IL CASTELLO - carrello namespaced (ilc-) === */
.ilc-cart-items {
  margin-top: 0.6rem;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.ilc-cart-empty {
  font-size: 0.85rem;
  color: var(--color-muted);
  padding: 0.4rem 0;
}

.ilc-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}

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

.ilc-cart-item-main {
  display: block;
}

.ilc-cart-item-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.ilc-cart-item-meta {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.ilc-cart-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ilc-qty-btn {
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  width: 24px;
  height: 24px;
  font-size: 0.8rem;
  background: #fff;
  cursor: pointer;
}

.ilc-qty {
  min-width: 18px;
  text-align: center;
  font-size: 0.85rem;
}


