/* =============================================
   DESIGN SYSTEM — CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --color-black:      #0A100D;
  --color-sage:       #B9BAA3;
  --color-timberwolf: #D6D5C9;
  --color-madder:     #A22C29;
  --color-blood:      #902923;
  --color-white:      #FFFFFF;
  --color-surface:    #F5F4F0;

  --radius-sm:   12px;
  --radius-md:   20px;
  --radius-lg:   28px;
  --radius-xl:   40px;
  --radius-pill: 999px;

  --font-base: 'Poppins', sans-serif;

  --shadow-sm: 0 2px 8px rgba(10,16,13,0.08);
  --shadow-md: 0 6px 24px rgba(10,16,13,0.12);
  --shadow-lg: 0 16px 48px rgba(10,16,13,0.16);

  --transition: 0.25s ease;
  --nav-h: 72px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-base);
  background: var(--color-surface);
  color: var(--color-black);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.hidden { display: none !important; }

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Honeypot anti-bot — nascosto agli utenti */
.hp-wrap {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-madder);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-base);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-madder);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-blood);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  border: 2px solid currentColor;
  color: var(--color-black);
  padding: 10px 22px;
}
.btn--outline:hover {
  background: var(--color-black);
  color: var(--color-white);
}

/* =============================================
   SECTION TITLES
   ============================================= */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--color-black);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1rem;
  color: #555;
  max-width: 560px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar__logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.92);
  transition: color var(--transition);
}
.navbar__links a:hover { color: #fff; }
.navbar.scrolled .navbar__links a { color: var(--color-black); }
.navbar.scrolled .navbar__links a:hover { color: var(--color-madder); }
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.92);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .navbar__burger span { background: var(--color-black); }
.navbar__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--color-white);
  z-index: 99;
  padding: 20px 24px 28px;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  /* hidden attribute handles display:none by default */
}
.mobile-menu:not([hidden]) { display: block; }
.mobile-menu__link {
  display: block;
  padding: 14px 0;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--color-timberwolf);
  transition: color var(--transition);
}
.mobile-menu__link:hover { color: var(--color-madder); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('img/i_gamberini.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,16,13,0.82) 0%,
    rgba(144,41,35,0.45) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 700px;
  padding-top: var(--nav-h);
}
.hero__eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--color-timberwolf);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero__cta { font-size: 1rem; padding: 16px 40px; }

/* =============================================
   GUIDE SECTION
   ============================================= */
.guide {
  padding: 100px 0 80px;
  background: var(--color-surface);
}
.guide__header {
  text-align: center;
  margin-bottom: 48px;
}
.guide__header .section-subtitle { margin: 0 auto; }

/* Search */
.search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto 36px;
}
.search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 2px solid var(--color-timberwolf);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  color: var(--color-black);
}
.search-input:focus {
  border-color: var(--color-madder);
  box-shadow: 0 0 0 4px rgba(162,44,41,0.12);
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--color-sage);
  pointer-events: none;
}

/* Filters */
.filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-group__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sage);
  min-width: 80px;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 500;
  border: 2px solid var(--color-timberwolf);
  background: transparent;
  color: var(--color-black);
  transition: all var(--transition);
}
.pill:hover {
  border-color: var(--color-madder);
  color: var(--color-madder);
}
.pill.active,
.pill[aria-pressed="true"] {
  background: var(--color-madder);
  border-color: var(--color-madder);
  color: var(--color-white);
}

/* Results meta */
.results-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 24px;
  text-align: right;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Restaurant Card */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card__img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card__img-link { display: block; width: 100%; height: 100%; position: relative; z-index: 1; }
.card:hover .card__img { transform: scale(1.05); }
.card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10,16,13,0.75);
  backdrop-filter: blur(6px);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.card__ontrip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-madder);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.card__gluten {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(34, 120, 60, 0.85);
  backdrop-filter: blur(6px);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
.card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card__name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--color-black);
}
.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

/* Stars */
.stars {
  position: relative;
  display: inline-flex;
  font-size: 1rem;
  line-height: 1;
}
.stars__empty { color: var(--color-timberwolf); letter-spacing: 2px; }
.stars__fill {
  position: absolute;
  top: 0; left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--color-madder);
  letter-spacing: 2px;
}
.card__rating-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-black);
}
.card__city {
  font-size: 0.82rem;
  color: #888;
}
.card__desc {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-black);
  color: var(--color-white);
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
  align-self: flex-start;
  margin-top: auto;
}
.card__cta:hover {
  background: var(--color-madder);
  transform: translateY(-1px);
}
.card__cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: #999;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.page-btn {
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--color-timberwolf);
  background: var(--color-white);
  color: var(--color-black);
  transition: all var(--transition);
  padding: 0 14px;
  cursor: pointer;
  font-family: var(--font-base);
}
.page-btn:hover:not(:disabled) {
  border-color: var(--color-madder);
  color: var(--color-madder);
}
.page-btn.active {
  background: var(--color-madder);
  border-color: var(--color-madder);
  color: var(--color-white);
}
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  padding: 100px 0;
  background: var(--color-black);
  color: var(--color-white);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.contact__text .section-title { color: var(--color-white); }
