﻿.map-box-container {
    margin: 0 auto;
    width: 87vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-box-orange {
    position: relative;
    background-color: var(--primary-orange);
    width: 25%;
    border-radius: 40px;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.6em;
}

    .map-box-orange > ul {
        display: flex;
        flex-direction: column;
        font-size: larger;
        justify-content: space-around;
        height: 90%;
    }

.map {
    position: relative;
    width: 70%;
}

.img-map {
    display: block;
    width: 100%;
    height: auto;
}

/*POZZOLO***********/
.Pozzolo_Formigaro {
    position: absolute;
    width: 5.6%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    top: 55.1%;
    left: 38.1%;
    transform: translate(-50%, -50%);
}

    .Pozzolo_Formigaro:hover {
        cursor: pointer;
    }
/***********************/

/*GENOVA***********/
.Genova {
    position: absolute;
    width: 5.6%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    top: 64.2%;
    left: 40.3%;
    transform: translate(-50%, -50%);
}

    .Genova:hover {
        cursor: pointer;
    }
/***********************/

/*SPEZIA***********/
.LaSpezia {
    position: absolute;
    width: 5.6%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    top: 70.2%;
    left: 49.9%;
    transform: translate(-50%, -50%);
}

    .LaSpezia:hover {
        cursor: pointer;
    }
/***********************/

/*Livorno***********/
.Livorno {
    position: absolute;
    width: 5.6%;
    aspect-ratio: 1 / 1;
    border-radius: 70%;
    top: 83.2%;
    left: 52.2%;
    transform: translate(-50%, -50%);
}

    .Livorno:hover {
        cursor: pointer;
    }
/***********************/

/*PADOVA***********/
.Padova {
    position: absolute;
    width: 5.6%;
    aspect-ratio: 1 / 1;
    border-radius: 70%;
    top: 49.2%;
    left: 61%;
    transform: translate(-50%, -50%);
}

    .Padova:hover {
        cursor: pointer;
    }
/***********************/

/*MARGHERA***********/
.Marghera {
    position: absolute;
    width: 5.6%;
    aspect-ratio: 1 / 1;
    border-radius: 70%;
    top: 49.1%;
    left: 74%;
    transform: translate(-50%, -50%);
}

    .Marghera:hover {
        cursor: pointer;
    }
/***********************/

.hovered {
    transform: scale(1.2);
}



    .city-hover:hover {
        cursor: pointer;
        transform: scale(1.1);
    }

.form-container {
    margin: 5em auto 8%;
    width: 70%;
    display: flex;
    justify-content: space-between;
}

.contact-form-box {
    box-sizing: border-box;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row-two {
    display: flex;
    gap: 10px;
}

    .row-two input {
        width: 50%;
    }

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 2.5px solid #2f2f2f;
    border-radius: 5px;
    padding: 10px 12px;
    box-sizing: border-box;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: rgb(22, 52, 95) !important;
}

    .contact-form input::placeholder,
    .contact-form textarea::placeholder {
        color: rgb(22, 52, 95) !important;
    }

.contact-form textarea {
    height: 48px;
    resize: none;
}

.contact-form button {
    width: 15%;
    height: 2.5em;
    border: none;
    border-radius: 4px;
    background: #ff6a00;
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

    .contact-form button:hover {
        opacity: 0.9;
    }

.link-contatti {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .link-contatti > div {
        display: flex;
        align-items: center;
        font-size: 1.6em;
        text-align: left;
    }

        .link-contatti > div > img {
            width: 2em;
        }

        .link-contatti > div > a {
            text-decoration: none;
            margin-left: 1em;
            color: #16345F;
        }

.contact-form-box-container {
    width: 40%;
}

.map-container {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    margin: 0 auto;
}

.modal-dialog {
    margin-top: 10%;
}

.modal-header {
    background-color: var(--primary-orange);
}

.modal-title {
    color: white;
}
/* ==================================================
   RESPONSIVE
================================================== */

/* ---------- DESKTOP MEDIO ---------- */
@media screen and (max-width: 1200px) {
    .map-box-container {
        width: 92vw;
        gap: 1.5rem;
    }

    .map-box-orange {
        width: 30%;
        min-height: 360px;
        font-size: 1.4em;
        padding: 1.5rem;
        box-sizing: border-box;
    }

        .map-box-orange > ul {
            font-size: 1.1em;
            padding-left: 1.2rem;
        }

    .map {
        width: 66%;
    }

    .form-container {
        width: 85%;
        gap: 2rem;
    }

    .contact-form-box-container {
        width: 48%;
    }

    .link-contatti > div {
        font-size: 1.35em;
    }

    .lineContatti, .form-container {
        background-color: white;
        z-index: 16;
    }
}


/* ---------- TABLET ---------- */
@media screen and (max-width: 992px) {
    .map-box-container {
        width: 92vw;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }

    .map-box-orange {
        width: 100%;
        max-width: 700px;
        min-height: auto;
        padding: 2rem 1.5rem;
        font-size: 1.4em;
        border-radius: 30px;
    }

        .map-box-orange > ul {
            width: 100%;
            height: auto;
            gap: 1rem;
            font-size: 1.05em;
            padding-left: 1.4rem;
            margin: 0;
        }

    .map {
        width: 100%;
        max-width: 700px;
    }

    .img-map {
        width: 100%;
        height: auto;
    }

    .form-container {
        width: 88%;
        flex-direction: column;
        justify-content: flex-start;
        gap: 2.5rem;
        margin: 4em auto 8%;
        background-color:white;
    }

    .contact-form-box-container {
        width: 100%;
    }

    .link-contatti {
        gap: 1.25rem;
    }

        .link-contatti > div {
            font-size: 1.35em;
        }

            .link-contatti > div > img {
                width: 1.8em;
            }

    .contact-form button {
        width: 170px;
        max-width: 100%;
        font-size: 14px;
    }

    .modal-dialog {
        margin-top: 18%;
    }
}


/* ---------- MOBILE ---------- */
@media screen and (max-width: 768px) {
    .card-info-blue.servizi{
        z-index:17;
    }
    .link-contatti {
        font-size: 1.5em;
    }
    .map-box-orange > ul {
        font-size: 1.5em;
        gap: 0.8rem;
        padding-left: 3.2rem;
    }
    .map-box-container {
        width: 94vw;
        gap: 1.5rem;
    }

    .map-box-orange {
        width: 100%;
        padding: 1.5rem 1.2rem;
        border-radius: 24px;
        font-size: 1.2em;
    }


    .map {
        width: 100%;
    }

    .form-container {
        width: 92%;
        margin: 3em auto 8%;
        gap: 2rem;
    }

    .row-two {
        flex-direction: column;
        gap: 10px;
    }

        .row-two input {
            width: 100%;
        }

    .contact-form input,
    .contact-form textarea {
        font-size: 15px;
        padding: 12px;
    }

    .contact-form textarea {
        min-height: 110px;
        height: auto;
    }

    .contact-form button {
        width: 100%;
        height: 3em;
        font-size: 14px;
    }

    .link-contatti {
        gap: 1rem;
    }

        .link-contatti > div {
            font-size: 1.15em;
            align-items: center;
        }

            .link-contatti > div > img {
                width: 1.6em;
                flex-shrink: 0;
            }

            .link-contatti > div > a {
                margin-left: 0.8em;
                word-break: break-word;
            }

    .modal-dialog {
        margin-top: 22%;
    }
    .map-box-container {
        position: relative;
        z-index: 16;
    }

}


/* ---------- MOBILE PICCOLO ---------- */
@media screen and (max-width: 480px) {
    .map-box-container {
        width: 95vw;
    }

    .map-box-orange {
        padding: 1.2rem 1rem;
        border-radius: 20px;
        font-size: 1.08em;
    }

        .map-box-orange > ul {
            font-size: 0.98em;
            padding-left: 1rem;
        }

    .form-container {
        width: 94%;
        margin: 2.5em auto 10%;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 14px;
        padding: 11px 10px;
    }

    .contact-form button {
        height: 3em;
        font-size: 13px;
    }

    .link-contatti > div {
        font-size: 1em;
    }

        .link-contatti > div > img {
            width: 1.4em;
        }

        .link-contatti > div > a {
            margin-left: 0.7em;
        }

    .modal-dialog {
        margin-top: 28%;
    }
}
