/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    background: #000428;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.page-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px calc(60px + 1rem);
    position: relative;
}



.background-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-effect {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(60px);
    animation: float 15s ease-in-out infinite;
    opacity: 0.5;
}

.orb-1 {
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    top: -10%;
    right: -10%;
    animation-delay: -2s;
}

.orb-2 {
    background: linear-gradient(135deg, #b100ff, #4facfe);
    bottom: -20%;
    right: 20%;
    animation-delay: -4s;
}

.orb-3 {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 40%;
    right: 30%;
    width: 400px;
    height: 400px;
    animation-delay: -6s;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background: rgba(255, 255, 255, 0.05);
}

.form-container {
    position: relative;
    z-index: 1;
    padding:2rem;
    background: rgba(165, 42, 69, 0.98); /* Restored bordeaux color */
    border-radius: 10px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    color: white; /* Restored white text color */
}

.page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px 15px calc(60px + 1rem);
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.privacy-link {
    display: block;
    margin: 1rem 0;
    color: white;
    text-decoration: underline;
    font-size: 0.9rem;
    text-align: center;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: white;
    font-size: 0.95rem;
}

.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.8rem;
}

.checkbox-container input[type="checkbox"] {
    margin-top: 3px;
    min-width: 16px;
    height: 16px;
}

.checkbox-container label {
    flex: 1;
    font-size: 0.82rem;
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: white;
    border: none;
    border-radius: 4px;
    color: #a52a45;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background: #f0f0f0;
}

.logo {
    width: 180px;
    margin-top: 2rem;
    z-index: 2;
    margin: 0 auto;
    margin-top: 50px;
}

.footer {
    background: #a52a45;
    color: white;
    text-align: center;
    padding: 0.8rem;
    font-size: 0.75rem;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-2%, 2%) rotate(120deg); }
    66% { transform: translate(2%, -2%) rotate(240deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Media Queries */
@media screen and (max-width: 360px) {
    .page-wrapper {
        padding: 10px 10px calc(60px + 1rem);
    }

    .form-container {
        padding: 1.5rem 1rem;
    }

    .form-title {
        font-size: 1.1rem;
    }

    .logo {
        width: 120px;
    }

    .gradient-orb {
        width: 300px;
        height: 300px;
    }

    .orb-3 {
        width: 200px;
        height: 200px;
    }
}

@media screen and (min-width: 361px) and (max-width: 480px) {
    .form-container {
        padding: 1.5rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .checkbox-container label {
        font-size: 0.75rem;
    }

    .logo {
        width: 140px;
    }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
    .page-wrapper {
        padding: 20px 15px calc(60px + 1rem);
    }

    .form-container {
        width: 95%;
    }
}

@media screen and (min-width: 769px) {
    .form-container {
        max-width: 500px;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 1rem;
    }

    .form-container {
        padding: 1.5rem;
        margin: 0.5rem auto;
        width: 95%;
    }

    .form-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0.8rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input {
        padding: 0.5rem;
    }
}

@media screen and (max-height: 700px) {
    body {
        padding-top: 0.5rem;
    }

    .form-container {
        padding: 1rem;
    }

    .form-group {
        margin-bottom: 0.6rem;
    }
}

/* Fix per dispositivi Apple */
@supports (-webkit-touch-callout: none) {
    .page-wrapper {
        padding-bottom: calc(80px + 1rem);
    }
}

/* Fix per schermi molto stretti e alti (come fold) */
@media screen and (max-width: 320px) and (min-height: 600px) {
    .page-wrapper {
        padding: 5px 5px calc(60px + 1rem);
    }
    
    .form-container {
        padding: 1rem;
    }

    .gradient-orb {
        width: 250px;
        height: 250px;
    }

    .orb-3 {
        width: 150px;
        height: 150px;
    }
}


@media screen and (max-width: 360px) {
    .page-container {
        padding: 10px 10px calc(60px + 1rem);
    }
}

@media screen and (min-width: 769px) {
    .page-container {
        max-width: 1200px;
    }

    .form-container {
        max-width: 500px;
    }

    .acea-logo {
        width: 140px;
    }

    .header-logo img {
        width: 150px;
    }
}

@media screen and (min-height: 800px) {
    .page-container {
        justify-content: center;
    }
}

/* Fix per dispositivi Apple */
@supports (-webkit-touch-callout: none) {
    .page-container {
        padding-bottom: calc(80px + 1rem);
    }
}

/* Fix per schermi molto alti */
@media screen and (min-height: 1000px) {
    .form-container {
        margin: 2rem auto;
    }
}

/* Fix per schermi molto stretti e alti (come fold) */
@media screen and (max-width: 320px) and (min-height: 600px) {
    .page-container {
        padding: 5px 5px calc(60px + 1rem);
    }
    
    .form-content {
        padding: 1rem;
    }
}


a.readAll {
    color: cornflowerblue;
}


.hidden {
    display: none;
  }
  
  .gestisci-link {
    text-align: center;
    margin: 15px 0;
  }
  
  .gestisci-link a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
    font-size: 14px;
  }
  

  b.bolderPrivacy {
    margin: 0 auto;
}