

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

.container, .navbar-container, .services {
    max-width: 1600px;
    margin: 0;
}
html, body {
    overflow-x: hidden;
    max-width: 100%;
    margin: 0;
    height: 100%;
}

body{
    font-family: Inter, sans-serif;
    background: var(--secondary-blue);
    min-height: 100vh;
    background-attachment: scroll;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}
@media (max-width: 768px) {

    body {
        background-attachment: scroll;
    }
}

.container, .navbar-container, .services {
    max-width: 1600px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Navbar */

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    width: 100%;
    position: fixed;
    top: 0;
    background: white;
    box-shadow: 0 10px 20px rgb(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: all 0.3s ease;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    max-width: 1600px;
}

.navbar-logo {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-blue);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.navbar-logo:hover {
    color: var(--secondary-blue);
}

.navbar-logo span {
    color: var(--primary-blue);
}

.navbar-container .navbar-menu {
    display: flex;
    text-align: center;
    height: 100%;
    gap: 1.5rem;
    list-style: none;
    margin: 0 auto;
    display: flex;

}

.navbar-container .navbar-menu li a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
    color: black;
    font-size: 1.3rem;
    font-weight: 900px;
    padding: 8px 20px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.navbar-menu li a.active {
    border-bottom: 4px solid var(--primary-blue);
    padding-bottom: 1px;
}
.navbar-menu li a:hover {
  border-bottom: 4px solid var(--primary-blue);
  padding-bottom: 1px;
}

.navbar-menu-contattaci {
    padding: 10px 20px;
    background: var(--accent-yellow);
    color: black;
    font-weight: bold;
    text-align: center;
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
    justify-content: center;
    text-decoration: none;
    border-radius: 15px;
}
.navbar-menu-contattaci a {
    color:#1d1d1d;
}

.navbar-toggle {
    display: none;
    background: transparent;
    padding: 10px;
    border: none;
    cursor: pointer;
    z-index: 1000;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.navbar-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: #00296B;
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

/* Responsive Navbar */
@media (max-width: 880px) {
    .navbar {
        backdrop-filter: blur(10px);
        background: white;
    }

    .navbar-logo {
        font-size: 45px;
    }

    .navbar-container .navbar-menu {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem;
        position: fixed;
        height: 100vh;
        width: 280px;
        top: 0;
        right: 0;
        padding: 5rem 2rem;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(15px);
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .navbar-container .navbar-menu.active {
        display: flex;
        transform: translateX(0);
    }

    .navbar-container .navbar-menu li a {
        font-size: 1.4rem;
        padding: 12px 20px;
        width: 100%;
    }

    .navbar-toggle {
        display: block;
    }

    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px ) {
    .navbar {
        height: 100px;
    }
}



/* Footer */

footer{
    background: #7096de;
    color: #ecf0f1;
    padding: 60px 0 30px;
    margin-top: auto;
}
.footer-contenitore {
    max-width: 1200px;
    padding: 20px;
    margin: 0 auto;
    overflow-x: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    margin: 10px;
    flex-direction: column;
}

.footer-section img {
    width: 40%;
    height: auto;
    align-items: center;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-section h3 {
    color: var(--primary-blue);
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.6;
}

.button-footer {
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    letter-spacing: 0.5px;
    font-weight: bold;
    font-size: 1.2rem;
    color: #ffffff;
    background-color: var(--primary-blue);
    border: 2px solid black;
    border-radius: 35px;
    padding: 10px 10px 10px 10px;
    text-align: center;
    cursor: pointer;
    align-items: center;
    width: 280px;
    height: 60px;
}

.button-footer:hover {
    background: #030a9a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 8, 135, 0.4);
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info h4 {
    color: var(--primary-blue);
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #ffffff;
}
.contact-item i {
    margin-right: 12px;
    color: #3498db;
    width: 20px;
}

.social-media {
    display: flex;
    flex-direction: column;
}

.social-media h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link img {
    display: inline-block;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 45px;
    text-decoration: none;
}

.payments {
    display: flex;
    justify-content: center; /* o flex-start / flex-end */
    padding: 10px 0;
}

.logo-payments {
    display: flex;
    gap: 20px; /* spazio tra le icone */
    align-items: center;
}

.logo-payments img {
    height: 30px; /* dimensione uniforme */
    width: auto;
    transition: transform 0.2s ease;
}

.logo-payments img:hover {
    transform: scale(1.05); /* leggero zoom al passaggio */
}



.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 30px;
    text-align: center;
    color: #ffffff;

}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom a {
    color: #000000;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/*Responsive footer*/
@media (max-width: 760px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section img {
        margin: 0 auto 20px;
    }

    .footer-section h3 {
        text-align: left;
    }
    .footer-section p {
        text-align: left;
    }
        

    .button-footer {
        width: 100%;
        max-width: 348px;
        margin: 20px auto 0;
    }

    .social-links {
        justify-content: center;
    }

}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }
    .footer-contenitore {
        padding: 0 15px;
    }
    .button-footer {
        width: 260px;
        height: 55px;
        font-size: 1.1rem;
    }
    .footer-links {
        text-align: left;
        margin-left: 25px;
    }
    .contact-info {
        text-align: left;
        margin-left: 25px;
    }
    .social-media img {
        text-align: left;
    }
}


