.c-home-search-hero {
  min-height: clamp(320px, 46vw, 560px);
  padding: clamp(18px, 3.6vw, 48px) 0;
  background-color: var(--cp-charcoal);
  background-image:
    linear-gradient(90deg, color-mix(in srgb, var(--cp-charcoal) 52%, transparent), color-mix(in srgb, var(--cp-charcoal) 18%, transparent)),
    var(--c-home-search-hero-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.c-home-search-hero__inner {
  display: flex;
  min-height: clamp(280px, 40vw, 470px);
  align-items: center;
}

.c-home-search-hero__panel {
  width: min(100%, 1260px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #182326;
  color-scheme: light;
}

.c-home-search-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  grid-template-rows: auto auto;
  column-gap: clamp(24px, 3.2vw, 52px);
  row-gap: clamp(14px, 1.7vw, 24px);
  align-items: start;
}

.c-home-search-hero__grid > div {
  display: contents;
}

.c-home-search-hero__headline {
  grid-column: 1;
  grid-row: 1;
  margin: 0 0 clamp(10px, 1.6vw, 20px);
  color: var(--hero-clear-title);
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5.5vw, 3.9rem);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

.c-home-search-hero__panel #block-cp-page-title {
  display: none;
}

.c-home-search-hero__panel #block-cp-content {
  margin: 0;
  grid-column: 1;
  grid-row: 2;
}

.c-home-search-hero__panel #block-cp-exposedformcompany-searchblock-1 {
  margin: 0;
  grid-column: 1;
  grid-row: 2;
}

.c-home-search-hero__panel .views-element-container {
  margin: 0;
}

.c-home-search-form {
  padding: clamp(20px, 2.8vw, 32px) clamp(18px, 2.4vw, 30px) clamp(22px, 2.8vw, 30px);
  border: 1px solid #d6dde0;
  border-radius: 18px;
  background: rgba(249, 250, 251, 0.66);
  color: #182326;
}

.c-home-search-form__title {
  margin: 0 0 clamp(12px, 1.4vw, 18px);
  color: #182326;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: 0;
  text-wrap: balance;
}

.c-home-search-form .views-exposed-form {
  margin: 0;
}

.c-home-search-hero__panel form.views-exposed-form {
  margin: 0;
}

.c-home-search-form__controls,
.c-home-search-form > form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 56px;
  padding: 0;
  border: 1px solid #a9c0bd;
  border-radius: 20px;
  background: #f4f5f6;
  overflow: hidden;
}

.c-home-search-form > form > .js-form-item,
.c-home-search-form .views-exposed-form .js-form-item,
.c-home-search-form .js-form-item {
  margin: 0;
  min-width: 0;
}

.c-home-search-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.c-home-search-form > form > .form-actions,
.c-home-search-form .views-exposed-form .form-actions,
.c-home-search-form .form-actions {
  margin: 0;
  display: flex;
  align-items: stretch;
}

.c-home-search-form .views-exposed-form .form-text,
.c-home-search-form .form-text {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 0 14px 0 46px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7.25' stroke='%23182326' stroke-width='1.5'/%3E%3Cpath d='M16.5 16.5L20.25 20.25' stroke='%23182326' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: 15px 50%;
  border: 0;
  box-shadow: none;
  color: #182326;
  font-family: var(--font-body);
  font-size: clamp(0.94rem, 1.02vw, 1.02rem);
  line-height: 1.3;
}

.c-home-search-form .views-exposed-form .form-text::placeholder,
.c-home-search-form .form-text::placeholder {
  color: #6a777c;
  opacity: 1;
}

.c-home-search-form .views-exposed-form .form-text:focus,
.c-home-search-form .form-text:focus {
  outline: 0;
}

.c-home-search-form .views-exposed-form .form-submit,
.c-home-search-form .form-submit {
  display: block;
  width: 68px;
  min-width: 68px;
  height: 54px;
  border: 0;
  border-radius: 0 20px 20px 0;
  background-color: #5f837a;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12H18.5' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round'/%3E%3Cpath d='M14 7.5L18.5 12L14 16.5' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: center;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  transition: filter 160ms ease;
}

