 .card-webcam {
      border: none;
      border-radius: 20px;
      overflow: hidden;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .card-webcam:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }

    .card-img-wrapper {
      position: relative;
      /*height: 170px;*/
       aspect-ratio: 16 / 9;
      overflow: hidden;
    }

    .card-img-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
    }

    .card-overlay {
      position: absolute;
      bottom: 0;
      width: 100%;
      background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
      color: white;
      padding: 1rem;
    }
    .card-overlay-live {
      position: absolute;
      top: 0;
     width: 100%;
      /*background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);*/
      color: white;
      padding: 1rem;
    }

    .btn-live {
      background: #0d6efd;
      border-radius: 50px;
      padding: 0.4rem 1rem;
      font-size: 0.9rem;
    }
    .btn-live:hover {
  background-color: #dc3545; /* rosso */
  border-color: #dc3545;
  color: #fff;
}
.btn-barra {
      /*background: #0d6efd;*/
      border-radius: 50px;
      padding: 0.4rem 1rem;
      font-size: 0.9rem;
    }
    .btn-barra:hover {
  background-color: #dc3545; /* rosso */
  border-color: #dc3545;
  color: #fff;
  transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

    .section-title {
      font-weight: 600;
      margin-bottom: 1.5rem;
    }
    /*
    .video-container {
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.1);
      background: black;
    }

    .video-container {
      width: 100%;
      height: 500px;
      border: none;
    }
    .info-card {
      background: white;
      border-radius: 20px;
      padding: 1.5rem;
      box-shadow: 0 5px 20px rgba(0,0,0,0.05);
      color:black;
    }

    .weather-box {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem;
      border-radius: 15px;
      background: #f1f3f5;
    }

    .badge-live {
      background: red;
      color: white;
      padding: 0.3rem 0.6rem;
      border-radius: 50px;
      font-size: 0.8rem;
      margin-left: 10px;
    }

    .related-card {
      border-radius: 15px;
      overflow: hidden;
      transition: 0.2s;
    }

    .related-card:hover {
      transform: translateY(-5px);
    }

    .related-card img {
      height: 140px;
      object-fit: cover;
      width: 100%;
    }
    /*
    .overlay {
        z-index: 9;
        /*margin: 20px;
        background: #009938;*/
        /*
        width: 320px;
        height: auto;
        position: absolute;
        opacity: 0.7;
        margin:30px;
        float: right;
        
              }
@keyframes blinking {
                0% {
                  background-color: red;
                  
                }
                100% {
                  background-color: none;
                  
                }
 }
      .blink-me {
       
        animation: blinking 1s;
      }
    
  
  #CGrafico{
    /*position: absolute;
    top:0;
    *//*
    background-color:white;
  }
  #PerBottone{
    margin:2;
    padding:10;
  } 
  #DivGrafico{
    position: relative;
    height: auto;
    /*
    top:0;
    height: 100%;
    width: 100%;
    *//*
    z-index:300;
    background-color:white;
  }
  #BottoneGrafico{
    z-index:319;
    width: auto;
    margin:2;
  } 
  #Grafico{
    position: relative;
   
    height: auto;
    width: 100%;
    margin: 0;
   /* right: 10;
    top:100;*//*
    top:36px;
    z-index:19;
    /*background-image:url('https://www.relivecam.com/images/LogoReliveTraspM.png');*/
    /*
    background-image:url('https://www.relivecam.it/images/logoReliveGraficoSfondo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-color:white;
    opacity: 0.9;
    
  }
  
  .table td {
 padding: 3px;
}

#DatiMeteoIn{
  position: relative;
  height: auto;
  width: 280px;
  right: 10px;
  top:10px;
  z-index:20;
  background-color:white;
}

#TimeLapse{
 position: absolute;
  height: auto;
  width: auto;
  top:18px;
  right:5px;
  z-index: 3001;
  /*background-color:blue;
  background-color:white;
  opacity:50;*/
  /*
}

#selectTimelapse{
  width: 100%;
}
  

#BottoneFotoGallery{
  position: relative;
  top:0;
 /* right: 20;*/
 /*
}
.clappr-watermark[data-watermark-bottom-left]{
  top:130px;
  left:10px;
  }
  .bottone-red{
    background-color: red;
    
    font-size: .875rem;
  }   
  .bottone-red:hover{
    background-color:brown;
    
    font-size: .875rem;
  }   
   
  .boxwebcam{
      padding:0rem 0.5rem;
  } 
  #TabellaMeteo.table.tr{
    padding-left: 4px;

  }
  table {
    border-radius: 9px;
    overflow: hidden /* add this */
    /*
   }
   
button.nav-link{
    font-size:14px;
}
.chart-container {
  /*
  position: relative;
  margin: auto;*/
  /*
  height: 90vh;
  width: 90vw;
}
#canvas80999{
  
  background-image: url("/images/sfondoGrafici.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position:center;
  
}
.nav-item{

  font-size:16px;
}
.dropdown-item{
  font-size:14px;

}
#canvas80{
  
  background-image: url("/images/sfondoGrafici.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position:center;
  
}

  .clappr-watermark[data-watermark-top-left] {
    top: 0px;
    left: 10px;
  }
    
 
    #primario{
      position: relative;
      
    }

  .logoSponsor{
      position: relative;
      top:80px;
      left:10px;
      z-index:5000;
  }
 
  #chiudiTimeSlideFotoGallery{
    /*position:absolute;
    top:40px;
    right: 120px;*/
    /*
    
    color:white;
  }
#video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
   /* border-radius: 14px;*/
   /*
    overflow: hidden;
    z-index: 2;
}
#video-wrapper .clappr-player {
    position: absolute;
    inset: 0;
}
*/

/* HERO */
.meteo-hero {
    border-radius: 20px;
    background: linear-gradient(135deg, #4facfe, #00c6ff);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* CARD */
.meteo-card {
    border-radius: 18px;
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ICON */
.icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* colori extra */
.bg-purple {
    background: #e6d9ff;
}

/* progress bar */
.progress {
    height: 6px;
    border-radius: 10px;
    background: #eee;
}
  .badge-live {
      background: red;
      color: white;
      padding: 0.3rem 0.6rem;
      border-radius: 50px;
      font-size: 0.8rem;
      margin-left: 10px;
    }
     .card-perche:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
body{
  background-color: white;
}
.card-img-wrapper-timelapse {
    width: 100%;
    aspect-ratio: 16 / 9; /* o 4/3 se preferisci */
    position: relative;
}

.card-img-wrapper-timelapse > div {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

img.img-fluid {
/*max-height: 300px;*/
  object-fit: contain;
}
.containerperche {
    max-width: 1100px;
    margin: auto;
    padding: 20px 20px;
    /*font-family: 'Segoe UI', sans-serif;*/
    color: #111;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 25px;
    margin-top: 20px;
}
.cardperche {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: 0.3s;
}
.cardperche:hover {
    transform: translateY(-5px);
}
.box-responsive {
  margin-left: 20px;
  margin-right: 20px;
}
.weather-bar {
  height: 60px;
  width: 100%;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  color: #fff;
  display: flex !important; /* forza flex anche se Clappr sovrascrive */
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  z-index: 1;
  position: absolute;
  bottom: 0px;
  left: 0;
  padding: 0 10px;
  overflow: visible;
}

.weather-inline {
  display: flex !important; /* 👈 forza disposizione orizzontale */
  flex-direction: row !important; /* 👈 evita la colonna */
  align-items: center;
  justify-content: center;
  gap: 25px;
  font-size: 15px;
  white-space: nowrap;
}

.weather-inline span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: #fff;
}
@media (max-width: 600px) {
  .weather-inline {
    justify-content: center !important;
    flex-wrap: wrap;
    text-align: center;
    font-size: 12px !important;
    gap: 12px !important;
  }
   .icon {
    width: 14px !important;
    height: 14px !important;
  }
}

/*PANNELLO ADMIN UTENTE*/
.rounded-circle {
    border-radius: 50% !important;
}
.sidebar .nav-item .nav-link .img-profile, .topbar .nav-item .nav-link .img-profile {
    height: 2rem;
    width: 2rem;
}

.star-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.4rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 0 5px rgba(0,0,0,0.6);
}
.star-big {
  font-size: 2rem;
  color: #fff;
}
/*MODAL CONFIGURA ALLERTE*/
#modalConfiguraAllerte table td {
    white-space: nowrap;
}

#modalConfiguraAllerte table td:nth-child(3),
#modalConfiguraAllerte table td:nth-child(6) {
    white-space: normal;
}
@media (max-width: 576px) {
    #modalConfiguraAllerte table td,
    #modalConfiguraAllerte table th {
        padding: 0.45rem 0.35rem;
        font-size: 0.85rem;
    }
}
.disabled-btn {
    pointer-events: none;
    opacity: 0.8;
}