.bgBPI_blue{background-color:#105E80}
.bgBPI_red{background-color:#ff0000}
.bgBPI_beige{background-color:#dfd0bd}

.cta-rivista-bongard__testo-cta {
    color: #1b6d8d;
    font-size: 1.5rem;
    line-height: 1.3;
}

/* Contenitore immagine di sfondo Sezioni*/

.bip-hero-wrapper {
    position: relative;
    height: calc(100vh - 130px) !important; /* altezza header desktop */
    overflow: hidden;
    margin: 0 !important;
    padding: 0;
}

.bip-taxonomy-wrapper {
    position: relative;
    overflow: hidden;
    margin: 0 !important;
    padding: 0;
}



#bgimg {
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
}

#bg-overlay {
    top: 0;
    left: 0;
}

@media (max-width: 991px) {
    .bip-hero-wrapper {
        height: calc(100vh - 70px); /* solo site-header su mobile */
    }
}

/*
.bgimg {
	min-height: 100vh;   	
  background-size: cover;
  background-position: center;
  transition: opacity .8s ease, transform .6s ease;
  opacity: 1;
  transform: scale(1);
  z-index: -1;
}
*/
.bgimg {
    min-height: 100vh;
    background-size: auto; /* dimensione naturale, non stretch */
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    transition: opacity .8s ease, transform .6s ease;
    opacity: 1;
    transform: scale(1);
    z-index: -1;
}

/* Creiamo lo strato scuro */
.img-max-450 {
    height: 450px !important;-o-object-fit:cover;object-fit:cover; background-size:  cover;background-position: center center;background-repeat: none;
}

.bgimg::after, .img-max-450::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradiente da nero sotto a trasparente sopra */
		background: 
        /* Sfuma dall'alto verso il centro */
        linear-gradient(to bottom, rgba(135,20,12,1) 0%, rgba(135,20,12,0) 40%),
        /* Sfuma dal basso verso il centro */
        linear-gradient(to top, rgba(135,20,12,0.4) 0%, rgba(135,20,12,0) 40%);    
    z-index: 1; /* Va dietro al contenuto (logo, testi) ma sopra l'immagine di sfondo */
}
.bgProdBPI {
    content: "";
    /* Gradiente da nero sotto a trasparente sopra */
		background: 
        /* Sfuma dall'alto verso il centro */
        linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(135,20,12,0.7) 40%, rgba(135,20,12,0) 80%),
        /* Sfuma dal basso verso il centro */
        linear-gradient(to top, rgba(135,20,12,1) 30%, rgba(135,20,12,0) 80%);    
    z-index: 1; /* Va dietro al contenuto (logo, testi) ma sopra l'immagine di sfondo */
}
/* Fade-out */
.bg-image.fade {
  opacity: 0;
}

/* Overlay sfumato sopra e sotto */
.bg-overlay {
    min-height: 100vh; /* Allineato all'altezza totale del container */
    background: 
        /* Sfuma dall'alto verso il centro */
        linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(135,20,12,0.4) 40%, rgba(135,20,12,0) 70%),
        /* Sfuma dal basso verso il centro */
        linear-gradient(to top, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 60%);    
    opacity: 1;
    transition: opacity .8s ease;
}
/* Overlay sfumato sopra e sotto */
.bg-overlayHP {
    min-height: 100vh; /* Allineato all'altezza totale del container */
    background: 
        /* Sfuma dall'alto verso il centro */
        /*linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(135,20,12,0.4) 40%, rgba(135,20,12,0) 70%),*/
        /* Sfuma dal basso verso il centro */
        linear-gradient(to top, rgba(0,0,0,1) 15%, rgba(0,0,0,0) 60%);    
    opacity: 1;
    transition: opacity .8s ease;
}


/* Overlay più visibile quando cambia immagine */
.bg-overlay.active {
  opacity: 1;
}


.testoHP{z-index:3 !important;height:40vh;/* top: -80px;*/}
.page-content:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
    justify-content: center;
}
.page-content:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
    justify-content: center;
}
.page-content:has(> :nth-child(6):last-child) {
    grid-template-columns: repeat(6, 1fr);
    justify-content: center;
}
/* Contenitore del testo principale */
#testoHP {
	/*height:300px;*/
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease;
  display: flex; flex-direction: column; justify-content: center;
}

