/* Italian Food Recipes — allrecipes-style: white, bold sans, red accent */
:root {
  --red: #d64123;
  --red-dark: #b53012;
  --ink: #211e1e;
  --muted: #6b6462;
  --line: #e8e4e1;
  --bg: #ffffff;
  --bg-soft: #faf8f7;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 0 4%;
}
.header-top {
  display: flex; align-items: center; gap: 24px; padding: 14px 0;
}
.logo {
  font-size: 1.6rem; font-weight: 900; letter-spacing: -0.5px;
  text-decoration: none; color: var(--ink); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
}
.logo em { color: var(--red); font-style: normal; }
.logo .flag { border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); flex: none; }
.search-box { flex: 1; max-width: 520px; position: relative; }
.search-box input {
  width: 100%; padding: 11px 44px 11px 16px;
  border: 2px solid var(--ink); border-radius: 26px;
  font-size: .95rem; outline: none;
}
.search-box input:focus { border-color: var(--red); }
.search-box button {
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 38px;
  border: none; border-radius: 50%; background: var(--red); color: #fff;
  font-size: 1rem; cursor: pointer;
}
.nav-bar {
  display: flex; gap: 26px; padding: 10px 0; overflow-x: auto;
  border-top: 1px solid var(--line);
}
.nav-bar a {
  text-decoration: none; color: var(--ink); font-weight: 700;
  font-size: .82rem; text-transform: uppercase; letter-spacing: .8px;
  white-space: nowrap; padding: 2px 0; border-bottom: 3px solid transparent;
}
.nav-bar a:hover { color: var(--red); border-bottom-color: var(--red); }

main { max-width: 1160px; margin: 0 auto; padding: 26px 4%; }

