/* ========================================================
   MR. A - IL BOSS DELLE RICETTE
   Foglio di Stile Ufficiale - Dark Gourmand & Luxury
   ======================================================== */

:root {
  color-scheme: dark;

  /* Palette Colori */
  --bg-primary: #0e0e11;
  --bg-secondary: #16161b;
  --bg-card: #1c1c24;
  --bg-card-hover: #24242e;
  --bg-glass: rgba(22, 22, 27, 0.85);

  --gold-primary: #E5A93C;
  --gold-light: #F3C973;
  --gold-dark: #B87B1A;
  --gold-glow: rgba(229, 169, 60, 0.25);

  --red-accent: #E04738;
  --red-glow: rgba(224, 71, 56, 0.25);

  --green-accent: #10B981;

  --text-main: #FFFFFF;
  --text-secondary: #C4C4D0;
  --text-muted: #848496;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(229, 169, 60, 0.3);
  --border-card: rgba(255, 255, 255, 0.05);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 30px rgba(229, 169, 60, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- TOP HERITAGE & INTERNATIONAL ACCENT BAR ---------- */
.top-heritage-bar {
  background: linear-gradient(90deg, #0a0f0d 0%, #15151c 25%, #18151b 75%, #140d0f 100%);
  border-bottom: 1px solid rgba(229, 169, 60, 0.28);
  position: relative;
  z-index: 60;
  padding: 0.65rem 1.4rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}

.heritage-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.heritage-content {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  line-height: 1.4;
}

/* Bandiera Italiana Sventolante Reale ad Alta Definizione */
.heritage-flag-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  perspective: 600px;
}

.heritage-flag-img {
  height: 48px;
  width: auto;
  max-width: 95px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 14px rgba(0, 146, 70, 0.3));
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
  animation: gentleFlagWave 4.5s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes gentleFlagWave {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-2px) rotate(1.8deg) scale(1.03);
  }
}

.top-heritage-bar:hover .heritage-flag-img {
  transform: scale(1.1) rotate(2.5deg);
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 20px rgba(229, 169, 60, 0.45));
}

.heritage-title {
  color: #FFFFFF;
  font-weight: 800;
  letter-spacing: 0.025em;
  font-size: 1.05rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
  background: linear-gradient(135deg, #FFFFFF 30%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.heritage-divider {
  color: var(--gold-primary);
  font-weight: 800;
  opacity: 0.85;
  font-size: 0.9rem;
}

.heritage-subtitle {
  color: #D6D8E1;
  font-weight: 400;
  letter-spacing: 0.015em;
  font-size: 0.92rem;
}

.heritage-globe {
  font-size: 1.1rem;
  line-height: 1;
  display: inline-block;
  opacity: 0.95;
}

.heritage-badge-wrap {
  display: flex;
  align-items: center;
}

.heritage-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.85rem;
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.38);
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transition: all var(--transition-fast);
}

.heritage-badge:hover {
  background: rgba(229, 169, 60, 0.22);
  border-color: var(--gold-primary);
  box-shadow: 0 0 14px var(--gold-glow);
}

/* Ottimizzazione Mobile (< 768px) */
@media (max-width: 768px) {
  .top-heritage-bar {
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
  }
  
  .heritage-container {
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
  }

  .heritage-content {
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.84rem;
  }

  .heritage-flag-img {
    height: 38px;
    max-width: 75px;
  }

  .heritage-title {
    font-size: 0.92rem;
  }

  .heritage-subtitle {
    font-size: 0.8rem;
  }

  .heritage-badge-wrap {
    display: none;
  }
}

/* ---------- HEADER & BRAND ---------- */
.app-header {
  background: linear-gradient(180deg, rgba(22, 22, 27, 0.95) 0%, rgba(14, 14, 17, 0.95) 100%);
  border-bottom: 1px solid var(--border-gold);
  padding: 2.2rem 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 50;
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.brand-wrap {
  flex: 1;
  min-width: 300px;
}

.brand-badge {
  display: inline-block;
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.brand-header-flex {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-avatar-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid var(--gold-primary);
  box-shadow: 0 0 20px rgba(229, 169, 60, 0.45), 0 4px 15px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.brand-avatar-img:hover {
  transform: scale(1.06) rotate(2deg);
  box-shadow: 0 0 28px rgba(229, 169, 60, 0.65), 0 6px 20px rgba(0, 0, 0, 0.8);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.brand-title .accent {
  color: var(--gold-primary);
  font-style: italic;
  font-weight: 600;
}

.brand-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
}

.brand-subtitle em {
  color: var(--gold-light);
  font-style: normal;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-links {
  display: flex;
  gap: 8px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.social-btn.facebook:hover {
  background: #1877F2;
  color: #FFFFFF;
  border-color: #1877F2;
  transform: translateY(-2px);
}

.social-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #FFFFFF;
  border-color: transparent;
  transform: translateY(-2px);
}

.header-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.header-action-btn svg {
  width: 18px;
  height: 18px;
}

.header-action-btn.favorites-btn {
  background: rgba(224, 71, 56, 0.15);
  color: #FFA59C;
  border: 1px solid rgba(224, 71, 56, 0.3);
}

.header-action-btn.favorites-btn:hover {
  background: var(--red-accent);
  color: #FFFFFF;
  border-color: var(--red-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.header-action-btn.follow-cta-btn {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.25), rgba(224, 71, 56, 0.2));
  color: var(--gold-light);
  border: 1px solid var(--border-gold);
  position: relative;
  box-shadow: 0 2px 10px rgba(229, 169, 60, 0.2);
}

.header-action-btn.follow-cta-btn:hover {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #0E0E11;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.4);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.header-action-btn.add-btn {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #0E0E11;
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.3);
}

.header-action-btn.add-btn:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 169, 60, 0.5);
}

/* ---------- SEARCH & FILTERS SECTION ---------- */
.search-filter-section {
  padding: 2.2rem 0 1.2rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.search-bar-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 1.2rem;
}

.search-bar-wrap .search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  color: var(--gold-primary);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 16px 50px 16px 56px;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--text-main);
  transition: var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-input:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: #22222c;
  box-shadow: 0 0 20px var(--gold-glow);
}

.search-clear-btn {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  display: none;
  width: 32px;
  height: 32px;
  line-height: 1;
  transition: color var(--transition-fast);
}

.search-clear-btn:hover {
  color: var(--gold-light);
}

.category-chips-wrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-gold) transparent;
}

.category-chips-wrap::-webkit-scrollbar {
  height: 4px;
}
.category-chips-wrap::-webkit-scrollbar-thumb {
  background: var(--border-gold);
  border-radius: 4px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.chip-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-gold);
  transform: translateY(-1px);
}

