:root {
    --sfondo-nav: #d8d8d8;
    --text: #131414;
    --link-navbar:#131414;
    --link-navbar-hover:#f3f8fd;
    --link-footer:#f3f8fd;
    --white: #ffffff;
    --light-green: #c3ddc7;
    --dark-gray:#4e4e4ec9;
    --darker-gray:#413e3ec9;
    --secondary:#507d56;
    --black: black;
    --section-color:#ffffff;
    --back-footer:#d8d8d8;
    --back-section:#c3ddc7;
    --border-light:#9e9e9e;
    --light-gray:#9e9e9ea2;
    --lighter-gray:#f4f4f4;
    --btn:#9e9e9e;
  }
  body{
    font-family: 'Merriweather', serif;
    margin: 0;
  }
  .link-privacy{
    text-decoration: none;
    color: var(--text);
  }
  .link-privacy:hover{
    text-decoration: none;
    color: var(--light-gray);
  }
  .title-invio-telegramma{
    padding-top:3em;
  }
  .back-macchina{
    background-image: url("../img/trasporti.jpg");
    background-size: cover;
    min-height:43vh;
    background-position: center;
  }
  .back-casa-funeraria-1{
    background-image: url("../img/gallery/casa-funeraria/1.jpg");
    background-position: center center;
    background-size: cover;
    min-height:35vh;
  }
  .back-casa-funeraria-2{
    background-image: url("../img/gallery/casa-funeraria/2.jpg");
    background-position: center center;
    background-size: cover;
    min-height:35vh;
  }
  .back-casa-funeraria-3{
    background-image: url("../img/gallery/casa-funeraria/3.jpg");
    background-position: center center;
    background-size: cover;
    min-height:35vh;
  }
  .back-fiori-index{
    background-image: url("../img/floreali.jpg");
    background-size: cover;
    min-height:43vh;
    background-position: center;
  }
  .datifooter{
    font-size: calc(12px + (12 - 12) * ((100vw - 300px) / (1920 - 300)));
  }
  .back-sedia{
    background-image: url("../img/gallery/in-caso-di-decesso/5.jpg");
    background-size: cover;
    background-position: center;
  }
  .spacing-top-3{
    padding-top:3em;
  }
  .bordered-top-gray{
    border-top:4px solid var(--light-gray);
  }
  .card-sedi{
    margin:2rem;
    border-radius: 20px;
    background-color: var(--light-gray);
    border: 2px solid var(--dark-gray);
  }
  .margin{
    margin-right:0.5rem;
  }
  #map { height: 300px; }
  
  .logo-footer{
    width: 50%;;
  }
  #background-video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 20;
    z-index: -1;
  }
  .logo-sidebar{
    width:70%;
    padding:1em;
    padding-left:2em;
    
  }
  .title-video{
    font-size: calc(32px + (50 - 32) * ((100vw - 300px) / (1920 - 300)));
    font-weight: 700;
    font-style: italic;
    position:absolute;
    color:white;
    bottom: 50px;
    right: 50px;
  }
  .box{
    margin-left: 200px;
    padding: 1px 16px;
    height: 1000px;
  }
  .btn-phone-nav{
    text-decoration: none;
    border-radius: 10px;
    background-color: var(--btn);
    color:var(--white);
    padding:8px 10px;
    border:1px solid var(--dark-green);
  }
  .btn-phone-nav:hover{
    text-decoration: none;
    border-radius: 10px;
    background-color: var(--white);
    border:1px solid var(--light-gray);
    color:var(--light-gray);
    padding:8px 10px;
  }
  
/*-------------------sidebar start---------------------*/
.sidebar {

    border-right: 5px solid var(--gold);
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 999999999999;
    top: 0;
    left: 0;
    background-color: var(--lighter-gray);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 1.3rem;
    color: var(--link-navbar);
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #f1f1f1;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 3rem;
    margin-left: 50px;
}

.openbtn {
    font-size: 20px;
    cursor: pointer;
    background-color: #111;
    color: white;
    padding: 10px 15px;
    border: none;
}

.openbtn:hover {
    background-color: #444;
}

#main {
    transition: margin-left .5s;
    padding: 16px;
}
/*--------------------sidebar end----------------------*/
  .title-arte-funeraria{
    font-family: 'Merriweather', serif;
    font-weight: 600;
  }
  .text-arte-funeraria{
    padding:3em;
    
    font-family: 'Merriweather', serif;
  }
