/* Hero Section */
.hero {
    height: 93vh; 
    position: relative; 
    display: flex;
    align-items: flex-end; 
    padding: 0; 
    justify-content: center; 
    width: 100%;
}






.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2; /* Nằm trên ảnh */
    pointer-events: none;
}







.hero-bg { 
    position: absolute; 
    inset: 0; 
    z-index: 0; 
    overflow: hidden; 
    cursor: grab;
}



.hero-bg:active {
    cursor: grabbing !important; 
}



.hero-track {
    display: flex;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Mày định hạ xuống 1.2s thì sửa ở đây luôn */
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    /* Chuyển will-change ra đây để tối ưu render toàn bộ khối trượt */
    will-change: transform;
    transform: translateZ(0);
}






.hero-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    pointer-events: none;
    -webkit-user-drag: none; 
    
    /* Giữ lại cái này để ảnh nét trên Safari/Chrome */
    image-rendering: -webkit-optimize-contrast;
    
    /* Chống nháy hình khi trượt */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}






/*Hero dot*/
.hero-dots {
    position: absolute;
    left: min(calc(100% - var(--side-padding)), calc(50% + (var(--container-max) / 2) - var(--side-padding)));
    top: 50%;
    transform: translate(-100%, -50%); 
    
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}






.hero-dot {
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}






.hero-dot.active {
    background: #fff;
}








.hero-text { 
    color: #fff; 
    width: 100%;
    max-width: var(--container-max); 
    margin: 0 auto; 
    padding: 0 var(--side-padding);
    margin-bottom: 48px;
    z-index: 2;
    text-align: left;
}


.hero-text h1 { font-size: 33px; line-height: 1.1; margin-bottom: 40px; font-weight: 500; }
.hero-text p { letter-spacing: -0.01em; font-size: 16px; margin-bottom: 35px; font-weight: 400; }


.shop-btn-group {
    display: flex !important;
    gap: 5px !important;
    margin-top: 30px !important;
    justify-content: flex-start;
}

.hero-text .btn-shop {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 14px 35px !important;
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #ffffff !important;
    border-radius: 100px !important;
    font-size: 17px;
    font-weight: 100;
    letter-spacing: -0.02em;
    text-decoration: none !important; 
    transition: all 0.2s ease;
}

.hero-text .btn-shop.btn-outline {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff !important;
}


.hero-text .btn-shop.btn-outline:hover {
    background-color: var(--color-dark) !important; 
    border-color: transparent !important; 
    color: #ffffff !important;          
}


.hero-text .btn-shop:not(.btn-outline):hover {
    background-color: transparent !important;   
    color: var(--white);    
}


.mobile-only { 
    display: none !important; 
}

/* Mặc định trên Desktop: Giấu nút Mobile */
.mobile-menu-btn, .mobile-overlay { display: none; }





@media (max-width: 1024px) {
    .hero {
        height: auto !important; 
        min-height: 120vw !important; 
        background-size: cover !important;
        background-position: center !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; 
        align-items: center;    
        text-align: center;
        padding: 0 20px;
        padding-bottom: 20px !important; 
        padding-left: 20px !important;
        padding-right: 20px !important;
        border-top: 1px solid #ffffff;
    }

    .hero-text {
        padding: 0 !important; 
        margin: 0 auto !important;
        max-width: 100% !important; 
        width: 100% !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        margin-bottom: 20px !important; 
    }


    .hero-text h1 {
        font-size: 28px; 
        font-weight: 400;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 12px;
        letter-spacing: 0px;
        margin-bottom: 10px;
    }

    .shop-btn-group {
        margin-bottom: -10px;
    }

    .btn-shop {
        padding: 13px 30px;
        font-size: 14px !important;
        width: fit-content !important; 
        display:flex;
        margin: 0 auto;
    }



    .hero-track img {
        width: 100vw;
        height: 100%;
        object-fit: cover;
        flex-shrink: 0;
    }
   


    .hero-dots {
        position: absolute !important;
        right: 20px !important; 
        top: 100px !important; 
        left: auto !important;
        
        /* FIX GIẬT: Xóa transform và will-change */
        transform: none !important; 
        will-change: auto !important;
        
        /* CÁCH LY HOÀN TOÀN: Để không bị ảnh hưởng bởi slider trượt */
        contain: layout style paint;
        
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        z-index: 9999 !important;
    }

    .hero-dot {
        width: 6px !important; 
        height: 6px !important;
        border: 1.5px solid #fff !important;
        background: transparent !important;
        /* Giữ backface để render mượt trên iOS */
        backface-visibility: hidden;
    }

    .hero-dot.active {
        background: #ffffff !important;
    }
}


