/* -------------------------------------------------------------------------------- */
/* ! Impostazioni base */
/* -------------------------------------------------------------------------------- */

:root {
  --color-accent: #ef5b08;
  --color-light: #ede000;
  --color-dark: #1c184c;
  --color-white: #fff;

  --font-primary: 'nimbus-sans', sans-serif;
  --font-secondary: 'antarctican-mono', monospace;

  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 3rem;
  --space-xl: 4rem;

  --border-radius: 4px;
  --box-shadow: 0 3px 5px rgba(146, 146, 146, 0.1);
}

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

a { 
  text-decoration: none; 
  color: inherit; 
}

li { 
  list-style-type: none; 
}

html { scroll-behavior: smooth; }

/* Evita che la sezione resti nascosta sotto l'header sticky */

:root { --header-offset: 88px; }                              /* desktop */
@media (max-width: 991px){ :root { --header-offset: 72px; } } /* iPad */
@media (max-width: 765px){ :root { --header-offset: 64px; } } /* mobile */

#talk-sep { 
  scroll-margin-top: var(--header-offset); 
}


/* link alle section */
#about, #projects {
  scroll-margin-top: 80px; 
}

.res { width: 100%; max-width: 380px; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Tipografia */
body {
  font-family: var(--font-primary);
  color: var(--color-white);
  font-size: 15px;
  background: var(--color-dark);
  line-height: 1.6;
}

html, body{
  overflow-x: visible;        
}

.navbar-transparent,
.hero,
.scroll-container{
  max-width: 100vw;                  
}

/* cursore custom */
html, body, a, button, input, textarea, .nav-links a, #hero-svg, #svg-base #me, #svg-ramen #me {
  cursor: none !important;
}

#hero-svg { 
  pointer-events: none; 
}

img { 
  max-width: 100%; 
  height: auto; 
}

h1 { 
  font-size: 2.2rem; 
  font-weight: 550; 
  font-style: italic; 
  margin-bottom: var(--space-s); 
}

h2 { 
  font-size: 1.8rem; 
  font-weight: 700; 
  margin-bottom: var(--space-m); 
}

p  { 
  font-size: 1.2rem; 
  margin-bottom: var(--space-m); 
}



/* =======================
   Cursore
======================= */
.custom-cursor{
  position: fixed; 
  top: 0; 
  left: 0;
  width: 20px; 
  height: 20px;
  border: 1.3px solid var(--color-white); 
  border-radius: 50%;
  pointer-events: none; 
  transform: translate(-50%,-50%);
  transition: transform .25s ease, background-color .15s ease, width .15s ease, height .15s ease;
  z-index: 10000; 
  mix-blend-mode: difference; 
  background-color: transparent;
}

.custom-cursor.active{ 
  transform: translate(-50%,-50%) scale(2); 
}

.cursor-text{
  position: absolute; 
  transform: translateY(-50%);
  font-family: var(--font-secondary); 
  font-size: 15px; 
  font-weight: 600; 
  line-height: 1;
  display:flex; 
  align-items:center; 
  margin-top:-10px; 
  margin-left:20px; 
  gap:6px;
  pointer-events:none; 
  user-select:none;
}

.cursor-text img{ 
  width:25px; 
  height:auto; 
  margin:0 0 0 -5px; 
  vertical-align:middle; 
}














/* =======================
   NAV / MENU
======================= */
.navbar-transparent{
  position: fixed; 
  top:0; 
  width:100%; 
  z-index:999; 
  height:88px;
  display:flex; 
  align-items:center;
  background-color:rgba(28,24,76,.6);
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  box-shadow:0 10px 20px rgba(0,0,0,.25);
  border-bottom:1px solid rgba(255,255,255,.05);
}

.navbar-inner{
  width:100%; 
  max-width:1147px;
  margin:0 auto;
  display:grid; 
  grid-template-columns:auto 1fr auto; 
  align-items:center;
}

.logo-img{ 
  height:60px; 
  width:auto; 
  margin-top: 5px;
  display:block; 
  justify-self:start; 
}

.nav-links{ 
  display:flex; 
  align-items:center; 
  justify-content:flex-end; 
  gap:clamp(1.5rem,3vw,3rem); 
}

.nav-links li:last-child { 
  margin-left:clamp(1.25rem,3vw,2.5rem); 
}

.nav-links a{
  font-family:var(--font-secondary); 
  font-size:1.2rem; 
  font-weight:500; 
  color: var(--color-white);
  text-transform:uppercase; 
  letter-spacing:.05em; 
  display:flex; 
  align-items:center; 
  justify-content:center;
  height:100%; 
  line-height:1; 
  position:relative; 
  overflow:hidden; 
  transition: filter .3s ease, color .3s ease;
}

.nav-links a:hover{ 
  filter: blur(2px); 
}

.globe-icon{ 
  font-size:1.2rem; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  margin-top:5px; 
}

/* ========== HAMBURGER ========== */
.header__hamburger{ 
  display:none; 
  flex-direction:column; 
  justify-content:center; 
  gap:5px; 
  width:30px;
  height:25px; 
  z-index:1101; 
  margin-left:auto; 
}

.header__hamburger span{ 
  display:block; 
  width:100%; 
  height:3px; 
  background-color: var(--color-white); 
  transition:all .3s ease; 
}

/* ======= BREAKPOINTS ======= */
@media (max-width: 765px){

  .logo-img{ 
    height:60px; 
    margin-top: 5px;
  }

  .navbar-inner{ 
    grid-template-columns:auto 1fr; 
  }

  .nav-links{ 
    justify-content:flex-end; 
    gap:1.1rem; 
  }

}

@media (max-width: 991px){

  .logo-img{ 
    height:60px; 
    margin-top: 5px;
  }

  .header__hamburger{ 
    display:flex; 
    position:absolute; 
    top:2rem; 
    right:2rem; 
  }

  /* ========= MOBILE MENU (slide-down dall'alto) ========= */
  #mobileMenu{
    position: fixed;
    top: 0; 
    left: 0; 
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-dark);
    transform: translateY(-100%);          
    transition: transform .35s ease-in-out; 
    z-index: 1000;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;

    background: var(--color-dark);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  #mobileMenu.active{
    transform: translateY(0);
  }

  #mobileMenu .nav-links{ 
    flex-direction: column; 
    align-items: center; 
    gap: 2.2rem; 
    width: 100%;
  }

  #mobileMenu .nav-links li a{ 
    padding: .5rem 1rem; 
    font-size: 2rem; 
    text-align: center; 
  }


  .header__hamburger.active span:nth-child(1){ 
    transform: translateY(8px) rotate(45deg); 
  }

  .header__hamburger.active span:nth-child(2){ 
    opacity:0; 
  }

  .header__hamburger.active span:nth-child(3){ 
    transform: translateY(-8px) rotate(-45deg); 
  }


  body.menu-open, .no-scroll{ 
    overflow:hidden; 
  }
  
  .no-scroll{ 
    height:100vh; 
  }

  /* Footer nav in mobile */
  .site-footer .foot-nav{
    display: block;
    visibility: visible;
    position: static;
    transform: none;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    height: auto;
    background: transparent;
    padding: 0;
    z-index: auto;
  }

  .globe-icon{ 
    font-size:1.8rem;  
  }
}


















/* ===========================
  HERO - BASE
=========================== */
.hero{
  width: 80%;
  margin: 0 auto;
  background: var(--color-dark);
}
.hero-inner{ display:grid; 
  justify-items:center; 
  row-gap:0; 
}

.hero-cover{ 
  width:100%; 
  margin:0 auto; 
  margin-top: -30px;
}



/* ---------- HERO TEXT (layout) ---------- */
.hero-text{
  margin-top:-50px;
  width:100%;
  max-width:1100px;
  margin-inline:auto;
  display:flex;
  justify-content:center;
  align-items:center;
  transform:translateY(clamp(-6rem, -9vw, -2rem));
  text-align:center;
}

.hero-text .typing{ display:inline-block; }


