@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap");
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (max-width: 768px) {
  h1 {
    font-family: "Qurova DEMO", sans-serif;
  }
}
@media (max-width: 768px) and (min-width: 320px) {
  .home {
    padding-top: 120px;
    background-position: top center;
  }
  body > main > section.home > div > p.h3 {
    color: #fff;
  }
  body > main > section.home > div > p.h3 > span {
    color: #222;
  }
  body > main > section.home > div > h4 > span {
    color: #222;
  }
  body > main > section.home > div > p {
    font-weight: bold;
    font-size: 1.4rem;
    color: #fff;
    -webkit-text-stroke: 1px #222;
    -moz-text-stroke: 1px #222;
  }
}
@media (max-width: 768px) and (min-width: 320px) and (max-width: 768px) {
  .tools {
    padding: 3rem 0;
  }
  .tools .tools-title {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    padding: 0 32px;
    padding-bottom: 48px;
  }
  .tools .tools-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 32px;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }
  .tools .tools-row::-webkit-scrollbar {
    display: none;
  }
  .tools .tools-col {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
  }
  .tools .tools-col img {
    height: 55px;
    margin-bottom: 0.4rem;
  }
  .tools .tools-col h6 {
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) and (min-width: 320px) and (max-width: 768px) and (min-width: 320px) {
  .portfolio-item {
    width: 240px;
  }
}
@media (max-width: 768px) and (min-width: 320px) and (max-width: 480px) and (min-width: 320px) {
  .portfolio-item {
    width: 180px;
  }
}
@media (max-width: 768px) and (min-width: 320px) and (max-width: 768px) and (min-width: 320px) {
  .portfolio-projects .portfolio-projects-title {
    font-size: 3rem;
    margin: 1rem;
    margin-bottom: 2rem;
    text-align: left;
  }
  .portfolio-projects .project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    flex-wrap: wrap;
    padding: 1rem 0;
    margin: 1.2rem;
  }
  .portfolio-projects .project-info {
    flex: 1;
    margin-bottom: 1;
  }
  .portfolio-projects .project-cta {
    flex-shrink: 0;
    margin-top: 0;
  }
}
@media (max-width: 768px) and (min-width: 320px) and (max-width: 992px) and (min-width: 320px) {
  .portfolio-projects .projects-image {
    display: none;
  }
  .portfolio-projects .projects-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .portfolio-projects .projects-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  .portfolio-projects .project-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .portfolio-projects .project-cta {
    justify-self: start;
    margin-top: 6px;
    margin-right: 1.5rem;
  }
  .portfolio-projects .page-title {
    font-size: 3rem;
    margin-left: 20px;
  }
}
@media (max-width: 768px) and (min-width: 320px) and (min-width: 992px) {
  .navbar-toggler {
    display: none;
  }
}
@media (max-width: 768px) and (min-width: 320px) and (max-width: 768px) and (min-width: 320px) {
  .footer-container {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    margin: -0.5rem;
  }
  .footer-container .footer-left,
  .footer-container .footer-center {
    align-items: flex-start;
    text-align: left;
    transform: none;
    margin: 32px;
  }
  .footer-container .footer-right {
    align-items: flex-end;
    text-align: right;
    transform: none;
    margin: 32px;
  }
  .footer-container .footer-links {
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
  }
  .footer-container .footer-social {
    justify-content: flex-end;
    width: 100%;
  }
}
@media (max-width: 768px) and (min-width: 320px) and (max-width: 768px) and (min-width: 320px) {
  .contact-form-section {
    padding: 3rem 1.5rem;
    margin-top: 0;
    justify-content: center;
  }
  .contact-form {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }
  .contact-form .btn-cta {
    width: 100%;
    text-align: center;
    align-self: center;
  }
  .contact-section .contact-right {
    width: 100%;
    justify-content: flex-end;
    margin-top: 2rem;
    text-align: right;
  }
  .contact-section .contact-right .btn-cta {
    width: auto;
  }
  .menu-nav-container + main .contact-form-section {
    margin-top: -100px;
    padding-top: 100px;
  }
  .contact-left {
    flex: 1;
    max-width: none;
    text-align: left;
    margin-bottom: 0.5rem;
  }
  .contact-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    margin: -0.5rem;
  }
  .contact-description {
    font-size: 1rem;
    margin-bottom: 0;
    line-height: 1.4;
    margin: -0.5rem;
  }
  .contact-right {
    flex-shrink: 0;
    margin-top: 0;
    margin: 0.5rem;
  }
}
@media (max-width: 768px) and (min-width: 320px) and (max-width: 768px) and (min-width: 320px) {
  .about .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem;
  }
  .about .row p {
    text-align: center;
  }
  .about .row .about-img {
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 768px) and (min-width: 320px) and (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    padding: 1.8rem;
    row-gap: 1.5rem;
  }
  .hero-text h1 {
    font-family: "Qurova DEMO", SAN;
    font-size: 2.1rem;
    padding-left: 0;
  }
  .hero-text p {
    text-align: center;
  }
  .hero-image {
    grid-column: 1;
    grid-row: auto;
    margin: 0 auto 30px auto;
    order: 2;
    display: block;
  }
  .hero-text {
    grid-column: 1;
  }
  .hero-buttons {
    grid-column: 1;
    padding: 0.3rem;
    justify-content: center;
  }
}
@media (max-width: 768px) {
  .interests-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }
  .interests-image img {
    width: 140px;
  }
  .interest {
    font-size: 22px;
  }
}
/* Container navbar fissa */
.menu-nav-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.796);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  /* Container interno per logo e link */
}
.menu-nav-container .container {
  padding: 8px 16px;
  margin: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 32px;
  padding-right: 32px;
  width: 100%;
  max-width: none;
}

