:root {
        --ink: #241f1a;
        --muted: #6e665e;
        --paper: #fffdf8;
        --surface: #f7f2e8;
        --surface-strong: #eee5d6;
        --line: #ded5c8;
        --accent: #a33a2b;
        --accent-dark: #772a20;
        --green: #435d46;
        --white: #ffffff;
        --shadow-sm: 0 8px 26px rgba(47, 38, 28, .08);
        --shadow-md: 0 18px 55px rgba(47, 38, 28, .13);
        --card-shadow: 0 10px 30px rgba(47, 38, 28, .10), 0 2px 8px rgba(47, 38, 28, .05);
        --card-shadow-hover: 0 16px 38px rgba(47, 38, 28, .14), 0 4px 10px rgba(47, 38, 28, .06);
        --radius-sm: 12px;
        --radius: 20px;
        --radius-lg: 30px;
        --max: 1240px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
        margin: 0;
        color: var(--ink);
        background: var(--paper);
        font-family: Arial, Helvetica, sans-serif;
        line-height: 1.6;
        -webkit-font-smoothing: antialiased;
    }
    img { display: block; max-width: 100%; }
    a { color: inherit; text-decoration: none; }
    button, input, select { font: inherit; }
    button, summary, select { cursor: pointer; }
    :focus-visible { outline: 3px solid rgba(163, 58, 43, .35); outline-offset: 3px; }
    .container { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
    .skip-link {
        position: fixed; left: 12px; top: 12px; z-index: 1000; transform: translateY(-180%);
        background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: 8px;
    }
    .skip-link:focus { transform: translateY(0); }

    /* Header */
    .site-header { position: relative; z-index: 30; background: rgba(255, 253, 248, .97); border-bottom: 1px solid var(--line); }
    .masthead { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 96px; }
    .brand { display: flex; align-items: center; gap: 15px; min-width: 0; }
    .brand img { width: 62px; height: auto; flex: 0 0 auto; }
    .brand__text { min-width: 0; }
    .brand h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.2rem, 2.1vw, 1.7rem); line-height: 1.05; letter-spacing: -.025em; }
    .brand p { margin: 7px 0 0; color: var(--muted); font-size: .87rem; letter-spacing: .08em; text-transform: uppercase; }
    .socials { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
    .social-link {
        display: inline-flex; align-items: center; justify-content: center;
        width: 32px; height: 32px; flex: 0 0 32px;
        border: 1px solid var(--line); border-radius: 50%;
        color: var(--muted); transition: .2s ease; overflow: hidden;
    }
    .socials .social-link svg {
        display: block; width: 14px !important; height: 14px !important;
        min-width: 14px; min-height: 14px; max-width: 14px; max-height: 14px;
        flex: 0 0 14px; fill: currentColor;
    }
    .social-link:hover { color: var(--white); background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

    .nav-shell { border-top: 1px solid var(--line); }
    .main-nav { display: flex; align-items: center; gap: 6px; min-height: 58px; }
    .main-nav > a, .nav-menu > summary {
        display: inline-flex; align-items: center; gap: 7px; padding: 10px 13px; border-radius: 999px;
        font-size: .92rem; font-weight: 750; color: #3b342e; list-style: none;
    }
    .main-nav > a:hover, .nav-menu > summary:hover, .nav-menu[open] > summary { background: var(--surface-strong); }
    .nav-menu { position: relative; }
    .nav-menu > summary::-webkit-details-marker { display: none; }
    .nav-menu > summary::after { content: '⌄'; font-size: .85em; }
    .nav-popover {
        position: absolute; top: calc(100% + 7px); left: 0; z-index: 50; min-width: 240px; max-height: min(72vh, 560px); overflow: auto;
        padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-md);
        display: grid; grid-template-columns: 1fr; gap: 2px;
    }
    .nav-popover.regions { width: 620px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .nav-popover a { padding: 9px 11px; border-radius: 9px; color: #4a423b; font-size: .9rem; }
    .nav-popover a:hover { background: var(--surface); color: var(--accent-dark); }


    /* Responsive navigation: desktop first, burger on small screens */
    .nav-mobile-bar,
    .nav-toggle {
        display: none !important;
    }

    .nav-toggle {
        appearance: none;
        -webkit-appearance: none;
        border: 0;
        outline: 0;
        background: transparent;
        color: #302923;
        font: inherit;
        font-size: .88rem;
        font-weight: 800;
        align-items: center;
        gap: 10px;
        padding: 9px 2px;
        cursor: pointer;
    }

    .nav-toggle__icon {
        width: 22px;
        height: 16px;
        display: inline-flex;
        flex-direction: column;
        justify-content: space-between;
        flex: 0 0 22px;
    }

    .nav-toggle__icon span {
        display: block;
        width: 22px;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
        transform-origin: center;
        transition: transform .2s ease, opacity .2s ease;
    }

    @media (min-width: 821px) {
        .nav-mobile-bar,
        .nav-toggle {
            display: none !important;
        }

        #primary-nav.main-nav {
            display: flex !important;
        }
    }

    @media (max-width: 820px) {
        .nav-shell {
            overflow: visible !important;
        }

        .nav-mobile-bar {
            display: flex !important;
            min-height: 50px;
            align-items: center;
        }

        .nav-toggle {
            display: inline-flex !important;
        }

        #primary-nav.main-nav {
            display: none !important;
            width: min(calc(100% - 22px), var(--max)) !important;
            min-width: 0 !important;
            min-height: 0 !important;
            margin-inline: auto !important;
            padding: 5px 0 14px !important;
            flex-direction: column !important;
            align-items: stretch !important;
            gap: 3px !important;
            border-top: 1px solid var(--line);
            background: var(--paper, #fffdf8);
        }

        .nav-shell.is-open #primary-nav.main-nav {
            display: flex !important;
        }

        .nav-shell.is-open .nav-toggle__icon span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }
        .nav-shell.is-open .nav-toggle__icon span:nth-child(2) {
            opacity: 0;
        }
        .nav-shell.is-open .nav-toggle__icon span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        #primary-nav.main-nav > a,
        #primary-nav.main-nav .nav-menu > summary {
            width: 100%;
            justify-content: space-between;
            border-radius: 10px;
            padding: 11px 12px;
        }

        #primary-nav.main-nav .nav-menu {
            width: 100%;
        }

        #primary-nav.main-nav .nav-popover,
        #primary-nav.main-nav .nav-popover.regions {
            position: static !important;
            inset: auto !important;
            width: 100% !important;
            max-height: none !important;
            margin: 2px 0 7px !important;
            padding: 7px !important;
            border: 0 !important;
            border-radius: 12px !important;
            box-shadow: none !important;
            background: var(--surface, #f7f2e8) !important;
        }

        #primary-nav.main-nav .nav-popover.regions {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        }

        #primary-nav.main-nav .nav-popover a {
            padding: 9px 10px;
        }
    }

    @media (max-width: 560px) {
        #primary-nav.main-nav .nav-popover.regions {
            grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
            gap: 4px !important;
        }

        #primary-nav.main-nav .nav-popover.regions a {
            padding: 8px 7px !important;
            font-size: .82rem !important;
            line-height: 1.25 !important;
            white-space: normal !important;
        }
    }

    /* Hero */
    .hero { position: relative; min-height: clamp(390px, 58vw, 650px); overflow: hidden; background: #30271f; }
    .hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 19, 15, .78) 0%, rgba(23, 19, 15, .43) 45%, rgba(23, 19, 15, .12) 100%); }
    .hero__content { position: relative; z-index: 2; display: flex; align-items: center; min-height: clamp(390px, 58vw, 650px); padding-block: 64px; }
    .hero__copy { width: min(680px, 92%); color: var(--white); }
    .kicker { margin: 0 0 12px; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
    .hero h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.85rem, 4.2vw, 3.4rem); line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
    .hero p { max-width: 600px; margin: 22px 0 0; font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255,255,255,.9); }
    .hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
    .button {
        display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid transparent;
        border-radius: 999px; font-family: inherit; font-weight: 800; font-size: .9rem; cursor: pointer; appearance: none; transition: .2s ease;
    }
    .button--primary { background: var(--accent); color: var(--white); }
    .button--primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
    .button--ghost { border-color: rgba(255,255,255,.58); color: var(--white); background: rgba(255,255,255,.08); backdrop-filter: blur(6px); }
    .button--ghost:hover { background: rgba(255,255,255,.18); }

    /* Homepage hero - coordinated with the new Ricette Regionali identity */
    .hero--home {
        min-height: clamp(410px, 38vw, 590px);
        background: #f4ead8;
    }
    .hero--home::after {
        background: linear-gradient(90deg, rgba(250,246,237,.72) 0%, rgba(250,246,237,.56) 24%, rgba(250,246,237,.16) 47%, rgba(250,246,237,0) 64%);
    }
    .hero__media--home {
        object-position: center center;
    }
    .hero__content--home {
        min-height: clamp(410px, 38vw, 590px);
        padding-block: 54px;
    }
    .hero__copy--home {
        width: min(500px, 44vw);
        color: #2b2118;
        text-shadow: none;
    }
    .hero--home .home-hero__title {
        display: grid;
        margin: 0;
        color: #2a2017;
        font-family: Georgia, 'Times New Roman', serif;
        font-size: clamp(3rem, 5.2vw, 5.15rem);
        line-height: .82;
        letter-spacing: -.055em;
        font-weight: 700;
        text-wrap: initial;
    }
    .hero--home .home-hero__title span { display: block; }
    .hero--home .home-hero__subtitle {
        max-width: 430px;
        margin: 26px 0 0;
        color: #665a4b;
        font-family: Georgia, 'Times New Roman', serif;
        font-size: clamp(1.25rem, 2vw, 1.85rem);
        line-height: 1.18;
        letter-spacing: .025em;
    }
    .home-hero__tricolor {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        width: 170px;
        height: 6px;
        margin-top: 24px;
        overflow: hidden;
        border-radius: 999px;
        box-shadow: 0 1px 0 rgba(0,0,0,.06);
    }
    .home-hero__tricolor span:nth-child(1) { background: #477247; }
    .home-hero__tricolor span:nth-child(2) { background: #f7f4ed; }
    .home-hero__tricolor span:nth-child(3) { background: #b73c2f; }
    .hero--home .home-hero__motto {
        max-width: none;
        margin: 18px 0 0;
        color: #695d50;
        font-size: clamp(.66rem, .9vw, .79rem);
        font-weight: 700;
        letter-spacing: .22em;
        line-height: 1.45;
        text-transform: uppercase;
        white-space: nowrap;
    }
    .hero--home .home-hero__motto span { margin-inline: .32em; }


    /* Search */
    .search-wrap { position: relative; z-index: 5; margin-top: -44px; }
    .search-panel { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md); }
    .search-panel__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
    .search-panel h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.1rem, 2vw, 1.35rem); }
    .search-panel__head p { margin: 0; color: var(--muted); font-size: .92rem; }
    .search-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr 1.2fr auto; gap: 12px; align-items: end; }
    .field { display: grid; gap: 6px; }
    .field label { color: #51483f; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
    .field select, .field input {
        width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fffefa; color: var(--ink);
    }
    .field select:focus, .field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(163,58,43,.11); outline: none; }
    .search-submit { min-width: 52px; height: 48px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--green); color: var(--white); font-weight: 850; }
    .search-submit:hover { filter: brightness(.92); }

    /* Generic sections */
    .section { padding: 78px 0; }
    .section--compact { padding: 54px 0 0 0; }
    .section--surface { background: var(--surface); }
    .section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
    .section-head h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.05; letter-spacing: -.025em; }
    .section-head p { max-width: 570px; margin: 0; color: var(--muted); }
    .eyebrow { margin: 0 0 7px; color: var(--accent); font-size: .73rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }

    .content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 42px; align-items: start; }
    .region-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .region-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
    .region-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
    .region-card__image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-strong); }
    .region-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
    .region-card:hover .region-card__image img { transform: scale(1.04); }
    .region-card__body { padding: 17px 18px 19px; }
    .region-card h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; line-height: 1.15; }
    .region-card h3 a:hover { color: var(--accent); }
    .region-card p { margin: 6px 0 14px; color: var(--muted); font-size: .9rem; }
    .text-link { color: var(--accent-dark); font-size: .82rem; font-weight: 850; }

    /* Sidebar */
    .sidebar { position: sticky; top: 22px; }
    .sidebar-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
    .sidebar-card__head { padding: 22px 20px 17px; border-bottom: 1px solid var(--line); }
    .sidebar-card h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.2rem; }
    .popular-list { list-style: none; margin: 0; padding: 8px 15px 15px; }
    .popular-item { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
    .popular-item:last-child { border-bottom: 0; }
    .popular-item__thumb { width: 78px; height: 68px; overflow: hidden; border-radius: 10px; background: var(--surface); }
    .popular-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
    .popular-item__body { min-width: 0; }
    .popular-item__title { display: block; font-family: Georgia, 'Times New Roman', serif; font-weight: 700; line-height: 1.2; font-size: .96rem; }
    .popular-item__title:hover { color: var(--accent); }
    .popular-item__body span { display: block; margin-top: 5px; color: var(--muted); font-size: .72rem; }
    .sidebar-ad { margin: 18px 0; text-align: center; overflow: hidden; }

    /* Ads */
    .ad-wide { display: grid; place-items: center; min-height: 0px; margin: 28px 0; overflow: hidden;  }
    .adsbygoogle { max-width: 100%; }

    /* Feature split */
    .feature { padding: 76px 0; }
    .feature__box { display: grid; grid-template-columns: 1fr 1fr; min-height: 470px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); }
    .feature__media { min-height: 360px; }
    .feature__media img { width: 100%; height: 100%; object-fit: cover; }
    .feature__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 6vw, 72px); }
    .feature__copy h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.55rem, 2.8vw, 2.3rem); line-height: 1.02; letter-spacing: -.035em; }
    .feature__copy .emphasis { display: block; margin-top: 12px; color: var(--accent); font-weight: 800; }
    .feature__copy p { margin: 20px 0 0; color: var(--muted); }
    .feature__copy .button { align-self: flex-start; margin-top: 24px; }
    .button--ink { color: var(--white); background: var(--ink); }
    .button--ink:hover { background: var(--accent-dark); }
    .feature--reverse .feature__media { order: 2; }

    /* Editorial */
    .editorial { position: relative; overflow: hidden; padding: 92px 0; background: var(--green); color: var(--white); }
    .editorial::before { content: 'ITALIA'; position: absolute; right: -1vw; top: 12px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(6rem, 20vw, 18rem); line-height: 1; color: rgba(255,255,255,.045); letter-spacing: -.07em; pointer-events: none; }
    .editorial__grid { position: relative; display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; }
    .editorial h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.65rem, 3.3vw, 2.55rem); line-height: 1; }
    .editorial p { margin: 0; color: rgba(255,255,255,.86); font-size: 1.05rem; }
    .editorial p + p { margin-top: 15px; }

    /* Latest */
    .latest-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
    .latest-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
    .latest-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-strong); }
    .latest-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
    .latest-card:hover .latest-card__image img { transform: scale(1.04); }
    .latest-card__body { padding: 18px; }
    .latest-card h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.22rem; line-height: 1.18; }
    .latest-card h3 a:hover { color: var(--accent); }
    .latest-card time { display: block; margin-top: 13px; color: var(--muted); font-size: .78rem; }

    /* Footer */
    .site-footer { padding: 58px 0 30px; background: #201c18; color: #f8f2e8; }
    .footer-top { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.14); }
    .footer-brand { display: flex; align-items: center; gap: 16px; }
    .footer-brand img { width: 64px; }
    .footer-brand strong { font-family: Georgia, 'Times New Roman', serif; font-size: 1.5rem; }
    .copyright { margin: 24px 0 0; text-align: center; color: rgba(255,255,255,.58); font-size: .8rem; }
    .copyright a { text-decoration: underline; text-underline-offset: 3px; }

    @media (max-width: 1060px) {
        .search-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
        .search-submit { min-width: 100%; }
        .content-layout { grid-template-columns: 1fr; }
        .sidebar { position: static; }
        .sidebar-card { max-width: none; }
        .popular-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
        .region-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
        .latest-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    }

    @media (max-width: 800px) {
        .masthead { min-height: 82px; }
        .socials { display: none; }
        .nav-shell { overflow-x: auto; }
        .main-nav { width: max-content; min-width: 100%; padding-block: 6px; }
        .nav-popover { position: fixed; left: 16px; right: 16px; top: 140px; width: auto !important; }
        .nav-popover.regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .hero { min-height: 520px; }
        .hero__content { min-height: 520px; }
        .search-wrap { margin-top: -28px; }
        .search-panel__head, .section-head { display: block; }
        .search-panel__head p, .section-head p { margin-top: 10px; }
        .region-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
        .feature__box { grid-template-columns: 1fr; }
        .feature__media, .feature--reverse .feature__media { order: 0; min-height: 310px; }
        .editorial__grid { grid-template-columns: 1fr; gap: 30px; }
        .footer-top { grid-template-columns: 1fr; }
    }

    @media (max-width: 560px) {
        .container { width: min(calc(100% - 22px), var(--max)); }
        .nav-popover.regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .brand img { width: 48px; }
        .brand p { font-size: .67rem; letter-spacing: .05em; }
        .hero__content { padding-block: 48px 78px; align-items: end; }
        .hero h2 { font-size: clamp(1.75rem, 9vw, 2.65rem); }
        .hero p { font-size: .98rem; }
        .search-panel { padding: 17px; }
        .search-grid { grid-template-columns: 1fr; }
        .section { padding: 60px 0; }
        .region-grid { grid-template-columns: 1fr; }
        .region-card { display: grid; grid-template-columns: 128px 1fr; }
        .region-card__image { aspect-ratio: auto; height: 100%; min-height: 140px; }
        .region-card__body { padding: 17px 14px; }
        .popular-list { grid-template-columns: 1fr; }
        .latest-grid { grid-template-columns: 1fr; }
        .feature { padding: 52px 0; }
        .feature__copy { padding: 30px 24px 34px; }
        .editorial { padding: 66px 0; }
    }

    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
    }