.chip-btn.active {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.25), rgba(229, 169, 60, 0.1));
  border-color: var(--gold-primary);
  color: var(--gold-light);
  font-weight: 600;
  box-shadow: 0 2px 10px var(--gold-glow);
}

.chip-icon {
  font-size: 1.1rem;
}

.secondary-filters-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 1rem;
  flex-wrap: wrap;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}

.filter-select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-select:focus {
  outline: none;
  border-color: var(--gold-primary);
}

.filter-select option {
  background-color: var(--bg-secondary);
  color: var(--text-main);
}

.results-badge {
  margin-left: auto;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.results-badge strong {
  color: var(--gold-light);
}

/* ---------- BANNER COMMUNITY SOCIAL (LIKE & FOLLOW) ---------- */
.social-community-section {
  padding: 1.8rem 0 0.8rem;
  background: var(--bg-primary);
}

.social-community-card {
  background: linear-gradient(135deg, rgba(28, 28, 36, 0.95) 0%, rgba(22, 22, 27, 0.98) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--gold-glow);
  flex-wrap: wrap;
}

.community-left {
  flex: 1;
  min-width: 320px;
}

.community-author-flex {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0.8rem;
}

.community-avatar-thumb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 16px rgba(229, 169, 60, 0.4);
  object-fit: cover;
  flex-shrink: 0;
}

.community-badge {
  display: inline-block;
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.community-title {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.community-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.community-buttons-wrap {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-action-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
  min-width: 250px;
}

.social-action-card:hover {
  transform: translateY(-3px);
}

.social-action-card.fb-card {
  border-color: rgba(24, 119, 242, 0.4);
}

.social-action-card.fb-card:hover {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.15), rgba(24, 119, 242, 0.05));
  border-color: #1877F2;
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.social-action-card.ig-card {
  border-color: rgba(225, 48, 108, 0.4);
}

.social-action-card.ig-card:hover {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.15), rgba(225, 48, 108, 0.05));
  border-color: #E1306C;
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

.social-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}

.social-action-icon.fb-icon {
  background: #1877F2;
}

.social-action-icon.ig-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-action-icon svg {
  width: 22px;
  height: 22px;
}

.social-action-info {
  display: flex;
  flex-direction: column;
}

.social-action-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.social-action-cta {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.social-action-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  color: var(--gold-light);
  transition: transform var(--transition-fast);
}

.social-action-card:hover .social-action-arrow {
  transform: translateX(4px);
}

/* ---------- MAIN CONTENT & GRID ---------- */
.main-content {
  padding: 3rem 0 5rem;
  min-height: 50vh;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 28px;
}

/* ---------- RECIPE CARD ---------- */
.recipe-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}

.recipe-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow);
}

.card-media {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #111;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.recipe-card:hover .card-img {
  transform: scale(1.08);
}

.card-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14, 14, 17, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.card-fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(14, 14, 17, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.card-fav-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-fav-btn:hover {
  transform: scale(1.15);
  color: var(--red-accent);
}

.card-fav-btn.active {
  color: var(--red-accent);
  background: rgba(224, 71, 56, 0.2);
  border-color: var(--red-accent);
}

.card-fav-btn.active svg {
  fill: currentColor;
}

/* Watermark Trasparente Ufficiale Mr. A sulla foto del piatto */
.card-watermark-overlay {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 76px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.88;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.75));
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.recipe-card:hover .card-watermark-overlay {
  opacity: 1;
  transform: scale(1.06);
}

.card-watermark-overlay img {
  width: 100%;
  height: auto;
  display: block;
}

.card-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--gold-primary);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  transition: color var(--transition-fast);
}

.recipe-card:hover .card-title {
  color: var(--gold-light);
}

.card-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-boss-badge {
  background: linear-gradient(90deg, rgba(229, 169, 60, 0.12) 0%, rgba(229, 169, 60, 0.03) 100%);
  border-left: 3px solid var(--gold-primary);
  padding: 8px 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold-primary);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.card-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.recipe-card:hover .card-btn {
  color: var(--gold-light);
}

.recipe-card:hover .card-btn svg {
  transform: translateX(4px);
}

/* ---------- NO RESULTS STATE ---------- */
.no-results {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px dashed var(--border-gold);
  max-width: 600px;
  margin: 2rem auto;
}

.no-results.hidden {
  display: none;
}

.no-results-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.no-results h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.no-results p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.reset-btn {
  background: var(--gold-primary);
  color: #0E0E11;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.reset-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

/* ---------- MODAL BASE ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-dialog {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  z-index: 2;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(14, 14, 17, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--gold-primary);
  color: #0E0E11;
  transform: rotate(90deg);
}

/* ---------- RECIPE DETAIL SHEET (INSIDE MODAL) ---------- */
.detail-hero {
  position: relative;
  width: 100%;
  height: 380px;
  background: #111;
  overflow: hidden;
}

.detail-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(22, 22, 27, 0.95) 90%, var(--bg-secondary) 100%);
}

.detail-watermark-overlay {
  position: absolute;
  top: 20px;
  right: 75px;
  width: 110px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.90;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.85));
}

.detail-watermark-overlay img {
  width: 100%;
  height: auto;
  display: block;
}

.detail-hero-content {
  position: absolute;
  bottom: 2rem;
  left: 2.5rem;
  right: 2.5rem;
}

.detail-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.detail-category-badge {
  background: var(--gold-primary);
  color: #0E0E11;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 0.8rem;
}

.detail-meta-pills {
  display: flex;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.detail-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.detail-pill svg {
  color: var(--gold-primary);
  width: 16px;
  height: 16px;
}

.detail-body {
  padding: 2.5rem;
}

/* Servings Multiplier Tool */
.servings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.6rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.servings-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.servings-controller {
  display: flex;
  align-items: center;
  gap: 8px;
}

.servings-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.servings-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--gold-primary);
}

.servings-btn.active {
  background: var(--gold-primary);
  color: #0E0E11;
  border-color: var(--gold-primary);
}

/* Quick Actions in Detail (Copy, Print, Timer) */
.detail-actions-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
}

