/*! 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 {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * 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
   ========================================================================== */

html, body{
    /*font-family: 'Parisienne', cursive;*/
    font-family: 'Lato', sans-serif;
    display: flex;
    flex-direction: column;
    height: 100%;
    /*overflow-y: auto*/
}
a{
    color: #222222;
    text-decoration: none!important;
}
.text-c-gold{
    color: #D4AF37;
}
.hover-white:hover{
    color: #FFFFFF;
}
.hover-black:hover{
    color: #222222;
}
.bg-c-dark{
    background-color: #222222;
}
.back-c-grey{
    background-color: #F8F8F8;
    border: 1px solid #707070;
}
.spacing{
    padding: 0 3%;
}
.loading-opa{
    display: block!important;
    opacity: 0.5!important;
}

.header{
    min-height: 120px;
}

.logo{
    width: fit-content;
    color: #FFFFFF;
    font-family: 'Parisienne', cursive;
    font-size: 3.8rem;
    display: block;
    text-align: center;
    line-height: 1;
    margin: 0 auto;
}
.logo:hover{
    color: #D4AF37;
}
.sublogo{
    font-size: 1.2rem;
    text-align: center;
    color: #FFFFFF;
    line-height: 1;
    text-transform: uppercase;
    margin: 0;
}

.footer{
    min-height: 280px;
    color: #FFFFFF;
}
.logo-footer{
    color: #D4AF37;
    font-family: 'Parisienne', cursive;
    font-size: 2.8rem;
    line-height: 1.8rem;
    display: block;
}
.logo-footer:hover{
    color: #FFFFFF;
}
.logo-footer span{
    font-size: 1.3rem;
}

.social{
    margin-right: 15px;
    font-size: 40px;
    color: #FFFFFF;
}
.social:hover{
    color: #D4AF37;
}
.nav{
    font-size: 1.2rem;
    text-transform: capitalize;
}
.nav-item a.nav-link{
   color: #FFFFFF
}
.nav-item a.nav-link:hover{
    color: #D4AF37
}
.nav-item:last-child .nav-link{
    padding-right: 0;
}

.footer-badge {
    align-self: center;
}
.footer-badge img{
    height: 70px;
    margin-left: 15px;
    margin-bottom: 10px;
}

.footer-social{
    display: flex;
}
.footer-badge{
    display: flex;
    justify-content: flex-end;
}


.cambio-lingua{
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: block;
}
.cambio-lingua.english{
    background-image: url('../img/en.png');
}
.cambio-lingua.italiano{
    background-image: url('../img/it.png');
}

.mobile-menu{
    display: block;
    position: relative;
}
.hamburger{
    display: block;
    font-size: .9em;
    line-height: 1;
    text-transform: uppercase;
    color: #DCB963;
    font-weight: 500;
    position: absolute;
    left: 0;
    top: 50%;
    z-index: 501;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    cursor: pointer;
}
.hamburger span{
    width: 2em;
    margin-right: .5em;
    display: inline-block;
    vertical-align: middle;
    padding: 0;
    border: 0;
    outline: 0;
    font-size: 100%;
    background: transparent;
    line-height: 1;
    text-transform: uppercase;
    font-weight: 500;
}
.hamburger span i{
    display: block;
    width: 2em;
    height: 4px;
    background-color: #FFFFFF;
    -webkit-transition-property: background-color, -webkit-transform;
    transition-property: background-color, -webkit-transform;
    transition-property: background-color, transform;
    transition-property: background-color, transform, -webkit-transform;
    -webkit-transition-duration: .3s;
    transition-duration: .3s;
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border-radius: 3px;
}
.hamburger span i::after{
    top: 10px;
}
.hamburger span i::before{
    top: -10px;
}
.hamburger span i::before, .hamburger span i::after{
    box-sizing: border-box;
    display: block;
    width: 2em;
    height: 4px;
    background-color: #FFFFFF;
    -webkit-transition-property: background-color, -webkit-transform;
    transition-property: background-color, -webkit-transform;
    transition-property: background-color, transform;
    transition-property: background-color, transform, -webkit-transform;
    -webkit-transition-duration: .3s;
    transition-duration: .3s;
    position: absolute;
    content: "";
    border-radius: 3px;
}
.hamburger.open span i {
    background-color: transparent;
}
.hamburger.open span i::before{
    -webkit-transform: translateY(10px) rotate(45deg);
    transform: translateY(10px) rotate(45deg);
}
.hamburger.open span i::after{
    -webkit-transform: translateY(-10px) rotate(-45deg);
    transform: translateY(-10px) rotate(-45deg);
}