/* ---------- TYPING: solo stile, il JS scrive le lettere ---------- */
.hero-text .text{
  display:inline-block;
  white-space:nowrap;
  overflow:hidden;
  border-right:3px solid var(--color-white);  
  color:var(--color-white);
  font-family:var(--font-secondary);
  font-weight:500;
  font-size:2rem;
  line-height:1.5;
}


.cursor-blink{ 
  animation: blink .75s step-end infinite; 
}


.hero-text .text.is-done{ 
  border-right-color: transparent; 
}

.typing-cursor {
  border-right: 3px solid var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: blink .6s step-end infinite;
}

/* lampeggio */
@keyframes blink{ 50% { border-color: transparent; } }

/* ---------- accessibilità ---------- */
@media (prefers-reduced-motion: reduce){
  .cursor-blink{ animation: none; }
  .hero-text .text{ border-right-color: transparent; }
}








/* ===========================
   HERO – DESKTOP (≥992px)
=========================== */
@media (min-width: 992px){
  .hero{ 
    width: min(94vw, 1400px); 
  }  

  .hero-cover{ 
    width:100%; 
    margin:0 auto; 
    margin-top: 20px;
  }

  .hero-text{ 
    max-width: clamp(900px, 70vw, 1200px); 
    padding-inline: 2vw; 
    transform: translateY(clamp(-5rem, -6vw, -2.5rem)); 
  }

  .hero-text .text{
    font-size: clamp(1.6rem, 2.2vw, 2.6rem);
    width: 0ch;
    --typing-ch: 34;  
    animation: typing 3s steps(var(--typing-ch), end) forwards, blink .75s step-end infinite;
  }

  @keyframes typing{ to{ width: var(--typing-ch)ch; } }

  .scroll-content span{
    font-size: 2rem;
    line-height: 1;
    padding-block: 0.3rem;  
  }
}





/* ===========================
  TICKER
=========================== */

.scroll-container{
  width:100%;
  overflow-x: clip; 
  background:var(--color-white); color:var(--color-dark);
  margin-top:-30px; 
  display:grid;
}
.scroll-track{ 
  display:flex; 
  width:fit-content; 
  animation: scroll 30s linear infinite; 
  will-change: transform; 
}

.scroll-content{ 
  display:flex; 
  white-space:nowrap; 
}

.scroll-content span{ 
  font-size:2rem; 
  text-transform:uppercase; 
  letter-spacing:.05em; 
}

@keyframes scroll{ 0%{ transform:translateX(0%);} 100%{ transform:translateX(-50%);} }

























/* ===========================
  HERO SWAP (desktop = SVG)
=========================== */
.hero-swap{ 
  position: relative; 
  width: 100%; 
}

.hero-svg{ 
  display: block; 
  width: 100%; 
  height: auto; 
  transition: none; 
}

.hero-svg--base{ 
  position: relative; 
  opacity: 1 !important; 
  z-index: 1; 
}

.hero-svg--alt { 
  position: absolute; 
  inset: 0; 
  opacity: 0 !important; 
  z-index: 2; 
  pointer-events: none; 
}

#svg-base #me { 
  pointer-events: visiblePainted; 
  cursor: none; 
  user-select: none; 
  outline: none; 
}

#svg-ramen #me { 
  user-select: none; 
  outline: none; 
  cursor: none; 
}

.hero-swap.locked .hero-svg--base{ 
  opacity: 0 !important; 
}

.hero-swap.locked .hero-svg--alt { 
  opacity: 1 !important; 
  pointer-events: auto; 
}

/* di default (desktop) mostro SVG, nascondo immagine mobile */
.hero-cover .hero-swap         { 
  display: block; 
}

.hero-cover .hero-cover-mobile { 
  display: none; 
}




















/* ============== HERO / TABLET (≤ 991px) ============== */
@media (max-width: 991px){

  /* swap immagine */
  .hero-cover .hero-swap{ display:none; }
  .hero-cover .hero-cover-mobile{
    display:block;
    width:100%;
    max-width:min(560px, 90%);
    height:auto;
    margin:0 auto 12px;
    object-fit:contain;
    transition:opacity .3s ease;
  }

  /* layout generale */
  .hero{
    width:min(92vw, 1100px);
    padding-top: calc(var(--nav-h, 88px) + 48px);
  }
  .hero-cover{ margin-top: 6px; }

  /* --- HERO TEXT: più in basso --- */
  .hero-text{
    max-width:min(90vw, 900px);
    padding-inline:3vw;
    margin-top: 40px;         
    transform: translateY(0);  
    position: relative;
    z-index: 3;
  }
  .hero-text .text{
    font-size: 1.7em;
    line-height: 1.4;
    border-right-width: 2.5px;
  }

  /* --- TICKER: più in basso e un filo più sottile --- */
  .scroll-container{
    margin-top: 40px;          
  }
  .scroll-content span{
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    line-height: 1;
    padding-block: .25rem;
  }
}












.hero-svg{ max-width: 100%; height: auto; }

/* ---------- MOBILE (≤ 765px) ---------- */
@media (max-width: 765px){

  .hero,
  .hero-inner,
  .hero-cover,
  .hero-text{
    width: 100%;
    max-width: 100%;
    overflow: visible;       
  }

  .hero-text{
    padding-inline: 16px;     
    margin-top: 28px;
    transform: none;
  }
  .hero-text .text{
    white-space: normal;      
    display: inline;         
    line-height: 1.35;
    font-size: clamp(1rem, 4vw, 1.25rem);
    border-right-width: 2px;  
  }

  /* ticker */
  .scroll-container{
    overflow-x: hidden;       
    margin-top: 24px;
  }
  .scroll-track{ will-change: transform; }
  .scroll-content span{
    font-size: clamp(.95rem, 3.6vw, 1.15rem);
    line-height: 1.15;
    padding-block: .2rem;
  }

  /* swap immagine (già impostato) */
  .hero-cover .hero-swap{ display:none; }
  .hero-cover .hero-cover-mobile{
    display:block;
    width:100%;
    max-width:min(480px,92%);
    height:auto;
    margin:0 auto 8px;
    object-fit:contain;
  }
}





















