.history-banner img{display:block;width:100%;max-width:1200px;height:auto;margin:auto}
.history-page{max-width:1200px;margin:0 auto;padding-bottom:40px}
.history-heading{margin:60px 0}.history-heading span{font-size:22px;letter-spacing:2px;color:#0d5c2f;font-weight:700}.history-heading h1{font-size:42px;line-height:1.2;margin:14px 0 0;color:#111}
.history-top{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:30px 28px;align-items:start}
.history-lead{min-height:450px;padding:20px;border:1px solid #b68d4a;box-shadow:0 8px 25px #00000014;box-sizing:border-box;min-width:0}
.history-lead__top{display:flex;align-items:center;gap:35px}.history-lead__image{flex:0 0 300px;width:300px;height:220px}.history-lead__image img{width:100%;height:100%;object-fit:cover;border-radius:8px;display:block}
.history-lead h2{font-size:42px;line-height:1.15;margin:0 0 16px}.history-page h2 a,.history-page h3 a{color:#111;text-decoration:none}
.history-categories{color:#94876c;font-size:16px;line-height:1.7}.history-categories a{color:inherit;text-decoration:none}
.history-summary{margin:20px 0 15px;color:#444;font-size:16px;line-height:1.7}
.history-more summary{cursor:pointer;color:#0a5a00;font-weight:600;list-style:none;margin-top:15px}.history-more summary::-webkit-details-marker{display:none}.history-more__open,.history-more[open] .history-more__closed{display:none}.history-more[open] .history-more__open{display:inline}.history-more>div{line-height:1.8;color:#444;margin-top:15px}.history-more iframe{max-width:100%}
.history-side img{display:block;width:280px;height:450px;object-fit:cover}
.history-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;min-width:0}
.history-card{padding:5px;border:1px solid #0000000f;transition:transform .35s,box-shadow .35s;background:#fff;min-width:0}.history-card__image{display:block;aspect-ratio:4/5;overflow:hidden}.history-card__image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s}.history-card__body{padding:23px}.history-card .history-categories{font-size:10px;font-weight:700;letter-spacing:2px;text-transform:uppercase;color:#0d5c2f;margin-bottom:16px}.history-card h3{font-size:24px;line-height:1.3;margin:0}
@media(hover:hover){.history-card:hover{transform:translateY(-6px);box-shadow:0 20px 50px #00000014}.history-card:hover img{transform:scale(1.05)}.history-page h3 a:hover{color:#b68d4a}}
.history-list{margin-top:60px}.history-row{display:grid;grid-template-columns:200px minmax(0,1fr);gap:24px;margin-bottom:32px;padding-bottom:32px;border-bottom:1px solid #00000014}.history-row__image{display:block;width:200px;height:200px}.history-row__image img{width:100%;height:100%;object-fit:cover;display:block}.history-row .history-categories{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#b68d4a;margin-bottom:10px}.history-row h3{font-size:28px;line-height:1.2;font-weight:400;margin:0 0 14px}.history-row p{font-size:16px;line-height:1.6;color:#555;margin:0 0 16px}.history-row__link{color:#0a5a00;text-decoration:none}
@media(max-width:1100px){.history-lead__image{flex-basis:40%;width:40%}.history-lead__top{gap:24px}.history-lead h2{font-size:32px}}
@media(max-width:800px){.history-top{grid-template-columns:minmax(0,1fr)}.history-side{justify-self:center}.history-heading{margin:35px 0}.history-heading h1{font-size:34px}.history-lead{min-height:0}.history-lead__top{flex-direction:column;align-items:stretch}.history-lead__image{width:100%;height:auto;aspect-ratio:4/3;flex:auto}.history-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.history-card__body{padding:12px}.history-card h3{font-size:18px}.history-row{grid-template-columns:140px minmax(0,1fr);gap:18px}.history-row__image{width:140px;height:175px}.history-row h3{font-size:23px}}
@media(max-width:520px){.history-cards{grid-template-columns:minmax(0,1fr)}.history-row{grid-template-columns:minmax(0,1fr)}.history-row__image{width:100%;height:auto;aspect-ratio:4/3}.history-card h3{font-size:24px}.history-page{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.history-card,.history-card__image img{transition:none}}

/* Linhas: coluna proporcional à imagem inteira, na altura padrão de 200px. */
.history-row { grid-template-columns:fit-content(40%) minmax(0,1fr); }
.history-row__image { width:auto; min-width:0; max-width:100%; height:200px; aspect-ratio:auto; }
.history-row__image img { width:auto; max-width:100%; height:100%; object-fit:contain; object-position:left top; }
@media (max-width:800px) {
    .history-row__image { height:175px; }
}
@media (max-width:520px) {
    .history-row { grid-template-columns:minmax(0,1fr); }
    .history-row__image { height:200px; }
}

/* Destaque com as medidas do magazine das editorias, sem recortar a imagem. */
@media (min-width:901px) {
    .history-lead { display:grid; height:450px; min-height:0; padding:0; border:0; outline:1px solid #b19e71; outline-offset:-1px; grid-template-columns:fit-content(42%) minmax(0,1fr); grid-template-rows:auto minmax(0,1fr) auto; gap:0 24px; box-shadow:none; }
    .history-lead__top { display:contents; }
    .history-lead__image { display:block; grid-column:1; grid-row:1 / 4; width:auto; min-width:0; height:auto; min-height:0; margin:15px 0 15px 15px; }
    .history-lead__image img { display:block; width:auto; max-width:100%; height:420px; max-height:none; aspect-ratio:auto; object-fit:contain; border-radius:0; }
    .history-lead__top > div { grid-column:2; grid-row:1; min-width:0; padding:20px 20px 0 0; }
    .history-lead h2 { font-size:clamp(26px,3vw,40px); line-height:1.15; margin:0 0 16px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; }
    .history-lead .history-categories { font-size:14px; line-height:1.7; margin:0 0 16px; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
    .history-lead > .history-summary { grid-column:2; grid-row:2; min-width:0; min-height:0; margin:0 20px 16px 0; overflow:hidden; }
    .history-lead > :is(.history-more,a) { grid-column:2; grid-row:3; min-width:0; margin:0; padding:0 20px 20px 0; }
    .history-lead .history-more summary { margin-top:0; }
    /* A expansão continua disponível abaixo do destaque, sem cortar seu conteúdo. */
    .history-lead:has(.history-more[open]) { height:auto; }
    .history-lead > .history-more[open] { grid-column:1 / -1; grid-row:4; padding:0 20px 20px; }
    .history-lead:not(:has(.history-lead__image img)) { grid-template-columns:1fr; }
    .history-lead:not(:has(.history-lead__image img)) .history-lead__image { display:none; }
    .history-lead:not(:has(.history-lead__image img)) :is(.history-lead__top > div,.history-summary,.history-more) { grid-column:1; padding-left:20px; }
}
