*, *::after, *::before {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

:root {
    --primary-color: #04b079;
    --bg-color: #f4f7fa;
    --text-color: #333;
    --sidebar-bg: #ffffff;
    --sidebar-hover: #e6f0ff;
}
html {
    font-size: 62.5%;
}
body {
    box-sizing: border-box;
    font-size: 1.6rem;
    background-color:aliceblue;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    gap: 14vh; 
    font-family: 'Urbanist', sans-serif;
}

a {
    text-decoration: none;
}

b {
    color: white;
}

h1, h2 {
    color: black;
    font-size: 36px;
}

#CR {
    margin-top: 2rem;
}

.sidebar {
    height: 100%;
    width:20%;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: var(--sidebar-bg);
    overflow-x: hidden;
    transition: 0.3s;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    white-space: nowrap;
}
.sidebar-header {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}
.sidebar-header h3 {
    margin: 0;
    font-size: 1.2em;
    color: var(--primary-color);
}
.toggle-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    transition: 0.2s;
}
.toggle-btn:hover {
    color: var(--primary-color);
}
.sidebar a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 16px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    transition: 0.2s;
}
.sidebar a:hover {
    background-color: var(--sidebar-hover);
    color: var(--primary-color);
}
.sidebar a i {
    min-width: 30px;
    font-size: 20px;
}
#main {
    transition: margin-left .3s;
    padding: 20px;
    margin-left: 250px;
}
.sidebar.closed {
    width: 70px;
}
.sidebar.closed .sidebar-header h3 {
    display: none;
}
.sidebar.closed a span {
    display: none;
}
.sidebar.closed ~ #main {
    margin-left: 70px;
}
@media screen and (max-width: 768px) {
    .sidebar {
        width: 15%;
    }
    .sidebar .sidebar-header h3 {
        display: none;
    }
    .sidebar a span {
        display: none;
    }
    #main {
        margin-left: 70px;
    }
    .sidebar.open {
        width: 250px;
    }
    .sidebar.open .sidebar-header h3 {
        display: block;
    }
    .sidebar.open a span {
        display: inline;
    }
    .sidebar.open ~ #main {
        margin-left: 250px;
    }
}

.carousel-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100rem;
    padding: 0 1rem;
}

.carousel {
    position: relative;
    margin-bottom: 8.5rem; 
    width: 100%;
    max-width: 35rem; 
    height: 35rem;
    display: flex;
    justify-content: center;
}

.carousel__item {
    height: 52rem;
    width: 17rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1rem 4rem rgba(0,0,0,.8);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(.1);
    z-index: 0;
    transition: all .2s linear;
}
.carousel__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel1__item--main, .carousel2__item--main, .carousel3__item--main, .carousel4__item--main {
    transform: translate(-50%,-50%) scale(1);
    z-index: 2;
    cursor: pointer;
}

.carousel1__item--left, .carousel2__item--left, .carousel3__item--left, .carousel4__item--left {
    transform: translate(-110%,-50%) scale(.9);
    z-index: 1;
}
.carousel1__item--right, .carousel2__item--right, .carousel3__item--right, .carousel4__item--right {
    transform: translate(10%,-50%) scale(.9);
    z-index: 1;
}
.carousel__item--left img, .carousel__item--right img {
    filter: grayscale(80%);
}

.carousel__item--right:hover {
    transform: translate(10%,-50%) scale(1.2);
    z-index: 3;
    cursor: pointer;
}
.carousel__item--left:hover {
    transform: translate(-110%,-50%) scale(1.2);
    z-index: 3;
    cursor: pointer;
}
.carousel__item--main:hover {
    transform: translate(-50%,-50%) scale(1.2);
}
.carousel__item:hover > .carousel__text {
    opacity: 1;
}
.carousel__item:hover img {
    filter: grayscale(0%);
}

.carousel__text {
    position: absolute;
    bottom: 0;
    z-index: 0;
    opacity: 0;
    transition: opacity .2s;
    width: 100%;
    text-align: center;
    background-color: #3baa89;
    padding: 2rem 1rem;
    color: #fff;
}

.carousel__btns {
    display: flex;
    gap: 10rem;
    margin-top: 44rem; 
}
.carousel__btn {
    background-color: transparent;
    height: 8rem;
    width: 8rem;
    border-radius: 50%;
    border: 5px solid currentColor;
    color: #04b079 ;
    cursor: pointer;
}
.carousel__btn svg {
    height: 4.8rem;
    width: 4.8rem;
}
.carousel__btn:hover {
    color: #27f2b2;
}



.whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 4.5em;
    color: #3baa89;
    cursor: pointer;
    z-index: 999;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* fundo escuro com opacidade */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup img {
    max-width: 80%;
    max-height: 80%;
    height: 80%;
    width: 20%;

    border: 0px solid white ; /* borda branca para destacar a imagem */
    border-radius: 10px;
     box-shadow: 0 0 20px rgb(0, 0, 0); /* sombra para efeito visual */
}

.close-btn {
    position: absolute;
    top: 0%;
    right: 8%;
    color: rgba(255, 255, 255);
    font-size: 80px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .carousel {
        height: 30rem;
    }

    .carousel__item {
        width: 20rem;
    }
}

@media (max-width: 576px) {
   body {
    gap: 11vh;
   }

   h1, h2 {
    font-size: 30px;
    color: black;
    margin-top: 2rem;
    margin-left: 13%;
   }

   #CR {
    margin-top: 2rem;
   }
   
    .carousel {
        height: 40rem;
        margin-bottom: 6rem;
    }

    .carousel__item {
        height: 126%;
        width: 47%;
    }
    /* .carousel__item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    } */

    .carousel__btns {
        display: flex;
        gap: 10rem;
        margin-top: 44rem; 
    }
    .carousel__btn {
        background-color: transparent;
        height: 1px;
        width: 1px;
        
        border: 1px solid currentColor;
        color: aliceblue;
        cursor: none;
    }
    .carousel__btn svg {
        height: 1px;
        width: 1px;
    }
    .carousel__btn:hover {
        color: aliceblue;
    }

    .popup img{
        width: 80%;
        height: 80%;
    }
}