/* ========= ABOUT – DESKTOP (≥ 992px) ========= */
@media (min-width: 992px){

  /* contenitore sezione */
  .about{
    padding-block: clamp(4rem, 7vw, 6rem) clamp(5rem, 8vw, 7rem);
    background: var(--color-dark);
  }

  .about-inner{
    width: min(1200px, 86vw);
    margin: 0 auto;
  }

  /* titolo “ABOUT /” */
  .about-subtitle{
    margin: 0 0 clamp(1.25rem, 2vw, 1.75rem);
    font-family: var(--font-secondary);
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--color-white);
    font-size: 2rem;
  }

  /* griglia 2 colonne (testo / foto) */
  .about-content{
    display: grid;
    grid-template-columns: 1.3fr 0.5fr;    
    gap: 90px;
    align-items: start;
  }

  /* testo a sinistra */
  .about-copy{
    display: grid;
    gap: clamp(1.25rem, 2.2vw, 1.75rem);
  }

  .about-text{
    font-family: var(--font-primary);
    font-weight: 100;
    color: var(--color-white);
    line-height: 1.3em;
    font-size: 2.3em;
  }

  /* sottolineatura evidenziata */
  .about-text .highlight{
    font-weight: 600;
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
    text-decoration-color: var(--color-light);
  }

  /* colonna destra: foto + CV */
  .about-media{
    display: grid;
    gap: clamp(.75rem, 2vw, 1rem);
    align-content: start;
    justify-items: center;
  }

  .about-photo{
    width: 100%;
    aspect-ratio: 1 / 1;                
    margin: 0;
    background: var(--color-white);
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.25);
    display: grid;
    place-items: center;
  }

  .about-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  .cv-link{
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    opacity: .95;
    transition: 
      opacity .2s ease, 
      transform .15s ease, 
      letter-spacing .25s ease; 
  }

  .cv-link:hover{ 
    opacity: 1; 
    transform: translateY(-1px); 
    letter-spacing: .25em; 
  }








  /* ========= SKILLS SECTION (desktop ≥ 992px) ========= */
  .skill{
    position: relative;
  }

  .skills-section{
    background: var(--color-dark);
    padding-block: clamp(4rem, 6vw, 5rem);
    margin-top: -130px;
  }

  .skills-inner{
    width: min(1200px, 86vw);
    margin: 0 auto;
  }

  .skills-title{
    margin: 0 0 2rem;
    font-family: var(--font-secondary);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-white);
    font-size: 1.5rem;
  }

  .skills-list{
    display: grid;
    grid-template-columns: repeat(7, 88px);
    grid-auto-rows: 88px;
    gap: 30px;
    justify-content: start;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .skills-list li{ 
    display: grid; 
    place-items: center; 
    position: relative; 
  }

  .skills-list img{
    width: 60px; 
    height: auto; 
    display: block;
    filter: brightness(0) invert(1);
    transition: transform .18s ease;
  }

  .skills-list .skill:hover img,
  .skills-list .skill:focus-visible img{
    transform: translateY(-2px);
  }

  /* etichetta sotto l'icona */
  .skills-list .skill::after{
    content: attr(data-label);
    position: absolute;
    top: 85%;              /* sotto l’icona */
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;

    font-family: var(--font-primary);
    font-size: 1.2em;
    letter-spacing: .05em;
    white-space: nowrap; 
    color: var(--color-white);

    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
  }

  .skills-list .skill:hover::after,
  .skills-list .skill:focus-visible::after{
    opacity: 1;
  }

  /* posizionamento icone */
  .skill-id        { grid-row: 1; grid-column: 1; }
  .skill-ai        { grid-row: 1; grid-column: 2; }
  .skill-ps        { grid-row: 1; grid-column: 3; }
  .skill-ae        { grid-row: 1; grid-column: 4; }
  .spacer:nth-of-type(5){ grid-row: 1; grid-column: 5; pointer-events:none; }
  .skill-davinci   { grid-row: 1; grid-column: 6; }
  .skill-procreate { grid-row: 1; grid-column: 7; }

  .skill-figma     { grid-row: 2; grid-column: 1; }
  .skill-html      { grid-row: 2; grid-column: 2; }
  .skill-css       { grid-row: 2; grid-column: 3; }
  .skill-js        { grid-row: 2; grid-column: 4; }
  .spacer:nth-of-type(12){ grid-row: 2; grid-column: 5; pointer-events:none; }
  .skill-rhino     { grid-row: 2; grid-column: 6; }

}



/* ========= DESKTOP LARGO (≥ 1400px) ========= */
@media (min-width: 1400px){
  .skills-section{
    margin-top: -200px; /* prima era -130px → più su */
  }
}






















/* ===========================
   iPad / Tablet (≤ 991px) – due colonne
=========================== */

@media (max-width: 991px){

  /* ABOUT */
  .about{
    padding-block: clamp(3rem, 6vw, 4.5rem);
  }

  .about-inner{
    width: min(1100px, 92vw);
    margin: 0 auto;
  }

  .about-subtitle{
    margin: 0 0 clamp(1.25rem, 2vw, 1.75rem);
    font-family: var(--font-secondary);
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--color-white);
    font-size: 2rem;
  }

  /* >>> manteniamo DUE COLONNE */
  .about-content{
    display: grid;
    grid-template-columns: 1.9fr 0.9fr;   
    gap: 60px;
    align-items: start;
  }

  .about-copy{ 
    gap: clamp(12px, 2vw, 18px); 
  }

  .about-text{
    font-family: var(--font-primary);
    font-weight: 100;
    color: var(--color-white);
    line-height: 1.3em;
    font-size: 2em;
  }

  .about-text .highlight{
    font-weight: 600;
    color: var(--color-white);
    text-decoration: underline;
    text-decoration-thickness: 4px;
    text-underline-offset: 4px;
    text-decoration-color: var(--color-light);
  }

  .about-media{
    
    grid-auto-flow: row;
    justify-items: center;        
    align-content: start;
  }

  .about-photo{
    width: 100%;
    max-width: 520px;          
    aspect-ratio: 1 / 1;
  }

  .cv-link{
    font-family: var(--font-secondary);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    opacity: .95;
    transition: 
      opacity .2s ease, 
      transform .15s ease, 
      letter-spacing .25s ease;

    display: block;               
    text-align: center;          
    margin-top: .5rem;            
  }

  .cv-link:hover{ 
    opacity: 1; 
    transform: translateY(-1px); 
    letter-spacing: .25em;         
  }



  /* skills */

  .skills-section{
    background: var(--color-dark);
    padding-block: clamp(3rem, 5.5vw, 4rem);
    margin-top: -80px;                
  }

  .skills-inner{
    width: min(1100px, 92vw);          
    margin: 0 auto;
  }

  .skills-title{
    margin: 0 0 1.25rem;
    font-family: var(--font-secondary);
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-white);
    font-size: 1.5rem;
  }

 
  .skills-list{
    display: grid;
    grid-template-columns: repeat(7, 76px); 
    grid-auto-rows: 76px;
    gap: clamp(16px, 2.4vw, 24px) clamp(24px, 3.6vw, 40px);
    justify-content: start;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .skills-list li{
    display: grid;
    place-items: center;
    position: relative;
    padding-block: 2px;               
  }

  .skills-list img{
    width: 50px;                      
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    transition: transform .15s ease;
  }

  /* etichette: su tablet sempre visibili, sotto l’icona */
  .skills-list .skill::after{
    content: attr(data-label);
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;

    font-family: var(--font-primary);
    font-size: .95rem;
    letter-spacing: .03em;
    white-space: nowrap;
    color: var(--color-white);
    opacity: .9;
    pointer-events: none;
  }

  .skills-list .skill:active img { transform: translateY(-2px); }

  /* ------- posizionamento esatto (stesso ordine del desktop) ------- */

  /* riga 1 (colonne 1–4, 6–7; 5 vuota) */
  .skill-id        { grid-row: 1; grid-column: 1; }
  .skill-ai        { grid-row: 1; grid-column: 2; }
  .skill-ps        { grid-row: 1; grid-column: 3; }
  .skill-ae        { grid-row: 1; grid-column: 4; }
  .spacer:nth-of-type(5){ grid-row: 1; grid-column: 5; pointer-events:none; }
  .skill-davinci   { grid-row: 1; grid-column: 6; }
  .skill-procreate { grid-row: 1; grid-column: 7; }

  /* riga 2 (colonne 1–4, 6; 5 vuota) */
  .skill-figma     { grid-row: 2; grid-column: 1; }
  .skill-html      { grid-row: 2; grid-column: 2; }
  .skill-css       { grid-row: 2; grid-column: 3; }
  .skill-js        { grid-row: 2; grid-column: 4; }
  .spacer:nth-of-type(12){ grid-row: 2; grid-column: 5; pointer-events:none; }
  .skill-rhino     { grid-row: 2; grid-column: 6; }


}



























/* ===========================
   PHONE (≤ 765px) 
=========================== */

