/* lato-regular - latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: local(''),
    url('../fonts/lato-v23-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../fonts/lato-v23-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* lato-700 - latin */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: local(''),
    url('../fonts/lato-v23-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../fonts/lato-v23-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* lora-regular - latin */
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 400;
    src: local(''),
    url('../fonts/lora-v24-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../fonts/lora-v24-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
/* lora-700 - latin */
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 700;
    src: local(''),
    url('../fonts/lora-v24-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
    url('../fonts/lora-v24-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
}
:root {
    --bg-dark: #222;
    /*--rosso: #781D31;*/
    --giallo: #FFCC00;
    --blu: #86cddf;
}


.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

a{
    text-decoration: none;
}

html, body {
    height: 100%;
    font-family: 'Lato', sans-serif;
    color:#222;
}

body{
    overflow-x: hidden;
}


h1{
    font-size: calc(26px + (38 - 26) * ((100vw - 360px) / (1700 - 360)));
}
h2{
    font-size: calc(22px + (32 - 22) * ((100vw - 360px) / (1700 - 360)));
}
h3{
    font-size: calc(18px + (26 - 18) * ((100vw - 360px) / (1700 - 360)));
}
h4{
    font-size: calc(16px + (24 - 16) * ((100vw - 360px) / (1700 - 360)));
}

h1, h2, h3, h4{
    font-family: "Lora", serif;
}


input:focus, select:focus, button:focus, a:focus{
    outline: none;
}

.overlayed{
    box-shadow: inset 0 0 0 1000px rgba(0,0,0,.5);
}

.img-home{
    position: fixed;
    z-index: -1;
    top: 0;
    left:0;
    background-image: url("../img/header.png");
    width: 100%;
    padding-bottom: 40%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
}

@media(max-width: 1199px){
    .img-home{
        position: relative;
        padding-bottom: 100%;
        background-position: center center;
        background-image: url("../img/header.png");
    }

    .navbar{
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 999;
    }
}

a.logo{
    letter-spacing: 0;
    color: #222;
}

.isHome a.logo{
    color: white;
}

a.logo span{
    display: block;
}

a .logo-1{
    font-size: 60px;
    line-height: 41px;
    font-family: "Lora", serif;
}

a .logo-2{
    font-size:  48px;
    font-family: "Lora", serif;
}


.isHome header{
    padding-bottom: calc(24% - 158px);
}

.barra-top{
    height: 100%;
}

.barra-top{
    padding:1.5rem 0;
}

.isHome .barra-top{
    padding:3rem 0;
    border-bottom: none;
}

@media (max-width: 1199px){
    .barra-top{
        padding: 0;
    }

    .isHome .barra-top{
        padding: 0;
    }
}

@media (max-width: 1199px){


    #my-page:not(.isHome) main{
        margin-top: 96px;
    }

    .isHome header{
        transition: all 0.2s;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    #my-page:not(.isHome):not(.menu-closed) .logo{
        color:white;
    }

    .menu-closed .navbar-bianca{
        background-color: white;
        border-bottom: 1px solid #ccc;
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 999;
    }

    .menu-closed .navbar-bianca .mburger, .menu-closed .navbar-bianca .logo{
        color: #222 !important;
    }
    body:not(.menu-closed) .logo-firenze{
        background-image: url('../img/logofirenze.png') !important;
    }

}

.isHome .menu_desktop{
    color:white;
}

.menu_desktop a, .menu_desktop a > span {
    position: relative;
    color: inherit;
    text-decoration: none;
    line-height: 24px;
    text-transform: uppercase;
    font-size: 24px;
    font-weight: bold;
    /*text-shadow: -0.0075em 0.0075em 0 #6f6f6f, 0.005em 0.005em 0 #6b6b6b, 0.01em 0.01em 0 #5f5f5f, 0.015em 0.015em #5b5b5b, 0.02em 0.02em 0 #4f4f4f, 0.025em 0.025em 0 #4b4b4b, 0.03em 0.03em 0 #3f3f3f, 0.035em 0.035em 0 #3b3b3b;*/
}
.menu_desktop a:before, .menu_desktop a:after,.menu_desktop a > span:before, .menu_desktop a > span:after {
    content: "";
    position: absolute;
    transition: transform 0.2s ease;
}
.effect-5 {
    position: relative;
    display: inline-block;
    overflow: hidden;
}
.effect-5:before, .effect-5:after {
    right: 0;
    bottom: 0;
    background: #222;
}

.isHome .effect-5:before, .isHome .effect-5:after{
    background: white;
}
.effect-5:before {
    width: 100%;
    height: 1px;
    transform: translateX(-100%);
}
.effect-5:after {
    width: 1px;
    height: 100%;
    transform: translateY(100%);
}
.effect-5 > span {
    display: block;
    padding: 6px 12px;
}
.effect-5 > span:before, .effect-5 > span:after {
    left: 0;
    top: 0;
    background: #222;
}
.isHome .effect-5 > span:before, .isHome .effect-5 > span:after {
    background: white;
}
.effect-5 > span:before {
    width: 100%;
    height: 1px;
    transform: translateX(100%);
}
.effect-5 > span:after {
    width: 1px;
    height: 100%;
    transform: translateY(-100%);
}
.effect-5:hover:before, .effect-5:hover:after, .effect-5:hover > span:before, .effect-5:hover > span:after {
    transform: translate(0, 0);
}

.ristretto{
    width:94vw;
    margin-left: auto;
    margin-right: auto;
    max-width: 1700px;
}

.strettissimo{
    width:94vw;
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
}

main{
    background-color: white;
}

.btn-mio{
    color: white;
    outline: none;
    background-color:var(--giallo);
    border: 2px solid var(--giallo);
    padding: 6px 16px;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
    transition: all .2s ease;
    transform-style: preserve-3d;
    font-size: calc(14px + (18 - 14) * ((100vw - 360px) / (1920 - 360)));
    border-radius: 4px;
}

.btn-mio:before{
    z-index: -2;
    transform: translate3D(0,0,0);
}

.btn-mio:before, .btn-mio:after{
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    background: white; /* onhover background color */
    z-index: -1;
    transition: all .2s ease-in-out;
    transform-origin: center center;
    transform: scale(1,0);
}

.btn-mio:hover:after{
    transform: translate3D(0,0,0);
    transition: all .2s ease-in-out;
}

.btn-mio:hover{
    color: var(--giallo);
}

.btn-mio:hover:before,
.btn-mio:hover:after{
    transform: scale(1);
}

.btn-mio-inverted{
    background-color: white;
    color: var(--giallo);
    border: 2px solid var(--giallo);
}

.btn-mio-inverted:before, .btn-mio-inverted:after{
    background: var(--giallo);
}

.btn-mio-inverted:hover{
    color: white;
}

.lightGallery{
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr) ) ;
}

