
@media (max-width: 600px) {
  .sheet-close-bottom {
    /* hidden by default on mobile */
    display: none !important;
    position: fixed;
    right: 18px;
    bottom: 18px;
    left: auto;
    margin: 0;
    width: auto;
    min-width: 56px;
    padding: 10px 20px;
    font-size: 17px;
    background: var(--brand-color);
    color: #fff;
    border-radius: 22px;
    border: none;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09), 0 2px 10px rgba(0,0,0,0.11);
    z-index: 1500;
    cursor: pointer;
    float: none;
    font-family: inherit;
    font-weight: 600;
  }
  .sheet-close-bottom:active,
  .sheet-close-bottom:hover {
    background: #222;
  }
  /* Show the button only when the bottom sheet is open */
  #bottom-sheet.active .sheet-close-bottom {
    display: block !important;
  }
}
@media (min-width: 601px) {
  .sheet-close-bottom { display: none !important; }
}
:root {
  --brand-color: #1e1e1e;
  --brand-color-dark: #141414;
  --brand-color-darker: #0d0d0d;
  --brand-gradient: linear-gradient(175deg, rgba(20, 20, 20, 0.98) 0%, rgba(12, 12, 12, 0.96) 58%, rgba(5, 5, 5, 0.94) 100%);
  --brand-gradient-hover: linear-gradient(175deg, rgba(32, 32, 32, 0.98) 0%, rgba(16, 16, 16, 0.96) 100%);
  --page-theme-rgb: 30, 30, 30;
  --page-theme-dark-rgb: 10, 10, 10;
  --page-theme-gradient: var(--brand-gradient);
  --page-theme-hover-gradient: var(--brand-gradient-hover);
  --page-theme-border-muted: rgba(38, 38, 38, 0.46);
  --page-theme-border-strong: rgba(22, 22, 22, 0.92);
  --page-theme-border-secondary: rgba(34, 34, 34, 0.84);
  --page-theme-border-medium: rgba(30, 30, 30, 0.62);
  --page-theme-shadow-base-028: rgba(6, 6, 6, 0.32);
  --page-theme-shadow-base-025: rgba(6, 6, 6, 0.28);
  --page-theme-shadow-base-035: rgba(2, 2, 2, 0.38);
  --page-theme-shadow-deep-028: rgba(0, 0, 0, 0.32);
  --page-theme-focus-ring: rgba(34, 34, 34, 0.22);
  --page-theme-hover-border: rgba(68, 68, 68, 0.92);
}

body.restaurant-page {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)) ,
              radial-gradient(circle at 80% 10%, rgba(227, 227, 227, 0.45), rgba(227, 227, 227, 0)) ,
              linear-gradient(160deg, rgba(248, 248, 248, 0.95), rgba(232, 232, 232, 0.92));
  background-attachment: fixed;
}

.hero {
  position: relative;
  width: 100%;
  padding-top: 100%; 
  overflow: hidden;
}
/* Container riempie il box quadrato */
.hero-swiper {
  position: absolute;
  top:0;
  left: 0;
  bottom:0;
  right:0;
}

.hero-swiper .swiper-slide {
  width: 100%;
  height: 100%;
}
 .hero-slide {
   background-size: cover;
   background-position: center;
 }

 .hero-swiper .swiper-slide.dish-item {
  padding:0;
  background-size: cover;
  background-position: center;
}

/* --- Gradiente nero + blur che sfuma (bottom → top) --- */
.hero-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 150px;                 /* altezza fascia; regola a piacere */
  pointer-events: none;
  /* Fondo nero che sfuma verso l’alto */
  background: linear-gradient(
      to top,
      rgba(0,0,0,0.85) 0%,
      rgba(0,0,0,0.4) 50%,
      rgba(0,0,0,0.0) 100%
  );
  /* Simulazione effetto glass con ombra interna */
  box-shadow: 0 -28px 64px rgba(0, 0, 0, 0.48) inset;

  /* Maschera che fa sfumare il blur (Chrome 105+, Safari 15.4+) */
  mask-image: linear-gradient(
      to top,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 30%,
      rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(
      to top,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 30%,
      rgba(0,0,0,0) 100%);
}

.hero-overlay.hero-overlay--no-title {
  box-shadow: none;
}

.hero-badge {
  position:absolute;
  top: 10px;
  left:10px;
  background: var(--brand-color);
  padding:10px;
  border-radius:20px;
  color:#fff;
  font-size: 14px;
}

.hero-badge  span{
  vertical-align: middle;
  line-height: 1;
  margin-right: 2px;
}


.hero-caption {
  text-align:center;
  font-size:20px;
  font-weight:700;
  color:#fff;
  position:absolute;
  z-index:20;
  bottom:40px;
  width:100%;
}
 .hero-pagination .swiper-pagination-bullet {
   background:#fff; opacity:.4;
 }
 .hero-pagination .swiper-pagination-bullet-active {
   opacity:1;
 }


/* Icona refresh accanto al nome utente */
#info_box .reset-ico {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}
#info_box .reset-ico .material-icons {
  font-size: 20px;
  line-height: 1;
}
#info_box .reset-ico:hover {
  opacity: 0.7;
}
/* 1) Abilita scroll smooth sulle aree interessate */
.scrollBox,
#category-nav,
#bottom-sheet .sheet-content {
  scroll-behavior: smooth;
}

/* 2) Nascondi le scrollbar (Chrome, Safari, Opera) */
.scrollBox::-webkit-scrollbar,
#category-nav::-webkit-scrollbar,
#bottom-sheet .sheet-content::-webkit-scrollbar {
  display: none;
}

/* 3) Nascondi le scrollbar in Firefox e IE */
.scrollBox,
#category-nav,
#bottom-sheet .sheet-content {
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE 10+ */
}

.fl {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.fbl {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-style: normal;
}

html {
  height: 100%;
}

body.menu-lock-scroll {
  position: fixed;
  inset: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

body.menu-lock-scroll #main_box {
  left: 50%;
  margin-left: 0;
  transform: translateX(-50%);
}
body.menu-lock-scroll #main_box.restaurant-shell {
  left: auto;
  right: auto;
  transform: none;
}



body.menu-lock-scroll .scrollBox {
  -webkit-overflow-scrolling: touch;
}

body.sheet-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

h1 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 25px;
  margin:0;
}

h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 18px;
  margin:0;
}

h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 22px;
  margin:0;
}

h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 16px;
  margin:0;
}

p {
  font-size: 14px;
  margin:0;
}


.centerimage img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

#main_box {
  width: 90%;
  max-width: 400px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  border-radius:20px;
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: 50%;
  margin-left:-200px;
}


.scrollBox {
  position:absolute;
  left:0;
  bottom:0;
  right:0;
  top:0;          
  overflow-y: auto;             
  overflow-x: hidden;           
  -webkit-overflow-scrolling: touch;                   
}

#main_box.restaurant-shell {
  width: min(94vw, 1280px);
  max-width: 1280px;
  position: relative;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  margin: 40px auto 60px auto;
  border-radius: 26px;
  padding: 0 12px 32px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

#main_box.restaurant-shell .scrollBox {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  bottom: auto;
  overflow: visible;
  padding-bottom: 40px;
}


#info_box {
  padding: 15px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  z-index:20;
  position: relative;
}

.info_buttons {
  margin-top: 10px;
}

.info_button {
  border-radius: 20px;
  border:1px #d7d7d7 solid;
  padding:10px;
  cursor:pointer;
  margin-bottom: 7px;
}

.info_button:last-child {
  margin-bottom: 0;
}

.info_button span {
  vertical-align: middle;
  font-size: 14px;
}

.info_button span.material-icons {
  margin-right: 5px;
  font-size: 18px;
  color: var(--brand-color);
}

.menu-card {
}

.section {
  
}

.dish-header {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  padding: 20px 22px;
  border-radius: 0px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

.menu-card-layout .dish-header {
  border-radius: 24px;
}

.dish-header:not(.with-image):not(.with-slider) .section-header-content {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dish-header:not(.with-image):not(.with-slider) .section-header {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dish-header:not(.with-image):not(.with-slider) .section-desc {
  opacity: 0.7;
  color: rgba(15, 23, 42, 0.68);
}

.dish-header:not(.with-image):not(.with-slider) .dish-header-overlay {
  display: none;
}
.collapsible-hint {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(22, 28, 45, 0.86);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.32));
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  z-index: 2;
  width: 100%;
  opacity: 0.7;
}

.collapsible-hint:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

.collapsible-hint .hint-text {
  display: inline-block;
}

.collapsible-hint .hint-icon {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  transition: transform 0.24s ease;
  margin-top: -5px;
}

.collapsible-hint.is-open {
  background: linear-gradient(135deg, rgba(225, 232, 245, 0.9), rgba(248, 250, 255, 0.6));
  color: rgba(22, 28, 45, 0.94);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.collapsible-hint.is-open .hint-icon {
  transform: translateY(2px) rotate(-135deg);
  margin-top: 3px;
}

.dish-header.with-image .collapsible-hint {
  background: transparent!important;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 36px rgba(10, 14, 24, 0.4);
  opacity: 0.7;
}

.dish-header.with-image .collapsible-hint.is-open {
  background: linear-gradient(140deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.58));
  box-shadow: 0 20px 40px rgba(10, 14, 24, 0.42);
}

.menu-card-layout .collapsible-hint {
  position: relative;
  justify-content: space-between;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
  min-width: unset;
  width: 100%;
  background: linear-gradient(135deg, rgba(247, 249, 255, 0.72), rgba(232, 237, 252, 0.48));
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: rgba(30, 38, 62, 0.9);
  gap: 12px space-between;
  padding-left: 22px;
  padding-right: 22px;
  min-width: unset;
  width: 100%;
}

.category-card-header {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 24px 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 75%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  margin-bottom: 12px;
}

.category-card-header.has-image {
  padding-top: 26px;
}

.category-card-header.no-image {
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  gap: 14px;
}

.menu-card-layout .category-card-header {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  margin-bottom: 18px;
  gap: 16px;
  padding:16px;
}

.menu-card-layout .category-card-header.has-image {
  padding-top: 0;
}

.menu-card-layout .category-card-header.no-image {
  background: transparent;
}

.category-card-header.has-image .category-card-media {
  display: block;
}

.category-card-header.has-slider .category-card-media {
  display: block;
}

.category-card-media {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}

.category-card-media.cat-media-slider {
  display: block;
}

.cat-media-slider {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.cat-media-slider .cat-media-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.cat-media-slider .cat-media-slide.is-active {
  opacity: 1;
}

.menu-card-layout .category-card-media {
  border-radius: 26px;
  box-shadow: 0 30px 46px rgba(15, 23, 42, 0.22);
}

.category-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,0.05) 0%, rgba(15,23,42,0.38) 100%);
  opacity: 0.7;
}

.category-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.category-card-body .section-header {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.menu-card-layout .category-card-body .section-header {
  font-size: 1.6rem;
}

.category-card-body .section-desc {
  margin-top: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(15, 23, 42, 0.68);
}

.collapsible-cat[data-collapsible="1"] .category-card-header {
  min-height: auto;
}

.category-card-header:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 48px rgba(15, 23, 42, 0.14);
}