@media (max-width: 765px){

  /* ABOUT */
  .about{
    padding-block: clamp(2.2rem, 7vw, 3rem);
    background: var(--color-dark);
  }

  .about-inner{
    width: 92vw;
    margin: 0 auto;
  }

  .about-subtitle{
    font-family: var(--font-secondary);
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--color-white);
    font-size: 2rem;
    margin: 0 0 20px;
  }

  .about-content{
    display: grid;
    grid-template-columns: 1fr;
    gap: 35px;
    align-items: start;
  }

  .about-media{            
    order: 1;
    display: grid;
    justify-items: start;   
    align-content: start;
    gap: clamp(.5rem, 3vw, .8rem);
  }

  .about-photo{
    width: 50%;               
    max-width: 300px;         
    aspect-ratio: 1 / 1;
    background: var(--color-white);
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0,0,0,.22);
    display: grid; 
    place-items: center;
  }

  .about-photo img{
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    object-position: center;
    display: block;
  }

  /* CTA centrata rispetto alla foto */
  .cv-link{
    font-family: var(--font-secondary);
    font-size: clamp(.95rem, 3.6vw, 1.1rem);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    opacity: .95;
    transition: opacity .2s ease, transform .15s ease, letter-spacing .25s ease;

    display: block;        
    width: 50%;            
    max-width: 300px;      
    text-align: center;    
    margin-top: .4rem;     
  }

  .cv-link:hover{ 
    opacity:1; 
    transform: translateY(-1px); 
    letter-spacing:.22em; 
  }

  .about-copy{ order: 2; }     

  .about-text{
    font-family: var(--font-primary);
    font-weight: 100;
    color: var(--color-white);
    font-size: clamp(1.25rem, 5.6vw, 1.8rem);  
    line-height: 1.35;
    text-align: left;       
  }

  .about-text .highlight{
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 3px;
    text-decoration-color: var(--color-light);
  }


  /* griglia: 4 colonne, 3 righe */
  .skills-list{
    display: grid;
    grid-template-columns: repeat(4, 74px);
    grid-auto-rows: 74px;
    gap: 12px;              
    justify-content: start;
    list-style: none;
    padding: 0; margin: 0;
  }

  /* icone */
  .skills-list li{ 
    display: grid; 
    place-items: center; 
    position: relative; 
  }

  .skills-list img{ 
    width: 40px; 
    height: auto; 
    filter: brightness(0) invert(1); 
  }

  .skills-list .skill::after{
    content: attr(data-label);
    margin-top: 6px;
    font-family: var(--font-primary);
    font-size: .9rem;
    line-height: 1.1;
    color: var(--color-white);
    text-align: center;
    display: block;
    opacity: .95;
  }

  /* ------- POSIZIONAMENTO ESATTO ------- */
  /* Riga 1 — Adobe: Id, Ai, Ps, Ae */
  .skill-id { grid-row: 1; grid-column: 1; }
  .skill-ai { grid-row: 1; grid-column: 2; }
  .skill-ps { grid-row: 1; grid-column: 3; }
  .skill-ae { grid-row: 1; grid-column: 4; }

  /* Riga 2 — DaVinci, Procreate, Figma, Rhino */
  .skill-davinci   { grid-row: 2; grid-column: 1; }
  .skill-procreate { grid-row: 2; grid-column: 2; }
  .skill-figma     { grid-row: 2; grid-column: 3; }
  .skill-rhino     { grid-row: 2; grid-column: 4; }

  /* Riga 3 — HTML, CSS, JS (colonna 4 vuota) */
  .skill-html { grid-row: 3; grid-column: 1; }
  .skill-css  { grid-row: 3; grid-column: 2; }
  .skill-js   { grid-row: 3; grid-column: 3; }

  .skills-list .spacer{
    grid-row: 3; grid-column: 4;
    pointer-events: none; visibility: hidden;
  }
  
}






/* ===========================
   PHONE da 500px a 765px — Skills in 2 file (override)
   (a <500px resta il layout a 3 righe; da 500 a 765 forziamo 2 righe)
=========================== */

@media (min-width: 500px) and (max-width: 765px){
  /* griglia: 6 colonne x 2 righe */
  .skills-list{
  
    grid-template-columns: repeat(6, 56px);
    grid-auto-rows: 100px;   
    gap: 24px;  
    margin-top: -15px;      
     
  }
  .skills-list img{ 
    width: 60px; 
    height: auto; 
  }

  .skills-list .skill::after{ 
    font-size: .8rem; 
    line-height: 1.1; 
    opacity: .9; 
    margin-top: 15px;
  }

  /* Posizionamento 2 righe */
  .skill-id        { grid-row: 1; grid-column: 1; }
  .skill-ai        { grid-row: 1; grid-column: 2; }
  .skill-ps        { grid-row: 1; grid-column: 3; }
  .skill-ae        { grid-row: 1; grid-column: 4; }
  .skill-davinci   { grid-row: 1; grid-column: 5; }
  .skill-procreate { grid-row: 1; grid-column: 6; }

  .skill-figma     { grid-row: 2; grid-column: 1; }
  .skill-html      { grid-row: 2; grid-column: 2; }
  .skill-css       { grid-row: 2; grid-column: 3; }
  .skill-js        { grid-row: 2; grid-column: 4; }
  .skill-rhino     { grid-row: 2; grid-column: 5; }
  .skills-list .spacer{ grid-row: 2; grid-column: 6; pointer-events:none; visibility:hidden; }
}






































/* ============== WORKS / DESK – DESKTOP (≥992px) ============== */



@media (min-width: 992px) {

  /* Container */
  .works{
    --works-bg-y: 0px; 
    background: url("../img/grafica.svg") center var(--works-bg-y) / cover no-repeat,
                var(--color-white) !important; 
    color: var(--color-dark);
  }

  .works-inner {
    width: min(1200px, 86vw);
    margin: 0 auto;
    padding-block: clamp(3rem, 6vw, 5rem);
  }

  .works-title{
    font-family: var(--font-secondary);
    color: var(--color-dark);
    letter-spacing: .1em;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 2rem;
    margin: 0 0 clamp(1.5rem, 3vw, 2rem);
    display: inline-flex;
    gap: .35em;
    align-items: baseline;
    position: relative;
    z-index: 2;
  }

  .works-title .title-word{
    position: relative;
    z-index: 0;
    padding: 0 .2em;
  }

  .works-title .title-word::before{
    content:"";
    position: absolute;
    z-index: -1;               
    top: 50%;
    transform: translateY(-50%);
    left: calc(-1 * var(--hl-extend, .5em));  
    right: calc(-1 * var(--hl-extend, .5em));  
    height: var(--hl-height, 1.9em);         
    background: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.131);
  }



  /* Desk */
  .desk {
    position: relative;
    aspect-ratio: 1200 / 760;
    width: 100%;
    min-height: 520px;
    max-height: 760px;
    
    border-radius: 22px;
    background: url('../img/desk.svg') center / 100% 100% no-repeat;
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
    overflow: hidden;
  }

  /* Folder */
  .folder {
    position: absolute;
    left: calc(var(--x, 10) * 1%);
    top:  calc(var(--y, 10) * 1%);
    width: clamp(110px, 11vw, 160px);
    aspect-ratio: 4/3;
    display: block;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: filter .2s ease;
  }

  .folder:active { cursor: grabbing; }

  .folder.is-dragging { 
    z-index: 5;
  }

  .folder-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
  }

  /* Folder label */
  .folder .label {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: .5rem;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1em;
    line-height: 1.3;
    color: var(--color-white);
    width: 100%;

    display: flex;
    justify-content: center;
    text-align: left;
  }

  .folder .label span {
    display: inline-block;
    text-align: left;
  }

  .folder .label::before {
    content: "";
    display: inline-block;
    width: .65em;
    height: .65em;
    border-radius: 50%;
    background: var(--color-light); 
    margin-right: .4rem;
    margin-top: .25em;
  }

  /* Hint */
  .desk-hint {
    margin-top: 1rem;
    font-size: .95rem;
    color: var(--color-dark);
    opacity: 1;                 
    position: relative;
    display: inline-block;
    padding: 0 .25em;        
    z-index: 1;

    /* controlli del rettangolo */
    --hint-extend: .6em;        
    --hint-height: 1.6em;       
    --hint-radius: 10px;   
  }

  .desk-hint::before{
    content: "";
    position: absolute;
    z-index: -1;              
    top: 50%;
    transform: translateY(-50%);
    left: calc(-1 * var(--hint-extend));
    right: calc(-1 * var(--hint-extend));
    height: var(--hint-height);
    background: var(--color-white);
    border-radius: var(--hint-radius);
    box-shadow: 0 6px 16px rgba(0,0,0,.06); 
    pointer-events: none;
  }
}

























