* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #00628b;
}

/*header {
    text-align: center;
    margin-bottom: 30px;
    padding: 5px;
    color: white; 
}*/

a {
  color: rgb(255, 255, 255);
  font-weight: bold;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    padding: 5px; 
    color: white; 
    margin-bottom: 30px;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    padding: 0 20px;
}

 .image-left, .image-right {
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.image-home {
  width: 50%;
  float: right;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

.content-wrapper {
    width: 1200px;
    background: transparent;
    margin: auto;   
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
}

.image-container {
    position: relative;
    float: left;
    width: 70%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    min-height: 600px;
    background-color: white;
    /* Proporzione 3:2 (800/1200 = 0.6667) */
}

.hotspot {
   position: absolute;
  width: 59px;
  height: 28px;
  background-color: rgba(255, 255, 255, 0.7);
  border: 3px solid #00628b; 
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #00628b;
  transform: translate(-50%, -50%);
}

.hotspot:hover {
    color: white;
    transform: translate(-50%, -50%) scale(1.2);
}

.list-container {
    width: 28%;
    background-color: #f7f4e2;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    min-height: 600px;
    overflow-y: auto;
    float: right;
}

.menu-container {
    width: 100%;
    background-color: #f7f4e2;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    min-height: 600px;
    overflow-y: auto;
    float: right;
}

#main {
    min-height: 600px;
    overflow-y: auto; 
    z-index: 1;
  position: relative;  
}
.list-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #00628b;
    color: #00628b;
}
.menu-list {
    list-style-type: circle;
    width: 50%;
    float: left;
}

.menu-list a{
    color:#00628b;
}
.name-list {
    list-style-type: none;
}

.name-item {
    padding: 5px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #00628b;
}

.item-number {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 25px;
    margin-right: 10px;
    font-size: 0.9rem;
}

.item-name {
    font-weight: 600;
    color: #2c3e50;
}

.item-description {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #00628b;
    color: white;
    border-radius: 10px 10px 0 0;
}

.modal-title {
    font-size: 1.5rem;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.modal-body {
    padding: 20px;
}

.modal-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.modal-text {
    line-height: 1.6;
    font-size: 1rem;
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

@media (max-width: 992px) {
    .content-wrapper {
         
    }

    .list-container {
        
    }

    .image-container {
       
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .hotspot {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .modal {
        width: 95%;
    }
}


div.iframe-link {
  height: 100%;
  width: 100%;
  z-index: 0;
  position: absolute; 
  top: 0;
  right: 0;
}

/*div.iframe-link {
  height: 94vh;
  border: 0px solid blue;
  z-index: 0;
  margin: 0;
  position: absolute;
  top: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 100%;
}*/

div.iframe-link.active {
  z-index: 2; /* Quando attivo, viene sopra */
}

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #000 0%, #1d3e75 100%);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    align-items: center;
  display: flex;
}

.transition-overlay.active {
    opacity: 1;
}

.transition-overlay img{   
    display: block;
    margin: 0 auto;
    width: 80px;
    height: 80px;
    object-fit: cover;
    opacity: 0.2;
}