/* ──────────────── BACKGROUNDS ──────────────── */

.bgRighe {
  display: grid;
  background-image: linear-gradient(
    to right,
    transparent 99%,
    rgba(255, 255, 255, 0.3)
  );
  background-color: #000;
  background-size: 10%;
  padding: 0 10% 5% 10%;
  color: white;
}

.bgNero {
  display: grid;
  padding: 0 10%;
  background-color: #000;
  color: white;
}

#transitionalBg {
  background-image:
    linear-gradient(to right, transparent 99%, rgba(255, 255, 255, 0.3)),
    linear-gradient(#ececec, #000);
  color: #000;
  padding: 0 0 0 10%;
}

/* ------------ SMALL TEXT ------------ */

.scrittePiccoleScure {
  color: #222222;
  font-size: 12px;
}

.scrittePiccoleChiare {
  color: #fff;
  font-size: 12px;
}

/* ------------ TYPOGRAPHY ---------- */

#home {
  color: rgb(0, 0, 0);
}

h4 {
  font-family: var(--font-mono);
  font-weight: 200;
  font-size: 12px;
  display: flex;
  align-items: center;
}

h4::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #333;
  margin-left: 10px;
}

p {
  font-family: var(--font-sans);
  font-size: clamp(16px, 2vw, 32px);
  line-height: 1.75;
}

h2,
button,
.buttonWithBorder {
  font-family: var(--font-mono);
}

.parolaInRilievo {
  background-color: #000;
  border-radius: 7px;
  padding: 3px 8px;
  margin: 2px 3px;
  hyphens: none;
  font-family: var(--font-mono);
  color: white;
}

/* ------------ BUTTONS ---------- */

.buttonWithBorder {
  border: 1px solid var(--color-border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: linear-gradient(#fff, #fff) no-repeat center bottom;
  background-size: 100% 0%;
  text-decoration: none;
  color: white;
  transition:
    background-size 0.3s ease,
    color 0.3s ease;
}

.buttonWithBorder:hover {
  background-size: 100% 100%;
  color: black;
}

.buttonWithBorderBlackText {
  border: 1px solid var(--color-border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  color: white;
  width: 20vw;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 0%;
  transition:
    background-size 0.3s ease,
    color 0.3s ease;
}

.buttonWithBorderBlackText:hover {
  background-size: 100% 100%;
  color: black;
}

.imgFreccia {
  opacity: 0.6;
}

.buttonWithBorderBlackText .imgFrecciaNera {
  filter: invert(1);
  transition: filter 0.3s ease;
}

.buttonWithBorderBlackText:hover .imgFrecciaNera {
  filter: invert(0);
}

#cta img,
.buttonWithBorder img {
  width: 12px;
  height: 12px;
}

.disabled-link {
  border: 1px solid var(--color-border-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: var(--color-bg-disabled) !important;
  background: var(--color-bg-disabled) !important;
  text-decoration: none;
  color: white !important;
  cursor: not-allowed !important;
  font-family: var(--font-mono);
  pointer-events: none;
}

.buttonContainer {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr;
  margin-bottom: 8%;
}

.buttonContainer a {
  grid-column: 2;
  background-color: black;
}

/* ------------ WORD CYCLER ---------- */

#word-cycler {
  font-size: clamp(18px, 4vw, 38px);
  font-weight: 400;
  font-family: var(--font-mono);
  text-transform: uppercase;
  padding: 6% 0 30px 0;
}

/* ------------ CTA SECTION ---------- */

#sezioneCTA p {
  width: 85%;
  padding: 0 0 7% 13%;
  hyphens: none;
  font-weight: 400;
}

#sezioneCTA h4 {
  margin-bottom: 6%;
}

#sezioneCTA #word-cycler {
  padding-top: 0;
}

#sezioneCTA .buttonContainer {
  margin-bottom: 1%;
}

.ctaSection .buttonContainer {
  margin-bottom: 0;
  margin-top: max(30px, 5%);
}

/* ------------ UTILITY ---------- */

.divider {
  margin-bottom: 15px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
