:root {
  --header-heigth: 100vh;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
  scroll-padding: 6em;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body,
* {
  padding: 0;
  margin: 0;
  font-family: "Dosis";
}

/* START MENU */
.logo {
  height: 2rem;
}
.logo img {
  height: 100%;
}
nav {
  background-color: #25344d !important;
  width: 100vw;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  z-index: 3;
}

.activeBackground {
  content: "";
  z-index: 2;
  position: fixed;
  top: 0;
  left: 0;
  transition: width 2s ease;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.582);
}

nav .menu {
  display: none;
  list-style: none;
  align-items: center;
}

nav .menu.activeMenu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 400px;
  background-color: #25344d;
  z-index: -1;
}

.menu .menu__item {
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-bottom: 1px solid gray;
  position: relative;
}

nav .menu.activeMenu a {
  width: 100%;
  padding: 20px;
  color: white;
  font-size: 1.25rem;
  font-weight: 400;
  text-decoration: none;
  display: flex;
  align-items: center;
  text-align: center;
}

.menu i {
  text-align: right;
  margin-right: 2em;
  font-size: 1.25em;
}

.menu__togglebox {
  cursor: pointer;
  position: relative;
  margin-right: 1.5em;
}

.menu__togglebox i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.menu__togglebox i:first-child {
  font-size: 2rem;
}

.menu__togglebox i:last-child {
  font-size: 2.5rem;
}

.hamburger-icon.hide {
  display: none;
}

.close-icon {
  display: none;
}

.close-icon.show {
  display: block;
}

ul#menu {
  padding: 0;
}

.menu:hover a span,
nav.active a span {
  opacity: 1;
}

.menu .menu__item:hover {
  background-color: #364968;
}

.menu .menu__item.activeItem {
  background-color: #3a527a;
}

i {
  color: #fff;
}

@media (min-width: 970px) {
  .menu__togglebox {
    display: none;
  }

  .logo {
    height: 2rem;
    margin-left: 0;
    top: 20vh;
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
  }
  nav {
    height: 100vh;
    width: 80px;
    align-items: start;
    flex-direction: column;
    padding: 0;
    transition: width 0.4s ease-in-out;
  }

  nav .menu {
    background-color: #25344d;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }

  nav.active {
    width: 300px;
  }

  .menu__item:first-of-type {
    border-top: 1px solid gray;
  }

  .menu__item a {
    display: flex;
    padding-left: 1.75em;
    align-items: center;
    color: #fff;
    text-decoration: none;
    width: 100%;
    height: 100%;
  }

  .menu i {
    width: 0;
    text-align: left;
  }

  .menu span {
    opacity: 0;
    transition: opacity 0.1s ease-in-out;
    transition-delay: 0.2s;
    font-size: 1.25rem;
  }

  .menu .menu__item.activeItem::before,
  .menu .menu__item:hover::before {
    content: "";
    position: absolute;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: white;
  }
}

/* END MENU */

/* START HERO */
.hero {
  height: 90vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  object-fit: cover;
  position: relative;
}

.hero__container {
  z-index: 1;
  row-gap: 2em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.hero__text {
  text-align: center;
  color: white;
  text-wrap: pretty;
}

.hero__text h1 {
  font-weight: 600;
  font-size: 3rem;
  padding: 0 0.5em;
}

.hero__text h2 {
  font-size: 1.5rem;
  padding: 0 0.5em;
}

.btns__container {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  row-gap: 1.5em;
}

.btns__container a {
  font-size: 1.15rem;
  color: white;
  text-decoration: none;
  padding: 0.5em 0.75em;
  border: 2px solid white;
  border-radius: 1.5em;
  font-weight: 500;
  width: 50%;
  min-width: 175px;
}

.btns__container a:nth-of-type(1) {
  background-color: white;
  color: #25344d;
}

.btns__container a:nth-of-type(2):hover {
  background-color: white;
  color: #25344d;
}

.btns__container a:nth-of-type(1):hover {
  background-color: transparent;
  color: white;
}

.hero__video {
  position: absolute;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(50%);
}

.mouse {
  width: 20px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  display: flex;
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
}
.mouse-wheel {
  display: block;
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  margin: auto;
  animation: move-wheel 1s linear infinite;
}

@keyframes move-wheel {
  0% {
    opacity: 0;
    transform: translateY(-0.8rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0.5rem);
  }
}

@media (min-width: 970px) {
  .hero {
    position: static;
  }
  .hero__container {
    width: min-content;
    margin-left: 20em;
    justify-content: center;
    position: relative;
  }
  .hero__container p {
    margin-top: 2em;
    color: white;
    font-size: 1em;
    text-wrap: pretty;
    text-align: center;
  }
  .btns__container {
    flex-direction: row;
    column-gap: 1.5em;
  }
  .btns__container a {
    width: 9em;
  }
}

@media (min-width: 1280px) {
  .hero__container {
    align-items: center;
    width: fit-content;
  }

  .hero__text h1 {
    font-size: 4em;
    text-wrap: pretty;
  }

  .hero__text h2 {
    text-wrap: pretty;
  }
  .hero__container p {
    font-size: 1.25rem;
  }

  .btns__container {
    width: min-content;
  }
}

/* END HERO */

/* START DESCRIZIONE */
#descrizione {
  padding: 0;
  margin: 0;
  margin-top: 4em;
}

.descrizione__header {
  padding-inline: 1.25em;
  margin-bottom: 3em;
}

#descrizione p {
  font-size: 1rem;
  text-wrap: balance;
}