/* === Regional listing page: shared extension === */
.region-page { background: var(--paper); }
.hero--region { min-height: clamp(250px, 27vw, 330px); }
.hero--region::after { background: linear-gradient(90deg, rgba(250,246,237,.76) 0%, rgba(250,246,237,.60) 26%, rgba(250,246,237,.20) 54%, rgba(250,246,237,0) 76%); }
.hero__content--region { min-height: clamp(250px, 27vw, 330px); }
.hero__media--region { object-position: center 52%; }
.hero--compact { min-height: clamp(250px, 27vw, 330px); }
.hero--compact .hero__content, .hero__content--compact { min-height: clamp(250px, 27vw, 330px); padding-block: 38px 48px; }
.hero--compact .hero__copy { width: min(720px, 94%); }
.hero--compact h2 { font-size: clamp(1.75rem, 3.3vw, 2.65rem); }
.hero--compact p { margin-top: 14px; }
.hero__media--recipe, .hero__media--region { object-position: center 52%; }
.hero--recipe::after { background: linear-gradient(90deg, rgba(250,246,237,.78) 0%, rgba(250,246,237,.62) 28%, rgba(250,246,237,.20) 56%, rgba(250,246,237,0) 78%); }
.region-page .hero h2 { max-width: 760px; font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.region-page .hero__copy,
.recipe-page .hero__copy,
.recipe-page .recipe-hero__copy { color: #2b2118; text-shadow: none; }
.region-page .hero p,
.recipe-page .hero p,
.recipe-page .recipe-hero__copy > p:not(.kicker) { color: #5c5042; }
.region-page .kicker,
.recipe-page .kicker,
.recipe-page .recipe-kicker { color: #8e4930; }
.region-page .hero .button--ghost,
.recipe-page .hero .button--outline { border-color: rgba(43,33,24,.34); color: #2b2118; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.region-page .hero .button--ghost:hover,
.recipe-page .hero .button--outline:hover { background: rgba(255,255,255,.34); }

.breadcrumb-wrap { padding-top: 28px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .84rem; }
.breadcrumb a { color: var(--accent-dark); font-weight: 750; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 800; }

.region-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.region-heading h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.5rem, 2.8vw, 2.15rem); line-height: 1.03; letter-spacing: -.03em; }
.region-heading > p { max-width: 520px; margin: 0; color: var(--muted); }
.category-nav { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.category-nav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: .88rem; font-weight: 800; transition: .2s ease; }
.category-nav a:hover { transform: translateY(-2px); border-color: #c8b9a7; box-shadow: var(--shadow-sm); color: var(--accent-dark); }
.category-nav b { display: grid; place-items: center; min-width: 27px; height: 27px; padding-inline: 6px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .72rem; }

.region-recipes-section { padding-top: 20px; }
.region-content-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 38px; }
.recipe-categories { min-width: 0; }
.recipe-category { scroll-margin-top: 24px; padding: 30px 0 50px; border-bottom: 1px solid var(--line); }
.recipe-category:first-child { padding-top: 0; }
.category-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.category-heading h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.45rem, 2.5vw, 1.9rem); line-height: 1; letter-spacing: -.025em; }
.back-link { color: var(--accent-dark); font-size: .78rem; font-weight: 850; white-space: nowrap; }
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.recipe-grid.ingredient-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
.recipe-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.recipe-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-strong); }
.recipe-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .42s ease; }
.recipe-card:hover .recipe-card__image img { transform: scale(1.035); }
.recipe-card__body { padding: 16px 16px 18px; }
.recipe-card__type { margin: 0 0 5px; color: var(--accent); font-size: .68rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.recipe-card h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 1.15rem; line-height: 1.16; }
.recipe-card h3 a:hover { color: var(--accent-dark); }
.recipe-card__meta { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; line-height: 1.55; }
.recipe-categories > .ad-wide { margin-top: 0px; margin-bottom: 0; }