.menu-card-layout .category-card-header:hover {
  transform: none;
  box-shadow: none;
}

.dish-header.with-image {
  position: relative;
  padding: 15px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  min-height:150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.dish-header.with-slider {
  position: relative;
  overflow: hidden;
  background: none;
  color: #fff;
  min-height: 180px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.dish-header-bg-slider {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.dish-header-bg-slider .cat-media-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}

.dish-header-bg-slider .cat-media-slide.is-active {
  opacity: 1;
}

.section-header, .section-desc {
  z-index:2;
  position: relative;
} 

.section-desc {
  opacity: 0.6;
  font-size: 14px;
} 

.category-intro {
  margin: 20px 10px 10px 10px;
  padding: 18px 24px;
  text-align: left;
  line-height: 1.55;
  background: rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--brand-color, #5b2386);
  border-radius: 14px;
}


.dish-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
  border-radius: inherit;
  top: 0;
  left:0;
  bottom:0;
  right:0;
}

.dish-list {
  background:#fff;
  list-style: none;
  padding:0;
  margin:0;
}

.menu-card-layout .collapsible-cat {
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: none;
  padding-top: 16px;
}

.menu-card-layout .collapsible-cat:first-of-type {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.menu-card-layout .collapsible-cat:last-of-type {
  margin-bottom: 0;
}

.menu-card-layout .collapsible-content {
  padding: 6px 0 0;
}

/* .menu-card-layout .dish-list {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
  margin: 0;
  background-color: #f0f0f0;
  box-shadow: inset 0 80px 120px -60px rgba(0, 0, 0, 0.2);
} */

.menu-card-layout .dish-list {
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 0px;
  margin: 0;
  background-color: #f0f0f0;
}

.menu-card-layout .dish-list .dish-item:last-child {
  border-bottom: none;
}


.menu-card-layout .menu-card .collapsible-cat:last-child .dish-item.pb-8 {
  padding-bottom:20px!important;
}

.menu-card-layout .menu-card .collapsible-cat:last-child .dish-item.pb-8 .like-btn { 
  bottom: 20px!important;
 }

   .dish-item.featured .like-btn {
    bottom: 20px;
    right: 20px;
  }

.menu-card-layout .dish-item.featured .like-btn {
  bottom: -5px;
  right: -5px;
 }

.menu-card-layout .collapsible-content .dish-item.featured .like-btn {
  bottom: 20px;
  right: 20px;
 }

.dish-item {
  margin: 0;
  list-style: none;
  padding:15px;
  border-bottom:1px #d7d7d7 solid;
  position: relative;
  cursor:pointer;
}


/* .menu-card-layout .dish-list .dish-item {
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 16px 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  transition: transform 0.22s ease;
  overflow: hidden;
  position: relative;
} */

.menu-card-layout .dish-list .dish-item:first-child {
  border-top: none!important;
}

.menu-card-layout .dish-list .dish-item {
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 16px 18px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
  transition: transform 0.22s ease;
  overflow: hidden;
  position: relative;
}

.menu-card-layout .dish-list .dish-item.featured {
  
}

.menu-card-layout .dish-item::after {
  display: none;
}


.dish-item.has-image {
  padding-left: 130px;
}

.menu-card-layout .dish-item.has-image {
  padding-left: 126px;
}

.menu-card-layout .dish-item.pb-8 {
  padding-bottom: 16px !important;
}

.dish-list .dish-item:last-child {
  border-bottom:0;
}

.dish-info {
}

.menu-card-layout .dish-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-card-layout .dish-info h4 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.menu-card-layout .dish-info p {
  margin: 0;
  color: rgba(15, 23, 42, 0.68);
  line-height: 1.48;
}

.menu-card-layout .dish-info .badges-row {
  gap: 8px;
}

.dish-img {
  position: absolute;
  left: 15px;
  top: 15px;
  width: 100px;
  height: min(calc(100% - 30px), 180px);
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  overflow: hidden;
}

.menu-card-layout .dish-img {
  left: 18px;
  top: 18px;
  width: 96px;
  height: min(calc(100% - 36px), 172px);
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.22);
}

.dish-info .icon {
  width:23px;
  vertical-align: middle;
  margin:0;
}

.dish-info .price {
  margin-top: 5px;
}


.dish-info .icon.spicy {
  width:18px;
}

.menu-card-layout .dish-info .price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.06), rgba(99, 102, 241, 0.12));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
  font-weight: 700;
  color: #0f172a;
  margin-top: 10px;
}

.menu-card-layout .dish-item:not(.has-image) .dish-info .price {
  align-self: flex-start;
}

.menu-card-layout .dish-info .badge-item {
  border-radius: 14px;
}

/* Overlay del bottom sheet */
#sheet-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.58);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}
/* Contenitore bottom sheet */
#bottom-sheet {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 90%;
  background: #fff;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  max-width:400px;
  left:50%;
  margin-left:-200px;
}


#bottom-sheet.active .badge-item {
  display: block;
  position: absolute;
  padding: 6px 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  margin-top: -30px;
  z-index: 20;
}

#bottom-sheet.active .badge-item.top {
  z-index: 100;
}

#bottom-sheet.active .badge-item.relative {
  position: relative;
  margin:0;
  margin-bottom: 10px;
}

.badge-item {
  display: none;
}

#bottom-sheet h2 {
  margin-bottom: 15px;
}

#bottom-sheet .info_button {
  display:block;
}

/* Contenuto scrollabile */
#bottom-sheet .sheet-content {
  padding: 16px;
  overflow-y: auto;
}
/* Stati attivi */
#sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}
#bottom-sheet.active {
  transform: translateY(0);
  z-index: 5001;
}

/* Pulsante di chiusura nel bottom sheet */
#bottom-sheet .sheet-close {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* --- Restaurant page: custom popup styling -------------------------------- */
body.restaurant-page #sheet-overlay {
  background:
    radial-gradient(circle at 20% 20%, rgba(var(--page-theme-rgb, 15, 23, 42), 0.3), rgba(10, 16, 28, 0.72)),
    rgba(8, 12, 20, 0.6);
  z-index: 5000;
}

body.restaurant-page #bottom-sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, calc(100% + 80px));
  width: min(520px, calc(100vw - 48px));
  max-height: min(80vh, 620px);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(242, 242, 249, 0.94));
  border: 1px solid var(--page-theme-border-muted, rgba(130, 16, 42, 0.35));
  box-shadow: 0 32px 72px rgba(14, 18, 32, 0.28);
  margin: 0;
  padding: 0;
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.24s ease-in-out;
  display: flex;
  flex-direction: column;
  z-index: 5001;
  pointer-events: none;
  overflow: hidden;
}

body.restaurant-page #bottom-sheet.active {
  transform: translate(-50%, -50%);
  opacity: 1;
  pointer-events: auto;
}

body.restaurant-page #bottom-sheet .sheet-content {
  padding: 32px 34px 36px;
  overflow-y: auto;
  max-height: calc(80vh - 64px);
  color: #2f3340;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.restaurant-page #bottom-sheet .sheet-content h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  color: rgb(var(--page-theme-dark-rgb, 20, 20, 28));
  margin-bottom: 6px;
}

body.restaurant-page #bottom-sheet .sheet-content p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(15, 23, 42, 0.78);
}

body.restaurant-page #bottom-sheet .sheet-content a {
  color: inherit;
}

body.restaurant-page #bottom-sheet .info_button {
  border: 1px solid var(--page-theme-border-muted, rgba(130, 16, 42, 0.25));
  border-radius: 18px;
  padding: 14px 18px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(247, 247, 250, 0.88));
  font-weight: 500;
  color: rgb(var(--page-theme-dark-rgb, 28, 28, 36));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body.restaurant-page #bottom-sheet .info_button + .info_button {
  margin-top: 12px;
}

body.restaurant-page #bottom-sheet .info_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(16, 18, 33, 0.16);
}

body.restaurant-page #bottom-sheet .info_button span.material-icons,
body.restaurant-page #bottom-sheet .info_button i {
  font-size: 20px !important;
  color: rgb(var(--page-theme-dark-rgb, 88, 11, 29));
  background: rgba(var(--page-theme-rgb, 130, 16, 42), 0.08);
  border-radius: 999px;
  padding: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  flex-shrink: 0;
}

body.restaurant-page #bottom-sheet .info_button i {
  width: auto;
  height: auto;
}

body.restaurant-page #bottom-sheet .sheet-close {
  top: 16px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--page-theme-border-muted, rgba(130, 16, 42, 0.25));
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  color: rgb(var(--page-theme-dark-rgb, 22, 22, 30));
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.restaurant-page #bottom-sheet .sheet-close span {
  margin-top:-2px;
  line-height: 0;
}

body.restaurant-page #bottom-sheet .sheet-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.25);
}

@media (max-width: 599px) {
  body.restaurant-page #bottom-sheet {
    width: calc(100vw - 28px);
    max-height: 86vh;
    border-radius: 24px;
  }
  body.restaurant-page #bottom-sheet .sheet-content {
    padding: 26px 22px 30px;
    max-height: calc(86vh - 56px);
  }
}

/* Allinea e margina le icone Font Awesome dentro .info_button */
.info_button i {
  margin-right: 5px;
  vertical-align: middle;
  color: var(--brand-color);
}

#bottom-sheet .diet-item {
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: var(--brand-color);
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  margin:0px 8px 0 0;
}
#bottom-sheet .diet-item .icon.inline {
  width:20px;
  vertical-align: middle;
  filter: invert(100%);
}

#bottom-sheet .diet-item span {
  vertical-align: middle;
  font-size:16px;
}

.allergeni_list {
  padding:0;
}

.allergeni_title {
  margin-bottom:10px;
}

.allergeni_item {
  display: inline-block;
  border-radius: 10px;
  margin-right: 5px;
  margin-bottom: 5px;
  border: 1px #d7d7d7 solid;
  padding: 10px;
}

.option-group + .option-group { margin-top: 14px; }

#category-nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 48px;       
  display: flex;
  align-items: center; 
  overflow-x: auto;
  padding: 0 12px;     
  background: #fff;
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  pointer-events: none;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
}
#category-nav.visible {
  transform: translateY(0);
  pointer-events: auto;
}

#category-nav .cat-link {
  display: flex;  
  align-items: center;   
  height: 32px;
  line-height: 32px;
  padding: 0 12px;
  border-radius: 20px;
  flex-shrink: 0;
  margin-right: 10px;
  height: 32px;           
  line-height: 32px;       
  padding: 0 12px;         
  border-radius: 20px;
  white-space: nowrap;
  text-decoration: none;
  color: #000;
  background: #f0f0f0;
  font-size: 14px;
}
#category-nav .cat-link.active {
  background: var(--brand-color);
  color: #fff;
}


#questionnaire {
  /* Initial questionnaire container */
  position: absolute;
  inset: 0;
  max-width: 400px;
  margin: auto;
  background: #fff;
  padding: 24px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  z-index: 2000;
}
#questionnaire .step { text-align: center; max-width: 400px; width: 100%; }
#questionnaire .step[hidden] { display: none; }
#questionnaire input { width: 100%; padding: 8px; margin: 10px 0; }
#questionnaire button { padding: 8px 16px; }
.allergens-list { overflow-y: auto; text-align: left; }


