/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Oct 27 2026 | 21:45:47 */
/* =========================================
   CUCINAPOLI — RECIPE LIBRARY
   ========================================= */

:root {
  --cl-bg: #FCF6F0;
  --cl-surface: #FFFFFF;
  --cl-ink: #302522;
  --cl-muted: #8C7B73;

  --cl-primary: #B83A32;
  --cl-primary-dark: #862921;
  --cl-accent: #DFA15E;

  --cl-border: #EDE0D5;
  --cl-radius: 22px;

  --cl-shadow: 0 8px 30px rgba(91, 43, 32, 0.07);
  --cl-shadow-hover: 0 18px 42px rgba(91, 43, 32, 0.14);
}


/* CONTENITORE CENTRATO */
#recipe-library {
  width: 80%;
  max-width: 1400px;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  #recipe-library {
    width: 92%;
  }
}

.cl-library,
.cl-library * {
  box-sizing: border-box;
}

.cl-library {
  color: var(--cl-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: clamp(16px, 3vw, 38px) 0 64px;
}

.cl-library button,
.cl-library input,
.cl-library select {
  font: inherit;
}

.cl-library button {
  cursor: pointer;
}

.cl-library button:focus-visible,
.cl-library input:focus-visible,
.cl-library select:focus-visible,
.cl-library a:focus-visible {
  outline: 3px solid rgba(38, 118, 83, 0.4);
  outline-offset: 3px;
}

/* HEADER */

.cl-header {
  margin-bottom: 30px;
}

.cl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cl-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 13px;
}

.cl-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--cl-accent);
}

.cl-heading {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5.2vw, 64px);
  line-height: 1.03;
  font-weight: 500;
  letter-spacing: -0.045em;
  margin: 0;
  max-width: 760px;
}

.cl-heading em {
  color: var(--cl-primary);
  font-weight: 500;
}

.cl-subtitle {
  color: var(--cl-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 570px;
  margin: 15px 0 0;
}

/* SEARCH */

.cl-toolbar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.cl-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cl-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.cl-search-icon {
  position: absolute;
  left: 17px;
  color: var(--cl-muted);
  font-size: 20px;
  pointer-events: none;
}

.cl-search input {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 44px 0 48px;
  color: var(--cl-ink);
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cl-search input::placeholder {
  color: #a2a194;
}

.cl-search input:focus {
  border-color: var(--cl-primary);
  box-shadow: 0 0 0 4px rgba(38, 118, 83, 0.08);
}

.cl-search-clear {
  position: absolute;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f0efe8;
  color: var(--cl-muted);
  display: grid;
  place-items: center;
}

.cl-sort {
  height: 54px;
  max-width: 190px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--cl-border);
  border-radius: 15px;
  color: var(--cl-ink);
  background: white;
  cursor: pointer;
}

/* FILTRI */

.cl-filter-section {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.cl-filter-label {
  color: var(--cl-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cl-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--cl-border);
  border-radius: 999px;
  color: #66685d;
  background: var(--cl-surface);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s,
    border-color 0.18s, transform 0.18s;
}

.cl-chip:hover {
  border-color: #b7cbbd;
  color: var(--cl-primary);
  transform: translateY(-1px);
}

.cl-chip.is-active {
  color: white;
  background: var(--cl-primary);
  border-color: var(--cl-primary);
}

.cl-chip-reset {
  color: var(--cl-primary);
  background: #edf4ed;
  border-color: transparent;
}

/* RISULTATI */

.cl-results-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 30px 0 17px;
}

.cl-results-count {
  font-size: 13px;
  color: var(--cl-muted);
}

.cl-results-count strong {
  color: var(--cl-ink);
  font-size: 15px;
}

.cl-active-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.cl-active-tag {
  border-radius: 7px;
  background: #e9f2e9;
  color: var(--cl-primary-dark);
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 750;
}

/* GRIGLIA RICETTE */

.cl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.cl-card {
  min-width: 0;
  overflow: hidden;
  position: relative;
  background: var(--cl-surface);
  border: 1px solid rgba(50, 55, 42, 0.07);
  border-radius: var(--cl-radius);
  box-shadow: var(--cl-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: cl-card-in 0.4s ease both;
}

.cl-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cl-shadow-hover);
}