.menu-list{
    width: 0%;
    position: fixed;
    box-sizing: content-box;
    height: 100%;
    top: 0;
    left: 0;
    display: block;
    z-index: 400;
    background-color: rgba(0, 0, 0, 1);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow-y: hidden;
    opacity: 1;
    -webkit-transition: width .3s ease;
}

.menu-list ul{
    color: #FFFFFF;
    text-align: center;
    text-transform: capitalize;
    list-style: none;
    padding: 0;
}
.menu-list ul li{
}
.menu-list ul li a{
    color: #FFFFFF;
    padding: 7px;
    display: block;
}
.menu-list ul li a:first-child{
    text-transform: uppercase;
}
.menu-list ul li a:hover {
    color: #DCB963;
}

.menu-list.open{
    width: 100%;
}

.lingua-menu a{
    text-transform: uppercase;
    color: #FFFFFF;
    display: block;
    text-align: center;
}
.lingua-menu a:hover{
    color: #DCB963;
}
.separation-line{
    width: 30px;
    height: 1px;
    display: block;
    margin: auto;
    background-color: white;
}

/*HOMEPAGE*/

.cont-testo h3{
    font-family: 'Parisienne', cursive;
    text-align: center;
    font-size: 3rem;
}

.cont-testo p{
    width: 66%;
    text-align: center;
    margin: 0 auto;
}

.cont-trisec{
    margin: auto;
    text-align: center;
    display: flex;
}
.cont-trisec h4{
    text-transform: uppercase;
}
.button-trisec{
    background: #dcb963;
    padding: 7px 18px;
    text-transform: uppercase;
    color: #FFFFFF;
    display: inline-block;
}
.button-trisec:hover{
    background: #d2af5e;
    color: #FFFFFF;
    -webkit-box-shadow: 0px 0px 10px 1px rgba(34,34,34,0.5);
    -moz-box-shadow: 0px 0px 10px 1px rgba(34,34,34,0.5);
    box-shadow: 0px 0px 10px 1px rgba(34,34,34,0.5);
}


.carousel-item img{
    height: 840px;
    object-fit: cover;
}
.carousel-caption {
    bottom: 0;
    z-index: 10;
    padding: 15px 30px 15px 50px;
    color: #fff;
    background-color: rgba(0, 0, 0, .5);
    text-align: center;
    width: 100%;
    transform: translateX(-15%);
}
.carousel-caption p {
    color: #FFFFFF;
    font-size: 1.5rem;
    line-height: 1;
    font-style: italic;
    margin-bottom: 0.5rem;
}
.carousel-caption h5 {
    color: #d2af5e;
    font-size: 2rem;
    line-height: 1;
    font-weight: bold;
    margin: 0;
}
.carousel-indicators{
    position: absolute;
    top: 0;
    left: 0;
    bottom: unset;
    right: unset;
    z-index: 15;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    list-style: none;
    flex-direction: column;
    padding: 10px;
    margin-left: 0;
    margin-right: 0;
}
.carousel-indicators li{
    box-sizing: content-box;
    flex: 0 1 auto;
    width: 15px;
    height: 15px;
    border-bottom: 0px;
    margin-right: 3px;
    margin-left: 3px;
    text-indent: -999px;
    cursor: pointer;
    background-color: #fff;
    background-clip: padding-box;
    /*border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-radius: 50%;*/
    opacity: 0.9;
    transition: opacity .6s ease;
}
.carousel-indicators li.active{
    background-color: #d2af5e;
}
.carousel-control-next-icon, .carousel-control-prev-icon{
    display: none;
}

.cont-imgs-patch div{
    display: flex;
    flex-wrap: wrap;
}
.cont-imgs-patch div a{
    overflow: hidden;
}
.cont-imgs-patch div img{
    width: 100%;
    height: 512px;
    margin: 0;
    padding: 0;
    display: inline-block;
    object-fit: cover;
    transition: transform .2s; /* Animation */
    transform: scale(1.01)
}
.cont-imgs-patch div a:hover > img{
    transform: scale(1.06); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}
.cont-imgs-patch .right-toL a:nth-child(1){
    width: 35%;
}
.cont-imgs-patch .right-toL a:nth-child(2){
    width: 45%;
}
.cont-imgs-patch .right-toL a:nth-child(3){
    width: 20%;
}

.cont-imgs-patch .left-toR a:nth-child(3){
    width: 45%;
}
.cont-imgs-patch .left-toR a:nth-child(2){
    width: 35%;
}
.cont-imgs-patch .left-toR a:nth-child(1){
    width: 20%;
}