.p-arte-funeraria{
    padding-top:1em;
    font-family: 'Merriweather', serif;
}
.subtitle{
    font-size:18px;
}
.back-gray{
    background-color: var(--lighter-gray);
}
.header-arte-funeraria{
    min-height:55vh;
    background-image: url("../img/arte-funeraria.jpg?v=0.1");  
    background-size: cover;
    background-position: bottom bottom;  
    background-repeat: no-repeat;
    opacity: 60%;
}
.header-in-caso-di-decesso{
    min-height:55vh;
    background-image: url("../img/decesso.jpg");  
    background-size: cover;
    background-position: top center;  
    background-repeat: no-repeat;
    
}
.header-casa-funeraria {
    min-height:65vh;
    background-image: url("../img/gallery/casa-funeraria.jpg");  
    background-size: cover;
    background-position: center 60%;  
    background-repeat: no-repeat;
}
.header-composizioni-floreali{
    min-height:55vh;
    background-image: url("../img/composizioni.jpg");  
    background-size: cover;
    background-position: center center;  
    background-repeat: no-repeat;
}
.back-arte-funeraria-1{
    min-height:45vh;
    background-image: url("../img/gallery/arte-funeraria/1.jpg");  
    background-size: cover;
    background-position: center center;  
    background-repeat: no-repeat;
}
.back-arte-funeraria-2{
    min-height:45vh;
    background-image: url("../img/gallery/arte-funeraria/2.jpg");  
    background-size: cover;
    background-position: center center;  
    background-repeat: no-repeat;
}
.text-page{
    padding:1em;
}
.title{
    font-weight:500;
    padding-left:0.4em;
    padding-top:1em;
    padding-bottom:1em;
}
.back-contatti{
    background-image: url("../img/contatti.jpg");  
    background-size: cover;
    background-position: bottom left;  
    clip-path: ellipse(350px 400px at 70% 45%);
    background-repeat: no-repeat;
    min-height: 25vh;  
}
.back-contatti-page{
    background-image: url("../img/back-contatti-page.svg");  
    background-size: cover;
    background-position: bottom left;  
    
    background-repeat: no-repeat;
    min-height: 60vh;  
}

.box-contatti{
    position: relative;
    z-index:1;
    
}
.footer{
    border-top:3px solid var(--border-light);
    font-family: 'Merriweather', serif;
    background-color: var(--back-footer);
    color: var(--black);
    
}

.link-footer{
    margin-top:1rem;
    color:var(--black);
    text-decoration:none;
}
.h3-footer{
    padding-top:1.5em;
    font-weight: 600;
}
.container-img-footer{
    padding:1em;
    
}
.logo-home{
    position:absolute;
    top:60%;
    right:0;
}
.logo-footer{
    padding:1em;
}
.subtitle-h2{
    font-family: 'Merriweather', serif;
    font-weight: 700;
    padding-left:0.5em;
    padding-top:1em;
    padding-bottom:1em;
    color:var(--link-navbar);
}
.text-home{
    padding-left:1em;
}
.spacing-before{
    padding-top:24.5em;
}
.nopadding{
    padding:0px;
}
.spacing-section{
    padding-top:5em;
    padding-bottom:1.5em;
}
.flex-centered{
    display: flex;
    justify-content: center;
}
.vertical-center{
    align-items: center;
}
.navbar{
    padding:0;
    border-bottom:2px solid var(--border-light);
    background-color: var(--sfondo-nav);
}
.logo-nav{
    font-weight: 600;
}
.back{
    background-color: var(--sfondo-nav);
}
.btn{
    background-color: var(--btn);
    color:var(--white);
    padding:0.5em;
    border:1px solid var(--light-gray);
    margin-bottom:0.5rem; 
}
.btn:hover{
    background-color: var(--white);
    border:1px solid var(--light-gray);
    color:var(--light-gray);
    padding:0.5em;
    margin-bottom:0.5rem;
}
.light-gray{
    background-color:var(--light-gray);
}
.btn-phone-nav{
    
    float: right;
}
.nav-link{
    padding-top:1em;
    padding-bottom:1em;
    font-family: 'Merriweather', serif;
    margin-right:1.5em;
    color:var(--link-navbar);
}
.nav-link:hover{
    text-decoration:none;
    color:var(--white);
    background-color: var(--dark-gray);
}
.section-servizi{
    background-color: var(--white);
}

#servizih24{
    background-color: var(--white);
    border-bottom: 4px solid var(--dark-green)
}
.text{
    font-family: 'Merriweather', serif;
    color:var(--text);
}
.h3-with-img{
    
    font-weight: 600;
    font-family: 'Merriweather', serif;
    padding: 1.7em;
    padding-bottom:1em;
    color:var(--text);
}
.text-with-img{
    font-family: 'Merriweather', serif;
    padding: 3em;
    
    
    color:var(--text);
}