/* Navbar principale */
.navbar {
  padding: 0;
}

/* Logo */
.navbar-brand img {
  height: 50px;
  width: auto;
  display: block;
}

/* Link menu */
.nav-link {
  color: #222;
  transition: color 0.3s ease;
}
.nav-link:hover {
  color: #781D1D;
}

/* Navbar-nav */
.navbar-nav {
  margin-left: 2rem;
  display: flex;
  gap: 1.5rem;
}

/* Toggler */
.navbar-toggler {
  margin-left: auto;
  color: #781D1D;
}

/* Mobile */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none;
  }
}
/* =========================
   FOOTER
========================= */
.footer {
  width: 100%;
  background-color: #781D1D;
  color: #fff;
  padding: 60px 0;
  font-family: "Inter", sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  gap: 2rem;
}

/* =========================
   COLONNA SINISTRA
========================= */
.footer-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  color: #dcd6ca;
}

.footer-name {
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  padding: 0;
}

.footer-left .footer-bottom {
  font-size: 0.8rem;
  text-align: left;
  margin: 0;
  padding: 0;
}

/* =========================
   COLONNA CENTRALE
========================= */
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}

.footer-center h5 {
  margin-top: 0;
  font-size: 0.9rem;
  color: #fff;
  text-align: left;
  padding-top: 12px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* =========================
   COLONNA DESTRA
========================= */
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.contact-email {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-email:hover {
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.footer-social-icon:hover {
  transform: translateY(-6px);
}

.footer-social-icon img {
  display: block;
  height: 38px;
}

/* =========================
   MEDIA QUERY MOBILE
========================= */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    margin: -0.5rem;
  }
  .footer-left,
  .footer-center {
    align-items: flex-start;
    text-align: left;
    transform: none; /* reset mobile */
    margin: 32px;
  }
  .footer-right {
    align-items: flex-end;
    text-align: right;
    transform: none; /* reset mobile */
    margin: 32px;
  }
  .footer-links {
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
  }
  .footer-social {
    justify-content: flex-end;
    width: 100%;
  }
}
.about {
  background-color: #222;
  padding-top: 0;
  padding-bottom: 120px;
}
.about .about-title-wrapper {
  width: 100%;
  overflow: hidden;
}
.about .about-title {
  color: #fff;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
.about .row {
  margin-top: 2rem;
}
.about p {
  color: #fff;
}
.about .about-img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
}
.about .about-cta {
  background-color: white;
  color: #781D1D;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.about .about-cta:hover {
  background-color: #4B7F52;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .about .row {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem;
  }
  .about .row p {
    text-align: center;
  }
  .about .row .about-img {
    margin-bottom: 1.5rem;
  }
}
.portfolio-projects {
  background-color: white;
  color: black;
}
.portfolio-projects .portfolio-projects-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
}
.portfolio-projects {
  /* Singola fascia progetto */
}
.portfolio-projects .project-row {
  padding: 1.75rem 0;
  border-bottom: 1px solid #e5e5e5;
}
.portfolio-projects .project-row:last-of-type {
  border-bottom: none;
}
.portfolio-projects .project-info {
  display: flex;
  flex-direction: column;
}
.portfolio-projects .project-title {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}
.portfolio-projects .project-meta {
  font-size: 16px;
  margin: 0;
  color: #000;
  margin-top: 0.25rem;
  background: #EADAA2;
  padding: 1px 6px;
  border-radius: 8px;
  width: -moz-fit-content;
  width: fit-content;
}
.portfolio-projects {
  /* CTA progetto + CTA finale condividono lo stile */
}
.portfolio-projects .project-cta,
.portfolio-projects .btn-cta {
  background-color: #781D1D;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}
.portfolio-projects .project-cta:hover,
.portfolio-projects .btn-cta:hover {
  background-color: #4B7F52;
  color: #fff;
  text-decoration: none;
  transform: none;
}
.portfolio-projects {
  /* CTA finale più grande */
}
.portfolio-projects .btn-cta.btn-lg {
  padding: 1rem 3rem;
  font-size: 1.25rem;
}

.portfolio-scroll {
  overflow: hidden;
}

.portfolio-scroll-wrapper {
  display: flex;
  gap: 0;
  will-change: transform;
  width: -moz-max-content;
  width: max-content;
}

.mb-3 {
  margin-bottom: 2rem !important;
}

.portfolio-item {
  width: 320px;
  aspect-ratio: 3/2;
  flex-shrink: 0;
  overflow: hidden;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.portfolio-item {
  flex: 0 0 auto;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3/2;
  overflow: hidden;
}

/* Tablet */
@media (max-width: 768px) {
  .portfolio-item {
    width: 240px;
  }
}
/* Mobile */
@media (max-width: 480px) {
  .portfolio-item {
    width: 180px;
  }
}
@media (max-width: 768px) {
  /* Titolo sezione */
  .portfolio-projects .portfolio-projects-title {
    font-size: 3rem;
    text-align: left;
    margin: 16px;
  }
  /* Righe progetto */
  .portfolio-projects .project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    flex-wrap: wrap;
    padding: 1rem 0;
    margin: 1.2rem;
  }
  .portfolio-projects .project-title {
    font-size: 1.7rem;
    font-weight: 400;
    margin: 0;
  }
}
.portfolio-projects .project-info {
  flex: 1;
  margin-bottom: 1;
}

.portfolio-projects .project-cta {
  flex-shrink: 0;
  margin-top: 1rem;
  margin-right: 0;
}

@media (max-width: 768px) {
  .portfolio-projects .text-center {
    text-align: left !important;
    padding: 0 16px;
  }
  .portfolio-projects .btn-cta {
    display: inline-block;
  }
}
@media (max-width: 768px) {
  .project-row {
    flex-direction: column;
    align-items: flex-start !important;
  }
  .project-cta {
    align-self: flex-start;
    margin-top: 0.5rem;
  }
}
/* ==========================
   SEZIONE TOOLS - CAROSELLO
========================== */
.tools ul.tools-row {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tools {
  background-color: #fff;
  padding: 2rem 0;
  /* Titolo */
}
.tools .tools-title {
  font-weight: 700;
  margin: 0 0 0 0;
  font-size: 3rem;
  text-align: right; /* titolo a destra desktop */
}
.tools {
  /* Wrapper icone */
}
.tools .tools-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap; /* su desktop va a capo se necessario */
  justify-content: center;
  align-items: center;
}
.tools {
  /* Colonna icona */
}
.tools .tools-col {
  flex: 0 0 auto;
  text-align: center;
}
.tools .tools-col img {
  background-color: #fff;
  padding: 10px;
  border-radius: 16px;
  height: 60px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}
.tools .tools-col h6 {
  margin-top: 0.25rem;
  margin-bottom: 0;
  font-weight: 500;
  transition: transform 0.3s ease; /* transizione per hover testo */
}
.tools .tools-col:hover img {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.tools .tools-col:hover h6 {
  transform: scale(1.05); /* ingrandimento testo */
}

/* =========================
   CONTACT SECTION
========================= */
.contact-section {
  background-color: #fff;
  padding: 3rem 2rem;
}

.contact-section .container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* centra verticalmente la CTA */
  gap: 0;
  flex-wrap: wrap;
}

.contact-left {
  max-width: 600px;
}

.contact-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 3rem;
  padding-left: 0;
  line-height: 1.2;
}

