:root {
    --wp-terms-gold: #d8a94e;
    --wp-terms-gold-bright: #edc66f;
    --wp-terms-copy: #d9cfb6;
    --wp-terms-rule: rgba(216, 169, 78, 0.32);
}

.wp-terms-new {
    --wp-terms-index-height: 0px;
}

.wp-terms-new .wp-academy__title {
    letter-spacing: 3.2px;
}

.wp-terms-new .wp-academy__eyebrow {
    display: block;
    margin: 0 0 4px;
    color: rgba(216, 169, 78, 0.78);
    font-family: 'Cinzel', serif;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
}

.wp-terms-new .wp-academy-panel {
    background: linear-gradient(
        118deg,
        rgba(6, 8, 12, 0.9),
        rgba(8, 9, 14, 0.84) 54%,
        rgba(12, 9, 16, 0.88)
    );
}

.wp-terms-new .doc-nav.wp-doc-tabs {
    padding: 25px 27px 23px 32px;
    overflow: hidden;
    background: transparent;
}

.wp-terms-new .doc-nav.wp-doc-tabs::after {
    top: 17px;
    bottom: 17px;
}

.wp-terms-new .wp-rules-index-head {
    margin-bottom: 12px;
}

.wp-terms-new .wp-rules-index-head h2 {
    font-size: clamp(15px, 1.2vw, 18px);
}

.wp-terms-new .wp-rules-index-search {
    margin-bottom: 11px;
}

.wp-terms-new .wp-terms-index-list {
    margin: 0;
    padding: 0;
}

.wp-terms-new .wp-terms-index-list::after {
    display: none;
}

.wp-terms-new .doc-nav .wp-terms-index-list a {
    min-height: 52px;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    margin: 1px 0;
    padding: 4px 10px;
    color: #d9ceb5;
    font-size: 18.5px;
    line-height: 1.12;
}

.wp-terms-new .doc-nav .wp-terms-index-list a img {
    width: 38px;
    height: 38px;
}

.wp-terms-new .doc-nav .wp-terms-index-list a b {
    color: #c99c4b;
    font-family: 'Cinzel', serif;
    font-size: 0.74em;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.wp-terms-new .doc-section {
    color: var(--wp-terms-copy);
    font-family: 'EB Garamond', Georgia, serif;
    background: transparent;
    scrollbar-gutter: stable;
}

.wp-terms-new .wp-terms-section-eyebrow {
    margin: 0 0 3px;
    color: rgba(216, 169, 78, 0.66);
    font-family: 'Cinzel', serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.wp-terms-new .section-title {
    margin: 0 auto 24px;
    font-size: clamp(21px, 2.05vw, 30px);
}

.wp-terms-new .section-title::before {
    width: clamp(76px, 6.1vw, 92px);
    height: clamp(76px, 6.1vw, 92px);
    margin-bottom: 4px;
    background-image: url('../images/icons/terms-section-emblem.png');
}

.wp-terms-new .section-title::after {
    margin-top: 6px;
    margin-bottom: 0;
}

.wp-terms-new .wp-document {
    width: min(100%, 82ch);
    font-size: clamp(15.6px, 1.08vw, 17px);
    line-height: 1.62;
}

.wp-terms-new .wp-document h2 {
    margin-top: 0;
    color: #dfb258;
    font-size: clamp(16px, 1.34vw, 20px);
    letter-spacing: 1.25px;
}

.wp-terms-new .wp-document h3 {
    font-size: clamp(13.7px, 1.05vw, 15.7px);
}

.wp-terms-new #condizioni .wp-document > div:first-child {
    margin: 0;
    padding: 17px 20px 15px;
    border-left: 1px solid rgba(216, 169, 78, 0.58);
    background: linear-gradient(100deg, rgba(125, 86, 33, 0.13), rgba(8, 12, 17, 0.03) 76%);
}

.wp-terms-new #condizioni .wp-document > div:first-child > p:last-child {
    position: relative;
    margin: 17px 0 0;
    padding: 14px 17px 14px 51px;
    border: 1px solid rgba(216, 169, 78, 0.46);
    border-radius: 6px;
    background: rgba(73, 47, 17, 0.15);
    color: #ecc36e;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.01em;
    font-style: normal;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}

