#sezioniAppaltiPrivati2,
#sezioniAppaltiPrivati3,
#sezioniAppaltiPrivati4 {
  padding-top: 70px;
  padding-bottom: 70px;

}

#sezioniAppaltiPrivati2_paragrafo,
#sezioniAppaltiPrivati3_paragrafo,
#sezioniAppaltiPrivati4_paragrafo {
  margin-bottom: 30px;
}

#sezioniAppaltiPrivati2 h3,
#sezioniAppaltiPrivati3 h3,
#sezioniAppaltiPrivati4 h3 {
  margin-top: 0px !important;
}


#callToActionBox1 p,
#callToActionBox2 p {
    color: var(--app-color-dark-7);
    text-align: center;
    font: normal normal 500 22px Figtree;
}

.titolo_parte1 {
  color: var(--app-color-lightblue-3);
  padding-right: 20px;
}

.titolo_parte2 {
  color: var(--app-color-brand);
  padding-top: 16px;
}

.sotto_titolo {
  color: var(--app-color-dark-5);
}

.text {
  max-width: 785px;
  color: var(--app-color-dark-7);
  text-align: left;
  font: normal normal 17px "Figtree";
  letter-spacing: 0px;
  height: 100%;
  /*margin-bottom: 40px;*/
}

.sezioneInterna-padding.w3-row.l6.m12.s12 .text {
  color: var(--app-color-light);
}

/*
  Banner Pagina Sostenibilità (immagine in alto )
  */
#bannerSostenibilita1 {
  position: relative;
}


/* questo modifica il full-with-height appositamente per il banner sostenibilità*/
#bannerSostenibilita1 .full-width-height {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: 800px;
  margin: 0 auto;
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
  overflow: hidden;
}

#bannerSostenibilita1 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#bannerSostenibilita1 .overlay {
  border-bottom-left-radius: 60px;
  border-bottom-right-radius: 60px;
}

#bannerSostenibilita1 h1 {
    font-size: 80px; 
}

#sezioneSostenibilita1_1_0 {
  padding-left: 35%;
}

#sezioneSostenibilita1_1 .margin {
  margin-left: 50%;
}

/*
  Prima Sezione Pagina Sostenibilità
  */
#sezioneSostenibilita1_1 img {
  top: 893px;
  left: 0px;
  max-width: 380px;
  width: 100%;
  height: 100%;
  opacity: 1;
  padding-right: 10px;
  padding-top: 40px;
}

#sezioneSostenibilita1_1 h2,
#sezioneSostenibilita1_1 h3,
#sezioneSostenibilita1_1 h5 {
  color: var(--app-color-dark-5);
  text-align: left;
}

#sezioneSostenibilita1_1_1 {
  display: block;
}

#sezioneSostenibilita1_1_2 h3,
.sezione h2 {
  font-weight: 800;
  margin-top: 50px;
}

#sezioneSostenibilita1_1_2 h5.sotto_titolo {
  margin-bottom: 30px;
}

/*
Sezione 1: Label Style matching Home
*/
.sezione label {
    color: var(--app-color-brand);
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    font-size: 22px;
}

/*
  #sezioneSostenibilita1_1_2 .text {
    margin-bottom: 10px;
  }
  */
h2.small-title {
  font-size: 40px;
}

h5.small-title {
  font-size: 22px;
}

/*
  Seconda Sezione Pagina Sostenibilità
  */
#sezioniAppaltiPrivati2_1,
#sezioniAppaltiPrivati3_1,
#sezioniAppaltiPrivati4_1 {
  margin-bottom: 26px;
}

/* Colore testo per sezione 3 con sfondo bianco */
#sezioneAppaltiPrivati3_1 .sezioneInterna-padding.w3-row.l6.m12.s12 .text {
  color: #5f6a6f;
}

