* { padding: 0; margin: 0; box-sizing: border-box; }

@font-face { font-family: 'maisonneue_bold';  src: url(font/Maison_Neue_Bold.ttf)  format('truetype'); }
@font-face { font-family: 'maisonneue_book';  src: url(font/Maison_Neue_Book.ttf)  format('truetype'); }
@font-face { font-family: 'maisonneue_light'; src: url(font/Maison_Neue_Light.ttf) format('truetype'); }
@font-face { font-family: 'maisonneue_mono';  src: url(font/Maison_Neue_Mono.ttf)  format('truetype'); }

body, html { min-height: 100%; }
html { scroll-behavior: smooth; overflow-x: clip; }

/* ======================== */
/* CURSORE — solo desktop   */
/* ======================== */
.cursore {
  display: none;
  width: 20px; height: 20px;
  border: 1px solid black; border-radius: 50%;
  position: fixed; pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, background 0.2s ease;
  transform: translate(-50%, -50%);
}

.cursore-testo {
  display: none;
  position: fixed; pointer-events: none;
  z-index: 9999; opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  animation: ruota 6s linear infinite;
}

.cursore-testo.visibile { opacity: 1; }
.cursore-testo text { font-family: 'maisonneue_mono'; font-size: 11px; fill: black; letter-spacing: 2px; }