#questionnaire .q-intro {
  font-size: 15px;
  color: #444;
  text-align: center;
  margin-bottom: 16px;
  padding: 0 8px;
}


#questionnaire .diet-item {
  display: inline-flex;
  align-items: center;
  margin: 5px;
  padding: 10px;
  border-radius: 10px;
  background: var(--brand-color);
  color: #fff;
  cursor: pointer;
  user-select: none;
}
#questionnaire .diet-item input {
  margin-right: 8px;
}



.dish-item.recommended { background: rgba(40,167,69,0.1);}
.dish-item { transition: opacity 0.3s; }
.dish-item[style*="display: none"] { opacity: 0; height: 0; padding:0; margin:0; overflow:hidden; }

/* Nasconde i checkbox dentro il questionario */
#questionnaire input[type="checkbox"].hidden-cb {
  display: none;
}

/* Box cliccabili (allergeni e preferenze) */
#questionnaire .selectable {
  opacity: .45;
  transition: opacity .2s, background .2s, color .2s;
  cursor: pointer;
}

#questionnaire .selectable.selected {
  opacity: 1;
  background: var(--brand-color);
  color: #fff;
}

/* Swiper nel bottom-sheet */
.dish-swiper { margin-bottom: 15px; }
.dish-swiper .swiper-slide img { width:100%; display:block; border-radius:10px; }

/* --- Swiper nel bottom-sheet: rapporto 4:3 e puntini neri --- */

/* Contenitore: mantiene il rapporto 4:3 (75% di padding-top) */
.dish-swiper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;  /* mantiene 4:3 */
  overflow: hidden;
}


/* Rendi wrapper e slide assoluti dentro al box 4:3 */
.dish-swiper .swiper-wrapper { height: 100%; }
.dish-swiper .swiper-slide   { height: 100%; }

/* Immagine: riempi e taglia (cover) */
.dish-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Bullet pagination neri */
.dish-swiper .swiper-pagination-bullet {
  background: #000;
  opacity: .35;                  /* pallini spenti */
}
.dish-swiper .swiper-pagination-bullet-active {
  opacity: 1;                    /* pallino selezionato */
}
/* === Bottone "Ricomincia questionario" === */
#info_box .reset-btn {
  display: inline-flex;
  align-items: center;
  background: var(--brand-color);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 15px;
  margin-bottom: 15px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

#componentsSection .groupBlock { transition: background 0.2s; }
#componentsSection .groupBlock:hover  { background: #f0f4ff; }

.dish-item .badge-item {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  margin-top: 5px;
  margin-bottom: 5px;
}

.menu-card .collapsible-cat:last-child .dish-item.pb-8 { 
  padding-bottom: 60px!important;
 }

.menu-card .collapsible-cat:last-child .dish-item.pb-8 .like-btn { 
  bottom: 60px!important;
 }

/* Dimensione prezzi nel dettaglio piatto */
#bottom-sheet .prezzi_list li,
#bottom-sheet .single_price {
  font-size: 16px;   /* leggermente più grande rispetto al testo base */
}



/* Square container for single image in dish detail */
.single-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;  /* mantiene 4:3 */
  overflow: hidden;      /* 1:1 aspect ratio */
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
}
.single-img-wrapper img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* -------- Coperto a persona (footer banner) -------- */
.cover-charge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  padding: 18px 12px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.3px;

  color: #393939;
  background: #ffffff; 
  border-top: #e3e3e3 1px solid;
 

  text-transform: uppercase;
}

/* Footer powered by */
.powered-by {
  text-align: center;
  color: #000;
  opacity: 0.7;
  font-size: 12px;
  padding: 12px 0 12px 0;
}
.powered-by a { text-decoration: none; font-weight: 600; }



/* Titolo nel bottom-sheet --------------------------------------------- */
/* --- Header del bottom‑sheet: effetto vetro + sticky ------------------- */
.sheet-title {
  position: sticky;
  top: -17px;
  z-index: 20;

  /* Layout */
  display: block;
  padding: 16px 64px 14px 24px;

  /* Tipografia */
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;          /* una sola riga */
  overflow: hidden;             /* taglia l’eccesso */
  text-overflow: ellipsis;      /* “…” quando sfora */

  /* Effetto “glass” */
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64));
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);

  /* Estensione a tutta larghezza rispetto al padding del contenuto */
  margin: -16px -16px 18px;

  /* Arrotonda gli angoli superiori per fondersi col foglio */
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;

  /* Transizioni soft quando diventa sticky */
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* Quando è “stuck”: sfondo pieno + lieve ombra per separare dal contenuto */
.sheet-title.stuck {

  z-index: 50;          /* sopra alle slide Swiper */
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Ombra: nascosta finché il titolo non è “stuck” */
/* Sottile gradiente/ombra in basso: compare solo da .stuck */
.sheet-title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -24px;               /* ombra sotto il titolo */
  height: 24px;
  background: linear-gradient(
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.sheet-title.stuck::after { opacity: 1; }

#bottom-sheet .sheet-close {
  z-index: 60;
  font-size: 28px;
  right: 18px;
  top: 13px;
  color: #000;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
#bottom-sheet .sheet-close:hover {
  opacity: 1;
}

/* Profile completion overlay */
#profile-complete-overlay {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease;
  z-index: 2999;
}

/* Profile completion banner */
#profile-complete-banner {
  /* ...altre regole... */
  position: absolute;
  bottom: 20px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  z-index: 3000;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  border-radius:20px;
  /* Centra il banner orizzontalmente rispetto a #main_box */
  left: 50%;
  margin-left: -45%;
  bottom: 20px;
  transform: translateY(calc(100% + 20px));
}

#profile-complete-banner.open {
  transform: translateY(0);
}

/* Close button inside banner */
#profile-banner-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 3001;
}

/* Profile form layout */
#profile-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#profile-complete-banner input,
#profile-form input {
  box-sizing: border-box;
}

/* Reopen profile button: hidden below viewport, slides up when visible */
#profile-reopen-btn {
  display: none;
  position: absolute;
  left: 5px;
  padding: 10px;
  background: var(--brand-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  z-index: 3002;
  cursor: pointer;
  opacity: 0;               /* di default è invisibile finché non diventa .visible */
  pointer-events: none;     /* disabilita i clic quando nascosto */
  transition: bottom 0.3s ease, opacity 0.3s ease;
    background: linear-gradient(120deg, #6366f1 0%, #4338ca 100%);
  background-size: 220% 220%;
  animation: indaco-gradient 4.5s ease-in-out infinite;
  filter: drop-shadow(0 0 10px #6366f1cc);
  width:44px;
  height:44px;
  bottom: 5px;
}

@keyframes indaco-gradient {
  0% { background-position: 0% 60%; }
  45% { background-position: 80% 100%; }
  60% { background-position: 100% 0%; }
  100% { background-position: 0% 60%; }
}


#profile-reopen-btn span {
  font-family: 'Unbounded', cursive, sans-serif;
}

/* When shown, slide up into view */
#profile-reopen-btn.visible {
  display: block;
  bottom: 5px;
  opacity: 1;               /* pienamente visibile */
  pointer-events: auto;     /* riabilita i clic */
}

#profile-reopen-btn.fade-hidden {
  opacity: 0;
  pointer-events: none;
}

#profile-reopen-btn.has-menu-nav {
  bottom:52px;
  left:10px;
}

#profile-reopen-btn.has-menu-nav.visible {
  bottom:52px;
  left:10px;
}



/* Inputs in questionnaire */
#questionnaire input[type="email"],
#questionnaire input[type="text"] {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

/* Primary buttons */
#questionnaire button {
  width: 100%;
  background: var(--brand-color);
  color: #fff;
  font-size: 16px;
  border-radius: 8px;
  padding: 12px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}

/* Secondary skip button */
#questionnaire button#q-skip-0 {
  background: transparent;
  color: var(--brand-color);
  border: 1px solid var(--brand-color);
  margin-top: 4px;
}

/* Error message */
#questionnaire p#emailError {
  font-size: 14px;
  color: #e74c3c;
  margin-top: 8px;
  text-align: left;
}

/* Steps full width */
#questionnaire .step {
  width: 100%;
}

/* Allergens list */
#questionnaire .allergens-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-y: auto;
  margin-bottom: 12px;
}

/* Clickable labels */
#questionnaire .selectable {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  user-select: none;
}
#questionnaire .selectable.selected {
  background: var(--brand-color);
  color: #fff;
  border-color: var(--brand-color);
}


#profile-view-btn {
  display: none;
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: var(--brand-color);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 50%;
  z-index: 200;
  cursor: pointer;
}


#profile-view-btn.has-menu-nav {
  bottom:52px;
  left:10px;
}


#profile-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 199;
}
/* Profile modal */
#profile-modal {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 360px;
  background: #fff;
  padding: 24px 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-family: inherit;
  z-index: 3000;
  max-height: 80%;
  overflow-y: auto;
}
#profile-modal h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #333;
}
#profile-modal label {
  display: block;
  font-size: 14px;
  color: #444;
  margin-bottom: 12px;
}
#profile-modal label input {
  margin-top: 4px;
}
#profile-modal input[type="text"],
#profile-modal input[type="email"],
#profile-modal input[type="tel"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-sizing: border-box;
  margin-bottom: 12px;
}

/* Clickable pills inside profile modal */
#profile-modal .allergens-list-edit .selectable,
#profile-modal .prefs-list-edit label {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 4px 4px 8px 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  user-select: none;
  font-size: 14px;
  color: #444;
}
#profile-modal .allergens-list-edit .selectable input,
#profile-modal .prefs-list-edit input {
  margin-right: 8px;
}
#profile-modal .selectable.selected {
  background: var(--brand-color);
  color: #fff;
  border-color: var(--brand-color);
}

#profile-modal form button[type="submit"] {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  background: var(--brand-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 16px;
}

.modal-section {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  background: #fafafa;
}
.modal-section h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #333;
}

#profile-modal .modal-section h5 {
  margin: 0 0 12px 0;   /* niente margine-top, 12px sotto */
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Hide native checkboxes in profile modal */
#profile-modal input[type="checkbox"] {
  display: none;
}

/* Clickable pills in modal */
#profile-modal .selectable {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 4px 6px 8px 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  user-select: none;
  font-size: 14px;
  color: #444;
}
#profile-modal .selectable.selected {
  background: var(--brand-color);
  color: #fff;
  border-color: var(--brand-color);
}

/* Style modal close button like other boxes */
#profile-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}
#profile-modal .modal-close:hover {
  color: #000;
}

/* --- Fade / scale modal profilo --- */
#profile-modal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#profile-modal.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --- Fade overlay --- */
#profile-modal-overlay {
  transition: opacity 0.3s ease;
  opacity: 0;
}
#profile-modal-overlay.active {
  opacity: 1;
}


