html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}

.main-header {
    width: 90%;
    max-width: 1600px;
    margin: 20px auto;
	margin-top: 0;
	margin-bottom: 0;
    padding: 15px;
    border-radius: 10px;
    box-sizing: border-box;

    font-size: 20px;
    color: #1e3a8a;
    font-weight: 400;

    height: 140px;            
    display: flex;
    flex-direction: column;
    justify-content: center;    
	text-align: center;
}

.main-title {
    text-align: center;
	margin-bottom: 10px;
	margin-top: 0;
    font-size: 40px;
    letter-spacing: 1px;
	color: white;	
}

.main-bg {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    position: relative; 
    display: flex;
    flex-direction: column;
}

.hero-bg {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/uma_mezzanotte/aa_background_1920.jpg');
    background-size: cover;
    background-position: center top;
    z-index: -1; 
    pointer-events: none;
}

@media (max-width: 1280px) {
    .hero-bg {
        background-image: url('images/uma_mezzanotte/aa_background_1280.jpg');
    }
}

@media (max-width: 768px) {
    .hero-bg {
        background-image: url('images/uma_mezzanotte/aa_background_768.jpg');
        background-position: center center;
    }
}

.page-content {
    flex: 1;
    padding-top: 10px;
    position: relative;
    z-index: 1;
}

.family-row {
    display: flex;
    flex-wrap: wrap;        
    justify-content: center;
    gap: 10px;
	width: 90%;
    max-width: 900px;   
    margin: 0 auto;  
}

.family-box {
    flex: 1 1 calc(16.66% - 10px);
    min-width: 120px;  
    background: white;
    text-align: center;
    border-radius: 15px;
    padding: 10px;
    text-decoration: none;
    color: #1e3a8a;
    box-sizing: border-box;    
}

.family-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.search-main {
    width: 90%;        
    max-width: 900px;   
    margin: 30px auto;
    background: auto;
    border-radius: 10px;

    display: flex;    
    flex-wrap: wrap;  
    gap: 10px;  

}

.search-main input {
    flex: 1;    
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-weight: 600;
    color: #193352;
}

.search-main input::placeholder {
    color: #60b1d6;
    font-weight: 500;
}

.search-main button {
    padding: 12px 20px;
    background: #89c0f0;
    color: #143ca3;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.search-main button:hover {
	transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.site-footer {
    background: #193352;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    gap: 20px;
}

.footer-left a,
.footer-right a {
    text-decoration: none;
    color: #b3d6e3;
    font-weight: 400;
    font-size: 18px;
    margin-right: 15px; 
}

.footer-left a:last-child,
.footer-right a:last-child {
    margin-right: 0; 
}

.footer-left a:hover,
.footer-right a:hover {
	color: #d9ebf1;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 150px);
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.footer-left a,
.footer-right a {
    margin-right: 0;
}

.separator {
    color: #b3d6e3;
    margin: 0 8px;
    user-select: none;
}