/* ============================================================
   TEMPLATE 15: "Editorial" (v2, com presença)
   Papel, tinta, serifa, filetes: e o acento na cor do cliente
   (--color-primary, injetada pelo variables.css.twig).
   ============================================================ */

:root {
    /* cor do papel no PDF (o <svg> de base/body.twig usa) */
    --lp-print-bg: #f7f4ed;
}

.ed-paper {
    --papel: #f7f4ed;
    --tinta: #16140f;
    --tinta-suave: #5b554b;
    --filete: #d5cec0;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(0, 0, 0, .035), transparent 60%),
        var(--papel);
    border-top: 6px solid var(--color-primary);
    color: var(--tinta);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.ed-paper .container {
    max-width: 1060px;
}

/* ---------- filetes ---------- */
.ed-rule-double {
    border-top: 4px solid var(--tinta);
    border-bottom: 1px solid var(--tinta);
    height: 9px;
    margin: 14px 0 26px;
}

/* ---------- masthead ---------- */
.ed-masthead {
    padding: 26px 0 6px;
}

.ed-dateline {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--tinta-suave);
    border-bottom: 1px solid var(--filete);
    padding-bottom: 10px;
}

.ed-dateline .fa-location-dot {
    color: var(--color-primary);
    margin-right: 6px;
}

.ed-nameplate {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(26px, 3.6vw, 44px);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    padding: 22px 0 4px;
}

.ed-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-style: italic;
    font-size: clamp(30px, 4.6vw, 54px);
    line-height: 1.12;
    margin: 0 0 24px;
    max-width: 24ch;
}

.ed-cta {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: #fff;
    background: var(--color-primary);
    padding: 15px 30px;
    margin-bottom: 28px;
    text-decoration: none;
    box-shadow: 6px 6px 0 var(--tinta);
    transition: transform .15s, box-shadow .15s;
}

.ed-cta:hover {
    color: #fff;
    text-decoration: none;
    transform: translate(2px, 2px);
    box-shadow: 3px 3px 0 var(--tinta);
}

.ed-cta .fa-arrow-down {
    margin-left: 8px;
}

/* ---------- capa full-bleed ---------- */
.ed-hero {
    position: relative;
    margin: 0 0 0;
}

.ed-hero-img {
    display: block;
    width: 100%;
    min-height: 340px;
    aspect-ratio: 21 / 9;
    max-height: 640px;
    background-size: cover;
    background-position: center;
    border-top: 1px solid var(--tinta);
    border-bottom: 1px solid var(--tinta);
}

.ed-hero-card {
    position: absolute;
    left: max(24px, calc((100% - 1060px) / 2 + 15px));
    bottom: -26px;
    background: var(--papel);
    border: 1px solid var(--tinta);
    box-shadow: 8px 8px 0 rgb(0 0 0 / .22);
    padding: 16px 22px;
    display: flex;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
    max-width: min(86vw, 720px);
}

.ed-hero-eyebrow {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: 19px;
}

.ed-hero-fact {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* ---------- bento de destaques ---------- */
.ed-stats-sec {
    padding: 62px 0 8px;
}

.ed-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    border: 2px solid var(--tinta);
    background: #fffdf8;
    box-shadow: 10px 10px 0 rgb(0 0 0 / .12);
}

.ed-stat {
    border-right: 1px solid var(--filete);
    padding: 24px 20px 20px;
}

.ed-stat:last-child {
    border-right: 0;
}

.ed-stat-n {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: -0.5px;
}

.ed-stat-price .ed-stat-n {
    font-size: 26px;
    color: var(--color-primary);
}

.ed-stat-l {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tinta-suave);
    margin-top: 6px;
}

/* preco principal: celula invertida, tinta sobre papel */
.ed-stat-destaque {
    background: var(--tinta);
}

.ed-stat-destaque .ed-stat-n {
    color: #f7f4ed;
}

.ed-stat-destaque .ed-stat-l {
    color: rgba(247, 244, 237, .75);
}

/* ---------- titulos de secao numerados ---------- */
.ed-h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: 28px;
    margin: 0 0 18px;
}

.ed-h2::after {
    content: "";
    flex: 1;
    border-top: 3px solid var(--tinta);
}

