/* Banner cookie, modale preferenze, segnaposto embed */
.mlp-consent {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100000;
    max-width: 560px; margin-inline: auto;
    background: var(--color-surface-dark, #111); color: #fff;
    border: 1px solid rgba(255, 255, 255, .15); border-radius: var(--radius-lg, 15px);
    padding: 20px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    font: 400 14px/1.5 var(--font-body, 'Manrope', sans-serif);
}
@media (min-width: 768px) { .mlp-consent { left: 24px; right: auto; bottom: 24px; margin-inline: 0; } }
.mlp-consent__title { margin: 0 0 6px; font-weight: 700; font-size: 16px; }
.mlp-consent__text { margin: 0 0 14px; color: rgba(255, 255, 255, .8); }
.mlp-consent__text a { color: var(--color-primary, #45d0bd); text-decoration: underline; }
.mlp-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* I tre pulsanti hanno lo stesso peso visivo (richiesto dal Garante) */
.mlp-consent-btn {
    flex: 1 1 auto; min-height: 44px; padding: 10px 16px; cursor: pointer;
    background: transparent; color: #fff; font: 600 14px/1 inherit;
    border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px;
}
.mlp-consent-btn:hover, .mlp-consent-btn:focus-visible { background: #fff; color: #111; outline: none; }
.mlp-consent-btn--ghost { color: var(--color-heading, #111); border-color: var(--color-border, #d9d9d9); }
.mlp-consent-btn--ghost:hover { background: #111; color: #fff; }

.mlp-consent-modal {
    position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .6); padding: 16px;
}
.mlp-consent-modal__box {
    width: 100%; max-width: 520px; max-height: 90vh; overflow: auto;
    background: var(--color-surface-dark, #111); color: #fff; border-radius: var(--radius-lg, 15px); padding: 24px;
    font: 400 14px/1.5 var(--font-body, 'Manrope', sans-serif);
}
.mlp-consent__row {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
    padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.mlp-consent__row small { display: block; color: rgba(255, 255, 255, .7); margin-top: 2px; }
/* Il tema nasconde tutte le checkbox (opacity:0; position:absolute): qui le ripristino */
.mlp-consent-modal .mlp-consent__row input[type="checkbox"] {
    opacity: 1; position: static; display: block; -webkit-appearance: checkbox; appearance: checkbox;
    width: 22px; height: 22px; flex: none; margin: 2px 0 0; cursor: pointer;
    accent-color: var(--color-primary, #45d0bd);
}
.mlp-consent-modal .mlp-consent__row input[type="checkbox"]:disabled { cursor: default; opacity: .6; }
.mlp-consent-modal label.mlp-consent__row { cursor: pointer; }
.mlp-consent-modal .mlp-consent__actions { margin-top: 18px; }

.mlp-gate { position: relative; }
.mlp-gate__ph {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    min-height: 220px; padding: 24px; text-align: center; height: 100%;
    background: var(--color-surface-light, #f0f2f4); color: var(--color-body, #333); border-radius: var(--radius-md, 10px);
}
.mlp-gate__ph p { margin: 0; max-width: 40ch; }
.mlp-gate__btn {
    padding: 10px 20px; cursor: pointer; border-radius: 999px; font-weight: 600;
    background: var(--color-surface-dark, #111); color: #fff; border: 0;
}

/* Pagina Privacy e Cookie Policy: larghezza piena, mantiene la tipografia di .mlp-page-content-wrap */
.mlp-page-content-wrap.mlp-legal { max-width: none; }
.mlp-legal h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; margin: 2em 0 .6em; }
.mlp-legal h3 { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.3; margin: 1.6em 0 .5em; }
.mlp-legal h2:first-child, .mlp-legal p:first-child + h2 { margin-top: 1.4em; }
.mlp-legal ul { padding-left: 1.2em; }
.mlp-legal__table { overflow-x: auto; margin: 0 0 1em; }
.mlp-legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mlp-legal th, .mlp-legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--color-border, #d9d9d9); }
.mlp-legal th { font-weight: 700; }
