@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Poppins:wght@400;600&display=swap');

html {
    height: 100%;
}

/* Reset CSS */
body {
    font-family: 'Lato', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    height: 100%;
}

/* Header */
header {
    display: flex;
    align-items: center;
    background-color: #333;
    padding: 0px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bottonehm {
    background-color: #333;
}

.logo img {
    height: 100px;
    margin-left: 40px;
    width: 280px;
}

nav {
    margin-left: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.nav-link:hover {
    color: red;
}

nav ul li {
    margin: 0 8px;
}

nav ul li a {
    text-decoration: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #f0a500;
}

#rcorners1,
#rcorners2,
#rcorners3,
#rcorners4 {
    border-radius: 100px;
    border: 4px solid rgb(228, 84, 84);
    padding: 20px;
    width: 133px;
    height: 133px;
    margin: 50px 40px;
    
}

/* Slider */
.slider {
    position: relative;
    overflow: hidden;
    height: 600px;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.slides {
    display: flex;
    width: 300%;
    transition: transform 1s ease;
}

.slides img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    user-select: none;
}

.arrow:hover {
    opacity: 1 !important;
}

.frecciasx {
    left: 10px;
    transform: translateY(-50%);
}

.frecciadx {
    right: 10px;
    transform: translateY(-50%);
}

.slider:hover .arrow {
    opacity: 1;
}

/* Sections */
section {
    padding: 40px 50px;
}

.divicon {
    margin-left: 200px;
    margin-right: 200px;
}

section h2 {
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    text-align: center;
}

section p {
    font-family: 'Lato', sans-serif;
  
}

.divisore {
    display: flex;
    align-items: center;
    justify-content: center;
   
    height: 2px;
    margin-bottom: 20px;
}

/* Aggiungere la classe g-4 per il gap tra i div */
.row-cols-1 > * {
    gap: 4px; /* Sostituito con gap per lo spazio tra le colonne */
}

/* News Section */
#news {
    text-align: center; /* Centra gli elementi */
    padding: 0px 20px;
    margin-left:15px;
    margin-bottom: -84px;
}

#news h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #333;
    margin-left:5px;
}
.divisore-line-news {
    height: 1px;
    width: 74px; /* Lunghezza della linea del divisore */
    background-color: #333;
    margin-bottom: 40px;
    margin-left: 37px;
}

.contenitorenews {
    max-width: 400px; /* Massima larghezza dei contenitori delle notizie */
    margin: 5px; /* Centra il contenitore delle notizie */
}

.card {
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card-img-top {
    object-fit: cover;
    height: 300px; /* Altezza costante per tutte le immagini delle notizie */
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-text {
    color: #555;
}

/* Footer */
.container {
    display: flex;
    background-color: rgb(37, 37, 37);
    justify-content: center;
    max-width: 10000px;
    flex-direction: row;
    color: white;
    flex-wrap: nowrap;
}

.container div {
    display: flex;
    flex-wrap: nowrap;
}

.container p {
    margin: 50px;
}

.container a {
    margin-right: 10px;
}

.mappacon {
    background-color: #f0f4f8;
    padding: 50px;
}



.contact-info h2 {
    margin-bottom: 20px;
    font-size: 2.5rem;
}
.contact-info h2:hover {
    color: rgb(182, 27, 27);
}

#scrinewws:hover{
    color: rgb(182, 27, 27);
}
.donacis{
    font-size: 1.2rem;
    font-weight: bold;
}



.banner-chisiamo{
    background-image: url("immagini/quinta.jpeg");

}



.hero-text-overlay h1{
    font-size: 4rem;
}
.banner {
    background-color: #000000;
    height: 300px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    opacity: 1;
}


.banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(31, 31, 31, 0.5), rgba(0, 0, 0, 0.5)); /* Modifica l'opacità del colore per ottenere il risultato desiderato */
    opacity: 1;
   
}

.donaci{
font-size: 2rem;
font-weight: bold;
}

.donaci:hover {
    color: rgb(182, 27, 27);
}