.testoHP p{ font-size: 1.2em;font-family: var(--title-font-family); padding-top:20px;}
.testoHP h1{ text-transform:uppercase;letter-spacing:3px;line-height:1em !important}
.testoHP a{color:#e5be38 !important}
.testoHP strong {
    display: inline !important;
}
/* --- 1. LOGICA ALTEZZA (Dall'alto verso il basso) --- */

/* Schermi mediamente bassi (es. Laptop 13" o Tablet landscape) */
@media (max-height: 800px) {
  .testoHP p { font-size: 0.8rem !important; }
  .claimHP   { top: 100px !important; }
  .testoPages  { top: 30px !important; }
}

/* Schermi bassi (sotto i 600px) */
@media (max-height: 600px) {
  #testoHP > .copyHP { visibility: hidden; }
  #testoHP, .hero-center { margin-bottom: 0px; }
}

/* Schermi bassissimi (sotto i 380px - es. smartphone in orizzontale) */
@media (max-height: 380px) {
  .site-header { font-size: 11px; }
}

/* --- 2. LOGICA LARGHEZZA (Mobile Portrait) --- */

/* Smartphone e schermi stretti */
@media (max-width: 900px) {
   #testoHP { /*height: auto; */}
   #testoHP h1 {font-size: 1.3rem !important}
  .testoHP p { font-size: 0.9rem !important}
  /* Nota: Questo top: -150px vincerà su quello a 100px quando lo schermo è stretto */
  .claimHP { /*top: -150px !important; */} 
	.hpBox{min-height:150px !important}  
	/*.testoHP{height: 20vh !important}*/
}

/* Fade-out + slide-down */
#testoHP.fade-out {
  opacity: 0;
  transform: translateY(20px);
}

/* Fade-in + slide-up */
#testoHP.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/*----------------------------------------------------------
# Hero home
--------------------------------------------------------------*/
.heroHome, .heroSubPage {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* centro + bottom */
    padding: 40px;
}

/* Contenuto centrale */
.hero-center {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    /*margin-top: auto;*/
    margin-bottom: auto; /* questo centra verticalmente */
}

/* Box in fondo */
.hero-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding-bottom: 20px;
}




.attivitaHP {
    gap: 30px; /* spazio tra i box  regola a piacere */
    flex-wrap: nowrap;
}

/* Compensa il gap nel calcolo larghezza colonne */
.attivitaHP .hpBox {
    flex: 1 1 0;
    min-width: 0;
}
/* Sovrappone i box categorie al fondo dell'hero */
.bip-cats-wrapper {
    position: relative;
    margin-top: -450px !important; /* tira su i box sopra l'hero */
    z-index: 10;
    background: transparent;
    padding-bottom: 0 !important;
}


/* Il testo e il bottone restano sopra l'overlay del box */
.bip-cats-wrapper .hpBox .pb-5 {
    bottom: 30px; /* 30px dal bordo inferiore del box come richiesto */
}

.bip-prod-hidden {
    display: none;
}



.hpBox{
		min-height:300px;
	  display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente */
    align-items: center;
    }

.hpBox { filter: grayscale(0%); transition: filter .4s ease, transform .3s ease; } 
.hpBox:hover { filter: grayscale(50%); transform: scale(1.1);z-index:3};
.hpBox:not(:hover)  { filter: grayscale(100%);transition: filter .4s ease, transform .3s ease;z-index:0 } 


.hpBox {
    position: relative;
}
.hpBox::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    transition: all 0.4s ease;    

    z-index: -1;
}
.hpBox .content {
    position: relative;
    z-index: 2;
}
.hpBox:hover::after {
    background: 
        linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 60%),
        linear-gradient(to top, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 30%);
}
.hpBox .pb-5 {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    z-index: 2;
}
.hpCards-footer{width:100%;z-index:4;border:0 !important}

 
 /* btn scheda prodotto*/
