/* Reset base */
* {
  font-family: Arial, Helvetica, sans-serif;
}

body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

html{
  scroll-behavior: smooth;
}

/* Sfondo */
.sfondo1 {
  position: absolute;
  top: -60%;
  width: 100%;
  height: auto;
  top: -6 0% !important;
  z-index: -1;
  filter: brightness(0.8);
}

.sfondo2 {
  position: absolute;
  top: -45%;
  width: 100%;
  height: auto;
  top: -6 0% !important;
  z-index: -1;
}

/* Navbar */
#mainNav {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

#mainNav .dropdown-menu{
  background-color: rgba(0, 0, 0, 0.7); /* sfondo semitrasparente */
  backdrop-filter: blur(5px); /* sfocatura elegante */
  border: none;
  border-radius: 10px;
}

#mainNav .nav-link {
  font-weight: bold !important;
  font-size:20px ;
  color: #fff;
  transition: color 0.2s ease, transform 0.2s ease;
}

#mainNav .nav-link:hover {
  transform: scale(1.1);
  color: #ffffffbb;
}

#mainNavbar.scrolled {
  background-color: white !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar personalizzata */
.custom-navbar {
  transition: all 0.3s ease;
}

.custom-navbar.scrolled {
  background-color: #fff !important;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.custom-navbar .nav-link {
  color: #fff;
  transition: color 0.3s ease;
}

.custom-navbar.scrolled .nav-link {
  color: #00673e !important;
}

.custom-navbar.scrolled .nav-link:hover {
  color: #009432 !important;
  transform: scale(1.1);
}

.custom-navbar.scrolled .dropdownItem {
  color: #009432 !important;
}

#logo {
  transition: all 0.3s ease;
}

#logo.small {
  width: 100px;
}

/* Testi */
.testoIcontainer {
  width: 30%;
  position: absolute;
  top: 30%;
  left: 20%;
  display: flex;
  justify-content: center;
}

.testoIcontainer .testoI {
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  text-align: left;
}

.testo1Container {
  position: absolute;
  justify-content: center;
  top: 105%;
  left: 15%;
  z-index: 4;
}

.testo1Container .testo1 {
  color: #2f3640;
  font-size: 30px;
  width: 30%;
}

/* Bottone */
.Rm {
  border-radius: 20px;
  border: #C4E538 2px solid;
  color: #C4E538;
  height: 40px;
  width: 10%;
  background-color: #fff;
  transition: all 0.3s ease-in;
}

.Rm:hover,
.Rm:focus {
  box-shadow: 0 0 15px #C4E538;
  background-color: #C4E538;
  color: #fff;
  transform: scale(1.1);
}

/* Immagine decorativa */
.img1 {
  z-index: 5;
  position: absolute;
  top: 85%;
  right: 0%;
}

.img1:hover .image{
  cursor: pointer;
  transform: scale(1.05);
}

/* Immagine responsive */
.image {
  object-fit: cover;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  transition: all ease-in 0.3s;
}

/* Sezione servizi */
.servizi-container {
  position: relative;
  padding-top: 70%;
  z-index: 1 !important;
}

/* Paragrafi */
.containerT p {
  font-size: 20px;
}

/* Wrapper immagini con effetto */
.img-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 0;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  display: block;
}

.img-wrapper:hover img {
  filter: brightness(0.6);
  cursor: pointer;
}

.overlay-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.img-wrapper:hover .overlay-button {
  opacity: 1;
}

