:root {
  --background-color-left: #bfef31;
  --background-color-right: #fff;
  --background-color-button: #00adef;
  --background-color-button-hover: #bfef31;
  --color-text-button: #fff;
  --color-text-button-hover: #000;
  --slice-1: #004f91;
  --slice-2: #0088c9;
  --slice-3: #00abe9;
  --slice-4: #09d0f1;
  --slice-activated: #bfef31;
}

::-webkit-scrollbar {
  width: 0px;
}

::-webkit-scrollbar-track {
  background: #fff;
}

::-webkit-scrollbar-thumb {
  background: #2c6489;
  border-radius: 20px
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

body { font-family: 'Helvetica Light', var(--generic-font-family); }
.subtitle {
  font-family: 'Helvetica Light', var(--generic-font-family);
  color: #5c5a5f;
  font-size: 0.8rem;
}
#logo-repi-nero {
    width: 8.837vw;
    /*height: 6.552vh;*/
}

.video-anteprima {
    height: 65vh;
	width: 100%;
}

/* --- Bottoni --- */
.btn-action, .btn-action-form {
  font-family: 'NexaBoldFont', var(--generic-font-family);
  font-size: 0.8rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  width: 10rem;
  background: var(--background-color-button);
  color: var(--color-text-button);
  z-index: 10;
}
.btn-action:hover, .btn-action-form:hover {
  color: var(--color-text-button-hover);
  background: var(--background-color-button-hover);
}

/* --- Layout e sfondi --- */
.box-sfondo {
  padding-right: 0 !important;
}
.box img {width: 25vw;}
.box-sfondo:not(.homepage) {
  min-height: 100vh;
  max-height: 100vh;
  background: var(--backgroundUrl) no-repeat center center/cover;
}
.box-sfondo img { width: 100%; height: 100vh; }

.blocco-titolo {
    padding: 9.294vh 5.230vw 0 4.019vw;
}
.blocco-titolo-survey {
    padding: 9.294vh 5.230vw 14.596vh 4.019vw;
}
.blocco-principale {
    padding: 0 5.230vw 0 4.019vw;
}
.blocco-principale-survey {
    padding: 0 5.230vw 9.294vh 4.019vw;
}
.blocco-destro {
  display: grid;
  grid-template-rows: auto 1fr;
}
.blocco-destro:has(.pagina-carosello) {
  display: unset;
  grid-template-rows: unset;
}
.blocco-destro.homepage { grid-gap: 8vh; }

.box {
  display: flex;
  padding: 0 !important;
  box-shadow: inset 0 0 0 2000px rgba(125, 125, 125, 0);
}

/* --- Blocchi elementi --- */
.blocco-elemento {
  width: 40vw;
  border-radius: 15rem;
  border: none;
  display: flex;
  align-items: center;
  box-shadow: 0.4rem 0.2rem 0.4rem 0 rgba(0, 0, 0, 0.5);
}
.blocco-elemento.active { width: 45vw; }
.blocco-elemento:not(.active) > .icona-select { display: none; }

.icona-select { width: 6vw; margin-left: 3vw; cursor: pointer; filter: drop-shadow(0.4rem 0.2rem 0.4rem rgba(0, 0, 0, 0.5)); transform: scale(0.75);}
.testo-select { width: 35vw; }

.blocco-contenuti {
  align-items: end;
  margin-bottom: 5.5vh;
}

.blocco-container {
  display: flex;
  justify-content: center;
  height: fit-content;
}

.sub-dx {
  align-items: end;
  margin-bottom: 6vh;
  margin-left: -20.2rem;
  display: flex;
}

/* --- Chart / Slice --- */
#slices > image { cursor: pointer; }
.slice {
  cursor: pointer;
  transition: transform .14s ease, filter .14s ease;
  transform-box: fill-box;
  transform-origin: 50% 50%;
  stroke: #fff;
  stroke-width: 2;
}
.slice:hover { transform: scale(1.03); filter: brightness(.95); }
#center { cursor: default; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .15)); }
.center-text {
  font-weight: 700;
  font-size: 20px;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  fill: #000;
}
.center-image { margin: auto; top: 0; bottom: 0; }

/* --- Altri elementi --- */
.sfondo { display: flex; height: 100vh; }
.sfondo img { min-width: 25%; max-width: 50%; }

.column-section-name { float: left; width: 80%; }
.column-section-button { float: left; width: 18%; }

/* --- Titoli e testi --- */
.title-layout, .title-homepage {
  text-align: center;
  font-size: 10vh;
  font-family: 'NexaHeavyFont', var(--generic-font-family);
  margin-bottom: 0.5rem;
  margin-top: 2rem;
}
.title-layout-survey {
    line-height: 7.5vh;
    height: fit-content;
    align-self: flex-end;
}
.title-layout:has(> .btn-action) { text-align: unset; align-items: center; }
.subtitle-homepage {
  text-align: center;
  margin-top: -1rem;
  font-size: 2.9vh;
  color: rgba(0, 0, 0, 0.5);
  font-family: 'NexaBoldFont', var(--generic-font-family);
}
.repi-input-text {
  font-family: 'Helvetica Light', var(--generic-font-family);
  font-size: 0.8rem;
  border-radius: 25px !important;
  box-shadow: 0 0 0.25rem rgba(0, 0, 0, 0.5);
}
.repi-label {
  font-family: 'NexaBoldFont', var(--generic-font-family);
  font-size: 1rem;
}
.brand { font-size: 2rem; font-weight: bold; letter-spacing: 2px; }
.brand img { height: 3rem; }
.title { font-size: 3rem; font-weight: 400; line-height: 1.1; }
.highlight, .sottotesto { font-size: 0.8rem; }
.highlight { font-weight: 600; }
.footer { font-size: 0.5rem; margin-top: 17rem; }
.testo-principale { margin-top: 6rem; }

.video-element {
  width: 60vw;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}
.buttons-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pagina-carosello { margin-top: 1rem; }

/* --- Responsive --- */
@media (max-width: 1100px) and (orientation: portrait) {
  .title-homepage, .title-layout { font-size: 7vh; }
  .subtitle-homepage { font-size: 3vh; }
}
@media (max-width: 767px) {
  .box img {width: 50vw;}
  .sub-dx {transform: scale(0.64);}
  .blocco-destro { padding-bottom: 2vh; grid-gap: 0; }
  .blocco-container { padding-right: 0; }
  .blocco-elemento { width: 75vw; margin-top: 2vh; }
  .blocco-elemento.active { width: 85vw; }
  .icona-select { width: 10vw; margin-left: 3vw; }
  .testo-select { width: 68vw; }
  .title-homepage, .title-layout { font-size: 10vh; }
  .subtitle-homepage { font-size: 3vh; }
}
@media (max-width: 450px) {
  .title-homepage, .title-layout { font-size: 4vh; }
  .subtitle-homepage { font-size: 2vh; }
}