/* --- Barra di selezione menu in basso -------------------------------- */
#menu-nav{
  position:absolute;left:0;right:0;bottom:0;height:48px;
  display:flex;align-items:center;overflow-x:auto;padding:0 12px;
  background:var(--brand-color);z-index:120;box-shadow:0 -2px 10px rgba(0,0,0,.1);
  scrollbar-width:none;-ms-overflow-style:none;
}
#menu-nav::-webkit-scrollbar{display:none;}
#menu-nav .menu-switch-link{
  display:flex;align-items:center;height:32px;line-height:32px;
  padding:0 12px;border-radius:20px;margin-right:10px;flex-shrink:0;
  white-space:nowrap;text-decoration:none;color:#fff;background:#444444;
  font-size:14px;
}
#menu-nav .menu-switch-link.active {
  background: #f0f0f0;
  color: #000;
}
/* ScrollBox rialzata quando è presente la barra menu */
.scrollBox.has-menu-nav{bottom:48px;}

.lang-pill{
  position:absolute;
  top:12px;
  right:12px;
  background:var(--brand-color);
  color:#fff;
  border-radius:20px;
  display:flex;
  overflow:hidden;
  z-index:10;
  font-family:Poppins,sans-serif;
  font-size:13px;
}
.lang-pill a{
  padding:6px 12px;
  text-decoration:none;
  color:#fff;
}
.lang-pill a:not(.active):hover{
  background:rgba(0, 0, 0, 0.2);
}
.lang-pill a.active{
  background:#f0f0f0;
  color:#000;
}

.cta-btn {
  color:#fff!important;
}

.scrollBox.restaurantPage {
  padding-bottom: 40px;
}

.info_button.book-btn {
  position: absolute!important;
  bottom: 0;
  left:0;
  right:0;
  z-index: 100;
}


.prenota .chip{transition:all .15s}
.prenota   .chip.sel{background:var(--brand-color)!important;color:#fff!important}
.prenota    .lang-pill{
      position:absolute;top:12px;right:12px;z-index:200;
     
    }
    .prenota    .lang-pill a{padding:6px 12px;color:#fff;text-decoration:none;}
    .prenota    .lang-pill a:hover:not(.active){background:#222}
    .prenota    .lang-pill a.active{background:#f0f0f0;color:#000}
    .prenota    .flatpickr-day.giorno-chiuso{color:#bbb;cursor:not-allowed;opacity:.6}

    /* Header fisso dentro #main_box */
    .prenota  .fixed-header{
    position: relative;
    padding:20px 12px 12px;   /* un po’ di aria */
  }

  /* Logo più alto, non tagliato */
  .prenota  .main_logo {
    margin-bottom: 30px;
    position: relative;
  }

  .step_nav {
    margin-top:-30px;
  }

  .prenota h1 {
    
  }

  /* rimossa regola vecchia help-button, ora gestita in fondo */

  .bg-black {
    background: var(--brand-color)!important;
  }

  .allergens-icons-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 4px 0;
    padding: 0;
    list-style: none;
  }
.allergens-icons-modern li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: box-shadow .2s;
}
.menu-card-layout .allergens-icons-modern li {
  width: 28px;
  height: 28px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.15);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.allergens-icons-modern li:hover {
  box-shadow: 0 4px 12px rgba(60,60,60,0.10);
}
.menu-card-layout .allergens-icons-modern li:hover {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}
.menu-card-layout .dish-item.recommended .allergens-icons-modern li,
.menu-card-layout .dish-item.allergy-hit .allergens-icons-modern li {
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}
.allergens-icons-modern img {
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  filter: grayscale(0%) brightness(0.8);
  transition: filter .2s;
}
.menu-card-layout .allergens-icons-modern img {
  max-width: 20px;
  max-height: 20px;
  filter: grayscale(0%) brightness(0.85);
}
.allergens-icons-modern li:hover img {
  filter: grayscale(0%) brightness(1.2);
}
.menu-card-layout .allergens-icons-modern li:hover img {
  filter: grayscale(0%) brightness(1.05);
}


.dish-detail-block {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 18px 16px;
  margin-bottom: 18px;
}

.allergens_variant_box {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 18px 16px;
  margin-bottom: 18px;
}

/* Ulteriore aria generale nel dettaglio piatto */
#bottom-sheet .sheet-content > *:not(:last-child) {
  margin-bottom: 18px;
}

body.restaurant-page .hero {
    width: 100%;
    margin-left:-32px!important;
    margin-right: -32px!important;
    width: calc(100% + 64px)!important;
    margin-bottom:-60px!important;
z-index:0!important;
position: relative!important;
  }


/* Full-width main_box on tablet and mobile */
@media (max-width: 1024px) {
  #main_box {
    width: 100%;
    max-width: 100%;
    left: 0;
    margin-left: 0;
    border-radius: 0;
    top:0;
    bottom:0;
  }
  #main_box.restaurant-shell {
    position: relative;
    right: auto;
    margin: 0;
    padding: 0 16px 32px 16px;
    box-shadow: none;
    width: 100%;
    max-width: 100%;
    padding:0;
  }
  #main_box.restaurant-shell .scrollBox {
    position: static;
    overflow-y: auto;
    padding: 0 0 40px 0;
  }

  #profile-complete-banner {
    left: 50%;
    margin-left: 0;
    transform: translate(-50%, calc(100% + 20px));
    width: 96%;
    max-width: 95vw;
    min-width: unset;
    padding: 18px 8px;
    border-radius: 16px;
  }
  #profile-complete-banner.open {
    transform: translate(-50%, 0);
  }
}

/* Tablet: layout a due colonne per i piatti */
@media (min-width: 768px) {
  .dish-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding:10px;
  }
  .menu-card-layout .dish-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding:10px;
  }
  .dish-list .dish-item {
    border-bottom: none;
    margin-bottom: 12px;
  }
  .menu-card-layout .dish-list .dish-item {
    border-bottom: none;
    margin-bottom: 12px;
  }
  .dish-list .dish-item {
    border:1px #cbcbcb solid!important;
    border-radius:20px;
  }
  .menu-card-layout .dish-list .dish-item {
    border:1px #cbcbcb solid!important;
    border-radius:20px;
  }
  /* Featured dish spans full width on tablet */
  .dish-list .dish-item.featured { grid-column: 1 / -1; border-radius:20px;}
  .menu-card-layout .dish-list .dish-item.featured { grid-column: 1 / -1; }
  /* Tablet: hero slider quadrato con 2 slide senza gap */
  body.restaurant-page .hero {
    padding-top: 50%;  /* altezza = metà larghezza per slide quadrate */
    width: 100vw;
    margin-left: calc(50% - 540vw);
    margin-right: calc(50% - 50vw);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
    overflow: hidden;
    max-width: none;
  }
  body.restaurant-page .hero-swiper,
  body.restaurant-page .hero-gradient,
  body.restaurant-page .hero .swiper-slide {
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
  }
  .menu-cta-actions {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 18px;
    justify-content: center;
  }

.menu-cta-actions--with-branch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  justify-content: stretch;
  align-content: start;
}

.menu-cta-actions--with-branch > * {
  grid-column: 1 / -1 !important;
  width: auto;
  max-width: none;
}

  .summary-item--contacts--with-tiles .contact-tiles {
    grid-template-columns: 1fr;
  }
  body:not(.restaurant-page) .hero {
    padding-top: 50%;
  }
}

/* Mobile: ripristina layout singola colonna (default) */
@media (max-width: 767px) {
  .dish-list {
    display: block;
    padding:0;
  }
  .menu-cta-actions {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .menu-cta-actions--with-branch {
    grid-template-columns: 1fr;
  }
  body.restaurant-page .hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    max-width: none;
  }
  body.restaurant-page .hero-swiper,
  body.restaurant-page .hero-gradient,
  body.restaurant-page .hero .swiper-slide {
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
  }
  #bottom-sheet {
    left: 0;
    margin-left: 0;
    max-width: 100%;
  }
  .dish-item {
  border-bottom:1px #d7d7d7 solid;
  border-radius: 0;
}

.dish-list .dish-item:last-child {
  border-bottom:0;
}


.cta-card {
  padding: 10px!important;
}

}

/* Tablet: dettaglio piatto come modal centrata */
@media (min-width: 768px) {
  /* Rendi overlay full-screen fixed */
  #sheet-overlay {
    position: fixed;
    inset: 0;
  }
  /* Centra il bottom-sheet come modal */
  #bottom-sheet {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 80%;
    max-width: 600px;
    max-height: 90%;
    height: 90%;
    border-radius: 20px;
    margin: 0;
  }
  #bottom-sheet.active {
    transform: translate(-50%, -50%);     /* centrata */
  }
  /* Featured dish image shorter on tablet */
  .dish-item.featured .featured-img { margin-bottom: 10px; }
  .dish-item.featured .featured-img img { width:100%; height: 220px; object-fit: cover; }
  /* Assicura lo scrolling interno per il contenuto */
  #bottom-sheet .sheet-content {
    height: calc(90vh - 60px);
    overflow-y: auto;
  }
  .dish-item.featured .like-btn {
    bottom: 20px;
    right: 20px;
  }
  /* Pulsante di chiusura sempre visibile in alto a destra */
  #bottom-sheet .sheet-close {
    position: absolute;
    top: 12px;
    right: 12px;
  }

}

.gustify-logo {
  font-family: 'Unbounded', cursive, sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #4f46e5; /* indaco-600 di Tailwind */
  font-size: 2rem; /* regola la grandezza secondo dove la usi */
  line-height: 1.1;
  display: inline-block;
}


.allergens-icons-modern li {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: linear-gradient(120deg, rgba(255,255,255,0.82) 68%, rgba(255,255,255,0.07) 100%);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: box-shadow .2s;
}
.allergens-icons-modern img {
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  filter: grayscale(0%) brightness(0.87);
  transition: filter .2s;
  background: none !important;
  border-radius: 0 !important;
}
.dish-item.recommended .allergens-icons-modern li,
.dish-item[style*="background-color: #ffe5e5"] .allergens-icons-modern li {
  background: linear-gradient(120deg, rgba(255,255,255,0.93) 82%, rgba(255,255,255,0.16) 100%);
}

.gradient_bg {
  background: linear-gradient(300deg,deepskyblue,darkviolet,blue);
  background-size: 250% 250%;
  animation: gradient-animation 18s ease infinite;
  position: fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  flex-direction: column;
}

.gradient_bg h1 {
  color:#fff;
  font-size: clamp(4rem, 7vw, 6.5rem);
}

.gradient_bg h3 {
  color:#fff;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.copyright_box {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  padding: 10px;
  font-size: 12px;
  color: #fff;
  opacity: 0.4;
}

#info_box.gustify-info-box {
  position: relative;
  background: var(--brand-gradient);
  color: #fff;
  padding: 20px 0 26px;
  border: 1px solid var(--page-theme-border-secondary);
  box-shadow: 0 32px 72px var(--page-theme-shadow-base-035);
  overflow: hidden;
  text-align: center;
  margin: -1px auto 0 auto;
  z-index: 11;
}

#info_box.gustify-info-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.gustify-info-box .info_buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.gustify-info-box .info_button {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  font-size: 17px;
  border-radius: 16px;
  padding: 12px 30px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85%;
  max-width: 360px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: background .19s;
  cursor: pointer;
}
.gustify-info-box .info_button span.material-icons {
  font-size: 20px;
  margin-right: 9px;
  color: #fff;
}

