/* ! Reset my-style */

body,
ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #3e61ac;
  transition: color 0.3s ease;
  font-weight: normal;
}

a:hover {
  color: #1691b5;
}

@media screen and (max-width: 600px) {
  body {
    overflow-x: hidden;
  }
}

/* ! |--- Hide elements ---|*/
/* .menu-lingue, */
.iub__us-widget,
.iubenda-cs-brand-badge,
.splide__arrows {
  display: none !important;
}

/* ! Font text system */

h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
li,
a {
  font-family: "DM Display", sans-serif;
}

h1 {
  font-size: 4rem;
  font-weight: bold;
  line-height: 1.3;
  margin: 0 0 10px;
}

h2 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

h3 {
  font-size: 2rem;
  line-height: 1.3;
  margin: 0;
}

h4 {
  font-size: 1.5rem;
  line-height: 1.2;
  margin: 0;
}

h5 {
  font-size: 1rem;
  line-height: 1;
  margin: 0;
}

p {
  font-weight: normal;
}

.breadcrumb li {
  font-weight: 700;
}

@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 1.5rem;
  }
}

/* ! Button system */

/* btn gradient */
.btn-grad {
  background-image: linear-gradient(
    to right,
    #3e61ac 0%,
    #00b2e9 51%,
    #3e61ac 100%
  );
}

.btn-grad {
  margin-top: 1rem;
  padding: 15px 44px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;
  border-radius: 10px;
  display: inline-block;
}

.btn-grad:hover {
  background-position: right center;
  color: #fff;
  text-decoration: none;
}

/* ! NAVBAR */

#navbar {
  position: fixed;
  padding: 20px;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
}

.navbar,
.navbar-collapse {
  align-items: baseline;
}

.nav-link {
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  color: black !important;
}

.nav-link:hover {
  color: #838383 !important;
}

#navbar.bg-d-white {
  box-shadow: 0px 5px 9px -4px rgba(0, 0, 0, 0.3);
}

.dropdown-arrow {
  margin-left: 6px;
  font-size: 0.75em;
  transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* ! Hero Overlay */
.overlay-section {
  position: relative;
  height: 60vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.overlay-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.overlay-section .overlay-content {
  position: relative;
  z-index: 2;
}

.overlay-content {
  text-align: left;
}

/* scroll down link */

.scroll-down-link {
  padding: 20px;
  background-color: rgba(7, 168, 225, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

.animate-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(8px);
  }
  60% {
    transform: translateY(4px);
  }
}

/* ! Media text */

.image-container {
  border-radius: 10px;
}

.media-text-content h4 {
  margin-bottom: 0.5rem;
}

/* ! Splide my-style */

.splide__arrow--next {
  right: -2em;
}

.splide__arrow--prev {
  left: -2em;
}

#prodotti-splide .card {
  min-height: 100%; /* oppure un valore in px se preferisci */
}

/* Imposta un'altezza fissa per le immagini */
#prodotti-splide .card-img-top {
  height: 410px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

@media screen and (max-width: 600px) {
  #prodotti-splide .card-img-top {
    height: 480px;
  }
}

/* ! Tab schede tecniche */

/* Applica stile uniforme a tutte le .tech-table */
.tech-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  font-family: Arial, sans-serif;
}

/* Allinea th e td */
.tech-table th,
.tech-table td {
  padding: 12px;
  text-align: left;
  font-size: 14px;
}

/* Uniforma larghezza th */
.tech-table th {
  width: 35%; /* imposta una larghezza fissa */
}

/* Prima e seconda tabella */
.scheda-tecnica .tech-table + .tech-table {
  margin-top: 0;
}

/* Arrotondamento (se necessario) */
.tech-table {
  border-radius: 8px;
  overflow: hidden;
}

/* Rimuove margine superiore dalla seconda tabella */
.extra-wrapper .tech-table {
  margin-top: 0;
  border-top: none; /* se hai bordi visibili */
}

/* Btn sct "Mostra di più" slide tab animazione */

.extra-wrapper {
  overflow: hidden;
  transition: max-height 0.4s ease;
  max-height: 0;
}

/* ! --- EN TRADUZIONE ---*/

/* Nascondo il testo reale */
.t-trans {
  font-size: 0;
}

/* Scheda text --v it (default) */
.t-trans::after {
  font-size: 1rem;
  font-weight: bold;
  content: "Scheda Tecnica:";
}

/* Scheda text --v en */
html[lang="en"] .t-trans::after {
  content: "Data Sheet:";
}

/* ! HELPERS */

.text-grad {
  background: -webkit-linear-gradient(#00b2e9, #3e61ac);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-left {
  text-align: left;
}

.flexbox {
  display: flex;
  justify-content: center;
  align-items: center;
}

.b-rad {
  border-radius: 10px;
}

.d-none {
  display: none;
}

.spacer {
  height: 150px;
}

.mini-spacer {
  height: 60px;
}

.width-20 {
  width: 20px !important;
}

.fullwidth-bg {
  background-color: #f7f7f2; /* Colore bianco sporco */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.bg-dark {
  background-color: #242424;
}

.bg-d-white {
  background-color: #f5f5f5;
}

.bg-sem-trasp {
  background-color: rgba(255, 255, 255, 0.81) !important;
}

.img-res {
  width: 100%;
  height: auto;
}

.img-med {
  width: 50%;
  height: auto;
}

.img-small {
  width: 30%;
  height: auto;
}

.social-icon {
  font-size: 1.5rem;
}

/* margin */

.mb-10 {
  margin-bottom: 10%;
}

/* ! MOBILE */

@media screen and (max-width: 600px) {
  .sma-none {
    display: none;
  }

  .spacer {
    height: 100px;
  }

  .sma-just-center {
    justify-content: center;
  }

  .sma-col-rev {
    flex-direction: column-reverse;
  }

  /* sma font size */

  .sma-fs-1 {
    font-size: 1rem;
  }

  .sma-fs-2 {
    font-size: 2rem;
  }

  .sma-fs-3 {
    font-size: 3rem;
  }

  /* sma img */
  .sma-img {
    width: 30%;
    height: auto;
  }

  /* sma margin break */
  .sm-mt-1 {
    margin-top: 1rem;
  }
  .sm-mt-2 {
    margin-top: 2rem;
  }
  .sm-mt-3 {
    margin-top: 3rem;
  }
  .sm-mt-4 {
    margin-top: 4rem;
  }
  .sm-mt-5 {
    margin-top: 5rem;
  }

  /* sma height break */
  .sm-h-1 {
    height: 100px;
  }
  .sm-h-2 {
    height: 200px;
  }
  .sm-h-3 {
    height: 300px;
  }
  .sm-h-4 {
    height: 400px;
  }
  .sm-h-5 {
    height: 500px;
  }
}
