
@media (max-width: 1300px) {
    .content-limit-header {
        padding: 0 6rem;
    }
    
    .about-intro {
        flex-direction: column; 
        align-items: flex-start; 
    }

    .about-intro .intro-image {
        margin: 0 auto; 
    }

    .about-intro .intro-text {
        width: 100%; 
    }

}

                                                                                /* 1200  */

@media screen and (max-width: 1200px){
    /* Content limit */
    .content-limit-header {
        padding: 0 4rem;
    }
    
    /* Testimonials  */
    .testimonials-grid{
        display:grid;
        grid-template-columns:repeat(2,1fr);
        gap:2rem;
        margin-top:2rem;
    }

}
                                                                                /* 900 */


@media screen and (max-width: 900px) {
     .atelier-popup {
        grid-template-columns: 1fr;

        gap: 25px;

        padding: 40px 35px 30px;

        max-width: 650px;
    }

    .atelier-popup-image {
        width: min(75%, 380px);
    }
    
    /* Hover function disabled */
    .contact-btn:hover, .social-links a:hover, .close-modal:hover, .video-controls button:hover, .help-text .highlight:hover, .carousel-track img:hover, .carousel-btn:hover, .carousel-outer p:hover, .faq-question:hover .faq-arrow, .contact-highlight:hover , .testimonial-item:hover, .modal-arrow:hover, .about-contact .contact-box:hover, #scrollTopBtn:hover, .footer-logo img:hover, .footer-contact .social-icons a:hover i, .cookie-buttons button:hover, .pdf-card:hover, .buy-btn:hover, .contact-btn:hover, .modal-submit:hover, .modal-close:hover, .youtube-intro a:hover, .youtube-card:hover{
        transform: none;
    }
    
    /* Home  */
    .home-about {
        flex-direction: column;
        text-align: center;
    }

    .about-text p {
        text-align: center;
    }

    /* About  */
    .about-intro {
        padding: clamp(2.5rem, 6vw, 4rem)
                clamp(4%, 6vw, 17%);
    }
        
    .about-intro .intro-image,
    .about-intro .intro-text {
        flex: 1 1 320px;
    }

    /* Footer  */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo img {
        margin-bottom: 2rem;
    }

    .footer-links, .footer-contact {
        margin-bottom: 2rem;
    }

    .footer-contact .social-icons {
        justify-content: center;
    }

    /* Mobile menu  */

    .home-header{
        display: none;
    }

    .mobile-home-header{
        display: block;
    }

    .mobile-home-header{
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:15px 20px;
        position:relative;
        z-index:3000;
    }

    .mobile-hamburger{
        width:30px;
        height:22px;
        display:flex;
        flex-direction:column;
        justify-content:space-between;
        cursor:pointer;
        z-index:3500;
    }

    .mobile-hamburger span{
        height:3px;
        width:100%;
        background:white;
        border-radius:2px;
        transition:transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    }
    .mobile-hamburger.active span{
        background:#4b1d46;
    }

    .mobile-hamburger.active span:nth-child(1){
        transform:rotate(45deg) translate(5px,5px);
    }

    .mobile-hamburger.active span:nth-child(2){
        opacity:0;
    }

    .mobile-hamburger.active span:nth-child(3){
        transform:rotate(-45deg) translate(6px,-6px);
    }

   
    .mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 85%;
        width: 30%;
        height: 100vh;
        background: #ffffff;
        z-index: 100;
        overflow-y: auto;
        padding-top: 60px;
    }

    .mobile-nav.active {
        display: block;
    }

    .mobile-menu-list{
        list-style:none;
        display:flex;
        flex-direction:column;
        align-items:flex-start;
        gap:28px;
        padding-left:40px;
    }

    .mobile-menu-list a{
        text-decoration:none;
        font-size: clamp(1.3rem, 1.9vw, 2rem);
        color:#4b1d46;
        border-bottom: solid 1px #4b1d46;
     
    }

    .fa-sort-down{
        color:#4b1d46;
        font-size: clamp(1.2rem, 1.8vw, 2rem);
        padding-left: 10px;
    }

    .mobile-submenu{
        list-style:none;
        padding-left:15px;
        margin-top:10px;

        display:none;
        flex-direction:column;
        gap:12px;
    }

    .mobile-dropdown-header{
        display:flex;
        align-items:center;
        gap:8px;
        cursor:pointer;
    }

    .mobile-dropdown.active .mobile-submenu{
        display:flex;
    }

    .dropdown-arrow{
        transition: transform 0.3s ease;
    }

    .mobile-dropdown.active .dropdown-arrow{
        transform: rotate(180deg);
    }

    .mobile-submenu a{
        font-size: clamp(1.2rem, 1.8vw, 2rem);
    }

    .mobile-overlay{
        position:fixed;
        inset:0;
        background:rgba(0,0,0,0.45);
        opacity:0;
        visibility:hidden;
        transition:0.3s;
        z-index:30;
    }

    .mobile-overlay.active{
        opacity:1;
        visibility:visible;
    }

    body.mobile-menu-open{
        overflow:hidden;
    }
}

                                                                /* 768  */

