/* Cookie consent banner — first-party, Garante 2021 / GDPR.
 * Equal-prominence Accept / Reject; X = reject. No cookie wall. */

.lh-consent {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.lh-consent.is-open {
    display: flex;
}
.lh-consent__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.45);
}
.lh-consent__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fff;
    color: #222;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
    padding: 28px 28px 24px;
    font-family: 'Open Sans', 'Josefin Sans', sans-serif;
}
[data-theme="dark"] .lh-consent__dialog,
body.theme-dark .lh-consent__dialog {
    background: #1c1c1c;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}
.lh-consent__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 2px;
}
.lh-consent__close:hover,
.lh-consent__close:focus {
    outline: 2px solid #fd735a;
    outline-offset: 2px;
}
.lh-consent__title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 1px;
    margin: 0 36px 12px 0;
    color: inherit;
}
.lh-consent__text {
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 12px;
    color: inherit;
}
.lh-consent__text a,
.lh-consent__cat a,
.lh-footer-links a {
    color: #c0392b;
    text-decoration: underline;
}
[data-theme="dark"] .lh-consent__text a,
[data-theme="dark"] .lh-consent__cat a,
[data-theme="dark"] .lh-footer-links a,
body.theme-dark .lh-consent__text a,
body.theme-dark .lh-consent__cat a,
body.theme-dark .lh-footer-links a {
    color: #ff8a76;
}
.lh-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}
.lh-consent__btn {
    flex: 1 1 160px;
    min-width: 140px;
    min-height: 44px;
    padding: 12px 22px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}
.lh-consent__btn--accept,
.lh-consent__btn--reject {
    /* Equal size and weight — Garante 2021 */
    font-size: 13px;
    min-height: 44px;
}
.lh-consent__btn--accept {
    background: #fd735a;
    color: #1a1a1a;
    border: 2px solid #fd735a;
}
.lh-consent__btn--reject {
    background: transparent;
    color: inherit;
    border: 2px solid currentColor;
}
.lh-consent__btn--save {
    background: #fd735a;
    color: #1a1a1a;
    border: 2px solid #fd735a;
}
.lh-consent__btn--link {
    flex: 1 1 100%;
    background: none;
    border: 0;
    color: inherit;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    text-decoration: underline;
    min-height: 40px;
    cursor: pointer;
    padding: 8px 0;
}
.lh-consent__btn:hover,
.lh-consent__btn:focus {
    outline: 2px solid #fd735a;
    outline-offset: 2px;
}
.lh-consent__panel {
    display: none;
    margin-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    padding-top: 16px;
}
[data-theme="dark"] .lh-consent__panel,
body.theme-dark .lh-consent__panel {
    border-top-color: rgba(255, 255, 255, 0.18);
}
.lh-consent.is-customize .lh-consent__panel {
    display: block;
}
.lh-consent.is-customize .lh-consent__intro-actions {
    display: none;
}
.lh-consent__cat {
    margin: 0 0 14px;
    padding: 12px 0;
}
.lh-consent__cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.lh-consent__cat h3 {
    margin: 0;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 500;
    color: inherit;
}
.lh-consent__cat p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: inherit;
}
.lh-consent__switch {
    position: relative;
    width: 44px;
    height: 26px;
    flex-shrink: 0;
}
.lh-consent__switch input {
    position: absolute;
    opacity: 0;
    width: 44px;
    height: 26px;
    margin: 0;
    cursor: pointer;
}
.lh-consent__switch input:disabled {
    cursor: not-allowed;
}
.lh-consent__switch span {
    display: block;
    width: 44px;
    height: 26px;
    border-radius: 13px;
    background: #bbb;
    pointer-events: none;
}
[data-theme="dark"] .lh-consent__switch span,
body.theme-dark .lh-consent__switch span {
    background: #555;
}
.lh-consent__switch span:after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
}
.lh-consent__switch input:checked + span {
    background: #fd735a;
}
.lh-consent__switch input:checked + span:after {
    left: 21px;
}
.lh-consent__switch input:focus + span {
    outline: 2px solid #fd735a;
    outline-offset: 2px;
}
.lh-consent__unused {
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* Footer legal links */
.lh-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.92rem;
}
.lh-footer-links button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: #c0392b;
    text-decoration: underline;
    cursor: pointer;
}
[data-theme="dark"] .lh-footer-links button,
body.theme-dark .lh-footer-links button {
    color: #ff8a76;
}

/* Legal pages: the template hides .navbar.fixed-top until scroll (custom.js). Always show it here. */
body.page-legal .navbar.fixed-top {
    display: block;
}

/* Legal pages */
.section-legal {
    padding: 140px 0 80px;
}
.section-legal .legal-wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-legal h1 {
    font-size: 32px;
    margin: 0 0 8px;
}
.section-legal .legal-updated {
    font-size: 0.95rem;
    opacity: 0.8;
    margin: 0 0 28px;
}
.section-legal h2 {
    font-size: 22px;
    margin: 32px 0 12px;
}
.section-legal h3 {
    font-size: 18px;
    margin: 20px 0 8px;
}
.section-legal p,
.section-legal li {
    font-size: 16px;
    line-height: 1.75;
    margin: 0 0 12px;
}
.section-legal ul {
    margin: 0 0 16px 1.2rem;
}
.section-legal a {
    color: #c0392b;
    text-decoration: underline;
}
[data-theme="dark"] .section-legal a,
body.theme-dark .section-legal a {
    color: #ff8a76;
}
.section-legal .legal-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 16px 0 24px;
}
.section-legal table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.5;
}
.section-legal th,
.section-legal td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border: 1px solid rgba(0, 0, 0, 0.14);
}
[data-theme="dark"] .section-legal th,
[data-theme="dark"] .section-legal td,
body.theme-dark .section-legal th,
body.theme-dark .section-legal td {
    border-color: rgba(255, 255, 255, 0.18);
}
.section-legal th {
    font-family: 'Josefin Sans', sans-serif;
    letter-spacing: 0.5px;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .lh-consent {
        padding: 10px;
        align-items: flex-end;
    }
    .lh-consent__dialog {
        padding: 22px 18px 18px;
        max-height: calc(100vh - 20px);
    }
    .lh-consent__btn {
        flex: 1 1 100%;
    }
    .section-legal {
        padding: 120px 0 56px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lh-consent,
    .lh-consent__dialog,
    .lh-consent__backdrop {
        transition: none;
    }
}

body.lh-consent-open {
    overflow: hidden;
}

.lh-consent[hidden] {
    display: none !important;
}
