/**
 * WEBMAN - Pagina promo stagionale e popup homepage.
 * Foglio separato dal CSS del sito per semplificare i cambi di campagna.
 */

/* Pagina promo, in linea con il layout scuro Webman. */
.webman-promo-page {
    min-height: 70vh;
    background: #171717;
    color: #f6f6f6;
    padding: clamp(105px, 11vw, 145px) 0 90px;
}

.webman-promo-container {
    width: min(100% - 40px, 1170px);
    margin: 0 auto;
}

.webman-promo-hero {
    overflow: hidden;
    border-radius: 18px;
    background: #8c160e;
    margin-bottom: clamp(44px, 5vw, 66px);
}

.webman-promo-hero img {
    display: block;
    width: 100%;
    height: auto;
}

.webman-promo-copy {
    width: min(100%, 1080px);
    margin: 0 auto;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

.webman-promo-copy h1 {
    color: #fff;
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: 800;
    line-height: 1.13;
    text-transform: uppercase;
    max-width: 1000px;
    margin: 0 0 32px;
}

.webman-promo-copy h2 {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 27px;
}

.webman-promo-copy p {
    color: #e5e5e5;
    margin: 0 0 14px;
}

.webman-promo-intro {
    margin-bottom: 28px;
}

.webman-promo-offer {
    margin-bottom: 40px;
}

.webman-promo-copy .webman-promo-claim {
    color: #fff;
    font-weight: 800;
    margin-bottom: 6px;
}

.webman-promo-features {
    display: grid;
    gap: 23px;
}

.webman-promo-feature h3 {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(17px, 1.7vw, 21px);
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 2px;
}

.webman-promo-feature p {
    margin: 0;
}

.webman-promo-conclusion {
    padding-top: 45px;
}

.webman-promo-conclusion h2 {
    margin-bottom: 12px;
}

.webman-promo-copy .webman-promo-price {
    font-size: clamp(22px, 2.7vw, 32px);
    color: #fff;
    font-weight: 800;
    margin: 0 0 29px;
}

.webman-promo-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 52px;
    padding: 14px 24px;
    border: 2px solid #d5a31d;
    border-radius: 6px;
    background: #d5a31d;
    color: #151515 !important;
    text-decoration: none;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    font-weight: 800;
    letter-spacing: .03em;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.webman-promo-cta:hover,
.webman-promo-cta:focus-visible {
    background: transparent;
    color: #fff !important;
}

/* Popup: modale dedicata senza bootstrap.Modal. */
.webman-promo-overlay[hidden] {
    display: none !important;
}

.webman-promo-overlay {
    position: fixed;
    z-index: 100001;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(12, 12, 12, .96);
    padding: 30px 20px;
}

body.webman-promo-open {
    overflow: hidden !important;
}

.webman-promo-dialog {
    position: relative;
    width: min(100%, 760px);
    max-height: calc(100dvh - 60px);
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    outline: none;
}

.webman-promo-popup-link {
    display: block;
    width: 100%;
    min-height: 0;
    text-decoration: none;
}

.webman-promo-popup-link img {
    display: block;
    width: 100%;
    max-height: calc(100dvh - 155px);
    object-fit: contain;
    object-position: center;
}

.webman-promo-close-x {
    position: absolute;
    z-index: 1;
    top: -13px;
    right: -43px;
    width: 39px;
    height: 39px;
    border: 2px solid #d5a31d;
    background: #1a1a1a;
    color: #d5a31d;
    font-size: 29px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.webman-promo-close-button {
    min-width: 190px;
    min-height: 46px;
    padding: 7px 24px;
    border: 2px solid #d5a31d;
    background: transparent;
    color: #d5a31d;
    font-family: 'Roboto', sans-serif;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}

.webman-promo-close-x:hover,
.webman-promo-close-button:hover,
.webman-promo-close-x:focus-visible,
.webman-promo-close-button:focus-visible {
    background-color: #d5a31d;
    color: #141414;
}

@media (max-width: 850px) {
    .webman-promo-close-x {
        top: -24px;
        right: 0;
    }
    .webman-promo-overlay {
        padding: 48px 15px 20px;
    }
    .webman-promo-dialog {
        max-height: calc(100dvh - 70px);
        gap: 15px;
    }
    .webman-promo-popup-link img {
        max-height: calc(100dvh - 150px);
    }
}

@media (max-width: 575px) {
    .webman-promo-page {
        padding: 90px 0 70px;
    }
    .webman-promo-container {
        width: calc(100% - 28px);
    }
    .webman-promo-hero {
        border-radius: 10px;
        margin-bottom: 36px;
    }
    .webman-promo-copy {
        font-size: 16px;
        line-height: 1.6;
    }
    .webman-promo-copy h1 {
        margin-bottom: 25px;
    }
    .webman-promo-features {
        gap: 19px;
    }
    .webman-promo-conclusion {
        padding-top: 34px;
    }
    .webman-promo-overlay {
        padding-inline: 12px;
    }
    .webman-promo-close-button {
        min-width: 160px;
    }
}

/* Contenuto HTML modificabile attraverso l'editor del backend. */
.webman-promo-editor h2 {
    margin-top: 36px;
    margin-bottom: 15px;
}

.webman-promo-editor h3 {
    color: #fff;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(17px, 1.8vw, 23px);
    font-weight: 800;
    line-height: 1.4;
    margin: 25px 0 4px;
}

.webman-promo-editor strong {
    color: #fff;
    font-weight: 800;
}

.webman-promo-editor ul,
.webman-promo-editor ol {
    color: #e5e5e5;
    padding-left: 30px;
    margin: 0 0 24px;
}

.webman-promo-editor a {
    color: #e0ac27;
    text-decoration: underline;
}

.webman-promo-editor img {
    max-width: 100%;
    height: auto;
}

.webman-promo-editor > p:last-child strong {
    font-size: clamp(22px, 2.7vw, 32px);
    line-height: 1.3;
}