.ed-h2-num {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 2px;
    color: #fff;
    background: var(--color-primary);
    padding: 5px 9px;
}

.ed-h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--tinta-suave);
    margin: 22px 0 10px;
}

/* ---------- corpo em colunas ---------- */
.ed-body-sec {
    padding: 44px 0 12px;
}

.ed-body {
    font-size: 16px;
}

.ed-body p {
    margin: 0 0 16px;
}

.ed-body p:first-of-type {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 20px;
    line-height: 1.5;
}

.ed-body p:first-of-type::first-letter {
    font-weight: 900;
    font-size: 64px;
    line-height: .85;
    float: left;
    padding: 6px 12px 0 0;
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .ed-body {
        column-count: 2;
        column-gap: 48px;
        column-rule: 1px solid var(--filete);
    }

    .ed-body p:first-of-type {
        column-span: all;
        max-width: 70ch;
        margin-bottom: 22px;
    }
}

/* ---------- galeria (mosaico proprio) ---------- */
.ed-galeria-sec {
    padding: 40px 0 10px;
}

.grid-photo-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}

.grid-photo {
    display: block;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--tinta);
    box-shadow: 6px 6px 0 rgb(0 0 0 / .10);
    padding-top: 62%;
    transition: transform .15s;
}

.grid-photo:hover {
    transform: translate(-2px, -2px);
}

@media (min-width: 768px) {
    .grid-photo-gallery {
        display: grid;
        gap: 16px;
        grid-auto-rows: 235px;
        grid-template-areas: 'a a b' 'a a c' 'd e f';
    }

    .grid-photo {
        padding-top: 0;
    }

    .grid-photo:nth-child(1) { grid-area: a; }
    .grid-photo:nth-child(2) { grid-area: b; }
    .grid-photo:nth-child(3) { grid-area: c; }
    .grid-photo:nth-child(4) { grid-area: d; }
    .grid-photo:nth-child(5) { grid-area: e; }
    .grid-photo:nth-child(6) { grid-area: f; }

    /* poucas fotos: nada de trilhas vazias */
    .grid-photo-gallery:has(.grid-photo:last-child:nth-child(-n+4)) {
        grid-template-areas: none;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        background: transparent;
    }

    .grid-photo-gallery:has(.grid-photo:last-child:nth-child(-n+4)) .grid-photo {
        grid-area: auto;
        aspect-ratio: 16 / 10;
    }

    .grid-photo-gallery:has(.grid-photo:last-child:nth-child(1)) {
        grid-template-columns: minmax(0, 760px);
        justify-content: center;
    }
}

/* ---------- video ---------- */
.ed-video-sec {
    padding: 40px 0 10px;
}

.ed-video-sec iframe {
    border: 1px solid var(--tinta);
    box-shadow: 6px 6px 0 rgb(0 0 0 / .10);
}

section:has(blockquote.instagram-media),
section:has(iframe.instagram-media),
.content-videos:has(blockquote.instagram-media),
.content-videos:has(iframe.instagram-media) {
    background: transparent !important;
}

/* ---------- caracteristicas ---------- */
.ed-carac-sec {
    padding: 40px 0 10px;
}

.ed-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ed-tags li {
    font-size: 13.5px;
    font-weight: 500;
    border: 1px solid var(--tinta);
    background: #fffdf8;
    box-shadow: 3px 3px 0 rgb(0 0 0 / .12);
    padding: 8px 15px;
}

/* ---------- fecho da edicao ---------- */
.ed-fim {
    margin-top: 48px;
    background: var(--tinta);
    color: #f7f4ed;
    padding: 30px 0 26px;
}

