* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1000px; 
    margin: 0 auto;    
    padding: 20px;
}

.header {
    background-color: #fff;
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

.griglia-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
}

.testo-intro {
    flex: 1; 
    min-width: 300px;
}


.immagine-intro {
    flex: 1;
    text-align: center;
}

.immagine-intro img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

h1 {
    color: #004488; 
    font-size: 28px;
    margin-bottom: 15px;
}

.sottotitolo {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

.lista-vantaggi {
    list-style: none;
    font-weight: bold;
    color: #004488;
}

.lista-vantaggi li {
    margin-bottom: 8px;
}

.sezione-iscrizione {
    background-color: #eef5ff; 
    padding: 30px 0;
    margin-bottom: 30px;
}

.box-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ddd;
    max-width: 600px;
    margin: 0 auto; 
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.box-form h2 {
    color: #333;
    margin-bottom: 5px;
}

.box-form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.checkbox-group {
    text-align: left;
    font-size: 14px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-rosso {
    background-color: #d32f2f; 
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
}

.btn-rosso:hover {
    background-color: #b71c1c;
}

.blocco-info {
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
}

.blocco-info p{
    text-align: justify;  
    hyphens: auto;       
    word-wrap: break-word;
    text-justify: inter-word;
}
.testo-footer{
    text-align: justify;  
    hyphens: auto;       
    word-wrap: break-word;
    text-justify: inter-word;
    
}

h3 {
    color: #333;
    margin-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 5px;
}

.footer {
    background-color: #333;
    color: #bbb;
    padding: 40px 0;
    font-size: 13px;
    margin-top: 40px;
}

.footer h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

.testo-footer {
    margin-bottom: 15px;
    line-height: 1.5;
}

.copyright {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
}

@media (max-width: 768px) {
    .griglia-header {
        flex-direction: column;
    }
    
    h1 {
        font-size: 24px;
    }
}


.iframe-responsive {
    width: 100%;
    border: none;
    overflow: hidden;
    display: block;
}

@media (min-width: 769px) {
    .iframe-responsive {
        height: 950px;
    }
}

@media (max-width: 768px) {
    .iframe-responsive {
        height: 950px; 
    }
}

@media (max-width: 580px) {
    .iframe-responsive {
        height: 1050px; 
    }
}


@media (max-width: 480px) {
    .iframe-responsive {
        height: 1150px; 
    }
    .box-form{
        padding:0;
    }
}


@media (max-width: 380px) {
    .iframe-responsive {
        height: 1250px; 
    }
    .box-form{
        padding:0;
    }
    .container{
        padding:0;
    }
}


@media (max-width: 425px) {
    .nav-links a {
        display:none;
    }
}




.policy {
    margin: 20px 0;
    text-align: center;
}

.policy a {
    color: #dddddd !important; 
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.5s;
}

.policy a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.separatore {
    color: #dddddd !important;
    margin: 0 10px;
    font-size: 0.9rem;
}

.copyright {
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
}

.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    width: 100%;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

.logo img {
    max-height: 60px; 
    width: auto;
    display: block;
}

.nav-links a {
    margin-left: 30px;
    text-decoration: none;
    color: #444;
    font-size: 17px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #007bff; 
}

@media (max-width: 600px) {
    .nav-links a {
        margin-left: 10px;
        font-size: 13px;
    }
    .logo img {
        max-height: 35px;
    }
}