.contact__text p {
  color: var(--color-sage);
  margin-bottom: 28px;
  line-height: 1.8;
}
.contact__ig {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-timberwolf);
  font-weight: 600;
  transition: color var(--transition);
}
.contact__ig svg { width: 20px; height: 20px; }
.contact__ig:hover { color: var(--color-madder); }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(185,186,163,0.25);
  border-radius: var(--radius-md);
  padding: 13px 18px;
  color: var(--color-white);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(185,186,163,0.5); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-madder);
  box-shadow: 0 0 0 4px rgba(162,44,41,0.2);
}
.form-group input.error,
.form-group textarea.error { border-color: #e74c3c; }
.form-group--check { margin-top: 2px; }
.form-group--check.error .check-label { color: #e74c3c; }
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--color-black);
  line-height: 1.5;
}
.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-madder);
  cursor: pointer;
}
.link-inline {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--color-madder);
  cursor: pointer;
  text-decoration: underline;
}

.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-feedback.success {
  background: rgba(39,174,96,0.15);
  color: #2ecc71;
  border: 1px solid rgba(39,174,96,0.3);
}
.form-feedback.error-msg {
  background: rgba(231,76,60,0.15);
  color: #e74c3c;
  border: 1px solid rgba(231,76,60,0.3);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: #070d0b;
  color: var(--color-sage);
  padding: 48px 0 32px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer__logo { height: 40px; width: auto; opacity: 0.85; }
.footer__brand p { font-size: 0.88rem; color: var(--color-sage); }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.footer__links a,
.footer__link-btn {
  font-size: 0.88rem;
  color: var(--color-sage);
  transition: color var(--transition);
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.footer__links a:hover,
.footer__link-btn:hover { color: var(--color-white); }
.footer__copy { font-size: 0.78rem; color: rgba(185,186,163,0.5); margin-top: 8px; }

/* =============================================
   MODALS
   ============================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,16,13,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__box {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  max-width: 620px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal__box h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--color-black);
}
.modal__content p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: #444;
  margin-bottom: 12px;
}
.modal__content a { color: var(--color-madder); }
.modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.6rem;
  color: #999;
  line-height: 1;
  transition: color var(--transition);
  padding: 4px 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.modal__close:hover { color: var(--color-black); }
.modal__content h3 {
  font-size: 1rem;
  margin: 20px 0 6px;
  color: var(--color-black);
}
.modal__content h3:first-of-type { margin-top: 8px; }
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 8px 0 12px;
}
.cookie-table th,
.cookie-table td {
  text-align: left;
  padding: 7px 10px;
  border: 1px solid var(--color-timberwolf);
}
.cookie-table th {
  background: var(--color-timberwolf);
  font-weight: 600;
  color: var(--color-black);
}
.cookie-table code {
  font-family: monospace;
  font-size: 0.9em;
  background: #f4f4f0;
  padding: 1px 4px;
  border-radius: 3px;
}

/* =============================================
   COOKIE BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--color-black);
  color: var(--color-timberwolf);
  padding: 20px 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  animation: slideUp 0.35s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 260px;
}
.cookie-banner__text strong {
  display: block;
  color: #fff;
  margin-bottom: 4px;
  font-size: 1rem;
}
.cookie-banner__text p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-sage);
}
.cookie-banner__link {
  background: none;
  border: none;
  color: var(--color-madder);
  font-family: inherit;
  font-size: 0.875rem;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 4px;
}
.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner__btn { min-width: 180px; }

/* Bottoni nel contesto del banner scuro */
.cookie-banner .btn--outline {
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.cookie-banner .btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  color: #fff;
}

@media (max-width: 600px) {
  .cookie-banner__inner { flex-direction: column; align-items: stretch; }
  .cookie-banner__btn { min-width: unset; width: 100%; }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .navbar__links { display: none; }
  .navbar__burger { display: flex; }
  .hero { background-attachment: scroll; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .filters { padding: 16px; }
  .filter-group { flex-direction: column; align-items: flex-start; gap: 8px; }
  .modal__box { padding: 28px 24px; }
  .guide { padding: 80px 0 60px; }
  .contact { padding: 80px 0; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.2rem; }
  .filter-group__label { min-width: unset; }
  .card__body { padding: 16px; }
}

/* =============================================
   HERO — due CTA affiancati
   ============================================= */
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__ig-btn {
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.55);
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  gap: 8px;
}
.hero__ig-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.hero__ig-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

/* =============================================
   NAVBAR — icona Instagram
   ============================================= */
.navbar__ig { gap: 7px; }
.navbar__ig svg { width: 16px; height: 16px; flex-shrink: 0; }

/* =============================================
   INSTAGRAM BANNER
   ============================================= */
.ig-banner {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-timberwolf);
  padding: 28px 0;
}
.ig-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.ig-banner__left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ig-banner__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-madder), #e05c3c);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ig-banner__avatar svg {
  width: 26px;
  height: 26px;
  color: var(--color-white);
}
.ig-banner__handle {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-black);
  margin-bottom: 4px;
}
.ig-banner__tagline {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.5;
}
.ig-banner__cta { gap: 8px; font-size: 0.9rem; padding: 12px 24px; }
.ig-banner__cta svg { width: 16px; height: 16px; flex-shrink: 0; }

