/* -------------------------------------------------------------------------------- */
/* ! BASE */
/* -------------------------------------------------------------------------------- */

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

html,
body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover,
a:visited {
  text-decoration: none;
  color: inherit;
}

li {
    list-style: none;
}

button {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  outline: inherit;
  font-size: inherit;
  font-family: inherit;
}

button,
a {
  cursor: pointer;
}


/* ------------------------------------------------ */
/* UTILITY */
.res {
    width: 100%;
    max-width: 600px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
}


/* PALETTE */
:root {
  --light: #ffffff;
  --dark: #131126;
  --accent: #dcabec;
  --accent-secondary: #7f7c9fa6;
  --text: #ffffffb3;
  --text-secondary: #54535b;

}


h1, h2, h3, h4, h5, h6 {
  font-family: "Funnel Sans", sans-serif;
}

p, span, a, li, button {
  font-family: "Work Sans", sans-serif;
}



/* ------------------------------------------------ */
/* MAINTENANCE BODY */

#maintenance-page {
  background-color: var(--dark);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.maintenance-content {
  text-align: center;
  padding-top: 50px;
  font-family: "Work Sans", sans-serif;
  color: var(--text);
  text-align: center;
  transition: 2s ease;
}

.maintenance-content h3 {
  padding-bottom: 20px;
}

.maintenance-image {
  margin-top: 50px;
  width: 400px;
  height: 400px;
  margin: 0 auto;
  transition: 4s ease;
}

.maintenance-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}



.project-header {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}


.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
  color: var(--light);
}

.back-button img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
}

.back-button:hover {
  transform: rotate(35deg);
}




/* ------------------------------------------------ */
/* SETUP BODY */

.home-contenitore {
    display: flex;
    gap: 0;
    flex-direction: row;
}

/* body {
  background-color: var(--dark);
} */

.colonnasinistra {
  width: 50%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  position: fixed;
  margin-top: 0;
  padding: 50px 0;
}

.colonnadestra {
  max-width: 50%;
  overflow: auto;
  margin-left: 50%; 
  padding: 50px 6%;
  background-color: var(--dark);
  display: flex;
  flex-direction: column;
  gap: 100px;
}



/* ------------------------------------------------ */
/* INTRO SINISTRA */

.title-page {
  display: flex;
  padding: 30px 51px;
  margin: 0 10%;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.title-page h1 {
  font-size: 3.1em;
  font-family: "Funnel", sans-serif;
  font-weight: 600;
  color: var(--light);
}

.title-page div {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.title-page h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--light);
  font-family: "Work Sans", sans-serif;
}

.title-page p {
  font-size: 16px;
  color: var(--light);
  font-family: "Work Sans", sans-serif;
}


.side-menu {
  z-index: 1000;
  width: 100%;
  padding: 0 51px;
  margin: 0 10%;
  align-self: flex-start;
}

.social {
  width: 100%;
  padding: 0 50px;
  margin: 40px 10%;
  align-self: flex-start;
  display: flex;
  gap: 20px;
}

.social i {
  color: var(--light);
  font-size: 30px;
  transition: color 0.3s ease;
}

.social i:hover {
  color: var(--accent);
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.menu-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--light) !important;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin: 24px 0;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 55px;
  transform: translateX(0);
}

.menu-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 1px;
  background-color: var(--light);
  transition: all 0.3s ease;
}

.menu-link:hover {
  text-decoration: none;
  transform: translateX(10px);
}

.menu-link:hover::before {
  width: 45px;
}

.menu-link.is-active {
  text-decoration: none;
  transform: translateX(10px);
}

.menu-link.is-active::before {
  background-color: var(--light);
  width: 45px;
}

/* === Fade-in sezione === */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}




/* ------------------------------------------------ */
/* ABOUT */

.about h3{
  display: none;
}

.about {
    padding: 30px 0;
}

.about p{
  font-size: 16px;
  font-family: "Work Sans", sans-serif;
  color: var(--text);
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: 12px;
  padding: 10px 0;
}

.about p a{
  color: #fff;
  font-weight: 500;
}

.about p a:hover{
  color: var(--accent);
  text-decoration: none;
}



/* ------------------------------------------------ */
/* PROJECTS */

.projects-container>h3{
  display: none;
}

.projects-container,
.experience-container, 
.other-stuff-container {
  display: flex;
  padding: 50px 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
  color: var(--text);
}

.projects,
.experience,
.other-stuff {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 45px;
  align-self: stretch;
}


.single-projects {
  display: flex;
  padding: 20px 0;
  align-items: flex-start;
  gap: 20px;
}