.contact-description {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-right {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

/* =========================
   CONTACT CTA
========================= */
.contact-section .btn-cta {
  background-color: #781D1D;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}
.contact-section .btn-cta:hover {
  background-color: #4B7F52;
  color: #fff;
  text-decoration: none;
}

.contact-section .btn-cta.btn-lg {
  padding: 1rem 3rem;
  font-size: 1.25rem;
}

@media (max-width: 480px) {
  #contact-me > div > div.contact-left > p {
    margin-bottom: 0;
    padding-left: 16px;
  }
  #contact-me > div > div.contact-left > h2 {
    padding-left: 16px;
  }
}
#contact-me > div {
  padding-left: 0;
  padding-right: 16px;
}

/* =========================
   CONTACT FORM SECTION (MODIFICATA)
========================= */
.contact-form-section {
  background-color: #fff;
  display: flex;
  justify-content: center; /* centra orizzontalmente */
  align-items: center; /* centra verticalmente */
  min-height: 100vh;
  margin-top: -30px; /* altezza completa viewport */
  padding: 3rem 2rem;
  box-sizing: border-box;
  text-align: left; /* centra testo titolo/descrizione */
}

.contact-form {
  width: 100%;
  max-width: 500px; /* dimensione massima */
  margin: 0 auto; /* garantisce centraggio orizzontale */
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #222;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Titolo e descrizione rimangono uguali */
.contact-form-section .contact-title {
  color: #781D1D;
  font-size: 4rem;
  font-weight: 700;
  padding-top: 3rem;
  text-align: center;
}

.contact-form-section .contact-description {
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "DM Sans", sans-serif;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #781D1D;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* CTA BUTTON */
.contact-form .btn-cta {
  background-color: #fff;
  color: #781D1D;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-transform: uppercase;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.contact-form .btn-cta:hover {
  background-color: #4B7F52;
  color: #fff;
}

/* =========================
   CONTAINER GLOBALE ABOUT-ME
========================= */
.about-me .container,
.hero-container,
.interests .container,
.education .container,
.tools .container {
  max-width: 2500px; /* limite massimo */
  width: 100%; /* occupa tutta la larghezza disponibile */
  margin: 0 auto; /* centra orizzontalmente */
  padding: 0 32px; /* padding laterale coerente */
  box-sizing: border-box; /* evita che il padding espanda il container */
}

.hero {
  background-color: #fff;
  padding: 80px 0 60px 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 420px 1fr;
  grid-template-rows: auto auto;
  -moz-column-gap: 80px;
       column-gap: 80px;
  row-gap: 30px;
  align-items: start;
}

.hero-text {
  grid-column: 2;
  grid-row: 1;
  max-width: 620px;
  margin-left: auto; /* spinge tutto a destra */
  text-align: right; /* allinea testo a destra */
}

.hero-text h1 {
  font-family: "Qurova Demo", sans-serif;
  font-size: 56px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #222;
  margin-top: 2rem;
  text-align: left;
  padding-left: 3.4rem;
}

#dynamic-text {
  transition: opacity 0.5s ease-in-out;
}

.highlight {
  color: #7B1E1E;
  font-weight: 500;
}

.hero-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.hero-image {
  grid-column: 1;
  grid-row: 1/span 2;
}

.hero-image img {
  width: 100%;
  max-width: 340px;
  height: auto;
  border-radius: 6px;
  -o-object-fit: cover;
     object-fit: cover;
  margin-top: 3rem;
}

.color-bar {
  grid-column: 2;
  display: flex;
  height: 12px;
  margin-top: 30px;
  margin-bottom: 60px;
  width: 100%;
  max-width: 520px;
  margin-left: auto; /* allinea barra a destra */
}

.color {
  flex: 1;
}

.color-1 {
  background: #4B7F52;
}

.color-2 {
  background: #EADAA2;
}

.color-3 {
  background: #781D1D;
}

.color-4 {
  background: #222;
}

.hero-buttons {
  grid-column: 2;
  display: flex;
  gap: 16px;
  justify-content: flex-end; /* allinea CTA a destra */
}

.hero-buttons .btn {
  background-color: #781D1D;
  color: white;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  border: none;
  transition: all 0.2s ease;
}

.hero-buttons .btn:hover {
  background-color: #4B7F52;
  transform: translateY(-1px);
}

.interests,
.education {
  background: #fff;
  padding: 60px 0;
  border-top: 1px solid #bdbdbd;
}

.interests h2,
.education h2 {
  font-size: 3rem;
  color: #111;
}

.interests-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.interests-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.interest {
  font-size: 32px;
  font-weight: 600;
  padding: 40px;
  margin: 24px;
  cursor: pointer;
  transition: opacity 0.3s;
  margin: 0;
}

.interest:hover {
  color: #781D1D;
}

/* Contenitore desktop immagine */
.interests-image {
  width: 400px; /* puoi adattare la larghezza */
  height: 500px; /* altezza fissa */
  overflow: hidden;
}

.interests-image img {
  width: 100%;
  height: 100%;
  -o-object-fit: fill;
     object-fit: fill;
  border-radius: 8px;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}

@media (max-width: 992px) {
  .interests-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .interests-list {
    width: 100%;
    gap: 12px;
  }
  .interest {
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row; /* layout orizzontale testo + immagine */
    align-items: flex-start;
    justify-content: space-between; /* immagine a destra */
  }
  /* Nascondi immagine grande desktop */
  .interests-image {
    display: none;
  }
  /* Piccola immagine a destra dello span */
  .interest img {
    display: block;
    width: 70px;
    height: 70px;
    margin-left: 16px;
    border-radius: 6px;
    -o-object-fit: fill;
       object-fit: fill;
    transition: opacity 0.3s ease;
  }
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.card {
  background-color: #fff;
  border-radius: 10px;
  border: none;
}

.card h4 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.card .year {
  font-size: 14px;
  margin-bottom: 12px;
  display: block;
}

.card p,
.card li {
  font-size: 14px;
  line-height: 1.6;
}

.card ul {
  padding-left: 18px;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    padding: 1.8rem;
    row-gap: 1.5rem;
  }
  .hero-text h1 {
    font-family: "Qurova DEMO", sans-serif;
    font-size: 2rem;
    padding-left: 0;
  }
  .hero-text p {
    text-align: center;
  }
  .hero-image {
    grid-column: 1;
    grid-row: auto;
    margin: 0 auto 30px auto;
    order: 2;
    display: block;
  }
  .hero-text {
    grid-column: 1;
  }
  .hero-buttons {
    grid-column: 1;
    padding: 0.3rem;
    justify-content: center;
  }
}
/* ==========================
   PROJECTS PAGE
   ========================== */
/* =========================
   CONTAINER GLOBALE PORTFOLIO
========================= */
.projects-hero .container,
.projects > .container,
.projects-layout {
  max-width: 2500px; /* limite massimo uniforme */
  width: 100%; /* occupa tutta la larghezza disponibile */
  margin: 0 auto; /* centra orizzontalmente */
  padding: 0 32px; /* padding laterale coerente */
  box-sizing: border-box; /* padding non aumenta la larghezza */
  /* Allinea il titolo My Projects a sinistra */
}
.projects-hero .container .projects-hero .page-title,
.projects > .container .projects-hero .page-title,
.projects-layout .projects-hero .page-title {
  text-align: left;
  margin-left: 0; /* elimina eventuali margini laterali */
}
.projects-hero .container .project.scroll,
.projects > .container .project.scroll,
.projects-layout .project.scroll {
  padding-right: 0;
}

body > main > section.projects {
  padding-right: 0;
}

.projects-hero {
  background-color: #fff;
  padding: 60px 0 30px 0;
}

.page-title {
  font-size: 4rem;
  font-weight: 700;
  color: #781D1D;
  margin-left: 0;
  padding-top: 60px;
}

/* ==========================
   LAYOUT
   ========================== */
.projects {
  width: 100%;
  margin: 0;
  padding: 40px 32px;
  background-color: #fff;
}

/* Sovrascrive il container solo dentro .projects */
.projects > .container {
  max-width: none; /* rimuove il limite di 1320px */
  width: 100%; /* occupa tutta la larghezza disponibile */
  padding: 0 32px; /* mantiene il padding interno */
}

.projects-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(40px, 5vw, 120px);
}

