/* PCF HERO EXPERIENCE — V1 */

.hero {
  min-height: min(820px, 88svh);
  isolation: isolate;
  background: #182a21;
}

.hero-image {
  background-image:
    linear-gradient(115deg, rgba(10, 24, 18, .22), transparent 60%),
    url("../images/chiavi.jpg");
  background-position: center 48%;
  transform: scale(1.045);
  animation: pcf-hero-reveal 1.4s cubic-bezier(.2,.7,.2,1) both;
}

.hero-shade {
  background:
    linear-gradient(90deg,
      rgba(12, 28, 21, .88) 0%,
      rgba(12, 28, 21, .67) 43%,
      rgba(12, 28, 21, .18) 100%),
    linear-gradient(0deg,
      rgba(12, 28, 21, .65) 0%,
      transparent 36%);
}

.hero-content {
  width: min(920px, 100%);
  padding-top: clamp(90px, 11vh, 145px);
  padding-bottom: clamp(125px, 15vh, 180px);
}

.hero .eyebrow {
  margin-bottom: 30px;
  font-size: 10px;
  letter-spacing: .22em;
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(52px, 7.5vw, 104px);
  line-height: .99;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.hero h1 em {
  color: #c9dfc6;
  font-style: italic;
}

.hero-copy {
  max-width: 500px;
  margin-top: 30px;
  color: rgba(248, 249, 242, .86);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.85;
}

.hero-actions {
  gap: 22px;
  margin-top: 34px;
}

.hero .button-light {
  min-height: 56px;
  padding: 17px 21px;
  gap: 28px;
  background: #f6f5ef;
  color: #203b2e;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
}

.hero .button-light span {
  transition: transform .25s ease;
}

.hero .button-light:hover span {
  transform: translate(3px, -3px);
}

.hero .text-link {
  border-bottom-color: rgba(255, 255, 255, .55);
}

.hero-bottom {
  padding-top: 23px;
  padding-bottom: 23px;
  border-top-color: rgba(255, 255, 255, .28);
  font-size: 9px;
  letter-spacing: .16em;
}

.hero-bottom a {
  transition: opacity .2s ease;
}

.hero-bottom a:hover {
  opacity: .7;
}

@keyframes pcf-hero-reveal {
  from { transform: scale(1.09); }
  to { transform: scale(1.045); }
}

@media (min-width: 1200px) {
  .hero-content {
    padding-left: var(--pad);
  }

  .hero-shade {
    background:
      linear-gradient(90deg,
        rgba(12, 28, 21, .9) 0%,
        rgba(12, 28, 21, .69) 38%,
        rgba(12, 28, 21, .12) 78%,
        rgba(12, 28, 21, .08) 100%),
      linear-gradient(0deg, rgba(12, 28, 21, .62), transparent 34%);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: max(720px, 86svh);
  }

  .hero-image {
    background-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg,
        rgba(12, 28, 21, .78),
        rgba(12, 28, 21, .34)),
      linear-gradient(0deg,
        rgba(12, 28, 21, .75),
        transparent 70%);
  }

  .hero-content {
    padding-top: 85px;
    padding-bottom: 125px;
  }

  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: .16em;
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: clamp(47px, 11.5vw, 76px);
    line-height: 1.02;
  }

  .hero-copy {
    max-width: 440px;
    font-size: 14px;
    line-height: 1.75;
    margin-top: 24px;
  }

  .hero-actions {
    align-items: flex-start;
    gap: 20px;
    margin-top: 28px;
  }

  .hero-bottom {
    padding-top: 17px;
    padding-bottom: 17px;
    font-size: 8px;
    letter-spacing: .08em;
  }
}

