﻿/* Ensure full height utilization */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'NuovaVolte', sans-serif;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* ✅ Hide scrollbars */
}

/* Main container - Centers content */
.main-container {
    display: flex;
    flex-direction: row;
    align-items: center; /* Centers image & text vertically */
    justify-content: center;
    gap: 40px;
    padding: 20px;
    width: 100%;
    flex-grow: 1;
    font-family: 'NuovaVolte', sans-serif;
    height: 100vh; /* Ensure full viewport height */
    box-sizing: border-box; /* ✅ Prevents overflow */
    /*overflow: hidden;*/ /* ✅ Ensures no extra scrolling */
}

/* Image container */
.carousel-container {
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

    .carousel-container img {
        width: 100%;
        max-height: 65vh; /* ✅ Reduced to prevent overflow */
        object-fit: contain;
        border-radius: 10px;
    }

/* Text container */
.text-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center text & button */
    justify-content: center; /* Center vertically */
    text-align: center;
    font-family: 'NuovaVolte', sans-serif;
    gap: 20px;
    height: 50%; /* Ensure full screen height */
    overflow: hidden; /* ✅ Prevents scrolling inside */
}

/* Button */
.button {
    font-size: 1.2rem;
    background-color: #d00659;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    font-family: 'NuovaVolte', sans-serif;
    min-width: 160px;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-10px);
    transform: translateY(-20px);
}

    .button:hover {
        background-color: #b10548;
    }

/* 📱 Responsive Design */
@media screen and (max-width: 1024px) {
    .main-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        height: auto; /* ✅ Allows dynamic height */
        overflow: visible;
    }

    .carousel-container, .text-container {
        width: 90%;
        text-align: center;
    }

    .text-container {
        height: auto; /* ✅ Fix height issue on mobile */
    }

    .button {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .carousel-container img {
        max-height: 45vh;
    }

    .text-container {
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    .title {
        font-size: 2.5rem;
    }

    .button {
        font-size: 1rem;
        padding: 10px 18px;
    }
}

@media screen and (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .carousel-container img {
        max-height: 40vh;
    }

    .button {
        font-size: 0.9rem;
        padding: 8px 14px;
    }
}