.ed-fim-linha {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.ed-fim-local {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: clamp(20px, 2.8vw, 30px);
}

.ed-fim-ref {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.2px;
    color: rgba(247, 244, 237, .7);
}

.ed-fim-marca {
    color: var(--color-primary);
    font-size: 18px;
    margin-top: 10px;
}

/* ---------- formulario ---------- */
.ed-form-sec {
    padding: 46px 0 56px;
}

.ed-form-card {
    max-width: 680px;
    margin: 0 auto;
    background: #fffdf8;
    border: 2px solid var(--tinta);
    box-shadow: 12px 12px 0 rgb(0 0 0 / .14);
    padding: 34px 34px 30px;
}

.ed-form-nameplate {
    font-size: clamp(20px, 2.6vw, 28px);
    padding: 0;
    text-align: left;
}

.ed-form-card .ed-rule-double {
    margin-top: 10px;
}

.ed-form-card input,
.ed-form-card select,
.ed-form-card textarea {
    width: 100%;
    background: #fff;
    border: 1px solid var(--tinta);
    border-radius: 0;
    padding: 13px 15px;
    margin-bottom: 12px;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14.5px;
    color: var(--tinta);
}

.ed-form-card input:focus,
.ed-form-card textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: -1px;
}

.ed-form-card button,
.ed-form-card input[type="submit"] {
    width: 100%;
    background: var(--color-primary);
    color: #fff;
    border: 0;
    border-radius: 0;
    padding: 15px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 5px 5px 0 var(--tinta);
    transition: transform .15s, box-shadow .15s;
}

.ed-form-card button:hover,
.ed-form-card input[type="submit"]:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--tinta);
}

/* ---------- whatsapp flutuante ---------- */
.ed-wpp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25d366;
    color: #fff;
    font-size: 27px;
    border-radius: 50%;
    border: 2px solid #16140f;
    box-shadow: 4px 4px 0 rgb(0 0 0 / .3);
    text-decoration: none;
    transition: transform .15s;
}

.ed-wpp:hover {
    color: #fff;
    transform: translate(1px, 1px);
}

/* ---------- colofao ---------- */
footer {
    background: #f7f4ed;
}

.ed-colophon {
    max-width: 1060px;
    text-align: center;
    padding: 10px 15px 44px;
    font-family: 'Inter', system-ui, sans-serif;
    color: #5b554b;
}

.ed-colophon-logo {
    max-width: 170px;
    max-height: 90px;
    margin: 20px auto 10px;
    display: block;
}

.ed-colophon-nome {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #16140f;
}

.ed-colophon-linha {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 22px;
    font-size: 13.5px;
    margin: 8px 0 4px;
}

.ed-colophon-end {
    font-size: 12.5px;
    font-style: normal;
    margin: 0 0 10px;
}

.ed-colophon-privacy {
    font-size: 12px;
    color: #5b554b;
    text-decoration: underline;
}

/* ---------- mobile ---------- */
@media (max-width: 767px) {
    .ed-hero-card {
        left: 16px;
        right: 16px;
        bottom: -20px;
        padding: 12px 16px;
        gap: 10px 16px;
    }

    .ed-stats-sec {
        padding-top: 48px;
    }

    .ed-stat {
        border-bottom: 1px solid var(--filete);
    }
}

/* ---------- impressao (?pdf=1) ---------- */
@media print {
    .ed-cta,
    .ed-wpp {
        display: none !important;
    }

    .ed-body {
        column-count: 1;
    }

    .ed-stats,
    .ed-form-card,
    .grid-photo,
    .ed-hero-card {
        box-shadow: none !important;
    }

    /* O navegador não imprime fundos: blocos de tinta cheia com texto claro
       sairiam invisíveis no papel. Viram tinta sobre o branco. */
    .ed-fim,
    .ed-stat-destaque {
        background: transparent !important;
        color: var(--tinta) !important;
        border-top: 2px solid var(--tinta);
    }

    .ed-stat-destaque .ed-stat-n,
    .ed-fim-local {
        color: var(--tinta) !important;
    }

    .ed-stat-destaque .ed-stat-l,
    .ed-fim-ref {
        color: var(--tinta-suave) !important;
    }
}

/* ---------- detalhes (componente compartilhado) vestido de jornal ---------- */
.ed-paper .lp-det {
    padding: 4px 0 26px;
}

.ed-paper .lp-det__wrap {
    max-width: 1060px;
}

.ed-paper .lp-det__titulo {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 800;
    font-size: 28px;
}

.ed-paper .lp-det__item {
    border-bottom: 1px solid var(--filete);
}

.ed-paper .lp-det__item dd {
    font-family: 'Playfair Display', Georgia, serif;
}