/*PAGINE*/
.cont-trisec .overflow-img{
    width: 50%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}
.cont-trisec .cont-img{
    width: 100%;
    height: 180px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform .2s; /* Animation */
    transform: scale(1.01)
}
.overflow-service-text {
    justify-content: center;
    align-items: center;
    align-self: center;
    text-align: left;
    padding-left: 20px;
}

/* SERVIZI */
.cont-quadsec{
    text-align: center;
    border: 1px solid #707070;
}
.cont-quadsec h4{
    text-transform: uppercase;
}

.cont-quadsec .overflow-img{
    width: 100%;
    height: 250px;
    overflow: hidden;
}
.cont-quadsec .cont-img{
    width: 100%;
    height: 250px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform .2s; /* Animation */
    transform: scale(1.01)
}

.cont-quadsec:hover > .overflow-img .cont-img{
    transform: scale(1.06); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

.cont-quadsec h4, .cont-quadsec p{
    padding: 0 20px;
}

.servizio-link, .servizio-link:hover{
    color: #222222;
}

.col-3 a:hover > .image-item{
    transform: scale(1.06); /* (150% zoom - Note: if the zoom is too large, it will go outside of the viewport) */
}

#scrollbox{
    position: relative;
    padding-top: 25px;
}
.loading{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    display: none;
    z-index: 10;
    background-color: #000000;
    background-image: url('../img/loading-icon.gif');
    background-repeat: no-repeat;
    background-position: center 95%;
    background-size: 90px;
    opacity: 0;
    transition: opacity .6s; /* Animation */
}

/*ABOUT*/

.about-img{
    width: 100%;
    height: 600px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


/*CONTACTS*/

.contact-box h4, .contact-box p, .contact-box a{
    text-align: center;
    display: block;
}
.contact-box h4{
    text-transform: uppercase;
    font-size: 1.8rem;
}
.contact-box a:hover{
    color: #222222;
}

.contacts-social{
    width: 100%;
    display: flex;
    justify-content: center;
}
.contacts-social .social{
    color: #d2af5e;
}
.contacts-badge{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-around;
}
.contacts-badge img{
    width: 100px;
    margin-right: 5px;
    object-fit: contain;
}

/*ALTRE PAGINE*/

.box-list-images{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.image-item{
    width: 100%;
    height: 270px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 25px;
    transition: transform .2s; /* Animation */
    transform: scale(1.01)
}



/*
==========================================================================
   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 (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@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;
    }
}


@media all and (max-width: 1024px) {
    .carousel-item img {
        height: 640px;
    }


}

@media all and (max-width: 768px) {
    .footer{
        text-align: center;
    }
    .logo-footer{
        display: block;
        text-align: center;
    }
    .footer-nav{
        justify-content: center!important;
    }
    .footer-social{
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-badge{
        flex-basis: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cont-imgs-patch div img {
        height: 480px;
    }
    .cont-imgs-patch .right-toL a:nth-child(1){
        width: 40%;
    }
    .cont-imgs-patch .right-toL a:nth-child(2){
        width: 60%;
    }
    .cont-imgs-patch .right-toL a:nth-child(3){
        width: 100%;
    }

    .cont-imgs-patch .left-toR a:nth-child(3){
        width: 100%;
    }
    .cont-imgs-patch .left-toR a:nth-child(2){
        width: 40%;
    }
    .cont-imgs-patch .left-toR a:nth-child(1){
        width: 60%;
    }

    .cont-trisec {
        flex-wrap: wrap;
    }
    .cont-trisec .overflow-img {
        width: 100%;
    }
    .overflow-service-text {
        text-align: center;
        flex-grow: 1;
    }
}


@media all and (max-width: 580px) {
    .logo{
        font-size: 1.8rem;
    }
    .logo:hover{
        color: #D4AF37;
    }
    .sublogo{
        display: none;
    }

    .cont-imgs-patch div img {
        height: 400px;
    }
    .cont-imgs-patch .right-toL a:nth-child(1){
        width: 100%;
    }
    .cont-imgs-patch .right-toL a:nth-child(2){
        width: 100%;
    }
    .cont-imgs-patch .right-toL a:nth-child(3){
        width: 100%;
    }

    .cont-imgs-patch .left-toR a:nth-child(3){
        width: 100%;
    }
    .cont-imgs-patch .left-toR a:nth-child(2){
        width: 100%;
    }
    .cont-imgs-patch .left-toR a:nth-child(1){
        width: 100%;
    }
}