.detail-action-btn:hover {
  background: var(--bg-card);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.detail-action-btn svg {
  width: 16px;
  height: 16px;
  color: var(--gold-primary);
}

/* Interactive Cooking Timer */
.cooking-timer-box {
  background: linear-gradient(135deg, rgba(22, 22, 27, 0.9), rgba(28, 28, 36, 0.95));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.timer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.timer-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(229, 169, 60, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
}

.timer-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.timer-display {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.timer-controls {
  display: flex;
  gap: 10px;
}

.timer-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: var(--transition-fast);
}

.timer-btn.start {
  background: var(--green-accent);
  color: #FFFFFF;
}

.timer-btn.pause {
  background: var(--gold-primary);
  color: #0E0E11;
}

.timer-btn.reset {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

/* Two-column layout for Ingredients and Steps */
.recipe-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Ingredients List Checkable */
.ingredients-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ingredient-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  user-select: none;
}

.ingredient-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(229, 169, 60, 0.2);
}

.ingredient-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-primary);
  cursor: pointer;
}

.ingredient-text {
  font-size: 0.95rem;
  color: var(--text-main);
  flex: 1;
}

.ingredient-item.checked {
  opacity: 0.55;
  background: rgba(255, 255, 255, 0.02);
}

.ingredient-item.checked .ingredient-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Steps List */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: var(--transition-fast);
}

.step-item:hover {
  border-color: rgba(229, 169, 60, 0.25);
  background: var(--bg-card-hover);
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-body {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* Il Segreto del Boss Highlight Box */
.boss-secret-container {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.15) 0%, rgba(22, 22, 27, 0.95) 100%);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(229, 169, 60, 0.15);
  position: relative;
  overflow: hidden;
}

.boss-secret-container::before {
  content: 'IL TOCCO DEL MAESTRO';
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  opacity: 0.6;
}

.boss-secret-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1rem;
}

.boss-secret-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 16px rgba(229, 169, 60, 0.45);
  object-fit: cover;
  flex-shrink: 0;
}

.boss-secret-chef-badge {
  display: block;
  font-size: 0.75rem;
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

.boss-secret-icon {
  font-size: 1.8rem;
}

.boss-secret-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gold-light);
}

.boss-secret-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  font-weight: 400;
}

/* Box Social Follow integrato nella scheda ricetta */
.recipe-social-follow-box {
  background: linear-gradient(135deg, rgba(28, 28, 36, 0.95) 0%, rgba(18, 18, 22, 0.98) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.recipe-social-left {
  flex: 1;
  min-width: 260px;
}

.recipe-social-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid var(--border-gold);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0.4rem;
  letter-spacing: 1px;
}

.recipe-social-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.recipe-social-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.recipe-social-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.recipe-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
}

.recipe-social-btn.fb {
  background: #1877F2;
  color: #FFFFFF;
}

.recipe-social-btn.fb:hover {
  background: #145dbf;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.recipe-social-btn.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #FFFFFF;
}

.recipe-social-btn.ig:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

.recipe-social-btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- FAVORITES DRAWER ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}

.drawer-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
}

.drawer.active .drawer-content {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.8rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-main);
}

.drawer-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.drawer-close-btn:hover {
  color: var(--gold-light);
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fav-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  align-items: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.fav-item:hover {
  border-color: var(--border-gold);
  background: var(--bg-card-hover);
}

.fav-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.fav-info {
  flex: 1;
}

.fav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.fav-cat {
  font-size: 0.75rem;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.fav-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  transition: color var(--transition-fast);
}

.fav-remove-btn:hover {
  color: var(--red-accent);
}

/* ---------- ADD RECIPE FORM MODAL ---------- */
.modal-dialog-form {
  max-width: 760px;
  padding: 2.5rem;
}

.form-header {
  margin-bottom: 1.8rem;
}

.form-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--gold-light);
  margin-bottom: 0.4rem;
}

.form-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.recipe-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.form-row-2 {
  grid-template-columns: 1fr 1fr;
}

.form-row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-field label.gold-label {
  color: var(--gold-light);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: var(--transition-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  background: #202028;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 1.5rem;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #0E0E11;
  padding: 10px 26px;
  border-radius: var(--radius-full);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  transform: translateY(-2px);
}

/* ---------- MODALE SOCIAL COMMUNITY & WIDGET META ---------- */
.modal-dialog-social {
  max-width: 820px;
  padding: 2.5rem;
  background: linear-gradient(180deg, #1C1C24 0%, #141418 100%);
  border: 1px solid var(--border-gold);
}

.follow-modal-header {
  text-align: center;
  margin-bottom: 2.2rem;
}

.follow-modal-header .brand-badge {
  display: inline-block;
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
}

.follow-modal-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  box-shadow: 0 0 25px rgba(229, 169, 60, 0.5), 0 4px 15px rgba(0, 0, 0, 0.7);
  margin: 0 auto 1.2rem;
  display: block;
  object-fit: cover;
}

.follow-modal-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.follow-modal-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.55;
}

.follow-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}

.follow-channel-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.follow-channel-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.follow-channel-box.fb-box {
  border-top: 3px solid #1877F2;
}

.follow-channel-box.ig-box {
  border-top: 3px solid #E1306C;
}

.channel-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.channel-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  flex-shrink: 0;
}

.channel-icon-circle.fb {
  background: #1877F2;
}

.channel-icon-circle.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.channel-icon-circle svg {
  width: 22px;
  height: 22px;
}

.channel-top h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.channel-top p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-channel-direct {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: 1.2rem;
}

.btn-channel-direct.fb {
  background: #1877F2;
  color: #FFFFFF;
}

.btn-channel-direct.fb:hover {
  background: #1565C0;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.4);
}

.btn-channel-direct.ig {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #FFFFFF;
  margin-top: auto;
  margin-bottom: 0;
}

.btn-channel-direct.ig:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(225, 48, 108, 0.4);
}

/* Contenitore Widget Facebook SDK */
.fb-widget-container {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-md);
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

/* Card Anteprima Instagram */
.ig-profile-preview {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
  flex: 1;
}

.ig-preview-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFA59C;
  background: rgba(225, 48, 108, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 0.6rem;
}

.ig-preview-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ---------- SEZIONE MONETIZZAZIONE & ATTREZZATURA DEL BOSS ---------- */
.monetization-section {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(22, 22, 27, 0.98) 100%);
  border-top: 1px solid var(--border-subtle);
}

.monetization-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.8rem;
}

.monetization-badge {
  display: inline-block;
  background: rgba(229, 169, 60, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.monetization-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.monetization-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.monetization-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.gear-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-medium);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.gear-product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 35px rgba(229, 169, 60, 0.15);
}

.gear-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14, 14, 17, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  z-index: 2;
  text-transform: uppercase;
}

.gear-img-wrap {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.gear-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gear-product-card:hover .gear-img-wrap img {
  transform: scale(1.06);
}

.gear-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gear-card-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.gear-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.4rem;
  flex: 1;
}