#sezioneAppaltiPrivati2_2,
#sezioneAppaltiPrivati3_2,
#sezioneAppaltiPrivati4_2 {
  margin-top: 0;
  position: relative;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: var(--app-color-lightblue-3) transparent;
  /* Firefox */
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-bottom: 20px;
  width: 100%;
  max-width: 100vw;
  cursor: grab;
  user-select: none;
}

#sezioneAppaltiPrivati2_2:active,
#sezioneAppaltiPrivati3_2:active,
#sezioneAppaltiPrivati4_2:active {
  cursor: grabbing;
}

#sezioneAppaltiPrivati2_2::-webkit-scrollbar,
#sezioneAppaltiPrivati3_2::-webkit-scrollbar,
#sezioneAppaltiPrivati4_2::-webkit-scrollbar {
  height: 8px;
  /* Chrome, Safari, Opera */
  margin-top: 20px;
}

#sezioneAppaltiPrivati2_2::-webkit-scrollbar-track,
#sezioneAppaltiPrivati3_2::-webkit-scrollbar-track,
#sezioneAppaltiPrivati4_2::-webkit-scrollbar-track {
  background: transparent;
}

#sezioneAppaltiPrivati2_2::-webkit-scrollbar-thumb,
#sezioneAppaltiPrivati3_2::-webkit-scrollbar-thumb,
#sezioneAppaltiPrivati4_2::-webkit-scrollbar-thumb {
  background-color: var(--app-color-lightblue-3);
  border-radius: 4px;
}

.boxRow {
  justify-content: flex-start;
}

#sezioneAppaltiPrivati2_2 .boxRow,
#sezioneAppaltiPrivati3_2 .boxRow,
#sezioneAppaltiPrivati4_2 .boxRow {
  padding-left: 5.36vw;
  padding-right: 15px;
  margin-top: 20px;
}

#sezioneAppaltiPrivati2_2 .boxRow::after,
#sezioneAppaltiPrivati3_2 .boxRow::after,
#sezioneAppaltiPrivati4_2 .boxRow::after {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 15px;
  height: 1px;
}

#sezioneAppaltiPrivati2_2 .boxCardItem:last-child,
#sezioneAppaltiPrivati3_2 .boxCardItem:last-child,
#sezioneAppaltiPrivati4_2 .boxCardItem:last-child {
  margin-right: calc((0.01em + var(--pp-header-scroll-size-padding)) - 10px);
}

/*
  modifica colori card
  */

.bgImage h2 {
  color: var(--app-color-lightblue-3);
  text-transform: uppercase;
}

.bgImage h5 {
  color: var(--app-color-light);
  text-transform: uppercase;
}

.bgImage p {
  color: var(--app-color-lightblue-3);
  text-transform: uppercase;
  margin-top: 26px;
  font-size: 16px;
  line-height: 1.3;
  hyphens: auto;
}

.bgImage h2 {
  margin-top: 0px;
}

.bgImage h5 {
  margin-top: 0px;
  margin-bottom: 0px;
}

#callToActionSostenibilita {
  padding-top: 70px;
}

#callToActionSostenibilita h3 {
  color: var(--app-color-dark-5);
  text-align: center;
}

#callToActionBox1,
#callToActionBox2 {
  gap: 0;
  border: 4px solid var(--app-color-white);
}

#callToActionBox1 h5,
#callToActionBox2 h5,
.ctaBox h4 {
  text-align: center;
  color: var(--app-color-lightblue-3);
}

.cta-container-flex {
  display: flex;
  flex-direction: column;
}

.cta-boxes-container {
  display: flex;
  flex-direction: row;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  gap: 60px;
}