.single-projects .img-container {
  flex-shrink: 0;
  width: 170px;
  height: 120px;
  overflow: hidden;
  border-radius: 2px;
}

.single-projects .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.single-projects>div{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.single-projects .projects_title {
  color: var(--text);
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
}

.single-experience .experience_title {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
}

.projects_title>a {
  color: var(--text);
}

.projects_title>a:hover {
  text-decoration: none;
  color: var(--text);
}

.other-stuff_title a,
.projects_title a,
.experience_title a,
.view-all a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.projects_title a img,
.other-stuff_title a img,
.experience_title a img,
.view-all a img {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.projects_title a:hover img,
.experience_title a:hover img,
.other-stuff_title a:hover img,
.view-all a:hover img {
  transform: rotate(45deg);
}

.projects_title>a:visited,
.experience_title>a:visited,
.other-stuff_title>a:visited,
.view-all a:visited {
  text-decoration: none;
  color: var(--text);
}

.single-projects .projects_description {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: var(--text);
  font-size: 16px;
}

.single-projects .projects_tags {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.single-projects .projects_tags>span,
.single-experience .experience_tags>span {
  display: flex;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 28px;
  background: var(--accent-secondary);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}


.view-all>a {
  color: var(--text);
}

.view-all>a:hover {
  text-decoration: none;
  color: var(--text);
}

.view-all a img {
  /* display: inline-block; */
  transition: transform 0.3s ease;
}

.view-all a:hover img {
  transform: rotate(45deg);
}

.view-all a:visited {
  text-decoration: none;
  color: var(--text);
}



/* ------------------------------------------------ */
/* EXPERIENCE */

.experience-container>h3{
  display: none;
}

.experience-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
  color: var(--text);
}

.experience {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 45px;
  align-self: stretch;
}

.single-experience {
  display: flex;
  padding: 20px 0;
  align-items: flex-start;
  gap: 20px;

}

.single-experience>div{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.experience-date {
  padding-top: 5px;
  min-width: 170px;
  font-weight: 500;
  color: var(--text);
  opacity: 0.8;
}

.single-experience .experience_title {
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 18px;
}

.experience_title>a {
  color: var(--text);
}

.experience_title>a:hover {
  text-decoration: none;
  color: var(--text);
}

.experience_title a img {
  /* display: inline-block; */
  transition: transform 0.3s ease; /* effetto fluido */
}

.experience_title a:hover img {
  transform: rotate(45deg);
}

.experience_title>a:visited {
  text-decoration: none;
  color: var(--text);
}


.single-experience .experience_description {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: var(--text);
  font-size: 16px;
}

.single-experience .experience_tags {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.single-experience .experience_tags>span {
  display: flex;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 28px;
  background: var(--accent-secondary);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}



/* ------------------------------------------------ */
/* OTHER STUFF */
.other-stuff-container>h3{
  display: none;
}

.single-other-stuff p{
  opacity: 0.8;
}


.single-other-stuff {
  display: flex;
  padding: 20px 0;
  align-items: flex-start;
  gap: 20px;
}

.single-other-stuff .img-container {
  flex-shrink: 0;
  width: 220px;
  height: 150px;
  overflow: hidden;
  border-radius: 2px;
}

.single-other-stuff .img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.single-other-stuff>div{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.single-other-stuff .other-stuff_title {
  color: var(--text);
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
}

.other-stuff_title>a {
  color: var(--text);
}

.other-stuff_title>a:hover {
  text-decoration: none;
  color: var(--text);
}

.single-other-stuff .other-stuff_description {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  color: var(--text);
  font-size: 16px;
}

.single-other-stuff .other-stuff_tags {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.single-other-stuff .other-stuff_tags>span {
  display: flex;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 28px;
  background: var(--accent-secondary);
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}




.credits p {
  font-size: 14px;
  color: var(--text);
  padding-bottom: 50px;
  font-family: "Work Sans", sans-serif;
}

.credits p span {
  font-weight: 500;
  color: #fff;
}

/* ------------------------------------------------ */
/* MEDIA QUERIES */

/* Large screens (1200px and below) */
@media (max-width: 1200px) {

  .back-button img {
    width: 100px;
    height: 100px;
}

.maintenance-content {
  padding: 0 30px;
}

.maintenance-content h3 {
  padding-bottom: 50px;
  font-size: 3.6em;
}

.maintenance-content p {
  font-size: 3em;
}

.maintenance-image {
  padding-top: 60px;
  width: 800px;
  height: 800px;
}

  .home-contenitore {
    flex-direction: column;
  }

 .about>h3{
    display: block;
    font-size: 3em;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 50px;
  }

  .colonnasinistra {
    position: relative;
    width: 100%;
    margin: 15% auto;
    height: fit-content;
    padding: 0 30px;
    align-items: flex-start ;
    justify-content: flex-start;
  }

  .colonnadestra {
    max-width: 100%;
    margin-left: 0;
    padding: 0 6%;
  }

  .projects-container>h3 {
    display: block;
    font-size: 3em;
    font-weight: 700;
  }

  .experience-container>h3 {
    display: block;
    font-size: 3em;
    font-weight: 700;
  }

  .projects-container, 
  .experience-container {
    width: 100%;
    margin-bottom: 20%;
    gap: 80px;
  }

  .title-page {
    padding: 20px;
    margin: 0;
    gap: 30px;
    text-align: left;
    align-items: flex-start;
  }

  .side-menu {
    display: none;
  }

  .title-page h1 {
    font-size: 80px;
  }

  .title-page h3 {
    font-size: 3em;
  }

  .title-page p {
    font-size: 2.5em;
    text-align: left;
    padding: 5% 0;
  }

  .social {
    margin: 20px 0;
    gap: 50px;
    padding: 20;
  }

  .social i {
    font-size: 5em;
  }

  .about p {
    font-size: 2.5em;
    line-height: 1.5em;
  }

  .projects {
    gap: 80px;
  }
  .single-projects {
    flex-direction: column-reverse;
  }

  .single-experience {
    flex-direction: column;
  }

  .single-projects>div {
    gap: 50px;
    flex-direction: column;
  }

  .single-projects .projects_title {
    font-size: 2.5em;
  }

  .single-experience .experience_title {
    font-size: 2.5em;
  }

  .single-projects .projects_description {
    font-size: 2em;
}

.single-experience .experience_description {
    font-size: 2em;
}

  .single-projects .img-container {
    width: 450px;
    height: 300px;
}

.single-projects .projects_tags>span,
.single-experience .experience_tags>span {
    font-size: 1.5em;
    padding: 15px;
    
  }

  .projects_tags,
  .experience_tags {
    margin-bottom: 50px;  
  }

  .view-all>a {
    font-size: 2em;
  }

  .experience-date{
    font-size: 1.8em;
  }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {



  .single-projects {
    flex-direction: column;
  }

  .single-projects .img-container {
    order: 3;
    width: 100%;
    height: 200px;
  }

  .projects_tags,
  .experience_tags {
    flex-wrap: wrap;
  }

  .single-experience {
    flex-direction: column;
  }

  .experience-date {
    min-width: auto;
    margin-bottom: 10px;
  }

  .about {
    padding: 100px 0;
  }

  .about p {
    font-size: 15px;
  }

  .side-menu {
    width: 100%;
    max-width: 800px;
    padding: 20px 6%;
  }

  .menu-list {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
  }

  .menu-link {
    padding-left: 45px;
  }

  .menu-link::before {
    width: 20px;
  }

  .menu-link:hover::before,
  .menu-link.is-active::before {
    width: 35px;
  }
}

/* Mobile devices (480px and below) */
@media (max-width: 480px) {
  .colonnasinistra {
    padding: 30px 0;
  }

  .title-page {
    padding: 20px 6%;
  }

  .title-page h1 {
    font-size: 40px;
  }

  .title-page h3 {
    font-size: 16px;
  }

  .title-page p {
    font-size: 13px;
    max-width: 100%;
  }

  .side-menu {
    padding: 10px 6%;
  }

  .menu-list {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-link {
    margin: 10px 0;
    padding-left: 35px;
  }

  .projects_title,
  .experience_title {
    font-size: 16px;
  }

  .projects_description,
  .experience_description {
    font-size: 14px;
  }

  .projects_tags > span,
  .experience_tags > span {
    font-size: 12px;
    padding: 8px;
  }

  .colonnadestra {
    gap: 40px;
    padding: 20px 6%;
  }

  .social {
    margin-top: 20px;
  }
}

/* Ensure minimum padding on very small devices */
@media (max-width: 320px) {
  .colonnadestra {
    padding: 0 4%;
  }

  .title-page {
    padding: 15px;
  }

  .single-projects,
  .single-experience {
    padding: 15px 0;
  }
}







/* ------------------------------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------------------------------ */
/* PROJECTS PAGE */
/* ------------------------------------------------------------------------------------------------ */  
/* ------------------------------------------------------------------------------------------------ */

#projects-contenitore {
  display: flex;
  align-items: center;
  align-content: center;
  gap: 20px;
  flex-wrap: wrap;
}


.back-arrow {
  display: inline-flex;
  padding: 10px;
  align-items: center;
  gap: 10px;
  background: var(--dark);
}