.descrizione__container {
  text-align: center;
  padding-inline: 1.25em;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}

.descrizione__container:last-of-type .descrizione__immagine {
  order: 1;
}
.descrizione__container:last-of-type {
  padding-top: 5em;
  padding-bottom: 4em;
  background-color: #364968;
  color: white;
}

.descrizione__immagine {
  margin-bottom: 3em;
  overflow: hidden;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  border-radius: 100%;
}

.descrizione__immagine img {
  width: 100%;
  object-fit: cover;
  height: 100%;
}

.descrizione__titolo {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-bottom: 1.25em;
  justify-content: center;
}

.descrizione__caratteristica {
  margin-bottom: 2em;
}

.descrizione__titolo i {
  font-size: 1.5rem;
  width: 2em;
  height: 2em;
  color: #1c273a;
  border-radius: 100%;
  background-color: #dbeafe;
  position: relative;
}

.descrizione__titolo i::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.descrizione__titolo h4 {
  font-size: 1.5rem;
  margin-top: 1em;
  /* margin-left: 1em; */
}

@media (min-width: 970px) {
  .descrizione__header {
    margin-left: 5em;
  }

  .descrizione__titolo h4 {
    font-size: 2rem;
  }
  #descrizione {
    margin-top: 8em;
  }
  #descrizione p {
    font-size: 1.25rem;
  }

  .descrizione__container {
    margin-left: 5em;
  }
  .descrizione__immagine {
    max-width: 550px;
  }
}

@media (min-width: 1024px) {
  .descrizione__immagine {
    width: 50%;
  }
}

@media (min-width: 1280px) {
  .descrizione__header {
    margin-left: 8em;
  }
  .descrizione__titolo h4 {
    margin-top: 0;
    margin-left: 1em;
  }
  .descrizione__container {
    text-align: start;
    padding: 50px;
    margin-left: 5em;
    margin-bottom: 1em;
    justify-content: space-around;
    flex-direction: row;
    align-items: center;
  }
  .descrizione__titolo {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }
  .descrizione__caratteristiche {
    width: 50%;
  }
  .descrizione__container:last-of-type .descrizione__immagine {
    order: 0;
  }
  .descrizione__immagine {
    max-width: 500px;
    margin-block: 100px;
  }
}

/* END DESCRIZIONE */

/* START DATI TECNICI */
#dati-tecnici {
  margin-block: 7em;
  background: linear-gradient(
      rgba(255, 255, 255, 0.4),
      rgba(255, 255, 255, 0.4)
    ),
    url("../assets/wrap-400-plus-sizes.webp");
  background-size: contain;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 45vh;
}

#dati-tecnici h3 {
  margin-bottom: 1em;
}

.dati-tecnici__container {
  display: flex;
  justify-content: space-around;
}

@media (max-width: 1280px) {
  #dati-tecnici {
    margin-block: 3em;
  }
  .dati-tecnici__immagine {
    display: flex;
    margin: 0 auto;
  }

  .dati-tecnici__container {
    flex-direction: column;
  }

  div.dati-tecnici__accordion {
    width: 100%;
  }

  .dati-tecnici__container .dati-tecnici__immagine {
    display: flex;
  }
}

.dati-tecnici__container .dati-tecnici__immagine {
  width: 100%;
  max-width: 35em;
}

