/* Sicily by Nature — Header, menu e footer globali v0.5.0 */
:root {
  --sbn-blue: #0684a6;
  --sbn-slate: #20515e;
  --sbn-deep: #142f38;
  --sbn-yellow: #e6c65e;
  --sbn-ink: #2a2b2b;
  --sbn-muted: #5a6d70;
  --sbn-paper: #fbfcfb;
  --sbn-ice: #edf5f6;
  --sbn-line: #cbdadd;
  --sbn-shell: 1180px;
  --sbn-pill: 999px;
}

/* Header e menu Astra */
.site-header .main-header-menu > .menu-item > .menu-link,
.site-header .ast-builder-menu-mobile .menu-link {
  font-family: Montserrat, Arial, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-header .main-header-menu > .menu-item > .menu-link {
  position: relative;
}

.site-header .main-header-menu > .menu-item:not(.sbn-menu-cta):not(.lang-item) > .menu-link::after {
  content: "";
  position: absolute;
  right: 1em;
  bottom: 1.05rem;
  left: 1em;
  height: 2px;
  background: linear-gradient(90deg, var(--sbn-blue), var(--sbn-yellow));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}

.site-header .main-header-menu > .menu-item:hover > .menu-link::after,
.site-header .main-header-menu > .current-menu-item > .menu-link::after,
.site-header .main-header-menu > .current_page_item > .menu-link::after {
  transform: scaleX(1);
}

.site-header .main-header-menu > .sbn-menu-cta > .menu-link {
  min-height: 44px;
  margin-inline: .6rem;
  padding-inline: 1.25rem;
  border: 1px solid var(--sbn-blue);
  border-radius: var(--sbn-pill);
  color: var(--sbn-slate);
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.site-header .main-header-menu > .sbn-menu-cta:hover > .menu-link,
.site-header .main-header-menu > .sbn-menu-cta > .menu-link:focus-visible {
  border-color: var(--sbn-blue);
  background: var(--sbn-blue);
  color: #fff;
  transform: translateY(-2px);
}

.site-header .main-header-menu > .lang-item > .menu-link {
  min-width: 44px;
  justify-content: center;
  color: var(--sbn-blue);
}

.site-header a:focus-visible,
.sbn-site-footer a:focus-visible,
.sbn-site-footer button:focus-visible,
.sbn-site-footer input:focus-visible,
.sbn-site-footer textarea:focus-visible,
.sbn-site-footer select:focus-visible {
  outline: 3px solid var(--sbn-yellow);
  outline-offset: 3px;
}

/* Footer globale */
.sbn-site-footer,
.sbn-site-footer * {
  box-sizing: border-box;
}

.sbn-site-footer {
  color: var(--sbn-ink);
  background: var(--sbn-paper);
  font-family: Roboto, Arial, sans-serif;
  overflow: hidden;
}

.sbn-site-footer a {
  color: inherit;
  text-decoration: none;
}

.sbn-footer__shell {
  width: min(var(--sbn-shell), calc(100% - 48px));
  margin-inline: auto;
}

.sbn-footer__main {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(230, 198, 94, .19), transparent 27rem),
    linear-gradient(135deg, #fbfcfb 0%, #edf5f6 100%);
}

.sbn-footer__main::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -130px;
  width: 380px;
  height: 380px;
  border: 1px solid rgba(6, 132, 166, .18);
  border-radius: 46% 54% 62% 38%;
  box-shadow: 0 0 0 52px rgba(6, 132, 166, .045), 0 0 0 104px rgba(6, 132, 166, .025);
  transform: rotate(18deg);
  pointer-events: none;
}

.sbn-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
}

.sbn-footer__logo {
  display: inline-flex;
  margin-bottom: 1.5rem;
}

.sbn-footer__logo img {
  display: block;
  width: 88px;
  height: auto;
}

.sbn-footer__eyebrow,
.sbn-footer__details h3,
.sbn-footer__partners > .sbn-footer__shell > p {
  margin: 0 0 1rem;
  color: var(--sbn-blue);
  font-family: Montserrat, Arial, sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.sbn-footer__identity > h2 {
  max-width: 650px;
  margin: 0 0 1.5rem;
  color: var(--sbn-deep);
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(2.35rem, 4.5vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .98;
}

.sbn-footer__intro {
  max-width: 610px;
  margin: 0;
  color: var(--sbn-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.sbn-footer__details {
  display: grid;
  grid-template-columns: minmax(130px, .65fr) minmax(220px, 1.35fr);
  gap: 2.5rem;
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--sbn-line);
}

.sbn-footer__details ul,
.sbn-footer__languages ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sbn-footer__details li + li {
  margin-top: .52rem;
}

.sbn-footer__details a,
.sbn-footer__contact-list > a {
  display: inline-flex;
  max-width: 100%;
  color: var(--sbn-deep);
  font-size: .92rem;
  overflow-wrap: anywhere;
  transition: color .2s ease, transform .2s ease;
}

.sbn-footer__details a:hover,
.sbn-footer__contact-list > a:hover {
  color: var(--sbn-blue);
  transform: translateX(3px);
}

.sbn-footer__contact-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
}

.sbn-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.1rem;
}

.sbn-footer__socials a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(32, 81, 94, .28);
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  color: var(--sbn-slate);
  transform: none;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
}

.sbn-footer__socials a:hover {
  border-color: var(--sbn-blue);
  background: var(--sbn-blue);
  color: #fff;
  transform: translateY(-3px);
}

