/* Punto Cottura — foglio di stile del sito
   Carta calda, rosso pomodoro, giallo zafferano, verde basilico. Titoli in Young Serif, testo in Figtree. */

:root {
  --bg: #FBF7F0;
  --bg-alt: #F4ECDF;
  --card: #FFFFFF;
  --line: #E9E1D3;
  --line-soft: #F1EBE0;
  --ink: #22201B;
  --ink-2: #3D3A33;
  --muted: #6B655A;
  --primary: #B83A22;
  --primary-soft: #FBE3DA;
  --accent: #F2B33D;
  --accent-soft: #FDF0D2;
  --green: #2F5D3A;
  --green-soft: #E3EEDF;
  --radius-l: 28px;
  --radius-m: 20px;
  --f-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --f-ui: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 32px;
  --shadow: 0 1px 2px rgba(34, 32, 27, .06), 0 8px 24px -12px rgba(34, 32, 27, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.label--red { color: var(--primary); }
.label--green { color: var(--green); }
.red { color: var(--primary); }
.center { text-align: center; }
.h-xl { font-family: var(--f-display); font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.h-l { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; margin: 0; }
.h-m { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; margin: 0; }
.squiggle { background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 88%, transparent 88%); padding: 0 .08em; }

/* ---------- Pulsanti, chip, badge ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s ease, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { color: #fff; background: #9F3019; }
.btn--ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.icon-btn svg { width: 19px; height: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--accent-soft); color: #6B4A00; text-decoration: none; white-space: nowrap; }
.badge--red { background: var(--primary-soft); color: #8E2B17; }
.badge--green { background: var(--green-soft); color: var(--green); }
.badge--ink { background: var(--ink); color: #fff; }
.badge svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.topbar { background: var(--green); color: #F4F1E8; font-size: 14px; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 240, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo__pot { width: 38px; height: 38px; flex: none; }
.logo__txt { font-family: var(--f-display); font-size: 25px; line-height: 1; }
.logo__txt b { color: var(--primary); font-weight: 400; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 16px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }
.nav__link:hover, .nav__link.is-active { background: var(--primary-soft); color: #8E2B17; }
.nav__link svg { width: 13px; height: 13px; }
.nav__sub { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .15s ease; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.nav__sub--one { grid-template-columns: minmax(0, 1fr); }
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-size: 15px; font-weight: 600; }
.nav__sub a:hover { background: var(--bg); color: var(--primary); }
.nav__sub .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.nav__sub .all { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); margin-top: 4px; color: var(--primary); }
.header__actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.menu-btn { display: none; }
.search-panel { display: none; border-top: 1px solid var(--line); background: var(--card); }
.search-panel.is-open { display: block; }
.search-form { display: flex; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.search-form input, .search-big input { flex: 1; height: 54px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--line); background: var(--bg); font-size: 17px; }
.search-big { display: flex; gap: 10px; max-width: 720px; margin-top: 28px; }

/* ---------- Sezioni ---------- */
.sec { padding-top: 64px; padding-bottom: 64px; }
.sec--alt { background: var(--bg-alt); }
.sec--white { background: var(--card); }
.sec--accent { background: var(--accent-soft); }
.sec--green { background: var(--green); color: #F4F1E8; }
.sec--round { border-radius: 40px 40px 0 0; }
.sp-compact { padding-top: 36px; padding-bottom: 36px; }
.sp-none { padding-top: 0; padding-bottom: 0; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.sec-head p { margin: 8px 0 0; max-width: 560px; color: var(--muted); }
.sec-head__more { font-weight: 700; color: var(--primary); text-decoration: none; white-space: nowrap; }
.sec-head__more:hover { text-decoration: underline; }
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: 1 / -1; }

/* ---------- Copertine: foto reali o illustrazione "piatto sulla tovaglia" ---------- */
.cover { position: relative; overflow: hidden; border-radius: var(--radius-m); width: 100%; background-color: var(--c2, #F4ECDF); }
.cover--img img { width: 100%; height: 100%; object-fit: cover; }
.cover--art {
  background-color: var(--c2);
  background-image:
    repeating-linear-gradient(0deg, var(--c1t) 0 22px, transparent 22px 44px),
    repeating-linear-gradient(90deg, var(--c1t) 0 22px, transparent 22px 44px);
}
.cover--art { container-type: size; }
.cover i { position: absolute; display: block; --u: min(1cqw, 1.3333cqh); }
.plate { width: calc(62 * var(--u)); aspect-ratio: 1; left: calc(50% - 31 * var(--u)); top: 50%; transform: translateY(-50%); border-radius: 50%; background: #FFFDF8; box-shadow: 0 0 0 10px #F3EDE2 inset, 0 14px 30px -12px rgba(34, 32, 27, .45); }
.food { width: calc(36 * var(--u)); aspect-ratio: 1; left: calc(50% - 18 * var(--u)); top: 50%; transform: translateY(-50%); border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%; background: var(--c1); }
.food--b { width: calc(22 * var(--u)); left: calc(50% - 5 * var(--u)); top: calc(50% - 7.5 * var(--u)); border-radius: 50%; background: var(--c3); opacity: .95; }
.leaf { width: calc(7 * var(--u)); aspect-ratio: 1.6; border-radius: 0 100% 0 100%; background: #3F7A45; }
.leaf--1 { left: calc(50% - 10 * var(--u)); top: calc(50% - 12 * var(--u)); transform: rotate(-20deg); } .leaf--2 { left: calc(50% + 4 * var(--u)); top: calc(50% + 6 * var(--u)); transform: rotate(30deg); }
.cutlery { width: calc(3 * var(--u)); height: calc(46.5 * var(--u)); top: 50%; transform: translateY(-50%); border-radius: 999px; background: #CFC6B6; }
.cutlery--l { left: calc(50% - 41 * var(--u)); } .cutlery--r { left: calc(50% + 38 * var(--u)); }
.cover--bowl .plate { width: calc(58 * var(--u)); left: calc(50% - 29 * var(--u)); }
.cover--bowl .food { border-radius: 50%; width: calc(42 * var(--u)); left: calc(50% - 21 * var(--u)); }
.cover--board .plate { width: calc(74 * var(--u)); height: calc(40.5 * var(--u)); aspect-ratio: auto; left: calc(50% - 37 * var(--u)); border-radius: 26px; background: #C9925A; box-shadow: 0 14px 30px -12px rgba(34, 32, 27, .45), inset 0 -6px 0 rgba(0,0,0,.08); }
.cover--board .food { width: calc(20 * var(--u)); left: calc(50% - 26 * var(--u)); } .cover--board .food--b { left: calc(50% + 4 * var(--u)); top: 50%; width: calc(18 * var(--u)); }
.cover--slice .food { clip-path: polygon(50% 0, 100% 100%, 0 100%); border-radius: 0; width: calc(34 * var(--u)); left: calc(50% - 17 * var(--u)); }

/* ---------- Card ricette e articoli ---------- */
.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; position: relative; }
.card:hover { color: inherit; }
.card:hover .card__title { color: var(--primary); }
.card__media { position: relative; }
.card__time { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 253, 248, .95); font-size: 14px; font-weight: 700; color: var(--ink); }
.card__time svg { width: 15px; height: 15px; }
.card__type { position: absolute; right: 12px; top: 12px; }
.card__cat { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--primary); }
.card__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 22px; line-height: 1.2; transition: color .15s; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); }
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__meta svg { width: 15px; height: 15px; }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.card--boxed { background: var(--card); border-radius: var(--radius-m); padding: 12px 12px 20px; box-shadow: var(--shadow); }
.card--boxed > :not(.card__media) { padding: 0 8px; }
.card--row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: center; background: var(--card); border-radius: var(--radius-m); padding: 12px; box-shadow: var(--shadow); }
.card--row .card__title { font-size: 24px; }
.card--row > div:last-child { display: flex; flex-direction: column; gap: 8px; padding-right: 12px; }
.card--mini { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.card--mini .card__title { font-size: 18px; }
.card--article .card__title { font-size: 24px; }
.card--big .card__title { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; }
.card--big .card__excerpt { font-size: 18px; }
.card[hidden] { display: none; }

/* ---------- Hero / in primo piano ---------- */
.hero { padding-top: 40px; padding-bottom: 56px; }
.hero__grid { align-items: start; }
.hero__side { background: var(--card); border-radius: var(--radius-l); padding: 18px 24px 8px; box-shadow: var(--shadow); }
.hero__side h2 { font-family: var(--f-display); font-weight: 400; font-size: 24px; margin: 4px 0 6px; }

/* ---------- Portate (tile rotonde) ---------- */
.courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.course { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; text-align: center; }
.course .cover { border-radius: 50%; width: 100%; max-width: 160px; aspect-ratio: 1; transition: transform .2s; }
.course:hover .cover { transform: rotate(-6deg) scale(1.03); }
.course strong { font-family: var(--f-display); font-weight: 400; font-size: 21px; }
.course small { font-size: 14px; color: var(--muted); }

/* ---------- Focus sezione ---------- */
.focus { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; }
.focus__intro { grid-column: span 5; }
.focus__intro h2 { margin: 10px 0 14px; }
.focus__intro p { margin: 0 0 22px; color: var(--ink-2); font-size: 18px; }
.focus__list { grid-column: span 7; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* ---------- Glossario, FAQ ---------- */
.gloss { margin: 0; padding: 22px; border-radius: var(--radius-m); background: var(--card); display: flex; flex-direction: column; gap: 8px; text-decoration: none; box-shadow: var(--shadow); }
.gloss dt { font-family: var(--f-display); font-size: 21px; color: var(--primary); }
.gloss dd { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 24px; line-height: 1; font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 10px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 720px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Blocchi liberi ---------- */
.prose-blk { font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 760px; }
.prose-blk.is-wide { max-width: none; }
.prose-blk h2 { font-family: var(--f-display); font-weight: 400; font-size: 30px; color: var(--ink); margin: 1.4em 0 .5em; line-height: 1.15; }
.prose-blk h3 { font-size: 21px; color: var(--ink); margin: 1.2em 0 .4em; }
.prose-blk a { color: var(--primary); }
.cta { border-radius: var(--radius-l); padding: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta--accent { background: var(--accent-soft); }
.cta--primary { background: var(--primary); color: #fff; }
.cta--primary .btn--primary { background: #fff; color: var(--primary); }
.cta--outline { background: var(--card); box-shadow: var(--shadow); }
.cta p { margin: 10px 0 0; font-size: 18px; max-width: 620px; }
.quote-blk { max-width: 860px; margin: 0 auto; text-align: center; }
.quote-blk p { margin: 0; font-family: var(--f-display); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.25; }
.quote-blk cite { display: block; margin-top: 14px; font-style: normal; }
.fig { margin: 0; }
.fig img { border-radius: var(--radius-m); width: 100%; }
.fig figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.box { background: var(--card); border-radius: var(--radius-m); padding: 26px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
a.box:hover { color: inherit; outline: 2px solid var(--primary); }
.box h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 23px; }
.box p { margin: 0; color: var(--ink-2); }

/* ---------- Pagine elenco e sezione ---------- */
.crumbs { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.crumbs a { color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-head { padding-top: 32px; padding-bottom: 36px; }
.page-head h1 { margin: 0 0 12px; }
.page-head .lead { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 760px; }
.page-head--tinted { background: var(--accent-soft); border-bottom: 1px solid #F3E2B8; }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; background: var(--card); border-radius: var(--radius-m); padding: 14px 18px; box-shadow: var(--shadow); margin-bottom: 28px; }
.filters .lbl { font-size: 14px; font-weight: 700; color: var(--muted); }
.filters .chip { min-height: 38px; font-size: 14px; }
.start { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: center; background: var(--card); border-radius: var(--radius-l); padding: 14px; box-shadow: var(--shadow); text-decoration: none; margin-bottom: 40px; }
.start:hover { color: inherit; }
.start:hover h2 { color: var(--primary); }
.start h2 { margin: 10px 0 10px; }
.start p { margin: 0 0 12px; color: var(--ink-2); }
.start > div:last-child { padding: 10px 20px 10px 0; }
.list-stack { display: flex; flex-direction: column; gap: 16px; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.pager__n { display: flex; gap: 8px; flex-wrap: wrap; }
.pager__n a, .pager__n span { min-width: 46px; height: 46px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; }
.pager__n [aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty-msg { background: var(--card); border-radius: var(--radius-m); padding: 28px; text-align: center; color: var(--muted); }

/* ---------- Articolo ---------- */
.a-head { padding-top: 32px; padding-bottom: 28px; }
.a-title { margin: 14px 0 16px; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; }
.a-standfirst { margin: 0 0 22px; font-size: 20px; line-height: 1.55; color: var(--ink-2); }
.a-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.a-author { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.a-author a { font-weight: 700; text-decoration: none; }
.a-author .muted { color: var(--muted); font-size: 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 17px; flex: none; text-decoration: none; color: var(--ink); }
.avatar--l { width: 60px; height: 60px; font-size: 21px; }
.a-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.a-cover { margin: 0 auto 8px; max-width: 1100px; }
.a-cover .cover { border-radius: var(--radius-l); }
.a-cover figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.box-brief { border-radius: var(--radius-m); background: var(--green-soft); padding: 22px 26px; margin: 28px 0; }
.box-brief h2 { margin: 0 0 10px; font-size: 16px; font-weight: 800; color: var(--green); letter-spacing: .04em; text-transform: uppercase; }
.box-brief ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.toc { border: 2px solid var(--line); border-radius: var(--radius-m); padding: 16px 22px; background: var(--card); }
.toc summary { cursor: pointer; font-weight: 800; }
.toc ol { margin: 12px 0 4px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.toc a { color: var(--primary); }
.prose { font-size: 19px; line-height: 1.75; color: var(--ink-2); overflow-wrap: break-word; }
.prose > * { margin-top: 0; margin-bottom: 22px; }
.prose h2 { margin: 48px 0 16px; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.15; color: var(--ink); scroll-margin-top: 100px; }
.prose h3 { margin: 32px 0 10px; font-size: 22px; font-weight: 800; color: var(--ink); scroll-margin-top: 100px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose a.ilink { color: var(--ink); text-decoration: none; font-weight: 600; background: linear-gradient(transparent 60%, var(--accent-soft) 60%); box-shadow: inset 0 -2px 0 var(--accent); }
.prose a.ilink:hover { background: var(--accent-soft); color: var(--primary); }
.prose blockquote { margin: 36px 0; padding: 22px 26px; border-radius: var(--radius-m); background: var(--accent-soft); font-family: var(--f-display); font-size: 24px; line-height: 1.3; color: var(--ink); }
.prose blockquote p { margin: 0; }
.prose strong { color: var(--ink); }
.prose figure { margin: 32px 0; }
.prose figure img, .prose > img { border-radius: var(--radius-m); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius-m); }
.table-wrap { overflow-x: auto; border-radius: var(--radius-m); background: var(--card); box-shadow: var(--shadow); margin: 8px 0 32px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; min-width: 520px; margin: 0; }
.prose caption { text-align: left; padding: 16px 18px 0; font-weight: 800; font-size: 14px; color: var(--primary); text-transform: uppercase; letter-spacing: .05em; }
.prose th, .prose td { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.prose thead th { background: var(--bg); }
.prose tbody tr:last-child th, .prose tbody tr:last-child td { border-bottom: 0; }
.a-faq { margin-top: 48px; }
.author-box { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin-top: 40px; padding: 24px; border-radius: var(--radius-m); background: var(--card); box-shadow: var(--shadow); }
.author-box > div { flex: 1 1 240px; }
.author-box strong { display: block; font-size: 17px; margin-bottom: 4px; }
.author-box p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.linked-recipes { margin: 40px 0; padding: 26px; border-radius: var(--radius-l); background: var(--primary-soft); }
.linked-recipes h2 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 400; font-size: 28px; }
.linked-recipes > p { margin: 0 0 18px; color: var(--ink-2); }

/* ---------- Ricetta ---------- */
.r-head { padding-top: 28px; padding-bottom: 8px; }
.r-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.r-top .cover { border-radius: 50% 50% var(--radius-l) var(--radius-l); }
.r-rating { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 20px; height: 20px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.fact { background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.fact dt { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 4px 0 0; font-family: var(--f-display); font-size: 20px; line-height: 1.2; }
.r-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.r-body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; align-items: start; padding-top: 40px; }
.r-card { background: var(--card); border-radius: var(--radius-l); box-shadow: var(--shadow); padding: 30px; scroll-margin-top: 90px; }
.r-card + .r-card { margin-top: 24px; }
.r-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 18px; }
.r-card__head h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 30px; }
.servings { display: inline-flex; align-items: center; gap: 4px; background: var(--bg); border-radius: 999px; padding: 4px; }
.servings button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--card); font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.servings output { min-width: 92px; text-align: center; font-weight: 700; font-size: 15px; }
.ing-group + .ing-group { margin-top: 18px; }
.ing-group h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--green); }
.ing { list-style: none; margin: 0; padding: 0; }
.ing li { border-bottom: 1px dashed var(--line); }
.ing label { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; cursor: pointer; font-size: 17px; line-height: 1.4; }
.ing input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.ing b { font-weight: 800; }
.ing input:checked + span { color: var(--muted); text-decoration: line-through; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: flex; flex-direction: column; gap: 4px; }
.step { counter-increment: st; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-soft); scroll-margin-top: 90px; }
.step:first-child { border-top: 0; }
.step::before { content: counter(st); width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-size: 21px; }
.step h3 { margin: 6px 0 6px; font-size: 19px; font-weight: 800; }
.step p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.step.is-done::before { content: "✓"; background: var(--green); }
.step.is-done p, .step.is-done h3 { color: var(--muted); }
.step__done { margin-top: 10px; background: none; border: 0; padding: 0; color: var(--green); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tipbox { border-radius: var(--radius-m); padding: 20px 22px; background: var(--accent-soft); }
.tipbox + .tipbox { margin-top: 14px; }
.tipbox h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.tipbox p { margin: 0 0 8px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.tipbox p:last-child { margin-bottom: 0; }
.tipbox--green { background: var(--green-soft); }
.r-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.side-box { background: var(--card); border-radius: var(--radius-m); padding: 22px; box-shadow: var(--shadow); }
.side-box h2 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.side-box > p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.rate { display: flex; gap: 4px; margin: 6px 0 4px; }
.rate button { width: 44px; height: 44px; border: 0; background: var(--bg); border-radius: 12px; cursor: pointer; color: #CFC6B6; }
.rate button svg { width: 24px; height: 24px; }
.rate button.on, .rate button:hover, .rate button:hover ~ button { color: var(--accent); }
.rate:hover button { color: var(--accent); }
.rate button:hover ~ button { color: #CFC6B6; }
.rate__msg { font-size: 14px; font-weight: 700; color: var(--green); min-height: 1.4em; margin: 0; }
.nutri { width: 100%; border-collapse: collapse; font-size: 15px; }
.nutri td { padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.nutri td:last-child { text-align: right; font-weight: 700; }
.video-embed { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: var(--radius-m); }
.wake.is-on { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E9E4D8; margin-top: 64px; padding-top: 52px; padding-bottom: 28px; }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer__cols { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__cols h2 { margin: 0 0 12px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer__brand .logo__txt { color: #fff; }
.footer__brand p { margin: 14px 0 0; color: #C9C2B3; max-width: 360px; font-size: 15px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #3D3A33; font-size: 13px; color: #C9C2B3; }

/* ---------- Varie ---------- */
.empty { padding: 96px 0; text-align: center; }
.author-hero { display: flex; gap: 22px; align-items: center; }
.author-hero .avatar { width: 92px; height: 92px; font-size: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__link { padding: 10px 10px; font-size: 15px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  :root { --gutter: 20px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 12px; right: 12px; top: calc(100% + 4px); flex-direction: column; align-items: stretch; background: var(--card); border-radius: 22px; padding: 10px; box-shadow: var(--shadow); margin: 0; }
  .nav.is-open { display: flex; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 6px 10px; min-width: 0; }
  .nav__sub::before { display: none; }
  .header__in { position: relative; }
  .g-12, .r-body, .r-top, .focus { grid-template-columns: minmax(0, 1fr); }
  .g-12 > *, .focus > * { grid-column: auto !important; }
  .r-side { position: static; }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .start { grid-template-columns: minmax(0, 1fr); }
  .start > div:last-child { padding: 4px 10px 12px; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .sec { padding-top: 44px; padding-bottom: 44px; }
  .g-2, .g-3, .g-4, .focus__list { grid-template-columns: minmax(0, 1fr); }
  .grid > .span-2 { grid-column: auto; }
  .card--row { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
  .card--row .card__title { font-size: 19px; }
  .card--row .card__excerpt { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { padding: 30px 22px; }
  .r-card { padding: 22px 18px; }
  .step { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .step::before { width: 38px; height: 38px; font-size: 18px; }
  .prose { font-size: 18px; }
  .footer__cols { grid-template-columns: minmax(0, 1fr); }
  .logo__txt { font-size: 21px; }
  .topbar__in span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Stampa: solo la ricetta ---------- */
@media print {
  body { background: #fff; font-size: 12pt; }
  .topbar, .site-header, .site-footer, .r-side, .a-actions, .r-jump, .related, .no-print, .servings button, .step__done, .card__time { display: none !important; }
  .r-body, .r-top { display: block; }
  .r-top .cover { display: none; }
  .r-card { box-shadow: none; padding: 0; margin-top: 18pt; }
  .ing input { display: none; }
  .step::before { background: none; color: #000; border: 1pt solid #000; }
  a { text-decoration: none; color: #000; }
}