/* ============== WORKS / DESK – iPad (≤991px) ============== */
@media (max-width: 991px){

  .works{
    --works-bg-y: 40px; 
    background: url("../img/grafica.svg") center var(--works-bg-y) / cover no-repeat,
                var(--color-white);
    color: var(--color-dark);
  }

  .works-inner{
    width: min(94vw, 1100px);
    margin: 0 auto;
    padding-block: 56px;
  }

  .works-title{
    font-size: 2rem;
    letter-spacing: .1em;
    font-weight: 700;
    font-family: var(--font-secondary);
    margin-bottom: 24px;

    display: inline-flex;
    gap: .32em;
    align-items: baseline;
    position: relative;
    z-index: 2;
  }


  .works-title .title-word{
    position: relative;
    z-index: 0;
    padding: 0 .18em;
  }

  .works-title .title-word::before{
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    transform: translateY(-50%);

    --hl-extend: .45em;    
    --hl-height: 1.7em;    
    left: calc(-1 * var(--hl-extend));
    right: calc(-1 * var(--hl-extend));
    height: var(--hl-height);
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,.10);
  }

  .desk{
    position: relative;
    aspect-ratio: 1200 / 760;
    width: 100%;
    border-radius: 20px;
    background: url('../img/desk.svg') center / 100% 100% no-repeat;
    box-shadow: 0 14px 36px rgba(0,0,0,.14);
    overflow: hidden;
  }

 
  .folder{
    position: absolute;
    left: calc(var(--x, 10) * 1%);
    top:  calc(var(--y, 10) * 1%);
    width: 120px;              
    aspect-ratio: 4/3;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: filter .2s ease;
    z-index: 2;                  
  }

  .folder:active{ 
    cursor: grabbing; 
  }

  .folder.is-dragging{ 
    z-index: 3; 
  }

  .folder-icon{ 
    width:100%; 
    height:100%; 
    object-fit:contain; 
    display:block; 
    pointer-events:none; 
  }

  .folder .label{
    position:absolute; 
    top:100%; left:0; 
    margin-top:8px; 
    width:100%;
    display:flex; 
    justify-content:center; 
    text-align:left;
    font-family: var(--font-primary); 
    font-weight:500; 
    font-size:15px; 
    line-height:1.25; 
    color:var(--color-white);
  }

  .folder .label span{ 
    display:inline-block; 
    text-align:left; 
  }

  .folder .label::before{
    content:""; 
    width:10px; 
    height:10px; 
    border-radius:50%;
    background: var(--color-light); 
    margin-right:6px; 
    margin-top:3px; 
    display:inline-block;
  }



  /* Hint */
  .desk-hint {
    margin-top: 1rem;
    font-size: .95rem;
    color: var(--color-dark);
    opacity: 1;                 
    position: relative;
    display: inline-block;
    padding: 0 .25em;        
    z-index: 1;

    /* controlli del rettangolo */
    --hint-extend: .6em;        
    --hint-height: 1.6em;       
    --hint-radius: 10px;   
  }

  .desk-hint::before{
    content: "";
    position: absolute;
    z-index: -1;              
    top: 50%;
    transform: translateY(-50%);
    left: calc(-1 * var(--hint-extend));
    right: calc(-1 * var(--hint-extend));
    height: var(--hint-height);
    background: var(--color-white);
    border-radius: var(--hint-radius);
    box-shadow: 0 6px 16px rgba(0,0,0,.06); 
    pointer-events: none;
  }
}





















/* ============== WORKS / DESK – Mobile (≤765px) ============== */
@media (max-width: 765px){

  .works { 
    background: var(--color-white); 
    color: var(--color-dark); 
  }

  .works-inner{ 
    width: 92vw; 
    margin: 0 auto; 
    padding-block: 40px; 
  }

  .works-title{ 
    font-size: 1.75rem; 
    margin-bottom: 18px; 
  }

  .works-title .title-word{ 
    padding: 0; 
  }

  .works-title .title-word::before{ 
    content: none !important; 
    box-shadow: none !important; 
  }

  .desk{
    position: relative;
    width: 100%;
    aspect-ratio: auto;        
    min-height: auto;            
    border-radius: 18px;
    background: var(--color-dark);
    box-shadow: 0 12px 28px rgba(0,0,0,.12);

    padding: 50px 16px 42px;    
    display: grid;

    grid-template-columns: repeat(2, 140px);
    justify-content: center;   
    justify-items: center;     

    gap: 30px 35px;
    overflow: hidden;
  }

  .folder{
    position: static !important;
    width: 100%;        
    max-width: 140px;
    aspect-ratio: 4/3;
    cursor: default;
    user-select: none;
    touch-action: auto;
    transition: none;
    z-index: 1;
  }

  .folder-icon{ 
    width:100%; 
    height:100%; 
    object-fit:contain; 
    display:block; 
    pointer-events:none; 
  }

  .folder .label{
    position: static;
    margin-top: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
    text-align: left;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 13px;
    line-height: 1.25;
    color: var(--color-white);
  }

  .folder .label span{ 
    display:inline-block; 
    text-align:left; 
  }

  .folder .label::before{
    content:"";
    width: 9px; 
    height: 9px; 
    border-radius: 50%;
    background: var(--color-light);
    margin-right: 6px; 
    margin-top: 3px; 
    display:inline-block;
  }

  .desk-hint { display: none; }
}


















/* ===== BASE: sempre attivo su tutte le larghezze ===== */
.text-separator{
  background: var(--color-dark);
  overflow: hidden;
  padding-block: 48px;
}

.text-separator .row{
  display: flex;
  flex-wrap: nowrap;     
  align-items: baseline;
  white-space: nowrap; 
  will-change: transform;
  pointer-events: none;
}

.text-separator .row .unit{
  display: inline-block;
  margin: 0;
  padding: 0;
}

.text-separator .top,
.text-separator .bottom{
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.text-separator .top{ color: var(--color-white); opacity: .95; }
.text-separator .bottom{ color: rgba(255,255,255,.55); margin-top: 18px; }



/* ===== DESKTOP (≥992px) ===== */
@media (min-width: 992px){
  .text-separator .top,
  .text-separator .bottom{ font-size: 5em; }
}

/* ===== iPAD / TABLET (≤991px) ===== */
@media (max-width: 991px){
  .text-separator{ padding-block: 40px; }
  .text-separator .top,
  .text-separator .bottom{ font-size: 5em; }
  .text-separator .bottom{ margin-top: 14px; }
}

/* ===== MOBILE (≤765px) ===== */
@media (max-width: 765px){
  .text-separator{ padding-block: 32px; }
  .text-separator .top,
  .text-separator .bottom{ font-size: 3.2em; }
  .text-separator .bottom{ margin-top: 10px; }
}

















/* ===== BAR CON FRECCIA ===== */
.contact-drawer-bar{
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5em;
  background: var(--color-dark);
}

/* ===== BOTTONE PILL CONTACT ME ===== */
.contact-drawer-btn{
  display: inline-flex;
  align-items: center;        
  gap: 1rem;                   
  padding: 1rem 2.4rem;
  min-height: 72px;
  border-radius: 999px;
  border: 3px solid var(--color-white);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  font-family: var(--font-secondary, sans-serif);
  font-weight: 800;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.contact-drawer-btn:hover{ 
  border-color: var(--color-white); 
}

.contact-drawer-btn:active{ 
  transform: scale(.98); 
}

.contact-drawer-btn:focus-visible{ 
  outline: 2px solid var(--color-light); 
  outline-offset: 3px; 
}

.contact-drawer-btn .btn-text{ 
  display:inline-block; 
}

.chevron{
  width: clamp(1.3em, 2.2vw, 1.6em);
  height: auto;
  display: block;         
  line-height: 0;
  transform: translateY(-0.06em);
  transition: transform .35s ease;
}

.chevron path{ stroke-width: 3; }
.contact-drawer-btn[aria-expanded="true"] .chevron{
  transform: translateY(-0.06em) rotate(180deg);
}


/* ===== DRAWER (apre/chiude spingendo la pagina) ===== */
.contact-drawer{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .5s ease, opacity .35s ease;
  background: transparent;
}

.contact-drawer.is-open{ 
  max-height: 1600px; 
  opacity: 1; 
}


/* ===== CARD/INNER — DUE COLONNE ===== */
.contact-drawer__inner{
  max-width: 1120px;
  margin: clamp(12px, 3vw, 28px) auto;
  padding: clamp(24px, 3vw, 40px);
  color: var(--color-white);
  background: var(--color-dark);
  border-radius: 22px;
  backdrop-filter: blur(8px);

  display: grid;
  grid-template-columns: minmax(240px, .9fr) minmax(480px, 1.6fr);
  gap: clamp(20px, 4vw, 72px);
  align-items: start;
}


/* ===== HEADER (colonna sinistra) ===== */
.contact__header{ 
  grid-column: 1; 
}

.contact__header h3{
  font-family: var(--font-secondary, inherit);
  font-weight: 600;
  font-size: 70px;
  line-height: .92;
  margin: 0;
  text-transform: uppercase;
}

.contact__header p{
  margin: .5rem 0 0;
  opacity: .85;
  max-width: 32ch;
}


/* ===== FORM (colonna destra) ===== */
.contact__form{
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 16px;
}

.contact__form .field{ 
  margin: 0 0 12px; 
}

.contact__form label{
  display:block;
  margin-bottom: .5rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-white);
  opacity: .95;
}

.contact__form input,
.contact__form textarea{
  width: 100%;
  background: rgba(255, 255, 255, 0.16); 
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: .9rem 1rem;
  outline: none;
  box-shadow: none;
  caret-color: var(--color-light);
  transition: none;            
}

.contact__form input:hover,
.contact__form textarea:hover,
.contact__form input:focus,
.contact__form textarea:focus{
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
  outline: none;
}

.contact__form ::placeholder{ 
  color: rgba(255,255,255,.70); 
  opacity: 1; 
}

.contact__form textarea{ 
  min-height: 160px; 
  resize: vertical; 
}

.contact__form .error{ 
  color: var(--color-accent); 
  font-size: .8rem; 
}

.contact__form .hint{ 
  display:block; 
  margin-top:.35rem; 
  font-size:.8rem; 
  opacity:.7; 
}









/* ===== CHECKBOX ===== */
.contact__form .checkbox{
  display:flex; 
  gap:.7rem; 
  align-items:flex-start; 
  margin-top:.5rem;
}

.contact__form .checkbox input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  background-image: none;     
  box-shadow: none;
  box-sizing: border-box;

  position: relative;
  width: 22px;                     
  height: 22px;
  border: 2px solid var(--color-white);
  border-radius: 0;              
  background: transparent;
  cursor: pointer;
  vertical-align: middle;
  margin: .15rem .6rem 0 0;
}