.gustify-info-box .info_button:hover {
  background: rgba(224, 224, 224, 0.222);
}
.tap-highlight-removal {
  /* This class is only for context, not used in output */
}

button, .info_button, .gustify-info-box .info_button, a {
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
}
button:focus, .info_button:focus, .gustify-info-box .info_button:focus, a:focus {
  outline: none;
  box-shadow: none;
}

/* Disattiva highlight azzurrino su tutti gli elementi interattivi menu e playlist */
.dish-item,
.queue-item,
.cat-link,
.menu-switch-link {
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
}

.dish-item:focus,
.queue-item:focus,
.cat-link:focus,
.menu-switch-link:focus {
  outline: none;
  box-shadow: none;
}

/* Rimuove highlight azzurrino su pillole allergeni e preferenze */
.allergeni_item,
.diet-item,
.selectable {
  -webkit-tap-highlight-color: transparent !important;
  outline: none;
}
.allergeni_item:focus,
.diet-item:focus,
.selectable:focus {
  outline: none;
  box-shadow: none;
}

#profile-modal select[name="edit_phone_prefix"] {
  border-radius: 8px;
  border: 1px solid #bbb;
  background: #f5f5f7;
  font-size: 15px;
  color: #222;
  padding: 8px 10px;
  margin-right: 0;
  min-width: 85px;
  transition: border 0.2s;
}
#profile-modal select[name="edit_phone_prefix"]:focus {
  border-color: #4f46e5;
  outline: none;
}

#profile-modal select[name="edit_phone_prefix"],
#profile-modal input[name="edit_phone_number"] {
  height: 44px;
  font-size: 17px;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #bbb;
  background: #f5f5f7;
  outline: none;
}

#profile-modal select[name="edit_phone_prefix"] {
  /* Elimina padding verticale che allunga il select */
  padding-top: 0;
  padding-bottom: 0;
  min-width: 110px;
}

#profile-modal input[name="edit_phone_number"] {
  background: #fff;
  border: 1px solid #bbb;
  border-radius: 12px;
  margin: 0;
}

/* Elimina effetti ombra/outline dal select su focus */
#profile-modal select[name="edit_phone_prefix"]:focus {
  border-color: #4f46e5;
  box-shadow: none;
}

#profile-modal input[name="edit_phone_number"]:focus {
  border-color: #4f46e5;
  box-shadow: none;
}

@media (max-width: 600px) {
  #bottom-sheet .sheet-content {
    /*padding-bottom: 70px !important; /* puoi aumentare o diminuire a seconda dell’altezza del pulsante */
  }
}

.slot-pill {
  background: #f5f6ff;
  border-color: #e0e7ff;
  color: #4f46e5;
  box-shadow: 0 2px 8px -2px #6366f133;
  transition: all .16s cubic-bezier(.4,0,.2,1);
  user-select: none;
  border-width: 2px;
  border-style: solid;
  cursor: pointer;
}
.slot-pill input[type="checkbox"] {
  display: none !important;
}
.slot-pill input[type="checkbox"]:checked + span,
.slot-pill.active {
  background: #6366f1 !important;
  color: #fff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 3px 14px -2px #6366f188;
}

.slot-pill.selected.text-xs {
  background:#e5e7ff;
  border-color:#e5e7ff;
  color:#4f46e5;
}

/* Toggle switch semplice */
input.sr-only + div { position:relative; }
input.sr-only + div > span { display:none; }
input.sr-only + div::before{
  content:'';
  position:absolute;
  left:2px; top:2px;
  width:20px; height:20px;
  border-radius:50%;
  background:white;
  transition:transform .2s;
}
input.sr-only:checked + div::before{ transform:translateX(20px); }

.prenota .bottom-nav-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.07);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  z-index: 1002;
}
@media (min-width: 600px) {
  .prenota .bottom-nav-bar {
    max-width: 400px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 20px 20px;
  }
}
.prenota .bottom-nav-bar .cta-btn {
  min-width: 110px;
  padding: 13px 20px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 100px;
  background: var(--brand-color);
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  border: none;
  outline: none;
  transition: background .18s;
}
.prenota .bottom-nav-bar .cta-btn:disabled {
  background: #e6e6e6;
  color: #888 !important;
  cursor: not-allowed;
}
.prenota #help-button {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 82px;
  background: var(--brand-color);
  color: #fff;
  border-radius: 50%;
  padding: 13px;
  z-index: 1003;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  font-size: 28px;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prenota #help-button span.material-icons {
  font-size: 28px;
  margin: 0;
}
/* === MODERN BOTTOM NAVBAR === */
.prenota .modern-bottom-navbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  width: 90vw;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 -6px 24px rgba(30,30,50,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 18px 16px;
  z-index: 100;
  border-radius: 22px 22px 22px 22px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .prenota .modern-bottom-navbar {
    border-radius: 18px 18px 18px 18px;
    width: 98vw;
    min-width: 0;
    max-width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 6px;
    padding-right: 6px;
    bottom: 0;
  }
}

/* Navbar buttons */
.prenota .modern-bottom-navbar .nav-btn {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--brand-color);
  color: #fff !important;
  font-size: 17px;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  padding: 14px 0;
  margin: 0 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background .18s;
  outline: none;
}
.prenota .modern-bottom-navbar .nav-btn:disabled {
  background: #e6e6e6;
  color: #888 !important;
  cursor: not-allowed;
}

.prenota .modern-bottom-navbar .phone-btn {
  background: #242424;
  color: #fff;
  width: 50px;
  min-width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-left: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(30,30,50,0.13);
  font-size: 28px;
  border: none;
  transition: background 0.18s;
}
.prenota .modern-bottom-navbar .phone-btn:active,
.prenota .modern-bottom-navbar .phone-btn:hover {
  background: #111;
}


/* Più spazio sotto per evitare la sovrapposizione */
.prenota .scrollBox {
  padding-bottom: 90px !important;
}

.social-link-box {
  background: #f6f7fa;
  border-radius: 18px;
  padding: 16px 14px 10px 14px;
  margin-top: 15px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(180,180,200,0.05);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Features box: riduci spazio sopra al titolo */
.social-link-box.features-box {
  /* unified spacing handled by .section-card overrides below */
}
.social-link-box.features-box .section-title { margin-top: 0; }

/* Features: toggle e lista extra */
.features-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 2px 0 0 0; /* ancora meno spazio sotto le extra */
  background: transparent; /* eredita stile da .info_button */
}
.features-toggle-btn .material-icons { transition: transform .18s; }
.features-toggle-btn.open .material-icons { transform: rotate(180deg); }

.features-extra {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .35s ease, opacity .25s ease;
}
.features-extra.open {
  max-height: 2000px; /* abbastanza per contenere l'elenco */
  opacity: 1;
  visibility: visible;
}

/* Riduci lo spazio sotto l'ultimo elemento extra */
.features-extra .info_button { margin-bottom: 7px; }
.features-extra .info_button:last-child { margin-bottom: 2px; }

/* Rimosso stile accordion per extra: usiamo lo stesso stile degli info_button */

.section-card {
  background: linear-gradient(150deg, rgba(255,255,255,0.22), rgba(255,255,255,0.06));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 6px 20px rgba(38, 20, 37, 0.08);
  margin: 18px 0;
}
.section-card--tinted { background: linear-gradient(150deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04)); border-color: rgba(255,255,255,0.18); }

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.section-card .section-title { margin-top: 0; }
.section-card .info_buttons {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.section-title::before {
  content: '';
  width: 32px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-gradient);
  box-shadow: 0 8px 18px rgba(var(--page-theme-dark-rgb),0.28);
}
.section-card .info_button,
.section-card .info_button.info_button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.06));
  color: #111827;
  box-shadow: 0 16px 30px rgba(38, 20, 37, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-align: left;
  margin: 0;
}
.section-card .info_button span.material-icons {
  font-size: 20px;
  color: rgba(15, 24, 42, 0.75);
  margin-right: 4px;
}
.section-card .info_button span:not(.material-icons) {
  flex: 1;
  text-align: left;
}
.section-card .info_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(38, 20, 37, 0.16);
}

.bio-teaser { color:#374151; font-size:15px; line-height:1.45; }
.bio-more { color: var(--brand-color); font-weight: 600; font-size: 14px; margin-top: 6px; display:inline-block; }

.features-preview { display: grid; grid-template-columns: 1fr; gap: 8px; }
.features-preview .info_button { display:flex; align-items:flex-start; gap:12px; padding:14px; margin:0; text-align:left; justify-content:flex-start; }

/* Ensure features card uses same top spacing as other cards */
.section-card.social-link-box.features-box {
  padding-top: 16px;
  margin-top: 18px;
}

.glow-title {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 28px);
  margin: 0 0 14px 0;
  text-align: left !important;
  color: #fff;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.15), 0 1px 0 #222;
}

.cta-btn-dark {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 12px;
  padding: 15px;
  border-radius: 20px;
  background: rgba(38,38,38,0.93);
  color: #fff !important;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(10,10,10,0.09);
  border: none;
  cursor: pointer;
  transition: background .16s;
  text-align: left;
}
.cta-btn-dark span.material-icons {
  font-size: 20px;
  color: #fff; /* ensure icons are white on dark buttons */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px; /* reserve same width for all icons */
  line-height: 1;
  margin-right: 0; /* rely on gap for spacing */
}
.cta-btn-dark:last-child { margin-bottom: 0; }
.cta-btn-dark:hover { background: #191919; }

/* Light large CTA variant (same size as dark) */
.cta-btn-light {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 10px; /* spacing between icon and text */
  padding: 15px;
  border-radius: 20px;
  background: #fff;
  color: #1f2937; /* slate-800 */
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(10,10,10,0.04);
  border: 1px solid #e5e7eb; /* light gray border */
  cursor: pointer;
  transition: background .16s, box-shadow .16s;
  text-align: left;
}
.cta-btn-light span { font-size: 16px; }
.cta-btn-light span.material-icons {
  font-size: 20px;
  color: var(--brand-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  min-width: 22px; /* reserve same width for all icons */
  line-height: 1;
  margin-right: 0; /* rely on gap for spacing */
}
.cta-btn-light.info-btn span.material-icons,
.cta-btn-light.contact-btn span.material-icons {
  width: 24px;
  min-width: 24px; /* slightly wider to match visual spacing */
}
.cta-btn-light:hover { background: #f7f7f7; box-shadow: 0 2px 10px rgba(10,10,10,0.06); }
@media (min-width: 768px) and (max-width: 1024px) {
  .section-card .cta-btn-light {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 767px) {
  .section-card .cta-btn-light {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

}
.menu-cta-gradient-box {
  position: relative;
  background: var(--brand-gradient);
  border-radius: 20px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px var(--page-theme-shadow-base-028);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--page-theme-border-secondary);
  overflow: hidden;
}
.menu-cta-gradient-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.2), rgba(255,255,255,0));
  pointer-events: none;
}
.menu-cta-gradient-box .cta-btn-dark {
  background: var(--brand-gradient-hover);
  color: #fff;
  border: 1px solid var(--page-theme-border-secondary);
  margin-bottom: 14px;
  box-shadow: 0 18px 40px var(--page-theme-shadow-base-028);
  transition: background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.menu-cta-gradient-box .cta-btn-dark:hover {
  background: var(--brand-gradient);
  border-color: var(--page-theme-hover-border);
  box-shadow: 0 22px 46px var(--page-theme-shadow-base-035);
  transform: translateY(-2px);
}
.menu-cta-gradient-box .cta-btn-dark:last-child {
  margin-bottom: 0;
}

.menu-cta-gradient-box h1 {
  margin-top: 0!important;
}

@media (max-width: 1024px) {
  .menu-cta-gradient-box h1 {
  margin:0 auto;
  margin-bottom: 20px;
}
}

@media (max-width: 767px) {
  .menu-cta-gradient-box h1 {
  margin-left: 0;
  font-size: 22px;
}

.cta-btn-dark {
  max-width: 100%;
}

.menu-cta-gradient-box {
  padding:15px;
  padding-top: 20px;
}
.summary-item {
  padding:15px!important;
}

.sheet-content {
  padding:15px!important;
}

.sheet-content h2 {
  font-size: 22px!important;
  padding-right: 70px;
}

}

.menu-cta-intro {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 4px;
}

.menu-cta-intro h1 {
  margin-bottom:0!important;
  color: #ffffff;
}

.restaurant-tagline {
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 640px;
}
.menu-cta-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 0px;
  width: 100%;
}

@media (max-width: 1024px) {
  .menu-cta-actions {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }
}
/* Variante con branch: 1° full, 2° sx, 3° dx */
.menu-cta-actions.menu-cta-actions--with-branch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  justify-content: stretch;
  align-content: start;
}

