@import url('https://fonts.googleapis.com/css2?family=BioRhyme:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&display=swap');

/* =========================
   BASE
========================= */

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  font-family: "Montserrat", serif;
  font-weight: 500;
}

a {
  text-decoration: none;
  color: inherit;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* =========================
   SPACING HELPERS
========================= */

.padding-bottom-class {
  padding-bottom: clamp(80px, 8vh, 230px);
}

.padding-mini-class {
  padding-bottom: 110px;
}

@media screen and (max-width: 992px) {
  .padding-bottom-class {
    padding-bottom: 100px;
  }

  .padding-mini-class {
    padding-bottom: 70px;
  }
}

/* =========================
   PRELOADER
========================= */

#preloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#preloaderText {
  color: #000;
  padding-top: 18px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #d9d9d9;
  border-top: 3px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

#pageContent {
  visibility: hidden;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   TYPOGRAPHY
========================= */

.titolo-agenzia {
  font-size: 43px;
  line-height: 45px;
  font-weight: 100;
  font-family: "BioRhyme", serif;
  color: #000;
}

.paragrafo-xl {
  font-size: 1.5rem;
  font-weight: 300;
  color: #000;
}

.fw-light {
  font-weight: 400 !important;
}

.m-0 {
  margin: 0 !important;
}

h5,
.h5 {
  font-size: 1.25rem;
}

.colore-bianco,
.colore-nero {
  color: #000;
}

.colore-logo {
  color: #35616c;
}

@media screen and (max-width: 1400px) {
  .titolo-agenzia {
    font-size: 50px;
    line-height: 57px;
  }
}

@media screen and (max-width: 1200px) {
  .titolo-agenzia {
    font-size: 38px;
    line-height: 44px;
  }
}

@media screen and (max-width: 800px) {
  .titolo-agenzia {
    font-size: 30px;
    line-height: 40px;
  }
}

/* =========================
   NAVBAR / OFFCANVAS
   (tenute perché con ogni probabilità usate da navbar.php)
========================= */

.navbar.transparent {
  background: transparent;
  transition: background-color 0.5s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  transition: background-color 0.5s ease;
  z-index: 3000;
}

.offcanvas.offcanvas-start {
  width: 100%;
}

.navbar-toggler {
  border: 0;
}

.navbar-toggler img {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

.offcanvas-body,
.offcanvas-header {
  background: #000;
}

.offcanvas button.btn-close,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
  outline: none;
  box-shadow: none;
  border: none;
}

.dropdown-item:active {
  background-color: #000;
}

.link-offcanvas {
  font-size: 28px;
  font-weight: 700;
  font-family: "Montserrat", serif;
  color: #fff;
}

.testo-offcanvas {
  font-size: 19px;
  font-weight: 500;
  font-family: "Montserrat", serif;
  color: #fff;
}

@media screen and (max-width: 992px) {
  .link-offcanvas {
    font-weight: 600;
    font-size: 14px;
  }

  .testo-offcanvas {
    font-size: 11px;
    font-weight: 500;
  }
}

/* =========================
   LIST GROUP
========================= */

.list-group {
  --bs-list-group-color: #000000;
  --bs-list-group-bg: #ffffff;
  --bs-list-group-border-color: rgba(0, 0, 0, 0.18);
}

/* =========================
   HERO SPLIT AGM
========================= */

.agm-split-hero {
  background: #000;
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
}

.agm-split-hero__inner {
  width: min(1380px, calc(100% - 80px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 26vw) 1fr;
  align-items: center;
  gap: clamp(28px, 4vw, 70px);
  height: 100vh;
}

.agm-split-hero__side {
  min-width: 0;
}

.agm-split-hero__side--left {
  text-align: left;
}

.agm-split-hero__side--right {
  text-align: right;
}

.agm-split-hero__eyebrow,
.agm-split-hero__smalltop {
  font-family: "Montserrat", serif;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 20px;
}

.agm-split-hero__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(42px, 5vw, 88px);
  line-height: 0.92;
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 0 0 34px 0;
  color: #fff;
}

.agm-split-hero__info {
  font-family: "Montserrat", serif;
  font-size: clamp(16px, 1.15vw, 21px);
  line-height: 1.4;
  font-weight: 500;
  color: #fff;
}

.agm-split-hero__right-copy {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 4.3vw, 76px);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #fff;
}

