/* Mamma Italiana — stile che riproduce il sito originale (tema TinySalt su WordPress):
   titoli in Merriweather, testo in PT Serif, verde #4fd675, fasce verdi e crema,
   foto con angoli arrotondati, scheda ricetta come WP Recipe Maker. */

/* ---------- font (ospitati sul sito) ---------- */
@font-face { font-family: "Merriweather"; src: url("/assets/fonts/merriweather-latin.woff2") format("woff2-variations"); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Merriweather"; src: url("/assets/fonts/merriweather-cyrillic.woff2") format("woff2-variations"); font-weight: 300 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; src: url("/assets/fonts/pt-serif-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; src: url("/assets/fonts/pt-serif-cyrillic-400.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; src: url("/assets/fonts/pt-serif-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; src: url("/assets/fonts/pt-serif-cyrillic-700.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Serif"; src: url("/assets/fonts/pt-serif-latin-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Serif"; src: url("/assets/fonts/pt-serif-cyrillic-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- colori e misure del tema ---------- */
:root {
  --bg: #ffffff;
  --text: #000000;
  --text-body: #232323;
  --grey: #999999;
  --line: #e9e9e9;
  --green: #4fd675;
  --green-band: #a1d680;
  --green-band-2: #b1d69c;
  --cream: #fcf9f5;
  --red: #dd3333;
  --black: #000000;
  --radius: 16px;
  --heading: "Merriweather", Georgia, "Times New Roman", serif;
  --body: "PT Serif", Georgia, "Times New Roman", serif;
  --recipe: "Helvetica Neue", Helvetica, Arial, sans-serif;
  /* contenitore come nel tema originale: 1200 px, 1440 px dai 1440 px di schermo */
  --wrap: 1200px;
  --gutter: 20px;
  color-scheme: light;
}
@media (min-width: 600px) { :root { --gutter: 30px; } }
@media (min-width: 1440px) { :root { --wrap: 1440px; } }
@media (min-width: 1440px) and (max-width: 1500px) { :root { --gutter: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--green); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
h1, h2, h3, h4 { text-wrap: balance; }
.visually-hidden { 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-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; }
.skip-link:focus { left: 16px; }
.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- testata: logo al centro, menu a sinistra e a destra ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: #fff; box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05); }
.site-header__main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 173px; max-width: var(--wrap); margin-inline: auto; padding-inline: calc(var(--gutter) - 20px); }
.site-logo { justify-self: center; padding: 15px 0; }
.site-logo img { width: 500px; max-width: 100%; }
.primary-menu ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.primary-menu--right ul { justify-content: flex-end; }
.primary-menu li { position: relative; }
.primary-menu a { display: inline-flex; align-items: center; gap: 6px; padding: 0 15px; line-height: 100px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text); }
.primary-menu a:hover, .primary-menu a.is-current { color: var(--green); }
.icon-chevron { width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.sub-menu { position: absolute; left: 0; top: 80px; min-width: 240px; padding: 15px 0 !important; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); border-radius: 6px; display: block !important; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; z-index: 60; }
.sub-menu a { display: block; line-height: 1.4; padding: 9px 25px; font-weight: 400; letter-spacing: 0.5px; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.lang-switch { display: flex; align-items: center; gap: 2px; padding-left: 10px; }
.primary-menu .lang-switch a { padding: 0 4px; }
.lang-switch span { font-size: 12px; color: var(--grey); }
.lang-switch--mobile { display: none; font-size: 12px; font-weight: 700; letter-spacing: 1px; }
.lang-switch--mobile a { padding: 6px 3px; }
.lang-switch--mobile a.is-current { color: var(--green); }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 10px 8px; border: 0; background: none; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--text); transition: transform 0.2s, opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); padding: 10px var(--gutter) 25px; max-height: calc(100vh - 90px); overflow-y: auto; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu > ul > li > a { display: block; padding: 12px 0; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.mobile-menu ul ul a { display: block; padding: 8px 0 8px 18px; font-size: 15px; }

@media (max-width: 1100px) {
  .site-header__main { grid-template-columns: 48px 1fr 48px; min-height: 90px; padding-inline: 12px; }
  .primary-menu { display: none; }
  .menu-toggle { display: block; }
  .site-logo { padding: 10px 0; }
  .site-logo img { width: 250px; }
  .lang-switch--mobile { display: flex; justify-self: end; padding: 0; }
}

/* ---------- carosello della home ---------- */
.hero { position: relative; height: clamp(560px, calc(100vh - 160px), 660px); background: #111; overflow: hidden; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s ease, visibility 0.8s; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; height: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; }
.hero__card { display: flex; flex-direction: column; justify-content: center; width: 380px; max-width: 100%; min-height: 267px; padding: 70px 50px; border-radius: 15px; background: rgba(255, 255, 255, 0.95); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); text-align: center; }
.hero__title { margin: 0; font-family: var(--heading); font-size: 30px; font-weight: 500; line-height: 1.2; color: var(--text); }
.hero__card:hover .hero__title { color: var(--green); }
.hero__arrow { position: absolute; top: 50%; z-index: 2; width: 44px; height: 60px; margin-top: -30px; border: 0; background: none; cursor: pointer; }
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }
.hero__arrow svg { width: 14px; height: 24px; fill: none; stroke: #fff; stroke-width: 2.4; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
@media (max-width: 1119px) { .hero { height: 500px; } }
@media (max-width: 767px) { .hero__card { width: 320px; } }
/* telefono: foto alta 350 px e scheda bianca sotto, che la sormonta di 100 px */
@media (max-width: 599px) {
  .hero { height: auto; min-height: 450px; background: #fff; }
  .hero__slide { position: absolute; inset: 0; }
  .hero__img { height: 350px; bottom: auto; }
  .hero__inner { align-items: flex-start; justify-content: center; padding-top: 250px; padding-bottom: 40px; }
  .hero__card { width: calc(100% - 40px); max-width: 400px; min-height: 0; padding: 50px 30px; background: #fff; }
  .hero__title { font-size: 24px; }
  .hero__arrow { top: 175px; }
}

/* ---------- fascia verde con il consiglio ---------- */
.tip-band { background: var(--green-band); padding: 58px 0; text-align: center; }
.tip-band__list { list-style: none; margin: 0; padding: 0; }
.tip-band strong { display: block; font-family: var(--heading); font-size: 24px; font-weight: 900; line-height: 1.35; color: var(--text); }
@media (max-width: 767px) { .tip-band { padding: 40px 0; } .tip-band strong { font-size: 19px; } }

/* ---------- fascia crema con le categorie ---------- */
.cat-band { background: var(--cream); padding: 50px 0; }
.cat-band__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 30px 20px; }
.cat-band__list a { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.cat-band__img { display: block; width: 135px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.cat-band__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cat-band__list a:hover img { transform: scale(1.06); }
.cat-band__name { font-size: 12px; font-weight: 500; line-height: 1.6; letter-spacing: 0.6px; text-transform: uppercase; }
@media (max-width: 1100px) { .cat-band__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cat-band__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat-band__img { width: 120px; } }

/* ---------- griglia delle ricette ---------- */
.home-posts { padding: 50px 0 90px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 60px 40px; }
.post-card.is-hidden { display: none; }
.post-card__media { display: block; overflow: hidden; border-radius: var(--radius); }
.post-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.5s ease; }
.post-card__media:hover img { transform: scale(1.04); }
.post-card__title { margin: 25px 0 0; font-family: var(--heading); font-size: 21px; font-weight: 600; line-height: 1.2; }
.post-card--archive .post-card__title { font-size: 26px; line-height: 1.25; }
.cat-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--green); }
.post-card--archive .cat-label { margin-top: 20px; }
.post-card__excerpt { margin: 18px 0 22px; font-size: 17px; line-height: 1.75; color: var(--text-body); }
.read-more { display: inline-block; padding-bottom: 4px; border-bottom: 2px solid var(--green); font-size: 13px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; }
.load-more { margin: 70px 0 0; text-align: center; }
.load-more__btn { display: inline-block; padding: 5px 30px; border-radius: 999px; background: var(--black); color: #fff; font-size: 12px; font-weight: 500; line-height: 32px; letter-spacing: 2px; text-transform: uppercase; }
.load-more__btn:hover { background: var(--green); color: #fff; }
@media (max-width: 1023px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 45px 30px; } }
@media (max-width: 599px) { .post-grid { grid-template-columns: 1fr; } .post-card--archive .post-card__title { font-size: 22px; } }

/* ---------- fascia verde Masterclass ---------- */
.mc-band { background: var(--green-band-2); padding: 50px 0; }
.mc-band__head { position: relative; margin-bottom: 38px; text-align: center; }
.mc-band__title { margin: 0; font-family: var(--heading); font-size: 24px; font-weight: 500; line-height: 1.35; }
.mc-band__more { position: absolute; right: 0; bottom: 4px; font-size: 13px; font-weight: 500; }
.mc-band__more span { color: var(--green); }
.mc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.mc-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; }
.mc-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.mc-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1) 60%); }
.mc-card:hover img { transform: scale(1.04); }
.mc-card__title { position: absolute; left: 25px; right: 25px; bottom: 28px; z-index: 1; font-family: var(--heading); font-size: 22px; font-weight: 600; line-height: 1.2; color: #fff; }
.mc-card:hover .mc-card__title { color: #fff; }
@media (max-width: 1023px) { .mc-grid { grid-template-columns: 1fr 1fr; gap: 25px; } }
@media (max-width: 599px) { .mc-grid { grid-template-columns: 1fr; } .mc-band__more { position: static; display: inline-block; margin-top: 8px; } }

/* ---------- testata delle categorie ---------- */
.archive-banner { position: relative; height: 290px; overflow: hidden; background: #111; display: flex; align-items: center; justify-content: center; text-align: center; }
.archive-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.archive-banner__text { position: relative; padding-inline: var(--gutter); color: #fff; }
.archive-banner__label { display: block; margin-bottom: 12px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
.archive-banner__title { margin: 0; font-family: var(--heading); font-size: 50px; font-weight: 500; line-height: 1.2; }
.archive-list { padding-block: 50px 100px; }
.archive-empty { font-size: 18px; text-align: center; color: var(--text-body); }
@media (max-width: 767px) { .archive-banner { height: 220px; } .archive-banner__title { font-size: 34px; } }

/* ---------- pagine con barra laterale ---------- */
.page-columns { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 60px; padding-block: 50px 100px; align-items: start; }
@media (max-width: 1023px) { .page-columns { grid-template-columns: 1fr; } }
.entry-header { text-align: center; margin-bottom: 36px; }
.entry-meta { display: flex; justify-content: center; align-items: baseline; gap: 12px; font-size: 13px; font-weight: 500; }
.entry-meta__sep { color: var(--grey); }
.entry-title { margin: 12px 0 0; font-family: var(--heading); font-size: 46px; font-weight: 600; line-height: 1.2; }
@media (max-width: 767px) { .entry-title { font-size: 32px; } }
.featured-media { margin: 0; }
.featured-media img { width: 100%; }
.recipe-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 35px 0 60px; }
.mini-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 9px; border: 0; border-radius: 3px; background: var(--black); color: #fff; font-family: var(--body); font-size: 10px; font-weight: 600; line-height: 18px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.mini-btn:hover { background: var(--green); color: #fff; }
.mini-btn svg { width: 11px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.entry-content { font-size: 16px; line-height: 1.8; color: var(--text-body); }
.entry-content p { margin: 0 0 1.4em; }
.entry-content a, .rc-step__text a, .rc-notes__text a, .rc-wine__text a { color: var(--green); }
.entry-content ul { padding-left: 1.3em; }
.entry-content li { margin-bottom: 0.5em; }
.entry-content img { margin: 1.5em 0; }
.page-title { margin: 0 0 30px; font-family: var(--heading); font-size: 30px; font-weight: 600; line-height: 1.25; }

/* ---------- scheda ricetta (come WP Recipe Maker) ---------- */
.recipe-card { margin: 60px 0 40px; padding: 0 35px; font-family: var(--recipe); color: var(--text); }
.rc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.rc-name { margin: 0; font-family: var(--heading); font-size: 24px; font-weight: 600; line-height: 1.35; }
.rc-print { margin-top: 10px; padding: 4px; border: 0; background: none; cursor: pointer; }
.rc-print svg { width: 17px; height: 15px; fill: none; stroke: var(--text); stroke-width: 1.6; }
.rc-details { display: flex; flex-wrap: wrap; gap: 14px 50px; margin: 35px 0 0; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.rc-detail dt { font-size: 11px; font-weight: 800; line-height: 1.2; letter-spacing: 0.5px; text-transform: uppercase; }
.rc-detail dd { margin: 4px 0 0; font-size: 14px; }
.rc-servings { display: flex; align-items: center; gap: 4px; }
.rc-servings__btn { width: 20px; height: 20px; padding: 0; border: 1px solid #ccc; border-radius: 50%; background: #fff; font-family: var(--recipe); font-size: 13px; line-height: 17px; color: #666; cursor: pointer; }
.rc-servings__btn:hover { border-color: var(--green); color: var(--green); }
.rc-servings__btn:disabled { opacity: 0.35; cursor: default; }
.rc-servings__value { min-width: 1.6em; text-align: center; text-decoration: underline dotted var(--green); text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
.rc-heading { margin: 0 0 22px; font-family: var(--heading); font-size: 20px; font-weight: 400; line-height: 1.35; }
.rc-group { margin: 20px 0 10px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.rc-lists { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 45px 0 40px; border-bottom: 1px solid var(--line); }
.rc-lists--with-equipment { grid-template-columns: minmax(120px, auto) minmax(0, 1fr); gap: 40px; }
.rc-checklist { list-style: none; margin: 0; padding: 0; }
.rc-checklist li { position: relative; margin-bottom: 11px; font-size: 15px; line-height: 1.5; }
.rc-checklist label { display: block; cursor: pointer; }
.rc-checklist li > label, .rc-equipment .rc-checklist li { padding-left: 25px; }
.rc-tick { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rc-check { position: absolute; left: 0; top: 5px; width: 13px; height: 8px; border: solid var(--green); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.rc-tick:focus-visible + .rc-check { outline: 2px solid var(--green); outline-offset: 4px; }
.rc-tick:checked ~ .rc-ing { text-decoration: line-through; color: var(--grey); }
.rc-tick:checked + .rc-check { border-color: #ccc; }
.rc-ing__name { font-weight: 700; }
.rc-ing__note { color: var(--grey); }
.rc-instructions { padding: 45px 0 30px; border-bottom: 1px solid var(--line); }
.rc-steps { list-style: none; margin: 0; padding: 0; }
.rc-step { display: grid; grid-template-columns: 66px minmax(0, 1fr); margin-bottom: 26px; scroll-margin-top: 190px; }
.rc-step__num { padding-top: 3px; padding-left: 15px; font-size: 18px; font-weight: 700; color: var(--grey); }
.rc-step__text { font-size: 16px; line-height: 1.5; }
.rc-step__text p { margin: 0; }
.rc-step__img { margin: 18px 0 8px; }
.rc-step__img img { width: 100%; }
.rc-step__video video { width: 100%; background: #000; border-radius: 6px; }
.rc-summary { margin: -6px 0 26px; font-size: 16px; line-height: 1.6; color: var(--text-body); }
.rc-summary p { margin: 0 0 .8em; }
.rc-summary p:last-child { margin-bottom: 0; }
.rc-notes { padding: 45px 0 35px; border-bottom: 1px solid var(--line); }
.rc-notes__text { position: relative; padding-left: 50px; font-family: var(--body); font-size: 16px; line-height: 1.6; }
.rc-notes__text::before { content: "“"; position: absolute; left: 0; top: -12px; font-family: var(--heading); font-size: 60px; line-height: 1; color: var(--green); }
.rc-notes__text p { margin: 0 0 1em; }
.rc-notes__text img { margin: 30px 0 0 -50px; width: calc(100% + 50px); max-width: none; }
/* vino consigliato: stesso schema delle note, con un bicchiere al posto delle virgolette */
.rc-wine { padding: 45px 0 35px; border-bottom: 1px solid var(--line); }
.rc-wine__text { position: relative; min-height: 40px; padding-left: 50px; font-family: var(--body); font-size: 16px; line-height: 1.6; }
.rc-wine__text p { margin: 0 0 1em; }
.rc-wine__text p:last-child { margin-bottom: 0; }
.rc-wine__icon { position: absolute; left: 4px; top: 2px; width: 24px; height: 34px; fill: none; stroke: var(--text); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rc-wine__icon .rc-wine__fill { fill: #8e1b2c; stroke: none; }
/* colore del vino nel bicchiere (wine_type in meta.yaml) */
.rc-wine--bianco .rc-wine__fill { fill: #e2bf4a; }
.rc-wine--rosato .rc-wine__fill { fill: #e8828f; }
.rc-wine--bollicine .rc-wine__fill { fill: #ecd27a; }
.rc-wine--dolce .rc-wine__fill { fill: #d49a2a; }
@media (max-width: 767px) {
  .recipe-card { padding: 0; }
  .rc-lists--with-equipment { grid-template-columns: 1fr; }
  .rc-step { grid-template-columns: 40px minmax(0, 1fr); }
  .rc-step__num { padding-left: 0; }
}

/* ---------- condivisione ---------- */
.share-row { display: flex; align-items: center; gap: 30px; margin: 60px 0 0; }
.share-row__line { flex: 1; height: 1px; background: var(--line); }
.share-row__buttons { display: flex; gap: 5px; }
.share-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.share-btn:hover { color: #fff; opacity: 0.85; }
.share-btn svg { width: 17px; height: 17px; fill: currentColor; }
.share-btn--fb { background: #3b5998; }
.share-btn--x { background: #111; }
.share-btn--pin { background: #bd081c; }
.share-btn--wa { background: #4dc247; }

/* ---------- video delle masterclass ---------- */
.video-box { margin: 10px 0 0; }
.video-box video { width: 100%; background: #000; border-radius: 6px; }

/* ---------- pagina Chi sono ---------- */
.about-quote { position: relative; margin: 0; padding-left: 60px; font-size: 22px; line-height: 1.6; }
.about-quote::before { content: "“"; position: absolute; left: 0; top: -14px; font-family: var(--heading); font-size: 70px; line-height: 1; color: var(--green); }
.about-quote p { margin: 0 0 1em; }

/* ---------- pagina Contatti ---------- */
.contact-lead { margin: 0 0 30px; font-family: var(--body); font-size: 20px; font-weight: 700; }
.contact-form p { margin: 0 0 22px; }
.contact-form label { display: block; margin-bottom: 6px; font-size: 14px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px 15px; border: 1px solid #e5e5e5; border-radius: 6px; background: #fff; font: inherit; font-size: 15px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--green); }
.pill-btn { padding: 5px 34px; border: 0; border-radius: 999px; background: var(--black); color: #fff; font-size: 12px; font-weight: 700; line-height: 32px; letter-spacing: 2px; text-transform: uppercase; cursor: pointer; }
.pill-btn:hover { background: var(--green); }
.form-note { margin: 12px 0 0; font-size: 14px; color: var(--text-body); }
.contact-mail { margin: 34px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 17px; }
.contact-mail a { color: var(--green); font-weight: 700; white-space: nowrap; }
.contact-mail a:hover { text-decoration: underline; }

/* ---------- barra laterale ---------- */
.sidebar { display: grid; gap: 55px; }
@media (max-width: 1023px) { .sidebar { max-width: 420px; width: 100%; margin-inline: auto; } }
.widget-title { position: relative; margin: 0 0 25px; padding: 13px; border: 1px solid var(--green); font-family: var(--body); font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: 2px; text-align: center; text-transform: uppercase; }
.widget-title::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; margin-left: -4px; border: solid var(--green); border-width: 0 1px 1px 0; background: #fff; transform: rotate(45deg); }
.widget-about { text-align: center; }
.widget-about__photo { width: 150px; height: 150px; margin: 0 auto 22px; padding: 6px; border: 1.5px dashed var(--green); border-radius: 50%; }
.widget-about__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.widget-about__title { margin: 0 0 12px; font-family: var(--heading); font-size: 18px; font-weight: 400; }
.widget-about__text { font-size: 14px; line-height: 1.7; }
.widget-about__text p { margin: 0; }
.search-field { position: relative; }
.search-field svg { position: absolute; left: 20px; top: 50%; width: 16px; height: 16px; margin-top: -8px; fill: none; stroke: var(--green); stroke-width: 2.2; }
.search-field input { width: 100%; height: 48px; padding: 0 20px 0 46px; border: 1px solid #e5e5e5; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; }
.search-field input:focus { outline: none; border-color: var(--green); }
.search-results { list-style: none; margin: 10px 0 0; padding: 8px 0; border: 1px solid #eee; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06); }
.search-results li a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; font-size: 14px; line-height: 1.3; }
.search-results img { width: 42px; height: 42px; flex: none; object-fit: cover; border-radius: 50%; }
.search-results .search-results__none { padding: 8px 14px; font-size: 14px; color: var(--grey); }
.widget-categories ul { list-style: none; margin: 0; padding: 0; }
.widget-categories li { padding: 0 0 8px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 26px; }
.widget-categories li:last-child { border-bottom: 0; }
.widget-latest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.widget-latest li { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; align-items: center; }
.widget-latest__thumb { display: block; width: 80px; height: 80px; overflow: hidden; border-radius: 50%; }
.widget-latest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-latest__title { display: block; font-family: var(--heading); font-size: 16px; font-weight: 600; line-height: 1.3; }
.widget-latest__date { display: block; margin-top: 6px; font-size: 12px; color: var(--grey); }
.fb-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid #e5e5e5; background: #f6f7f9; font-family: var(--recipe); font-size: 14px; }
.fb-card img { border: 1px solid #ddd; background: #fff; }
.fb-card strong { display: block; color: #3b5998; font-weight: 500; font-size: 16px; }
.fb-card__cta { display: block; margin-top: 2px; font-size: 13px; color: #4b4f56; }
.widget-newsletter { position: relative; overflow: hidden; padding: 40px 30px 35px; border-top: 5px solid var(--green); box-shadow: 0 0 30px rgba(0, 0, 0, 0.08); text-align: center; }
.widget-newsletter h4 { position: relative; margin: 0 0 16px; font-family: var(--body); font-size: 22px; font-weight: 700; line-height: 1.1; }
.widget-newsletter p { position: relative; margin: 0 0 20px; font-size: 14px; line-height: 1.7; }
.widget-newsletter__envelope { position: absolute; right: 18px; top: 26px; width: 80px; transform: rotate(15deg); fill: none; stroke: #e7e7e7; stroke-width: 2.5; }
.widget-newsletter .nl-form { display: grid; gap: 10px; }
.widget-newsletter .nl-form input { width: 100%; height: 42px; padding: 0 15px; border: 0; background: #f4f4f4; font: inherit; font-size: 14px; }
.widget-newsletter .nl-form button { height: 42px; border: 0; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; cursor: pointer; }

/* ---------- piè di pagina ---------- */
.site-footer { margin-top: 0; }
.footer-logo { display: flex; align-items: center; height: 80px; }
.footer-logo__line { flex: 1; height: 1px; background: var(--red); }
.footer-logo img { margin: 0 20px; }
.footer-newsletter { padding: 40px 20px 80px; text-align: center; overflow: hidden; }
.footer-newsletter__inner { position: relative; max-width: 560px; margin: 0 auto; }
.footer-newsletter__envelope { position: absolute; left: 50%; top: -10px; width: 90px; margin-left: min(150px, calc(50vw - 115px)); transform: rotate(15deg); fill: none; stroke: #e2e2e2; stroke-width: 2.2; }
.footer-newsletter h2 { position: relative; margin: 0 0 22px; font-family: var(--body); font-size: 28px; font-weight: 700; line-height: 1.35; }
.footer-newsletter p { position: relative; margin: 0 0 30px; }
.footer-newsletter .nl-form { position: relative; width: 450px; max-width: 100%; margin: 0 auto; }
.footer-newsletter .nl-form input { width: 100%; height: 42px; padding: 5px 150px 5px 15px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.03); font: inherit; font-size: 14px; }
.footer-newsletter .nl-form button { position: absolute; right: 0; top: 0; width: 140px; height: 42px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 2.2px; text-transform: uppercase; cursor: pointer; }
.nl-form button:hover { background: #3cc262; }
.nl-form .nl-privacy { margin: 10px 0 0; font-size: 12px; line-height: 1.5; color: var(--grey); }
.footer-newsletter .nl-privacy { margin-top: 14px; }
.footer-bottom { background: var(--black); color: #fff; padding: 36px 20px; text-align: center; }
.footer-bottom p { margin: 0; font-size: 13px; line-height: 1.6; }
.heart { display: inline-block; color: #ff0000; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } }
.to-top { position: fixed; right: 20px; bottom: 40px; z-index: 40; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--black); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.6; }

/* ---------- movimento e stampa ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .site-footer, .to-top, .sidebar, .recipe-buttons, .share-row, .rc-print, .rc-servings__btn, .featured-media, .entry-content, .entry-meta, .rc-step__img, .rc-notes__text img { display: none !important; }
  .page-columns { display: block; padding: 0; }
  .recipe-card { margin: 0; padding: 0; }
  body { font-size: 11pt; }
}