@media (min-width: 1025px) {

  #main_box.restaurant-shell {
    max-width: 800px;
    padding-left: 32px;
    padding-right: 32px;
    padding-bottom: 20px;
  }
  #main_box.restaurant-shell .scrollBox {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
  }
  .menu-cta-gradient-box {
    padding: 36px 40px;
  }
  .menu-cta-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  .menu-cta-actions--with-branch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .menu-cta-actions--with-branch > * {
    grid-column: auto;
  }
  .menu-cta-actions--with-branch > *:nth-of-type(1):nth-last-of-type(n+3) {
    grid-column: 1 / -1;
  }
}

.cta-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  color: #101827;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(38, 20, 37, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.cta-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,0.35), rgba(255,255,255,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 2px 8px rgba(38, 20, 37, 0.1);
}
.cta-card__icon .material-icons {
  font-size: 26px;
  color: #fff;
}
.cta-card.change-branch-btn .material-icons {
  font-size: 34px;
}
.cta-card__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cta-card__label {
  line-height: 1.25;
  color: #ffffff;
}
.cta-card__hint {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}
.cta-card.menu-btn {
  color: #101827;
  background: linear-gradient(150deg, rgba(255,255,255,0.95), rgba(245,246,250,0.85));
  border-color: rgba(255,255,255,0.72);
  box-shadow: 0 26px 52px rgba(15, 24, 42, 0.35), 0 0 0 1px rgba(255,255,255,0.35), inset 0 1px 0 rgba(255,255,255,0.65);
}
.cta-card.menu-btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  background-image: var(--menu-btn-bg, none);
  background-size: cover;
  background-position: center;
  opacity: 0.26;
  filter: grayscale(100%) brightness(1.12);
  z-index: 0;
  transition: opacity 0.25s ease;
}
.cta-card.menu-btn::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: radial-gradient(circle at top right, rgba(var(--page-theme-rgb, 40,40,40), 0.22), transparent 62%);
  z-index: 0;
}
.cta-card.menu-btn .cta-card__icon,
.cta-card.menu-btn .cta-card__copy {
  position: relative;
  z-index: 1;
}
.cta-card.menu-btn .material-icons {
  color: rgba(var(--page-theme-rgb, 30,30,30), 0.85);
}
.cta-card.menu-btn .cta-card__label {
  color: rgba(var(--page-theme-dark-rgb, 20,20,20), 0.92);
}
.cta-card.menu-btn .cta-card__hint {
  color: rgba(var(--page-theme-rgb, 50,50,50), 0.68);
}
.cta-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(38, 20, 37, 0.16);
  background: linear-gradient(150deg, rgba(255,255,255,0.22), rgba(255,255,255,0.08));
  text-decoration: none;
}
.cta-card:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(38, 20, 37, 0.12);
}
@media (min-width: 1025px) {
  body.restaurant-page .hero {
    padding-top: calc(100% * 7 / 14);
  }
  body.restaurant-page #main_box.restaurant-shell .hero {
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
    border-radius: 34px 34px 26px 26px;
  }
  body.restaurant-page #main_box.restaurant-shell .hero-swiper,
  body.restaurant-page #main_box.restaurant-shell .hero-gradient,
  body.restaurant-page #main_box.restaurant-shell .hero .swiper-slide {
    border-radius: inherit;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
  #main_box.restaurant-shell {
    padding: 0 12px 24px !important;
  }
  body.restaurant-page #main_box.restaurant-shell .hero {
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
  }
}
@media (max-width: 767px) {
  #main_box.restaurant-shell {
    padding: 0 10px 20px !important;
  }
  body.restaurant-page #main_box.restaurant-shell .hero {
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
  }
}

.restaurant-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0 24px 0;
}
.summary-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,0.16), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(38, 20, 37, 0.08);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.summary-item .material-icons {
  font-size: 20px;
  color: rgba(15, 24, 42, 0.48);
  margin-top: 2px;
}
.summary-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.summary-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 24, 42, 0.6);
}
.summary-value {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
}
.summary-item--link {
  cursor: pointer;
}
.summary-item--link:hover {
  box-shadow: 0 8px 20px rgba(38, 20, 37, 0.12);
  transform: translateY(-1px);
}
.summary-item--contacts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px;
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 18px rgba(38, 20, 37, 0.1);
}
.summary-item--address {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 18px;
  border-radius: 20px;
  background: linear-gradient(150deg, rgba(255,255,255,0.2), rgba(255,255,255,0.06));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 18px rgba(38, 20, 37, 0.1);
}
.summary-copy--address {
  display: grid;
  gap: 4px;
}
.summary-copy--address .summary-label {
  margin-bottom: 8px;
}
.summary-copy--address .summary-value {
  font-size: 17px;
}
.summary-address-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 18px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), rgba(255,255,255,0)) , var(--page-theme-hover-gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  width: fit-content;
  box-shadow: 0 22px 44px rgba(38, 20, 37, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.summary-address-cta .material-icons {
  font-size: 20px;
  color: #fff;
}
.summary-address-cta:hover {
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.24);
  transform: translateY(-2px);
  text-decoration: none;
}
.summary-item--contacts .summary-head {
  display: none;
}
.contact-tiles {
  display: grid;
  width: 100%;
  gap: 16px;
  grid-template-columns: 1fr;
}
.contact-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(150deg, rgba(255,255,255,0.35), rgba(255,255,255,0.08));
  text-decoration: none;
  color: #0f172a;
  text-align: center;
  box-shadow: 0 20px 48px rgba(38, 20, 37, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.contact-tile .material-icons {
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(var(--page-theme-rgb),0.92), rgba(var(--page-theme-dark-rgb),0.88));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 28px rgba(38,20,37,0.18);
}
.contact-tile__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: rgba(15, 24, 42, 0.55);
  display:block;
}
.contact-tile__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.contact-tile__value {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}
.contact-tile:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.16);
}
@media (min-width: 1025px) {
  .contact-tiles--one {
    grid-template-columns: 1fr;
  }
  .contact-tiles--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-tiles--multi {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}
@media (max-width: 1024px) {
  .contact-tiles {
    grid-template-columns: 1fr;
  }
  .contact-tile {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    justify-content: flex-start;
    text-align: left;
    padding: 18px;
  }
  .contact-tile .material-icons {
    font-size: 24px;
    width: 42px;
    height: 42px;
  }
  .contact-tile__label {
    font-size: 11px;
  }
  .contact-tile__text {
    align-items: flex-start;
  }
}
@media (min-width: 1200px) {
  .summary-item--contacts {
    padding: 26px 24px;
  }
  .summary-item--contacts--with-tiles .contact-tiles.contact-tiles--multi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .summary-item--contacts--with-tiles .contact-tiles.contact-tiles--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .summary-item--contacts--with-tiles .contact-tiles.contact-tiles--one {
    grid-template-columns: 1fr;
  }
  .summary-item--contacts--with-tiles .contact-tile {
    padding: 22px 20px;
  }
  .summary-item--address {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .summary-copy--address {
    gap: 6px;
  }
  .summary-copy--address .summary-value {
    font-size: 18px;
  }
}

.restaurant-layout {
  display: grid;
  gap: 24px;
}
.restaurant-layout--single {
  grid-template-columns: 1fr;
}
.restaurant-main,
.restaurant-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.restaurant-main .section-card,
.restaurant-sidebar .section-card {
  margin: 0;
}
@media (min-width: 1024px) {
  .restaurant-layout {
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 32px;
  }
  .restaurant-layout--single {
    grid-template-columns: 1fr;
  }
  .restaurant-sidebar {
    position: sticky;
    top: 120px;
    align-self: start;
  }
}

/* Switch custom per "Categorie Collassabili" */
.gustify-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 10px;
  user-select: none;
  font-weight: 500;
}
.gustify-switch .switch-cb {
  display: none !important;
}
.gustify-switch .switch-outer {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: background 0.3s;
  vertical-align: middle;
}
.gustify-switch .switch-inner {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.28s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.gustify-switch .switch-cb:checked + .switch-outer {
  background: #6366f1;
}
.gustify-switch .switch-cb:checked + .switch-outer .switch-inner {
  left: 23px;
}

.collapsible-content {
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.34s cubic-bezier(.4,0,.2,1), opacity 0.28s;
  will-change: max-height, opacity;
  pointer-events: none;
}

.collapsible-cat:not(.collapsed) .collapsible-content { 
  opacity: 1;
  pointer-events: auto;
}

.collapsible-cat[data-collapsible="1"] .collapsible-header.with-image,
.collapsible-cat[data-collapsible="1"] .collapsible-header.with-slider {
  min-height: 200px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.few-cats .collapsible-cat[data-collapsible="1"] .collapsible-header.with-image,
.few-cats .collapsible-cat[data-collapsible="1"] .collapsible-header.with-slider {
  min-height: 250px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.collapsible-cat[data-collapsible="1"] .collapsible-header:not(.with-image):not(.with-slider) {
  min-height: auto;
}

/* --- Placeholder blur/scuro/bw + spinner su immagini categoria (preloading) --- */
.dish-header.with-image {
  background-color: #181818 !important;
  background-image: none !important;
  position: relative;
  overflow: hidden;
  min-height: 150px;
  transition: background-image 0.4s, background-color 0.5s;
}
.dish-header.with-image.bg-loaded {
  background-color: #111 !important;
  background-image: var(--hd-bg-image) !important;
  transition: background-image 0.4s, background-color 0.5s;
}
.dish-header .preload-spinner {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 34px; height: 34px;
  border: 4px solid #fff4;
  border-top-color: #6366f1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 11;
  background: transparent;
  box-shadow: 0 2px 16px #0002;
}
.dish-header.with-image.bg-loaded .preload-spinner { opacity: 0; pointer-events: none; transition: opacity 0.4s;}
.dish-header.with-image .dish-header-overlay { opacity: 0; transition: opacity 0.4s;}
.dish-header.with-image.bg-loaded .dish-header-overlay { opacity: 0.6; transition: opacity 0.4s;}
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg);}
}
/* --- Stepper con pallini (step-dot) --- */
.step_nav .step-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eee;
  border: none;
  margin: 0 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: inline-block;
  transition: background 0.16s, box-shadow 0.16s;
  position: relative;
  padding: 0;
  outline: none;
}
.step_nav .step-dot.active {
  background: var(--brand-color, #222);
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}
.step_nav .step-dot:disabled {
  opacity: 0.80;
  cursor: not-allowed;
}
.step_nav .step-dot .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Modal profilo in modalità onboarding */
#profile-modal.onboarding h4,
#profile-modal.onboarding p,
#profile-modal.onboarding input[name="full_name"],
#profile-modal.onboarding input[name="email"],
#profile-modal.onboarding select[name="edit_phone_prefix"],
#profile-modal.onboarding input[name="edit_phone_number"] {
  display: none !important;
}