.agm-split-hero__center {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.agm-split-hero__video-shell {
  position: relative;
  height: 100vh;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #111;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  animation: agmHeroVideoReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.agm-split-hero__video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08) 0%,
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 0) 80%,
    rgba(0, 0, 0, 0.12) 100%
  );
  pointer-events: none;
}

.agm-split-hero__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.agm-split-hero__side--left,
.agm-split-hero__side--right {
  opacity: 0;
  transform: translateY(18px);
  animation: agmHeroTextReveal 0.9s ease forwards;
}

.agm-split-hero__side--left {
  animation-delay: 0.25s;
}

.agm-split-hero__side--right {
  animation-delay: 0.45s;
}

@keyframes agmHeroVideoReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes agmHeroTextReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1400px) {
  .agm-split-hero__inner {
    grid-template-columns: 1fr minmax(250px, 26vw) 1fr;
    width: min(1280px, calc(100% - 60px));
  }
}

@media (max-width: 1100px) {
  .agm-split-hero {
    min-height: auto;
    padding: 0 0 30px;
  }

  .agm-split-hero__inner {
    width: 100%;
    min-height: auto;
    height: auto;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .agm-split-hero__center {
    order: 1;
    display: block;
    width: 100%;
  }

  .agm-split-hero__side--right {
    order: 2;
    text-align: center;
    padding: 28px 20px 10px;
  }

  .agm-split-hero__side--left {
    order: 3;
    text-align: center;
    padding: 18px 20px 0;
  }

  .agm-split-hero__video-shell {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    box-shadow: none;
  }

  .agm-split-hero__title {
    font-size: clamp(44px, 9vw, 74px);
    line-height: 0.9;
    margin: 0 0 20px 0;
  }

  .agm-split-hero__right-copy {
    font-size: clamp(34px, 8vw, 64px);
    line-height: 0.92;
  }

  .agm-split-hero__smalltop {
    margin-bottom: 12px;
  }
}

@media (max-width: 640px) {
  .agm-split-hero {
    padding: 0 0 24px;
  }

  .agm-split-hero__inner {
    width: 100%;
    gap: 0;
  }

  .agm-split-hero__eyebrow,
  .agm-split-hero__smalltop {
    font-size: 11px;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
  }

  .agm-split-hero__right-copy {
    font-size: clamp(28px, 9.2vw, 46px);
    line-height: 0.94;
  }

  .agm-split-hero__title {
    font-size: clamp(34px, 10.8vw, 56px);
    line-height: 0.92;
    margin-bottom: 16px;
  }

  .agm-split-hero__info {
    font-size: 14px;
    line-height: 1.45;
  }

  .agm-split-hero__side--right {
    padding: 24px 18px 8px;
  }

  .agm-split-hero__side--left {
    padding: 14px 18px 0;
  }

  .agm-split-hero__video-shell {
    width: 100%;
    height: 100svh;
    max-height: 100svh;
  }
}

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

.search-home-wrap {
  background: #fff;
  position: relative;
  z-index: 30;
  margin-top: 36px;
  margin-bottom: 56px;
}

.search-home-box {
  max-width: 1040px;
  margin: 0 auto;
  background: #fff;
  box-shadow: none;
  padding: 14px 22px 12px;
}

.search-home-form {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: nowrap;
}

.search-home-item {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
  padding-bottom: 6px;
  border-bottom: 2px solid #d8d8d8;
}

.search-home-item-small {
  flex: 0 0 130px;
}

.search-home-item-dropdown {
  flex: 0 0 255px;
}

.search-home-label {
  font-size: 13px;
  line-height: 1;
  font-weight: 400;
  color: #4a4a4a;
  margin: 0;
  white-space: nowrap;
  transform: translateY(-1px);
}

.search-home-field {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-width: 0;
}

.search-home-static,
.search-home-trigger {
  font-family: "BioRhyme", serif;
  font-size: 19px;
  line-height: 1;
  font-weight: 600;
  color: #1b1b1b;
}

.search-home-static {
  display: inline-flex;
  align-items: flex-end;
  min-height: 24px;
}

.search-home-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  cursor: pointer;
  min-height: 24px;
  text-align: left;
}

