* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
    background-color: var(--background-color);
}

section {
  flex: 1; /* prende tutto lo spazio rimanente */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
}

.logo {
    color: var(--primary-color);
    height: 80px;
}

.logo img {
    height: 100%;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
}

nav a.active {
    font-weight: bold;
    text-decoration: underline;
}

.signup-btn {
    background: var(--primary-color);
    color: var(--text-color-light);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
}

@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        right: 20px;
        background: var(--background-color);
        border: 1px solid var(--primary-color);
        padding: 15px;
        border-radius: 8px;
    }

    nav a {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    nav.active {
        display: flex;
    }
}

/* Overlay che oscura lo sfondo */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* nascosto di default */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

/* Contenuto del popup */
.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    padding: 30px 25px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Bottone chiudi (“×”) */
.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
}

/* Quando il modal è “attivo”: mostra overlay e contenuto */
.modal-overlay.show {
    display: flex;
}

.modal-overlay.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

footer {
    text-align: center;
    padding: 20px;
    background: var(--primary-color);
    color: var(--text-color-light);
    position: relative;
    bottom: 0;
    width: 100%;
}