.footercolore p:hover{
    color: rgb(245, 0, 0);
}
.coparagrafi{
    font-size: 1.3rem;
}


.coparagrafi p:hover{
    color: rgb(209, 60, 60);
}




iframe {
    border-radius: 30px;
}

.mx-custom {
    margin-left: 50px;
    margin-right: 50px;
}

#map {
    width: 100px;
    grid-column: 2;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    flex: 0.8;
    height: 300px;
    margin-left: 50px;
    margin-right: 300px;
}

.indicatori {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.contact-info {
    flex: 0.85;
    text-align: left;
    /* width: 358px; */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: baseline;
    margin-left: 61px;
}

.indicatore {
    width: 10px;
    height: 10px;
    background-color: #888;
    margin: 0 5px;
    border-radius: 50%;
    cursor: pointer;
}

.indicatore.active {
    background-color: #f0a500;
}
.fancy-text {
    font-family: 'Arial', sans-serif;
    color: #ff4500; /* Arancione acceso */
    font-weight: bold;
    font-size: 2.5rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
.bg-light {
    background-color: #f8f9fa !important;
}
.faceb {
    margin-right: 10px;
}

footer > div {
    grid-column: 1;
    grid-row: 2;
}

.contenitorre {
    margin-top: 30px;
}

.custom-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-left: 145px;
}

.custom-link {
    cursor: pointer;
}

.custom-icon svg {
    transition: fill 0.3s;
    fill: rgb(224, 111, 111);
}

.custom-icon svg:hover {
    fill: #f51b1b;
}

.contenitorelol {
    display: grid;
    grid-template-columns: 100px, 1fr, 100px;
    background-color: whitesmoke;
}

.custom-icon {
    width: 50px;
    height: 150px;
    font-size: 3rem;
}



a img {
    border-radius: 30px;
    margin: 30px;
    width: 350px;
}
.custom-heading {
    text-align: center;
    font-size: 2rem;
    color: #666464;
    margin-bottom: 47px;
    margin-top: 20px;
}

.custom-heading:hover {
    color: #464545;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    z-index: 1000;
    display: none; /* Il banner sarà nascosto all'inizio */
}

.cookie-banner p {
    margin: 0;
}

.cookie-banner button {
    background-color: #4caf50;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    margin-left: 10px;
}

.cookie-banner button:hover {
    background-color: #45a049;
}

.hovertasto {
    background-color: #f51b1b;
    border-color: #f51b1b;
}

.hovertasto:hover {
    background-color: rgb(226, 90, 90);
    border-color: #f51b1b;
}

/* Scroll-to-top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    transition: transform 0.3s;
}

.scroll-to-top:hover {
    cursor: pointer;
}

.scroll-to-top a {
    font-size: 2rem;
    color: #f51b1b;
    text-decoration: none;
    display: block;
    animation: bounceUpDown 1.5s infinite ease-in-out;
}

.text-danger {
    color: red; /* Cambia il colore del testo delle parole importanti */
    font-weight: bold;
}
@keyframes bounceUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

.scroll-to-top a svg {
    transition: transform 0.3s ease;
}

.mappacon .scroll-to-top a {
    color: #ffffff !important;
}
.custom-icon svg {
    transition: fill 0.3s;
    fill: rgb(224, 111, 111);
    width: 67px;
    height: 81px;
}




/*PARTE NEWS*/
.date{
    position: absolute;
    top: 15px;
    left: 15px;
    color: #FFF;
    text-shadow: 1px 1px 1px rgba(82, 82, 82, 0.2);
    width: 60px;
    height: 64px;
    text-align: center;
    padding-top: 9px;
    font-size: 1.5rem;
}
.title{
font-size: 1.25rem;
letter-spacing: 0;
}

.immaginenews{
    border-radius: 10px;
}

.immaginenews img {
    max-height: 200px; /* Limita l'altezza dell'immagine */
}