.region-sidebar { display: grid; gap: 18px; align-self: start; }
.region-sidebar .sidebar-card { box-shadow: var(--shadow-sm); }
.region-sidebar .sidebar-ad { margin: 14px 14px 2px; }
.region-sidebar > .ad-wide { width: 100%; margin: 0; background: var(--white); }
.recommended-card { position: relative; display: block; overflow: hidden; min-height: 330px; border-radius: var(--radius); background: #2e2924; box-shadow: var(--shadow-sm); }
.recommended-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,8,6,.04) 35%, rgba(10,8,6,.83) 100%); }
.recommended-card img { width: 100%; height: 330px; object-fit: cover; transition: transform .4s ease; }
.recommended-card:hover img { transform: scale(1.04); }
.recommended-card span, .recommended-card strong { position: absolute; z-index: 2; left: 20px; right: 20px; color: var(--white); }
.recommended-card span { bottom: 57px; font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.recommended-card strong { bottom: 20px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.5rem; line-height: 1.05; }
.interest-section { padding-top: 64px; display: none;}
.interest-heading { margin-bottom: 0; }

@media (max-width: 1060px) {
    .category-nav { grid-template-columns: repeat(4, minmax(0,1fr)); }
    .region-content-layout { grid-template-columns: 1fr; }
    .region-sidebar { grid-template-columns: 1fr 1fr; align-items: start; }
    .region-sidebar .sidebar-card { grid-row: span 2; }
    .region-sidebar > .ad-wide { min-height: 0px; }
    .recommended-card, .recommended-card img { min-height: 300px; height: 300px; }
    .recipe-grid.ingredient-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 800px) {
    .hero--region, .hero__content--region { min-height: 300px; }
    .hero--region::after,
    .hero--recipe::after { background: linear-gradient(90deg, rgba(250,246,237,.78) 0%, rgba(250,246,237,.62) 44%, rgba(250,246,237,.14) 78%); }
    .hero--region::after, .hero--recipe::after { background: linear-gradient(90deg, rgba(250,246,237,.82) 0%, rgba(250,246,237,.68) 48%, rgba(250,246,237,.18) 84%); }
    .region-heading { display: block; }
    .region-heading > p { margin-top: 12px; }
    .category-nav { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .recipe-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .recipe-grid.ingredient-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .region-sidebar { grid-template-columns: 1fr; }
    .region-sidebar .sidebar-card { grid-row: auto; }
    .breadcrumb-wrap { padding-top: 24px; }
}

@media (max-width: 560px) {
    .hero--region, .hero__content--region { min-height: 280px; }
    .hero--region::after, .hero--recipe::after { background: linear-gradient(90deg, rgba(250,246,237,.86) 0%, rgba(250,246,237,.72) 56%, rgba(250,246,237,.20) 92%); }
    .hero__media--region { object-position: 60% center; }
    .category-nav { grid-template-columns: 1fr 1fr; gap: 8px; }
    .category-nav a { min-height: 44px; padding: 8px 10px; font-size: .79rem; }
    .recipe-category { padding-bottom: 40px; }
    .category-heading { align-items: center; }
    .recipe-grid { grid-template-columns: 1fr; }
    .recipe-grid.ingredient-grid { grid-template-columns: 1fr; }
    .recipe-card { display: grid; grid-template-columns: 128px minmax(0,1fr); }
    .recipe-card__image { aspect-ratio: auto; height: 100%; min-height: 150px; }
    .recipe-card__body { padding: 14px 12px; }
    .recipe-card h3 { font-size: 1.06rem; }
    .recipe-card__meta { margin-top: 9px; padding-top: 9px; font-size: .72rem; }
    .recipe-card__type { font-size: .62rem; }
    .region-recipes-section { padding-top: 0; }
}

/* === Recipe detail page: shared extension === */
.recipe-page { background: var(--paper); }
.recipe-hero__copy h2 { max-width: 720px; }
.recipe-hero__copy > p:not(.kicker) { max-width: 560px; color: rgba(255,255,255,.9); }
.recipe-kicker { color: #f0c9b9; }
.recipe-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.button--outline { border-color: rgba(255,255,255,.55); color: var(--white); background: transparent; }
.button--outline:hover { background: rgba(255,255,255,.1); }
.recipe-search-wrap { margin-top: -34px; }
.recipe-overview { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); gap: 22px; align-items: stretch; margin-bottom: 26px; }
.recipe-main-photo { margin: 0; min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--surface-strong); box-shadow: var(--shadow-sm); }
.recipe-main-photo img { display: block; width: 100%; height: 100%; min-height: 300px; max-height: 390px; object-fit: cover; }

.recipe-detail-section { padding-top: 34px; }
.recipe-content-layout { grid-template-columns: minmax(0,1fr) 310px; gap: 40px; }
.recipe-main { min-width: 0; }
.recipe-summary { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; overflow: hidden; margin: 0; min-height: 300px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.recipe-summary > div { display: flex; min-width: 0; padding: 20px 14px; text-align: center; align-items: center; justify-content: center; flex-direction: column; }
.recipe-summary > div:nth-child(even) { border-left: 1px solid var(--line); }
.recipe-summary > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.recipe-summary strong { display: block; overflow-wrap: anywhere; font-family: Georgia, 'Times New Roman', serif; font-size: 1.25rem; line-height: 1.1; text-transform: capitalize; }
.recipe-summary span { display: block; margin-top: 7px; color: var(--muted); font-size: .66rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }

.recipe-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 26px 0; padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.recipe-toolbar p { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.recipe-toolbar p span { color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.recipe-toolbar p span::after { content: ':'; }
.recipe-toolbar p strong { font-size: .94rem; }
.print-recipe { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--green); color: var(--white); font-size: .78rem; font-weight: 850; }
.print-recipe:hover { filter: brightness(.92); }
.recipe-intro { margin: 30px 0; padding: 21px 24px; border-left: 4px solid var(--accent); background: var(--white); box-shadow: var(--shadow-sm); font-family: Georgia, 'Times New Roman', serif; font-size: 1.16rem; font-style: italic; color: #4f473f; }

.recipe-panel { margin-top: 28px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.recipe-panel p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.recipe-panel p a:hover { color: var(--accent-dark); }
.recipe-panel__head { display: grid; gap: 4px; margin-bottom: 22px; }
.recipe-panel__head h2 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.5rem,2.7vw,2rem); line-height: 1.04; letter-spacing: -.025em; }
.recipe-panel__head > p:last-child:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.ingredient-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 14px; margin: 0; padding: 0; list-style: none; }
.ingredient-list li { min-width: 0; }
.ingredient-list label { display: flex; align-items: flex-start; gap: 11px; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fffefa; cursor: pointer; transition: .18s ease; }
.ingredient-list label:hover { border-color: #c9bbaa; background: var(--surface); }
.ingredient-list input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.ingredient-list input:checked + span { color: var(--muted); text-decoration: line-through; }
.ingredient-list span { font-size: .91rem; line-height: 1.35; }
.ad-leaderboard { display: grid; place-items: center; overflow-x: auto; min-height: 110px; margin: 28px 0; padding: 10px; border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255,255,255,.45); }

.recipe-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.recipe-step { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 18px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.recipe-step:first-child { border-top: 0; padding-top: 0; }
.recipe-step:last-child { padding-bottom: 0; }
.recipe-step__number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--white); font-family: Georgia, 'Times New Roman', serif; font-size: 1.2rem; font-weight: 700; }
.recipe-step h3 { margin: 1px 0 5px; font-family: Georgia, 'Times New Roman', serif; font-size: 1.35rem; }
.recipe-step p { margin: 0; color: #514941; font-size: .96rem; }

.recipe-notes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; list-style: none; }
.recipe-notes li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 14px; border-bottom: 1px solid var(--line); background: #fffefa; }
.recipe-notes li:nth-child(odd) { border-right: 1px solid var(--line); }
.recipe-notes li:nth-last-child(-n+2) { border-bottom: 0; }
.recipe-notes li:last-child:nth-child(odd) { border-bottom: 0; }
.recipe-notes strong { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.recipe-notes span { text-align: right; font-size: .86rem; }
.recipe-notes a { color: var(--accent-dark); font-weight: 800; }
.recipe-tags { margin-top: 28px; padding: 24px 0 0; border-top: 1px solid var(--line); }
.recipe-tags ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.recipe-tags a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--accent-dark); font-size: .78rem; font-weight: 800; }
.recipe-tags a:hover { border-color: #c5b6a4; background: var(--surface); }
.recipe-sidebar { position: sticky; top: 22px; }
.related-section .latest-card {
    border: 0;
    background: var(--paper);
    box-shadow: 0 10px 30px rgba(47, 38, 28, .10), 0 2px 8px rgba(47, 38, 28, .05);
    transition: transform .22s ease, box-shadow .22s ease;
}
.related-section .latest-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(47, 38, 28, .14), 0 4px 10px rgba(47, 38, 28, .06);
}
.related-section .latest-card__image { aspect-ratio: 4 / 3; }
.related-section .latest-card__body p { margin: 9px 0 0; color: var(--muted); font-size: .78rem; text-transform: capitalize; }


