
/* =========================================
   SOGECO - RICERCA IMMOBILI
   ========================================= */

.sg-search-section {
    position: relative;
    z-index: 20;
    width: 100%;
    margin-top: -76px;
    padding: 0 24px 60px;
    background: transparent;
    font-family: "Manrope", Arial, sans-serif;
}

.sg-search-section *,
.sg-search-section *::before,
.sg-search-section *::after {
    box-sizing: border-box;
}

.sg-search-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.sg-search-card {
    position: relative;
    padding: 22px;
    background: #fff;
    border: 1px solid rgba(23, 35, 45, 0.06);
    border-radius: 18px;
    box-shadow:
        0 18px 55px rgba(23, 35, 45, 0.12),
        0 3px 10px rgba(23, 35, 45, 0.04);
}

/* Intestazione */

.sg-search-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.sg-search-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #a17d42;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.sg-search-heading h2 {
    margin: 0 0 7px;
    color: #17232d;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.7px;
}

.sg-search-heading p {
    margin: 0;
    color: #737b80;
    font-size: 13px;
    line-height: 1.6;
}

.sg-search-heading-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: #f8f5ee;
    color: #a17d42;
    font-size: 21px;
}

/* Campi di ricerca */

.sg-search-fields {
    display: grid;
    grid-template-columns:
        minmax(150px, 1.25fr)
        minmax(145px, 1fr)
        minmax(145px, 1fr)
        minmax(130px, 0.9fr)
        minmax(130px, 0.9fr);
    gap: 18px 14px;
    align-items: end;
}

.sg-search-field {
    min-width: 0;
}

.sg-search-field label {
    display: block;
    margin: 0 0 9px;
    color: #303940;
    font-size: 12px;
    font-weight: 700;
}

.sg-select-wrap {
    position: relative;
}

.sg-select-wrap > i {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #a17d42;
    font-size: 14px;
    pointer-events: none;
}

.sg-select-wrap select {
    display: block;
    width: 100%;
    min-width: 0;
    height: 52px;
    margin: 0;
    padding: 0 28px 0 38px;
    border: 1px solid #e3e5e6;
    border-radius: 8px;
    outline: none;
    background-color: #fff;
    color: #303940;
    font-family: inherit;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.sg-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 13px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #69737a;
    border-bottom: 1.5px solid #69737a;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.sg-select-wrap select:hover {
    border-color: #c9b48d;
}

.sg-select-wrap select:focus {
    border-color: #b08a4a;
    box-shadow: 0 0 0 3px rgba(176, 138, 74, 0.13);
}

/* Pulsante */

.sg-search-submit {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    margin-top: 5px;
}

.sg-search-submit button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 200px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid #17232d;
    border-radius: 8px;
    background: #17232d;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition:
        background 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.sg-search-submit button i {
    font-size: 14px;
}

.sg-search-submit button:hover,
.sg-search-submit button:focus-visible {
    border-color: #a17d42;
    background: #a17d42;
    color: #fff;
}

.sg-search-submit button:active {
    transform: translateY(1px);
}

/* Tablet */

@media (max-width: 1000px) {
    .sg-search-section {
        margin-top: -55px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .sg-search-card {
        padding: 28px;
    }

    .sg-search-fields {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 14px;
    }

    .sg-search-submit {
        grid-column: 1 / -1;
    }
}

/* Smartphone */

@media (max-width: 600px) {
    .sg-search-section {
        margin-top: -35px;
        padding: 0 14px 42px;
    }

    .sg-search-card {
        padding: 23px 18px 20px;
        border-radius: 15px;
        box-shadow: 0 12px 32px rgba(23, 35, 45, 0.12);
    }

    .sg-search-heading {
        gap: 12px;
        margin-bottom: 23px;
    }

    .sg-search-heading h2 {
        font-size: 23px;
    }

    .sg-search-heading p {
        max-width: 270px;
        font-size: 12px;
    }

    .sg-search-heading-icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 17px;
    }

    .sg-search-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 17px;
    }

    .sg-search-field label {
        margin-bottom: 7px;
    }

    .sg-select-wrap select {
        height: 50px;
        font-size: 13px;
    }

    .sg-search-submit {
        grid-column: auto;
        margin-top: 5px;
    }

    .sg-search-submit button {
        width: 100%;
        min-height: 52px;
    }
}