.wp-terms-new #condizioni .wp-document > div:first-child > p:last-child::before {
    position: absolute;
    top: 50%;
    left: 18px;
    color: #d8a94e;
    content: '!';
    font-family: 'Cinzel', serif;
    font-size: 1.55em;
    font-style: normal;
    transform: translateY(-52%);
}

.wp-terms-new #aggiornamenti .wp-document {
    max-width: 68ch;
}

.wp-terms-new #aggiornamenti .wp-document > div:first-child {
    margin: 0;
    padding: 22px 24px 20px;
    border: 1px solid rgba(216, 169, 78, 0.44);
    border-radius: 7px;
    background: linear-gradient(105deg, rgba(109, 72, 27, 0.15), rgba(7, 10, 15, 0.08));
    text-align: center;
}

.wp-terms-new #aggiornamenti .wp-document > div:first-child > p:last-child {
    margin-bottom: 0;
}

@media (min-width: 981px) {
    .wp-documentazione-main > .wp-terms-new {
        max-height: none;
        overflow: visible;
    }

    .wp-terms-new .wp-academy-panel {
        height: max(470px, calc(100dvh - 260px), var(--wp-terms-index-height));
    }

    .wp-terms-new .doc-section {
        padding: clamp(23px, 3vw, 40px) clamp(24px, 3.6vw, 52px) 36px;
    }
}

@media (min-width: 981px) and (max-height: 850px) {
    .wp-terms-new .wp-academy-panel {
        height: max(430px, calc(100dvh - 220px), var(--wp-terms-index-height));
    }

    .wp-terms-new .doc-nav.wp-doc-tabs {
        padding-top: 17px;
        padding-bottom: 16px;
    }

    .wp-terms-new .doc-nav.wp-doc-tabs::after {
        top: 12px;
        bottom: 12px;
    }

    .wp-terms-new .doc-nav .wp-terms-index-list a {
        min-height: 42px;
        grid-template-columns: 31px minmax(0, 1fr);
        gap: 8px;
        padding-top: 2px;
        padding-bottom: 2px;
        font-size: 16.5px;
    }

    .wp-terms-new .doc-nav .wp-terms-index-list a img {
        width: 29px;
        height: 29px;
    }

    .wp-terms-new .section-title::before {
        width: 66px;
        height: 66px;
    }
}

@media (min-width: 981px) and (max-height: 650px) {
    .wp-terms-new .doc-nav.wp-doc-tabs {
        padding: 12px 18px 12px 25px;
    }

    .wp-terms-new .doc-nav .wp-terms-index-list a {
        min-height: 31px;
        grid-template-columns: 23px minmax(0, 1fr);
        gap: 7px;
        margin: 0;
        padding: 1px 8px;
        font-size: 14.5px;
    }

    .wp-terms-new .doc-nav .wp-terms-index-list a img {
        width: 22px;
        height: 22px;
    }

    .wp-terms-new .doc-section {
        padding: 10px 34px 24px 39px;
    }

    .wp-terms-new .section-title::before {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 1180px) {
    .wp-terms-new .doc-nav.wp-doc-tabs {
        padding-right: 18px;
        padding-left: 22px;
    }
}

@media (max-width: 980px) {
    .wp-terms-new .doc-nav.wp-doc-tabs {
        display: block;
        padding: 18px 20px;
    }

    .wp-terms-new .doc-nav.wp-doc-tabs::after {
        display: none;
    }

    .wp-terms-new .doc-nav .wp-terms-index-list a {
        min-height: 46px;
        grid-template-columns: 33px minmax(0, 1fr);
        font-size: 17px;
    }

    .wp-terms-new .doc-nav .wp-terms-index-list a img {
        width: 31px;
        height: 31px;
    }

    .wp-terms-new .doc-section {
        padding: 26px 20px 34px;
    }
}

@media (max-width: 620px) {
    .wp-terms-new .section-title {
        font-size: 20px;
        letter-spacing: 1.15px;
    }

    .wp-terms-new .wp-document {
        font-size: 15.5px;
    }

    .wp-terms-new #condizioni .wp-document > div:first-child > p:last-child {
        padding-left: 17px;
    }

    .wp-terms-new #condizioni .wp-document > div:first-child > p:last-child::before {
        display: none;
    }
}

