@charset "UTF-8";
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #121212;
  --accent-color: #B497FF;
  --second-accent-color: #FF6d90;
  --third-accent-color: #FFd1e3;
  --text-color: #EDEDED;
  --body-font: "Inter", sans-serif;
  --heading-font: "DM Serif Display", serif;
  --h1-font-size: clamp(40px, 6vw, 60px);
  --h2-font-size: clamp(32px, 4.8vw, 40px);
  --h3-font-size: clamp(26px, 3.8vw, 34px);
  --biggerbody-font-size: clamp(22px, 3.2vw, 32px);
  --body-font-size: clamp(18px, 2.4vw, 24px);
  --smallbody-font-size: clamp(16px, 2vw, 18px);
  --smallerbody-font-size: 16px;
  --button-font-size:clamp(16px, 1.8vw, 18px);
  --button-font-weight: bold;
  --footer-font-size: 14px;
  --subtitle-font-size: clamp(22px, 3.2vw, 32px);
  --subtitle-font-weight: 500;
}

body {
  font-family: var(--body-font);
  font-size: var(--body-font-size);
  color: var(--text-color);
  background-color: var(--primary-color);
  line-height: 160%;
}
body h1, body h2, body h3 {
  font-family: var(--heading-font);
  color: var(--text-color);
  line-height: 115%;
}
body h1 {
  font-size: var(--h1-font-size);
}
body h2 {
  font-size: var(--h2-font-size);
}
body h3 {
  font-size: var(--h3-font-size);
}
body .menu-nav_link {
  font-family: var(--body-font);
  font-size: var(--body-font-size);
  color: var(--text-color);
  line-height: 160%;
}
body .btn {
  font-family: var(--body-font);
  font-size: var(--button-font-size);
  font-weight: var(--button-font-weight);
  color: var(--primary-color);
  background-color: var(--accent-color);
  text-decoration: none;
  border-radius: 40px;
  padding: 10px 40px;
  transition: all 0.3s ease;
}
body .btn:hover {
  background-color: var(--second-accent-color);
  color: var(--text-color);
}

.section {
  padding: clamp(40px, 8vw, 100px) clamp(20px, 5vw, 100px);
  max-width: 100%;
}

/* Hero section*/
.hero {
  position: relative;
}
.hero.section {
  margin-top: 90px;
}

/* Hero grid layout for desktop */
.hero__grid {
  margin: 0 auto;
  position: relative;
  display: grid;
  max-width: 100%;
  width: fit-content;
  grid-template-columns: flex; /* oppure flex se preferivi */
  align-items: center;
  padding-right: 300px;
  /* lascia spazio alla figura */
}
@media (max-width: 954px) {
  .hero__grid {
    padding-right: 0px;
  }
}