.contact__form .checkbox input[type="checkbox"]:checked{
  background: var(--color-light);
  border-color: var(--color-light);
}


.contact__form .checkbox input[type="checkbox"]:checked::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;                   
  height: 6px;                     
  border: solid #1b1b1b;       
  border-width: 0 0 3px 3px;        
  transform: translate(-50%, -60%) rotate(-45deg);
  transform-origin: center;
}


.contact__form .checkbox input[type="checkbox"]:focus-visible{
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
}
















/* ===== BOTTONE SEND giallo pill ===== */
.btn-send{
  justify-self: start;
  display:inline-block;
  border:none; outline:none; cursor:pointer;
  margin-top:.9rem;
  padding:.9rem 2.2rem;
  border-radius:999px;
  background: var(--color-light);
  color:#1b1b1b;
  font-weight:900;
  letter-spacing:.06em;
  text-transform: uppercase;
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}



@media (max-width: 900px){
  .contact-drawer__inner{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact__form{ 
    grid-column: 1; 
  }

  .btn-send{ 
    justify-self: stretch; text-align: center; 
  }

  .contact__header h3{
    font-family: var(--font-secondary, inherit);
    font-weight: 600;
    font-size: 40px;
    line-height: .92;
    margin: 0;
    text-transform: uppercase;
  }
}

/* ===== Motion reduce ===== */
@media (prefers-reduced-motion: reduce){
  .contact-drawer, .contact-drawer-btn, .chevron, .btn-send,
  .contact__form input, .contact__form textarea { 
    transition: none; 
  }

  .contact__header p{
    margin: .5rem 0 0;
    opacity: .85;
    max-width: 32ch;
  }

}






























/* ===== Footer – Desktop (≥992px) ===== */
@media (min-width: 992px){

  .site-footer{
    background: var(--color-dark);
    margin-top: 50px;
    color: var(--color-white);
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .footer-inner{
    width: min(1200px, 88vw);
    margin: 0 auto;
    padding: clamp(28px, 6vw, 56px) 0;
    display: grid;
    grid-template-columns: 1.2fr .9fr 1fr;
    grid-template-areas: "brand nav contact";
    gap: clamp(20px, 4vw, 48px);
    align-items: start;
  }

  .foot-col .foot-title{
    font-family: var(--font-secondary);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 1.1rem;
    opacity: .9;
    margin: 0 0 10px;
  }

  .foot-list{ 
    list-style: none; 
    margin: 0; 
    padding: 0; 
  }

  .foot-list li{ 
    margin: 6px 0; 
  }

  .foot-list a{
    color: var(--color-white);
    text-decoration: none;
    opacity: .9;
  }

  .foot-list a:hover{ 
    color: var(--color-light); 
  }

  /* Brand */
  .brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
  }

  .brand-logo {
    flex-shrink: 0;
  }

  .brand-name {
    font-weight: 550;
    font-size: 1.2rem;
    font-family: var(--font-secondary);
    line-height: 1.2;  
    display: inline-block;
  }

  .brand-tagline {
    margin-top: 20px;
    font-size: 1rem;
    color: rgba(255,255,255,.75);
  }

  .foot-social{ 
    display:flex; 
    gap:10px; 
    margin-top: 10px; 
  }

  .social{
    display:grid; 
    place-items:center;
    width:36px; 
    height:36px; 
    border-radius:50%;
    border:1.5px solid rgba(255,255,255,.5);
    text-decoration:none; 
    color:var(--color-white); 
    font-weight:700;
  }

  .social:hover{ 
    border-color: var(--color-light); 
    color: var(--color-dark); 
    background: var(--color-light); 
  }

  .link-button{
    background: none; 
    border: 0; 
    padding: 0; 
    cursor: pointer;
    color: var(--color-white); 
    font: inherit; 
    text-align:left;
  }

  .link-button:hover{ 
    color: var(--color-light); 
  }

  /* Bottom strip */
  .foot-bottom{
    width: min(1200px, 88vw);
    margin: 0 auto;
    padding: 14px 0 28px;
    display:flex; 
    justify-content:space-between; 
    gap:14px; 
    align-items:center;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .95rem;
    opacity: .85;
  }

  .foot-bottom a{ 
    color: var(--color-white); 
    text-decoration: none; 
  }

  .foot-bottom a:hover{ 
    color: var(--color-light); 
  }

  /* Copyright */
  .site-footer .foot-bottom .copyright {
    font-size: 1.1rem;  
    line-height: 1.4;
    opacity: .9;
  }

  .legal {
    display: flex;
    font-size: 1.1em;
    gap: 12px;
    justify-content: center;
    align-items: center;
  }

  .legal a,
  .legal {
    vertical-align: middle;
  }
}


























/* ===== Footer – iPad / Tablet (≤991px) ===== */
@media (max-width: 991px){

  .site-footer{
    background: var(--color-dark);
    margin-top: 50px;
    color: var(--color-white);
    border-top: 1px solid rgba(255,255,255,.08);
  }

  .footer-inner{
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: clamp(24px, 6vw, 48px) 0;
    display: grid;
    grid-template-columns: 1.2fr .9fr 1fr;
    grid-template-areas: "brand nav contact";
    gap: clamp(16px, 4vw, 40px);
    align-items: start;
  }

  .foot-col .foot-title{
    font-family: var(--font-secondary);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 1.05rem;
    opacity: .9;
    margin: 0 0 10px;
  }

  .foot-list{ 
    list-style: none; 
    margin: 0; 
    padding: 0; 
  }

  .foot-list li{
    margin: 6px 0; 
  }

  .foot-list a{ 
    color: var(--color-white); 
    text-decoration: none; 
    opacity: .9; 
  }

  .foot-list a:hover{ 
    color: var(--color-light); 
  }

  /* brand */
  .brand-link{ 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    text-decoration: none; 
    color: inherit; 
  }

  .brand-logo{ 
    flex-shrink: 0; 
  }

  .brand-name{ 
    font-weight: 550; 
    font-size: 1.15rem; 
    font-family: var(--font-secondary); 
    line-height: 1.2; 
    display: inline-block; 
  }

  .brand-tagline{ 
    margin-top: 18px; 
    font-size: .98rem; 
    color: rgba(255,255,255,.75); 
  }

  /* social */
  .foot-social{ 
    display:flex; 
    gap:10px; 
    margin-top:10px; 
  }

  .social{
    display:grid; 
    place-items:center;
    width:36px; 
    height:36px; 
    border-radius:50%;
    border:1.5px solid rgba(255,255,255,.5);
    text-decoration:none; 
    color:var(--color-white); 
    font-weight:700;
  }
  
  .social:hover{ 
    border-color: var(--color-light); 
    color: var(--color-dark); 
    background: var(--color-light); 
  }

  /* bottone contact */
  .link-button{ 
    background:none; 
    border:0; 
    padding:0; 
    cursor:pointer; 
    color:var(--color-white); 
    font:inherit; text-align:left; 
  }

  .link-button:hover{ 
    color: var(--color-light); 
  }

  /* bottom strip */
  .foot-bottom{
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 14px 0 28px;
    display:flex; justify-content:space-between; 
    gap:14px; 
    align-items:center;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .95rem; opacity: .85;
  }

  .foot-bottom a{ 
    color: var(--color-white); 
    text-decoration: none; 
  }

  .foot-bottom a:hover{ 
    color: var(--color-light); 
  }

  .site-footer .foot-bottom .copyright{ 
    font-size: 1.05rem; 
    line-height: 1.4; 
    opacity: .9; 
  }

  .legal{ 
    display:flex; 
    font-size: 1.05em; 
    gap:12px; 
    justify-content:center; 
    align-items:center; 
  }

  .site-footer .foot-nav{
    position: static !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    visibility: visible !important;
    display: block !important;
  }
}

/* ===== Footer – Mobile (≤765px) ===== */
@media (max-width: 765px){

  .footer-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "contact";
    gap: 20px;
  }

  .foot-bottom{
    flex-direction: column;
    text-align: center;
    gap: 10px;
    padding: 12px 0 24px;
  }

  .site-footer .foot-bottom .copyright{ 
    font-size: .95rem; 
  }

  .legal{ 
    font-size: 1rem; 
  }

}


































































