.gear-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gear-price-hint {
  font-size: 0.78rem;
  color: var(--gold-light);
  font-weight: 600;
}

.gear-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #0E0E11;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 2px 10px rgba(229, 169, 60, 0.25);
}

.gear-cta-btn:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.45);
}

/* Slot Banner Google AdSense */
.sponsor-slot-container {
  background: rgba(14, 14, 17, 0.7);
  border: 1px dashed var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.sponsor-disclaimer {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
}

.sponsor-mock-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sponsor-icon {
  font-size: 2.2rem;
  color: var(--gold-primary);
}

.sponsor-info {
  text-align: left;
}

.sponsor-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.sponsor-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

/* ---------- MODALE STATISTICHE & CLIC ANALYTICS ---------- */
.modal-dialog-stats {
  max-width: 860px;
  padding: 2.5rem;
  background: linear-gradient(180deg, #1A1A22 0%, #121216 100%);
  border: 1px solid var(--border-gold);
}

.stats-header {
  text-align: center;
  margin-bottom: 2rem;
}

.stats-header h2 {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  color: var(--text-main);
  margin: 0.4rem 0 0.5rem;
}

.stats-header p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  max-width: 620px;
  margin: 0 auto;
}

.stats-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 2rem;
}

.stats-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem 1rem;
  text-align: center;
  transition: var(--transition-fast);
}

.stats-metric-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.metric-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stats-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stats-subcard {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}

.stats-subcard h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stats-ranked-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stats-ranked-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.stats-ranked-item .name {
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.stats-ranked-item .count {
  font-weight: 700;
  color: var(--gold-primary);
  background: rgba(229, 169, 60, 0.15);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
}

.stats-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.btn-ga4-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1877F2;
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-ga4-link:hover {
  background: #145dbf;
  transform: translateY(-2px);
}

.btn-ga4-link svg {
  width: 18px;
  height: 18px;
}

.btn-reset-stats {
  background: transparent;
  border: 1px solid rgba(224, 71, 56, 0.4);
  color: #FFA59C;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-reset-stats:hover {
  background: rgba(224, 71, 56, 0.15);
  border-color: var(--red-accent);
}

/* Pulsante Statistiche Footer */
.footer-actions-row {
  margin-bottom: 1.2rem;
}

.footer-stats-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.footer-stats-btn:hover {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.2), rgba(229, 169, 60, 0.05));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.2);
}

.footer-stats-btn svg {
  width: 16px;
  height: 16px;
  color: var(--gold-primary);
}

/* ---------- BARRA DI NAVIGAZIONE MOBILE (TOUCH-FIRST PWA) ---------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(18, 18, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-gold);
  z-index: 990;
  align-items: center;
  justify-content: space-around;
  padding: 4px 8px;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6);
}

.mobile-nav-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 58px;
  height: 52px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  padding: 4px;
}

.mobile-nav-btn .mob-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-nav-btn .mob-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.mobile-nav-btn.active,
.mobile-nav-btn:hover {
  color: var(--gold-light);
}

/* ---------- FOOTER ---------- */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  padding: 2.5rem 0;
  text-align: center;
}

.footer-copy {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.footer-copy strong {
  color: var(--gold-primary);
}

.footer-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- RESPONSIVE DESIGN (PC WIDESCREEN & MOBILE) ---------- */
@media (max-width: 992px) {
  .recipe-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .recipes-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .brand-title {
    font-size: 1.9rem;
  }
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .form-row, .form-row-2, .form-row-3 {
    grid-template-columns: 1fr;
  }
  .detail-hero {
    height: 280px;
  }
  .detail-hero-content {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
  }
  .detail-title {
    font-size: 1.6rem;
  }
  .detail-body {
    padding: 1.5rem;
  }
  .servings-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .modal {
    padding: 0;
  }
  .modal-dialog {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: none;
  }
  .modal-dialog-social {
    padding: 1.5rem;
  }
  .follow-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  /* Banner Social ultra-compatto su Smartphone */
  .social-community-section {
    padding: 0.4rem 0 !important;
  }
  .social-community-card {
    padding: 0.65rem 0.85rem !important;
    gap: 0.5rem !important;
    border-radius: 12px !important;
  }
  .community-author-flex {
    gap: 0.5rem !important;
    align-items: center !important;
  }
  .community-avatar-thumb {
    width: 32px !important;
    height: 32px !important;
    border-width: 1.5px !important;
  }
  .community-badge {
    font-size: 0.58rem !important;
    padding: 1px 6px !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 2px !important;
  }
  .community-title {
    font-size: 0.92rem !important;
    margin: 0 !important;
  }
  .community-desc {
    display: none !important; /* Rimuove il testo lungo sul telefono */
  }
  .community-buttons-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .social-action-card {
    min-width: 0 !important;
    width: 100% !important;
    padding: 7px 10px !important;
    border-radius: 10px !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  .social-action-icon {
    width: 26px !important;
    height: 26px !important;
    flex-shrink: 0 !important;
  }
  .social-action-icon svg {
    width: 15px !important;
    height: 15px !important;
  }
  .social-action-label {
    display: none !important;
  }
  .social-action-cta {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }
  .social-action-arrow {
    display: none !important;
  }
  .recipe-social-follow-box {
    padding: 1.4rem;
  }
  body {
    padding-bottom: 74px;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .stats-metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stats-detail-grid {
    grid-template-columns: 1fr;
  }
  .modal-dialog-stats {
    padding: 1.5rem;
  }
  .monetization-grid {
    grid-template-columns: 1fr;
  }
  .sponsor-mock-placeholder {
    flex-direction: column;
    text-align: center;
  }
  .sponsor-info {
    text-align: center;
  }
}

/* ---------- UTILITY STAMPA VS SCHERMO ---------- */
.print-only {
  display: none !important;
}

.detail-hero-desc {
  color: #E2E8F0;
  font-size: 0.95rem;
  font-style: italic;
  margin-top: 0.4rem;
  margin-bottom: 0.6rem;
  max-width: 700px;
  line-height: 1.45;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ==============================================================================
   SELETTORE LINGUA GLOBALE (IT, EN, FR, ES) & UNIT CONVERTER
   ============================================================================== */
.lang-selector-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-main);
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.lang-btn:hover {
  background: rgba(217, 119, 6, 0.15);
  border-color: var(--gold-primary);
  color: #FFFFFF;
}

.lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.lang-code {
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}

.lang-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.lang-selector-wrap.open .lang-arrow {
  transform: rotate(180deg);
  opacity: 1;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  width: 240px;
  background: #18181B;
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(217, 119, 6, 0.15);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1000;
  backdrop-filter: blur(16px);
  animation: fadeInDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-selector-wrap.open .lang-dropdown,
.lang-dropdown.open {
  display: flex !important;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  color: var(--text-main);
  width: 100%;
}

.lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.lang-option.active {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.25), rgba(245, 158, 11, 0.12));
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.lang-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lang-option-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #FFFFFF;
}

.lang-option-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.lang-option.active .lang-option-name {
  color: var(--gold-light);
}

/* ==============================================================================
   SWITCH UNITÀ DI MISURA (MODALE DETTAGLIO RICETTA)
   ============================================================================== */
.unit-system-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.45rem 0.8rem;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.unit-toggle-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.unit-toggle-buttons {
  display: flex;
  gap: 0.35rem;
}

.unit-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.unit-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.unit-toggle-btn.active {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  border-color: var(--gold-light);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

/* ==============================================================================
   BIOGRAFIA CHEF: CHI C'È DIETRO IL BOSS (FRANCESCO ALFANO)
   ============================================================================== */
.chef-bio-section {
  padding: 3rem 0 2rem;
  position: relative;
}

.chef-bio-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  background: linear-gradient(145deg, #18181B 0%, #111113 100%);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 24px;
  padding: 2.25rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(217, 119, 6, 0.06);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.chef-bio-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.chef-bio-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.chef-bio-portrait-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
}

.chef-bio-real-photo-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--gold-primary), #F59E0B, #78350F);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 24px rgba(217, 119, 6, 0.3);
  overflow: hidden;
}

.chef-bio-real-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.chef-bio-avatar-badge {
  position: absolute;
  bottom: -4px;
  right: 2px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: #18181B;
  border: 2px solid var(--gold-primary);
  border-radius: 9999px;
  padding: 3px 10px 3px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.chef-bio-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gold-light);
}