.back-white{
    background-color: var(--section-color);
}
.back-black{
    background-color: #131414;
}

.divider{
    min-height:4px;
    background-color: var(--border-light);
}
.divider-bottom{
    border-bottom: 4px solid var(--secondary);
}
.bordered-top{
    border-top: 4px solid var(--dark-green);
}
.bordered-bottom{
    border-bottom: 4px solid var(--dark-green);
}
.title-contattaci{
    font-family: 'Merriweather', serif;
    font-weight: 700;
}
.text-hover-image{
    font-family: 'Merriweather', serif;
    border-radius: 5%;
    padding:4em;
    opacity: 90%;
}
.link-telegramma{
    padding: 8px 10px;
    border-radius:10px;
    color:var(--light-green);
    background-color: var(--dark-green);
    border: 1px solid var(--dark-green);
    text-decoration: none;
}
.link-telegramma:hover{
    padding: 8px 10px;
    border-radius:10px;
    color:var(--dark-green);
    background-color: var(--light-green);
    border: 1px solid var(--dark-green);
    text-decoration: none;
}
.back-fiori{
    padding:1em;
    clip-path: ellipse(460px 400px at 60% 40%);
    background-image: url("../img/fiori.jpg");
    min-height:40vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left center;
   
}
.text-hover{
    position: relative;
    z-index: 1111111111;
}
.first-section{
    padding:2em;
}
.servizi{
    padding-top:2em;
    padding:2em;
}
/*------------------------ Style Necrologio Pubblico--------------------------*/

.row-necrologi {
    margin-bottom: 1rem; 
}
.nomeCognomeNecrologio { 
    color:var(--blue);
    white-space: pre;
}
.link {
    text-decoration: none;
    color: var(--dark-green)
}
.link:hover {
    text-decoration: none;
    color: var(--dark-green)
}
.testo-necrologio-index{
    padding:1em;
}
.spacing-info{
    padding:2em;
}
.container-azienda{
    padding-left:1em;
}
.container-sedi{
    padding-top:3em;
}
.container-button{
    padding-top:1em;
}
.link-maps{
    color: var(--dark-gray);
    text-decoration: none;
    font-size: calc(11px + (16 - 11) * ((100vw - 300px) / (1920 - 300)));
}
.link-maps:hover{
    color: var(--light-gray);
    text-decoration: none;
    font-size: calc(11px + (16 - 11) * ((100vw - 300px) / (1920 - 300)));
}
/*--------------------------------*/


@media only screen and (max-width:2685px) {
    .container-button{
        padding-top:1em;
    }
    .link-maps{
        color: var(--dark-gray);
        text-decoration: none;
        font-size: calc(11px + (16 - 11) * ((100vw - 300px) / (1920 - 300)));
    }
    .link-maps:hover{
        color: var(--light-gray);
        text-decoration: none;
        font-size: calc(11px + (16 - 11) * ((100vw - 300px) / (1920 - 300)));
    }
    
    .video{
        min-height:100vh;
    }
    .nav-link-sidebar{
        font-size: calc(21px + (25 - 21) * ((100vw - 300px) / (1920 - 300)));
    }
    .back-fiori{
        padding:1em;
        clip-path: ellipse(580px 580px at 30% 20%);
        background-image: url("../img/fiori.jpg");
        min-height:40vh;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: left center;
       
    }
    .back-contatti{
        background-image: url("../img/contatti.jpg");
        background-size: cover;
        background-position: 50% 80%;
        clip-path: ellipse(450px 420px at 73% 45%);
        background-repeat: no-repeat;
        min-height: 25vh;
    }
    .container-img-footer{
        padding:2em;
    }
    .contatti{
        padding-bottom:3em;
    }
    
}