/*
  .buttonCta1{
      background: var(--app-color-brand) 0% 0% no-repeat padding-box;
      opacity: 1;
  }
  
  .buttonCta1:hover{
      background: var(--app-color-brand) 0% 0% no-repeat padding-box;
      border: 4px solid var(--app-color-brand-3);
  }
  
  .buttonCta1:active{
      background: var(--app-color-brand-3) 0% 0% no-repeat padding-box;
      border: 4px solid var(--app-color-brand-3);
  }
  
  .buttonCta2{
      background: var(--app-color-dark-5) 0% 0% no-repeat padding-box;
      background: #2C3133 0% 0% no-repeat padding-box;
      opacity: 1;
  }
  
  .buttonCta2:hover{
      background: var(--app-color-dark-5) 0% 0% no-repeat padding-box;
      background: #2C3133 0% 0% no-repeat padding-box;
      border: 4px solid var(--app-color-dark);
  }
  
  .buttonCta2:active{
      background: var(--app-color-dark) 0% 0% no-repeat padding-box;
      border: 4px solid var(--app-color-dark);
  }
  */

/*
  bottoni card svg
  */

.button1 {
  background-image: url("../../img/svg/Download_Lightblue3Color_Default.svg");
  position: relative;
}

/* Preload hover/active images to prevent flash on first hover */
.button1::after {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  z-index: -1;
  visibility: hidden;
  content: 
    url("../../img/svg/Download_Lightblue3Color_Hover.svg")
    url("../../img/svg/Download_Lightblue3Color_Active.svg");
}

.button1:hover {
  background-image: url("../../img/svg/Download_Lightblue3Color_Hover.svg");
}

.button1:active {
  background-image: url("../../img/svg/Download_Lightblue3Color_Active.svg");
}

/*
  Link wrapper per rendere tutta la card cliccabile
  */
.card-link-wrapper {
  text-decoration: none;
  display: block;
  color: inherit;
}

.card-link-wrapper:hover {
  text-decoration: none;
}

/* Animazione icona al hover della card */
.card-link-wrapper:hover .button1 {
  background-image: url("../../img/svg/Download_Lightblue3Color_Hover.svg");
}

.card-link-wrapper:active .button1 {
  background-image: url("../../img/svg/Download_Lightblue3Color_Active.svg");
}

/* Mantieni il pointer cursor su tutta la card */
.card-link-wrapper .card {
  cursor: pointer;
}

.ctaBox {
  background: var(--app-gradient-light-modified);
  border: 4px solid var(--app-color-white);
}


.card> :first-child {
  margin-top: 0;
}

.card> :last-child {
  margin-bottom: 0;
}

.card {
  min-height:   500px;
  width: auto;
  max-width: none;
}

.boxCard {
  margin-left: auto;
  margin-right: auto;
}

#boxCard1 {
  background-image: url("../../img/webp/EdificiCiviliIndustriali_VillaSerena_Card-Img01.webp");
  background-position: bottom;
  background-size: cover;
  position: relative;
}

.bgImage .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
  border-radius: inherit;
}



.ctaBox> :last-child {
  margin-top: auto;
}


.bgImage h2,
.bgImage h5,
.bgImage p,
.bgImage .card-footer {
  position: relative;
  z-index: 2;
}

.bgImage.card {
  gap: 0;
}

.bgImage h2 {
  margin-top: 10px;
  margin-bottom: 4px;
}

.bgImage h5 {
  margin-bottom: 26px;
}

/*
  Carousel Slider Buttons
  */
#carouselSliderButtonContainer,
#carouselSliderButtonContainer4 {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#carouselSliderButtonContainer3 {
  background-color: transparent;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#carouselSliderButton,
#carouselSliderButton3,
#carouselSliderButton4 {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 30px;
  margin-bottom: 70px;
  margin-right: 156px;
  padding-left: 16px;
  padding-right: 16px;
}

#carouselSliderButton .arrow-button,
#carouselSliderButton3 .arrow-button,
#carouselSliderButton4 .arrow-button {
  min-width: unset;
  width: 48px;
  height: 48px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#carouselSliderButton .arrow-button img,
#carouselSliderButton3 .arrow-button img,
#carouselSliderButton4 .arrow-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

