html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; 
    font-family: "Source Sans Pro";

}


.container {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: bisque;
}

.content-header, .grid-container, .footer-inner {
    max-width: 1200px; 
    margin: 0 auto;
    padding: 20px;
}

.banner {
    width: 100%;
    height: 50vh; 
    position: relative; 
    overflow: hidden;
    background-color: #000; 
}


.banner::after {
    content: '';         
    position: absolute;   
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    
    background-color: rgba(0, 0, 0, 0.2); 
    
    z-index: 2;         
}

.banner img {
    width: 100%;
    height: 100%;   
    display: block; 
    object-fit: cover; 
    border-radius: 0; 
    position: relative; 
    z-index: 1;           
}



/* Header */
.content-header {
    position: absolute; 
    top: 20%;           
    left: 50%;      
    transform: translate(-50%, -50%);
    z-index: 10;        
    width: 100%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.5);
     box-shadow: 0 5px 15px rgba(0,0,0,0.1);

    padding: 20px;
    border-radius: 10px;
}

.content-header h1 {
    text-align: center;
    color: #333;
    font-weight: 400;
    margin: 0;
}

.highlight {
    color: #fbc948;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
}
.content-header h2 {
    text-align: center;
    color: #333;
    margin: 0;
}



/* Griglia dei Box */
.grid-wrapper {
    width: 100%;
    background: linear-gradient(360deg, #faf5da 0%, #c3c17d 50%, #8b8e5f 100%);
    padding: 60px 0; 
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; 
}

.box {
    background: white;
    border: none;
    border-radius: 8px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column; 
    height: 100%;
   
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 5px rgba(0,0,0,0.1);
}


.box:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.box a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    cursor: pointer;
}

.box-content {
    padding: 30px 15px;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
}
.box-logo-wrapper {
    width: 100%;
    height: 90px; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    margin-bottom: 20px;
}
.box-logo-wrapper img {
   
    max-height: 80px; 
    max-width: 90%;   
    width: auto;     
    height: auto;     
    object-fit: contain; 
}

.box-content span, .box-content p {
    display: block;
    min-height: 3em; 
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    margin: 0;
    color: #444;
}

.box-content img {
   
    height: 80px; 
    width: auto; 
    object-fit: contain; 
    margin-bottom: 20px;
}

.box-content span {
    display: block;
    min-height: 3em; 
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.box-footer {
    background: #fbc948;
    padding: 15px;
    font-weight: bold;
    color: #333;
    width: 100%;            
    text-align: center;      
    text-transform: uppercase;
    font-size: 0.9rem;
    
    display: flex;
    justify-content: center; 
    align-items: center;    
    
    margin-top: auto;       
    box-sizing: border-box; 
    transition: transform 0.3s ease;
}

.box-footer:hover {
    background: #46443f;
    padding: 15px;
    font-weight: bold;
    color: #ecd543;
    width: 100%;            
    text-align: center;      
    text-transform: uppercase;
    font-size: 0.9rem;
    
    display: flex;
    justify-content: center; 
    align-items: center;    
    
    margin-top: auto;       
    box-sizing: border-box; 
}

/* Footer */
.main-footer {
    background: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 0px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links a {
    color: #fbc948;
    text-decoration: none;
    margin: 0 10px;
}

.footer-copy {
    margin-top: 15px;
    font-size: 0.9em;
    opacity: 0.7;
}

.riga-evidenziata td {
    background-color: #fbc948 !important;
    font-weight: bold;
}
        
