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

html {
  overflow-x: hidden;
  /* Abilita spazio per notch su iOS Safari */
  padding-top: constant(safe-area-inset-top, 0); /* fallback iOS < 15 */
  padding-top: env(safe-area-inset-top, 0);
  padding-left: constant(safe-area-inset-left, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: constant(safe-area-inset-right, 0);
  padding-right: env(safe-area-inset-right, 0);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #000000;
  color: #ffffff;
  overflow-x: hidden;
  /* Garantisce che il contenuto non passi sotto la notch */
  padding-top: constant(safe-area-inset-top, 0);
  padding-top: env(safe-area-inset-top, 0);
  padding-left: constant(safe-area-inset-left, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: constant(safe-area-inset-right, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* Copri le aree esterne alla safe area con nero (iOS notch & home indicator) */
body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  background: #000;
  z-index: 2147483000; /* sopra a tutto ma non interattivo */
  pointer-events: none;
}

/* Barra superiore sotto la status bar */
body::before {
  top: 0;
  height: env(safe-area-inset-top, 0);
}

/* Barra inferiore sopra l'home indicator */
body::after {
  bottom: 0;
  height: env(safe-area-inset-bottom, 0);
}

/* Opzionale: copertura laterale in landscape (solo quando presente safe area laterale) */
@supports (padding: max(0px)) {
  @media (orientation: landscape) {
    body::marker { /* selettore fittizio per separazione, non incide */ }
  }
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* GPU acceleration per elementi animati */
[data-key] {
  will-change: transform;
}

/* Ottimizza rendering testo */
p, h1, h2, h3, span, a {
  text-rendering: optimizeSpeed;
}

/* Scrollbar personalizzata - webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}

/* Mostra la scrollbar solo al passaggio del mouse */
*:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
}

*:hover::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Scrollbar personalizzata - Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

*:hover {
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Freno al salvataggio delle immagini nelle pagine dei link privati.
   L'attributo lo mette src/p/LinkView.tsx; il portfolio pubblico non lo ha mai.

   Le regole stanno qui, globali, e non in un foglio della pagina: il
   visualizzatore a schermo intero delle foto viene disegnato fuori dal
   contenitore della pagina, quindi regole legate a quel contenitore non lo
   raggiungerebbero - ed e' proprio li' che uno andrebbe a salvare l'immagine
   grande.

   NON e' una protezione: il browser deve scaricare l'immagine per mostrarla,
   quindi uno screenshot funziona sempre. Toglie le strade facili - tasto
   destro, trascinamento, pressione prolungata su telefono - e segnala che quel
   materiale non e' da diffondere. La serratura vera resta la scadenza del link. */
html[data-protetto],
html[data-protetto] body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html[data-protetto] img,
html[data-protetto] video {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

/* I campi restano selezionabili: la password si incolla. */
html[data-protetto] input,
html[data-protetto] textarea {
  -webkit-user-select: text;
  user-select: text;
}

/* Cursore personalizzato - nasconde il cursore nativo solo su desktop.
   Escluse le pagine di lavoro (area riservata), dove il cursore di sistema
   serve davvero: la barretta di testo nei campi, la manina sui bottoni.
   L'attributo lo mette src/index.tsx prima del primo render. */
@media (hover: hover) and (pointer: fine) {
  html:not([data-area="riservata"]),
  html:not([data-area="riservata"]) body,
  html:not([data-area="riservata"]) * {
    cursor: none !important;
  }
}

.CenterContent_centerContent__VfeFZ {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 0;
  width: 100%;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  box-sizing: border-box;
}

.CenterContent_projectContainer__KHlIN {
  width: 100%;
  height: 100vh;
  aspect-ratio: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.CenterContent_heroImage__1xRED {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  max-width: 100%;
  max-height: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .CenterContent_centerContent__VfeFZ {
    padding: 0;
    margin: 0;
    max-width: 100%;
    height: 100vh;
    width: 100%;
  }
  
  .CenterContent_projectContainer__KHlIN {
    width: 100%;
    height: 100vh;
  }
}

@media (max-width: 480px) {
  .CenterContent_centerContent__VfeFZ {
    padding: 0;
    width: 100%;
    height: 100vh;
  }
  
  .CenterContent_projectContainer__KHlIN {
    width: 100%;
    height: 100vh;
  }
}

.Hero_hero__yLzTw {
  width: 100%;
  height: 100vh;
  background-color: #000000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  box-sizing: border-box;
  /* Safe area support (iPhone notch) */
  padding-top: env(safe-area-inset-top, 0);
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

/* Responsive layout */
@media (max-width: 768px) {
  .Hero_hero__yLzTw {
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
    /* Mantieni la safe area su mobile */
    padding-top: env(safe-area-inset-top, 0);
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
    width: 100%;
  }
}

.MediaModal_modalBackdrop__g3ELK {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000; /* Sopra alle sidebar */
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.MediaModal_modalContent__bUda7 {
  position: relative;
  max-width: 70vw;
  max-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.MediaModal_closeButton__m\+S\+j {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.MediaModal_closeButton__m\+S\+j:hover {
  opacity: 0.7;
}

.MediaModal_mediaContainer__bVnqO {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.MediaModal_mediaImage__p7w8y {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.MediaModal_mediaVideo__McBdq {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .MediaModal_modalBackdrop__g3ELK {
    padding: 10px;
    /* Ottimizzazioni per mobile */
    padding-top: env(safe-area-inset-top, 10px);
    padding-bottom: env(safe-area-inset-bottom, 10px);
  }
  
  .MediaModal_modalContent__bUda7 {
    max-width: 88vw; /* Più piccolo su mobile */
    max-height: 70vh; /* Più piccolo su mobile */
  }
  
  .MediaModal_closeButton__m\+S\+j {
    top: -40px;
    font-size: 30px;
    /* Posizionamento migliore per mobile */
    right: 10px;
    background: none; /* Rimuove background su mobile */
    border-radius: 0;
    width: auto;
    height: auto;
    display: inline-block;
    padding: 0;
  }
  
  .MediaModal_mediaImage__p7w8y,
  .MediaModal_mediaVideo__McBdq {
    max-height: 60vh; /* Ridotto per lasciare aria intorno */
    width: 100%;
  }
  
  .MediaModal_mediaVideo__McBdq {
    /* Controlli video più grandi su mobile */
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .MediaModal_modalBackdrop__g3ELK {
    padding: 5px;
    /* Ottimizzazioni per schermi piccoli */
    padding-top: env(safe-area-inset-top, 5px);
    padding-bottom: env(safe-area-inset-bottom, 5px);
  }
  
  .MediaModal_modalContent__bUda7 {
    max-width: 92vw; /* Più piccolo su schermi piccoli */
    max-height: 72vh; /* Più piccolo su schermi piccoli */
  }
  
  .MediaModal_closeButton__m\+S\+j {
    top: -35px;
    font-size: 25px;
    /* Posizionamento ottimizzato per schermi piccoli */
    right: 5px;
    background: none; /* Rimuove background su schermi piccoli */
    border-radius: 0;
    width: auto;
    height: auto;
    display: inline-block;
    padding: 0;
  }
  
  .MediaModal_mediaImage__p7w8y,
  .MediaModal_mediaVideo__McBdq {
    max-height: 62vh; /* Ridotto per aria */
    width: 100%;
  }
  
  .MediaModal_mediaVideo__McBdq {
    /* Controlli video ottimizzati per schermi piccoli */
    min-height: 180px;
  }
}

.masonry-list {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding: 6rem 5rem 1rem 5rem; /* Stesso padding top del GridView (6rem) */
  background: #000;
  overflow-x: hidden;
  box-sizing: border-box;
  /* Assicura che il contenuto sia sempre a schermo intero */
  margin: 0;
  max-width: 100vw;
}

/* Modalità stack (mobile) */
.masonry-stack {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: #000;
  box-sizing: border-box;
  margin: 0;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 28px; /* Maggiore spazio tra foto/video su mobile */
  padding: calc(7rem + env(safe-area-inset-top, 0)) env(safe-area-inset-right, 0) 1rem env(safe-area-inset-left, 0);
}

.stack-item {
  width: 100%;
  content-visibility: auto;
  contain-intrinsic-size: 100vw 60vh;
}

.stack-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: #000;
}

.masonry-item-wrapper {
  position: absolute;
  cursor: default;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease-out;
  will-change: transform;
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: 400px 500px;
}

.masonry-item-wrapper:hover {
  z-index: 10;
}

.masonry-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 0;
  position: relative;
  background: #111;
  transition: opacity 0.3s ease-in-out;
  transform: translateZ(0);
}

.masonry-item-wrapper video {
  cursor: pointer;
}

.masonry-item-wrapper video:hover {
  opacity: 0.9;
}

.color-overlay {
  transition: opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .masonry-list {
    padding: 5rem 3rem 1rem 3rem; /* Stesso padding del GridView su schermi medi */
  }
}

/* Regole specifiche per pagina progetto su mobile */
@media (max-width: 768px) {
  .masonry-list {
    padding: 7rem 0 1rem 0; /* Padding superiore aumentato per sidebar più alte */
    /* Rimuovi completamente padding laterale per schermo intero */
    margin: 0;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    /* Background completamente nero per pagina progetto */
    background: #000000;
  }
  
  /* Assicura che gli elementi masonry si estendano completamente */
  .masonry-item-wrapper {
    /* Rimuovi qualsiasi margin o padding interno */
    margin: 0;
    padding: 0;
    /* Animazioni più fluide su mobile */
    transition: transform 0.2s ease-out;
  }
  
  /* Immagini a schermo intero su mobile per progetti */
  .masonry-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cambia da contain a cover per riempire completamente */
    object-position: center;
    /* Rimuovi background per evitare spazi vuoti */
    background: transparent;
    /* Transizioni più veloci su mobile */
    transition: opacity 0.2s ease-out;
  }
  
  /* Hover effects ottimizzati per touch */
  .masonry-item-wrapper:hover {
    transform: scale(0.98); /* Leggero zoom out invece di zoom in */
    z-index: 5; /* Z-index ridotto per performance */
  }
  
  /* Video ottimizzati per mobile */
  .masonry-item-wrapper video {
    /* Video in autoplay */
    pointer-events: auto;
    position: relative;
    /* Assicura che il video sia visibile */
    background: #000;
    min-height: 200px; /* Altezza minima per evitare spazio nero */
  }
}

@media (max-width: 480px) {
  .masonry-list {
    padding: 7.5rem 0 1rem 0; /* Padding superiore ancora maggiore per schermi piccoli */
    /* Mantieni schermo intero */
    margin: 0;
    width: 100vw;
    max-width: 100vw;
  }
  
  /* Ottimizzazioni per schermi molto piccoli */
  .masonry-item-img {
    object-fit: cover; /* Mantieni cover per riempimento completo */
    /* Aggiungi un leggero filtro per migliorare la leggibilità */
    filter: contrast(1.1) brightness(1.05);
    /* Performance ottimizzate */
    will-change: transform;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
  }
  
  /* Riduci z-index per performance */
  .masonry-item-wrapper {
    will-change: transform;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
  }
  
}

.ProjectPage_projectPage__w\+Z-s {
  min-height: 100vh;
  background: #000;
  color: white;
  /* Rispetta safe area come la home */
  padding-top: 0; /* Le sidebar gestiscono l'offset */
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.ProjectPage_masonryContainer__8pf13 {
  padding-top: 0; /* Sidebar gestiscono lo spazio */
}

/* Mobile styles */
@media (max-width: 768px) {
  .ProjectPage_masonryContainer__8pf13 {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .ProjectPage_masonryContainer__8pf13 {
    padding-top: 0;
  }
}

.GradualBlur_gradualBlurInner__noBjU {
  position: relative;
  width: 100%;
  height: 100%;
}

.GradualBlur_gradualBlurInner__noBjU > div {
  -webkit-backdrop-filter: inherit;
  backdrop-filter: inherit;
}

.GradualBlur_gradualBlur__cJi8z {
  isolation: isolate;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .GradualBlur_gradualBlurInner__noBjU > div {
    background: rgba(0, 0, 0, 0.3);
    opacity: 0.5;
  }
}

.GradualBlur_gradualBlurPage__CV3KF {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1000;
}

.ProjectToggleButton_container__ZYS1- {
  position: fixed;
  bottom: calc(2rem + env(safe-area-inset-bottom, 0));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.ProjectToggleButton_textContainer__sIEhX {
  max-width: 600px;
  text-align: center;
}

.ProjectToggleButton_projectText__-X0mk {
  color: #ffffff;
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.ProjectToggleButton_projectText__-X0mk.ProjectToggleButton_show__7doY7 {
  opacity: 1;
  transform: translateY(0);
}

.ProjectToggleButton_projectText__-X0mk.ProjectToggleButton_hide__gkRTX {
  opacity: 0;
  transform: translateY(10px);
}

.ProjectToggleButton_toggleButton__Wp24u {
  background: none;
  border: none;
  color: #ffffff;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.ProjectToggleButton_toggleButton__Wp24u:hover {
  opacity: 0.7;
  transform: scale(1.05);
}

.ProjectToggleButton_toggleButton__Wp24u:active {
  transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
  .ProjectToggleButton_container__ZYS1- {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    gap: 0.8rem;
  }
  
  .ProjectToggleButton_textContainer__sIEhX {
    max-width: 450px;
  }
  
  .ProjectToggleButton_projectText__-X0mk {
    font-size: 0.7rem;
  }
  
  .ProjectToggleButton_toggleButton__Wp24u {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }
}

.DynamicColorSidebar_dynamicSidebar__iCjnx {
  transition: color 0.3s ease;
}

/* Forza background nero su mobile */
@media (max-width: 768px) {
  .DynamicColorSidebar_dynamicSidebar__iCjnx {
    background-color: #000000 !important;
  }
}
.LeftSidebar_leftSidebar__EGzmS {
  position: fixed;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  z-index: 100;
  transition: all 0.3s ease-in-out;
  max-width: calc(50vw - 12rem);
}

.LeftSidebar_leftSidebar__EGzmS.LeftSidebar_sticky__xUYsn {
  top: 2rem;
  transform: translateY(0);
}

.LeftSidebar_leftSidebar__EGzmS.LeftSidebar_projectMode__JDIKB {
  top: 0;
  transform: translateY(0);
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  width: 50%;
  max-width: none;
  height: 60px;
  justify-content: flex-start;
  left: 0;
}

/* Su mobile, projectMode usa le stesse regole della sidebar normale */
@media (max-width: 768px) {
  .LeftSidebar_leftSidebar__EGzmS.LeftSidebar_projectMode__JDIKB {
    position: fixed !important;
    left: 0;
    top: 0 !important;
    transform: translateY(0) !important;
    max-width: none;
    background-color: #000000; /* Stesso background nero fisso */
    padding: 0.5rem 1rem;
    border-radius: 0;
    border: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none; /* Stesso comportamento */
    z-index: 1000;
    width: 60%; /* Stessa larghezza */
    height: 100px; /* Stessa altezza */
    padding-top: env(safe-area-inset-top, 0.5rem); /* Stesso padding notch */
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  
  /* Stesso font size per projectMode */
  .LeftSidebar_leftSidebar__EGzmS.LeftSidebar_projectMode__JDIKB .LeftSidebar_heroName__YwVuE {
    font-size: 0.8rem; /* Stesso font size della sidebar normale */
    text-align: center;
    color: white !important;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .LeftSidebar_leftSidebar__EGzmS.LeftSidebar_projectMode__JDIKB {
    left: 0;
    top: 0 !important;
    padding: 0.4rem 0.8rem;
    width: 60%; /* Stessa larghezza */
    height: 90px; /* Stessa altezza */
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #000000; /* Stesso background nero fisso */
  }
  
  /* Stesso font size per projectMode */
  .LeftSidebar_leftSidebar__EGzmS.LeftSidebar_projectMode__JDIKB .LeftSidebar_heroName__YwVuE {
    font-size: 0.7rem; /* Stesso font size della sidebar normale */
    color: white !important;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

.LeftSidebar_heroName__YwVuE {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

/* Schermi medi (13-16 pollici) */
@media (min-width: 1024px) and (max-width: 1600px) {
  .LeftSidebar_heroName__YwVuE {
    font-size: 13px;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .LeftSidebar_leftSidebar__EGzmS {
    position: fixed !important;
    left: max(0px, env(safe-area-inset-left));
    top: 0; /* lo sfondo copre la barra di stato */
    transform: translateY(0) !important;
    max-width: none;
    background-color: #000000; /* Background nero fisso */
    /* spazio per la notch + padding orizzontale con safe area */
    padding: calc(env(safe-area-inset-top) + 10px) calc(1rem + env(safe-area-inset-right)) 0.5rem calc(1rem + env(safe-area-inset-left));
    border-radius: 0;
    border: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none; /* Rimuovi blur per performance */
    z-index: 1000;
    width: 60%; /* Aumentato da 50% per evitare troncamento */
    height: 100px; /* altezza costante, spazio aggiunto via padding top */
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .LeftSidebar_leftSidebar__EGzmS.LeftSidebar_sticky__xUYsn {
    top: 0 !important;
    transform: translateY(0) !important;
  }

  .LeftSidebar_heroName__YwVuE {
    font-size: 0.8rem; /* Aumentato da 0.6rem */
    text-align: center;
    color: white !important;
    margin: 0;
    line-height: 1;
    white-space: nowrap; /* Evita il testo a capo */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

/* Solo quando l'app è aperta come WebApp (aggiunta alla Home) */
@media (display-mode: standalone) and (max-width: 768px) {
  .LeftSidebar_leftSidebar__EGzmS {
    /* extra spazio sotto la notch in modalità webapp */
    padding-top: calc(env(safe-area-inset-top) + 12px); /* allinea a home/info */
  }
  .LeftSidebar_leftSidebar__EGzmS.LeftSidebar_projectMode__JDIKB {
    padding-top: calc(env(safe-area-inset-top) + 12px);
  }
}

@media (display-mode: standalone) and (max-width: 480px) {
  .LeftSidebar_leftSidebar__EGzmS {
    padding-top: calc(env(safe-area-inset-top) + 10px);
  }
  .LeftSidebar_leftSidebar__EGzmS.LeftSidebar_projectMode__JDIKB {
    padding-top: calc(env(safe-area-inset-top) + 10px);
  }
}

/* Gestione specifica per iPhone notch */
@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .LeftSidebar_leftSidebar__EGzmS {
      padding-top: max(0.5rem, env(safe-area-inset-top));
      height: max(80px, calc(80px + env(safe-area-inset-top)));
    }
  }
  
  @media (max-width: 480px) {
    .LeftSidebar_leftSidebar__EGzmS {
      padding-top: max(0.4rem, env(safe-area-inset-top));
      height: max(70px, calc(70px + env(safe-area-inset-top)));
    }
  }
}

@media (max-width: 480px) {
  .LeftSidebar_leftSidebar__EGzmS {
    left: max(0px, env(safe-area-inset-left));
    top: 0;
    padding: 0.4rem 0.8rem;
    padding-top: calc(env(safe-area-inset-top) + 8px);
    width: 60%; /* Aumentato da 50% per evitare troncamento */
    height: 90px; /* altezza costante */
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: #000000; /* Background nero fisso anche per schermi piccoli */
  }

  .LeftSidebar_heroName__YwVuE {
    font-size: 0.7rem; /* Aumentato da 0.5rem */
    color: white !important;
    margin: 0;
    line-height: 1;
    white-space: nowrap; /* Evita il testo a capo */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
}

/* Nome e sottotitolo impilati. Senza sottotitolo il blocco non cambia nulla:
   il titolo resta esattamente dov'era. */
.LeftSidebar_blocco__5Seeu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

/* Riga sotto il nome, usata dalle pagine dei link privati per il nome del
   link. Piu' piccola e attenuata: e' un'informazione di servizio, non deve
   competere con il nome. Eredita il colore dalla sidebar, che lo cambia da
   sola in base a cosa ha sotto. */
.LeftSidebar_sottotitolo__614Bd {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .LeftSidebar_sottotitolo__614Bd {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }
}

.RightSidebar_rightSidebar__wwxDs {
  position: fixed;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: auto;
  z-index: 100;
  transition: all 0.3s ease-in-out;
  max-width: calc(50vw - 12rem);
}

.RightSidebar_rightSidebar__wwxDs.RightSidebar_sticky__yOjLT {
  top: 2rem;
  transform: translateY(0);
}

.RightSidebar_rightSidebar__wwxDs.RightSidebar_projectMode__8--nm {
  top: 0;
  transform: translateY(0);
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  width: 50%;
  max-width: none;
  height: 60px;
  justify-content: flex-end;
  right: 0;
}

/* Su mobile, projectMode usa le stesse regole della sidebar normale */
@media (max-width: 768px) {
  .RightSidebar_rightSidebar__wwxDs.RightSidebar_projectMode__8--nm {
    position: fixed !important;
    right: 0;
    top: 0 !important;
    transform: translateY(0) !important;
    max-width: none;
    background-color: #000000; /* Stesso background nero fisso */
    padding: 0.5rem 1rem;
    border-radius: 0;
    border: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none; /* Stesso comportamento */
    z-index: 1000;
    width: 40%; /* Stessa larghezza */
    height: 100px; /* Stessa altezza */
    padding-top: env(safe-area-inset-top, 0.5rem); /* Stesso padding notch */
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  
  /* Stesso font size per projectMode */
  .RightSidebar_rightSidebar__wwxDs.RightSidebar_projectMode__8--nm .RightSidebar_navLink__ZQZMN {
    font-size: 0.8rem; /* Stesso font size della sidebar normale */
    color: white !important;
    margin: 0;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .RightSidebar_rightSidebar__wwxDs.RightSidebar_projectMode__8--nm {
    right: 0;
    top: 0 !important;
    padding: 0.4rem 0.8rem;
    width: 40%; /* Stessa larghezza */
    height: 90px; /* Stessa altezza */
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: #000000; /* Stesso background nero fisso */
  }
  
  /* Stesso font size per projectMode */
  .RightSidebar_rightSidebar__wwxDs.RightSidebar_projectMode__8--nm .RightSidebar_navLink__ZQZMN {
    font-size: 0.7rem; /* Stesso font size della sidebar normale */
    color: white !important;
    margin: 0;
    padding: 0;
  }
}

.RightSidebar_heroNav__82PXJ {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem 1rem;
  gap: 1rem 1rem;
  align-items: center;
  justify-items: center;
}

.RightSidebar_navLink__ZQZMN {
  font-family: 'Syne', sans-serif;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
  color: inherit !important; /* Forza l'ereditarietà del colore */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Schermi medi (13-16 pollici) */
@media (min-width: 1024px) and (max-width: 1600px) {
  .RightSidebar_navLink__ZQZMN {
    font-size: 13px;
  }
  
  .RightSidebar_heroNav__82PXJ {
    gap: 0.5rem 0rem;
  }
}

.RightSidebar_navLink__ZQZMN:hover {
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .RightSidebar_rightSidebar__wwxDs {
    position: fixed !important;
    right: max(0px, env(safe-area-inset-right));
    top: 0; /* copri barra di stato */
    transform: translateY(0) !important;
    max-width: none;
    background-color: #000000; /* Background nero fisso */
    padding: calc(env(safe-area-inset-top) + 10px) calc(1rem + env(safe-area-inset-right)) 0.5rem calc(1rem + env(safe-area-inset-left));
    border-radius: 0;
    border: none;
    -webkit-backdrop-filter: none;
            backdrop-filter: none; /* Rimuovi blur per performance */
    z-index: 1000;
    width: 40%; /* Ridotto da 50% per compensare l'aumento della leftsidebar */
    height: 100px; /* altezza costante */
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .RightSidebar_rightSidebar__wwxDs.RightSidebar_sticky__yOjLT {
    top: 0 !important;
    transform: translateY(0) !important;
  }

  .RightSidebar_heroNav__82PXJ {
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem;
    margin: 0;
    transform: translateX(0.2rem);
  }
  
  /* Su mobile, sposta il pulsante INFO a sinistra */
  .RightSidebar_heroNav__82PXJ.RightSidebar_mobileNav__37eUQ {
    grid-template-columns: 1fr;
    justify-items: flex-start;
    transform: none;
  }

  .RightSidebar_navLink__ZQZMN {
    font-size: 0.8rem; /* Aumentato da 0.6rem */
    color: white !important;
    margin: 0;
    padding: 0;
  }
}

/* Solo quando l'app è aperta come WebApp (aggiunta alla Home) */
@media (display-mode: standalone) and (max-width: 768px) {
  .RightSidebar_rightSidebar__wwxDs {
    padding-top: calc(env(safe-area-inset-top) + 12px);
  }
  .RightSidebar_rightSidebar__wwxDs.RightSidebar_projectMode__8--nm {
    padding-top: calc(env(safe-area-inset-top) + 12px);
  }
}

@media (display-mode: standalone) and (max-width: 480px) {
  .RightSidebar_rightSidebar__wwxDs {
    padding-top: calc(env(safe-area-inset-top) + 10px);
  }
  .RightSidebar_rightSidebar__wwxDs.RightSidebar_projectMode__8--nm {
    padding-top: calc(env(safe-area-inset-top) + 10px);
  }
}

/* Gestione specifica per iPhone notch */
@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .RightSidebar_rightSidebar__wwxDs {
      padding-top: max(0.5rem, env(safe-area-inset-top));
      height: max(80px, calc(80px + env(safe-area-inset-top)));
    }
  }
  
  @media (max-width: 480px) {
    .RightSidebar_rightSidebar__wwxDs {
      padding-top: max(0.4rem, env(safe-area-inset-top));
      height: max(70px, calc(70px + env(safe-area-inset-top)));
    }
  }
}

@media (max-width: 480px) {
  .RightSidebar_rightSidebar__wwxDs {
    right: max(0px, env(safe-area-inset-right));
    top: 0;
    padding: 0.4rem 0.8rem;
    padding-top: calc(env(safe-area-inset-top) + 8px);
    width: 40%; /* Ridotto da 50% per compensare l'aumento della leftsidebar */
    height: 90px; /* altezza costante */
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: #000000; /* Background nero fisso anche per schermi piccoli */
  }

  .RightSidebar_navLink__ZQZMN {
    font-size: 0.7rem; /* Aumentato da 0.5rem */
    color: white !important;
    margin: 0;
    padding: 0;
  }
}

.InfoView_wrapper__9Vwef {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 8rem calc(1rem + 30px) 4rem;
  box-sizing: border-box;
}

.InfoView_centerBox__dE9LL {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* Schermi medi (13-16 pollici) */
@media (min-width: 1024px) and (max-width: 1600px) {
  .InfoView_centerBox__dE9LL {
    max-width: 500px;
  }
  
  .InfoView_text__zEVoE {
    font-size: 13px !important;
    line-height: 1.5;
  }
}

.InfoView_text__zEVoE {
  font-family: 'Cal Sans', sans-serif;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.8;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.InfoView_linksContainer__iUKyh {
  display: flex;
  flex-direction: row;
  gap: 0.3rem;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
}

.InfoView_link__q3ERN {
  font-family: 'Cal Sans', sans-serif;
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
  color: #ffffff;
  text-decoration: underline;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.InfoView_link__q3ERN:hover {
  opacity: 0.7;
}

.InfoView_separator__WwsMl {
  font-family: 'Cal Sans', sans-serif;
  font-weight: 400;
  font-size: inherit;
  line-height: inherit;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive mobile - stesse dimensioni delle sidebar */
@media (max-width: 768px) {
  .InfoView_text__zEVoE {
    font-size: 0.8rem;
    line-height: 1.2;
  }
  
  .InfoView_linksContainer__iUKyh {
    gap: 0.2rem;
    margin-top: 0.4rem;
    flex-wrap: nowrap;
    justify-content: center;
  }
  
  .InfoView_link__q3ERN {
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .InfoView_text__zEVoE {
    font-size: 0.7rem;
    line-height: 1.2;
  }
  
  .InfoView_linksContainer__iUKyh {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.1rem;
    margin-top: 0.3rem;
    justify-content: center;
    align-items: center;
  }
  
  .InfoView_link__q3ERN {
    white-space: nowrap;
    font-size: 0.6rem;
  }
  
  .InfoView_separator__WwsMl {
    font-size: 0.6rem;
  }
}

/* Schermi ultra-piccoli (≤360px) - CV e email su righe separate senza separatore */
@media (max-width: 360px) {
  .InfoView_text__zEVoE {
    font-size: 0.6rem;
    line-height: 1.1;
  }
  
  .InfoView_linksContainer__iUKyh {
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.2rem;
    justify-content: center;
    align-items: center;
  }
  
  .InfoView_link__q3ERN {
    white-space: nowrap;
    font-size: 0.55rem;
    letter-spacing: 0.02em;
  }
  
  .InfoView_separator__WwsMl {
    display: none;
  }
}


.NotFound404_container__PcnIU {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #000000;
  color: #ffffff;
  padding: 2rem;
}

.NotFound404_content__69Qr8 {
  text-align: center;
  max-width: 600px;
}

.NotFound404_title__4mm6m {
  font-family: 'Syne', sans-serif;
  font-size: 8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem 0;
  line-height: 1;
  opacity: 0.9;
}

.NotFound404_subtitle__kTyG0 {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 3rem 0;
  opacity: 0.7;
}

.NotFound404_button__gQNUN {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: #ffffff;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.NotFound404_button__gQNUN:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.NotFound404_button__gQNUN:active {
  transform: translateY(0);
}

/* Mobile styles */
@media (max-width: 768px) {
  .NotFound404_title__4mm6m {
    font-size: 6rem;
  }
  
  .NotFound404_subtitle__kTyG0 {
    font-size: 1.2rem;
  }
  
  .NotFound404_button__gQNUN {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .NotFound404_title__4mm6m {
    font-size: 4rem;
  }
  
  .NotFound404_subtitle__kTyG0 {
    font-size: 1rem;
  }
  
  .NotFound404_button__gQNUN {
    font-size: 0.8rem;
    padding: 0.7rem 1.2rem;
  }
}

.TiltedCard_tiltedCardFigure__ST60G {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.TiltedCard_tiltedCardMobileAlert__adJEW {
  position: absolute;
  top: 1rem;
  text-align: center;
  font-size: 0.875rem;
  display: none;
}

@media (max-width: 640px) {
  .TiltedCard_tiltedCardMobileAlert__adJEW {
    display: block;
  }
}

.TiltedCard_tiltedCardInner__oz3sN {
  position: relative;
  transform-style: preserve-3d;
}

.TiltedCard_tiltedCardImg__or5ED {
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  border-radius: 15px;
  will-change: transform;
  transform: translateZ(0);
}

.TiltedCard_tiltedCardOverlay__bUFf2 {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  will-change: transform;
  transform: translateZ(30px);
}

.TiltedCard_tiltedCardCaption__QR9f8 {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 4px;
  background-color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  color: #2d2d2d;
  z-index: 3;
  pointer-events: none;
  font-weight: 500;
}

/* Schermi medi (13-16 pollici) */
@media (min-width: 1024px) and (max-width: 1600px) {
  .TiltedCard_tiltedCardCaption__QR9f8 {
    font-size: 12px;
    padding: 3px 8px;
  }
}


#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999999;
  transform: translate3d(0, 0, 0) translate(-50%, -50%);
  transform: translate3d(var(--cx, 0), var(--cy, 0), 0) translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease, background 0.15s ease;
  mix-blend-mode: difference;
  display: block;
  will-change: transform, width, height;
}

/* Cursore play per video */
#custom-cursor.video-cursor {
  width: 60px !important;
  height: 60px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-radius: 50% !important;
  mix-blend-mode: normal;
}

#custom-cursor.video-cursor::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-left: 16px solid #000;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}


.App_app__y7JOV {
  text-align: left;
  width: 100vw;
  min-height: 100vh;
  background-color: #000000; /* Sfondo nero fisso */
}

/* Assicura che tutto il contenuto abbia sfondo nero.
 *
 * :where() azzera la specificita' della regola. Serve perche' questa e' una
 * impostazione di partenza, non una decisione: qualunque componente che si
 * dichiari uno sfondo proprio - la pill bianca sotto ai titoli, il fondo scuro
 * del visualizzatore a schermo intero - deve vincere su di essa.
 *
 * Scritta come `.app *` aveva la stessa specificita' delle classi dei
 * componenti, quindi a decidere era l'ordine con cui i fogli finivano nel file
 * compilato: bastava che quell'ordine cambiasse per spegnere sfondi a caso.
 * Con :where() la questione non si pone piu'. */
:where(.App_app__y7JOV) * {
  background-color: transparent;
}

/* Stili per lazy loading (ottimizzazione INP) */
.App_lazyLoadingFallback__az1ZZ {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background-color: transparent;
}

.App_loadingSpinner__kIdce {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  animation: App_spin__gAl1p 1s linear infinite;
}

@keyframes App_spin__gAl1p {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.App_contentContainer__cGEQM {
  position: relative;
  width: 100%;
}

.App_homeContent__555l0 {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.App_homeContent__555l0.App_transitioning__sUrfT {
  opacity: 0;
  transform: translateY(-20px) scale(0.95);
}

.App_gridContent__Kl-Nu {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.App_gridContent__Kl-Nu.App_transitioning__sUrfT {
  opacity: 0;
  transform: translateY(20px) scale(1.05);
}

.App_projectContent__2baTa {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.App_projectContent__2baTa.App_transitioning__sUrfT {
  opacity: 0;
  transform: translateY(20px) scale(1.05);
}

.ProjectsSection_projectsSection__5jUdm {
  background-color: #000000;
  padding: 2rem 0;
  min-height: 100vh;
  position: relative;
}

/* Layout a due colonne per mobile */
.ProjectsSection_mobileLayout__y8YYU {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-gap: 1rem;
  gap: 1rem;
  align-items: start;
}

/* Colonna del titolo */
.ProjectsSection_titleColumn__SJIDU {
  position: relative;
  padding: 1rem 0.5rem 1rem 0;
  height: 100vh;
}

/* Titolo del progetto */
.ProjectsSection_projectTitle__WmRCv {
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  margin: 0;
  line-height: 1.2;
  width: -webkit-fit-content;
  width: fit-content;
  position: absolute;
  top: 0;
  left: 0;
}

.ProjectsSection_container__ENz2E {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.ProjectsSection_projectsGrid__iEV0v {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0 1rem;
}

.ProjectsSection_projectCard__22F4o {
  display: flex;
  flex-direction: column;
  background-color: #111111;
  overflow: hidden;
  width: 100%;
}

.ProjectsSection_projectImage__eXc\+4 {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
}

/* Media Queries */

/* Schermi grandi (1601px+) */
@media (min-width: 1601px) {
  .ProjectsSection_container__ENz2E {
    max-width: 1000px;
  }
  
  .ProjectsSection_projectsGrid__iEV0v {
    gap: 2rem;
  }
}

/* Schermi medi (1024px - 1600px) */
@media (min-width: 1024px) and (max-width: 1600px) {
  .ProjectsSection_projectsSection__5jUdm {
    padding: 1rem 0;
  }
  
  .ProjectsSection_container__ENz2E {
    max-width: 500px;
  }
  
  .ProjectsSection_projectsGrid__iEV0v {
    gap: 0.8rem;
  }
  
  .ProjectsSection_projectImage__eXc\+4 {
    aspect-ratio: 2/3;
  }
}

/* Tablet (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  .ProjectsSection_container__ENz2E {
    max-width: 600px;
  }
  
  .ProjectsSection_projectsGrid__iEV0v {
    gap: 1.2rem;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .ProjectsSection_projectsGrid__iEV0v {
    gap: 2.5rem;
    padding: 0 0.5rem;
  }
  
  .ProjectsSection_container__ENz2E {
    padding: 0 1rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: 0;
  }
  
  .ProjectsSection_projectImage__eXc\+4 {
    aspect-ratio: 2/3;
  }
  
  .ProjectsSection_projectTitle__WmRCv {
    font-size: 0.7rem;
  }
}

/* Mobile piccolo (max-width: 480px) */
@media (max-width: 480px) {
  .ProjectsSection_projectsSection__5jUdm {
    padding: 2rem 0;
  }
  
  .ProjectsSection_container__ENz2E {
    max-width: 100%;
    margin-right: 0;
  }
  
  .ProjectsSection_projectsGrid__iEV0v {
    gap: 2rem;
  }
  
  .ProjectsSection_mobileLayout__y8YYU {
    grid-template-columns: 120px 1fr;
    gap: 0.5rem;
  }
  
  .ProjectsSection_titleColumn__SJIDU {
    padding: 0.3rem 0.2rem 0.3rem 0;
  }
  
  .ProjectsSection_projectTitle__WmRCv {
    font-size: 0.6rem;
  }
}

/*# sourceMappingURL=styles.1f5e4494.css.map*/