.badge.date {
    background-color: rgba(0, 0, 0, 0.548); /* Sostituisci con il valore alpha desiderato */
    padding: 10px 10px; /* Opzionale: aggiungi padding per migliorare l'aspetto del badge */
}

.divnews{
    display: flex;
align-items: center;
justify-content: center;
margin: 40px 0;
height: 1px;
    width: 50px; /* Lunghezza della linea del divisore */
    background-color: #333;
margin-bottom: 80px;
 
}
.card-img-top-news {
    object-fit: cover;
    height: 100px;
    border-radius: 10px; /* Altezza costante per tutte le immagini delle notizie */ 
}

.pagination{
    display: flex;
    padding-left: 0;
    list-style: none;
}

/* PARTE PHOTO GALLERY*/
.hero-section {
    position: relative;
    height: 300px; /* Altezza della sezione hero */
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
   
}

/* Stili per la photo gallery */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-item {
    margin: 5px;
}

.gallery-item img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
}

.modal-body img {
    width: 100%;
    height: auto;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
}

.lightbox img {
    width: 100%;
    height: auto;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}


.btn-like {
    font-size: 2rem; /* Rendi l'icona più grande */
    border: none;
    background: none;
    transition: transform 0.2s ease;
    color: #007bff; /* Colore iniziale dell'icona */
    outline: none; /* Rimuovi l'outline al focus */
}



.btn-like i {
    transition: color 0.2s ease; /* Transizione per il cambio colore */
}

.btn-like.clicked i {
    color: red !important; 
    transform: scale(1.2);
}
#likeIcon {
  width: 24px; 
    height: 24px;
    transition: transform 0.2s ease, fill 0.2s ease; 
}

#likeIcon.liked {
    color: red; /* Colore rosso quando cliccato */
    transform: scale(1.2); /* Effetto di ingrandimento quando cliccato */
}

/* Stili per l'area di condivisione */
.share-icons {
    display: none;
    position: absolute;
    top: 58%;
    right: calc(41%); /* Posiziona l'area a destra dell'icona Share */
    transform: translateY(-120%);
    z-index: 1000;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Assicurati che l'immagine del lightbox abbia dimensioni fisse */


.share-icons {
    display: none;
}
.share-icons.show {
    display: block;
}

.share-icons a {
    text-decoration: none;
    margin: 0 5px;
}

.share-icons a:hover {
    color: #007bff;
}

/* Animazione per far scendere l'area di condivisione */
@keyframes slideDown {
    0% {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}



/*SEZIONE CHI SIAMO*/

.logonews{
    width: 250px;
}
.contottpermille{border-radius:30px; width:300px;}




/*SEZIONE SERVIZI*/



@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
.hero-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}
.newslaptop{
    margin-bottom: 0px;
    margin-right: 0px;
    margin-left: 118px;
}
.hero-overlay {
    background: rgba(0, 0, 0, 0.5);
}


.hero-image {
    background-image: url('SITO\gvvs-420x252.jpg');
    background-size: cover;
    height: 150px;
    position: relative;
}
#dinews{
    margin-left:-30px;
   
}
.contchisiamo {
    width: 100%;
    text-align: center;
}

.contchisiamo h2 {
    color: white;
    opacity: 0;
    animation: slideUp 1s ease-out forwards;
    animation-delay: 0.5s; 
}
.card {
    width: 100%;
}
.modal-open .modal-backdrop {
    backdrop-filter: blur(5px);
}

.modal-content {
    border: none;
    padding: 0;
    border-radius: 30px; 
}
.text-danger {
    color: red; /* Cambia il colore del testo delle parole importanti */
    font-weight: bold;
}
.content-container {
    display: flex;
    justify-content: center; /* Allinea gli elementi a sinistra */
    align-items: center;
 ; /* Spazio tra il paragrafo e il bottone */
}
#bottottomille{
    margin-right: 300px;
    
}
.scritte{
    display: flex;
    align-items: start;
}




