body {
  font-family: "Montserrat", sans-serif;
}

/* animation */
@keyframes slideIn {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Apply animation to the text */
.animated-text {
  animation: slideIn 3s ease-out;
}

.animated-text:hover {
  animation: slideIn 3s ease-out;
}

/* Define keyframes for go away */
@keyframes goAway {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}


/* Apply animation to the text to make it go away after 3 seconds */
.animated-text2.go-away {
  animation: goAway 1s ease-in forwards 3s; /* Animation to go away after 3 seconds */
}
.animated-text2:hover {
  animation: goAway 1s ease-in forwards; /* Animation to go away on hover */
}
/* fine animation */


.li-mobile {display: none;}
#header {
  position: fixed;
  width: 100%;
  z-index: 999;
  box-shadow: 0px 0px 10px #000000;
}
#header .logo {
  width: 270px;
  margin-right: 30px;
}
#header .bg-light {
  background-color: transparent !important;
}

/*
#header .navbar-light .navbar-nav .nav-link,
#header .navbar-light .navbar-nav .nav-link:link,
#header .navbar-light .navbar-nav .nav-link:visited,
#header .navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav .nav-link:hover {
  color: #ffffff !important;
  font-weight: bolder;
}
*/

.transparent {
  background-color: transparent;
}
.biancofade {
  background-color: rgba(255, 255, 255, 0.9);
}

.transparent .navbar-light .navbar-nav .nav-link,
.transparent .navbar-light .navbar-nav .nav-link:link,
.transparent .navbar-light .navbar-nav .nav-link:visited,
.transparent .navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
  color: #ffffff !important;
  font-weight: bolder;
}

.biancofade .navbar-light .navbar-nav .nav-link,
.biancofade .navbar-light .navbar-nav .nav-link:link,
.biancofade .navbar-light .navbar-nav .nav-link:visited,
.biancofade .navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
  color: #000000 !important;
  font-weight: bolder;
}

/* #header .menu-language {float: right; background-color: #000000;padding-left: 0px;}
 */
#header .menu-language {
  float: right;
  background-color: transparent;
  padding-left: 0px;
  margin-top: 30px;
}

#header .menu-language li {
  display: inline;
  list-style: none;
  padding-left: 5px;
  padding-right: 5px;
  text-align: center;
}
/* #header .menu-language li:first-child {
  border-right: 1px solid #ffffff;
}
#header .menu-language li:last-child {
  border-right: 0px solid #ffffff;
} */
/*#header .menu-language li {border-right: 1px solid #ffffff;}*/
#header .menu-language li a,
#header .menu-language li a:link,
#header .menu-language li:hover,
#header .menu-language li:visited,
#header .menu-language li:active {
  color: #ffffff;
}

#header hr {
  margin-top: 1rem;
  margin-bottom: 1rem;
  border: 0;
  border-top: 0px solid rgba(255, 255, 255, 1) !important;
}

#avvisi {
  position: fixed;
  width: 100%;
  z-index: 1000;
  top: 100px;
}
#scritte-carousel {
  background-color: #000000;
  color: #ffffff;
}
#scritte-carousel p {
  font-size: 40pt;
  font-weight: bold;
  text-align: center;
}

#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: #cccccc; /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}

#banner-red {
  background-color: #b72026;
  padding-top: 20px;
  padding-bottom: 30px;
}
.border-top-black-banner {
  border-top: 15px solid #000000;
}

#banner-red p {
  font-size: 26pt;
  color: #ffffff;
  text-align: center;
}

#redarrowdown {
  padding: 0px;
  margin-top: -20px;
  margin-bottom: 30px;
}

#categorie-home .col {
  position: relative;
  float: left;
  margin-bottom: 60px;
}
#categorie-home .icona {
  max-width: 100px;
  position: absolute;
  float: left;
  z-index: 2;
  border: 3px solid #ffffff;
  border-radius: 100%;
  background-color: #ffffff;
}
#categorie-home p {
  z-index: 1;
  position: absolute;
  float: left;
  font-size: 16pt;
  border-radius: 0 20px 20px 0;
  width: 100%;
  padding-left: 100px;
  padding-top: 10px;
  padding-bottom: 10px;
  top: 15px;
  left: 40px;
  line-height: 1.5rem;
}

