/* --------------------- CSS GENERALI INTERO SITO ------------------- */
/* Reset di base e impostazioni generali */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scrollbar-width: none;
}
body {
    font-family: Arial, sans-serif;
    color: #000000;
    background-color: #ffffff;
    line-height: 1.6;
}
a {
    color: #ffffff;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* Header */
.main-header {
    background: #000000;
    padding: 20px 0;
    text-align: center;
}
.logo-img {
    width: 100px;
}
h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-top: 10px;
}

/* --------------------- MENU' DI NAVIGAZIONE ------------------- */
/* Navigation Menu */
.main-nav {
    background: #000000;
    padding: 10px 0;
}
.main-nav ul {
    list-style: none;
    text-align: center;
}

/* Stili di base per il menu di navigazione */
.main-nav ul li {
    position: relative;
    display: inline-block;
    margin: 0 15px;
}

.main-nav ul li a {
    color: #ffffff;
    font-size: 1.3rem;
    transition: transform 0.3s ease, color 0.3s ease;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
}

/* Effetto hover con ingrandimento e cambio colore */
.main-nav ul li a:hover {
    color: #fff; /* Colore del testo al passaggio del mouse */
    background-color: #807e76; /* Colore di sfondo al passaggio del mouse */
    transform: scale(1.3); /* Ingrandisce l'elemento al passaggio del mouse */
}

/* Aggiunta di un'ombra per un effetto di profondità */
.main-nav ul li a:hover {
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3); /* Ombra leggera */
}

/* Responsive design */
@media (max-width: 768px) {
    .main-nav {
        padding-top: 0px;
        padding-bottom: 20px;
        font-size: small;
        align-items: center;
    }
    .main-nav ul li a {
        font-size: 13px;
        align-items: center;
    }
}

/* --------------------- TABELLA 4 IMMAGINI HOME PAGE ------------------- */
/* Two-Column Section */
.custom-grid-section {
    padding: 100px;
}
.custom-grid-section h2 {
    text-align: center;
    color: #000000;
    margin-bottom: 30px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
}
.row {
    display: flex;
    flex-wrap: wrap;
}
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}
.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}
.content-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    flex-direction: row-reverse;
}
.image-wrapper {
    flex: 0 0 50%;
}
.custom-image {
    width: 100%;
    height: auto;
}
.text-wrapper {
    flex: 0 0 50%;
    padding: 20px;
}
h3 {
    color: #000000;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #000000; /* Colore del titolo leggermente più chiaro */
}

@media (max-width: 768px) {
    .custom-grid-section {
        padding: 0px;
        padding-top: 0;
        display: block;
    }    
}


/* --------------------- SEZIONE EVENTI DELLA HOME PAGE ------------------- */
/* Stili generali per la sezione eventi */
.eventi {
    padding: 30px;
    background-color: #ffffff; /* Colore di sfondo chiaro */
    color: #000000; /* Colore del testo nero */
}

.eventi h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #000000; /* Colore del titolo leggermente più chiaro */
}

/* Contenitore per la lista degli eventi */
.event-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Spazio tra le card degli eventi */
    justify-content: center;
}

/* Card per ogni evento */
.event {
    background-color: #ffffff; /* Colore di sfondo delle card */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Ombra leggera */
    flex: 1 1 300px; /* Base della card a 300px, si adatta allo spazio disponibile */
    max-width: 300px; /* Larghezza massima della card */
    transition: transform 0.3s, box-shadow 0.3s; /* Transizione per l'effetto hover */
}

.event:hover {
    transform: scale(1.05); /* Leggero ingrandimento al passaggio del mouse */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7); /* Ombra più pronunciata al passaggio del mouse */
}

.event-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    max-height: 280px;
}

.event h3 {
    font-size: 1.5rem;
    margin: 10px 15px;
}

.event p {
    font-size: 1rem;
    margin: 0 15px 15px;
    color: black;
}

