/* =====================================================
   UNIVERSI ENTERTAINMENT â€” DOCUMENTI LEGALI
   Sfondo nero, testi bianchi, dettagli viola
   Larghezza massima contenuto: 1280px
===================================================== */

/* RESET E SFONDO DEL TEMPLATE */

html {
    background: #020204;
}

body.page-template-template-documenti-legali,
body.page-template-template-documenti-legali-php {
    margin: 0;
    background: #020204 !important;
    color: #ffffff;
}

body.page-template-template-documenti-legali #page,
body.page-template-template-documenti-legali-php #page,
body.page-template-template-documenti-legali .site,
body.page-template-template-documenti-legali-php .site,
body.page-template-template-documenti-legali .site-content,
body.page-template-template-documenti-legali-php .site-content,
body.page-template-template-documenti-legali .content-area,
body.page-template-template-documenti-legali-php .content-area,
body.page-template-template-documenti-legali .site-main,
body.page-template-template-documenti-legali-php .site-main,
body.page-template-template-documenti-legali main,
body.page-template-template-documenti-legali-php main,
body.page-template-template-documenti-legali article,
body.page-template-template-documenti-legali-php article,
body.page-template-template-documenti-legali .entry-content,
body.page-template-template-documenti-legali-php .entry-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #020204 !important;
}

/* WRAPPER DEL TEMPLATE */

.ue-documenti-legali-template,
.ue-documento-legale,
.ue-documento-legale-contenuto {
    width: 100%;
    background: #020204;
}

.ue-documenti-legali-template,
.ue-documenti-legali-template *,
.ue-documenti-legali-template *::before,
.ue-documenti-legali-template *::after {
    box-sizing: border-box;
}

/* CONTENITORE PRINCIPALE */

.ue-legal-page {
    width: calc(100% - 40px) !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 60px 0 80px !important;
    background: #020204 !important;
    color: #ffffff !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.75;
}

/* Gutenberg puÃ² limitare la larghezza interna dei blocchi constrained. */

.ue-legal-page > *,
.ue-legal-page > :where(:not(.alignleft):not(.alignright):not(.alignfull)),
.ue-legal-page .wp-block-group__inner-container {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* TESTI */

.ue-legal-page p,
.ue-legal-page li,
.ue-legal-page td,
.ue-legal-page th,
.ue-legal-page figcaption,
.ue-legal-page label,
.ue-legal-page small {
    color: rgba(255, 255, 255, 0.88) !important;
}

.ue-legal-page p {
    margin-top: 0;
    margin-bottom: 18px;
}

.ue-legal-page strong,
.ue-legal-page b {
    color: #ffffff !important;
    font-weight: 700;
}

/* TITOLO PRINCIPALE */

.ue-legal-page h1 {
    margin: 0 0 18px !important;
    color: #8b6cff !important;
    font-size: clamp(36px, 5vw, 64px) !important;
    line-height: 1.08 !important;
    font-weight: 800 !important;
    letter-spacing: -1.5px;
}

/* TITOLI DELLE SEZIONI */

.ue-legal-page h2 {
    margin: 55px 0 18px !important;
    padding-bottom: 12px;
    color: #8b6cff !important;
    font-size: clamp(23px, 2.5vw, 32px) !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(139, 108, 255, 0.30);
}

.ue-legal-page h3,
.ue-legal-page h4 {
    margin: 35px 0 15px !important;
    color: #b6a4ff !important;
    line-height: 1.3;
}

/* INTRODUZIONE E DATA */

.ue-legal-page .ue-legal-lead {
    max-width: 1000px !important;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 20px;
    line-height: 1.6;
}

.ue-legal-page .ue-legal-meta {
    color: rgba(255, 255, 255, 0.58) !important;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* LINK */

.ue-legal-page a {
    color: #a58cff !important;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(165, 140, 255, 0.50);
    text-underline-offset: 4px;
    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.ue-legal-page a:hover,
.ue-legal-page a:focus {
    color: #ffffff !important;
    text-decoration-color: #8b6cff;
}

/* ELENCHI */

.ue-legal-page ul,
.ue-legal-page ol {
    margin: 18px 0 28px;
    padding-left: 28px;
}

.ue-legal-page li {
    margin-bottom: 10px;
    padding-left: 6px;
}

.ue-legal-page li::marker {
    color: #8b6cff;
    font-weight: 700;
}

/* SEPARATORI */

.ue-legal-page .wp-block-separator,
.ue-legal-page hr {
    width: 100% !important;
    max-width: none !important;
    margin: 35px 0 !important;
    border: 0 !important;
    border-top: 1px solid rgba(139, 108, 255, 0.28) !important;
}

/* RIQUADRI IN EVIDENZA */

.ue-legal-page .ue-legal-notice {
    width: 100%;
    margin: 30px 0;
    padding: 22px 25px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            rgba(139, 108, 255, 0.17),
            rgba(139, 108, 255, 0.05)
        ) !important;
    border: 1px solid rgba(139, 108, 255, 0.42);
    border-left: 5px solid #8b6cff;
    border-radius: 10px;
}

.ue-legal-page .ue-legal-notice p:last-child {
    margin-bottom: 0;
}

.ue-legal-page .ue-legal-notice--warning {
    background:
        linear-gradient(
            135deg,
            rgba(255, 180, 0, 0.12),
            rgba(255, 180, 0, 0.03)
        ) !important;
    border-color: rgba(255, 180, 0, 0.38);
    border-left-color: #ffb400;
}

/* SEGNAPOSTO DA COMPLETARE */

.ue-legal-page mark {
    display: inline;
    padding: 3px 6px;
    color: #ffffff !important;
    background: rgba(139, 108, 255, 0.38) !important;
    border-radius: 4px;
}

/* TABELLE */

.ue-legal-page .wp-block-table,
.ue-legal-page .ue-legal-table {
    width: 100% !important;
    max-width: none !important;
    margin: 25px 0 35px !important;
    overflow-x: auto;
    border: 1px solid rgba(139, 108, 255, 0.28);
    border-radius: 10px;
}

.ue-legal-page table {
    width: 100% !important;
    min-width: 650px;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.025) !important;
}

.ue-legal-page th,
.ue-legal-page td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: top;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.ue-legal-page th {
    color: #ffffff !important;
    background: rgba(139, 108, 255, 0.20) !important;
    font-weight: 700;
}

.ue-legal-page tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.025);
}

