/* Alloro · home e schede ricetta (docs/design/web-v1, #p-home) */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding: 32px 24px 40px; }
.home__main { display: grid; gap: 22px; align-content: start; min-width: 0; }
.home-hero { display: grid; gap: 16px; }
.home-hero h1 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; }
.home-hero h1 em { font-style: normal; color: var(--brand); }
.hero-search { display: flex; gap: 8px; }
.hero-search .input-wrap { flex: 1; min-width: 0; }
.hero-search .input { min-height: 52px; border-radius: 999px; padding-left: 46px; font-size: 17px; }
.hero-search .prefix { left: 18px; }
.hero-search .prefix svg { width: 20px; height: 20px; display: block; }
.hero-search .btn { min-height: 52px; flex: none; white-space: nowrap; }
@media (max-width: 480px) { .hero-search .input { padding-left: 40px; font-size: 16px; } .hero-search .prefix { left: 14px; } .hero-search .btn { padding: 0 16px; } }
.feed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.feed-head h2 { font-size: 24px; font-weight: 700; }
.feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.side { display: grid; gap: 20px; align-content: start; }
/* primi passi, per chi segue pochi cuochi */
.first-steps { gap: 8px; }
.first-steps .hint { margin-top: 4px; font-size: 14px; }
.first-steps__list { list-style: none; margin: 0; padding: 0; display: grid; }
.first-steps__list li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; }
.first-steps__mark { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--ink-2); display: grid; place-items: center; }
.first-steps .is-done .first-steps__mark { border-color: var(--action); background: var(--action); color: var(--action-ink); }
.first-steps__mark svg { width: 14px; height: 14px; }
.first-steps__text { display: grid; font-size: 15px; line-height: 1.35; }
.first-steps__text a, .first-steps__text strong { color: var(--ink); font-weight: 700; }
.first-steps__text a { text-decoration: none; }
.first-steps__text a:hover { text-decoration: underline; }
.first-steps .is-done strong { color: var(--ink-2); text-decoration: line-through; }
.first-steps__text small { font-size: 13px; color: var(--ink-2); }
/* cuochi da seguire: carosello di schede con la copertina dell'ultima ricetta */
.cooks { list-style: none; margin: 0; padding: 0 0 4px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.cook { flex: none; width: 168px; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; align-items: center; padding-bottom: 14px; gap: 10px; }
.cook__link { display: flex; flex-direction: column; align-items: center; width: 100%; text-align: center; color: var(--ink); text-decoration: none; }
.cook__cover { width: 100%; aspect-ratio: 2 / 1; }
.cook__link .avatar { width: 56px; height: 56px; font-size: 20px; margin-top: -28px; border: 3px solid var(--surface); box-sizing: content-box; position: relative; }
.cook__name { margin: 6px 10px 0; font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cook__link:hover .cook__name { text-decoration: underline; }
.cook__link small { font-size: 12px; color: var(--ink-2); }
.cook turbo-frame { margin-top: auto; }
.platforms { display: flex; gap: 6px; flex-wrap: wrap; }
.who { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.who li { display: flex; align-items: center; gap: 10px; }
.who .name { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.who .name a { color: var(--ink); text-decoration: none; font-weight: 600; }
.who .name a:hover { text-decoration: underline; }
.who .name small { display: block; color: var(--ink-2); font-size: 12px; }
@media (max-width: 900px) {
    .home { grid-template-columns: minmax(0, 1fr); padding: 24px 16px; }
    /* chip su una riga, scorrevoli fino ai bordi del contenitore, sfumate a destra */
    .chips--scroll { --bleed: 16px; flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--bleed)); padding: 0 var(--bleed); scrollbar-width: none; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
    .panel .chips--scroll { --bleed: 20px; }
    .chips--scroll::-webkit-scrollbar { display: none; }
    .chips--scroll .chip { flex: none; white-space: nowrap; }
}

/* scheda ricetta */
.rcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.rcard .photo { border-bottom: 1px solid var(--line); }
.rcard__save { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,253,247,.94); color: #1F3A2B; display: grid; place-items: center; cursor: pointer; }
.rcard__save svg { width: 20px; height: 20px; }
.rcard__save:hover { color: #1F3A2B; background: #FFFDF7; }
.rcard__save[aria-pressed="true"] { background: #22714A; color: #FFFDF7; }
.rcard__save[aria-pressed="true"] { --heart-fill: currentColor; }
.rcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rcard__title { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.rcard__title a { color: inherit; text-decoration: none; }
.rcard__title a:hover { text-decoration: underline; text-decoration-color: var(--sage); text-underline-offset: 3px; }
.rcard__by { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.rcard__by a { color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rcard__by a:hover { color: var(--ink); text-decoration: underline; }
.rcard .tag { align-self: flex-start; }
.rcard__meta { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.rcard__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.rcard__meta svg { width: 15px; height: 15px; }
.rcard__extra { padding: 0 16px 14px; margin-top: -6px; }
