/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* --title-color: #476361;*/
  --title-color: #232323;
  --text-color: black;
  --text--color: white;
  --body-color: white;
  --container-color: white;
  /* --button-color:#476361;*/
  --button-color: #078080;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Karla", sans-serif;
  --title-font: "Red Hat Display", sans-serif;
  --font-size: 1rem;
  --font-title-size: 1.4rem;
  --font-subtitle-size: 1.2rem;
  --font-size-mobile: 0.9rem;
  --font-size-title-mobile: 1.2rem;
  --font-title-article: 1.3rem;
  --font-subtitle-article: 1.05rem;
  --font-size-article: 1rem;
  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  /*background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);*/
  font-family: var(--body-font);
  background-color: #f8f5f2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

strong {
  color: var(--title-color);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  background-color: transparent;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  max-width: 7rem;
  height: auto;
}

.nav__toggle,
.nav__close {
  display: flex;
  font-size: 1.25rem;
  color: white;
  cursor: pointer;
}

li p {
  cursor: pointer;
}

.nav__item {
  position: relative; /* Per posizionare il dropdown su desktop */
}

.dropdown-menu {
  display: none; /* Nascondi il dropdown di default */
  position: absolute; /* Posizionamento assoluto su desktop */
  top: 100%; /* Posiziona sotto il nav__item */
  left: 0;
  background-color: hsla(0, 0%, 0%, 0.6);
  padding: 1rem;
  border-radius: 0.5rem;
  z-index: 10;
  min-width: max-content; /* Si adatta al contenuto */
  text-align: start;
}

.dropdown-menu li {
  padding: 0.3rem;
}

.dropdown-menu li a:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.dropdown-menu li a {
  color: white;
}

/* Mostra il dropdown al passaggio del mouse su desktop */
.nav__item:hover .dropdown-menu {
  display: block;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px) {
  .nav__logo {
    max-width: 5rem;
    height: auto;
  }

  .menu-icon {
    color: white;
  }

  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    background-color: hsla(0, 0%, 0%, 0.3);
    width: 100%;
    padding-block: 4rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: top 0.4s;
  }

  .nav__item {
    position: static; /* Rimuove il posizionamento assoluto */
  }

  .dropdown-menu {
    position: relative; /* Il dropdown appare in linea */
    background-color: hsla(0, 0%, 0%, 0.3);
    top: 0;
    left: 0;
    display: none; /* Di default nascosto */
    width: 60%; /* Occupa tutta la larghezza su mobile */
    box-shadow: none; /* Rimuovi l'ombra */
    text-align: center;
    padding: 1.5rem;
    margin: 0 auto;
  }

  /* Mostra il dropdown al click su mobile */
  .nav__item.active .dropdown-menu {
    display: block; /* Mostra il dropdown su mobile */
  }

  .nav__item .dropdown-menu li {
    padding: 0.5rem; /* Spaziatura maggiore per mobile */
    text-transform: uppercase;
    font-size: 0.8rem;
  }

  .dropdown-menu li a {
    color: white;
    padding-bottom: 0.5rem;
  }

  .dropdown-menu li a:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }
}

.nav__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  position: relative;
  color: white;
  font-family: var(--body-font);
}

/*.nav__link::after {
  content: "";
  width: 0;
  height: 2px;
  background-color: white;
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  transition: width 0.3s;
}

.nav__link:hover::after {
  width: 70%;
}*/

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  top: 0;
}