/* Unified card treatment */
.region-card,
.sidebar-card,
.latest-card,
.feature__box,
.recipe-card,
.recommended-card,
.recipe-main-photo,
.recipe-summary,
.recipe-panel {
    border: 0;
    box-shadow: var(--card-shadow);
}

.region-card,
.latest-card,
.recipe-card,
.recommended-card {
    transition: transform .22s ease, box-shadow .22s ease;
}

.region-card:hover,
.latest-card:hover,
.recipe-card:hover,
.recommended-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
}

/* Preserve internal separators inside cards. */
.sidebar-card__head,
.recipe-summary > div:nth-child(even),
.recipe-summary > div:nth-child(n+3) {
    border-color: var(--line);
}

@media (max-width: 1060px) {
    .recipe-content-layout { grid-template-columns: 1fr; }
    .recipe-sidebar { position: static; }
}
@media (max-width: 800px) {
    .recipe-overview { grid-template-columns: 1fr; gap: 16px; }
    .recipe-main-photo img { height: auto; min-height: 0; max-height: 420px; }
    .recipe-summary { min-height: 0; }
    .recipe-toolbar { align-items: flex-start; flex-direction: column; }
    .ingredient-list { grid-template-columns: 1fr; }
    .recipe-notes { grid-template-columns: 1fr; }
    .recipe-notes li, .recipe-notes li:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--line); }
    .recipe-notes li:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
    .hero--compact, .hero--compact .hero__content, .hero__content--compact { min-height: 280px; }
    .hero--compact .hero__content, .hero__content--compact { padding-block: 34px 44px; align-items: center; }
    .hero--compact h2 { font-size: clamp(1.65rem, 8vw, 2.3rem); }
    .recipe-search-wrap { margin-top: -24px; }
    .recipe-detail-section { padding-top: 18px; }
    .recipe-summary > div { padding: 16px 10px; }
    .recipe-summary strong { font-size: 1.08rem; }
    .recipe-panel { padding: 23px 18px; }
    .recipe-toolbar { padding: 15px; }
    .print-recipe { width: 100%; justify-content: center; }
    .recipe-intro { padding: 18px; }
    .recipe-step { grid-template-columns: 40px minmax(0,1fr); gap: 12px; }
    .recipe-step__number { width: 36px; height: 36px; font-size: 1rem; }
    .recipe-step h3 { font-size: 1.15rem; }
    .recipe-notes li { display: grid; gap: 4px; }
    .recipe-notes span { text-align: left; }
}


