/* Allegra Slider - Main Styles */

.allegra-slider-wrapper {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    font-family: inherit;
}

.allegra-slider-container {
    position: relative;
    overflow: hidden;
}

/* Slide */
.allegra-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.allegra-slide.active {
    display: flex;
    flex-direction: column;  /* column pentru desktop */
    justify-content: center;
    align-items: center;
    opacity: 1;
}
@media (min-width: 1024px) {
    /* Image */
    .allegra-slide-image {
        width: 100%;  /* limitează lățimea pe desktop */
        max-width: 1200px;
        overflow: hidden;
        border-radius: 0;
        margin: 0 auto;
        position: relative;
        margin-bottom: 50px;
    }
    .allegra-slide-content {
        display: none;
    }
}

.allegra-slide-image img {
    width: 100%!important;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.allegra-slide-image a {
    display: block;
}

.allegra-slide-content-image {
    position: absolute;
    bottom: 0px;
    width: 100%;
}

.allegra-slide-content {
    text-align: center;  /* centrează pe desktop */
    width: 100%;
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0px 50px;
}

.allegra-slide-title {
    font-size: 71px;
    font-weight: 500;
    font-family: 'Zalando Sans';
    color: #353a34;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.allegra-slide-description {
    font-size: 48px;
    color: #353a34; 
    margin: 0;
    line-height: 1.6;
    font-family: Spectral;
    font-weight: 500;
    padding-bottom: 1rem;
}

.allegra-slide-content-image .allegra-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px;
    margin: 0 auto;
    flex-direction: column;
}

.allegra-slide-content .allegra-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 10px;
    margin: 0 auto;
}

.allegra-slider-controls .buttons {
    display: flex;
    gap: 10px;
}

/* Arrows */
.allegra-slider-wrapper .allegra-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%!important;
    border: 1px solid #353a34;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0;
}

@media (min-width: 1024px) {
    .allegra-slider-wrapper .allegra-arrow {
       border: 1px solid #ffffff!important; 
    }
    .allegra-arrow svg {
        stroke: #ffffff!important;
        color: #ffffff!important;
    }
    .allegra-arrow:hover {
        background: transparent!important;
}
}

.second-slider-container .allegra-slider-wrapper .allegra-arrow {
   border: 1px solid #ffffff!important; 
}

.allegra-arrow:hover {
    background: #1a1a1a;
    color: #fff;
}

.allegra-arrow:hover svg {
    stroke: #fff;
}

.allegra-arrow svg {
    width: 24px;
    height: 24px;
    stroke: #353a34;
    transition: stroke 0.3s ease;
    scale: 1.4;
    color: #353a34;
}

.second-slider-container .allegra-arrow svg {
    stroke: #ffffff!important; 
    color: #ffffff!important; 
}

.allegra-slide-content-image .allegra-progress-bar {
    flex-grow: 1;
    padding-left: 10px;
    width: 50%;
}

/* Progress Bar */
.allegra-slide-content .allegra-progress-bar {
    flex-grow: 1;
    padding-left: 10px;
}

.allegra-progress-track {
    height: 4px;
    background: #e0e0e0;
    overflow: hidden;
}

.allegra-progress-fill {
    height: 100%;
    background: #353a34;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.second-slider-container .allegra-progress-fill {
  background: #ffffff;  
}

@media (max-width: 1400px) {
    .allegra-slide-title {
        font-size: 60px;
        line-height: 1.1;
    }
    .allegra-slide-description {
        font-size: 34px;
        line-height: 1.5;
    }
}

/* Pentru tablete și mai jos - revine la normal */
@media (max-width: 1024px) {
    .allegra-slide.active {
        flex-direction: column;  /* păstrează column */
        gap: 20px;
    }
    
    .allegra-slide-image {
        width: 100%;  /* imaginea la lățime completă pe mobil */
        max-width: none;
    }
    
    .allegra-slide-content {
        text-align: left;  /* text aliniat stânga pe mobil */
        margin: 0;
    }
    
    .allegra-slide-title {
        font-size: 50px;
        line-height: 1.2;
    }
    .allegra-slide-description {
        font-size: 34px;
        line-height: 1.5;
    }
    .allegra-slide-content-image{
        display:none;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .allegra-slide-description {
        font-size: 18px;
        line-height: 1.5;
    }
    
    .allegra-slide-content {
        padding: 20px 50px 30px 50px
    }

    .allegra-slide-title {
        font-size: 30px;
        line-height: 1.25;
    }

    .allegra-arrow {
        width: 44px;
        height: 44px;
    }

    .allegra-arrow svg {
        width: 20px;
        height: 20px;
    }

    .allegra-slider-controls {
        padding: 5px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .allegra-slide-description {
        font-size: 20px;
        line-height: 1.5;
    }
    
    .allegra-slide-content {
        /*padding: 20px 15px 15px 15px;*/
    }

    .allegra-slide-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .allegra-slide-description {
        font-size: 13px;
    }

    .allegra-arrow {
        width: 40px;
        height: 40px;
    }

    .allegra-arrow svg {
        width: 18px;
        height: 18px;
    }

    .allegra-slider-controls {
        gap: 10px;
    }
}

/* Lightbox Overlay */
.allegra-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.allegra-lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.allegra-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    animation: allegra-zoom-in 0.3s ease;
}

@keyframes allegra-zoom-in {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.allegra-lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.allegra-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    padding: 0;
    line-height: 1;
}

.allegra-lightbox-close:hover {
    transform: rotate(90deg);
}

/* Pointer cursor pentru imagini clickabile */
.allegra-slide-image img {
    cursor: pointer;
}

.allegra-slide-image a img {
    cursor: pointer;
}

@media (max-width: 768px) {
    .allegra-lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 32px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        width: 44px;
        height: 44px;
    }
    
    .allegra-lightbox-content {
        max-width: 95%;
        max-height: 95vh;
    }
}

