body.page-light {
  background: #fff;
}

#pageContent {
  visibility: hidden;
}

.section-black,
.section-white {
  background: #fff;
}

/* Shell coerente con hero, form, testi e galleria */
.agm-page-shell,
.search-home-shell,
.agm-contact-shell {
  width: min(1170px, calc(100% - 80px));
  margin: 0 auto;
}

.agm-copy-column {
  max-width: 980px;
  margin: 0;
}

/* =========================
   HERO + CONTENUTI INTRO
========================= */

.agm-intro-title-section {
  background: #fff;
  padding: 34px 0 14px;
}

.agm-intro-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(48px, 5vw, 82px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #000;
  margin: 0;
  max-width: 1080px;
}

.agm-copy-section {
  background: #fff;
  padding: 12px 0 0;
}

.agm-copy-text {
  max-width: 840px;
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.55;
  font-weight: 300;
  color: #000;
  margin: 0;
}

.agm-copy-text + .agm-copy-text {
  margin-top: 58px;
}

/* Hero: niente ombra sotto al video */
.agm-split-hero__video-shell {
  box-shadow: none !important;
}

/* =========================
   FORM RICERCA
========================= */

.search-home-wrap {
  background: #fff;
  position: relative;
  z-index: 20;
  margin-top: 34px;
  margin-bottom: 44px;
}

.search-home-box {
  max-width: none;
  width: 100%;
  margin: 0;
  box-shadow: none !important;
  padding: 12px 0 10px;
  background: #fff;
}

.search-home-form {
  gap: 18px;
}

.search-home-item-small {
  flex: 0 0 160px;
}

.search-home-item-dropdown {
  flex: 0 0 265px;
}

.search-home-label {
  font-size: 13px;
}

.search-home-static,
.search-home-trigger {
  font-size: 19px;
  min-height: 24px;
}

.search-home-submit {
  min-width: 150px;
  height: 40px;
  font-size: 16px;
  padding: 0 16px;
}

/* =========================
   GALLERIA FINALE WEBGL
========================= */

.agm-hover-gallery-section {
  background: #fff;
  padding: 74px 0 90px;
}

.agm-hover-gallery-heading {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #000;
  margin: 0 0 34px;
  /*max-width: 900px;*/
}

.slides {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  overflow: hidden;
  gap: 0;
}

.slide {
  position: relative;
  width: 32%;
}

.canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.plane {
  padding-top: calc(64000% / 382);
}

.plane img {
  display: none;
}

.slide__content {
  padding-top: 14px;
}

.slide__content h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  color: #000;
}

.slide__content p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 300;
  color: rgba(0, 0, 0, 0.76);
  max-width: 92%;
}

.agm-slide-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid rgba(0, 0, 0, 0.46);
  color: #111;
  font-family: "Montserrat", serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.agm-slide-button:hover {
  background: #111;
  color: #fff;
}

/* =========================
   BLOCCO CONTATTI NERO
========================= */

.agm-contact-section {
  background: #000;
  color: #fff;
  padding: 110px 0 120px;
}

.agm-contact-header {
  margin-bottom: 56px;
}

.agm-contact-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(50px, 6vw, 108px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
  text-align: center;
}

.agm-contact-form {
  width: min(860px, 100%);
  margin: 0 auto;
}

.agm-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 44px;
  row-gap: 52px;
}

.agm-contact-field {
  position: relative;
}

.agm-contact-field--full {
  grid-column: 1 / -1;
}

.agm-contact-label {
  display: block;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  color: #fff;
}

.agm-contact-input,
.agm-contact-textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  color: #fff;
  font-size: 18px;
  line-height: 1.4;
  padding: 0 0 14px;
  outline: none;
  border-radius: 0;
  transition: border-color 0.25s ease;
}

.agm-contact-textarea {
  min-height: 78px;
  resize: vertical;
}

