.bodyContatti {
    font-family: Satoshi, sans-serif;
    color: #25182c;
}

.bodyContatti .hero_section.contatti {
    height: 60vh;
    min-height: 400px;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/images/contatti-hero.jpg');
    background-position: 0px 0px, 50% 50%;
    background-size: auto, cover;
    background-repeat: repeat, no-repeat;
    filter: brightness(151%) contrast(114%) hue-rotate(21deg);
}

.centered {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.label.white {
    color: #fff;
}

.label.white.medium {
    font-weight: 500;
}

.p.white.big {
    font-size: 16px;
    text-align: center;
}

.p.white {
    color: #fff;
}

.sectionContatti {
    padding-top: 80px;
    padding-bottom: 40px;
}

.sectionContatti.nomarginbottom {
    padding-bottom: 0;
}

.bodyContatti .h2 {
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: 48px;
    line-height: 120%;
    font-weight: 900;
    text-align: center;
}

.linkImageLittle {
    text-decoration: underline;
    font-weight: 600;
    color: #653279;
    word-break: break-word;
}

.bodyContatti .h2.white {
    color: #fff;
}

.bodyContatti .titolo {
    margin-top: 8px !important;
    margin-bottom: 16px !important;
    font-size: 32px !important;
    line-height: 150% !important;
    color: #25182c;
    font-weight: 700 !important;
}

.bodyContatti ._2-col {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    align-items: flex-start;
}

.bodyContatti .form-block {
    margin-bottom: 0px;
    padding: 40px;
}

.bodyContatti .input-field {
    min-height: 48px;
    border: 1px solid #ddd;
    border-radius: 16px;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.bodyContatti .input-field:focus {
    outline: none;
    border-color: #653279;
}

.bodyContatti .input-field.area {
    min-height: 200px;
    margin-bottom: 24px;
    padding: 16px;
    resize: vertical;
}

.bodyContatti .input-field-wrapper {
    width: 100%;
    margin-top: 20px;
}

.bodyContatti .input-field-wrapper.half {
    width: 100%;
}

.bodyContatti label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.bodyContatti .button-primary {
    padding: 18px 32px;
    border-radius: 20px;
    background-color: #653279;
    font-size: 16px;
    font-weight: 500;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
}

.bodyContatti .button-primary:hover:not([disabled]) {
    background-color: #533363;
    transform: translateY(-2px);
}

.bodyContatti .button-primary:active:not([disabled]) {
    transform: translateY(0);
}

.bodyContatti .contact-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.bodyContatti .contact-wrapper.margin {
    margin-top: 32px;
    margin-bottom: 24px;
}

.bodyContatti .icon-wrapper.margin {
    margin-right: 16px;
    flex-shrink: 0;
}

.bodyContatti .text-link {
    color: #653279;
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    word-break: break-word;
}

.bodyContatti .contattaci-wrapper {
    margin-bottom: 40px;
}

.bodyContatti .social-icons-wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.bodyContatti .social-link {
    display: flex;
    width: 48px;
    height: 48px;
    justify-content: center;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 50px;
    box-shadow: 0 1px 32px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.bodyContatti .social-link:hover {
    border-color: #653279;
    transform: translateY(-2px);
}

.bodyContatti .form {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.textContact {
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: -0.01em;
    color: #25182C;
}

.containerContatti {
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 24px;
    padding-left: 24px;
}

.bodyContatti .flex-child-half._40 {
    width: 100%;
}

.bodyContatti .flex-child-half._40.relative.form {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 16px;
    box-shadow: 0 1px 32px 0 rgb(0 0 0 / 5%);
    background-color: #fff;
    position: relative;
    top: 0;
}

.contattiLabel {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.input-field.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.error-message {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
}

.alert {
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 12px;
}

.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* TABLET - da 768px a 991px */
@media screen and (min-width: 768px) {
    .bodyContatti .input-field-wrapper.half {
        width: 48%;
    }

    .bodyContatti ._2-col {
        gap: 60px;
    }

    .bodyContatti .form-block {
        padding: 40px;
    }

    .bodyContatti .button-primary {
        width: auto;
        min-width: 200px;
    }
}

/* DESKTOP - da 992px in su */
@media screen and (min-width: 992px) {
    .bodyContatti .hero_section.contatti {
        height: 60vh;
    }

    .bodyContatti .h2 {
        font-size: 48px;
    }

    .bodyContatti ._2-col {
        flex-wrap: nowrap;
        gap: 0;
    }

    .bodyContatti .flex-child-half._40 {
        width: 45%;
    }

    .bodyContatti .flex-child-half._40.relative.form {
        width: 50%;
        position: relative;
        top: -140px;
    }

    .sectionContatti {
        padding-bottom: 0;
    }
}

/* MOBILE SMALL - fino a 479px */
@media screen and (max-width: 479px) {
    .bodyContatti .hero_section.contatti {
        height: 50vh;
        min-height: 350px;
    }

    .bodyContatti .h2 {
        font-size: 32px;
    }

    .bodyContatti .titolo {
        font-size: 24px !important;
    }

    .bodyContatti .form-block {
        padding: 24px;
    }

    .containerContatti {
        padding-right: 16px;
        padding-left: 16px;
    }

    .sectionContatti {
        padding-top: 40px;
    }

    .bodyContatti .social-icons-wrapper {
        gap: 12px;
    }

    .bodyContatti .social-link {
        width: 44px;
        height: 44px;
    }

    .p.white.big {
        font-size: 14px;
    }
}

/* MOBILE MEDIUM - da 480px a 767px */
@media screen and (min-width: 480px) and (max-width: 767px) {
    .bodyContatti .h2 {
        font-size: 36px;
    }

    .bodyContatti .titolo {
        font-size: 28px !important;
    }

    .bodyContatti .form-block {
        padding: 32px;
    }
}