/* ─────────────────────────────────────────────────────────────────
   Portego De Ma' — Páginas internas (Menu, Prenota) en estilo premium
   Complementa styles.css — solo componentes de contenido.
   ───────────────────────────────────────────────────────────────── */

/* ── PAGE HERO (interno, más corto que el home) ── */
.page-hero {
  position: relative;
  height: 52vh;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.page-hero .hero-bg {
  position: absolute;
  inset: -10% 0 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.08) translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}
.page-hero .hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(0,0,0,0) 0%, rgba(0,0,0,.5) 80%),
    linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.3) 40%, rgba(0,0,0,.6) 100%);
}
.page-hero .hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 24px;
}
.page-hero .hero-kicker {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: rgba(255,255,255,.9);
}
.page-hero .hero-kicker .bar { width: 44px; height: 1px; background: currentColor; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 92px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.page-hero h1 em { font-style: italic; font-weight: 500; }
.page-hero .hero-sub {
  margin-top: 18px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}

/* ── MENU: category selector (sticky pills) ── */
.menu-content { padding-top: 0; }
.category-selector {
  position: sticky;
  top: 58px;
  z-index: 90;
  background: rgba(245,242,220,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--warm-beige);
  padding: 18px 20px;
}
.category-pills {
  display: flex; gap: 10px;
  justify-content: center; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
}
.pill {
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--warm-beige);
  background: transparent;
  color: var(--espresso);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .35s var(--ease-out), color .35s ease, border-color .35s ease;
}
.pill:hover { border-color: var(--wood); color: var(--wood); }
.pill.active { background: var(--olive); border-color: var(--olive); color: #fff; }

/* ── MENU: listado ── */
.menu-section {
  padding: 80px 0;
  background: rgba(245,242,220,0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.menu-section .section-inner {
  max-width: 920px;
  background: #EDE9D6;                 /* foglio menù solido (crema caldo) → testo nitido e leggibile */
  border: 1px solid var(--warm-beige);
  border-radius: 12px;
  padding: 56px 64px;
  box-shadow: 0 20px 60px rgba(140,13,28,0.10);
}

.category-panel { display: none; }
.category-panel.active { display: block; }

.menu-section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  font-style: italic;
  color: var(--espresso);
  margin: 56px 0 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--warm-beige);
  position: relative;
}
.menu-section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 56px; height: 2px;
  background: var(--olive);
}
.menu-section-title:first-child { margin-top: 0; }

.menu-section-price-note {
  font-size: 13px;
  color: var(--wood);
  font-style: italic;
  margin-bottom: 24px;
  margin-top: 12px;
}

.menu-list { list-style: none; }
.menu-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(200,181,168,0.45);
  transition: background .25s ease, padding .25s ease;
}
.menu-list-item:last-child { border-bottom: none; }
/* effetto hover solo con mouse reale (non al tocco su mobile) */
@media (hover: hover) and (pointer: fine) {
  .menu-list-item:hover {
    background: rgba(140,13,28,0.035);
    padding-left: 14px; padding-right: 14px;
    margin: 0 -14px;
    border-radius: 6px;
  }
}

.menu-item-text { flex: 1; }
.menu-item-name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--espresso);
  line-height: 1.2;
}
.menu-item-desc {
  font-size: 14.5px;
  color: #5c3d35;
  font-style: italic;
  margin-top: 5px;
  line-height: 1.6;
}
.menu-item-allergeni {
  font-size: 11px;
  color: #9c5a44;
  margin-top: 5px;
  letter-spacing: .04em;
}
.menu-item-price {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--olive);
  white-space: nowrap;
  flex-shrink: 0;
}

/* thumbnail premium */
.menu-item-thumb {
  flex-shrink: 0;
  width: 62px; height: 62px;
  padding: 0; border: none;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--soft-cream);
  box-shadow: 0 3px 12px rgba(140,13,28,0.12);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.menu-item-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .menu-item-thumb:hover { transform: scale(1.07); box-shadow: 0 6px 18px rgba(140,13,28,0.22); }
  .menu-item-thumb:hover img { transform: scale(1.12); }
}

