/* =========================================================
   PAGINA CONTATTI
========================================================= */

.contact-page {
    overflow: hidden;
    background: #faf7f1;
    color: #304d3d;
}

.contact-page *,
.contact-page *::before,
.contact-page *::after {
    box-sizing: border-box;
}

.contact-eyebrow {
    display: block;
    margin-bottom: 22px;
    color: #748778;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}


/* =========================================================
   HERO
========================================================= */

.contact-hero {
    display: grid;
    grid-template-columns: 47% 53%;
    min-height: 680px;
    background: #faf7f1;
}

.contact-hero__content {
    display: flex;
    padding: 100px 5vw 90px 7vw;
    flex-direction: column;
    justify-content: center;
}

.contact-hero h1 {
    max-width: 650px;
    margin: 0;
    color: #304d3d;
    font-family: "Playfair Display", serif;
    font-size: clamp(58px, 5.5vw, 92px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.contact-hero__text {
    max-width: 580px;
    margin: 38px 0 0;
    color: #59655e;
    font-family: "DM Sans", sans-serif;
    font-size: 18px;
    line-height: 1.85;
}

.contact-hero__note {
    margin: 15px 0 0;
    color: #304d3d;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.contact-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 26px;
    margin-top: 36px;
}

.contact-phone {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #304d3d;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.contact-phone svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-hero__visual {
    position: relative;
    min-height: 680px;
    overflow: hidden;
}

.contact-hero__image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-bottom-left-radius: 45% 34%;
}

.contact-hero__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.contact-hero__decoration {
    position: absolute;
    bottom: 8px;
    left: -35px;
    width: 190px;
    height: auto;
    fill: none;
    stroke: rgba(48, 77, 61, 0.15);
    stroke-width: 1.1;
}


/* =========================================================
   PULSANTI
========================================================= */

.contact-button {
    display: inline-flex;
    min-height: 54px;
    padding: 0 27px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #304d3d;
    border-radius: 999px;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

.contact-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-button:hover {
    transform: translateY(-3px);
}

.contact-button--primary {
    background: #304d3d;
    color: #ffffff;
}

.contact-button--primary:hover {
    background: #243c30;
    box-shadow: 0 15px 30px rgba(48, 77, 61, 0.15);
}

.contact-button--secondary,
.contact-button--maps {
    background: transparent;
    color: #304d3d;
}

.contact-button--secondary:hover,
.contact-button--maps:hover {
    background: #304d3d;
    color: #ffffff;
}


/* =========================================================
   INFORMAZIONI RAPIDE
========================================================= */

.contact-features {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 1320px;
    margin: -52px auto 0;
    border: 1px solid #ddd5ca;
    border-radius: 20px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: 0 20px 50px rgba(48, 77, 61, 0.06);
}

.contact-feature {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 38px 34px;
    border-right: 1px solid #ddd5ca;
}

.contact-feature:last-child {
    border-right: 0;
}

.contact-icon {
    display: flex;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f0ece3;
}

.contact-icon svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: #304d3d;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-feature h2 {
    margin: 0 0 10px;
    color: #304d3d;
    font-family: "Playfair Display", serif;
    font-size: 26px;
    font-weight: 500;
}

.contact-feature p {
    margin: 0;
    color: #667068;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 1.75;
}


/* =========================================================
   MODULO E SEDE
========================================================= */

.contact-main-section {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
    gap: 28px;
    max-width: 1320px;
    margin: 0 auto;
    padding: 90px 0 110px;
}

.contact-form-card,
.contact-location-card {
    padding: 42px;
    border: 1px solid #ddd5ca;
    border-radius: 22px;
    background: #fffdf9;
}

.contact-card-heading {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 36px;
}

.contact-card-heading span {
    display: block;
    margin-bottom: 5px;
    color: #819083;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.contact-card-heading h2 {
    margin: 0;
    color: #304d3d;
    font-family: "Playfair Display", serif;
    font-size: 38px;
    font-weight: 500;
    line-height: 1.15;
}

.contact-card-heading p {
    margin: 10px 0 0;
    color: #667068;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   FORM
========================================================= */

.contact-form {
    display: grid;
    gap: 23px;
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.contact-field {
    display: grid;
    gap: 9px;
}

.contact-field label {
    color: #36493e;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #dcd5ca;
    border-radius: 9px;
    outline: none;
    background: #fffdf9;
    color: #35483d;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-field textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: #7f9284;
    box-shadow: 0 0 0 3px rgba(48, 77, 61, 0.08);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #9a9e99;
}

.contact-form__submit {
    justify-self: start;
    border: 0;
}

.contact-form__privacy {
    margin: -4px 0 0;
    color: #7b837d;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   CARD SEDE
========================================================= */

.contact-location__block {
    padding: 0 0 28px;
    border-bottom: 1px solid #e0d9ce;
}

.contact-location__block h3 {
    margin: 0 0 10px;
    color: #304d3d;
    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.contact-location__block p {
    margin: 0;
    color: #5f6962;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

.contact-location__detail {
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 15px;
    padding: 24px 0;
    border-bottom: 1px solid #e0d9ce;
}

.contact-location__detail svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #6e8274;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-location__detail strong,
.contact-location__detail span,
.contact-location__detail small {
    display: block;
}

.contact-location__detail strong {
    margin-bottom: 7px;
    color: #304d3d;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.contact-location__detail span {
    color: #667068;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    line-height: 1.7;
}

.contact-location__detail small {
    margin-top: 7px;
    color: #8b625b;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
}

.contact-button--maps {
    width: 100%;
    margin-top: 28px;
}


/* =========================================================
   CTA FINALE
========================================================= */

.contact-final-cta {
    position: relative;
    overflow: hidden;
    padding: 105px 7vw;
    background: #dfe7dd;
}

.contact-final-cta::before,
.contact-final-cta::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(48, 77, 61, 0.12);
    border-radius: 50%;
}

.contact-final-cta::before {
    width: 320px;
    height: 320px;
    left: -130px;
    bottom: -170px;
}

.contact-final-cta::after {
    width: 230px;
    height: 230px;
    top: -130px;
    right: -80px;
}

.contact-final-cta__content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-final-cta h2 {
    margin: 0;
    color: #304d3d;
    font-family: "Playfair Display", serif;
    font-size: clamp(45px, 5vw, 72px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.contact-final-cta p {
    max-width: 620px;
    margin: 22px auto 0;
    color: #5d6961;
    font-family: "DM Sans", sans-serif;
    font-size: 17px;
    line-height: 1.8;
}

.contact-final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 35px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1380px) {

    .contact-features,
    .contact-main-section {
        width: calc(100% - 80px);
    }

}

@media (max-width: 1050px) {

    .contact-hero {
        grid-template-columns: 1fr;
    }

    .contact-hero__content {
        padding: 90px 7vw;
    }

    .contact-hero__visual {
        min-height: 570px;
    }

    .contact-hero__image {
        border-radius: 0;
    }

    .contact-features {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .contact-feature {
        border-right: 0;
        border-bottom: 1px solid #ddd5ca;
    }

    .contact-feature:last-child {
        border-bottom: 0;
    }

    .contact-main-section {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 700px) {

    .contact-hero__content {
        padding: 75px 22px;
    }

    .contact-hero h1 {
        font-size: 54px;
    }

    .contact-hero__text {
        font-size: 16px;
        line-height: 1.75;
    }

    .contact-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-phone {
        justify-content: center;
    }

    .contact-hero__visual {
        min-height: 430px;
    }

    .contact-features,
    .contact-main-section {
        width: calc(100% - 32px);
    }

    .contact-feature {
        grid-template-columns: 1fr;
        padding: 30px 25px;
        text-align: center;
    }

    .contact-feature .contact-icon {
        margin: 0 auto;
    }

    .contact-main-section {
        padding: 65px 0 80px;
    }

    .contact-form-card,
    .contact-location-card {
        padding: 30px 22px;
    }

    .contact-card-heading {
        flex-direction: column;
    }

    .contact-form__row {
        grid-template-columns: 1fr;
    }

    .contact-form__submit {
        width: 100%;
    }

    .contact-final-cta {
        padding: 80px 22px;
    }

    .contact-final-cta__actions {
        flex-direction: column;
    }

    .contact-final-cta__actions .contact-button {
        width: 100%;
    }

}/* =========================================================
   CONTATTI - LAYOUT SENZA CARD RAPIDE
========================================================= */

.contact-main-section {

    width: calc(100% - 80px);
    max-width: 1320px;

    margin: 55px auto 0;

    padding: 0 0 110px;

}

.contact-form-card,
.contact-location-card {
    box-shadow: 0 24px 60px rgba(48, 77, 61, 0.08);
}


/* Tablet */

@media (max-width: 1050px) {

    .contact-main-section {
        margin-top: 45px;
        padding-bottom: 90px;
    }

}


/* Smartphone */

@media (max-width: 700px) {

    .contact-main-section {
        width: calc(100% - 32px);
        margin-top: 30px;
        padding-bottom: 75px;
    }

}