@media (max-width: 390px) {
  .hero {
    min-height: 740px;
  }

  .hero-content {
    padding-top: 65px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero-bottom {
    gap: 12px;
  }

  .hero-bottom a {
    max-width: 145px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image {
    animation: none;
    transform: none;
  }

  .hero .button-light span,
  .hero-bottom a {
    transition: none;
  }
}

/* Ricerca immobiliare integrata nella hero */
.hero-search {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: stretch;
  gap: 0;
  width: min(940px, calc(100vw - 2 * var(--pad)));
  margin-top: 36px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  background: rgba(246, 245, 239, .97);
  color: #203b2e;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
}

.hero-search-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 9px 15px;
  border-right: 1px solid #d9ddd4;
}

.hero-search-field > span {
  color: #6b716a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-search-field select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline-offset: 3px;
  background: transparent;
  color: #203b2e;
  font: 600 12px/1.5 var(--sans);
}

.hero-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  background: #284b3e;
  color: #fffefa;
  font: 600 12px/1.4 var(--sans);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.hero-search-submit:hover {
  background: #1d382e;
}

.hero-search-submit:focus-visible,
.hero-search-field select:focus-visible {
  outline: 2px solid #8aab8c;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .hero-search {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 28px;
    padding: 8px;
    gap: 0;
  }

  .hero-search-field {
    min-height: 58px;
    padding: 9px 11px;
    border-right: 0;
    border-bottom: 1px solid #d9ddd4;
  }

  .hero-search-field select {
    font-size: 13px;
  }

  .hero-search-submit {
    min-height: 50px;
    margin-top: 8px;
  }

  .hero-content {
    padding-bottom: 140px;
  }

  .hero-actions {
    margin-top: 23px;
  }
}

@media (max-width: 390px) {
  .hero-search {
    margin-top: 22px;
  }

  .hero-search-field {
    min-height: 53px;
  }

  .hero-search-submit {
    min-height: 46px;
  }
}

/* PCF — PREMIUM SEARCH PANEL V2 */
.hero-search {
  gap: 0;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 3px;
  background: rgba(250, 249, 244, .97);
  box-shadow: 0 2px 4px rgba(16,35,25,.04), 0 16px 44px rgba(8,23,16,.18);
  backdrop-filter: blur(22px) saturate(115%);
  -webkit-backdrop-filter: blur(22px) saturate(115%);
}

.hero-search-field {
  position: relative;
  gap: 8px;
  padding: 12px 17px;
  border-right: 1px solid #e4e5dc;
}

.hero-search-field > span {
  color: #81867c;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .17em;
}

.hero-search-field select {
  min-height: 24px;
  padding: 0 18px 0 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(45deg, transparent 50%, #536c5b 50%) right 5px top 10px / 5px 5px no-repeat,
    linear-gradient(135deg, #536c5b 50%, transparent 50%) right 1px top 10px / 5px 5px no-repeat;
  color: #233e30;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.015em;
  cursor: pointer;
}

.hero-search-field select:focus-visible {
  outline: 1px solid #819d83;
  outline-offset: 4px;
}

.hero-search-submit {
  align-self: stretch;
  min-height: 58px;
  margin: 0;
  padding: 0 20px;
  gap: 18px;
  border: 1px solid #284b3e;
  border-radius: 2px;
  background: #284b3e;
  color: #fffefa;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .015em;
  white-space: nowrap;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.hero-search-submit span {
  font-size: 16px;
  transition: transform .25s ease;
}

.hero-search-submit:hover {
  border-color: #172f25;
  background: #172f25;
  box-shadow: 0 5px 14px rgba(29,56,46,.14);
}

.hero-search-submit:hover span {
  transform: translate(2px, -2px);
}

@media (min-width: 761px) {
  .hero-search-field {
    padding-right: 22px;
    padding-left: 20px;
  }

  .hero-search-field select {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .hero-search {
    padding: 8px;
    border-radius: 3px;
    background: rgba(250,249,244,.98);
    box-shadow: 0 14px 38px rgba(8,23,16,.2);
  }

  .hero-search-field {
    min-height: 57px;
    padding: 9px 12px;
    gap: 5px;
    border-right: 0;
    border-bottom: 1px solid #e3e4db;
  }

  .hero-search-field > span {
    font-size: 8px;
    letter-spacing: .18em;
  }

  .hero-search-field select {
    min-height: 23px;
    font-size: 13px;
    background-position: right 5px top 9px, right 1px top 9px;
  }

  .hero-search-submit {
    min-height: 51px;
    margin-top: 8px;
    padding: 0 15px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-search-submit,
  .hero-search-submit span {
    transition: none;
  }
}
