/* FRIATO — Página da receita */
.fr-recipe__hero { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) 0 clamp(40px, 5vw, 72px); }
.fr-recipe__hero::before {
    content: "";
    position: absolute;
    width: clamp(320px, 40vw, 600px);
    aspect-ratio: 1;
    right: -10%;
    top: -30%;
    border-radius: 50%;
    background: var(--fr-glow);
}
.fr-recipe__hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.fr-print-logo { display: none; }
.fr-recipe__title {
    font-weight: 400;
    font-size: clamp(32px, 4.4vw, 56px);
    line-height: 1.08;
    letter-spacing: -.022em;
    color: var(--fr-red);
    margin: 0 0 28px;
    text-wrap: balance;
}
.fr-recipe__stats { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.fr-recipe__stats li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 10px;
    border-radius: 999px;
    background: var(--fr-white);
    border: 1px solid var(--fr-sand);
}
.fr-stat-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--fr-g-card-2);
    color: var(--fr-white);
    font-size: 22px;
}
.fr-stat-icon svg { width: 22px; height: 22px; }
.fr-recipe__stats small { display: block; font-size: 12px; color: var(--fr-muted-text); line-height: 1.2; }
.fr-recipe__stats strong { display: block; font-size: 18px; color: var(--fr-ink); line-height: 1.3; font-variant-numeric: tabular-nums; }
.fr-recipe__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fr-recipe__photo { margin: 0; border-radius: var(--fr-radius-card); overflow: hidden; aspect-ratio: 4 / 3; background: var(--fr-sand-light); box-shadow: 0 30px 60px rgba(58, 18, 8, .14); }
.fr-recipe__img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Foto feita com IA: aviso discreto no canto, como o "imagem ilustrativa" das embalagens */
.fr-recipe__photo { position: relative; }
.fr-recipe__photo-note { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(43, 17, 20, .62); color: #fff; font-size: .75rem; line-height: 1.3; letter-spacing: .01em; pointer-events: none; }
@media (max-width: 991.98px) { .fr-recipe__hero-grid { grid-template-columns: 1fr; } .fr-recipe__photo { order: -1; } }

/* ---------- Vídeo: 16:9 em largura cheia; 9:16 ao lado do texto, como um celular ---------- */
.fr-recipe__videos { padding: clamp(8px, 2vw, 24px) 0 clamp(40px, 5vw, 72px); scroll-margin-top: calc(var(--fr-header-h) + 16px); }
.fr-video-block { display: grid; gap: clamp(20px, 3vw, 32px); }
.fr-video-block.is-landscape .fr-video { max-width: 1040px; width: 100%; margin: 0 auto; }
.fr-video-block.is-landscape .fr-video-block__text { text-align: center; }
.fr-video-block.is-landscape .fr-video-block__text .fr-section__sub { margin-inline: auto; }
.fr-video-block.is-portrait {
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    align-items: center;
    gap: clamp(28px, 6vw, 96px);
    max-width: 980px;
}
.fr-video-block__text .fr-h2 { margin: 6px 0 10px; }
.fr-video-block__text .fr-section__sub { max-width: 44ch; }
.fr-video-block__link { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--fr-red); }
.fr-video-block__link:hover { color: var(--fr-red-deep); text-decoration: underline; text-underline-offset: 3px; }
.fr-video { margin: 0; min-width: 0; container-type: inline-size; }
.fr-video__frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--fr-radius-card);
    background: #1C0A06;
    box-shadow: 0 24px 50px rgba(58, 18, 8, .16);
    aspect-ratio: 16 / 9;
}
.fr-video.is-portrait .fr-video__frame { aspect-ratio: 9 / 16; border-radius: 30px; box-shadow: 0 0 0 8px var(--fr-white), 0 30px 60px rgba(58, 18, 8, .22); }
/* Instagram põe cabeçalho e legenda em volta do vídeo: o player precisa ser mais alto que 9:16 */
/* Tocando, o quadro vira um cartão simples (sem a moldura de celular, que cortava os cantos) e fica com a altura
   que o próprio Instagram informa (recipe.js); até a medida chegar, uma altura que cabe um Reels inteiro */