.chef-bio-avatar-tag {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.05em;
}

.chef-bio-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chef-bio-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.chef-bio-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chef-bio-social-pills {
  display: flex;
  gap: 0.6rem;
  width: 100%;
  justify-content: center;
}

.chef-bio-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.chef-bio-social-link svg {
  width: 16px;
  height: 16px;
}

.chef-bio-social-link.fb {
  background: rgba(24, 119, 242, 0.15);
  border: 1px solid rgba(24, 119, 242, 0.4);
  color: #60A5FA;
}

.chef-bio-social-link.fb:hover {
  background: #1877F2;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.chef-bio-social-link.ig {
  background: rgba(225, 48, 108, 0.15);
  border: 1px solid rgba(225, 48, 108, 0.4);
  color: #F472B6;
}

.chef-bio-social-link.ig:hover {
  background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(221, 42, 123, 0.4);
}

.chef-bio-content {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.chef-bio-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.chef-bio-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

.chef-bio-lead {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold-primary);
  line-height: 1.45;
  margin: 0;
}

.chef-bio-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--text-main);
  font-size: 0.94rem;
  line-height: 1.6;
}

.chef-bio-body p {
  margin: 0;
}

.chef-bio-body strong {
  color: #FFFFFF;
}

.chef-bio-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.bio-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.bio-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(217, 119, 6, 0.4);
  background: rgba(217, 119, 6, 0.06);
}

.bio-pill-icon {
  font-size: 1.45rem;
  flex-shrink: 0;
}

.bio-pill div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bio-pill strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: #FFFFFF;
}

.bio-pill span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Responsive Chef Bio & Language Dropdown */
@media (max-width: 992px) {
  .chef-bio-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .chef-bio-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1.5rem;
    text-align: center;
  }
  .chef-bio-tag {
    align-self: center;
  }
  .chef-bio-title {
    font-size: 1.5rem;
  }
  .chef-bio-highlights {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .lang-dropdown {
    left: 0 !important;
    right: auto !important;
    width: 235px !important;
    max-width: calc(100vw - 28px) !important;
  }
}

/* ============================================================
   MODALE PUBBLICAZIONE BLOGGER (MAIL2BLOGGER)
   ============================================================ */
.modal-dialog-blogger {
  max-width: 680px;
  background: var(--bg-card);
  border: 1px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  padding: 30px 28px;
}

.blogger-modal-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.blogger-modal-header {
  text-align: center;
}

.blogger-modal-header h2 {
  font-size: 1.6rem;
  color: var(--text-main);
  margin: 10px 0 8px 0;
  font-weight: 800;
}

.blogger-modal-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 auto;
}

.blogger-email-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-family: monospace;
  font-size: 0.9rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.blogger-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.blogger-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  transition: all 0.25s ease;
}

.blogger-card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.blogger-card.primary-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(26, 30, 38, 0.8) 100%);
  border: 1.5px solid var(--gold);
}

.blogger-card-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.blogger-card-content {
  flex: 1;
}

.blogger-card-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 6px 0;
}

.blogger-card-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 14px 0;
}

.blogger-card-content button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 25px;
}

.blogger-modal-footer {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}

.blogger-link-btn {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blogger-link-btn:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.detail-action-btn.blogger-btn {
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
}

.detail-action-btn.blogger-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold);
  color: #fff;
}

