/**
 * QR Landing Page — Mobile-first styles
 */

/* ============================================
   LAYOUT
   ============================================ */
.qr-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 1.25rem;
  background: var(--bg, #FBF7F0);
  color: var(--text, #2C2418);
  font-family: var(--font-body, 'Karla', sans-serif);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.qr-section {
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.qr-section:last-child {
  border-bottom: none;
}

.qr-section__title {
  font-family: var(--font-display, 'Playfair Display SC', serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--primary, #1A1A1A);
  margin: 0 0 1rem;
}

/* ============================================
   HEADER
   ============================================ */
.qr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

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

.qr-header__logo {
  height: 30px;
  width: auto;
}

.qr-header__text {
  font-family: var(--font-display, 'Playfair Display SC', serif);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--primary, #1A1A1A);
  line-height: 1.3;
}

.qr-header__lang {
  display: flex;
  gap: 0.5rem;
}

.qr-header__lang .nav__lang-item {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text, #2C2418);
  opacity: 0.5;
  text-decoration: none;
  padding: 0.25rem 0.35rem;
  transition: opacity 0.2s;
}

.qr-header__lang .nav__lang-item--active {
  opacity: 1;
  border-bottom: 2px solid var(--secondary, #9A3412);
}

/* ============================================
   WELCOME
   ============================================ */
.qr-welcome {
  text-align: center;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.qr-welcome__title {
  font-family: var(--font-accent, 'Cormorant', serif);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  color: var(--primary, #1A1A1A);
  margin: 0 0 0.35rem;
}

.qr-welcome__address {
  font-size: 0.8rem;
  opacity: 0.6;
  margin: 0;
}

/* ============================================
   PILLS NAV
   ============================================ */
.qr-pills {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.qr-pills::-webkit-scrollbar {
  display: none;
}

.qr-pills__item {
  flex-shrink: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  color: var(--primary, #1A1A1A);
  font-family: var(--font-body, 'Karla', sans-serif);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.qr-pills__item:active {
  background: var(--primary, #1A1A1A);
  color: #fff;
  border-color: var(--primary, #1A1A1A);
}

/* ============================================
   CHEF RECOMMENDATION
   ============================================ */
.qr-chef {
  text-align: center;
}

.qr-chef__label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary, #9A3412);
  margin-bottom: 0.75rem;
}

.qr-chef__dish {
  font-family: var(--font-display, 'Playfair Display SC', serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--primary, #1A1A1A);
  margin: 0 0 0.25rem;
}

.qr-chef__desc {
  font-style: italic;
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 0 0 0.5rem;
}

.qr-chef__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.qr-chef__price {
  font-weight: 600;
  color: var(--primary, #1A1A1A);
}

.qr-chef__category {
  opacity: 0.5;
  font-size: 0.8rem;
}

/* ============================================
   ACCORDION MENU
   ============================================ */
.qr-accordion__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.qr-accordion__item:last-child {
  border-bottom: none;
}

.qr-accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
}

.qr-accordion__cat-name {
  font-family: var(--font-display, 'Playfair Display SC', serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--primary, #1A1A1A);
}

.qr-accordion__cat-count {
  font-size: 0.75rem;
  opacity: 0.4;
  margin-left: 0.5rem;
  font-family: var(--font-body, 'Karla', sans-serif);
}

.qr-accordion__chevron {
  width: 18px;
  height: 18px;
  opacity: 0.4;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.qr-accordion__item--open .qr-accordion__chevron {
  transform: rotate(180deg);
}

.qr-accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.qr-accordion__item--open .qr-accordion__body {
  max-height: 2000px;
}

.qr-accordion__desc {
  font-style: italic;
  font-size: 0.8rem;
  opacity: 0.6;
  padding-bottom: 0.5rem;
}

.qr-accordion__dishes {
  padding-bottom: 0.75rem;
}

.qr-dish {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  gap: 0.5rem;
}

.qr-dish__info {
  flex: 1;
  min-width: 0;
}

.qr-dish__name {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--primary, #1A1A1A);
}

.qr-dish__desc {
  font-size: 0.8rem;
  opacity: 0.6;
  font-style: italic;
}

.qr-dish__desc::before {
  content: ' — ';
}

.qr-dish__price {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--primary, #1A1A1A);
}

.qr-dish__note {
  display: block;
  font-size: 0.7rem;
  opacity: 0.5;
  margin-top: 0.1rem;
}

/* Grouped items (beverages) */
.qr-dish--grouped-title {
  padding-bottom: 0;
}

.qr-dish--sub {
  padding-left: 0.75rem;
}

.qr-dish--sub .qr-dish__name {
  font-weight: 400;
  opacity: 0.7;
}

/* ============================================
   NEARBY: guide + luoghi
   ============================================ */
.qr-nearby__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  margin: 0 0 0.6rem;
}

.qr-guides {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.qr-guides__item a {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.2s;
}

.qr-guides__item a:active {
  background: rgba(0, 0, 0, 0.06);
}

.qr-guides__text {
  flex: 1;
  min-width: 0;
}

.qr-guides__name {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--primary, #1a1a1a);
}

.qr-guides__tagline {
  display: block;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 0.15rem;
}

.qr-guides__arrow {
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.4;
  flex-shrink: 0;
}

/* luoghi: chip compatti, il tap apre Maps */
.qr-nearby__chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.qr-nearby__chips a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.2s;
}

.qr-nearby__chips a:active {
  background: rgba(0, 0, 0, 0.06);
}

.qr-nearby__chips .qr-nearby__icon {
  font-size: 1rem;
  width: auto;
}

/* ============================================
   NEARBY PLACES (lista estesa — non più usata nel template)
   ============================================ */
.qr-nearby__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qr-nearby__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.qr-nearby__item a {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.03);
  width: 100%;
  transition: background 0.2s;
}

.qr-nearby__item a:active {
  background: rgba(0, 0, 0, 0.06);
}

.qr-nearby__icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.qr-nearby__text {
  flex: 1;
}

.qr-nearby__name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary, #1A1A1A);
}

.qr-nearby__desc {
  font-size: 0.8rem;
  opacity: 0.6;
  line-height: 1.4;
}

/* ============================================
   NEWSLETTER
   ============================================ */
.qr-newsletter__text {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}

/* Fluent Form overrides for mobile */
.qr-newsletter .ff-el-input--content input[type="email"],
.qr-newsletter .ff-el-input--content input[type="text"] {
  font-size: 16px !important; /* Prevents iOS zoom */
  padding: 0.75rem !important;
  border-radius: 6px !important;
}

.qr-newsletter .ff-btn-submit {
  min-height: 48px !important;
  font-size: 0.95rem !important;
  border-radius: 6px !important;
  width: 100% !important;
}

/* ============================================
   REVIEW BUTTONS
   ============================================ */
.qr-reviews__buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.qr-reviews__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 48px;
  transition: opacity 0.2s;
}

.qr-reviews__btn:active {
  opacity: 0.8;
}

.qr-reviews__btn--tripadvisor {
  background: #34E0A1;
  color: #1A1A1A;
}

.qr-reviews__btn--google {
  background: #4285F4;
  color: #fff;
}

.qr-reviews__btn svg {
  flex-shrink: 0;
}

/* ============================================
   SOCIAL
   ============================================ */
.qr-social__links {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.qr-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary, #1A1A1A);
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.qr-social__link:active {
  transform: scale(0.95);
  opacity: 0.8;
}

/* ============================================
   FOOTER
   ============================================ */
.qr-footer {
  text-align: center;
  padding: 1.5rem 0 2.5rem;
}

.qr-footer__orario {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.qr-footer__orario-label {
  opacity: 0.5;
}

.qr-footer__orario-value {
  font-weight: 600;
}

.qr-footer__orario-closed {
  color: var(--secondary, #9A3412);
  font-weight: 600;
}

.qr-footer__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.qr-footer__thanks {
  font-family: var(--font-accent, 'Cormorant', serif);
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.5;
  margin-top: 1rem;
}
