﻿html, body {
    height: 100%;
}

.backgroundImg {
  background-image: url("img/bannerBg.jpg");
  background-size: cover;
  height: 950px;
}

.thinText {
  font-size: 0.8125rem;
  font-weight: 400;
}

.boldText {
  font-size: 1.7rem;
  font-weight: bold;
}

.homePageBox {
  margin: 0 150px;
  padding: 0 20px;
  height: 90px;
  position: relative;
  top: -90px;
  background-color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-container-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.grid-item {
  height: 400px;
  box-shadow: 0 6px 7px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.grid-reviews-item {
  height: 250px;
  box-shadow: 0 6px 7px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.1);
}

.grid-info-item {
  height: 250px;
  box-shadow: 0 6px 7px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px;
  background-color: rgba(0, 0, 0, 0.1);
}

.stars {
  color: var(--bcc-verde-scuro);
  font-size: 2rem;
}

.grid-item-img {
  height: 50%;
  background-size: cover;
  background-position: center;
}

.grid-item-content {
  height: 50%;
}

.promozioni-e-iniziative-section {
  background-image: url(/PublishingImages/BannerHP/promozioni_e_iniziative_bg.jpg);
  background-size: cover;
}

.promozioni-e-iniziative-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.promozioni-e-iniziative-item {
  background-color: white;
  padding: 30px;
}

.highlighted-text-blue {
  font-size: 0.8125rem;
  font-weight: 400;
  margin-bottom: 0;
  background-color: lightblue;
  display: inline-block;
  padding: 4px;
}

.highlighted-text-orange {
  font-size: 0.8125rem;
  font-weight: 400;
  margin-bottom: 0;
  background-color: rgba(245, 150, 27, 0.6);
  display: inline-block;
  padding: 4px;
  align-self: flex-start;
}

.highlighted-text-green {
  font-size: 0.8125rem;
  font-weight: 400;
  margin-bottom: 0;
  background-color: #D8E9C3;
  display: inline-block;
  padding: 4px;
  align-self: flex-start;
}

.carousel-left-box {
  width: 23%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.carousel-right-box {
  width: 77%;
  height: 341.92px;
}

.carousel-section {
  background-color: #F3F9F6;
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  gap: 24px;
}

.carousel-container {
  display: flex;
  flex-direction: row;
  gap: 35px;
}

.container-interno {
  width: 75%;
  margin: 0 auto;
  padding: 6% 0;
}

.carousel-first-container {
  background-color: white;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}


/* --- Override specifico per #carousel-promozione --- */
#carousel-promozione .carousel-item {
  height: auto;
  overflow: visible;
  background: none;
}

#carousel-promozione .carosello-indicatori {
  position: static;
  margin-top: 12px;
}


#carosello-hero .carosello-indicatori .carosello-prev,
#carosello-hero .carosello-indicatori .carosello-next {
  background: transparent;
  border: none;
  width: 44px; 
  height: 44px;
  padding: 0; 
  margin: 0 4px;
  display: inline-flex; 
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#carosello-hero .carosello-indicatori .carosello-prev img,
#carosello-hero .carosello-indicatori .carosello-next img {
  width: 18px; 
  height: 18px;
  display: block;
  filter: none;                 
  /* colore originale dell’icona */
  transition: transform .2s ease, opacity .2s ease;
}

#carosello-hero .carosello-indicatori .carosello-prev:hover img,
#carosello-hero .carosello-indicatori .carosello-next:hover img {
  transform: scale(1.08);
  opacity: .85;
}

/* Se vuoi mantenere il focus ring coerente ai dots */
#carosello-hero .carosello-indicatori .carosello-prev:focus-visible,
#carosello-hero .carosello-indicatori .carosello-next:focus-visible {
  outline: 2px solid var(--bcc-bianco);
  outline-offset: 5px;
}

.subtitle {
  font-size: 1.5rem;
}

.base-container {
  width: 75%;
  margin: 0 auto;
}

.women-energy-box {
  background-color: white;
  height: 85%;
  width: 45%;
  box-shadow: 0px 0px 15px 6px rgba(0, 0, 0, 0.3);
}

.search-bar {
  background-color: #0b6b3a; 
  /* verde sfondo */
  padding: 16px;
}

.search-label {
  color: #fff;
  display: block;
  font-weight: 600;
}

.search-wrapper {
  display: flex;
  align-items: center;
  gap: 8px; 
  /* spazio tra input e pulsanti */
}

.search-wrapper input {
  flex: 1; 
  /* occuperà tutto lo spazio disponibile */
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
}

.btn-nearby {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: #fff;
  color: #0b6b3a;
  border: none;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
}

.btn-search {
  background-color: #fff;
  color: #0b6b3a;
  border: none;
  border-radius: 999px; 
  /* pillola */
  padding: 12px 24px;
  font-weight: 600;
  cursor: pointer;
}