/* ==========================
   LEFT IMAGE
   ========================== */
.projects-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 210px;
  height: 140px;
}

/* Placeholder e immagine stessa dimensione */
.projects-placeholder,
.preview-image {
  width: 210px;
  height: 140px;
}

/* Placeholder */
.projects-placeholder {
  background: linear-gradient(120deg, #781D1D, #501212, #781D1D);
  background-size: 200% 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: gradientMove 6s ease infinite;
}

.projects-placeholder p {
  color: white;
  font-weight: 400;
  text-align: center;
  max-width: 300px;
}

/* Immagine */
.preview-image {
  position: absolute;
  -o-object-fit: cover;
     object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.preview-image.active {
  opacity: 1;
}

/* animazione gradient */
@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
.projects-image img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 210px;
  height: 140px;
  -o-object-fit: fill;
     object-fit: fill;
  background-color: #fff;
  transition: opacity 0.2s ease, opacity 0.15s ease;
}

/* ==========================
   RIGHT SCROLL AREA
   ========================== */
@media (min-width: 1200px) {
  .projects-scroll {
    max-height: 60vh;
  }
}
/* ==========================
   SCROLLBAR
   ========================== */
.projects-scroll::-webkit-scrollbar {
  width: 8px;
}

.projects-scroll::-webkit-scrollbar-track {
  background: #fff;
}

.projects-scroll::-webkit-scrollbar-thumb {
  background: #D9D9D9;
  border-radius: 4px;
}

.projects-scroll::-webkit-scrollbar-thumb:hover {
  background: #781D1D;
}

/* ==========================
   PROJECT ROW
   ========================== */
/* GRIGLIA A 3 COLONNE REALI */
.project-row {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #222;
  -moz-column-gap: 20px;
       column-gap: 20px;
  transition: transform 0.3s ease;
}

.project-row:hover {
  transform: translateX(15px); /* regola la distanza a piacere */
}

.project-info {
  display: contents;
}

.project-row:first-child {
  border-top: 1px solid #222;
}

/* ==========================
   TEXT
   ========================== */
.project-header {
  display: grid;
  grid-template-columns: 1fr auto; /* titolo | meta */
  align-items: center; /* centraggio verticale */
  -moz-column-gap: 20px;
       column-gap: 20px; /* spazio tra titolo e meta */
}

.project-info h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0;
  padding-left: 16px;
}

