@import "global.css";

div.overlay {
    width: 100vw;
    height: 25vh;
    max-height: 50vh;
    background-image: url("/assets/images/banner-home.webp");
    background-repeat: no-repeat;
    background-size: 100%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

div.center {
    overflow: visible;
    border-radius: 2rem;
    background: var(--md-sys-color-on-primary, #FFFFFF);
    box-shadow: 0 0.1em 2em 0.2em rgba(0, 0, 0, 0.25);
    margin-top: 25vh;
    min-width: 50vw;
}


h1.search {
    font-size: 1.5em;
}


h1#searchBoxLeft {
    text-indent: -2em;
    color: var(--md-sys-color-on-background, #2F6A43);
}

h1#searchBoxRight {
    text-indent: 2em;
    color: var(--md-sys-color-primary, #2F6A43);
}

div.info {
    margin-top: 10rem;
    max-width: 50vw;
    height: auto;
    margin-left: 25vw;
    overflow: hidden;
    display: flex;
    margin-right: 25vw;
    box-shadow: 0 0.1em 2em 0.2em rgba(0, 0, 0, 0.25);
}

div.info img.center {
    width: 50%;
    object-fit: fill;
    overflow: hidden;
    min-width: 40%;
    max-height: 100%;
}


div.info p {
    margin: 1rem 2%;
    padding: 1rem 2%;
    text-align: justify;
}

div.left img, div.right img {
    vertical-align: top;
    max-width: 100%;
    width: 100%;
    max-height: 11em;
    margin-bottom: 1em;
}

div.left, div.right {
    height: auto;
    min-height: 28rem;
    max-height: 34rem;
    border-radius: 2rem;
    background: var(--md-sys-color-on-primary, #FFFFFF);
    margin-top: 10vh;
    min-width: 25vw;
    width: 25vw;
    overflow: hidden;
    box-shadow: 0 0.1vmin 2vmin 0.2em rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    will-change: box-shadow, transform, background-color;
}

div.left:hover {
    transform: translateY(-1rem) rotate(-3deg);
    box-shadow: 0 0.5vmin 2vmin 0.3em rgba(0, 0, 0, 0.3);
    background: var(--md-sys-color-on-secondary, #DDDDDD); /* Colore di sfondo al passaggio del mouse */
}

div.right:hover {
    transform: translateY(-1rem) rotate(3deg);
    box-shadow: 0 0.5vmin 2vmin 0.3em rgba(0, 0, 0, 0.3);
    background: var(--md-sys-color-on-secondary, #DDDDDD); /* Colore di sfondo al passaggio del mouse */
}


div.left {
    flex: 1;
    float: left;
    margin-left: 10vw;
}

div.right {
    flex: 2;
    float: right;
    margin-right: 10vw;
}

div.bottomInfo {
    display: flow;
    flex-direction: row;
    width: 80vw;
    max-width: 80vw;
    margin-left: 10vw;
    margin-right: 10vw;
    padding-bottom: 5rem;
    margin-bottom: 2rem;
}

div.left p, div.right p {
    text-align: justify;
    margin-left: 5%;
    margin-right: 5%;
}

.radar-autocomplete-input {
    border-radius: 0.8rem;
}

@media screen and (max-width: 900px) {
    div.info {
        height: auto;
        padding-bottom: 1em;
        min-width: 75vw;
        display: block;
        margin: 15vh auto 5rem;
    }

    div.info img.center {
        vertical-align: top;
        max-height: 15em;
        max-width: 100%;
        width: 100%;
        height: 15em;
    }

    div.center {
        min-width: 75vw;
        margin-left: auto;
        margin-right: auto;
        border-radius: 2.4rem;
    }

    div.info img.center {
        border-radius: 1.9rem 1.9rem 0 0;
    }

    div.bottomInfo {
        flex-direction: column;
        width: 100vw;
        min-width: 100vw;
        margin: 0;
    }

    div.left, div.right {
        padding-bottom: 1em;
        float: none;
        height: auto;
        max-height: 50%;
        margin-left: auto;
        margin-right: auto;
        min-width: 75vw;
        border-radius: 2.4rem;
    }

}


@media screen and (max-width: 1280px) {
    div.overlay {
        background-image: url("/assets/images/banner-home-1280.webp");
    }
}