.sbn-footer__socials svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.sbn-footer__socials svg path:not(.sbn-footer__icon-fill) {
  fill: currentColor;
  stroke: none;
}

.sbn-footer__socials .sbn-footer__icon-fill {
  fill: currentColor;
  stroke: none;
}

.sbn-footer__socials .sbn-footer__icon-stroke {
  fill: none !important;
  stroke: currentColor !important;
}

.sbn-footer__form-panel {
  padding: clamp(2rem, 4vw, 3.4rem);
  border: 1px solid rgba(255, 255, 255, .24);
  background: var(--sbn-slate);
  color: #fff;
  box-shadow: 0 24px 70px rgba(20, 47, 56, .18);
}

.sbn-footer__form-panel .sbn-footer__eyebrow {
  color: var(--sbn-yellow);
}

.sbn-footer__form-panel > h2 {
  margin: 0 0 2rem;
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.12;
}

.sbn-footer__form-fallback p {
  margin: 0 0 1.5rem;
  color: #dce8ea;
  line-height: 1.7;
}

.sbn-footer__button,
.sbn-site-footer .ff-btn-submit {
  display: inline-flex;
  min-height: 52px;
  max-width: 100%;
  padding: .8rem 1.35rem;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 1px solid var(--sbn-yellow) !important;
  border-radius: var(--sbn-pill) !important;
  background: var(--sbn-yellow) !important;
  color: var(--sbn-ink) !important;
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: .7rem !important;
  font-weight: 700 !important;
  letter-spacing: .06em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease !important;
}

.sbn-footer__button:hover,
.sbn-site-footer .ff-btn-submit:hover {
  border-color: #fff !important;
  background: var(--sbn-blue) !important;
  color: #fff !important;
  transform: translateY(-3px);
}

.sbn-site-footer .fluentform .ff-el-group {
  margin-bottom: 1rem;
}

.sbn-site-footer .fluentform label,
.sbn-site-footer .fluentform .ff-el-form-check-label {
  color: #eef4f5;
  font-size: .82rem;
}

.sbn-site-footer .fluentform input:not([type="checkbox"]):not([type="radio"]),
.sbn-site-footer .fluentform textarea,
.sbn-site-footer .fluentform select {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 0;
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.sbn-site-footer .fluentform textarea {
  min-height: 112px;
}

.sbn-site-footer .fluentform input::placeholder,
.sbn-site-footer .fluentform textarea::placeholder {
  color: rgba(255, 255, 255, .68);
}

.sbn-site-footer .fluentform .text-danger,
.sbn-site-footer .fluentform .error {
  color: #ffe6e0;
}

.sbn-footer__partners {
  padding: 2.4rem 0;
  border-top: 1px solid var(--sbn-line);
  background: #fff;
}

.sbn-footer__partners > .sbn-footer__shell > p {
  margin-bottom: 1.25rem;
  color: var(--sbn-muted);
}

.sbn-footer__partner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 4.5rem);
}

.sbn-footer__partner-row a,
.sbn-footer__partner-row span {
  display: inline-flex;
  min-width: 110px;
  height: 72px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.sbn-footer__partner-row img {
  display: block;
  width: auto;
  max-width: 128px;
  height: 62px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .74;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.sbn-footer__partner-row a:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-3px);
}

.sbn-footer__bottom {
  padding: 1.35rem 0;
  background: var(--sbn-deep);
  color: #dce8ea;
}

.sbn-footer__bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: .76rem;
}

.sbn-footer__bottom-row p {
  margin: 0;
}

.sbn-footer__legal,
.sbn-footer__languages ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.sbn-footer__legal a,
.sbn-footer__languages a {
  color: #dce8ea;
  transition: color .2s ease;
}

.sbn-footer__legal a:hover,
.sbn-footer__languages a:hover,
.sbn-footer__languages .current-lang a {
  color: var(--sbn-yellow);
}

.sbn-footer__languages li {
  margin: 0;
}

@media (max-width: 980px) {
  .sbn-footer__grid {
    grid-template-columns: 1fr;
  }

  .sbn-footer__form-panel {
    width: min(100%, 680px);
  }

  .sbn-footer__bottom-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .site-header .ast-builder-menu-mobile .sbn-menu-cta > .menu-link {
    display: inline-flex;
    width: auto;
    min-height: 44px;
    margin: .7rem 1rem;
    padding: .65rem 1.15rem;
    border: 1px solid var(--sbn-blue);
    border-radius: var(--sbn-pill);
  }

  .sbn-footer__shell {
    width: min(100% - 32px, var(--sbn-shell));
  }

  .sbn-footer__main {
    padding: 4.25rem 0;
  }

  .sbn-footer__main::before {
    right: -260px;
  }

  .sbn-footer__identity > h2 {
    font-size: clamp(2.3rem, 11vw, 3.45rem);
    overflow-wrap: anywhere;
  }

  .sbn-footer__details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .sbn-footer__form-panel {
    padding: 2rem 1.25rem;
  }

  .sbn-footer__partner-row {
    justify-content: flex-start;
    margin-inline: -16px;
    padding: 0 16px 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .sbn-footer__partner-row a,
  .sbn-footer__partner-row span {
    min-width: 126px;
    scroll-snap-align: start;
  }

  .sbn-footer__bottom-row,
  .sbn-footer__legal {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sbn-site-footer *,
  .site-header * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