.btn-nearby:hover,
.btn-search:hover {
  background-color: #f2f2f2;
}

.grey-background {
  background-color: var(--bcc-grigio-perla-digital);
  padding-top: 40px;
  padding-bottom: 40px;
  margin: 0;
}

.flex-center {
  display: flex;
  justify-content: center;
}
.flex-center > div {
    flex: 1;
}
.flex-2 {
	flex: 2;
}

.flex-5 {
  width: 700px;
}

.flex-4 {
  flex: 4;
}

.flex-3 {
  flex: 3;
}

.sottomenu-img {
  background-size: cover;
  background-position: center;
  /*width: 467px;*/
  margin-top: -40px;
  margin-bottom: -40px;
}

.sottomenu-img-faq {
  background-size: 50%;
  background-repeat: no-repeat;
  background-position: center;
}

.sottomenu-img--prestito-online {
  background-image: url(/Style%20Library/Images/All_Layouts_Images/online_banner.jpg);
}

.sottomenu-img--prestiti-personali {
  background-image: url(/Style%20Library/Images/All_Layouts_Images/grid_1_prestito_personale.jpg);
}

.sottomenu-img--progetti {
  background-image: url(/Style%20Library/Images/All_Layouts_Images/checker.png);
}

.sottomenu-img--cessione-quinto {
  background-image: url(/Style%20Library/Images/All_Layouts_Images/quinto.jpg);
}

.sottomenu-img--anticipo-tfs {
  background-image: url(/Style%20Library/Images/All_Layouts_Images/bike.jpg);
}

.sottomenu-img--promozioni-iniziative {
  background-image: url(/Style%20Library/Images/All_Layouts_Images/promozioni_e_iniziative_bg.jpg);
}

.sottomenu-img--info-utili {
  background-image: url(/Style%20Library/Images/All_Layouts_Images/FAQ.png);
}

.progetti-sottomenu-box-1 {
  padding-right: 100px !important;
  padding-left: 40px !important;
}

.progetti-sottomenu-box-2 {
  background-color: white;
  margin-left: 20px;
  margin-right: 20px;
  padding: 24px 32px;
}
.progetti-sottomenu-box-2.flex-3 {
    overflow-y: auto;
    max-height: 360px;
}
.textSize18-500 a, .textSize18-500 a:visited {
    font-size: 18px;
    font-weight: 500;
    color: #202020;
    text-decoration: none;
}
.textSize20-500 {
  font-size: 20px;
  font-weight: 500;
}
.progetti-sottomenu-box-1 .textSize20-500.margin-bottom-16 {
	margin-bottom: 16px;
}
.textSize28-700 {
  font-size: 28px;
  font-weight: 700;
}

.textSize40-700 {
  font-size: 40px;
  font-weight: 700;
}

.text-blue {
  color: var(--bcc-blu);
}

.margin-bottom-10 {
	margin-bottom: 10px;
}

.margin-bottom-12 {
  margin-bottom: 12px;
}

.margin-bottom-15 {
  margin-bottom: 15px;
}

.margin-bottom-24 {
  margin-bottom: 24px;
}

.margin-bottom-40 {
  margin-bottom: 40px;
}

.margin-bottom-48 {
  margin-bottom: 48px;
}

.padding-24-32 {
  padding: 24px 32px;
}

.sottomenu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* due colonne */
  gap: 16px;
}

.sottomenu-box.full {
  grid-column: span 2;
}

.sottomenu-box {
  background: white;
  padding: 15px 15px;
  border-bottom: 3px solid var(--bcc-verde-scuro);
  box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.1);
}

.box-icon {
  width: 48px;
  height: 48px;
  background-repeat: no-repeat;
}

.d-none-m-block {
	display: block;
}