.fr-video.is-instagram .fr-video__frame.is-playing { aspect-ratio: auto; height: calc(100cqw * 16 / 9 + 240px); border-radius: 12px; background: var(--fr-white); box-shadow: 0 0 0 1px var(--fr-sand), 0 18px 40px rgba(58, 18, 8, .12); transition: height .25s ease; }
.fr-video.is-instagram .fr-video__frame.is-playing iframe { background: var(--fr-white); }
.fr-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

.fr-video__facade {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--fr-g-brand);
    color: var(--fr-white);
    cursor: pointer;
}
.fr-video__facade:has(img) { background: #1C0A06; }
.fr-video__facade img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); object-fit: cover; transition: transform .6s var(--fr-ease); }
.fr-video__facade::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(58, 18, 8, .05) 40%, rgba(58, 18, 8, .55) 100%);
}
.fr-video__facade:hover img { transform: scale(1.04); }
.fr-video__badge {
    position: absolute;
    z-index: 1;
    left: 16px;
    top: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--fr-wine-dark);
    font-size: 13px;
    font-weight: 700;
}
.fr-video__play {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: clamp(64px, 7vw, 84px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--fr-g-brand);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, .22), 0 18px 36px rgba(58, 18, 8, .35);
    transition: transform .3s var(--fr-ease), box-shadow .3s var(--fr-ease);
}
.fr-video__play svg { width: 44%; height: 44%; margin-left: 6%; }
.fr-video__facade:hover .fr-video__play { transform: scale(1.07); box-shadow: 0 0 0 16px rgba(255, 255, 255, .26), 0 22px 44px rgba(58, 18, 8, .4); }
.fr-video__facade:focus-visible { outline: 3px solid var(--fr-gold); outline-offset: -3px; }
.fr-videos__note { margin: 14px 0 0; font-size: 13px; color: var(--fr-muted-text); }

@media (max-width: 767.98px) {
    .fr-video-block.is-portrait { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .fr-video-block.is-portrait .fr-video { width: min(320px, 82vw); }
    .fr-video-block.is-portrait .fr-section__sub { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .fr-video__facade img, .fr-video__play { transition: none; }
}

.fr-recipe__content { padding: clamp(40px, 5vw, 72px) 0; background: var(--fr-sand-light); }
.fr-recipe__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.fr-recipe__ingredients {
    position: sticky;
    top: calc(var(--fr-header-h) + 20px);
    padding: clamp(22px, 3vw, 36px);
    border-radius: var(--fr-radius-card);
    background: var(--fr-white);
    border: 1px solid var(--fr-sand);
}
.fr-recipe__hint { margin: 6px 0 20px; font-size: 14px; color: var(--fr-muted-text); }
.fr-ingredients ul, .fr-ingredients ol { list-style: none; padding: 0; margin: 0; }
.fr-ingredients li { position: relative; border-bottom: 1px dashed var(--fr-sand); }
.fr-ingredients li:last-child { border-bottom: 0; }
.fr-ingredients input { position: absolute; opacity: 0; pointer-events: none; }
.fr-ingredients label {
    display: block;
    position: relative;
    padding: 12px 0 12px 38px;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--fr-ink);
    cursor: pointer;
    transition: color .2s;
}
.fr-ingredients label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 13px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 2px solid var(--fr-sand);
    background: var(--fr-cream) center / 12px no-repeat;
    transition: background-color .2s, border-color .2s;
}
.fr-ingredients input:checked + label { color: var(--fr-muted-text); text-decoration: line-through; text-decoration-color: rgba(122, 86, 80, .5); }
.fr-ingredients input:checked + label::before {
    border-color: var(--fr-red);
    background-color: var(--fr-red);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3e%3cpath fill='none' stroke='%23fff' stroke-width='2.2' d='M1 5l3.5 3.5L11 1'/%3e%3c/svg%3e");
}
.fr-ingredients input:focus-visible + label::before { outline: 3px solid var(--fr-gold); outline-offset: 2px; }

