/* Impostazioni di base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Josefin Sans", sans-serif;
    font-size: 16px;
    background-color: #0e3878;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Header */
header {
    background-color: #0e3878;
    font-family: "Josefin Sans", sans-serif;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-radius: 20px;
}

header h1 {
    color: #fff;
    font-family: "Cinzel Decorative", serif;
    font-weight: 600;
    font-style: normal;
    font-size: 48px;
    font-weight: bold;
}
.museum-button-img {
    width: 75px; /* Puoi regolare la larghezza come preferisci */
    height: auto;
    margin-right: 10px;
   transition: transform 0.3s ease; /* Aggiungi una transizione per l'hover */
}

.museum-button-img:hover {
    transform: scale(1.20); /* Aggiungi un effetto di zoom quando si passa sopra */
}
nav ul {
    font-family: "Josefin Sans", sans-serif;
    list-style-type: none;
    margin-top: 20px;
}

nav ul li {
    color: #076c00;
    font-family: "Josefin Sans", sans-serif;
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff; 
    font-family: "Josefin Sans", sans-serif;
    text-decoration: none;
    font-size: 18px;
    text-transform: uppercase;
    transition:  color 0.3s ease; 
}

nav ul li a:hover {
    color: #00969b; 
     
}



/* Sezione del museo virtuale */
.museum-section {
    
    text-align: center;
    font-family: "Josefin Sans", sans-serif;
    background-color: #ffffff;
    padding: 40px 20px;
    margin-top: 10px;
    margin-left: 650px;
    margin-right: 650PX;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

}

.museum-section h2 {
    font-family: "Cinzel Decorative", serif;
  font-weight: 600;
  font-style: normal;
    font-size: 28px;
    color: #076c00;
    margin-bottom: 30px;
}

.museum-section p {
    font-family: "Josefin Sans", sans-serif;
    font-size: 18px;
    margin-bottom: 30px;
}
.image-box {
    position: absolute;
    top: 35px;
    right: 25px;
    width: 110px; /* Puoi regolare la larghezza come preferisci */
    height: auto;
    transition: transform 0.3s ease;
    
    overflow: hidden;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    
}
.image-box:hover {
    transform: scale(1.20);


}



.museum-section button {
    
    font-family: "Josefin Sans", sans-serif;
    background-color: #076c00;
    color: #0e3878;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    
}

.museum-section button:hover {
    background-color: #00969b;
}
.museum-button-img{
margin-top: -150px;
margin-left: 30px;
}


.spacer-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid white;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    text-align: center;
    padding: 20px 30px; /* Spazio interno */
    margin: 20px auto;
    width: 80%;           /* <-- invece di inline-block, meglio dare larghezza fissa percentuale */
    max-width: 840px; 
}


    

.catalog-section {
    
    font-family: "Josefin Sans", sans-serif;
    font-weight: 600;
    font-size: 24px;
    color: #0e3878;
    font-style: normal;
    padding: 40px 20px;
    margin-top: 100px;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    background-image: url("sfondobox.jpg");
    background-size: cover;         /* Per coprire tutta l'area */
    background-position: center;    /* Centrato */
    background-repeat: no-repeat;   /* Non ripetere l'immagine */
   
   
}

/* Contenitore per le righe delle stanze */
.row {
    display: flex;
    justify-content: space-between; /* Spaziatura tra le stanze */
    margin-bottom: 20px; /* Spazio tra le righe */
}

/* Impostazioni per le stanze */
.room {
    background-color: #f9f9f9;
    padding: 20px;
    margin: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-basis: 30%; /* Imposta la larghezza delle stanze al 30% */
    text-align: center;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out;
}

.room:hover {
    transform: scale(1.10);
}

/* Media query per migliorare la visualizzazione su schermi più piccoli */
@media (max-width: 768px) {
    .room {
        flex-basis: 48%; /* Su schermi più piccoli, due stanze per riga */
    }
}

@media (max-width: 480px) {
    .room {
        flex-basis: 100%; /* Su schermi molto piccoli, una stanza per riga */
    }
}


.room .popup-image {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;               /* Usa una percentuale rispetto al box */
    max-width: 400px;         /* Limite massimo per non esagerare */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: white;
    padding: 5px;
}

.room:hover .popup-image {
    display:grid;
}

.room h3 {
    font-family: "Josefin Sans", sans-serif;
    font-size: 24px;
    color: #076c00;
    margin-bottom: 10px;
}

.room p {
    font-size: 16px;
    color: #555;
}


/* Footer */
footer {
    background-color: #0e3878;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-radius: 8px;
}

footer p {
    font-size: 16px;
}

/* Media Queries per dispositivi mobili */
@media screen and (max-width: 768px) {
    header h1 {
        font-size: 28px;
    }

    nav ul li {
        display: block;
        margin-bottom: 10px;
    }

    .museum-section, .catalog-section {
        padding: 20px;
    }

    .museum-section button {
        width: 100%;
        padding: 15px;
    }

    .room {
        padding: 15px;
    }

    footer p a{
        font-size: 14px;
    }
    
}