.btnBPIbox{
    background: #cc0000;
    border:2px solid #cc0000;
    color:#ffffff !important;    
    padding: 8px 24px;
    font-family: var(--title-font-family);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.btnBPIbox a {
    color: #ffffff !important;
    text-decoration: none;
}

.hpBox:hover .btnBPIbox, .btnBPIbox:hover, .btnBPIbanner:hover {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}


/* Immagine dei prodotti BPI */
.card-bpi{background-color:transparent !important;border:none !important}
.card-bpi a{color:#ffffff !important}

.imgProdottiBPI{max-height:450px}


/* Evidenzai solo prodotto in rollover */
.row:has(.card-bpi:hover) .card-bpi:not(:hover) {
    opacity: 0.85;
}

.card-bpi {
    transition: opacity 0.3s ease;
}

.card-img-top-bpi {
    width: 100%;
    object-fit: contain;
    height: 260px !important;
    background-color: rgba(255, 255, 255, 0.2);
}
.subTitle, .subTitle p, .subText {color:#ffffff !important}
.titleBPI{font-size:1.5em;font-weight:600}

/* Letter spacing */
.ls-1 { letter-spacing: 0.05em; }
.ls-2 { letter-spacing: 0.10em; }
.ls-3 { letter-spacing: 0.15em; }
.ls-4 { letter-spacing: 0.25em; }
.ls-wide { letter-spacing: 0.30em; }


.bip-subheader {
    background: transparent;
    padding: 16px 0;
    z-index:2;
}

.bip-subheader__brand {
/*    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding-right: 48px;*/
}

.bip-subheader__logo {
    height: 32px;
    width: auto;
}

.bip-subheader__label {
    font-family: var(--title-font-family);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.bip-subheader__nav {
/*    display: flex;
    align-items: center;
    gap: 40px;*/

}

.bip-subheader__item {
    font-family: var(--title-font-family);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    transition: color 0.25s ease;
    white-space: nowrap;
    padding:0px 20px;    
}

.bip-subheader__item:hover {
    color: rgba(255, 255, 255, 0.85);
}

.bip-subheader__item--active {
    color: rgba(255, 255, 255, 1);
    opacity: 1;
}

/* TABS SCHEDE PRODOTTO SINGOLO */
.bip-tabs-wrapper {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 32px;
}

.bip-tabs {
    gap: 4px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 0;
}

.bip-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255,255,255,0.45);
    font-family: var(--title-font-family);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 10px 24px;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
    margin-bottom: -1px;
}

.bip-tab-btn:hover {
    color: rgba(255,255,255,0.85);
}

.bip-tab-btn.active {
    color: #ffffff;
    border-bottom-color: #c0392b;
    background: transparent;
}

.bip-tab-content {
    padding: 28px 0;
}

.bip-tab-pane-inner {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.80);
}

.bip-tab-pane-inner ul {
    padding-left: 20px;
}

.bip-tab-pane-inner li {
    margin-bottom: 6px;
}

/* marker personalizzato */
.testoProdotto ul > li::marker, .testoCategoria ul > li::marker {
    content: "\F136";
    font-family: bootstrap-icons !important;
    position: absolute;
    left: 0;
    top: 0;
    color: #ffffff;
    vertical-align: -.250em;
    margin-left: 5px;
}


.breadcrumbs {
    color: #fff !important;
}

/* banner in HOME PAGE*/
 
.bgBannerBPI {
    min-height: 500px;
    display: flex;
    align-items: center; /* centra verticalmente il .container interno */
    position: relative;
    background-size: auto; /* dimensione naturale, non stretch */
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    transition: opacity .8s ease, transform .6s ease;
    opacity: 1;
    transform: scale(1);
}
.bgBannerBPI::after{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;	
    background: 
        /* Sfuma dall'alto verso il centro */
        linear-gradient(to top, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 60%),
        /* Sfuma dal basso verso il centro */
        linear-gradient(to right, rgba(0,0,0,0.4) 15%, rgba(0,0,0,0) 60%);    
    opacity: 1;
    transition: opacity .8s ease;	
    z-index:-1;
	}
.btnBPIbanner{
    background: #0B88B4;
    border:2px solid #0B88B4;
    color:#ffffff !important;    
    padding: 12px 40px;
    font-family: var(--title-font-family);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.owl-item{text-align:left !important}

/* Dots */
.bip-banner-carousel .owl-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.bip-banner-carousel .owl-dot span {
    background: rgba(255,255,255,0.4) !important;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.bip-banner-carousel .owl-dot.active span {
    background: #c0392b !important;
}
.owl-dot.active {
    background: #ffffff;
}
.owl-dot {
    background: #cc0000;
  }