/* MODULO DI RECESSO */

.ue-legal-page .ue-withdrawal-form {
    width: 100%;
    margin: 30px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(139, 108, 255, 0.35);
    border-radius: 12px;
}

.ue-legal-page .ue-form-line {
    color: rgba(255, 255, 255, 0.55) !important;
    letter-spacing: 1px;
}

/* DATI AZIENDALI FINALI */

.ue-legal-page .ue-legal-company {
    width: 100%;
    margin-top: 40px;
    padding: 25px;
    color: rgba(255, 255, 255, 0.80) !important;
    background: rgba(139, 108, 255, 0.08);
    border: 1px solid rgba(139, 108, 255, 0.24);
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.8;
}

/* TABLET */

@media (max-width: 1024px) {
    .ue-legal-page {
        width: calc(100% - 32px) !important;
        padding: 50px 0 70px !important;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .ue-legal-page {
        width: calc(100% - 32px) !important;
        padding: 40px 0 60px !important;
        font-size: 16px;
        line-height: 1.7;
    }

    .ue-legal-page h1 {
        font-size: 38px !important;
        letter-spacing: -0.8px;
    }

    .ue-legal-page h2 {
        margin-top: 42px !important;
        font-size: 24px !important;
    }

    .ue-legal-page .ue-legal-lead {
        font-size: 18px;
    }

    .ue-legal-page .ue-legal-notice,
    .ue-legal-page .ue-withdrawal-form,
    .ue-legal-page .ue-legal-company {
        padding: 20px;
    }

    .ue-legal-page th,
    .ue-legal-page td {
        padding: 13px 14px;
    }
}

/* STAMPA */

@media print {
    html,
    body.page-template-template-documenti-legali,
    body.page-template-template-documenti-legali-php,
    .ue-documenti-legali-template,
    .ue-documento-legale,
    .ue-documento-legale-contenuto,
    .ue-legal-page {
        color: #000000 !important;
        background: #ffffff !important;
    }

    .ue-legal-page p,
    .ue-legal-page li,
    .ue-legal-page td,
    .ue-legal-page th,
    .ue-legal-page strong,
    .ue-legal-page h1,
    .ue-legal-page h2,
    .ue-legal-page h3 {
        color: #000000 !important;
    }

    .ue-legal-page .ue-legal-notice--warning {
        display: none;
    }
}