/* =========================================================
   AP AGRO CMS V2
========================================================= */


/* FOTO INTERATIVA */

.interactive-section {
    background: #ffffff;
}

.interactive-image {
    position: relative;

    overflow: hidden;

    width: 100%;

    border-radius: 6px;

    background: #103b24;
}

.interactive-image > img {
    display: block;

    width: 100%;
    min-height: 520px;

    object-fit: cover;
}

.hotspot {
    position: absolute;

    z-index: 5;

    width: 28px;
    height: 28px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    transform:
        translate(
            -50%,
            -50%
        );

    cursor: pointer;
}

.hotspot-dot {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 18px;
    height: 18px;

    border: 4px solid white;
    border-radius: 50%;

    background:
        var(--hotspot-color);

    box-shadow:
        0 0 0 7px
        rgba(255,255,255,.18);

    transform:
        translate(
            -50%,
            -50%
        );
}

.hotspot-dot::after {
    content: "";

    position: absolute;

    inset: -10px;

    border: 1px solid
        var(--hotspot-color);

    border-radius: 50%;

    animation:
        hotspotPulse
        2s infinite;
}

@keyframes hotspotPulse {

    0% {
        opacity: 1;
        transform: scale(.6);
    }

    100% {
        opacity: 0;
        transform: scale(1.45);
    }

}

.hotspot-card {
    position: absolute;

    width: 245px;

    padding: 16px 18px;

    border-radius: 5px;

    background:
        rgba(8,40,23,.95);

    color: white;

    text-align: left;

    box-shadow:
        0 18px 45px
        rgba(0,0,0,.22);

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.hotspot-card strong {
    display: block;

    margin-bottom: 6px;

    color: #aaff91;

    font-size: 13px;
}

.hotspot-card small {
    display: block;

    color:
        rgba(255,255,255,.80);

    font-size: 12px;
    line-height: 1.55;
}

.hotspot:hover .hotspot-card,
.hotspot.active .hotspot-card {
    opacity: 1;
}

.hotspot-direita .hotspot-card {
    left: 30px;
    top: 50%;

    transform:
        translateY(-50%)
        translateX(-8px);
}

.hotspot-direita:hover .hotspot-card,
.hotspot-direita.active .hotspot-card {
    transform:
        translateY(-50%)
        translateX(0);
}

.hotspot-esquerda .hotspot-card {
    right: 30px;
    top: 50%;

    transform:
        translateY(-50%)
        translateX(8px);
}

.hotspot-esquerda:hover .hotspot-card,
.hotspot-esquerda.active .hotspot-card {
    transform:
        translateY(-50%)
        translateX(0);
}

.hotspot-acima .hotspot-card {
    left: 50%;
    bottom: 30px;

    transform:
        translateX(-50%)
        translateY(8px);
}

.hotspot-acima:hover .hotspot-card,
.hotspot-acima.active .hotspot-card {
    transform:
        translateX(-50%)
        translateY(0);
}

.hotspot-abaixo .hotspot-card {
    left: 50%;
    top: 30px;

    transform:
        translateX(-50%)
        translateY(-8px);
}

.hotspot-abaixo:hover .hotspot-card,
.hotspot-abaixo.active .hotspot-card {
    transform:
        translateX(-50%)
        translateY(0);
}


/* VIDEOS */

.videos-section {
    background: #f4f5ef;
}

.videos-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0,1fr)
        );

    gap: 22px;
}

.video-card {
    overflow: hidden;

    border-radius: 5px;

    background: white;
}

.video-cover {
    position: relative;

    width: 100%;
    aspect-ratio: 16 / 9;

    border: 0;

    background:
        linear-gradient(
            135deg,
            #103b24,
            #3a892b
        );

    background-size: cover;
    background-position: center;

    cursor: pointer;
}

.video-cover::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.05),
            rgba(0,0,0,.38)
        );
}

.video-play {
    position: absolute;

    z-index: 2;

    left: 50%;
    top: 50%;

    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #38e500;
    color: #103b24;

    font-size: 23px;

    transform:
        translate(
            -50%,
            -50%
        );

    transition:
        transform .2s ease;
}

.video-cover:hover .video-play {
    transform:
        translate(
            -50%,
            -50%
        )
        scale(1.08);
}

.video-copy {
    padding: 24px;
}

.video-copy h3 {
    margin: 0;

    color: #103b24;

    font-family:
        "Manrope",
        sans-serif;

    font-size: 23px;
}

.video-copy p {
    margin: 10px 0 0;

    color: #6c756e;

    line-height: 1.6;
}


/* MODAL DE VIDEO */

.video-modal {
    position: fixed;

    z-index: 9999;

    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;

    background:
        rgba(3,18,10,.93);
}

.video-modal.open {
    display: flex;
}

.video-modal-content {
    width: min(
        1100px,
        94vw
    );

    aspect-ratio: 16 / 9;

    background: black;
}

.video-modal-content iframe,
.video-modal-content video {
    width: 100%;
    height: 100%;

    border: 0;
}

.video-modal-close {
    position: absolute;

    right: 25px;
    top: 20px;

    width: 48px;
    height: 48px;

    border: 0;
    border-radius: 50%;

    background: white;

    color: #103b24;

    font-size: 30px;

    cursor: pointer;
}


/* MOBILE */

@media (max-width: 850px) {

    .videos-grid {
        grid-template-columns: 1fr;
    }

    .interactive-image > img {
        min-height: 430px;
    }

    .hotspot-card {
        width: 195px;
    }

}


@media (max-width: 600px) {

    .interactive-image {
        overflow: visible;
    }

    .interactive-image > img {
        min-height: 380px;
    }

    .hotspot-card {
        width: 170px;

        padding: 11px;
    }

}