/* ---------- PRINT STYLES (STAMPA A4 PROFESSIONALE DA CHEF) ---------- */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm 10mm 8mm 10mm;
  }

  *, *::before, *::after {
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    background: #FFFFFF !important;
    color: #111827 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-size: 9.5pt !important;
    line-height: 1.35 !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* NASCONDI TUTTI GLI ELEMENTI INTERATTIVI / NON PERTINENTI ALLA SCHEDA RICETTA */
  .app-header,
  .search-filter-section,
  .social-community-section,
  .main-content,
  .chef-bio-section,
  .lang-selector-wrap,
  .unit-system-toggle-wrap,
  .monetization-section,
  .mobile-bottom-nav,
  .app-footer,
  #favorites-drawer,
  #add-modal,
  #follow-modal,
  #stats-modal,
  .drawer,
  .drawer-backdrop,
  .modal-backdrop,
  .modal-close-btn,
  .servings-toolbar,
  .cooking-timer-box,
  .detail-actions-bar,
  .recipe-social-follow-box,
  .card-watermark-overlay,
  .detail-watermark-overlay,
  .detail-hero,
  .screen-only,
  .card-fav-btn,
  #toast-container {
    display: none !important;
  }

  /* MODALE E CONTENITORE RICETTA IN FLUSSO NATURALE A4 */
  .modal {
    display: none !important;
    position: static !important;
  }

  #recipe-modal.active,
  #recipe-modal {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    background: #FFFFFF !important;
    color: #111827 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #recipe-modal .modal-dialog {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    background: #FFFFFF !important;
    color: #111827 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .recipe-detail {
    display: block !important;
    width: 100% !important;
    background: #FFFFFF !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .detail-body {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  /* ELEMENTI SOLO STAMPA */
  .print-only {
    display: block !important;
  }

  /* INTESTAZIONE SCHEDA A4 CHEF MR. A */
  .print-recipe-header {
    border-bottom: 2pt solid #111827 !important;
    padding-bottom: 7pt !important;
    margin-bottom: 7pt !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .print-header-top {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 12pt !important;
    margin-bottom: 5pt !important;
  }

  .print-brand-left {
    display: flex !important;
    align-items: center !important;
    gap: 10pt !important;
  }

  .print-avatar {
    width: 46pt !important;
    height: 46pt !important;
    border-radius: 50% !important;
    border: 2pt solid #D97706 !important;
    object-fit: cover !important;
    display: block !important;
  }

  .print-brand-tag {
    font-size: 7pt !important;
    font-weight: 800 !important;
    letter-spacing: 1.2pt !important;
    color: #B45309 !important;
    text-transform: uppercase !important;
    margin-bottom: 1pt !important;
  }

  .print-brand-title {
    font-family: var(--font-serif, "Cinzel", Georgia, serif) !important;
    font-size: 15pt !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
  }

  .print-brand-motto {
    font-size: 8pt !important;
    color: #4B5563 !important;
    margin: 2pt 0 0 0 !important;
    font-style: italic !important;
  }

  .print-dish-thumb-wrap {
    flex-shrink: 0 !important;
  }

  .print-dish-thumb {
    width: 78pt !important;
    height: 54pt !important;
    object-fit: cover !important;
    border-radius: 4pt !important;
    border: 1pt solid #D1D5DB !important;
    display: block !important;
  }

  .print-recipe-info {
    margin-top: 3pt !important;
  }

  .print-recipe-title {
    font-family: var(--font-serif, "Cinzel", Georgia, serif) !important;
    font-size: 15pt !important;
    font-weight: 800 !important;
    color: #111827 !important;
    margin: 0 0 3pt 0 !important;
    line-height: 1.2 !important;
  }

  .print-recipe-desc {
    font-size: 8.5pt !important;
    font-style: italic !important;
    color: #4B5563 !important;
    margin: 0 0 5pt 0 !important;
    line-height: 1.3 !important;
  }

  /* GRIGLIA METADATI COMPATTA A 6 CASELLE */
  .print-meta-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 4pt !important;
    margin-top: 4pt !important;
  }

  .print-meta-box {
    background: #F9FAFB !important;
    border: 0.75pt solid #E5E7EB !important;
    border-radius: 3pt !important;
    padding: 3pt 4pt !important;
    text-align: center !important;
  }

  .print-meta-box.print-servings-box {
    background: #FFFBEB !important;
    border: 1.2pt solid #F59E0B !important;
  }

  .print-meta-label {
    display: block !important;
    font-size: 6.5pt !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4pt !important;
    color: #6B7280 !important;
    margin-bottom: 1pt !important;
  }

  .print-meta-value {
    display: block !important;
    font-size: 8pt !important;
    font-weight: 700 !important;
    color: #111827 !important;
    white-space: nowrap !important;
  }

  .print-meta-box.print-servings-box .print-meta-value {
    color: #B45309 !important;
  }

  /* LAYOUT A 2 COLONNE: INGREDIENTI A SINISTRA (35%), PROCEDIMENTO A DESTRA (63%) */
  .recipe-layout {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 12pt !important;
    margin-top: 6pt !important;
  }

  .recipe-layout > div:first-child {
    width: 35% !important;
    flex-shrink: 0 !important;
  }

  .recipe-layout > div:last-child {
    width: 63% !important;
    flex-grow: 1 !important;
  }

  .section-subtitle {
    font-size: 9.5pt !important;
    font-weight: 800 !important;
    color: #111827 !important;
    border-bottom: 1.5pt solid #D97706 !important;
    padding-bottom: 2pt !important;
    margin: 0 0 5pt 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .section-subtitle span {
    font-size: 9.5pt !important;
  }

  .print-servings-badge {
    font-size: 7.5pt !important;
    font-weight: 700 !important;
    color: #B45309 !important;
  }

  /* LISTA INGREDIENTI CON CHECKBOX STAMPATE */
  .ingredients-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .ingredient-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 5pt !important;
    padding: 2.5pt 0 !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 0.5pt dashed #D1D5DB !important;
    border-radius: 0 !important;
    margin: 0 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    text-decoration: none !important;
    opacity: 1 !important;
  }

  .ingredient-checkbox {
    display: inline-block !important;
    width: 10pt !important;
    height: 10pt !important;
    min-width: 10pt !important;
    margin: 1.5pt 0 0 0 !important;
    border: 1.2pt solid #374151 !important;
    border-radius: 2pt !important;
    background: #FFFFFF !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    flex-shrink: 0 !important;
  }

  .ingredient-text {
    font-size: 8.5pt !important;
    line-height: 1.25 !important;
    color: #1F2937 !important;
    margin: 0 !important;
    cursor: default !important;
    text-decoration: none !important;
  }

  .ingredient-text strong {
    font-weight: 700 !important;
    color: #111827 !important;
  }

  /* LISTA STEP PROCEDIMENTO NUMERATI */
  .steps-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4pt !important;
  }

  .step-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6pt !important;
    padding: 4pt 6pt !important;
    background: #F9FAFB !important;
    border: 0.75pt solid #E5E7EB !important;
    border-left: 2.5pt solid #D97706 !important;
    border-radius: 3pt !important;
    margin: 0 !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .step-number {
    width: 14pt !important;
    height: 14pt !important;
    min-width: 14pt !important;
    font-size: 8pt !important;
    font-weight: 800 !important;
    background: #1F2937 !important;
    color: #FFFFFF !important;
    border-radius: 50% !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-top: 0.5pt !important;
  }

  .step-body {
    font-size: 8.5pt !important;
    line-height: 1.3 !important;
    color: #1F2937 !important;
    margin: 0 !important;
  }

  /* IL SEGRETO DEL BOSS (BOX ORO / AMBER COMPATTO) */
  .boss-secret-container {
    background: #FFFBEB !important;
    border: 1.2pt solid #F59E0B !important;
    border-left: 3.5pt solid #D97706 !important;
    border-radius: 4pt !important;
    padding: 5pt 8pt !important;
    margin-top: 6pt !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .boss-secret-header {
    display: flex !important;
    align-items: center !important;
    gap: 6pt !important;
    margin-bottom: 2pt !important;
  }

  .boss-secret-avatar {
    width: 20pt !important;
    height: 20pt !important;
    border-radius: 50% !important;
    border: 1pt solid #D97706 !important;
    object-fit: cover !important;
    display: block !important;
  }

  .boss-secret-title {
    font-size: 9.5pt !important;
    font-weight: 800 !important;
    color: #92400E !important;
    margin: 0 !important;
  }

  .boss-secret-chef-badge {
    font-size: 7pt !important;
    color: #B45309 !important;
    font-weight: 700 !important;
    display: block !important;
  }

  .boss-secret-text {
    font-size: 8pt !important;
    line-height: 1.3 !important;
    color: #1F2937 !important;
    font-style: italic !important;
    margin: 0 !important;
  }

  /* FOOTER STAMPA A4 */
  .print-footer {
    margin-top: 6pt !important;
    padding-top: 3pt !important;
    border-top: 0.75pt solid #D1D5DB !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .print-footer-flex {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 7pt !important;
    color: #6B7280 !important;
  }

  .print-footer-brand strong {
    color: #111827 !important;
  }

  .print-footer-social strong {
    color: #D97706 !important;
  }
}