#categorie-home .titolo1 {
  font-family: "Lato", sans-serif;
  font-weight: bold;
}
#categorie-home .ats {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
}
#categorie-home .division {
  font-family: "Montserrat", sans-serif;
}

#settori-home {
  padding-top: 50px;
  padding-bottom: 50px;
  background-color: #000000;
  background-image: url(img/atspackaging-settori-specializ.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
}
#settori-home h2 {
  margin-bottom: 30px;
}
#settori-home a,
#settori-home a:link,
#settori-home a:active,
#settori-home a:visited {
  color: #ffffff;
}
#settori-home a:hover {
  color: #ffffff;
}
#settori-home .img-fluid {
  padding-left: 30px;
  padding-right: 30px;
  margin-bottom: 30px;
}
#settori-home .img-fluid:hover {
  background-color: #b72026;
}
#settori-home .box:hover {
  background-color: #b72026;
}

#map {
  width: 100%;
  height: 400px;
}

#mappa-home {
  color: #6793a9;
  margin-top: 30px;
  margin-bottom: 30px;
}
#mappa-home p {
  margin-top: 0rem !important;
  margin-bottom: 0rem !important;
}
#mappa-home h2 {
  font-size: 50pt;
  margin-top: 0rem !important;
  margin-bottom: 0rem !important;
  background-color: transparent !important;
  color: #6792a9 !important;
}

/*
#azienda-home {
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: #000000;
  background-image: url(img/atsdivision_atspackaging.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #ffffff;
}
*/
#azienda-home {
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: #000000;
}
#azienda-home h2 {
  margin-top: 30px;
}
#azienda-home p {
  text-align: justify;
  font-style: italic;
}
#azienda-home .btn-read {
  background-color: #000000;
  color: #ffffff;
  font-style: none;
}

#parlane-home {
  background-color: #b72026;
  color: #ffffff;
  padding-top: 10px;
  padding-bottom: 10px;
}
#parlane-home p {
  font-size: 20pt;
}
#parlane-home .fa-envelope {
  font-size: 40pt;
}
#parlane-home a,
#parlane-home a:link,
#parlane-home a:hover,
#parlane-home a:visited,
#parlane-home a:active {
  color: #ffffff;
}

#news-home {
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: #ececed;
}

#banner-pagine {
  position: relative;
  z-index: 1;
  width: 100%;
  background-color: #000000;
}
#banner-pagine .img-banner-page {
  width: 100%;
  opacity: 0.7;
}
#banner-pagine .icona {
  width: 150px;
  border: 3px solid #ffffff;
  border-radius: 100%;
  float: right;
  margin-top: 30px;
}
#banner-pagine .banner-titolo {
  /*position: absolute;margin-top: -250px;margin-left: 100px;*/
  font-size: 40pt;
  color: #ffffff;
  text-shadow: 2px 2px 2px #000000;
}
#banner-pagine .banner-tiolo-div {
  line-height: 2rem;
  margin-top: 100px;
  text-shadow: none;
}

#banner-pagine .container-fluid {
  position: absolute;
  margin-top: -250px;
}

#banner-pagine .banner-sottotitolo {
  position: absolute;
  margin-top: -200px;
  margin-left: 100px;
  font-size: 30pt;
  color: #ffffff;
  text-shadow: 2px 2px 2px #000000;
}

#banner-pagine .banner-titolo2 {
  font-size: 30pt !important;
}

#news-home h2 {
  margin-bottom: 20px;
}
#news-home .box {
  background-color: #ffffff;
  min-height: 635px;
}
#news-home .box h4 {
  padding-left: 10px;
  padding-right: 10px;
  margin-top: 15px;
}
#news-home .box p {
  padding-left: 10px;
  padding-right: 10px;
  font-size: 10pt;
  font-weight: 300;
}

#news-index {
  padding-top: 30px;
  padding-bottom: 150px;
}

#news-list {
}
#news-list {
  margin-bottom: 30px;
}
#news-list p {
  font-size: 10pt;
  font-weight: 300;
}
#news-list .img-fluid {
}
#news-list h4 {
  margin-top: 15px;
}
#news-list .box {
  min-height: 600px;
}