/* ---------- home ---------- */
.hero-banner { padding: 6px 0 2px; }
.hero-banner h1 { font-size: 2rem; font-weight: 900; letter-spacing: -0.5px; }
.hero-banner p { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 6px; }
.filters button {
  border: 1px solid var(--ink); background: #fff; padding: 8px 18px;
  border-radius: 22px; cursor: pointer; font-size: .85rem; font-weight: 700;
  color: var(--ink);
}
.filters button.active, .filters button:hover { background: var(--red); color: #fff; border-color: var(--red); }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 26px 20px; margin: 22px 0;
}
.card { text-decoration: none; color: var(--ink); background: #fff; }
.card-img {
  position: relative; aspect-ratio: 1/1; background: var(--bg-soft);
  overflow: hidden; border-radius: 4px;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .card-img img { transform: scale(1.04); }
.card h3 {
  margin-top: 10px; font-size: 1.05rem; font-weight: 800; line-height: 1.35;
}
.card:hover h3 { color: var(--red); }
.card-meta {
  margin-top: 4px; color: var(--muted); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .6px; font-weight: 600;
}

.badge {
  position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff;
  font-size: .68rem; font-weight: 800; padding: 5px 10px; border-radius: 3px;
  text-transform: uppercase; letter-spacing: .6px;
}
.badge.inline { position: static; vertical-align: middle; font-size: .62rem; margin-left: 8px; }

/* ---------- recipe page ---------- */
.recipe { max-width: 780px; }
.breadcrumb { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--red); }
.recipe h1 { font-size: 2.3rem; font-weight: 900; letter-spacing: -0.5px; line-height: 1.15; margin: 6px 0 12px; }
.recipe .intro { font-size: 1.08rem; color: var(--ink); margin-bottom: 16px; }

/* star rating widget */
.rating { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; flex-wrap: wrap; }
.rating .stars { display: inline-flex; font-size: 1.5rem; line-height: 1; }
.rating .stars span {
  color: #d9d2cc; cursor: pointer; transition: color .1s; padding: 0 1px; user-select: none;
}
.rating .stars span.on { color: #e8a92e; }
.rating .stars span.hover, .rating .stars span.hover ~ span { }
.rating .stars span.hover { color: #f0b429; }
.rating.voted .stars span { cursor: default; }
.rating-summary {
  font-size: .85rem; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.recipe .hero {
  border-radius: 6px; margin: 16px auto; display: block;
  width: 100%; max-width: 460px; max-height: 560px; object-fit: cover;
}

.meta-row, .nutrition {
  display: flex; gap: 0; flex-wrap: wrap; margin: 20px 0;
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
.meta-row div, .nutrition div {
  flex: 1; min-width: 110px; padding: 14px 10px; text-align: center;
  border-right: 1px solid var(--line);
}
.meta-row div:last-child, .nutrition div:last-child { border-right: none; }
.meta-row b, .nutrition b { display: block; font-size: 1.05rem; color: var(--ink); }
.meta-row span, .nutrition span {
  font-size: .72rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: .8px; font-weight: 700;
}
.nutrition { background: var(--bg-soft); }
.nutrition b { color: var(--red); }

.recipe h2 {
  font-size: 1.5rem; font-weight: 900; margin: 30px 0 12px;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.ingredients li, .recipe ul li { margin: 8px 0 8px 20px; }
.ingredients li::marker { color: var(--red); }

.steps { counter-reset: step; list-style: none; }
.steps li { counter-increment: step; margin: 24px 0; }
.steps li::before {
  content: "Step " counter(step);
  display: block; font-weight: 900; color: var(--red);
  text-transform: uppercase; font-size: .8rem; letter-spacing: 1px;
  margin-bottom: 4px;
}
.steps img { border-radius: 6px; margin-top: 10px; max-width: 480px; }
.cultural {
  margin: 24px 0; padding: 16px 20px; background: var(--bg-soft);
  border-left: 4px solid var(--red); border-radius: 0 6px 6px 0;
}

/* ---------- action bar ---------- */
.action-bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.action-bar .act {
  display: inline-flex; align-items: center; gap: 7px; background: #fff;
  border: 1px solid var(--ink); color: var(--ink); border-radius: 24px;
  padding: 8px 18px; font-size: .82rem; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: .5px;
}
.action-bar .act:hover { background: var(--ink); color: #fff; }
.action-bar .act.active { background: var(--red); border-color: var(--red); color: #fff; }
.action-bar .act .ico { font-size: 1rem; }

/* ---------- comments ---------- */
.comments { margin-top: 34px; padding-top: 20px; border-top: 2px solid var(--line); }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 26px; }
.comment-form input, .comment-form textarea {
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px;
  font: inherit; font-size: .95rem; outline: none; background: var(--bg-soft);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--red); background: #fff; }
.comment-form button {
  align-self: flex-start; background: var(--red); color: #fff; border: none;
  border-radius: 24px; padding: 10px 26px; font-weight: 700; cursor: pointer;
  text-transform: uppercase; letter-spacing: .5px; font-size: .82rem;
}
.comment-form button:hover { background: var(--red-dark); }
.comment-form button:disabled { opacity: .6; cursor: default; }
.comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; align-items: baseline; gap: 10px; }
.comment-head b { font-size: .98rem; }
.comment-date { font-size: .78rem; color: var(--muted); }
.comment p { margin-top: 5px; color: var(--ink); }
.no-comments { color: var(--muted); font-style: italic; padding: 8px 0; }

/* ---------- ads ----------
   Reserved AdSense slots. They render NOTHING until real ad code is pasted
   inside (`:empty` hides them), so the site shows no ad boxes or the word
   "Advertisement" during Google's review. After approval, paste your AdSense
   <ins class="adsbygoogle"> snippet inside each <div class="ad-slot">. */
.ad-slot { margin: 24px 0; text-align: center; }
.ad-slot:empty { display: none; margin: 0; }

/* ---------- author byline (E-E-A-T) ---------- */
.byline { color: var(--muted); font-size: .9rem; margin: -4px 0 14px; }
.byline a { color: var(--muted); text-decoration: underline; }

/* ---------- share menu ---------- */
.action-bar { position: relative; }
.share-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.16); padding: 6px; min-width: 190px; z-index: 60;
}
.share-menu a, .share-menu button {
  display: block; width: 100%; text-align: left; box-sizing: border-box;
  padding: 10px 14px; border: 0; background: none; color: var(--ink);
  font: inherit; text-decoration: none; border-radius: 7px; cursor: pointer;
}
.share-menu a:hover, .share-menu button:hover { background: var(--bg-soft); }

/* ---------- FAQ (AEO) ---------- */
.faq { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.faq-item { margin: 14px 0; }
.faq-item h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.faq-item p { color: var(--ink); }

/* ---------- related recipes ---------- */
.related { margin-top: 34px; padding-top: 20px; border-top: 2px solid var(--line); }
.related h2 { font-size: 1.5rem; font-weight: 900; margin-bottom: 12px; }
.related .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--ink); color: #ececec; padding: 14px 4%;
  box-shadow: 0 -2px 14px rgba(0,0,0,.25);
}
.cookie-inner {
  max-width: 1100px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.cookie-inner p { font-size: .85rem; margin: 0; flex: 1; min-width: 240px; line-height: 1.5; }
.cookie-inner a { color: #fff; text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btns button {
  border: none; border-radius: 22px; padding: 10px 18px; font-weight: 700;
  font-size: .8rem; cursor: pointer; white-space: nowrap;
}
.cookie-reject { background: transparent; color: #ececec; border: 1px solid #777 !important; }
.cookie-reject:hover { border-color: #fff !important; }
.cookie-accept { background: var(--red); color: #fff; }
.cookie-accept:hover { background: var(--red-dark); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink); color: #cfc9c6; text-align: center;
  padding: 30px 4%; margin-top: 50px; font-size: .88rem;
}
.site-footer a { color: #fff; }

@media (max-width: 640px) {
  .header-top { flex-wrap: wrap; gap: 10px; }
  .search-box { order: 3; max-width: 100%; flex-basis: 100%; }
  .recipe h1 { font-size: 1.7rem; }
  .steps img { max-width: 100%; }
}

/* ---------- print ---------- */
@media print {
  .site-header, .site-footer, .ad-slot, .action-bar, .comments, .rating,
  .related, .cookie-banner, .faq { display: none !important; }
  body { background: #fff; }
  main { max-width: 100%; padding: 0; }
  .recipe .hero { max-height: 320px; }
  .steps img { max-width: 300px; }
  a { color: #000; text-decoration: none; }
}

/* ---------- contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 12px; max-width: 560px; margin: 18px 0 26px; }
.contact-form input, .contact-form textarea {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; width: 100%;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(214,65,35,.12);
}
.contact-form button {
  align-self: flex-start; background: var(--red); color: #fff; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; border-radius: 10px; padding: 12px 22px;
}
.contact-form button:hover { background: var(--red-dark); }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: .92rem; min-height: 1.2em; margin: 0; }
.form-status.ok { color: #1e7e34; font-weight: 600; }
.form-status.err { color: var(--red-dark); font-weight: 600; }

/* ---------- author (E-E-A-T) ---------- */
.author-card { display: flex; gap: 16px; align-items: center; margin: 4px 0 18px; }
.author-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--line); flex-shrink: 0; }
.author-box { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 26px 0; }
.author-box img { width: 66px; height: 66px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-box-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .6px;
  color: var(--muted); margin: 0 0 4px; font-weight: 700; }
.author-box p { margin: 0; }
.author-box a { color: var(--red); font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) {
  .author-card { flex-direction: column; text-align: center; align-items: center; }
  .author-photo { width: 108px; height: 108px; }
}

/* ---------- cheese guide pages ---------- */
.guide-note { background: var(--bg-soft); border-left: 4px solid var(--red);
  border-radius: 8px; padding: 12px 16px; margin: 16px 0; font-size: .95rem; color: var(--ink); }
.cheese-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px; margin: 18px 0; }
.cheese-facts > div { background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; }
.cheese-facts b { display: block; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .5px; color: var(--muted); margin-bottom: 3px; font-weight: 700; }
.cheese-facts span { font-weight: 600; }
