html {  
    scroll-behavior: smooth;  
}

.description-title {
    min-height: 24vh;
    background-color: transparent;
}

.description-box {
    min-height: 45vh;
    background-color: transparent;
}

.button-row {
    min-height: 31vh;
    background-color: transparent;
}

.button-row a:first-of-type {
    width:12rem;
    height:3.5rem;
    background-color: #f8f8ff;
    border: 0.15em solid #343434;
    border-radius: 0.5em;
    color:#343434;
    text-align: center;
    line-height: 3.4rem;
}

.button-row a:first-of-type:hover {
    filter: brightness(0.95);
}

.button-row a:nth-of-type(2) {
    width:3.5rem;
    height:3.5rem;
}

.catalogues-button {
    width:16rem;
    height:3rem;
    background-color: #d3d3d3;
    border: 0.15em solid #343434;
    border-radius: 0.5em;
    text-align: center;
    line-height: 2.9rem;
    margin: 0 auto;
    margin-top: 30em;
    margin-bottom: 2em;

}

.button-row button:hover {
    background-color: #dadada;
}

h3, #description-text {
    color: #343434;
}

.description-box {
    width: 100%;
}

.description-box img {
    max-height: 23em;
}

.company-box, .company-detail {
    width: 60%;
    background-color:  #d3d3d3;
}

.company-box {
    height: 5em;
}

.company-box div img {
    max-width: 11em;
}

#companies-container div:nth-of-type(3) .logo img {
    max-width: 14em;
}

#companies-container div:nth-of-type(7) .logo img {
    max-width: 7em;
}

.company-box div, .company-detail div {
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-box .symbol {
    justify-content: end;
    padding-right: 1.6em;
}

.company-box .symbol img {
    width: 2.5em;
    height: 2.5em;
}

.company-box {
    border-top: 0.15em solid  #343434;
    border-left: 0.15em solid  #343434;
    border-right: 0.15em solid  #343434;
}

#companies-container {
    overflow: hidden;
}

#companies-container > div:nth-last-of-type(2) {
    border-bottom: 0.15em solid  #343434;
}

#companies-container div:last-of-type  {
    border-top: none;
}

.company-detail {
    height: 0em;
    border-top: 0em solid  #343434;
    transition: height 0.5s ease-in, border-top 0.05s linear 0.5s;
}

.toggled {
    height: 5em;
    border-top: 0.15em solid  #343434;
    transition: height 0.5s ease-out;
}

#description-text, .products-description p {
    text-align: justify;
}

#link-chisiamo {
    text-decoration-line: underline;  
    text-decoration-color: #343434; 
    text-decoration-style: solid; 
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.4em;
    -webkit-text-decoration-line:  underline;
    -webkit-text-decoration-color: #343434;
    -webkit-text-decoration-style: solid;
    -webkit-text-decoration-thickness: 0.09em;
    -webkit-text-underline-offset: 0.4em;
}

.companies-title, .products-title {
    align-items: center;
    margin: 3em 0 2em 0;
}

.companies-title h3, .description-title h3, .products-title h3  {
    margin: 0;
}

.company-box:first-of-type {
    border-radius: 0.5em 0.5em 0 0;
}

.company-detail:last-of-type {
    border-radius: 0 0 0.5em 0.5em;
}

a, a:hover {
    text-decoration: none;
    border-color: #343434;
    color: #343434;
}

.hidden{
    opacity:0;   
}

.visible {
    opacity: 1;
}

.images-row img {
    max-height: 27rem;
    margin: 1em auto;
    left: 0;
    right: 0;
    text-align: center;
    position: absolute;
    transition: opacity 1s linear;
}

.images-row div {
    position: relative;
    text-anchor: middle;
}

.products-description div {
    padding: 0 5em;
}

.images-row img {
    border: 0.15em solid #343434;
    color:#343434;
}

.images-row img:hover {
    filter: brightness(0.95);
}

.companies-title {
    position:relative; 
}

#dettagli {
    position: absolute;
    bottom:13.5rem;
}

@media (max-width:1400px) {
    .toggled {
        height:7em;
    }

    .company-detail {
        text-align: justify;
    }

}


@media  (max-width: 1200px) {

    .description-title div {
        margin-bottom: 4.5vh;
    }

    #description-text {
        margin-top: 3em;
    }

    .description-box img {
        margin-bottom: 1em;
    }

    .description-box, .description-title, .button-row {
        min-height: unset;
    }

    .button-row button {
        margin: 3em 0;
    }

    .description-title {
        padding-top: 5em;
    }

    .company-box, .company-detail {
        width: 70%;
    }

    .toggled {
        height:8em;
    }

    .button-row a:first-of-type{
        margin: 1em 0 2em 0;
    }

}

@media (max-width: 1000px) {
    .company-box, .company-detail {
        width: 80%;
    }

    .products-description div {
        padding: 0 2em;
    }
    
}

@media (max-width: 767px) {

    .description-box, .products-description {
        padding: 0 2rem;
    }

    .description-box div:first-of-type {
        margin-bottom: 2em;
    }

    .company-box, .company-detail {
        width: 85%;
    }

    .button-row button {
        margin: 2em 0;
    }

    .description-box img {
        margin-bottom: 0em;
    }

    #description-text {
        margin-top: 1em;
    }

    .toggled {
        height:10em;
    }

    .description-title {
        padding-top: 2em;
    }

    #dettagli {
        bottom:5rem;
    }

}

@media (max-width: 576px) {

    .products-description div {
        padding: 0 1em;
    }

    .toggled {
        height:12em;
    }
}

@media (max-width: 480px) {

    .company-box .symbol {
        padding-right: 1em;
    }

    .company-box div img {
        max-width: 10em;
    }
    
    #companies-container div:nth-of-type(3) .logo img {
        max-width: 13em;
    }

    .logo, .symbol {
        margin-left: calc(100%/3);
    }

    .toggled {
        height:15em;
    }

    .description-box {
        padding: 0 1rem;
    }

}

@media (max-width: 356px) {
    .toggled {
        height:18em;
    }
}