/* Responsive design */
@media (max-width: 768px) {
    .event-list {
        flex-direction: column;
        align-items: center;
    }
}

/* --------------------- SEZIONE DI CONTATTO ------------------- */
/* Contact Form Section */
.contatto {
    padding: 40px;
    background: #ffffff;
}
.contatto h2 {
    text-align: center;
    color: #000000;
    margin-bottom: 20px;
}
.form-contatto {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
}
.campo {
    margin-bottom: 15px;
}
.campo input, .campo textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #000000;
    border-radius: 5px;
    background: #ffffff;
    color: #000000;
    font-family: Arial, sans-serif;
    resize: none;
}
.btn-invia {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}
.btn-invia:hover {
    background: #ada99d;
}

/* --------------------- BANNER FOOTER ------------------- */
/* Footer */
footer {
    background: #000000;
    color: #ffffff;
    padding: 20px;
}

li {
    color: #000000;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: center;
}
.footer-section {
    flex: 1 1 30%;
    margin: 10px;
}
.footer-section h4 {
    color: #ffffff;
    margin-bottom: 10px;
}
.footer-section p {
    margin-bottom: 10px;
}
.social-icons {
    display: flex;
}
.social-icon {
    color: #ffffff;
    font-size: 1.5rem;
    margin-right: 10px;
}
.footer-bottom {
    text-align: center;
    padding: 10px;
    background: #000000;
}

/* Media Queries */
@media (max-width: 768px) {
    .custom-grid-section .container {
        padding: 0 10px;
    }
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .event {
        flex: 0 0 100%;
        max-width: 100%;
    }
}


/* --------------------- PAGINA CHI SIAMO ------------------- */
/* Stili generali per la sezione Chi Siamo */
.chi-siamo {
    padding: 40px 20px;
    background-color: #ffffff; /* Colore di sfondo scuro */
    color: #000000; /* Colore del testo bianco */
}

.chi-siamo h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #000000; /* Colore del titolo leggermente più chiaro */
}

.chi-siamo h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #000000; 
}

.chi-siamo-ricerca {
    padding: 40px 20px;
    background-color: #ffffff; /* Colore di sfondo scuro */
    color: #000000; /* Colore del testo bianco */
}

.chi-siamo-ricerca h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #000000; /* Colore del titolo leggermente più chiaro */
}

.chi-siamo-ricerca h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #000000; 
}

/* Contenitore per il testo e l'immagine */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Spazio tra il testo e l'immagine */
    align-items: center;
    justify-content: center;
}

/* Testo della sezione Chi Siamo */
.about-text {
    flex: 1 1 300px; /* Base del testo a 300px, si adatta allo spazio disponibile */
    max-width: 600px; /* Larghezza massima del testo */
    font-size: 1rem;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 20px;
}

/* --------------------- BANNER IMMAGINI PAGINA CHI SIAMO ------------------- */
/* Immagine della sezione Chi Siamo */
.about-image {
    flex: 1 1 300px; /* Base dell'immagine a 300px, si adatta allo spazio disponibile */
    max-width: 400px; /* Larghezza massima dell'immagine */
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* Angoli arrotondati */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* Ombra leggera */
}

/* Responsive design */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }
}

/* Section Styling */
.team-section {
    text-align: center;
    padding: 0px 0px;
    background-color: #ffffff;
    color: #000000;
}

/* Heading */
.team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #000000;
}

/* Team Gallery Layout */
.team-gallery {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 00px;
}

.team-member {
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
}

/* Images */
.team-member img {
    width: 80%;
    height: 80%;
    border-radius: 00%;
    margin-bottom: 0px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hover Effect on Images */
.team-member:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Name and Role */
.team-member h3 {
    font-size: 1.5rem;
    margin: 10px 0;
    color: #000000;
}

.team-member p {
    font-size: 1rem;
    color: #000000;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .team-gallery {
        flex-direction: column;
    }

    .team-member {
        max-width: 100%;
    }
}

