* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #000000;
    overflow-x: hidden;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.container::before{
    content: "";
    position: absolute;
    inset: 0;
    background: url('img/background.png');
    background-size: cover;
    filter: contrast(99);
    z-index: 0;
}

.content {
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
}

.logo-container {
    height: 60%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.logo-container h2 {
    display: none;
}

.logo {
    max-width: 450px;
    max-height: 80%;
    z-index: 1;
}

.logo-container a.menu-button{
    background-color: #288F4A;
    color: #FFFFFF;
    display: inline-block;
    cursor: pointer;
    margin-top: 2rem;
    padding: 20px;
    border: 3px solid;
    border-radius: 100px;
    font-size: 150%;
    font-weight: 600;
    text-decoration: none !important;
}

.contacts {
    position: relative; /* per ancorare il ::after */
    height: 40%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background:linear-gradient(to bottom, transparent 15vh, #C3202F 10vh);
    overflow: visible; /* se l'immagine esce  */
    z-index: 0; /* assicura che stia sotto al contenuto */
}

.contacts::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('img/footer.png') no-repeat center bottom 4vh;
    background-size: cover;
    z-index: -1; /* manda dietro al testo */
    pointer-events: none; /* evita che "copra" clic */
}

.contact-info {
    width: 100%;
    text-align: center;
    padding: 15vh 10px 20px;
    font-weight: 700;
    font-size: 44px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    color: white;
}

.location {
    font-weight: 600;
    color: #000;
}

.social-container {
    background-color: white;
    width: 80%;
    max-width: 800px;
    border-radius: 50px;
    margin-top: 10px;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-size: 22px;
}

.social-links {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-weight: 500;
    padding: 5px 10px;
}

.social-icon {
    width: 48px;
    height: 48px;
    margin-right: 10px;
}

.phone a {
    color: #ffffff;
    text-decoration:none ;
}

.phone a:hover{
    text-decoration:underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo {
        max-width: 50%;
    }

    .logo-container{
        flex-direction: column;
    }

    .logo-container h2{
        display: inline;
        text-transform: uppercase;
        margin-bottom: 5vh;
        font-weight: 600;
        font-size: 80%;
    }

    .logo-container a.menu-button{
        font-size: 120%;
        padding: 12px;
    }

    .contacts{
        background:linear-gradient(to bottom, transparent 10vh, #C3202F 5vh);
    }
    .contacts::before{
        background-position:center bottom 25vh !important;
    }
    
    .contact-info {
        font-size: 30px;
        padding: 5vh 5px 15px;
        /* flex-direction: column; */
        width: 60vw;
        gap: 5px;
        margin-top: 30px;
    }
    
    .separator {
        display: none;
    }
    
    .social-container {
        width: 90%;
        font-size: 0.5em;
        padding: 5px;
    }
    
    .social-links {
        flex-wrap: nowrap;
        padding: 2px;
        gap: 3px;
    }
    .social-icon {
        width: 24px;
        height: 24px;
    }
    
    .social-link {
        /* width: 100%; */
        padding:2px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-info {
        font-size: 18px;
        padding: 15px 5px 10px;
    }
    
    .contacts::after {
        height: 40px;
    }
}