/* TABLET: Dàn ngang ra tối ưu */
@media (min-width: 768px) and (max-width: 1024px) {
    .hero {
        min-height: 56vw !important;
    }
}









.certificatehero,
.rivahero,
.alpihero,
.mastrohero,
.ladolcehero,
.parmahero {
    height: 93vh; 
    position: relative; 
    display: flex;
    align-items: flex-end; 
    padding: 0; 
    justify-content: center; 
    width: 100%;
}

.certificatehero-bg, .rivahero-bg, .alpihero-bg, .mastrohero-bg, .ladolcehero-bg, .parmahero-bg { position: absolute; inset: 0; z-index: 0; }

.certificatehero-bg::after, .rivahero-bg::after, .alpihero::after, .mastrohero::after, .ladolcehero::after, .parmahero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0; /* Nằm trên ảnh */
    pointer-events: none;
}

.certificatehero-bg img, 
.rivahero-bg img, 
.alpihero-bg img, 
.mastrohero-bg img, 
.ladolcehero-bg img,
.parmahero-bg img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}


.certificatehero-text, 
.rivahero-text,
.alpihero-text,
.mastrohero-text, 
.ladolcehero-text,
.parmahero-text { 
    color: #fff; 
    width: 100%;
    max-width: var(--container-max); /* Khóa chặt ở 1650px */
    margin: 0 auto; /* Ép vào giữa màn hình */
    padding: 0 var(--side-padding); /* Trả lại đúng 55px padding để chữ đứng đúng vị trí cũ */
    margin-bottom: 48px;
    z-index: 2;
    text-align: left; /* Đảm bảo chữ vẫn canh trái bên trong cái lồng 1650px */
}


.certificatehero-text h1,
.rivahero-text h1,
.alpihero-text h1,
.mastrohero-text h1, 
.ladolcehero-text h1,
.parmahero-text h1 { 
    font-size: 60px; 
    line-height: 1.1; 
    margin-bottom: 40px; 
    font-weight: 400; 
}

.certificatehero-text p,
.rivahero-text p, 
.alpihero-text p, 
.mastrohero-text p, 
.ladolcehero-text p,
.parmahero-text p { 
    letter-spacing: 0px; 
    font-size: 15px; 
    margin-bottom: 35px; 
}

.mobile-only { 
    display: none !important; 
}

/* Mặc định trên Desktop: Giấu nút Mobile */
.mobile-menu-btn, .mobile-overlay { display: none; }