.box-cat {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #000000;
  margin-bottom: 30px;
}
.box-news-latest {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #000000;
}
.box-news-latest p {
  font-size: 9pt;
}

#news-detail {
  padding-top: 30px;
  padding-bottom: 100px;
}
#news-detail p {
  font-size: 11pt;
}
#news-latest p {
  font-size: 9pt;
}

#divisioni {
  padding-top: 30px;
}
#divisioni .box {
  padding-bottom: 20px;
  margin-bottom: 20px;
}
#divisioni .box-img {
  text-align: center;
  margin-bottom: 25px;
  border-bottom-left-radius: 100%;
  border-bottom-right-radius: 100%;
  background-color: #ffffff;
}
#divisioni .cate {
}
#divisioni .text-descrizione {
  font-size: 11pt;
  line-height: 1.7;
  font-family: "Montserrat", sans-serif;
}
#divisioni p {
  font-size: 11pt;
}
#divisioni .text-descrizione p,
#divisioni .text-descrizione ul,
#divisioni .text-descrizione ol,
#divisioni .text-descrizione li,
#divisioni .text-descrizione span {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
#divisioni .text-descrizione ul,
#divisioni .text-descrizione ol {
  margin: 0 0 1rem 1.25rem;
  padding-left: 1.1rem;
}
#divisioni .text-descrizione li {
  margin-bottom: 0.75rem;
}
#divisioni .text-descrizione li p {
  margin-bottom: 0;
}
#divisioni .text-descrizione strong,
#divisioni .text-descrizione b {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

#divisioni .titolo1 {
  font-family: "Lato", sans-serif;
  font-weight: bold;
}
#divisioni .ats {
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
}
#divisioni .division {
  font-family: "Montserrat", sans-serif;
}

#ats-mondo {
  padding-top: 30px;
  padding-bottom: 30px;
}
#ats-mondo h2 {
  background-color: #6792a9;
  color: #ffffff;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}
footer {
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: #000000;
  color: #ffffff;
}

#usati {
  padding-top: 30px;
  padding-bottom: 100px;
}
#usati p {
  font-size: 11pt;
}
.menu-filter {
  margin-left: 0px;
  padding-left: 0px;
}
.menu-filter li {
  display: inline;
  border: 1px solid #000000;
  text-align: center;
  margin-right: 10px;
}
.menu-filter li a,
.menu-filter li a:link,
.menu-filter li a:hover,
.menu-filter li a:active,
.menu-filter li a:visited {
  color: #000000;
  font-size: 10pt;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.menu-grey li {
  background-color: #000000;
}
.menu-grey li a,
.menu-grey li a:link,
.menu-grey li a:hover,
.menu-grey li a:active,
.menu-grey li a:visited {
  color: #ffffff;
}

#special {
  padding-bottom: 60px;
  padding-top: 30px;
}
#special p {
  font-size: 10pt;
  margin-bottom: 30px;
}

#special .title-product-box {
  font-size: 10pt;
  font-weight: bold;
  color:#ffffff;
  background-color:rgba(0,0,0,0.7);
  margin-bottom: 10px;
  padding: 5px;
  position: absolute;
  top:0px;left:0px;

}

#soluzioni-avanzate {
  padding-top: 30px;
  padding-bottom: 50px;
}
#soluzioni-avanzate p {
  font-size: 10pt;
}

#soluzioni-avanzate ul li p {
  margin-top: 0;
  margin-bottom: 0.3rem !important;
}

#soluzioni-avanzate ul {
  padding-left: 20px;
}

#chisiamo-divisioni {
  margin-bottom: 30px;
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: #000000;
  color: #ffffff;
}
#chisiamo-divisioni h5 {
  text-align: center;
}
#chisiamo-divisioni p {
  font-size: 8pt;
  text-align: center;
}
#chisiamo-divisioni .img-fluid {
  border-radius: 100%;
  border: 3px solid #ffffff;
  padding: 0px;
}

#esperienza {
  padding-top: 30px;
  padding-bottom: 100px;
}
#esperienza p {
  font-size: 10pt;
}