/* Text block */
.hero_text {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Hero title */
.hero_title {
  margin-bottom: 40px;
  max-width: 400px;
}
@media (max-width: 954px) {
  .hero_title {
    margin-bottom: -50px;
  }
}

/* Tagline */
.hero_tagline {
  margin-bottom: 40px;
}

.highlight {
  display: inline-block;
  padding: 0 10px;
  background-color: var(--second-accent-color);
  color: var(--primary-color);
  font-weight: 700;
  position: relative;
  z-index: 1;
  box-shadow: 4px 4px 0 var(--accent-color), -4px -4px 0px #ffd1e3;
}

/* Hero image */
.hero_illustration {
  position: absolute;
  top: 50%;
  right: clamp(-160px, -8vw, -40px); /* Esce in modo proporzionato */
  transform: translateY(-50%);
  width: clamp(389px, 42vw, 800px); /* scala fluidamente */
  z-index: 0;
}
@media (max-width: 954px) {
  .hero_illustration {
    display: none;
  }
}
.hero_illustration img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero_illustration--mobile {
  display: none;
}
@media (max-width: 954px) {
  .hero_illustration--mobile {
    display: block;
    margin-top: -20px;
    margin-bottom: 20px;
    width: 400px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero_illustration--mobile img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* Buttons in a row, 40px apart */
.hero_cta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 40px;
  width: fit-content;
  height: fit-content;
  background-color: var(--accent-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 100px;
  font-size: var(--smallbody-font-size);
  font-weight: weight(bold);
  transition: all 0.3s ease;
}
.btn.btn--outline {
  background-color: transparent;
  color: var(--text-color);
  border: 3px solid var(--text-color);
}

@media (max-width: 954px) {
  .hero {
    position: relative;
    overflow: hidden;
  }
  .hero_text {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 0 20px;
    box-sizing: border-box;
  }
}
@media (max-width: 954px) {
  .hero_text {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 0 20px;
    box-sizing: border-box;
  }
}
/* Mobile styles */
@media (max-width: 768px) {
  .hero {
    position: relative;
    overflow: hidden;
  }
  .hero_illustration {
    position: static;
    transform: none;
    margin-top: -40px;
    margin-bottom: 20px;
    width: 389px; /* versione mobile */
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero_illustration img {
    width: 100%;
    height: auto;
  }
  .hero_cta {
    flex-direction: column;
    gap: 20px;
  }
  .hero_tagline {
    margin: 0 0 24px;
  }
  .hero_text {
    gap: 30px;
  }
}
@media (max-width: 768px) {
  .hero_text {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    padding: 0 16px;
    box-sizing: border-box;
    gap: 24px;
  }
}
/*about*/
.container-about__grid {
  margin: 0 auto;
  position: relative;
  display: grid;
  width: fit-content;
  max-width: 100%;
  grid-template-columns: flex; /* oppure flex se preferivi */
  align-items: center;
}

.about {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}

.container-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: fit-content;
  max-width: 1200px;
  margin: 0 auto;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about__text h2 {
  margin-bottom: 40px;
}

.about {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto;
  max-width: 100%;
}

.container-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: fit-content;
  max-width: 100%;
  max-width: 1280px;
  margin: auto;
  padding-inline: clamp(16px, 5vw, 64px);
  margin: 0 auto;
  width: 100%; /* Aggiungi padding per evitare che il contenuto tocchi i bordi */
}

.about__story, .pixels {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about__story {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: fit-content;
  padding-right: clamp(0px, 1vw, 115px);
}

@media (max-width: 954px) {
  .about {
    position: relative;
    overflow: hidden;
  }
  .about__text {
    width: fit-content;
  }
}
/* Mobile styles */
@media (max-width: 768px) {
  .about {
    position: relative;
    overflow: hidden;
  }
  .about_text {
    gap: 30px;
  }
}
/* Titolo della sezione */
.pixels_title {
  margin-bottom: 20px;
  text-align: center;
  background-color: var(--primary-color);
  text-align: center;
  border: 2px solid #ffd1e3;
  box-shadow: 2px 2px 0 var(--accent-color), 4px 4px 0px var(--second-accent-color);
  padding: 20px 14px;
}

/* Layout per gli elementi dentro il box Pixels of Me */
.pixels_list {
  display: grid;
  list-style: none;
  grid-template-columns: repeat(2, clamp(120px, 20vw, 160px));
  gap: clamp(12px, 2vw, 24px);
  justify-content: center;
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.pixels_item {
  width: 100%;
  max-width: clamp(132px, 20vw, 141px);
  aspect-ratio: 1/1;
  margin: 0 auto;
  border: 2px solid #ffd1e3;
  background-color: transparent;
  text-align: center;
  padding: 14px;
  position: relative;
  box-shadow: 2px 2px 0 var(--accent-color), 4px 4px 0px var(--second-accent-color);
  transition: transform 0.2s ease-out;
  transform-style: preserve-3d;
  will-change: transform;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.pixels_item img {
  width: 80px;
  height: 80px;
  display: block;
  margin: auto;
  transition: transform 0.3s ease;
}
.pixels_item:hover img, .pixels_item:focus-within img {
  transform: scale(0.625);
}
.pixels_item:hover, .pixels_item:focus-within {
  transform: translateY(-5px);
}
.pixels_item span.hidden-text {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  width: 100%;
  margin-top: 0;
  font-size: 14px;
  color: var(--text-color);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  max-height: none;
  overflow: visible;
}
.pixels_item:hover span.hidden-text, .pixels_item:focus span.hidden-text, .pixels_item:focus-within span.hidden-text {
  opacity: 1;
  pointer-events: auto;
}

/* Responsività per dispositivi mobili */
@media (max-width: 768px) {
  .container-about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pixels_item {
    margin-top: 20px;
  }
}
@media (max-width: 500px) {
  .pixels_list {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
/* Sezione tools */
.tools {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
}

.container {
  width: 100%;
  margin: 0 auto;
}

/* Titolo sezione */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 40px;
  text-align: left; /* ← cambia da center a left */
}

/* Lista strumenti */
.tools_list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-items: center; /* le icone si centrano nella cella */
}

/* Singoli elementi */
.tools_list li {
  width: 100%;
  max-width: clamp(132px, 20vw, 141px);
  aspect-ratio: 1/1;
  text-align: center;
  padding: 14px;
  position: relative;
  transition: transform 0.3s ease;
}

.tools_list li img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: auto;
  display: block;
  transition: all 0.3s ease;
}

.tools_list li:hover,
.tools_list li:focus-within {
  transform: translateY(5px);
}

.tools_list li:hover img,
.tools_list li:focus-within img {
  width: 90px;
  height: 90px;
}

/* Accessibilità */
.tools_list li .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .tools_list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .tools_list {
    grid-template-columns: 1fr;
  }
  .section-title {
    text-align: center;
  }
}
/* Portfolio Section */
.portfolio {
  margin: 0 auto;
  max-width: 100%;
}

/* Container */
.container {
  padding-inline: clamp(16px, 5vw, 64px);
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 40px;
  text-align: left;
}

/* Card Grid - desktop layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 32px);
  margin: 0 auto;
}
@media (max-width: 1028px) {
  .card-grid {
    display: none;
  }
}

/* Portfolio Carousel - tablet and mobile layout */
.portfolio-carousel {
  display: none;
}
@media (max-width: 1028px) {
  .portfolio-carousel {
    display: block;
  }
}

/* Cards */
.card {
  width: 100%;
  max-width: 594px;
  height: auto;
  aspect-ratio: 594/564;
  background-color: var(--second-accent-color);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--primary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:nth-child(even) {
  background-color: var(--accent-color);
}

.card__thumb {
  width: 100%;
}
.card__thumb img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.carousel-link {
  text-decoration: none;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 20px 20px 20px;
  margin-top: 20px;
  color: var(--primary-color);
}
.card__body .card__title {
  font-size: 26px;
  font-weight: bold;
  color: var(--primary-color);
}
.card__body .card__subtitle {
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 4px;
}
.card__body .card__desc {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
}

/* Desktop hover effects */
@media (min-width: 1029px) {
  .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 8px 8px 0 var(--third-accent-color);
  }
}
/* Mobile and tablet carousel styles */
@media (max-width: 1028px) {
  .card {
    width: 295px;
    height: 340px;
    margin: 0 auto;
    aspect-ratio: 295/340;
  }
  .carousel-indicators {
    position: static;
    margin-top: 20px;
    margin-bottom: 0;
  }
  .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-color);
    border: 2px solid var(--text-color);
    margin: 0 6px;
  }
  .carousel-indicators .active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
  }
  .carousel-control-prev,
  .carousel-control-next {
    width: 5%;
    color: var(--text-color);
  }
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
  }
}

/*# sourceMappingURL=home.css.map */
