body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    height: 100vh;
    position: relative;
}

.left, .right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left {
    background: url('https://www.autotint.it/images/newhome-img4.jpg') no-repeat center center;
    background-size: cover;
}

.right {
    background: url('https://www.autotint.it/images/foto-solartint.jpg') no-repeat center center;
    background-size: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Aggiungi opacità */
    z-index: 1;
}

.divider {
    width: 30px;
    background: linear-gradient(to right, rgba(21, 81, 161, 0) 0%, #1551A1 50%, rgba(21, 81, 161, 0) 100%);
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
}

.content {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
    width: 70%;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.4);
    padding:20px;
}

.button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #1551A1;
    color: white;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
    text-decoration: none;
}

.button:hover {
    background-color: #1872EA;
}

.angled-div {
    position: relative;
    clip-path: polygon(5% 0%, 95% 0%, 80% 100%, 20% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

a.button-marrone {
    background: #683301;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    color: white;
    cursor: pointer;
    margin-top: 20px;
    margin-bottom: 20px;
    text-decoration: none;
}

a.button-marrone:hover {
    background: #683301;
}

/* Stili per dispositivi mobili */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column;
        height: 100%;
    }

    .divider {
        display: none;
    }

    .left, .right {
        width: 100%;
        height: 50vh;
    }

    .right {
        order: -1; /* Imposta il lato destro prima del sinistro */
        border-bottom: 10px solid blue;
    }

    .content {
        width: 80%;
    }
}