/* -------------------------------------------------------------------------------- */
/* ! PAROLE MANGIATE - PROJECT PAGE */
/* -------------------------------------------------------------------------------- */



/* ===================== */
/* MOBILE (≤ 765px)      */
/* ===================== */
@media (max-width: 765px) {
  html, body, #project-parole-mangiate {
    overflow-x: hidden;
  }
  
  #project-parole-mangiate .project-inner {
    width: 88vw;                
    margin: 0 auto;
  }

  #project-parole-mangiate .project-hero {
    padding-top: 9rem !important;  
    padding-bottom: 0.5rem;
  }

  /* VIDEO HERO */
  #project-parole-mangiate .hero-illustration {
    margin-top: 40px;           
    aspect-ratio: 16 / 9;
  }

  #project-parole-mangiate .hero-illustration video {
    width: 100vw;       
    max-width: none;
    margin: 0 auto 12px;
    display: block;
  }

  /* POSTER */
  #project-parole-mangiate .poster-row.three { 
    margin-top: 8px !important; 
  }

  /* GIF */
  #project-parole-mangiate .loop-tile {
    position: relative;
    width: 100vw;       
    margin-top: 24px;
    aspect-ratio: 4 / 3;
    overflow: hidden ; 
    transform: scale(1.2);
    transform-origin: center;
  }

  /* CTA */
  #project-parole-mangiate .cta-download {
    margin-top: 40px;
    text-align: center;
  }
  
  #project-parole-mangiate .cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
  }

  #project-parole-mangiate .cta-btn:hover { 
    text-decoration: underline; 
  }


  /* CTA prototipo*/
  #project-parole-mangiate .cta-prototype .cta-btn {
    margin-top: -20px;
    text-align: center;
  }
  
  #project-parole-mangiate .cta-prototype .cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
  }

  #project-parole-mangiate .cta-prototype .cta-btn:hover { 
    text-decoration: underline; 
  }

  /* SLIDER */
  #project-parole-mangiate .slider {
    position: relative;
    width: 100vw !important;  
    margin: 32px 0 0;  
    padding: 30px;        
    left: 50%;                 
    transform: translateX(-50%); 
  }

  
  #project-parole-mangiate .slider__viewport {
    width: 100%;
    overflow: hidden;
  }

  #project-parole-mangiate .slider__track {
    display: flex;
    transition: transform .5s ease-in-out;
  }

  #project-parole-mangiate .slider__slide {
    flex: 0 0 100%;
  }

  #project-parole-mangiate .slider__slide img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Divider */
  #project-parole-mangiate .section-divider {
    width: 70%;              
    margin: 40px auto 36px;    
    border-top: 1px solid rgba(255, 255, 255, 0.4);
  }


}






/* ===================== */
/* TABLET & NARROW (≤1200px) */
/* ===================== */

@media (max-width: 1200px) {
 
  #project-parole-mangiate .project-inner {
    width: 88vw;               
    margin: 0 auto;
  }

  #project-parole-mangiate .project-hero {
    padding-top: 10rem;
    padding-bottom: 2rem;
  }

  #project-parole-mangiate .split-layout { 
    display: block; 
  }

  #project-parole-mangiate .text-col {
    position: static;
    top: auto;
    height: auto;
    margin-bottom: 2rem;
    overflow: visible;
  }

  #project-parole-mangiate .media-col {
    height: auto;
    overflow: visible;
  }

  #project-parole-mangiate .poster-row.three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 40px;
  }

  #project-parole-mangiate .poster-row.three .poster {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 50px;
    margin-bottom: 50px;
  }

  /* GIF */
  #project-parole-mangiate .loop-tile {
    width: 88vw;                
    max-width: none;
    margin: 24px auto 0;
    aspect-ratio: 16 / 9;
  }

  /* Slider */
  #project-parole-mangiate .slider {
    position: relative;
    margin: 32px auto 0;
    width: 80%;
  }

  #project-parole-mangiate .section-divider {
    width: 75%;                   
    margin: 50px auto 40px;       
    border-top: 1px solid rgba(255, 255, 255, 0.4);
  }
}


/* ======================= */
/* DESKTOP (≥ 991px) */
/* ======================= */

@media (min-width: 991px) {
  #project-parole-mangiate .project-inner {
    width: 86vw;
    max-width: 1408px;
    margin: 0 auto;
    margin-top: -50px;
    height: 100%; 
  }

  #project-parole-mangiate .split-layout {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 48px;
    align-items: start;
    height: 100%;   
    min-height: 0;
  }

  /* Sinistra sticky */
  #project-parole-mangiate .text-col {
    position: sticky;
    top: 9.5rem;
    height: calc(100vh - 9.5rem);
    overflow: hidden;
  }

  /* Destra */
  #project-parole-mangiate .media-fixed {
    max-width: 1080px;
    margin-left: 0;
    margin-right: auto;
  }

  #project-parole-mangiate .project-hero {
    padding: 9.5rem 0 5rem;
    height: auto;
    min-height: 0;
    overflow: visible;
  }


}


/* ======================= */
/* DESKTOP MEDIO (992–1200px) */
/* ======================= */

@media (max-width: 1200px) and (min-width: 992px) {
  #project-parole-mangiate .project-hero {
    padding: 9rem 0 2rem;
    height: auto;
    overflow: visible;
  }

  #project-parole-mangiate .project-inner {
    width: 92vw;
    max-width: none;
    margin: 0 auto;
  }

  #project-parole-mangiate .split-layout { display: block; }

  #project-parole-mangiate .text-col {
    position: relative;
    top: auto;
    height: auto;
    margin-bottom: 2rem;
    overflow: visible;
  }

  #project-parole-mangiate .media-col {
    height: auto;
    overflow: visible;
  }

}


/* ===================== */
/* DESKTOP AMPIO (≥1201px) */
/* ===================== */