@media (max-width: 1024px) {
    .certificatehero,
    .rivahero,
    .alpihero,
    .mastrohero,
    .ladolcehero,
    .parmahero {
        /* 1. Xóa bỏ chiều cao 75vh cũ */
        height: auto !important; 
        
        /* 2. Dùng min-height theo % chiều ngang màn hình (tương đương tỉ lệ 4:5) */
        /* Cách này giúp nó co giãn thông minh mà không bị ép cứng như aspect-ratio */
        min-height: 120vw !important; 
        
        /* 3. Đảm bảo ảnh nền luôn lấp đầy cái khung mới này */
        background-size: cover !important;
        background-position: center !important;

        /* GIỮ NGUYÊN TOÀN BỘ CẤU TRÚC CỦA MÀY */
        display: flex;
        flex-direction: column;
        justify-content: flex-end; 
        align-items: center;    
        text-align: center;
        padding: 0 20px;
        padding-bottom: 20px !important; 
        padding-left: 20px !important;
        padding-right: 20px !important;
        border-top: 1px solid #ffffff;
    }

    .certificatehero-text,
    .rivahero-text,
    .alpihero-text,
    .mastrohero-text,
    .ladolcehero-text,
    .parmahero-text {
        padding: 0 !important; 
        margin: 0 auto !important;
        max-width: 100% !important; 
        width: 100% !important;
        
        /* Đảm bảo căn giữa tuyệt đối */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .certificatehero-text h1,
    .rivahero-text h1,
    .alpihero-text h1,
    .mastrohero-text h1,
    .ladolcehero-text h1,
    .parmahero-text h1 {
        font-size: 28px; 
        font-weight: 500;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .certificatehero-text p,
    .rivahero-text p,
    .alpihero-text p,
    .mastrohero-text p, 
    .ladolcehero-text p,
    .parmahero-text p {
        font-size: 12px;
        letter-spacing: 0px;
        margin-bottom: 0px;
    }
}


/* TABLET: Dàn ngang ra tối ưu */
@media (min-width: 768px) and (max-width: 1024px) {
    .certificatehero,
    .rivahero,
    .alpihero,
    .mastrohero,
    .ladolcehero,
    .parmahero {
        min-height: 56vw !important; /* Tỉ lệ ngang cho Tablet [cite: 2026-02-07] */
    }
}





.duan01hero,
.duan02hero,
.duan03hero {
    height: 93vh; 
    position: relative; 
    display: flex;
    align-items: flex-end; 
    padding: 0; 
    justify-content: center; 
    width: 100%;
}

.duan01hero-bg, .duan02hero-bg, .duan03hero-bg { position: absolute; inset: 0; z-index: -1; }

.hero-bg::after, .duan01hero-bg::after, .duan02hero-bg::after, .duan03hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2; /* Nằm trên ảnh */
    pointer-events: none;
}

.duan01hero-bg img, .duan02hero-bg img, .duan03hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.duan01hero-text, .duan02hero-text, .duan03hero-text { 
    color: #fff; 
    width: 100%;
    max-width: var(--container-max); /* Khóa chặt ở 1650px */
    margin: 0 auto; /* Ép vào giữa màn hình */
    padding: 0 var(--side-padding); /* Trả lại đúng 55px padding để chữ đứng đúng vị trí cũ */
    margin-bottom: 48px;
    z-index: 2;
    text-align: left; /* Đảm bảo chữ vẫn canh trái bên trong cái lồng 1650px */
}

.duan01hero-text h1, .duan02hero-text h1, .duan03hero-text h1
 { font-size: 60px; line-height: 1.1; margin-bottom: 40px; font-weight: 400; }


.duan01hero-text p, .duan02hero-text p, .duan03hero-text p { letter-spacing: 0px; font-size: 15px; margin-bottom: 35px; }

.mobile-only { 
    display: none !important; 
}
.mobile-menu-btn, .mobile-overlay { display: none; }



@media (max-width: 1024px) {
    .duan01hero, .duan02hero, .duan03hero {
        height: auto !important; 
        min-height: 120vw !important; 
        background-size: cover !important;
        background-position: center !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-end; 
        align-items: center;    
        text-align: center;
        padding: 0 20px;
        padding-bottom: 20px !important; 
        padding-left: 20px !important;
        padding-right: 20px !important;
        border-top: 1px solid #ffffff;
    }

   .duan01hero-text, .duan02hero-text, .duan03hero-text {
        padding: 0 !important; 
        margin: 0 auto !important;
        max-width: 100% !important; 
        width: 100% !important;
        
        /* Đảm bảo căn giữa tuyệt đối */
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .duan01hero-text h1, .duan02hero-text h1, .duan03hero-text h1 {
        font-size: 28px; 
        font-weight: 400;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .duan01hero-text p, .duan02hero-text p, .duan03hero-text p {
        font-size: 12px;
        letter-spacing: 0px;
        margin-bottom: 0px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .duan01hero, .duan02hero, .duan03hero {
        min-height: 56vw !important;
    }
}