html.wp-legal-guest-root {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

body.wp-legal-guest-page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    overflow-x: clip;
}

.wp-legal-guest-page .wp-main {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.wp-legal-guest-page .wp-academy.wp-legal-doc {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding-top: clamp(16px, 1.8vw, 26px);
}

.wp-legal-guest-page .wp-terms-new .wp-academy__inner {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.wp-legal-guest-page .wp-terms-new .wp-section-stack {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.wp-legal-guest-head {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 14px clamp(16px, 4vw, 40px);
    border-bottom: 1px solid rgba(198, 154, 68, 0.28);
    background: rgba(6, 8, 13, 0.72);
}

.wp-legal-guest-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #dcb367;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 16px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.wp-legal-guest-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.wp-legal-guest-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.wp-legal-guest-nav a {
    padding: 8px 18px;
    border: 1px solid rgba(198, 154, 68, 0.45);
    border-radius: 3px;
    color: #e2c47f;
    font-family: 'Cinzel', Georgia, serif;
    font-size: 12.5px;
    letter-spacing: 1.3px;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.wp-legal-guest-nav a:hover {
    border-color: #e3bd6d;
    background: rgba(213, 164, 71, 0.12);
    color: #f6dda6;
}

.wp-legal-guest-nav a.is-primary {
    border-color: #b98a37;
    background: linear-gradient(180deg, #8e6c2f 0%, #6a4c1e 100%);
    color: #f7e7b8;
}

.wp-legal-guest-nav a.is-primary:hover {
    filter: brightness(1.08);
}

@media (max-width: 560px) {
    .wp-legal-guest-head {
        gap: 10px;
        padding: 10px 14px;
    }

    .wp-legal-guest-brand {
        font-size: 13.5px;
        letter-spacing: 1px;
    }

    .wp-legal-guest-brand img {
        width: 28px;
        height: 28px;
    }

    .wp-legal-guest-nav a {
        padding: 7px 13px;
        font-size: 11.5px;
        letter-spacing: 1px;
    }
}

@media (max-width: 430px) {
    .wp-legal-guest-brand > span {
        display: none;
    }
}

@media (min-width: 981px) {
    .wp-legal-guest-page .wp-terms-new .wp-academy-panel {
        flex: 1 1 auto;
        height: auto;
        min-height: max(430px, var(--wp-terms-index-height));
    }

    .wp-legal-guest-head {
        position: absolute;
        z-index: 6;
        top: 0;
        right: 0;
        left: 0;
        padding: 15px clamp(16px, 2.4vw, 34px);
        border-bottom: 0;
        background: transparent;
        pointer-events: none;
    }

    .wp-legal-guest-brand,
    .wp-legal-guest-nav {
        pointer-events: auto;
    }

    .wp-legal-guest-page .wp-main > .wp-page-footer {
        width: calc(100% - (var(--wp-page-gutter) * 2));
        margin-right: var(--wp-page-gutter);
        margin-left: var(--wp-page-gutter);
        padding-right: 22px;
        padding-left: 22px;
    }
}

.wp-dati-account .wp-academy-panel {
    grid-template-columns: minmax(0, 1fr);
}

.wp-dati-account .wp-document {
    margin-right: auto;
    margin-left: auto;
}

.wp-dati-account .wp-document h2 + p,
.wp-dati-account .wp-document h2 + ol {
    margin-top: 0;
}

.wp-dati-account .wp-document a {
    color: var(--wp-terms-gold-bright);
}

@media (min-width: 981px) {
    .wp-dati-account .doc-section {
        left: 18px;
    }
}
