.legacy-page { overflow-wrap: anywhere; }
.legacy-content {
    --page-decor: url("./catalogue-paper.webp");
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding: clamp(28px, 5vw, 75px) max(16px, calc((100% - min(91%, 1320px)) / 2));
    background:
        linear-gradient(180deg, #f7f4ed2b, var(--cream) 530px),
        var(--page-decor) center top / max(100%, 780px) auto no-repeat;
}
.legacy-content--studio { --page-decor: url("./workbench-background.webp"); }
.legacy-content--editorial {
    background:
        linear-gradient(180deg, #f7f4ed55, var(--cream) 460px),
        repeating-linear-gradient(0deg, transparent 0 29px, #98765a19 29px 30px),
        var(--page-decor) center top / max(100%, 780px) auto no-repeat;
}
.legacy-content--product { --page-decor: url("./workbench-background.webp"); }
.legacy-content--form {
    --page-decor: url("./catalogue-paper.webp");
    background:
        linear-gradient(95deg, #f7f4ed 25%, #f7f4ed88),
        var(--page-decor) center top / cover;
}
.legacy-content-photo {
    position: absolute;
    z-index: -1;
    inset: 0 0 auto 30%;
    height: clamp(240px, 36vw, 460px);
    mask-image: linear-gradient(90deg, transparent, #000 62%), linear-gradient(180deg, #000 28%, transparent);
    mask-composite: intersect;
    pointer-events: none;
    opacity: .20;
}
.legacy-content-photo img { width: 100%; height: 100%; object-position: center 46%; }
.legacy-content :is(h1, h2, h3) { margin-block: .55em .35em; }
.legacy-content h1 {
    font-size: clamp(2rem, 5vw, 4.9rem);
    letter-spacing: -.045em;
}
.legacy-content h1::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin: .25em auto .4em 0;
    background: var(--wine);
}
.legacy-content h1[align="center"]::after { margin-inline: auto; }
.legacy-content h1 b { font-weight: inherit; }
.legacy-content h2 { font-size: clamp(1.55rem, 3vw, 2.5rem); }
.legacy-content p { margin-block: .65em; }
.legacy-content a:hover { color: var(--wine); }
.legacy-content :is(section, article, table, iframe, video) { max-width: 100%; }
.legacy-content img:not(.legacy-content-photo img) { max-width: 100%; width: auto; height: auto; }
.legacy-content table { max-width: 100%; }
.legacy-content blockquote {
    margin: 1rem 0;
    padding: clamp(12px, 3vw, 32px);
    background: #fffaf1;
    border-inline-start: 2px solid var(--wine);
}
.legacy-content blockquote h6 { margin: 0; font: 400 clamp(1.2rem, 2vw, 1.8rem)/1.35 var(--heading); }
.legacy-content .equalize:has(> .grid-item),
.legacy-content .equalize:has(> .portfolio-item) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(14px, 3vw, 28px);
}
.legacy-content .blog-post { border: 1px solid var(--line); background: #fffaf1d9; }
.legacy-content .post-details { padding: clamp(12px, 2vw, 24px); }
.legacy-content .blog-post-images img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.legacy-content .blog-hover-icon { display: none; }
.legacy-content .post-title { color: var(--wine); font-weight: 700; }
.legacy-content .form-group, .legacy-page .legacy-footer-contact .form-group { margin-block: 10px; }
.legacy-content .form-control, .legacy-page .legacy-footer-contact .form-control {
    max-width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    background: #fffaf1;
    border: 1px solid #aa9387;
    border-radius: 0;
    color: var(--ink);
    font: inherit;
}
.legacy-content :is(button, .btn), .legacy-footer-contact button {
    max-width: 100%;
    min-height: 44px;
    padding: 9px 14px;
    border: 1px solid var(--wine);
    color: white;
    background: var(--wine);
    font: inherit;
    cursor: pointer;
}
.legacy-content a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.legacy-content a.btn:hover { color: white; background: #6b2026; }
.legacy-footer-contact {
    width: min(91%, 1320px);
    margin-inline: auto;
    padding-block: clamp(18px, 4vw, 44px);
    border-top: 1px solid var(--line);
}
.legacy-footer-contact .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 28px;
}
.legacy-footer-contact .widget-title, .legacy-footer-contact h5 {
    color: var(--wine);
    font: 400 clamp(1.25rem, 3vw, 2rem)/1.2 var(--heading);
    margin: 0 0 8px;
}
@media (max-width: 600px) {
    .legacy-content-photo { inset-inline-start: 12%; opacity: .14; }
    .legacy-footer-contact .row { grid-template-columns: minmax(0, 1fr); }
}

.legacy-content--studio {
    background-image:
        linear-gradient(100deg, #f7f4edeb 16%, #f7f4ed66),
        linear-gradient(180deg, transparent 130px, var(--cream) 540px),
        var(--page-decor);
}
.legacy-content--editorial > section { max-width: 1050px; }
.legacy-content--editorial .blog-details-text {
    background: #fffaf1c9;
    border-block: 1px solid var(--line);
    padding: clamp(14px, 4vw, 42px);
}
.legacy-content--editorial .blog-details-text > p { max-width: 73ch; }

.keyword-related { margin-block: 2rem; }
.keyword-related h2 { margin: 0 0 1rem; }
.keyword-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
}
.keyword-related-grid a {
    display: grid;
    overflow: hidden;
    height: 100%;
    color: inherit;
    background: #fcf7ee;
    border: 1px solid #d8ccbc;
    text-decoration: none;
}
.keyword-related-grid a:hover,
.keyword-related-grid a:focus-visible { border-color: #882c34; }
.keyword-related-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.keyword-related-grid a > span {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    padding: .85rem;
}
.keyword-related-grid a > span > span { color: #882c34; }
.legacy-content--form > :is(section, .container) {
    max-width: 1000px;
    margin-inline: auto;
}
.legacy-content--form .form-control:focus-visible {
    border-color: var(--wine);
    outline: 2px solid #cb6a6f;
    outline-offset: 2px;
}
.legacy-content--product .blog-post-images {
    border-bottom: 1px solid var(--line);
    background: #eee2d3;
}
.legacy-content--product .blog-post-images img { width: 100%; }

.legacy-cover {
    display: grid;
    align-content: center;
    min-height: clamp(170px, 26vw, 330px);
    max-width: 100%;
    padding-block: clamp(16px, 5vw, 58px);
    border-bottom: 1px solid var(--line);
    margin-bottom: clamp(15px, 4vw, 40px);
}
.legacy-cover h1 { max-width: 20ch; margin: 0; }
.legacy-cover .eyebrow { color: var(--wine); margin: 0 0 10px; }
.legacy-cover .legacy-cover-subtitle { max-width: 58ch; color: var(--muted); margin: 0; }
.legacy-content--editorial .legacy-cover { min-height: clamp(150px, 20vw, 255px); }

.legacy-content--studio {
    --page-decor: url("./custom-workshop.webp");
    background:
        linear-gradient(90deg, #f7f4edfa 10%, #f7f4edb3 56%, #f7f4ed66),
        linear-gradient(180deg, transparent 15%, var(--cream) 540px),
        var(--page-decor) center top / max(100%, 800px) auto no-repeat;
}
.legacy-content--editorial .legacy-cover {
    position: relative;
    border-bottom-color: #b59a82;
}
.legacy-content--editorial .legacy-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0 auto;
    width: min(28%, 180px);
    height: 6px;
    background: repeating-linear-gradient(90deg, #96735270 0 1px, transparent 1px 12px);
}
.legacy-content--form {
    background:
        radial-gradient(ellipse at 84% 12%, #e6d9c659, transparent 52%),
        linear-gradient(180deg, #f7f4ede5, var(--cream) 520px),
        url("./catalogue-paper.webp") center top / cover;
}
.legacy-footer-contact input.form-control, .legacy-footer-contact textarea.form-control { width: min(100%, 460px); }
.legacy-footer-contact textarea.form-control { min-height: 96px; resize: vertical; }

.legacy-gallery, .legacy-collection {
    background: linear-gradient(110deg, #fffaf1b5, #f7f4ed87), url("./catalogue-paper.webp") center / cover;
    padding: clamp(16px, 3vw, 35px);
    border-block: 1px solid var(--line);
}
.legacy-gallery ul, .legacy-collection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
    gap: clamp(12px, 2vw, 24px);
    list-style: none;
    margin-block: 14px 0;
}
.legacy-gallery ul { padding: 0; }
.legacy-gallery a, .legacy-collection a {
    display: block;
    height: 100%;
    background: #fffaf1;
    border: 1px solid var(--line);
    text-decoration: none;
}
.legacy-gallery a { padding: 5px; }
.legacy-content .legacy-gallery img, .legacy-content .legacy-collection img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.legacy-collection-photo {
    display: block;
    aspect-ratio: 4 / 3;
    background: url("./catalogue-paper.webp") center / cover;
}
.legacy-collection-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    font: 400 clamp(1.2rem, 2vw, 1.7rem)/1.2 var(--heading);
}
.legacy-collection-title > span { color: var(--wine); font-size: .8em; }
.legacy-content--form table {
    border-collapse: collapse;
    background: #fffaf1d6;
}
.legacy-content--form table :is(th, td) { padding: clamp(4px, 1vw, 12px); }
.legacy-content--form table th { border-bottom: 1px solid var(--line); color: var(--wine); }
@media (max-width: 540px) {
    .legacy-content--form table { display: block; max-width: 100%; overflow-x: auto; }
}

.legacy-content--editorial {
    background:
        linear-gradient(180deg, #f7f4edab, var(--cream) 590px),
        radial-gradient(ellipse at 84% 6%, #d1ae876e, transparent 52%),
        url("./catalogue-paper.webp") center top / max(100%, 820px) auto no-repeat;
}
.legacy-content--editorial .legacy-cover {
    padding-inline-end: clamp(0px, 7vw, 115px);
}
.legacy-content--editorial .blog-details-text {
    padding: clamp(14px, 4vw, 52px);
    border: 1px solid var(--line);
    background: linear-gradient(130deg, #fffaf1f7, #f5ecdfd6);
}
.legacy-content--editorial .blog-details-text blockquote {
    background: linear-gradient(110deg, #f0e1d0, #fffaf1);
}
.legacy-content--studio {
    background:
        linear-gradient(100deg, #f7f4edfb 12%, #f7f4ede0 49%, #f7f4ed75),
        linear-gradient(180deg, transparent 90px, var(--cream) 560px),
        url("./custom-workshop.webp") center 0 / max(100%, 820px) auto no-repeat;
}
.legacy-content--studio .legacy-collection {
    background:
        linear-gradient(110deg, #fffaf1f2, #f7f4edaa),
        url("./workbench-background.webp") center / cover;
}
.legacy-content--studio .legacy-collection a:hover { border-color: var(--wine); }
.legacy-content--studio .legacy-collection-title { padding: clamp(12px, 2vw, 22px); }
@media (max-width: 540px) {
    .legacy-content--editorial .legacy-cover { padding-inline-end: 0; }
}


.legacy-content--account {
    background:
        linear-gradient(95deg, #f7f4ed 18%, #f7f4edd9 55%, #f7f4ed8c),
        url("./visit-oak-background.webp") center top / cover;
}
.legacy-content--account :is(.legacy-account-title, .legacy-account-fields, #GoToSindesi) {
    width: min(100%, 660px);
    margin-inline: auto;
}
.legacy-content--account .legacy-account-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
    padding: clamp(16px, 3vw, 32px);
    border: 1px solid var(--line);
    background: #fffaf1eb;
}
.legacy-account-fields > :empty { display: none; }
.legacy-account-fields label { display: block; color: var(--muted); margin-bottom: 5px; }
.legacy-account-fields .form-control { width: 100%; }
.legacy-content--account #GoToSindesi { padding-block: 12px; }
.legacy-content--basket {
    background:
        linear-gradient(180deg, #f7f4edb0, var(--cream) 420px),
        url("./workbench-background.webp") right top / max(100%, 680px) auto no-repeat;
}
.legacy-content--basket #basketcontainer {
    padding: clamp(12px, 3vw, 28px);
    border: 1px solid var(--line);
    background: #fffaf1da;
}
@media (max-width: 580px) {
    .legacy-content--account .legacy-account-fields { grid-template-columns: minmax(0, 1fr); }
    .legacy-content--account #GoToSindesi button { width: 100%; }
}

.legacy-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: .85rem;
}
.legacy-breadcrumb li + li::before { content: "/"; margin-inline-end: 10px; }
.legacy-breadcrumb a { text-underline-offset: .18em; }

.legacy-content-photo--fallback {
    inset-inline-start: 37%;
    opacity: .42;
    mask-image: linear-gradient(90deg, transparent, #000 70%), linear-gradient(180deg, #000 38%, transparent);
}
@media (max-width: 600px) {
    .legacy-content-photo--fallback { inset-inline-start: 18%; opacity: .22; }
}

.legacy-content--form .legacy-content-photo--fallback {
    opacity: .16;
    height: clamp(240px, 32vw, 380px);
}
@media (max-width: 600px) {
    .legacy-content--form .legacy-content-photo--fallback { opacity: .11; }
}
