/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html, body {
    max-width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 1em;
    line-height: 1.6;
    font-family: "Afacad", sans-serif;
}

a{
    text-decoration: none!important;
    color: #222222;
}
a:hover{
    color: #F4DA2D;
}


.menu .nav-item{
    border-radius: 5px;
}
.menu .nav-link, .menu .nav-link:focus{
    border-radius: 5px;
    color: #222222;
    padding: 5px 10px;
}
.menu .nav-item:hover{
    background-color: #F4DA2D;
}
.menu .nav-link:hover{
    color: #222222;
}

.menu-footer .nav-item{
    border-radius: 5px;
}
.menu-footer .nav-link, .menu-footer .nav-link:focus{
    border-radius: 5px;
    color: #FFFFFF;
    padding: 5px 10px;
}
.menu-footer .nav-item:hover{
    background-color: #F4DA2D;
}
.menu-footer .nav-link:hover{
    color: #222222;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

.browsehappy {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
#my-page{
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}
.spacing{
    padding: 0 2rem;
}
.spacing-header{
    padding: 2rem 60px;
}
.spacing-content{
    padding: 30px 120px;
}
.spacing-page{
    padding: 120px 180px;
}
.pad-top-10{
    padding-top: 10px;
}

.black-bg{
    background-color: #222222;
}

.gray-bg{
    background-color: #F9F9F9;
}
.border-y{
    border-top: 1px solid #CCCCCC;
    border-bottom: 1px solid #CCCCCC;
}

.separator{
    display: block;
    height: 2px;
    width: 100%;
    background-color: #CCCCCC;
    padding: 0 180px;
}

.opacity-overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #222222;
    opacity: 0.5;
    z-index: 1;
    top: 0;
    left: 0;
}

.home-header{
    position: absolute;
    top: 0;
}
.header{

}

.logo-home img{
    width: 278px;
    height: auto;
}

.selected-lang{
    display: flex;
    align-items: center;
}
.selected-lang .fa-chevron-down{
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
    transition: all .5s ease-in-out;
}
.flag{
    width: 35px;
}
.choose-lang {
    margin-top: 17px;
    position: absolute;
    overflow: hidden;
}
.lang{
    margin-bottom: 15px;
}
.rotate{
    transform: rotate(0.5turn);
}

.menu{
    margin-top: 10px;
    font-weight: bold;
}

.menu-footer{
    margin-top: 10px;
    font-weight: bold;
    color: #FFFFFF;
}

.mobile-menu{
    display: none;
}

.mm-menu {
    --mm-color-background: #222222;
    --mm-color-text: #FFFFFF;
    --mm-color-button: #FFFFFF;
    --mm-listitem-size: 55px;
    --mm-line-height: 25px;
}
.mm-listitem a{
    font-size: 1.2rem;
    text-transform: uppercase;
    text-align: center;
}
.mm-listitem a:hover{
    color: #BBB!important;
}
.mburger{
    --mb-bar-spacing: 8px;
}
.mm-navbar{
    align-items: center;
    padding: 2rem 60px;
    position: relative;
    min-height: 200px!important;
}
.header-menu-mobile{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
}
.header-menu-mobile img{
    width: 215px;
}
.mm-btn:after, .mm-btn:before{
    border-width: 3px!important;
}
.mm-btn_close{
    align-self: start;
}
.mm-btn_close:after, .mm-btn_close:before{
    width: 16px!important;
    height: 16px!important;
}
.mm-btn_close:after {
    right: unset!important;
    left: 4px!important;
}
.mm-btn_close:before {
    right: 5px!important;
}
.mm-navbars_bottom .mm-navbar:first-child{
    border: none!important;
}