.cl-card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e9e5d9;
}

.cl-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.cl-card:hover .cl-card-image {
  transform: scale(1.045);
}

.cl-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 70% 20%, #f6d8a6 0, transparent 42%),
    linear-gradient(135deg, #dce7d5, #f1e3cc);
  color: var(--cl-primary);
  font-size: 52px;
}

.cl-card-category {
  position: absolute;
  left: 15px;
  top: 15px;
  max-width: calc(100% - 30px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 7px 11px;
  border-radius: 999px;
  color: #334735;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cl-card-favorite {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: #4a5145;
  background: rgba(255, 255, 255, 0.92);
  font-size: 19px;
  transition: background 0.2s, color 0.2s;
}

.cl-card-favorite.is-favorite {
  color: #b74a40;
  background: white;
}

/* CONTENUTO CARD */

.cl-card-body {
  padding: 20px 20px 19px;
}

.cl-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 11px;
}

.cl-mini-tag {
  font-size: 10px;
  font-weight: 750;
  color: var(--cl-primary);
  background: #edf4eb;
  padding: 5px 8px;
  border-radius: 6px;
}

.cl-mini-tag--neutral {
  color: #777568;
  background: #f2f0e9;
}

.cl-card-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.cl-card-title a {
  color: inherit;
  text-decoration: none;
}

.cl-card-title a:hover {
  color: var(--cl-primary);
}

.cl-card-description {
  color: var(--cl-muted);
  font-size: 12px;
  line-height: 1.65;
  margin: 10px 0 17px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.cl-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  color: #77786c;
  font-size: 11px;
  padding-top: 14px;
  border-top: 1px solid #f0eee7;
}

.cl-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.cl-meta-icon {
  font-size: 14px;
}

.cl-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
}

.cl-calories {
  font-size: 12px;
  font-weight: 750;
}

.cl-calories small {
  display: block;
  color: var(--cl-muted);
  font-size: 10px;
  font-weight: 500;
  margin-top: 2px;
}

.cl-card-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  border-radius: 11px;
  color: white;
  background: var(--cl-primary);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
  transition: background 0.2s, gap 0.2s;
}

.cl-card-link:hover {
  background: var(--cl-primary-dark);
  gap: 13px;
}

.cl-card-link span {
  font-size: 16px;
}

/* NESSUN RISULTATO */

.cl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 65px 20px;
  border: 1px dashed #d9d7cb;
  border-radius: var(--cl-radius);
  background: rgba(255, 255, 255, 0.55);
}

.cl-empty-icon {
  font-size: 42px;
  margin-bottom: 15px;
}

.cl-empty h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 8px;
}

.cl-empty p {
  color: var(--cl-muted);
  font-size: 13px;
  margin: 0 0 20px;
}

.cl-empty button {
  padding: 11px 17px;
  color: white;
  background: var(--cl-primary);
  border: 0;
  border-radius: 11px;
  font-weight: 700;
}

/* ANIMAZIONI */

@keyframes cl-card-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* SCHERMI GRANDI */

@media (min-width: 1500px) {
  .cl-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* TABLET */

@media (max-width: 1050px) {
  .cl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

/* SMARTPHONE */

@media (max-width: 600px) {
  .cl-library {
    padding-top: 22px;
  }

  .cl-heading {
    font-size: 41px;
  }

  .cl-subtitle {
    font-size: 13px;
  }

  .cl-search-row {
    flex-wrap: wrap;
  }

  .cl-search {
    flex-basis: 100%;
  }

  .cl-sort {
    width: 100%;
    max-width: none;
    height: 46px;
  }

  .cl-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 1px 7px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .cl-chip {
    flex: 0 0 auto;
  }

  .cl-results-bar {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 23px;
  }

  .cl-active-filters {
    justify-content: flex-start;
  }

  .cl-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .cl-card {
    border-radius: 19px;
  }

  .cl-card-image-wrap {
    aspect-ratio: 16 / 10;
  }

  .cl-card-body {
    padding: 17px;
  }

  .cl-card-title {
    font-size: 24px;
  }
}

/* ACCESSIBILITÀ: RIDUCE LE ANIMAZIONI */

@media (prefers-reduced-motion: reduce) {
  .cl-library *,
  .cl-library *::before,
  .cl-library *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