/* --------------------- CSS PAGINA PRIVACY ------------------- */
/* Policy Section Styling */
.policy-section {
    text-align: left;
    padding: 50px 20px;
    background-color: #ffffff;
    color: #000000;
    max-width: 800px;
    margin: 0 auto;
}

/* Heading */
.policy-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #000000;
}

/* Policy Content */
.policy-content h3 {
    font-size: 1.8rem;
    margin-top: 20px;
    color: #000000;
}

.policy-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 20px;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .policy-section {
        padding: 30px 15px;
    }

    .policy-section h2 {
        font-size: 2rem;
    }

    .policy-content h3 {
        font-size: 1.5rem;
    }

    .policy-content p {
        font-size: 1rem;
    }
}

/* --------------------- RIQUADRI EVENTI HOME PAGE ------------------- */
/* Eventi Section Styling */
.eventi-section {
    text-align: center; /* Centra tutto il testo e le immagini */
    padding: 50px 20px;
    background-color: #ffffff;
    color: #000000;
    max-width: 1100px;
    margin: 0 auto;
}

.eventi-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #000000;
}

.event {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.event-content h3 {
    font-size: 2rem;
    color: #000000;
}

.event-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #000000;
    margin-bottom: 20px;
    text-align: center; /* Centra il testo */
}

/* --------------------- GALLERIA PAGINA EVENTI ------------------- */
/* Event Gallery */
.event-gallery {
    display: flex;
    justify-content: center; /* Centra le immagini nella galleria */
    margin-top: 20px;
    flex-direction: column;
    align-items: center;
}

.event-gallery img {
    max-width: 90%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.event-gallery img:hover {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.event-gallery small {
    display: block;
    font-size: 0.9rem;
    color: #aaa;
    text-align: center; /* Centra la didascalia */
}

/* Lightbox (Pop-up) */
.lightbox {
    display: none; /* Nascondi per default */
    position: fixed;
    z-index: 999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9); /* Sfondo nero semi-trasparente */
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    transition: transform 0.3s ease;
}

.lightbox-content:hover {
    transform: scale(1.02);
}

.caption {
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1rem;
}

/* Close button */
.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

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

/* Responsiveness */
@media (max-width: 768px) {
    .lightbox-content {
        width: 100%;
    }

    .event-content h3 {
        font-size: 1.6rem;
    }

    .event-content p {
        font-size: 1rem;
    }

    .eventi-section {
        padding: 30px 15px;
    }

    .event-gallery img {
        max-width: 100%;
    }
}

/* --------------------- BANNER IMMAGINI EVENTI PAGINA EVENTI ------------------- */
.event-section {
    padding: 40px;
    background-color: #111;
    color: #fff;
    text-align: center;
}

.event-container {
    display: flex;
    flex-wrap: wrap; /* Permette agli eventi di andare a capo se non c'è abbastanza spazio */
    justify-content: center; /* Centra gli eventi */
    gap: 20px; /* Spazio tra gli eventi */
}

.event-box {
    background-color: #222;
    border-radius: 10px;
    padding: 20px;
    max-width: 250px;
    width: 100%; /* Si adatta alla larghezza del contenitore */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-box img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.event-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.event-box p {
    font-size: 14px;
    color: #bbb;
}

.event-box:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
}

/* Media query per migliorare la visualizzazione su dispositivi mobili */
@media (max-width: 768px) {
    .event-container {
        flex-direction: column;
        align-items: center;
    }
}

/* --------------------- BANNER IMMAGINI DISPOSITIVI MOBILI ------------------- */
/* Nascondi il banner su schermi più grandi */
.mobile-banner {
    display: none;
}

/* Mostra il banner solo su dispositivi mobili */
@media (max-width: 768px) {
    .mobile-banner {
        display: block;
        text-align: center;
        margin: 5px 0;
    }

    .mobile-banner img {
        width: 95%; /* Rende le immagini responsive */
        height: auto; /* Mantiene il rapporto d'aspetto delle immagini */
        box-shadow: 0 6px 12px rgba(0, 0, 0, 1.5);
        border-style:ridge;
        border-radius: 25px;
        filter: brightness(0.8);
    }
}

/* --------------------- CAROSELLO ------------------- */
/* Stili di base per il carousel */
.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 768px) {
    .carousel {
        display: none;
    }
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 1 0 100%;
    box-sizing: border-box;
    position: relative;
}