/* lightbox */
.dish-lightbox {
  position: fixed; inset: 0;
  z-index: 3000;
  background: rgba(42,26,22,0.93);
  backdrop-filter: blur(5px);
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  padding: 28px;
  opacity: 0;
  transition: opacity .35s ease;
}
.dish-lightbox.open { display: flex; opacity: 1; }
.dish-lightbox-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(26px, 4vw, 44px);
  color: var(--warm-white);
  text-align: center;
  margin-bottom: 22px;
  max-width: 90vw;
}
.dish-lightbox-img {
  max-width: min(90vw, 740px);
  max-height: 70vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  animation: dishZoomIn .45s var(--ease-out);
}
@keyframes dishZoomIn {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
.dish-lightbox-close {
  position: absolute; top: 18px; right: 28px;
  font-size: 42px; line-height: 1;
  color: var(--warm-white);
  background: none; border: none; cursor: pointer;
  opacity: .8; transition: opacity .2s;
}
.dish-lightbox-close:hover { opacity: 1; }

.menu-allergeni-nota {
  background: rgba(237,233,214,0.6);
  padding: 44px 20px;
  text-align: center;
}
.menu-allergeni-nota p {
  max-width: 720px; margin: 0 auto;
  font-size: 13px; color: var(--muted-gray);
  line-height: 1.75;
}

/* CTA generica de página */
.page-cta {
  padding: 80px 20px;
  text-align: center;
  background: rgba(221,208,200,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.page-cta .section-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 28px; }

/* ─────────────────────────────────────────────────────────────────
   PRENOTA — formulario premium
   ───────────────────────────────────────────────────────────────── */
.prenota-main {
  padding: 90px 0;
  background: rgba(245,242,220,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.prenota-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}

.form-container {
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--warm-beige);
  padding: 48px 44px;
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(140,13,28,0.08);
}
.form-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--warm-beige);
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wood);
  margin-bottom: 9px;
}
.form-group label .req { color: var(--olive); margin-left: 2px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--warm-beige);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--warm-white);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238C0D1C' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 46px;
  cursor: pointer;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(216,21,34,0.13);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #e57373; box-shadow: none; }
.form-group textarea { resize: vertical; min-height: 110px; }

.form-error {
  display: none;
  font-size: 12px;
  color: var(--olive);
  margin-top: 6px;
}
.form-error.show { display: block; }
.form-note { font-size: 12px; color: var(--muted-gray); margin-top: 6px; line-height: 1.5; }
.char-count { font-size: 12px; color: var(--muted-gray); text-align: right; margin-top: 5px; }

.btn-submit {
  width: 100%;
  padding: 17px 20px;
  background: var(--olive);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .4s var(--ease-out), transform .3s ease;
  margin-top: 8px;
}
.btn-submit:hover:not(:disabled) { background: var(--wood); transform: translateY(-2px); }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; }

.prenota-info { display: flex; flex-direction: column; gap: 18px; }
.info-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--warm-beige);
  padding: 26px;
  border-radius: 8px;
}
.info-card-icon { font-size: 24px; margin-bottom: 12px; }
.info-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 600;
  color: var(--espresso);
  margin-bottom: 14px;
}
.info-card p { font-size: 14px; color: var(--muted-gray); line-height: 1.7; }
.info-card a { color: var(--olive); text-decoration: none; font-weight: 500; }
.info-card a:hover { color: var(--wood); }

.orari-mini { width: 100%; border-collapse: collapse; }
.orari-mini td {
  padding: 8px 0; font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--warm-beige);
}
.orari-mini tr:last-child td { border-bottom: none; }
.orari-mini td:last-child { text-align: right; font-family: var(--sans); }
.orari-mini tr.chiuso td { color: var(--muted-gray); font-style: italic; }

.booking-wa-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: #25D366;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  letter-spacing: .04em;
  transition: background .3s, transform .3s;
  margin-top: 12px;
}
.booking-wa-btn:hover { background: #1da853; transform: translateY(-2px); }
.booking-wa-btn svg { width: 20px; height: 20px; fill: currentColor; }

/* success modal */
.success-modal {
  display: none;
  position: fixed; inset: 0;
  background: rgba(42,26,22,0.6);
  z-index: 3000;
  align-items: center; justify-content: center;
  padding: 20px;
}
.success-modal.open { display: flex; }
.success-modal-box {
  background: var(--warm-white);
  padding: 52px 44px;
  border-radius: 10px;
  text-align: center;
  max-width: 440px; width: 100%;
  box-shadow: 0 28px 72px rgba(0,0,0,.28);
  animation: dishZoomIn .4s var(--ease-out);
}
.success-icon { font-size: 52px; margin-bottom: 18px; }
.success-modal-box h2 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  color: var(--olive);
  margin-bottom: 14px;
}
.success-modal-box p { color: var(--muted-gray); font-size: 16px; line-height: 1.65; }
.success-modal-box .btn { margin-top: 26px; }

/* ─────────────────────────────────────────────────────────────────
   GALLERIA — masonry premium + lightbox
   ───────────────────────────────────────────────────────────────── */