.big-img{
    background-color: #222222;
    background-image: url("../img/home-big-img.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 870px;
    width: 100%;
    display: block;
}
.circle-images{
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
}
.circle-images .icon{
    flex: 1;
    aspect-ratio: 1 / 1;
    width: 100%;
    min-width: 100px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-bottom: 25px;
    border-radius: 50%;
    border: 3px solid #F4DA2D;
    padding: 15px;
    background-clip: content-box;
    transition: all 0.2s ease-in-out;
}
.circle-images .element{
    width: 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 15px;
}
.circle-images .element .text{
    font-size: 1.15rem;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

.main-text-background{
    background-image: url("../img/bg_text_1.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.main-text{
    width: 80%;
    margin: auto;
}
.main-text .text_logo{
    height: 68px;
    margin-bottom: 15px;
}
.main-text .text_1{
    margin: 15px 0;
    font-weight: bold;
    font-size: 1.6rem;
    line-height: 1.2;
}

.icons-images{
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
}
.icons-images .icon{
    margin-bottom: 25px;
    padding: 15px;
    transition: all 0.2s ease-in-out;
}
.icons-images .icon img{
    height: 100px;
}
.icons-images .element{
    width: 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
    margin-bottom: 15px;
}
.icons-images .element .text{
    font-size: 1.8rem;
    text-align: center;
}

.circle-cities{
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
}
.circle-cities .icon{
    flex: 1;
    aspect-ratio: 1 / 1;
    width: 100%;
    min-width: 100px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    margin-bottom: 25px;
    border-radius: 50%;
    padding: 15px;
    background-clip: content-box;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-cities .icon .inside-text{
    padding: 3px 10px;
    border-radius: 5px;
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
}
.circle-cities .icon .inside-text.online{
    background-color: #F90303;
}
.circle-cities .icon .inside-text.offline{
    background-color: #0066B3;
}
.circle-cities .icon.online{
    border: 3px solid #F90303;
}
.circle-cities .icon.offline{
    border: 3px solid #CCCCCC;
}
.circle-cities .element{
    width: 28%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
}
.circle-cities .element .text{
    font-size: 1.15rem;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

.square-features{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 25px;
}
.square-features .icon{
    margin-bottom: 25px;
    padding: 15px;
    transition: all 0.2s ease-in-out;
}
.square-features .icon img{
    height: 60px;
}
.square-features .element{
    width: calc(33.333% - 16.666px);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background-color: #FFFFFF;
    border-radius: 5px;
    border: 1px solid #CCCCCC;
}
.square-features .element .text{
    font-size: 1.4rem;
    text-align: center;
}

.about-us-background{
    background-image: url("../img/about-us.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-testo{
    color: #FFFFFF;
}
.button-bordered-like{
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: inline-block;
    text-transform: capitalize;
    font-weight: bold;
}
.button-bordered-like:hover{
    color: #F4DA2D;
    border-color: #F4DA2D;
}
.img-map{
    width: 380px;
    max-width: 100%;
    margin: auto;
    display: block;
}

#form-contatti{
    max-width: 970px;
}
#form-contatti input, #form-contatti textarea{
    text-transform: capitalize;
}
#validationTextarea{

}
.btn-custom-submit{
    background-color: #222222;
    border: 1px solid #222222;
    color: #FFFFFF;
    text-transform: uppercase;
    font-weight: bold;
    margin: auto;
    display: block;
}
.btn-custom-submit:hover{
    background-color: #FFFFFF;
    border: 1px solid #222222;
    color: #222222;
}

.logo-footer{

}

.footer-menu{
    text-transform: capitalize;
}

.info-box{
    color: #FFFFFF;
    font-size: 1.2rem;
}
.info-box p a{
    color: #FFFFFF;
}
.info-box p a:hover{
    color: #F4DA2D;
}
.social-box-footer a, .social-box-header a{
    font-size: 2rem;
}

.social-box-footer a{
    color: #FFFFFF;
}
.social-box-footer a:hover{
    color: #F4DA2D;
}

.privacy p, .instructions p{
    padding: 0.5rem 1rem;
}
.privacy p a, .instructions p a{
    color: #FFFFFF;
    cursor: pointer;
}
.privacy p a:hover, .instructions p a:hover{
    color: #F4DA2D;
}
.instructions{
    font-size: 1.2rem;
    text-transform: uppercase;
}


.form-check{
    color: #222222;
}

/* SLIDER */

.wrapper-slider{
    padding: 3rem 180px;
    display: flex;
    gap: 40px;
}
.left-static{
    width: 33.333%;
}
.right-moving{
    width: 66.666%;
    position: relative;
}
.static-element{
    height: 630px;
    display: flex;
    background-color: #F3F2F2;
    padding: 30px 45px;
    flex-direction: column;
    align-items: flex-start;
}
.static-element-testo{
    margin-top: auto;
    min-height: 200px;
}

.container-slider{
    overflow: hidden;
}
.wrapper-elements{
    display: flex;
    flex-wrap: nowrap;
    gap: 40px;
    position: relative;
    left: 0;
    transition: all 0.5s;
}

.all-news-button{
    font-weight: bold;
    color: #222222;
    border: 2px solid #222222;
    border-radius: 20px;
    background-color: transparent;
    padding: 0.3rem 1rem;
    display: inline-block;
    text-transform: capitalize;
}
.all-news-button:hover{
    color: #F4DA2D;
    border: 2px solid #F4DA2D;
}

.slider-element{
    height: 630px;
    display: flex;
    background-color: #F3F2F2;
    background-position: left;
    background-size: cover;
    background-repeat: no-repeat;
    padding: 30px 45px;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: calc(50% - 40px);
    flex-shrink: 0;
    flex-grow: 1;
}
.slider-element .element-content .slider-element-testo{
    margin-top: auto;
    min-height: 200px;
    color: #FFFFFF;
}

.slider-button{
    font-weight: bold;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    border-radius: 20px;
    background-color: transparent;
    padding: 0.3rem 1rem;
    display: inline-block;
    text-transform: capitalize;
}
.slider-button:hover{
    color: #F4DA2D;
    border: 2px solid #F4DA2D;
}

.element-content{
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
}

.navigation .prev{
    top: 50%;
    left: 0;
    transform: translate(-25px, -50%) rotate(180deg);
}

.navigation .next, .navigation .prev{
    width: 50px;
    height: 50px;
    position: absolute;
    background-image: url("../img/nav-arrow.png");
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 3;
    cursor: pointer;
}
.navigation .next{
    top: 50%;
    right: 0;
    transform: translate(-25px, -50%);
}
/***************/

/* PAGINA */

.main-img-page{
    background-color: #F4DA2D;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 415px;
    width: 100%;
    display: block;
}

.page-left .img-laterale img{
    width: 100%;
    height: 700px;
    object-fit: cover;
    object-position: center;
}
.page-right{
    padding-left: 50px;
}
.page-right .testo-pagina{
    padding-top: 100px;
}

.servizi-pagina{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    display: none;
}
.servizi-pagina .elem{
    flex-basis: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 15px;
}
.servizi-pagina .elem img{
    width: 65px;
    height: 65px;
    object-fit: contain;

}
.servizi-pagina .elem .text{
    font-size: 0.8rem;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}
/***************/

/* ARTICOLO */

.article-left .img-laterale img{
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 20px;
}
.article-right{
    padding-left: 50px;
}
.article-right .testo-pagina{
    padding-top: 100px;
}

.articolo-element{
    width: 100%;
    height: 400px;
    display: flex;
    background-color: #F3F2F2;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 30px 45px;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    flex-shrink: 0;
    flex-grow: 1;
    margin-bottom: 20px;
}

.articolo-element .element-content .slider-element-testo{
    margin-top: auto;
    color: #FFFFFF;
}
/**************/


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */
@media only screen and (max-width: 1440px) {
    .logo-home img{
        width: 240px;
    }

    .spacing-page{
        padding: 60px 60px;
    }
}
@media only screen and (max-width: 1024px) {
    .spacing{
        padding: 0 2rem;
    }
    .spacing-header{
        padding: 2rem 60px;
    }
    .spacing-content{
        padding: 85px 20px;
    }
    .spacing-map{
        padding: 20px 80px;
    }

    .social-box-footer a, .social-box-header a{
        margin-right: 15px;
    }

    .logo-home img{
        width: 200px;
    }

    .element{
        width: 33%;
    }

    .wrapper-slider{
        padding: 2rem;
    }
    .left-static{
        display: none;
    }
    .slider-element {
        height: 485px;
    }
    .right-moving{
        width: 100%;
    }

}

@media only screen and (max-width: 915px) {
    .social-box-header{
        display: none;
    }

    .page-right .testo-pagina, .article-right .testo-pagina{
        padding-top: 0;
    }
}

@media only screen and (max-width: 768px) {
    .big-img {
        height: 100vh;
    }
    .wrapper-elements{
        gap: 0;
    }
    .slider-element {
        width: 100%;
    }
    .map-background{
        height: auto;
    }
    .navigation .next{
        transform: translate(25px, -50%);
    }
    .header-menu-mobile img {
        width: 135px;
    }
    .page-left .img-laterale{
        display: none;
    }
    .page-right, .article-right{
        padding: 0;
    }

    .circle-images .element {
        width: 60%;
    }
    .icons-images .element {
        width: 60%;
    }
    .circle-cities .element {
        width: 60%;
    }
}

@media only screen and (max-width: 680px) {
    .spacing-header{
        padding: 2rem 2rem;
    }
    .spacing-content{
        padding: 2rem 2rem;
    }
    .spacing-map{
        padding: 20px 2rem;
    }
    .spacing-page{
        padding: 2rem 2rem;
    }
    .element{
        width: 50%;
    }

}

@media only screen and (max-width: 600px) {
    .logo-home img, .logo img{
        width: 100%;
        max-width: 135px;
    }
    .selected-lang a{
        display: none;
    }
    .mm-navbar{
        padding: 1rem 1rem;
        min-height: 150px!important;
    }
    .icon {

    }
    .element .text {
        font-size: 0.9rem;
    }
}

@media only screen and (max-width: 420px) {
    .spacing-header{
        padding: 0.5rem;
    }

    :root{
        --mb-button-size: 45px!important;
    }
    .flag {
        width: 28px;
    }
    .selected-lang .fa-chevron-down {
        font-size: 0.9rem;
    }

    .circle-images .element {
        width: 100%;
    }
    .icons-images .element {
        width: 100%;
    }
    .circle-cities .element {
        width: 100%;
    }
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