/* ============================================================
   BANNER & BOTTONE INSTALLAZIONE PWA (STANDALONE 1-CLIC)
   ============================================================ */
.install-cta-btn {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.28) 0%, rgba(245, 158, 11, 0.18) 100%) !important;
  border: 1.5px solid var(--gold) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.35) !important;
}

.install-cta-btn:hover {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.45) 0%, rgba(245, 158, 11, 0.3) 100%) !important;
  transform: translateY(-2px);
}

.install-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.pwa-install-banner {
  background: linear-gradient(90deg, #1C1917 0%, #292524 50%, #1C1917 100%);
  border-bottom: 2px solid var(--gold);
  padding: 0.65rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 100;
  animation: fadeInDown 0.25s ease;
}

.pwa-banner-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pwa-banner-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pwa-badge-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.pwa-banner-text strong {
  display: block;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.pwa-banner-text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

.pwa-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-pwa-install {
  background: var(--gold);
  color: #000000;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-pwa-install:hover {
  background: #FBBF24;
  transform: scale(1.04);
}

.btn-pwa-dismiss {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-pwa-dismiss:hover {
  color: #FFFFFF;
}

/* Modale Guida Installazione PWA */
.modal-dialog-install {
  max-width: 480px;
  background: #18181B;
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  padding: 24px 22px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.install-modal-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin: 0 auto 10px auto;
  display: block;
}

.install-modal-header h2 {
  font-size: 1.35rem;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  font-weight: 800;
}

.install-modal-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.install-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
  text-align: left;
}

.install-step-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 14px;
}

.install-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold);
  color: #000000;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-step-info {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.install-step-info strong {
  color: #FFFFFF;
}

.install-modal-confirm-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.95rem;
  border-radius: 9999px;
  font-weight: 700;
}

/* Regole Mobile Header & Bottom Nav (Touch 48px) */
@media (max-width: 768px) {
  .header-actions {
    gap: 0.35rem !important;
  }
  .install-cta-btn {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.78rem !important;
  }
  .share-wa-btn {
    padding: 0.4rem 0.65rem !important;
    font-size: 0.78rem !important;
  }
  .follow-cta-btn {
    padding: 0.4rem 0.55rem !important;
    font-size: 0.78rem !important;
  }
  .favorites-btn {
    padding: 0.4rem 0.55rem !important;
    font-size: 0.78rem !important;
  }
  .lang-btn {
    padding: 0.4rem 0.55rem !important;
    font-size: 0.8rem !important;
  }
  .pwa-banner-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .pwa-banner-actions {
    width: 100%;
    justify-content: space-between;
  }
  .mobile-bottom-nav {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    height: 64px !important;
    padding: 4px 6px !important;
  }
  .mobile-nav-btn {
    flex: 1 !important;
    max-width: 80px !important;
    min-height: 48px !important;
    padding: 4px 2px !important;
  }
  .mobile-nav-btn .mob-icon {
    font-size: 1.25rem !important;
  }
  .mobile-nav-btn .mob-label {
    font-size: 0.68rem !important;
  }
}

/* ==================== BOX ATTREZZATURA CONSIGLIATA DAL BOSS (DETTAGLIO RICETTA) ==================== */
.recipe-tool-rec-box {
  background: linear-gradient(135deg, rgba(32, 27, 20, 0.95) 0%, rgba(18, 18, 22, 0.98) 100%);
  border: 1.5px solid rgba(229, 169, 60, 0.4);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(229, 169, 60, 0.12);
  position: relative;
  overflow: hidden;
  transition: var(--transition-medium);
}

.recipe-tool-rec-box:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 12px 35px rgba(229, 169, 60, 0.2);
}

.tool-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  gap: 12px;
  flex-wrap: wrap;
}

.tool-rec-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #111;
  background: var(--gold-primary);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.tool-rec-chef-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

.tool-rec-amazon-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: #FF9900;
  background: rgba(255, 153, 0, 0.12);
  border: 1px solid rgba(255, 153, 0, 0.35);
  padding: 2px 9px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.tool-rec-body {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: 1rem;
}

.tool-rec-icon {
  font-size: 2.4rem;
  line-height: 1;
  flex-shrink: 0;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(229, 169, 60, 0.12);
  border: 1px solid rgba(229, 169, 60, 0.25);
  border-radius: 14px;
}

.tool-rec-info {
  flex: 1;
  min-width: 220px;
}

.tool-rec-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 4px;
  line-height: 1.3;
}

.tool-rec-desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.tool-rec-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tool-rec-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF9900 0%, #E68A00 100%);
  color: #111 !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 153, 0, 0.35);
  transition: var(--transition-fast);
  white-space: nowrap;
  min-height: 48px;
  cursor: pointer;
}

.tool-rec-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 0, 0.5);
  filter: brightness(1.08);
}

.tool-rec-hint {
  font-size: 0.72rem;
  color: var(--gold-light);
  font-weight: 500;
}