/* Print-only recipe heading: hidden on screen, shown in @media print. */
.print-recipe-heading { display: none; }

/* ==========================================================
   PRINT - Recipe detail
   Clean A4 layout for browser printing of .recipe-page
   ========================================================== */
@page {
    size: A4 portrait;
    margin: 12mm 14mm 14mm;
}

@media print {
    .ipr-container { display:none !important}
    .recipe-page,
    .recipe-page * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    html,
    body.recipe-page {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #111 !important;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 10pt;
        line-height: 1.35;
    }

    .recipe-page .container {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Remove everything that is not useful on a printed recipe. */
    .recipe-page .skip-link,
    .recipe-page .site-header,
    .recipe-page .breadcrumb-wrap,
    .recipe-page .recipe-sidebar,
    .recipe-page .related-section,
    .recipe-page .interest-section,
    .recipe-page .site-footer,
    .recipe-page .ad-wide,
    .recipe-page .ad-leaderboard,
    .recipe-page .sidebar-ad,
    .recipe-page .print-recipe,
    .recipe-page .recipe-tags,
    .recipe-page .recipe-hero__actions {
        display: none !important;
    }

    /* Reuse the hero only as a compact print title. */
    .recipe-page .hero,
    .recipe-page .hero--compact,
    .recipe-page .hero--compact .hero__content,
    .recipe-page .hero__content--compact {
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: transparent !important;
    }

    .recipe-page .hero__media,
    .recipe-page .hero::after {
        display: none !important;
        content: none !important;
    }

    .recipe-page .hero__content {
        display: block !important;
        min-height: 0 !important;
        padding: 0 0 4mm !important;
        border-bottom: .6pt solid #777;
    }

    .recipe-page .hero__copy,
    .recipe-page .recipe-hero__copy {
        width: 100% !important;
        max-width: none !important;
        color: #111 !important;
    }

    .recipe-page .hero .kicker,
    .recipe-page .recipe-kicker {
        margin: 0 0 1.5mm !important;
        color: #555 !important;
        font-size: 7.5pt !important;
        letter-spacing: .08em !important;
    }

    .recipe-page .hero h2 {
        margin: 0 !important;
        color: #111 !important;
        font-family: Georgia, 'Times New Roman', serif;
        font-size: 18pt !important;
        line-height: 1.05 !important;
        letter-spacing: -.02em !important;
    }

    .recipe-page .hero__copy > p:not(.kicker) {
        max-width: none !important;
        margin: 1.5mm 0 0 !important;
        color: #444 !important;
        font-size: 9.5pt !important;
    }

    .recipe-page .hero__copy::after {
        content: 'RicetteRegionali.net';
        display: block;
        margin-top: 2mm;
        color: #666;
        font-size: 7.5pt;
        letter-spacing: .03em;
    }

    /* Main recipe content uses the full printable width. */
    .recipe-page .section,
    .recipe-page .recipe-detail-section {
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
    }

    .recipe-page .recipe-content-layout {
        display: block !important;
        width: 100% !important;
    }

    .recipe-page .recipe-main {
        width: 100% !important;
        max-width: none !important;
    }

    /* Compact photo + facts block. */
    .recipe-page .recipe-overview {
        display: grid !important;
        grid-template-columns: 50mm minmax(0, 1fr) !important;
        gap: 5mm !important;
        align-items: stretch !important;
        margin: 5mm 0 4mm !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .recipe-page .recipe-main-photo {
        height: 34mm !important;
        min-height: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        border: .6pt solid #aaa !important;
        border-radius: 2mm !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .recipe-page .recipe-main-photo img {
        width: 100% !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: none !important;
        object-fit: cover !important;
    }

    .recipe-page .recipe-summary {
        min-height: 34mm !important;
        margin: 0 !important;
        border: .6pt solid #aaa !important;
        border-radius: 2mm !important;
        background: #fff !important;
        box-shadow: none !important;
    }

    .recipe-page .recipe-summary > div {
        padding: 2mm 2.2mm !important;
    }

    .recipe-page .recipe-summary > div:nth-child(even),
    .recipe-page .recipe-summary > div:nth-child(n+3) {
        border-color: #bbb !important;
    }

    .recipe-page .recipe-summary strong {
        color: #111 !important;
        font-size: 10.5pt !important;
        line-height: 1.1 !important;
    }

    .recipe-page .recipe-summary span {
        margin-top: 1.2mm !important;
        color: #555 !important;
        font-size: 6.5pt !important;
        letter-spacing: .07em !important;
    }

    /* Equipment row: keep information, remove the PDF button. */
    .recipe-page .recipe-toolbar {
        display: block !important;
        margin: 0 0 4mm !important;
        padding: 2.5mm 0 !important;
        border: 0 !important;
        border-top: .5pt solid #bbb !important;
        border-bottom: .5pt solid #bbb !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    .recipe-page .recipe-toolbar p {
        margin: 0 !important;
        gap: 2mm !important;
    }

    .recipe-page .recipe-toolbar p span {
        color: #555 !important;
        font-size: 7pt !important;
    }

    .recipe-page .recipe-toolbar p strong {
        color: #111 !important;
        font-size: 9.5pt !important;
    }

    .recipe-page .recipe-intro {
        margin: 0 0 5mm !important;
        padding: 3mm 4mm !important;
        border: 0 !important;
        border-left: 2pt solid #555 !important;
        background: #fff !important;
        box-shadow: none !important;
        color: #333 !important;
        font-size: 10pt !important;
        line-height: 1.4 !important;
    }

    /* Panels become clean document sections instead of cards. */
    .recipe-page .recipe-panel {
        margin: 5mm 0 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .recipe-page .recipe-panel__head {
        gap: 0 !important;
        margin: 0 0 3mm !important;
        padding-bottom: 1.8mm !important;
        border-bottom: .7pt solid #888;
    }

    .recipe-page .recipe-panel__head .eyebrow {
        margin: 0 0 1mm !important;
        color: #555 !important;
        font-size: 6.8pt !important;
        letter-spacing: .08em !important;
    }

    .recipe-page .recipe-panel__head h2 {
        margin: 0 !important;
        color: #111 !important;
        font-size: 12.5pt !important;
        line-height: 1.1 !important;
    }

    .recipe-page .ingredients-panel .recipe-panel__head > p:last-child:not(.eyebrow) {
        display: none !important;
    }

    /* Ingredient checklist becomes a compact two-column list. */
    .recipe-page .ingredient-list {
        display: block !important;
        columns: 2;
        column-gap: 9mm;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .recipe-page .ingredient-list li {
        position: relative;
        break-inside: avoid;
        page-break-inside: avoid;
        margin: 0 0 1.8mm !important;
        padding: 0 0 0 4mm !important;
    }

    .recipe-page .ingredient-list li::before {
        content: '•';
        position: absolute;
        left: .5mm;
        top: -.2mm;
        color: #111;
        font-size: 10pt;
    }

    .recipe-page .ingredient-list label {
        display: block !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        cursor: default !important;
    }

    .recipe-page .ingredient-list input {
        display: none !important;
    }

    .recipe-page .ingredient-list span,
    .recipe-page .ingredient-list input:checked + span {
        color: #111 !important;
        font-size: 9.5pt !important;
        line-height: 1.25 !important;
        text-decoration: none !important;
    }

    /* Preparation steps stay together whenever possible. */
    .recipe-page .recipe-steps {
        gap: 0 !important;
    }

    .recipe-page .recipe-step {
        grid-template-columns: 9mm minmax(0, 1fr) !important;
        gap: 3mm !important;
        padding: 2.7mm 0 !important;
        border-color: #ccc !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .recipe-page .recipe-step__number {
        width: 7.5mm !important;
        height: 7.5mm !important;
        border: .7pt solid #777 !important;
        border-radius: 50% !important;
        background: transparent !important;
        color: #111 !important;
        font-size: 9pt !important;
    }

    .recipe-page .recipe-step h3 {
        margin: 0 0 .8mm !important;
        color: #111 !important;
        font-size: 11pt !important;
    }

    .recipe-page .recipe-step p {
        margin: 0 !important;
        color: #222 !important;
        font-size: 9.5pt !important;
        line-height: 1.35 !important;
    }

    /* Recipe metadata stays compact at the end. */
    .recipe-page .notes-panel {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .recipe-page .recipe-notes {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        border: .5pt solid #bbb !important;
        border-radius: 0 !important;
    }

    .recipe-page .recipe-notes li,
    .recipe-page .recipe-notes li:nth-child(odd) {
        gap: 3mm !important;
        padding: 2mm 2.5mm !important;
        border-color: #ccc !important;
        background: transparent !important;
    }

    .recipe-page .recipe-notes strong {
        color: #555 !important;
        font-size: 6.5pt !important;
    }

    .recipe-page .recipe-notes span,
    .recipe-page .recipe-notes a {
        color: #111 !important;
        font-size: 8pt !important;
    }

    /* Sensible page-break behaviour. */
    .recipe-page h1,
    .recipe-page h2,
    .recipe-page h3 {
        break-after: avoid;
        page-break-after: avoid;
    }

    .recipe-page p,
    .recipe-page li {
        orphans: 3;
        widows: 3;
    }

    .recipe-page a,
    .recipe-page a:visited {
        color: #111 !important;
        text-decoration: none !important;
    }

    .recipe-page a[href]::after {
        content: none !important;
    }
}

/* ==========================================================
   PRINT FIX - Recipe overview
   Force photo left + facts right in Chromium/Safari/Firefox
   ========================================================== */
@media print {
    .recipe-page .recipe-overview {
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 5mm !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 5mm 0 4mm !important;
        padding: 0 !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .recipe-page .recipe-main-photo {
        display: block !important;
        flex: 0 0 72mm !important;
        width: 72mm !important;
        max-width: 72mm !important;
        height: 46mm !important;
        min-height: 0 !important;
        max-height: 46mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: .5pt solid #bbb !important;
        border-radius: 2mm !important;
        box-shadow: none !important;
    }

    .recipe-page .recipe-main-photo img {
        display: block !important;
        width: 72mm !important;
        max-width: 72mm !important;
        height: 46mm !important;
        min-height: 0 !important;
        max-height: 46mm !important;
        margin: 0 !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .recipe-page .recipe-summary {
        display: grid !important;
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 46mm !important;
        min-height: 46mm !important;
        max-height: 46mm !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: .5pt solid #bbb !important;
        border-radius: 2mm !important;
        box-shadow: none !important;
    }

    .recipe-page .recipe-summary > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 2.5mm 2mm !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .recipe-page .recipe-summary > div:nth-child(2),
    .recipe-page .recipe-summary > div:nth-child(4) {
        border-left: .5pt solid #ccc !important;
    }

    .recipe-page .recipe-summary > div:nth-child(3),
    .recipe-page .recipe-summary > div:nth-child(4) {
        border-top: .5pt solid #ccc !important;
    }

    .recipe-page .recipe-summary strong,
    .recipe-page .recipe-summary time {
        display: block !important;
        margin: 0 !important;
        color: #111 !important;
        font-family: Georgia, 'Times New Roman', serif !important;
        font-size: 11pt !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        text-align: center !important;
    }

    .recipe-page .recipe-summary span {
        display: block !important;
        margin: 1.2mm 0 0 !important;
        color: #666 !important;
        font-family: Arial, Helvetica, sans-serif !important;
        font-size: 6.5pt !important;
        font-weight: 700 !important;
        line-height: 1.1 !important;
        letter-spacing: .06em !important;
        text-transform: uppercase !important;
        text-align: center !important;
    }
}

/* ==========================================================
   PRINT CLEANUP - metadata + Google privacy / cookie UI
   ========================================================== */
@media print {
    /* The compact technical metadata is useful online but not on paper. */
    .recipe-page .notes-panel {
        display: none !important;
    }

    /* Hide ad/CMP/privacy elements injected by Google or consent tools. */
    .adsbygoogle,
    .google-auto-placed,
    iframe,
    [id^="google_ads"],
    [id^="aswift_"],
    [id*="googlefc"],
    [class*="googlefc"],
    [id^="fc_"],
    [class^="fc-"],
    [class*=" fc-"],
    [id*="privacy" i],
    [class*="privacy" i],
    [id*="cookie" i],
    [class*="cookie" i] {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
    }
}

/* ==========================================================
   PRINT HARD ISOLATION - keep only the recipe document
   Google CMP/Funding Choices can inject arbitrary elements as
   direct children of BODY. A whitelist is more reliable than
   trying to predict all of Google's generated selectors.
   ========================================================== */
@media print {
    /* Keep only the page's main content. This removes any CMP/privacy
       nodes injected by Google at body level, regardless of class/id. */
    body.recipe-page > *:not(#contenuto) {
        display: none !important;
        visibility: hidden !important;
    }

    /* Within MAIN print only the actual recipe-detail section. */
    body.recipe-page #contenuto > *:not(.recipe-detail-section) {
        display: none !important;
        visibility: hidden !important;
    }

    /* Within the detail layout keep only the recipe article, never the
       sidebar or dynamically injected siblings. */
    body.recipe-page .recipe-detail-section > .container > *:not(.recipe-main),
    body.recipe-page .recipe-detail-section .recipe-content-layout > *:not(.recipe-main) {
        display: none !important;
        visibility: hidden !important;
    }

    body.recipe-page #contenuto,
    body.recipe-page .recipe-detail-section,
    body.recipe-page .recipe-detail-section > .container,
    body.recipe-page .recipe-main {
        display: block !important;
        visibility: visible !important;
    }

    /* Also collapse known advertising wrappers inside the article. */
    body.recipe-page .recipe-main .ad-wide,
    body.recipe-page .recipe-main .ad-leaderboard,
    body.recipe-page .recipe-main .sidebar-ad,
    body.recipe-page .recipe-main [aria-label="Pubblicità"] {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
}

/* ==========================================================
   PRINT TITLE FIX - title lives inside .recipe-main so it
   survives the hard print isolation used to remove Google CMP.
   ========================================================== */
@media print {
    body.recipe-page .print-recipe-heading {
        display: block !important;
        visibility: visible !important;
        margin: 0 0 5mm !important;
        padding: 0 0 3mm !important;
        border-bottom: .6pt solid #777 !important;
        color: #111 !important;
        background: transparent !important;
        break-after: avoid !important;
        page-break-after: avoid !important;
    }

    body.recipe-page .print-recipe-heading p {
        margin: 0 0 1.2mm !important;
        color: #555 !important;
        font: 700 7pt/1.2 Arial, Helvetica, sans-serif !important;
        letter-spacing: .09em !important;
        text-transform: uppercase !important;
    }

    body.recipe-page .print-recipe-heading h1 {
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
        color: #111 !important;
        font-family: Georgia, 'Times New Roman', serif !important;
        font-size: 17pt !important;
        font-weight: 700 !important;
        line-height: 1.08 !important;
        letter-spacing: -.015em !important;
    }

    body.recipe-page .print-recipe-heading span {
        display: block !important;
        margin-top: 1.2mm !important;
        color: #444 !important;
        font: 9pt/1.3 Arial, Helvetica, sans-serif !important;
    }
}


@media (max-width: 800px) {
    .hero--home, .hero__content--home { min-height: 460px; }
    .hero--home::after {
        background: linear-gradient(90deg, rgba(250,246,237,.78) 0%, rgba(250,246,237,.60) 42%, rgba(250,246,237,.10) 76%);
    }
    .hero__media--home { object-position: 61% center; }
    .hero__copy--home { width: min(420px, 72vw); }
    .hero--home .home-hero__title { font-size: clamp(2.7rem, 10vw, 4rem); }
}

@media (max-width: 560px) {
    .hero--home, .hero__content--home { min-height: 430px; }
    .hero__content--home { align-items: center; padding-block: 38px 52px; }
    .hero--home::after {
        background: linear-gradient(90deg, rgba(250,246,237,.84) 0%, rgba(250,246,237,.66) 52%, rgba(250,246,237,.14) 88%);
    }
    .hero__media--home { object-position: 58% center; }
    .hero__copy--home { width: min(320px, 77vw); }
    .hero--home .home-hero__title { font-size: clamp(2.35rem, 12vw, 3.35rem); line-height: .86; }
    .hero--home .home-hero__subtitle { margin-top: 20px; font-size: 1.12rem; }
    .home-hero__tricolor { width: 136px; height: 5px; margin-top: 18px; }
    .hero--home .home-hero__motto {
        margin-top: 14px;
        font-size: .58rem;
        letter-spacing: .14em;
        white-space: normal;
        max-width: 280px;
    }
}