.lightGallery a{
    max-width: 500px;
    color: #222;
    font-size: 18px;
    cursor: pointer;
}

.lightGallery .immagine{
    padding-bottom: 56.25%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.lightGallery.a4 .immagine{
    padding-bottom: 110%;
    background-size: contain;
}

@media(max-width: 1199px){

    .lightGallery.a4{
        white-space: nowrap;
        display: block;
        overflow-x: scroll;
    }

    .lightGallery.a4 .immagine{
        width: 280px;
        display: inline-block;
    }
}

.lightGallery a .video{
    cursor: pointer;
}

.video:after{
    content: url(../img/youtube-logo.png);
    position: absolute;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
    left: 50%;
}

.libro-home-container{
    position:relative;
    margin-top: -270px;
    background-color: white;
}

@media(max-width: 1199px){
    .libro-home-container{
        margin-top: 1rem;
    }

    .libro-home{
        width: 100vw;
        margin-left: -3vw;
    }

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

.libro-home{
    background-color: #f2f2f2;
}

.riga-grigia{
    margin-top: 1rem;
    margin-bottom: 1rem;
    height:1px;
    background-color: #ccc;
}

@media(max-width: 1199px) {
    .riga-grigia{
        display:none;
    }

    .newsletter-container{
        width: 100vw;
        margin-left: -3vw;
    }
}

.riga-bianca{
    margin-top: 1rem;
    margin-bottom: 1rem;
    height:1px;
    background-color: white;
}

.flex-container {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
}

.white-input{
    background-color: white !important;
    border:none;
    padding: 10px 12px 9px 12px;
    width: 250px;
}

.bg-blu{
    background-color: var(--blu);
    color:white;
}

.bg-grigio8{
    background-color: #888;
    color:white;
}

.newsletter-container h3{
    position: relative;
}

.newsletter-container .p-4 h3:after{
    position:absolute;
    content:"";
    width:0px;
    height:0px;
    border-top: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid white;
    top: 0;
    left:-1.5rem;
}

.newsletter-container .p-4.p-xl-5 h3:after{
    position:absolute;
    content:"";
    width:0px;
    height:0px;
    border-top: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 25px solid white;
    top:-0.6rem;
    left:-3rem;
}

@media (max-width: 1199px){

    .newsletter-container .p-4.p-xl-5 h3:after{
        position:absolute;
        content:"";
        width:0px;
        height:0px;
        border-top: 15px solid transparent;
        border-right: 15px solid transparent;
        border-bottom: 15px solid transparent;
        border-left: 15px solid white;
        top: 0;
        left:-1.5rem;
    }
}

.twitter-timeline{
    width:100% !important;
}

.logo-firenze{
    width: 90px;
    height: 120px;
    background-position: center;
    background-size: cover;
    background-image: url('../img/logo_domus_bianco.png');
    background-repeat: no-repeat;
    margin: 0 auto 10px auto;
}

@media (max-width: 1199px){
    .logo-firenze{
        height: 70px;
        width: 50px;
        margin-bottom: 0px;
        margin-top: 10px;
        background-size: cover;
    }

    a .logo-1{
        font-size: calc(26px + (38 - 26) * ((100vw - 360px) / (1700 - 360)));
        line-height: calc(26px + (38 - 26) * ((100vw - 360px) / (1700 - 360)));
        font-family: "Lora", serif;
    }

    a .logo-2{
        font-size: calc(20px + (30 - 20) * ((100vw - 360px) / (1700 - 360)));
        line-height: calc(20px + (30 - 20) * ((100vw - 360px) / (1700 - 360)));
        font-family: "Lora", serif;
    }
}

.navbar-bianca .logo-firenze{
    background-image: url('../img/logo_domus.png');
}

.bg-cover{
    width: 100%;
    padding-bottom: 25%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

@media (orientation: portrait) {
    .bg-cover{
        padding-bottom: 56%;
    }
}

.prefooter{
    padding-bottom: auto;
    color: white;
    text-align: center;
}


.bg-contain{
    width: 100%;
    padding-bottom: 50%;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
}

.bordato-lati{
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.speak-container{
    display: grid;
    grid-gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    margin-top: 2rem;
}

@media (max-width: 1199px){
    .speak-container{
        grid-gap: 1rem;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

footer{
    background-color: #222;
    color:white;
}

footer a, footer a.logo{
    color:white;
}

footer a:not(.effect-5):hover{
    color: #d0d0d0;
}

.social-container a{
    color:white !important;
    font-size: 42px;
}

.social-container-contatti a{
    color: #222 !important;
    font-size: 42px;
    transition: all 0.2s;
}

.social-container-contatti a:hover{
    color: #666 !important;
}

.breadcrumb{
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.breadcrumb a{
    color: #666;
}

.breadcrumb li.active{
    color:#222;
}

@media (max-width: 700px) {
    .breadcrumb-item+.breadcrumb-item:before{
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }
    .breadcrumb-item{
        font-size: 12px !important;
        max-width: 120px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.sottotitolo{
    font-style: italic;
    color:#707070;
}
.fade-div.nascosto{
    opacity: 0;
}

.fade-div{
    position: absolute;
    bottom: 36px;
    left: 0;
    width: 100%;
    text-align: center;
    margin: 0; padding: 80px 0;
    background-image: linear-gradient(to bottom, transparent, white);
}

.show-more{
    position: absolute;
    bottom: 0;
}

.btn-blu{
    cursor: pointer;
    width:100%;
    text-transform: uppercase;
    font-weight: bold;
    display: block;
    text-align: center;
    color: white;
    font-size: 16px;
    line-height: 36px;
    height: 36px;
    transition: all 0.2s;
    background-color: var(--blu);
}

.btn-blu:hover{
    background-color: #87ddff;
    color:white;
}

.show-more-container{
    padding-bottom: 40px;
    position: relative;
    max-height: 310px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.show-more-container.aperto{
    max-height: 300000px !important;
}

.blog-container{
    display: grid;
    grid-gap: 3rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.blog-container a{
    color: #222;
    transition: all 0.2s ease-in-out;
}

.speak-container a:hover, .blog-container a:hover{
    transform: scale(0.98);
}

.risorsa-container{
    margin-bottom: 2rem;
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr) ) ;
}

.risorsa-container a{
    display: block;
    position: relative;
    max-width: 500px;
    color: #222;
    font-weight: bold;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.2s;
}

.risorsa-container a:hover{
    background-color: #f2f2f2;
}

.testo a{
    color: #666;
    transition: all 0.2s;
}

.testo a:hover{
    color: #222;
}

.newsletter-video-container{
    margin-bottom: 2rem;
    display: grid;
    grid-gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr) ) ;
}


.responsive-video, .rwd-video{
    height: 0;
    overflow: hidden;
    padding-bottom: 54%;
    padding-top: 30px;
    position: relative;
}

.responsive-video iframe, .rwd-video iframe{
    position: absolute;
    top:0;
    bottom: 0;
    left:0;
    width: 100%;
    height: 100%;
}


.spinner{
    position: relative;
}

.spinner:before{
    display:block;
    content: " ";
    position: absolute;
    top:0;
    bottom:0;
    left:0;
    right: 0;
    background-color: rgba(255,255,255, 0.7);
    z-index:998;
}

.spinner:after{
    display:block;
    content: "";
    z-index:999;
    position: absolute;
    left: 50%;
    top: 50%;
    height:60px;
    width:60px;
    margin:-30px  auto auto -30px;
    -webkit-animation: rotation .6s infinite linear;
    -moz-animation: rotation .6s infinite linear;
    -o-animation: rotation .6s infinite linear;
    animation: rotation .6s infinite linear;
    border-left:6px solid rgba(41, 109, 165, 0.25);
    border-right:6px solid rgba(41, 109, 165, 0.25);
    border-bottom:6px solid rgba(41, 109, 165, 0.25);
    border-top:6px solid rgba(64, 84, 165, 0.8);
    border-radius:100%;
}

@media (max-width: 960px){
    .spinner:after{
        position: fixed;
    }
}

@-webkit-keyframes rotation {
    from {-webkit-transform: rotate(0deg);}
    to {-webkit-transform: rotate(359deg);}
}
@-moz-keyframes rotation {
    from {-moz-transform: rotate(0deg);}
    to {-moz-transform: rotate(359deg);}
}
@-o-keyframes rotation {
    from {-o-transform: rotate(0deg);}
    to {-o-transform: rotate(359deg);}
}
@keyframes rotation {
    from {transform: rotate(0deg);}
    to {transform: rotate(359deg);}
}
.my-menu-container{
    position: fixed;
    top: 0;
    left:0;
    min-height: 100vh;
    width: 100%;
    background-color: rgba(0,0,0,0.95);
    color:white;
    z-index: -1;
    display:none;
}

a.mburger:hover{
    color: white;
    text-decoration: none;
}

#my-menu ul{
    list-style-type: none;
    text-align: center;
    padding: 0;
    margin: 0;
    margin-top: 250px;
}

#my-menu a{
    padding-top: calc(6px + (12 - 6) * ((100vw - 360px) / (1920 - 360))) !important;
    padding-bottom: calc(6px + (12 - 6) * ((100vw - 360px) / (1920 - 360))) !important;
    font-size: calc(26px + (38 - 26) * ((100vw - 360px) / (1920 - 360))) !important;
    color:white;
    text-decoration: none;
}
.a2a_kit a{
     float: none !important;
     display: inline-block;
 }

.bg-grigio{
    background-color: #f9f9f9;
    border: 1px solid #ccc;
}

.bg-grigio input{
    padding: 0.5rem;
    background-color: white;
    border: 1px solid #ccc;
}

.bg-grigio textarea{
    width: 100%;
    padding: 0.5rem;
    background-color: white;
    border: 1px solid #ccc;
    min-height: 140px;
}


@media (min-width: 1199px) {
    .padding-pulsante{
        position: relative;
        padding-bottom: 55px;
    }

    .pulsante{
        position: absolute;
        bottom: 0px;
        left:0;
        right:0;
        text-align: center;
    }
}

/* Slider */
.slick-slider
{
    position: relative;

    display: block;
    box-sizing: border-box;

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;
    -khtml-user-select: none;
    -ms-touch-action: pan-y;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.slick-list
{
    position: relative;

    display: block;
    overflow: hidden;

    margin: 0;
    padding: 0;
}
.slick-list:focus
{
    outline: none;
}
.slick-list.dragging
{
    cursor: pointer;
    cursor: hand;
}

.slick-slider .slick-track,
.slick-slider .slick-list
{
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.slick-track
{
    position: relative;
    top: 0;
    left: 0;

    display: block;
    margin-left: auto;
    margin-right: auto;
}
.slick-track:before,
.slick-track:after
{
    display: table;

    content: '';
}
.slick-track:after
{
    clear: both;
}
.slick-loading .slick-track
{
    visibility: hidden;
}

.slick-slide
{
    display: none;
    float: left;

    height: 100%;
    min-height: 1px;
}
[dir='rtl'] .slick-slide
{
    float: right;
}
.slick-slide img
{
    display: block;
}
.slick-slide.slick-loading img
{
    display: none;
}
.slick-slide.dragging img
{
    pointer-events: none;
}
.slick-initialized .slick-slide
{
    display: block;
}
.slick-loading .slick-slide
{
    visibility: hidden;
}
.slick-vertical .slick-slide
{
    display: block;

    height: auto;

    border: 1px solid transparent;
}
.slick-arrow.slick-hidden {
    display: none;
}

.slide-container{
    padding-bottom: 75%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.prev, .next{
    position: absolute;
    top:50%;
    transform: translateY(calc(-50%));
    z-index: 9999;
    color:white;
    font-size: 65px;
    transition: all 0.2s ease-in-out;
    display: inline-block;
    opacity: 0.85;
    cursor: pointer;
}

.prev:hover, .next:hover{
    opacity: 1;
}

.prev{
    left: 1%;
}

.next{
    right: 1%;
}
.responsive-map{
    height: 0;
    overflow: hidden;
    padding-bottom: 30%;
    padding-top: 30px;
    position: relative;
}

.responsive-alta{
    padding-bottom: 75%;
}

@media (max-width: 992px){
    .responsive-map{
        padding-bottom: 75%;
    }
}

.responsive-map iframe{
    position: absolute;
    top:0;
    bottom: 0;
    left:0;
    width: 100%;
    height: 100%;
}
a.lingua{
    cursor: pointer;
}
.lingue-container{
    padding: 50px 10px 10px 10px;
    left: -10px;
    background-color: white;
    position: absolute;
    top: -15px;
    border: 1px solid #ccc;
}

.lingue-container a{
    margin-top: 8px;
    display: inline-block;
}

#TA_selfserveprop958{
    height: 100% !important;
}

#TA_selfserveprop958 > div{
    width: 100% !important;
    height: 100%;
}

.widSSPData{
    height: 100% !important;
}

/*@media (max-width: 767px){
    .logo-firenze {
        background-image: url("../img/logo_domus.png");
    }
}*/

/*.octobook {
    background-color: #ededed;
    padding: 10px 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;

}
.octobook .textdate table {
    background-color: #fff;
}

.octobooksubmit > div > input {
    border: none;
}

.octobook-date label, .octobookpax label, .octobookchild label {
    color: #222222;
}*/
