html{
    scroll-behavior: smooth;
}
body{
    margin: 0;
}
.page-content{
    min-height: 70vh;
}
nav.header-content {
    display: flex;
    padding: 7px 0 0 0;
    justify-content: space-between;
}
header{
    padding: 10px 0;
}
header .logo img{
    width: 100px;
}
header .menu, header .menu ul {
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 20px;
}
header .menu{
    gap: 50px;
}
header .menu ul{
    list-style: none;
}
header .menu ul li a{
    color: #3a3a3a;
    text-decoration: none;
    font-size: 15px;
    transition: ease all 0.4s;
}
header .menu ul li a:hover{
    transition: ease all 0.4s;
    color: var(--dlg-red);
}
header .menu .social-icons-desktop{
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 10px;
}
header .menu .social-icons-desktop img{
    height: 20px;
}
.social-icons-desktop a{
    text-decoration: none;
}
ul.submenu {
    position: absolute;
    display: none!important;
    display: block;
    gap: 9px !important;
    z-index: 999;
    width: 200px;
    justify-content: center !important;
    padding: 10px;
    background-color: #f4f4f4e8;
    border-radius: 10px;
    margin-top: 12px;
    margin-left: -50px;
    box-shadow: 3px 1px 6px 1px #ececec;
}
ul.submenu.active{
    display: grid !important;
}

ul.submenu li{
    text-align: center;
}
ul.submenu li a{
    font-size: 14px!important;
}

.arrow-header img{
    width: 12px;
    margin-bottom: 2px;
}

footer{
    background-color: var(--dlg-red);
    padding: 40px 0 10px 0;
}
footer a, footer li, footer p {
    color: #fff;
    font-weight: 300;
}
footer ul li {
    margin-bottom: 6px;
    font-size: 14px;
}
footer ul {
    padding-left: 0;
    list-style-type: none;
}

footer strong{
    color: #fff;
    font-weight: 700;
}
footer a{
    text-decoration: none;
}
footer .logo a {
    text-decoration: none;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
}
footer .footer-col:not(:nth-child(1)) {
    padding-left: 50px;
}
footer .copyright p{
    font-weight: 300;
    font-size: 14px;
}
#categories .categories {
    display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, auto));
  gap: 30px;
  justify-content: center;
}

#categories .categories .category-item{
   text-align: center;
}

#categories .categories .category-item img{
    max-width: 200px;
}

.license-category .category-item:nth-child(1){

}

.license-item {
  display: flex;
  justify-content: center; /* Centra orizzontalmente */
  align-items: center;     /* Centra verticalmente */
  height: 100px;           /* Imposta un'altezza fissa per il contenitore */
}

#categories .categories .license-item img{
    height: 60px;
	max-width: 100%;  
}


  

.products {
    display: flex;
    align-items: center;
    justify-content: center;
}
.products .product-item{
    max-width: 300px;
}
.products .product-item img{
    width: 100%;
}

.product-item .name {
    color: var(--dlg-red);
    font-size: 35px;
    margin-top: 25px;
    margin-bottom: 30px;
    font-weight: 800;
}
.compositions .composition-name{
    border: solid black 1px;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: 0.4s;
}
.composition-name.active {
    background-color: var(--dlg-red);
    color: #fff;
    border: solid var(--dlg-red) 2px;
  }
  
.compositions .composition-name:hover{
    transition: 0.4s;
    background-color: var(--dlg-red);
    color: #fff;
    border: solid var(--dlg-red) 2px;
}

div#composition-overlay {
  position: fixed;
  background-color: #D9D9D94D;
  backdrop-filter: blur(11px);
  width: 100%;
  height: 100%;
  top: 0;
  display: none;
  align-items: center;    /* centro verticale */
  justify-content: center;
  z-index: 99;
}

div#composition-grid {
  display: flex; /* usa flex anziché grid */
  gap: 20px;
  max-width: 90%;
  align-items: center;
	grid-template-columns: 30% auto;
}
div#composition-grid img{
    width: auto;
	max-width: 100%;
	max-height: 600px;
}
div#composition-box {
    background-color: #fff;
    min-width: 500px;
    min-height: 200px;
    border-radius: 24px;
    position: relative;
    padding: 20px;
    border: solid #DBDBDB 1px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