.c-home-search-form .views-exposed-form .form-submit:hover,
.c-home-search-form .form-submit:hover {
  filter: brightness(0.95);
}

.c-home-search-form__controls:focus-within,
.c-home-search-form > form:focus-within,
.c-home-search-form .views-exposed-form form:focus-within {
  border-color: #5f837a;
  box-shadow: 0 0 0 2px color-mix(in srgb, #5f837a 35%, transparent);
}

.c-home-search-hero__panel #block-cp-enelaboration,
.c-home-search-hero__panel #block-cp-views-block-company-search-map-hero {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin: 0;
}

.c-home-search-hero__panel #block-cp-enelaboration {
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid #d6dde0;
  border-radius: 18px;
  background: rgba(248, 249, 250, 0.85);

  a {
    text-decoration: underline;
  }
}

.c-home-search-hero__panel #block-cp-enelaboration h2 {
  margin: 0 0 12px;
  color: #182326;
  font-size: clamp(1.9rem, 2.25vw, 2.9rem);
  line-height: 1;
}

.c-home-search-hero__panel #block-cp-enelaboration p,
.c-home-search-hero__panel #block-cp-enelaboration a {
  color: #314349;
  font-size: clamp(1.02rem, 1.15vw, 1.28rem);
  line-height: 1.45;
}

.c-home-search-hero__panel #block-cp-enelaboration p {
  margin: 0 0 16px;
}

.c-home-search-hero__panel #block-cp-enelaboration p:last-child {
  margin-bottom: 0;
}

.c-home-search-hero__panel #block-cp-views-block-company-search-map-hero {
  min-height: clamp(280px, 30vw, 420px);
  border: 1px solid #d6dde0;
  border-radius: 18px;
  background: rgba(248, 249, 250, 0.94);
  overflow: hidden;
}

.c-home-search-hero__panel #block-cp-views-block-company-search-map-hero > div,
.c-home-search-hero__panel #block-cp-views-block-company-search-map-hero > div > div {
  height: 100%;
}

.c-home-search-hero__panel #block-cp-views-block-company-search-map-hero .views-exposed-form {
  display: none;
}

.c-home-search-hero__panel #leaflet-map-view-company-search-map-hero {
  width: 100%;
  height: 100% !important;
  min-height: clamp(280px, 30vw, 420px);
}

.c-home-search-map-view {
  height: 100%;
}

.c-home-search-map-empty {
  min-height: clamp(280px, 30vw, 420px);
  padding: clamp(22px, 2.3vw, 30px) clamp(18px, 2.1vw, 28px);
  background: rgba(248, 249, 250, 0.94);
}

.c-home-search-map-empty__title {
  margin: 0 0 clamp(14px, 1.7vw, 22px);
  color: #1b2b31;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1;
}

.c-home-search-map-empty__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-home-search-map-empty__step {
  display: grid;
  grid-template-columns: 64px 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: clamp(14px, 1.5vw, 20px) 0;
  border-bottom: 1px solid #dce3e5;
}

.c-home-search-map-empty__step:last-child {
  border-bottom: 0;
}

.c-home-search-map-empty__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-color: #e7eced;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 30px 30px;
}

.c-home-search-map-empty__icon--search {
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='6.5' stroke='%23182326' stroke-width='1.7'/%3E%3Cpath d='M16 16L20.2 20.2' stroke='%23182326' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}

.c-home-search-map-empty__icon--pros {
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3' stroke='%23182326' stroke-width='1.7'/%3E%3Ccircle cx='16' cy='9' r='2.5' stroke='%23182326' stroke-width='1.7'/%3E%3Cpath d='M3.8 18.2C4.6 15.6 6.4 14.4 8.8 14.4C11.2 14.4 13 15.6 13.8 18.2' stroke='%23182326' stroke-width='1.7' stroke-linecap='round'/%3E%3Cpath d='M13.4 17.6C14 16 15.2 15.2 16.8 15.2C18.3 15.2 19.4 15.9 20.1 17.2' stroke='%23182326' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
}