.tool-rec-footer {
  border-top: 1px dashed rgba(229, 169, 60, 0.2);
  padding-top: 0.7rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Responsive Mobile per Box Strumento */
@media (max-width: 768px) {
  .recipe-tool-rec-box {
    padding: 1.2rem;
  }
  .tool-rec-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  .tool-rec-cta-wrap {
    width: 100%;
  }
  .tool-rec-cta-btn {
    width: 100%;
    text-align: center;
  }
}

/* Promo Card In-Feed */
.promo-in-feed-card {
  border-color: rgba(229, 169, 60, 0.45) !important;
  background: linear-gradient(180deg, rgba(28, 25, 20, 0.95) 0%, rgba(18, 18, 22, 0.98) 100%) !important;
}

.promo-badge {
  background: linear-gradient(135deg, #FF9900 0%, #D97706 100%) !important;
  color: #111 !important;
  font-weight: 800 !important;
}

.promo-btn {
  background: linear-gradient(135deg, #FF9900 0%, #E68A00 100%) !important;
  color: #111 !important;
}

/* ==================== BARRA CHEF ADMIN SUPERIORE (FRANCESCO) ==================== */
.chef-admin-bar {
  background: linear-gradient(135deg, #1C1914 0%, #121216 100%);
  border-bottom: 2px solid var(--gold-primary);
  padding: 10px 20px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(229, 169, 60, 0.25);
  position: sticky;
  top: 0;
  z-index: 999;
}

.admin-bar-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.admin-bar-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-light);
  font-size: 0.95rem;
}

.admin-bar-pulse {
  color: #10B981;
  font-size: 1.1rem;
  line-height: 1;
  animation: adminPulseAnim 1.4s infinite;
}

@keyframes adminPulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.admin-bar-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.admin-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-bar-btn {
  background: var(--gold-primary);
  color: #111 !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
  box-shadow: 0 3px 10px rgba(229, 169, 60, 0.3);
}

.admin-bar-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.admin-bar-btn.secondary {
  background: rgba(229, 169, 60, 0.15);
  color: var(--gold-light) !important;
  border: 1px solid var(--border-gold);
  box-shadow: none;
}

.admin-bar-btn.exit {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4);
  box-shadow: none;
}

/* ==================== TOAST NOTIFICATION FLUTTUANTE ==================== */
.toast-container {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: auto;
  max-width: 90vw;
}

.boss-toast {
  background: rgba(18, 18, 24, 0.96);
  border: 1.5px solid var(--gold-primary);
  color: #FFF;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(229, 169, 60, 0.35);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  text-align: center;
  line-height: 1.4;
}

.boss-toast.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ==================== MODALE AUTENTICAZIONE CHEF ADMIN ==================== */
.modal-dialog-auth {
  max-width: 450px !important;
  background: linear-gradient(145deg, #1C1916 0%, #121217 100%) !important;
  border: 1.5px solid var(--gold-primary) !important;
  border-radius: var(--radius-xl) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(229, 169, 60, 0.25) !important;
  padding: 0 !important;
  overflow: hidden;
  position: relative;
  z-index: 1001;
}

.modal-dialog-auth .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.6rem;
  border-bottom: 1px solid var(--border-gold);
  background: rgba(229, 169, 60, 0.05);
}

.modal-dialog-auth .modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-dialog-auth .modal-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-light);
  margin: 0;
  line-height: 1.2;
}

.modal-dialog-auth .modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: block;
  margin-top: 3px;
}

.modal-dialog-auth .modal-body {
  padding: 1.8rem 1.6rem 1.6rem;
}

.modal-dialog-auth .form-input {
  width: 100%;
  padding: 14px 16px;
  background: #0E0E12;
  border: 1.5px solid var(--border-gold);
  border-radius: 10px;
  color: #FFF;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 5px;
  text-align: center;
  outline: none;
  transition: var(--transition-fast);
}

.modal-dialog-auth .form-input:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 15px rgba(229, 169, 60, 0.4);
}

.footer-admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 26, 32, 0.85);
  border: 1px solid rgba(229, 169, 60, 0.4);
  color: var(--gold-light);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  margin: 0 4px;
}

.footer-admin-btn:hover {
  background: linear-gradient(135deg, rgba(229, 169, 60, 0.25), rgba(229, 169, 60, 0.08));
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(229, 169, 60, 0.25);
}

.footer-admin-btn.admin-active {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10B981;
  color: #A7F3D0;
}

/* ========== BANNER RILEVAMENTO BROWSER WHATSAPP / SOCIAL (ANTI-BLOCCO SICUREZZA) ========== */
.in-app-browser-banner {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-bottom: 2px solid var(--gold);
  color: #FFFFFF;
  padding: 10px 16px;
  position: relative;
  z-index: 999;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s ease;
}

.in-app-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.in-app-banner-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.in-app-banner-body {
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.35;
}

.in-app-banner-body strong {
  color: var(--gold-light);
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.in-app-banner-body p {
  margin: 0;
  color: #e2e8f0;
}

.in-app-banner-dismiss {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.in-app-banner-dismiss:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

/* ========== PULSANTE CONDIVIDI SU WHATSAPP (HEADER) ========== */
.header-action-btn.share-wa-btn {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.22) 0%, rgba(18, 140, 126, 0.16) 100%) !important;
  border: 1.2px solid rgba(37, 211, 102, 0.55) !important;
  color: #25D366 !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  position: relative !important;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.18) !important;
  transition: all 0.25s ease !important;
}

.header-action-btn.share-wa-btn:hover {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  border-color: #25D366 !important;
  color: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.45) !important;
}

.header-action-btn.share-wa-btn .wa-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.header-action-btn.share-wa-btn:hover .wa-icon {
  transform: scale(1.15);
}

/* ========== CARD WHATSAPP COMMUNITY BANNER ========== */
.social-action-card.wa-card {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.14) 0%, rgba(18, 140, 126, 0.08) 100%);
  border-color: rgba(37, 211, 102, 0.35);
}

.social-action-card.wa-card:hover {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.25) 0%, rgba(18, 140, 126, 0.18) 100%);
  border-color: #25D366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
  transform: translateY(-3px);
}

.social-action-icon.wa-icon-box {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #FFFFFF;
}

.social-action-card.wa-card .social-action-arrow {
  color: #25D366;
}

/* ========== TASTO WHATSAPP MOBILE BOTTOM NAV ========== */
.mobile-nav-btn.share-nav-btn {
  color: #25D366 !important;
}

.mobile-nav-btn.share-nav-btn .wa-mob-icon {
  font-size: 1.25rem;
}

.mobile-nav-btn.share-nav-btn:hover,
.mobile-nav-btn.share-nav-btn:active {
  color: #2fe774 !important;
}

/* ========== INSTALL TRUST CARD (SICUREZZA GOOGLE PWA) ========== */
.install-trust-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 14px 0 6px 0;
  text-align: left;
}

.install-trust-card .trust-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.install-trust-card .trust-title {
  color: #25D366;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.install-trust-card .trust-desc {
  color: #cbd5e1;
  font-size: 0.8rem;
  line-height: 1.35;
  margin: 0;
}