/* Bordi angolari */
.img-right-edge img {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.img-left-edge img {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Animazione scopri-servizi */
.scopri-servizi {
  animation: fadeInUp 1s ease;
  padding-bottom: 5%;
}

.title-scopri {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.linea-decorativa {
  width: 100px;
  height: 4px;
  background: linear-gradient(90deg, #C4E538, #009432) !important;
  border-radius: 2px;
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Rimozione padding tra colonne Bootstrap */
.gx-0 {
  --bs-gutter-x: 0;
}

/* No select */
.no-select {
  user-select: none;
}

/* Media queries */
@media screen and (max-width: 1440px) {

  .sfondo1{
    top: -60%;
  }

  .img1 {
    top: 100%;
    right: 0%;
  }

  .testo1Container {
    top: 125%;
    left: 15%;
  }

  .servizi-container {
    position: absolute;
    top: 190% !important;
  }

  .idrosemina-section {
    position: relative;
    padding-top: 5%;
    padding-bottom: 5%;
  }

  .certificazioni-section{
    padding-top: 5%;
    padding-bottom: 5%;
  }
  
  .cert-container{
    position: relative;
    width: 100%;
  }
  
  .col-3 h2{
    color: #333;
    text-align: left;
    padding-bottom: 0%;
  }
  
  .lista-cert{
    list-style: none;
    text-align: left;
    padding: 0%;
  }
  
  .lista-cert li{
    color: #555;
  }
  
  .lista-cert li a{
    text-decoration: none;
    font-weight: bold;
    color: #333;
  }
  
  .lista-cert li a:hover{
    color: #9a9a9a;
  }
  
  .cert-descrizione{
    font-size: larger;
  }
}

.idrosemina-section{
  position: relative;
  padding-top: 5%;
  padding-bottom: 5%;
}

#idroFoto{
  position: relative;
  width: 60%;
  height: 39rem;
  padding-top: 5%;
  overflow: hidden;
}

.carousel-item:hover img{
  filter: brightness(0.6);
  border-radius: 10px;
  cursor: pointer;
}

.carousel-item img{
  border-radius: 10px;
  height: 30rem;
  object-fit: cover;
  transition: all 0.3s ease;
}

.carousel-caption-custom {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.carousel-item:hover .carousel-caption-custom {
  opacity: 1;
}

.rm2 {
  border-radius: 20px;
  border: #fff 2px solid;
  color: #fff;
  height: 40px;
  width: 110%;
  background-color: transparent;
  transition: all 0.3s ease-in;
}

.rm2:hover,
.rm2:focus {
  box-shadow: 0 0 15px #fff;
  background-color: #fff;
  color: #333;
  transform: scale(1.1);
}

.descrizione-idrosemina {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  color: #333;
  text-align: left;
  padding-top: 3rem;
  padding-bottom: 0;
}

.descrizione-idrosemina p {
  font-weight: 500;
  margin-bottom: 20px;
}

.lista-servizi {
  list-style: none;
  padding: 0;
}

.lista-servizi li {
  margin-bottom: 10px;
  padding-left: 1em;
  position: relative;
}

.lista-servizi li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #00673e;
  font-weight: bold;
}

.certificazioni-section{
  padding-top: 5%;
  padding-bottom: 5%;
  width: 100%;
}

.row{
  width: 100%;
}

.cert-container{
  position: relative;
  width: 100%;
}

.col-3 h2{
  color: #333;
  text-align: left;
  padding-bottom: 0%;
}

.lista-cert{
  list-style: none;
  text-align: left;
  padding: 0%;
}

.lista-cert li{
  color: #555;
}

.lista-cert li a{
  text-decoration: none;
  font-weight: bold;
  color: #333;
}

.lista-cert li a:hover{
  color: #9a9a9a;
}

.cert-descrizione{
  font-size: larger;
}

.container-prev{
  position: relative;
  top: 5rem;
}

.prev-sub{
  background-color: #00673e !important;
  border: solid 3px #00673e !important;
}

.form-control:focus{
  border: 3px solid #00673e !important;
  box-shadow: 0px 0px 2px #00673e !important;
}

.prev-sub:hover{
  background-color: #00673e !important;
  filter: brightness(0.8) !important;
  border: solid 3px #00673e !important;
}

.contatti{
  position: relative;
  padding-top: 40%;
}

.servizi-btn {
  padding: 20px;
  margin: 10px;
  background-color: #f8f9fa;
  border-radius: 50%;
  box-shadow: #555 0 0 8px 0.1px;
  transition: all 0.2s ease-in;
  width: 200px;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.servizi-btn p{
  color: #00673e;
  text-align: center;
  font-weight: bold;
}

.servizi-btn img{
 padding-top: 5px; 
}

.servizi-btn:hover{
  cursor: pointer;
  transform: scale(1.1);
}

.container{
  width: 100%;
}

.footer {
  background-color: #00673e;
  color: #fff;
  padding: 20px 0;
  width: 100%;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
}

.footer h5 {
  color: #f8f9fa;
  font-weight: 600;
  margin-bottom: 15px;
  border-bottom: 2px solid #7fbca0;
  padding-bottom: 8px;
  display: inline-block;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a,
.contact-info a {
  color: #e9ecef;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover,
.contact-info a:hover {
  color: #7fbca0;
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #fff;
  font-size: 20px;
  transition: all 0.3s;
  background-color: rgba(255,255,255,0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.social-icons a:hover {
  color: #00673e;
  background-color: #f8f9fa;
  transform: translateY(-3px);
}

.copyright {
  background-color: #005230;
  padding: 10px 0;
  text-align: center;
  font-size: 14px;
  color: #e9ecef;
}

.copyright p {
  margin-bottom: 2px;
}

.footer-col {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-info ion-icon {
  font-size: 18px;
  margin-right: 8px;
  vertical-align: middle;
}

.contact-section {
  padding: 80px 0 40px;
}
.map-container {
  height: 100%; /* Altezza adattata per occupare lo spazio complessivo */
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}
.contact-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 25px;
  height: 100%;
  transition: transform 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-5px);
}
.contact-icon {
  font-size: 2.5rem;
  color: #00673e;
  margin-bottom: 15px;
}
.hours-table {
  width: 100%;
}
.hours-table td {
  padding: 8px 5px;
  border-bottom: 1px solid #eee;
}
.hours-table tr:last-child td {
  border-bottom: none;
}
.title-contatti {
  color: #333;
  font-weight: 600;
}
.subtitle-contatti {
  font-size: 1.25rem;
  color: #333;
  margin-bottom: 20px;
}

.contact-form {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 30px;
}
.form-submit-btn {
  background-color: #00673e;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.form-submit-btn:hover {
  background-color: #005230;
  transform: translateY(-2px);
}
.contact-info-container {
  margin-bottom: 40px;
}
.info-cards-container {
  height: 100%;
}

.hero-idrosemina {
  background: url('/api/placeholder/1200/500') center/cover no-repeat !important;
  position: relative !important;
  padding: 150px 0 80px !important;
  margin-top: 0 !important;
  color: white !important;
  text-align: center !important;
  z-index: 1 !important;
}

.hero-idrosemina::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, rgba(20,83,45,0.8) 0%, rgba(40,167,69,0.4) 100%) !important;
  z-index: -1 !important;
}

.section-idrosemina {
  padding: 80px 0 !important;
}

.idrosemina-card {
  border-radius: 10px !important;
  overflow: hidden !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  transition: transform 0.3s ease !important;
  height: 100% !important;
}

.idrosemina-card:hover {
  transform: translateY(-10px) !important;
}

.idrosemina-icon {
  font-size: 3rem !important;
  color: #28a745 !important;
  margin-bottom: 15px !important;
}

.img-fluid {
  width: 100% !important;
  height: auto !important;
}

.carousel-item {
  height: 400px !important;
  position: relative !important;
}

.carousel-item img {
  height: 400px !important;
  object-fit: cover !important;
}

.carousel-caption {
  position: absolute !important;
  bottom: 20px !important;
  left: 0 !important;
  right: 0 !important;
  max-width: 80% !important;
  margin: 0 auto !important;
  background: linear-gradient(90deg, rgba(40,167,69,0.85) 0%, rgba(25,135,84,0.85) 100%) !important;
  padding: 15px !important;
  border-radius: 5px !important;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.container-prev {
  max-width: 800px !important;
  margin: 0 auto !important;
}

.vantaggi-box {
  border-left: 4px solid #28a745 !important;
  padding-left: 20px !important;
}

.badge-idrosemina {
  background-color: #28a745 !important;
  color: white !important;
  padding: 8px 15px !important;
  font-size: 1rem !important;
  border-radius: 20px !important;
  display: inline-block !important;
  margin-bottom: 10px !important;
}

.hero-storia {
  background: url('/api/placeholder/1200/500') center/cover no-repeat !important;
  position: relative !important;
  padding: 150px 0 80px !important;
  margin-top: 0 !important;
  color: white !important;
  text-align: center !important;
  z-index: 1 !important;
}

.hero-storia::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(90deg, rgba(20,83,45,0.8) 0%, rgba(40,167,69,0.4) 100%) !important;
  z-index: -1 !important;
}

.section-storia {
  padding: 80px 0 !important;
}

.storia-timeline {
  position: relative !important;
  padding: 30px 0 !important;
}

.storia-timeline::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 3px !important;
  background-color: #28a745 !important;
  transform: translateX(-50%) !important;
}

.timeline-item {
  margin-bottom: 50px !important;
  position: relative !important;
}

.timeline-content {
  background-color: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  padding: 30px !important;
  position: relative !important;
}

.timeline-date {
  display: inline-block !important;
  padding: 10px 20px !important;
  background-color: #28a745 !important;
  color: white !important;
  border-radius: 20px !important;
  font-weight: bold !important;
  margin-bottom: 15px !important;
}

.timeline-image {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  margin-bottom: 20px !important;
}

.quote-box {
  background-color: rgba(40,167,69,0.1) !important;
  border-left: 4px solid #28a745 !important;
  padding: 20px !important;
  margin: 30px 0 !important;
  font-style: italic !important;
  border-radius: 0 8px 8px 0 !important;
}

.team-member {
  margin-bottom: 30px !important;
  transition: transform 0.3s ease !important;
}

.team-member:hover {
  transform: translateY(-10px) !important;
}

.team-member img {
  width: 100% !important;
  height: 300px !important;
  object-fit: cover !important;
  border-radius: 10px !important;
  margin-bottom: 15px !important;
  object-position: center 20% !important;
}

.team-member h4 {
  color: #28a745 !important;
  margin-bottom: 5px !important;
}

.value-card {
  background-color: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
  padding: 30px !important;
  margin-bottom: 30px !important;
  height: 100% !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.value-card:hover {
  transform: translateY(-10px) !important;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15) !important;
}

.value-icon {
  font-size: 3rem !important;
  color: #28a745 !important;
  margin-bottom: 15px !important;
}

.storia-badge {
  background-color: #28a745 !important;
  color: white !important;
  padding: 8px 15px !important;
  font-size: 1rem !important;
  border-radius: 20px !important;
  display: inline-block !important;
  margin-bottom: 10px !important;
}

.gallery-img {
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  margin-bottom: 15px !important;
  transition: transform 0.3s ease !important;
  cursor: pointer !important;
}

.gallery-img:hover {
  transform: scale(1.05) !important;
}

/* CORREZIONI PRIORITARIE - Usa !important per forzare le modifiche */

/* Reset generale mobile */
@media (max-width: 992px) {
  body {
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* FORZA il centraggio di tutti i container principali */
  .container, .container-fluid {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Fix navbar su dispositivi mobili */
  #mainNav .navbar-collapse {
    background-color: #fff !important;
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
  }
  
  /* Logo più piccolo su mobile */
  #logo {
    width: 200px !important;
  }
  
  /* Testo intro - Alzato un po' */
  .testoIcontainer {
    width: 90% !important;
    top: 40% !important; /* Alzato da 50% a 40% */
    left: 5% !important;
    right: 5% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    position: absolute !important;
  }
  
  .testoIcontainer .testoI {
    font-size: 22px !important;
    text-align: center !important;
  }
  
  /* Sistemazione elementi principali - Abbassato molto */
  .testo1Container {
    position: relative !important;
    width: 90% !important;
    left: 5% !important;
    right: 5% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 800px !important; /* Abbassato molto da 500px a 800px */
    z-index: 10 !important;
  }
  
  .testo1Container .testo1 {
    width: 100% !important;
    text-align: center !important;
  }
  
  /* Fix immagine decorativa */
  .img1 {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center !important;
    margin: 30px auto 0 auto !important;
  }
  
  .img1 img {
    width: 90% !important;
    height: auto !important;
    max-height: 400px !important;
    margin: 0 auto !important;
    display: block !important;
  }
  
  /* Fix container servizi */
  .servizi-container {
    position: relative !important;
    padding: 20px 5% !important;
    margin: 30px auto 0 auto !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
  
  /* Fix pulsante Read More */
  .Rm {
    width: auto !important;
    padding: 18px 25px !important; /* Aumentato ancora di più il padding */
    margin: 0 auto !important;
    display: flex !important; /* Cambiato a flex per centrare meglio */
    align-items: center !important; /* Centra verticalmente */
    justify-content: center !important; /* Centra orizzontalmente */
    text-align: center !important;
    min-height: 50px !important; /* Altezza minima per dare spazio */
    box-sizing: border-box !important;
  }
  
  /* FORZA tutti gli elementi a non uscire dal viewport */
}

@media (max-width: 768px) {
  /* Layout per smartphone - FORZA tutto al centro */
  
  /* Sfondo principale */
  .sfondo1 {
    top: -10% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 70vh !important;
    object-fit: cover !important;
    margin: 0 !important;
  }
  
  .sfondo1 img {
    width: 100% !important;
    height: 70vh !important;
    object-fit: cover !important;
    margin: 0 !important;
  }

  .sfondo2 {
    top: -40% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 70vh !important;
    object-fit: cover !important;
    margin: 0 !important;
  }
  
  .sfondo2 img {
    width: 100% !important;
    height: 70vh !important;
    object-fit: cover !important;
    margin: 0 !important;
  }
  
  /* Testo intro smartphone - Alzato un po' */
  .testoIcontainer {
    width: 85% !important;
    top: 35% !important; /* Alzato da 45% a 35% */
    left: 7.5% !important;
    right: 7.5% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 10px !important;
    text-align: center !important;
    position: absolute !important;
  }
  
  /* Sistemazione carousels idrosemina */
  .idrosemina-section {
    padding: 0 5% !important;
    margin: 0 auto !important;
  }
  
  .idrosemina-section .carousel {
    max-height: 300px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }
  
  .idrosemina-section .carousel-item {
    height: 300px !important;
  }
  
  /* Bottoni servizi più piccoli */
  .servizi-btn {
    width: 150px !important;
    height: 150px !important;
    margin: 10px auto !important;
    display: block !important;
  }
  
  .servizi-btn img {
    width: 60px !important;
    height: auto !important;
  }
  
  /* Sezione certificazioni */
  .cert-card {
    margin: 0 auto 15px auto !important;
  }
  
  /* Footer più compatto */
  .footer {
    text-align: center !important;
    padding: 20px 5% !important;
    margin: 0 auto !important;
  }
  
  .footer-col {
    margin-bottom: 25px !important;
  }
  
  .social-icons {
    justify-content: center !important;
  }
}

@media (max-width: 576px) {
  /* Dispositivi molto piccoli - MASSIMA precisione */
  
  .testoIcontainer {
    top: 30% !important; /* Alzato da 40% a 30% */
    position: absolute !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    width: 90% !important;
    left: 5% !important;
    right: 5% !important;
    padding: 0 10px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .testoIcontainer .testoI {
    font-size: 18px !important;
    text-align: center !important;
  }
  
  .testo1Container {
    margin-top: 600px !important; /* Abbassato molto da 400px a 600px */
    width: 95% !important;
    left: 2.5% !important;
    right: 2.5% !important;
  }
  
  .title-scopri {
    font-size: 1.5rem !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
  
  /* Fix idrosemina sezione */
  #idroFoto {
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }
  
  /* Hamburguer menu migliore */
  .navbar-toggler {
    background-color: rgba(255, 255, 255, 0.5) !important;
  }
  
  /* Fix immagine con bordi arrotondati su mobile */
  .image {
    border-radius: 10px !important; /* Tutti e 4 i bordi arrotondati */
  }
  * {
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
  
  .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .col, [class*="col-"] {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  
  /* Elimina tutti i possibili offset negativi */
  [class*="offset-"] {
    margin-left: 0 !important;
  }
}


/* Notification Button */
.notification-widget {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.notification-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00673e 0%, #009432 100%);
    border: none;
    box-shadow: 0 8px 24px rgba(0, 103, 62, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
}

.notification-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(0, 103, 62, 0.5);
}

.notification-button:active {
    transform: scale(0.95);
}

.notification-icon {
    width: 28px;
    height: 28px;
    fill: white;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    border: 3px solid white;
    animation: notif-pulse 2s infinite;
}

@keyframes notif-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 110px;
    left: 30px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 360px;
    z-index: 9998;
    animation: notif-slideInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.notification-toast.show {
    display: block;
}

@keyframes notif-slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.notification-toast-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.notification-toast-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00673e 0%, #009432 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-toast-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.notification-toast-title {
    font-weight: 600;
    font-size: 16px;
    color: #1e293b;
    flex: 1;
}

.notification-toast-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.notification-toast-close:hover {
    color: #475569;
}

.notification-toast-body {
    color: #475569;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.notification-toast-action {
    background: linear-gradient(135deg, #00673e 0%, #009432 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
}

.notification-toast-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 103, 62, 0.3);
}

/* Video Modal Overlay */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: notif-fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.video-modal-overlay.show {
    display: flex;
}

@keyframes notif-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.video-modal-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    animation: notif-scaleIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes notif-scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.video-modal-title {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    flex: 1;
    padding-right: 15px;
}

.video-modal-close {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-player-wrapper {
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
}

.video-player {
    width: 100%;
    display: block;
    max-height: 80vh;
}

.video-controls {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    flex-wrap: wrap;
}

.control-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.control-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.control-button:active {
    transform: scale(0.95);
}

.control-button svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.progress-container {
    flex: 1;
    min-width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00673e, #009432);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.time-display {
    color: white;
    font-size: 14px;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
    flex-shrink: 0;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-slider {
    width: 80px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.volume-level {
    height: 100%;
    background: white;
    border-radius: 3px;
    width: 100%;
    transition: width 0.1s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-widget {
        bottom: 20px;
        left: 20px;
    }

    .notification-button {
        width: 56px;
        height: 56px;
    }

    .notification-toast {
        max-width: calc(100vw - 100px);
        bottom: 90px;
        left: 20px;
    }

    .video-modal-overlay {
        padding: 10px;
    }

    .video-modal-header {
        margin-bottom: 15px;
    }

    .video-modal-title {
        font-size: 18px;
    }

    .video-modal-close {
        width: 40px;
        height: 40px;
    }

    .video-player {
        max-height: 70vh;
    }

    .video-controls {
        padding: 12px;
        gap: 8px;
    }

    .control-button {
        width: 40px;
        height: 40px;
    }

    .control-button svg {
        width: 18px;
        height: 18px;
    }

    .time-display {
        font-size: 12px;
        min-width: 80px;
    }

    .volume-slider {
        width: 60px;
    }

    .progress-container {
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .notification-toast {
        max-width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
    }

    .video-modal-title {
        font-size: 16px;
    }

    .video-controls {
        padding: 10px;
        gap: 6px;
    }

    .control-button {
        width: 36px;
        height: 36px;
    }

    .volume-container {
        display: none; /* Nascondi controlli volume su schermi molto piccoli */
    }
}

/* Fullscreen mobile orientation */
.video-player-wrapper:fullscreen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player-wrapper:-webkit-full-screen {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-player-wrapper:fullscreen .video-player {
    max-height: 100vh;
    max-width: 100vw;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-player-wrapper:-webkit-full-screen .video-player {
    max-height: 100vh;
    max-width: 100vw;
    width: 100%;
    height: 100%;
    object-fit: contain;
}