@media (min-width: 1201px) {
  #project-parole-mangiate .media-fixed {
    width: 100%;
    max-width: 100%;
    transform: none;
    margin-left: 0;
  }

  #project-parole-mangiate .section-divider {
    width: 50%;                   
    margin: 40px auto 30px;         
    border-top: 1px solid rgba(255, 255, 255, 0.3);
  }

}


/* ===================== */
/* ELEMENTI COMUNI       */
/* ===================== */

.project-title {
  font-style: normal !important;
  font-size: 2.3em;
  margin-bottom: 30px;
  font-family: var(--font-secondary);
  margin: 3 0 1.5rem;
}

.project-title em,
.project-title i {
  font-style: normal !important;
}

/* Intro */
#project-parole-mangiate .project-intro {
  font-size: 1.6rem;
  line-height: 1.3;
  font-weight: 300;
  font-family: var(--font-primary);
  max-width: 62ch;
  margin-bottom: 2rem;
}

/* Underline giallo per <em> */
#project-parole-mangiate .project-intro em {
  font-style: normal;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-light);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* HERO VIDEO */
#project-parole-mangiate .hero-illustration {
  margin-top: 60px;
  display: block;
  aspect-ratio: 21 / 9;
  position: relative;
}

#project-parole-mangiate .hero-illustration video {
  width: 80%;
  max-width: 900px;
  height: auto;
  margin: 0 auto;
  display: block;
  object-fit: contain;
  position: static; 
}

/* POSTER */
.poster-row.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.poster-row.three .poster {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* GIF LOOP */
.loop-tile {
  position: relative;
  width: 100%;
  margin-top: 40px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.loop-tile .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
}

.loop-tile .frame.is-active {
  opacity: 1;
}

/* CTA */
.cta-download {
  margin-top: 20px;
  text-align: center;
}

.cta-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-btn:hover {
  text-decoration: underline;
}

/* Project note */
.project-note {
  margin-top: 24px;
  text-align: center;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

.project-note p {
  font-size: 1.1rem;
  font-weight: 200;
  line-height: 1.3;
  color: var(--color-white);
  font-family: var(--font-primary);
}

/* Slider */
.slider {
  position: relative;
  width: 100%;
  margin-top: 32px;
}

.slider__viewport { overflow: hidden; }

.slider__track {
  display: flex;
  transition: transform .5s ease-in-out;
}

.slider__slide { 
  flex: 0 0 100%; 
}

.slider__slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Podcast */
.section-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 30px auto;
  margin-top: 20px;
  width: 80%;
}

.podcast-block {
  margin-top: 60px;
  text-align: center;
}

.podcast-title {
  font-family: var(--font-secondary);
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--color-white);
}

.podcast-intro {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-top: 20px;
  margin-bottom: 1.5rem;
  color: var(--color-white);
}

.media-video-block {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.media-video-block iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}



































/* -------------------------------------------------------------------------------- */
/* ! ARMOR - PROJECT PAGE */
/* -------------------------------------------------------------------------------- */

/* ======================= */
/* DESKTOP ≥ 992px) */
/* ======================= */

@media (min-width: 991px) {

  #project-armor .project-inner {
    width: 86vw;
    max-width: 1408px;
    margin: 0 auto;
    margin-top: -50px;
    height: 100%;
  }

  #project-armor .split-layout {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 48px;
    align-items: start;
    height: 100%;
    min-height: 0;
  }

  #project-armor .text-col {
    position: sticky;
    top: 9.5rem;
    height: calc(100vh - 9.5rem - 0rem);
    overflow: hidden;
  }

  #project-armor .media-fixed {
    max-width: 1080px;
    margin-left: 0;
    margin-right: auto;
  }

  #project-armor .project-hero {
    padding: 9.5rem 0 5rem;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  #project-armor .project-intro {
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 300;
    font-family: var(--font-primary);
    max-width: 62ch;
    margin-bottom: 2rem;
  }

  #project-armor .project-intro em {
    font-style: normal;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-light);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
  }

  /* -------- HERO VIDEO -------- */
  #project-armor .media-video-block {
    position: relative;
    margin-top: 30px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-top: 60px;
  }

  #project-armor .armor-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  #project-armor .armor-video::-webkit-media-controls {
    display: none !important;
  }

  /* -------- GRIGLIA 2x2 -------- */
  #project-armor .media-grid.four {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 20px;
    margin-bottom: 40px;
  }

  #project-armor .media-grid.four .tile {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
  }

  /* -------- CTA Prototipo -------- */
  #project-armor .cta-prototype {
    margin: 28px 0;
    margin-top: 10px;
    text-align: center;
  }


  /* === BLOCCO IMMAGINI === */

  .media-full img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: var(--box-shadow);
    object-fit: cover;
    aspect-ratio: 16 / 9;
  }

  #project-armor .media-full {
    margin-top: 10px;
    margin-bottom: 40px;
  }

  #project-armor .armor-rings {
    margin: 0;
  }

}



/* ======================= */
/* DESKTOP MEDIO ≤ 1200px  */
/* ======================= */

@media (max-width: 1200px) and (min-width: 992px) {
  #project-armor .project-hero {
    padding: 9rem 0 2rem;
    height: auto;
    overflow: visible;
  }

  #project-armor .project-inner {
    width: 92vw;
    max-width: none;
    margin: 0 auto;
  }

  #project-armor .split-layout {
    display: block;
  }

  #project-armor .text-col {
    position: relative;
    top: auto;
    height: auto;
    margin-bottom: 2rem;
    overflow: visible;
  }

  #project-armor .cta-prototype {
    margin: 28px 0;
    margin-top: 20px;
    margin-bottom: 50px;
    text-align: center;
  }

  #project-armor .media-full {
    margin-top: 0;
    margin-bottom: 40px;
  }

}




/* ======================= */
/* TABLET ≤ 991px */
/* ======================= */
@media (max-width: 991px) {

  /* Hero */
  #project-armor .project-hero {
    padding: 9rem 0 2rem;
    height: auto;
  }

  #project-armor .project-inner {
    width: 92vw;
    margin: 0 auto;
  }

  #project-armor .split-layout {
    display: block;
  }

  #project-armor .text-col {
    position: relative;
    top: auto;
    height: auto;
    margin-bottom: 2rem;
  }

  #project-armor .media-col {
    overflow: visible;
    height: auto;
  }

  #project-armor .media-fixed {
    width: 100%;
    gap: 1.25rem;
  }

  #project-armor .project-intro {
    font-size: 1.6rem;
    line-height: 1.3;
    font-weight: 300;
    font-family: var(--font-primary);
    max-width: 62ch;
    margin-bottom: 2rem;
  }

  /* Underline giallo per <em> */
  #project-armor .project-intro em {
    font-style: normal;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-light);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
  }

  #project-armor .project-intro em {
    font-style: normal;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-light);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
  }

  /* Video */
  #project-armor .media-video-block {
    position: relative;
    margin-top: 40px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  #project-armor .armor-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  /* Griglia immagini */
  #project-armor .media-grid.four {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
  }

  #project-armor .media-grid.four .tile {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
  }

  /* CTA */
  #project-armor .cta-prototype {
    margin: 20px 0 30px;
    text-align: center;
  }

  #project-armor .cta-prototype .cta-btn {
    font-size: 1.2rem;
    padding: 0.8rem 1.8rem;
  }

  /* Immagine grande */
  #project-armor .media-full {
    margin-top: 20px;
    margin-bottom: 40px;
  }

  #project-armor .media-full img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}






/* ======================= */
/* MOBILE ≤ 765px
/* ======================= */

@media (max-width: 765px) {

  #project-armor .project-inner {
    width: 88vw;                
    margin: 0 auto;
  }


  /* CTA */
  #project-armor .cta-prototype .cta-btn {
    font-size: 1rem;
    padding: 0.7rem 1.5rem;
  }

  /* Griglia immagini */
  #project-armor .media-grid.four {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: -12px;
    margin-bottom: 35px;
  }

  #project-armor .media-grid.four .tile {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
  }

  #project-armor .media-fixed {
    gap: 1rem;
  }
}