.c-home-search-map-empty__icon--chat {
  background-image: url("data:image/svg+xml,%3Csvg width='30' height='30' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3.5' y='4' width='12.5' height='10' rx='2.5' stroke='%23182326' stroke-width='1.7'/%3E%3Cpath d='M7 14V18L10.8 14' stroke='%23182326' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M13.8 8H20.5V17.2H16L13.8 19V8Z' stroke='%23182326' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.c-home-search-map-empty__num {
  color: #b5822c;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.15vw, 2.35rem);
  font-weight: 600;
  line-height: 1;
}

.c-home-search-map-empty__text {
  color: #2f3f44;
  font-size: clamp(1.5rem, 1.55vw, 1.72rem);
  line-height: 1.15;
}

@media (max-width: 980px) {
  .c-home-search-hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .c-home-search-hero__headline {
    grid-row: 1;
    font-size: clamp(1.95rem, 10vw, 3rem);
    line-height: 1;
  }

  .c-home-search-hero__panel #block-cp-content,
  .c-home-search-hero__panel #block-cp-exposedformcompany-searchblock-1 {
    grid-row: 2;
  }

  .c-home-search-hero__panel #block-cp-enelaboration,
  .c-home-search-hero__panel #block-cp-views-block-company-search-map-hero {
    grid-column: 1;
    grid-row: 3;
    align-self: auto;
  }

  .c-home-search-map-empty__text {
    font-size: clamp(1.08rem, 4.5vw, 1.3rem);
    line-height: 1.25;
  }

  body.search-page .c-home-search-hero__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(140px, 0.72fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    row-gap: 6px;
    align-items: start;
  }

  body.search-page .c-home-search-hero__headline {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(1.05rem, 3.2vw, 1.55rem);
    line-height: 1;
  }

  body.search-page .c-home-search-hero__panel #block-cp-content,
  body.search-page .c-home-search-hero__panel #block-cp-exposedformcompany-searchblock-1 {
    grid-column: 1;
    grid-row: 2;
  }

  body.search-page .c-home-search-hero__panel #block-cp-enelaboration,
  body.search-page .c-home-search-hero__panel #block-cp-views-block-company-search-map-hero {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: stretch;
  }

  body.search-page .c-home-search-hero__panel #block-cp-enelaboration,
  body.search-page .c-home-search-hero__panel #block-cp-views-block-company-search-map-hero,
  body.search-page .c-home-search-hero__panel #leaflet-map-view-company-search-map-hero {
    min-height: clamp(128px, 18vw, 190px);
  }

  body.search-page .c-home-search-map-empty {
    min-height: clamp(128px, 18vw, 190px);
    padding: 12px 10px;
  }

  body.search-page .c-home-search-map-empty__title {
    margin-bottom: 8px;
    font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  }

  body.search-page .c-home-search-map-empty__step {
    grid-template-columns: 38px 26px minmax(0, 1fr);
    gap: 8px;
    padding: 8px 0;
  }

  body.search-page .c-home-search-map-empty__icon {
    width: 38px;
    height: 38px;
    background-size: 18px 18px;
  }

  body.search-page .c-home-search-map-empty__num {
    font-size: clamp(1rem, 2.6vw, 1.28rem);
  }

  body.search-page .c-home-search-map-empty__text {
    font-size: clamp(0.84rem, 2vw, 0.98rem);
  }
}

body.search-page .c-home-search-hero {
  min-height: auto;
  padding: clamp(10px, 1.8vw, 18px) 0;
}

body.search-page .c-home-search-hero__inner {
  min-height: auto;
}

body.search-page .c-home-search-hero__grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  grid-template-rows: auto auto;
  column-gap: clamp(14px, 2vw, 28px);
  row-gap: clamp(8px, 1vw, 14px);
}

body.search-page .c-home-search-hero__headline {
  margin-bottom: clamp(6px, 0.9vw, 12px);
}

