

/* Regole per Mobile */
@media (max-width: 767.98px) {
	
	body {
		font-size: 16px;
        line-height: 1.5;
	}
	
	h1,.h1 {
        font-size: 32px; /* Ridotto da 48px */
        line-height: 1.2;
    }
    h2,.h2 {
        font-size: 28px; /* Ridotto da 40px */
        line-height: 1.2;
    }
    h3,.h3 {
        font-size: 24px; /* Ridotto da 32px */
    }
    h4,.h4 {
        font-size: 20px; /* Ridotto da 24px */
    }
    /* H5 e H6 rimangono quasi invariati perché sono già piccoli */
    h5,.h5 {
        font-size: 17px;
    }
    h6,.h6 {
        font-size: 14px;
    }
	p {
        font-size: 16px;
        line-height: 1.5;
    }
    
    .hero-wrapper-two{
    	padding-top:20px;
    	min-height: 34vh;
    }
    .hero-wrapper-two p{
    	font-size: 9px;
    }
    .hero-wrapper-two .hp-payoff-date {
        font-size: 27px;
        line-height: 27px;
    }
    
    .hp-payoff {
	    font-weight: 600;
	    font-size: 55px;
	    line-height: 70px;
	    letter-spacing: 0%;
	    margin-bottom: -10px !important;
	}
    .hp-payoff-date {
	    font-weight: 600;
	    word-wrap: break-word;
	    font-size: 38px;
	    line-height: 50px;
	    letter-spacing: 2%;
	    text-transform: none !important;
	    font-family: var(--font-oswald), sans-serif;
	}
	
	.hp-payoff-location {
	    font-size: 22px;
	    font-family: var(--font-rubik), sans-serif;
	    font-weight: 400;
	    line-height: 35px;
	    letter-spacing: 0.50px;
	    word-wrap: break-word;
	}
	.swiper {
	    position: absolute;
	    bottom: -5%;
	    left: 40%;
	}
	.column-loghi{
		padding-top:5px;
	}
	.pre-header {
		font-size:8px !important;
		padding-bottom:0px !important;
		padding-top:8px !important;
		text-align:center;
	}
	.pre-header img{
		height:30px;
		padding-bottom:0px;
	}
	
	#hero {
    	padding-top: 10px;
    	height: 360px;
    }
    
    .hero-arc {
    	height: 25px;
    }
    .pt-38 {
	    padding-top: 15px;
	}
	.pb-72 {
	    padding-bottom: 15px;
	}
	.pt-72 {
	    padding-top: 15px;
	}
	
	/* MENU */
	
	button.navbar-toggler {
	  position: static; /* Oppure regola top in modo che rientri nel contenitore */
	  top: 0; margin-top: -85px;
	}
	.hero-wrapper {
	  overflow: visible !important;
	}
	.navbar-toggler{
		position: absolute;
	    top: -45px;
	    right: 0;
    }
	
	.navbar-toggler:focus {
	    box-shadow: none;
	    outline: none;
	}
	
	.navbar-toggler-icon {
	  background-image: none !important;
	  background-color: currentColor; /* Prende il colore dal testo */
	  -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
	  mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
	  mask-repeat: no-repeat;
	  mask-position: center;
	}

	.navbar-toggler {
	  color: var(--text-primary-3);
	  border-color: var(--text-primary-3);
	}
	
	
	.dropdown-menu {
        margin-left: 1rem;
        margin-bottom: 1rem;
    }
    
    #navbarMainMobile .dropdown-item {
        white-space: normal;   
	    word-wrap: break-word;  
	    padding-top: 0.3rem;    
	    padding-bottom: 0.3rem;
    }
	
	#navbarMainMobile a{
		text-align:left !important;
		color:#fff;
	}
	
	#navbarMainMobile a.nav-link.current{
		color: var(--yellow-default);
	}
	
	/* Impedisce al sottomenu di occupare spazio quando è chiuso */
	#navbarMainMobile .navbar-nav .dropdown-menu {
	    display: block; 
	    max-height: 0;
	    overflow: hidden;
	    opacity: 0;
	    visibility: hidden;
	    transition: all 0.4s ease-in-out;
	    padding-top: 0;
	    padding-bottom: 0;
	    margin: 0;
	    border: none;
	}
	
	/* Stato quando il menu è aperto (.show è la classe di Bootstrap) */
	#navbarMainMobile .navbar-nav .dropdown-menu.show {
	    max-height: 500px; 
	    opacity: 1;
	    visibility: visible;
	    padding-top: 0.5rem;
	    padding-bottom: 0.5rem;
	    border: 1px solid rgba(0,0,0,.15); 
	    background-color: var(--wine-default) !important;
	    
	}
	
	#navbarMainMobile .dropdown-toggle{
		display: flex;
	    align-items: center;
	    justify-content: space-between; 
	    width: 100%;
	}
	
	#navbarMainMobile .dropdown-toggle::after {
	    transition: transform 0.3s ease;
	    margin-left: auto;
    	margin-right: 5px;
	}
	#navbarMainMobile .dropdown-toggle.show::after {
	    transform: rotate(180deg);
	}
	
	.top-bar {
	    padding: 15px 0;
	}
	
	
}

@media (min-width: 768px) {
    .col-bleed-right {
        /* Calcola lo spazio esatto tra il container e il bordo destro del browser */
        margin-right: calc(50% - 50vw);
        padding-right: 0;
        display: flex;
    }

    .img-bleed {
        width: 100%;
        height: 100%;
        /* Forza l'immagine a coprire l'intera area senza distorcersi */
        object-fit: cover; 
        /* Mantiene l'allineamento a sinistra dell'immagine durante il ritaglio dovuto al resize */
        object-position: left center; 
    }
}

@media (max-width: 767.98px) {
    .col-bleed-right {
        padding-left: 0;
        padding-right: 0;
    }
    .img-bleed {
        width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 991.98px) {
	
	#navbarMainMobile .navbar-nav .dropdown-menu.show {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
	/* Personalizzazione dell'hamburger su schermi piccoli */
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    .nav-item {
        border-bottom: 1px solid #eee;
        padding: 0.5rem 0;
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
}