.gallery-section {
  padding: 70px 0 90px;
  background: rgba(245,242,220,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.gallery-masonry {
  columns: 3;
  column-gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item img {
  width: 100%;
  display: block;
  border-radius: 6px;
  transition: transform .6s var(--ease-out), filter .4s ease;
}
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(140,13,28,.28));
  opacity: 0;
  transition: opacity .4s ease;
  border-radius: 6px;
}
.gallery-item:hover img { transform: scale(1.05); filter: brightness(1.05); }
.gallery-item:hover::after { opacity: 1; }

/* Gallery lightbox */
.glx {
  position: fixed; inset: 0;
  z-index: 3000;
  background: rgba(42,26,22,0.94);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center; justify-content: center;
  padding: 28px;
  opacity: 0;
  transition: opacity .35s ease;
}
.glx.open { display: flex; opacity: 1; }
.glx img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
  animation: dishZoomIn .4s var(--ease-out);
}
.glx-close {
  position: absolute; top: 18px; right: 28px;
  font-size: 42px; line-height: 1;
  color: var(--warm-white);
  background: none; border: none; cursor: pointer;
  opacity: .8; transition: opacity .2s;
}
.glx-close:hover { opacity: 1; }

/* ─────────────────────────────────────────────────────────────────
   CONTATTI — premium
   ───────────────────────────────────────────────────────────────── */
.contatti-main {
  padding: 90px 0;
  background: rgba(245,242,220,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.contatti-map iframe {
  width: 100%;
  height: 440px;
  border: none;
  border-radius: 8px;
  box-shadow: 0 12px 44px rgba(140,13,28,0.10);
}
.contatti-info h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  font-weight: 600;
  color: var(--espresso);
  margin: 32px 0 12px;
}
.contatti-info h3:first-child { margin-top: 0; }
.contatti-info p { font-size: 15px; color: var(--muted-gray); line-height: 1.75; }
.contatti-info a { color: var(--olive); text-decoration: none; }
.contatti-info a:hover { color: var(--wood); }

.contact-link-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--muted-gray);
  margin-bottom: 10px;
}
.contact-link-row svg { width: 18px; height: 18px; color: var(--olive); flex-shrink: 0; }
.contact-link-row a { color: var(--olive); text-decoration: none; }
.contact-link-row a:hover { color: var(--wood); }

.orari-table-full { margin-top: 12px; width: 100%; border-collapse: collapse; }
.orari-table-full td {
  padding: 10px 0; font-size: 14px; color: var(--ink);
  border-bottom: 1px solid var(--warm-beige);
}
.orari-table-full tr:last-child td { border-bottom: none; }
.orari-table-full td:last-child { text-align: right; font-family: var(--sans); }
.orari-table-full tr.chiuso td { color: var(--muted-gray); font-style: italic; }

.social-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.social-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--warm-beige);
  font-family: var(--sans);
  font-size: 13px; font-weight: 500;
  color: var(--espresso);
  text-decoration: none;
  transition: background .35s var(--ease-out), color .3s, border-color .3s;
}
.social-chip:hover { background: var(--olive); color: #fff; border-color: var(--olive); }
.social-chip svg { width: 16px; height: 16px; fill: currentColor; }

/* Recensioni */
.reviews-section {
  padding: 90px 0;
  background: rgba(237,233,214,0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.reviews-section .section-inner { text-align: center; max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.review-card {
  background: rgba(255,255,255,0.74);
  border: 1px solid var(--warm-beige);
  padding: 32px 28px;
  border-radius: 8px;
  text-align: left;
  transition: transform .4s var(--ease-out), box-shadow .4s ease;
}
.review-card:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(140,13,28,0.10); }
.review-stars { color: #C8820A; font-size: 17px; margin-bottom: 14px; letter-spacing: 2px; }
.review-text { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--ink); line-height: 1.7; margin-bottom: 18px; }
.review-author { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--espresso); }
.review-date { font-size: 12px; color: var(--muted-gray); margin-top: 3px; }

.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  padding: 20px 28px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--warm-beige);
  border-radius: 8px;
}
.google-logo { font-family: var(--serif); font-size: 26px; font-weight: 700; color: var(--olive); }
.google-rating-num { font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--espresso); line-height: 1; }
.google-rating-stars { color: #C8820A; font-size: 17px; }
.google-rating-count { font-size: 13px; color: var(--muted-gray); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .gallery-masonry { columns: 2; }
}
@media (max-width: 900px) {
  .prenota-layout { grid-template-columns: 1fr; gap: 32px; }
  .contatti-grid { grid-template-columns: 1fr; gap: 36px; }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .page-hero { height: 42vh; min-height: 300px; }
  .menu-section .section-inner { padding: 30px 18px; border-radius: 8px; }
  .menu-item-thumb { width: 54px; height: 54px; }
  .menu-list-item { gap: 12px; flex-wrap: wrap; }
  .form-container { padding: 32px 22px; }
  .gallery-masonry { columns: 1; padding: 0 22px; }
  .reviews-grid { grid-template-columns: 1fr; }

  /* selector di categoria: 2 file da 3 (griglia 3 colonne) */
  .category-selector { padding: 14px 12px; }
  .category-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
  }
  .pill {
    min-width: 0;
    padding: 9px 4px;
    font-size: 9.5px;
    letter-spacing: .03em;
    text-align: center;
    white-space: normal;
  }
}