@media (max-width: 600px) {
  .ig-banner__inner { flex-direction: column; align-items: flex-start; }
  .ig-banner__cta { width: 100%; justify-content: center; }
}

/* =============================================
   VIEW TOGGLE — Lista / Mappa
   ============================================= */
.view-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.view-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid var(--color-timberwolf);
  background: var(--color-white);
  color: #888;
  transition: all var(--transition);
}
.view-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.view-btn:hover { border-color: var(--color-madder); color: var(--color-madder); }
.view-btn.active {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

/* =============================================
   MAP VIEW
   ============================================= */
.map-view {
  height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
}
.leaflet-popup-content a { color: var(--color-madder); }

.map-count-marker {
  width: 36px !important;
  height: 36px !important;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--color-madder);
  border: 3px solid var(--color-white);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(10,16,13,0.22);
  position: relative;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  text-align: center;
}

.map-count-marker span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
  width: 100%;
  line-height: 1;
}

.map-popup-count {
  display: inline-block;
  margin-top: 2px;
  color: #777;
  font-size: 0.85em;
}

.map-popup-list {
  margin: 8px 0 0;
  padding-left: 16px;
  max-height: 220px;
  overflow: auto;
}

.map-popup-list li + li {
  margin-top: 5px;
}

/* =============================================
   CARD — nuove funzionalità
   ============================================= */

/* Badge "Nuovo" in card body */
.card__new {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-madder);
  background: rgba(162,44,41,0.1);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Cuoricino preferiti */
.card__fav {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
}
.card__fav svg { width: 16px; height: 16px; }
.card__fav:hover { color: var(--color-madder); background: var(--color-white); }
.card__fav.active { color: var(--color-madder); }

/* Card actions — Instagram + WhatsApp */
.card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.card__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25D366;
  color: var(--color-white);
  flex-shrink: 0;
  transition: all var(--transition);
}
.card__whatsapp svg { width: 20px; height: 20px; }
.card__whatsapp:hover {
  background: #1fba59;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .hero__ctas { flex-direction: column; align-items: flex-start; }
  .map-view { height: 380px; }
}

/* =============================================
   PAGINA SINGOLO RISTORANTE (ristorante.php)
   ============================================= */
.rpage {
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 80px;
  min-height: 70vh;
}
.rpage .container { max-width: 880px; }

/* Breadcrumb */
.rbreadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-blood);
  margin-bottom: 20px;
}
.rbreadcrumb a { color: var(--color-madder); font-weight: 600; transition: color var(--transition); }
.rbreadcrumb a:hover { color: var(--color-blood); }
.rbreadcrumb__current { color: var(--color-black); opacity: 0.7; }

/* Gallery / slider */
.rgallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-black);
  box-shadow: var(--shadow-md);
}
.rgallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rgallery__track::-webkit-scrollbar { display: none; }
.rgallery__slide { flex: 0 0 100%; scroll-snap-align: start; margin: 0; }
.rgallery__slide img {
  width: 100%;
  height: clamp(360px, 70vh, 780px);
  object-fit: contain;
  display: block;
}
.rgallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: var(--color-black);
  font-size: 1.7rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.rgallery__nav:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.rgallery__nav--prev { left: 14px; }
.rgallery__nav--next { right: 14px; }
.rgallery__counter {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(10,16,13,0.6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.rgallery__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  gap: 7px;
  justify-content: center;
}
.rgallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transition: all var(--transition);
}
.rgallery__dot.is-active { background: #fff; width: 22px; border-radius: var(--radius-pill); }

/* Header locale */
.rhead { margin: 28px 0 8px; }
.rhead__title {
  font-size: clamp(1.9rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-black);
}
.rhead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.rchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-timberwolf);
  color: var(--color-black);
}
.rchip svg { width: 15px; height: 15px; }
.rchip--loc { background: var(--color-madder); color: #fff; }
.rchip--soft { background: transparent; border: 1.5px solid var(--color-sage); }
.rchip--gluten { background: #f3e9c8; color: #7a5d12; }

/* Rating */
.rrating { display: flex; align-items: center; gap: 4px; margin-top: 14px; }
.rstar { color: var(--color-sage); font-size: 1.25rem; line-height: 1; }
.rstar.is-on { color: #e8b730; }
.rrating__num { margin-left: 6px; font-weight: 700; }

/* Corpo recensione */
.rbody {
  margin: 26px 0 36px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #2a322d;
}
.rbody p { margin-bottom: 1.1em; }
.rbody p:last-child { margin-bottom: 0; }

/* CTA verso Instagram */
.rcta {
  background: var(--color-white);
  border: 1px solid var(--color-timberwolf);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.rcta__lead { font-size: 1.05rem; margin-bottom: 22px; }
.rcta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.rcta__ig { display: inline-flex; align-items: center; gap: 8px; }
.rcta__ig svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .rcta { padding: 24px 18px; }
  .rcta__btns .btn { width: 100%; justify-content: center; }
}