@keyframes ruota {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ======================== */
/* NAVBAR MOBILE            */
/* ======================== */
.navbar { display: none; }

.logo-menu-mobile {
  position: fixed; top: -15px; left: 5px;
  width: 120px; height: 120px;
  z-index: 100; mix-blend-mode: multiply; background: transparent;
}

#toggle { display: none; }

.burger-label {
  position: fixed; top: 20px; right: 20px;
  width: 30px; height: 25px; cursor: pointer; z-index: 500;
}

.burger-label span {
  display: block; height: 4px; width: 30px; background: #000;
  margin: 5px 0; border-radius: 2px;
  transition: all 0.4s ease; transform-origin: center;
}

.menu-overlay {
  position: fixed; top: -100%; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  transition: top 0.4s ease; z-index: 400;
  display: flex; align-items: center; justify-content: center;
}

.link_pagina { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.menu-overlay a { color: #000; text-decoration: none; font-family: 'maisonneue_bold'; }
.menu-overlay a h2 { color: inherit; font-family: inherit; font-size: 2rem; text-align: center; }

#toggle:checked ~ .menu-overlay { top: 0; }
#toggle:checked ~ .burger-label span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); background: #949494; }
#toggle:checked ~ .burger-label span:nth-child(2) { opacity: 0; }
#toggle:checked ~ .burger-label span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: #949494; }

/* ======================== */
/* HERO MOBILE              */
/* ======================== */
.hero {
  display: flex; flex-direction: column;
  width: 100vw; min-height: 100vh;
  justify-content: space-between;
  padding: 80px 6% 6% 6%;
  box-sizing: border-box;
}

.introtext {
  display: flex; flex-direction: column;
  justify-content: flex-start; align-items: flex-start;
  text-align: left; font-family: 'maisonneue_bold';
}

.introtext h1 { font-size: 1.4rem; line-height: 1.4; font-weight: normal; }

.slogan {
  display: flex; flex-direction: column;
  justify-content: flex-end; align-items: flex-end;
  text-align: right; font-family: 'maisonneue_bold';
  padding-bottom: 1rem;
}

.slogan h1 { font-size: 1.2rem; line-height: 1.4; }

/* ======================== */
/* TAG MOBILE               */
/* ======================== */
.filtri { width: 100vw; padding: 4% 6%; box-sizing: border-box; }

.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }

.tag {
  border: 1px solid black; border-radius: 50px;
  padding: 6px 16px; background: white;
  cursor: pointer; font-size: 0.85rem;
  font-family: 'maisonneue_mono';
  letter-spacing: 0.03em; text-transform: lowercase;
  transition: background 0.2s, color 0.2s;
}

.tag:hover, .tag.attivo { background: black; color: white; }

/* ======================== */
/* LISTA PROGETTI MOBILE    */
/* ======================== */
.portfolio { width: 100vw; padding: 0 6%; box-sizing: border-box; z-index: 9; }

.project-list { list-style: none; padding: 0; margin: 0; }

.project-item {
  border-top: 1px solid black; cursor: pointer;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.project-item:last-child { border-bottom: 1px solid black; }
.project-item.visibile { opacity: 1; transform: translateY(0); }

.project-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 18px 0;
}

.project-name { font-size: 1.1rem; font-weight: bold; text-transform: uppercase; font-family: 'maisonneue_bold'; }
.project-category { font-size: 0.65rem; font-family: monospace; text-transform: lowercase; color: #555; }

.project-details { display: none; padding: 16px 0 24px 0; }
.project-item.aperto .project-details { display: block; }

.project-text {
  display: flex; flex-direction: column;
  gap: 16px; margin-bottom: 20px;
}

.project-text p { font-size: 0.85rem; line-height: 1.6; font-family: 'maisonneue_book'; }

.project-images {
  display: flex; gap: 12px;
  overflow-x: auto; padding-bottom: 8px;
  margin-left: -6%; margin-right: -6%;
  padding-left: 6%; padding-right: 6%;
  scrollbar-width: thin; cursor: grab;
}
.project-images video {                  /* ◄ AGGIUNGI QUESTO SELETTORE */
  height: 220px; 
  width: auto; 
  object-fit: cover; 
  flex-shrink: 0; 
}

.project-images:active { cursor: grabbing; }
.project-images img { height: 220px; width: auto; object-fit: cover; flex-shrink: 0; }

/* DIVIDER SCROLL  */

.divider-scroll {
  width: 100vw; overflow: hidden;
  background-color: #ffffff;   
  padding: 10px 0;
  position: relative; z-index: 20;
}

.divider-scroll-track {
  display: flex; white-space: nowrap;
  animation: scorri 14s linear infinite;
}

.divider-scroll-track span {
  font-family: 'maisonneue_bold';
  color: #000000;
  font-size: 1,2rem;
  padding-right: 30px;
  white-space: nowrap;   
  flex-shrink: 0;        
}


/* ======================== */
/* ABOUT MOBILE             */
/* ======================== */
.about {
  background-color: #CECFD1;
  width: 100vw; padding: 8% 6%;
  box-sizing: border-box;
  display: flex; flex-direction: column; gap: 30px;
}

.titoloabout h2 { font-family: 'maisonneue_bold'; font-size: 1.3rem; font-weight: normal; }

.about-columns { display: flex; flex-direction: column; gap: 30px; width: 100%; }

.about-left { width: 100%; display: flex; flex-direction: column; gap: 16px; }

.about-label { font-family: 'maisonneue_book'; font-size: 0.85rem; font-weight: normal; margin-bottom: 10px; }

/* griglia immagini mobile: 3 colonne, più basse */
.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(5, 80px);
  gap: 2px;
}

.about-img-grid img { width: 100%; height: 100%; object-fit: cover; }
.pos-left   { grid-column: 1; }
.pos-center { grid-column: 2; }
.pos-right  { grid-column: 3; }

.about-right {
  width: 100%; display: flex; flex-direction: column; gap: 16px;
  border-top: 1px solid black; padding-top: 24px;
}

/* griglia testi mobile: 1 colonna */
.about-grid { display: flex; flex-direction: column; gap: 24px; }

.about-block h4 { font-family: 'maisonneue_mono'; font-size: 0.85rem; font-weight: normal; margin-bottom: 8px; color: #ff771c; }
.about-block p  { font-family: 'maisonneue_book'; font-size: 0.85rem; line-height: 1.5; margin-bottom: 10px; }

/* ======================== */
/* CONTATTI MOBILE          */
/* ======================== */
.contatti {
  width: 100vw; padding: 8% 6%;
  min-height: 100vh;
  box-sizing: border-box;
  display: flex; flex-direction: column; 
  justify-content: center;
  gap: 32px;
  background: linear-gradient(to top, #ff77cd 0%, #ffffff00 100%);
   backdrop-filter: blur(10px);           /* ← blur */
  -webkit-backdrop-filter: blur(10px);   /* ← per Safari */
}

.contatti-titolo h2 { font-family: 'maisonneue_bold'; font-size: 1.3rem; font-weight: normal; }

.contatti-columns { display: flex; flex-direction: column; align-items: center; gap: 32px; width: 100%; }

.contatti-testo { width: 100%; font-family: 'maisonneue_bold'; font-size: 0.9rem; line-height: 1.6; }

.contatti-img {
  width: 100%; display: flex;
  justify-content: center; align-items: center;
  position: relative; height: 180px; cursor: pointer;
}

.contatti-img img { width: 140px; height: auto; position: absolute; transition: opacity 0.2s ease; }
.smile-default { opacity: 1; }
.smile-hover   { opacity: 0; }
.contatti-img:hover .smile-default { opacity: 0; }
.contatti-img:hover .smile-hover   { opacity: 1; }

.contatti-social { width: 100%; display: flex; flex-direction: column; gap: 16px; mix-blend-mode: normal; }

.social-row { display: flex; flex-direction: row; align-items: center; gap: 16px; }

.social-label { font-family: 'maisonneue_mono'; font-size: 0.8rem; color: #000000 !important; width: 70px; flex-shrink: 0;  mix-blend-mode: normal; }

.social-link {
  font-family: 'maisonneue_book'; font-size: 0.85rem;
  color: black; text-decoration: none;
  border: 1px solid black; border-radius: 50px;
  padding: 4px 14px;
  transition: background 0.2s, color 0.2s;
}
.social-link:hover { background: black; color: white; }

/* ======================== */
/* FOOTER SCROLL            */
/* ======================== */
.footer-scroll {
  width: 100vw; overflow: hidden;
  background-color: #000000;
  padding: 10px 0;
  position: relative; z-index: 20;
}

.footer-scroll-track {
  display: flex; white-space: nowrap;
  animation: scorri 14s linear infinite;
}

.footer-scroll-track span {
  font-family: 'maisonneue_bold';
  color: #ffffff;
  font-size: 1rem; 
  padding-right: 30px;
}

@keyframes scorri {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}










/* ======================== */
/* TABLET 576px+            */
/* ======================== */
@media (min-width: 576px) {

  .hero { padding: 80px 8% 6% 8%; }
  .introtext h1 { font-size: 1.6rem; }
  .slogan h1 { font-size: 1.4rem; }

  .filtri { padding: 4% 8%; }
  .portfolio { padding: 0 8%; }

  .project-name { font-size: 1.3rem; }
  .project-images { margin-left: -8%; margin-right: -8%; padding-left: 8%; padding-right: 8%; }
  .project-images img { height: 260px; }
  .project-images video {  height: 260px; }

  .about { padding: 8% 8%; }
  .about-img-grid { grid-template-rows: repeat(5, 100px); }

  .contatti { padding: 8% 8%;}

}











/* ======================== */
/* TABLET 768px+            */
/* ======================== */
@media (min-width: 768px) {

  .hero { padding: 80px 8% 6% 8%; min-height: 80vh; }
  .introtext h1 { font-size: 1.8rem; }
  .slogan h1 { font-size: 1.6rem; }

  /* about grid 2 colonne */
  .about-columns { flex-direction: row; gap: 4%; }
  .about-left  { width: 40%; }
  .about-right { width: 60%; border-top: none; border-left: 1px solid black; padding-top: 0; padding-left: 4%; }
  .about-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .about-img-grid { grid-template-rows: repeat(5, 100px); }

  /* contatti affiancati */
  .contatti-columns { flex-direction: row; align-items: center; gap: 4%; }
  .contatti-testo { width: 30%; }
  .contatti-img   { width: 25%; }
  .contatti-social { width: 45%; }

}











/* ======================== */
/* LARGE DEVICES 992px+     */
/* ======================== */
@media (min-width: 992px) {

  .cursore { display: block; }
  .cursore-testo { display: block; }

  .logo-menu-mobile { display: none; }
  .burger-label { display: none; }
  .menu-overlay { display: none; }

  .logo-wrapper {
    width: 65px; height: 65px;
    position: relative; overflow: hidden;
    display: flex; align-items: center; isolation: isolate;
  }

  .logo-lottie {
    position: absolute; top: 50%; left: 50%;
    width: 150%; height: 150%;
    transform: translate(-50%, -50%);
  }

  .navbar {
    display: flex; position: fixed;
    width: 100%; height: auto;
    align-items: center; justify-content: center;
    gap: 50px; z-index: 1000;
    box-sizing: border-box; mix-blend-mode: multiply;
  }

  .navbar a {
    color: #000; text-decoration: none;
    font-family: 'maisonneue_light';
    font-size: 12px; letter-spacing: 4px;
    margin-left: 40px;
  }
  .navbar a:hover { opacity: 0.2; }

  /* HERO */
  .hero {
    flex-direction: row; min-height: unset; height: 70vh;
    padding: 10% 10% 5% 10%;
  }
  .introtext h1 { font-size: clamp(1rem, 2vw, 3rem); font-weight: normal; }
  .slogan h1    { font-size: clamp(1rem, 2.5vw, 3rem); }

  /* TAG */
  .filtri { padding: 2% 10%; }
  .tag { font-size: 1rem; padding: 8px 24px; }

  /* LISTA PROGETTI */
  .portfolio {
    width: 100vw; padding: 0 10%;
    box-sizing: border-box;
    position: relative; z-index: 9;
  }

  .project-row { padding: 28px 0; }
  .project-name { font-size: 1.6rem; }
  .project-category { font-size: 0.75rem; }

  .project-text {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 40px; margin-bottom: 30px;
  }
  .project-text p { font-size: 0.85rem; }

  .project-images {
    margin-left: -10%; margin-right: -10%;
    padding-left: 10%; padding-right: 10%;
  }
  .project-images img { height: 350px; }
  .project-images video {height: 350px; }

  /* ABOUT */
  .about {
    position: sticky; top: 0; z-index: 10;
    min-height: 100vh; padding: 5% 10%; gap: 30px;
  }

  .titoloabout h2 { font-size: 1.5rem; }

  .about-columns { gap: 5%; }
  .about-left  { width: 35%; }
  .about-right { width: 65%; padding-left: 5%; }

  .about-img-grid { grid-template-rows: repeat(5, 120px); }

  .about-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }

  .about-block h4 { font-size: 0.9rem; }
  .about-block p  { font-size: 0.9rem; }

  /* CONTATTI */
  .contatti {
    position: relative; z-index: 11;
    min-height: 100vh; padding: 6% 15% 4% 15%; gap: 50px;
  }

  .contatti-titolo h2 { font-size: 1.5rem; }
  .contatti-columns { align-items: center; gap: 10%; }

  .contatti-testo { width: 25%; font-size: 1rem; }

  .contatti-img { width: 25%; height: 220px; }
  .contatti-img img { width: 180px; }

  .contatti-social { width: 50%; gap: 20px; }
  .social-row { gap: 30px; }
  .social-label { font-size: 1rem; width: 80px; color: #777; }
  .social-link { font-size: 1.2rem; }

  /* FOOTER SCROLL */
  .footer-scroll-track span { font-size: 1.2rem; }

}


/* ======================== */
/* LARGE DESKTOP 1200px+    */
/* ======================== */
@media (min-width: 1200px) {

  .introtext h1 { font-size: 1.3rem; }
  .slogan h1 { font-size: 1.5rem; }

}
