:root {
  /* 🎨 Colori Principali */
  --primary-color: #2c3e50; /* Blu Petrolio → Usato per bottoni, titoli, elementi chiave */
  --secondary-color: #6d7278; /* Grigio Antracite → Testo principale, bordi, elementi di supporto */
  --background-color: #f2f2f2; /* Bianco Perla → Sfondo principale */

  /* 🌟 Nuovo colore per la navbar */
  --navbar-background: #f2f2f2; /* Blu Petrolio scuro */

  /* 🌟 Stati ed Effetti */
  --primary-hover: #3e5c76; /* Blu più chiaro → Hover su bottoni, link, elementi interattivi */
  --secondary-hover: #858b91; /* Grigio più chiaro → Hover su testi secondari, bordi attivi */

  /* 🆕 Elementi di Feedback */
  --success-color: #27ae60; /* Verde → Messaggi di successo, stati positivi */
  --warning-color: #f39c12; /* Arancione → Avvisi o azioni cautelative */
  --error-color: #e74c3c; /* Rosso → Errori, messaggi di avviso */

  /* ⚫️ Colori Neutri */
  --text-color: var(--secondary-color); /* Testo principale */
  --border-color: rgba(
    109,
    114,
    120,
    0.3
  ); /* Bordo con trasparenza per un look soft */
  --primary-transparent: var(--border-color);

  /* 🌙 Modalità Scura (opzionale) */
  --dark-background: #1e1e1e;
  --dark-primary: #1a2a3a;
  --dark-text: #a0a0a0;
}

/* ################################################################################ */
/* #################################### GENERAL #################################### */
/* ################################################################################ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: "Inter", sans-serif; /* Pulito e moderno per il testo */
  margin: 0;
  scrollbar-width: none; /* Per Firefox */
  -ms-overflow-style: none; /* Per Internet Explorer e Edge */
  overflow-x: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif; /* Elegante per i titoli */
  color: var(--primary-color);
}

.button {
  background-color: var(--primary-color); /* Bottone blu petrolio */
  color: #f2f2f2; /* Testo bianco */
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.icon {
  padding: 0;
  cursor: pointer;
  border: 0.1rem solid var(--primary-color);
  border-radius: 0.5rem;
  margin: 0.1rem;
}

.button:hover {
  background-color: var(--primary-hover); /* Hover blu più chiaro */
}

i:hover {
  background-color: var(--primary-transparent);
}

a {
  color: var(--primary-color); /* Link blu petrolio */
  text-decoration: none;
}

a:hover {
  color: var(--primary-hover); /* Hover link più chiaro */
}

.text {
  transition: transform 1.2s ease-in-out;
}

.text:hover {
  transform: scale(1.2);
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.container-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 2rem;
  padding: 0 10rem;
}

.container-name {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 2rem;
  padding: 0 2rem;
}

.container-skills {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 2rem;
}

#come-up-container {
  display: none;
  position: fixed;
  height: 2rem;
  width: 2rem;
  background-color: var(--background-color);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  bottom: 2rem;
  right: 2rem;
  cursor: pointer;
  transition: opacity 0.3s ease-in-out;
  border: 0.1rem solid var(--secondary-color);
  z-index: 999;
}

/* ################################################################################ */
/* #################################### NAVBAR #################################### */
/* ################################################################################ */

.navbar {
  position: fixed;
  width: 100%;
}

.navbar-logo {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  padding: 0.1rem;
}

#site-options-icon-container {
  cursor: pointer;
  width: 2.4rem;
  height: 2.4rem;
}

.navbar-options {
  display: none;
  flex-direction: row;
  justify-content: end;
  align-content: center;
  min-width: 5rem;
}

/* ################################################################################ */
/* #################################### BODY #################################### */
/* ################################################################################ */

.body {
  scroll-snap-type: y mandatory; /* Snap verticale obbligatorio */
  overflow-y: scroll; /* Abilita lo scroll */

  height: 100vh; /* L'altezza sarà quella visibile, senza navbar */
}

.section {
  scroll-snap-align: start; /* Ogni sezione si allinea all’inizio */
  height: calc(100vh - 60px); /* Rende la sezione alta quanto lo schermo visibile, sottraendo la navbar */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-desk {
  position: relative;
  display: flex;
  justify-content: end;
  align-items: center;
  background-color: var(--primary-color);
  padding: 3rem 0rem;
  border-top-right-radius: 10rem;
  border-bottom-right-radius: 10rem;
  overflow: hidden;
  max-height: 20rem;
  height: 100%;
}

.profile-line {
  position: absolute;
  width: 60rem;
  height: 1rem;
  left: 50%;
  top: 50%;
  background-color: var(--background-color);
  transform: translate(-50%, -50%);
  z-index: 2;
  opacity: 1;
}

.profile-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 1;
  border-radius: 10rem;
  max-height: 20rem;
  background-color: var(--primary-color);
}

.profile-circle-gray {
  z-index: 0;
  border-right: solid 0.4rem var(--secondary-color);
  margin-right: 0rem;
}

.profile-circle-white {
  z-index: 1;
  border-right: solid 0.4rem var(--background-color);
  margin-right: 0.4rem;
}

.profile-img {
  position: absolute;
  width: 15rem;
  height: 15rem;
  border-radius: 50%;
  object-fit: cover;
  z-index: 2;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
  border: solid 0.4rem var(--background-color);
}

.carousel-presentation {
  display: none !important;
}

.skills-container {
  position: relative;
  width: 100%;
  height: 20rem;
}

.chip {
  position: absolute;
  padding: 0.5rem 1rem;
  background-color: var(--secondary-color);
  color: var(--background-color);
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  white-space: nowrap;
  transition: transform 0.2s ease-in-out;
  cursor: pointer;
}

.chip:hover {
  transform: scale(1.2);
  background-color: var(--secondary-hover);
}

/* ################################################################################ */
/* #################################### FOOTER #################################### */
/* ################################################################################ */

.footer {
  background-color: #2c3e50;
  color: var(--background-color);
  text-align: center;
  padding: 20px 0;
}
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-contacts {
  margin-top: 3rem;
}
.footer-logo h2{
  color: var(--background-color);
}
.footer a {
  color: var(--background-color);
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s;
}
.footer-nav a:hover {
  color: var(--background-color);
}

.footer-bottom {
  margin-top: 3rem;
  font-size: 14px;
  opacity: 0.8;
}

.slide .text {
  padding: 4rem;
  text-align: justify;
}

.section-title {
  padding-bottom: 0rem !important;
  text-align: center !important;
}

.carousel-content {
  min-height: 65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .profile-desk {
    border-top-right-radius: 0rem;
    border-bottom-right-radius: 0rem;
    border-bottom-left-radius: 0rem;
  }

  .profile-circle {
    display: none;
  }

  .container-text {
    padding: 0 0.5rem;
  }

  .text:hover {
    transform: unset;
  }

  .chip:hover {
    transform: unset;
    background-color: var(--secondary-color);
  }

  .presentation {
    display: none;
  }

  .carousel-presentation {
    display: flex !important;
  }
}

@media (max-width: 959px) {
  .presentation {
    display: none;
  }

  .carousel-presentation {
    display: flex !important;
  }
}