@media (max-width: 600px) {
    header {
        padding: 10px;
    }
    .divisore {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 40px 0;
        height: 2px;
        margin-bottom: 20px;
    }
    a img {
        width: 350px;
}
    .divisore-line-news{
        margin-bottom: 40px;
        margin-left: 0px;
    }
    .logo img {
        height: 80px;
        width: 245px;
    }
   ul{ text-align: left;}
   .custom-container {
   display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right:0px;
}
.contact-info {
        max-width: 100%;
        margin-bottom: 20px;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
  
    .slider {
        height: auto;
    }

    .slides img {
        height: 300px;
    }

    .arrow {
        display: none;
    }

    section {
        padding: 20px;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .card-img-top {
        height: 250px;
    }
    .content {
        margin-top: 120px; 
    }
    .custom-icon {
        width: 30px;
        height: 100px;
        font-size: 2rem;
    }
    .hero-text-overlay h1{
        font-size: 3rem;
    }
    .custom-heading {
        font-size: 1.5rem;
    }

    .scroll-to-top a {
        font-size: 1.5rem;
    }

    #news .carousel-inner .card {
        width: 100%;
    }
    .newslaptop{
    display: none;
        
    } 
    .text-danger {
        color: red; /* Cambia il colore del testo delle parole importanti */
        font-weight: bold;
    }


    /* parte dove siamo*/
    .hero-section {
        height: auto;
    }

    .hero-text-overlay h2 {
        font-size: 1.5rem;
    }

    .container .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .container .col-md-4 {
        width: 100%;
        padding: 10px;
    }

    .container .col-md-4.offset-md-2 {
        margin: 0;
    }

    .container iframe {
        height: 300px;
        width: 100%;
    }

    .col-md-4.m-5 {
        margin: 20px 0;
    }
    .logonews{
        height: 80px;
        width: 300px;
        margin-left: 35px;
    }
    .card-img-top-news {
        object-fit: cover;
        height: 100px;
        width:300px;
        border-radius: 10px;
        margin-left: 40px; /* Altezza costante per tutte le immagini delle notizie */ 
    }
    .carotto {
        width: 70%;
    }
    
}
    













@media (min-width: 768px) {
    #news {
        text-align: center;
        padding: 40px 20px;
        
    }

.contenitorenews {
        max-width: 734px; 
        margin: 50px; 
    }
    
    .logo img {
        height: 100px;
        margin-left: 40px;
        width: 387px;
    }
    
    .contenitorenews + .contenitorenews {
        margin-left: 45px; 
    }

    .contenitorenews .card {
        border-radius: 15px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 10px; 
    }

    .card-img-top {
        object-fit: cover;
        height: 300px; 
    }

    .card-body {
        padding: 20px;
    }

    .card-title {
        font-size: 1.25rem;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .card-text {
        color: #555;
    }

    #newsCarousel .card {
        max-width: 100%; 
    }

    #newsCarousel .carousel-inner .card {
        width: 100%; 
    }
    /* parte chi siamo */
    .custom-md-col {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .text-danger {
        color: red; 
        font-weight: bold;
    }
    .divisore {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 40px 0;
        height: 2px;
        margin-bottom: 20px;
    }


   
}

















@media (max-width: 992px) {
    .navbar-collapse {
        position: absolute;
        top: 78px; 
        right: 0;
        left: 1;
        background-color: #333;
        width: 100vw; 
        padding: 20px 30px; 
        text-align: center; 
        z-index: 1;
    }
    .divisore {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 40px 0;
        height: 2px;
        margin-bottom: 20px;
    }
    .logo img {
        height: 100px;
        margin-left: 20px;
       
    }
    
    .navbar-nav {
        width: 100%;
        text-align: left; 
        gap: 5px;
    }
    .navbar-nav .nav-item {
        width: 100%;
    }
    .navbar-nav .nav-link {
        padding: 10px 15px; 
    }
    .content {
        margin-top: 300px; 
        padding: 20px; 
    }
    .custom-container {
         display: flex;
        flex-direction: column; 
         justify-content: center; 
        align-items: center;
        margin-left: 68px;
    }
    .navbar-collapse.show ~ #home #carouselExampleControls {
        display: none;
    }

