html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
}

.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 300px;
    background: url('./../content/ambulanze.webp') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px 0;
    margin: 0;
}

.hero h1 {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    padding: 0 15px;
}

.hero::before, .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero::before {
    background: rgba(255, 0, 0, 0.25);
    backdrop-filter: blur(3px);
}

.hero::after {
    background-color: rgba(255, 0, 0, 0.151);
}

.hero > * {
    position: relative;
    z-index: 2;
}

.section-title {
    color: #cc0000;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 2rem;
}

.custom_bold {
    font-weight: bold;
    color: #cc0000;
}

.btn_scarica {
    background-color: #cc0000;
    color: white;
    padding: 12px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 5px; 
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.btn_scarica:hover {
    background-color: #a30000;
    transform: translateY(-2px);
}

.btn_scarica:active {
    transform: translateY(2px);
}

.form-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

iframe {
    width: 100%;
    border: none;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.5rem; 
    }

    .section-title {
        font-size: 1.5rem; 
    }

    .btn_scarica {
        font-size: 1rem; 
        padding: 10px 25px;
    }

}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .btn_scarica {
        font-size: 0.9rem;
        padding: 8px 20px;
    }
}