.search-home-trigger:focus {
  outline: none;
}

.search-home-trigger-text {
  display: inline-block;
  line-height: 1;
}

.search-home-placeholder {
  color: #c9924b;
  font-style: italic;
  font-weight: 600;
}

.search-home-actions {
  flex: 0 0 auto;
  margin-left: auto;
}

.search-home-submit {
  min-width: 172px;
  height: 42px;
  border: 0;
  background: #c1254f;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  font-family: "BioRhyme", serif;
  cursor: pointer;
  padding: 0 20px;
  transition: background 0.25s ease;
}

.search-home-submit:hover {
  background: #a91d44;
  transform: none;
}

.search-home-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 190px;
  max-width: 220px;
  background: #fff;
  border: 1px solid #dddddd;
  box-shadow: none;
  padding: 4px;
  z-index: 999;
  display: none;
}

.search-home-dropdown.is-open {
  display: block;
}

.search-home-option {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  color: #1f1f1f;
  font-size: 14px;
  line-height: 1.2;
  padding: 9px 9px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.search-home-option:hover,
.search-home-option.is-active {
  background: #f3f3f3;
}

@media (max-width: 1200px) {
  .search-home-wrap {
    margin-top: 28px;
  }

  .search-home-box {
    padding: 14px 18px 12px;
  }

  .search-home-form {
    gap: 14px;
  }

  .search-home-item-small {
    flex: 0 0 120px;
  }

  .search-home-item-dropdown {
    flex: 0 0 220px;
  }

  .search-home-static,
  .search-home-trigger {
    font-size: 17px;
  }

  .search-home-submit {
    min-width: 155px;
    height: 40px;
    font-size: 16px;
  }
}

@media (max-width: 992px) {
  .search-home-wrap {
    margin-top: 24px;
    margin-bottom: 40px;
  }

  .search-home-box {
    max-width: 100%;
    padding: 16px 16px 14px;
  }

  .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;
  }

  .search-home-dropdown {
    min-width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .search-home-wrap {
    margin-top: 20px;
    margin-bottom: 34px;
  }

  .search-home-box {
    padding: 14px 12px 12px;
  }

  .search-home-item {
    gap: 8px;
    padding-bottom: 6px;
    border-bottom-width: 2px;
  }

  .search-home-label {
    font-size: 13px;
  }

  .search-home-static,
  .search-home-trigger {
    font-size: 17px;
    min-height: 24px;
  }

  .search-home-submit {
    height: 42px;
    font-size: 16px;
    padding: 0 16px;
  }

  .search-home-option {
    font-size: 13px;
    padding: 9px;
  }
}

/* =========================
   FOOTER
   (tenuto perché molto probabilmente usato da footer.php)
========================= */

/* =========================
   FOOTER
========================= */

.contact-area {
  padding: 60px 0;
  border-bottom: 1px solid #000;
  background: #fff;
  color: #555;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-content p {
  font-size: 15px;
  margin: 30px 0 60px;
  position: relative;
}

.contact-content p::after {
  background: #8b9199;
  bottom: -30px;
  content: "";
  height: 1px;
  left: 50%;
  position: absolute;
  transform: translate(-50%);
  width: 80%;
}

.contact-content h6 {
  color: #8b9199;
  font-size: 15px;
  font-weight: 400;
  margin-bottom: 10px;
}

.contact-content span {
  color: #353c47;
  margin: 0 10px;
}

.contact-social {
  margin-top: 30px;
}

.contact-social > ul {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.contact-social ul li a {
  border: 0;
  background: transparent;
  color: #2f2f2f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  width: auto;
  margin: 0;
  padding: 0;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-social ul li a i {
  font-size: 26px;
  line-height: 1;
}

.contact-social ul li a:hover {
  color: #000;
  transform: translateY(-1px);
}

.contact-content img {
  max-width: 210px;
}

.contact-area,
.footer {
  background: #fff;
  color: #555;
}

footer {
  background: #35616c;
  color: #ced4da;
}

footer .text-center,
footer p {
  margin: 0;
  padding: 20px 0;
  text-align: center;
}

footer img {
  width: 44px;
}