/* Stili per le immagini */
.carousel img {
    width: 100%;
    height: auto;
    display: block;
}

/* Oscuramento delle immagini */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Oscuramento leggero */
    opacity: 0.5;
    z-index: 1;
}

/* Posizionamento del testo sopra l'immagine */
.carousel-caption {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    border-radius: 5px;
    z-index: 2; /* Assicura che il testo sia sopra l'overlay */
}

/* Stili specifici per i dispositivi mobili */
@media (max-width: 768px) {
    .carousel-item {
        flex: 1 0 100%;
        max-height: 500px;
    }
    ;
    .carousel-inner {
        display: flex;
        transition: transform 0.3s ease;
    }
}

/* Stili per i controlli del carousel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0);
    color: rgb(86, 86, 86);
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.carousel-control.prev {
    left: 10px;
}

.carousel-control.next {
    right: 10px;
}

/* --------------------- BANNER COOKIE ------------------- */
/* Stili per il banner dei cookie */
.cookie-banner {
    position: fixed;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Sfondo semi-trasparente per sovraimpressione */
    color: #fff;
    display: flex;
    align-items: center; /* Centra verticalmente */
    justify-content: center; /* Centra orizzontalmente */
    z-index: 1000;
    font-size: 16px; /* Dimensione del testo */
    text-align: center;
    padding: 20px;
}

.cookie-content {
    background: #333; /* Colore di sfondo del contenuto del banner */
    padding: 20px;
    border-radius: 10px; /* Angoli arrotondati */
    max-width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Ombra per un effetto di sollevamento */
}

.cookie-content p {
    margin: 0 0 15px 0;
    padding: 0;
}

.cookie-button {
    background-color: #f39c12;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px; /* Angoli arrotondati per una migliore estetica */
}

.cookie-button:hover {
    background-color: #e67e22;
}

/* Media Query per schermi più piccoli */
@media (max-width: 600px) {
    .cookie-banner {
        font-size: 14px; /* Riduci la dimensione del testo per schermi molto piccoli */
    }

    .cookie-button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

/* --------------------- SEZIONE DELLO SCROLL ------------------- */
/* Stile della sezione */
.scroll-section {
    text-align: center;
    padding: 50px 0;
    background-color: #ffffff00; /* Sfondo trasp */
    position: relative;
    height: 150px;
    display: none;
    transition: opacity 0.5s ease;
}

/* Sezione nascosta */
.scroll-section.hidden {
    opacity: 0;
    pointer-events: none; /* Impedisce l'interazione */
}

/* Testo "Scorri verso il basso" */
.scroll-text {
    color: #000000;
    font-size: 14px;
    margin-bottom: 10px;
    letter-spacing: 0px;
    font-family: monospace;
}

/* Contenitore per la freccia */
.arrow-container {
    position: relative;
    width: 100%;
    height: 50px;
}

/* Stile della freccia */
.arrow-down {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-right: 3px solid #000000;
    border-bottom: 3px solid #000000;
    transform: rotate(45deg);
    margin: 0 auto;
    animation: bounce 1.5s infinite;
}

/* Animazione della freccia */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(10px) rotate(45deg);
    }
    60% {
        transform: translateY(5px) rotate(45deg);
    }
}

/* Mobile-friendly */
@media (max-width: 768px) {
    .scroll-section {
        display: block;
        padding: 30px 0;
        height: 120px;
    }

    .scroll-text {
        font-size: 12px;
    }

    .arrow-down {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }

    .main-header {
        h1 {
            display: none;
        }
    }
}