@media (max-width:768px){

    /* Mobile nav  */
     .mobile-nav {
        left: 80%;
        width: 45%;
    }

    /* Home  */
    .carousel-btn {
        display: none;
    }

     /* Materials  */
     
     .material-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .material-grid .pdf-card {
        max-width: 320px;
        margin: 0 auto;
    }
    
    .community-grid{
        grid-template-columns: 1fr;
    }
    
        /* Testimonials  */
    .testimonials-title{
        font-size:2.8rem;
    }

    .section-title{
        font-size:2.2rem;
    }

    .testimonials-intro{
        font-size:1.1rem;
    }
    
    /* Atelier pop-up  */

     .atelier-popup {
        padding: 0.7rem;
    }

    .atelier-popup-content {
        width: 95vw;
        padding: 0.4rem;
        border-radius: 14px;
    }

    .atelier-popup-image {
        max-height: 70vh;
        border-radius: 10px;
    }

    .atelier-popup-close {
        top: -10px;
        right: -8px;

        width: 36px;
        height: 36px;

        font-size: 1.6rem;
    }

    .atelier-popup-button {
        width: 90%;

        text-align: center;

        margin: 0.7rem auto 0;

        padding: 0.7rem 1rem;

        font-size: 1rem;
    }



}

                                                                /* 600  */

@media screen and (max-width: 600px) {
     .atelier-popup-overlay {
        align-items: flex-start;

        padding: 10px;

        overflow-y: auto;
    }


    .atelier-popup {
        width: 100%;

        margin: 10px 0;

        padding: 38px 18px 25px;

        border-radius: 14px;

        gap: 20px;

        max-height: none;
    }


    .atelier-popup-close {
        top: 7px;
        right: 10px;

        font-size: 31px;
    }


    .atelier-popup-image {
        width: 82%;

        border-width: 5px;
    }


    .atelier-popup-ornament {
        font-size: 28px;
    }


    .atelier-popup-content h2 {
        font-size: 29px;

        line-height: 1.1;
    }


    .atelier-popup-subtitle {
        margin: 13px 0 18px;

        font-size: 20px;
    }


    .atelier-popup-description {
        font-size: 17px;

        line-height: 1.45;
    }


    .atelier-video-button {
        min-height: 58px;

        margin-top: 22px;

        padding: 8px 14px;

        gap: 9px;

        font-size: 15px;
    }


    .atelier-play-icon {
        width: 36px;
        height: 36px;

        flex-basis: 36px;

        font-size: 14px;
    }


    .atelier-arrow {
        font-size: 19px;
    }


    .atelier-duration {
        font-size: 14px;
    }


    .atelier-popup-divider {
        margin-top: 20px;
    }


    .atelier-popup-continuare {
        font-size: 19px;
    }


    .atelier-popup-inscrieri {
        font-size: 14px;
    }
    
    /* Home  */
    .carousel-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
    
    /* Testimonials  */
    .testimonial-section{
        padding-inline: clamp(1rem, 4vw, 15rem);
    }


    .testimonials-grid{
        grid-template-columns:repeat(1,1fr);
    }
}


                                                            /* 480  */
@media screen and (max-width: 480px) {
    
     .mobile-nav {
        left: 70%;
        width: 60%;
    }

    nav ul {
        gap: 0.5rem;
    }

    nav li a {
        font-size: 1.2rem;
    }

    .logo img {
        width: 80px;
    }

    .submenu {
        min-width: 160px;
    }

      /* Testimonials  */
    .testimonial-section{
        padding-inline: clamp(0.2rem, 1vw, 15rem);
    }
}

@media screen and (max-width: 380px){
     .mobile-nav {
        left: 60%;
        width: 80%;
    }
}