.caption {
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  float: left;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.caption img {
  float: left;
  margin: 0;
  padding: 0;
  background: #fff;
  border: none;
}
.caption span {
  float: left;
  margin: 0;
  padding: 10px;
  width: 100%;
  height: 100%;
  color: #dedede;
  background: #222; /* browser che non supportano rgba */
  background: rgba(0, 0, 0, 0.7);
  position: absolute;
  left: 0;
  bottom: 0;
  padding-top: 50%;
  padding-bottom: 50%;
}
.caption span strong {
  font-weight: bold;
  font-size: 11px;
  text-transform: uppercase;
  display: block;
  padding-bottom: 5px;
}

.caption span {
  animation: goAway 1s ease-in forwards 3s; /* Animation to go away after 3 seconds */
  display: none;
}
.caption:hover span {
  display: block;
  animation: slideIn 3s ease-out;
}

footer .menu {
  padding-left: 0px;
}
footer .menu li {
  display: list-item;
  list-style: none;
  padding-top: 10px;
  padding-bottom: 10px;
}
footer .menu li a,
footer .menu li a:link,
footer .menu li a:hover,
footer .menu li a:visited,
footer .menu li a:active {
  color: #ffffff;
}

footer .form-control {
  background-color: #000000;
  border: 1px solid #ffffff;
  margin-bottom: 15px;
}

footer .btn-primary {
  background-color: #ffffff;
  color: #000000;
  margin-bottom: 15px;
}

#footer2 {
  background-color: #333335;
  color: #ffffff;
  padding-top: 15px;
  padding-bottom: 30px;
}
#footer2 p {
  font-size: 10pt;
}
#footer2 a,
#footer2 a:link,
#footer2 a:hover,
#footer2 a:active,
#footer2 a:visited {
  color: #ffffff;
}

.privacy-text-footer {
  font-size: 8pt;
}

#myBtn:hover {
  background-color: #555; /* Add a dark-grey background on hover */
}

#prodotto {
  padding-top: 30px;
  padding-bottom: 150px;
}
#prodotto {
  font-size: 11pt;
}

#contatti {
  padding-top: 30px;
  padding-bottom: 100px;
}
#contactForm-home input {
  margin-bottom: 20px;
}

#page-detail {
  padding-top: 100px;
  padding-bottom: 200px;
}
#page-detail p {
  font-size: 11pt;
}

.rev_slider .slotholder {
  width: 100%;
  height: 100%;
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;

  /* black overlay with 50% transparency */
  background: rgba(0, 0, 0, 0.5);
}

.btn-download {
  background-color: #bd2130;
  color: #ffffff;
  text-align: center;
  width: 100%;
}

#video {
  padding-top: 30px;
  padding-bottom: 200px;
}
#video .embed-responsive {
  margin-bottom: 10px;
}
#video p {
  padding-top: 20px;
  padding-bottom: 10px;
}
/* --------- MOBILE ------ */

.btn-download-2 {
  min-width: 100% !important;
  border-radius: 0px !important;
  padding-top: 5px;
  padding-bottom: 5px;
  text-align: center;
  color: #ffffff;
  background-color: #bd2130;
}

.navbar {
  /*   position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: justify;
  justify-content: space-between; */
  padding: 0.3rem 1rem 0.3rem 1rem !important;
  margin-bottom: 0px !important;
}

#prodotto ul {
  margin-left: 0px !important;
  padding-left: 15px !important;
}

.l2-contact-cta-wrap {
  margin-bottom: 10px;
}

.l2-contact-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 22px;
  font-weight: 700;
  border-radius: 14px;
  padding: 14px 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.l2-contact-toggle:hover,
.l2-contact-toggle:focus {
  transform: translateY(-1px);
  color: #ffffff;
  text-decoration: none;
}

.l2-contact-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease;
}

.l2-contact-toggle[aria-expanded="true"] .l2-contact-toggle-icon {
  transform: rotate(45deg);
}

.contact-title-l2 {
  position: relative;
  display: inline-block;
  font-size: 28px;
  margin-bottom: 16px;
  padding-bottom: 8px;
}

.contact-title-l2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0f172a 0%, #64748b 100%);
  opacity: 0.5;
}

@media (max-width: 991px) {
  .l2-contact-toggle {
    font-size: 18px;
    padding: 12px 14px;
  }
}

#header .active {
  color: #B8342E !important;
}