/* parte chi siamo */
.custom-md-col {
    flex: 0 0 50%;
    max-width: 50%;
}

.text-danger {
    color: red; /* Cambia il colore del testo delle parole importanti */
    font-weight: bold;
}

.share-icons {
        display: none;
        position: absolute;
        top: 58%;
        right: calc(29%); /* Posiziona l'area a destra dell'icona Share */
        transform: translateY(-120%);
        z-index: 1000;
        background-color: white;
        padding: 10px;
        border-radius: 5px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
    .container p {
        margin: 24px;
    }


}























@media(min-width:1280px) and (max-width: 1441px){
    .newslaptop{
   
    display: flex;   
     flex-wrap: nowrap;
        margin-bottom: 0px;
        margin-right: 0px;
        margin-left: 0px; 
    }
    a img {
        border-radius: 30px;
        margin: 0px;
        width: 370px;
       
            
            margin: 10px;
        
    }
    .contenitorenews {
        max-width: 616px; 
        margin: 50px; 
    }
    #rcorners1, #rcorners2, #rcorners3, #rcorners4 {
        border-radius: 100px;
        border: 4px solid rgb(228, 84, 84);
        padding: 20px;
        width: 133px;
        height: 133px;
        margin: 50px 40px;
    }
    .custom-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
      
       
    }
    .custom-icon svg {
        transition: fill 0.3s;
        fill: rgb(224, 111, 111);
        width: 67px;
        height: 81px;
    }
    .divisore {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 40px 0;
        height: 2px;
        margin-bottom: 20px;
    }
    .container p {
        margin: 40px;
    }
    .custom-heading{
        margin-top: 30px;
    }
    .divisore-line-news {
        height: 1px;
        width: 50px;
        background-color: #333;
        margin-bottom: 0px; 
        margin-left: 97px;
    }
    .custom-icon{
        width:67px; height: 84px; color:rgb(250, 11, 11); margin-bottom:30px; margin-left:1px;
        
    }
    nav ul li {
        margin: 0 8px; 
    }
    #news {
        text-align: center;
        padding:0px;
        margin-bottom: 0px;
    }
    #dinews {
        margin-left: -89px;
         margin-top: 0px; 
         margin-bottom: -19px;
    }
/* parte chi siamo */

.custom-md-col {
    flex: 0 0 33.33333%;
    max-width: 33.33333%;
}
.text-danger {
    color: red; /* Cambia il colore del testo delle parole importanti */
    font-weight: bold;
}

#news h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #333;
    margin-top: 36px;
    margin-left: 4px;
}
/* parte dove siamo*/
#mapchisiamo{
    height:600px !important;
}
.container {
    display: flex;
    background-color: rgb(37, 37, 37);
    justify-content: center;
    max-width: 10000px;
    flex-direction: row;
    color: white;
    flex-wrap: nowrap;
    height: 100px;
}

header {
    display: flex;
    align-items: center;
    background-color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/*PARTE NEWS*/ 
.logonews{
     height: 80px;
     width: 250px;
     margin-right: 120px;

}
.contnewsottopermille{
     width: 200px;
}
.position-relative {
    display: flex;
    flex-direction: column;
}

.position-relative img {
    order: -1; /* Sposta l'immagine sopra */
}

.position-relative .p-3 {
    order: 0; /* Assicura che il contenitore del testo sia sotto */
}

/* Ingrandisci il contenitore dell'otto per mille */
.otto-per-mille-container {
    width: 100%; /* Regola questa dimensione in base alle tue necessità */
}
.contottpermille{
    border-radius:30px; width:300px;
}
   

}

/* Assicurati che le frecce siano visibili e posizionate correttamente */
.modal-body {
    position: relative;
    text-align: center;
}

.btn-light {
    background-color: transparent;
    border: none;
    color: #000;
    font-size: 24px;
    z-index: 1; /* Assicurati che le frecce siano sopra l'immagine */
}