#carouselSliderButton .arrow-button:hover img,
#carouselSliderButton3 .arrow-button:hover img,
#carouselSliderButton4 .arrow-button:hover img {
  opacity: 0;
}

#carouselSliderButton .arrow-button:hover::before,
#carouselSliderButton3 .arrow-button:hover::before,
#carouselSliderButton4 .arrow-button:hover::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("../../img/svg/ArrowSx_Lightblue3Color_Hover.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1;
}

#carouselSliderButton .arrow-button.arrow-right:hover::before,
#carouselSliderButton3 .arrow-button.arrow-right:hover::before,
#carouselSliderButton4 .arrow-button.arrow-right:hover::before {
  background-image: url("../../img/svg/ArrowDx_Lightblue3Color_Hover.svg");
}

#carouselSliderButton .arrow-button:active img,
#carouselSliderButton3 .arrow-button:active img,
#carouselSliderButton4 .arrow-button:active img {
  opacity: 0;
}

#carouselSliderButton .arrow-button:active::after,
#carouselSliderButton3 .arrow-button:active::after,
#carouselSliderButton4 .arrow-button:active::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("../../img/svg/ArrowSx_Lightblue3Color_Active.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}

#carouselSliderButton .arrow-button.arrow-right:active::after,
#carouselSliderButton3 .arrow-button.arrow-right:active::after,
#carouselSliderButton4 .arrow-button.arrow-right:active::after {
  background-image: url("../../img/svg/ArrowDx_Lightblue3Color_Active.svg");
}

#carouselSliderButton .arrow-button.disabled,
#carouselSliderButton3 .arrow-button.disabled,
#carouselSliderButton4 .arrow-button.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.boxCardItem {
  min-width: 390px;
  width: 390px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 500px) {

  #callToActionBox1 p,
  #callToActionBox2 p {
    font-size: 17px !important;
  }

  #bannerSostenibilita1 .full-width-height, #bannerLavoraConNoi1 .overlay {
    height: 500px;
  }

  .card {
    max-width: 100% !important;
    min-width: 0px !important;
    min-height: 420px !important;
    padding: 25px !important;
    box-sizing: border-box;
    border-radius: 0px 50px 50px 50px !important;
  }

  .boxCardItem {
    min-width: 320px;
    width: 320px;
  }

  .bgImage p {
    font-size: 16px !important;
  }

  #sezioneSostenibilita1_1 img {
    max-width: 250px;
    padding-left: 0;
    padding-right: 0;
  }

  /* Margini uguali a destra e sinistra per tutte le card su mobile */
  .card.left-card-margin,
  .w3-container.card.left-card-margin,
  .ctaBox.left-card-margin {
    margin-left: 12px !important;
    margin-right: 12px !important;
  }


#bannerSostenibilita1 h1 {
    font-size: 60px; 
}
}

@media only screen and (max-width: 991px) {

  #carouselSliderButton,
  #carouselSliderButton3,
  #carouselSliderButton4 {
    margin-right: 0 !important;
  }
}

.left-card-margin {
  margin: 0px 10px 0 10px;
}

.w3-container.card.sezione-color-white.bgImage.left-card-margin {
  padding-top: 60px;
  border-radius: 0 60px 60px 60px;
  padding: 40px;
}

@media only screen and (max-width: 993px) {
  #sezioneSostenibilita1_1_0 {
    padding-left: 15px;
  }

  .boxRow {
    flex-direction: row;
    align-items: start;
  }

  .bgImage p {
    font-size: 16px !important;
  }
}

@media only screen and (max-width: 500px) {
  h2.small-title {
    font-size: 32px !important;
  }
}

#sezione_3_Background {
  background: var(--app-gradient-color-light);
}

#sezione_2_Background,
#sezione_4_Background {
  background: transparent var(--app-gradient-color-dark-3-5) 0% 0% no-repeat padding-box;
}