.dati-tecnici__immagine {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dati-tecnici__immagine img {
  max-width: 30em;
  width: 100%;
}

.dati-tecnici__accordion {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.accordion__caratteristica {
  color: #25344d;
  margin-top: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #25344d;
  cursor: pointer;
}

.accordion__titolo {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion__titolo h4 {
  font-size: 2rem;
  font-weight: 400;
}

.accordion__descrizione {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  font-size: 1.25rem;
}

@media screen and (max-width: 970px) {
  .accordion__titolo h4 {
    font-size: 1.5rem;
  }
  .accordion__descrizione {
    font-size: 1rem;
  }
}

.accordion__caratteristica.active .accordion__descrizione {
  max-height: 300px;
  animation: fade 0.25s ease;
}

.accordion__caratteristica.active svg {
  transform: rotate(180deg);
}

svg {
  transition: transform 0.5s ease-in;
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brochure{
  display: flex;
}

.brochure a{
  color: rgb(176, 10, 10);
  font-size: 1.3rem;
  text-align: center;
}

@media screen and (max-width: 970px) {
  .brochure{
    justify-content: center;
    margin-block: 2em;
  }
}
@media screen and (max-width: 1280px) {
  .brochure{
    margin-block: 4em;
    justify-content: center;
  }
}


/* END DATI TECNICI */

.cards {
  min-height: 40vh;
  padding: 2em 1.25em 4.5em;
  margin: 0;
  background-color: #374d72;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  row-gap: 2em;
}
.cards h3 {
  align-self: flex-start;
  color: white;
  z-index: 2;
}

.slider__container {
  display: flex;
  gap: 100px;
  position: relative;
}

.card {
  width: 250px;
  height: 200px;
  border-radius: 8px;
  position: relative;
  cursor: pointer;
  box-shadow: 5px 5px 25px #1c273a;
}

.card .image-box {
  background-color: white;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}
.card .image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 90%;
  border-radius: inherit;
  transition: 0.5s ease-in-out;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid white;
  border-radius: inherit;
  opacity: 0;
  transition: 0.4s ease-in-out;
}

.card:hover::before {
  background-color: rgba(0, 0, 0, 0.665);
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: 0.4s ease-in-out;
}

.card:hover img {
  filter: grayscale(1) brightness(0.4);
}
.card:hover::after {
  opacity: 1;
  inset: 10px;
}

.content {
  width: 80%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.content h4,
.content p {
  color: #ffffff;
  opacity: 0;
  transition: 0.4s 0.2s ease;
}

.content h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  scale: 0.7;
}

.content p {
  font-size: 0.75rem;
  line-height: 1.5;
  transform: translateY(50%);
}

.card a {
  position: absolute;
  bottom: -55px;
  width: 8em;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid white;
  padding: 4px 8px;
  border-radius: 16px;
  opacity: 0;
  color: white;
  text-decoration: none;
}

.card:hover .content h4 {
  scale: 1;
  opacity: 1;
}

.card:hover .content p {
  opacity: 1;
  transform: translateY(0);
}

.card:hover a {
  opacity: 1;
  z-index: 100;
}

.card:hover a:hover {
  background: white;
  color: #1c273a;
}

@media screen and (min-width: 970px) {
  .cards {
    padding-left: 7.5em;
  }
  .cards:before,
  .cards:after {
    position: absolute;
    top: 0;
    content: "";
    width: 250px;
    height: 100%;
    z-index: 2;
  }

  .cards:before {
    left: 0;
    background: linear-gradient(
      to left,
      rgba(255, 255, 255, 0),
      rgba(55, 77, 114, 0.683)
    );
  }

  .card {
    width: 250px;
    height: 300px;
  }

  .cards:after {
    right: 0;
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0),
      rgba(55, 77, 114, 0.683)
    );
  }

  .card a {
    bottom: 25px;
  }

  .content h4 {
    font-size: 1.5rem;
  }
  .content p {
    font-size: 1.15rem;
  }
}

/* ---------------------form barbara -----------------------------*/
section.form {
  margin-top: 5em;
  display: grid;
  grid-template-rows: 10% auto 200px;
  grid-template-columns: 50% 50%;
  font-family: "Dosis";
  margin-bottom: 2em;
}

section.form h3 {
  grid-column: 1/3;
  margin-bottom: 0 !important;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

div.map {
  grid-column: 2 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form__modulo {
  grid-column: 1/2;
}

.form__immagine {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form__immagine img {
  height: 50%;
  object-fit: contain;
}

iframe {
  width: 100%;
  margin: 0 2em 2em 2em;
}

form input {
  margin-bottom: 1.5rem;
}

input:not(input[type="checkbox"], input[type="submit"]) {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #e2e1e5;
}

input:not(input[type="checkbox"])::placeholder {
  color: #d2d2d2;
  font-family: "Montserrat", sans-serif;
}

label:not(label[for="privacy"]) {
  color: #25344d;
}

input[type="submit"] {
  background-color: #25344d;
  color: white;
  width: 5em;
  border-radius: 5px;
  padding: 10px;
  align-self: center;
  margin-top: 2em;
}

label {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
}

.nome,
.cognome,
.email {
  width: 80%;
  margin-inline: auto;
}

.privacy {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.privacy input[type="checkbox"] {
  margin: 0;
  vertical-align: middle;
}

div.privacy label {
  margin-left: 1em;
}

img#logo-tcs {
  width: 45%;
}

@media screen and (max-width: 800px) {
  section.form {
    grid-template-rows: auto;
  }
  .form__modulo {
    grid-column: 1 / 3;
    height: fit-content;
  }

  div.map {
    grid-column: 1 / 3;
  }
  .nome,
  .cognome,
  .email {
    width: 100%;
  }

  input:not(input[type="checkbox"], input[type="submit"]) {
    width: 100%;
  }
}

/*------------------------------form barbara-------------------------*/

/* FOOTER */

/* Stile base per il footer */
footer {
  overflow: hidden;
  background-color: #59729d;
  color: #fff;
}

/*NAV-FOOTER*/
.nav-footer {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 20px 110px;
  background-color: #59729d;
  color: white;
}

/* Ridimensionamento icone social */
.icon-social {
  margin: 0 10px;
  transition: transform 0.3s ease; /* Aggiunge una transizione per lo scaling */
}

.icon-social i {
  font-size: 1.5rem;
}

/* Stile per il contenitore social */
.social {
  display: flex; /* Mantiene le icone in una riga */
  align-items: center;
  justify-content: center;
  gap: 25px;
}

/* Effetto hover per le icone */
.icon-social:hover {
  transform: scale(
    1.5
  ); /* Aumenta la dimensione dell'immagine al passaggio del mouse */
}

/* Media query per il design RESPONSIVE */
@media (max-width: 710px) {
  .nav-footer {
    align-items: center; /* Allinea gli elementi al centro */
    padding: 20px; /* Riduce il padding per schermi più piccoli */
    flex-direction: column-reverse;
  }

  .social {
    margin-top: 1em; /* Spazio sopra le icone social */
    display: flex; /* Mantiene le icone in una riga */
    justify-content: center; /* Allinea le icone al centro */
    margin-bottom: 2em;
  }

  .icon-social {
    margin: 5px; /* Spazio attorno a ciascuna icona */
  }

  .icon-social i {
    font-size: 1.5rem;
  }

  .footer-container {
    flex-direction: column;
  }
  .colonna-destra {
    flex-direction: column;
    width: 100%;
  }

  .social {
    text-align: center; /* Optional: center social icons for smaller screens */
  }

  .social a {
    display: inline-block;
    margin: 0 10px; /* Optional: space between social icons */
  }

  .footer-container h4 {
    font-size: 1.5rem;
    font-weight: bold;
    font-style: normal;
  }

  .footer-container {
    font-size: 1.15rem;
  }
}

/* FOOTER-CONTAINER */
/* Contenitore principale */
.footer-container {
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.sub-col {
  flex: 1;
  padding: 0 10px;
  text-align: center;
}

/*COLONNA SINISTRA*/
.footer-container {
  margin: 30px 0px 30px;
}

.colonna-sinistra {
  display: flex;
  justify-content: center; /* Centra orizzontalmente */
  align-items: center; /* Centra verticalmente */
}

.logo-footer {
  max-width: 100%; /* Rende l'immagine responsive */
  height: auto; /* Mantiene le proporzioni dell'immagine */
}

.indirizzo {
  text-align: center;
  align-items: center;
  margin-bottom: 0;
}

.icon-position {
  width: 20px; /* Dimensione dell'icona */
  height: 20px; /* Dimensione dell'icona */
  margin-right: 10px; /* Spazio tra l'icona e il titolo */
}

.titolo-indirizzo {
  margin: 0; /* Rimuove il margine di default del titolo */
}

/*COLONNA DESTRA*/
footer a:link,
footer a:visited {
  text-decoration: underline;
  color: #fff;
  background-color: transparent;
}

.colonna-destra {
  display: flex;
  justify-content: center; /* Centra orizzontalmente */
  align-items: top; /* Centra verticalmente */
  padding: 20px 0px 30px;
  gap: 20px;
}

/* BOTTOM-FOOTER*/
.bottom-footer {
  background-color: #25344d;
  display: flex; /* Abilita Flexbox */
  justify-content: center; /* Allinea il contenuto orizzontalmente */
  align-items: center; /* Allinea il contenuto verticalmente */
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid white;
}

/* END FOOTER */

section {
  margin-left: 0;
  padding-inline: 1.25em;
}

h3 {
  margin-bottom: 0.5em;
  font-size: 2rem;
}

@media screen and (min-width: 920px) {
  h3 {
    font-size: 2.5rem;
  }
  section {
    margin-left: 100px;
  }
}
