:root {
  --primary: #8d7a6d;
  --primary-light: #eee7df;
  --primary-dark: #9a928a;
  --secondary: #d6ccb4;
  --secondary-dark: #c5c0ab;
  --dark: #4c423c;
}

@font-face {
  font-family: Avenir LT Std;
  src: url("/assets/font/AvenirLTStd-Book.otf");
}

@font-face {
  font-family: Avenir LT StdBlack;
  src: url("/assets/font/AvenirLTStd-Black.otf");
}

.d-hidden {
  visibility: hidden;
}

.d-show {
  visibility: visible;
}

.link-unstyled {
  text-decoration: none;
  color: black;
}

.link-port-unstyled {
  color: #4c423c;
  font-size: 0.8rem;
}

.link-port-title-unstyled {
    font-family: Avenir LT StdBlack;
    color: #4c423c;
    padding-top: 1rem;
}

h2 {
    font-family: Avenir LT StdBlack;
    letter-spacing: 0.2rem;
}
body {
  font-family: Avenir LT Std, serif;
  overflow-x: hidden;
  background-color: var(--primary-light);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.contacts {
    padding: 0 20px;
}

nav {
  height: 150px;
  background-color: transparent;
  padding-top: 1rem;
  transition: background-color 0.3s ease;
}

nav.scrolled {
  background-color: rgba(255, 255, 255, 0.879); /* Colore di sfondo quando lo scrolling supera un certo punto */
}

.cv-link {
    padding: 6px 12px;
}

.logo {
  padding-left: 20px;
  font-size: 2rem;
  letter-spacing: 0.5rem;
}

#offcanvas_menu {
    height: fit-content;

}

.sidebar {
    display: none;
}

.jumbotron {
  background-image: url("../img/bannerhome.png");
  min-height: 100vh;
  width: 100vw;
  background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: top;
  background-size: cover;
  background-attachment: fixed;
}

main {
  max-height: calc(100vw -100px);
  padding-top: 20px;
}

section {
  text-align: center;
}


.foto-francesca {
    max-width: 350px;
    border-radius: 50%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    transition: margin-top 0.5s ease;
}

.foto-francesca.scrolled {  
    margin-top: -100px;
}

.about-me-text {
  line-height: 2rem;
  font-weight: 500;
  font-size: 1.2rem;
}

.portfolio-card {
  border: none;
  text-align: center;
  background-color: transparent;
}

.portfolio-item-preview {
  max-width: 100%;
  aspect-ratio: 1 / 1;
  max-height: auto;
  object-fit: cover;
  border-radius: 50%;
  transition: filter 0.2s ease;
}

section {
  padding: 0 1rem;
}

.images .img_container:not(.active) {
  display: none;
}

#carousel-1, #carousel-2, #carousel-3, #carousel-4, #carousel-5, #carousel-6{
  position: absolute;
  bottom: -40%;
  width: 100%;
}

.prev, .next, .prev2, .next2, .prev3, .next3, .prev4, .next4, .prev5, .next5, .prev6, .next6 {
  background-color: rgba(0, 0, 0, 0.555);
  color: white;
  border: none;
  border-radius: 50%;
  width: 1.5rem;
  aspect-ratio: 1/1;
  height: 1.5rem;
}

.fa-chevron-left, .fa-chevron-right {
  font-size: 1rem;
}
.video-item-preview {
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  transition: filter 0.2s ease;
}

.portfolio-item-preview:hover {
    filter: opacity(0.8);
}

footer {
    background-color: var(--dark);
    color: var(--primary-light);
    padding: 2rem 0;
    margin-top: 100px;
    font-size: 0.7rem;
}

.proj-port-title {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.2rem;
}

.video_render_title {
  letter-spacing: 0.5rem;
  font-weight: 600;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: var(--secondary);
  margin: 30% auto;
  width: 90%; /* Larghezza del pop-up modale */
  max-width: 600px; /* Larghezza massima */
  position: relative;
}

.close {
  color: var(--dark);
  position: absolute;
  top: -5px;
  right: 5px;
  font-size: 25px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1003;
}

#port-01, #port-02, #port-03, #port-04, #port-05, #port-06 {
  height: 200px;
}

.up {
  position: fixed;
  bottom: 30px;
  right: 30px;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.616);
  width: 40px;
  aspect-ratio: 1/1;
  color: white;
  z-index: 99999;
  text-decoration: none;
}


@media screen and (min-width: 625px) {
    .sidebar {
        display: block;
        position: fixed;
        top: 24px;
        right: 0;
        height: 100%;
        text-align: end;
        padding-right: 30px;
        padding-top: 2rem;
        font-size: 1.5rem;
        line-height: 3rem;
        z-index: 1001;
    }

    #offcanvas_menu {
        display: none;
    }

    .my_container {
        width: 70%;
        margin: 0 auto;
    }

    #carousel-1, #carousel-2, #carousel-3, #carousel-4, #carousel-5, #carousel-6{
      position: absolute;
      bottom: 10%;
      width: 100%;
    }

    .prev, .next, .prev2, .next2, .prev3, .next3, .prev4, .next4, .prev5, .next5, .prev6, .next6 {
      background-color: rgba(0, 0, 0, 0.555);
      color: white;
      border: none;
      border-radius: 50%;
      width: 2.5rem;
      aspect-ratio: 1/1;
      height: 2.5rem;
    }
}

@media screen and (min-width: 992px) {
    nav {
        height: 80px;
    }

    .a-capo {
        display: none;
    }

    #port-01, #port-02, #port-03, #port-04, #port-05, #port-06  {
      height: 120px;
    }

    main {
      width: calc(100vw - 300px);
      max-height: calc(100vw -100px);
      padding-left: 20px;
      padding-top: 20px;
  }
  section {
    padding: 0;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
  }
  
  .modal-content {
    background-color: var(--secondary);
    margin: 10% auto;
    width: 60%; /* Larghezza del pop-up modale */
    max-width: 600px; /* Larghezza massima */
    position: relative;
  }
  
#carousel-1, #carousel-2, #carousel-3, #carousel-4, #carousel-5, #carousel-6{
  position: absolute;
  bottom: 45%;
  width: 100%;
}

footer {
  font-size: 0.9rem;
}
}


@media screen and (min-width: 492px) {
  .logo {
    font-size: 3rem;
  }
  
.proj-port-title {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 1rem;
}
}