#composition-box a.composition-close {
    position: absolute;
    right: 20px;
    cursor: pointer;
}
#composition-box a.composition-close img{
    width: 17px;
}
div#composition-header h3 {
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 25px;
    font-weight: 700;
    color: var(--dlg-red);
}
div#composition-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
}
div#composition-body .composition {
    min-width: 120px;
}
div#composition-body .composition h4 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dlg-red);
    margin-top: 10px;
}
.compositions-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.compositions-flex span.composition-name {
	border: 1px solid #aaaaaa;
	color: #666666;
	background-color: #fff;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-block;
}

.compositions-flex span.composition-name:hover,
.compositions-flex span.composition-name.active {
  background-color: var(--dlg-red);
  color: #fff;
  border-color: var(--dlg-red);
}

.composition-details .details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.composition-details h4 {
    color: var(--dlg-red);
    text-align: center;
    font-weight: 700;
    font-size: 18px;
    margin-top: 0;
}
.composition-details {
    background-color: #F6FBFE;
    padding: 20px 30px;
    margin-top: 20px;
    border-radius: 20px;
}
.composition-details .details-grid .detail-name{
    color: #4A4A4A;
    font-weight: 500;
}
.composition-details .details-grid .detail-value{
    color: #4A4A4A;
    font-weight: 300;
}
a.where-to-find, button.where-to-find{
    background-color: var(--dlg-red);
    text-decoration: none;
    color: #ffffff;
    border-radius: 30px;
    padding: 10px 20px;
    border: solid white 1px;
    box-shadow: -2px 3px 5px 1px #00000045;
}

#insegne h2{
    color: #707070;
    font-size: 40px;
    font-weight: 800;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}
#insegne h2 span{
    color: var(--dlg-red)!important;
}


.insegne-grid{
    text-align: center;
}

.insegne-grid img{
    max-height: 70px;
    margin: 10px 15px 30px 15px;
    display: inline-block;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card{
    cursor: pointer;
    transition: 0.5s;
}
.news-card:hover .news-cards-img img{
    transition: 0.5s;
    transform: scale(1.02);
}
.news-cards-img img{
    width: 100%;
    transition: 0.5s;
}
.news-cards-img img {
    width: 100%;
    object-fit: cover;
    height: 300px;
    border-radius: 10px;
}
.news-card .news-body h3{
    margin: 10px 0 0 0;
    color: var(--dlg-red);
    font-weight: 700;
    font-size: 22px;
}
.news-card .news-body p{
    margin: 10px 0 0 0;
    font-weight: 300;
    font-size: 14px;
    line-height: 1.4;
    color: #4A4A4A;
}

#single-news .hero img {
    width: 100%;
    max-height: 40vh;
    border-radius: 13px;
    object-fit: cover;
}
#single-news .article article{
    color: #4A4A4A
}
#single-news .article{
    display: grid;
    grid-template-columns: 38% 58%;
    gap: 4%;
}
#single-news .article h1{
    margin-top: 0;
    font-weight: 700;
    font-size: 40px;
    line-height: 1;
    margin-bottom: 30px;
}
#single-news .article p{
    font-weight: 300;
}
#single-news .article aside img{
    width: 100%;
    object-fit: contain;
    position: sticky;
    top: 20px;
    border-radius: 10px;
}
#single-news .other-news .news-grid{
    grid-template-columns: repeat(3, 1fr);
}
#single-news .other-news h2{
    font-size: 35px;
    color: var(--dlg-red);
    font-weight: 700;
    text-align: center;
}
.breadcrumbs{
    padding: 15px 0 18px 0;
}
.breadcrumbs a, .breadcrumbs span{
    color: #4A4A4A;
    font-size: 14px;
    font-weight: 300;
    text-decoration: none;
}
.breadcrumbs span.news-t{
    font-weight: 500;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    align-items: center;
}
.info-grid img.logo{
    max-width: 270px;
}
.info-details h4 {
    margin-bottom: 0px;
    margin-top: 15px;
    color: #4a4a4a;
    font-size: 22px;
    font-weight: 600;
}
.info-details p {
    margin-top: 6px;
    color: #4a4a4a;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 0;
}
.info-details .social-icons-desktop img{
    width: 30px;
    margin-right: 10px;
    margin-top: 30px;
}
#info .news-grid{
    grid-template-columns: repeat(3,1fr);
}
#info h2{
    text-align: center;
    font-size: 35px;
    color: var(--dlg-red);
    font-weight: 700;
}
#info a.where-to-find{
    background-color: white;
    color: var(--dlg-red);
    border: solid var(--dlg-red) 1px;
}
#info .contact-form{
    max-width: 400px;
    margin: 0 auto;
}
#info .contact-form p{
    color: #4a4a4a;
    font-weight: 300;
    line-height: 1.4;
}
.form-group {
    margin-bottom: 15px;
}
.form-group input, .form-group textarea {
    width: 100%;
    border: unset;
    border-bottom: solid #41414187 1px;
    padding-bottom: 15px;
    padding-left: 15px;
    padding-top: 15px;
    outline: none;
}
.alert.alert-danger{
    color: red;
}
.alert.alert-success{
    color: green;
}
.social-icons-footer{
    display: flex;
    gap: 20px;
    margin: 10px 0;
    filter: brightness(6.5);
}
@media screen and (min-width: 992px){
    
    footer .footer-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    #menu-mobile-toggle, .menu-mobile {
        display: none;
    }

    #categories .license-category {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    #categories .license-category .category-item {
        position: relative;
        margin-left: -80px; /* Sovrapposizione: regola in base alla larghezza */
        transition: transform 0.3s ease, z-index 0.3s ease;
        z-index: 1;
    }
    #categories .license-category .category-item:first-child {
        margin-left: 0; /* il primo non si sovrappone */
    }
    #categories .license-category .category-item:hover {
        transform: scale(1.1);
        z-index: 10; /* Porta in primo piano */
    }
    #categories .license-category .category-item img {
        max-width: 400px;
		width: 100%;
        transition: transform 0.3s ease;
    }



}