.fr-steps-list ol, .fr-steps-list ul { list-style: none; counter-reset: fr-step; padding: 0; margin: 0; display: grid; gap: 14px; }
.fr-steps-list li {
    counter-increment: fr-step;
    position: relative;
    padding: 20px 22px 20px 78px;
    border-radius: var(--fr-radius-border-card);
    background: var(--fr-white);
    border: 1px solid var(--fr-sand);
    font-size: 16px;
    line-height: 1.7;
    color: var(--fr-ink);
    cursor: pointer;
    transition: opacity .25s, border-color .2s, box-shadow .25s var(--fr-ease);
}
.fr-steps-list li:hover { box-shadow: 0 10px 24px rgba(58, 18, 8, .07); }
.fr-steps-list li::before {
    content: counter(fr-step);
    position: absolute;
    left: 20px;
    top: 18px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--fr-g-card-2);
    color: var(--fr-white);
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.fr-steps-list li.is-done { opacity: .55; }
.fr-steps-list li.is-done::before {
    content: "";
    background: var(--fr-gold) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3e%3cpath fill='none' stroke='%235A1A0C' stroke-width='2.2' d='M1 5l3.5 3.5L11 1'/%3e%3c/svg%3e") center / 16px no-repeat;
}
.fr-steps-list li:focus-visible { outline: 3px solid var(--fr-gold); outline-offset: 2px; }
.fr-print-url { display: none; }
.fr-recipe__share { padding-top: 28px; padding-bottom: 8px; }
@media (max-width: 991.98px) {
    .fr-recipe__grid { grid-template-columns: 1fr; }
    .fr-recipe__ingredients { position: static; }
}

/* ---------- Impressão / Salvar em PDF ---------- */
@media print {
    @page { margin: 14mm; }
    body { background: #fff !important; }
    .fr-header, .fr-footer, .fr-totop, .fr-noprint, .fr-recipe__hint, .ajax_load, .ajax_response,
    .fr-recipe__hero::before { display: none !important; }
    .fr-recipe__hero { padding: 0 0 10mm; }
    .fr-recipe__hero-grid { grid-template-columns: 1fr 70mm; gap: 8mm; }
    .fr-recipe__photo { order: 0; box-shadow: none; border-radius: 4mm; aspect-ratio: 4 / 3; }
    .fr-print-logo { display: block; height: 14mm; width: auto; margin-bottom: 6mm; }
    .fr-recipe__title { font-size: 24pt; margin-bottom: 6mm; }
    .fr-recipe__stats { margin: 0; }
    .fr-recipe__stats li { border-color: #ddd; padding: 2mm 4mm 2mm 2mm; }
    .fr-stat-icon { width: 9mm; height: 9mm; font-size: 13pt; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .fr-recipe__content { background: #fff !important; padding: 0; }
    .fr-recipe__grid { grid-template-columns: 1fr 1.4fr; gap: 8mm; }
    .fr-recipe__ingredients { position: static; border: 0; padding: 0; }
    .fr-ingredients label { font-size: 10.5pt; padding: 1.6mm 0 1.6mm 7mm; text-decoration: none !important; color: #000 !important; }
    .fr-ingredients label::before { width: 3.4mm; height: 3.4mm; top: 2.2mm; border: .3mm solid #999; border-radius: .8mm; background: #fff !important; }
    .fr-steps-list ol { gap: 3mm; }
    .fr-steps-list li { break-inside: avoid; border: 0; padding: 0 0 0 10mm; font-size: 10.5pt; opacity: 1 !important; background: none; }
    .fr-steps-list li::before, .fr-steps-list li.is-done::before {
        content: counter(fr-step); left: 0; top: 0; width: 7mm; height: 7mm; font-size: 9pt;
        background: #D4261F !important; color: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact;
    }
    .fr-h2 { font-size: 14pt; margin-bottom: 4mm; }
    .fr-print-url { display: block; margin-top: 8mm; font-size: 8pt; color: #777; text-align: center; }
}