.d-block-m-none {
	display: none;
}
.cta-secondaria.avanti::after,.cta-secondaria.indietro::after {
    content: "";
    background: url(https://static.publisher.iccrea.bcc.it/archivio/648/175994.svg) center center/contain no-repeat;
    height: .875rem;
    left: 1rem;
    position: absolute;
    transform: rotate(180deg) translateY(50%);
    width: .875rem
}
@media (max-width: 1199.98px) {
	.flex-center {
	    display: flex;
    	flex-direction: column;
    	height: 100%;
    	justify-content: flex-start;
    }
	.flex-center > div {
    	width: 100%;
	}
	.flex-center > div:last-child {
		margin-left: -15px;
		width: calc(100% + 30px);
		position: relative;
		position: absolute;
        transform: translateY(-100px);
        bottom: 0;
        top: 100%;   	
    }
  	.flex-center .cta-secondaria.icona-dx.avanti{
	    margin: 15px 0 40px 0;	
	}
	.sottomenu-grid > * {
 		 min-width: 0;
	}
	.sottomenu-img {
	    margin: 0;
	    padding: 0;
	    display: block;
	}
	.contenitore-sottomenu {
    /*flex-grow: 1;*/
     flex: 1;
	}	
	
	.d-none-m-block {
		display: none;
	}
	
	.d-block-m-none {
		display: block;
	}
	.progetti-sottomenu-box-1 {
	  padding-right: 0 !important;
	  padding-left: 0 !important;
	}
	
	.progetti-sottomenu-box-2 {
	  margin-left: 0;
	  margin-right: 0;
	  padding: 16px 0;
	}
	.progetti-sottomenu-box-2.flex-3 .textSize28-700.margin-bottom-12, .progetti-sottomenu-box-2.flex-3 .textSize28-700.margin-bottom-40 {
		font-size: 24px;
		line-height: 31px;	
	}
	.grey-background {
	  padding-top: 0;
	  padding-bottom: 0;
	}
	.sottomenu-box {
		display: flex;
		align-items: center;
		padding: 5px 10px;
	}
	.sottomenu-img {
		width: auto;
		margin-top: 0;
		margin-bottom: 0;
		min-height: 180px;
	}
	.sottomenu-grid .sottomenu-box:last-child {
  		grid-column: span 2;
	}
	.sottomenu-grid .sottomenu-box:nth-of-type(6) {
		grid-column: unset;
	}
	.flex-center .textSize20-500 {
	  font-size: 14px;
	  font-weight: 400;
	}
	.flex-center .margin-bottom-48 {
		margin-bottom: 0;
	}
	.flex-center .margin-bottom-16 {
		margin-bottom:16px;
	}
	#menu-principale .menu-grande .contenitore-sottomenu {
		padding-top: 0;
	}
	.progetti-sottomenu-box-2.flex-3 {
		padding: 16px 0;
	}
	.progetti-sottomenu-box-2.flex-3 {
		margin-top: 40px;
		position: relative;
	}
	.progetti-sottomenu-box-2.flex-3.simula {
		padding: 16px;
	}
	.progetti-sottomenu-box-2.flex-3.list-menu {
		margin-top:0;
	}
	.progetti-sottomenu-box-2.flex-3:before {
		content:'';
		display: block;
		width:100%;
		height: 1px;
		background-color: #b6b9bb;
        position: absolute;
        top: -40px;
        left: 0;
	}
	.progetti-sottomenu-box-2.flex-3.list-menu:before {
		display: none;
	}
	.progetti-sottomenu-box-2.flex-3.list-menu ul li a {
	    margin: 0;
	    padding-top: 0;
	    position: relative;
	    padding-right: 18px;
	    padding-bottom: 25px;
	}
	.progetti-sottomenu-box-2.flex-3.list-menu ul li a:before {
		top: 6px;
	}
	.progetti-sottomenu-box-2 ul, .progetti-sottomenu-box-2 ul li {
		padding: 0;
	}
	.sottomenu-box .textSize18-500 a {
	font-size: 16px;
	height: 24px;
	}
	.textSize40-700 {
	    font-size: 1.875rem;
	}
	.box-icon {
	    width: 48px;
	    height: 48px;
	    background-size: contain;
	    background-repeat: no-repeat;
	    background-position: center;
	}
	.box-icon + div[class*=textSize] {
		margin-left: 12px;
	}
	.progetti-sottomenu-box-2 .cta-primaria {
		width: 100%;
	}
}
/*--- NEW CSS LAYOUT*/
@media (max-width: 480px) {
	  .menu-grande.visibile {
	  position: fixed;
	  top: 40px;
	  left: 0;
	/*   width: 100%; */
	  height: calc(100dvh - 40px);
	  overflow-y: auto;
	  background: fff;
	}
	.flex-center {
	  display: flex;
	  flex-direction: column;
	  height: 100%;
	}
	.flex-center > div:last-child {
	    position: static;
        transform: none;  	
    }
   	.sottomenu-img.d-block-m-none {
		display: none;
}
	.sottomenu-img {
	  width: 100%;
	  min-height: 180px;
	}
	.box-icon {
	    width: 30px;
        height: 30px;
        background-size: contain;
        background-position: center;  
    }
}
@media (max-width: 767px) {
	.progetti-sottomenu-box-2.flex-3 {
		max-height: none;
    	overflow-y: unset;
 	}
}

@media (min-width:768px) and (max-width: 1024px){
	.flex-center > div:last-child {
		position:relative;
		transform: none;
	}
}
/*@media (max-width: 480px) {
  .flex-center>div:last-child {
    top: 86%;
  }
  
}
@media (max-width: 390px) {
      .progetti-sottomenu-box-2.flex-3{
        margin-top: 10px;
}
}
@media (max-width: 375px) {
  #menu-principale .menu-grande.visibile{
    min-height: 100vh;
  }
  .flex-center{
    height: 90vh;
  }
  .flex-center > div:last-of-type {
    position: initial;
    transform:none;
  }
}*/