body.search-page .c-home-search-form {
  padding: clamp(12px, 1.8vw, 18px) clamp(12px, 1.8vw, 18px) clamp(14px, 2vw, 18px);
}

body.search-page .c-home-search-form__title {
  margin-bottom: clamp(8px, 1vw, 12px);
  font-size: clamp(1.1rem, 2.1vw, 1.6rem);
  line-height: 1.05;
}

body.search-page .c-home-search-form > form,
body.search-page .c-home-search-form .views-exposed-form form {
  min-height: 46px;
  border-radius: 16px;
}

body.search-page .c-home-search-form .views-exposed-form .form-text,
body.search-page .c-home-search-form .form-text {
  min-height: 44px;
  padding: 0 12px 0 38px;
  background-size: 16px 16px;
  background-position: 12px 50%;
  font-size: clamp(0.88rem, 1.2vw, 0.98rem);
}

body.search-page .c-home-search-form .views-exposed-form .form-submit,
body.search-page .c-home-search-form .form-submit {
  width: 58px;
  min-width: 58px;
  height: 44px;
  border-radius: 0 16px 16px 0;
}

body.search-page .c-home-search-hero__panel #block-cp-enelaboration,
body.search-page .c-home-search-hero__panel #block-cp-views-block-company-search-map-hero {
  min-height: clamp(150px, 18vw, 240px);
}

body.search-page .c-home-search-hero__panel #leaflet-map-view-company-search-map-hero,
body.search-page .c-home-search-hero__panel #block-cp-views-block-company-search-map-hero > div,
body.search-page .c-home-search-hero__panel #block-cp-views-block-company-search-map-hero > div > div {
  min-height: clamp(150px, 18vw, 240px);
}

@media (max-width: 459px) {
  body.search-page .c-home-search-hero__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 10px;
  }

  body.search-page .c-home-search-hero__panel #block-cp-content,
  body.search-page .c-home-search-hero__panel #block-cp-exposedformcompany-searchblock-1,
  body.search-page .c-home-search-hero__panel #block-cp-enelaboration,
  body.search-page .c-home-search-hero__panel #block-cp-views-block-company-search-map-hero {
    grid-column: 1;
  }

  body.search-page .c-home-search-hero__panel #block-cp-content,
  body.search-page .c-home-search-hero__panel #block-cp-exposedformcompany-searchblock-1 {
    grid-row: 2;
  }

  body.search-page .c-home-search-hero__panel #block-cp-enelaboration,
  body.search-page .c-home-search-hero__panel #block-cp-views-block-company-search-map-hero {
    grid-row: 3;
  }
}

.front-home-content #block-cp-contenudelapageprincipale > h2,
.front-home-content #block-cp-content > h2 {
  display: none;
}

.front-partners {
  padding: 0;
}

.front-partners__inner {
  display: grid;
  gap: 0.75rem;
}

.front-partners__title {
  margin: 2.5rem 0 0;
  padding: 1.25rem 0;
  color: var(--rei-text);
  font-size: clamp(1rem, 1.1rem + 0.35vw, 1.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
}

.front-partners__note {
  margin: 0;
}

@media (max-width: 700px) {
  .c-home-search-form {
    border-radius: 14px;
  }

  .c-home-search-form__title {
    font-size: clamp(1.8rem, 8vw, 2rem);
  }

  .c-home-search-form__controls,
.c-home-search-form > form,
  .c-home-search-form .views-exposed-form form {
    min-height: 56px;
    border-radius: 20px;
  }

  .c-home-search-form .views-exposed-form .form-text,
  .c-home-search-form .form-text {
    min-height: 54px;
    padding-left: 48px;
    background-size: 18px 18px;
    background-position: 16px 50%;
  }

  .c-home-search-form .views-exposed-form .form-submit,
  .c-home-search-form .form-submit {
    width: 68px;
    min-width: 68px;
    height: 54px;
    border-radius: 0 20px 20px 0;
  }
}