#profile-modal.onboarding .modal-section:first-of-type {
  margin-top: 0 !important;
}

#profile-modal.onboarding .onboard-info {
  display: block !important;
}

#profile-modal.onboarding .hide-onboarding { display:none !important; }

.phone-btn {
  background-color: var(--brand-color)!important;
}
.dish-header.with-image .collapsible-hint {
  background: rgba(17, 24, 39, 0.85);
  color: #fff;
  border-top-color: rgba(255, 255, 255, 0.28);
}

.dish-header.with-slider .collapsible-hint {
  background: transparent!important;
  color: rgb(255, 255, 255);
    border-top-color: rgba(255, 255, 255, 0.28);
}

.dish-header.with-image .collapsible-hint.is-open {
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
}

.menu-cta-actions.menu-cta-actions--compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

.menu-cta-actions.menu-cta-actions--single {
  grid-template-columns: 1fr;
  width: 100%;
}

.menu-cta-actions.menu-cta-actions--single > .cta-card {
  grid-column: 1 / -1;
}

@media (max-width: 1024px) {
  .menu-cta-actions.menu-cta-actions--compact {
    grid-template-columns: 1fr;
    gap: 18px;
  }
    .restaurant-page .restaurant-gallery{
    overflow-x: hidden;
  }
}




/* Base layout */
.menu-cta-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
}

.menu-cta-actions.menu-cta-actions--with-branch {
  grid-template-columns: 1fr;
}

@media (min-width: 1025px) {
  .menu-cta-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
  .menu-cta-actions.menu-cta-actions--single {
    grid-template-columns: 1fr;
  }
  .menu-cta-actions.menu-cta-actions--with-branch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .menu-cta-actions.menu-cta-actions--with-branch > .cta-card:nth-of-type(1):nth-last-of-type(n+3) {
    grid-column: 1 / -1;
  }
}
.cta-card.menu-btn:hover::before {
  opacity: 0.32;
}
.cta-card.menu-btn:hover {
  background: linear-gradient(155deg, rgba(255, 255, 255, 1), rgba(var(--page-theme-rgb, 60,60,60), 0.28));
  box-shadow: 0 30px 60px rgba(15, 24, 42, 0.4), 0 0 0 1px rgba(var(--page-theme-rgb, 80,80,80), 0.2), inset 0 1px 0 rgba(255,255,255,0.7);
}



@media (min-width: 1025px) {

  body.prenota {
    background: var(--brand-gradient);
  }

.prenota #main_box {
  width: 90%!important;
  max-width: 800px;
  left:50%;
  transform: translateX(-50%);
  margin-left:0;
  background-color: #fff;
}

.menu_page #main_box {
  width: 90%!important;
  max-width: 800px;
  left:50%;
  transform: translateX(-50%);
  margin-left:0;
  background-color: #fff;
}

.prenota .modern-bottom-navbar {
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
}

.restaurant-page {
  padding-bottom: 10px!important;
}



}

/* ===================================
   HOMEPAGE GUSTIFY - RESTAURANT DISCOVERY
   =================================== */

/* Logo at top */
.logo-container {
    text-align: center;
    padding: 40px 20px 20px;
    position: relative;
    z-index: 2;
}

.logo-gustify {
    font-family: 'Unbounded', cursive, sans-serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    margin: 0 0 8px;
    background: linear-gradient(135deg, #4449d9 0%, #5b5ff5 50%, #7c7fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.04em;
    line-height: 1.5;
}

.logo-tagline {
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    font-weight: bold;
    letter-spacing: 0.02em;
}

/* Hero Section with Gradient */
.hero-discover {
    min-height: auto;
    background:
        radial-gradient(circle at 18% 20%, rgba(68, 73, 217, 0.28), transparent 38%),
        radial-gradient(circle at 82% 16%, rgba(91, 95, 245, 0.32), transparent 36%),
        radial-gradient(circle at 22% 84%, rgba(124, 127, 255, 0.25), transparent 34%),
        linear-gradient(180deg, #f0f1ff 0%, #e8eaff 48%, #f3f4ff 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 50px;
    overflow: hidden;
    color: #0f1115;
}

.hero-discover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(80% 80% at 50% 10%, rgba(255, 255, 255, 0.82), transparent 70%);
    pointer-events: none;
    filter: blur(8px);
}

.hero-discover::after {
    content: '';
    position: absolute;
    inset: 20% 8% auto 8%;
    height: 40%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.8) 0%, rgba(247, 247, 247, 0.4) 100%);
    filter: blur(60px);
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    width: 100%;
    max-width: 960px;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.gustify-logo-large { display: none; }

.hero-chip {
    display: none;
}

.chip-dot {
    display: none;
}

.hero-title {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: clamp(2.2rem, 6vw, 3rem);
    color: #0f1115;
    margin: 0;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero-subtitle {
    max-width: 560px;
    font-size: 1rem;
    color: #5b6275;
    margin: 0 auto 8px;
    line-height: 1.5;
}

.cta-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 8px 0 4px;
    flex-wrap: wrap;
}

.cta-stack .cta-primary,
.cta-stack .cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
    cursor: pointer;
    font-family: 'Manrope', sans-serif;
}

.cta-stack .cta-primary {
    background: linear-gradient(135deg, #434C9B 0%, #373f80 100%);
    color: white;
    padding: 14px 22px;
    border-radius: 999px;
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
}

.cta-stack .cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 26px 60px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #434C9B 0%, #373f80 100%);
}

.cta-stack .cta-secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #0f1115;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.1);
}

.cta-stack .cta-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.micro-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.micro-stats span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 14px;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.micro-stats i {
    color: #8b5cf6;
}

/* Preference Card */
.preference-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 28px 26px;
    max-width: 960px;
    margin: 0 auto;
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.12),
        0 8px 24px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border: 1px solid #ebe8e3;
}

.preference-card--glass {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.pill-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(15, 15, 20, 0.06);
    color: #0f1115;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin: 0 0 4px;
}

.preference-card h3 {
    font-family: 'Space Grotesk', 'Manrope', sans-serif;
    font-size: 1.55rem;
    margin: 4px 0 8px;
    color: #0f1115;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.card-subtitle {
    margin: 0;
    color: #5b6275;
    font-size: 1rem;
}

.link-reset {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f2f3f5;
    border-radius: 12px;
    color: #0f1115;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

.prefs-form {
    display: grid;
    gap: 22px;
    width: 100%;
    max-width: 100%;
}

/* Preferences Grid */
.prefs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.pref-checkbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fdfbf8;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pref-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pref-checkbox:hover {
    border-color: #434C9B;
    background: linear-gradient(135deg, rgba(68, 73, 217, 0.08) 0%, rgba(91, 95, 245, 0.04) 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(68, 73, 217, 0.2);
}

.pref-checkbox input:checked ~ .pref-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 2px 8px rgba(68, 73, 217, 0.3));
}

.pref-checkbox input:checked ~ .pref-label {
    color: #434C9B;
    font-weight: 700;
}

.pref-checkbox:has(input:checked) {
    border-color: #434C9B;
    background: linear-gradient(135deg, rgba(68, 73, 217, 0.12) 0%, rgba(91, 95, 245, 0.06) 100%);
    box-shadow: 0 6px 16px rgba(68, 73, 217, 0.24);
}

.pref-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1;
    color: #64748b;
}

.pref-icon i {
    display: block;
    transition: inherit;
}

.pref-checkbox:hover .pref-icon {
    color: #434C9B;
}

.pref-checkbox input:checked ~ .pref-icon {
    color: #434C9B;
}

.pref-label {
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
    color: #32363f;
}

/* City Selection */
.city-section {
    margin-bottom: 14px;
    text-align: left;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.city-section h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #222;
}

.city-section h3 i {
    color: #434C9B;
    margin-right: 8px;
}

.city-autocomplete {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
    max-width: 100%;
}

.city-input {
    flex: 1;
    min-width: 0;
    background-image: none;
    cursor: text;
    box-sizing: border-box;
}

.btn-geo {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid #e8e6df;
    background: #f7f5f2;
    color: #333;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    min-width: 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-geo:hover {
    border-color: #434C9B;
    color: #1f2230;
    background: rgba(139, 92, 246, 0.05);
}

.btn-geo:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 640px) {
    .city-autocomplete {
        flex-direction: column;
        gap: 8px;
    }

    .btn-geo {
        width: 100%;
        box-sizing: border-box;
        min-width: auto;
    }

    .city-input {
        width: 100%;
    }

    .city-section {
        padding: 0;
        margin-bottom: 12px;
    }

    .city-select {
        font-size: 0.95rem;
        padding: 12px 14px;
        padding-right: 36px;
    }
}

.recommended-section {
    margin: 32px 0 60px;
}

.recommended-header {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 12px;
    text-align: center;
}

.recommended-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.recommended-header h2,
.recommended-header h3 {
    font-family: 'Unbounded', 'Manrope', sans-serif;
    letter-spacing: -0.01em;
}

.recommended-header .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0 0 4px;
    font-weight: 700;
}

.recommended-swiper {
    position: relative;
    overflow: visible;
    padding: 32px 64px 80px;
    width: 100%;
    box-sizing: border-box;
}

.recommended-swiper .swiper-wrapper {
    align-items: stretch;
    overflow: visible;
    padding-bottom:100px;
}

.recommended-swiper .swiper-slide {
    height: auto;
    width: clamp(260px, 32vw, 360px);
    overflow: visible;
    padding: 12px;
}

.recommended-swiper .restaurant-card.recommended-slide {
    height: 100%;
    border-radius: 26px;
    border: 1px solid #e3e8f7;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7fd 70%, #f9fbff 100%);
    box-shadow:
        0 30px 90px rgba(15, 23, 42, 0.16),
        0 14px 38px rgba(149, 156, 180, 0.16);
    margin-bottom: 10px;
}

