/*
 * Container desktop globale: allinea i layout Bootstrap al canvas da 1320px
 * del design a partire dai 1200px, evitando il limite predefinito da 1140px.
 */
@media (min-width: 1200px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 1320px;
  }
}

body,
html {
  font-family: var(--fontFamily);
  margin: 0;
  padding: 0;

  color: var(--nero);
  overscroll-behavior-block: none;
  scroll-behavior: smooth;
  /* scroll-behavior: auto !important; <- it removes scroll smooth */
}

a,
button,
input[type="button"],
input[type="submit"] {
  font-family: "Manrope", var(--fontFamily);
}

/* Transizione hover unica (200 ms ease); :where() azzera la specificita' cosi' i componenti possono sovrascriverla. */
:where(a, button, input[type="button"], input[type="submit"]) {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

main *,
*::after,
*::before {
  box-sizing: border-box;
}

*:focus {
  outline: none;
}

main {
  overflow-x: clip;
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
  /*margin-top: 60px;*/
}

.grecaptcha-badge {
  right: -300px !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
ul,
ol {
  margin-bottom: 0;
}

/* ul {
    list-style-type: none;
} */

li {
  margin-bottom: 4px;
}

p a {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-all;
  word-break: break-word;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

h1,
.titolo-big,
.titolo-big * {
  font-size: 9rem;
  line-height: 9rem;
  letter-spacing: normal;
  font-weight: 300;
  font-style: normal;
}

h2,
h3,
.titolo {
  font-size: 3rem;
  line-height: 4.4rem;
  letter-spacing: normal;
  font-weight: 400;
}

h4,
h5,
h6,
.titolo-small {
  font-size: 3rem;
  line-height: 4.4rem;
  letter-spacing: normal;
  font-weight: 400;
}

p,
ul,
li,
ul,
ol,
.testo,
div.testo * {
  font-size: 1.6rem;
  line-height: 2.9rem;
  letter-spacing: normal;
  font-weight: 300;
}

.testo-small,
div.testo-small * {
  font-size: 1.4rem;
  line-height: 2.4rem;
  letter-spacing: normal;
  font-weight: 400;
  letter-spacing: 0.75px;
}

.menu-overlay li a {
  font-size: 3.6rem;
  line-height: 4.6rem;
  letter-spacing: normal;
  font-style: italic;
  text-decoration: none;
}

.wrapper {
  width: calc(100%);
  /*max-width: 1600px;*/
  margin: 0 auto;
  padding: 0;
}

section {
  padding: var(--distance) 0;
  position: relative;
}

.relative {
  position: relative;
}

.no-wrap {
  white-space: nowrap;
}

.centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*margini custom*/
.mTop {
  margin-top: var(--distance);
}
.mTop-small {
  margin-top: calc(var(--distance) / 2);
}
.mBottom {
  margin-bottom: var(--distance);
}
.mBottom-small {
  margin-bottom: calc(var(--distance) / 2);
}
.mRight {
  margin-right: var(--distance);
}
.mRight-small {
  margin-right: calc(var(--distance) / 2);
}
.pTop {
  padding-top: var(--distance);
}
.pTop-small {
  padding-top: calc(var(--distance) / 2);
}
.pBottom {
  padding-bottom: var(--distance);
}
.pBottom-small {
  padding-bottom: calc(var(--distance) / 2);
}

/* backgrounds */

.sticky {
  position: sticky;
  top: 0;
}

.contain {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

a[target="_blank"],
a[href^="mailto:"],
a[href^="tel:"] {
  display: inline-flex;
  color: var(--nero);
  transition: var(--transition);
  text-decoration: underline;
}

/* button
   :where() azzera la specificità: i componenti definiscono il proprio colore in hover
   senza essere sovrascritti (es. testo scuro su sfondo scuro). */
:where(
  a:hover,
  a:focus,
  a[href^="mailto:"]:hover,
  a[href^="mailto:"]:focus,
  a[href^="tel:"]:hover,
  a[href^="tel:"]:focus
) {
  color: var(--nero);
}

/*  /button */
.button,
a.button input.button {
  display: inline-block;
  position: relative;
  padding: 20px 50px;
  color: var(--bianco);
  font-size: 1.5rem;
  line-height: 1.5rem;
  letter-spacing: 0px;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid var(--bianco);
  background-color: var(--grigio);
  border-radius: 30px;
}

.button:hover,
a.button:hover,
input.button:hover {
  color: var(--nero);
  background-color: var(--bianco);
  border: 1px solid var(--nero);
}

/*amination custom crate per aos*/

[data-aos="animation-etinet"] {
  transition-duration: 1.5s;
  transition-timing-function: ease;
  transition: all 0.5s ease !important;
  transform: translateY(25px);
  transform-style: preserve-3d;
  opacity: 0;
}

[data-aos="animation-etinet"].aos-animate {
  transform: translateY(0);
  transform-style: preserve-3d;
  opacity: 1;
}

/*wpml */
.wpml-ls-legacy-list-horizontal.wpml-ls-statics-footer {
  margin-bottom: 30px;
  display: none !important;
}
.otgs-development-site-front-end {
  display: none !important;
}

.btn-close {
  position: absolute;
  width: 50px;
  height: 50px;
  right: 5px;
  top: 0;
  z-index: 2;
}

.abs-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