.btn-light:hover {
    color: #007bff;
}

#prevImage, #nextImage {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.7); /* Aggiungi uno sfondo per visibilità */
    border-radius: 50%;
    padding: 10px;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000; /* Assicurati che le frecce siano sopra l'immagine */
}

#prevImage {
    left: 10px;
}

#nextImage {
    right: 10px;
}

img#lightbox-image {
    max-width: 100%;
    height: auto;
}







@media(min-width:390px) and (max-width: 844px){
    #icocont{
        width: 100px;
    }
    #navtogbottoni{
        width:60px;
        position: relative;
    }
}





@media (min-width:992px) and (max-width:1280px){
    header{
        display:flex;
        flex-wrap: wrap;
background-color: #333;
padding: 10px 20px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    }
    a img {
        width: 337px;
    }
    .custom-icon svg {
        transition: fill 0.3s;
        fill: rgb(224, 111, 111);
        width: 56px;
        height: 64px;
        margin-bottom: 80px;
    }
    .divisore {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 40px 0;
        height: 2px;
        margin-bottom: 20px;
    }
    .custom-heading {
        margin-top: 14px;
    }
    .custom-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-right: 48px;
    }
    nav {
        margin-left: 20px;
    }
    nav ul li {
        margin: 0 17px;
    }
    .custom-icon{
        width:56px; height: 76px; color:rgb(250, 11, 11); margin-bottom:30px; margin-left:1px;
        
    }
    #rcorners1, #rcorners2, #rcorners3, #rcorners4 {
        border-radius: 100px;
        border: 4px solid rgb(228, 84, 84);
        padding: 20px;
        width: 110px;
        height: 110px;
        margin: 50px 40px;
    }

    .logo img{
      
            height: 100px;
            margin-left: 420px;
            width: 404px;
            background-color: #333;
            
    }.custom-container {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            width: 0px;
        }
        .contenitorenews {
            max-width:485px;
           margin:69px;
        }
        .newslaptop{
            margin-bottom: 0px;
            margin-right: 0px;
            margin-left: 0px;
        }
       #dinews {
        margin-left: 15px;
         margin-top: 30px; 
    }
       .icone{
        margin-right: 4px;
       }
       #news h2 {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        color: #333;
        margin-left: -29px;
        margin-bottom:-48px;
        margin-top: 32px;
    }
    .divisore-line-news {
        height: 1px;
        width: 50px;
        display: none;
        background-color: #333;
        margin-bottom: 0px;
        margin-left:40px; ; 
    }

    #news {
        text-align: center;
        
        padding: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom:0px;
        
    }
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: var(--bs-navbar-nav-link-padding-x);
         padding-left: 0px;
         
    }
    .newslaptop {
        margin-bottom: 30px;
        margin-right: 121px;
    }
    .col-lg-3 {
         margin-right: 0px; 
         margin-left: 0px; 
    }
    .container{
   
    height: 100px;}
   }
        
        

   @media(min-width:1920px) and (max-width: 1920px){
    .newslaptop {
        display: flex;
        flex-wrap: nowrap;
        margin-bottom: 0px;
        margin-right: 0px;
        margin-left: 0px;
    }

    .contenitorenews {
        max-width: 640px; /* 80% di 800px */
        margin: 48px; /* 80% di 60px */
    }

    #rcorners1, #rcorners2, #rcorners3, #rcorners4 {
        border-radius: 120px; /* 80% di 150px */
        border: 4.8px solid rgb(228, 84, 84); /* 80% di 6px */
        padding: 24px; /* 80% di 30px */
        width: 160px; /* 80% di 200px */
        height: 160px; /* 80% di 200px */
        margin: 48px 40px; /* 80% di 60px e 50px */
    }




    .custom-icon svg {
        transition: fill 0.3s;
        fill: rgb(224, 111, 111);
        width: 80px; /* 80% di 100px */
        height: 96px; /* 80% di 120px */
    }

    .divisore {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 40px 0; /* 80% di 50px */
        height: 2px;
        margin-bottom: 24px; /* 80% di 30px */
    }

    .container p {
        margin: 40px; /* 80% di 50px */
    }

    .custom-heading {
        margin-top: 32px; /* 80% di 40px */
    }

    .divisore-line-news {
        height: 1.6px; /* 80% di 2px */
        width: 48px; /* 80% di 60px */
        background-color: #333;
        margin-bottom: 0px;
        margin-left: 104px; /* 80% di 130px */
    }

    .custom-icon {
        width: 80px; /* 80% di 100px */
        height: 96px; /* 80% di 120px */
        color: rgb(250, 11, 11);
        margin-bottom: 32px; /* 80% di 40px */
        margin-left: 1.6px; /* 80% di 2px */
    }

    nav ul li {
        margin: 0 14.4px; /* 80% di 18px */
    }

    #news {
        text-align: center;
        padding: 0px;
        margin-bottom: 0px;
    }

    #dinews {
        margin-left: -96px; /* 80% di -120px */
        margin-top: 0px;
        margin-bottom: -20px; /* 80% di -25px */
    }

    /* parte chi siamo */
    .custom-md-col {
        flex: 0 0 33.33333%;
        max-width: 33.33333%;
    }

    .text-danger {
        color: red; /* Cambia il colore del testo delle parole importanti */
        font-weight: bold;
    }

    #news h2 {
        font-family: 'Poppins', sans-serif;
        font-weight: 600;
        color: #333;
        margin-top: 40px; /* 80% di 50px */
        margin-left: 4.8px; /* 80% di 6px */
    }

    /* parte dove siamo */
    #mapchisiamo {
        height: 640px !important; /* 80% di 800px */
    }

    .container {
        display: flex;
        background-color: rgb(37, 37, 37);
        justify-content: center;
        max-width: 8000px; /* 80% di 10000px */
        flex-direction: row;
        color: white;
        flex-wrap: nowrap;
        height: 120px; /* 80% di 150px */
    }

    header {
        display: flex;
        align-items: center;
        background-color: #333;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    /* PARTE NEWS */
    .logonews {
        height: 80px; /* 80% di 100px */
        width: 240px; /* 80% di 300px */
        margin-right: 120px; /* 80% di 150px */
    }

    .contnewsottopermille {
        width: 200px; /* 80% di 250px */
    }

    .position-relative {
        display: flex;
        flex-direction: column;
    }
    a img {
        width: 350px;
}
    .position-relative img {
        order: -1; /* Sposta l'immagine sopra */
    }

    .position-relative .p-3 {
        order: 0; /* Assicura che il contenitore del testo sia sotto */
    }

    /* Ingrandisci il contenitore dell'otto per mille */
    .otto-per-mille-container {
        width: 100%; /* Regola questa dimensione in base alle tue necessità */
    }

    .contottpermille {
        border-radius: 32px; /* 80% di 40px */
        width: 320px; /* 80% di 400px */
    }

    /* Assicurati che le frecce siano visibili e posizionate correttamente */
    .modal-body {
        position: relative;
        text-align: center;
    }

    .btn-light {
        background-color: transparent;
        border: none;
        color: #000;
        font-size: 24px; /* 80% di 30px */
        z-index: 1; /* Assicurati che le frecce siano sopra l'immagine */
    }

    .btn-light:hover {
        color: #007bff;
    }

    #prevImage, #nextImage {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.7); /* Aggiungi uno sfondo per visibilità */
        border-radius: 50%;
        padding: 12px; /* 80% di 15px */
        font-size: 24px; /* 80% di 30px */
        cursor: pointer;
        z-index: 1000; /* Assicurati che le frecce siano sopra l'immagine */
    }

    #prevImage {
        left: 12px; /* 80% di 15px */
    }

    

    img#lightbox-image {
        max-width: 80%;
        height: auto;
    }
    .custom-container{
        margin-left: 80px;
    }
}

        















