/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f5f7fa;
    font-size: 18px; /* Font grande per anziani */
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
    color: white;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.logo h1 {
    font-size: 42px;
    margin-bottom: 8px;
    font-weight: 700;
}

.tagline {
    font-size: 20px;
    opacity: 0.95;
}

/* Hero Section */
.hero {
    background: white;
    padding: 60px 0;
    text-align: center;
    border-bottom: 4px solid #0066cc;
}

.hero-title {
    font-size: 38px;
    color: #d32f2f;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 22px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.6;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit {
    background: #f0f8ff;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid #0066cc;
}

.benefit .icon {
    font-size: 36px;
    color: #0066cc;
    display: block;
    margin-bottom: 10px;
}

.benefit p {
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

/* Form Section */
.form-section {
    padding: 60px 0;
    background: white;
}

.tier-badge {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
    border-radius: 16px;
    border: 3px solid #0066cc;
}

.badge-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.tier-badge h3 {
    font-size: 32px;
    color: #0066cc;
    margin-bottom: 10px;
}

.tier-price {
    font-size: 36px;
    color: #4caf50;
    font-weight: 700;
}

/* Form */
.audit-form {
    background: #f9fafb;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.audit-form h4 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.form-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 19px;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
}

/* Buttons */
.btn {
    padding: 18px 36px;
    font-size: 20px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    display: inline-block;
    text-decoration: none;
}

.btn-large {
    width: 100%;
    padding: 22px;
    font-size: 22px;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

.btn-secondary {
    background: #ff9800;
    color: white;
}

.btn-secondary:hover {
    background: #f57c00;
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover {
    background: #388e3c;
}

.btn-outline {
    background: white;
    color: #0066cc;
    border: 3px solid #0066cc;
}

.btn-outline:hover {
    background: #0066cc;
    color: white;
}

.privacy-note {
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
    color: #666;
}

.privacy-note a {
    color: #0066cc;
    text-decoration: underline;
}

/* Results Section */
.results-section {
    padding: 60px 0;
    background: #f5f7fa;
}

.results-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 10px;
    color: #333;
}

.results-subtitle {
    text-align: center;
    font-size: 20px;
    color: #666;
    margin-bottom: 40px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.result-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    border-top: 4px solid #0066cc;
}

.result-card h4 {
    font-size: 20px;
    color: #666;
    margin-bottom: 15px;
}

.result-value {
    font-size: 48px;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.result-value.low {
    color: #d32f2f;
}

.result-value.medium {
    color: #ff9800;
}

.result-value.high {
    color: #4caf50;
}

.result-description {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
}

/* Upgrade Box */
.upgrade-box {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 40px;
}

.upgrade-box h3 {
    font-size: 32px;
    margin-bottom: 15px;
}

.upgrade-box p {
    font-size: 20px;
    margin-bottom: 25px;
}

/* Tier Cards */
.upgrade-section {
    margin-bottom: 40px;
}

.upgrade-section h3 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 30px;
    color: #333;
}

.tier-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.tier-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border: 3px solid #e0e0e0;
    position: relative;
}

.tier-card-featured {
    border-color: #0066cc;
    transform: scale(1.05);
}

.tier-badge-featured {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9800;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.tier-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.tier-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.tier-header h4 {
    font-size: 26px;
    margin-bottom: 10px;
    color: #333;
}

.tier-cost {
    font-size: 28px;
    color: #0066cc;
    font-weight: 700;
}

.tier-features {
    list-style: none;
    margin-bottom: 25px;
}

.tier-features li {
    padding: 12px 0;
    font-size: 17px;
    color: #555;
    border-bottom: 1px solid #f0f0f0;
}

/* Consultation Box */
.consultation-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border: 3px solid #0066cc;
}

.consultation-box h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #333;
}

.consultation-box p {
    font-size: 19px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 36px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

.modal-content h2 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #333;
}

.modal-content > p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.registration-form,
.consultation-form {
    margin-top: 20px;
}

.captcha-box {
    margin: 25px 0;
    display: flex;
    justify-content: center;
}

.success-message {
    text-align: center;
    padding: 40px;
}

.success-message h3 {
    font-size: 28px;
    color: #4caf50;
    margin-bottom: 20px;
}

.success-message p {
    font-size: 19px;
    color: #555;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.footer p {
    margin: 10px 0;
    font-size: 16px;
}

.footer a {
    color: #66b3ff;
    text-decoration: none;
    margin: 0 10px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 19px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .tier-cards {
        grid-template-columns: 1fr;
    }

    .tier-card-featured {
        transform: scale(1);
    }

    .modal-content {
        width: 95%;
        padding: 25px;
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-message {
    text-align: center;
    font-size: 20px;
    color: #666;
    margin-top: 20px;
}