.project-meta {
  font-size: 16px;
  margin-right: 16px;
  color: #000;
  background-color: #EADAA2;
  padding: 1px 6px;
  border-radius: 8px;
}

/* ==========================
   CTA
   ========================== */
.project-cta {
  grid-column: 3;
  justify-self: end;
  padding-left: 16px;
}

.project-cta .btn {
  background-color: #781D1D;
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.project-cta .btn:hover {
  background-color: #4B7F52;
  color: #fff;
  transform: translateY(-1px);
}

/* ==========================
   HOVER ROW (effetto portfolio professionale)
   ========================== */
.project-row:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

/* ==========================
   RESPONSIVE
   ========================== */
@media (max-width: 992px) {
  /* Nascondi colonna immagine */
  .projects-image {
    display: none;
  }
  /* Layout lista progetti full-width */
  .projects-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Scroll verticale normale (senza altezza fissa) */
  .projects-scroll {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
  /* Progetti a tutta larghezza */
  .project-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .project-cta {
    justify-self: start;
    margin-top: 6px;
    margin-right: 1.5rem;
  }
  .page-title {
    font-size: 4rem;
    margin-left: 20px;
  }
}
/* ==========================
   MOBILE PROJECT PREVIEW
   ========================== */
.project-preview-mobile {
  display: none;
}

.project-preview-mobile img {
  margin-top: 16px;
  margin-left: 16px;
  padding-left: 0;
  width: 70px;
  height: 70px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 6px;
}

/* SOLO MOBILE */
@media (max-width: 992px) {
  .project-preview-mobile {
    display: block;
    margin-bottom: 10px;
  }
  .project-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .project-header {
    width: 100%;
  }
}
body > main > section.projects-hero > div > h1 {
  padding-bottom: 0;
}

body > main > section.projects > div > div.projects-scroll {
  padding-left: 0;
}

body > main > section.projects {
  padding-top: 0;
  padding-bottom: 32px;
  padding-left: 0;
  margin-left: 0;
}

@media (min-width: 1200px) {
  html, body {
    height: 100%;
    margin: 0;
  }
  body > main {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* tutta l’altezza del viewport */
  }
  body > main > section.projects {
    flex: 1; /* occupa tutto lo spazio rimanente tra hero e footer */
  }
}
.project-page {
  max-width: 2550px;
  margin: 0 auto;
  padding: 2rem;
}
.project-page h2 {
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  text-align: start;
  margin-bottom: 3rem;
  color: #781D1D;
}
.project-page .project-title {
  font-family: "Qurova DEMO", sans-serif;
  font-size: 4rem;
  color: #781D1D;
  padding-top: 90px;
  text-align: center;
  margin-bottom: 3rem;
}
.project-page .project-section-title {
  margin-bottom: 0;
}
.project-page .project-text-blocks {
  display: flex;
  justify-content: space-between;
  gap: 220px;
  margin-bottom: 0;
}
.project-page .project-text-blocks .text-left,
.project-page .project-text-blocks .text-right {
  flex: 1;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.project-page .project-text-blocks .text-left p,
.project-page .project-text-blocks .text-right p {
  max-width: 420px;
  margin: 0;
}
@media (max-width: 768px) {
  .project-page .project-text-blocks {
    flex-direction: column;
    gap: 1.5rem;
  }
}
.project-page .project-images-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.project-page .project-images-grid .project-image img {
  width: 100%;
  height: auto;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
  display: block;
  background: white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}
.project-page .project-images-grid .project-image img:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
@media (max-width: 768px) {
  .project-page .project-images-grid {
    grid-template-columns: 1fr;
  }
}
.project-page .project-cta-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.project-page .project-cta-wrapper .project-cta-primary {
  background-color: #781D1D;
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.project-page .project-cta-wrapper .project-cta-primary:hover {
  background-color: #4B7F52;
}
.project-page .project-cta-wrapper .project-cta-secondary {
  background-color: #fff;
  color: #781D1D;
  border: 2px solid #781D1D;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.project-page .project-cta-wrapper .project-cta-secondary:hover {
  background-color: #781D1D;
  color: #fff;
}

body {
  font-family: "Inter Variable", sans-serif;
  color: #222;
  margin: 0;
  padding: 0;
}

/* PAGE LOAD FADE */
body {
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.page-loaded {
  opacity: 1;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.6s ease;
}

.hero-content > *.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* PAGE TRANSITION */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.page-loaded {
  opacity: 1;
}

body.page-leave {
  opacity: 0;
}

h1 {
  font-family: "Qurova DEMO", sans-serif;
  color: #222;
  margin: 0;
  padding: 16px 0;
}

h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter Variable", sans-serif;
  color: #222;
  margin: 0;
  padding: 16px 0;
}

h1.mb-3 {
  color: #781D1D;
}

h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: 39px;
  font-weight: 600;
  line-height: 1.3;
}

h4 {
  font-size: 31px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  padding-left: 0;
}

body > main > section.home > div > p.h3 {
  font-size: 31px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  align-items: center;
  padding-left: 0;
}
body > main > section.home > div > p.h3::before {
  content: "";
  width: 100px;
  height: 2px;
  background-color: #222;
  margin: 0 12px 0 0;
}

p {
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  padding: 16px 0;
}

/* =========================
   CONTAINER GLOBALE HOMEPAGE
========================= */
.home .container,
.about .container,
.portfolio-projects .container,
.portfolio-scroll .container,
.tools .container,
.contact-section .container {
  max-width: 2500px; /* massimo container */
  width: 100%; /* occupa tutta la larghezza disponibile */
  margin: 0 auto; /* centra orizzontalmente */
  padding: 0 32px; /* padding laterale coerente */
  box-sizing: border-box; /* assicura che padding non espanda il container */
}

.home {
  position: relative;
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
  background-image: url(../../assets/img/Ale_landing_page.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.048);
  z-index: 1;
}
.home {
  /* forza la stessa colonna del container */
}
.home .hero-content {
  position: relative;
  z-index: 2;
  max-width: 2500px;
  width: 100%;
  margin: 0;
  padding: 0 32px;
}

#backToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 48px; /* dimensione cerchio */
  height: 48px;
  border-radius: 50%;
  background-color: #781D1D;
  color: #fff;
  border: none;
  font-size: 1.2rem; /* freccia più proporzionata */
  font-weight: 700;
  line-height: 1; /* riduce l’asta verticale */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* classe visibile */
#backToTop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}