html, body {
  background-color: #f4ece6;
  color: var(--bs-secondary);
  font-family: 'Roboto';
  font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Kaushan Script';
}

#mainNav .navbar-brand {
  color: var(--bs-primary);
}

#mainNav .navbar-brand.active, #mainNav .navbar-brand:active, #mainNav .navbar-brand:focus, #mainNav .navbar-brand:hover {
  color: var(--bs-primary);
}

.btn-primary:active, .btn-primary:focus, .btn-primary:hover {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff;
}

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

::selection {
  background: inherit;
  text-shadow: none;
  color: var(--bs-secondary);
}

#mainNav .navbar-toggler {
  font-size: 12px;
  right: 0;
  padding: 13px;
  text-transform: uppercase;
  color: #fff;
  border: 0;
  background-color: var(--bs-primary);
}

#portfolio .portfolio-item .portfolio-link .portfolio-hover {
  background: rgba(207,187,160,0.75);
}

section h3.section-subheading, section .section-subheading.h3 {
  font-family: 'Roboto';
}

@media (min-width: 768px) {
  header.masthead .intro-text .intro-lead-in {
    font-family: 'Roboto';
  }
}

.list-group-item {
  background-color: inherit;
  border: white;
}

.timeline > li .timeline-image {
  color: var(--bs-secondary);
  border: 7px solid var(--bs-secondary);
  background-color: var(--bs-secondary);
}

.timeline:before {
  background-color: var(--bs-secondary);
}

.timeline-heading {
  color: var(--bs-secondary);
}

.timeline-body {
  font-family: 'Roboto';
}

#mainNav .navbar-nav .nav-item .nav-link:hover {
  color: var(--bs-primary) !important;
}

#mainNav .navbar-nav .nav-item .nav-link.active {
  color: white;
}

.accordion-button:focus {
  box-shadow: none !important;
}

a {
  color: var(--bs-secondary);
  text-decoration: none;
}

/* ===== MAP OVERLAY ===== */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.map-overlay.active {
    opacity: 1;
}

.leaflet-container {
    position: relative;
}

.filters-bar {
  background: #fff;
  border: 1px solid #e8ddd4;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
}

.filter-group-label {
  font-family: 'Roboto', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9e8f83;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-badge {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  font-weight: 400;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1.5px solid #c9b9a7;
  background: transparent;
  color: #4a3f35;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.filter-badge:hover {
  border-color: #4a3f35;
  background: #f4ece6;
}

.filter-badge.active {
  background: #4a3f35;
  border-color: #4a3f35;
  color: #fff;
}

.filter-divider {
  width: 1px;
  background: #e8ddd4;
  align-self: stretch;
  margin: 0 8px;
}

.filter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #eee6df;
}

.filter-count {
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  color: #9e8f83;
}

.filter-reset {
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9e8f83;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.filter-reset:hover {
  color: #4a3f35;
  background: #f4ece6;
}

/* ===== CARD RISTORANTE ===== */

.restaurant-card-thumb {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #ede5dc;
}

.restaurant-card-thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c9b9a7;
  font-size: 22px;
}

.restaurant-card-title {
  font-family: 'Kaushan Script', cursive;
  font-size: 1.15rem;
  color: #4a3f35;
  line-height: 1.2;
}

/* Specialità nel ristorante */

#rest-specialita-section .portfolio-item .portfolio-link .portfolio-hover {
  background: rgba(207,187,160,0.75);
}

#rest-specialitaGrid {
  row-gap: 24px;
}

#rest-wrapper {
  position: relative;
  min-height: 300px;
}

#rest-loader {
  /*visibility: hidden;*/
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  /*visibility: visible;*/
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* applicata da JS quando tutto è pronto */

#rest-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.rest-loader-inner {
  text-align: center;
}

/* effetto “breathing” / lampeggio soft */

.rest-loader-logo {
  max-width: 160px;
  height: auto;
  animation: restLogoPulse 1.4s ease-in-out infinite;
}

@keyframes restLogoPulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0.85;
  }
}

