
body {
            background-color: #ffffff;
            background-size: cover; 
            background-position: cover;
            background-repeat: no-repeat; 
            color: #000000;
            text-shadow: none;
            max-width: 100%;
            font-family: 'Montserrat', sans-serif;
            
            
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  padding: 10px 20px;
  gap: 12px;
}

.language-switch .flag-btn img {
  width: 32px;   
  height: 32px;  
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-right: 20px;
}

.language-switch .flag-btn img:hover {
  transform: scale(1.1);
}



.spacing {
    margin: 50px;
  }

h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 300;
}


h3{
            padding: 4px;
            border-radius: 3px;
            color: #000000;
  
    
}

.title{
  text-align: left;
}

.testo{
    margin-left: 55px;
    margin-right: 55px;
    text-align: justify;
}

.servizi{
  background-color: #e3c88d;
}

.accordion{
    margin-left: 55px;
    margin-right: 55px;

}
.accordion-item{
    background-color: #ffffff;
    color: #000;
    font-size: 1em;
}
.accordion-button:not(.collapsed) {
  background-color: #e3c88d; 
  color: #fff;
  font-size: 30px;
}


.accordion-body{
    background-color: #ffffff;
    color: #000;
    font-size: 25px;
}

.presentation {
    margin-left: 55px;
    margin-right: 55px;
}
.title {
    text-align: center;
}
.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}
.card {
    flex: 1 1 300px;
    max-width: 400px;
    border: none;
    background-color: transparent;
    box-shadow: none;
    overflow: hidden;
    background: #fff;
}

.img-tonda {
    width: 160px;        
    height: 160px;      
    border-radius: 50%;  
    object-fit: cover;
}

.card-body {
    padding: 20px;
}
.card-title {
    font-size: 1.3em;
    text-align: center;
    color: #527ac4;
}

.card-title a {
    font-size: 1.3em;
    text-align: center;
    color: #527ac4;
    text-decoration: none;
}

.card-text {
    font-size: 1.0em;
    line-height: 1.3;
}


img {
    max-width: 100%;
    height: auto;
}
table {
    width: 100%;
    table-layout: fixed;
}
th, td {
    padding: 10px;
}



.btn-primary{
    background-color:  #c7962a ;
    -webkit-box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px #c7962a(0,0,0,0); 
    box-shadow: 0px 10px 13px -7px #000000, 5px 5px 15px 5px rgba(0,0,0,0);
    text-align: center;
    border: #c7962a;
}

.btn-secondary {
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  color: #000;
  text-align: center;
}

#carouselExampleAutoplaying{
    width: 400px;
    height: auto;
    position: relative;
    
}

.container-fluid{
    background-color:  #2b65af;
    text-shadow: none;

}

.row {
    display: flex;
}
.column {
    flex: 10;
    padding: 12px;
    border: none;
}
.contenitore-immagini {
    display: flex; 
    justify-content: center; 
    gap: 50px; 
  }


.contenitore-immagini img {
    max-width: 300px; 
    height: auto;
    border-radius: 50%
}


.centrato{
    text-align: center;
}

@media (max-width: 768px) {

  
  body {
    font-size: 14px;
  }
  h1 {
    font-size: 1.5em;
  }
  h2 {
    font-size: 1.2em;
  }
  h3 {
    font-size: 1em;
  }

 
  .accordion-button:not(.collapsed) {
    font-size: 1em;
  }
  .accordion-body {
    font-size: 0.9em;
  }

  .card-img-top{
    width: 500px;
    height: auto;
  }


  .card-title {
    font-size: 1.2em;
  }
  .card-text {
    font-size: 0.9em;
  }

 
  .testo, .presentation, .accordion {
    margin-left: 15px;
    margin-right: 15px;
  }

 
  #map {
    height: 300px;
  }


  .contenitore-immagini {
    flex-direction: column;
    gap: 20px;
  }
  .contenitore-immagini img {
    max-width: 200px;
  }


  .row {
    flex-wrap: wrap;
  }
}

#carouselExample {
    max-width: 100%;
    align-items: center;
}

#carouselExample .carousel-item {
    height: 60vh;
}

@media (max-width: 768px) {
    #carouselExample .carousel-item {
        height: 35vh;
    }
}


.carousel-wrapper {
    display: flex;
    flex-direction: column; /* uno sopra l'altro */
    align-items: center;    /* centrati orizzontalmente */
    gap: 30px;              /* distanza tra i due caroselli */
}


.carousel {
    width: 100%;
    max-width: 900px;      
}

/* STILI CAROSELLO NORMALE*/
.caro-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.caro_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; 
    transition: opacity 0.3s ease;
}

.caro_img:hover {
    opacity: 0.8; 
}

/* per il cellulare */
@media (max-width: 768px) {
    .carousel-wrapper {
        gap: 20px;
    }

    .caro-img {
        max-height: 300px;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);  
    justify-content: center;
    align-items: center;

}


.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
}


.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10001;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}


.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 30px;
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10001;
    border-radius: 5px;
}

.modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-nav span {
    user-select: none;
}


.modal-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    z-index: 10001;
}


@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
    
    .modal-nav {
        font-size: 24px;
        padding: 12px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-counter {
        bottom: 10px;
        font-size: 14px;
        padding: 8px 16px;
    }
}

.footer {
    color: rgb(255, 255, 255);
    text-align: center;
    padding: 50px;
    background-color:#c7962a;
  }

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  justify-content: center;   
  text-align: center;   
}

.footer-column h4 {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
}

.footer-column p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 10px;
}
