﻿/* Contenitore principale */
.modal-avocado {}

.avocado-popup {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    border: 0;
    padding: 0;
    max-width: 90vw;
    width: auto;
    background: none;
    background-image: url('/assets/img/product/background-modal-popup-cut.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    aspect-ratio: attr(data-aspect-ratio);
    /*background: #a51b5e; /* bordeaux Battaglio */
}

/* Bottone X in alto a destra */
.btn-avocado-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #9ad341;
    /* verde */
    opacity: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-avocado-close::before {
    content: "×";
    font-size: 24px;
    line-height: 1;
}

.btn-avocado-close span,
.btn-avocado-close svg {
    display: none;
    /* nascondo l’icona di default di bootstrap */
}

/* Layout interno */
.avocado-popup-inner {
    display: flex;
    flex-direction: column;
}

/* Testo */
.avocado-popup-text {
    padding: 40px 32px 24px 32px;
    color: #fff;
    text-align: center;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* usa il font che hai sul sito */
}

.avocado-popup-text h2 {
    font-size: 2.8rem;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: 14px;
    font-family: "olivierregular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    /* usa il font che hai sul sito */

}

/* Bottone CTA */
.btn-avocado-cta {
    background-color: #9ad341;
    border-color: #9ad341;
    color: #fff;
    font-weight: 700;
    padding: 12px 32px;
    border-radius: 999px;
    font-size: 1.1rem;
}

.btn-avocado-cta:hover,
.btn-avocado-cta:focus {
    background-color: #88bf35;
    border-color: #88bf35;
    color: #fff;
}


/* Responsive */
@media (min-width: 576px) {
    .avocado-popup-inner {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .modal-avocado {
        margin: 0 12px;
    }

    .avocado-popup-text {
        padding: 32px 20px 16px 20px;
    }

    .avocado-popup-image {
        height: 180px;
    }
}