.recommended-swiper .card-cover {
    height: 198px;
    border-bottom: none;
    border-radius: 26px 26px 0 0;
    overflow: hidden;
    background-color: #eef1f7;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.12) inset;
    position: relative;
}

.recommended-swiper .match-badge {
    display: none;
}

.recommended-swiper .card-body {
    padding: 18px 18px 22px;
    color: #1f2433;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, #f7f9ff 100%);
    border-radius: 0 0 24px 24px;
}

.recommended-swiper .restaurant-name {
    font-size: 1.05rem;
    font-family: 'Unbounded', 'Manrope', sans-serif;
    color: #0f121d;
    letter-spacing: 0.01em;
}

.recommended-swiper .restaurant-location {
    color: #5d657a;
}

.recommended-swiper .btn-view-menu {
    width: auto;
    margin-top: 12px;
    background: linear-gradient(135deg, #4c5ad1 0%, #7586ff 100%);
    box-shadow: 0 16px 38px rgba(78, 93, 209, 0.28);
    color: #ffffff;
    border-radius: 999px;
    padding: 12px 20px;
}

.recommended-pagination {
    display: none !important;
}

.recommended-nav .swiper-button-prev,
.recommended-nav .swiper-button-next {
    color: #0f1118;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.18);
    border: 1px solid #e3e8f7;
    top: 36%;
    transform: translateY(-50%);
    left: 32px;
    opacity: 0.92;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.recommended-nav .swiper-button-next {
    right: 32px;
    left: auto;
}

.recommended-nav .swiper-button-prev:hover,
.recommended-nav .swiper-button-next:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.24);
    opacity: 1;
}

.recommended-nav .swiper-button-prev:after,
.recommended-nav .swiper-button-next:after {
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .recommended-nav .swiper-button-prev,
    .recommended-nav .swiper-button-next {
        top: 44%;
    }
}

@media (max-width: 600px) {
    .recommended-swiper {
        padding-right: 8px;
    }

    .recommended-nav .swiper-button-prev,
    .recommended-nav .swiper-button-next {
        display: none;
    }
}

.homepage-modern .restaurants-section {
    padding-bottom: 130px;
}

.city-select {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #e8e6df;
    border-radius: 14px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    box-sizing: border-box;
}

.city-select:hover {
    border-color: #434C9B;
    background-color: rgba(139, 92, 246, 0.03);
}

.city-select:focus {
    outline: none;
    border-color: #434C9B;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* Allergen Section */
.allergen-section {
    margin-bottom: 14px;
    text-align: left;
}

.allergen-section h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #333;
}

.allergen-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.allergen-pill {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.allergen-pill input[type="checkbox"] {
    display: none;
}

.allergen-pill span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    background: white;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    position: relative;
    overflow: hidden;
}

/* Ripple effect */
.allergen-pill span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.allergen-pill:active span::before {
    width: 200px;
    height: 200px;
}

.allergen-pill:hover span {
    border-color: #434C9B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.allergen-pill input:checked + span {
    background: linear-gradient(135deg, #434C9B 0%, #353c7c 100%);
    color: white;
    border-color: #434C9B;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.allergen-pill:active span {
    transform: translateY(0) scale(0.96);
}

.pill-icon {
    font-size: 1.1rem;
    color: #434C9B;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-right: 6px;
    position: relative;
    z-index: 1;
}

.allergen-pill input:checked + span .pill-icon {
    color: white;
    transform: scale(1.2) rotate(10deg);
    animation: iconPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes iconPop {
    0% { transform: scale(0.8) rotate(0deg); }
    50% { transform: scale(1.3) rotate(15deg); }
    100% { transform: scale(1.2) rotate(10deg); }
}

.allergen-pill:hover .pill-icon {
    transform: scale(1.15) rotate(5deg);
}

.allergen-pill input:checked + span {
    animation: pillSelect 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pillSelect {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.cuisine-pill .pill-text {
    font-weight: 700;
}

.modern-input {
    background: rgba(255, 255, 255, 0.75);
    padding: 14px;
    border-radius: 18px;
    border: 1px solid #ece7df;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.input-label {
    font-weight: 800;
    color: #0f1115;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.input-label i {
    color: #434C9B;
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.muted-hint {
    color: #6b7280;
    font-size: 0.95rem;
}

.hint-center { text-align: center; margin-top: 6px; }

.prefs-block {
    padding-top: 4px;
    border-top: 1px solid #f0efec;
}

/* Primary Button */
.btn-primary {
    display: block;
    width: 100%;
    padding: 18px 32px;
    background: linear-gradient(135deg, #434C9B 0%, #3d458d 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 16px 40px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 22px 50px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #434C9B 0%, #535ebf 100%);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
}

.form-footer {
    margin-top: 8px;
}

/* Restaurant Discovery Section */
.homepage-modern .restaurants-section {
    background: linear-gradient(180deg, #f7f5f2 0%, #ffffff 30%, #f5f7fb 100%);
    padding: 60px 0px 110px;
    min-height: 100vh;
}

.homepage-modern .restaurants-section .container {
    max-width: 100%;
    margin: 0 auto;
}

/* Search Tags */
.homepage-modern .search-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    padding: 0 4px;
}

.homepage-modern .search-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b5563;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.homepage-modern .search-tag i {
    color: #9ca3af;
    font-size: 0.85rem;
}

.homepage-modern .search-tag--highlight {
    background: linear-gradient(135deg, #3a4288 0%, #434C9B 100%);
    color: white;
    border-color: #8b5cf6;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.homepage-modern .search-tag--highlight i {
    color: white;
}

.homepage-modern .search-tag--reset {
    background: #fee;
    border-color: #fcc;
    color: #c33;
    cursor: pointer;
    text-decoration: none;
}

.homepage-modern .search-tag--reset:hover {
    background: #fdd;
    transform: scale(1.05);
}

.homepage-modern .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.homepage-modern .section-header h2 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: #0f1115;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-family: 'Unbounded', 'Space Grotesk', 'Manrope', sans-serif;
}

.homepage-modern .match-count {
    font-size: 1.05rem;
    color: #4b5563;
}

/* Restaurant Cards Grid */
.homepage-modern .restaurants-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 42px;
    padding:40px;
}

@media (min-width: 768px) {
    .homepage-modern .restaurants-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .homepage-modern .restaurants-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1440px) {
    .homepage-modern .restaurants-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Restaurant Card */
.homepage-modern .restaurant-card {
    background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 70%, #f9fbff 100%);
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 34px 90px rgba(15, 23, 42, 0.12),
        0 16px 36px rgba(149, 156, 180, 0.14);
    transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid #e8edf7;
}

.homepage-modern .restaurant-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 34px 90px rgba(15, 23, 42, 0.16),
        0 14px 32px rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Card Cover */
.homepage-modern .card-cover {
    height: 190px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #eef1f7;
    border-bottom: 1px solid #edf1f9;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}


.homepage-modern .match-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4);
}

.homepage-modern .match-badge i {
    margin-right: 5px;
}

/* Card Body */
.homepage-modern .card-body {
    padding: 22px;
    padding-bottom: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, #ffffff 100%);
}

.homepage-modern .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.homepage-modern .restaurant-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.homepage-modern .restaurant-name {
    font-size: 1.26rem;
    font-weight: 800;
    color: #0f1115;
    margin-bottom: 5px;
    line-height: 1.2;
    font-family: 'Unbounded', 'Manrope', sans-serif;
}

.homepage-modern .restaurant-location {
    font-size: 0.92rem;
    color: #5b6275;
    display: flex;
    align-items: center;
    gap: 5px;
}

.homepage-modern .restaurant-location i {
    font-size: 0.85rem;
}

/* Card Metadata */
.homepage-modern .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.homepage-modern .cuisine-type {
    display: inline-block;
    padding: 6px 14px;
    background: #f5f4f2;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #424953;
    font-weight: 500;
}

.homepage-modern .price-range {
    font-size: 1.02rem;
    color: #0f1115;
    font-weight: 700;
}

/* Preview Dishes */
.homepage-modern .preview-dishes {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.homepage-modern .preview-dishes h4 {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 12px;
    font-weight: 500;
}

.homepage-modern .dish-thumbnails {
    display: flex;
    gap: 10px;
}

.homepage-modern .dish-thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.homepage-modern .dish-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* View Menu Button */
.homepage-modern .btn-view-menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 180px;
    text-align: center;
    background: linear-gradient(135deg, #0f1117 0%, #1c2233 100%);
    color: white;
    padding: 13px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    margin-top: 18px;
    transition: all 0.28s ease;
    box-sizing: border-box;
    box-shadow: 0 16px 38px rgba(15, 17, 26, 0.25);
}

.homepage-modern .btn-view-menu:hover {
    background: linear-gradient(135deg, #161923 0%, #222a3d 100%);
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(15, 17, 26, 0.3);
}

/* Minimal CTA for recommended dishes */
.homepage-modern .recommended-swiper .btn-view-menu {
    background: transparent;
    box-shadow: none;
    color: #38405a;
    border-radius: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(56, 64, 90, 0.16);
    min-width: 0;
    width: fit-content;
    width: -moz-fit-content;
    width: -webkit-fit-content;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 12px;
}

.homepage-modern .recommended-swiper .btn-view-menu:hover {
    background: rgba(56, 64, 90, 0.05);
    box-shadow: none;
    transform: translateY(-1px);
}

/* Homepage Footer */
.homepage-modern .homepage-footer {
    background: #222;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.homepage-modern .homepage-footer p {
    margin: 8px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* No Results Message */
.homepage-modern .no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.homepage-modern .no-results h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #444;
}

.homepage-modern .no-results p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.homepage-modern .btn-reset-filters {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.3);
    border: 1px solid #8b5cf6;
}

.homepage-modern .btn-reset-filters:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(139, 92, 246, 0.4);
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .hero-discover {
        padding: 70px 18px 50px;
    }

    .cta-stack {
        width: 100%;
        flex-direction: column;
    }

    .cta-stack .cta-primary,
    .cta-stack .cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .link-reset {
        width: 100%;
        justify-content: center;
    }

    .micro-stats span {
        width: 100%;
        justify-content: center;
    }

    .preference-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .prefs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .pref-checkbox {
        padding: 15px 8px;
        min-height: 90px;
    }

    .pref-icon {
        font-size: 1.8rem;
    }

    .pref-label {
        font-size: 0.8rem;
    }

    .homepage-modern .btn-primary {
        min-height: 54px;
        font-size: 1rem;
    }

    .homepage-modern .restaurants-section {
        padding: 50px 15px;
    }

    .homepage-modern .card-cover {
        height: 180px;
    }

    .homepage-modern .restaurant-name {
        font-size: 1.1rem;
    }

    .homepage-modern .dish-thumbnails {
        gap: 8px;
    }

    .homepage-modern .dish-thumb {
        width: 60px;
        height: 60px;
    }
}

/* Tablet Optimizations */
@media (min-width: 768px) and (max-width: 1023px) {
    .prefs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .pref-checkbox {
        min-height: 100px;
    }

    .homepage-modern .btn-primary {
        min-height: 56px;
    }

    .restaurant-card:hover {
        transform: none;
    }
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(120, 40, 200, 0.2);
    border-top-color: #7828c8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