@media only screen and (max-width:1920px) {
    
    .container-img-footer{
        padding:2em;
    }
    .contatti{
        padding-bottom:2em;
    }
    .container-button{
        padding-top:1em;
    }
    .link-maps{
        color: var(--dark-gray);
        text-decoration: none;
        font-size: calc(11px + (16 - 11) * ((100vw - 300px) / (1920 - 300)));
    }
    .link-maps:hover{
        color: var(--light-gray);
        text-decoration: none;
        font-size: calc(11px + (16 - 11) * ((100vw - 300px) / (1920 - 300)));
    }
    
    .back-contatti{
        background-image: url("../img/contatti.jpg");  
        background-size: cover;
        background-position: 50% 80%;  
        clip-path: ellipse(350px 400px at 70% 45%);
        background-repeat: no-repeat;
        min-height: 30vh;  
    }
    .back-fiori{
        padding:1em;
        clip-path: ellipse(460px 400px at 20% 30%);
        background-image: url("../img/fiori.jpg");
        min-height:50vh;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: left center;
       
    }
    .container-azienda{
        padding-left:1em;
    }
    .text-footer{
        font-size: calc(11px + (16 - 11) * ((100vw - 300px) / (1920 - 300)));
        
    }
    .label-sedi{
        font-weight: 600;
        font-size: calc(13px + (16 - 13) * ((100vw - 300px) / (1920 - 300)));
      }
    

}
@media only screen and (max-width:1440px) {
    .first-section{
        padding:1em;
    }
    .back-fiori{
        padding:1em;
        clip-path: ellipse(360px 380px at 10% 20%);
        background-image: url("../img/fiori.jpg");
        min-height:50vh;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 55% 0%;
       
    }
}
@media only screen and (max-width:1333px) {
    .first-section{
        padding:1em;
    }
    .back-fiori{
        padding:1em;
        clip-path: ellipse(360px 380px at 10% 20%);
        background-image: url("../img/fiori.jpg");
        min-height:50vh;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 55% 0%;
       
    }
    .subtitle-h2{
        padding-top:0.3em;
        padding-bottom:0.3em;
    }

    .label-sedi{
        font-size: calc(11px + (13 - 11) * ((100vw - 300px) / (1920 - 300)));
    }
    .logo-footer{
        width: 80%;
    }
    .back-contatti{
        min-height:25vh;
    }
    .nav-link{
        font-size: calc(11px + (14 - 11) * ((100vw - 300px) / (1920 - 300)));
    }
}
@media only screen and (max-width:1292px) {
    
    .video{
        min-height: 100vh;
    }
    .title-video{
        bottom:20px;
    }


}
/*Ipad Pro*/

@media only screen and (max-width:1082px) {
    .btn-phone-nav{
        font-size: calc(12px + (13 - 12) * ((100vw - 300px) / (1920 - 300)));
    }
    .btn{
        font-size: calc(12px + (13 - 12) * ((100vw - 300px) / (1920 - 300)));
    }
    .text-page{
        font-size: calc(12px + (13 - 12) * ((100vw - 300px) / (1920 - 300)));
    }
    .text-home{
        font-size: calc(11px + (13 - 11) * ((100vw - 300px) / (1920 - 300)));
    }
    .subtitle-h2{
        padding-top:1em;
        font-size: calc(22px + (24 - 22) * ((100vw - 300px) / (1920 - 300)));
    }
    .contatti{
        padding-bottom:2em;
    }
    .back-fiori{
        padding:1em;
        clip-path: ellipse(420px 460px at 0% 30%);
        background-image: url("../img/fiori.jpg");
        min-height:50vh;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: left center;
       
    }
    .logo-nav{
        font-size: calc(12px + (13 - 12) * ((100vw - 300px) / (1920 - 300)));
    }
    .nav-link{
        font-size: calc(9px + (12 - 9) * ((100vw - 300px) / (1920 - 300)));
    }
    .header-arte-funeraria{
        min-height:35vh;
    }
    .back-contatti{
        clip-path:unset;
        min-height: 35vh;
    }
    .video{
        padding-top: 12em;
    }
    .title-video{
        bottom:20px;
    }
}
@media only screen and (max-width:920px) {
    .back-fiori{     
        clip-path: unset;
        min-height:35vh;
    }
    .video{
        min-height:100vh;
        
    }
    .title-video{
        bottom:100px;
    }
}
@media only screen and (max-width:768px) {
    .header-casa-funeraria{
        min-height:35vh;
    }
    .header-in-caso-di-decesso{
        min-height:35vh;
        background-position: top;
    }
    .logo-footer{
        padding-left:0;
    }
    .container-img-footer{
        padding:1em;
        padding-left:2em;
    }
    .logo-nav{
        font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    }
    .back-fiori{
        clip-path:unset;
    }
    .container-azienda{
       padding-left:0;
    }
    .container-sedi{
        padding-top:1em;
        padding-left:1em;
        font-size: calc(11px + (16 - 11) * ((100vw - 300px) / (1920 - 300)));
    }
    .text-footer{
        font-size: calc(11px + (16 - 11) * ((100vw - 300px) / (1920 - 300)));
        padding-left:1.5em;
    }
    .label-sedi{
        font-size: calc(11px + (16 - 11) * ((100vw - 300px) / (1920 - 300)));
      }
    .btn-phone-nav{
        margin-bottom:0.5rem;
        margin-top:0.5rem;
    }
    .logo-sidebar{
        width: 50%;
        padding:2em;
    }
    .spacing-top-3{
        padding:0em;
    }
    .back-contatti{
        background-size: 100%;
        background-position: bottom left;  
        background-repeat: no-repeat;
        min-height: 20vh; 
        clip-path: ellipse(220px 260px at 100% 80%); 
    }
    
    .video{
        min-height:100vh;
        padding-top: 0;
    }
    .logo-footer{
        width:80%;
    }
    
}