@media screen and (max-width: 1200px){
    .container{
        width: 93%;
    }
}

@media screen and (max-width: 991px){
    .social-icons-footer{
        justify-content: center;
    }
    body{
        overflow-x: hidden;
    }

    header .menu{
        display: none
    }
    header .menu-mobile {
        display: grid;
        z-index: 9;
        position: fixed;
        top: 0;
        bottom: 0;
        height: 100vh;
        width: 350px;
        background-color: #f4f4f4bd;
        backdrop-filter: blur(17px);
        align-items: center;
        justify-content: center;
        right: -390px;
        transition: 0.4s;
        box-shadow: -3px 2px 11px 1px #ececec;
    }
    .menu-mobile a.nav-link {
        text-decoration: none;
        color: #000;
        font-size: 19px;
    }
    
    #menu-mobile-close{
        filter: brightness(0.5);
        position: absolute;
        right: 35px;
        top: 33px;
    }
    header .menu-mobile.active{
        right: 0;
        transition: 0.4s;
    }
    .menu-mobile ul {
        padding-left: 0;
        list-style: none;
        text-align: center;
        display: grid;
        row-gap: 20px;
    }
    .menu-mobile .social-icons-desktop {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }
    .header-content{
        align-items: center;
    }
    #categories .categories{
        grid-template-columns: repeat(4, 1fr);
    }
    .categories .license-item{
        text-align: center;
    }

    #categories.page-content{
        padding-top: 0!important;
    }
    .footer-col {
        text-align: center;
        padding-left: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 36px;
    }
    div#composition-grid{
        grid-template-columns: auto;
    }
    div#composition-grid .first-img{
        display: none;
    }
    .news-grid, #single-news .other-news .news-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    .page-content#single-news{
        padding-top: 0!important;
    }
    #single-news aside{
        text-align: center;
    }
}

@media screen and (max-width: 768px) {
    #categories .categories{
        grid-template-columns: repeat(2, 1fr);
    }
    .products{
        display: grid;
    }

    div#composition-box{
        min-width: unset;
        max-width: 350px;
    }
    #insegne h2 {
        font-size: 25px;
    }
    .composition-details {
        padding: 10px 15px;
    }
    .composition-details .details-grid{
        grid-template-columns: repeat(2, 1fr);
    }
    div#composition-header h3 {
        margin: 0 0 10px 0;
        text-align: center;
        font-size: 18px;
    }
    .news-grid, #single-news .other-news .news-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    #single-news .article{
        grid-template-columns: auto;
        justify-content: center;
    }
    #single-news .article aside img {
        width: 330px;
        margin-bottom: 20px;
        text-align: center;
    }
    .info-grid, #info .news-grid{
        grid-template-columns: repeat(1, 1fr);
    }
    .info-grid .logo{
        display: none;
    }
    .info-details {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        row-gap: 28px;
    }
}