.agm-contact-field:focus-within .agm-contact-input,
.agm-contact-field:focus-within .agm-contact-textarea,
.agm-contact-input:focus,
.agm-contact-textarea:focus,
.agm-contact-field.is-active .agm-contact-input,
.agm-contact-field.is-active .agm-contact-textarea {
  border-bottom-color: #fff;
}

.agm-contact-input::placeholder,
.agm-contact-textarea::placeholder {
  color: transparent;
}

.agm-contact-actions {
  display: flex;
  justify-content: center;
  margin-top: 58px;
}

.agm-contact-submit {
  min-width: 228px;
  height: 52px;
  padding: 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.agm-contact-submit:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1200px) {
  .agm-page-shell,
  .search-home-shell,
  .agm-contact-shell {
    width: min(1170px, calc(100% - 60px));
  }

  .agm-copy-text {
    max-width: 760px;
  }

  .search-home-item-small {
    flex: 0 0 135px;
  }

  .search-home-item-dropdown {
    flex: 0 0 235px;
  }
}

@media (max-width: 992px) {
  .agm-page-shell,
  .search-home-shell,
  .agm-contact-shell {
    width: calc(100% - 40px);
  }

  .search-home-wrap {
    margin-top: 28px;
    margin-bottom: 36px;
  }

  .search-home-box {
    padding: 0;
  }

  .search-home-form {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .search-home-item,
  .search-home-item-small,
  .search-home-item-dropdown {
    width: 100%;
    flex: 1 1 auto;
  }

  .search-home-actions {
    width: 100%;
    margin-left: 0;
  }

  .search-home-submit {
    width: 100%;
    min-width: 0;
  }

  .agm-intro-title-section {
    padding: 26px 0 10px;
  }

  .agm-copy-text {
    max-width: 100%;
  }

  .agm-hover-gallery-section {
    padding: 56px 0 72px;
  }

  .slide {
    width: 48%;
  }

  .agm-contact-section {
    padding: 86px 0 90px;
  }

  .agm-contact-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 36px;
  }

  .agm-contact-field--full {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .agm-page-shell,
  .search-home-shell,
  .agm-contact-shell {
    width: calc(100% - 24px);
  }

  .agm-intro-title {
    font-size: clamp(38px, 11vw, 58px);
    line-height: 1.02;
  }

  .agm-copy-text {
    font-size: 18px;
    line-height: 1.6;
  }

  .agm-copy-text + .agm-copy-text {
    margin-top: 36px;
  }

  .search-home-wrap {
    margin-top: 24px;
  }

  .agm-hover-gallery-section {
    padding: 48px 0 60px;
  }

  .slide {
    width: 100%;
    margin-bottom: 24px;
  }

  .slide:last-child {
    margin-bottom: 0;
  }

.slide__content h3 {
  font-size: 20px;
}

.slide__content p {
  font-size: 15px;
  max-width: 100%;
}

  .agm-contact-section {
    padding: 72px 0 76px;
  }

  .agm-contact-header {
    margin-bottom: 40px;
  }

  .agm-contact-title {
    font-size: clamp(40px, 12vw, 62px);
    line-height: 0.96;
    text-align: left;
  }

  .agm-contact-form {
    width: 100%;
  }

  .agm-contact-label {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .agm-contact-input,
  .agm-contact-textarea {
    font-size: 17px;
    padding-bottom: 12px;
  }

  .agm-contact-actions {
    justify-content: flex-start;
    margin-top: 40px;
  }

  .agm-contact-submit {
    min-width: 210px;
    height: 48px;
    font-size: 17px;
  }
}


.agm-contact-hp {
  display: none !important;
}

.agm-contact-feedback {
  width: min(620px, 100%);
  margin: 32px auto 0;
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 300;
  text-align: center;
}

.agm-contact-feedback--success {
  color: #ffffff;
}

.agm-contact-feedback--error {
  color: #ffb4a8;
}