@media only screen and (max-width:767px) {
    
}

@media only screen and (max-width:585px) {
    .margin{
        margin-right: 0.1rem;
    }
    .btn-phone-nav{
        font-size: calc(12px + (15 - 12) * ((100vw - 300px) / (1920 - 300)));
    }
    .back-contatti-2{
       display: none; 
    }
    .video{
       padding:0;
       min-height:100vh;
    }
    .title-video{
        bottom:20px;
    }
}

@media only screen and (max-width:450px) {
    
    .back-fiori-index{
        min-height: 30vh;
    }
    .back-macchina{
        min-height: 30vh;
        background-position: 50% 80%;
    }
    .btn{
        font-size: calc(12px + (15 - 12) * ((100vw - 300px) / (1920 - 300)));
    }
    .logo-nav{
        font-size: calc(11px + (12 - 11) * ((100vw - 300px) / (1920 - 300)));
    }
    .logo-sidebar{
        width: 70%;
        padding:2em;
    }
    .text-footer{
        font-size: calc(12px + (16 - 12) * ((100vw - 300px) / (1920 - 300)));
        padding-left:1.5em;
    }
    .label-sedi{
        font-size: calc(10px + (14 - 10) * ((100vw - 300px) / (1920 - 300)));
      }
    .text-footer-contatti{
        
        font-size: calc(12px + (16 - 12) * ((100vw - 300px) / (1920 - 300)));
    }
    #map { height: 250px; }
    .sidebar a{
        font-size: calc(16px + (18 - 16) * ((100vw - 300px) / (1920 - 300)));
    }
    #contatti{
        padding-bottom:2em;
    }
    .h3-footer{
        padding:0;
    }
    .header-casa-funeraria{
        min-height:30vh;
    }
    .title-video{
        bottom:2px;
    }
    .servizi{
        padding:1em;
    }
    .back-fiori{
        min-height: 35vh;
    }
    
    .title{
        font-size: calc(20px + (24 - 20) * ((100vw - 300px) / (1920 - 300))); 
        font-weight: 600;
    }
    .subtitle-h2{
        font-size: calc(21px + (25 - 21) * ((100vw - 300px) / (1920 - 300)));
        font-weight: 600; 
    }
    .text-page{
        font-size: calc(14px + (16 - 14) * ((100vw - 300px) / (1920 - 300)));
    }
    .subtitle-h2{
        padding-top:1em;
    }
    .spacing-top-3{
        padding:0em;
    }
    .back-contatti{
        min-height:25vh;
    }
    
}
@media only screen and (max-width:390px){
    .header-arte-funeraria{
        min-height:35vh;
        background-position: bottom center;
    }
    .sidebar a{
        font-size: calc(14px + (16 - 14) * ((100vw - 300px) / (1920 - 300)));
    }
    
}
@media only screen and (max-width:375px) {
    .title-video{
        bottom:0px;
    }
    .servizi{
        padding:1em;
    }
    .back-fiori{
        min-height: 35vh;
    }
    .video{
        min-height:100vh;
    }
    .header-casa-funeraria{
        min-height:30vh;
    }
    .header-arte-funeraria{
        min-height:30vh;
        background-position: center 0%;
    }
    .title{
        font-size: calc(20px + (24 - 20) * ((100vw - 300px) / (1920 - 300))); 
        font-weight: 600;
    }
    .subtitle-h2{
        font-size: calc(18px + (20 - 18) * ((100vw - 300px) / (1920 - 300))); 
    }
    .text-page{
        font-size: calc(14px + (16 - 14) * ((100vw - 300px) / (1920 - 300)));
    }
    .subtitle-h2{
        padding-top:1em;
    }
    .spacing-top-3{
        padding:0em;
    }
    .back-contatti{
        min-height:25vh;
    }

}
@media only screen and (max-width:375px){
    .title-video{
        bottom:30px;
    }
}