/* Add blur to header */
.blur-header::after {
  content: "";
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsla(0, 0%, 0%, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* Active link */
.active-link::after {
  width: 70%;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: #406f6b85;
}

::-webkit-scrollbar-thumb {
  background-color: #406f6b85;
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 30%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--button-color);
  padding: 6px;
  display: inline-flex;
  color: var(--body-color);
  font-size: 1.25rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s;
  border-radius: 0.8rem;
}

.scrollup:hover {
  transform: translateY(-0.25rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 340px) {
  .container {
    margin-inline: 1rem;
  }
}

/* For large devices */
@media screen and (min-width: 1023px) {
  .nav__close,
  .nav__toggle {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }

  .nav__item {
    position: relative;
  }
}

@media screen and (min-width: 1152px) {
  .container {
    margin-inline: auto;
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .blur-header::after {
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }

  .scrollup {
    right: 3rem;
  }
}

/*=============== HOME ===============*/
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* Imposta l'altezza della hero a 100vh */
  overflow: hidden;
}

.hero-background {
  background-image: url("/assets/IMG/HOME/home.webp");
  background-size: cover; /* Immagine di sfondo in cover */
  background-position: center;
  height: 100%; /* Occupare l'intera altezza della hero */
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-background-contact {
  background-image: url("/assets/IMG/CONTACT/HERO\ -\ CONTATTI.webp");
  background-size: cover; /* Immagine di sfondo in cover */
  background-position: center;
  height: 100%; /* Occupare l'intera altezza della hero */
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
  margin-left: 8rem;
  padding-top: 15%;
  text-align: start;
}

h1 {
  font-size: 4rem;
  margin: 0 auto;
  font-weight: 500;
  font-family: var(--title-font);
}

h3 {
  font-size: 1.5rem;
  margin: 10px 0;
  font-weight: 400;
  font-family: var(--title-font);
}

/*=============== BANNER ===============*/

.banner {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #406f6b85;
  color: white;
  padding: 1rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.banner a {
  color: white;
}

.banner-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
}

.banner-item img {
  width: 12px;
  margin-right: 1rem;
}

.banner-item p {
  font-size: var(--font-size-mobile);
}

.get-quote {
  border: 1.5px solid white;
  border-radius: 0.5rem;
  padding: 0.5rem;
}

/*=============== ABOUT US ===============*/
.section-home {
  width: 100%;
  padding-top: 5rem;
  display: flex;
  justify-content: center;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-home {
  max-width: 968px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-content {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  max-width: 50%;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 1rem;
}

.about-text {
  flex: 1;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-left: 2rem;
  padding-right: 2rem;
}

.about-text h4 {
  color: var(--text-color);
  font-size: var(--font-size-title-mobile);
  font-weight: 400;
}

.about-text h3 {
  font-size: var(--font-size-title-mobile);
  text-transform: uppercase;
  color: var(--title-color);
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
  font-family: var(--title-font);
}

.about-paragraphs p {
  margin-bottom: 0.5rem;
  font-size: var(--font-size-mobile);
  line-height: 1.1;
  color: var(--text-color);
  text-align: justify;
}

/*=============== PERCHE SCEGLIERCI ===============*/
.about-us-title {
  font-size: var(--font-size-title-mobile);
  text-transform: uppercase;
  color: var(--title-color);
  margin-bottom: 1rem;
  font-weight: 600;
  display: flex;
  justify-content: flex-start;
  font-family: var(--title-font);
}

.container-icons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.container-box {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 1rem;
}

.box {
  text-align: center;
  width: 140px;
  border: 1px #ccc solid;
  padding: 0.5rem;
  border-radius: 0.8rem;
  background-color: white;
}

.box img {
  width: 1.2rem;
  height: 1.2rem;
  margin-bottom: 0.5rem;
}

.box p {
  color: var(--text-color);
  text-transform: uppercase;
  font-weight: 500;
  font-size: var(--font-size-mobile);
}

/*=============== TARGET ===============*/
.about-text-target {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text-target a {
  color: black;
  text-decoration: underline;
}

.about-text-target p {
  line-height: 1.1rem;
  text-align: justify;
  font-size: var(--font-size-mobile);
}

.about-text-target h3 {
  font-size: var(--font-size-title-mobile);
  text-transform: uppercase;
  color: var(--title-color);
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1rem;
  font-family: var(--title-font);
}

.container-card {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  margin-top: 0.5rem;
}

.card {
  width: 300px;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 450px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.card-front,
.card-back {
  border: 1px #ccc solid;
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.card-front {
  padding: 1rem;
  background-color: white;
}

.card-front h3 {
  font-size: 1rem;
  padding: 0 1rem;
  text-align: center;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--title-color);
  font-family: var(--title-font);
}

.card-front p {
  padding: 0 1rem;
  text-align: center;
  font-size: var(--font-size-mobile);
  text-align: center;
}

.card-back {
  background-color: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
}

.card-back ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
  text-align: center;
}

.card-back li {
  margin-bottom: 0.5rem;
}

.card-back ul li:first-child a {
  font-weight: 600;
  font-size: 1rem;
}

.card-back a {
  text-decoration: none;
}

.card-back a:hover {
  text-decoration: underline;
}

.card img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 0.5rem;
  border-radius: 0.8rem;
}

.card a {
  text-decoration: none;
  color: black;
  text-transform: uppercase;
  font-size: var(--font-size-mobile);
}

.card a:hover {
  text-decoration: underline;
}

.card-inner.flipped {
  transform: rotateY(180deg);
}

.discover-btn,
.back-btn {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: white;
  border: 1px #ccc solid;
  padding: 0.5rem 1rem;
  border-radius: 0.8rem;
  cursor: pointer;
  font-weight: 500;
  background-color: var(--button-color);
}

/*PLUS*/
.custom-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-wrapper {
  display: flex;
  flex-direction: row; /* Manteniamo flex-direction: row */
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  padding-bottom: 20px;
  gap: 2rem;
}

.content-wrapper a {
  color: var(--text-color);
}

.image-container {
  width: 30%; /* Larghezza fissa uguale per tutte le immagini */
  display: flex;
  justify-content: center;
}

.image-container img {
  width: 100%; /* L'immagine occupa tutto lo spazio disponibile nel container */
  height: auto; /* Mantiene proporzioni */
  border-radius: 0.8rem;
  object-fit: cover; /* Mantiene il formato dell'immagine */
}

.text-center {
  display: flex;
  flex-direction: row; /* Mantenuto come row per la disposizione orizzontale */
  justify-content: flex-start; /* Allinea il contenuto a sinistra */
  text-align: left; /* Allineamento del testo a sinistra */
  gap: 1rem; /* Spazio tra il titolo, la descrizione e l'icona */
  max-width: 600px; /* Mantiene una larghezza massima per il blocco di testo */
  align-items: flex-start; /* Allinea gli elementi in alto */
}

.title {
  font-size: 1rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--title-color);
  font-family: var(--title-font);
}

.description {
  font-size: var(--font-size-mobile);

  margin-bottom: 20px;
}

.icon-arrow {
  width: 2.2rem;
  height: auto;
}

.linea-sotto {
  width: 100%;
  border: 1px solid #ccc;
  margin-bottom: 1.5rem;
}

/*FAQ*/
.faq-section {
  display: flex;
  width: 100%;
  margin: 3rem auto;
  padding: 20px;
}

.faq-title {
  width: 50%;
  text-align: left;
}

.faq-title h2 {
  font-size: var(--font-size-title-mobile);
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: 500;
}

.faq-content {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.faq-query {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
  background-color: white;
}

.faq-query p {
  font-size: var(--font-size-mobile);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

.faq-answer {
  padding: 10px;
  border-left: 2px solid var(--button-color);
  margin-top: 5px;
  background-color: white;
  border-radius: 0.5rem;
  transition: max-height 0.3s ease;
  overflow: hidden;
}

.icon-arrow {
  width: 1.5rem;
  height: auto;
  transition: transform 0.3s ease;
}

.faq-query.active .icon-arrow {
  transform: rotate(90deg);
}

/*IMMAGINE*/
.rectangular-div {
  width: 100%;
  height: 250px;
  background-image: url("/assets/IMG/HOME/pre\ form.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/*FORM*/
.home {
  max-width: 600px;
  margin: 0 auto;
}

.form-section {
  position: relative; /* Mantiene il form nel flusso */
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--body-color);
  min-height: 380px;
  border: 1px #ccc solid;
  border-radius: 0.8rem;
  overflow: visible;
  transform: translateX(30%) translateY(-40%); /* Sposta verso destra e in alto */
}

.image-container {
  flex: 1;
  display: flex;
}

.form-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-container {
  flex: 1;
  background-color: #ffffff;
  padding: 1rem;
  border-radius: 0.8rem;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

form h2 {
  margin-bottom: 1rem;
  font-size: var(--font-size-mobile);
  text-transform: uppercase;
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: 500;
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  margin-bottom: 1px;
  font-size: var(--font-size-mobile);
}

.input-group input,
.input-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 5px;
  font-size: var(--font-size-mobile);
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1rem 0;
}

.checkbox-item {
  display: flex;
  align-items: center;
  font-size: var(--font-size-mobile);
}

.checkbox-item input {
  margin-right: 3px; /* Ridotto spazio tra checkbox e label */
}

hr {
  margin: 12px 0;
  border: none;
  border-bottom: 1px solid #ccc;
}

.consent-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
}

.consent-group {
  display: flex;
  align-items: center;
  font-size: 11px;
}

.consent-group input {
  margin-right: 5px;
}

.consent-group a {
  text-decoration: underline;
  color: var(--title-color);
}

button.form-btn {
  background-color: var(--button-color);
  color: white;
  padding: 6px 12px;
  border: 1px #ccc solid;
  cursor: pointer;
  font-size: var(--font-size-mobile);
  border-radius: 0.8rem;
  font-weight: 500;
}

/*CONTATTI*/
.responsive-contact {
  margin: 0 auto;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 5rem;
}

.container-contatti {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 2rem;
}

.contact {
  border: 1px #ccc solid;
  border-radius: 0.8rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  flex: 1; /* Assicura che tutti gli elementi .contact siano uguali */
  min-width: 200px; /* Imposta una larghezza minima se necessario */
}

.title-contact {
  font-size: var(--font-size-title-mobile);
  font-weight: 500;
}

.text-contact {
  font-size: var(--font-size-mobile);
  margin: 0.5rem 0;
}

.icon-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.item-contact {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.item {
  font-size: var(--font-size-mobile);
  color: var(--text-color);
}

.img-icon {
  width: 1rem;
}

.item a {
  color: var(--title-color);
  text-decoration: underline;
}

.img-icon-map {
  width: 100%;
  height: auto;
  margin-top: 1rem;
}

/*FOOTER*/
